@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
|
@@ -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,26 @@ 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
|
+
}),
|
|
23395
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
23375
23396
|
external_exports.strictObject({
|
|
23376
23397
|
kind: external_exports.literal("configure"),
|
|
23377
23398
|
...thread,
|
|
@@ -23741,6 +23762,7 @@ var requestTokenFields = [
|
|
|
23741
23762
|
"cacheWrite1hInputTokens",
|
|
23742
23763
|
"outputTokens",
|
|
23743
23764
|
"reasoningOutputTokens",
|
|
23765
|
+
"timedOutputTokens",
|
|
23744
23766
|
"startedAtMs",
|
|
23745
23767
|
"completedAtMs"
|
|
23746
23768
|
];
|
|
@@ -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,26 @@ 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
|
+
}),
|
|
16509
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16489
16510
|
external_exports.strictObject({
|
|
16490
16511
|
kind: external_exports.literal("configure"),
|
|
16491
16512
|
...thread,
|
|
@@ -16881,6 +16902,7 @@ var requestTokenFields = [
|
|
|
16881
16902
|
"cacheWrite1hInputTokens",
|
|
16882
16903
|
"outputTokens",
|
|
16883
16904
|
"reasoningOutputTokens",
|
|
16905
|
+
"timedOutputTokens",
|
|
16884
16906
|
"startedAtMs",
|
|
16885
16907
|
"completedAtMs"
|
|
16886
16908
|
];
|
|
@@ -16933,6 +16955,14 @@ function parseHostUsageRequest(value) {
|
|
|
16933
16955
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
16934
16956
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
16935
16957
|
}
|
|
16958
|
+
if (request.timedOutputTokens !== void 0) {
|
|
16959
|
+
if (request.startedAtMs === void 0) {
|
|
16960
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
16961
|
+
}
|
|
16962
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
16963
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
16964
|
+
}
|
|
16965
|
+
}
|
|
16936
16966
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
16937
16967
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
16938
16968
|
}
|
|
@@ -14849,7 +14849,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
14849
14849
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14850
14850
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14851
14851
|
var usageOutputTimingSchema = external_exports.object({
|
|
14852
|
-
version: external_exports.literal(3).optional(),
|
|
14852
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14853
14853
|
requestId: external_exports.string().min(1),
|
|
14854
14854
|
turnId: external_exports.string().min(1).max(1024),
|
|
14855
14855
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -14857,16 +14857,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
14857
14857
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14858
14858
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14859
14859
|
var usageMeasurementSchema = external_exports.object({
|
|
14860
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14860
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14861
14861
|
value: finiteNonNegativeNumberSchema,
|
|
14862
14862
|
turnId: external_exports.string().min(1).max(1024),
|
|
14863
14863
|
at: nonNegativeSafeIntegerSchema
|
|
14864
14864
|
}).strict();
|
|
14865
14865
|
var usageMeasurementsSchema = external_exports.object({
|
|
14866
|
-
//
|
|
14867
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
14866
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
14867
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
14868
14868
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14869
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
14869
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
14870
14870
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14871
14871
|
}).strict();
|
|
14872
14872
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15332,6 +15332,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15332
15332
|
cursor: clientChannelCursorSchema,
|
|
15333
15333
|
cwd: external_exports.string().optional()
|
|
15334
15334
|
}),
|
|
15335
|
+
external_exports.object({
|
|
15336
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15337
|
+
cursor: clientChannelCursorSchema,
|
|
15338
|
+
harnessId: external_exports.string().min(1)
|
|
15339
|
+
}),
|
|
15335
15340
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15336
15341
|
external_exports.object({
|
|
15337
15342
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15403,6 +15408,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15403
15408
|
var clientTurnSchema = external_exports.object({
|
|
15404
15409
|
id: external_exports.string().min(1),
|
|
15405
15410
|
status: external_exports.string().min(1),
|
|
15411
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15412
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15406
15413
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15407
15414
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15408
15415
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16619,6 +16626,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16619
16626
|
"completed",
|
|
16620
16627
|
"failed",
|
|
16621
16628
|
"interrupted",
|
|
16629
|
+
"needsInput",
|
|
16622
16630
|
"timedOut",
|
|
16623
16631
|
"unreadable",
|
|
16624
16632
|
"notFound"
|
|
@@ -16665,13 +16673,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16665
16673
|
var thread = { ...target, threadId: identity };
|
|
16666
16674
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16667
16675
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16676
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16668
16677
|
external_exports.strictObject({
|
|
16669
16678
|
kind: external_exports.literal("list"),
|
|
16670
16679
|
...target,
|
|
16671
16680
|
cursor: external_exports.string().nullable(),
|
|
16672
16681
|
archived: external_exports.boolean()
|
|
16673
16682
|
}),
|
|
16674
|
-
external_exports.strictObject({
|
|
16683
|
+
external_exports.strictObject({
|
|
16684
|
+
kind: external_exports.literal("read"),
|
|
16685
|
+
...thread,
|
|
16686
|
+
page: external_exports.strictObject({
|
|
16687
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16688
|
+
epoch: identity.optional(),
|
|
16689
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16690
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16691
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16692
|
+
message: "A history continuation requires its connection epoch"
|
|
16693
|
+
}).optional()
|
|
16694
|
+
}),
|
|
16695
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16675
16696
|
external_exports.strictObject({
|
|
16676
16697
|
kind: external_exports.literal("configure"),
|
|
16677
16698
|
...thread,
|
|
@@ -17050,6 +17071,7 @@ var requestTokenFields = [
|
|
|
17050
17071
|
"cacheWrite1hInputTokens",
|
|
17051
17072
|
"outputTokens",
|
|
17052
17073
|
"reasoningOutputTokens",
|
|
17074
|
+
"timedOutputTokens",
|
|
17053
17075
|
"startedAtMs",
|
|
17054
17076
|
"completedAtMs"
|
|
17055
17077
|
];
|
|
@@ -17102,6 +17124,14 @@ function parseHostUsageRequest(value) {
|
|
|
17102
17124
|
if (request.startedAtMs === void 0 !== (request.completedAtMs === void 0)) {
|
|
17103
17125
|
throw new Error("Harness Usage request timing fields must be provided together");
|
|
17104
17126
|
}
|
|
17127
|
+
if (request.timedOutputTokens !== void 0) {
|
|
17128
|
+
if (request.startedAtMs === void 0) {
|
|
17129
|
+
throw new Error("Harness Usage request 'timedOutputTokens' requires timing fields");
|
|
17130
|
+
}
|
|
17131
|
+
if (request.timedOutputTokens > request.outputTokens) {
|
|
17132
|
+
throw new Error("Harness Usage request 'timedOutputTokens' must not exceed 'outputTokens'");
|
|
17133
|
+
}
|
|
17134
|
+
}
|
|
17105
17135
|
if (request.startedAtMs !== void 0 && request.completedAtMs !== void 0 && request.completedAtMs < request.startedAtMs) {
|
|
17106
17136
|
throw new Error("Harness Usage request 'completedAtMs' must not precede 'startedAtMs'");
|
|
17107
17137
|
}
|
|
@@ -14913,7 +14913,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14913
14913
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
14914
14914
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14915
14915
|
var usageOutputTimingSchema = external_exports.object({
|
|
14916
|
-
version: external_exports.literal(3).optional(),
|
|
14916
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14917
14917
|
requestId: external_exports.string().min(1),
|
|
14918
14918
|
turnId: external_exports.string().min(1).max(1024),
|
|
14919
14919
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -14921,16 +14921,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14921
14921
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
14922
14922
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
14923
14923
|
var usageMeasurementSchema = external_exports.object({
|
|
14924
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
14924
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
14925
14925
|
value: finiteNonNegativeNumberSchema,
|
|
14926
14926
|
turnId: external_exports.string().min(1).max(1024),
|
|
14927
14927
|
at: nonNegativeSafeIntegerSchema
|
|
14928
14928
|
}).strict();
|
|
14929
14929
|
var usageMeasurementsSchema = external_exports.object({
|
|
14930
|
-
//
|
|
14931
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
14930
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
14931
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
14932
14932
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
14933
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
14933
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
14934
14934
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
14935
14935
|
}).strict();
|
|
14936
14936
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15407,6 +15407,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15407
15407
|
cursor: clientChannelCursorSchema,
|
|
15408
15408
|
cwd: external_exports.string().optional()
|
|
15409
15409
|
}),
|
|
15410
|
+
external_exports.object({
|
|
15411
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15412
|
+
cursor: clientChannelCursorSchema,
|
|
15413
|
+
harnessId: external_exports.string().min(1)
|
|
15414
|
+
}),
|
|
15410
15415
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15411
15416
|
external_exports.object({
|
|
15412
15417
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15478,6 +15483,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15478
15483
|
var clientTurnSchema = external_exports.object({
|
|
15479
15484
|
id: external_exports.string().min(1),
|
|
15480
15485
|
status: external_exports.string().min(1),
|
|
15486
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15487
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15481
15488
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15482
15489
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15483
15490
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16983,6 +16990,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16983
16990
|
"completed",
|
|
16984
16991
|
"failed",
|
|
16985
16992
|
"interrupted",
|
|
16993
|
+
"needsInput",
|
|
16986
16994
|
"timedOut",
|
|
16987
16995
|
"unreadable",
|
|
16988
16996
|
"notFound"
|
|
@@ -17032,13 +17040,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17032
17040
|
var thread = { ...target, threadId: identity };
|
|
17033
17041
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
17034
17042
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
17043
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
17035
17044
|
external_exports.strictObject({
|
|
17036
17045
|
kind: external_exports.literal("list"),
|
|
17037
17046
|
...target,
|
|
17038
17047
|
cursor: external_exports.string().nullable(),
|
|
17039
17048
|
archived: external_exports.boolean()
|
|
17040
17049
|
}),
|
|
17041
|
-
external_exports.strictObject({
|
|
17050
|
+
external_exports.strictObject({
|
|
17051
|
+
kind: external_exports.literal("read"),
|
|
17052
|
+
...thread,
|
|
17053
|
+
page: external_exports.strictObject({
|
|
17054
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
17055
|
+
epoch: identity.optional(),
|
|
17056
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
17057
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
17058
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
17059
|
+
message: "A history continuation requires its connection epoch"
|
|
17060
|
+
}).optional()
|
|
17061
|
+
}),
|
|
17062
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
17042
17063
|
external_exports.strictObject({
|
|
17043
17064
|
kind: external_exports.literal("configure"),
|
|
17044
17065
|
...thread,
|