@codexhost/cli-darwin-x64 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
|
@@ -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((text2) => text2.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,
|
|
@@ -17135,6 +17156,7 @@ var requestTokenFields = [
|
|
|
17135
17156
|
"cacheWrite1hInputTokens",
|
|
17136
17157
|
"outputTokens",
|
|
17137
17158
|
"reasoningOutputTokens",
|
|
17159
|
+
"timedOutputTokens",
|
|
17138
17160
|
"startedAtMs",
|
|
17139
17161
|
"completedAtMs"
|
|
17140
17162
|
];
|
|
@@ -15144,7 +15144,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
15144
15144
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15145
15145
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15146
15146
|
var usageOutputTimingSchema = external_exports.object({
|
|
15147
|
-
version: external_exports.literal(3).optional(),
|
|
15147
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15148
15148
|
requestId: external_exports.string().min(1),
|
|
15149
15149
|
turnId: external_exports.string().min(1).max(1024),
|
|
15150
15150
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15152,16 +15152,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15152
15152
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15153
15153
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15154
15154
|
var usageMeasurementSchema = external_exports.object({
|
|
15155
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15155
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15156
15156
|
value: finiteNonNegativeNumberSchema,
|
|
15157
15157
|
turnId: external_exports.string().min(1).max(1024),
|
|
15158
15158
|
at: nonNegativeSafeIntegerSchema
|
|
15159
15159
|
}).strict();
|
|
15160
15160
|
var usageMeasurementsSchema = external_exports.object({
|
|
15161
|
-
//
|
|
15162
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15161
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15162
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15163
15163
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15164
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15164
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15165
15165
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15166
15166
|
}).strict();
|
|
15167
15167
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15627,6 +15627,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15627
15627
|
cursor: clientChannelCursorSchema,
|
|
15628
15628
|
cwd: external_exports.string().optional()
|
|
15629
15629
|
}),
|
|
15630
|
+
external_exports.object({
|
|
15631
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15632
|
+
cursor: clientChannelCursorSchema,
|
|
15633
|
+
harnessId: external_exports.string().min(1)
|
|
15634
|
+
}),
|
|
15630
15635
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15631
15636
|
external_exports.object({
|
|
15632
15637
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15698,6 +15703,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15698
15703
|
var clientTurnSchema = external_exports.object({
|
|
15699
15704
|
id: external_exports.string().min(1),
|
|
15700
15705
|
status: external_exports.string().min(1),
|
|
15706
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15707
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15701
15708
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15702
15709
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15703
15710
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16914,6 +16921,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16914
16921
|
"completed",
|
|
16915
16922
|
"failed",
|
|
16916
16923
|
"interrupted",
|
|
16924
|
+
"needsInput",
|
|
16917
16925
|
"timedOut",
|
|
16918
16926
|
"unreadable",
|
|
16919
16927
|
"notFound"
|
|
@@ -16960,13 +16968,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16960
16968
|
var thread = { ...target, threadId: identity };
|
|
16961
16969
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16962
16970
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16971
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16963
16972
|
external_exports.strictObject({
|
|
16964
16973
|
kind: external_exports.literal("list"),
|
|
16965
16974
|
...target,
|
|
16966
16975
|
cursor: external_exports.string().nullable(),
|
|
16967
16976
|
archived: external_exports.boolean()
|
|
16968
16977
|
}),
|
|
16969
|
-
external_exports.strictObject({
|
|
16978
|
+
external_exports.strictObject({
|
|
16979
|
+
kind: external_exports.literal("read"),
|
|
16980
|
+
...thread,
|
|
16981
|
+
page: external_exports.strictObject({
|
|
16982
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16983
|
+
epoch: identity.optional(),
|
|
16984
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16985
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16986
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16987
|
+
message: "A history continuation requires its connection epoch"
|
|
16988
|
+
}).optional()
|
|
16989
|
+
}),
|
|
16990
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16970
16991
|
external_exports.strictObject({
|
|
16971
16992
|
kind: external_exports.literal("configure"),
|
|
16972
16993
|
...thread,
|
|
@@ -17349,6 +17370,7 @@ var requestTokenFields = [
|
|
|
17349
17370
|
"cacheWrite1hInputTokens",
|
|
17350
17371
|
"outputTokens",
|
|
17351
17372
|
"reasoningOutputTokens",
|
|
17373
|
+
"timedOutputTokens",
|
|
17352
17374
|
"startedAtMs",
|
|
17353
17375
|
"completedAtMs"
|
|
17354
17376
|
];
|
|
@@ -23603,6 +23625,14 @@ function parseKimiConfigToml(content) {
|
|
|
23603
23625
|
item.provider = d.provider;
|
|
23604
23626
|
if (typeof d.max_context_size === "number")
|
|
23605
23627
|
item.maxContextSize = d.max_context_size;
|
|
23628
|
+
if (Array.isArray(d.capabilities)) {
|
|
23629
|
+
item.capabilities = d.capabilities.filter((value) => typeof value === "string");
|
|
23630
|
+
}
|
|
23631
|
+
if (Array.isArray(d.support_efforts)) {
|
|
23632
|
+
item.supportEfforts = d.support_efforts.filter((value) => typeof value === "string");
|
|
23633
|
+
}
|
|
23634
|
+
if (typeof d.default_effort === "string")
|
|
23635
|
+
item.defaultEffort = d.default_effort;
|
|
23606
23636
|
}
|
|
23607
23637
|
models.push(item);
|
|
23608
23638
|
}
|
|
@@ -23633,30 +23663,37 @@ function resolveKimiContextWindow(modelAlias, config2) {
|
|
|
23633
23663
|
}
|
|
23634
23664
|
return 2e5;
|
|
23635
23665
|
}
|
|
23666
|
+
function configuredThinkingOptions(model2) {
|
|
23667
|
+
const alwaysThinking = model2.capabilities?.includes("always_thinking") === true;
|
|
23668
|
+
if (!alwaysThinking && !model2.capabilities?.includes("thinking"))
|
|
23669
|
+
return [];
|
|
23670
|
+
const values = model2.supportEfforts?.length ? ["off", ...model2.supportEfforts] : ["off", "on"];
|
|
23671
|
+
return [...new Set(values)].filter((value) => !alwaysThinking || value !== "off").map((value) => harnessThinkingOptionSchema.parse({ id: value, label: formatThinkingLabel(value) }));
|
|
23672
|
+
}
|
|
23636
23673
|
function buildModelCatalogFromConfig(config2, thinkingOptionsList) {
|
|
23637
|
-
const thinkingOptions =
|
|
23638
|
-
const thinkingIds = thinkingOptions.map((opt) => opt.id);
|
|
23674
|
+
const thinkingOptions = /* @__PURE__ */ new Map();
|
|
23639
23675
|
const rawModels = config2.models.length > 0 ? config2.models : [{ alias: config2.defaultModel ?? "default" }];
|
|
23640
23676
|
const models = rawModels.map((m) => {
|
|
23677
|
+
const options = thinkingOptionsList !== void 0 ? m.alias === config2.defaultModel ? thinkingOptionsList : [] : configuredThinkingOptions(m);
|
|
23678
|
+
for (const option of options)
|
|
23679
|
+
thinkingOptions.set(option.id, option);
|
|
23641
23680
|
const label = m.model ? `${m.alias} (${m.model})` : m.alias;
|
|
23642
23681
|
return harnessModelSchema.parse({
|
|
23643
23682
|
ref: encodeKimiModelRef(m.alias),
|
|
23644
23683
|
label: label.slice(0, 256),
|
|
23645
23684
|
...m.model ? { resolvedModelLabel: m.model.slice(0, 256) } : {},
|
|
23646
|
-
|
|
23685
|
+
supportedThinkingOptionIds: options.map(({ id }) => id)
|
|
23647
23686
|
});
|
|
23648
23687
|
});
|
|
23649
23688
|
const defaultModel = config2.defaultModel && models.some((m) => decodeKimiModelRefId(m.ref.id) === config2.defaultModel) ? encodeKimiModelRef(config2.defaultModel) : models[0]?.ref;
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
defaultThinkingOptionId = harnessThinkingOptionIdSchema.parse("off");
|
|
23655
|
-
}
|
|
23689
|
+
const selectedModel = models.find((model2) => model2.ref.id === defaultModel?.id);
|
|
23690
|
+
const configuredDefault = config2.models.find((model2) => encodeKimiModelRef(model2.alias).id === defaultModel?.id)?.defaultEffort;
|
|
23691
|
+
const requestedDefault = config2.thinking?.enabled === false ? "off" : config2.thinking?.effort ?? configuredDefault;
|
|
23692
|
+
const defaultThinkingOptionId = selectedModel?.supportedThinkingOptionIds?.find((id) => id === requestedDefault);
|
|
23656
23693
|
return harnessModelCatalogSchema.parse({
|
|
23657
23694
|
models,
|
|
23658
23695
|
...defaultModel ? { defaultModel } : {},
|
|
23659
|
-
thinkingOptions,
|
|
23696
|
+
thinkingOptions: [...thinkingOptions.values()],
|
|
23660
23697
|
...defaultThinkingOptionId ? { defaultThinkingOptionId } : {}
|
|
23661
23698
|
});
|
|
23662
23699
|
}
|
|
@@ -14999,7 +14999,7 @@ var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonneg
|
|
|
14999
14999
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15000
15000
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15001
15001
|
var usageOutputTimingSchema = external_exports.object({
|
|
15002
|
-
version: external_exports.literal(3).optional(),
|
|
15002
|
+
version: external_exports.union([external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15003
15003
|
requestId: external_exports.string().min(1),
|
|
15004
15004
|
turnId: external_exports.string().min(1).max(1024),
|
|
15005
15005
|
outputTokens: nonNegativeSafeIntegerSchema,
|
|
@@ -15007,16 +15007,16 @@ var usageOutputTimingSchema = external_exports.object({
|
|
|
15007
15007
|
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15008
15008
|
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15009
15009
|
var usageMeasurementSchema = external_exports.object({
|
|
15010
|
-
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15010
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3), external_exports.literal(4)]).optional(),
|
|
15011
15011
|
value: finiteNonNegativeNumberSchema,
|
|
15012
15012
|
turnId: external_exports.string().min(1).max(1024),
|
|
15013
15013
|
at: nonNegativeSafeIntegerSchema
|
|
15014
15014
|
}).strict();
|
|
15015
15015
|
var usageMeasurementsSchema = external_exports.object({
|
|
15016
|
-
//
|
|
15017
|
-
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version ===
|
|
15016
|
+
// Older intervals can omit hidden thinking time; do not restore them into averages.
|
|
15017
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 4)).optional(),
|
|
15018
15018
|
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15019
|
-
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version ===
|
|
15019
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
|
|
15020
15020
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15021
15021
|
}).strict();
|
|
15022
15022
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15482,6 +15482,11 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
15482
15482
|
cursor: clientChannelCursorSchema,
|
|
15483
15483
|
cwd: external_exports.string().optional()
|
|
15484
15484
|
}),
|
|
15485
|
+
external_exports.object({
|
|
15486
|
+
type: external_exports.literal("harness-inspection-changed"),
|
|
15487
|
+
cursor: clientChannelCursorSchema,
|
|
15488
|
+
harnessId: external_exports.string().min(1)
|
|
15489
|
+
}),
|
|
15485
15490
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15486
15491
|
external_exports.object({
|
|
15487
15492
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15553,6 +15558,8 @@ var clientItemTruncationSchema = external_exports.object({
|
|
|
15553
15558
|
var clientTurnSchema = external_exports.object({
|
|
15554
15559
|
id: external_exports.string().min(1),
|
|
15555
15560
|
status: external_exports.string().min(1),
|
|
15561
|
+
/** Native history has no terminal evidence; Desktop's status vocabulary cannot express this. */
|
|
15562
|
+
codexhostTurnOutcome: external_exports.object({ status: external_exports.literal("unknown"), reason: external_exports.string() }).optional(),
|
|
15556
15563
|
items: external_exports.array(external_exports.object({ id: external_exports.string().min(1), type: external_exports.string().min(1) }).passthrough()),
|
|
15557
15564
|
/** Original file operations, independent of the cumulative Desktop fileChange card.
|
|
15558
15565
|
* Insert before the named non-file Item; null appends at the end of the Turn.
|
|
@@ -16769,6 +16776,7 @@ var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
|
16769
16776
|
"completed",
|
|
16770
16777
|
"failed",
|
|
16771
16778
|
"interrupted",
|
|
16779
|
+
"needsInput",
|
|
16772
16780
|
"timedOut",
|
|
16773
16781
|
"unreadable",
|
|
16774
16782
|
"notFound"
|
|
@@ -16815,13 +16823,26 @@ var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
|
16815
16823
|
var thread = { ...target, threadId: identity };
|
|
16816
16824
|
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16817
16825
|
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16826
|
+
external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
|
|
16818
16827
|
external_exports.strictObject({
|
|
16819
16828
|
kind: external_exports.literal("list"),
|
|
16820
16829
|
...target,
|
|
16821
16830
|
cursor: external_exports.string().nullable(),
|
|
16822
16831
|
archived: external_exports.boolean()
|
|
16823
16832
|
}),
|
|
16824
|
-
external_exports.strictObject({
|
|
16833
|
+
external_exports.strictObject({
|
|
16834
|
+
kind: external_exports.literal("read"),
|
|
16835
|
+
...thread,
|
|
16836
|
+
page: external_exports.strictObject({
|
|
16837
|
+
cursor: external_exports.string().min(1).max(8192).nullable(),
|
|
16838
|
+
epoch: identity.optional(),
|
|
16839
|
+
sortDirection: external_exports.enum(["asc", "desc"]).optional(),
|
|
16840
|
+
limit: external_exports.number().int().min(1).max(20).optional()
|
|
16841
|
+
}).refine((page) => page.cursor === null || page.epoch !== void 0, {
|
|
16842
|
+
message: "A history continuation requires its connection epoch"
|
|
16843
|
+
}).optional()
|
|
16844
|
+
}),
|
|
16845
|
+
external_exports.strictObject({ kind: external_exports.literal("usage"), ...thread, epoch: identity }),
|
|
16825
16846
|
external_exports.strictObject({
|
|
16826
16847
|
kind: external_exports.literal("configure"),
|
|
16827
16848
|
...thread,
|
|
@@ -17241,6 +17262,7 @@ var requestTokenFields = [
|
|
|
17241
17262
|
"cacheWrite1hInputTokens",
|
|
17242
17263
|
"outputTokens",
|
|
17243
17264
|
"reasoningOutputTokens",
|
|
17265
|
+
"timedOutputTokens",
|
|
17244
17266
|
"startedAtMs",
|
|
17245
17267
|
"completedAtMs"
|
|
17246
17268
|
];
|