@codexhost/cli-darwin-x64 0.19.0 → 0.20.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 +24 -3
- package/app/console-web.js +1095 -682
- package/app/desktop-controller.mjs +40 -4
- package/app/host-runtime.mjs +1572 -1120
- package/app/plugins/antigravity/plugin.mjs +8753 -4274
- package/app/plugins/claude-code/plugin.mjs +26 -3
- package/app/plugins/codebuddy/plugin.mjs +41 -5
- package/app/plugins/codex-usage/plugin.mjs +26 -3
- package/app/plugins/copilot/plugin.mjs +26 -3
- package/app/plugins/cursor-cli/plugin.mjs +26 -3
- package/app/plugins/deepseek-harness/plugin.mjs +26 -3
- package/app/plugins/devin/plugin.mjs +25 -3
- package/app/plugins/grok/plugin.mjs +26 -3
- package/app/plugins/hermes/plugin.mjs +25 -3
- package/app/plugins/kimi-code/plugin.mjs +26 -3
- package/app/plugins/kiro-cli/plugin.mjs +26 -3
- package/app/plugins/omp/plugin.mjs +44 -6
- package/app/plugins/opencode/plugin.mjs +26 -3
- package/app/plugins/pi/plugin.mjs +45 -6
- package/app/plugins/qoder/plugin.mjs +48 -4
- package/app/plugins/qoder-cn/plugin.mjs +48 -4
- package/app/plugins/qwen-code/plugin.mjs +26 -3
- package/app/plugins/workbuddy/plugin.mjs +45 -8
- package/app/plugins/zcode/plugin.mjs +26 -3
- package/app/renderer-extension.js +1411 -737
- package/app/web/assets/index-D6-hvggd.css +1 -0
- package/app/web/assets/index-D85gPBbQ.js +201 -0
- package/app/web/assets/langs/{graphql-B8vkg11W.js → graphql-ChAeyPkT.js} +1 -1
- package/app/web/assets/langs/{http-DmoDEjMt.js → http-BvreBIbD.js} +1 -1
- package/app/web/assets/langs/{php-DJ5ovfAM.js → php-D8omCIuJ.js} +1 -1
- package/app/web/assets/langs/{rst-U5-R5x3p.js → rst-Do7RLLCS.js} +1 -1
- package/app/web/assets/langs/{ruby-VKVsnS0H.js → ruby-rH_O_vse.js} +1 -1
- package/app/web/assets/langs/{svelte-C20lOv9V.js → svelte-xZy73wAj.js} +1 -1
- package/app/web/assets/langs/{vue-z6Y-lzP-.js → vue-C4DW8agZ.js} +1 -1
- package/app/web/assets/{vendor-dSL872WO.js → vendor-C9g2bw8s.js} +3 -3
- package/app/web/codexhost-settings.js +1101 -684
- package/app/web/index.html +4 -3
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +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 +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-connection/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +74 -69
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +13 -13
- package/app/web/plugins/deepseek-ai__dsh-client-ui-session/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +7 -7
- package/app/web-modules/server.mjs +138 -70
- 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-BNQIOOHE.css +0 -1
- package/app/web/assets/index-Feo4BkqN.js +0 -199
|
@@ -15023,13 +15023,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15023
15023
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15024
15024
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15025
15025
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15026
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15027
|
+
version: external_exports.literal(3).optional(),
|
|
15028
|
+
requestId: external_exports.string().min(1),
|
|
15029
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15030
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15031
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15032
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15033
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15026
15034
|
var usageMeasurementSchema = external_exports.object({
|
|
15035
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15027
15036
|
value: finiteNonNegativeNumberSchema,
|
|
15028
15037
|
turnId: external_exports.string().min(1).max(1024),
|
|
15029
15038
|
at: nonNegativeSafeIntegerSchema
|
|
15030
15039
|
}).strict();
|
|
15031
15040
|
var usageMeasurementsSchema = external_exports.object({
|
|
15032
|
-
|
|
15041
|
+
// Unversioned 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 === 3)).optional(),
|
|
15043
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15044
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15033
15045
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15034
15046
|
}).strict();
|
|
15035
15047
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15049,6 +15061,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15049
15061
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15050
15062
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15051
15063
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15064
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15052
15065
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15053
15066
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15054
15067
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15460,6 +15473,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15460
15473
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15461
15474
|
}).strict();
|
|
15462
15475
|
|
|
15476
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15477
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15478
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15479
|
+
|
|
15463
15480
|
// ../../shared-contracts/dist/client-channel.js
|
|
15464
15481
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15465
15482
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15599,7 +15616,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15599
15616
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15600
15617
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15601
15618
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15602
|
-
command: external_exports.object({
|
|
15619
|
+
command: external_exports.object({
|
|
15620
|
+
name: external_exports.string().min(1),
|
|
15621
|
+
turn: clientTurnSchema,
|
|
15622
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15623
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15624
|
+
}).optional(),
|
|
15603
15625
|
thread: external_exports.object({
|
|
15604
15626
|
id: external_exports.string().min(1),
|
|
15605
15627
|
cwd: external_exports.string(),
|
|
@@ -15807,7 +15829,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15807
15829
|
quotaUntil: external_exports.string().optional()
|
|
15808
15830
|
}).strict().optional()
|
|
15809
15831
|
}).strict();
|
|
15810
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15811
15832
|
|
|
15812
15833
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15813
15834
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17102,6 +17123,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17102
17123
|
"totalCredits",
|
|
17103
17124
|
"contextUsagePercent",
|
|
17104
17125
|
"outputTokensPerSecond",
|
|
17126
|
+
"sessionOutputTokensPerSecond",
|
|
17105
17127
|
"apiOutputTokensPerSecond",
|
|
17106
17128
|
"costSource",
|
|
17107
17129
|
"unpricedModels"
|
|
@@ -17124,6 +17146,7 @@ function parseHostUsage(value) {
|
|
|
17124
17146
|
for (const field2 of [
|
|
17125
17147
|
"totalCredits",
|
|
17126
17148
|
"contextUsagePercent",
|
|
17149
|
+
"sessionOutputTokensPerSecond",
|
|
17127
17150
|
"apiOutputTokensPerSecond"
|
|
17128
17151
|
]) {
|
|
17129
17152
|
const candidate = value[field2];
|
|
@@ -15023,13 +15023,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15023
15023
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15024
15024
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15025
15025
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15026
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15027
|
+
version: external_exports.literal(3).optional(),
|
|
15028
|
+
requestId: external_exports.string().min(1),
|
|
15029
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15030
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15031
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15032
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15033
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15026
15034
|
var usageMeasurementSchema = external_exports.object({
|
|
15035
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15027
15036
|
value: finiteNonNegativeNumberSchema,
|
|
15028
15037
|
turnId: external_exports.string().min(1).max(1024),
|
|
15029
15038
|
at: nonNegativeSafeIntegerSchema
|
|
15030
15039
|
}).strict();
|
|
15031
15040
|
var usageMeasurementsSchema = external_exports.object({
|
|
15032
|
-
|
|
15041
|
+
// Unversioned 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 === 3)).optional(),
|
|
15043
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15044
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15033
15045
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15034
15046
|
}).strict();
|
|
15035
15047
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
@@ -15049,6 +15061,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15049
15061
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15050
15062
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15051
15063
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15064
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15052
15065
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15053
15066
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15054
15067
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15460,6 +15473,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15460
15473
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15461
15474
|
}).strict();
|
|
15462
15475
|
|
|
15476
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15477
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15478
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15479
|
+
|
|
15463
15480
|
// ../../shared-contracts/dist/client-channel.js
|
|
15464
15481
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15465
15482
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15599,7 +15616,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15599
15616
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15600
15617
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15601
15618
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15602
|
-
command: external_exports.object({
|
|
15619
|
+
command: external_exports.object({
|
|
15620
|
+
name: external_exports.string().min(1),
|
|
15621
|
+
turn: clientTurnSchema,
|
|
15622
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15623
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15624
|
+
}).optional(),
|
|
15603
15625
|
thread: external_exports.object({
|
|
15604
15626
|
id: external_exports.string().min(1),
|
|
15605
15627
|
cwd: external_exports.string(),
|
|
@@ -15807,7 +15829,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15807
15829
|
quotaUntil: external_exports.string().optional()
|
|
15808
15830
|
}).strict().optional()
|
|
15809
15831
|
}).strict();
|
|
15810
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15811
15832
|
|
|
15812
15833
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15813
15834
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17102,6 +17123,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17102
17123
|
"totalCredits",
|
|
17103
17124
|
"contextUsagePercent",
|
|
17104
17125
|
"outputTokensPerSecond",
|
|
17126
|
+
"sessionOutputTokensPerSecond",
|
|
17105
17127
|
"apiOutputTokensPerSecond",
|
|
17106
17128
|
"costSource",
|
|
17107
17129
|
"unpricedModels"
|
|
@@ -15143,13 +15143,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15143
15143
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15144
15144
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15145
15145
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15146
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15147
|
+
version: external_exports.literal(3).optional(),
|
|
15148
|
+
requestId: external_exports.string().min(1),
|
|
15149
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15150
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15151
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15152
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15153
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15146
15154
|
var usageMeasurementSchema = external_exports.object({
|
|
15155
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15147
15156
|
value: finiteNonNegativeNumberSchema,
|
|
15148
15157
|
turnId: external_exports.string().min(1).max(1024),
|
|
15149
15158
|
at: nonNegativeSafeIntegerSchema
|
|
15150
15159
|
}).strict();
|
|
15151
15160
|
var usageMeasurementsSchema = external_exports.object({
|
|
15152
|
-
|
|
15161
|
+
// Unversioned 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 === 3)).optional(),
|
|
15163
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15164
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15153
15165
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15154
15166
|
}).strict();
|
|
15155
15167
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15169,6 +15181,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15169
15181
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15170
15182
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15171
15183
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15184
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15172
15185
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15173
15186
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15174
15187
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15580,6 +15593,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15580
15593
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15581
15594
|
}).strict();
|
|
15582
15595
|
|
|
15596
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15597
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15598
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15599
|
+
|
|
15583
15600
|
// ../../shared-contracts/dist/client-channel.js
|
|
15584
15601
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15585
15602
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15719,7 +15736,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15719
15736
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15720
15737
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15721
15738
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15722
|
-
command: external_exports.object({
|
|
15739
|
+
command: external_exports.object({
|
|
15740
|
+
name: external_exports.string().min(1),
|
|
15741
|
+
turn: clientTurnSchema,
|
|
15742
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15743
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15744
|
+
}).optional(),
|
|
15723
15745
|
thread: external_exports.object({
|
|
15724
15746
|
id: external_exports.string().min(1),
|
|
15725
15747
|
cwd: external_exports.string(),
|
|
@@ -15927,7 +15949,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15927
15949
|
quotaUntil: external_exports.string().optional()
|
|
15928
15950
|
}).strict().optional()
|
|
15929
15951
|
}).strict();
|
|
15930
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15931
15952
|
|
|
15932
15953
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15933
15954
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17226,6 +17247,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17226
17247
|
"totalCredits",
|
|
17227
17248
|
"contextUsagePercent",
|
|
17228
17249
|
"outputTokensPerSecond",
|
|
17250
|
+
"sessionOutputTokensPerSecond",
|
|
17229
17251
|
"apiOutputTokensPerSecond",
|
|
17230
17252
|
"costSource",
|
|
17231
17253
|
"unpricedModels"
|
|
@@ -17248,6 +17270,7 @@ function parseHostUsage(value) {
|
|
|
17248
17270
|
for (const field2 of [
|
|
17249
17271
|
"totalCredits",
|
|
17250
17272
|
"contextUsagePercent",
|
|
17273
|
+
"sessionOutputTokensPerSecond",
|
|
17251
17274
|
"apiOutputTokensPerSecond"
|
|
17252
17275
|
]) {
|
|
17253
17276
|
const candidate = value[field2];
|
|
@@ -14998,13 +14998,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
14998
14998
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
14999
14999
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15000
15000
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15001
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15002
|
+
version: external_exports.literal(3).optional(),
|
|
15003
|
+
requestId: external_exports.string().min(1),
|
|
15004
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15005
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15006
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15007
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15008
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15001
15009
|
var usageMeasurementSchema = external_exports.object({
|
|
15010
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15002
15011
|
value: finiteNonNegativeNumberSchema,
|
|
15003
15012
|
turnId: external_exports.string().min(1).max(1024),
|
|
15004
15013
|
at: nonNegativeSafeIntegerSchema
|
|
15005
15014
|
}).strict();
|
|
15006
15015
|
var usageMeasurementsSchema = external_exports.object({
|
|
15007
|
-
|
|
15016
|
+
// Unversioned 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 === 3)).optional(),
|
|
15018
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15019
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15008
15020
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15009
15021
|
}).strict();
|
|
15010
15022
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15024,6 +15036,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15024
15036
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15025
15037
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15026
15038
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15039
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15027
15040
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15028
15041
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15029
15042
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15435,6 +15448,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15435
15448
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15436
15449
|
}).strict();
|
|
15437
15450
|
|
|
15451
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15452
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15453
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15454
|
+
|
|
15438
15455
|
// ../../shared-contracts/dist/client-channel.js
|
|
15439
15456
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15440
15457
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15574,7 +15591,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15574
15591
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15575
15592
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15576
15593
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15577
|
-
command: external_exports.object({
|
|
15594
|
+
command: external_exports.object({
|
|
15595
|
+
name: external_exports.string().min(1),
|
|
15596
|
+
turn: clientTurnSchema,
|
|
15597
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15598
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15599
|
+
}).optional(),
|
|
15578
15600
|
thread: external_exports.object({
|
|
15579
15601
|
id: external_exports.string().min(1),
|
|
15580
15602
|
cwd: external_exports.string(),
|
|
@@ -15782,7 +15804,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15782
15804
|
quotaUntil: external_exports.string().optional()
|
|
15783
15805
|
}).strict().optional()
|
|
15784
15806
|
}).strict();
|
|
15785
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15786
15807
|
|
|
15787
15808
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15788
15809
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17118,6 +17139,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17118
17139
|
"totalCredits",
|
|
17119
17140
|
"contextUsagePercent",
|
|
17120
17141
|
"outputTokensPerSecond",
|
|
17142
|
+
"sessionOutputTokensPerSecond",
|
|
17121
17143
|
"apiOutputTokensPerSecond",
|
|
17122
17144
|
"costSource",
|
|
17123
17145
|
"unpricedModels"
|
|
@@ -17140,6 +17162,7 @@ function parseHostUsage(value) {
|
|
|
17140
17162
|
for (const field2 of [
|
|
17141
17163
|
"totalCredits",
|
|
17142
17164
|
"contextUsagePercent",
|
|
17165
|
+
"sessionOutputTokensPerSecond",
|
|
17143
17166
|
"apiOutputTokensPerSecond"
|
|
17144
17167
|
]) {
|
|
17145
17168
|
const candidate = value[field2];
|
|
@@ -15059,13 +15059,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15059
15059
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15060
15060
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15061
15061
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15062
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15063
|
+
version: external_exports.literal(3).optional(),
|
|
15064
|
+
requestId: external_exports.string().min(1),
|
|
15065
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15066
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15067
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15068
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15069
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15062
15070
|
var usageMeasurementSchema = external_exports.object({
|
|
15071
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15063
15072
|
value: finiteNonNegativeNumberSchema,
|
|
15064
15073
|
turnId: external_exports.string().min(1).max(1024),
|
|
15065
15074
|
at: nonNegativeSafeIntegerSchema
|
|
15066
15075
|
}).strict();
|
|
15067
15076
|
var usageMeasurementsSchema = external_exports.object({
|
|
15068
|
-
|
|
15077
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
15078
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
15079
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15080
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15069
15081
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15070
15082
|
}).strict();
|
|
15071
15083
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15085,6 +15097,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15085
15097
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15086
15098
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15087
15099
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15100
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15088
15101
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15089
15102
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15090
15103
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15496,6 +15509,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15496
15509
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15497
15510
|
}).strict();
|
|
15498
15511
|
|
|
15512
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15513
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15514
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15515
|
+
|
|
15499
15516
|
// ../../shared-contracts/dist/client-channel.js
|
|
15500
15517
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15501
15518
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15635,7 +15652,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15635
15652
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15636
15653
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15637
15654
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15638
|
-
command: external_exports.object({
|
|
15655
|
+
command: external_exports.object({
|
|
15656
|
+
name: external_exports.string().min(1),
|
|
15657
|
+
turn: clientTurnSchema,
|
|
15658
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15659
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15660
|
+
}).optional(),
|
|
15639
15661
|
thread: external_exports.object({
|
|
15640
15662
|
id: external_exports.string().min(1),
|
|
15641
15663
|
cwd: external_exports.string(),
|
|
@@ -15843,7 +15865,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15843
15865
|
quotaUntil: external_exports.string().optional()
|
|
15844
15866
|
}).strict().optional()
|
|
15845
15867
|
}).strict();
|
|
15846
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15847
15868
|
|
|
15848
15869
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15849
15870
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17138,6 +17159,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17138
17159
|
"totalCredits",
|
|
17139
17160
|
"contextUsagePercent",
|
|
17140
17161
|
"outputTokensPerSecond",
|
|
17162
|
+
"sessionOutputTokensPerSecond",
|
|
17141
17163
|
"apiOutputTokensPerSecond",
|
|
17142
17164
|
"costSource",
|
|
17143
17165
|
"unpricedModels"
|
|
@@ -17160,6 +17182,7 @@ function parseHostUsage(value) {
|
|
|
17160
17182
|
for (const field2 of [
|
|
17161
17183
|
"totalCredits",
|
|
17162
17184
|
"contextUsagePercent",
|
|
17185
|
+
"sessionOutputTokensPerSecond",
|
|
17163
17186
|
"apiOutputTokensPerSecond"
|
|
17164
17187
|
]) {
|
|
17165
17188
|
const candidate = value[field2];
|
|
@@ -18483,7 +18506,7 @@ var ompDiscoverySpec = {
|
|
|
18483
18506
|
"/opt/homebrew/bin",
|
|
18484
18507
|
"/usr/local/bin"
|
|
18485
18508
|
],
|
|
18486
|
-
windows: ["${APPDATA}/npm", "~/.local/bin", VERSION_MANAGER_ROOTS]
|
|
18509
|
+
windows: ["${APPDATA}/npm", "${LOCALAPPDATA}/omp", "~/.local/bin", VERSION_MANAGER_ROOTS]
|
|
18487
18510
|
}
|
|
18488
18511
|
};
|
|
18489
18512
|
function resolveOmpExecutable(input, dependencies = {}) {
|
|
@@ -18969,6 +18992,7 @@ var OmpRpcSession = class {
|
|
|
18969
18992
|
#latestCacheHitRatePercent;
|
|
18970
18993
|
#manualCompaction = null;
|
|
18971
18994
|
#usageRequestStartedAtMs = null;
|
|
18995
|
+
#usageRequestTimingUnavailable = false;
|
|
18972
18996
|
#stderrTail = "";
|
|
18973
18997
|
#frameDecoder = new OmpFrameDecoder();
|
|
18974
18998
|
#startupFaultResolve = null;
|
|
@@ -19610,12 +19634,26 @@ var OmpRpcSession = class {
|
|
|
19610
19634
|
#observeUsage(value) {
|
|
19611
19635
|
if (value.type === "message_start") {
|
|
19612
19636
|
this.#usageRequestStartedAtMs = null;
|
|
19637
|
+
this.#usageRequestTimingUnavailable = false;
|
|
19613
19638
|
return;
|
|
19614
19639
|
}
|
|
19615
19640
|
if (value.type === "message_update") {
|
|
19616
19641
|
const event = value.assistantMessageEvent;
|
|
19617
|
-
if (this.#usageRequestStartedAtMs === null && isRecord8(event) && typeof event.type === "string"
|
|
19618
|
-
|
|
19642
|
+
if (this.#usageRequestStartedAtMs === null && !this.#usageRequestTimingUnavailable && isRecord8(event) && typeof event.type === "string") {
|
|
19643
|
+
if (
|
|
19644
|
+
// Native thinking starts can precede visible text by seconds; output usage includes it.
|
|
19645
|
+
/^(thinking|reasoning|thought)_start$/u.test(event.type) || /^(text|thinking|reasoning|thought)_delta$/u.test(event.type) && typeof event.delta === "string" && event.delta.length > 0
|
|
19646
|
+
)
|
|
19647
|
+
this.#usageRequestStartedAtMs = Date.now();
|
|
19648
|
+
else if (event.type === "toolcall_delta" && typeof event.delta === "string" && event.delta.length > 0) {
|
|
19649
|
+
try {
|
|
19650
|
+
JSON.parse(event.delta);
|
|
19651
|
+
this.#usageRequestTimingUnavailable = true;
|
|
19652
|
+
} catch {
|
|
19653
|
+
this.#usageRequestStartedAtMs = Date.now();
|
|
19654
|
+
}
|
|
19655
|
+
} else if (event.type === "toolcall_end")
|
|
19656
|
+
this.#usageRequestTimingUnavailable = true;
|
|
19619
19657
|
}
|
|
19620
19658
|
return;
|
|
19621
19659
|
}
|
|
@@ -15202,13 +15202,25 @@ var threadPermissionModeSelectParamsSchema = external_exports.object({
|
|
|
15202
15202
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15203
15203
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15204
15204
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15205
|
+
var usageOutputTimingSchema = external_exports.object({
|
|
15206
|
+
version: external_exports.literal(3).optional(),
|
|
15207
|
+
requestId: external_exports.string().min(1),
|
|
15208
|
+
turnId: external_exports.string().min(1).max(1024),
|
|
15209
|
+
outputTokens: nonNegativeSafeIntegerSchema,
|
|
15210
|
+
startedAtMs: nonNegativeSafeIntegerSchema,
|
|
15211
|
+
completedAtMs: nonNegativeSafeIntegerSchema
|
|
15212
|
+
}).strict().refine((value) => value.completedAtMs > value.startedAtMs);
|
|
15205
15213
|
var usageMeasurementSchema = external_exports.object({
|
|
15214
|
+
version: external_exports.union([external_exports.literal(2), external_exports.literal(3)]).optional(),
|
|
15206
15215
|
value: finiteNonNegativeNumberSchema,
|
|
15207
15216
|
turnId: external_exports.string().min(1).max(1024),
|
|
15208
15217
|
at: nonNegativeSafeIntegerSchema
|
|
15209
15218
|
}).strict();
|
|
15210
15219
|
var usageMeasurementsSchema = external_exports.object({
|
|
15211
|
-
|
|
15220
|
+
// Unversioned intervals can omit hidden thinking time; do not restore them into averages.
|
|
15221
|
+
outputTimings: external_exports.array(usageOutputTimingSchema).transform((values) => values.filter((value) => value.version === 3)).optional(),
|
|
15222
|
+
// Retain independent TTFT facts when dropping incompatible speed measurements.
|
|
15223
|
+
outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 3).optional().catch(void 0),
|
|
15212
15224
|
timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
|
|
15213
15225
|
}).strict();
|
|
15214
15226
|
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
@@ -15228,6 +15240,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15228
15240
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15229
15241
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15230
15242
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15243
|
+
sessionOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15231
15244
|
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15232
15245
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15233
15246
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15639,6 +15652,10 @@ var threadSteeringInspectResultSchema = external_exports.object({
|
|
|
15639
15652
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15640
15653
|
}).strict();
|
|
15641
15654
|
|
|
15655
|
+
// ../../shared-contracts/dist/thread-archive-confirm.js
|
|
15656
|
+
var threadArchiveConfirmParamsSchema = external_exports.object({ threadId: hostThreadIdSchema }).strict();
|
|
15657
|
+
var threadArchiveConfirmResultSchema = external_exports.object({ confirmed: external_exports.boolean() }).strict();
|
|
15658
|
+
|
|
15642
15659
|
// ../../shared-contracts/dist/client-channel.js
|
|
15643
15660
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15644
15661
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -15778,7 +15795,12 @@ var clientThreadSnapshotSchema = external_exports.object({
|
|
|
15778
15795
|
/** Current interruptible Host Turn, including command Turns omitted from client history. */
|
|
15779
15796
|
activeTurnId: external_exports.string().min(1).nullable().optional(),
|
|
15780
15797
|
/** Most recent explicit command in this Host process; not native conversation history. */
|
|
15781
|
-
command: external_exports.object({
|
|
15798
|
+
command: external_exports.object({
|
|
15799
|
+
name: external_exports.string().min(1),
|
|
15800
|
+
turn: clientTurnSchema,
|
|
15801
|
+
/** First ordinary Turn started after this command; its retained result is not a new event. */
|
|
15802
|
+
subsequentTurnId: external_exports.string().min(1).optional()
|
|
15803
|
+
}).optional(),
|
|
15782
15804
|
thread: external_exports.object({
|
|
15783
15805
|
id: external_exports.string().min(1),
|
|
15784
15806
|
cwd: external_exports.string(),
|
|
@@ -15986,7 +16008,6 @@ var webAccessStateSchema = external_exports.object({
|
|
|
15986
16008
|
quotaUntil: external_exports.string().optional()
|
|
15987
16009
|
}).strict().optional()
|
|
15988
16010
|
}).strict();
|
|
15989
|
-
var webLocalAccessRequiredDetailsSchema = external_exports.object({ url: external_exports.string() }).strict();
|
|
15990
16011
|
|
|
15991
16012
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15992
16013
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
@@ -17281,6 +17302,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
17281
17302
|
"totalCredits",
|
|
17282
17303
|
"contextUsagePercent",
|
|
17283
17304
|
"outputTokensPerSecond",
|
|
17305
|
+
"sessionOutputTokensPerSecond",
|
|
17284
17306
|
"apiOutputTokensPerSecond",
|
|
17285
17307
|
"costSource",
|
|
17286
17308
|
"unpricedModels"
|
|
@@ -17303,6 +17325,7 @@ function parseHostUsage(value) {
|
|
|
17303
17325
|
for (const field2 of [
|
|
17304
17326
|
"totalCredits",
|
|
17305
17327
|
"contextUsagePercent",
|
|
17328
|
+
"sessionOutputTokensPerSecond",
|
|
17306
17329
|
"apiOutputTokensPerSecond"
|
|
17307
17330
|
]) {
|
|
17308
17331
|
const candidate2 = value[field2];
|