feat(vela): retire mocked.turn.trigger from shared contract

This commit is contained in:
2026-04-08 22:05:13 +02:00
parent 8e14eaeed0
commit 742e84e40f
7 changed files with 23 additions and 5 deletions

View File

@@ -41,7 +41,6 @@ This increment intentionally keeps the envelope minimal:
```ts
type ClientEvent =
| { type: "session.start"; payload: {} }
| { type: "mocked.turn.trigger"; payload: {} }
| { type: "input_audio.append"; payload: { chunk: string } }
| { type: "input_audio.commit"; payload: {} }
| { type: "response.cancel"; payload: {} };
@@ -50,11 +49,15 @@ type ClientEvent =
#### Client event intent
- `session.start` initializes a voice session without locking in transport or auth details yet
- `mocked.turn.trigger` is a retired legacy event name that the gateway now rejects with a deterministic recoverable error
- `input_audio.append` carries a chunk of captured input audio as an encoded string
- `input_audio.commit` marks the current buffered user turn as ready for downstream processing
- `response.cancel` interrupts the active listen/think/speak flow
Legacy compatibility note:
- `mocked.turn.trigger` is no longer part of the active shared client contract
- the gateway still handles raw incoming `mocked.turn.trigger` envelopes explicitly and rejects them with a deterministic recoverable error for backward compatibility
### Current skeleton behavior
- on connect, the gateway creates an ephemeral in-memory session and emits `session.ready` plus `session.state`