@codexhost/cli-linux-arm64 0.20.0 → 0.22.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 +27 -6
- package/app/console-web.js +35 -7
- package/app/desktop-controller.mjs +166 -52
- package/app/host-runtime.mjs +35350 -28799
- package/app/plugins/antigravity/assets/icon.svg +1 -1
- package/app/plugins/antigravity/plugin.mjs +411 -231
- package/app/plugins/claude-code/plugin.mjs +538 -109
- package/app/plugins/codebuddy/plugin.mjs +36 -6
- package/app/plugins/codex-usage/plugin.mjs +36 -6
- package/app/plugins/copilot/plugin.mjs +28 -6
- package/app/plugins/cursor-cli/plugin.mjs +28 -6
- package/app/plugins/deepseek-harness/plugin.mjs +53 -11
- package/app/plugins/devin/plugin.mjs +28 -6
- package/app/plugins/grok/plugin.mjs +255 -192
- package/app/plugins/hermes/plugin.mjs +28 -6
- package/app/plugins/kimi-code/plugin.mjs +53 -16
- package/app/plugins/kiro-cli/plugin.mjs +28 -6
- package/app/plugins/omp/plugin.mjs +143 -28
- package/app/plugins/opencode/plugin.mjs +54 -15
- package/app/plugins/pi/plugin.mjs +154 -29
- package/app/plugins/qoder/plugin.mjs +43 -6
- package/app/plugins/qoder-cn/plugin.mjs +43 -6
- package/app/plugins/qwen-code/plugin.mjs +28 -6
- package/app/plugins/workbuddy/plugin.mjs +36 -6
- package/app/plugins/zcode/plugin.mjs +36 -6
- package/app/renderer-extension.js +27 -6
- package/app/web/assets/index-CN4a4sj0.js +201 -0
- package/app/web/assets/{index-D6-hvggd.css → index-DJW4bmyx.css} +1 -1
- package/app/web/codexhost-settings.js +35 -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 +7 -7
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +9 -9
- 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 +1123 -722
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-D85gPBbQ.js +0 -201
|
@@ -15139,7 +15139,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
15139
15139
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15140
15140
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15141
15141
|
var usageOutputTimingSchema = external_exports.object({
|
|
15142
|
-
version: external_exports.literal(3).optional(),
|
|
15142
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15143
15143
|
requestId: external_exports.string().min(1),
|
|
15144
15144
|
turnId: external_exports.string().min(1).max(1024),
|
|
15145
15145
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15147,16 +15147,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15147
15147
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15148
15148
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15149
15149
|
var usageMeasurementSchema = external_exports.object({
|
|
15150
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15150
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15151
15151
|
value: finiteNonNegativeNumberSchema,
|
|
15152
15152
|
turnId: external_exports.string().min(1).max(1024),
|
|
15153
15153
|
at: nonNegativeSafeIntegerSchema
|
|
15154
15154
|
}).strict();
|
|
15155
15155
|
var usageMeasurementsSchema = external_exports.object({
|
|
15156
|
-
//
|
|
15157
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15156
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15157
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15158
15158
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15159
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15159
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15160
15160
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15161
15161
|
}).strict();
|
|
15162
15162
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15622,6 +15622,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15622
15622
|
cursor: clientChannelCursorSchema,
|
|
15623
15623
|
cwd: external_exports.string().optional()
|
|
15624
15624
|
}),
|
|
15625
|
+
external_exports.object({
|
|
15626
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15627
|
+
cursor: clientChannelCursorSchema,
|
|
15628
|
+
harnessId: external_exports.string().min(1)
|
|
15629
|
+
}),
|
|
15625
15630
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15626
15631
|
external_exports.object({
|
|
15627
15632
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15693,6 +15698,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15693
15698
|
var clientTurnSchema = external_exports.object({
|
|
15694
15699
|
id: external_exports.string().min(1),
|
|
15695
15700
|
status: external_exports.string().min(1),
|
|
15701
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15702
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15696
15703
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15697
15704
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15698
15705
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16909,6 +16916,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16909
16916
|
"completed",
|
|
16910
16917
|
"failed",
|
|
16911
16918
|
"interrupted",
|
|
16919
|
+
"needsInput",
|
|
16912
16920
|
"timedOut",
|
|
16913
16921
|
"unreadable",
|
|
16914
16922
|
"notFound"
|
|
@@ -16955,13 +16963,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16955
16963
|
var thread = { ...target, threadId: identity };
|
|
16956
16964
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16957
16965
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16966
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16958
16967
|
external_exports.strictObject({
|
|
16959
16968
|
kind: external_exports.literal("list"),
|
|
16960
16969
|
...target,
|
|
16961
16970
|
cursor: external_exports.string().nullable(),
|
|
16962
16971
|
archived: external_exports.boolean()
|
|
16963
16972
|
}),
|
|
16964
|
-
external_exports.strictObject({
|
|
16973
|
+
external_exports.strictObject({
|
|
16974
|
+
kind: external_exports.literal("read"),
|
|
16975
|
+
...thread,
|
|
16976
|
+
page: external_exports.strictObject({
|
|
16977
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16978
|
+
epoch: identity.optional(),
|
|
16979
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16980
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16981
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16982
|
+
message: "A history continuation requires its connection epoch"
|
|
16983
|
+
}).optional()
|
|
16984
|
+
}),
|
|
16985
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16965
16986
|
external_exports.strictObject({
|
|
16966
16987
|
kind: external_exports.literal("configure"),
|
|
16967
16988
|
...thread,
|
|
@@ -17357,6 +17378,7 @@ var requestTokenFields = [
|
|
|
17357
17378
|
"cacheWrite1hInputTokens",
|
|
17358
17379
|
"outputTokens",
|
|
17359
17380
|
"reasoningOutputTokens",
|
|
17381
|
+
"timedOutputTokens",
|
|
17360
17382
|
"startedAtMs",
|
|
17361
17383
|
"completedAtMs"
|
|
17362
17384
|
];
|
|
@@ -17409,6 +17431,14 @@ function parseHostUsageRequest(value) {
|
|
|
17409
17431
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
17410
17432
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
17411
17433
|
}
|
|
17434
|
+
if (request.timedOutputTokens !== void 0) {
|
|
17435
|
+
if (request.startedAtMs === void 0) {
|
|
17436
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
17437
|
+
}
|
|
17438
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
17439
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
17440
|
+
}
|
|
17441
|
+
}
|
|
17412
17442
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
17413
17443
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
17414
17444
|
}
|
|
@@ -14657,7 +14657,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
14657
14657
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14658
14658
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14659
14659
|
var usageOutputTimingSchema = external_exports.object({
|
|
14660
|
-
version: external_exports.literal(3).optional(),
|
|
14660
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14661
14661
|
requestId: external_exports.string().min(1),
|
|
14662
14662
|
turnId: external_exports.string().min(1).max(1024),
|
|
14663
14663
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -14665,16 +14665,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
14665
14665
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14666
14666
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14667
14667
|
var usageMeasurementSchema = external_exports.object({
|
|
14668
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14668
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14669
14669
|
value: finiteNonNegativeNumberSchema,
|
|
14670
14670
|
turnId: external_exports.string().min(1).max(1024),
|
|
14671
14671
|
at: nonNegativeSafeIntegerSchema
|
|
14672
14672
|
}).strict();
|
|
14673
14673
|
var usageMeasurementsSchema = external_exports.object({
|
|
14674
|
-
//
|
|
14675
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
14674
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
14675
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
14676
14676
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14677
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
14677
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
14678
14678
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14679
14679
|
}).strict();
|
|
14680
14680
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15140,6 +15140,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15140
15140
|
cursor: clientChannelCursorSchema,
|
|
15141
15141
|
cwd: external_exports.string().optional()
|
|
15142
15142
|
}),
|
|
15143
|
+
external_exports.object({
|
|
15144
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15145
|
+
cursor: clientChannelCursorSchema,
|
|
15146
|
+
harnessId: external_exports.string().min(1)
|
|
15147
|
+
}),
|
|
15143
15148
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15144
15149
|
external_exports.object({
|
|
15145
15150
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15211,6 +15216,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15211
15216
|
var clientTurnSchema = external_exports.object({
|
|
15212
15217
|
id: external_exports.string().min(1),
|
|
15213
15218
|
status: external_exports.string().min(1),
|
|
15219
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15220
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15214
15221
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15215
15222
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15216
15223
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16422,6 +16429,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16422
16429
|
"completed",
|
|
16423
16430
|
"failed",
|
|
16424
16431
|
"interrupted",
|
|
16432
|
+
"needsInput",
|
|
16425
16433
|
"timedOut",
|
|
16426
16434
|
"unreadable",
|
|
16427
16435
|
"notFound"
|
|
@@ -16468,13 +16476,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16468
16476
|
var thread = { ...target, threadId: identity };
|
|
16469
16477
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16470
16478
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16479
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16471
16480
|
external_exports.strictObject({
|
|
16472
16481
|
kind: external_exports.literal("list"),
|
|
16473
16482
|
...target,
|
|
16474
16483
|
cursor: external_exports.string().nullable(),
|
|
16475
16484
|
archived: external_exports.boolean()
|
|
16476
16485
|
}),
|
|
16477
|
-
external_exports.strictObject({
|
|
16486
|
+
external_exports.strictObject({
|
|
16487
|
+
kind: external_exports.literal("read"),
|
|
16488
|
+
...thread,
|
|
16489
|
+
page: external_exports.strictObject({
|
|
16490
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16491
|
+
epoch: identity.optional(),
|
|
16492
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16493
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16494
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16495
|
+
message: "A history continuation requires its connection epoch"
|
|
16496
|
+
}).optional()
|
|
16497
|
+
}),
|
|
16498
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16478
16499
|
external_exports.strictObject({
|
|
16479
16500
|
kind: external_exports.literal("configure"),
|
|
16480
16501
|
...thread,
|
|
@@ -17774,6 +17795,7 @@ var requestTokenFields = [
|
|
|
17774
17795
|
"cacheWrite1hInputTokens",
|
|
17775
17796
|
"outputTokens",
|
|
17776
17797
|
"reasoningOutputTokens",
|
|
17798
|
+
"timedOutputTokens",
|
|
17777
17799
|
"startedAtMs",
|
|
17778
17800
|
"completedAtMs"
|
|
17779
17801
|
];
|
|
@@ -17826,6 +17848,14 @@ function parseHostUsageRequest(value) {
|
|
|
17826
17848
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
17827
17849
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
17828
17850
|
}
|
|
17851
|
+
if (request.timedOutputTokens !== void 0) {
|
|
17852
|
+
if (request.startedAtMs === void 0) {
|
|
17853
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
17854
|
+
}
|
|
17855
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
17856
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
17857
|
+
}
|
|
17858
|
+
}
|
|
17829
17859
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
17830
17860
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
17831
17861
|
}
|
|
@@ -18714,7 +18714,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
18714
18714
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
18715
18715
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
18716
18716
|
var usageOutputTimingSchema = external_exports.object({
|
|
18717
|
-
version: external_exports.literal(3).optional(),
|
|
18717
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
18718
18718
|
requestId: external_exports.string().min(1),
|
|
18719
18719
|
turnId: external_exports.string().min(1).max(1024),
|
|
18720
18720
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -18722,16 +18722,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
18722
18722
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
18723
18723
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
18724
18724
|
var usageMeasurementSchema = external_exports.object({
|
|
18725
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
18725
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
18726
18726
|
value: finiteNonNegativeNumberSchema,
|
|
18727
18727
|
turnId: external_exports.string().min(1).max(1024),
|
|
18728
18728
|
at: nonNegativeSafeIntegerSchema
|
|
18729
18729
|
}).strict();
|
|
18730
18730
|
var usageMeasurementsSchema = external_exports.object({
|
|
18731
|
-
//
|
|
18732
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
18731
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
18732
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
18733
18733
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
18734
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
18734
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
18735
18735
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
18736
18736
|
}).strict();
|
|
18737
18737
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -19197,6 +19197,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
19197
19197
|
cursor: clientChannelCursorSchema,
|
|
19198
19198
|
cwd: external_exports.string().optional()
|
|
19199
19199
|
}),
|
|
19200
|
+
external_exports.object({
|
|
19201
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
19202
|
+
cursor: clientChannelCursorSchema,
|
|
19203
|
+
harnessId: external_exports.string().min(1)
|
|
19204
|
+
}),
|
|
19200
19205
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
19201
19206
|
external_exports.object({
|
|
19202
19207
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -19268,6 +19273,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
19268
19273
|
var clientTurnSchema = external_exports.object({
|
|
19269
19274
|
id: external_exports.string().min(1),
|
|
19270
19275
|
status: external_exports.string().min(1),
|
|
19276
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
19277
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
19271
19278
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
19272
19279
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
19273
19280
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -20484,6 +20491,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
20484
20491
|
"completed",
|
|
20485
20492
|
"failed",
|
|
20486
20493
|
"interrupted",
|
|
20494
|
+
"needsInput",
|
|
20487
20495
|
"timedOut",
|
|
20488
20496
|
"unreadable",
|
|
20489
20497
|
"notFound"
|
|
@@ -20530,13 +20538,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
20530
20538
|
var thread = { ...target, threadId: identity };
|
|
20531
20539
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
20532
20540
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
20541
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
20533
20542
|
external_exports.strictObject({
|
|
20534
20543
|
kind: external_exports.literal("list"),
|
|
20535
20544
|
...target,
|
|
20536
20545
|
cursor: external_exports.string().nullable(),
|
|
20537
20546
|
archived: external_exports.boolean()
|
|
20538
20547
|
}),
|
|
20539
|
-
external_exports.strictObject({
|
|
20548
|
+
external_exports.strictObject({
|
|
20549
|
+
kind: external_exports.literal("read"),
|
|
20550
|
+
...thread,
|
|
20551
|
+
page: external_exports.strictObject({
|
|
20552
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
20553
|
+
epoch: identity.optional(),
|
|
20554
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
20555
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
20556
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
20557
|
+
message: "A history continuation requires its connection epoch"
|
|
20558
|
+
}).optional()
|
|
20559
|
+
}),
|
|
20560
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
20540
20561
|
external_exports.strictObject({
|
|
20541
20562
|
kind: external_exports.literal("configure"),
|
|
20542
20563
|
...thread,
|
|
@@ -32904,6 +32925,7 @@ var requestTokenFields = [
|
|
|
32904
32925
|
"cacheWrite1hInputTokens",
|
|
32905
32926
|
"outputTokens",
|
|
32906
32927
|
"reasoningOutputTokens",
|
|
32928
|
+
"timedOutputTokens",
|
|
32907
32929
|
"startedAtMs",
|
|
32908
32930
|
"completedAtMs"
|
|
32909
32931
|
];
|
|
@@ -15024,7 +15024,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
15024
15024
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15025
15025
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15026
15026
|
var usageOutputTimingSchema = external_exports.object({
|
|
15027
|
-
version: external_exports.literal(3).optional(),
|
|
15027
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15028
15028
|
requestId: external_exports.string().min(1),
|
|
15029
15029
|
turnId: external_exports.string().min(1).max(1024),
|
|
15030
15030
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15032,16 +15032,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15032
15032
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15033
15033
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15034
15034
|
var usageMeasurementSchema = external_exports.object({
|
|
15035
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15035
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15036
15036
|
value: finiteNonNegativeNumberSchema,
|
|
15037
15037
|
turnId: external_exports.string().min(1).max(1024),
|
|
15038
15038
|
at: nonNegativeSafeIntegerSchema
|
|
15039
15039
|
}).strict();
|
|
15040
15040
|
var usageMeasurementsSchema = external_exports.object({
|
|
15041
|
-
//
|
|
15042
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15041
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15042
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15043
15043
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15044
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15044
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15045
15045
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15046
15046
|
}).strict();
|
|
15047
15047
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15507,6 +15507,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15507
15507
|
cursor: clientChannelCursorSchema,
|
|
15508
15508
|
cwd: external_exports.string().optional()
|
|
15509
15509
|
}),
|
|
15510
|
+
external_exports.object({
|
|
15511
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15512
|
+
cursor: clientChannelCursorSchema,
|
|
15513
|
+
harnessId: external_exports.string().min(1)
|
|
15514
|
+
}),
|
|
15510
15515
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15511
15516
|
external_exports.object({
|
|
15512
15517
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15578,6 +15583,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15578
15583
|
var clientTurnSchema = external_exports.object({
|
|
15579
15584
|
id: external_exports.string().min(1),
|
|
15580
15585
|
status: external_exports.string().min(1),
|
|
15586
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15587
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15581
15588
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15582
15589
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15583
15590
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16794,6 +16801,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16794
16801
|
"completed",
|
|
16795
16802
|
"failed",
|
|
16796
16803
|
"interrupted",
|
|
16804
|
+
"needsInput",
|
|
16797
16805
|
"timedOut",
|
|
16798
16806
|
"unreadable",
|
|
16799
16807
|
"notFound"
|
|
@@ -16840,13 +16848,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16840
16848
|
var thread = { ...target, threadId: identity };
|
|
16841
16849
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16842
16850
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16851
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16843
16852
|
external_exports.strictObject({
|
|
16844
16853
|
kind: external_exports.literal("list"),
|
|
16845
16854
|
...target,
|
|
16846
16855
|
cursor: external_exports.string().nullable(),
|
|
16847
16856
|
archived: external_exports.boolean()
|
|
16848
16857
|
}),
|
|
16849
|
-
external_exports.strictObject({
|
|
16858
|
+
external_exports.strictObject({
|
|
16859
|
+
kind: external_exports.literal("read"),
|
|
16860
|
+
...thread,
|
|
16861
|
+
page: external_exports.strictObject({
|
|
16862
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16863
|
+
epoch: identity.optional(),
|
|
16864
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16865
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16866
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16867
|
+
message: "A history continuation requires its connection epoch"
|
|
16868
|
+
}).optional()
|
|
16869
|
+
}),
|
|
16870
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16850
16871
|
external_exports.strictObject({
|
|
16851
16872
|
kind: external_exports.literal("configure"),
|
|
16852
16873
|
...thread,
|
|
@@ -17242,6 +17263,7 @@ var requestTokenFields = [
|
|
|
17242
17263
|
"cacheWrite1hInputTokens",
|
|
17243
17264
|
"outputTokens",
|
|
17244
17265
|
"reasoningOutputTokens",
|
|
17266
|
+
"timedOutputTokens",
|
|
17245
17267
|
"startedAtMs",
|
|
17246
17268
|
"completedAtMs"
|
|
17247
17269
|
];
|
|
@@ -18904,7 +18904,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
18904
18904
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
18905
18905
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
18906
18906
|
var usageOutputTimingSchema = external_exports.object({
|
|
18907
|
-
version: external_exports.literal(3).optional(),
|
|
18907
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
18908
18908
|
requestId: external_exports.string().min(1),
|
|
18909
18909
|
turnId: external_exports.string().min(1).max(1024),
|
|
18910
18910
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -18912,16 +18912,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
18912
18912
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
18913
18913
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
18914
18914
|
var usageMeasurementSchema = external_exports.object({
|
|
18915
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
18915
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
18916
18916
|
value: finiteNonNegativeNumberSchema,
|
|
18917
18917
|
turnId: external_exports.string().min(1).max(1024),
|
|
18918
18918
|
at: nonNegativeSafeIntegerSchema
|
|
18919
18919
|
}).strict();
|
|
18920
18920
|
var usageMeasurementsSchema = external_exports.object({
|
|
18921
|
-
//
|
|
18922
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
18921
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
18922
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
18923
18923
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
18924
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
18924
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
18925
18925
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
18926
18926
|
}).strict();
|
|
18927
18927
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -19387,6 +19387,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
19387
19387
|
cursor: clientChannelCursorSchema,
|
|
19388
19388
|
cwd: external_exports.string().optional()
|
|
19389
19389
|
}),
|
|
19390
|
+
external_exports.object({
|
|
19391
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
19392
|
+
cursor: clientChannelCursorSchema,
|
|
19393
|
+
harnessId: external_exports.string().min(1)
|
|
19394
|
+
}),
|
|
19390
19395
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
19391
19396
|
external_exports.object({
|
|
19392
19397
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -19458,6 +19463,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
19458
19463
|
var clientTurnSchema = external_exports.object({
|
|
19459
19464
|
id: external_exports.string().min(1),
|
|
19460
19465
|
status: external_exports.string().min(1),
|
|
19466
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
19467
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
19461
19468
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
19462
19469
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
19463
19470
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -20678,6 +20685,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
20678
20685
|
"completed",
|
|
20679
20686
|
"failed",
|
|
20680
20687
|
"interrupted",
|
|
20688
|
+
"needsInput",
|
|
20681
20689
|
"timedOut",
|
|
20682
20690
|
"unreadable",
|
|
20683
20691
|
"notFound"
|
|
@@ -20724,13 +20732,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
20724
20732
|
var thread = { ...target, threadId: identity };
|
|
20725
20733
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
20726
20734
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
20735
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
20727
20736
|
external_exports.strictObject({
|
|
20728
20737
|
kind: external_exports.literal("list"),
|
|
20729
20738
|
...target,
|
|
20730
20739
|
cursor: external_exports.string().nullable(),
|
|
20731
20740
|
archived: external_exports.boolean()
|
|
20732
20741
|
}),
|
|
20733
|
-
external_exports.strictObject({
|
|
20742
|
+
external_exports.strictObject({
|
|
20743
|
+
kind: external_exports.literal("read"),
|
|
20744
|
+
...thread,
|
|
20745
|
+
page: external_exports.strictObject({
|
|
20746
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
20747
|
+
epoch: identity.optional(),
|
|
20748
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
20749
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
20750
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
20751
|
+
message: "A history continuation requires its connection epoch"
|
|
20752
|
+
}).optional()
|
|
20753
|
+
}),
|
|
20754
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
20734
20755
|
external_exports.strictObject({
|
|
20735
20756
|
kind: external_exports.literal("configure"),
|
|
20736
20757
|
...thread,
|
|
@@ -21131,6 +21152,7 @@ var requestTokenFields = [
|
|
|
21131
21152
|
"cacheWrite1hInputTokens",
|
|
21132
21153
|
"outputTokens",
|
|
21133
21154
|
"reasoningOutputTokens",
|
|
21155
|
+
"timedOutputTokens",
|
|
21134
21156
|
"startedAtMs",
|
|
21135
21157
|
"completedAtMs"
|
|
21136
21158
|
];
|
|
@@ -21183,6 +21205,14 @@ function parseHostUsageRequest(value) {
|
|
|
21183
21205
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
21184
21206
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
21185
21207
|
}
|
|
21208
|
+
if (request.timedOutputTokens !== void 0) {
|
|
21209
|
+
if (request.startedAtMs === void 0) {
|
|
21210
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
21211
|
+
}
|
|
21212
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
21213
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
21214
|
+
}
|
|
21215
|
+
}
|
|
21186
21216
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
21187
21217
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
21188
21218
|
}
|
|
@@ -22790,11 +22820,23 @@ function isRecord5(value) {
|
|
|
22790
22820
|
function count2(value) {
|
|
22791
22821
|
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : null;
|
|
22792
22822
|
}
|
|
22793
|
-
function firstTokenTime(chunks) {
|
|
22823
|
+
function firstTokenTime(chunks, reasoning2) {
|
|
22824
|
+
if (reasoning2 !== null && reasoning2 > 0 && !chunks.some(({ chunk }) => chunk.type === "block-start" && chunk.blockType === "reasoning" || chunk.type === "reasoning-delta" && typeof chunk.text === "string" && chunk.text.length > 0))
|
|
22825
|
+
return null;
|
|
22794
22826
|
for (const { time: time3, chunk } of chunks) {
|
|
22795
|
-
if (
|
|
22827
|
+
if (chunk.type === "block-start" && chunk.blockType === "reasoning" || (chunk.type === "reasoning-delta" || chunk.type === "text-delta") && typeof chunk.text === "string" && chunk.text.length > 0) {
|
|
22796
22828
|
return time3;
|
|
22797
22829
|
}
|
|
22830
|
+
if (chunk.type === "tool-call-delta" && typeof chunk.argumentsDelta === "string" && chunk.argumentsDelta.trim().length > 0) {
|
|
22831
|
+
try {
|
|
22832
|
+
JSON.parse(chunk.argumentsDelta);
|
|
22833
|
+
} catch {
|
|
22834
|
+
if (typeof chunk.name === "string" && chunk.name.length > 0)
|
|
22835
|
+
return time3;
|
|
22836
|
+
continue;
|
|
22837
|
+
}
|
|
22838
|
+
return null;
|
|
22839
|
+
}
|
|
22798
22840
|
}
|
|
22799
22841
|
return null;
|
|
22800
22842
|
}
|
|
@@ -22832,8 +22874,8 @@ function deepSeekUsageRecord(event, historical) {
|
|
|
22832
22874
|
if (input === null || output === null || cacheRead === null || cacheWrite === null) {
|
|
22833
22875
|
return { kind: "missing" };
|
|
22834
22876
|
}
|
|
22835
|
-
const startedAtMs = historical ? null : firstTokenTime(chunks);
|
|
22836
|
-
const completedAtMs =
|
|
22877
|
+
const startedAtMs = historical ? null : count2(firstTokenTime(chunks, reasoning2));
|
|
22878
|
+
const completedAtMs = count2(event.time);
|
|
22837
22879
|
try {
|
|
22838
22880
|
return {
|
|
22839
22881
|
kind: "request",
|
|
@@ -22846,7 +22888,7 @@ function deepSeekUsageRecord(event, historical) {
|
|
|
22846
22888
|
cacheWriteInputTokens: cacheWrite,
|
|
22847
22889
|
outputTokens: output,
|
|
22848
22890
|
...reasoning2 !== null && reasoning2 <= output ? { reasoningOutputTokens: reasoning2 } : {},
|
|
22849
|
-
...startedAtMs !== null && completedAtMs !== null && completedAtMs
|
|
22891
|
+
...startedAtMs !== null && completedAtMs !== null && completedAtMs > startedAtMs ? { startedAtMs, completedAtMs } : {}
|
|
22850
22892
|
})
|
|
22851
22893
|
};
|
|
22852
22894
|
} catch {
|