@codexhost/cli-linux-arm64 0.18.0 → 0.20.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 +83 -5
- package/app/console-web.js +1172 -687
- package/app/desktop-controller.mjs +314 -15
- package/app/host-runtime.mjs +13158 -2853
- package/app/plugins/antigravity/plugin.mjs +8861 -3944
- package/app/plugins/claude-code/plugin.mjs +164 -14
- package/app/plugins/codebuddy/plugin.mjs +193 -25
- package/app/plugins/codex-usage/plugin.mjs +85 -5
- package/app/plugins/copilot/plugin.mjs +85 -5
- package/app/plugins/cursor-cli/plugin.mjs +160 -15
- package/app/plugins/deepseek-harness/manifest.json +2 -2
- package/app/plugins/deepseek-harness/plugin.mjs +112 -10
- package/app/plugins/devin/plugin.mjs +84 -5
- package/app/plugins/grok/plugin.mjs +418 -272
- package/app/plugins/hermes/plugin.mjs +163 -17
- package/app/plugins/kimi-code/plugin.mjs +85 -5
- package/app/plugins/kiro-cli/plugin.mjs +313 -21
- package/app/plugins/omp/plugin.mjs +1018 -819
- package/app/plugins/opencode/plugin.mjs +85 -5
- package/app/plugins/pi/plugin.mjs +828 -663
- package/app/plugins/qoder/plugin.mjs +109 -10
- package/app/plugins/qoder-cn/plugin.mjs +109 -10
- package/app/plugins/qwen-code/plugin.mjs +194 -97
- package/app/plugins/workbuddy/plugin.mjs +197 -28
- package/app/plugins/zcode/plugin.mjs +158 -8
- package/app/renderer-extension.js +2065 -1004
- package/app/web/assets/index-D6-hvggd.css +1 -0
- package/app/web/assets/index-D85gPBbQ.js +201 -0
- package/app/web/assets/langs/{graphql-B8vkg11W.js → graphql-ChAeyPkT.js} +1 -1
- package/app/web/assets/langs/{http-DmoDEjMt.js → http-BvreBIbD.js} +1 -1
- package/app/web/assets/langs/{php-DJ5ovfAM.js → php-D8omCIuJ.js} +1 -1
- package/app/web/assets/langs/{rst-U5-R5x3p.js → rst-Do7RLLCS.js} +1 -1
- package/app/web/assets/langs/{ruby-VKVsnS0H.js → ruby-rH_O_vse.js} +1 -1
- package/app/web/assets/langs/{svelte-C20lOv9V.js → svelte-xZy73wAj.js} +1 -1
- package/app/web/assets/langs/{vue-z6Y-lzP-.js → vue-C4DW8agZ.js} +1 -1
- package/app/web/assets/{vendor-dSL872WO.js → vendor-C9g2bw8s.js} +3 -3
- package/app/web/codexhost-settings.js +1178 -689
- package/app/web/index.html +4 -3
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +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 +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-connection/client.js +1 -1
- 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 +134 -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-session/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 +18 -18
- 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 +2468 -1575
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-C0aXz2jD.js +0 -199
- package/app/web/assets/index-C3lniEH1.css +0 -1
|
@@ -14662,13 +14662,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
14662
14662
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
14663
14663
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14664
14664
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14665
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
14666
|
+
version: external_exports.literal(3).optional(),
|
|
14667
|
+
requestId: external_exports.string().min(1),
|
|
14668
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
14669
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
14670
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
14671
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14672
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14665
14673
|
var usageMeasurementSchema = external_exports.object({
|
|
14674
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14666
14675
|
value: finiteNonNegativeNumberSchema,
|
|
14667
14676
|
turnId: external_exports.string().min(1).max(1024),
|
|
14668
14677
|
at: nonNegativeSafeIntegerSchema
|
|
14669
14678
|
}).strict();
|
|
14670
14679
|
var usageMeasurementsSchema = external_exports.object({
|
|
14671
|
-
|
|
14680
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
14681
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
14682
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14683
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
14672
14684
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14673
14685
|
}).strict();
|
|
14674
14686
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -14688,6 +14700,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
14688
14700
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14689
14701
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14690
14702
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14703
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14691
14704
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14692
14705
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14693
14706
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15099,11 +15112,19 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15099
15112
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15100
15113
|
}).strict();
|
|
15101
15114
|
|
|
15115
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15116
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15117
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15118
|
+
|
|
15102
15119
|
// ../../shared-contracts/dist/client-channel.js
|
|
15103
15120
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15104
15121
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
15105
15122
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
15106
15123
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
15124
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
15125
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
15126
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
15127
|
+
}).strict();
|
|
15107
15128
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
15108
15129
|
prompt: external_exports.string().max(16384).optional()
|
|
15109
15130
|
}).strict();
|
|
@@ -15120,6 +15141,11 @@ var clientChannelCursorSchema = external_exports.object({
|
|
|
15120
15141
|
sequence: external_exports.number().int().nonnegative()
|
|
15121
15142
|
});
|
|
15122
15143
|
var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
15144
|
+
external_exports.object({
|
|
15145
|
+
type: external_exports.literal("skills-changed"),
|
|
15146
|
+
cursor: clientChannelCursorSchema,
|
|
15147
|
+
cwd: external_exports.string().optional()
|
|
15148
|
+
}),
|
|
15123
15149
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15124
15150
|
external_exports.object({
|
|
15125
15151
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15229,7 +15255,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15229
15255
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15230
15256
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15231
15257
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15232
|
-
command: external_exports.object({
|
|
15258
|
+
command: external_exports.object({
|
|
15259
|
+
name: external_exports.string().min(1),
|
|
15260
|
+
turn: clientTurnSchema,
|
|
15261
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15262
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15263
|
+
}).optional(),
|
|
15233
15264
|
thread: external_exports.object({
|
|
15234
15265
|
id: external_exports.string().min(1),
|
|
15235
15266
|
cwd: external_exports.string(),
|
|
@@ -15317,6 +15348,28 @@ var voiceTranscribeResultSchema = external_exports.discriminatedUnion("ok", [
|
|
|
15317
15348
|
external_exports.object({ ok: external_exports.literal(false), error: external_exports.object({ code: voiceErrorCodeSchema }).strict() }).strict()
|
|
15318
15349
|
]);
|
|
15319
15350
|
|
|
15351
|
+
// ../../shared-contracts/dist/skills.js
|
|
15352
|
+
var skillsListParamsSchema = external_exports.object({
|
|
15353
|
+
threadId: hostThreadIdSchema.optional(),
|
|
15354
|
+
cwd: external_exports.string().min(1).optional()
|
|
15355
|
+
}).strict().refine((params) => !(params.threadId && params.cwd), {
|
|
15356
|
+
message: "Specify threadId or cwd, not both"
|
|
15357
|
+
});
|
|
15358
|
+
var librarySkillSchema = external_exports.object({
|
|
15359
|
+
name: external_exports.string().min(1).regex(/^[^\s[\]]+$/u),
|
|
15360
|
+
description: external_exports.string().optional(),
|
|
15361
|
+
path: external_exports.string().min(1),
|
|
15362
|
+
scope: external_exports.enum(["project", "global"]),
|
|
15363
|
+
source: external_exports.string().min(1)
|
|
15364
|
+
}).strict();
|
|
15365
|
+
var skillsListResultSchema = external_exports.object({
|
|
15366
|
+
revision: external_exports.number().int().nonnegative(),
|
|
15367
|
+
complete: external_exports.boolean(),
|
|
15368
|
+
skills: external_exports.array(librarySkillSchema),
|
|
15369
|
+
warnings: external_exports.array(external_exports.string()).optional()
|
|
15370
|
+
}).strict();
|
|
15371
|
+
var skillsChangedParamsSchema = external_exports.object({ cwd: external_exports.string().min(1).optional() }).strict();
|
|
15372
|
+
|
|
15320
15373
|
// ../../shared-contracts/dist/web-access-tokens.js
|
|
15321
15374
|
var webNetworkAccessUrlSchema = external_exports.object({
|
|
15322
15375
|
/**
|
|
@@ -15415,15 +15468,14 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15415
15468
|
quotaUntil: external_exports.string().optional()
|
|
15416
15469
|
}).strict().optional()
|
|
15417
15470
|
}).strict();
|
|
15418
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15419
15471
|
|
|
15420
15472
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15421
15473
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
15422
15474
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15423
15475
|
threadId: external_exports.string().min(1).max(1024),
|
|
15424
15476
|
view: external_exports.enum(["result", "messages"]),
|
|
15425
|
-
|
|
15426
|
-
|
|
15477
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
15478
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
15427
15479
|
});
|
|
15428
15480
|
|
|
15429
15481
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -16376,6 +16428,17 @@ var updateStatusResultSchema = external_exports.strictObject({
|
|
|
16376
16428
|
status: updateStatusSchema.nullable()
|
|
16377
16429
|
});
|
|
16378
16430
|
|
|
16431
|
+
// ../../shared-contracts/dist/thread-watch-notice.js
|
|
16432
|
+
var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
16433
|
+
"completed",
|
|
16434
|
+
"failed",
|
|
16435
|
+
"interrupted",
|
|
16436
|
+
"timedOut",
|
|
16437
|
+
"unreadable",
|
|
16438
|
+
"notFound"
|
|
16439
|
+
];
|
|
16440
|
+
var ENTRY_PATTERN = new RegExp(String.raw`^- \[([^\]\n]+)\]\(thread://([^\s()<>"?#/]+)\): ` + `(${THREAD_WATCH_NOTICE_OUTCOMES.join("|")})(?:. (.+))?$`, "u");
|
|
16441
|
+
|
|
16379
16442
|
// ../../shared-contracts/dist/remote-runtime.js
|
|
16380
16443
|
var remoteUpdatePhaseSchema = external_exports.enum([
|
|
16381
16444
|
"idle",
|
|
@@ -16423,6 +16486,14 @@ var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
|
16423
16486
|
archived: external_exports.boolean()
|
|
16424
16487
|
}),
|
|
16425
16488
|
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16489
|
+
external_exports.strictObject({
|
|
16490
|
+
kind: external_exports.literal("configure"),
|
|
16491
|
+
...thread,
|
|
16492
|
+
epoch: identity,
|
|
16493
|
+
modelId: identity.optional(),
|
|
16494
|
+
thinkingOptionId: identity.optional(),
|
|
16495
|
+
permissionModeId: identity.optional()
|
|
16496
|
+
}).refine((value) => [value.modelId, value.thinkingOptionId, value.permissionModeId].filter((v) => v !== void 0).length === 1, "Select exactly one remote setting"),
|
|
16426
16497
|
external_exports.strictObject({
|
|
16427
16498
|
kind: external_exports.literal("prompt"),
|
|
16428
16499
|
...thread,
|
|
@@ -16495,6 +16566,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
16495
16566
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16496
16567
|
]);
|
|
16497
16568
|
|
|
16569
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
16570
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
16571
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
16572
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
16573
|
+
});
|
|
16574
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
16575
|
+
|
|
16498
16576
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
16499
16577
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
16500
16578
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -16672,6 +16750,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16672
16750
|
"totalCredits",
|
|
16673
16751
|
"contextUsagePercent",
|
|
16674
16752
|
"outputTokensPerSecond",
|
|
16753
|
+
"sessionOutputTokensPerSecond",
|
|
16675
16754
|
"apiOutputTokensPerSecond",
|
|
16676
16755
|
"costSource",
|
|
16677
16756
|
"unpricedModels"
|
|
@@ -16694,6 +16773,7 @@ function parseHostUsage(value) {
|
|
|
16694
16773
|
for (const field2 of [
|
|
16695
16774
|
"totalCredits",
|
|
16696
16775
|
"contextUsagePercent",
|
|
16776
|
+
"sessionOutputTokensPerSecond",
|
|
16697
16777
|
"apiOutputTokensPerSecond"
|
|
16698
16778
|
]) {
|
|
16699
16779
|
const candidate = value[field2];
|
|
@@ -16895,14 +16975,12 @@ var COMMON_EXCLUDED_LIVE_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
16895
16975
|
"reload-plugins"
|
|
16896
16976
|
]);
|
|
16897
16977
|
var COMMON_EXCLUDED_LIVE_COMMAND_PREFIXES = ["__", "hooks-"];
|
|
16898
|
-
function isExcludedLiveCommand(name,
|
|
16978
|
+
function isExcludedLiveCommand(name, extra = {}) {
|
|
16899
16979
|
const normalized = name.trim().replace(/^\//u, "");
|
|
16900
16980
|
if (new Set(extra.names ?? []).has(normalized))
|
|
16901
16981
|
return true;
|
|
16902
16982
|
if (extra.prefixes?.some((prefix) => normalized.startsWith(prefix)))
|
|
16903
16983
|
return true;
|
|
16904
|
-
if (kind === "skill")
|
|
16905
|
-
return false;
|
|
16906
16984
|
return COMMON_EXCLUDED_LIVE_COMMANDS.has(normalized) || COMMON_EXCLUDED_LIVE_COMMAND_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
16907
16985
|
}
|
|
16908
16986
|
function liveHarnessCommandPrompt(catalog, idPrefix, commandId, argumentText) {
|
|
@@ -16924,7 +17002,7 @@ function mergeLiveHarnessCommands(builtIns, idPrefix, live, exclusions = {}) {
|
|
|
16924
17002
|
const name = command.name.trim().replace(/^\//u, "");
|
|
16925
17003
|
if (!name || /\s/u.test(name))
|
|
16926
17004
|
continue;
|
|
16927
|
-
if (isExcludedLiveCommand(name,
|
|
17005
|
+
if (isExcludedLiveCommand(name, exclusions))
|
|
16928
17006
|
continue;
|
|
16929
17007
|
const invocation = `/${name}`;
|
|
16930
17008
|
const id2 = `${idPrefix}${name.replace(/[^A-Za-z0-9._:-]/gu, "-")}`.slice(0, 128);
|
|
@@ -16936,8 +17014,7 @@ function mergeLiveHarnessCommands(builtIns, idPrefix, live, exclusions = {}) {
|
|
|
16936
17014
|
invocation,
|
|
16937
17015
|
label: name.slice(0, 128),
|
|
16938
17016
|
...description ? { description } : {},
|
|
16939
|
-
argumentMode: "text"
|
|
16940
|
-
kind: command.kind
|
|
17017
|
+
argumentMode: "text"
|
|
16941
17018
|
});
|
|
16942
17019
|
if (!parsed.success)
|
|
16943
17020
|
continue;
|
|
@@ -16948,6 +17025,60 @@ function mergeLiveHarnessCommands(builtIns, idPrefix, live, exclusions = {}) {
|
|
|
16948
17025
|
return harnessCommandCatalogSchema.parse({ commands: [...builtIns.commands, ...dynamic] });
|
|
16949
17026
|
}
|
|
16950
17027
|
|
|
17028
|
+
// ../../harness-adapter/dist/subagent-configuration.js
|
|
17029
|
+
function subagentConfiguration(value) {
|
|
17030
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
17031
|
+
return {};
|
|
17032
|
+
const row = value;
|
|
17033
|
+
const text2 = (value2) => typeof value2 === "string" && value2.trim() ? value2 : void 0;
|
|
17034
|
+
const model2 = row.model === "inherit" ? void 0 : text2(row.model);
|
|
17035
|
+
const reasoningEffort = text2(row.reasoningEffort) ?? text2(row.reasoning_effort) ?? text2(row.thinking);
|
|
17036
|
+
return { ...model2 ? { model: model2 } : {}, ...reasoningEffort ? { reasoningEffort } : {} };
|
|
17037
|
+
}
|
|
17038
|
+
function inheritSubagentConfiguration(child, parent) {
|
|
17039
|
+
const native = subagentConfiguration(child);
|
|
17040
|
+
const model2 = native.model ?? parent.model;
|
|
17041
|
+
const reasoningEffort = native.reasoningEffort ?? parent.reasoningEffort;
|
|
17042
|
+
const next = { ...child };
|
|
17043
|
+
delete next.model;
|
|
17044
|
+
delete next.reasoningEffort;
|
|
17045
|
+
return { ...next, ...model2 ? { model: model2 } : {}, ...reasoningEffort ? { reasoningEffort } : {} };
|
|
17046
|
+
}
|
|
17047
|
+
function configureSubagentEvent(event, parent) {
|
|
17048
|
+
const children = (states) => states.map((child) => inheritSubagentConfiguration(child, parent));
|
|
17049
|
+
if (event.type === "item.started" && event.item.type === "subagentDelegation")
|
|
17050
|
+
return { ...event, item: { ...event.item, subagents: children(event.item.subagents) } };
|
|
17051
|
+
if (event.type === "item.updated" && event.update.type === "subagents.replace")
|
|
17052
|
+
return { ...event, update: { ...event.update, subagents: children(event.update.subagents) } };
|
|
17053
|
+
if (event.type === "item.completed" && event.snapshot.item.type === "subagentDelegation")
|
|
17054
|
+
return {
|
|
17055
|
+
...event,
|
|
17056
|
+
snapshot: {
|
|
17057
|
+
...event.snapshot,
|
|
17058
|
+
item: {
|
|
17059
|
+
...event.snapshot.item,
|
|
17060
|
+
subagents: children(event.snapshot.item.subagents)
|
|
17061
|
+
}
|
|
17062
|
+
}
|
|
17063
|
+
};
|
|
17064
|
+
return event;
|
|
17065
|
+
}
|
|
17066
|
+
function configureSubagentSnapshot(snapshot, parent) {
|
|
17067
|
+
return {
|
|
17068
|
+
...snapshot,
|
|
17069
|
+
turns: snapshot.turns.map((turn) => ({
|
|
17070
|
+
...turn,
|
|
17071
|
+
items: turn.items.map((entry) => entry.item.type === "subagentDelegation" ? {
|
|
17072
|
+
...entry,
|
|
17073
|
+
item: {
|
|
17074
|
+
...entry.item,
|
|
17075
|
+
subagents: entry.item.subagents.map((child) => inheritSubagentConfiguration(child, parent))
|
|
17076
|
+
}
|
|
17077
|
+
} : entry)
|
|
17078
|
+
}))
|
|
17079
|
+
};
|
|
17080
|
+
}
|
|
17081
|
+
|
|
16951
17082
|
// ../../harness-broker/dist/protocol.js
|
|
16952
17083
|
var HARNESS_BROKER_PROTOCOL_VERSION = 1;
|
|
16953
17084
|
var HARNESS_BROKER_MAX_FRAME_BYTES = 8 * 1024 * 1024;
|
|
@@ -55681,6 +55812,7 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
55681
55812
|
const agentId = boundedString(message.task_id, SUBAGENT_DESCRIPTION_LIMIT);
|
|
55682
55813
|
events.push({
|
|
55683
55814
|
type: "subagent.updated",
|
|
55815
|
+
...subagentConfiguration(message),
|
|
55684
55816
|
callId,
|
|
55685
55817
|
status: "running",
|
|
55686
55818
|
...description ? { description } : {},
|
|
@@ -55696,6 +55828,7 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
55696
55828
|
const agentId = boundedString(message.task_id, SUBAGENT_DESCRIPTION_LIMIT);
|
|
55697
55829
|
events.push({
|
|
55698
55830
|
type: "subagent.updated",
|
|
55831
|
+
...subagentConfiguration(message),
|
|
55699
55832
|
callId,
|
|
55700
55833
|
status: "running",
|
|
55701
55834
|
...description ? { description } : {},
|
|
@@ -55714,8 +55847,10 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
55714
55847
|
const agentId = boundedString(message.task_id, SUBAGENT_DESCRIPTION_LIMIT);
|
|
55715
55848
|
events.push({
|
|
55716
55849
|
type: "subagent.updated",
|
|
55850
|
+
...subagentConfiguration(message),
|
|
55717
55851
|
callId,
|
|
55718
55852
|
status,
|
|
55853
|
+
...subagentConfiguration(message.patch),
|
|
55719
55854
|
...description ? { description } : {},
|
|
55720
55855
|
...agentId ? { nativeSubagentId: agentId } : {},
|
|
55721
55856
|
...resultSummary ? { resultSummary } : {}
|
|
@@ -55881,6 +56016,7 @@ var ClaudeNativeTurnAccumulator = class {
|
|
|
55881
56016
|
const agentId = targetedSubagentId(argumentsResult.data);
|
|
55882
56017
|
events.push({
|
|
55883
56018
|
type: "subagent.started",
|
|
56019
|
+
...subagentConfiguration(argumentsResult.data),
|
|
55884
56020
|
callId: block.id,
|
|
55885
56021
|
operation: block.name === "SendMessage" ? "send" : "spawn",
|
|
55886
56022
|
description: subagentDescription(argumentsResult.data, block.name),
|
|
@@ -57338,10 +57474,9 @@ function parseClaudeSlashCommands(value) {
|
|
|
57338
57474
|
});
|
|
57339
57475
|
}
|
|
57340
57476
|
function claudeLiveCommandCatalog(builtIns, snapshot) {
|
|
57341
|
-
return mergeLiveHarnessCommands(builtIns, DYNAMIC_ID_PREFIX, snapshot?.commands.map((command) => ({
|
|
57477
|
+
return mergeLiveHarnessCommands(builtIns, DYNAMIC_ID_PREFIX, snapshot?.commands.filter((command) => !snapshot.skillNames.has(command.name)).map((command) => ({
|
|
57342
57478
|
name: command.name,
|
|
57343
|
-
description: command.description
|
|
57344
|
-
kind: snapshot.skillNames.has(command.name) ? "skill" : "command"
|
|
57479
|
+
description: command.description
|
|
57345
57480
|
})) ?? null, { names: CLAUDE_EXCLUDED_COMMANDS });
|
|
57346
57481
|
}
|
|
57347
57482
|
function claudeDynamicCommandPrompt(catalog, commandId, argumentText) {
|
|
@@ -58749,6 +58884,7 @@ var ClaudeSubagentLifecycle = class {
|
|
|
58749
58884
|
subagentId: event.nativeSubagentId ?? event.callId,
|
|
58750
58885
|
...event.nativeSubagentId ? { nativeSubagentId: event.nativeSubagentId } : {},
|
|
58751
58886
|
description: event.description,
|
|
58887
|
+
...subagentConfiguration(event),
|
|
58752
58888
|
...event.role ? { role: event.role } : {},
|
|
58753
58889
|
background: event.background,
|
|
58754
58890
|
status: "running"
|
|
@@ -58772,6 +58908,7 @@ var ClaudeSubagentLifecycle = class {
|
|
|
58772
58908
|
throw new Error("Claude Code Subagent delegation has no Agent state");
|
|
58773
58909
|
const subagent = {
|
|
58774
58910
|
...current,
|
|
58911
|
+
...subagentConfiguration(event),
|
|
58775
58912
|
status: event.status,
|
|
58776
58913
|
...event.nativeSubagentId ? { nativeSubagentId: event.nativeSubagentId } : {},
|
|
58777
58914
|
...event.description ? { description: event.description } : {},
|
|
@@ -59830,7 +59967,19 @@ var ClaudeHarnessSession = class {
|
|
|
59830
59967
|
get nativeWriterRef() {
|
|
59831
59968
|
return this.#nativeRef;
|
|
59832
59969
|
}
|
|
59970
|
+
#subagentConfiguration() {
|
|
59971
|
+
const state = this.#state;
|
|
59972
|
+
const model2 = state.effectiveModel ? decodeClaudeModelRef(state.effectiveModel) : void 0;
|
|
59973
|
+
return {
|
|
59974
|
+
...model2 ? { model: model2 } : {},
|
|
59975
|
+
...state.effectiveThinkingOptionId ? { reasoningEffort: state.effectiveThinkingOptionId } : {}
|
|
59976
|
+
};
|
|
59977
|
+
}
|
|
59833
59978
|
async readSnapshot() {
|
|
59979
|
+
const result = await this.#readSnapshot();
|
|
59980
|
+
return result.ok ? { ok: true, value: configureSubagentSnapshot(result.value, this.#subagentConfiguration()) } : result;
|
|
59981
|
+
}
|
|
59982
|
+
async #readSnapshot() {
|
|
59834
59983
|
if (this.#phase !== "open") {
|
|
59835
59984
|
return { ok: false, error: invalidState("Claude Code Session is not open") };
|
|
59836
59985
|
}
|
|
@@ -61820,6 +61969,7 @@ var ClaudeHarnessSession = class {
|
|
|
61820
61969
|
void this.#transport?.close().catch(() => void 0);
|
|
61821
61970
|
}
|
|
61822
61971
|
#event(event) {
|
|
61972
|
+
event = configureSubagentEvent(event, this.#subagentConfiguration());
|
|
61823
61973
|
this.#channel.emit({ kind: "event", event });
|
|
61824
61974
|
}
|
|
61825
61975
|
};
|