@karlorz/codexhost-cli-win32-x64 0.13.3-4 → 0.13.3-5

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.
@@ -15050,6 +15050,36 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
15050
15050
  var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
15051
15051
  var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
15052
15052
 
15053
+ // packages/shared-contracts/dist/realtime-call.js
15054
+ var REALTIME_CALL_FORWARDED_HEADERS = [
15055
+ "openai-alpha",
15056
+ "thread-id",
15057
+ "session-id",
15058
+ "originator",
15059
+ "x-codex-turn-metadata"
15060
+ ];
15061
+ var FORWARDED_HEADERS = new Set(REALTIME_CALL_FORWARDED_HEADERS);
15062
+ var REALTIME_CALL_ID_PATTERN = /^rtc_[A-Za-z0-9_-]{1,128}$/u;
15063
+ var requestId = external_exports.string().min(1).max(128);
15064
+ var realtimeCallParamsSchema = external_exports.discriminatedUnion("operation", [
15065
+ external_exports.object({
15066
+ operation: external_exports.literal("create"),
15067
+ requestId,
15068
+ body: external_exports.string().min(1).max(16 << 20),
15069
+ headers: external_exports.record(external_exports.string(), external_exports.string()).default({})
15070
+ }),
15071
+ external_exports.object({ operation: external_exports.literal("cancel"), requestId }),
15072
+ external_exports.object({
15073
+ operation: external_exports.literal("hangup"),
15074
+ callId: external_exports.string().regex(REALTIME_CALL_ID_PATTERN)
15075
+ })
15076
+ ]);
15077
+ var realtimeCallResponseSchema = external_exports.object({
15078
+ status: external_exports.number().int().min(200).max(599),
15079
+ body: external_exports.string(),
15080
+ headers: external_exports.record(external_exports.string(), external_exports.string())
15081
+ });
15082
+
15053
15083
  // packages/shared-contracts/dist/console.js
15054
15084
  var consoleAnnouncementSchema = external_exports.strictObject({
15055
15085
  title: external_exports.string().trim().min(1).max(200),
@@ -16705,7 +16735,7 @@ function createDraftPrewarmPolicyBridge(manager, bridge, hostId2, target, prewar
16705
16735
  bridgeReadyReject?.(error51);
16706
16736
  bridgeReadyReject = null;
16707
16737
  bridgeReadyResolve = null;
16708
- for (const requestId of bridgeRequests.keys()) bridge.onError(requestId, error51);
16738
+ for (const requestId2 of bridgeRequests.keys()) bridge.onError(requestId2, error51);
16709
16739
  bridgeRequests.clear();
16710
16740
  if (isRemoteControlHost && terminate) {
16711
16741
  void Promise.resolve(
@@ -17186,7 +17216,7 @@ function createDraftPrewarmPolicyBridge(manager, bridge, hostId2, target, prewar
17186
17216
  bridgeState = "disposed";
17187
17217
  const disposedError = transportError("was disposed");
17188
17218
  bridgeReadyReject?.(disposedError);
17189
- for (const requestId of bridgeRequests.keys()) bridge.onError(requestId, disposedError);
17219
+ for (const requestId2 of bridgeRequests.keys()) bridge.onError(requestId2, disposedError);
17190
17220
  bridgeRequests.clear();
17191
17221
  bridgeServerRequests.clear();
17192
17222
  knownExternalThreadIds.clear();
@@ -17984,7 +18014,8 @@ async function runDesktopController(options, signal, dependencies = defaultDepen
17984
18014
  const overlayPath = bootstrap ? path2.join(path2.dirname(options.rendererPath), "cpa-live-voice-hook.js") : void 0;
17985
18015
  const [rendererSource, overlayBundle] = overlayPath ? await Promise.all([rendererRead, dependencies.readRenderer(overlayPath)]) : [await rendererRead, void 0];
17986
18016
  if (rendererSource.trim().length === 0) throw new Error("production Renderer Bundle is empty");
17987
- const overlayHookSource = bootstrap && overlayBundle && overlayBundle.trim().length > 0 ? `${bootstrap}${overlayBundle}` : void 0;
18017
+ const overlayHookSource = bootstrap && overlayBundle && overlayBundle.trim().length > 0 ? `${RENDERER_CSP_BOOTSTRAP}
18018
+ ${bootstrap}${overlayBundle}` : void 0;
17988
18019
  startupTrace("installing Renderer Session");
17989
18020
  const installed = await installProductionSession(
17990
18021
  {