@liberseek/boft-cli-linux-x64 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 +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ BOFT CLI runs Pi and other external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @liberseek/boft-cli@0.8.
|
|
10
|
+
npm install -g @liberseek/boft-cli@0.8.5
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@liberseek/boft-cli`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.8.
|
|
1
|
+
{"schemaVersion":1,"version":"0.8.5","distribution":"npm","target":"linux-x64"}
|
package/app/console-server.mjs
CHANGED
|
@@ -831,7 +831,8 @@ function createBackgroundUpdateManager(dependencies = {}) {
|
|
|
831
831
|
kind: "npm",
|
|
832
832
|
node_path: await requireRegularFile(options.nodePath, "npm Node.js executable"),
|
|
833
833
|
npm_cli_path: await requireRegularFile(options.npmCliPath, "npm CLI"),
|
|
834
|
-
npm_launcher_path: await requireRegularFile(options.npmLauncherPath, "npm codexhost launcher")
|
|
834
|
+
npm_launcher_path: await requireRegularFile(options.npmLauncherPath, "npm codexhost launcher"),
|
|
835
|
+
npm_package_root: requireAbsolutePath(options.packageRoot, "npm platform package root")
|
|
835
836
|
});
|
|
836
837
|
} catch (error51) {
|
|
837
838
|
await writeFailedStatus(common.statusPath, common.version, "npm", error51);
|
|
@@ -3930,10 +3931,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3930
3931
|
const shape = def.shape;
|
|
3931
3932
|
const propValues = {};
|
|
3932
3933
|
for (const key in shape) {
|
|
3933
|
-
const
|
|
3934
|
-
if (
|
|
3934
|
+
const field2 = shape[key]._zod;
|
|
3935
|
+
if (field2.values) {
|
|
3935
3936
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3936
|
-
for (const v of
|
|
3937
|
+
for (const v of field2.values)
|
|
3937
3938
|
propValues[key].add(v);
|
|
3938
3939
|
}
|
|
3939
3940
|
}
|
|
@@ -15552,10 +15553,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
15552
15553
|
var project = external_exports.string().min(1).max(4096);
|
|
15553
15554
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15554
15555
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15556
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
15557
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
15558
|
+
try {
|
|
15559
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
15560
|
+
return true;
|
|
15561
|
+
} catch {
|
|
15562
|
+
return false;
|
|
15563
|
+
}
|
|
15564
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
15555
15565
|
harness: harness.optional(),
|
|
15556
15566
|
model: model.nullable().optional(),
|
|
15557
15567
|
project: project.nullable().optional(),
|
|
15558
|
-
/** One
|
|
15568
|
+
/** One date in the query timezone inside the range. */
|
|
15559
15569
|
date: localDate.optional()
|
|
15560
15570
|
});
|
|
15561
15571
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -15564,6 +15574,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15564
15574
|
cachedInputTokens: count,
|
|
15565
15575
|
cacheWriteInputTokens: count,
|
|
15566
15576
|
cacheKnownInputTokens: count,
|
|
15577
|
+
cacheHitCachedInputTokens: count,
|
|
15578
|
+
cacheHitInputTokens: count,
|
|
15567
15579
|
outputTokens: count,
|
|
15568
15580
|
reasoningOutputTokens: count,
|
|
15569
15581
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15591,7 +15603,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15591
15603
|
});
|
|
15592
15604
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15593
15605
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15594
|
-
/** First
|
|
15606
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
15595
15607
|
from: localDate.nullable(),
|
|
15596
15608
|
to: localDate,
|
|
15597
15609
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -15631,7 +15643,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15631
15643
|
totals: usageStatisticsTotalsSchema,
|
|
15632
15644
|
/** Each date and Harness of the range: every filter except the day. */
|
|
15633
15645
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15634
|
-
/**
|
|
15646
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
15635
15647
|
hourly: external_exports.array(external_exports.strictObject({
|
|
15636
15648
|
weekday: external_exports.number().int().min(0).max(6),
|
|
15637
15649
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15671,6 +15683,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15671
15683
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15672
15684
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15673
15685
|
|
|
15686
|
+
// packages/shared-contracts/dist/thread-questions.js
|
|
15687
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
15688
|
+
external_exports.object({
|
|
15689
|
+
id: external_exports.string().min(1),
|
|
15690
|
+
type: external_exports.literal("choice"),
|
|
15691
|
+
prompt: external_exports.string(),
|
|
15692
|
+
options: external_exports.array(external_exports.object({
|
|
15693
|
+
value: external_exports.string().min(1),
|
|
15694
|
+
label: external_exports.string(),
|
|
15695
|
+
description: external_exports.string().optional()
|
|
15696
|
+
})).min(1),
|
|
15697
|
+
multiple: external_exports.boolean(),
|
|
15698
|
+
allowOther: external_exports.boolean(),
|
|
15699
|
+
optional: external_exports.boolean()
|
|
15700
|
+
}),
|
|
15701
|
+
external_exports.object({
|
|
15702
|
+
id: external_exports.string().min(1),
|
|
15703
|
+
type: external_exports.literal("text"),
|
|
15704
|
+
prompt: external_exports.string(),
|
|
15705
|
+
multiline: external_exports.boolean(),
|
|
15706
|
+
secret: external_exports.literal(false),
|
|
15707
|
+
optional: external_exports.boolean(),
|
|
15708
|
+
placeholder: external_exports.string().optional(),
|
|
15709
|
+
prefill: external_exports.string().optional()
|
|
15710
|
+
})
|
|
15711
|
+
]);
|
|
15712
|
+
var threadQuestionSchema = external_exports.object({
|
|
15713
|
+
interactionId: external_exports.string().min(1),
|
|
15714
|
+
turnId: external_exports.string().min(1),
|
|
15715
|
+
title: external_exports.string().optional(),
|
|
15716
|
+
questions: external_exports.array(field).min(1)
|
|
15717
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
15718
|
+
message: "Shared cards require at least one multi-select question"
|
|
15719
|
+
});
|
|
15720
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
15721
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
15722
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
15723
|
+
threadId: external_exports.string().min(1),
|
|
15724
|
+
turnId: external_exports.string().min(1),
|
|
15725
|
+
interactionId: external_exports.string().min(1),
|
|
15726
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
15727
|
+
cancelled: external_exports.boolean().default(false)
|
|
15728
|
+
});
|
|
15729
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
15730
|
+
|
|
15674
15731
|
// packages/shared-contracts/dist/harness-plugins.js
|
|
15675
15732
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15676
15733
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -15773,6 +15830,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15773
15830
|
"codexhost/harness/display-settings/set",
|
|
15774
15831
|
"codexhost/harness/inspect",
|
|
15775
15832
|
"codexhost/harness/installation",
|
|
15833
|
+
"codexhost/harness/installation/start",
|
|
15834
|
+
"codexhost/harness/installation/status",
|
|
15776
15835
|
"codexhost/harness/launch-settings/get",
|
|
15777
15836
|
"codexhost/harness/launch-settings/set",
|
|
15778
15837
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15853,7 +15912,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15853
15912
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15854
15913
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15855
15914
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15915
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15916
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15917
|
+
kind: external_exports.literal("countdown"),
|
|
15918
|
+
id: external_exports.string().min(1).max(64),
|
|
15919
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15920
|
+
label: indicatorTextSchema(256).optional(),
|
|
15921
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15922
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15923
|
+
message: "Composer indicator IDs must be unique"
|
|
15924
|
+
});
|
|
15856
15925
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15926
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15857
15927
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15858
15928
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15859
15929
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -16279,7 +16349,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
16279
16349
|
}).strict().optional(),
|
|
16280
16350
|
input: external_exports.object({
|
|
16281
16351
|
image: external_exports.boolean()
|
|
16282
|
-
}).strict().optional()
|
|
16352
|
+
}).strict().optional(),
|
|
16353
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
16354
|
+
steer: external_exports.boolean().optional()
|
|
16283
16355
|
}).strict();
|
|
16284
16356
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
16285
16357
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -16326,7 +16398,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
16326
16398
|
var harnessInspectParamsSchema = external_exports.object({
|
|
16327
16399
|
harnessId: harnessIdSchema,
|
|
16328
16400
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
16329
|
-
refresh: external_exports.boolean().optional()
|
|
16401
|
+
refresh: external_exports.boolean().optional(),
|
|
16402
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
16403
|
+
purpose: external_exports.literal("availability").optional()
|
|
16330
16404
|
}).strict();
|
|
16331
16405
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
16332
16406
|
harnessId: harnessIdSchema
|
|
@@ -16411,13 +16485,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
16411
16485
|
seen.add(thread.threadId);
|
|
16412
16486
|
}
|
|
16413
16487
|
});
|
|
16488
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
16489
|
+
threadId: hostThreadIdSchema,
|
|
16490
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16491
|
+
text: external_exports.string().optional()
|
|
16492
|
+
}).strict();
|
|
16493
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16494
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16495
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
16496
|
+
}).strict();
|
|
16414
16497
|
|
|
16415
16498
|
// packages/shared-contracts/dist/harness-route.js
|
|
16416
16499
|
var harnessPluginRouteSchema = external_exports.object({
|
|
16417
16500
|
harnessId: harnessPluginIdSchema,
|
|
16418
16501
|
model: harnessModelRefSchema.optional(),
|
|
16419
16502
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
16420
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
16503
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
16504
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
16505
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
16506
|
+
prewarm: external_exports.literal(true).optional()
|
|
16421
16507
|
}).strict();
|
|
16422
16508
|
|
|
16423
16509
|
// packages/shared-contracts/dist/harness-launch-settings.js
|
|
@@ -16443,6 +16529,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16443
16529
|
latestVersion: external_exports.string().min(1).max(128),
|
|
16444
16530
|
updateAvailable: external_exports.boolean(),
|
|
16445
16531
|
canUpdate: external_exports.boolean(),
|
|
16532
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
16533
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
16534
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
16535
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
16446
16536
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
16447
16537
|
message: external_exports.string().max(2048).optional(),
|
|
16448
16538
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -16450,6 +16540,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16450
16540
|
notice: harnessLocalizedTextSchema.optional(),
|
|
16451
16541
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
16452
16542
|
}).strict();
|
|
16543
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
16544
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
16545
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
16546
|
+
external_exports.object({
|
|
16547
|
+
taskId: external_exports.string().uuid(),
|
|
16548
|
+
status: external_exports.literal("succeeded"),
|
|
16549
|
+
result: harnessInstallationStateSchema
|
|
16550
|
+
}).strict(),
|
|
16551
|
+
external_exports.object({
|
|
16552
|
+
taskId: external_exports.string().uuid(),
|
|
16553
|
+
status: external_exports.literal("failed"),
|
|
16554
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
16555
|
+
}).strict()
|
|
16556
|
+
]);
|
|
16453
16557
|
|
|
16454
16558
|
// packages/shared-contracts/dist/codex-accounts.js
|
|
16455
16559
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -17492,9 +17596,9 @@ function parseAnnouncement(document) {
|
|
|
17492
17596
|
const fields = /* @__PURE__ */ new Map();
|
|
17493
17597
|
for (const line of (match[1] ?? "").split("\n")) {
|
|
17494
17598
|
if (!line.trim()) continue;
|
|
17495
|
-
const
|
|
17496
|
-
if (!
|
|
17497
|
-
fields.set(
|
|
17599
|
+
const field2 = /^(enabled|title|type):[ \t]*(.+?)\s*$/u.exec(line);
|
|
17600
|
+
if (!field2?.[1] || !field2[2] || fields.has(field2[1])) return null;
|
|
17601
|
+
fields.set(field2[1], field2[2]);
|
|
17498
17602
|
}
|
|
17499
17603
|
if (fields.get("enabled") !== "true") return null;
|
|
17500
17604
|
let title = fields.get("title");
|