@liberseek/boft-cli-win32-arm64 0.8.3 → 0.8.5
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 +117 -13
- package/app/console-web.js +713 -129
- package/app/desktop-controller.mjs +713 -42
- package/app/host-runtime.mjs +2535 -855
- package/app/plugins/antigravity/plugin.mjs +437 -67
- package/app/plugins/claude-code/plugin.mjs +758 -248
- package/app/plugins/codebuddy/plugin.mjs +348 -156
- package/app/plugins/codex-usage/plugin.mjs +258 -106
- package/app/plugins/copilot/assets/icon.png +0 -0
- package/app/plugins/copilot/manifest.json +26 -0
- package/app/plugins/copilot/plugin.mjs +34651 -0
- package/app/plugins/cursor-cli/plugin.mjs +20905 -44961
- package/app/plugins/deepseek-harness/plugin.mjs +195 -53
- package/app/plugins/enabled.json +1 -0
- package/app/plugins/grok/plugin.mjs +584 -138
- package/app/plugins/hermes/plugin.mjs +134 -13
- package/app/plugins/kimi-code/plugin.mjs +145 -26
- package/app/plugins/kiro-cli/plugin.mjs +145 -26
- package/app/plugins/muse/plugin.mjs +132 -14
- package/app/plugins/omp/plugin.mjs +2245 -2040
- package/app/plugins/opencode/plugin.mjs +196 -72
- package/app/plugins/pi/plugin.mjs +2643 -2309
- package/app/plugins/qoder/plugin.mjs +162 -40
- package/app/plugins/qoder-cn/plugin.mjs +162 -40
- package/app/plugins/workbuddy/plugin.mjs +609 -180
- package/app/plugins/zcode/plugin.mjs +192 -44
- package/app/renderer-extension.js +3405 -429
- package/bin/boft.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +0 -0
- package/package.json +1 -1
|
@@ -3380,10 +3380,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3380
3380
|
const shape = def.shape;
|
|
3381
3381
|
const propValues = {};
|
|
3382
3382
|
for (const key in shape) {
|
|
3383
|
-
const
|
|
3384
|
-
if (
|
|
3383
|
+
const field2 = shape[key]._zod;
|
|
3384
|
+
if (field2.values) {
|
|
3385
3385
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3386
|
-
for (const v of
|
|
3386
|
+
for (const v of field2.values)
|
|
3387
3387
|
propValues[key].add(v);
|
|
3388
3388
|
}
|
|
3389
3389
|
}
|
|
@@ -15002,10 +15002,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
15002
15002
|
var project = external_exports.string().min(1).max(4096);
|
|
15003
15003
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15004
15004
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15005
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
15006
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
15007
|
+
try {
|
|
15008
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
15009
|
+
return true;
|
|
15010
|
+
} catch {
|
|
15011
|
+
return false;
|
|
15012
|
+
}
|
|
15013
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
15005
15014
|
harness: harness.optional(),
|
|
15006
15015
|
model: model.nullable().optional(),
|
|
15007
15016
|
project: project.nullable().optional(),
|
|
15008
|
-
/** One
|
|
15017
|
+
/** One date in the query timezone inside the range. */
|
|
15009
15018
|
date: localDate.optional()
|
|
15010
15019
|
});
|
|
15011
15020
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -15014,6 +15023,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15014
15023
|
cachedInputTokens: count,
|
|
15015
15024
|
cacheWriteInputTokens: count,
|
|
15016
15025
|
cacheKnownInputTokens: count,
|
|
15026
|
+
cacheHitCachedInputTokens: count,
|
|
15027
|
+
cacheHitInputTokens: count,
|
|
15017
15028
|
outputTokens: count,
|
|
15018
15029
|
reasoningOutputTokens: count,
|
|
15019
15030
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15041,7 +15052,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15041
15052
|
});
|
|
15042
15053
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15043
15054
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15044
|
-
/** First
|
|
15055
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
15045
15056
|
from: localDate.nullable(),
|
|
15046
15057
|
to: localDate,
|
|
15047
15058
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -15081,7 +15092,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15081
15092
|
totals: usageStatisticsTotalsSchema,
|
|
15082
15093
|
/** Each date and Harness of the range: every filter except the day. */
|
|
15083
15094
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15084
|
-
/**
|
|
15095
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
15085
15096
|
hourly: external_exports.array(external_exports.strictObject({
|
|
15086
15097
|
weekday: external_exports.number().int().min(0).max(6),
|
|
15087
15098
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15121,6 +15132,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15121
15132
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15122
15133
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15123
15134
|
|
|
15135
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15136
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15137
|
+
external_exports.object({
|
|
15138
|
+
id: external_exports.string().min(1),
|
|
15139
|
+
type: external_exports.literal("choice"),
|
|
15140
|
+
prompt: external_exports.string(),
|
|
15141
|
+
options: external_exports.array(external_exports.object({
|
|
15142
|
+
value: external_exports.string().min(1),
|
|
15143
|
+
label: external_exports.string(),
|
|
15144
|
+
description: external_exports.string().optional()
|
|
15145
|
+
})).min(1),
|
|
15146
|
+
multiple: external_exports.boolean(),
|
|
15147
|
+
allowOther: external_exports.boolean(),
|
|
15148
|
+
optional: external_exports.boolean()
|
|
15149
|
+
}),
|
|
15150
|
+
external_exports.object({
|
|
15151
|
+
id: external_exports.string().min(1),
|
|
15152
|
+
type: external_exports.literal("text"),
|
|
15153
|
+
prompt: external_exports.string(),
|
|
15154
|
+
multiline: external_exports.boolean(),
|
|
15155
|
+
secret: external_exports.literal(false),
|
|
15156
|
+
optional: external_exports.boolean(),
|
|
15157
|
+
placeholder: external_exports.string().optional(),
|
|
15158
|
+
prefill: external_exports.string().optional()
|
|
15159
|
+
})
|
|
15160
|
+
]);
|
|
15161
|
+
var threadQuestionSchema = external_exports.object({
|
|
15162
|
+
interactionId: external_exports.string().min(1),
|
|
15163
|
+
turnId: external_exports.string().min(1),
|
|
15164
|
+
title: external_exports.string().optional(),
|
|
15165
|
+
questions: external_exports.array(field).min(1)
|
|
15166
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15167
|
+
message: "Shared cards require at least one multi-select question"
|
|
15168
|
+
});
|
|
15169
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15170
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15171
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15172
|
+
threadId: external_exports.string().min(1),
|
|
15173
|
+
turnId: external_exports.string().min(1),
|
|
15174
|
+
interactionId: external_exports.string().min(1),
|
|
15175
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15176
|
+
cancelled: external_exports.boolean().default(false)
|
|
15177
|
+
});
|
|
15178
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15179
|
+
|
|
15124
15180
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15125
15181
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15126
15182
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15223,6 +15279,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15223
15279
|
"codexhost/harness/display-settings/set",
|
|
15224
15280
|
"codexhost/harness/inspect",
|
|
15225
15281
|
"codexhost/harness/installation",
|
|
15282
|
+
"codexhost/harness/installation/start",
|
|
15283
|
+
"codexhost/harness/installation/status",
|
|
15226
15284
|
"codexhost/harness/launch-settings/get",
|
|
15227
15285
|
"codexhost/harness/launch-settings/set",
|
|
15228
15286
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15300,7 +15358,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15300
15358
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15301
15359
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15302
15360
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15361
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15362
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15363
|
+
kind: external_exports.literal("countdown"),
|
|
15364
|
+
id: external_exports.string().min(1).max(64),
|
|
15365
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15366
|
+
label: indicatorTextSchema(256).optional(),
|
|
15367
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15368
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15369
|
+
message: "Composer indicator IDs must be unique"
|
|
15370
|
+
});
|
|
15303
15371
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15372
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15304
15373
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15305
15374
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15306
15375
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15726,7 +15795,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15726
15795
|
}).strict().optional(),
|
|
15727
15796
|
input: external_exports.object({
|
|
15728
15797
|
image: external_exports.boolean()
|
|
15729
|
-
}).strict().optional()
|
|
15798
|
+
}).strict().optional(),
|
|
15799
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15800
|
+
steer: external_exports.boolean().optional()
|
|
15730
15801
|
}).strict();
|
|
15731
15802
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15732
15803
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15773,7 +15844,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15773
15844
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15774
15845
|
harnessId: harnessIdSchema,
|
|
15775
15846
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15776
|
-
refresh: external_exports.boolean().optional()
|
|
15847
|
+
refresh: external_exports.boolean().optional(),
|
|
15848
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15849
|
+
purpose: external_exports.literal("availability").optional()
|
|
15777
15850
|
}).strict();
|
|
15778
15851
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15779
15852
|
harnessId: harnessIdSchema
|
|
@@ -15858,13 +15931,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15858
15931
|
seen.add(thread.threadId);
|
|
15859
15932
|
}
|
|
15860
15933
|
});
|
|
15934
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
15935
|
+
threadId: hostThreadIdSchema,
|
|
15936
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15937
|
+
text: external_exports.string().optional()
|
|
15938
|
+
}).strict();
|
|
15939
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15940
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15941
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15942
|
+
}).strict();
|
|
15861
15943
|
|
|
15862
15944
|
// ../../shared-contracts/dist/harness-route.js
|
|
15863
15945
|
var harnessPluginRouteSchema = external_exports.object({
|
|
15864
15946
|
harnessId: harnessPluginIdSchema,
|
|
15865
15947
|
model: harnessModelRefSchema.optional(),
|
|
15866
15948
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15867
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15949
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15950
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15951
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15952
|
+
prewarm: external_exports.literal(true).optional()
|
|
15868
15953
|
}).strict();
|
|
15869
15954
|
|
|
15870
15955
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -15890,6 +15975,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15890
15975
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15891
15976
|
updateAvailable: external_exports.boolean(),
|
|
15892
15977
|
canUpdate: external_exports.boolean(),
|
|
15978
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
15979
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
15980
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
15981
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
15893
15982
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15894
15983
|
message: external_exports.string().max(2048).optional(),
|
|
15895
15984
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -15897,6 +15986,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15897
15986
|
notice: harnessLocalizedTextSchema.optional(),
|
|
15898
15987
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15899
15988
|
}).strict();
|
|
15989
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
15990
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
15991
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
15992
|
+
external_exports.object({
|
|
15993
|
+
taskId: external_exports.string().uuid(),
|
|
15994
|
+
status: external_exports.literal("succeeded"),
|
|
15995
|
+
result: harnessInstallationStateSchema
|
|
15996
|
+
}).strict(),
|
|
15997
|
+
external_exports.object({
|
|
15998
|
+
taskId: external_exports.string().uuid(),
|
|
15999
|
+
status: external_exports.literal("failed"),
|
|
16000
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
16001
|
+
}).strict()
|
|
16002
|
+
]);
|
|
15900
16003
|
|
|
15901
16004
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15902
16005
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16394,6 +16497,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16394
16497
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16395
16498
|
}
|
|
16396
16499
|
|
|
16500
|
+
// ../../harness-adapter/dist/steer.js
|
|
16501
|
+
function unsupportedSteer(harnessLabel) {
|
|
16502
|
+
return {
|
|
16503
|
+
ok: false,
|
|
16504
|
+
error: {
|
|
16505
|
+
code: "unsupported",
|
|
16506
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16507
|
+
retryable: false
|
|
16508
|
+
}
|
|
16509
|
+
};
|
|
16510
|
+
}
|
|
16511
|
+
|
|
16397
16512
|
// ../../harness-adapter/dist/usage.js
|
|
16398
16513
|
var tokenFields = [
|
|
16399
16514
|
"inputTokens",
|
|
@@ -16421,6 +16536,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16421
16536
|
...safeIntegerFields,
|
|
16422
16537
|
...percentFields,
|
|
16423
16538
|
"sessionCacheUsage",
|
|
16539
|
+
"composerIndicators",
|
|
16424
16540
|
"totalCostUsd",
|
|
16425
16541
|
"totalCredits",
|
|
16426
16542
|
"contextUsagePercent",
|
|
@@ -16443,26 +16559,27 @@ function parseHostUsage(value) {
|
|
|
16443
16559
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
16444
16560
|
}
|
|
16445
16561
|
}
|
|
16446
|
-
|
|
16562
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
16563
|
+
for (const field2 of [
|
|
16447
16564
|
"totalCredits",
|
|
16448
16565
|
"contextUsagePercent",
|
|
16449
16566
|
"apiOutputTokensPerSecond"
|
|
16450
16567
|
]) {
|
|
16451
|
-
const candidate = value[
|
|
16568
|
+
const candidate = value[field2];
|
|
16452
16569
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16453
|
-
throw new Error(`Harness Usage '${
|
|
16570
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16454
16571
|
}
|
|
16455
16572
|
}
|
|
16456
|
-
for (const
|
|
16457
|
-
const candidate = value[
|
|
16573
|
+
for (const field2 of tokenFields) {
|
|
16574
|
+
const candidate = value[field2];
|
|
16458
16575
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16459
|
-
throw new Error(`Harness Usage '${
|
|
16576
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16460
16577
|
}
|
|
16461
16578
|
}
|
|
16462
|
-
for (const
|
|
16463
|
-
const candidate = value[
|
|
16579
|
+
for (const field2 of safeIntegerFields) {
|
|
16580
|
+
const candidate = value[field2];
|
|
16464
16581
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16465
|
-
throw new Error(`Harness Usage '${
|
|
16582
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16466
16583
|
}
|
|
16467
16584
|
}
|
|
16468
16585
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -16471,16 +16588,16 @@ function parseHostUsage(value) {
|
|
|
16471
16588
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
16472
16589
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
16473
16590
|
}
|
|
16474
|
-
for (const
|
|
16475
|
-
const candidate = value[
|
|
16591
|
+
for (const field2 of ["totalCredits", "contextUsagePercent"]) {
|
|
16592
|
+
const candidate = value[field2];
|
|
16476
16593
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16477
|
-
throw new Error(`Harness Usage '${
|
|
16594
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16478
16595
|
}
|
|
16479
16596
|
}
|
|
16480
|
-
for (const
|
|
16481
|
-
const candidate = value[
|
|
16597
|
+
for (const field2 of percentFields) {
|
|
16598
|
+
const candidate = value[field2];
|
|
16482
16599
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
16483
|
-
throw new Error(`Harness Usage '${
|
|
16600
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
16484
16601
|
}
|
|
16485
16602
|
}
|
|
16486
16603
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -16519,9 +16636,9 @@ function parseHostUsage(value) {
|
|
|
16519
16636
|
if (value.costSource !== "publicPrice") {
|
|
16520
16637
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
16521
16638
|
}
|
|
16522
|
-
return { ...value, unpricedModels: [...models] };
|
|
16639
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
16523
16640
|
}
|
|
16524
|
-
return { ...value };
|
|
16641
|
+
return { ...value, ...indicators };
|
|
16525
16642
|
}
|
|
16526
16643
|
var requestTokenFields = [
|
|
16527
16644
|
"inputTokens",
|
|
@@ -23935,6 +24052,8 @@ var KiroSession = class {
|
|
|
23935
24052
|
if (command.type === "turn.cancel") {
|
|
23936
24053
|
return this.#cancelTurn(command);
|
|
23937
24054
|
}
|
|
24055
|
+
if (command.type === "turn.steer")
|
|
24056
|
+
return unsupportedSteer("Kiro");
|
|
23938
24057
|
if (command.type === "interaction.respond") {
|
|
23939
24058
|
return this.#respondInteraction(command);
|
|
23940
24059
|
}
|
|
@@ -3289,10 +3289,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3289
3289
|
const shape = def.shape;
|
|
3290
3290
|
const propValues = {};
|
|
3291
3291
|
for (const key in shape) {
|
|
3292
|
-
const
|
|
3293
|
-
if (
|
|
3292
|
+
const field2 = shape[key]._zod;
|
|
3293
|
+
if (field2.values) {
|
|
3294
3294
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3295
|
-
for (const v of
|
|
3295
|
+
for (const v of field2.values)
|
|
3296
3296
|
propValues[key].add(v);
|
|
3297
3297
|
}
|
|
3298
3298
|
}
|
|
@@ -14911,10 +14911,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
14911
14911
|
var project = external_exports.string().min(1).max(4096);
|
|
14912
14912
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
14913
14913
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14914
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
14915
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
14916
|
+
try {
|
|
14917
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
14918
|
+
return true;
|
|
14919
|
+
} catch {
|
|
14920
|
+
return false;
|
|
14921
|
+
}
|
|
14922
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
14914
14923
|
harness: harness.optional(),
|
|
14915
14924
|
model: model.nullable().optional(),
|
|
14916
14925
|
project: project.nullable().optional(),
|
|
14917
|
-
/** One
|
|
14926
|
+
/** One date in the query timezone inside the range. */
|
|
14918
14927
|
date: localDate.optional()
|
|
14919
14928
|
});
|
|
14920
14929
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -14923,6 +14932,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
14923
14932
|
cachedInputTokens: count,
|
|
14924
14933
|
cacheWriteInputTokens: count,
|
|
14925
14934
|
cacheKnownInputTokens: count,
|
|
14935
|
+
cacheHitCachedInputTokens: count,
|
|
14936
|
+
cacheHitInputTokens: count,
|
|
14926
14937
|
outputTokens: count,
|
|
14927
14938
|
reasoningOutputTokens: count,
|
|
14928
14939
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -14950,7 +14961,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
14950
14961
|
});
|
|
14951
14962
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
14952
14963
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14953
|
-
/** First
|
|
14964
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
14954
14965
|
from: localDate.nullable(),
|
|
14955
14966
|
to: localDate,
|
|
14956
14967
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -14990,7 +15001,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
14990
15001
|
totals: usageStatisticsTotalsSchema,
|
|
14991
15002
|
/** Each date and Harness of the range: every filter except the day. */
|
|
14992
15003
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
14993
|
-
/**
|
|
15004
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
14994
15005
|
hourly: external_exports.array(external_exports.strictObject({
|
|
14995
15006
|
weekday: external_exports.number().int().min(0).max(6),
|
|
14996
15007
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15030,6 +15041,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15030
15041
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15031
15042
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15032
15043
|
|
|
15044
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15045
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15046
|
+
external_exports.object({
|
|
15047
|
+
id: external_exports.string().min(1),
|
|
15048
|
+
type: external_exports.literal("choice"),
|
|
15049
|
+
prompt: external_exports.string(),
|
|
15050
|
+
options: external_exports.array(external_exports.object({
|
|
15051
|
+
value: external_exports.string().min(1),
|
|
15052
|
+
label: external_exports.string(),
|
|
15053
|
+
description: external_exports.string().optional()
|
|
15054
|
+
})).min(1),
|
|
15055
|
+
multiple: external_exports.boolean(),
|
|
15056
|
+
allowOther: external_exports.boolean(),
|
|
15057
|
+
optional: external_exports.boolean()
|
|
15058
|
+
}),
|
|
15059
|
+
external_exports.object({
|
|
15060
|
+
id: external_exports.string().min(1),
|
|
15061
|
+
type: external_exports.literal("text"),
|
|
15062
|
+
prompt: external_exports.string(),
|
|
15063
|
+
multiline: external_exports.boolean(),
|
|
15064
|
+
secret: external_exports.literal(false),
|
|
15065
|
+
optional: external_exports.boolean(),
|
|
15066
|
+
placeholder: external_exports.string().optional(),
|
|
15067
|
+
prefill: external_exports.string().optional()
|
|
15068
|
+
})
|
|
15069
|
+
]);
|
|
15070
|
+
var threadQuestionSchema = external_exports.object({
|
|
15071
|
+
interactionId: external_exports.string().min(1),
|
|
15072
|
+
turnId: external_exports.string().min(1),
|
|
15073
|
+
title: external_exports.string().optional(),
|
|
15074
|
+
questions: external_exports.array(field).min(1)
|
|
15075
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15076
|
+
message: "Shared cards require at least one multi-select question"
|
|
15077
|
+
});
|
|
15078
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15079
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15080
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15081
|
+
threadId: external_exports.string().min(1),
|
|
15082
|
+
turnId: external_exports.string().min(1),
|
|
15083
|
+
interactionId: external_exports.string().min(1),
|
|
15084
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15085
|
+
cancelled: external_exports.boolean().default(false)
|
|
15086
|
+
});
|
|
15087
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15088
|
+
|
|
15033
15089
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15034
15090
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15035
15091
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15132,6 +15188,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15132
15188
|
"codexhost/harness/display-settings/set",
|
|
15133
15189
|
"codexhost/harness/inspect",
|
|
15134
15190
|
"codexhost/harness/installation",
|
|
15191
|
+
"codexhost/harness/installation/start",
|
|
15192
|
+
"codexhost/harness/installation/status",
|
|
15135
15193
|
"codexhost/harness/launch-settings/get",
|
|
15136
15194
|
"codexhost/harness/launch-settings/set",
|
|
15137
15195
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15209,7 +15267,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15209
15267
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15210
15268
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15211
15269
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15270
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15271
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15272
|
+
kind: external_exports.literal("countdown"),
|
|
15273
|
+
id: external_exports.string().min(1).max(64),
|
|
15274
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15275
|
+
label: indicatorTextSchema(256).optional(),
|
|
15276
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15277
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15278
|
+
message: "Composer indicator IDs must be unique"
|
|
15279
|
+
});
|
|
15212
15280
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15281
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15213
15282
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15214
15283
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15215
15284
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15635,7 +15704,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15635
15704
|
}).strict().optional(),
|
|
15636
15705
|
input: external_exports.object({
|
|
15637
15706
|
image: external_exports.boolean()
|
|
15638
|
-
}).strict().optional()
|
|
15707
|
+
}).strict().optional(),
|
|
15708
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15709
|
+
steer: external_exports.boolean().optional()
|
|
15639
15710
|
}).strict();
|
|
15640
15711
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15641
15712
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15682,7 +15753,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15682
15753
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15683
15754
|
harnessId: harnessIdSchema,
|
|
15684
15755
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15685
|
-
refresh: external_exports.boolean().optional()
|
|
15756
|
+
refresh: external_exports.boolean().optional(),
|
|
15757
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15758
|
+
purpose: external_exports.literal("availability").optional()
|
|
15686
15759
|
}).strict();
|
|
15687
15760
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15688
15761
|
harnessId: harnessIdSchema
|
|
@@ -15767,13 +15840,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15767
15840
|
seen.add(thread.threadId);
|
|
15768
15841
|
}
|
|
15769
15842
|
});
|
|
15843
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
15844
|
+
threadId: hostThreadIdSchema,
|
|
15845
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15846
|
+
text: external_exports.string().optional()
|
|
15847
|
+
}).strict();
|
|
15848
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15849
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15850
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15851
|
+
}).strict();
|
|
15770
15852
|
|
|
15771
15853
|
// ../../shared-contracts/dist/harness-route.js
|
|
15772
15854
|
var harnessPluginRouteSchema = external_exports.object({
|
|
15773
15855
|
harnessId: harnessPluginIdSchema,
|
|
15774
15856
|
model: harnessModelRefSchema.optional(),
|
|
15775
15857
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15776
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15858
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15859
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15860
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15861
|
+
prewarm: external_exports.literal(true).optional()
|
|
15777
15862
|
}).strict();
|
|
15778
15863
|
|
|
15779
15864
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -15799,6 +15884,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15799
15884
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15800
15885
|
updateAvailable: external_exports.boolean(),
|
|
15801
15886
|
canUpdate: external_exports.boolean(),
|
|
15887
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
15888
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
15889
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
15890
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
15802
15891
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15803
15892
|
message: external_exports.string().max(2048).optional(),
|
|
15804
15893
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -15806,6 +15895,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15806
15895
|
notice: harnessLocalizedTextSchema.optional(),
|
|
15807
15896
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15808
15897
|
}).strict();
|
|
15898
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
15899
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
15900
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
15901
|
+
external_exports.object({
|
|
15902
|
+
taskId: external_exports.string().uuid(),
|
|
15903
|
+
status: external_exports.literal("succeeded"),
|
|
15904
|
+
result: harnessInstallationStateSchema
|
|
15905
|
+
}).strict(),
|
|
15906
|
+
external_exports.object({
|
|
15907
|
+
taskId: external_exports.string().uuid(),
|
|
15908
|
+
status: external_exports.literal("failed"),
|
|
15909
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
15910
|
+
}).strict()
|
|
15911
|
+
]);
|
|
15809
15912
|
|
|
15810
15913
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15811
15914
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16306,6 +16409,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16306
16409
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16307
16410
|
}
|
|
16308
16411
|
|
|
16412
|
+
// ../../harness-adapter/dist/steer.js
|
|
16413
|
+
function unsupportedSteer(harnessLabel) {
|
|
16414
|
+
return {
|
|
16415
|
+
ok: false,
|
|
16416
|
+
error: {
|
|
16417
|
+
code: "unsupported",
|
|
16418
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16419
|
+
retryable: false
|
|
16420
|
+
}
|
|
16421
|
+
};
|
|
16422
|
+
}
|
|
16423
|
+
|
|
16309
16424
|
// ../../harness-adapter/dist/usage.js
|
|
16310
16425
|
var tokenFields = [
|
|
16311
16426
|
"inputTokens",
|
|
@@ -16333,6 +16448,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16333
16448
|
...safeIntegerFields,
|
|
16334
16449
|
...percentFields,
|
|
16335
16450
|
"sessionCacheUsage",
|
|
16451
|
+
"composerIndicators",
|
|
16336
16452
|
"totalCostUsd",
|
|
16337
16453
|
"totalCredits",
|
|
16338
16454
|
"contextUsagePercent",
|
|
@@ -17408,6 +17524,8 @@ var MuseHarnessSession = class {
|
|
|
17408
17524
|
};
|
|
17409
17525
|
}
|
|
17410
17526
|
try {
|
|
17527
|
+
if (command.type === "turn.steer")
|
|
17528
|
+
return unsupportedSteer("Muse");
|
|
17411
17529
|
if (command.type === "turn.start")
|
|
17412
17530
|
return await this.#startTurn(command);
|
|
17413
17531
|
if (command.type === "turn.cancel")
|
|
@@ -17772,9 +17890,9 @@ var MuseHarnessSession = class {
|
|
|
17772
17890
|
const text = typeof params.delta === "string" ? params.delta : "";
|
|
17773
17891
|
if (!item || !text)
|
|
17774
17892
|
return;
|
|
17775
|
-
const
|
|
17776
|
-
const asOutput =
|
|
17777
|
-
if (item.type === "commandExecution" && (asOutput ||
|
|
17893
|
+
const field2 = typeof params.field === "string" && params.field ? params.field : "text";
|
|
17894
|
+
const asOutput = field2 === "output";
|
|
17895
|
+
if (item.type === "commandExecution" && (asOutput || field2 === "text")) {
|
|
17778
17896
|
const suffix = text;
|
|
17779
17897
|
item.output = `${item.output ?? ""}${suffix}`;
|
|
17780
17898
|
this.#emit({
|
|
@@ -17788,7 +17906,7 @@ var MuseHarnessSession = class {
|
|
|
17788
17906
|
});
|
|
17789
17907
|
return;
|
|
17790
17908
|
}
|
|
17791
|
-
if (item.type === "toolExecution" && (asOutput ||
|
|
17909
|
+
if (item.type === "toolExecution" && (asOutput || field2 === "text")) {
|
|
17792
17910
|
const suffix = text;
|
|
17793
17911
|
const next = `${toolOutputText(item)}${suffix}`;
|
|
17794
17912
|
item.output = { content: [{ type: "text", text: next }] };
|
|
@@ -17804,7 +17922,7 @@ var MuseHarnessSession = class {
|
|
|
17804
17922
|
return;
|
|
17805
17923
|
}
|
|
17806
17924
|
if (item.type === "agentMessage" || item.type === "reasoning") {
|
|
17807
|
-
if (item.type === "agentMessage" &&
|
|
17925
|
+
if (item.type === "agentMessage" && field2 !== "text")
|
|
17808
17926
|
return;
|
|
17809
17927
|
const suffix = text;
|
|
17810
17928
|
item.text += suffix;
|