@karlorz/codexhost-cli-win32-x64 0.18.0-0 → 0.19.0-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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +317 -59
- package/app/console-web.js +1889 -141
- package/app/cpa-live-voice-hook.js +1938 -428
- package/app/desktop-controller.mjs +2081 -212
- package/app/host-runtime.mjs +14818 -3381
- package/app/overlay-voice-bootstrap.js +1616 -0
- package/app/plugins/antigravity/plugin.mjs +963 -324
- package/app/plugins/claude-code/plugin.mjs +395 -67
- package/app/plugins/codebuddy/plugin.mjs +409 -76
- package/app/plugins/codex-usage/plugin.mjs +316 -58
- package/app/plugins/copilot/plugin.mjs +316 -58
- package/app/plugins/cursor-cli/plugin.mjs +391 -68
- package/app/plugins/deepseek-harness/manifest.json +2 -2
- package/app/plugins/deepseek-harness/plugin.mjs +343 -63
- package/app/plugins/devin/plugin.mjs +316 -58
- package/app/plugins/grok/plugin.mjs +1350 -1026
- package/app/plugins/hermes/plugin.mjs +395 -70
- package/app/plugins/kimi-code/plugin.mjs +316 -58
- package/app/plugins/kiro-cli/plugin.mjs +544 -74
- package/app/plugins/omp/plugin.mjs +1264 -902
- package/app/plugins/opencode/plugin.mjs +316 -58
- package/app/plugins/pi/plugin.mjs +1189 -862
- package/app/plugins/qoder/plugin.mjs +318 -62
- package/app/plugins/qoder-cn/plugin.mjs +318 -62
- package/app/plugins/qwen-code/plugin.mjs +425 -150
- package/app/plugins/workbuddy/plugin.mjs +409 -76
- package/app/plugins/zcode/plugin.mjs +389 -61
- package/app/renderer-extension.js +11830 -8531
- package/app/voice-profile-pins.json +25 -0
- package/app/voice-qualification.json +4 -0
- package/app/web/assets/index-BCyiiDDL.js +199 -0
- package/app/web/assets/index-BNQIOOHE.css +1 -0
- package/app/web/codexhost-settings.js +1895 -190
- package/app/web/index.html +2 -2
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +69 -69
- package/app/web/plugins/deepseek-ai__dsh-client-file-upload/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-locale/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-attachment/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +129 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +65 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +95 -93
- package/app/web/plugins/deepseek-ai__dsh-client-ui-input-trigger/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-model-selection/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.excel.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-files/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +79 -79
- package/app/web/plugins/deepseek-ai__dsh-client-ui-user-questions/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +11 -11
- package/app/web-modules/server.mjs +3279 -1676
- 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
- package/app/web/assets/index-Bs17Kuah.js +0 -199
- package/app/web/assets/index-C3lniEH1.css +0 -1
|
@@ -14552,7 +14552,7 @@ var harnessGoalSetSchema = external_exports.object({
|
|
|
14552
14552
|
origin: goalOriginSchema
|
|
14553
14553
|
});
|
|
14554
14554
|
|
|
14555
|
-
// ../../shared-contracts/dist/realtime-call.js
|
|
14555
|
+
// ../../shared-contracts/dist/realtime-call-core.js
|
|
14556
14556
|
var REALTIME_CALL_FORWARDED_HEADERS = [
|
|
14557
14557
|
"openai-alpha",
|
|
14558
14558
|
"thread-id",
|
|
@@ -14561,7 +14561,9 @@ var REALTIME_CALL_FORWARDED_HEADERS = [
|
|
|
14561
14561
|
"x-codex-turn-metadata"
|
|
14562
14562
|
];
|
|
14563
14563
|
var FORWARDED_HEADERS = new Set(REALTIME_CALL_FORWARDED_HEADERS);
|
|
14564
|
-
var REALTIME_CALL_ID_PATTERN = /^
|
|
14564
|
+
var REALTIME_CALL_ID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/u;
|
|
14565
|
+
|
|
14566
|
+
// ../../shared-contracts/dist/realtime-call.js
|
|
14565
14567
|
var requestId = external_exports.string().min(1).max(128);
|
|
14566
14568
|
var realtimeCallParamsSchema = external_exports.discriminatedUnion("operation", [
|
|
14567
14569
|
external_exports.object({
|
|
@@ -14616,12 +14618,6 @@ var RELAY_PUBLIC_ORIGIN = "https://codexhost.karldigi.dev";
|
|
|
14616
14618
|
var RELAY_PUBLIC_RESOURCE = `${RELAY_PUBLIC_ORIGIN}/mcp`;
|
|
14617
14619
|
var RELAY_WAIT_TIMEOUT_MAX_MS = 25e3;
|
|
14618
14620
|
var RELAY_MAX_BODY_BYTES = 2 * 1024 * 1024;
|
|
14619
|
-
var RELAY_ALLOWED_ROUTES = [
|
|
14620
|
-
"/v1/enroll/status",
|
|
14621
|
-
"/v1/thread/read",
|
|
14622
|
-
"/v1/thread/wait",
|
|
14623
|
-
"/v1/thread/send"
|
|
14624
|
-
];
|
|
14625
14621
|
var relayLinkHelloSchema = external_exports.strictObject({
|
|
14626
14622
|
v: external_exports.literal(RELAY_LINK_PROTOCOL_VERSION),
|
|
14627
14623
|
secret: external_exports.string().min(1).max(4096)
|
|
@@ -14633,8 +14629,11 @@ var relayLinkHelloAckSchema = external_exports.strictObject({
|
|
|
14633
14629
|
var relayLinkRequestSchema = external_exports.strictObject({
|
|
14634
14630
|
requestId: external_exports.string().min(1).max(128),
|
|
14635
14631
|
deadlineMs: external_exports.number().int().positive(),
|
|
14636
|
-
route: external_exports.
|
|
14637
|
-
body: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
14632
|
+
route: external_exports.string().min(1).max(128),
|
|
14633
|
+
body: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
14634
|
+
operationalClient: external_exports.string().min(1).max(64).optional(),
|
|
14635
|
+
oauthClientId: external_exports.string().min(1).max(128).optional(),
|
|
14636
|
+
dispatchGrant: external_exports.enum(["legacy-four", "full-dispatch"]).optional()
|
|
14638
14637
|
});
|
|
14639
14638
|
var relayLinkErrorSchema = external_exports.strictObject({
|
|
14640
14639
|
code: external_exports.string().min(1).max(64),
|
|
@@ -14678,6 +14677,204 @@ var relayEnrollStatusResultSchema = external_exports.strictObject({
|
|
|
14678
14677
|
runtime: external_exports.enum(["reachable", "unreachable"])
|
|
14679
14678
|
});
|
|
14680
14679
|
|
|
14680
|
+
// ../../shared-contracts/dist/external-clients.js
|
|
14681
|
+
var EXTERNAL_CLIENT_NAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$/u;
|
|
14682
|
+
var externalClientNameSchema = external_exports.string().trim().min(1).max(64).regex(EXTERNAL_CLIENT_NAME_PATTERN);
|
|
14683
|
+
var externalClientAccessSchema = external_exports.enum(["all-threads", "selected-workspaces"]);
|
|
14684
|
+
var externalClientConnectionModeSchema = external_exports.enum(["public-relay", "local", "direct"]);
|
|
14685
|
+
var externalClientDispatchGrantSchema = external_exports.enum(["legacy-four", "full-dispatch"]);
|
|
14686
|
+
var workspacePathSchema = external_exports.string().trim().min(1).max(4096);
|
|
14687
|
+
var directUrlSchema = external_exports.string().trim().max(2048);
|
|
14688
|
+
var externalClientPublicViewSchema = external_exports.strictObject({
|
|
14689
|
+
name: externalClientNameSchema,
|
|
14690
|
+
createdAt: external_exports.string().min(1).max(64),
|
|
14691
|
+
access: externalClientAccessSchema,
|
|
14692
|
+
workspaces: external_exports.array(workspacePathSchema).max(64),
|
|
14693
|
+
connectionMode: externalClientConnectionModeSchema,
|
|
14694
|
+
dispatchGrant: externalClientDispatchGrantSchema,
|
|
14695
|
+
oauthClientId: external_exports.string().trim().min(1).max(128).optional(),
|
|
14696
|
+
directUrl: directUrlSchema.optional(),
|
|
14697
|
+
mcpUrl: external_exports.string().min(1).max(2048).optional(),
|
|
14698
|
+
mcpUrlNote: external_exports.string().min(1).max(512).optional()
|
|
14699
|
+
});
|
|
14700
|
+
var externalClientListParamsSchema = external_exports.strictObject({});
|
|
14701
|
+
var externalClientListResultSchema = external_exports.strictObject({
|
|
14702
|
+
clients: external_exports.array(externalClientPublicViewSchema).max(256)
|
|
14703
|
+
});
|
|
14704
|
+
var externalClientWriteFieldsSchema = external_exports.strictObject({
|
|
14705
|
+
access: externalClientAccessSchema.optional(),
|
|
14706
|
+
workspaces: external_exports.array(workspacePathSchema).max(64).optional(),
|
|
14707
|
+
connectionMode: externalClientConnectionModeSchema.optional(),
|
|
14708
|
+
dispatchGrant: externalClientDispatchGrantSchema.optional(),
|
|
14709
|
+
oauthClientId: external_exports.string().trim().min(1).max(128).optional(),
|
|
14710
|
+
directUrl: directUrlSchema.optional()
|
|
14711
|
+
});
|
|
14712
|
+
var externalClientCreateParamsSchema = externalClientWriteFieldsSchema.extend({
|
|
14713
|
+
name: externalClientNameSchema
|
|
14714
|
+
});
|
|
14715
|
+
var externalClientCreateResultSchema = externalClientPublicViewSchema.extend({
|
|
14716
|
+
token: external_exports.string().min(1).max(256).optional()
|
|
14717
|
+
});
|
|
14718
|
+
var externalClientUpdateParamsSchema = externalClientWriteFieldsSchema.extend({
|
|
14719
|
+
name: externalClientNameSchema,
|
|
14720
|
+
clearOauthClientId: external_exports.literal(true).optional()
|
|
14721
|
+
});
|
|
14722
|
+
var externalClientRevokeParamsSchema = external_exports.strictObject({
|
|
14723
|
+
name: externalClientNameSchema
|
|
14724
|
+
});
|
|
14725
|
+
var externalClientRevokeResultSchema = external_exports.strictObject({
|
|
14726
|
+
name: externalClientNameSchema,
|
|
14727
|
+
revoked: external_exports.literal(true)
|
|
14728
|
+
});
|
|
14729
|
+
var stringProp = (description) => ({ type: "string", description });
|
|
14730
|
+
var integerProp = (description) => ({
|
|
14731
|
+
type: "integer",
|
|
14732
|
+
minimum: 0,
|
|
14733
|
+
description
|
|
14734
|
+
});
|
|
14735
|
+
var threadProp = stringProp("Thread id or codex://threads/<id> link");
|
|
14736
|
+
var EXTERNAL_MCP_TOOL_DESCRIPTORS = [
|
|
14737
|
+
{
|
|
14738
|
+
name: "harness_list",
|
|
14739
|
+
description: "List the Harnesses this codexhost can delegate to.",
|
|
14740
|
+
inputSchema: { type: "object", properties: {} }
|
|
14741
|
+
},
|
|
14742
|
+
{
|
|
14743
|
+
name: "harness_inspect",
|
|
14744
|
+
description: "Read a Harness's Models, Thinking options and defaults; use the returned ids when delegating.",
|
|
14745
|
+
inputSchema: {
|
|
14746
|
+
type: "object",
|
|
14747
|
+
properties: {
|
|
14748
|
+
harnessId: stringProp("Harness id from harness_list"),
|
|
14749
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14750
|
+
refresh: { type: "boolean" }
|
|
14751
|
+
},
|
|
14752
|
+
required: ["harnessId"]
|
|
14753
|
+
}
|
|
14754
|
+
},
|
|
14755
|
+
{
|
|
14756
|
+
name: "delegate_start",
|
|
14757
|
+
description: "Start a task in a new Thread and return at once. Without parentThread the work belongs to this client and cwd is required. watch=true records an event for this client when the Thread stops (read it with events_poll or the SSE stream).",
|
|
14758
|
+
inputSchema: {
|
|
14759
|
+
type: "object",
|
|
14760
|
+
properties: {
|
|
14761
|
+
harnessId: stringProp("Harness id from harness_list"),
|
|
14762
|
+
task: stringProp("The full task text"),
|
|
14763
|
+
taskName: stringProp("Short display name"),
|
|
14764
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14765
|
+
model: stringProp("Model id from harness_inspect"),
|
|
14766
|
+
thinking: stringProp("Thinking option id from harness_inspect"),
|
|
14767
|
+
parentThread: stringProp("Optional parent Thread"),
|
|
14768
|
+
requestId: stringProp("Reuse to retry idempotently"),
|
|
14769
|
+
refs: {
|
|
14770
|
+
type: "array",
|
|
14771
|
+
items: { type: "string" },
|
|
14772
|
+
description: "Absolute URIs of where the work came from"
|
|
14773
|
+
},
|
|
14774
|
+
watch: { type: "boolean", description: "Record an event when the Thread stops" },
|
|
14775
|
+
watchTimeoutMs: integerProp("How long to watch; default 29 minutes")
|
|
14776
|
+
},
|
|
14777
|
+
required: ["harnessId", "task"]
|
|
14778
|
+
}
|
|
14779
|
+
},
|
|
14780
|
+
{
|
|
14781
|
+
name: "thread_read",
|
|
14782
|
+
description: "Read a Thread's status and latest result, or page its visible messages (view=messages). Never changes the Thread.",
|
|
14783
|
+
inputSchema: {
|
|
14784
|
+
type: "object",
|
|
14785
|
+
properties: {
|
|
14786
|
+
thread: threadProp,
|
|
14787
|
+
view: { type: "string", enum: ["result", "messages"] },
|
|
14788
|
+
cursor: stringProp("Message cursor"),
|
|
14789
|
+
limit: integerProp("Messages per page, at most 100")
|
|
14790
|
+
},
|
|
14791
|
+
required: ["thread"]
|
|
14792
|
+
}
|
|
14793
|
+
},
|
|
14794
|
+
{
|
|
14795
|
+
name: "thread_wait",
|
|
14796
|
+
description: "Wait up to timeoutMs (at most 60000) for a Thread to stop, then return the same snapshot as thread_read plus timedOut.",
|
|
14797
|
+
inputSchema: {
|
|
14798
|
+
type: "object",
|
|
14799
|
+
properties: {
|
|
14800
|
+
thread: threadProp,
|
|
14801
|
+
timeoutMs: integerProp("At most 60000; default 30000"),
|
|
14802
|
+
view: { type: "string", enum: ["result", "messages"] }
|
|
14803
|
+
},
|
|
14804
|
+
required: ["thread"]
|
|
14805
|
+
}
|
|
14806
|
+
},
|
|
14807
|
+
{
|
|
14808
|
+
name: "thread_list",
|
|
14809
|
+
description: "List Threads: by workspace (cwd), by parent Thread, by the client that started them, or by reference.",
|
|
14810
|
+
inputSchema: {
|
|
14811
|
+
type: "object",
|
|
14812
|
+
properties: {
|
|
14813
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14814
|
+
parent: stringProp("Parent Thread"),
|
|
14815
|
+
client: stringProp("Client name"),
|
|
14816
|
+
ref: stringProp("Reference URI"),
|
|
14817
|
+
limit: integerProp("At most 100; default 25"),
|
|
14818
|
+
cursor: stringProp("Cursor from a previous page"),
|
|
14819
|
+
sort: {
|
|
14820
|
+
type: "string",
|
|
14821
|
+
enum: [
|
|
14822
|
+
"created-asc",
|
|
14823
|
+
"created-desc",
|
|
14824
|
+
"updated-asc",
|
|
14825
|
+
"updated-desc",
|
|
14826
|
+
"recency-asc",
|
|
14827
|
+
"recency-desc"
|
|
14828
|
+
]
|
|
14829
|
+
}
|
|
14830
|
+
}
|
|
14831
|
+
}
|
|
14832
|
+
},
|
|
14833
|
+
{
|
|
14834
|
+
name: "thread_send",
|
|
14835
|
+
description: "Start a new Turn in an idle Thread. THREAD_BUSY means its current Turn is still running; messages are not queued.",
|
|
14836
|
+
inputSchema: {
|
|
14837
|
+
type: "object",
|
|
14838
|
+
properties: { thread: threadProp, message: stringProp("Message text") },
|
|
14839
|
+
required: ["thread", "message"]
|
|
14840
|
+
}
|
|
14841
|
+
},
|
|
14842
|
+
{
|
|
14843
|
+
name: "thread_cancel",
|
|
14844
|
+
description: "Cancel a Thread's active Turn, keeping the Thread and its history.",
|
|
14845
|
+
inputSchema: { type: "object", properties: { thread: threadProp }, required: ["thread"] }
|
|
14846
|
+
},
|
|
14847
|
+
{
|
|
14848
|
+
name: "thread_watch",
|
|
14849
|
+
description: "Record one event for this client when the Thread stops or the watch expires.",
|
|
14850
|
+
inputSchema: {
|
|
14851
|
+
type: "object",
|
|
14852
|
+
properties: { thread: threadProp, timeoutMs: integerProp("Default 29 minutes") },
|
|
14853
|
+
required: ["thread"]
|
|
14854
|
+
}
|
|
14855
|
+
},
|
|
14856
|
+
{
|
|
14857
|
+
name: "thread_watches",
|
|
14858
|
+
description: "List watches that have not been delivered yet.",
|
|
14859
|
+
inputSchema: { type: "object", properties: {} }
|
|
14860
|
+
},
|
|
14861
|
+
{
|
|
14862
|
+
name: "events_poll",
|
|
14863
|
+
description: "Read this client's events after a cursor (0 for all retained). Waits up to timeoutMs (at most 60000) for the first one. Pass the returned cursor back next time. CURSOR_EXPIRED: reconcile with thread_list client=<this client>.",
|
|
14864
|
+
inputSchema: {
|
|
14865
|
+
type: "object",
|
|
14866
|
+
properties: {
|
|
14867
|
+
after: integerProp("Cursor; 0 for all retained"),
|
|
14868
|
+
timeoutMs: integerProp("At most 60000; default 0"),
|
|
14869
|
+
limit: integerProp("At most 100")
|
|
14870
|
+
}
|
|
14871
|
+
}
|
|
14872
|
+
}
|
|
14873
|
+
];
|
|
14874
|
+
|
|
14875
|
+
// ../../shared-contracts/dist/external-mcp-map.js
|
|
14876
|
+
var DEFAULT_WATCH_MS = 29 * 6e4;
|
|
14877
|
+
|
|
14681
14878
|
// ../../shared-contracts/dist/grok-computer-use.js
|
|
14682
14879
|
var grokComputerUseGetSchema = external_exports.object({}).strict();
|
|
14683
14880
|
var grokComputerUseSetSchema = external_exports.object({
|
|
@@ -15274,11 +15471,61 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15274
15471
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15275
15472
|
}).strict();
|
|
15276
15473
|
|
|
15474
|
+
// ../../shared-contracts/dist/voice-settings.js
|
|
15475
|
+
var voiceRoutesSchema = external_exports.strictObject({
|
|
15476
|
+
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
15477
|
+
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
15478
|
+
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
15479
|
+
});
|
|
15480
|
+
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
15481
|
+
chatExperience: "chatgpt",
|
|
15482
|
+
chatConnection: "desktop",
|
|
15483
|
+
workConnection: "gateway"
|
|
15484
|
+
});
|
|
15485
|
+
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
15486
|
+
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
15487
|
+
external_exports.strictObject({
|
|
15488
|
+
operation: external_exports.literal("get"),
|
|
15489
|
+
runtime: external_exports.strictObject({
|
|
15490
|
+
id: external_exports.string().uuid(),
|
|
15491
|
+
revision: external_exports.string().max(64),
|
|
15492
|
+
activeCall: external_exports.boolean()
|
|
15493
|
+
}).optional()
|
|
15494
|
+
}),
|
|
15495
|
+
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
15496
|
+
external_exports.strictObject({
|
|
15497
|
+
operation: external_exports.literal("set"),
|
|
15498
|
+
settings: voiceSettingsSchema,
|
|
15499
|
+
revision: external_exports.string().max(64)
|
|
15500
|
+
}),
|
|
15501
|
+
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
15502
|
+
]);
|
|
15503
|
+
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
15504
|
+
settings: voiceSettingsSchema,
|
|
15505
|
+
initialized: external_exports.boolean(),
|
|
15506
|
+
revision: external_exports.string(),
|
|
15507
|
+
activeInject: external_exports.boolean().nullable(),
|
|
15508
|
+
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15509
|
+
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15510
|
+
routesActive: external_exports.boolean().nullable(),
|
|
15511
|
+
activeCall: external_exports.boolean().nullable(),
|
|
15512
|
+
gatewayReady: external_exports.boolean().nullable(),
|
|
15513
|
+
restartAvailable: external_exports.boolean(),
|
|
15514
|
+
restart: external_exports.strictObject({
|
|
15515
|
+
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
15516
|
+
error: external_exports.string().nullable()
|
|
15517
|
+
})
|
|
15518
|
+
});
|
|
15519
|
+
|
|
15277
15520
|
// ../../shared-contracts/dist/client-channel.js
|
|
15278
15521
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15279
15522
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
15280
15523
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
15281
15524
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
15525
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
15526
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
15527
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
15528
|
+
}).strict();
|
|
15282
15529
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
15283
15530
|
prompt: external_exports.string().max(16384).optional()
|
|
15284
15531
|
}).strict();
|
|
@@ -15295,6 +15542,11 @@ var clientChannelCursorSchema = external_exports.object({
|
|
|
15295
15542
|
sequence: external_exports.number().int().nonnegative()
|
|
15296
15543
|
});
|
|
15297
15544
|
var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
15545
|
+
external_exports.object({
|
|
15546
|
+
type: external_exports.literal("skills-changed"),
|
|
15547
|
+
cursor: clientChannelCursorSchema,
|
|
15548
|
+
cwd: external_exports.string().optional()
|
|
15549
|
+
}),
|
|
15298
15550
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15299
15551
|
external_exports.object({
|
|
15300
15552
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15492,6 +15744,28 @@ var voiceTranscribeResultSchema = external_exports.discriminatedUnion("ok", [
|
|
|
15492
15744
|
external_exports.object({ ok: external_exports.literal(false), error: external_exports.object({ code: voiceErrorCodeSchema }).strict() }).strict()
|
|
15493
15745
|
]);
|
|
15494
15746
|
|
|
15747
|
+
// ../../shared-contracts/dist/skills.js
|
|
15748
|
+
var skillsListParamsSchema = external_exports.object({
|
|
15749
|
+
threadId: hostThreadIdSchema.optional(),
|
|
15750
|
+
cwd: external_exports.string().min(1).optional()
|
|
15751
|
+
}).strict().refine((params) => !(params.threadId && params.cwd), {
|
|
15752
|
+
message: "Specify threadId or cwd, not both"
|
|
15753
|
+
});
|
|
15754
|
+
var librarySkillSchema = external_exports.object({
|
|
15755
|
+
name: external_exports.string().min(1).regex(/^[^\s[\]]+$/u),
|
|
15756
|
+
description: external_exports.string().optional(),
|
|
15757
|
+
path: external_exports.string().min(1),
|
|
15758
|
+
scope: external_exports.enum(["project", "global"]),
|
|
15759
|
+
source: external_exports.string().min(1)
|
|
15760
|
+
}).strict();
|
|
15761
|
+
var skillsListResultSchema = external_exports.object({
|
|
15762
|
+
revision: external_exports.number().int().nonnegative(),
|
|
15763
|
+
complete: external_exports.boolean(),
|
|
15764
|
+
skills: external_exports.array(librarySkillSchema),
|
|
15765
|
+
warnings: external_exports.array(external_exports.string()).optional()
|
|
15766
|
+
}).strict();
|
|
15767
|
+
var skillsChangedParamsSchema = external_exports.object({ cwd: external_exports.string().min(1).optional() }).strict();
|
|
15768
|
+
|
|
15495
15769
|
// ../../shared-contracts/dist/web-access-tokens.js
|
|
15496
15770
|
var webNetworkAccessUrlSchema = external_exports.object({
|
|
15497
15771
|
/**
|
|
@@ -15597,8 +15871,8 @@ var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
|
15597
15871
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15598
15872
|
threadId: external_exports.string().min(1).max(1024),
|
|
15599
15873
|
view: external_exports.enum(["result", "messages"]),
|
|
15600
|
-
|
|
15601
|
-
|
|
15874
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
15875
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
15602
15876
|
});
|
|
15603
15877
|
|
|
15604
15878
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -16050,6 +16324,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
16050
16324
|
"codexhost/voice/gateway-status",
|
|
16051
16325
|
"codexhost/enrollment/list",
|
|
16052
16326
|
"codexhost/enrollment/revoke",
|
|
16327
|
+
"codexhost/external-clients/list",
|
|
16328
|
+
"codexhost/external-clients/create",
|
|
16329
|
+
"codexhost/external-clients/update",
|
|
16330
|
+
"codexhost/external-clients/revoke",
|
|
16053
16331
|
"codexhost/console/remote-connections",
|
|
16054
16332
|
"codexhost/runtime/status",
|
|
16055
16333
|
"codexhost/remote/ssh-setup",
|
|
@@ -16596,6 +16874,17 @@ var updateStatusResultSchema = external_exports.strictObject({
|
|
|
16596
16874
|
status: updateStatusSchema.nullable()
|
|
16597
16875
|
});
|
|
16598
16876
|
|
|
16877
|
+
// ../../shared-contracts/dist/thread-watch-notice.js
|
|
16878
|
+
var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
16879
|
+
"completed",
|
|
16880
|
+
"failed",
|
|
16881
|
+
"interrupted",
|
|
16882
|
+
"timedOut",
|
|
16883
|
+
"unreadable",
|
|
16884
|
+
"notFound"
|
|
16885
|
+
];
|
|
16886
|
+
var ENTRY_PATTERN = new RegExp(String.raw`^- \[([^\]\n]+)\]\(thread://([^\s()<>"?#/]+)\): ` + `(${THREAD_WATCH_NOTICE_OUTCOMES.join("|")})(?:. (.+))?$`, "u");
|
|
16887
|
+
|
|
16599
16888
|
// ../../shared-contracts/dist/remote-runtime.js
|
|
16600
16889
|
var remoteUpdatePhaseSchema = external_exports.enum([
|
|
16601
16890
|
"idle",
|
|
@@ -16643,6 +16932,14 @@ var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
|
16643
16932
|
archived: external_exports.boolean()
|
|
16644
16933
|
}),
|
|
16645
16934
|
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16935
|
+
external_exports.strictObject({
|
|
16936
|
+
kind: external_exports.literal("configure"),
|
|
16937
|
+
...thread,
|
|
16938
|
+
epoch: identity,
|
|
16939
|
+
modelId: identity.optional(),
|
|
16940
|
+
thinkingOptionId: identity.optional(),
|
|
16941
|
+
permissionModeId: identity.optional()
|
|
16942
|
+
}).refine((value) => [value.modelId, value.thinkingOptionId, value.permissionModeId].filter((v) => v !== void 0).length === 1, "Select exactly one remote setting"),
|
|
16646
16943
|
external_exports.strictObject({
|
|
16647
16944
|
kind: external_exports.literal("prompt"),
|
|
16648
16945
|
...thread,
|
|
@@ -16715,6 +17012,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
16715
17012
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16716
17013
|
]);
|
|
16717
17014
|
|
|
17015
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
17016
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
17017
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
17018
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
17019
|
+
});
|
|
17020
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
17021
|
+
|
|
16718
17022
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
16719
17023
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
16720
17024
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -16755,52 +17059,6 @@ var webUiExtensionInstallSchema = external_exports.object({
|
|
|
16755
17059
|
var webUiExtensionEnabledSchema = external_exports.object({ id: webUiExtensionIdSchema, enabled: external_exports.boolean() }).strict();
|
|
16756
17060
|
var webUiExtensionRemoveSchema = external_exports.object({ id: webUiExtensionIdSchema }).strict();
|
|
16757
17061
|
|
|
16758
|
-
// ../../shared-contracts/dist/voice-settings.js
|
|
16759
|
-
var voiceRoutesSchema = external_exports.strictObject({
|
|
16760
|
-
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
16761
|
-
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
16762
|
-
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
16763
|
-
});
|
|
16764
|
-
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
16765
|
-
chatExperience: "chatgpt",
|
|
16766
|
-
chatConnection: "desktop",
|
|
16767
|
-
workConnection: "gateway"
|
|
16768
|
-
});
|
|
16769
|
-
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
16770
|
-
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
16771
|
-
external_exports.strictObject({
|
|
16772
|
-
operation: external_exports.literal("get"),
|
|
16773
|
-
runtime: external_exports.strictObject({
|
|
16774
|
-
id: external_exports.string().uuid(),
|
|
16775
|
-
revision: external_exports.string().max(64),
|
|
16776
|
-
activeCall: external_exports.boolean()
|
|
16777
|
-
}).optional()
|
|
16778
|
-
}),
|
|
16779
|
-
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
16780
|
-
external_exports.strictObject({
|
|
16781
|
-
operation: external_exports.literal("set"),
|
|
16782
|
-
settings: voiceSettingsSchema,
|
|
16783
|
-
revision: external_exports.string().max(64)
|
|
16784
|
-
}),
|
|
16785
|
-
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
16786
|
-
]);
|
|
16787
|
-
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
16788
|
-
settings: voiceSettingsSchema,
|
|
16789
|
-
initialized: external_exports.boolean(),
|
|
16790
|
-
revision: external_exports.string(),
|
|
16791
|
-
activeInject: external_exports.boolean().nullable(),
|
|
16792
|
-
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16793
|
-
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16794
|
-
routesActive: external_exports.boolean().nullable(),
|
|
16795
|
-
activeCall: external_exports.boolean().nullable(),
|
|
16796
|
-
gatewayReady: external_exports.boolean().nullable(),
|
|
16797
|
-
restartAvailable: external_exports.boolean(),
|
|
16798
|
-
restart: external_exports.strictObject({
|
|
16799
|
-
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
16800
|
-
error: external_exports.string().nullable()
|
|
16801
|
-
})
|
|
16802
|
-
});
|
|
16803
|
-
|
|
16804
17062
|
// ../../shared-contracts/dist/background-activity.js
|
|
16805
17063
|
var backgroundActivitySchema = external_exports.strictObject({
|
|
16806
17064
|
id: external_exports.string().min(1),
|
|
@@ -17195,14 +17453,12 @@ var COMMON_EXCLUDED_LIVE_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
17195
17453
|
"reload-plugins"
|
|
17196
17454
|
]);
|
|
17197
17455
|
var COMMON_EXCLUDED_LIVE_COMMAND_PREFIXES = ["__", "hooks-"];
|
|
17198
|
-
function isExcludedLiveCommand(name,
|
|
17456
|
+
function isExcludedLiveCommand(name, extra = {}) {
|
|
17199
17457
|
const normalized = name.trim().replace(/^\//u, "");
|
|
17200
17458
|
if (new Set(extra.names ?? []).has(normalized))
|
|
17201
17459
|
return true;
|
|
17202
17460
|
if (extra.prefixes?.some((prefix) => normalized.startsWith(prefix)))
|
|
17203
17461
|
return true;
|
|
17204
|
-
if (kind === "skill")
|
|
17205
|
-
return false;
|
|
17206
17462
|
return COMMON_EXCLUDED_LIVE_COMMANDS.has(normalized) || COMMON_EXCLUDED_LIVE_COMMAND_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
17207
17463
|
}
|
|
17208
17464
|
function liveHarnessCommandPrompt(catalog, idPrefix, commandId, argumentText) {
|
|
@@ -17224,7 +17480,7 @@ function mergeLiveHarnessCommands(builtIns, idPrefix, live, exclusions = {}) {
|
|
|
17224
17480
|
const name = command.name.trim().replace(/^\//u, "");
|
|
17225
17481
|
if (!name || /\s/u.test(name))
|
|
17226
17482
|
continue;
|
|
17227
|
-
if (isExcludedLiveCommand(name,
|
|
17483
|
+
if (isExcludedLiveCommand(name, exclusions))
|
|
17228
17484
|
continue;
|
|
17229
17485
|
const invocation = `/${name}`;
|
|
17230
17486
|
const id2 = `${idPrefix}${name.replace(/[^A-Za-z0-9._:-]/gu, "-")}`.slice(0, 128);
|
|
@@ -17236,8 +17492,7 @@ function mergeLiveHarnessCommands(builtIns, idPrefix, live, exclusions = {}) {
|
|
|
17236
17492
|
invocation,
|
|
17237
17493
|
label: name.slice(0, 128),
|
|
17238
17494
|
...description ? { description } : {},
|
|
17239
|
-
argumentMode: "text"
|
|
17240
|
-
kind: command.kind
|
|
17495
|
+
argumentMode: "text"
|
|
17241
17496
|
});
|
|
17242
17497
|
if (!parsed.success)
|
|
17243
17498
|
continue;
|
|
@@ -17248,6 +17503,60 @@ function mergeLiveHarnessCommands(builtIns, idPrefix, live, exclusions = {}) {
|
|
|
17248
17503
|
return harnessCommandCatalogSchema.parse({ commands: [...builtIns.commands, ...dynamic] });
|
|
17249
17504
|
}
|
|
17250
17505
|
|
|
17506
|
+
// ../../harness-adapter/dist/subagent-configuration.js
|
|
17507
|
+
function subagentConfiguration(value) {
|
|
17508
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
17509
|
+
return {};
|
|
17510
|
+
const row = value;
|
|
17511
|
+
const text2 = (value2) => typeof value2 === "string" && value2.trim() ? value2 : void 0;
|
|
17512
|
+
const model2 = row.model === "inherit" ? void 0 : text2(row.model);
|
|
17513
|
+
const reasoningEffort = text2(row.reasoningEffort) ?? text2(row.reasoning_effort) ?? text2(row.thinking);
|
|
17514
|
+
return { ...model2 ? { model: model2 } : {}, ...reasoningEffort ? { reasoningEffort } : {} };
|
|
17515
|
+
}
|
|
17516
|
+
function inheritSubagentConfiguration(child, parent) {
|
|
17517
|
+
const native = subagentConfiguration(child);
|
|
17518
|
+
const model2 = native.model ?? parent.model;
|
|
17519
|
+
const reasoningEffort = native.reasoningEffort ?? parent.reasoningEffort;
|
|
17520
|
+
const next = { ...child };
|
|
17521
|
+
delete next.model;
|
|
17522
|
+
delete next.reasoningEffort;
|
|
17523
|
+
return { ...next, ...model2 ? { model: model2 } : {}, ...reasoningEffort ? { reasoningEffort } : {} };
|
|
17524
|
+
}
|
|
17525
|
+
function configureSubagentEvent(event, parent) {
|
|
17526
|
+
const children = (states) => states.map((child) => inheritSubagentConfiguration(child, parent));
|
|
17527
|
+
if (event.type === "item.started" && event.item.type === "subagentDelegation")
|
|
17528
|
+
return { ...event, item: { ...event.item, subagents: children(event.item.subagents) } };
|
|
17529
|
+
if (event.type === "item.updated" && event.update.type === "subagents.replace")
|
|
17530
|
+
return { ...event, update: { ...event.update, subagents: children(event.update.subagents) } };
|
|
17531
|
+
if (event.type === "item.completed" && event.snapshot.item.type === "subagentDelegation")
|
|
17532
|
+
return {
|
|
17533
|
+
...event,
|
|
17534
|
+
snapshot: {
|
|
17535
|
+
...event.snapshot,
|
|
17536
|
+
item: {
|
|
17537
|
+
...event.snapshot.item,
|
|
17538
|
+
subagents: children(event.snapshot.item.subagents)
|
|
17539
|
+
}
|
|
17540
|
+
}
|
|
17541
|
+
};
|
|
17542
|
+
return event;
|
|
17543
|
+
}
|
|
17544
|
+
function configureSubagentSnapshot(snapshot, parent) {
|
|
17545
|
+
return {
|
|
17546
|
+
...snapshot,
|
|
17547
|
+
turns: snapshot.turns.map((turn) => ({
|
|
17548
|
+
...turn,
|
|
17549
|
+
items: turn.items.map((entry) => entry.item.type === "subagentDelegation" ? {
|
|
17550
|
+
...entry,
|
|
17551
|
+
item: {
|
|
17552
|
+
...entry.item,
|
|
17553
|
+
subagents: entry.item.subagents.map((child) => inheritSubagentConfiguration(child, parent))
|
|
17554
|
+
}
|
|
17555
|
+
} : entry)
|
|
17556
|
+
}))
|
|
17557
|
+
};
|
|
17558
|
+
}
|
|
17559
|
+
|
|
17251
17560
|
// ../../harness-broker/dist/protocol.js
|
|
17252
17561
|
var HARNESS_BROKER_PROTOCOL_VERSION = 1;
|
|
17253
17562
|
var HARNESS_BROKER_MAX_FRAME_BYTES = 8 * 1024 * 1024;
|
|
@@ -56005,6 +56314,7 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
56005
56314
|
const agentId = boundedString(message.task_id, SUBAGENT_DESCRIPTION_LIMIT);
|
|
56006
56315
|
events.push({
|
|
56007
56316
|
type: "subagent.updated",
|
|
56317
|
+
...subagentConfiguration(message),
|
|
56008
56318
|
callId,
|
|
56009
56319
|
status: "running",
|
|
56010
56320
|
...description ? { description } : {},
|
|
@@ -56020,6 +56330,7 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
56020
56330
|
const agentId = boundedString(message.task_id, SUBAGENT_DESCRIPTION_LIMIT);
|
|
56021
56331
|
events.push({
|
|
56022
56332
|
type: "subagent.updated",
|
|
56333
|
+
...subagentConfiguration(message),
|
|
56023
56334
|
callId,
|
|
56024
56335
|
status: "running",
|
|
56025
56336
|
...description ? { description } : {},
|
|
@@ -56038,8 +56349,10 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
56038
56349
|
const agentId = boundedString(message.task_id, SUBAGENT_DESCRIPTION_LIMIT);
|
|
56039
56350
|
events.push({
|
|
56040
56351
|
type: "subagent.updated",
|
|
56352
|
+
...subagentConfiguration(message),
|
|
56041
56353
|
callId,
|
|
56042
56354
|
status,
|
|
56355
|
+
...subagentConfiguration(message.patch),
|
|
56043
56356
|
...description ? { description } : {},
|
|
56044
56357
|
...agentId ? { nativeSubagentId: agentId } : {},
|
|
56045
56358
|
...resultSummary ? { resultSummary } : {}
|
|
@@ -56206,6 +56519,7 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
56206
56519
|
const agentId = targetedSubagentId(argumentsResult.data);
|
|
56207
56520
|
events.push({
|
|
56208
56521
|
type: "subagent.started",
|
|
56522
|
+
...block.name === "SendMessage" ? {} : subagentConfiguration(argumentsResult.data),
|
|
56209
56523
|
callId: block.id,
|
|
56210
56524
|
operation: block.name === "SendMessage" ? "send" : "spawn",
|
|
56211
56525
|
description: subagentDescription(argumentsResult.data, block.name),
|
|
@@ -57788,10 +58102,9 @@ function parseClaudeSlashCommands(value) {
|
|
|
57788
58102
|
});
|
|
57789
58103
|
}
|
|
57790
58104
|
function claudeLiveCommandCatalog(builtIns, snapshot) {
|
|
57791
|
-
return mergeLiveHarnessCommands(builtIns, DYNAMIC_ID_PREFIX, snapshot?.commands.map((command) => ({
|
|
58105
|
+
return mergeLiveHarnessCommands(builtIns, DYNAMIC_ID_PREFIX, snapshot?.commands.filter((command) => !snapshot.skillNames.has(command.name)).map((command) => ({
|
|
57792
58106
|
name: command.name,
|
|
57793
|
-
description: command.description
|
|
57794
|
-
kind: snapshot.skillNames.has(command.name) ? "skill" : "command"
|
|
58107
|
+
description: command.description
|
|
57795
58108
|
})) ?? null, { names: CLAUDE_EXCLUDED_COMMANDS });
|
|
57796
58109
|
}
|
|
57797
58110
|
function claudeDynamicCommandPrompt(catalog, commandId, argumentText) {
|
|
@@ -59199,6 +59512,7 @@ var ClaudeSubagentLifecycle = class {
|
|
|
59199
59512
|
subagentId: event.nativeSubagentId ?? event.callId,
|
|
59200
59513
|
...event.nativeSubagentId ? { nativeSubagentId: event.nativeSubagentId } : {},
|
|
59201
59514
|
description: event.description,
|
|
59515
|
+
...subagentConfiguration(event),
|
|
59202
59516
|
...event.role ? { role: event.role } : {},
|
|
59203
59517
|
...event.model ? { model: event.model } : {},
|
|
59204
59518
|
background: event.background,
|
|
@@ -59223,6 +59537,7 @@ var ClaudeSubagentLifecycle = class {
|
|
|
59223
59537
|
throw new Error("Claude Code Subagent delegation has no Agent state");
|
|
59224
59538
|
const subagent = {
|
|
59225
59539
|
...current,
|
|
59540
|
+
...subagentConfiguration(event),
|
|
59226
59541
|
status: event.status,
|
|
59227
59542
|
...event.nativeSubagentId ? { nativeSubagentId: event.nativeSubagentId } : {},
|
|
59228
59543
|
...event.description ? { description: event.description } : {},
|
|
@@ -60282,7 +60597,19 @@ var ClaudeHarnessSession = class {
|
|
|
60282
60597
|
get nativeWriterRef() {
|
|
60283
60598
|
return this.#nativeRef;
|
|
60284
60599
|
}
|
|
60600
|
+
#subagentConfiguration() {
|
|
60601
|
+
const state = this.#state;
|
|
60602
|
+
const model2 = state.effectiveModel ? decodeClaudeModelRef(state.effectiveModel) : void 0;
|
|
60603
|
+
return {
|
|
60604
|
+
...model2 ? { model: model2 } : {},
|
|
60605
|
+
...state.effectiveThinkingOptionId ? { reasoningEffort: state.effectiveThinkingOptionId } : {}
|
|
60606
|
+
};
|
|
60607
|
+
}
|
|
60285
60608
|
async readSnapshot() {
|
|
60609
|
+
const result = await this.#readSnapshot();
|
|
60610
|
+
return result.ok ? { ok: true, value: configureSubagentSnapshot(result.value, this.#subagentConfiguration()) } : result;
|
|
60611
|
+
}
|
|
60612
|
+
async #readSnapshot() {
|
|
60286
60613
|
if (this.#phase !== "open") {
|
|
60287
60614
|
return { ok: false, error: invalidState("Claude Code Session is not open") };
|
|
60288
60615
|
}
|
|
@@ -62272,6 +62599,7 @@ var ClaudeHarnessSession = class {
|
|
|
62272
62599
|
void this.#transport?.close().catch(() => void 0);
|
|
62273
62600
|
}
|
|
62274
62601
|
#event(event) {
|
|
62602
|
+
event = configureSubagentEvent(event, this.#subagentConfiguration());
|
|
62275
62603
|
this.#channel.emit({ kind: "event", event });
|
|
62276
62604
|
}
|
|
62277
62605
|
};
|