Files
coucou/scripts/test-voice-intent.sh
T
Claude 5eacaa1175 voice: ask Coucou about everything — services, weather, mail, apps
Louis: "que je puisse littéralement tout demander à Coucou par la voix".

Questions (VoiceQuery, pure + tested): Stripe ("combien j'ai fait
aujourd'hui"), GitHub (stars, PRs, CI), Vercel (last deployment),
Resend, n8n, Notion, Cal.com (next booking), agents ("qu'est-ce qui se
passe sur mon Claude Code", approval waiting first), Claude/Codex plan
usage, music now playing, active pills, weather today/tomorrow. A phrase
with an action verb stays a command. Answers in French or English.

Data (VoiceDataSources, Mac): what the pollers already keep in AppState.
New network, only for services the user configured and only when asked:
- Stripe: today's succeeded charges (minus refunds) with their key;
- Open-Meteo weather: off by default, Settings → Voice toggle + city,
  15 min cache.

Mail: "envoie (le fichier X des téléchargements) à Tana" → address from
Contacts (asked on first use; NSContactsUsageDescription + addressbook
entitlement on the GitHub builds), file from Downloads/Desktop/Documents
(most recent match), then Mail opens a compose window. It never sends:
the user clicks Send (CLAUDE.md).

Apps: "ouvre Figma" → /Applications, /System/Applications, ~/Applications.

On-device model: new ServiceTool returns the same real data, and the
instructions say to call it before answering about a service.

Tests: VoiceQueryTests 48/48 (Louis's own questions), new CI step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-10 17:36:02 +02:00

13 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "Running IntentParser tests…"
swiftc -o /tmp/voice-intent-tests \
tests/VoiceTestStubs.swift \
tests/PillFixture.swift \
NotchBuddy/Sources/App/Voice/VoiceIntent.swift \
NotchBuddy/Sources/App/Voice/EntityResolver.swift \
NotchBuddy/Sources/App/Voice/IntentParser.swift \
NotchBuddy/Sources/App/Voice/VoiceQuery.swift \
tests/IntentParserTests.swift
/tmp/voice-intent-tests