@karlorz/codexhost-cli-linux-x64 0.19.0-2 → 0.20.0-1
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 +60 -11
- package/app/console-web.js +1280 -826
- package/app/cpa-live-voice-hook.js +24 -3
- package/app/desktop-controller.mjs +24 -3
- package/app/host-runtime.mjs +1586 -1189
- package/app/plugins/antigravity/plugin.mjs +8782 -4311
- package/app/plugins/claude-code/plugin.mjs +26 -3
- package/app/plugins/codebuddy/plugin.mjs +41 -5
- package/app/plugins/codex-usage/plugin.mjs +26 -3
- package/app/plugins/copilot/plugin.mjs +26 -3
- package/app/plugins/cursor-cli/plugin.mjs +26 -3
- package/app/plugins/deepseek-harness/plugin.mjs +26 -3
- package/app/plugins/devin/plugin.mjs +25 -3
- package/app/plugins/grok/plugin.mjs +26 -3
- package/app/plugins/hermes/plugin.mjs +25 -3
- package/app/plugins/kimi-code/plugin.mjs +26 -3
- package/app/plugins/kiro-cli/plugin.mjs +26 -3
- package/app/plugins/omp/plugin.mjs +43 -5
- package/app/plugins/opencode/plugin.mjs +26 -3
- package/app/plugins/pi/plugin.mjs +45 -6
- package/app/plugins/qoder/plugin.mjs +48 -4
- package/app/plugins/qoder-cn/plugin.mjs +48 -4
- package/app/plugins/qwen-code/plugin.mjs +26 -3
- package/app/plugins/workbuddy/plugin.mjs +45 -8
- package/app/plugins/zcode/plugin.mjs +26 -3
- package/app/renderer-extension.js +1698 -983
- package/app/web/assets/index-B5OfOGb8.js +201 -0
- package/app/web/assets/index-D6-hvggd.css +1 -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 +1285 -827
- 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 +68 -68
- package/app/web/plugins/deepseek-ai__dsh-client-connection/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +74 -69
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +13 -13
- package/app/web/plugins/deepseek-ai__dsh-client-ui-session/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-workspace/client.js +7 -7
- package/app/web-modules/server.mjs +135 -69
- 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-BCyiiDDL.js +0 -199
- package/app/web/assets/index-BNQIOOHE.css +0 -1
|
@@ -28018,13 +28018,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
28018
28018
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
28019
28019
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
28020
28020
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
28021
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
28022
|
+
version: external_exports.literal(3).optional(),
|
|
28023
|
+
requestId: external_exports.string().min(1),
|
|
28024
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
28025
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
28026
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
28027
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
28028
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
28021
28029
|
var usageMeasurementSchema = external_exports.object({
|
|
28030
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
28022
28031
|
value: finiteNonNegativeNumberSchema,
|
|
28023
28032
|
turnId: external_exports.string().min(1).max(1024),
|
|
28024
28033
|
at: nonNegativeSafeIntegerSchema
|
|
28025
28034
|
}).strict();
|
|
28026
28035
|
var usageMeasurementsSchema = external_exports.object({
|
|
28027
|
-
|
|
28036
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
28037
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
28038
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
28039
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
28028
28040
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
28029
28041
|
}).strict();
|
|
28030
28042
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -28044,6 +28056,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
28044
28056
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
28045
28057
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
28046
28058
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
28059
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
28047
28060
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
28048
28061
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
28049
28062
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -28503,6 +28516,10 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
28503
28516
|
})
|
|
28504
28517
|
});
|
|
28505
28518
|
|
|
28519
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
28520
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
28521
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
28522
|
+
|
|
28506
28523
|
// ../../shared-contracts/dist/client-channel.js
|
|
28507
28524
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
28508
28525
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -28642,7 +28659,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
28642
28659
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
28643
28660
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
28644
28661
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
28645
|
-
command: external_exports.object({
|
|
28662
|
+
command: external_exports.object({
|
|
28663
|
+
name: external_exports.string().min(1),
|
|
28664
|
+
turn: clientTurnSchema,
|
|
28665
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
28666
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
28667
|
+
}).optional(),
|
|
28646
28668
|
thread: external_exports.object({
|
|
28647
28669
|
id: external_exports.string().min(1),
|
|
28648
28670
|
cwd: external_exports.string(),
|
|
@@ -28850,7 +28872,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
28850
28872
|
quotaUntil: external_exports.string().optional()
|
|
28851
28873
|
}).strict().optional()
|
|
28852
28874
|
}).strict();
|
|
28853
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
28854
28875
|
|
|
28855
28876
|
// ../../shared-contracts/dist/delegation-read.js
|
|
28856
28877
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -30496,6 +30517,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
30496
30517
|
"totalCredits",
|
|
30497
30518
|
"contextUsagePercent",
|
|
30498
30519
|
"outputTokensPerSecond",
|
|
30520
|
+
"sessionOutputTokensPerSecond",
|
|
30499
30521
|
"apiOutputTokensPerSecond",
|
|
30500
30522
|
"costSource",
|
|
30501
30523
|
"unpricedModels"
|
|
@@ -30518,6 +30540,7 @@ function parseHostUsage(value) {
|
|
|
30518
30540
|
for (const field2 of [
|
|
30519
30541
|
"totalCredits",
|
|
30520
30542
|
"contextUsagePercent",
|
|
30543
|
+
"sessionOutputTokensPerSecond",
|
|
30521
30544
|
"apiOutputTokensPerSecond"
|
|
30522
30545
|
]) {
|
|
30523
30546
|
const candidate = value[field2];
|
|
@@ -53547,6 +53570,8 @@ var QoderSession = class {
|
|
|
53547
53570
|
}
|
|
53548
53571
|
}
|
|
53549
53572
|
async #dispatchMessage(message) {
|
|
53573
|
+
if ((message.type === "assistant" || message.type === "stream_event" || message.type === "user") && message.parent_tool_use_id !== null && message.parent_tool_use_id !== void 0)
|
|
53574
|
+
return;
|
|
53550
53575
|
switch (message.type) {
|
|
53551
53576
|
case "system":
|
|
53552
53577
|
this.#handleSystemMessage(message);
|
|
@@ -53723,7 +53748,17 @@ var QoderSession = class {
|
|
|
53723
53748
|
if (!Array.isArray(content))
|
|
53724
53749
|
return;
|
|
53725
53750
|
const hasToolUseInMessage = content.some((block) => typeof block === "object" && block !== null && block.type === "tool_use");
|
|
53726
|
-
for (const block of content) {
|
|
53751
|
+
for (const [index, block] of content.entries()) {
|
|
53752
|
+
if (message.uuid && typeof block === "object" && block !== null) {
|
|
53753
|
+
const raw = block;
|
|
53754
|
+
const text = raw.type === "text" ? raw.text : raw.type === "thinking" ? raw.thinking : void 0;
|
|
53755
|
+
if (typeof text === "string") {
|
|
53756
|
+
const key = JSON.stringify([message.uuid, index, raw.type, text]);
|
|
53757
|
+
if (this.#activeTurn.projectedTextSnapshots.has(key))
|
|
53758
|
+
continue;
|
|
53759
|
+
this.#activeTurn.projectedTextSnapshots.add(key);
|
|
53760
|
+
}
|
|
53761
|
+
}
|
|
53727
53762
|
this.#projectAssistantBlock(block, hasToolUseInMessage);
|
|
53728
53763
|
}
|
|
53729
53764
|
}
|
|
@@ -53845,6 +53880,11 @@ var QoderSession = class {
|
|
|
53845
53880
|
});
|
|
53846
53881
|
}
|
|
53847
53882
|
} else if (rawBlock.type === "tool_use") {
|
|
53883
|
+
if (typeof rawBlock.id === "string" && rawBlock.id.trim()) {
|
|
53884
|
+
if (this.#activeTurn.startedToolIds.has(rawBlock.id))
|
|
53885
|
+
return;
|
|
53886
|
+
this.#activeTurn.startedToolIds.add(rawBlock.id);
|
|
53887
|
+
}
|
|
53848
53888
|
if (this.#activeTurn.activeStreamingMessageItemId) {
|
|
53849
53889
|
this.#emitEvent({
|
|
53850
53890
|
type: "item.completed",
|
|
@@ -54324,6 +54364,8 @@ var QoderSession = class {
|
|
|
54324
54364
|
this.#activeTurn = {
|
|
54325
54365
|
turnId: command.turnId,
|
|
54326
54366
|
userMessageUuid,
|
|
54367
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
54368
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
54327
54369
|
accumulatedStreamingText: "",
|
|
54328
54370
|
accumulatedStreamingReasoning: ""
|
|
54329
54371
|
};
|
|
@@ -54712,6 +54754,8 @@ var QoderSession = class {
|
|
|
54712
54754
|
this.#activeTurn = {
|
|
54713
54755
|
turnId: command.turnId,
|
|
54714
54756
|
userMessageUuid,
|
|
54757
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
54758
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
54715
54759
|
accumulatedStreamingText: "",
|
|
54716
54760
|
accumulatedStreamingReasoning: "",
|
|
54717
54761
|
isCompaction,
|
|
@@ -27615,13 +27615,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
27615
27615
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27616
27616
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27617
27617
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27618
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
27619
|
+
version: external_exports.literal(3).optional(),
|
|
27620
|
+
requestId: external_exports.string().min(1),
|
|
27621
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
27622
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
27623
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
27624
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
27625
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
27618
27626
|
var usageMeasurementSchema = external_exports.object({
|
|
27627
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
27619
27628
|
value: finiteNonNegativeNumberSchema,
|
|
27620
27629
|
turnId: external_exports.string().min(1).max(1024),
|
|
27621
27630
|
at: nonNegativeSafeIntegerSchema
|
|
27622
27631
|
}).strict();
|
|
27623
27632
|
var usageMeasurementsSchema = external_exports.object({
|
|
27624
|
-
|
|
27633
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
27634
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
27635
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
27636
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
27625
27637
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
27626
27638
|
}).strict();
|
|
27627
27639
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -27641,6 +27653,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
27641
27653
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27642
27654
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27643
27655
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27656
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27644
27657
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27645
27658
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27646
27659
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -28100,6 +28113,10 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
28100
28113
|
})
|
|
28101
28114
|
});
|
|
28102
28115
|
|
|
28116
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
28117
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
28118
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
28119
|
+
|
|
28103
28120
|
// ../../shared-contracts/dist/client-channel.js
|
|
28104
28121
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
28105
28122
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -28239,7 +28256,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
28239
28256
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
28240
28257
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
28241
28258
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
28242
|
-
command: external_exports.object({
|
|
28259
|
+
command: external_exports.object({
|
|
28260
|
+
name: external_exports.string().min(1),
|
|
28261
|
+
turn: clientTurnSchema,
|
|
28262
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
28263
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
28264
|
+
}).optional(),
|
|
28243
28265
|
thread: external_exports.object({
|
|
28244
28266
|
id: external_exports.string().min(1),
|
|
28245
28267
|
cwd: external_exports.string(),
|
|
@@ -28447,7 +28469,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
28447
28469
|
quotaUntil: external_exports.string().optional()
|
|
28448
28470
|
}).strict().optional()
|
|
28449
28471
|
}).strict();
|
|
28450
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
28451
28472
|
|
|
28452
28473
|
// ../../shared-contracts/dist/delegation-read.js
|
|
28453
28474
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -30498,6 +30519,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
30498
30519
|
"totalCredits",
|
|
30499
30520
|
"contextUsagePercent",
|
|
30500
30521
|
"outputTokensPerSecond",
|
|
30522
|
+
"sessionOutputTokensPerSecond",
|
|
30501
30523
|
"apiOutputTokensPerSecond",
|
|
30502
30524
|
"costSource",
|
|
30503
30525
|
"unpricedModels"
|
|
@@ -30520,6 +30542,7 @@ function parseHostUsage(value) {
|
|
|
30520
30542
|
for (const field2 of [
|
|
30521
30543
|
"totalCredits",
|
|
30522
30544
|
"contextUsagePercent",
|
|
30545
|
+
"sessionOutputTokensPerSecond",
|
|
30523
30546
|
"apiOutputTokensPerSecond"
|
|
30524
30547
|
]) {
|
|
30525
30548
|
const candidate = value[field2];
|
|
@@ -53549,6 +53572,8 @@ var QoderSession = class {
|
|
|
53549
53572
|
}
|
|
53550
53573
|
}
|
|
53551
53574
|
async #dispatchMessage(message) {
|
|
53575
|
+
if ((message.type === "assistant" || message.type === "stream_event" || message.type === "user") && message.parent_tool_use_id !== null && message.parent_tool_use_id !== void 0)
|
|
53576
|
+
return;
|
|
53552
53577
|
switch (message.type) {
|
|
53553
53578
|
case "system":
|
|
53554
53579
|
this.#handleSystemMessage(message);
|
|
@@ -53725,7 +53750,17 @@ var QoderSession = class {
|
|
|
53725
53750
|
if (!Array.isArray(content))
|
|
53726
53751
|
return;
|
|
53727
53752
|
const hasToolUseInMessage = content.some((block) => typeof block === "object" && block !== null && block.type === "tool_use");
|
|
53728
|
-
for (const block of content) {
|
|
53753
|
+
for (const [index, block] of content.entries()) {
|
|
53754
|
+
if (message.uuid && typeof block === "object" && block !== null) {
|
|
53755
|
+
const raw = block;
|
|
53756
|
+
const text = raw.type === "text" ? raw.text : raw.type === "thinking" ? raw.thinking : void 0;
|
|
53757
|
+
if (typeof text === "string") {
|
|
53758
|
+
const key = JSON.stringify([message.uuid, index, raw.type, text]);
|
|
53759
|
+
if (this.#activeTurn.projectedTextSnapshots.has(key))
|
|
53760
|
+
continue;
|
|
53761
|
+
this.#activeTurn.projectedTextSnapshots.add(key);
|
|
53762
|
+
}
|
|
53763
|
+
}
|
|
53729
53764
|
this.#projectAssistantBlock(block, hasToolUseInMessage);
|
|
53730
53765
|
}
|
|
53731
53766
|
}
|
|
@@ -53847,6 +53882,11 @@ var QoderSession = class {
|
|
|
53847
53882
|
});
|
|
53848
53883
|
}
|
|
53849
53884
|
} else if (rawBlock.type === "tool_use") {
|
|
53885
|
+
if (typeof rawBlock.id === "string" && rawBlock.id.trim()) {
|
|
53886
|
+
if (this.#activeTurn.startedToolIds.has(rawBlock.id))
|
|
53887
|
+
return;
|
|
53888
|
+
this.#activeTurn.startedToolIds.add(rawBlock.id);
|
|
53889
|
+
}
|
|
53850
53890
|
if (this.#activeTurn.activeStreamingMessageItemId) {
|
|
53851
53891
|
this.#emitEvent({
|
|
53852
53892
|
type: "item.completed",
|
|
@@ -54326,6 +54366,8 @@ var QoderSession = class {
|
|
|
54326
54366
|
this.#activeTurn = {
|
|
54327
54367
|
turnId: command.turnId,
|
|
54328
54368
|
userMessageUuid,
|
|
54369
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
54370
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
54329
54371
|
accumulatedStreamingText: "",
|
|
54330
54372
|
accumulatedStreamingReasoning: ""
|
|
54331
54373
|
};
|
|
@@ -54714,6 +54756,8 @@ var QoderSession = class {
|
|
|
54714
54756
|
this.#activeTurn = {
|
|
54715
54757
|
turnId: command.turnId,
|
|
54716
54758
|
userMessageUuid,
|
|
54759
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
54760
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
54717
54761
|
accumulatedStreamingText: "",
|
|
54718
54762
|
accumulatedStreamingReasoning: "",
|
|
54719
54763
|
isCompaction,
|
|
@@ -21920,13 +21920,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
21920
21920
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
21921
21921
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
21922
21922
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
21923
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
21924
|
+
version: external_exports.literal(3).optional(),
|
|
21925
|
+
requestId: external_exports.string().min(1),
|
|
21926
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
21927
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
21928
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
21929
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
21930
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
21923
21931
|
var usageMeasurementSchema = external_exports.object({
|
|
21932
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
21924
21933
|
value: finiteNonNegativeNumberSchema,
|
|
21925
21934
|
turnId: external_exports.string().min(1).max(1024),
|
|
21926
21935
|
at: nonNegativeSafeIntegerSchema
|
|
21927
21936
|
}).strict();
|
|
21928
21937
|
var usageMeasurementsSchema = external_exports.object({
|
|
21929
|
-
|
|
21938
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
21939
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
21940
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
21941
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
21930
21942
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
21931
21943
|
}).strict();
|
|
21932
21944
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -21946,6 +21958,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
21946
21958
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
21947
21959
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
21948
21960
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
21961
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
21949
21962
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
21950
21963
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
21951
21964
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -22405,6 +22418,10 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
22405
22418
|
})
|
|
22406
22419
|
});
|
|
22407
22420
|
|
|
22421
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
22422
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
22423
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
22424
|
+
|
|
22408
22425
|
// ../../shared-contracts/dist/client-channel.js
|
|
22409
22426
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
22410
22427
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -22544,7 +22561,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
22544
22561
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
22545
22562
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
22546
22563
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
22547
|
-
command: external_exports.object({
|
|
22564
|
+
command: external_exports.object({
|
|
22565
|
+
name: external_exports.string().min(1),
|
|
22566
|
+
turn: clientTurnSchema,
|
|
22567
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
22568
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
22569
|
+
}).optional(),
|
|
22548
22570
|
thread: external_exports.object({
|
|
22549
22571
|
id: external_exports.string().min(1),
|
|
22550
22572
|
cwd: external_exports.string(),
|
|
@@ -22752,7 +22774,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
22752
22774
|
quotaUntil: external_exports.string().optional()
|
|
22753
22775
|
}).strict().optional()
|
|
22754
22776
|
}).strict();
|
|
22755
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
22756
22777
|
|
|
22757
22778
|
// ../../shared-contracts/dist/delegation-read.js
|
|
22758
22779
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -24119,6 +24140,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
24119
24140
|
"totalCredits",
|
|
24120
24141
|
"contextUsagePercent",
|
|
24121
24142
|
"outputTokensPerSecond",
|
|
24143
|
+
"sessionOutputTokensPerSecond",
|
|
24122
24144
|
"apiOutputTokensPerSecond",
|
|
24123
24145
|
"costSource",
|
|
24124
24146
|
"unpricedModels"
|
|
@@ -24141,6 +24163,7 @@ function parseHostUsage(value) {
|
|
|
24141
24163
|
for (const field2 of [
|
|
24142
24164
|
"totalCredits",
|
|
24143
24165
|
"contextUsagePercent",
|
|
24166
|
+
"sessionOutputTokensPerSecond",
|
|
24144
24167
|
"apiOutputTokensPerSecond"
|
|
24145
24168
|
]) {
|
|
24146
24169
|
const candidate = value[field2];
|
|
@@ -15032,13 +15032,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15032
15032
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15033
15033
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15034
15034
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15035
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15036
|
+
version: external_exports.literal(3).optional(),
|
|
15037
|
+
requestId: external_exports.string().min(1),
|
|
15038
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15039
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15040
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15041
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15042
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15035
15043
|
var usageMeasurementSchema = external_exports.object({
|
|
15044
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15036
15045
|
value: finiteNonNegativeNumberSchema,
|
|
15037
15046
|
turnId: external_exports.string().min(1).max(1024),
|
|
15038
15047
|
at: nonNegativeSafeIntegerSchema
|
|
15039
15048
|
}).strict();
|
|
15040
15049
|
var usageMeasurementsSchema = external_exports.object({
|
|
15041
|
-
|
|
15050
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
15051
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
15052
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15053
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15042
15054
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15043
15055
|
}).strict();
|
|
15044
15056
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15058,6 +15070,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15058
15070
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15059
15071
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15060
15072
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15073
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15061
15074
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15062
15075
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15063
15076
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15517,6 +15530,10 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
15517
15530
|
})
|
|
15518
15531
|
});
|
|
15519
15532
|
|
|
15533
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15534
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15535
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15536
|
+
|
|
15520
15537
|
// ../../shared-contracts/dist/client-channel.js
|
|
15521
15538
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15522
15539
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15656,7 +15673,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15656
15673
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15657
15674
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15658
15675
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15659
|
-
command: external_exports.object({
|
|
15676
|
+
command: external_exports.object({
|
|
15677
|
+
name: external_exports.string().min(1),
|
|
15678
|
+
turn: clientTurnSchema,
|
|
15679
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15680
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15681
|
+
}).optional(),
|
|
15660
15682
|
thread: external_exports.object({
|
|
15661
15683
|
id: external_exports.string().min(1),
|
|
15662
15684
|
cwd: external_exports.string(),
|
|
@@ -15864,7 +15886,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15864
15886
|
quotaUntil: external_exports.string().optional()
|
|
15865
15887
|
}).strict().optional()
|
|
15866
15888
|
}).strict();
|
|
15867
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15868
15889
|
|
|
15869
15890
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15870
15891
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17259,6 +17280,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17259
17280
|
"totalCredits",
|
|
17260
17281
|
"contextUsagePercent",
|
|
17261
17282
|
"outputTokensPerSecond",
|
|
17283
|
+
"sessionOutputTokensPerSecond",
|
|
17262
17284
|
"apiOutputTokensPerSecond",
|
|
17263
17285
|
"costSource",
|
|
17264
17286
|
"unpricedModels"
|
|
@@ -17281,6 +17303,7 @@ function parseHostUsage(value) {
|
|
|
17281
17303
|
for (const field2 of [
|
|
17282
17304
|
"totalCredits",
|
|
17283
17305
|
"contextUsagePercent",
|
|
17306
|
+
"sessionOutputTokensPerSecond",
|
|
17284
17307
|
"apiOutputTokensPerSecond"
|
|
17285
17308
|
]) {
|
|
17286
17309
|
const candidate = value[field2];
|
|
@@ -19640,10 +19663,15 @@ var CodeBuddyTurnOutput = class {
|
|
|
19640
19663
|
snapshot: structuredClone({ item, outcome })
|
|
19641
19664
|
});
|
|
19642
19665
|
}
|
|
19666
|
+
hasItem(itemId) {
|
|
19667
|
+
return this.#items.has(itemId);
|
|
19668
|
+
}
|
|
19643
19669
|
replayCommandResult(items) {
|
|
19644
19670
|
if (this.#items.size)
|
|
19645
19671
|
return;
|
|
19646
19672
|
for (const snapshot of items) {
|
|
19673
|
+
if (this.hasItem(snapshot.item.itemId))
|
|
19674
|
+
continue;
|
|
19647
19675
|
const item = structuredClone(snapshot.item);
|
|
19648
19676
|
this.#start(item);
|
|
19649
19677
|
this.#finish(item, snapshot.outcome);
|
|
@@ -20272,6 +20300,8 @@ function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PRO
|
|
|
20272
20300
|
current.completedAtMs = row.timestamp;
|
|
20273
20301
|
}
|
|
20274
20302
|
} else if (row.type === "function_call") {
|
|
20303
|
+
if (row.status === "incomplete" && data.isPartialAborted === true && data.discard === true)
|
|
20304
|
+
continue;
|
|
20275
20305
|
let input = row.arguments;
|
|
20276
20306
|
if (typeof input === "string") {
|
|
20277
20307
|
try {
|
|
@@ -25649,6 +25679,9 @@ function referencedChildren(rows2) {
|
|
|
25649
25679
|
const children = /* @__PURE__ */ new Map();
|
|
25650
25680
|
for (const row of rows2) {
|
|
25651
25681
|
if (row.type === "function_call" && row.name === "Agent") {
|
|
25682
|
+
const data = record3(row.providerData);
|
|
25683
|
+
if (row.status === "incomplete" && data.isPartialAborted === true && data.discard === true)
|
|
25684
|
+
continue;
|
|
25652
25685
|
const callId2 = text(row.callId);
|
|
25653
25686
|
if (!callId2 || calls.has(callId2))
|
|
25654
25687
|
throw new CodeBuddyError("protocolError", "Agent delegation identity is ambiguous");
|
|
@@ -26693,6 +26726,9 @@ var CodeBuddySubagents = class {
|
|
|
26693
26726
|
begin(turnId) {
|
|
26694
26727
|
this.#turnId = turnId;
|
|
26695
26728
|
}
|
|
26729
|
+
hasItem(itemId) {
|
|
26730
|
+
return [...this.#calls.values()].some((call) => call.turnId === this.#turnId && call.item.itemId === itemId);
|
|
26731
|
+
}
|
|
26696
26732
|
state(id) {
|
|
26697
26733
|
return [...this.#calls.values()].map((call) => call.item.subagents[0]).findLast((child) => child?.nativeSubagentId === id);
|
|
26698
26734
|
}
|
|
@@ -26966,7 +27002,7 @@ var CodeBuddySession = class {
|
|
|
26966
27002
|
}
|
|
26967
27003
|
if (this.#replaying)
|
|
26968
27004
|
return;
|
|
26969
|
-
if (this.subagents.update(update))
|
|
27005
|
+
if ((text(record3(update._meta)["codebuddy.ai/parentToolCallId"]) || !this.#active?.output.hasItem(`tool-${text(update.toolCallId)}`)) && this.subagents.update(update))
|
|
26970
27006
|
return;
|
|
26971
27007
|
if (update.sessionUpdate === "config_option_update" && this.#config)
|
|
26972
27008
|
this.#apply(configuration(update.configOptions, this.profile));
|
|
@@ -27259,7 +27295,7 @@ var CodeBuddySession = class {
|
|
|
27259
27295
|
throw new CodeBuddyError("protocolError", "Could not identify exactly one persisted Native Turn");
|
|
27260
27296
|
active.output.confirmCompaction(snapshot.turns.flatMap((turn) => turn.items).filter((snapshot2) => !active.beforeItems.has(snapshot2.item.itemId)));
|
|
27261
27297
|
if (active.nativeCommand)
|
|
27262
|
-
active.output.replayCommandResult(added[0]?.items ?? []);
|
|
27298
|
+
active.output.replayCommandResult((added[0]?.items ?? []).filter(({ item }) => !this.subagents.hasItem(item.itemId)));
|
|
27263
27299
|
const nativeTurnRef = added[0]?.nativeTurnRef;
|
|
27264
27300
|
if (nativeTurnRef)
|
|
27265
27301
|
this.#hasTurn = true;
|
|
@@ -27909,7 +27945,8 @@ require(process.argv[1]);`, bundle.cli] : [],
|
|
|
27909
27945
|
...acpArguments,
|
|
27910
27946
|
...serve ? ["--serve", "--host", "127.0.0.1", "--port", "0", "--auth", "password"] : []
|
|
27911
27947
|
], childEnvironment, platform),
|
|
27912
|
-
environment: childEnvironment
|
|
27948
|
+
environment: childEnvironment,
|
|
27949
|
+
...bundle ? { bundledCliPath: bundle.cli } : {}
|
|
27913
27950
|
};
|
|
27914
27951
|
}
|
|
27915
27952
|
|
|
@@ -28008,8 +28045,8 @@ async function readProductJson(file2) {
|
|
|
28008
28045
|
return JSON.parse(await readFile5(file2, "utf8"));
|
|
28009
28046
|
}
|
|
28010
28047
|
function bundledFallbackProductPath(invocation) {
|
|
28011
|
-
const cli = invocation.
|
|
28012
|
-
if (!cli
|
|
28048
|
+
const cli = invocation.bundledCliPath;
|
|
28049
|
+
if (!cli)
|
|
28013
28050
|
return;
|
|
28014
28051
|
return path11.join(path11.dirname(path11.dirname(cli)), "product.json");
|
|
28015
28052
|
}
|
|
@@ -15218,13 +15218,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15218
15218
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15219
15219
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15220
15220
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15221
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15222
|
+
version: external_exports.literal(3).optional(),
|
|
15223
|
+
requestId: external_exports.string().min(1),
|
|
15224
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15225
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15226
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15227
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15228
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15221
15229
|
var usageMeasurementSchema = external_exports.object({
|
|
15230
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15222
15231
|
value: finiteNonNegativeNumberSchema,
|
|
15223
15232
|
turnId: external_exports.string().min(1).max(1024),
|
|
15224
15233
|
at: nonNegativeSafeIntegerSchema
|
|
15225
15234
|
}).strict();
|
|
15226
15235
|
var usageMeasurementsSchema = external_exports.object({
|
|
15227
|
-
|
|
15236
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
15237
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
15238
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15239
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15228
15240
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15229
15241
|
}).strict();
|
|
15230
15242
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15244,6 +15256,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15244
15256
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15245
15257
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15246
15258
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15259
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15247
15260
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15248
15261
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15249
15262
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15703,6 +15716,10 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
15703
15716
|
})
|
|
15704
15717
|
});
|
|
15705
15718
|
|
|
15719
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15720
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15721
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15722
|
+
|
|
15706
15723
|
// ../../shared-contracts/dist/client-channel.js
|
|
15707
15724
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15708
15725
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15842,7 +15859,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15842
15859
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15843
15860
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15844
15861
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15845
|
-
command: external_exports.object({
|
|
15862
|
+
command: external_exports.object({
|
|
15863
|
+
name: external_exports.string().min(1),
|
|
15864
|
+
turn: clientTurnSchema,
|
|
15865
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15866
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15867
|
+
}).optional(),
|
|
15846
15868
|
thread: external_exports.object({
|
|
15847
15869
|
id: external_exports.string().min(1),
|
|
15848
15870
|
cwd: external_exports.string(),
|
|
@@ -16050,7 +16072,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
16050
16072
|
quotaUntil: external_exports.string().optional()
|
|
16051
16073
|
}).strict().optional()
|
|
16052
16074
|
}).strict();
|
|
16053
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
16054
16075
|
|
|
16055
16076
|
// ../../shared-contracts/dist/delegation-read.js
|
|
16056
16077
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17428,6 +17449,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17428
17449
|
"totalCredits",
|
|
17429
17450
|
"contextUsagePercent",
|
|
17430
17451
|
"outputTokensPerSecond",
|
|
17452
|
+
"sessionOutputTokensPerSecond",
|
|
17431
17453
|
"apiOutputTokensPerSecond",
|
|
17432
17454
|
"costSource",
|
|
17433
17455
|
"unpricedModels"
|
|
@@ -17450,6 +17472,7 @@ function parseHostUsage(value) {
|
|
|
17450
17472
|
for (const field3 of [
|
|
17451
17473
|
"totalCredits",
|
|
17452
17474
|
"contextUsagePercent",
|
|
17475
|
+
"sessionOutputTokensPerSecond",
|
|
17453
17476
|
"apiOutputTokensPerSecond"
|
|
17454
17477
|
]) {
|
|
17455
17478
|
const candidate = value[field3];
|