@karlorz/codexhost-cli-win32-x64 0.15.0-1 → 0.16.1-2
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 +60 -25
- package/app/console-web.js +143 -57
- package/app/cpa-live-voice-hook.js +122 -33
- package/app/desktop-controller.mjs +733 -53
- package/app/host-runtime.mjs +11173 -10140
- package/app/plugins/antigravity/plugin.mjs +73 -29
- package/app/plugins/claude-code/plugin.mjs +104 -72
- package/app/plugins/codebuddy/plugin.mjs +113 -34
- package/app/plugins/codex-usage/plugin.mjs +65 -31
- package/app/plugins/copilot/plugin.mjs +73 -29
- package/app/plugins/cursor-cli/plugin.mjs +70 -26
- package/app/plugins/deepseek-harness/plugin.mjs +88 -34
- package/app/plugins/grok/plugin.mjs +1621 -504
- package/app/plugins/hermes/plugin.mjs +68 -24
- package/app/plugins/kimi-code/plugin.mjs +70 -26
- package/app/plugins/kiro-cli/plugin.mjs +70 -26
- package/app/plugins/omp/plugin.mjs +71 -27
- package/app/plugins/opencode/plugin.mjs +84 -30
- package/app/plugins/pi/plugin.mjs +87 -31
- package/app/plugins/qoder/plugin.mjs +96 -52
- package/app/plugins/qoder-cn/plugin.mjs +96 -52
- package/app/plugins/workbuddy/plugin.mjs +113 -34
- package/app/plugins/zcode/plugin.mjs +144 -47
- package/app/renderer-extension.js +1907 -222
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
|
@@ -5008,8 +5008,8 @@ function az_default() {
|
|
|
5008
5008
|
}
|
|
5009
5009
|
|
|
5010
5010
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
5011
|
-
function getBelarusianPlural(
|
|
5012
|
-
const absCount = Math.abs(
|
|
5011
|
+
function getBelarusianPlural(count3, one, few, many) {
|
|
5012
|
+
const absCount = Math.abs(count3);
|
|
5013
5013
|
const lastDigit = absCount % 10;
|
|
5014
5014
|
const lastTwoDigits = absCount % 100;
|
|
5015
5015
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7087,8 +7087,8 @@ function hu_default() {
|
|
|
7087
7087
|
}
|
|
7088
7088
|
|
|
7089
7089
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7090
|
-
function getArmenianPlural(
|
|
7091
|
-
return Math.abs(
|
|
7090
|
+
function getArmenianPlural(count3, one, many) {
|
|
7091
|
+
return Math.abs(count3) === 1 ? one : many;
|
|
7092
7092
|
}
|
|
7093
7093
|
function withDefiniteArticle(word) {
|
|
7094
7094
|
if (!word)
|
|
@@ -9216,8 +9216,8 @@ function ro_default() {
|
|
|
9216
9216
|
}
|
|
9217
9217
|
|
|
9218
9218
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9219
|
-
function getRussianPlural(
|
|
9220
|
-
const absCount = Math.abs(
|
|
9219
|
+
function getRussianPlural(count3, one, few, many) {
|
|
9220
|
+
const absCount = Math.abs(count3);
|
|
9221
9221
|
const lastDigit = absCount % 10;
|
|
9222
9222
|
const lastTwoDigits = absCount % 100;
|
|
9223
9223
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -14886,6 +14886,33 @@ function date4(params) {
|
|
|
14886
14886
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14887
14887
|
config(en_default());
|
|
14888
14888
|
|
|
14889
|
+
// ../../shared-contracts/dist/goals.js
|
|
14890
|
+
var harnessGoalStatusSchema = external_exports.enum([
|
|
14891
|
+
"active",
|
|
14892
|
+
"paused",
|
|
14893
|
+
"blocked",
|
|
14894
|
+
"usageLimited",
|
|
14895
|
+
"budgetLimited",
|
|
14896
|
+
"complete"
|
|
14897
|
+
]);
|
|
14898
|
+
var count = external_exports.number().int().nonnegative().safe();
|
|
14899
|
+
var harnessGoalSchema = external_exports.object({
|
|
14900
|
+
objective: external_exports.string().min(1),
|
|
14901
|
+
status: harnessGoalStatusSchema,
|
|
14902
|
+
tokenBudget: count.positive().nullable(),
|
|
14903
|
+
tokensUsed: count,
|
|
14904
|
+
timeUsedSeconds: count,
|
|
14905
|
+
createdAt: count,
|
|
14906
|
+
updatedAt: count
|
|
14907
|
+
});
|
|
14908
|
+
var goalOriginSchema = external_exports.enum(["user", "automatic"]).nullable();
|
|
14909
|
+
var harnessGoalSetSchema = external_exports.object({
|
|
14910
|
+
objective: external_exports.string().min(1).optional(),
|
|
14911
|
+
status: external_exports.enum(["active", "paused"]).optional(),
|
|
14912
|
+
tokenBudget: count.positive().nullable().optional(),
|
|
14913
|
+
origin: goalOriginSchema
|
|
14914
|
+
});
|
|
14915
|
+
|
|
14889
14916
|
// ../../shared-contracts/dist/delegation-read.js
|
|
14890
14917
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
14891
14918
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
@@ -15016,7 +15043,7 @@ var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
|
15016
15043
|
|
|
15017
15044
|
// ../../shared-contracts/dist/usage-statistics.js
|
|
15018
15045
|
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
15019
|
-
var
|
|
15046
|
+
var count2 = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15020
15047
|
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15021
15048
|
var harness = external_exports.string().min(1).max(128);
|
|
15022
15049
|
var model = external_exports.string().min(1).max(512);
|
|
@@ -15039,22 +15066,24 @@ var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
|
15039
15066
|
date: localDate.optional()
|
|
15040
15067
|
});
|
|
15041
15068
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15042
|
-
requests:
|
|
15043
|
-
inputTokens:
|
|
15044
|
-
cachedInputTokens:
|
|
15045
|
-
cacheWriteInputTokens:
|
|
15046
|
-
cacheKnownInputTokens:
|
|
15047
|
-
|
|
15048
|
-
|
|
15069
|
+
requests: count2,
|
|
15070
|
+
inputTokens: count2,
|
|
15071
|
+
cachedInputTokens: count2,
|
|
15072
|
+
cacheWriteInputTokens: count2,
|
|
15073
|
+
cacheKnownInputTokens: count2,
|
|
15074
|
+
cacheHitCachedInputTokens: count2,
|
|
15075
|
+
cacheHitInputTokens: count2,
|
|
15076
|
+
outputTokens: count2,
|
|
15077
|
+
reasoningOutputTokens: count2,
|
|
15049
15078
|
/** USD at the public price, summed over the priced requests only. */
|
|
15050
15079
|
costUsd: external_exports.number().finite().min(0),
|
|
15051
15080
|
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15052
|
-
unpricedRequests:
|
|
15081
|
+
unpricedRequests: count2,
|
|
15053
15082
|
/**
|
|
15054
15083
|
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15055
15084
|
* cost, and not as unpriced.
|
|
15056
15085
|
*/
|
|
15057
|
-
unmeteredRequests:
|
|
15086
|
+
unmeteredRequests: count2
|
|
15058
15087
|
});
|
|
15059
15088
|
var totals = usageStatisticsTotalsSchema.shape;
|
|
15060
15089
|
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
@@ -15065,8 +15094,8 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15065
15094
|
title: external_exports.string().min(1).max(200).optional(),
|
|
15066
15095
|
/** Models the session used, most requests first. */
|
|
15067
15096
|
models: external_exports.array(model).max(16),
|
|
15068
|
-
firstAtMs:
|
|
15069
|
-
lastAtMs:
|
|
15097
|
+
firstAtMs: count2,
|
|
15098
|
+
lastAtMs: count2,
|
|
15070
15099
|
...totals
|
|
15071
15100
|
});
|
|
15072
15101
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
@@ -15084,7 +15113,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15084
15113
|
date: localDate.nullable()
|
|
15085
15114
|
}),
|
|
15086
15115
|
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15087
|
-
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources:
|
|
15116
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count2, read: count2 }),
|
|
15088
15117
|
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15089
15118
|
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15090
15119
|
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
@@ -15104,8 +15133,8 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15104
15133
|
harness,
|
|
15105
15134
|
model: model.nullable(),
|
|
15106
15135
|
credits: external_exports.number().finite().min(0),
|
|
15107
|
-
reportedRequests:
|
|
15108
|
-
requests:
|
|
15136
|
+
reportedRequests: count2,
|
|
15137
|
+
requests: count2
|
|
15109
15138
|
})).max(4096).optional(),
|
|
15110
15139
|
/** All filters applied. */
|
|
15111
15140
|
totals: usageStatisticsTotalsSchema,
|
|
@@ -15122,7 +15151,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15122
15151
|
model: model.nullable(),
|
|
15123
15152
|
...totals,
|
|
15124
15153
|
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15125
|
-
harnessPricedRequests:
|
|
15154
|
+
harnessPricedRequests: count2
|
|
15126
15155
|
})).max(4096),
|
|
15127
15156
|
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15128
15157
|
/**
|
|
@@ -15736,7 +15765,9 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15736
15765
|
var harnessHistoryCapabilitiesSchema = external_exports.object({
|
|
15737
15766
|
fork: external_exports.boolean(),
|
|
15738
15767
|
forkAcrossCwd: external_exports.boolean(),
|
|
15739
|
-
rollbackLastTurn: external_exports.boolean()
|
|
15768
|
+
rollbackLastTurn: external_exports.boolean(),
|
|
15769
|
+
/** Remove the selected checkpoint's Turn and every later Turn, without restoring files. */
|
|
15770
|
+
rollbackToCheckpoint: external_exports.boolean().optional()
|
|
15740
15771
|
}).strict().refine((history) => history.fork || !history.forkAcrossCwd, {
|
|
15741
15772
|
path: ["forkAcrossCwd"],
|
|
15742
15773
|
message: "Cross-cwd Fork requires exact history Fork support"
|
|
@@ -15974,7 +16005,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15974
16005
|
harnessId: harnessPluginIdSchema,
|
|
15975
16006
|
model: harnessModelRefSchema.optional(),
|
|
15976
16007
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15977
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
16008
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
16009
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
16010
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
16011
|
+
prewarm: external_exports.literal(true).optional()
|
|
15978
16012
|
}).strict();
|
|
15979
16013
|
|
|
15980
16014
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -20442,6 +20476,16 @@ var HermesAdapter = class {
|
|
|
20442
20476
|
return this.#inventoryRead;
|
|
20443
20477
|
}
|
|
20444
20478
|
async open(input) {
|
|
20479
|
+
if (input.kind === "rollbackToCheckpoint") {
|
|
20480
|
+
return {
|
|
20481
|
+
ok: false,
|
|
20482
|
+
error: {
|
|
20483
|
+
code: "unsupported",
|
|
20484
|
+
message: "Checkpoint rollback is not supported by this Adapter",
|
|
20485
|
+
retryable: false
|
|
20486
|
+
}
|
|
20487
|
+
};
|
|
20488
|
+
}
|
|
20445
20489
|
if (this.#closed)
|
|
20446
20490
|
return failure("invalidState", "Hermes Adapter is closed");
|
|
20447
20491
|
if (typeof input.cwd !== "string" || input.cwd.trim().length === 0)
|
|
@@ -5128,8 +5128,8 @@ function az_default() {
|
|
|
5128
5128
|
}
|
|
5129
5129
|
|
|
5130
5130
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
5131
|
-
function getBelarusianPlural(
|
|
5132
|
-
const absCount = Math.abs(
|
|
5131
|
+
function getBelarusianPlural(count3, one, few, many) {
|
|
5132
|
+
const absCount = Math.abs(count3);
|
|
5133
5133
|
const lastDigit = absCount % 10;
|
|
5134
5134
|
const lastTwoDigits = absCount % 100;
|
|
5135
5135
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7207,8 +7207,8 @@ function hu_default() {
|
|
|
7207
7207
|
}
|
|
7208
7208
|
|
|
7209
7209
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7210
|
-
function getArmenianPlural(
|
|
7211
|
-
return Math.abs(
|
|
7210
|
+
function getArmenianPlural(count3, one, many) {
|
|
7211
|
+
return Math.abs(count3) === 1 ? one : many;
|
|
7212
7212
|
}
|
|
7213
7213
|
function withDefiniteArticle(word) {
|
|
7214
7214
|
if (!word)
|
|
@@ -9336,8 +9336,8 @@ function ro_default() {
|
|
|
9336
9336
|
}
|
|
9337
9337
|
|
|
9338
9338
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9339
|
-
function getRussianPlural(
|
|
9340
|
-
const absCount = Math.abs(
|
|
9339
|
+
function getRussianPlural(count3, one, few, many) {
|
|
9340
|
+
const absCount = Math.abs(count3);
|
|
9341
9341
|
const lastDigit = absCount % 10;
|
|
9342
9342
|
const lastTwoDigits = absCount % 100;
|
|
9343
9343
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -15006,6 +15006,33 @@ function date4(params) {
|
|
|
15006
15006
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
15007
15007
|
config(en_default());
|
|
15008
15008
|
|
|
15009
|
+
// ../../shared-contracts/dist/goals.js
|
|
15010
|
+
var harnessGoalStatusSchema = external_exports.enum([
|
|
15011
|
+
"active",
|
|
15012
|
+
"paused",
|
|
15013
|
+
"blocked",
|
|
15014
|
+
"usageLimited",
|
|
15015
|
+
"budgetLimited",
|
|
15016
|
+
"complete"
|
|
15017
|
+
]);
|
|
15018
|
+
var count = external_exports.number().int().nonnegative().safe();
|
|
15019
|
+
var harnessGoalSchema = external_exports.object({
|
|
15020
|
+
objective: external_exports.string().min(1),
|
|
15021
|
+
status: harnessGoalStatusSchema,
|
|
15022
|
+
tokenBudget: count.positive().nullable(),
|
|
15023
|
+
tokensUsed: count,
|
|
15024
|
+
timeUsedSeconds: count,
|
|
15025
|
+
createdAt: count,
|
|
15026
|
+
updatedAt: count
|
|
15027
|
+
});
|
|
15028
|
+
var goalOriginSchema = external_exports.enum(["user", "automatic"]).nullable();
|
|
15029
|
+
var harnessGoalSetSchema = external_exports.object({
|
|
15030
|
+
objective: external_exports.string().min(1).optional(),
|
|
15031
|
+
status: external_exports.enum(["active", "paused"]).optional(),
|
|
15032
|
+
tokenBudget: count.positive().nullable().optional(),
|
|
15033
|
+
origin: goalOriginSchema
|
|
15034
|
+
});
|
|
15035
|
+
|
|
15009
15036
|
// ../../shared-contracts/dist/delegation-read.js
|
|
15010
15037
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
15011
15038
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
@@ -15136,7 +15163,7 @@ var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
|
15136
15163
|
|
|
15137
15164
|
// ../../shared-contracts/dist/usage-statistics.js
|
|
15138
15165
|
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
15139
|
-
var
|
|
15166
|
+
var count2 = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15140
15167
|
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15141
15168
|
var harness = external_exports.string().min(1).max(128);
|
|
15142
15169
|
var model = external_exports.string().min(1).max(512);
|
|
@@ -15159,22 +15186,24 @@ var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
|
15159
15186
|
date: localDate.optional()
|
|
15160
15187
|
});
|
|
15161
15188
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15162
|
-
requests:
|
|
15163
|
-
inputTokens:
|
|
15164
|
-
cachedInputTokens:
|
|
15165
|
-
cacheWriteInputTokens:
|
|
15166
|
-
cacheKnownInputTokens:
|
|
15167
|
-
|
|
15168
|
-
|
|
15189
|
+
requests: count2,
|
|
15190
|
+
inputTokens: count2,
|
|
15191
|
+
cachedInputTokens: count2,
|
|
15192
|
+
cacheWriteInputTokens: count2,
|
|
15193
|
+
cacheKnownInputTokens: count2,
|
|
15194
|
+
cacheHitCachedInputTokens: count2,
|
|
15195
|
+
cacheHitInputTokens: count2,
|
|
15196
|
+
outputTokens: count2,
|
|
15197
|
+
reasoningOutputTokens: count2,
|
|
15169
15198
|
/** USD at the public price, summed over the priced requests only. */
|
|
15170
15199
|
costUsd: external_exports.number().finite().min(0),
|
|
15171
15200
|
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15172
|
-
unpricedRequests:
|
|
15201
|
+
unpricedRequests: count2,
|
|
15173
15202
|
/**
|
|
15174
15203
|
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15175
15204
|
* cost, and not as unpriced.
|
|
15176
15205
|
*/
|
|
15177
|
-
unmeteredRequests:
|
|
15206
|
+
unmeteredRequests: count2
|
|
15178
15207
|
});
|
|
15179
15208
|
var totals = usageStatisticsTotalsSchema.shape;
|
|
15180
15209
|
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
@@ -15185,8 +15214,8 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15185
15214
|
title: external_exports.string().min(1).max(200).optional(),
|
|
15186
15215
|
/** Models the session used, most requests first. */
|
|
15187
15216
|
models: external_exports.array(model).max(16),
|
|
15188
|
-
firstAtMs:
|
|
15189
|
-
lastAtMs:
|
|
15217
|
+
firstAtMs: count2,
|
|
15218
|
+
lastAtMs: count2,
|
|
15190
15219
|
...totals
|
|
15191
15220
|
});
|
|
15192
15221
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
@@ -15204,7 +15233,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15204
15233
|
date: localDate.nullable()
|
|
15205
15234
|
}),
|
|
15206
15235
|
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15207
|
-
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources:
|
|
15236
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count2, read: count2 }),
|
|
15208
15237
|
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15209
15238
|
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15210
15239
|
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
@@ -15224,8 +15253,8 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15224
15253
|
harness,
|
|
15225
15254
|
model: model.nullable(),
|
|
15226
15255
|
credits: external_exports.number().finite().min(0),
|
|
15227
|
-
reportedRequests:
|
|
15228
|
-
requests:
|
|
15256
|
+
reportedRequests: count2,
|
|
15257
|
+
requests: count2
|
|
15229
15258
|
})).max(4096).optional(),
|
|
15230
15259
|
/** All filters applied. */
|
|
15231
15260
|
totals: usageStatisticsTotalsSchema,
|
|
@@ -15242,7 +15271,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15242
15271
|
model: model.nullable(),
|
|
15243
15272
|
...totals,
|
|
15244
15273
|
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15245
|
-
harnessPricedRequests:
|
|
15274
|
+
harnessPricedRequests: count2
|
|
15246
15275
|
})).max(4096),
|
|
15247
15276
|
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15248
15277
|
/**
|
|
@@ -15856,7 +15885,9 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15856
15885
|
var harnessHistoryCapabilitiesSchema = external_exports.object({
|
|
15857
15886
|
fork: external_exports.boolean(),
|
|
15858
15887
|
forkAcrossCwd: external_exports.boolean(),
|
|
15859
|
-
rollbackLastTurn: external_exports.boolean()
|
|
15888
|
+
rollbackLastTurn: external_exports.boolean(),
|
|
15889
|
+
/** Remove the selected checkpoint's Turn and every later Turn, without restoring files. */
|
|
15890
|
+
rollbackToCheckpoint: external_exports.boolean().optional()
|
|
15860
15891
|
}).strict().refine((history) => history.fork || !history.forkAcrossCwd, {
|
|
15861
15892
|
path: ["forkAcrossCwd"],
|
|
15862
15893
|
message: "Cross-cwd Fork requires exact history Fork support"
|
|
@@ -16094,7 +16125,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
16094
16125
|
harnessId: harnessPluginIdSchema,
|
|
16095
16126
|
model: harnessModelRefSchema.optional(),
|
|
16096
16127
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
16097
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
16128
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
16129
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
16130
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
16131
|
+
prewarm: external_exports.literal(true).optional()
|
|
16098
16132
|
}).strict();
|
|
16099
16133
|
|
|
16100
16134
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -19141,9 +19175,9 @@ var Connection = class {
|
|
|
19141
19175
|
return;
|
|
19142
19176
|
}
|
|
19143
19177
|
const responseBatch = isResponseBatch(batch);
|
|
19144
|
-
const responseCount = responseBatch ? 0 : batch.reduce((
|
|
19178
|
+
const responseCount = responseBatch ? 0 : batch.reduce((count3, message) => count3 + (isNotificationMessage(message) ? 0 : 1), 0);
|
|
19145
19179
|
let remaining = responseCount;
|
|
19146
|
-
let remainingNotifications = batch.reduce((
|
|
19180
|
+
let remainingNotifications = batch.reduce((count3, message) => count3 + (isNotificationMessage(message) ? 1 : 0), 0);
|
|
19147
19181
|
let responseSent = false;
|
|
19148
19182
|
const responses = [];
|
|
19149
19183
|
const sendResponsesIfReady = async () => {
|
|
@@ -25641,6 +25675,16 @@ var KimiAdapter = class {
|
|
|
25641
25675
|
return inspection;
|
|
25642
25676
|
}
|
|
25643
25677
|
async open(input) {
|
|
25678
|
+
if (input.kind === "rollbackToCheckpoint") {
|
|
25679
|
+
return {
|
|
25680
|
+
ok: false,
|
|
25681
|
+
error: {
|
|
25682
|
+
code: "unsupported",
|
|
25683
|
+
message: "Checkpoint rollback is not supported by this Adapter",
|
|
25684
|
+
retryable: false
|
|
25685
|
+
}
|
|
25686
|
+
};
|
|
25687
|
+
}
|
|
25644
25688
|
if (this.#closed) {
|
|
25645
25689
|
return err2("invalidState", "Adapter is closed");
|
|
25646
25690
|
}
|
|
@@ -4987,8 +4987,8 @@ function az_default() {
|
|
|
4987
4987
|
}
|
|
4988
4988
|
|
|
4989
4989
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
4990
|
-
function getBelarusianPlural(
|
|
4991
|
-
const absCount = Math.abs(
|
|
4990
|
+
function getBelarusianPlural(count3, one, few, many) {
|
|
4991
|
+
const absCount = Math.abs(count3);
|
|
4992
4992
|
const lastDigit = absCount % 10;
|
|
4993
4993
|
const lastTwoDigits = absCount % 100;
|
|
4994
4994
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7066,8 +7066,8 @@ function hu_default() {
|
|
|
7066
7066
|
}
|
|
7067
7067
|
|
|
7068
7068
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7069
|
-
function getArmenianPlural(
|
|
7070
|
-
return Math.abs(
|
|
7069
|
+
function getArmenianPlural(count3, one, many) {
|
|
7070
|
+
return Math.abs(count3) === 1 ? one : many;
|
|
7071
7071
|
}
|
|
7072
7072
|
function withDefiniteArticle(word) {
|
|
7073
7073
|
if (!word)
|
|
@@ -9195,8 +9195,8 @@ function ro_default() {
|
|
|
9195
9195
|
}
|
|
9196
9196
|
|
|
9197
9197
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9198
|
-
function getRussianPlural(
|
|
9199
|
-
const absCount = Math.abs(
|
|
9198
|
+
function getRussianPlural(count3, one, few, many) {
|
|
9199
|
+
const absCount = Math.abs(count3);
|
|
9200
9200
|
const lastDigit = absCount % 10;
|
|
9201
9201
|
const lastTwoDigits = absCount % 100;
|
|
9202
9202
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -14865,6 +14865,33 @@ function date4(params) {
|
|
|
14865
14865
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14866
14866
|
config(en_default());
|
|
14867
14867
|
|
|
14868
|
+
// ../../shared-contracts/dist/goals.js
|
|
14869
|
+
var harnessGoalStatusSchema = external_exports.enum([
|
|
14870
|
+
"active",
|
|
14871
|
+
"paused",
|
|
14872
|
+
"blocked",
|
|
14873
|
+
"usageLimited",
|
|
14874
|
+
"budgetLimited",
|
|
14875
|
+
"complete"
|
|
14876
|
+
]);
|
|
14877
|
+
var count = external_exports.number().int().nonnegative().safe();
|
|
14878
|
+
var harnessGoalSchema = external_exports.object({
|
|
14879
|
+
objective: external_exports.string().min(1),
|
|
14880
|
+
status: harnessGoalStatusSchema,
|
|
14881
|
+
tokenBudget: count.positive().nullable(),
|
|
14882
|
+
tokensUsed: count,
|
|
14883
|
+
timeUsedSeconds: count,
|
|
14884
|
+
createdAt: count,
|
|
14885
|
+
updatedAt: count
|
|
14886
|
+
});
|
|
14887
|
+
var goalOriginSchema = external_exports.enum(["user", "automatic"]).nullable();
|
|
14888
|
+
var harnessGoalSetSchema = external_exports.object({
|
|
14889
|
+
objective: external_exports.string().min(1).optional(),
|
|
14890
|
+
status: external_exports.enum(["active", "paused"]).optional(),
|
|
14891
|
+
tokenBudget: count.positive().nullable().optional(),
|
|
14892
|
+
origin: goalOriginSchema
|
|
14893
|
+
});
|
|
14894
|
+
|
|
14868
14895
|
// ../../shared-contracts/dist/delegation-read.js
|
|
14869
14896
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
14870
14897
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
@@ -14995,7 +15022,7 @@ var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
|
14995
15022
|
|
|
14996
15023
|
// ../../shared-contracts/dist/usage-statistics.js
|
|
14997
15024
|
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
14998
|
-
var
|
|
15025
|
+
var count2 = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
14999
15026
|
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15000
15027
|
var harness = external_exports.string().min(1).max(128);
|
|
15001
15028
|
var model = external_exports.string().min(1).max(512);
|
|
@@ -15018,22 +15045,24 @@ var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
|
15018
15045
|
date: localDate.optional()
|
|
15019
15046
|
});
|
|
15020
15047
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15021
|
-
requests:
|
|
15022
|
-
inputTokens:
|
|
15023
|
-
cachedInputTokens:
|
|
15024
|
-
cacheWriteInputTokens:
|
|
15025
|
-
cacheKnownInputTokens:
|
|
15026
|
-
|
|
15027
|
-
|
|
15048
|
+
requests: count2,
|
|
15049
|
+
inputTokens: count2,
|
|
15050
|
+
cachedInputTokens: count2,
|
|
15051
|
+
cacheWriteInputTokens: count2,
|
|
15052
|
+
cacheKnownInputTokens: count2,
|
|
15053
|
+
cacheHitCachedInputTokens: count2,
|
|
15054
|
+
cacheHitInputTokens: count2,
|
|
15055
|
+
outputTokens: count2,
|
|
15056
|
+
reasoningOutputTokens: count2,
|
|
15028
15057
|
/** USD at the public price, summed over the priced requests only. */
|
|
15029
15058
|
costUsd: external_exports.number().finite().min(0),
|
|
15030
15059
|
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15031
|
-
unpricedRequests:
|
|
15060
|
+
unpricedRequests: count2,
|
|
15032
15061
|
/**
|
|
15033
15062
|
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15034
15063
|
* cost, and not as unpriced.
|
|
15035
15064
|
*/
|
|
15036
|
-
unmeteredRequests:
|
|
15065
|
+
unmeteredRequests: count2
|
|
15037
15066
|
});
|
|
15038
15067
|
var totals = usageStatisticsTotalsSchema.shape;
|
|
15039
15068
|
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
@@ -15044,8 +15073,8 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15044
15073
|
title: external_exports.string().min(1).max(200).optional(),
|
|
15045
15074
|
/** Models the session used, most requests first. */
|
|
15046
15075
|
models: external_exports.array(model).max(16),
|
|
15047
|
-
firstAtMs:
|
|
15048
|
-
lastAtMs:
|
|
15076
|
+
firstAtMs: count2,
|
|
15077
|
+
lastAtMs: count2,
|
|
15049
15078
|
...totals
|
|
15050
15079
|
});
|
|
15051
15080
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
@@ -15063,7 +15092,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15063
15092
|
date: localDate.nullable()
|
|
15064
15093
|
}),
|
|
15065
15094
|
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15066
|
-
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources:
|
|
15095
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count2, read: count2 }),
|
|
15067
15096
|
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15068
15097
|
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15069
15098
|
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
@@ -15083,8 +15112,8 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15083
15112
|
harness,
|
|
15084
15113
|
model: model.nullable(),
|
|
15085
15114
|
credits: external_exports.number().finite().min(0),
|
|
15086
|
-
reportedRequests:
|
|
15087
|
-
requests:
|
|
15115
|
+
reportedRequests: count2,
|
|
15116
|
+
requests: count2
|
|
15088
15117
|
})).max(4096).optional(),
|
|
15089
15118
|
/** All filters applied. */
|
|
15090
15119
|
totals: usageStatisticsTotalsSchema,
|
|
@@ -15101,7 +15130,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15101
15130
|
model: model.nullable(),
|
|
15102
15131
|
...totals,
|
|
15103
15132
|
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15104
|
-
harnessPricedRequests:
|
|
15133
|
+
harnessPricedRequests: count2
|
|
15105
15134
|
})).max(4096),
|
|
15106
15135
|
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15107
15136
|
/**
|
|
@@ -15715,7 +15744,9 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15715
15744
|
var harnessHistoryCapabilitiesSchema = external_exports.object({
|
|
15716
15745
|
fork: external_exports.boolean(),
|
|
15717
15746
|
forkAcrossCwd: external_exports.boolean(),
|
|
15718
|
-
rollbackLastTurn: external_exports.boolean()
|
|
15747
|
+
rollbackLastTurn: external_exports.boolean(),
|
|
15748
|
+
/** Remove the selected checkpoint's Turn and every later Turn, without restoring files. */
|
|
15749
|
+
rollbackToCheckpoint: external_exports.boolean().optional()
|
|
15719
15750
|
}).strict().refine((history) => history.fork || !history.forkAcrossCwd, {
|
|
15720
15751
|
path: ["forkAcrossCwd"],
|
|
15721
15752
|
message: "Cross-cwd Fork requires exact history Fork support"
|
|
@@ -15953,7 +15984,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15953
15984
|
harnessId: harnessPluginIdSchema,
|
|
15954
15985
|
model: harnessModelRefSchema.optional(),
|
|
15955
15986
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15956
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15987
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15988
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15989
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15990
|
+
prewarm: external_exports.literal(true).optional()
|
|
15957
15991
|
}).strict();
|
|
15958
15992
|
|
|
15959
15993
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -19122,9 +19156,9 @@ var Connection = class {
|
|
|
19122
19156
|
return;
|
|
19123
19157
|
}
|
|
19124
19158
|
const responseBatch = isResponseBatch(batch);
|
|
19125
|
-
const responseCount = responseBatch ? 0 : batch.reduce((
|
|
19159
|
+
const responseCount = responseBatch ? 0 : batch.reduce((count3, message) => count3 + (isNotificationMessage(message) ? 0 : 1), 0);
|
|
19126
19160
|
let remaining = responseCount;
|
|
19127
|
-
let remainingNotifications = batch.reduce((
|
|
19161
|
+
let remainingNotifications = batch.reduce((count3, message) => count3 + (isNotificationMessage(message) ? 1 : 0), 0);
|
|
19128
19162
|
let responseSent = false;
|
|
19129
19163
|
const responses = [];
|
|
19130
19164
|
const sendResponsesIfReady = async () => {
|
|
@@ -23704,6 +23738,16 @@ var KiroAdapter = class {
|
|
|
23704
23738
|
}
|
|
23705
23739
|
}
|
|
23706
23740
|
async open(input) {
|
|
23741
|
+
if (input.kind === "rollbackToCheckpoint") {
|
|
23742
|
+
return {
|
|
23743
|
+
ok: false,
|
|
23744
|
+
error: {
|
|
23745
|
+
code: "unsupported",
|
|
23746
|
+
message: "Checkpoint rollback is not supported by this Adapter",
|
|
23747
|
+
retryable: false
|
|
23748
|
+
}
|
|
23749
|
+
};
|
|
23750
|
+
}
|
|
23707
23751
|
if (input.kind === "create" && input.executionPolicy === "unattended-full-access") {
|
|
23708
23752
|
return {
|
|
23709
23753
|
ok: false,
|