@archboard/codex-realtime-voice 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -41
- package/dist/browser.d.mts +1 -3
- package/dist/browser.mjs +67 -66
- package/dist/{contract-CDS04znV.d.mts → contract-B2ILifH5.d.mts} +3 -3
- package/dist/{contract-qg6q9-vH.d.mts → contract-CkitFygd.d.mts} +97 -3054
- package/dist/{contract-DkiXnfc8.d.mts → contract-D9_WuSxD.d.mts} +3 -3
- package/dist/contract.d.mts +1 -1
- package/dist/controllers.d.mts +221 -6
- package/dist/controllers.mjs +3 -3
- package/dist/{gateway-envelope-DRBUhFx9.d.mts → gateway-envelope-O67wCRD7.d.mts} +3 -2
- package/dist/{realtime-state-CTBmCjt1.mjs → gateway-envelope-jUP82Pq1.mjs} +71 -3
- package/dist/identity-capabilities-3Q_2tJiT.d.mts +147 -0
- package/dist/instructions-B-6HVmoD.mjs +1024 -0
- package/dist/{contract-JI3xv17m.d.mts → instructions-C6TkBWcp.d.mts} +14 -998
- package/dist/{model-DnitkA24.mjs → model-MSyAviwx.mjs} +1652 -85
- package/dist/react.d.mts +1 -1
- package/dist/{realtime-contract-wHmSyUIe.d.mts → realtime-contract-C-1bMn-F.d.mts} +1 -22
- package/dist/realtime.d.mts +2 -3
- package/dist/realtime.mjs +1 -3
- package/dist/runtime.d.mts +3 -18
- package/dist/runtime.mjs +2 -2
- package/dist/schemas.d.mts +3 -13
- package/dist/schemas.mjs +1 -1
- package/dist/server.d.mts +977 -217
- package/dist/server.mjs +17771 -10076
- package/dist/{snapshot-BCrCORmt.d.mts → snapshot-DCl2vsJl.d.mts} +9 -154
- package/dist/{transport-Bqb8KE5T.mjs → transport-DVUz3EK0.mjs} +17 -13
- package/package.json +1 -1
- package/dist/app-server-contract-D4E5bibD.mjs +0 -177
- package/dist/gateway-envelope-DXTRMB3q.mjs +0 -45
- package/dist/instructions-8ACs49yJ.mjs +0 -8980
- package/dist/media-state-CNkFo93s.d.mts +0 -215
- package/dist/realtime-contract-DwkCluo2.mjs +0 -1167
- package/dist/realtime-state-DT4uvrIV.d.mts +0 -16
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { d as RealtimeState, s as RealtimePhase } from "./realtime-contract-wHmSyUIe.mjs";
|
|
2
|
-
declare const REALTIME_PHASES: readonly ["idle", "requesting_permission", "negotiating", "listening", "muted", "processing", "speaking", "stopping", "recoverable_error", "terminal_error", "closed"];
|
|
3
|
-
type StateFor<Phase extends RealtimePhase> = Extract<RealtimeState, {
|
|
4
|
-
readonly phase: Phase;
|
|
5
|
-
}>;
|
|
6
|
-
type TransitionTable = Readonly<Record<RealtimePhase, Readonly<Partial<{ [destination in RealtimePhase]: readonly StateFor<destination>["reason"][]; }>>>>;
|
|
7
|
-
declare const REALTIME_TRANSITIONS: TransitionTable;
|
|
8
|
-
declare const INITIAL_REALTIME_STATE: RealtimeState;
|
|
9
|
-
/**
|
|
10
|
-
* Moves the session to `next` after checking the transition is legal.
|
|
11
|
-
* @param current - The state the session is in.
|
|
12
|
-
* @param next - The state and reason to move to.
|
|
13
|
-
* @returns A frozen copy of `next`.
|
|
14
|
-
*/
|
|
15
|
-
declare function transitionRealtimeState(current: RealtimeState, next: RealtimeState): RealtimeState;
|
|
16
|
-
export { transitionRealtimeState as i, REALTIME_PHASES as n, REALTIME_TRANSITIONS as r, INITIAL_REALTIME_STATE as t };
|