@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
|
@@ -3401,10 +3401,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3401
3401
|
const shape = def.shape;
|
|
3402
3402
|
const propValues = {};
|
|
3403
3403
|
for (const key in shape) {
|
|
3404
|
-
const
|
|
3405
|
-
if (
|
|
3404
|
+
const field2 = shape[key]._zod;
|
|
3405
|
+
if (field2.values) {
|
|
3406
3406
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3407
|
-
for (const v of
|
|
3407
|
+
for (const v of field2.values)
|
|
3408
3408
|
propValues[key].add(v);
|
|
3409
3409
|
}
|
|
3410
3410
|
}
|
|
@@ -15023,10 +15023,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
15023
15023
|
var project = external_exports.string().min(1).max(4096);
|
|
15024
15024
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15025
15025
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15026
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
15027
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
15028
|
+
try {
|
|
15029
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
15030
|
+
return true;
|
|
15031
|
+
} catch {
|
|
15032
|
+
return false;
|
|
15033
|
+
}
|
|
15034
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
15026
15035
|
harness: harness.optional(),
|
|
15027
15036
|
model: model.nullable().optional(),
|
|
15028
15037
|
project: project.nullable().optional(),
|
|
15029
|
-
/** One
|
|
15038
|
+
/** One date in the query timezone inside the range. */
|
|
15030
15039
|
date: localDate.optional()
|
|
15031
15040
|
});
|
|
15032
15041
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -15035,6 +15044,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15035
15044
|
cachedInputTokens: count,
|
|
15036
15045
|
cacheWriteInputTokens: count,
|
|
15037
15046
|
cacheKnownInputTokens: count,
|
|
15047
|
+
cacheHitCachedInputTokens: count,
|
|
15048
|
+
cacheHitInputTokens: count,
|
|
15038
15049
|
outputTokens: count,
|
|
15039
15050
|
reasoningOutputTokens: count,
|
|
15040
15051
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15062,7 +15073,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15062
15073
|
});
|
|
15063
15074
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15064
15075
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15065
|
-
/** First
|
|
15076
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
15066
15077
|
from: localDate.nullable(),
|
|
15067
15078
|
to: localDate,
|
|
15068
15079
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -15102,7 +15113,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15102
15113
|
totals: usageStatisticsTotalsSchema,
|
|
15103
15114
|
/** Each date and Harness of the range: every filter except the day. */
|
|
15104
15115
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15105
|
-
/**
|
|
15116
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
15106
15117
|
hourly: external_exports.array(external_exports.strictObject({
|
|
15107
15118
|
weekday: external_exports.number().int().min(0).max(6),
|
|
15108
15119
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15142,6 +15153,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15142
15153
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15143
15154
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15144
15155
|
|
|
15156
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15157
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15158
|
+
external_exports.object({
|
|
15159
|
+
id: external_exports.string().min(1),
|
|
15160
|
+
type: external_exports.literal("choice"),
|
|
15161
|
+
prompt: external_exports.string(),
|
|
15162
|
+
options: external_exports.array(external_exports.object({
|
|
15163
|
+
value: external_exports.string().min(1),
|
|
15164
|
+
label: external_exports.string(),
|
|
15165
|
+
description: external_exports.string().optional()
|
|
15166
|
+
})).min(1),
|
|
15167
|
+
multiple: external_exports.boolean(),
|
|
15168
|
+
allowOther: external_exports.boolean(),
|
|
15169
|
+
optional: external_exports.boolean()
|
|
15170
|
+
}),
|
|
15171
|
+
external_exports.object({
|
|
15172
|
+
id: external_exports.string().min(1),
|
|
15173
|
+
type: external_exports.literal("text"),
|
|
15174
|
+
prompt: external_exports.string(),
|
|
15175
|
+
multiline: external_exports.boolean(),
|
|
15176
|
+
secret: external_exports.literal(false),
|
|
15177
|
+
optional: external_exports.boolean(),
|
|
15178
|
+
placeholder: external_exports.string().optional(),
|
|
15179
|
+
prefill: external_exports.string().optional()
|
|
15180
|
+
})
|
|
15181
|
+
]);
|
|
15182
|
+
var threadQuestionSchema = external_exports.object({
|
|
15183
|
+
interactionId: external_exports.string().min(1),
|
|
15184
|
+
turnId: external_exports.string().min(1),
|
|
15185
|
+
title: external_exports.string().optional(),
|
|
15186
|
+
questions: external_exports.array(field).min(1)
|
|
15187
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15188
|
+
message: "Shared cards require at least one multi-select question"
|
|
15189
|
+
});
|
|
15190
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15191
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15192
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15193
|
+
threadId: external_exports.string().min(1),
|
|
15194
|
+
turnId: external_exports.string().min(1),
|
|
15195
|
+
interactionId: external_exports.string().min(1),
|
|
15196
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15197
|
+
cancelled: external_exports.boolean().default(false)
|
|
15198
|
+
});
|
|
15199
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15200
|
+
|
|
15145
15201
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15146
15202
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15147
15203
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15244,6 +15300,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15244
15300
|
"codexhost/harness/display-settings/set",
|
|
15245
15301
|
"codexhost/harness/inspect",
|
|
15246
15302
|
"codexhost/harness/installation",
|
|
15303
|
+
"codexhost/harness/installation/start",
|
|
15304
|
+
"codexhost/harness/installation/status",
|
|
15247
15305
|
"codexhost/harness/launch-settings/get",
|
|
15248
15306
|
"codexhost/harness/launch-settings/set",
|
|
15249
15307
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15321,7 +15379,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15321
15379
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15322
15380
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15323
15381
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15382
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
15383
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15384
|
+
kind: external_exports.literal("countdown"),
|
|
15385
|
+
id: external_exports.string().min(1).max(64),
|
|
15386
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15387
|
+
label: indicatorTextSchema(256).optional(),
|
|
15388
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15389
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15390
|
+
message: "Composer indicator IDs must be unique"
|
|
15391
|
+
});
|
|
15324
15392
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15393
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15325
15394
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15326
15395
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15327
15396
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15747,7 +15816,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15747
15816
|
}).strict().optional(),
|
|
15748
15817
|
input: external_exports.object({
|
|
15749
15818
|
image: external_exports.boolean()
|
|
15750
|
-
}).strict().optional()
|
|
15819
|
+
}).strict().optional(),
|
|
15820
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15821
|
+
steer: external_exports.boolean().optional()
|
|
15751
15822
|
}).strict();
|
|
15752
15823
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15753
15824
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15794,7 +15865,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15794
15865
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15795
15866
|
harnessId: harnessIdSchema,
|
|
15796
15867
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15797
|
-
refresh: external_exports.boolean().optional()
|
|
15868
|
+
refresh: external_exports.boolean().optional(),
|
|
15869
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15870
|
+
purpose: external_exports.literal("availability").optional()
|
|
15798
15871
|
}).strict();
|
|
15799
15872
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15800
15873
|
harnessId: harnessIdSchema
|
|
@@ -15879,13 +15952,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15879
15952
|
seen.add(thread.threadId);
|
|
15880
15953
|
}
|
|
15881
15954
|
});
|
|
15955
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
15956
|
+
threadId: hostThreadIdSchema,
|
|
15957
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15958
|
+
text: external_exports.string().optional()
|
|
15959
|
+
}).strict();
|
|
15960
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15961
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15962
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15963
|
+
}).strict();
|
|
15882
15964
|
|
|
15883
15965
|
// ../../shared-contracts/dist/harness-route.js
|
|
15884
15966
|
var harnessPluginRouteSchema = external_exports.object({
|
|
15885
15967
|
harnessId: harnessPluginIdSchema,
|
|
15886
15968
|
model: harnessModelRefSchema.optional(),
|
|
15887
15969
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15888
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15970
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15971
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15972
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15973
|
+
prewarm: external_exports.literal(true).optional()
|
|
15889
15974
|
}).strict();
|
|
15890
15975
|
|
|
15891
15976
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -15911,6 +15996,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15911
15996
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15912
15997
|
updateAvailable: external_exports.boolean(),
|
|
15913
15998
|
canUpdate: external_exports.boolean(),
|
|
15999
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
16000
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
16001
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
16002
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
15914
16003
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15915
16004
|
message: external_exports.string().max(2048).optional(),
|
|
15916
16005
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -15918,6 +16007,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15918
16007
|
notice: harnessLocalizedTextSchema.optional(),
|
|
15919
16008
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15920
16009
|
}).strict();
|
|
16010
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
16011
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
16012
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
16013
|
+
external_exports.object({
|
|
16014
|
+
taskId: external_exports.string().uuid(),
|
|
16015
|
+
status: external_exports.literal("succeeded"),
|
|
16016
|
+
result: harnessInstallationStateSchema
|
|
16017
|
+
}).strict(),
|
|
16018
|
+
external_exports.object({
|
|
16019
|
+
taskId: external_exports.string().uuid(),
|
|
16020
|
+
status: external_exports.literal("failed"),
|
|
16021
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
16022
|
+
}).strict()
|
|
16023
|
+
]);
|
|
15921
16024
|
|
|
15922
16025
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15923
16026
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16415,6 +16518,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16415
16518
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16416
16519
|
}
|
|
16417
16520
|
|
|
16521
|
+
// ../../harness-adapter/dist/steer.js
|
|
16522
|
+
function unsupportedSteer(harnessLabel) {
|
|
16523
|
+
return {
|
|
16524
|
+
ok: false,
|
|
16525
|
+
error: {
|
|
16526
|
+
code: "unsupported",
|
|
16527
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16528
|
+
retryable: false
|
|
16529
|
+
}
|
|
16530
|
+
};
|
|
16531
|
+
}
|
|
16532
|
+
|
|
16418
16533
|
// ../../harness-adapter/dist/usage.js
|
|
16419
16534
|
var tokenFields = [
|
|
16420
16535
|
"inputTokens",
|
|
@@ -16442,6 +16557,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16442
16557
|
...safeIntegerFields,
|
|
16443
16558
|
...percentFields,
|
|
16444
16559
|
"sessionCacheUsage",
|
|
16560
|
+
"composerIndicators",
|
|
16445
16561
|
"totalCostUsd",
|
|
16446
16562
|
"totalCredits",
|
|
16447
16563
|
"contextUsagePercent",
|
|
@@ -18568,10 +18684,13 @@ function usageSessionTitle(value) {
|
|
|
18568
18684
|
return void 0;
|
|
18569
18685
|
if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
|
|
18570
18686
|
return normalized;
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
|
|
18687
|
+
let title = "";
|
|
18688
|
+
for (const character of normalized) {
|
|
18689
|
+
if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
|
|
18690
|
+
break;
|
|
18691
|
+
title += character;
|
|
18692
|
+
}
|
|
18693
|
+
return `${title.trimEnd()}…`;
|
|
18575
18694
|
}
|
|
18576
18695
|
function sessionIdOk(value) {
|
|
18577
18696
|
return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
|
|
@@ -19560,6 +19679,8 @@ var HermesSession = class {
|
|
|
19560
19679
|
switch (command.type) {
|
|
19561
19680
|
case "turn.start":
|
|
19562
19681
|
return this.#startTurn(command);
|
|
19682
|
+
case "turn.steer":
|
|
19683
|
+
return Promise.resolve(unsupportedSteer("Hermes"));
|
|
19563
19684
|
case "turn.cancel":
|
|
19564
19685
|
return this.#cancelTurn(command);
|
|
19565
19686
|
case "interaction.respond":
|
|
@@ -3521,10 +3521,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3521
3521
|
const shape = def.shape;
|
|
3522
3522
|
const propValues = {};
|
|
3523
3523
|
for (const key in shape) {
|
|
3524
|
-
const
|
|
3525
|
-
if (
|
|
3524
|
+
const field2 = shape[key]._zod;
|
|
3525
|
+
if (field2.values) {
|
|
3526
3526
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3527
|
-
for (const v of
|
|
3527
|
+
for (const v of field2.values)
|
|
3528
3528
|
propValues[key].add(v);
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
@@ -15143,10 +15143,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
15143
15143
|
var project = external_exports.string().min(1).max(4096);
|
|
15144
15144
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15145
15145
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15146
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
15147
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
15148
|
+
try {
|
|
15149
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
15150
|
+
return true;
|
|
15151
|
+
} catch {
|
|
15152
|
+
return false;
|
|
15153
|
+
}
|
|
15154
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
15146
15155
|
harness: harness.optional(),
|
|
15147
15156
|
model: model.nullable().optional(),
|
|
15148
15157
|
project: project.nullable().optional(),
|
|
15149
|
-
/** One
|
|
15158
|
+
/** One date in the query timezone inside the range. */
|
|
15150
15159
|
date: localDate.optional()
|
|
15151
15160
|
});
|
|
15152
15161
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -15155,6 +15164,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15155
15164
|
cachedInputTokens: count,
|
|
15156
15165
|
cacheWriteInputTokens: count,
|
|
15157
15166
|
cacheKnownInputTokens: count,
|
|
15167
|
+
cacheHitCachedInputTokens: count,
|
|
15168
|
+
cacheHitInputTokens: count,
|
|
15158
15169
|
outputTokens: count,
|
|
15159
15170
|
reasoningOutputTokens: count,
|
|
15160
15171
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15182,7 +15193,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15182
15193
|
});
|
|
15183
15194
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15184
15195
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15185
|
-
/** First
|
|
15196
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
15186
15197
|
from: localDate.nullable(),
|
|
15187
15198
|
to: localDate,
|
|
15188
15199
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -15222,7 +15233,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15222
15233
|
totals: usageStatisticsTotalsSchema,
|
|
15223
15234
|
/** Each date and Harness of the range: every filter except the day. */
|
|
15224
15235
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15225
|
-
/**
|
|
15236
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
15226
15237
|
hourly: external_exports.array(external_exports.strictObject({
|
|
15227
15238
|
weekday: external_exports.number().int().min(0).max(6),
|
|
15228
15239
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15262,6 +15273,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15262
15273
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15263
15274
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15264
15275
|
|
|
15276
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
15277
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15278
|
+
external_exports.object({
|
|
15279
|
+
id: external_exports.string().min(1),
|
|
15280
|
+
type: external_exports.literal("choice"),
|
|
15281
|
+
prompt: external_exports.string(),
|
|
15282
|
+
options: external_exports.array(external_exports.object({
|
|
15283
|
+
value: external_exports.string().min(1),
|
|
15284
|
+
label: external_exports.string(),
|
|
15285
|
+
description: external_exports.string().optional()
|
|
15286
|
+
})).min(1),
|
|
15287
|
+
multiple: external_exports.boolean(),
|
|
15288
|
+
allowOther: external_exports.boolean(),
|
|
15289
|
+
optional: external_exports.boolean()
|
|
15290
|
+
}),
|
|
15291
|
+
external_exports.object({
|
|
15292
|
+
id: external_exports.string().min(1),
|
|
15293
|
+
type: external_exports.literal("text"),
|
|
15294
|
+
prompt: external_exports.string(),
|
|
15295
|
+
multiline: external_exports.boolean(),
|
|
15296
|
+
secret: external_exports.literal(false),
|
|
15297
|
+
optional: external_exports.boolean(),
|
|
15298
|
+
placeholder: external_exports.string().optional(),
|
|
15299
|
+
prefill: external_exports.string().optional()
|
|
15300
|
+
})
|
|
15301
|
+
]);
|
|
15302
|
+
var threadQuestionSchema = external_exports.object({
|
|
15303
|
+
interactionId: external_exports.string().min(1),
|
|
15304
|
+
turnId: external_exports.string().min(1),
|
|
15305
|
+
title: external_exports.string().optional(),
|
|
15306
|
+
questions: external_exports.array(field).min(1)
|
|
15307
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15308
|
+
message: "Shared cards require at least one multi-select question"
|
|
15309
|
+
});
|
|
15310
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15311
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15312
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15313
|
+
threadId: external_exports.string().min(1),
|
|
15314
|
+
turnId: external_exports.string().min(1),
|
|
15315
|
+
interactionId: external_exports.string().min(1),
|
|
15316
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15317
|
+
cancelled: external_exports.boolean().default(false)
|
|
15318
|
+
});
|
|
15319
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15320
|
+
|
|
15265
15321
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
15266
15322
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15267
15323
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15364,6 +15420,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15364
15420
|
"codexhost/harness/display-settings/set",
|
|
15365
15421
|
"codexhost/harness/inspect",
|
|
15366
15422
|
"codexhost/harness/installation",
|
|
15423
|
+
"codexhost/harness/installation/start",
|
|
15424
|
+
"codexhost/harness/installation/status",
|
|
15367
15425
|
"codexhost/harness/launch-settings/get",
|
|
15368
15426
|
"codexhost/harness/launch-settings/set",
|
|
15369
15427
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15441,7 +15499,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15441
15499
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15442
15500
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15443
15501
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15502
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15503
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15504
|
+
kind: external_exports.literal("countdown"),
|
|
15505
|
+
id: external_exports.string().min(1).max(64),
|
|
15506
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15507
|
+
label: indicatorTextSchema(256).optional(),
|
|
15508
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15509
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15510
|
+
message: "Composer indicator IDs must be unique"
|
|
15511
|
+
});
|
|
15444
15512
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15513
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15445
15514
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15446
15515
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15447
15516
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15867,7 +15936,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15867
15936
|
}).strict().optional(),
|
|
15868
15937
|
input: external_exports.object({
|
|
15869
15938
|
image: external_exports.boolean()
|
|
15870
|
-
}).strict().optional()
|
|
15939
|
+
}).strict().optional(),
|
|
15940
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15941
|
+
steer: external_exports.boolean().optional()
|
|
15871
15942
|
}).strict();
|
|
15872
15943
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15873
15944
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15914,7 +15985,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15914
15985
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15915
15986
|
harnessId: harnessIdSchema,
|
|
15916
15987
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15917
|
-
refresh: external_exports.boolean().optional()
|
|
15988
|
+
refresh: external_exports.boolean().optional(),
|
|
15989
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15990
|
+
purpose: external_exports.literal("availability").optional()
|
|
15918
15991
|
}).strict();
|
|
15919
15992
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15920
15993
|
harnessId: harnessIdSchema
|
|
@@ -15999,13 +16072,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15999
16072
|
seen.add(thread.threadId);
|
|
16000
16073
|
}
|
|
16001
16074
|
});
|
|
16075
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
16076
|
+
threadId: hostThreadIdSchema,
|
|
16077
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16078
|
+
text: external_exports.string().optional()
|
|
16079
|
+
}).strict();
|
|
16080
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16081
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16082
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
16083
|
+
}).strict();
|
|
16002
16084
|
|
|
16003
16085
|
// ../../shared-contracts/dist/harness-route.js
|
|
16004
16086
|
var harnessPluginRouteSchema = external_exports.object({
|
|
16005
16087
|
harnessId: harnessPluginIdSchema,
|
|
16006
16088
|
model: harnessModelRefSchema.optional(),
|
|
16007
16089
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
16008
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
16090
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
16091
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
16092
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
16093
|
+
prewarm: external_exports.literal(true).optional()
|
|
16009
16094
|
}).strict();
|
|
16010
16095
|
|
|
16011
16096
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -16031,6 +16116,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16031
16116
|
latestVersion: external_exports.string().min(1).max(128),
|
|
16032
16117
|
updateAvailable: external_exports.boolean(),
|
|
16033
16118
|
canUpdate: external_exports.boolean(),
|
|
16119
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
16120
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
16121
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
16122
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
16034
16123
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
16035
16124
|
message: external_exports.string().max(2048).optional(),
|
|
16036
16125
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -16038,6 +16127,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16038
16127
|
notice: harnessLocalizedTextSchema.optional(),
|
|
16039
16128
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
16040
16129
|
}).strict();
|
|
16130
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
16131
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
16132
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
16133
|
+
external_exports.object({
|
|
16134
|
+
taskId: external_exports.string().uuid(),
|
|
16135
|
+
status: external_exports.literal("succeeded"),
|
|
16136
|
+
result: harnessInstallationStateSchema
|
|
16137
|
+
}).strict(),
|
|
16138
|
+
external_exports.object({
|
|
16139
|
+
taskId: external_exports.string().uuid(),
|
|
16140
|
+
status: external_exports.literal("failed"),
|
|
16141
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
16142
|
+
}).strict()
|
|
16143
|
+
]);
|
|
16041
16144
|
|
|
16042
16145
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
16043
16146
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16539,6 +16642,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16539
16642
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16540
16643
|
}
|
|
16541
16644
|
|
|
16645
|
+
// ../../harness-adapter/dist/steer.js
|
|
16646
|
+
function unsupportedSteer(harnessLabel) {
|
|
16647
|
+
return {
|
|
16648
|
+
ok: false,
|
|
16649
|
+
error: {
|
|
16650
|
+
code: "unsupported",
|
|
16651
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16652
|
+
retryable: false
|
|
16653
|
+
}
|
|
16654
|
+
};
|
|
16655
|
+
}
|
|
16656
|
+
|
|
16542
16657
|
// ../../harness-adapter/dist/usage.js
|
|
16543
16658
|
var tokenFields = [
|
|
16544
16659
|
"inputTokens",
|
|
@@ -16566,6 +16681,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16566
16681
|
...safeIntegerFields,
|
|
16567
16682
|
...percentFields,
|
|
16568
16683
|
"sessionCacheUsage",
|
|
16684
|
+
"composerIndicators",
|
|
16569
16685
|
"totalCostUsd",
|
|
16570
16686
|
"totalCredits",
|
|
16571
16687
|
"contextUsagePercent",
|
|
@@ -16588,26 +16704,27 @@ function parseHostUsage(value) {
|
|
|
16588
16704
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
16589
16705
|
}
|
|
16590
16706
|
}
|
|
16591
|
-
|
|
16707
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
16708
|
+
for (const field2 of [
|
|
16592
16709
|
"totalCredits",
|
|
16593
16710
|
"contextUsagePercent",
|
|
16594
16711
|
"apiOutputTokensPerSecond"
|
|
16595
16712
|
]) {
|
|
16596
|
-
const candidate = value[
|
|
16713
|
+
const candidate = value[field2];
|
|
16597
16714
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16598
|
-
throw new Error(`Harness Usage '${
|
|
16715
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16599
16716
|
}
|
|
16600
16717
|
}
|
|
16601
|
-
for (const
|
|
16602
|
-
const candidate = value[
|
|
16718
|
+
for (const field2 of tokenFields) {
|
|
16719
|
+
const candidate = value[field2];
|
|
16603
16720
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16604
|
-
throw new Error(`Harness Usage '${
|
|
16721
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16605
16722
|
}
|
|
16606
16723
|
}
|
|
16607
|
-
for (const
|
|
16608
|
-
const candidate = value[
|
|
16724
|
+
for (const field2 of safeIntegerFields) {
|
|
16725
|
+
const candidate = value[field2];
|
|
16609
16726
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
16610
|
-
throw new Error(`Harness Usage '${
|
|
16727
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
16611
16728
|
}
|
|
16612
16729
|
}
|
|
16613
16730
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -16616,16 +16733,16 @@ function parseHostUsage(value) {
|
|
|
16616
16733
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
16617
16734
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
16618
16735
|
}
|
|
16619
|
-
for (const
|
|
16620
|
-
const candidate = value[
|
|
16736
|
+
for (const field2 of ["totalCredits", "contextUsagePercent"]) {
|
|
16737
|
+
const candidate = value[field2];
|
|
16621
16738
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16622
|
-
throw new Error(`Harness Usage '${
|
|
16739
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
16623
16740
|
}
|
|
16624
16741
|
}
|
|
16625
|
-
for (const
|
|
16626
|
-
const candidate = value[
|
|
16742
|
+
for (const field2 of percentFields) {
|
|
16743
|
+
const candidate = value[field2];
|
|
16627
16744
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
16628
|
-
throw new Error(`Harness Usage '${
|
|
16745
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
16629
16746
|
}
|
|
16630
16747
|
}
|
|
16631
16748
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -16664,9 +16781,9 @@ function parseHostUsage(value) {
|
|
|
16664
16781
|
if (value.costSource !== "publicPrice") {
|
|
16665
16782
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
16666
16783
|
}
|
|
16667
|
-
return { ...value, unpricedModels: [...models] };
|
|
16784
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
16668
16785
|
}
|
|
16669
|
-
return { ...value };
|
|
16786
|
+
return { ...value, ...indicators };
|
|
16670
16787
|
}
|
|
16671
16788
|
var requestTokenFields = [
|
|
16672
16789
|
"inputTokens",
|
|
@@ -24478,6 +24595,8 @@ var KimiSession = class {
|
|
|
24478
24595
|
switch (command.type) {
|
|
24479
24596
|
case "turn.start":
|
|
24480
24597
|
return this.#handleTurnStart(command);
|
|
24598
|
+
case "turn.steer":
|
|
24599
|
+
return unsupportedSteer("Kimi ACP");
|
|
24481
24600
|
case "turn.cancel":
|
|
24482
24601
|
return this.#handleTurnCancel(command);
|
|
24483
24602
|
case "interaction.respond":
|