@archboard/codex-realtime-voice 0.4.1 → 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-DTEwX7x-.d.mts → contract-B2ILifH5.d.mts} +3 -3
- package/dist/{contract-qg6q9-vH.d.mts → contract-CkitFygd.d.mts} +97 -3054
- package/dist/{contract-Cupd2jDS.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 +6 -4
- package/dist/{gateway-envelope-Ch4BsYcK.d.mts → gateway-envelope-O67wCRD7.d.mts} +4 -3
- 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-CZDUvuVt.d.mts → instructions-C6TkBWcp.d.mts} +14 -984
- package/dist/{model-YHUwnXnC.mjs → model-MSyAviwx.mjs} +1658 -78
- 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 +1082 -252
- package/dist/server.mjs +18278 -9849
- package/dist/{snapshot-BCrCORmt.d.mts → snapshot-DCl2vsJl.d.mts} +9 -154
- package/dist/{transport-CqOvXrAE.mjs → transport-DVUz3EK0.mjs} +17 -13
- package/package.json +2 -2
- package/dist/app-server-contract-D4E5bibD.mjs +0 -177
- package/dist/gateway-envelope-CODkg5rz.mjs +0 -43
- package/dist/instructions-CmBJHqpa.mjs +0 -8980
- package/dist/media-state-CakgDCk4.d.mts +0 -215
- package/dist/realtime-contract-DwkCluo2.mjs +0 -1167
- package/dist/realtime-state-DT4uvrIV.d.mts +0 -16
package/dist/react.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as VoiceClientSnapshot, r as VoiceClient } from "./contract-
|
|
1
|
+
import { a as VoiceClientSnapshot, r as VoiceClient } from "./contract-D9_WuSxD.mjs";
|
|
2
2
|
import { JSX, ReactNode } from "react";
|
|
3
3
|
/** Inputs for the provider. */
|
|
4
4
|
interface VoiceClientProviderProps {
|
|
@@ -7,27 +7,6 @@ declare const BrowserRealtimeIdentitySchemas: {
|
|
|
7
7
|
type RealtimeSessionId = z.infer<typeof BrowserRealtimeIdentitySchemas.session>;
|
|
8
8
|
type RealtimeCorrelationId = z.infer<typeof BrowserRealtimeIdentitySchemas.correlation>;
|
|
9
9
|
type RealtimeItemId = z.infer<typeof BrowserRealtimeIdentitySchemas.item>;
|
|
10
|
-
/**
|
|
11
|
-
* Narrows an untrusted value to a realtime session id.
|
|
12
|
-
* @param value - The raw value from the wire.
|
|
13
|
-
* @returns The validated session id.
|
|
14
|
-
* @throws {ZodError} when the value is not a well-formed session id.
|
|
15
|
-
*/
|
|
16
|
-
declare function parseRealtimeSessionId(value: unknown): RealtimeSessionId;
|
|
17
|
-
/**
|
|
18
|
-
* Narrows an untrusted value to a realtime correlation id.
|
|
19
|
-
* @param value - The raw value from the wire.
|
|
20
|
-
* @returns The validated correlation id.
|
|
21
|
-
* @throws {ZodError} when the value is not a well-formed correlation id.
|
|
22
|
-
*/
|
|
23
|
-
declare function parseRealtimeCorrelationId(value: unknown): RealtimeCorrelationId;
|
|
24
|
-
/**
|
|
25
|
-
* Narrows an untrusted value to a realtime item id.
|
|
26
|
-
* @param value - The raw value from the wire.
|
|
27
|
-
* @returns The validated item id.
|
|
28
|
-
* @throws {ZodError} when the value is not a well-formed item id.
|
|
29
|
-
*/
|
|
30
|
-
declare function parseRealtimeItemId(value: unknown): RealtimeItemId;
|
|
31
10
|
interface RealtimeCorrelation {
|
|
32
11
|
readonly sessionId: RealtimeSessionId;
|
|
33
12
|
readonly correlationId: RealtimeCorrelationId;
|
|
@@ -147,4 +126,4 @@ interface RealtimeServer {
|
|
|
147
126
|
readonly stop: (request: StopRequest) => Promise<CommandOutcome>;
|
|
148
127
|
readonly recover: (request: RecoveryRequest) => Promise<CommandOutcome>;
|
|
149
128
|
}
|
|
150
|
-
export { RealtimeCorrelationId as a, RealtimeSemanticEvent as c, RealtimeState as d, RealtimeTranscriptRecord as f,
|
|
129
|
+
export { RealtimeCorrelationId as a, RealtimeSemanticEvent as c, RealtimeState as d, RealtimeTranscriptRecord as f, RealtimeCorrelation as i, RealtimeServer as l, AppendOutcome as n, RealtimeItemId as o, RealtimeUnsubscribe as p, CreateOfferSdp as r, RealtimePhase as s, AnswerSdp as t, RealtimeSessionId as u };
|
package/dist/realtime.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { INITIAL_REALTIME_STATE, REALTIME_PHASES, REALTIME_TRANSITIONS, type RealtimeCorrelation, type RealtimePhase, type RealtimeSemanticEvent, type RealtimeState, parseRealtimeCorrelationId, parseRealtimeItemId, parseRealtimeSessionId, transitionRealtimeState };
|
|
1
|
+
import { d as RealtimeState, s as RealtimePhase } from "./realtime-contract-C-1bMn-F.mjs";
|
|
2
|
+
export type { RealtimePhase, RealtimeState };
|
package/dist/realtime.mjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { a as transitionRealtimeState, n as REALTIME_PHASES, r as REALTIME_TRANSITIONS, t as INITIAL_REALTIME_STATE } from "./realtime-state-CTBmCjt1.mjs";
|
|
3
|
-
export { INITIAL_REALTIME_STATE, REALTIME_PHASES, REALTIME_TRANSITIONS, parseRealtimeCorrelationId, parseRealtimeItemId, parseRealtimeSessionId, transitionRealtimeState };
|
|
1
|
+
export {};
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./realtime-contract-wHmSyUIe.mjs";
|
|
1
|
+
import { C as SessionUserInput, c as OperationOutcome, r as WorkbenchRoleInstructions, s as DeepReadonly, u as additionalContextPolicy } from "./instructions-C6TkBWcp.mjs";
|
|
2
|
+
import { d as DynamicToolCallId, u as ChildId, v as ThreadId, y as TurnId } from "./identity-capabilities-3Q_2tJiT.mjs";
|
|
4
3
|
/**
|
|
5
4
|
* Bound a user prompt by UTF-8 bytes and construct its Codex text item.
|
|
6
5
|
* @param text The user prompt.
|
|
@@ -9,20 +8,6 @@ import "./realtime-contract-wHmSyUIe.mjs";
|
|
|
9
8
|
declare function createTextUserInput(text: string): Extract<SessionUserInput, {
|
|
10
9
|
type: "text";
|
|
11
10
|
}>;
|
|
12
|
-
/**
|
|
13
|
-
* The server half of one browser realtime session: it owns at most one active session, turns
|
|
14
|
-
* Codex notifications into state and transcript events, and answers the browser's requests with
|
|
15
|
-
* outcomes that say whether Codex actually received them.
|
|
16
|
-
* @param options - The session, identity authority, brief source and binding source.
|
|
17
|
-
* @returns The adapter.
|
|
18
|
-
*/
|
|
19
|
-
export declare function createCodexRealtimeAdapter(options: CodexRealtimeAdapterOptions): CodexRealtimeAdapter;
|
|
20
|
-
/**
|
|
21
|
-
* The manifest a store starts from before any epoch exists.
|
|
22
|
-
* @returns An empty manifest at revision zero.
|
|
23
|
-
*/
|
|
24
|
-
declare function emptyManifest(): EpochManifest;
|
|
25
|
-
declare const EMPTY_SPOKEN_APPROVAL_SNAPSHOT: SpokenApprovalSnapshot;
|
|
26
11
|
interface WaitOwner {
|
|
27
12
|
readonly child: ChildId;
|
|
28
13
|
readonly caller: ThreadId;
|
|
@@ -90,4 +75,4 @@ ${string}
|
|
|
90
75
|
* @returns The exact composed text and its SHA-256 digest.
|
|
91
76
|
*/
|
|
92
77
|
declare function composeWorkbenchRoleInstructions(role: keyof typeof CORE_ROLE_INSTRUCTIONS, domain: string): WorkbenchRoleInstructions;
|
|
93
|
-
export {
|
|
78
|
+
export { type DeepReadonly, type OperationOutcome, additionalContextPolicy, composeWorkbenchRoleInstructions, createCodexWaitGraph, createTextUserInput, readWorkbenchInstructionDocument };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as readWorkbenchInstructionDocument, r as composeWorkbenchRoleInstructions, v as additionalContextPolicy, y as createTextUserInput } from "./instructions-B-6HVmoD.mjs";
|
|
2
2
|
// src/runtime/workhorses/wait-graph/state/wait-graph.ts
|
|
3
3
|
/**
|
|
4
4
|
* Order two strings by code unit so every listing the graph produces is deterministic.
|
|
@@ -286,4 +286,4 @@ function createCodexWaitGraph() {
|
|
|
286
286
|
inspect
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
export {
|
|
289
|
+
export { additionalContextPolicy, composeWorkbenchRoleInstructions, createCodexWaitGraph, createTextUserInput, readWorkbenchInstructionDocument };
|
package/dist/schemas.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as RealtimeSessionId, c as BrowserCommandId, d as DynamicToolCallId, f as ItemId, g as QueuedSubmissionId, h as OperationId, l as ChildEpoch, m as LoginId, o as AnyIdentity, p as JsonRpcRequestId, s as ApprovalId, t as IdentityAuthorities, u as ChildId, v as ThreadId, y as TurnId } from "./identity-capabilities-3Q_2tJiT.mjs";
|
|
2
|
+
import { C as parseJsonValue, S as boundedText, _ as DynamicApprovalCanonicalEffect, g as BrowserDynamicApprovalResponse, h as BrowserDynamicApprovalEffect, o as BrowserSchemas, v as canonicalDynamicApprovalJson, x as IdentityContext, y as dynamicApprovalHashForCanonicalJson } from "./snapshot-DCl2vsJl.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Builds the complete browser model, every identity and DTO schema, bound to
|
|
5
5
|
* one identity authority so nothing the browser exchanges can name a child,
|
|
@@ -7062,14 +7062,4 @@ declare function createCodexBrowserModel(context: IdentityContext | IdentityAuth
|
|
|
7062
7062
|
message: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
7063
7063
|
}, import("zod/v4/core").$strict>]>;
|
|
7064
7064
|
};
|
|
7065
|
-
type
|
|
7066
|
-
declare const BROWSER_IDLE_SPOKEN_APPROVAL: Readonly<{
|
|
7067
|
-
kind: "spoken_approval";
|
|
7068
|
-
state: "idle";
|
|
7069
|
-
approval: null;
|
|
7070
|
-
gate: null;
|
|
7071
|
-
capturedUserFinal: null;
|
|
7072
|
-
settlement: null;
|
|
7073
|
-
reason: null;
|
|
7074
|
-
}>;
|
|
7075
|
-
export { BROWSER_IDLE_SPOKEN_APPROVAL, BROWSER_VOICE_CONTEXT_BRIEF_MAX_UTF8_BYTES, type BrowserDynamicApprovalEffect, type BrowserDynamicApprovalResponse, type BrowserSchemas, type CodexBrowserModel, type DynamicApprovalCanonicalEffect, JsonValueSchema, boundedText, canonicalDynamicApprovalJson, createCodexBrowserModel, dynamicApprovalHashForCanonicalJson };
|
|
7065
|
+
export { type BrowserDynamicApprovalEffect, type BrowserDynamicApprovalResponse, type BrowserSchemas, type DynamicApprovalCanonicalEffect, boundedText, canonicalDynamicApprovalJson, createCodexBrowserModel, dynamicApprovalHashForCanonicalJson, parseJsonValue };
|
package/dist/schemas.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as boundedText, r as canonicalDynamicApprovalJson, t as createCodexBrowserModel, i as dynamicApprovalHashForCanonicalJson, T as parseJsonValue } from "./model-MSyAviwx.mjs";
|