@liberseek/boft-cli-win32-arm64 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.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +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
|
@@ -27648,13 +27648,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
27648
27648
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27649
27649
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27650
27650
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27651
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
27652
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27653
|
+
requestId: external_exports.string().min(1),
|
|
27654
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
27655
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
27656
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
27657
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
27658
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
27651
27659
|
var usageMeasurementSchema = external_exports.object({
|
|
27660
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27652
27661
|
value: finiteNonNegativeNumberSchema,
|
|
27653
27662
|
turnId: external_exports.string().min(1).max(1024),
|
|
27654
27663
|
at: nonNegativeSafeIntegerSchema
|
|
27655
27664
|
}).strict();
|
|
27656
27665
|
var usageMeasurementsSchema = external_exports.object({
|
|
27657
|
-
|
|
27666
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
27667
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
27668
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
27669
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
27658
27670
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
27659
27671
|
}).strict();
|
|
27660
27672
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -27674,6 +27686,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
27674
27686
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27675
27687
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27676
27688
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27689
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27677
27690
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27678
27691
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27679
27692
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -28105,11 +28118,19 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
28105
28118
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
28106
28119
|
}).strict();
|
|
28107
28120
|
|
|
28121
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
28122
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
28123
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
28124
|
+
|
|
28108
28125
|
// ../../shared-contracts/dist/client-channel.js
|
|
28109
28126
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
28110
28127
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
28111
28128
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
28112
28129
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
28130
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
28131
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
28132
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
28133
|
+
}).strict();
|
|
28113
28134
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
28114
28135
|
prompt: external_exports.string().max(16384).optional()
|
|
28115
28136
|
}).strict();
|
|
@@ -28131,6 +28152,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
28131
28152
|
cursor: clientChannelCursorSchema,
|
|
28132
28153
|
cwd: external_exports.string().optional()
|
|
28133
28154
|
}),
|
|
28155
|
+
external_exports.object({
|
|
28156
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
28157
|
+
cursor: clientChannelCursorSchema,
|
|
28158
|
+
harnessId: external_exports.string().min(1)
|
|
28159
|
+
}),
|
|
28134
28160
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
28135
28161
|
external_exports.object({
|
|
28136
28162
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -28202,6 +28228,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
28202
28228
|
var clientTurnSchema = external_exports.object({
|
|
28203
28229
|
id: external_exports.string().min(1),
|
|
28204
28230
|
status: external_exports.string().min(1),
|
|
28231
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
28232
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
28205
28233
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
28206
28234
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
28207
28235
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -28240,7 +28268,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
28240
28268
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
28241
28269
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
28242
28270
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
28243
|
-
command: external_exports.object({
|
|
28271
|
+
command: external_exports.object({
|
|
28272
|
+
name: external_exports.string().min(1),
|
|
28273
|
+
turn: clientTurnSchema,
|
|
28274
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
28275
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
28276
|
+
}).optional(),
|
|
28244
28277
|
thread: external_exports.object({
|
|
28245
28278
|
id: external_exports.string().min(1),
|
|
28246
28279
|
cwd: external_exports.string(),
|
|
@@ -28448,15 +28481,14 @@ var webAccessStateSchema = external_exports.object({
|
|
|
28448
28481
|
quotaUntil: external_exports.string().optional()
|
|
28449
28482
|
}).strict().optional()
|
|
28450
28483
|
}).strict();
|
|
28451
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
28452
28484
|
|
|
28453
28485
|
// ../../shared-contracts/dist/delegation-read.js
|
|
28454
28486
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
28455
28487
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
28456
28488
|
threadId: external_exports.string().min(1).max(1024),
|
|
28457
28489
|
view: external_exports.enum(["result", "messages"]),
|
|
28458
|
-
|
|
28459
|
-
|
|
28490
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
28491
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
28460
28492
|
});
|
|
28461
28493
|
|
|
28462
28494
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -29441,6 +29473,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
29441
29473
|
"completed",
|
|
29442
29474
|
"failed",
|
|
29443
29475
|
"interrupted",
|
|
29476
|
+
"needsInput",
|
|
29444
29477
|
"timedOut",
|
|
29445
29478
|
"unreadable",
|
|
29446
29479
|
"notFound"
|
|
@@ -29487,13 +29520,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
29487
29520
|
var thread = { ...target, threadId: identity };
|
|
29488
29521
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29489
29522
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29523
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
29490
29524
|
external_exports.strictObject({
|
|
29491
29525
|
kind: external_exports.literal("list"),
|
|
29492
29526
|
...target,
|
|
29493
29527
|
cursor: external_exports.string().nullable(),
|
|
29494
29528
|
archived: external_exports.boolean()
|
|
29495
29529
|
}),
|
|
29496
|
-
external_exports.strictObject({
|
|
29530
|
+
external_exports.strictObject({
|
|
29531
|
+
kind: external_exports.literal("read"),
|
|
29532
|
+
...thread,
|
|
29533
|
+
page: external_exports.strictObject({
|
|
29534
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
29535
|
+
epoch: identity.optional(),
|
|
29536
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
29537
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
29538
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
29539
|
+
message: "A history continuation requires its connection epoch"
|
|
29540
|
+
}).optional()
|
|
29541
|
+
}),
|
|
29542
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
29497
29543
|
external_exports.strictObject({
|
|
29498
29544
|
kind: external_exports.literal("configure"),
|
|
29499
29545
|
...thread,
|
|
@@ -29574,6 +29620,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
29574
29620
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
29575
29621
|
]);
|
|
29576
29622
|
|
|
29623
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
29624
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
29625
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
29626
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
29627
|
+
});
|
|
29628
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
29629
|
+
|
|
29577
29630
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
29578
29631
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
29579
29632
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -29644,12 +29697,14 @@ function discoverySpec(variant) {
|
|
|
29644
29697
|
installRoots: {
|
|
29645
29698
|
posix: [
|
|
29646
29699
|
"~/.local/bin",
|
|
29700
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29647
29701
|
`~/${configDirectory}/bin`,
|
|
29648
29702
|
VERSION_MANAGER_ROOTS,
|
|
29649
29703
|
"/usr/local/bin",
|
|
29650
29704
|
"/opt/homebrew/bin"
|
|
29651
29705
|
],
|
|
29652
29706
|
windows: [
|
|
29707
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29653
29708
|
`\${LOCALAPPDATA}/Programs/${productName}`,
|
|
29654
29709
|
`\${LOCALAPPDATA}/${productName}`,
|
|
29655
29710
|
`~/${configDirectory}/bin`,
|
|
@@ -30031,6 +30086,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
30031
30086
|
"totalCredits",
|
|
30032
30087
|
"contextUsagePercent",
|
|
30033
30088
|
"outputTokensPerSecond",
|
|
30089
|
+
"sessionOutputTokensPerSecond",
|
|
30034
30090
|
"apiOutputTokensPerSecond",
|
|
30035
30091
|
"costSource",
|
|
30036
30092
|
"unpricedModels"
|
|
@@ -30053,6 +30109,7 @@ function parseHostUsage(value) {
|
|
|
30053
30109
|
for (const field2 of [
|
|
30054
30110
|
"totalCredits",
|
|
30055
30111
|
"contextUsagePercent",
|
|
30112
|
+
"sessionOutputTokensPerSecond",
|
|
30056
30113
|
"apiOutputTokensPerSecond"
|
|
30057
30114
|
]) {
|
|
30058
30115
|
const candidate = value[field2];
|
|
@@ -30137,6 +30194,7 @@ var requestTokenFields = [
|
|
|
30137
30194
|
"cacheWrite1hInputTokens",
|
|
30138
30195
|
"outputTokens",
|
|
30139
30196
|
"reasoningOutputTokens",
|
|
30197
|
+
"timedOutputTokens",
|
|
30140
30198
|
"startedAtMs",
|
|
30141
30199
|
"completedAtMs"
|
|
30142
30200
|
];
|
|
@@ -53088,6 +53146,8 @@ var QoderSession = class {
|
|
|
53088
53146
|
}
|
|
53089
53147
|
}
|
|
53090
53148
|
async #dispatchMessage(message) {
|
|
53149
|
+
if ((message.type === "assistant" || message.type === "stream_event" || message.type === "user") && message.parent_tool_use_id !== null && message.parent_tool_use_id !== void 0)
|
|
53150
|
+
return;
|
|
53091
53151
|
switch (message.type) {
|
|
53092
53152
|
case "system":
|
|
53093
53153
|
this.#handleSystemMessage(message);
|
|
@@ -53264,7 +53324,17 @@ var QoderSession = class {
|
|
|
53264
53324
|
if (!Array.isArray(content))
|
|
53265
53325
|
return;
|
|
53266
53326
|
const hasToolUseInMessage = content.some((block) => typeof block === "object" && block !== null && block.type === "tool_use");
|
|
53267
|
-
for (const block of content) {
|
|
53327
|
+
for (const [index, block] of content.entries()) {
|
|
53328
|
+
if (message.uuid && typeof block === "object" && block !== null) {
|
|
53329
|
+
const raw = block;
|
|
53330
|
+
const text = raw.type === "text" ? raw.text : raw.type === "thinking" ? raw.thinking : void 0;
|
|
53331
|
+
if (typeof text === "string") {
|
|
53332
|
+
const key = JSON.stringify([message.uuid, index, raw.type, text]);
|
|
53333
|
+
if (this.#activeTurn.projectedTextSnapshots.has(key))
|
|
53334
|
+
continue;
|
|
53335
|
+
this.#activeTurn.projectedTextSnapshots.add(key);
|
|
53336
|
+
}
|
|
53337
|
+
}
|
|
53268
53338
|
this.#projectAssistantBlock(block, hasToolUseInMessage);
|
|
53269
53339
|
}
|
|
53270
53340
|
}
|
|
@@ -53386,6 +53456,11 @@ var QoderSession = class {
|
|
|
53386
53456
|
});
|
|
53387
53457
|
}
|
|
53388
53458
|
} else if (rawBlock.type === "tool_use") {
|
|
53459
|
+
if (typeof rawBlock.id === "string" && rawBlock.id.trim()) {
|
|
53460
|
+
if (this.#activeTurn.startedToolIds.has(rawBlock.id))
|
|
53461
|
+
return;
|
|
53462
|
+
this.#activeTurn.startedToolIds.add(rawBlock.id);
|
|
53463
|
+
}
|
|
53389
53464
|
if (this.#activeTurn.activeStreamingMessageItemId) {
|
|
53390
53465
|
this.#emitEvent({
|
|
53391
53466
|
type: "item.completed",
|
|
@@ -53865,6 +53940,8 @@ var QoderSession = class {
|
|
|
53865
53940
|
this.#activeTurn = {
|
|
53866
53941
|
turnId: command.turnId,
|
|
53867
53942
|
userMessageUuid,
|
|
53943
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
53944
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
53868
53945
|
accumulatedStreamingText: "",
|
|
53869
53946
|
accumulatedStreamingReasoning: ""
|
|
53870
53947
|
};
|
|
@@ -54253,6 +54330,8 @@ var QoderSession = class {
|
|
|
54253
54330
|
this.#activeTurn = {
|
|
54254
54331
|
turnId: command.turnId,
|
|
54255
54332
|
userMessageUuid,
|
|
54333
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
54334
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
54256
54335
|
accumulatedStreamingText: "",
|
|
54257
54336
|
accumulatedStreamingReasoning: "",
|
|
54258
54337
|
isCompaction,
|
|
@@ -55386,6 +55465,19 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
55386
55465
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
55387
55466
|
};
|
|
55388
55467
|
const output = await run(["update", "--check"]);
|
|
55468
|
+
if (/unable to determine installation method/i.test(output))
|
|
55469
|
+
return {
|
|
55470
|
+
currentVersion,
|
|
55471
|
+
latestVersion: "Unknown",
|
|
55472
|
+
updateAvailable: false,
|
|
55473
|
+
canUpdate: false,
|
|
55474
|
+
messageCode: "qoder-check-unavailable",
|
|
55475
|
+
notice: {
|
|
55476
|
+
en: "This Qoder CLI cannot determine how it was installed and cannot check for updates. Use the installer or application that installed it.",
|
|
55477
|
+
"zh-CN": "当前 Qoder CLI 无法识别自身的安装方式,不能检查更新。请使用安装它的安装程序或应用进行更新。"
|
|
55478
|
+
},
|
|
55479
|
+
message: "This Qoder CLI cannot determine how it was installed and cannot check for updates."
|
|
55480
|
+
};
|
|
55389
55481
|
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
55390
55482
|
if (available?.[1])
|
|
55391
55483
|
return {
|
|
@@ -27245,13 +27245,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
27245
27245
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27246
27246
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27247
27247
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27248
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
27249
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27250
|
+
requestId: external_exports.string().min(1),
|
|
27251
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
27252
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
27253
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
27254
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
27255
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
27248
27256
|
var usageMeasurementSchema = external_exports.object({
|
|
27257
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27249
27258
|
value: finiteNonNegativeNumberSchema,
|
|
27250
27259
|
turnId: external_exports.string().min(1).max(1024),
|
|
27251
27260
|
at: nonNegativeSafeIntegerSchema
|
|
27252
27261
|
}).strict();
|
|
27253
27262
|
var usageMeasurementsSchema = external_exports.object({
|
|
27254
|
-
|
|
27263
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
27264
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
27265
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
27266
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
27255
27267
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
27256
27268
|
}).strict();
|
|
27257
27269
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -27271,6 +27283,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
27271
27283
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27272
27284
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27273
27285
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27286
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27274
27287
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
27275
27288
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27276
27289
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -27702,11 +27715,19 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
27702
27715
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
27703
27716
|
}).strict();
|
|
27704
27717
|
|
|
27718
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
27719
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
27720
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
27721
|
+
|
|
27705
27722
|
// ../../shared-contracts/dist/client-channel.js
|
|
27706
27723
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
27707
27724
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
27708
27725
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
27709
27726
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
27727
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
27728
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
27729
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
27730
|
+
}).strict();
|
|
27710
27731
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
27711
27732
|
prompt: external_exports.string().max(16384).optional()
|
|
27712
27733
|
}).strict();
|
|
@@ -27728,6 +27749,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
27728
27749
|
cursor: clientChannelCursorSchema,
|
|
27729
27750
|
cwd: external_exports.string().optional()
|
|
27730
27751
|
}),
|
|
27752
|
+
external_exports.object({
|
|
27753
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
27754
|
+
cursor: clientChannelCursorSchema,
|
|
27755
|
+
harnessId: external_exports.string().min(1)
|
|
27756
|
+
}),
|
|
27731
27757
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
27732
27758
|
external_exports.object({
|
|
27733
27759
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -27799,6 +27825,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
27799
27825
|
var clientTurnSchema = external_exports.object({
|
|
27800
27826
|
id: external_exports.string().min(1),
|
|
27801
27827
|
status: external_exports.string().min(1),
|
|
27828
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
27829
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
27802
27830
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
27803
27831
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
27804
27832
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -27837,7 +27865,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
27837
27865
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
27838
27866
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
27839
27867
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
27840
|
-
command: external_exports.object({
|
|
27868
|
+
command: external_exports.object({
|
|
27869
|
+
name: external_exports.string().min(1),
|
|
27870
|
+
turn: clientTurnSchema,
|
|
27871
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
27872
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
27873
|
+
}).optional(),
|
|
27841
27874
|
thread: external_exports.object({
|
|
27842
27875
|
id: external_exports.string().min(1),
|
|
27843
27876
|
cwd: external_exports.string(),
|
|
@@ -28045,15 +28078,14 @@ var webAccessStateSchema = external_exports.object({
|
|
|
28045
28078
|
quotaUntil: external_exports.string().optional()
|
|
28046
28079
|
}).strict().optional()
|
|
28047
28080
|
}).strict();
|
|
28048
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
28049
28081
|
|
|
28050
28082
|
// ../../shared-contracts/dist/delegation-read.js
|
|
28051
28083
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
28052
28084
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
28053
28085
|
threadId: external_exports.string().min(1).max(1024),
|
|
28054
28086
|
view: external_exports.enum(["result", "messages"]),
|
|
28055
|
-
|
|
28056
|
-
|
|
28087
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
28088
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
28057
28089
|
});
|
|
28058
28090
|
|
|
28059
28091
|
// ../../shared-contracts/dist/credential-imports.js
|
|
@@ -29038,6 +29070,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
29038
29070
|
"completed",
|
|
29039
29071
|
"failed",
|
|
29040
29072
|
"interrupted",
|
|
29073
|
+
"needsInput",
|
|
29041
29074
|
"timedOut",
|
|
29042
29075
|
"unreadable",
|
|
29043
29076
|
"notFound"
|
|
@@ -29084,13 +29117,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
29084
29117
|
var thread = { ...target, threadId: identity };
|
|
29085
29118
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29086
29119
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29120
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
29087
29121
|
external_exports.strictObject({
|
|
29088
29122
|
kind: external_exports.literal("list"),
|
|
29089
29123
|
...target,
|
|
29090
29124
|
cursor: external_exports.string().nullable(),
|
|
29091
29125
|
archived: external_exports.boolean()
|
|
29092
29126
|
}),
|
|
29093
|
-
external_exports.strictObject({
|
|
29127
|
+
external_exports.strictObject({
|
|
29128
|
+
kind: external_exports.literal("read"),
|
|
29129
|
+
...thread,
|
|
29130
|
+
page: external_exports.strictObject({
|
|
29131
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
29132
|
+
epoch: identity.optional(),
|
|
29133
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
29134
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
29135
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
29136
|
+
message: "A history continuation requires its connection epoch"
|
|
29137
|
+
}).optional()
|
|
29138
|
+
}),
|
|
29139
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
29094
29140
|
external_exports.strictObject({
|
|
29095
29141
|
kind: external_exports.literal("configure"),
|
|
29096
29142
|
...thread,
|
|
@@ -29171,6 +29217,13 @@ var remoteConnectionsReplySchema = external_exports.union([
|
|
|
29171
29217
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
29172
29218
|
]);
|
|
29173
29219
|
|
|
29220
|
+
// ../../shared-contracts/dist/thread-title.js
|
|
29221
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
29222
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
29223
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
29224
|
+
});
|
|
29225
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
29226
|
+
|
|
29174
29227
|
// ../../shared-contracts/dist/web-ui-extensions.js
|
|
29175
29228
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
29176
29229
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -29646,12 +29699,14 @@ function discoverySpec(variant) {
|
|
|
29646
29699
|
installRoots: {
|
|
29647
29700
|
posix: [
|
|
29648
29701
|
"~/.local/bin",
|
|
29702
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29649
29703
|
`~/${configDirectory}/bin`,
|
|
29650
29704
|
VERSION_MANAGER_ROOTS,
|
|
29651
29705
|
"/usr/local/bin",
|
|
29652
29706
|
"/opt/homebrew/bin"
|
|
29653
29707
|
],
|
|
29654
29708
|
windows: [
|
|
29709
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29655
29710
|
`\${LOCALAPPDATA}/Programs/${productName}`,
|
|
29656
29711
|
`\${LOCALAPPDATA}/${productName}`,
|
|
29657
29712
|
`~/${configDirectory}/bin`,
|
|
@@ -30033,6 +30088,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
30033
30088
|
"totalCredits",
|
|
30034
30089
|
"contextUsagePercent",
|
|
30035
30090
|
"outputTokensPerSecond",
|
|
30091
|
+
"sessionOutputTokensPerSecond",
|
|
30036
30092
|
"apiOutputTokensPerSecond",
|
|
30037
30093
|
"costSource",
|
|
30038
30094
|
"unpricedModels"
|
|
@@ -30055,6 +30111,7 @@ function parseHostUsage(value) {
|
|
|
30055
30111
|
for (const field2 of [
|
|
30056
30112
|
"totalCredits",
|
|
30057
30113
|
"contextUsagePercent",
|
|
30114
|
+
"sessionOutputTokensPerSecond",
|
|
30058
30115
|
"apiOutputTokensPerSecond"
|
|
30059
30116
|
]) {
|
|
30060
30117
|
const candidate = value[field2];
|
|
@@ -30139,6 +30196,7 @@ var requestTokenFields = [
|
|
|
30139
30196
|
"cacheWrite1hInputTokens",
|
|
30140
30197
|
"outputTokens",
|
|
30141
30198
|
"reasoningOutputTokens",
|
|
30199
|
+
"timedOutputTokens",
|
|
30142
30200
|
"startedAtMs",
|
|
30143
30201
|
"completedAtMs"
|
|
30144
30202
|
];
|
|
@@ -53090,6 +53148,8 @@ var QoderSession = class {
|
|
|
53090
53148
|
}
|
|
53091
53149
|
}
|
|
53092
53150
|
async #dispatchMessage(message) {
|
|
53151
|
+
if ((message.type === "assistant" || message.type === "stream_event" || message.type === "user") && message.parent_tool_use_id !== null && message.parent_tool_use_id !== void 0)
|
|
53152
|
+
return;
|
|
53093
53153
|
switch (message.type) {
|
|
53094
53154
|
case "system":
|
|
53095
53155
|
this.#handleSystemMessage(message);
|
|
@@ -53266,7 +53326,17 @@ var QoderSession = class {
|
|
|
53266
53326
|
if (!Array.isArray(content))
|
|
53267
53327
|
return;
|
|
53268
53328
|
const hasToolUseInMessage = content.some((block) => typeof block === "object" && block !== null && block.type === "tool_use");
|
|
53269
|
-
for (const block of content) {
|
|
53329
|
+
for (const [index, block] of content.entries()) {
|
|
53330
|
+
if (message.uuid && typeof block === "object" && block !== null) {
|
|
53331
|
+
const raw = block;
|
|
53332
|
+
const text = raw.type === "text" ? raw.text : raw.type === "thinking" ? raw.thinking : void 0;
|
|
53333
|
+
if (typeof text === "string") {
|
|
53334
|
+
const key = JSON.stringify([message.uuid, index, raw.type, text]);
|
|
53335
|
+
if (this.#activeTurn.projectedTextSnapshots.has(key))
|
|
53336
|
+
continue;
|
|
53337
|
+
this.#activeTurn.projectedTextSnapshots.add(key);
|
|
53338
|
+
}
|
|
53339
|
+
}
|
|
53270
53340
|
this.#projectAssistantBlock(block, hasToolUseInMessage);
|
|
53271
53341
|
}
|
|
53272
53342
|
}
|
|
@@ -53388,6 +53458,11 @@ var QoderSession = class {
|
|
|
53388
53458
|
});
|
|
53389
53459
|
}
|
|
53390
53460
|
} else if (rawBlock.type === "tool_use") {
|
|
53461
|
+
if (typeof rawBlock.id === "string" && rawBlock.id.trim()) {
|
|
53462
|
+
if (this.#activeTurn.startedToolIds.has(rawBlock.id))
|
|
53463
|
+
return;
|
|
53464
|
+
this.#activeTurn.startedToolIds.add(rawBlock.id);
|
|
53465
|
+
}
|
|
53391
53466
|
if (this.#activeTurn.activeStreamingMessageItemId) {
|
|
53392
53467
|
this.#emitEvent({
|
|
53393
53468
|
type: "item.completed",
|
|
@@ -53867,6 +53942,8 @@ var QoderSession = class {
|
|
|
53867
53942
|
this.#activeTurn = {
|
|
53868
53943
|
turnId: command.turnId,
|
|
53869
53944
|
userMessageUuid,
|
|
53945
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
53946
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
53870
53947
|
accumulatedStreamingText: "",
|
|
53871
53948
|
accumulatedStreamingReasoning: ""
|
|
53872
53949
|
};
|
|
@@ -54255,6 +54332,8 @@ var QoderSession = class {
|
|
|
54255
54332
|
this.#activeTurn = {
|
|
54256
54333
|
turnId: command.turnId,
|
|
54257
54334
|
userMessageUuid,
|
|
54335
|
+
startedToolIds: /* @__PURE__ */ new Set(),
|
|
54336
|
+
projectedTextSnapshots: /* @__PURE__ */ new Set(),
|
|
54258
54337
|
accumulatedStreamingText: "",
|
|
54259
54338
|
accumulatedStreamingReasoning: "",
|
|
54260
54339
|
isCompaction,
|
|
@@ -55388,6 +55467,19 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
55388
55467
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
55389
55468
|
};
|
|
55390
55469
|
const output = await run(["update", "--check"]);
|
|
55470
|
+
if (/unable to determine installation method/i.test(output))
|
|
55471
|
+
return {
|
|
55472
|
+
currentVersion,
|
|
55473
|
+
latestVersion: "Unknown",
|
|
55474
|
+
updateAvailable: false,
|
|
55475
|
+
canUpdate: false,
|
|
55476
|
+
messageCode: "qoder-check-unavailable",
|
|
55477
|
+
notice: {
|
|
55478
|
+
en: "This Qoder CLI cannot determine how it was installed and cannot check for updates. Use the installer or application that installed it.",
|
|
55479
|
+
"zh-CN": "当前 Qoder CLI 无法识别自身的安装方式,不能检查更新。请使用安装它的安装程序或应用进行更新。"
|
|
55480
|
+
},
|
|
55481
|
+
message: "This Qoder CLI cannot determine how it was installed and cannot check for updates."
|
|
55482
|
+
};
|
|
55391
55483
|
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
55392
55484
|
if (available?.[1])
|
|
55393
55485
|
return {
|