mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
48cd3b2c93
## Summary - **Dashboard mapping fix.** `CATALOG_TO_D5_KEY` in `showcase/shell-dashboard/src/lib/live-status.ts` was missing `voice → ["voice"]`, so `computeMaxPossible` capped the langgraph-python voice cell at D4 even when the d5-voice probe row was green. The harness `REGISTRY_TO_D5` already had the entry; only the dashboard mirror was out of sync. - **Sample-button decoupled from `/transcribe`.** The "Play sample" button used to fetch `sample.wav` and POST it to the runtime's transcription endpoint, which made the sample button and the mic indistinguishable under aimock (both returned the canned transcription). Reworked it into a synchronous static-text injector — sample button is now a deterministic test/demo affordance, and the mic is the only path that exercises real Whisper transcription. Synced across all 18 voice-enabled integrations. Phrase stays `"What is the weather in Tokyo?"` so aimock's `weather in Tokyo` substring fixture still matches. - **Probe-test parity.** Added the missing `d5-voice.test.ts` companion (every other `d5-*.ts` script has one) — 9 tests covering registration, `buildTurns`, `preFill` (sample-button click + textarea-poll path), and the weather/Tokyo assertion. - **QA + e2e cleanup** for langgraph-python: dropped the no-longer-applicable "Transcribing…" mid-flight assertion and the `block /demo-audio/sample.wav` error-state subsection. Other 16 integrations' qa/e2e files follow in a parity sync PR. ## Test plan - [x] `nx test @copilotkit/showcase-harness -- --run d5-voice` → 9/9 pass - [x] `npm test` in `showcase/shell-dashboard` → 509/510 pass (1 skipped, 0 failed) - [x] `nx build @copilotkit/showcase-harness` → clean - [x] Local boot: `langgraph-cli dev` (port 8123) + `next dev` (port 3000) + dashboard (port 3002) — voice page at `/demos/voice` renders, "Play sample" injects the canned phrase instantly, send → agent returns weather, mic → real Whisper transcription with `OPENAI_API_KEY` set - [ ] Reviewer: confirm the langgraph-python voice cell on the live dashboard advances to D5 once the next d5-voice probe tick lands a green row