@liberseek/boft-cli-linux-x64 0.8.8 → 0.8.9
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 +59 -6
- package/app/console-web.js +1376 -1053
- package/app/desktop-controller.mjs +239 -57
- package/app/host-runtime.mjs +35964 -28304
- package/app/plugins/antigravity/assets/icon.svg +1 -1
- package/app/plugins/antigravity/plugin.mjs +9491 -4266
- package/app/plugins/claude-code/plugin.mjs +580 -116
- package/app/plugins/codebuddy/plugin.mjs +85 -8
- package/app/plugins/codex-usage/plugin.mjs +70 -6
- package/app/plugins/copilot/plugin.mjs +62 -6
- package/app/plugins/cursor-cli/plugin.mjs +62 -6
- package/app/plugins/deepseek-harness/plugin.mjs +87 -11
- package/app/plugins/devin/plugin.mjs +61 -6
- package/app/plugins/grok/plugin.mjs +320 -223
- package/app/plugins/hermes/plugin.mjs +61 -6
- package/app/plugins/kimi-code/plugin.mjs +87 -16
- package/app/plugins/kiro-cli/plugin.mjs +62 -6
- package/app/plugins/muse/plugin.mjs +61 -6
- package/app/plugins/omp/plugin.mjs +195 -31
- package/app/plugins/opencode/plugin.mjs +88 -15
- package/app/plugins/pi/plugin.mjs +207 -32
- package/app/plugins/qoder/plugin.mjs +99 -7
- package/app/plugins/qoder-cn/plugin.mjs +99 -7
- package/app/plugins/qwen-code/plugin.mjs +62 -6
- package/app/plugins/workbuddy/plugin.mjs +89 -11
- package/app/plugins/zcode/plugin.mjs +70 -6
- package/app/renderer-extension.js +1767 -1187
- package/app/web/assets/index-C2OA-eHT.js +201 -0
- package/app/web/assets/index-DJW4bmyx.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 +1383 -1056
- 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 +11 -11
- package/app/web/plugins/deepseek-ai__dsh-client-connection/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 +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 +28 -28
- 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/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.js +9 -9
- 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-workspace/client.js +11 -11
- package/app/web-modules/server.mjs +2458 -1615
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-CP6wY-1D.css +0 -1
- package/app/web/assets/index-Da35Phrd.js +0 -199
|
@@ -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.union([external_exports.literal(3), external_exports.literal(4)]).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), external_exports.literal(4)]).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
|
+
// Older 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 === 4)).optional(),
|
|
15043
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15044
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).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((text2) => text2.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(),
|
|
@@ -15480,11 +15493,19 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15480
15493
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15481
15494
|
}).strict();
|
|
15482
15495
|
|
|
15496
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15497
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15498
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15499
|
+
|
|
15483
15500
|
// ../../shared-contracts/dist/client-channel.js
|
|
15484
15501
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15485
15502
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
15486
15503
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
15487
15504
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
15505
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
15506
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
15507
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
15508
|
+
}).strict();
|
|
15488
15509
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
15489
15510
|
prompt: external_exports.string().max(16384).optional()
|
|
15490
15511
|
}).strict();
|
|
@@ -15506,6 +15527,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15506
15527
|
cursor: clientChannelCursorSchema,
|
|
15507
15528
|
cwd: external_exports.string().optional()
|
|
15508
15529
|
}),
|
|
15530
|
+
external_exports.object({
|
|
15531
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15532
|
+
cursor: clientChannelCursorSchema,
|
|
15533
|
+
harnessId: external_exports.string().min(1)
|
|
15534
|
+
}),
|
|
15509
15535
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15510
15536
|
external_exports.object({
|
|
15511
15537
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15577,6 +15603,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15577
15603
|
var clientTurnSchema = external_exports.object({
|
|
15578
15604
|
id: external_exports.string().min(1),
|
|
15579
15605
|
status: external_exports.string().min(1),
|
|
15606
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15607
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15580
15608
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15581
15609
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15582
15610
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -15615,7 +15643,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15615
15643
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15616
15644
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15617
15645
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15618
|
-
command: external_exports.object({
|
|
15646
|
+
command: external_exports.object({
|
|
15647
|
+
name: external_exports.string().min(1),
|
|
15648
|
+
turn: clientTurnSchema,
|
|
15649
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15650
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15651
|
+
}).optional(),
|
|
15619
15652
|
thread: external_exports.object({
|
|
15620
15653
|
id: external_exports.string().min(1),
|
|
15621
15654
|
cwd: external_exports.string(),
|
|
@@ -15823,15 +15856,14 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15823
15856
|
quotaUntil: external_exports.string().optional()
|
|
15824
15857
|
}).strict().optional()
|
|
15825
15858
|
}).strict();
|
|
15826
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15827
15859
|
|
|
15828
15860
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15829
15861
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
15830
15862
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15831
15863
|
threadId: external_exports.string().min(1).max(1024),
|
|
15832
15864
|
view: external_exports.enum(["result", "messages"]),
|
|
15833
|
-
|
|
15834
|
-
|
|
15865
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
15866
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
15835
15867
|
});
|
|
15836
15868
|
|
|
15837
15869
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -16816,6 +16848,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16816
16848
|
"completed",
|
|
16817
16849
|
"failed",
|
|
16818
16850
|
"interrupted",
|
|
16851
|
+
"needsInput",
|
|
16819
16852
|
"timedOut",
|
|
16820
16853
|
"unreadable",
|
|
16821
16854
|
"notFound"
|
|
@@ -16862,13 +16895,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16862
16895
|
var thread = { ...target, threadId: identity };
|
|
16863
16896
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16864
16897
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16898
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16865
16899
|
external_exports.strictObject({
|
|
16866
16900
|
kind: external_exports.literal("list"),
|
|
16867
16901
|
...target,
|
|
16868
16902
|
cursor: external_exports.string().nullable(),
|
|
16869
16903
|
archived: external_exports.boolean()
|
|
16870
16904
|
}),
|
|
16871
|
-
external_exports.strictObject({
|
|
16905
|
+
external_exports.strictObject({
|
|
16906
|
+
kind: external_exports.literal("read"),
|
|
16907
|
+
...thread,
|
|
16908
|
+
page: external_exports.strictObject({
|
|
16909
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16910
|
+
epoch: identity.optional(),
|
|
16911
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16912
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16913
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16914
|
+
message: "A history continuation requires its connection epoch"
|
|
16915
|
+
}).optional()
|
|
16916
|
+
}),
|
|
16917
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16872
16918
|
external_exports.strictObject({
|
|
16873
16919
|
kind: external_exports.literal("configure"),
|
|
16874
16920
|
...thread,
|
|
@@ -16949,6 +16995,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
16949
16995
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16950
16996
|
]);
|
|
16951
16997
|
|
|
16998
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
16999
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
17000
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
17001
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
17002
|
+
});
|
|
17003
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
17004
|
+
|
|
16952
17005
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
16953
17006
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
16954
17007
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -17138,6 +17191,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17138
17191
|
"totalCredits",
|
|
17139
17192
|
"contextUsagePercent",
|
|
17140
17193
|
"outputTokensPerSecond",
|
|
17194
|
+
"sessionOutputTokensPerSecond",
|
|
17141
17195
|
"apiOutputTokensPerSecond",
|
|
17142
17196
|
"costSource",
|
|
17143
17197
|
"unpricedModels"
|
|
@@ -17149,6 +17203,7 @@ var requestTokenFields = [
|
|
|
17149
17203
|
"cacheWrite1hInputTokens",
|
|
17150
17204
|
"outputTokens",
|
|
17151
17205
|
"reasoningOutputTokens",
|
|
17206
|
+
"timedOutputTokens",
|
|
17152
17207
|
"startedAtMs",
|
|
17153
17208
|
"completedAtMs"
|
|
17154
17209
|
];
|
|
@@ -15143,13 +15143,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15143
15143
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15144
15144
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15145
15145
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15146
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15147
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15148
|
+
requestId: external_exports.string().min(1),
|
|
15149
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15150
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15151
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15152
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15153
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15146
15154
|
var usageMeasurementSchema = external_exports.object({
|
|
15155
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15147
15156
|
value: finiteNonNegativeNumberSchema,
|
|
15148
15157
|
turnId: external_exports.string().min(1).max(1024),
|
|
15149
15158
|
at: nonNegativeSafeIntegerSchema
|
|
15150
15159
|
}).strict();
|
|
15151
15160
|
var usageMeasurementsSchema = external_exports.object({
|
|
15152
|
-
|
|
15161
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15162
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15163
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15164
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15153
15165
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15154
15166
|
}).strict();
|
|
15155
15167
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15169,6 +15181,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15169
15181
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15170
15182
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15171
15183
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15184
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15172
15185
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15173
15186
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15174
15187
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15600,11 +15613,19 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15600
15613
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15601
15614
|
}).strict();
|
|
15602
15615
|
|
|
15616
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15617
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15618
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15619
|
+
|
|
15603
15620
|
// ../../shared-contracts/dist/client-channel.js
|
|
15604
15621
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15605
15622
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
15606
15623
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
15607
15624
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
15625
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
15626
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
15627
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
15628
|
+
}).strict();
|
|
15608
15629
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
15609
15630
|
prompt: external_exports.string().max(16384).optional()
|
|
15610
15631
|
}).strict();
|
|
@@ -15626,6 +15647,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15626
15647
|
cursor: clientChannelCursorSchema,
|
|
15627
15648
|
cwd: external_exports.string().optional()
|
|
15628
15649
|
}),
|
|
15650
|
+
external_exports.object({
|
|
15651
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15652
|
+
cursor: clientChannelCursorSchema,
|
|
15653
|
+
harnessId: external_exports.string().min(1)
|
|
15654
|
+
}),
|
|
15629
15655
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15630
15656
|
external_exports.object({
|
|
15631
15657
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15697,6 +15723,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15697
15723
|
var clientTurnSchema = external_exports.object({
|
|
15698
15724
|
id: external_exports.string().min(1),
|
|
15699
15725
|
status: external_exports.string().min(1),
|
|
15726
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15727
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15700
15728
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15701
15729
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15702
15730
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -15735,7 +15763,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15735
15763
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15736
15764
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15737
15765
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15738
|
-
command: external_exports.object({
|
|
15766
|
+
command: external_exports.object({
|
|
15767
|
+
name: external_exports.string().min(1),
|
|
15768
|
+
turn: clientTurnSchema,
|
|
15769
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15770
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15771
|
+
}).optional(),
|
|
15739
15772
|
thread: external_exports.object({
|
|
15740
15773
|
id: external_exports.string().min(1),
|
|
15741
15774
|
cwd: external_exports.string(),
|
|
@@ -15943,15 +15976,14 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15943
15976
|
quotaUntil: external_exports.string().optional()
|
|
15944
15977
|
}).strict().optional()
|
|
15945
15978
|
}).strict();
|
|
15946
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15947
15979
|
|
|
15948
15980
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15949
15981
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
15950
15982
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15951
15983
|
threadId: external_exports.string().min(1).max(1024),
|
|
15952
15984
|
view: external_exports.enum(["result", "messages"]),
|
|
15953
|
-
|
|
15954
|
-
|
|
15985
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
15986
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
15955
15987
|
});
|
|
15956
15988
|
|
|
15957
15989
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -16936,6 +16968,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16936
16968
|
"completed",
|
|
16937
16969
|
"failed",
|
|
16938
16970
|
"interrupted",
|
|
16971
|
+
"needsInput",
|
|
16939
16972
|
"timedOut",
|
|
16940
16973
|
"unreadable",
|
|
16941
16974
|
"notFound"
|
|
@@ -16982,13 +17015,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16982
17015
|
var thread = { ...target, threadId: identity };
|
|
16983
17016
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16984
17017
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
17018
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16985
17019
|
external_exports.strictObject({
|
|
16986
17020
|
kind: external_exports.literal("list"),
|
|
16987
17021
|
...target,
|
|
16988
17022
|
cursor: external_exports.string().nullable(),
|
|
16989
17023
|
archived: external_exports.boolean()
|
|
16990
17024
|
}),
|
|
16991
|
-
external_exports.strictObject({
|
|
17025
|
+
external_exports.strictObject({
|
|
17026
|
+
kind: external_exports.literal("read"),
|
|
17027
|
+
...thread,
|
|
17028
|
+
page: external_exports.strictObject({
|
|
17029
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
17030
|
+
epoch: identity.optional(),
|
|
17031
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
17032
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
17033
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
17034
|
+
message: "A history continuation requires its connection epoch"
|
|
17035
|
+
}).optional()
|
|
17036
|
+
}),
|
|
17037
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16992
17038
|
external_exports.strictObject({
|
|
16993
17039
|
kind: external_exports.literal("configure"),
|
|
16994
17040
|
...thread,
|
|
@@ -17069,6 +17115,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
17069
17115
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
17070
17116
|
]);
|
|
17071
17117
|
|
|
17118
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
17119
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
17120
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
17121
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
17122
|
+
});
|
|
17123
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
17124
|
+
|
|
17072
17125
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
17073
17126
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
17074
17127
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -17262,6 +17315,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17262
17315
|
"totalCredits",
|
|
17263
17316
|
"contextUsagePercent",
|
|
17264
17317
|
"outputTokensPerSecond",
|
|
17318
|
+
"sessionOutputTokensPerSecond",
|
|
17265
17319
|
"apiOutputTokensPerSecond",
|
|
17266
17320
|
"costSource",
|
|
17267
17321
|
"unpricedModels"
|
|
@@ -17284,6 +17338,7 @@ function parseHostUsage(value) {
|
|
|
17284
17338
|
for (const field2 of [
|
|
17285
17339
|
"totalCredits",
|
|
17286
17340
|
"contextUsagePercent",
|
|
17341
|
+
"sessionOutputTokensPerSecond",
|
|
17287
17342
|
"apiOutputTokensPerSecond"
|
|
17288
17343
|
]) {
|
|
17289
17344
|
const candidate = value[field2];
|
|
@@ -17368,6 +17423,7 @@ var requestTokenFields = [
|
|
|
17368
17423
|
"cacheWrite1hInputTokens",
|
|
17369
17424
|
"outputTokens",
|
|
17370
17425
|
"reasoningOutputTokens",
|
|
17426
|
+
"timedOutputTokens",
|
|
17371
17427
|
"startedAtMs",
|
|
17372
17428
|
"completedAtMs"
|
|
17373
17429
|
];
|
|
@@ -23622,6 +23678,14 @@ function parseKimiConfigToml(content) {
|
|
|
23622
23678
|
item.provider = d.provider;
|
|
23623
23679
|
if (typeof d.max_context_size === "number")
|
|
23624
23680
|
item.maxContextSize = d.max_context_size;
|
|
23681
|
+
if (Array.isArray(d.capabilities)) {
|
|
23682
|
+
item.capabilities = d.capabilities.filter((value) => typeof value === "string");
|
|
23683
|
+
}
|
|
23684
|
+
if (Array.isArray(d.support_efforts)) {
|
|
23685
|
+
item.supportEfforts = d.support_efforts.filter((value) => typeof value === "string");
|
|
23686
|
+
}
|
|
23687
|
+
if (typeof d.default_effort === "string")
|
|
23688
|
+
item.defaultEffort = d.default_effort;
|
|
23625
23689
|
}
|
|
23626
23690
|
models.push(item);
|
|
23627
23691
|
}
|
|
@@ -23652,30 +23716,37 @@ function resolveKimiContextWindow(modelAlias, config2) {
|
|
|
23652
23716
|
}
|
|
23653
23717
|
return 2e5;
|
|
23654
23718
|
}
|
|
23719
|
+
function configuredThinkingOptions(model2) {
|
|
23720
|
+
const alwaysThinking = model2.capabilities?.includes("always_thinking") === true;
|
|
23721
|
+
if (!alwaysThinking && !model2.capabilities?.includes("thinking"))
|
|
23722
|
+
return [];
|
|
23723
|
+
const values = model2.supportEfforts?.length ? ["off", ...model2.supportEfforts] : ["off", "on"];
|
|
23724
|
+
return [...new Set(values)].filter((value) => !alwaysThinking || value !== "off").map((value) => harnessThinkingOptionSchema.parse({ id: value, label: formatThinkingLabel(value) }));
|
|
23725
|
+
}
|
|
23655
23726
|
function buildModelCatalogFromConfig(config2, thinkingOptionsList) {
|
|
23656
|
-
const thinkingOptions =
|
|
23657
|
-
const thinkingIds = thinkingOptions.map((opt) => opt.id);
|
|
23727
|
+
const thinkingOptions = /* @__PURE__ */ new Map();
|
|
23658
23728
|
const rawModels = config2.models.length > 0 ? config2.models : [{ alias: config2.defaultModel ?? "default" }];
|
|
23659
23729
|
const models = rawModels.map((m) => {
|
|
23730
|
+
const options = thinkingOptionsList !== void 0 ? m.alias === config2.defaultModel ? thinkingOptionsList : [] : configuredThinkingOptions(m);
|
|
23731
|
+
for (const option of options)
|
|
23732
|
+
thinkingOptions.set(option.id, option);
|
|
23660
23733
|
const label = m.model ? `${m.alias} (${m.model})` : m.alias;
|
|
23661
23734
|
return harnessModelSchema.parse({
|
|
23662
23735
|
ref: encodeKimiModelRef(m.alias),
|
|
23663
23736
|
label: label.slice(0, 256),
|
|
23664
23737
|
...m.model ? { resolvedModelLabel: m.model.slice(0, 256) } : {},
|
|
23665
|
-
|
|
23738
|
+
supportedThinkingOptionIds: options.map(({ id }) => id)
|
|
23666
23739
|
});
|
|
23667
23740
|
});
|
|
23668
23741
|
const defaultModel = config2.defaultModel && models.some((m) => decodeKimiModelRefId(m.ref.id) === config2.defaultModel) ? encodeKimiModelRef(config2.defaultModel) : models[0]?.ref;
|
|
23669
|
-
|
|
23670
|
-
|
|
23671
|
-
|
|
23672
|
-
|
|
23673
|
-
defaultThinkingOptionId = harnessThinkingOptionIdSchema.parse("off");
|
|
23674
|
-
}
|
|
23742
|
+
const selectedModel = models.find((model2) => model2.ref.id === defaultModel?.id);
|
|
23743
|
+
const configuredDefault = config2.models.find((model2) => encodeKimiModelRef(model2.alias).id === defaultModel?.id)?.defaultEffort;
|
|
23744
|
+
const requestedDefault = config2.thinking?.enabled === false ? "off" : config2.thinking?.effort ?? configuredDefault;
|
|
23745
|
+
const defaultThinkingOptionId = selectedModel?.supportedThinkingOptionIds?.find((id) => id === requestedDefault);
|
|
23675
23746
|
return harnessModelCatalogSchema.parse({
|
|
23676
23747
|
models,
|
|
23677
23748
|
...defaultModel ? { defaultModel } : {},
|
|
23678
|
-
thinkingOptions,
|
|
23749
|
+
thinkingOptions: [...thinkingOptions.values()],
|
|
23679
23750
|
...defaultThinkingOptionId ? { defaultThinkingOptionId } : {}
|
|
23680
23751
|
});
|
|
23681
23752
|
}
|
|
@@ -14998,13 +14998,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
14998
14998
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
14999
14999
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15000
15000
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15001
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15002
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15003
|
+
requestId: external_exports.string().min(1),
|
|
15004
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15005
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15006
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15007
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15008
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15001
15009
|
var usageMeasurementSchema = external_exports.object({
|
|
15010
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15002
15011
|
value: finiteNonNegativeNumberSchema,
|
|
15003
15012
|
turnId: external_exports.string().min(1).max(1024),
|
|
15004
15013
|
at: nonNegativeSafeIntegerSchema
|
|
15005
15014
|
}).strict();
|
|
15006
15015
|
var usageMeasurementsSchema = external_exports.object({
|
|
15007
|
-
|
|
15016
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15017
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15018
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15019
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15008
15020
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15009
15021
|
}).strict();
|
|
15010
15022
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15024,6 +15036,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15024
15036
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15025
15037
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15026
15038
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15039
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15027
15040
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15028
15041
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15029
15042
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15455,11 +15468,19 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15455
15468
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15456
15469
|
}).strict();
|
|
15457
15470
|
|
|
15471
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15472
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15473
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15474
|
+
|
|
15458
15475
|
// ../../shared-contracts/dist/client-channel.js
|
|
15459
15476
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15460
15477
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
15461
15478
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
15462
15479
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
15480
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
15481
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
15482
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
15483
|
+
}).strict();
|
|
15463
15484
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
15464
15485
|
prompt: external_exports.string().max(16384).optional()
|
|
15465
15486
|
}).strict();
|
|
@@ -15481,6 +15502,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15481
15502
|
cursor: clientChannelCursorSchema,
|
|
15482
15503
|
cwd: external_exports.string().optional()
|
|
15483
15504
|
}),
|
|
15505
|
+
external_exports.object({
|
|
15506
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15507
|
+
cursor: clientChannelCursorSchema,
|
|
15508
|
+
harnessId: external_exports.string().min(1)
|
|
15509
|
+
}),
|
|
15484
15510
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15485
15511
|
external_exports.object({
|
|
15486
15512
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15552,6 +15578,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15552
15578
|
var clientTurnSchema = external_exports.object({
|
|
15553
15579
|
id: external_exports.string().min(1),
|
|
15554
15580
|
status: external_exports.string().min(1),
|
|
15581
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15582
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15555
15583
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15556
15584
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15557
15585
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -15590,7 +15618,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15590
15618
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15591
15619
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15592
15620
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15593
|
-
command: external_exports.object({
|
|
15621
|
+
command: external_exports.object({
|
|
15622
|
+
name: external_exports.string().min(1),
|
|
15623
|
+
turn: clientTurnSchema,
|
|
15624
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15625
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15626
|
+
}).optional(),
|
|
15594
15627
|
thread: external_exports.object({
|
|
15595
15628
|
id: external_exports.string().min(1),
|
|
15596
15629
|
cwd: external_exports.string(),
|
|
@@ -15798,15 +15831,14 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15798
15831
|
quotaUntil: external_exports.string().optional()
|
|
15799
15832
|
}).strict().optional()
|
|
15800
15833
|
}).strict();
|
|
15801
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15802
15834
|
|
|
15803
15835
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15804
15836
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
15805
15837
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15806
15838
|
threadId: external_exports.string().min(1).max(1024),
|
|
15807
15839
|
view: external_exports.enum(["result", "messages"]),
|
|
15808
|
-
|
|
15809
|
-
|
|
15840
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
15841
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
15810
15842
|
});
|
|
15811
15843
|
|
|
15812
15844
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -16791,6 +16823,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16791
16823
|
"completed",
|
|
16792
16824
|
"failed",
|
|
16793
16825
|
"interrupted",
|
|
16826
|
+
"needsInput",
|
|
16794
16827
|
"timedOut",
|
|
16795
16828
|
"unreadable",
|
|
16796
16829
|
"notFound"
|
|
@@ -16837,13 +16870,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16837
16870
|
var thread = { ...target, threadId: identity };
|
|
16838
16871
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16839
16872
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16873
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16840
16874
|
external_exports.strictObject({
|
|
16841
16875
|
kind: external_exports.literal("list"),
|
|
16842
16876
|
...target,
|
|
16843
16877
|
cursor: external_exports.string().nullable(),
|
|
16844
16878
|
archived: external_exports.boolean()
|
|
16845
16879
|
}),
|
|
16846
|
-
external_exports.strictObject({
|
|
16880
|
+
external_exports.strictObject({
|
|
16881
|
+
kind: external_exports.literal("read"),
|
|
16882
|
+
...thread,
|
|
16883
|
+
page: external_exports.strictObject({
|
|
16884
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16885
|
+
epoch: identity.optional(),
|
|
16886
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16887
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16888
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16889
|
+
message: "A history continuation requires its connection epoch"
|
|
16890
|
+
}).optional()
|
|
16891
|
+
}),
|
|
16892
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16847
16893
|
external_exports.strictObject({
|
|
16848
16894
|
kind: external_exports.literal("configure"),
|
|
16849
16895
|
...thread,
|
|
@@ -16924,6 +16970,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
16924
16970
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16925
16971
|
]);
|
|
16926
16972
|
|
|
16973
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
16974
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
16975
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
16976
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
16977
|
+
});
|
|
16978
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
16979
|
+
|
|
16927
16980
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
16928
16981
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
16929
16982
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -17154,6 +17207,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17154
17207
|
"totalCredits",
|
|
17155
17208
|
"contextUsagePercent",
|
|
17156
17209
|
"outputTokensPerSecond",
|
|
17210
|
+
"sessionOutputTokensPerSecond",
|
|
17157
17211
|
"apiOutputTokensPerSecond",
|
|
17158
17212
|
"costSource",
|
|
17159
17213
|
"unpricedModels"
|
|
@@ -17176,6 +17230,7 @@ function parseHostUsage(value) {
|
|
|
17176
17230
|
for (const field2 of [
|
|
17177
17231
|
"totalCredits",
|
|
17178
17232
|
"contextUsagePercent",
|
|
17233
|
+
"sessionOutputTokensPerSecond",
|
|
17179
17234
|
"apiOutputTokensPerSecond"
|
|
17180
17235
|
]) {
|
|
17181
17236
|
const candidate = value[field2];
|
|
@@ -17260,6 +17315,7 @@ var requestTokenFields = [
|
|
|
17260
17315
|
"cacheWrite1hInputTokens",
|
|
17261
17316
|
"outputTokens",
|
|
17262
17317
|
"reasoningOutputTokens",
|
|
17318
|
+
"timedOutputTokens",
|
|
17263
17319
|
"startedAtMs",
|
|
17264
17320
|
"completedAtMs"
|
|
17265
17321
|
];
|