@codexhost/cli-darwin-x64 0.19.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 +24 -3
- package/app/console-web.js +1095 -682
- package/app/desktop-controller.mjs +40 -4
- package/app/host-runtime.mjs +1572 -1120
- package/app/plugins/antigravity/plugin.mjs +8753 -4274
- 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 +44 -6
- 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 +1411 -737
- 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 +1101 -684
- 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-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 +138 -70
- 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-BNQIOOHE.css +0 -1
- package/app/web/assets/index-Feo4BkqN.js +0 -199
|
@@ -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,6 +15112,10 @@ 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;
|
|
@@ -15238,7 +15255,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15238
15255
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15239
15256
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15240
15257
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15241
|
-
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(),
|
|
15242
15264
|
thread: external_exports.object({
|
|
15243
15265
|
id: external_exports.string().min(1),
|
|
15244
15266
|
cwd: external_exports.string(),
|
|
@@ -15446,7 +15468,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15446
15468
|
quotaUntil: external_exports.string().optional()
|
|
15447
15469
|
}).strict().optional()
|
|
15448
15470
|
}).strict();
|
|
15449
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15450
15471
|
|
|
15451
15472
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15452
15473
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -16729,6 +16750,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16729
16750
|
"totalCredits",
|
|
16730
16751
|
"contextUsagePercent",
|
|
16731
16752
|
"outputTokensPerSecond",
|
|
16753
|
+
"sessionOutputTokensPerSecond",
|
|
16732
16754
|
"apiOutputTokensPerSecond",
|
|
16733
16755
|
"costSource",
|
|
16734
16756
|
"unpricedModels"
|
|
@@ -16751,6 +16773,7 @@ function parseHostUsage(value) {
|
|
|
16751
16773
|
for (const field2 of [
|
|
16752
16774
|
"totalCredits",
|
|
16753
16775
|
"contextUsagePercent",
|
|
16776
|
+
"sessionOutputTokensPerSecond",
|
|
16754
16777
|
"apiOutputTokensPerSecond"
|
|
16755
16778
|
]) {
|
|
16756
16779
|
const candidate = value[field2];
|
|
@@ -15138,13 +15138,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15138
15138
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15139
15139
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15140
15140
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15141
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15142
|
+
version: external_exports.literal(3).optional(),
|
|
15143
|
+
requestId: external_exports.string().min(1),
|
|
15144
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15145
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15146
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15147
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15148
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15141
15149
|
var usageMeasurementSchema = external_exports.object({
|
|
15150
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15142
15151
|
value: finiteNonNegativeNumberSchema,
|
|
15143
15152
|
turnId: external_exports.string().min(1).max(1024),
|
|
15144
15153
|
at: nonNegativeSafeIntegerSchema
|
|
15145
15154
|
}).strict();
|
|
15146
15155
|
var usageMeasurementsSchema = external_exports.object({
|
|
15147
|
-
|
|
15156
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
15157
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
15158
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15159
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15148
15160
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15149
15161
|
}).strict();
|
|
15150
15162
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15164,6 +15176,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15164
15176
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15165
15177
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15166
15178
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15179
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15167
15180
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15168
15181
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15169
15182
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15575,6 +15588,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15575
15588
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15576
15589
|
}).strict();
|
|
15577
15590
|
|
|
15591
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15592
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15593
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15594
|
+
|
|
15578
15595
|
// ../../shared-contracts/dist/client-channel.js
|
|
15579
15596
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15580
15597
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15714,7 +15731,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15714
15731
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15715
15732
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15716
15733
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15717
|
-
command: external_exports.object({
|
|
15734
|
+
command: external_exports.object({
|
|
15735
|
+
name: external_exports.string().min(1),
|
|
15736
|
+
turn: clientTurnSchema,
|
|
15737
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15738
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15739
|
+
}).optional(),
|
|
15718
15740
|
thread: external_exports.object({
|
|
15719
15741
|
id: external_exports.string().min(1),
|
|
15720
15742
|
cwd: external_exports.string(),
|
|
@@ -15922,7 +15944,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15922
15944
|
quotaUntil: external_exports.string().optional()
|
|
15923
15945
|
}).strict().optional()
|
|
15924
15946
|
}).strict();
|
|
15925
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15926
15947
|
|
|
15927
15948
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15928
15949
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17234,6 +17255,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17234
17255
|
"totalCredits",
|
|
17235
17256
|
"contextUsagePercent",
|
|
17236
17257
|
"outputTokensPerSecond",
|
|
17258
|
+
"sessionOutputTokensPerSecond",
|
|
17237
17259
|
"apiOutputTokensPerSecond",
|
|
17238
17260
|
"costSource",
|
|
17239
17261
|
"unpricedModels"
|
|
@@ -17256,6 +17278,7 @@ function parseHostUsage(value) {
|
|
|
17256
17278
|
for (const field2 of [
|
|
17257
17279
|
"totalCredits",
|
|
17258
17280
|
"contextUsagePercent",
|
|
17281
|
+
"sessionOutputTokensPerSecond",
|
|
17259
17282
|
"apiOutputTokensPerSecond"
|
|
17260
17283
|
]) {
|
|
17261
17284
|
const candidate = value[field2];
|
|
@@ -18441,10 +18464,15 @@ var CodeBuddyTurnOutput = class {
|
|
|
18441
18464
|
snapshot: structuredClone({ item, outcome })
|
|
18442
18465
|
});
|
|
18443
18466
|
}
|
|
18467
|
+
hasItem(itemId) {
|
|
18468
|
+
return this.#items.has(itemId);
|
|
18469
|
+
}
|
|
18444
18470
|
replayCommandResult(items) {
|
|
18445
18471
|
if (this.#items.size)
|
|
18446
18472
|
return;
|
|
18447
18473
|
for (const snapshot of items) {
|
|
18474
|
+
if (this.hasItem(snapshot.item.itemId))
|
|
18475
|
+
continue;
|
|
18448
18476
|
const item = structuredClone(snapshot.item);
|
|
18449
18477
|
this.#start(item);
|
|
18450
18478
|
this.#finish(item, snapshot.outcome);
|
|
@@ -19073,6 +19101,8 @@ function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PRO
|
|
|
19073
19101
|
current.completedAtMs = row.timestamp;
|
|
19074
19102
|
}
|
|
19075
19103
|
} else if (row.type === "function_call") {
|
|
19104
|
+
if (row.status === "incomplete" && data.isPartialAborted === true && data.discard === true)
|
|
19105
|
+
continue;
|
|
19076
19106
|
let input = row.arguments;
|
|
19077
19107
|
if (typeof input === "string") {
|
|
19078
19108
|
try {
|
|
@@ -24084,6 +24114,9 @@ function referencedChildren(rows2) {
|
|
|
24084
24114
|
const children = /* @__PURE__ */ new Map();
|
|
24085
24115
|
for (const row of rows2) {
|
|
24086
24116
|
if (row.type === "function_call" && row.name === "Agent") {
|
|
24117
|
+
const data = record3(row.providerData);
|
|
24118
|
+
if (row.status === "incomplete" && data.isPartialAborted === true && data.discard === true)
|
|
24119
|
+
continue;
|
|
24087
24120
|
const callId2 = text(row.callId);
|
|
24088
24121
|
if (!callId2 || calls.has(callId2))
|
|
24089
24122
|
throw new CodeBuddyError("protocolError", "Agent delegation identity is ambiguous");
|
|
@@ -25128,6 +25161,9 @@ var CodeBuddySubagents = class {
|
|
|
25128
25161
|
begin(turnId) {
|
|
25129
25162
|
this.#turnId = turnId;
|
|
25130
25163
|
}
|
|
25164
|
+
hasItem(itemId) {
|
|
25165
|
+
return [...this.#calls.values()].some((call) => call.turnId === this.#turnId && call.item.itemId === itemId);
|
|
25166
|
+
}
|
|
25131
25167
|
state(id) {
|
|
25132
25168
|
return [...this.#calls.values()].map((call) => call.item.subagents[0]).findLast((child) => child?.nativeSubagentId === id);
|
|
25133
25169
|
}
|
|
@@ -25401,7 +25437,7 @@ var CodeBuddySession = class {
|
|
|
25401
25437
|
}
|
|
25402
25438
|
if (this.#replaying)
|
|
25403
25439
|
return;
|
|
25404
|
-
if (this.subagents.update(update))
|
|
25440
|
+
if ((text(record3(update._meta)["codebuddy.ai/parentToolCallId"]) || !this.#active?.output.hasItem(`tool-${text(update.toolCallId)}`)) && this.subagents.update(update))
|
|
25405
25441
|
return;
|
|
25406
25442
|
if (update.sessionUpdate === "config_option_update" && this.#config)
|
|
25407
25443
|
this.#apply(configuration(update.configOptions, this.profile));
|
|
@@ -25694,7 +25730,7 @@ var CodeBuddySession = class {
|
|
|
25694
25730
|
throw new CodeBuddyError("protocolError", "Could not identify exactly one persisted Native Turn");
|
|
25695
25731
|
active.output.confirmCompaction(snapshot.turns.flatMap((turn) => turn.items).filter((snapshot2) => !active.beforeItems.has(snapshot2.item.itemId)));
|
|
25696
25732
|
if (active.nativeCommand)
|
|
25697
|
-
active.output.replayCommandResult(added[0]?.items ?? []);
|
|
25733
|
+
active.output.replayCommandResult((added[0]?.items ?? []).filter(({ item }) => !this.subagents.hasItem(item.itemId)));
|
|
25698
25734
|
const nativeTurnRef = added[0]?.nativeTurnRef;
|
|
25699
25735
|
if (nativeTurnRef)
|
|
25700
25736
|
this.#hasTurn = true;
|
|
@@ -14656,13 +14656,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
14656
14656
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
14657
14657
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14658
14658
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14659
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
14660
|
+
version: external_exports.literal(3).optional(),
|
|
14661
|
+
requestId: external_exports.string().min(1),
|
|
14662
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
14663
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
14664
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
14665
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14666
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14659
14667
|
var usageMeasurementSchema = external_exports.object({
|
|
14668
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14660
14669
|
value: finiteNonNegativeNumberSchema,
|
|
14661
14670
|
turnId: external_exports.string().min(1).max(1024),
|
|
14662
14671
|
at: nonNegativeSafeIntegerSchema
|
|
14663
14672
|
}).strict();
|
|
14664
14673
|
var usageMeasurementsSchema = external_exports.object({
|
|
14665
|
-
|
|
14674
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
14675
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
14676
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14677
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
14666
14678
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14667
14679
|
}).strict();
|
|
14668
14680
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -14682,6 +14694,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
14682
14694
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14683
14695
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14684
14696
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14697
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14685
14698
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14686
14699
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14687
14700
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15093,6 +15106,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15093
15106
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15094
15107
|
}).strict();
|
|
15095
15108
|
|
|
15109
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15110
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15111
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15112
|
+
|
|
15096
15113
|
// ../../shared-contracts/dist/client-channel.js
|
|
15097
15114
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15098
15115
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15232,7 +15249,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15232
15249
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15233
15250
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15234
15251
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15235
|
-
command: external_exports.object({
|
|
15252
|
+
command: external_exports.object({
|
|
15253
|
+
name: external_exports.string().min(1),
|
|
15254
|
+
turn: clientTurnSchema,
|
|
15255
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15256
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15257
|
+
}).optional(),
|
|
15236
15258
|
thread: external_exports.object({
|
|
15237
15259
|
id: external_exports.string().min(1),
|
|
15238
15260
|
cwd: external_exports.string(),
|
|
@@ -15440,7 +15462,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15440
15462
|
quotaUntil: external_exports.string().optional()
|
|
15441
15463
|
}).strict().optional()
|
|
15442
15464
|
}).strict();
|
|
15443
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15444
15465
|
|
|
15445
15466
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15446
15467
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17651,6 +17672,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17651
17672
|
"totalCredits",
|
|
17652
17673
|
"contextUsagePercent",
|
|
17653
17674
|
"outputTokensPerSecond",
|
|
17675
|
+
"sessionOutputTokensPerSecond",
|
|
17654
17676
|
"apiOutputTokensPerSecond",
|
|
17655
17677
|
"costSource",
|
|
17656
17678
|
"unpricedModels"
|
|
@@ -17673,6 +17695,7 @@ function parseHostUsage(value) {
|
|
|
17673
17695
|
for (const field2 of [
|
|
17674
17696
|
"totalCredits",
|
|
17675
17697
|
"contextUsagePercent",
|
|
17698
|
+
"sessionOutputTokensPerSecond",
|
|
17676
17699
|
"apiOutputTokensPerSecond"
|
|
17677
17700
|
]) {
|
|
17678
17701
|
const candidate = value[field2];
|
|
@@ -18713,13 +18713,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
18713
18713
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
18714
18714
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
18715
18715
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
18716
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
18717
|
+
version: external_exports.literal(3).optional(),
|
|
18718
|
+
requestId: external_exports.string().min(1),
|
|
18719
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
18720
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
18721
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
18722
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
18723
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
18716
18724
|
var usageMeasurementSchema = external_exports.object({
|
|
18725
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
18717
18726
|
value: finiteNonNegativeNumberSchema,
|
|
18718
18727
|
turnId: external_exports.string().min(1).max(1024),
|
|
18719
18728
|
at: nonNegativeSafeIntegerSchema
|
|
18720
18729
|
}).strict();
|
|
18721
18730
|
var usageMeasurementsSchema = external_exports.object({
|
|
18722
|
-
|
|
18731
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
18732
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
18733
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
18734
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
18723
18735
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
18724
18736
|
}).strict();
|
|
18725
18737
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -18739,6 +18751,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
18739
18751
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
18740
18752
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
18741
18753
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
18754
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
18742
18755
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
18743
18756
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
18744
18757
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -19150,6 +19163,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
19150
19163
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
19151
19164
|
}).strict();
|
|
19152
19165
|
|
|
19166
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
19167
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
19168
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
19169
|
+
|
|
19153
19170
|
// ../../shared-contracts/dist/client-channel.js
|
|
19154
19171
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
19155
19172
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -19289,7 +19306,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
19289
19306
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
19290
19307
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
19291
19308
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
19292
|
-
command: external_exports.object({
|
|
19309
|
+
command: external_exports.object({
|
|
19310
|
+
name: external_exports.string().min(1),
|
|
19311
|
+
turn: clientTurnSchema,
|
|
19312
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
19313
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
19314
|
+
}).optional(),
|
|
19293
19315
|
thread: external_exports.object({
|
|
19294
19316
|
id: external_exports.string().min(1),
|
|
19295
19317
|
cwd: external_exports.string(),
|
|
@@ -19497,7 +19519,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
19497
19519
|
quotaUntil: external_exports.string().optional()
|
|
19498
19520
|
}).strict().optional()
|
|
19499
19521
|
}).strict();
|
|
19500
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
19501
19522
|
|
|
19502
19523
|
// ../../shared-contracts/dist/delegation-read.js
|
|
19503
19524
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -32781,6 +32802,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
32781
32802
|
"totalCredits",
|
|
32782
32803
|
"contextUsagePercent",
|
|
32783
32804
|
"outputTokensPerSecond",
|
|
32805
|
+
"sessionOutputTokensPerSecond",
|
|
32784
32806
|
"apiOutputTokensPerSecond",
|
|
32785
32807
|
"costSource",
|
|
32786
32808
|
"unpricedModels"
|
|
@@ -32803,6 +32825,7 @@ function parseHostUsage(value) {
|
|
|
32803
32825
|
for (const field2 of [
|
|
32804
32826
|
"totalCredits",
|
|
32805
32827
|
"contextUsagePercent",
|
|
32828
|
+
"sessionOutputTokensPerSecond",
|
|
32806
32829
|
"apiOutputTokensPerSecond"
|
|
32807
32830
|
]) {
|
|
32808
32831
|
const candidate = value[field2];
|
|
@@ -15023,13 +15023,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15023
15023
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15024
15024
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15025
15025
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15026
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15027
|
+
version: external_exports.literal(3).optional(),
|
|
15028
|
+
requestId: external_exports.string().min(1),
|
|
15029
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15030
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15031
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15032
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15033
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15026
15034
|
var usageMeasurementSchema = external_exports.object({
|
|
15035
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15027
15036
|
value: finiteNonNegativeNumberSchema,
|
|
15028
15037
|
turnId: external_exports.string().min(1).max(1024),
|
|
15029
15038
|
at: nonNegativeSafeIntegerSchema
|
|
15030
15039
|
}).strict();
|
|
15031
15040
|
var usageMeasurementsSchema = external_exports.object({
|
|
15032
|
-
|
|
15041
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
15042
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
15043
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15044
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15033
15045
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15034
15046
|
}).strict();
|
|
15035
15047
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15049,6 +15061,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15049
15061
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15050
15062
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15051
15063
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15064
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15052
15065
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15053
15066
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15054
15067
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15460,6 +15473,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15460
15473
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15461
15474
|
}).strict();
|
|
15462
15475
|
|
|
15476
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15477
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15478
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15479
|
+
|
|
15463
15480
|
// ../../shared-contracts/dist/client-channel.js
|
|
15464
15481
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15465
15482
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15599,7 +15616,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15599
15616
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15600
15617
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15601
15618
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15602
|
-
command: external_exports.object({
|
|
15619
|
+
command: external_exports.object({
|
|
15620
|
+
name: external_exports.string().min(1),
|
|
15621
|
+
turn: clientTurnSchema,
|
|
15622
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15623
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15624
|
+
}).optional(),
|
|
15603
15625
|
thread: external_exports.object({
|
|
15604
15626
|
id: external_exports.string().min(1),
|
|
15605
15627
|
cwd: external_exports.string(),
|
|
@@ -15807,7 +15829,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15807
15829
|
quotaUntil: external_exports.string().optional()
|
|
15808
15830
|
}).strict().optional()
|
|
15809
15831
|
}).strict();
|
|
15810
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15811
15832
|
|
|
15812
15833
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15813
15834
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17119,6 +17140,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17119
17140
|
"totalCredits",
|
|
17120
17141
|
"contextUsagePercent",
|
|
17121
17142
|
"outputTokensPerSecond",
|
|
17143
|
+
"sessionOutputTokensPerSecond",
|
|
17122
17144
|
"apiOutputTokensPerSecond",
|
|
17123
17145
|
"costSource",
|
|
17124
17146
|
"unpricedModels"
|
|
@@ -17141,6 +17163,7 @@ function parseHostUsage(value) {
|
|
|
17141
17163
|
for (const field2 of [
|
|
17142
17164
|
"totalCredits",
|
|
17143
17165
|
"contextUsagePercent",
|
|
17166
|
+
"sessionOutputTokensPerSecond",
|
|
17144
17167
|
"apiOutputTokensPerSecond"
|
|
17145
17168
|
]) {
|
|
17146
17169
|
const candidate = value[field2];
|
|
@@ -18903,13 +18903,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
18903
18903
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
18904
18904
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
18905
18905
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
18906
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
18907
|
+
version: external_exports.literal(3).optional(),
|
|
18908
|
+
requestId: external_exports.string().min(1),
|
|
18909
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
18910
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
18911
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
18912
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
18913
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
18906
18914
|
var usageMeasurementSchema = external_exports.object({
|
|
18915
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
18907
18916
|
value: finiteNonNegativeNumberSchema,
|
|
18908
18917
|
turnId: external_exports.string().min(1).max(1024),
|
|
18909
18918
|
at: nonNegativeSafeIntegerSchema
|
|
18910
18919
|
}).strict();
|
|
18911
18920
|
var usageMeasurementsSchema = external_exports.object({
|
|
18912
|
-
|
|
18921
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
18922
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
18923
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
18924
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
18913
18925
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
18914
18926
|
}).strict();
|
|
18915
18927
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -18929,6 +18941,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
18929
18941
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
18930
18942
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
18931
18943
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
18944
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
18932
18945
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
18933
18946
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
18934
18947
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -19340,6 +19353,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
19340
19353
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
19341
19354
|
}).strict();
|
|
19342
19355
|
|
|
19356
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
19357
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
19358
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
19359
|
+
|
|
19343
19360
|
// ../../shared-contracts/dist/client-channel.js
|
|
19344
19361
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
19345
19362
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -19479,7 +19496,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
19479
19496
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
19480
19497
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
19481
19498
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
19482
|
-
command: external_exports.object({
|
|
19499
|
+
command: external_exports.object({
|
|
19500
|
+
name: external_exports.string().min(1),
|
|
19501
|
+
turn: clientTurnSchema,
|
|
19502
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
19503
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
19504
|
+
}).optional(),
|
|
19483
19505
|
thread: external_exports.object({
|
|
19484
19506
|
id: external_exports.string().min(1),
|
|
19485
19507
|
cwd: external_exports.string(),
|
|
@@ -19687,7 +19709,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
19687
19709
|
quotaUntil: external_exports.string().optional()
|
|
19688
19710
|
}).strict().optional()
|
|
19689
19711
|
}).strict();
|
|
19690
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
19691
19712
|
|
|
19692
19713
|
// ../../shared-contracts/dist/delegation-read.js
|
|
19693
19714
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -21008,6 +21029,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
21008
21029
|
"totalCredits",
|
|
21009
21030
|
"contextUsagePercent",
|
|
21010
21031
|
"outputTokensPerSecond",
|
|
21032
|
+
"sessionOutputTokensPerSecond",
|
|
21011
21033
|
"apiOutputTokensPerSecond",
|
|
21012
21034
|
"costSource",
|
|
21013
21035
|
"unpricedModels"
|
|
@@ -21030,6 +21052,7 @@ function parseHostUsage(value) {
|
|
|
21030
21052
|
for (const field2 of [
|
|
21031
21053
|
"totalCredits",
|
|
21032
21054
|
"contextUsagePercent",
|
|
21055
|
+
"sessionOutputTokensPerSecond",
|
|
21033
21056
|
"apiOutputTokensPerSecond"
|
|
21034
21057
|
]) {
|
|
21035
21058
|
const candidate = value[field2];
|
|
@@ -14660,13 +14660,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
14660
14660
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
14661
14661
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14662
14662
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14663
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
14664
|
+
version: external_exports.literal(3).optional(),
|
|
14665
|
+
requestId: external_exports.string().min(1),
|
|
14666
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
14667
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
14668
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
14669
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14670
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14663
14671
|
var usageMeasurementSchema = external_exports.object({
|
|
14672
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14664
14673
|
value: finiteNonNegativeNumberSchema,
|
|
14665
14674
|
turnId: external_exports.string().min(1).max(1024),
|
|
14666
14675
|
at: nonNegativeSafeIntegerSchema
|
|
14667
14676
|
}).strict();
|
|
14668
14677
|
var usageMeasurementsSchema = external_exports.object({
|
|
14669
|
-
|
|
14678
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
14679
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
14680
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14681
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
14670
14682
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14671
14683
|
}).strict();
|
|
14672
14684
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -14686,6 +14698,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
14686
14698
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14687
14699
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14688
14700
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14701
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14689
14702
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
14690
14703
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
14691
14704
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15097,6 +15110,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15097
15110
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15098
15111
|
}).strict();
|
|
15099
15112
|
|
|
15113
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15114
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15115
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15116
|
+
|
|
15100
15117
|
// ../../shared-contracts/dist/client-channel.js
|
|
15101
15118
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15102
15119
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15236,7 +15253,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15236
15253
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15237
15254
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15238
15255
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15239
|
-
command: external_exports.object({
|
|
15256
|
+
command: external_exports.object({
|
|
15257
|
+
name: external_exports.string().min(1),
|
|
15258
|
+
turn: clientTurnSchema,
|
|
15259
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15260
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15261
|
+
}).optional(),
|
|
15240
15262
|
thread: external_exports.object({
|
|
15241
15263
|
id: external_exports.string().min(1),
|
|
15242
15264
|
cwd: external_exports.string(),
|
|
@@ -15444,7 +15466,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15444
15466
|
quotaUntil: external_exports.string().optional()
|
|
15445
15467
|
}).strict().optional()
|
|
15446
15468
|
}).strict();
|
|
15447
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15448
15469
|
|
|
15449
15470
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15450
15471
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -16744,6 +16765,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16744
16765
|
"totalCredits",
|
|
16745
16766
|
"contextUsagePercent",
|
|
16746
16767
|
"outputTokensPerSecond",
|
|
16768
|
+
"sessionOutputTokensPerSecond",
|
|
16747
16769
|
"apiOutputTokensPerSecond",
|
|
16748
16770
|
"costSource",
|
|
16749
16771
|
"unpricedModels"
|