@codexhost/cli-linux-arm64 0.20.0 → 0.21.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 +26 -6
- package/app/console-web.js +34 -7
- package/app/desktop-controller.mjs +162 -51
- package/app/host-runtime.mjs +35562 -29076
- package/app/plugins/antigravity/assets/icon.svg +1 -1
- package/app/plugins/antigravity/plugin.mjs +1112 -822
- package/app/plugins/claude-code/plugin.mjs +152 -28
- package/app/plugins/codebuddy/plugin.mjs +35 -6
- package/app/plugins/codex-usage/plugin.mjs +35 -6
- package/app/plugins/copilot/plugin.mjs +27 -6
- package/app/plugins/cursor-cli/plugin.mjs +27 -6
- package/app/plugins/deepseek-harness/plugin.mjs +52 -11
- package/app/plugins/devin/plugin.mjs +27 -6
- package/app/plugins/grok/plugin.mjs +63 -15
- package/app/plugins/hermes/plugin.mjs +27 -6
- package/app/plugins/kimi-code/plugin.mjs +52 -16
- package/app/plugins/kiro-cli/plugin.mjs +27 -6
- package/app/plugins/omp/plugin.mjs +35 -6
- package/app/plugins/opencode/plugin.mjs +53 -15
- package/app/plugins/pi/plugin.mjs +35 -6
- package/app/plugins/qoder/plugin.mjs +42 -6
- package/app/plugins/qoder-cn/plugin.mjs +42 -6
- package/app/plugins/qwen-code/plugin.mjs +27 -6
- package/app/plugins/workbuddy/plugin.mjs +35 -6
- package/app/plugins/zcode/plugin.mjs +35 -6
- package/app/renderer-extension.js +26 -6
- package/app/web/assets/{index-D85gPBbQ.js → index-BdmZfTRW.js} +62 -62
- package/app/web/assets/{index-D6-hvggd.css → index-DJW4bmyx.css} +1 -1
- package/app/web/codexhost-settings.js +34 -7
- package/app/web/index.html +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 +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +68 -68
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +6 -6
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +22 -22
- 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-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-tool/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +2 -2
- package/app/web-modules/server.mjs +1012 -667
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -15060,7 +15060,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
15060
15060
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15061
15061
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15062
15062
|
var usageOutputTimingSchema = external_exports.object({
|
|
15063
|
-
version: external_exports.literal(3).optional(),
|
|
15063
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15064
15064
|
requestId: external_exports.string().min(1),
|
|
15065
15065
|
turnId: external_exports.string().min(1).max(1024),
|
|
15066
15066
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15068,16 +15068,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15068
15068
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15069
15069
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15070
15070
|
var usageMeasurementSchema = external_exports.object({
|
|
15071
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15071
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15072
15072
|
value: finiteNonNegativeNumberSchema,
|
|
15073
15073
|
turnId: external_exports.string().min(1).max(1024),
|
|
15074
15074
|
at: nonNegativeSafeIntegerSchema
|
|
15075
15075
|
}).strict();
|
|
15076
15076
|
var usageMeasurementsSchema = external_exports.object({
|
|
15077
|
-
//
|
|
15078
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15077
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15078
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15079
15079
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15080
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15080
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15081
15081
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15082
15082
|
}).strict();
|
|
15083
15083
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text4) => text4.length <= maximum));
|
|
@@ -15543,6 +15543,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15543
15543
|
cursor: clientChannelCursorSchema,
|
|
15544
15544
|
cwd: external_exports.string().optional()
|
|
15545
15545
|
}),
|
|
15546
|
+
external_exports.object({
|
|
15547
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15548
|
+
cursor: clientChannelCursorSchema,
|
|
15549
|
+
harnessId: external_exports.string().min(1)
|
|
15550
|
+
}),
|
|
15546
15551
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15547
15552
|
external_exports.object({
|
|
15548
15553
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15614,6 +15619,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15614
15619
|
var clientTurnSchema = external_exports.object({
|
|
15615
15620
|
id: external_exports.string().min(1),
|
|
15616
15621
|
status: external_exports.string().min(1),
|
|
15622
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15623
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15617
15624
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15618
15625
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15619
15626
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16830,6 +16837,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16830
16837
|
"completed",
|
|
16831
16838
|
"failed",
|
|
16832
16839
|
"interrupted",
|
|
16840
|
+
"needsInput",
|
|
16833
16841
|
"timedOut",
|
|
16834
16842
|
"unreadable",
|
|
16835
16843
|
"notFound"
|
|
@@ -16876,13 +16884,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16876
16884
|
var thread = { ...target, threadId: identity };
|
|
16877
16885
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16878
16886
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16887
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16879
16888
|
external_exports.strictObject({
|
|
16880
16889
|
kind: external_exports.literal("list"),
|
|
16881
16890
|
...target,
|
|
16882
16891
|
cursor: external_exports.string().nullable(),
|
|
16883
16892
|
archived: external_exports.boolean()
|
|
16884
16893
|
}),
|
|
16885
|
-
external_exports.strictObject({
|
|
16894
|
+
external_exports.strictObject({
|
|
16895
|
+
kind: external_exports.literal("read"),
|
|
16896
|
+
...thread,
|
|
16897
|
+
page: external_exports.strictObject({
|
|
16898
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16899
|
+
epoch: identity.optional(),
|
|
16900
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16901
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16902
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16903
|
+
message: "A history continuation requires its connection epoch"
|
|
16904
|
+
}).optional()
|
|
16905
|
+
}),
|
|
16886
16906
|
external_exports.strictObject({
|
|
16887
16907
|
kind: external_exports.literal("configure"),
|
|
16888
16908
|
...thread,
|
|
@@ -17253,6 +17273,7 @@ var requestTokenFields = [
|
|
|
17253
17273
|
"cacheWrite1hInputTokens",
|
|
17254
17274
|
"outputTokens",
|
|
17255
17275
|
"reasoningOutputTokens",
|
|
17276
|
+
"timedOutputTokens",
|
|
17256
17277
|
"startedAtMs",
|
|
17257
17278
|
"completedAtMs"
|
|
17258
17279
|
];
|
|
@@ -17305,6 +17326,14 @@ function parseHostUsageRequest(value) {
|
|
|
17305
17326
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
17306
17327
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
17307
17328
|
}
|
|
17329
|
+
if (request.timedOutputTokens !== void 0) {
|
|
17330
|
+
if (request.startedAtMs === void 0) {
|
|
17331
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
17332
|
+
}
|
|
17333
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
17334
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
17335
|
+
}
|
|
17336
|
+
}
|
|
17308
17337
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
17309
17338
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
17310
17339
|
}
|
|
@@ -27649,7 +27649,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
27649
27649
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27650
27650
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27651
27651
|
var usageOutputTimingSchema = external_exports.object({
|
|
27652
|
-
version: external_exports.literal(3).optional(),
|
|
27652
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27653
27653
|
requestId: external_exports.string().min(1),
|
|
27654
27654
|
turnId: external_exports.string().min(1).max(1024),
|
|
27655
27655
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -27657,16 +27657,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
27657
27657
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
27658
27658
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
27659
27659
|
var usageMeasurementSchema = external_exports.object({
|
|
27660
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
27660
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27661
27661
|
value: finiteNonNegativeNumberSchema,
|
|
27662
27662
|
turnId: external_exports.string().min(1).max(1024),
|
|
27663
27663
|
at: nonNegativeSafeIntegerSchema
|
|
27664
27664
|
}).strict();
|
|
27665
27665
|
var usageMeasurementsSchema = external_exports.object({
|
|
27666
|
-
//
|
|
27667
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
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
27668
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
27669
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
27669
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
27670
27670
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
27671
27671
|
}).strict();
|
|
27672
27672
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -28132,6 +28132,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
28132
28132
|
cursor: clientChannelCursorSchema,
|
|
28133
28133
|
cwd: external_exports.string().optional()
|
|
28134
28134
|
}),
|
|
28135
|
+
external_exports.object({
|
|
28136
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
28137
|
+
cursor: clientChannelCursorSchema,
|
|
28138
|
+
harnessId: external_exports.string().min(1)
|
|
28139
|
+
}),
|
|
28135
28140
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
28136
28141
|
external_exports.object({
|
|
28137
28142
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -28203,6 +28208,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
28203
28208
|
var clientTurnSchema = external_exports.object({
|
|
28204
28209
|
id: external_exports.string().min(1),
|
|
28205
28210
|
status: external_exports.string().min(1),
|
|
28211
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
28212
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
28206
28213
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
28207
28214
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
28208
28215
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -29419,6 +29426,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
29419
29426
|
"completed",
|
|
29420
29427
|
"failed",
|
|
29421
29428
|
"interrupted",
|
|
29429
|
+
"needsInput",
|
|
29422
29430
|
"timedOut",
|
|
29423
29431
|
"unreadable",
|
|
29424
29432
|
"notFound"
|
|
@@ -29465,13 +29473,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
29465
29473
|
var thread = { ...target, threadId: identity };
|
|
29466
29474
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29467
29475
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29476
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
29468
29477
|
external_exports.strictObject({
|
|
29469
29478
|
kind: external_exports.literal("list"),
|
|
29470
29479
|
...target,
|
|
29471
29480
|
cursor: external_exports.string().nullable(),
|
|
29472
29481
|
archived: external_exports.boolean()
|
|
29473
29482
|
}),
|
|
29474
|
-
external_exports.strictObject({
|
|
29483
|
+
external_exports.strictObject({
|
|
29484
|
+
kind: external_exports.literal("read"),
|
|
29485
|
+
...thread,
|
|
29486
|
+
page: external_exports.strictObject({
|
|
29487
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
29488
|
+
epoch: identity.optional(),
|
|
29489
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
29490
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
29491
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
29492
|
+
message: "A history continuation requires its connection epoch"
|
|
29493
|
+
}).optional()
|
|
29494
|
+
}),
|
|
29475
29495
|
external_exports.strictObject({
|
|
29476
29496
|
kind: external_exports.literal("configure"),
|
|
29477
29497
|
...thread,
|
|
@@ -29629,12 +29649,14 @@ function discoverySpec(variant) {
|
|
|
29629
29649
|
installRoots: {
|
|
29630
29650
|
posix: [
|
|
29631
29651
|
"~/.local/bin",
|
|
29652
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29632
29653
|
`~/${configDirectory}/bin`,
|
|
29633
29654
|
VERSION_MANAGER_ROOTS,
|
|
29634
29655
|
"/usr/local/bin",
|
|
29635
29656
|
"/opt/homebrew/bin"
|
|
29636
29657
|
],
|
|
29637
29658
|
windows: [
|
|
29659
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29638
29660
|
`\${LOCALAPPDATA}/Programs/${productName}`,
|
|
29639
29661
|
`\${LOCALAPPDATA}/${productName}`,
|
|
29640
29662
|
`~/${configDirectory}/bin`,
|
|
@@ -30118,6 +30140,7 @@ var requestTokenFields = [
|
|
|
30118
30140
|
"cacheWrite1hInputTokens",
|
|
30119
30141
|
"outputTokens",
|
|
30120
30142
|
"reasoningOutputTokens",
|
|
30143
|
+
"timedOutputTokens",
|
|
30121
30144
|
"startedAtMs",
|
|
30122
30145
|
"completedAtMs"
|
|
30123
30146
|
];
|
|
@@ -55388,6 +55411,19 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
55388
55411
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
55389
55412
|
};
|
|
55390
55413
|
const output = await run(["update", "--check"]);
|
|
55414
|
+
if (/unable to determine installation method/i.test(output))
|
|
55415
|
+
return {
|
|
55416
|
+
currentVersion,
|
|
55417
|
+
latestVersion: "Unknown",
|
|
55418
|
+
updateAvailable: false,
|
|
55419
|
+
canUpdate: false,
|
|
55420
|
+
messageCode: "qoder-check-unavailable",
|
|
55421
|
+
notice: {
|
|
55422
|
+
en: "This Qoder CLI cannot determine how it was installed and cannot check for updates. Use the installer or application that installed it.",
|
|
55423
|
+
"zh-CN": "当前 Qoder CLI 无法识别自身的安装方式,不能检查更新。请使用安装它的安装程序或应用进行更新。"
|
|
55424
|
+
},
|
|
55425
|
+
message: "This Qoder CLI cannot determine how it was installed and cannot check for updates."
|
|
55426
|
+
};
|
|
55391
55427
|
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
55392
55428
|
if (available?.[1])
|
|
55393
55429
|
return {
|
|
@@ -27246,7 +27246,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
27246
27246
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27247
27247
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27248
27248
|
var usageOutputTimingSchema = external_exports.object({
|
|
27249
|
-
version: external_exports.literal(3).optional(),
|
|
27249
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27250
27250
|
requestId: external_exports.string().min(1),
|
|
27251
27251
|
turnId: external_exports.string().min(1).max(1024),
|
|
27252
27252
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -27254,16 +27254,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
27254
27254
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
27255
27255
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
27256
27256
|
var usageMeasurementSchema = external_exports.object({
|
|
27257
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
27257
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27258
27258
|
value: finiteNonNegativeNumberSchema,
|
|
27259
27259
|
turnId: external_exports.string().min(1).max(1024),
|
|
27260
27260
|
at: nonNegativeSafeIntegerSchema
|
|
27261
27261
|
}).strict();
|
|
27262
27262
|
var usageMeasurementsSchema = external_exports.object({
|
|
27263
|
-
//
|
|
27264
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
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
27265
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
27266
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
27266
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
27267
27267
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
27268
27268
|
}).strict();
|
|
27269
27269
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -27729,6 +27729,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
27729
27729
|
cursor: clientChannelCursorSchema,
|
|
27730
27730
|
cwd: external_exports.string().optional()
|
|
27731
27731
|
}),
|
|
27732
|
+
external_exports.object({
|
|
27733
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
27734
|
+
cursor: clientChannelCursorSchema,
|
|
27735
|
+
harnessId: external_exports.string().min(1)
|
|
27736
|
+
}),
|
|
27732
27737
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
27733
27738
|
external_exports.object({
|
|
27734
27739
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -27800,6 +27805,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
27800
27805
|
var clientTurnSchema = external_exports.object({
|
|
27801
27806
|
id: external_exports.string().min(1),
|
|
27802
27807
|
status: external_exports.string().min(1),
|
|
27808
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
27809
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
27803
27810
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
27804
27811
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
27805
27812
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -29016,6 +29023,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
29016
29023
|
"completed",
|
|
29017
29024
|
"failed",
|
|
29018
29025
|
"interrupted",
|
|
29026
|
+
"needsInput",
|
|
29019
29027
|
"timedOut",
|
|
29020
29028
|
"unreadable",
|
|
29021
29029
|
"notFound"
|
|
@@ -29062,13 +29070,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
29062
29070
|
var thread = { ...target, threadId: identity };
|
|
29063
29071
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29064
29072
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29073
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
29065
29074
|
external_exports.strictObject({
|
|
29066
29075
|
kind: external_exports.literal("list"),
|
|
29067
29076
|
...target,
|
|
29068
29077
|
cursor: external_exports.string().nullable(),
|
|
29069
29078
|
archived: external_exports.boolean()
|
|
29070
29079
|
}),
|
|
29071
|
-
external_exports.strictObject({
|
|
29080
|
+
external_exports.strictObject({
|
|
29081
|
+
kind: external_exports.literal("read"),
|
|
29082
|
+
...thread,
|
|
29083
|
+
page: external_exports.strictObject({
|
|
29084
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
29085
|
+
epoch: identity.optional(),
|
|
29086
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
29087
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
29088
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
29089
|
+
message: "A history continuation requires its connection epoch"
|
|
29090
|
+
}).optional()
|
|
29091
|
+
}),
|
|
29072
29092
|
external_exports.strictObject({
|
|
29073
29093
|
kind: external_exports.literal("configure"),
|
|
29074
29094
|
...thread,
|
|
@@ -29631,12 +29651,14 @@ function discoverySpec(variant) {
|
|
|
29631
29651
|
installRoots: {
|
|
29632
29652
|
posix: [
|
|
29633
29653
|
"~/.local/bin",
|
|
29654
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29634
29655
|
`~/${configDirectory}/bin`,
|
|
29635
29656
|
VERSION_MANAGER_ROOTS,
|
|
29636
29657
|
"/usr/local/bin",
|
|
29637
29658
|
"/opt/homebrew/bin"
|
|
29638
29659
|
],
|
|
29639
29660
|
windows: [
|
|
29661
|
+
`~/${configDirectory}/bin/${command}`,
|
|
29640
29662
|
`\${LOCALAPPDATA}/Programs/${productName}`,
|
|
29641
29663
|
`\${LOCALAPPDATA}/${productName}`,
|
|
29642
29664
|
`~/${configDirectory}/bin`,
|
|
@@ -30120,6 +30142,7 @@ var requestTokenFields = [
|
|
|
30120
30142
|
"cacheWrite1hInputTokens",
|
|
30121
30143
|
"outputTokens",
|
|
30122
30144
|
"reasoningOutputTokens",
|
|
30145
|
+
"timedOutputTokens",
|
|
30123
30146
|
"startedAtMs",
|
|
30124
30147
|
"completedAtMs"
|
|
30125
30148
|
];
|
|
@@ -55390,6 +55413,19 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
55390
55413
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
55391
55414
|
};
|
|
55392
55415
|
const output = await run(["update", "--check"]);
|
|
55416
|
+
if (/unable to determine installation method/i.test(output))
|
|
55417
|
+
return {
|
|
55418
|
+
currentVersion,
|
|
55419
|
+
latestVersion: "Unknown",
|
|
55420
|
+
updateAvailable: false,
|
|
55421
|
+
canUpdate: false,
|
|
55422
|
+
messageCode: "qoder-check-unavailable",
|
|
55423
|
+
notice: {
|
|
55424
|
+
en: "This Qoder CLI cannot determine how it was installed and cannot check for updates. Use the installer or application that installed it.",
|
|
55425
|
+
"zh-CN": "当前 Qoder CLI 无法识别自身的安装方式,不能检查更新。请使用安装它的安装程序或应用进行更新。"
|
|
55426
|
+
},
|
|
55427
|
+
message: "This Qoder CLI cannot determine how it was installed and cannot check for updates."
|
|
55428
|
+
};
|
|
55393
55429
|
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
55394
55430
|
if (available?.[1])
|
|
55395
55431
|
return {
|
|
@@ -21551,7 +21551,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
21551
21551
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
21552
21552
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
21553
21553
|
var usageOutputTimingSchema = external_exports.object({
|
|
21554
|
-
version: external_exports.literal(3).optional(),
|
|
21554
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
21555
21555
|
requestId: external_exports.string().min(1),
|
|
21556
21556
|
turnId: external_exports.string().min(1).max(1024),
|
|
21557
21557
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -21559,16 +21559,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
21559
21559
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
21560
21560
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
21561
21561
|
var usageMeasurementSchema = external_exports.object({
|
|
21562
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
21562
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
21563
21563
|
value: finiteNonNegativeNumberSchema,
|
|
21564
21564
|
turnId: external_exports.string().min(1).max(1024),
|
|
21565
21565
|
at: nonNegativeSafeIntegerSchema
|
|
21566
21566
|
}).strict();
|
|
21567
21567
|
var usageMeasurementsSchema = external_exports.object({
|
|
21568
|
-
//
|
|
21569
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
21568
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
21569
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
21570
21570
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
21571
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
21571
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
21572
21572
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
21573
21573
|
}).strict();
|
|
21574
21574
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -22034,6 +22034,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
22034
22034
|
cursor: clientChannelCursorSchema,
|
|
22035
22035
|
cwd: external_exports.string().optional()
|
|
22036
22036
|
}),
|
|
22037
|
+
external_exports.object({
|
|
22038
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
22039
|
+
cursor: clientChannelCursorSchema,
|
|
22040
|
+
harnessId: external_exports.string().min(1)
|
|
22041
|
+
}),
|
|
22037
22042
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
22038
22043
|
external_exports.object({
|
|
22039
22044
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -22105,6 +22110,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
22105
22110
|
var clientTurnSchema = external_exports.object({
|
|
22106
22111
|
id: external_exports.string().min(1),
|
|
22107
22112
|
status: external_exports.string().min(1),
|
|
22113
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
22114
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
22108
22115
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
22109
22116
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
22110
22117
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -23319,6 +23326,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
23319
23326
|
"completed",
|
|
23320
23327
|
"failed",
|
|
23321
23328
|
"interrupted",
|
|
23329
|
+
"needsInput",
|
|
23322
23330
|
"timedOut",
|
|
23323
23331
|
"unreadable",
|
|
23324
23332
|
"notFound"
|
|
@@ -23365,13 +23373,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
23365
23373
|
var thread = { ...target, threadId: identity };
|
|
23366
23374
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
23367
23375
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
23376
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
23368
23377
|
external_exports.strictObject({
|
|
23369
23378
|
kind: external_exports.literal("list"),
|
|
23370
23379
|
...target,
|
|
23371
23380
|
cursor: external_exports.string().nullable(),
|
|
23372
23381
|
archived: external_exports.boolean()
|
|
23373
23382
|
}),
|
|
23374
|
-
external_exports.strictObject({
|
|
23383
|
+
external_exports.strictObject({
|
|
23384
|
+
kind: external_exports.literal("read"),
|
|
23385
|
+
...thread,
|
|
23386
|
+
page: external_exports.strictObject({
|
|
23387
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
23388
|
+
epoch: identity.optional(),
|
|
23389
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
23390
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
23391
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
23392
|
+
message: "A history continuation requires its connection epoch"
|
|
23393
|
+
}).optional()
|
|
23394
|
+
}),
|
|
23375
23395
|
external_exports.strictObject({
|
|
23376
23396
|
kind: external_exports.literal("configure"),
|
|
23377
23397
|
...thread,
|
|
@@ -23741,6 +23761,7 @@ var requestTokenFields = [
|
|
|
23741
23761
|
"cacheWrite1hInputTokens",
|
|
23742
23762
|
"outputTokens",
|
|
23743
23763
|
"reasoningOutputTokens",
|
|
23764
|
+
"timedOutputTokens",
|
|
23744
23765
|
"startedAtMs",
|
|
23745
23766
|
"completedAtMs"
|
|
23746
23767
|
];
|
|
@@ -14663,7 +14663,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
14663
14663
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14664
14664
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14665
14665
|
var usageOutputTimingSchema = external_exports.object({
|
|
14666
|
-
version: external_exports.literal(3).optional(),
|
|
14666
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14667
14667
|
requestId: external_exports.string().min(1),
|
|
14668
14668
|
turnId: external_exports.string().min(1).max(1024),
|
|
14669
14669
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -14671,16 +14671,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
14671
14671
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14672
14672
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14673
14673
|
var usageMeasurementSchema = external_exports.object({
|
|
14674
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14674
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14675
14675
|
value: finiteNonNegativeNumberSchema,
|
|
14676
14676
|
turnId: external_exports.string().min(1).max(1024),
|
|
14677
14677
|
at: nonNegativeSafeIntegerSchema
|
|
14678
14678
|
}).strict();
|
|
14679
14679
|
var usageMeasurementsSchema = external_exports.object({
|
|
14680
|
-
//
|
|
14681
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
14680
|
+
// Older 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 === 4)).optional(),
|
|
14682
14682
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14683
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
14683
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
14684
14684
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14685
14685
|
}).strict();
|
|
14686
14686
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15146,6 +15146,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15146
15146
|
cursor: clientChannelCursorSchema,
|
|
15147
15147
|
cwd: external_exports.string().optional()
|
|
15148
15148
|
}),
|
|
15149
|
+
external_exports.object({
|
|
15150
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15151
|
+
cursor: clientChannelCursorSchema,
|
|
15152
|
+
harnessId: external_exports.string().min(1)
|
|
15153
|
+
}),
|
|
15149
15154
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15150
15155
|
external_exports.object({
|
|
15151
15156
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15217,6 +15222,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15217
15222
|
var clientTurnSchema = external_exports.object({
|
|
15218
15223
|
id: external_exports.string().min(1),
|
|
15219
15224
|
status: external_exports.string().min(1),
|
|
15225
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15226
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15220
15227
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15221
15228
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15222
15229
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16433,6 +16440,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16433
16440
|
"completed",
|
|
16434
16441
|
"failed",
|
|
16435
16442
|
"interrupted",
|
|
16443
|
+
"needsInput",
|
|
16436
16444
|
"timedOut",
|
|
16437
16445
|
"unreadable",
|
|
16438
16446
|
"notFound"
|
|
@@ -16479,13 +16487,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16479
16487
|
var thread = { ...target, threadId: identity };
|
|
16480
16488
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16481
16489
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16490
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16482
16491
|
external_exports.strictObject({
|
|
16483
16492
|
kind: external_exports.literal("list"),
|
|
16484
16493
|
...target,
|
|
16485
16494
|
cursor: external_exports.string().nullable(),
|
|
16486
16495
|
archived: external_exports.boolean()
|
|
16487
16496
|
}),
|
|
16488
|
-
external_exports.strictObject({
|
|
16497
|
+
external_exports.strictObject({
|
|
16498
|
+
kind: external_exports.literal("read"),
|
|
16499
|
+
...thread,
|
|
16500
|
+
page: external_exports.strictObject({
|
|
16501
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16502
|
+
epoch: identity.optional(),
|
|
16503
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16504
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16505
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16506
|
+
message: "A history continuation requires its connection epoch"
|
|
16507
|
+
}).optional()
|
|
16508
|
+
}),
|
|
16489
16509
|
external_exports.strictObject({
|
|
16490
16510
|
kind: external_exports.literal("configure"),
|
|
16491
16511
|
...thread,
|
|
@@ -16881,6 +16901,7 @@ var requestTokenFields = [
|
|
|
16881
16901
|
"cacheWrite1hInputTokens",
|
|
16882
16902
|
"outputTokens",
|
|
16883
16903
|
"reasoningOutputTokens",
|
|
16904
|
+
"timedOutputTokens",
|
|
16884
16905
|
"startedAtMs",
|
|
16885
16906
|
"completedAtMs"
|
|
16886
16907
|
];
|
|
@@ -16933,6 +16954,14 @@ function parseHostUsageRequest(value) {
|
|
|
16933
16954
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
16934
16955
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
16935
16956
|
}
|
|
16957
|
+
if (request.timedOutputTokens !== void 0) {
|
|
16958
|
+
if (request.startedAtMs === void 0) {
|
|
16959
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
16960
|
+
}
|
|
16961
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
16962
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
16963
|
+
}
|
|
16964
|
+
}
|
|
16936
16965
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
16937
16966
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
16938
16967
|
}
|