@karlorz/codexhost-cli-linux-x64 0.20.0-1 → 0.21.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +26 -6
- package/app/console-web.js +35 -8
- package/app/cpa-live-voice-hook.js +31 -8
- package/app/desktop-controller.mjs +168 -52
- package/app/host-runtime.mjs +21746 -15276
- package/app/overlay-voice-bootstrap.js +1 -1
- 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 +64 -8
- package/app/voice-qualification.json +13 -13
- package/app/web/assets/{index-D6-hvggd.css → index-DJW4bmyx.css} +1 -1
- package/app/web/assets/{index-B5OfOGb8.js → index-DLXdvkWR.js} +63 -63
- package/app/web/codexhost-settings.js +35 -8
- 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 +57 -57
- 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 +16 -16
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +2 -2
- package/app/web-modules/server.mjs +1017 -672
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -15430,7 +15430,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
15430
15430
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15431
15431
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15432
15432
|
var usageOutputTimingSchema = external_exports.object({
|
|
15433
|
-
version: external_exports.literal(3).optional(),
|
|
15433
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15434
15434
|
requestId: external_exports.string().min(1),
|
|
15435
15435
|
turnId: external_exports.string().min(1).max(1024),
|
|
15436
15436
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15438,16 +15438,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15438
15438
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15439
15439
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15440
15440
|
var usageMeasurementSchema = external_exports.object({
|
|
15441
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15441
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15442
15442
|
value: finiteNonNegativeNumberSchema,
|
|
15443
15443
|
turnId: external_exports.string().min(1).max(1024),
|
|
15444
15444
|
at: nonNegativeSafeIntegerSchema
|
|
15445
15445
|
}).strict();
|
|
15446
15446
|
var usageMeasurementsSchema = external_exports.object({
|
|
15447
|
-
//
|
|
15448
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15447
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15448
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15449
15449
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15450
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15450
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15451
15451
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15452
15452
|
}).strict();
|
|
15453
15453
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text4) => text4.length <= maximum));
|
|
@@ -15961,6 +15961,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15961
15961
|
cursor: clientChannelCursorSchema,
|
|
15962
15962
|
cwd: external_exports.string().optional()
|
|
15963
15963
|
}),
|
|
15964
|
+
external_exports.object({
|
|
15965
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15966
|
+
cursor: clientChannelCursorSchema,
|
|
15967
|
+
harnessId: external_exports.string().min(1)
|
|
15968
|
+
}),
|
|
15964
15969
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15965
15970
|
external_exports.object({
|
|
15966
15971
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -16032,6 +16037,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
16032
16037
|
var clientTurnSchema = external_exports.object({
|
|
16033
16038
|
id: external_exports.string().min(1),
|
|
16034
16039
|
status: external_exports.string().min(1),
|
|
16040
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
16041
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
16035
16042
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
16036
16043
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
16037
16044
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -17297,6 +17304,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
17297
17304
|
"completed",
|
|
17298
17305
|
"failed",
|
|
17299
17306
|
"interrupted",
|
|
17307
|
+
"needsInput",
|
|
17300
17308
|
"timedOut",
|
|
17301
17309
|
"unreadable",
|
|
17302
17310
|
"notFound"
|
|
@@ -17343,13 +17351,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
17343
17351
|
var thread = { ...target, threadId: identity };
|
|
17344
17352
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
17345
17353
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
17354
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
17346
17355
|
external_exports.strictObject({
|
|
17347
17356
|
kind: external_exports.literal("list"),
|
|
17348
17357
|
...target,
|
|
17349
17358
|
cursor: external_exports.string().nullable(),
|
|
17350
17359
|
archived: external_exports.boolean()
|
|
17351
17360
|
}),
|
|
17352
|
-
external_exports.strictObject({
|
|
17361
|
+
external_exports.strictObject({
|
|
17362
|
+
kind: external_exports.literal("read"),
|
|
17363
|
+
...thread,
|
|
17364
|
+
page: external_exports.strictObject({
|
|
17365
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
17366
|
+
epoch: identity.optional(),
|
|
17367
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
17368
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
17369
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
17370
|
+
message: "A history continuation requires its connection epoch"
|
|
17371
|
+
}).optional()
|
|
17372
|
+
}),
|
|
17353
17373
|
external_exports.strictObject({
|
|
17354
17374
|
kind: external_exports.literal("configure"),
|
|
17355
17375
|
...thread,
|
|
@@ -17754,6 +17774,7 @@ var requestTokenFields = [
|
|
|
17754
17774
|
"cacheWrite1hInputTokens",
|
|
17755
17775
|
"outputTokens",
|
|
17756
17776
|
"reasoningOutputTokens",
|
|
17777
|
+
"timedOutputTokens",
|
|
17757
17778
|
"startedAtMs",
|
|
17758
17779
|
"completedAtMs"
|
|
17759
17780
|
];
|
|
@@ -17806,6 +17827,14 @@ function parseHostUsageRequest(value) {
|
|
|
17806
17827
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
17807
17828
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
17808
17829
|
}
|
|
17830
|
+
if (request.timedOutputTokens !== void 0) {
|
|
17831
|
+
if (request.startedAtMs === void 0) {
|
|
17832
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
17833
|
+
}
|
|
17834
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
17835
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
17836
|
+
}
|
|
17837
|
+
}
|
|
17809
17838
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
17810
17839
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
17811
17840
|
}
|
|
@@ -28019,7 +28019,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
28019
28019
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
28020
28020
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
28021
28021
|
var usageOutputTimingSchema = external_exports.object({
|
|
28022
|
-
version: external_exports.literal(3).optional(),
|
|
28022
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
28023
28023
|
requestId: external_exports.string().min(1),
|
|
28024
28024
|
turnId: external_exports.string().min(1).max(1024),
|
|
28025
28025
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -28027,16 +28027,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
28027
28027
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
28028
28028
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
28029
28029
|
var usageMeasurementSchema = external_exports.object({
|
|
28030
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
28030
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
28031
28031
|
value: finiteNonNegativeNumberSchema,
|
|
28032
28032
|
turnId: external_exports.string().min(1).max(1024),
|
|
28033
28033
|
at: nonNegativeSafeIntegerSchema
|
|
28034
28034
|
}).strict();
|
|
28035
28035
|
var usageMeasurementsSchema = external_exports.object({
|
|
28036
|
-
//
|
|
28037
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
28036
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
28037
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
28038
28038
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
28039
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
28039
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
28040
28040
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
28041
28041
|
}).strict();
|
|
28042
28042
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -28550,6 +28550,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
28550
28550
|
cursor: clientChannelCursorSchema,
|
|
28551
28551
|
cwd: external_exports.string().optional()
|
|
28552
28552
|
}),
|
|
28553
|
+
external_exports.object({
|
|
28554
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
28555
|
+
cursor: clientChannelCursorSchema,
|
|
28556
|
+
harnessId: external_exports.string().min(1)
|
|
28557
|
+
}),
|
|
28553
28558
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
28554
28559
|
external_exports.object({
|
|
28555
28560
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -28621,6 +28626,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
28621
28626
|
var clientTurnSchema = external_exports.object({
|
|
28622
28627
|
id: external_exports.string().min(1),
|
|
28623
28628
|
status: external_exports.string().min(1),
|
|
28629
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
28630
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
28624
28631
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
28625
28632
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
28626
28633
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -29886,6 +29893,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
29886
29893
|
"completed",
|
|
29887
29894
|
"failed",
|
|
29888
29895
|
"interrupted",
|
|
29896
|
+
"needsInput",
|
|
29889
29897
|
"timedOut",
|
|
29890
29898
|
"unreadable",
|
|
29891
29899
|
"notFound"
|
|
@@ -29932,13 +29940,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
29932
29940
|
var thread = { ...target, threadId: identity };
|
|
29933
29941
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29934
29942
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29943
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
29935
29944
|
external_exports.strictObject({
|
|
29936
29945
|
kind: external_exports.literal("list"),
|
|
29937
29946
|
...target,
|
|
29938
29947
|
cursor: external_exports.string().nullable(),
|
|
29939
29948
|
archived: external_exports.boolean()
|
|
29940
29949
|
}),
|
|
29941
|
-
external_exports.strictObject({
|
|
29950
|
+
external_exports.strictObject({
|
|
29951
|
+
kind: external_exports.literal("read"),
|
|
29952
|
+
...thread,
|
|
29953
|
+
page: external_exports.strictObject({
|
|
29954
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
29955
|
+
epoch: identity.optional(),
|
|
29956
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
29957
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
29958
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
29959
|
+
message: "A history continuation requires its connection epoch"
|
|
29960
|
+
}).optional()
|
|
29961
|
+
}),
|
|
29942
29962
|
external_exports.strictObject({
|
|
29943
29963
|
kind: external_exports.literal("configure"),
|
|
29944
29964
|
...thread,
|
|
@@ -30127,12 +30147,14 @@ function discoverySpec(variant) {
|
|
|
30127
30147
|
installRoots: {
|
|
30128
30148
|
posix: [
|
|
30129
30149
|
"~/.local/bin",
|
|
30150
|
+
`~/${configDirectory}/bin/${command}`,
|
|
30130
30151
|
`~/${configDirectory}/bin`,
|
|
30131
30152
|
VERSION_MANAGER_ROOTS,
|
|
30132
30153
|
"/usr/local/bin",
|
|
30133
30154
|
"/opt/homebrew/bin"
|
|
30134
30155
|
],
|
|
30135
30156
|
windows: [
|
|
30157
|
+
`~/${configDirectory}/bin/${command}`,
|
|
30136
30158
|
`\${LOCALAPPDATA}/Programs/${productName}`,
|
|
30137
30159
|
`\${LOCALAPPDATA}/${productName}`,
|
|
30138
30160
|
`~/${configDirectory}/bin`,
|
|
@@ -30619,6 +30641,7 @@ var requestTokenFields = [
|
|
|
30619
30641
|
"cacheWrite1hInputTokens",
|
|
30620
30642
|
"outputTokens",
|
|
30621
30643
|
"reasoningOutputTokens",
|
|
30644
|
+
"timedOutputTokens",
|
|
30622
30645
|
"startedAtMs",
|
|
30623
30646
|
"completedAtMs"
|
|
30624
30647
|
];
|
|
@@ -55899,6 +55922,19 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
55899
55922
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
55900
55923
|
};
|
|
55901
55924
|
const output = await run(["update", "--check"]);
|
|
55925
|
+
if (/unable to determine installation method/i.test(output))
|
|
55926
|
+
return {
|
|
55927
|
+
currentVersion,
|
|
55928
|
+
latestVersion: "Unknown",
|
|
55929
|
+
updateAvailable: false,
|
|
55930
|
+
canUpdate: false,
|
|
55931
|
+
messageCode: "qoder-check-unavailable",
|
|
55932
|
+
notice: {
|
|
55933
|
+
en: "This Qoder CLI cannot determine how it was installed and cannot check for updates. Use the installer or application that installed it.",
|
|
55934
|
+
"zh-CN": "当前 Qoder CLI 无法识别自身的安装方式,不能检查更新。请使用安装它的安装程序或应用进行更新。"
|
|
55935
|
+
},
|
|
55936
|
+
message: "This Qoder CLI cannot determine how it was installed and cannot check for updates."
|
|
55937
|
+
};
|
|
55902
55938
|
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
55903
55939
|
if (available?.[1])
|
|
55904
55940
|
return {
|
|
@@ -27616,7 +27616,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
27616
27616
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27617
27617
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27618
27618
|
var usageOutputTimingSchema = external_exports.object({
|
|
27619
|
-
version: external_exports.literal(3).optional(),
|
|
27619
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27620
27620
|
requestId: external_exports.string().min(1),
|
|
27621
27621
|
turnId: external_exports.string().min(1).max(1024),
|
|
27622
27622
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -27624,16 +27624,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
27624
27624
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
27625
27625
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
27626
27626
|
var usageMeasurementSchema = external_exports.object({
|
|
27627
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
27627
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
27628
27628
|
value: finiteNonNegativeNumberSchema,
|
|
27629
27629
|
turnId: external_exports.string().min(1).max(1024),
|
|
27630
27630
|
at: nonNegativeSafeIntegerSchema
|
|
27631
27631
|
}).strict();
|
|
27632
27632
|
var usageMeasurementsSchema = external_exports.object({
|
|
27633
|
-
//
|
|
27634
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
27633
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
27634
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
27635
27635
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
27636
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
27636
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
27637
27637
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
27638
27638
|
}).strict();
|
|
27639
27639
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -28147,6 +28147,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
28147
28147
|
cursor: clientChannelCursorSchema,
|
|
28148
28148
|
cwd: external_exports.string().optional()
|
|
28149
28149
|
}),
|
|
28150
|
+
external_exports.object({
|
|
28151
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
28152
|
+
cursor: clientChannelCursorSchema,
|
|
28153
|
+
harnessId: external_exports.string().min(1)
|
|
28154
|
+
}),
|
|
28150
28155
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
28151
28156
|
external_exports.object({
|
|
28152
28157
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -28218,6 +28223,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
28218
28223
|
var clientTurnSchema = external_exports.object({
|
|
28219
28224
|
id: external_exports.string().min(1),
|
|
28220
28225
|
status: external_exports.string().min(1),
|
|
28226
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
28227
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
28221
28228
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
28222
28229
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
28223
28230
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -29483,6 +29490,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
29483
29490
|
"completed",
|
|
29484
29491
|
"failed",
|
|
29485
29492
|
"interrupted",
|
|
29493
|
+
"needsInput",
|
|
29486
29494
|
"timedOut",
|
|
29487
29495
|
"unreadable",
|
|
29488
29496
|
"notFound"
|
|
@@ -29529,13 +29537,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
29529
29537
|
var thread = { ...target, threadId: identity };
|
|
29530
29538
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29531
29539
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29540
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
29532
29541
|
external_exports.strictObject({
|
|
29533
29542
|
kind: external_exports.literal("list"),
|
|
29534
29543
|
...target,
|
|
29535
29544
|
cursor: external_exports.string().nullable(),
|
|
29536
29545
|
archived: external_exports.boolean()
|
|
29537
29546
|
}),
|
|
29538
|
-
external_exports.strictObject({
|
|
29547
|
+
external_exports.strictObject({
|
|
29548
|
+
kind: external_exports.literal("read"),
|
|
29549
|
+
...thread,
|
|
29550
|
+
page: external_exports.strictObject({
|
|
29551
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
29552
|
+
epoch: identity.optional(),
|
|
29553
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
29554
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
29555
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
29556
|
+
message: "A history continuation requires its connection epoch"
|
|
29557
|
+
}).optional()
|
|
29558
|
+
}),
|
|
29539
29559
|
external_exports.strictObject({
|
|
29540
29560
|
kind: external_exports.literal("configure"),
|
|
29541
29561
|
...thread,
|
|
@@ -30129,12 +30149,14 @@ function discoverySpec(variant) {
|
|
|
30129
30149
|
installRoots: {
|
|
30130
30150
|
posix: [
|
|
30131
30151
|
"~/.local/bin",
|
|
30152
|
+
`~/${configDirectory}/bin/${command}`,
|
|
30132
30153
|
`~/${configDirectory}/bin`,
|
|
30133
30154
|
VERSION_MANAGER_ROOTS,
|
|
30134
30155
|
"/usr/local/bin",
|
|
30135
30156
|
"/opt/homebrew/bin"
|
|
30136
30157
|
],
|
|
30137
30158
|
windows: [
|
|
30159
|
+
`~/${configDirectory}/bin/${command}`,
|
|
30138
30160
|
`\${LOCALAPPDATA}/Programs/${productName}`,
|
|
30139
30161
|
`\${LOCALAPPDATA}/${productName}`,
|
|
30140
30162
|
`~/${configDirectory}/bin`,
|
|
@@ -30621,6 +30643,7 @@ var requestTokenFields = [
|
|
|
30621
30643
|
"cacheWrite1hInputTokens",
|
|
30622
30644
|
"outputTokens",
|
|
30623
30645
|
"reasoningOutputTokens",
|
|
30646
|
+
"timedOutputTokens",
|
|
30624
30647
|
"startedAtMs",
|
|
30625
30648
|
"completedAtMs"
|
|
30626
30649
|
];
|
|
@@ -55901,6 +55924,19 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
55901
55924
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
55902
55925
|
};
|
|
55903
55926
|
const output = await run(["update", "--check"]);
|
|
55927
|
+
if (/unable to determine installation method/i.test(output))
|
|
55928
|
+
return {
|
|
55929
|
+
currentVersion,
|
|
55930
|
+
latestVersion: "Unknown",
|
|
55931
|
+
updateAvailable: false,
|
|
55932
|
+
canUpdate: false,
|
|
55933
|
+
messageCode: "qoder-check-unavailable",
|
|
55934
|
+
notice: {
|
|
55935
|
+
en: "This Qoder CLI cannot determine how it was installed and cannot check for updates. Use the installer or application that installed it.",
|
|
55936
|
+
"zh-CN": "当前 Qoder CLI 无法识别自身的安装方式,不能检查更新。请使用安装它的安装程序或应用进行更新。"
|
|
55937
|
+
},
|
|
55938
|
+
message: "This Qoder CLI cannot determine how it was installed and cannot check for updates."
|
|
55939
|
+
};
|
|
55904
55940
|
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
55905
55941
|
if (available?.[1])
|
|
55906
55942
|
return {
|
|
@@ -21921,7 +21921,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
21921
21921
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
21922
21922
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
21923
21923
|
var usageOutputTimingSchema = external_exports.object({
|
|
21924
|
-
version: external_exports.literal(3).optional(),
|
|
21924
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
21925
21925
|
requestId: external_exports.string().min(1),
|
|
21926
21926
|
turnId: external_exports.string().min(1).max(1024),
|
|
21927
21927
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -21929,16 +21929,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
21929
21929
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
21930
21930
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
21931
21931
|
var usageMeasurementSchema = external_exports.object({
|
|
21932
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
21932
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
21933
21933
|
value: finiteNonNegativeNumberSchema,
|
|
21934
21934
|
turnId: external_exports.string().min(1).max(1024),
|
|
21935
21935
|
at: nonNegativeSafeIntegerSchema
|
|
21936
21936
|
}).strict();
|
|
21937
21937
|
var usageMeasurementsSchema = external_exports.object({
|
|
21938
|
-
//
|
|
21939
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
21938
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
21939
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
21940
21940
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
21941
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
21941
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
21942
21942
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
21943
21943
|
}).strict();
|
|
21944
21944
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -22452,6 +22452,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
22452
22452
|
cursor: clientChannelCursorSchema,
|
|
22453
22453
|
cwd: external_exports.string().optional()
|
|
22454
22454
|
}),
|
|
22455
|
+
external_exports.object({
|
|
22456
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
22457
|
+
cursor: clientChannelCursorSchema,
|
|
22458
|
+
harnessId: external_exports.string().min(1)
|
|
22459
|
+
}),
|
|
22455
22460
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
22456
22461
|
external_exports.object({
|
|
22457
22462
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -22523,6 +22528,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
22523
22528
|
var clientTurnSchema = external_exports.object({
|
|
22524
22529
|
id: external_exports.string().min(1),
|
|
22525
22530
|
status: external_exports.string().min(1),
|
|
22531
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
22532
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
22526
22533
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
22527
22534
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
22528
22535
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -23786,6 +23793,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
23786
23793
|
"completed",
|
|
23787
23794
|
"failed",
|
|
23788
23795
|
"interrupted",
|
|
23796
|
+
"needsInput",
|
|
23789
23797
|
"timedOut",
|
|
23790
23798
|
"unreadable",
|
|
23791
23799
|
"notFound"
|
|
@@ -23832,13 +23840,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
23832
23840
|
var thread = { ...target, threadId: identity };
|
|
23833
23841
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
23834
23842
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
23843
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
23835
23844
|
external_exports.strictObject({
|
|
23836
23845
|
kind: external_exports.literal("list"),
|
|
23837
23846
|
...target,
|
|
23838
23847
|
cursor: external_exports.string().nullable(),
|
|
23839
23848
|
archived: external_exports.boolean()
|
|
23840
23849
|
}),
|
|
23841
|
-
external_exports.strictObject({
|
|
23850
|
+
external_exports.strictObject({
|
|
23851
|
+
kind: external_exports.literal("read"),
|
|
23852
|
+
...thread,
|
|
23853
|
+
page: external_exports.strictObject({
|
|
23854
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
23855
|
+
epoch: identity.optional(),
|
|
23856
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
23857
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
23858
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
23859
|
+
message: "A history continuation requires its connection epoch"
|
|
23860
|
+
}).optional()
|
|
23861
|
+
}),
|
|
23842
23862
|
external_exports.strictObject({
|
|
23843
23863
|
kind: external_exports.literal("configure"),
|
|
23844
23864
|
...thread,
|
|
@@ -24242,6 +24262,7 @@ var requestTokenFields = [
|
|
|
24242
24262
|
"cacheWrite1hInputTokens",
|
|
24243
24263
|
"outputTokens",
|
|
24244
24264
|
"reasoningOutputTokens",
|
|
24265
|
+
"timedOutputTokens",
|
|
24245
24266
|
"startedAtMs",
|
|
24246
24267
|
"completedAtMs"
|
|
24247
24268
|
];
|
|
@@ -15033,7 +15033,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
15033
15033
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15034
15034
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15035
15035
|
var usageOutputTimingSchema = external_exports.object({
|
|
15036
|
-
version: external_exports.literal(3).optional(),
|
|
15036
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15037
15037
|
requestId: external_exports.string().min(1),
|
|
15038
15038
|
turnId: external_exports.string().min(1).max(1024),
|
|
15039
15039
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15041,16 +15041,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15041
15041
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15042
15042
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15043
15043
|
var usageMeasurementSchema = external_exports.object({
|
|
15044
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15044
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15045
15045
|
value: finiteNonNegativeNumberSchema,
|
|
15046
15046
|
turnId: external_exports.string().min(1).max(1024),
|
|
15047
15047
|
at: nonNegativeSafeIntegerSchema
|
|
15048
15048
|
}).strict();
|
|
15049
15049
|
var usageMeasurementsSchema = external_exports.object({
|
|
15050
|
-
//
|
|
15051
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15050
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15051
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15052
15052
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15053
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15053
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15054
15054
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15055
15055
|
}).strict();
|
|
15056
15056
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15564,6 +15564,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15564
15564
|
cursor: clientChannelCursorSchema,
|
|
15565
15565
|
cwd: external_exports.string().optional()
|
|
15566
15566
|
}),
|
|
15567
|
+
external_exports.object({
|
|
15568
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15569
|
+
cursor: clientChannelCursorSchema,
|
|
15570
|
+
harnessId: external_exports.string().min(1)
|
|
15571
|
+
}),
|
|
15567
15572
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15568
15573
|
external_exports.object({
|
|
15569
15574
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15635,6 +15640,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15635
15640
|
var clientTurnSchema = external_exports.object({
|
|
15636
15641
|
id: external_exports.string().min(1),
|
|
15637
15642
|
status: external_exports.string().min(1),
|
|
15643
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15644
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15638
15645
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15639
15646
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15640
15647
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16900,6 +16907,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16900
16907
|
"completed",
|
|
16901
16908
|
"failed",
|
|
16902
16909
|
"interrupted",
|
|
16910
|
+
"needsInput",
|
|
16903
16911
|
"timedOut",
|
|
16904
16912
|
"unreadable",
|
|
16905
16913
|
"notFound"
|
|
@@ -16946,13 +16954,25 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16946
16954
|
var thread = { ...target, threadId: identity };
|
|
16947
16955
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16948
16956
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16957
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16949
16958
|
external_exports.strictObject({
|
|
16950
16959
|
kind: external_exports.literal("list"),
|
|
16951
16960
|
...target,
|
|
16952
16961
|
cursor: external_exports.string().nullable(),
|
|
16953
16962
|
archived: external_exports.boolean()
|
|
16954
16963
|
}),
|
|
16955
|
-
external_exports.strictObject({
|
|
16964
|
+
external_exports.strictObject({
|
|
16965
|
+
kind: external_exports.literal("read"),
|
|
16966
|
+
...thread,
|
|
16967
|
+
page: external_exports.strictObject({
|
|
16968
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16969
|
+
epoch: identity.optional(),
|
|
16970
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16971
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16972
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16973
|
+
message: "A history continuation requires its connection epoch"
|
|
16974
|
+
}).optional()
|
|
16975
|
+
}),
|
|
16956
16976
|
external_exports.strictObject({
|
|
16957
16977
|
kind: external_exports.literal("configure"),
|
|
16958
16978
|
...thread,
|
|
@@ -17382,6 +17402,7 @@ var requestTokenFields = [
|
|
|
17382
17402
|
"cacheWrite1hInputTokens",
|
|
17383
17403
|
"outputTokens",
|
|
17384
17404
|
"reasoningOutputTokens",
|
|
17405
|
+
"timedOutputTokens",
|
|
17385
17406
|
"startedAtMs",
|
|
17386
17407
|
"completedAtMs"
|
|
17387
17408
|
];
|
|
@@ -17434,6 +17455,14 @@ function parseHostUsageRequest(value) {
|
|
|
17434
17455
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
17435
17456
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
17436
17457
|
}
|
|
17458
|
+
if (request.timedOutputTokens !== void 0) {
|
|
17459
|
+
if (request.startedAtMs === void 0) {
|
|
17460
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
17461
|
+
}
|
|
17462
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
17463
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
17464
|
+
}
|
|
17465
|
+
}
|
|
17437
17466
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
17438
17467
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
17439
17468
|
}
|