@karlorz/codexhost-cli-win32-arm64 0.13.3-4 → 0.13.3-6
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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +432 -31
- package/app/console-web.js +806 -186
- package/app/cpa-live-voice-hook.js +16310 -31
- package/app/desktop-controller.mjs +147 -37
- package/app/host-runtime.mjs +3535 -3126
- package/app/plugins/antigravity/plugin.mjs +77 -0
- package/app/plugins/claude-code/plugin.mjs +152 -29
- package/app/plugins/codebuddy/plugin.mjs +109 -32
- package/app/plugins/codex-usage/plugin.mjs +77 -0
- package/app/plugins/cursor-cli/plugin.mjs +120 -43
- package/app/plugins/deepseek-harness/plugin.mjs +82 -5
- package/app/plugins/grok/plugin.mjs +138 -24
- package/app/plugins/hermes/plugin.mjs +77 -0
- package/app/plugins/kimi-code/plugin.mjs +99 -22
- package/app/plugins/kiro-cli/plugin.mjs +99 -22
- package/app/plugins/omp/plugin.mjs +92 -15
- package/app/plugins/opencode/plugin.mjs +77 -0
- package/app/plugins/pi/plugin.mjs +98 -21
- package/app/plugins/qoder/plugin.mjs +85 -8
- package/app/plugins/qoder-cn/plugin.mjs +85 -8
- package/app/plugins/workbuddy/plugin.mjs +109 -32
- package/app/plugins/zcode/plugin.mjs +100 -23
- package/app/renderer-extension.js +2238 -860
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
|
@@ -15257,6 +15257,36 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15257
15257
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15258
15258
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15259
15259
|
|
|
15260
|
+
// ../../shared-contracts/dist/realtime-call.js
|
|
15261
|
+
var REALTIME_CALL_FORWARDED_HEADERS = [
|
|
15262
|
+
"openai-alpha",
|
|
15263
|
+
"thread-id",
|
|
15264
|
+
"session-id",
|
|
15265
|
+
"originator",
|
|
15266
|
+
"x-codex-turn-metadata"
|
|
15267
|
+
];
|
|
15268
|
+
var FORWARDED_HEADERS = new Set(REALTIME_CALL_FORWARDED_HEADERS);
|
|
15269
|
+
var REALTIME_CALL_ID_PATTERN = /^rtc_[A-Za-z0-9_-]{1,128}$/u;
|
|
15270
|
+
var requestId = external_exports.string().min(1).max(128);
|
|
15271
|
+
var realtimeCallParamsSchema = external_exports.discriminatedUnion("operation", [
|
|
15272
|
+
external_exports.object({
|
|
15273
|
+
operation: external_exports.literal("create"),
|
|
15274
|
+
requestId,
|
|
15275
|
+
body: external_exports.string().min(1).max(16 << 20),
|
|
15276
|
+
headers: external_exports.record(external_exports.string(), external_exports.string()).default({})
|
|
15277
|
+
}),
|
|
15278
|
+
external_exports.object({ operation: external_exports.literal("cancel"), requestId }),
|
|
15279
|
+
external_exports.object({
|
|
15280
|
+
operation: external_exports.literal("hangup"),
|
|
15281
|
+
callId: external_exports.string().regex(REALTIME_CALL_ID_PATTERN)
|
|
15282
|
+
})
|
|
15283
|
+
]);
|
|
15284
|
+
var realtimeCallResponseSchema = external_exports.object({
|
|
15285
|
+
status: external_exports.number().int().min(200).max(599),
|
|
15286
|
+
body: external_exports.string(),
|
|
15287
|
+
headers: external_exports.record(external_exports.string(), external_exports.string())
|
|
15288
|
+
});
|
|
15289
|
+
|
|
15260
15290
|
// ../../shared-contracts/dist/console.js
|
|
15261
15291
|
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
15262
15292
|
title: external_exports.string().trim().min(1).max(200),
|
|
@@ -15269,6 +15299,7 @@ var consoleOpenResultSchema = external_exports.strictObject({
|
|
|
15269
15299
|
url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
|
|
15270
15300
|
});
|
|
15271
15301
|
var CONSOLE_HOST_METHODS = Object.freeze([
|
|
15302
|
+
"codexhost/voice/gateway-status",
|
|
15272
15303
|
"codexhost/console/remote-connections",
|
|
15273
15304
|
"codexhost/runtime/status",
|
|
15274
15305
|
"codexhost/remote/ssh-setup",
|
|
@@ -16378,6 +16409,52 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
16378
16409
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16379
16410
|
]);
|
|
16380
16411
|
|
|
16412
|
+
// ../../shared-contracts/dist/voice-settings.js
|
|
16413
|
+
var voiceRoutesSchema = external_exports.strictObject({
|
|
16414
|
+
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
16415
|
+
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
16416
|
+
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
16417
|
+
});
|
|
16418
|
+
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
16419
|
+
chatExperience: "chatgpt",
|
|
16420
|
+
chatConnection: "desktop",
|
|
16421
|
+
workConnection: "gateway"
|
|
16422
|
+
});
|
|
16423
|
+
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
16424
|
+
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
16425
|
+
external_exports.strictObject({
|
|
16426
|
+
operation: external_exports.literal("get"),
|
|
16427
|
+
runtime: external_exports.strictObject({
|
|
16428
|
+
id: external_exports.string().uuid(),
|
|
16429
|
+
revision: external_exports.string().max(64),
|
|
16430
|
+
activeCall: external_exports.boolean()
|
|
16431
|
+
}).optional()
|
|
16432
|
+
}),
|
|
16433
|
+
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
16434
|
+
external_exports.strictObject({
|
|
16435
|
+
operation: external_exports.literal("set"),
|
|
16436
|
+
settings: voiceSettingsSchema,
|
|
16437
|
+
revision: external_exports.string().max(64)
|
|
16438
|
+
}),
|
|
16439
|
+
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
16440
|
+
]);
|
|
16441
|
+
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
16442
|
+
settings: voiceSettingsSchema,
|
|
16443
|
+
initialized: external_exports.boolean(),
|
|
16444
|
+
revision: external_exports.string(),
|
|
16445
|
+
activeInject: external_exports.boolean().nullable(),
|
|
16446
|
+
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16447
|
+
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16448
|
+
routesActive: external_exports.boolean().nullable(),
|
|
16449
|
+
activeCall: external_exports.boolean().nullable(),
|
|
16450
|
+
gatewayReady: external_exports.boolean().nullable(),
|
|
16451
|
+
restartAvailable: external_exports.boolean(),
|
|
16452
|
+
restart: external_exports.strictObject({
|
|
16453
|
+
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
16454
|
+
error: external_exports.string().nullable()
|
|
16455
|
+
})
|
|
16456
|
+
});
|
|
16457
|
+
|
|
16381
16458
|
// ../../shared-contracts/dist/index.js
|
|
16382
16459
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16383
16460
|
|
|
@@ -18329,8 +18406,8 @@ function historyUsageRequests(contents, historical) {
|
|
|
18329
18406
|
}
|
|
18330
18407
|
const requests = [];
|
|
18331
18408
|
let complete = true;
|
|
18332
|
-
for (const [
|
|
18333
|
-
const request = providerUsageRequest(
|
|
18409
|
+
for (const [requestId2, data] of usages) {
|
|
18410
|
+
const request = providerUsageRequest(requestId2, data, historical);
|
|
18334
18411
|
if (request)
|
|
18335
18412
|
requests.push(request);
|
|
18336
18413
|
else
|
|
@@ -18338,7 +18415,7 @@ function historyUsageRequests(contents, historical) {
|
|
|
18338
18415
|
}
|
|
18339
18416
|
return { requests, complete };
|
|
18340
18417
|
}
|
|
18341
|
-
function providerUsageRequest(
|
|
18418
|
+
function providerUsageRequest(requestId2, data, historical) {
|
|
18342
18419
|
const usage = record2(data.rawUsage);
|
|
18343
18420
|
const model2 = text(data.model) || text(data.requestModelId);
|
|
18344
18421
|
const input = usageCount(usage.prompt_tokens);
|
|
@@ -18352,7 +18429,7 @@ function providerUsageRequest(requestId, data, historical) {
|
|
|
18352
18429
|
}
|
|
18353
18430
|
try {
|
|
18354
18431
|
return parseHostUsageRequest({
|
|
18355
|
-
requestId,
|
|
18432
|
+
requestId: requestId2,
|
|
18356
18433
|
...historical ? { historical: true } : {},
|
|
18357
18434
|
model: model2,
|
|
18358
18435
|
inputTokens: input,
|
|
@@ -20414,8 +20491,8 @@ var ConnectionContext = class {
|
|
|
20414
20491
|
/**
|
|
20415
20492
|
* Sends a protocol-level request cancellation notification.
|
|
20416
20493
|
*/
|
|
20417
|
-
sendCancelRequest(
|
|
20418
|
-
return this.connection.sendCancelRequest(
|
|
20494
|
+
sendCancelRequest(requestId2) {
|
|
20495
|
+
return this.connection.sendCancelRequest(requestId2);
|
|
20419
20496
|
}
|
|
20420
20497
|
/**
|
|
20421
20498
|
* Registers a handler that can be disposed independently.
|
|
@@ -20600,8 +20677,8 @@ var Connection = class {
|
|
|
20600
20677
|
/**
|
|
20601
20678
|
* Sends a protocol-level request cancellation notification.
|
|
20602
20679
|
*/
|
|
20603
|
-
sendCancelRequest(
|
|
20604
|
-
return this.sendNotification(CANCEL_REQUEST_METHOD, { requestId });
|
|
20680
|
+
sendCancelRequest(requestId2) {
|
|
20681
|
+
return this.sendNotification(CANCEL_REQUEST_METHOD, { requestId: requestId2 });
|
|
20605
20682
|
}
|
|
20606
20683
|
/**
|
|
20607
20684
|
* Sends a JSON-RPC notification.
|
|
@@ -20909,15 +20986,15 @@ var Connection = class {
|
|
|
20909
20986
|
if (message.method !== CANCEL_REQUEST_METHOD) {
|
|
20910
20987
|
return;
|
|
20911
20988
|
}
|
|
20912
|
-
const
|
|
20913
|
-
if (
|
|
20989
|
+
const requestId2 = cancelRequestId(message.params);
|
|
20990
|
+
if (requestId2 === void 0) {
|
|
20914
20991
|
return;
|
|
20915
20992
|
}
|
|
20916
|
-
const controller = this.incomingRequests.get(
|
|
20993
|
+
const controller = this.incomingRequests.get(requestId2);
|
|
20917
20994
|
if (!controller || controller.signal.aborted) {
|
|
20918
20995
|
return;
|
|
20919
20996
|
}
|
|
20920
|
-
controller.abort(RequestError.requestCancelled({ requestId }));
|
|
20997
|
+
controller.abort(RequestError.requestCancelled({ requestId: requestId2 }));
|
|
20921
20998
|
}
|
|
20922
20999
|
closedReason() {
|
|
20923
21000
|
return this.abortController.signal.reason ?? new Error("ACP connection closed");
|
|
@@ -21383,12 +21460,12 @@ var AcpContext = class {
|
|
|
21383
21460
|
}
|
|
21384
21461
|
};
|
|
21385
21462
|
var AgentContext = class _AgentContext extends AcpContext {
|
|
21386
|
-
constructor(cx,
|
|
21387
|
-
super(cx,
|
|
21463
|
+
constructor(cx, requestId2) {
|
|
21464
|
+
super(cx, requestId2);
|
|
21388
21465
|
}
|
|
21389
21466
|
/** @internal */
|
|
21390
|
-
static create(cx,
|
|
21391
|
-
return new _AgentContext(cx,
|
|
21467
|
+
static create(cx, requestId2) {
|
|
21468
|
+
return new _AgentContext(cx, requestId2);
|
|
21392
21469
|
}
|
|
21393
21470
|
request(method, params, options) {
|
|
21394
21471
|
const spec = clientRequestSpecsByMethod[method];
|
|
@@ -21399,12 +21476,12 @@ var AgentContext = class _AgentContext extends AcpContext {
|
|
|
21399
21476
|
}
|
|
21400
21477
|
};
|
|
21401
21478
|
var ClientContext = class _ClientContext extends AcpContext {
|
|
21402
|
-
constructor(cx,
|
|
21403
|
-
super(cx,
|
|
21479
|
+
constructor(cx, requestId2) {
|
|
21480
|
+
super(cx, requestId2);
|
|
21404
21481
|
}
|
|
21405
21482
|
/** @internal */
|
|
21406
|
-
static create(cx,
|
|
21407
|
-
return new _ClientContext(cx,
|
|
21483
|
+
static create(cx, requestId2) {
|
|
21484
|
+
return new _ClientContext(cx, requestId2);
|
|
21408
21485
|
}
|
|
21409
21486
|
/** @internal */
|
|
21410
21487
|
[startActiveSession](params, options) {
|
|
@@ -21837,10 +21914,10 @@ var agentRequestSpecsByMethod = specsByMethod(agentRequestSpecs);
|
|
|
21837
21914
|
var agentNotificationSpecsByMethod = specsByMethod(agentNotificationSpecs);
|
|
21838
21915
|
var clientRequestSpecsByMethod = specsByMethod(clientRequestSpecs);
|
|
21839
21916
|
var clientNotificationSpecsByMethod = specsByMethod(clientNotificationSpecs);
|
|
21840
|
-
function agentRequestContext(params, client2, signal,
|
|
21917
|
+
function agentRequestContext(params, client2, signal, requestId2) {
|
|
21841
21918
|
return {
|
|
21842
21919
|
params,
|
|
21843
|
-
requestId,
|
|
21920
|
+
requestId: requestId2,
|
|
21844
21921
|
signal,
|
|
21845
21922
|
client: client2
|
|
21846
21923
|
};
|
|
@@ -21852,10 +21929,10 @@ function agentNotificationContext(params, client2, signal) {
|
|
|
21852
21929
|
client: client2
|
|
21853
21930
|
};
|
|
21854
21931
|
}
|
|
21855
|
-
function clientRequestContext(params, agent, signal,
|
|
21932
|
+
function clientRequestContext(params, agent, signal, requestId2) {
|
|
21856
21933
|
return {
|
|
21857
21934
|
params,
|
|
21858
|
-
requestId,
|
|
21935
|
+
requestId: requestId2,
|
|
21859
21936
|
signal,
|
|
21860
21937
|
agent
|
|
21861
21938
|
};
|
|
@@ -21980,7 +22057,7 @@ var AgentApp = class {
|
|
|
21980
22057
|
return this.notification(spec, handlerOrParams);
|
|
21981
22058
|
}
|
|
21982
22059
|
request(spec, handler) {
|
|
21983
|
-
registerAppRequest(this.builder, spec, (params, cx, signal,
|
|
22060
|
+
registerAppRequest(this.builder, spec, (params, cx, signal, requestId2) => agentRequestContext(params, AgentContext.create(cx, requestId2), signal, requestId2), handler);
|
|
21984
22061
|
return this;
|
|
21985
22062
|
}
|
|
21986
22063
|
notification(spec, handler) {
|
|
@@ -22080,7 +22157,7 @@ var ClientApp = class {
|
|
|
22080
22157
|
return this.notification(spec, handlerOrParams);
|
|
22081
22158
|
}
|
|
22082
22159
|
request(spec, handler) {
|
|
22083
|
-
registerAppRequest(this.builder, spec, (params, cx, signal,
|
|
22160
|
+
registerAppRequest(this.builder, spec, (params, cx, signal, requestId2) => clientRequestContext(params, ClientContext.create(cx, requestId2), signal, requestId2), handler);
|
|
22084
22161
|
return this;
|
|
22085
22162
|
}
|
|
22086
22163
|
notification(spec, handler) {
|
|
@@ -24238,8 +24315,8 @@ var CodeBuddyChildObserver = class {
|
|
|
24238
24315
|
}
|
|
24239
24316
|
return next;
|
|
24240
24317
|
}
|
|
24241
|
-
async locate(
|
|
24242
|
-
if (!
|
|
24318
|
+
async locate(requestId2) {
|
|
24319
|
+
if (!requestId2)
|
|
24243
24320
|
return void 0;
|
|
24244
24321
|
const directory = await this.#directory();
|
|
24245
24322
|
const files = (await readdir2(directory, { withFileTypes: true })).filter((entry) => entry.isFile() && /^agent-[\w-]+\.jsonl$/u.test(entry.name));
|
|
@@ -24249,7 +24326,7 @@ var CodeBuddyChildObserver = class {
|
|
|
24249
24326
|
for (const file2 of files) {
|
|
24250
24327
|
const id = file2.name.slice(0, -6), data = await this.#child(directory, id);
|
|
24251
24328
|
const first = data.entries.find((row) => row.type === "message" && row.role === "user");
|
|
24252
|
-
if (record2(first?.providerData).conversationRequestId ===
|
|
24329
|
+
if (record2(first?.providerData).conversationRequestId === requestId2)
|
|
24253
24330
|
matches.push(id);
|
|
24254
24331
|
}
|
|
24255
24332
|
if (matches.length > 1)
|
|
@@ -24334,9 +24411,9 @@ var CodeBuddySubagents = class {
|
|
|
24334
24411
|
if (parentCallId) {
|
|
24335
24412
|
const call2 = this.#calls.get(parentCallId);
|
|
24336
24413
|
if (call2 && !call2.observationDone) {
|
|
24337
|
-
const
|
|
24338
|
-
if (
|
|
24339
|
-
call2.requestId =
|
|
24414
|
+
const requestId2 = text(meta3["codebuddy.ai/conversationRequestId"]);
|
|
24415
|
+
if (requestId2)
|
|
24416
|
+
call2.requestId = requestId2;
|
|
24340
24417
|
const progress = update.sessionUpdate === "tool_call" && meta3["codebuddy.ai/toolArgumentsComplete"] ? text(update.title) : "";
|
|
24341
24418
|
if (progress)
|
|
24342
24419
|
this.#update(call2, { resultSummary: progress.slice(0, 2e3) });
|
|
@@ -14775,6 +14775,36 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
14775
14775
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
14776
14776
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
14777
14777
|
|
|
14778
|
+
// ../../shared-contracts/dist/realtime-call.js
|
|
14779
|
+
var REALTIME_CALL_FORWARDED_HEADERS = [
|
|
14780
|
+
"openai-alpha",
|
|
14781
|
+
"thread-id",
|
|
14782
|
+
"session-id",
|
|
14783
|
+
"originator",
|
|
14784
|
+
"x-codex-turn-metadata"
|
|
14785
|
+
];
|
|
14786
|
+
var FORWARDED_HEADERS = new Set(REALTIME_CALL_FORWARDED_HEADERS);
|
|
14787
|
+
var REALTIME_CALL_ID_PATTERN = /^rtc_[A-Za-z0-9_-]{1,128}$/u;
|
|
14788
|
+
var requestId = external_exports.string().min(1).max(128);
|
|
14789
|
+
var realtimeCallParamsSchema = external_exports.discriminatedUnion("operation", [
|
|
14790
|
+
external_exports.object({
|
|
14791
|
+
operation: external_exports.literal("create"),
|
|
14792
|
+
requestId,
|
|
14793
|
+
body: external_exports.string().min(1).max(16 << 20),
|
|
14794
|
+
headers: external_exports.record(external_exports.string(), external_exports.string()).default({})
|
|
14795
|
+
}),
|
|
14796
|
+
external_exports.object({ operation: external_exports.literal("cancel"), requestId }),
|
|
14797
|
+
external_exports.object({
|
|
14798
|
+
operation: external_exports.literal("hangup"),
|
|
14799
|
+
callId: external_exports.string().regex(REALTIME_CALL_ID_PATTERN)
|
|
14800
|
+
})
|
|
14801
|
+
]);
|
|
14802
|
+
var realtimeCallResponseSchema = external_exports.object({
|
|
14803
|
+
status: external_exports.number().int().min(200).max(599),
|
|
14804
|
+
body: external_exports.string(),
|
|
14805
|
+
headers: external_exports.record(external_exports.string(), external_exports.string())
|
|
14806
|
+
});
|
|
14807
|
+
|
|
14778
14808
|
// ../../shared-contracts/dist/console.js
|
|
14779
14809
|
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
14780
14810
|
title: external_exports.string().trim().min(1).max(200),
|
|
@@ -14787,6 +14817,7 @@ var consoleOpenResultSchema = external_exports.strictObject({
|
|
|
14787
14817
|
url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
|
|
14788
14818
|
});
|
|
14789
14819
|
var CONSOLE_HOST_METHODS = Object.freeze([
|
|
14820
|
+
"codexhost/voice/gateway-status",
|
|
14790
14821
|
"codexhost/console/remote-connections",
|
|
14791
14822
|
"codexhost/runtime/status",
|
|
14792
14823
|
"codexhost/remote/ssh-setup",
|
|
@@ -15891,6 +15922,52 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
15891
15922
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
15892
15923
|
]);
|
|
15893
15924
|
|
|
15925
|
+
// ../../shared-contracts/dist/voice-settings.js
|
|
15926
|
+
var voiceRoutesSchema = external_exports.strictObject({
|
|
15927
|
+
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
15928
|
+
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
15929
|
+
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
15930
|
+
});
|
|
15931
|
+
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
15932
|
+
chatExperience: "chatgpt",
|
|
15933
|
+
chatConnection: "desktop",
|
|
15934
|
+
workConnection: "gateway"
|
|
15935
|
+
});
|
|
15936
|
+
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
15937
|
+
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
15938
|
+
external_exports.strictObject({
|
|
15939
|
+
operation: external_exports.literal("get"),
|
|
15940
|
+
runtime: external_exports.strictObject({
|
|
15941
|
+
id: external_exports.string().uuid(),
|
|
15942
|
+
revision: external_exports.string().max(64),
|
|
15943
|
+
activeCall: external_exports.boolean()
|
|
15944
|
+
}).optional()
|
|
15945
|
+
}),
|
|
15946
|
+
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
15947
|
+
external_exports.strictObject({
|
|
15948
|
+
operation: external_exports.literal("set"),
|
|
15949
|
+
settings: voiceSettingsSchema,
|
|
15950
|
+
revision: external_exports.string().max(64)
|
|
15951
|
+
}),
|
|
15952
|
+
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
15953
|
+
]);
|
|
15954
|
+
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
15955
|
+
settings: voiceSettingsSchema,
|
|
15956
|
+
initialized: external_exports.boolean(),
|
|
15957
|
+
revision: external_exports.string(),
|
|
15958
|
+
activeInject: external_exports.boolean().nullable(),
|
|
15959
|
+
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15960
|
+
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15961
|
+
routesActive: external_exports.boolean().nullable(),
|
|
15962
|
+
activeCall: external_exports.boolean().nullable(),
|
|
15963
|
+
gatewayReady: external_exports.boolean().nullable(),
|
|
15964
|
+
restartAvailable: external_exports.boolean(),
|
|
15965
|
+
restart: external_exports.strictObject({
|
|
15966
|
+
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
15967
|
+
error: external_exports.string().nullable()
|
|
15968
|
+
})
|
|
15969
|
+
});
|
|
15970
|
+
|
|
15894
15971
|
// ../../shared-contracts/dist/index.js
|
|
15895
15972
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
15896
15973
|
|