@liberseek/boft-cli-linux-x64 0.8.4 → 0.8.6
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 +2 -2
- package/THIRD_PARTY_NOTICES.txt +6 -2
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +129 -28
- package/app/console-web.js +336 -78
- package/app/desktop-controller.mjs +1741 -60
- package/app/host-runtime.mjs +4983 -2002
- package/app/plugins/antigravity/plugin.mjs +423 -63
- package/app/plugins/claude-code/plugin.mjs +417 -264
- package/app/plugins/codebuddy/plugin.mjs +256 -134
- package/app/plugins/codex-usage/plugin.mjs +97 -32
- package/app/plugins/copilot/plugin.mjs +122 -57
- package/app/plugins/cursor-cli/plugin.mjs +236 -139
- package/app/plugins/deepseek-harness/plugin.mjs +584 -86
- package/app/plugins/devin/assets/icon.svg +1 -0
- package/app/plugins/devin/manifest.json +30 -0
- package/app/plugins/devin/plugin.mjs +23425 -0
- package/app/plugins/enabled.json +2 -0
- package/app/plugins/grok/plugin.mjs +839 -500
- package/app/plugins/hermes/plugin.mjs +522 -200
- package/app/plugins/kimi-code/plugin.mjs +134 -22
- package/app/plugins/kiro-cli/plugin.mjs +84 -19
- package/app/plugins/muse/plugin.mjs +74 -9
- package/app/plugins/omp/plugin.mjs +104 -39
- package/app/plugins/opencode/plugin.mjs +126 -61
- package/app/plugins/pi/plugin.mjs +1769 -468
- package/app/plugins/qoder/plugin.mjs +9617 -8682
- package/app/plugins/qoder-cn/plugin.mjs +9617 -8682
- package/app/plugins/qwen-code/assets/icon.svg +1 -0
- package/app/plugins/qwen-code/manifest.json +29 -0
- package/app/plugins/qwen-code/plugin.mjs +29366 -0
- package/app/plugins/workbuddy/plugin.mjs +256 -134
- package/app/plugins/zcode/plugin.mjs +265 -42
- package/app/renderer-extension.js +3286 -528
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/licenses/Qwen-Code-SDK-LICENSE.txt +203 -0
- package/package.json +2 -2
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.6
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@liberseek/boft-cli`.
|
|
@@ -36,7 +36,7 @@ The `boft` command launches the packaged Rust launcher with:
|
|
|
36
36
|
|
|
37
37
|
## Requirements
|
|
38
38
|
|
|
39
|
-
- Node.js 22 or
|
|
39
|
+
- Node.js 22.19.0 or later, except 23.x (other releases lack parts of the built-in `node:sqlite` module)
|
|
40
40
|
- Official ChatGPT/Codex Desktop for macOS, Windows, or Linux
|
|
41
41
|
- Pi on `PATH` when using the Pi agent
|
|
42
42
|
- Claude Code installed when using the Claude Code adapter
|
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -32,14 +32,18 @@ License text: licenses/OpenCode-v2-Client-LICENSE.txt
|
|
|
32
32
|
License: MIT
|
|
33
33
|
License text: licenses/OpenCode-SDK-LICENSE.txt
|
|
34
34
|
|
|
35
|
-
@qoder-ai/qoder-agent-sdk 1.0.
|
|
35
|
+
@qoder-ai/qoder-agent-sdk 1.0.58
|
|
36
36
|
License: SEE LICENSE IN LICENSE
|
|
37
37
|
License text: licenses/Qoder-Agent-SDK-LICENSE.txt
|
|
38
38
|
|
|
39
|
-
@qodercn-ai/qodercn-agent-sdk 1.0.
|
|
39
|
+
@qodercn-ai/qodercn-agent-sdk 1.0.58
|
|
40
40
|
License: SEE LICENSE IN LICENSE
|
|
41
41
|
License text: licenses/QoderCN-Agent-SDK-LICENSE.txt
|
|
42
42
|
|
|
43
|
+
@qwen-code/sdk 0.1.26
|
|
44
|
+
License: Apache-2.0
|
|
45
|
+
License text: licenses/Qwen-Code-SDK-LICENSE.txt
|
|
46
|
+
|
|
43
47
|
diff 8.0.2
|
|
44
48
|
License: BSD-3-Clause
|
|
45
49
|
License text: licenses/diff-LICENSE.txt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.8.
|
|
1
|
+
{"schemaVersion":1,"version":"0.8.6","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
|
}
|
|
@@ -15573,6 +15574,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
15573
15574
|
cachedInputTokens: count,
|
|
15574
15575
|
cacheWriteInputTokens: count,
|
|
15575
15576
|
cacheKnownInputTokens: count,
|
|
15577
|
+
cacheHitCachedInputTokens: count,
|
|
15578
|
+
cacheHitInputTokens: count,
|
|
15576
15579
|
outputTokens: count,
|
|
15577
15580
|
reasoningOutputTokens: count,
|
|
15578
15581
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15680,6 +15683,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
15680
15683
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
15681
15684
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
15682
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
|
+
|
|
15683
15731
|
// packages/shared-contracts/dist/harness-plugins.js
|
|
15684
15732
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15685
15733
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -16442,6 +16490,21 @@ var threadSteeringInspectParamsSchema = external_exports.object({
|
|
|
16442
16490
|
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16443
16491
|
text: external_exports.string().optional()
|
|
16444
16492
|
}).strict();
|
|
16493
|
+
var threadSteeringContextSchema = external_exports.object({
|
|
16494
|
+
kind: external_exports.literal("application"),
|
|
16495
|
+
value: external_exports.string().transform((text, context) => {
|
|
16496
|
+
try {
|
|
16497
|
+
return JSON.parse(text);
|
|
16498
|
+
} catch {
|
|
16499
|
+
context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
|
|
16500
|
+
return external_exports.NEVER;
|
|
16501
|
+
}
|
|
16502
|
+
}).pipe(external_exports.object({
|
|
16503
|
+
expectedTurnId: hostTurnIdSchema,
|
|
16504
|
+
clientUserMessageId: external_exports.string().min(1),
|
|
16505
|
+
delivery: external_exports.enum(["newTurn", "activeTurn"])
|
|
16506
|
+
}).strict())
|
|
16507
|
+
}).strict().transform((context) => context.value);
|
|
16445
16508
|
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16446
16509
|
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16447
16510
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
@@ -16452,7 +16515,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
16452
16515
|
harnessId: harnessPluginIdSchema,
|
|
16453
16516
|
model: harnessModelRefSchema.optional(),
|
|
16454
16517
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
16455
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
16518
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
16519
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
16520
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
16521
|
+
prewarm: external_exports.literal(true).optional()
|
|
16456
16522
|
}).strict();
|
|
16457
16523
|
|
|
16458
16524
|
// packages/shared-contracts/dist/harness-launch-settings.js
|
|
@@ -17032,33 +17098,58 @@ var HarnessLaunchSettingsStore = class {
|
|
|
17032
17098
|
return path8.join(this.#directory, `${harnessPluginIdSchema.parse(id)}.json`);
|
|
17033
17099
|
}
|
|
17034
17100
|
async #read(id) {
|
|
17101
|
+
const file2 = this.#file(id);
|
|
17102
|
+
let text;
|
|
17035
17103
|
try {
|
|
17036
|
-
|
|
17037
|
-
if (!path8.isAbsolute(value))
|
|
17038
|
-
throw new Error("Expected an absolute entrypoint path");
|
|
17039
|
-
return value;
|
|
17104
|
+
text = await readFile4(file2, "utf8");
|
|
17040
17105
|
} catch (error51) {
|
|
17041
17106
|
if (error51 && typeof error51 === "object" && "code" in error51 && error51.code === "ENOENT")
|
|
17042
17107
|
return null;
|
|
17043
|
-
throw new Error(
|
|
17108
|
+
throw new Error(`Could not read Harness launch settings at ${file2}`, { cause: error51 });
|
|
17044
17109
|
}
|
|
17110
|
+
let parsed;
|
|
17111
|
+
try {
|
|
17112
|
+
parsed = harnessLaunchPathSchema.parse(JSON.parse(text));
|
|
17113
|
+
} catch {
|
|
17114
|
+
}
|
|
17115
|
+
if (parsed === void 0 || !path8.isAbsolute(parsed)) {
|
|
17116
|
+
throw new Error(`Could not read Harness launch settings at ${file2}: expected an absolute installation path; save a new path or reset it`);
|
|
17117
|
+
}
|
|
17118
|
+
return parsed;
|
|
17045
17119
|
}
|
|
17046
|
-
|
|
17047
|
-
async initialCommand(id) {
|
|
17120
|
+
#snapshot(id) {
|
|
17048
17121
|
let initial = this.#initial.get(id);
|
|
17049
17122
|
if (!initial) {
|
|
17050
|
-
initial = this.#read(id);
|
|
17123
|
+
initial = this.#read(id).then((value) => ({ path: value }), (error51) => ({ error: error51 instanceof Error ? error51 : new Error(String(error51)) }));
|
|
17051
17124
|
this.#initial.set(id, initial);
|
|
17052
17125
|
}
|
|
17053
|
-
return
|
|
17126
|
+
return initial;
|
|
17127
|
+
}
|
|
17128
|
+
/**
|
|
17129
|
+
* Capture the value used to construct this Host's Adapter; changes require a restart. A failed
|
|
17130
|
+
* read is remembered for restart reporting but not reused: the next call reads the file again.
|
|
17131
|
+
*/
|
|
17132
|
+
async initialCommand(id) {
|
|
17133
|
+
const cached2 = this.#initial.get(id);
|
|
17134
|
+
if (cached2 && "error" in await cached2)
|
|
17135
|
+
this.#initial.delete(id);
|
|
17136
|
+
const snapshot = await this.#snapshot(id);
|
|
17137
|
+
if ("error" in snapshot)
|
|
17138
|
+
throw snapshot.error;
|
|
17139
|
+
return snapshot.path ?? void 0;
|
|
17140
|
+
}
|
|
17141
|
+
/** The Adapter was built without a readable setting, so any saved value needs a restart. */
|
|
17142
|
+
#restartRequired(snapshot, value) {
|
|
17143
|
+
return "error" in snapshot || value !== snapshot.path;
|
|
17054
17144
|
}
|
|
17055
17145
|
async get(id) {
|
|
17056
|
-
const
|
|
17146
|
+
const snapshot = await this.#snapshot(id);
|
|
17057
17147
|
const value = await this.#read(id);
|
|
17058
|
-
return { path: value, restartRequired: value
|
|
17148
|
+
return { path: value, restartRequired: this.#restartRequired(snapshot, value) };
|
|
17059
17149
|
}
|
|
17150
|
+
/** Replaces the file without reading it, so an unreadable file can always be repaired. */
|
|
17060
17151
|
async set(id, value) {
|
|
17061
|
-
const
|
|
17152
|
+
const snapshot = await this.#snapshot(id);
|
|
17062
17153
|
const file2 = this.#file(id);
|
|
17063
17154
|
if (value === null) {
|
|
17064
17155
|
await rm3(file2, { force: true });
|
|
@@ -17079,7 +17170,7 @@ var HarnessLaunchSettingsStore = class {
|
|
|
17079
17170
|
await rm3(temporary, { force: true });
|
|
17080
17171
|
}
|
|
17081
17172
|
}
|
|
17082
|
-
return { path: value, restartRequired: value
|
|
17173
|
+
return { path: value, restartRequired: this.#restartRequired(snapshot, value) };
|
|
17083
17174
|
}
|
|
17084
17175
|
};
|
|
17085
17176
|
|
|
@@ -17140,10 +17231,15 @@ function createConsoleHarnesses(roots, environment = process.env) {
|
|
|
17140
17231
|
if (seen.has(manifest.id)) continue;
|
|
17141
17232
|
seen.add(manifest.id);
|
|
17142
17233
|
const icon = manifest.icon ? await readPluginIcon(plugin.root, manifest.icon).catch(() => null) : null;
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17234
|
+
let launchPath = null;
|
|
17235
|
+
let launchPathError = null;
|
|
17236
|
+
if (manifest.launchCommand) {
|
|
17237
|
+
try {
|
|
17238
|
+
launchPath = (await store.get(manifest.id)).path;
|
|
17239
|
+
} catch (error51) {
|
|
17240
|
+
launchPathError = error51 instanceof Error ? error51.message : String(error51);
|
|
17241
|
+
}
|
|
17242
|
+
}
|
|
17147
17243
|
harnesses.push({
|
|
17148
17244
|
id: manifest.id,
|
|
17149
17245
|
name: manifest.name,
|
|
@@ -17152,7 +17248,8 @@ function createConsoleHarnesses(roots, environment = process.env) {
|
|
|
17152
17248
|
launchCommand: manifest.launchCommand === true,
|
|
17153
17249
|
links: manifest.links ?? null,
|
|
17154
17250
|
icon,
|
|
17155
|
-
launchPath
|
|
17251
|
+
launchPath,
|
|
17252
|
+
launchPathError
|
|
17156
17253
|
});
|
|
17157
17254
|
}
|
|
17158
17255
|
return harnesses.sort(
|
|
@@ -17169,7 +17266,7 @@ function createConsoleHarnesses(roots, environment = process.env) {
|
|
|
17169
17266
|
}
|
|
17170
17267
|
try {
|
|
17171
17268
|
const settings = await store.set(id, value);
|
|
17172
|
-
return { ...harness2, launchPath: settings.path };
|
|
17269
|
+
return { ...harness2, launchPath: settings.path, launchPathError: null };
|
|
17173
17270
|
} catch (error51) {
|
|
17174
17271
|
throw new ConsoleHarnessError(400, error51 instanceof Error ? error51.message : String(error51));
|
|
17175
17272
|
}
|
|
@@ -17545,9 +17642,9 @@ function parseAnnouncement(document) {
|
|
|
17545
17642
|
const fields = /* @__PURE__ */ new Map();
|
|
17546
17643
|
for (const line of (match[1] ?? "").split("\n")) {
|
|
17547
17644
|
if (!line.trim()) continue;
|
|
17548
|
-
const
|
|
17549
|
-
if (!
|
|
17550
|
-
fields.set(
|
|
17645
|
+
const field2 = /^(enabled|title|type):[ \t]*(.+?)\s*$/u.exec(line);
|
|
17646
|
+
if (!field2?.[1] || !field2[2] || fields.has(field2[1])) return null;
|
|
17647
|
+
fields.set(field2[1], field2[2]);
|
|
17551
17648
|
}
|
|
17552
17649
|
if (fields.get("enabled") !== "true") return null;
|
|
17553
17650
|
let title = fields.get("title");
|
|
@@ -18051,7 +18148,11 @@ function startConsoleServer(options) {
|
|
|
18051
18148
|
return;
|
|
18052
18149
|
}
|
|
18053
18150
|
scheduleIdleExit();
|
|
18054
|
-
const url2 =
|
|
18151
|
+
const url2 = URL.parse(request.url ?? "/", `http://127.0.0.1:${port}`);
|
|
18152
|
+
if (!url2) {
|
|
18153
|
+
sendJson(response, 400, { error: "Bad Request" });
|
|
18154
|
+
return;
|
|
18155
|
+
}
|
|
18055
18156
|
const method = request.method ?? "GET";
|
|
18056
18157
|
const route = `${method} ${url2.pathname}`;
|
|
18057
18158
|
if (route === "GET /api/health") {
|