Skip to content

feat(agent): speak, speechCleanup; catch up types with schema 0.4.26 - #21

Merged
davehorton merged 1 commit into
mainfrom
feat/agent-speak-speech-cleanup
Oct 24, 2026
Merged

davehorton merged 1 commit into
mainfrom
feat/agent-speak-speech-cleanup

Conversation

@davehorton

Copy link
Copy Markdown
Contributor

Adds the new agent options and brings the SDK's types up to @jambonz/schema 0.4.26.

Agent (AgentVerb):

  • speak (default true): false keeps the agent's text out of TTS (feature-server#297).
  • speechCleanup (default true): drops stage-direction-only paragraphs and <think>-style blocks before TTS (feature-server#298).
  • noResponseMaxPrompts, and noResponseTimeout's documented default corrected to 12.

Why the rest is here: schema-drift.test.ts compares the TypeScript interfaces with the installed schema, but the lockfile had @jambonz/schema 0.4.2, so it had been checking against an old schema. Adding the agent fields requires the bump to ^0.4.26, and the bump surfaced these gaps, now fixed:

  • gptlive_s2s, nova_s2s, voicelive_s2s: verb types (in the Verb union) and builder/session methods, like qwen_s2s.
  • Recognizer: gradiumOptions, mistralOptions, modulateOptions, zoomOptions.
  • DialVerb.codecs; DialogflowVerb.deployment, sessionId.

Checks: npm run typecheck clean, npm test 130/130 (including the drift test), npm run build OK. Not run: npm run lint (eslint isn't installed in this package and CI doesn't run it).

🤖 Generated with Claude Code

@jambonz/schema ^0.4.2 -> ^0.4.26 (the lockfile still had 0.4.2, so the
drift test had been checking against a schema from months ago). Fixes
the drifts that exposed:
- AgentVerb: speak, speechCleanup, noResponseMaxPrompts
- gptlive_s2s, nova_s2s, voicelive_s2s: types and builder methods
- Recognizer: gradiumOptions, mistralOptions, modulateOptions, zoomOptions
- DialVerb.codecs; DialogflowVerb.deployment, sessionId

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davehorton
davehorton merged commit 165704b into main Oct 24, 2026
1 check passed
@davehorton
davehorton deleted the feat/agent-speak-speech-cleanup branch October 24, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant