@liberseek/boft-cli-win32-arm64 0.6.6 → 0.6.8
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/THIRD_PARTY_NOTICES.txt +4 -0
- package/app/codexhost-distribution.json +1 -1
- package/app/desktop-controller.mjs +18 -14
- package/app/host-runtime.mjs +672 -363
- package/app/plugins/antigravity/plugin.mjs +45 -198
- package/app/plugins/claude-code/plugin.mjs +245 -58
- package/app/plugins/codebuddy/assets/icon.svg +1 -0
- package/app/plugins/codebuddy/manifest.json +13 -0
- package/app/plugins/codebuddy/plugin.mjs +23179 -0
- package/app/plugins/cursor-cli/assets/icon.svg +1 -0
- package/app/plugins/cursor-cli/manifest.json +13 -0
- package/app/plugins/cursor-cli/plugin.mjs +22713 -0
- package/app/plugins/enabled.json +3 -1
- package/app/plugins/opencode/plugin.mjs +24 -5
- package/app/plugins/pi/plugin.mjs +0 -12
- package/app/renderer-extension.js +280 -117
- 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/licenses/Agent-Client-Protocol-SDK-LICENSE.txt +191 -0
- package/package.json +1 -1
package/app/plugins/enabled.json
CHANGED
|
@@ -7,7 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
|
|
8
8
|
// dist/opencode-adapter.js
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
|
-
import
|
|
10
|
+
import fs4 from "node:fs";
|
|
11
11
|
import path5 from "node:path";
|
|
12
12
|
|
|
13
13
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
@@ -16000,6 +16000,8 @@ var OpenCodeTransportError = class extends Error {
|
|
|
16000
16000
|
// dist/server-connection.js
|
|
16001
16001
|
import { randomBytes } from "node:crypto";
|
|
16002
16002
|
import { spawn, spawnSync } from "node:child_process";
|
|
16003
|
+
import fs2 from "node:fs";
|
|
16004
|
+
import { homedir, tmpdir } from "node:os";
|
|
16003
16005
|
|
|
16004
16006
|
// ../../../node_modules/@opencode-ai/sdk/dist/v2/gen/core/serverSentEvents.gen.js
|
|
16005
16007
|
var createSseClient = ({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url: url2, ...options }) => {
|
|
@@ -21739,6 +21741,21 @@ function signalProcessTree(child, signal) {
|
|
|
21739
21741
|
throw error51;
|
|
21740
21742
|
}
|
|
21741
21743
|
}
|
|
21744
|
+
function safeOpenCodeServerCwd(environment) {
|
|
21745
|
+
const candidates = [environment.USERPROFILE, environment.HOME, homedir(), tmpdir()];
|
|
21746
|
+
for (const candidate of candidates) {
|
|
21747
|
+
if (!candidate)
|
|
21748
|
+
continue;
|
|
21749
|
+
try {
|
|
21750
|
+
if (!fs2.statSync(candidate).isDirectory())
|
|
21751
|
+
continue;
|
|
21752
|
+
fs2.accessSync(candidate, fs2.constants.R_OK | fs2.constants.W_OK);
|
|
21753
|
+
return candidate;
|
|
21754
|
+
} catch {
|
|
21755
|
+
}
|
|
21756
|
+
}
|
|
21757
|
+
return void 0;
|
|
21758
|
+
}
|
|
21742
21759
|
function managedOpenCodeEnvironment(environment, executionPolicy = "default") {
|
|
21743
21760
|
const merged = { ...environment ?? process.env };
|
|
21744
21761
|
const undefinedKeys = Object.entries(merged).filter(([, value]) => value === void 0).map(([key]) => key);
|
|
@@ -21836,6 +21853,7 @@ var OpenCodeServerConnection = class {
|
|
|
21836
21853
|
OPENCODE_SERVER_PASSWORD: password
|
|
21837
21854
|
};
|
|
21838
21855
|
const invocation = openCodeServerInvocation(executable, environment);
|
|
21856
|
+
const serverCwd = safeOpenCodeServerCwd(environment);
|
|
21839
21857
|
let child;
|
|
21840
21858
|
try {
|
|
21841
21859
|
child = this.#dependencies.spawn(invocation.command, invocation.arguments, {
|
|
@@ -21843,7 +21861,8 @@ var OpenCodeServerConnection = class {
|
|
|
21843
21861
|
stdio: "pipe",
|
|
21844
21862
|
detached: process.platform !== "win32",
|
|
21845
21863
|
windowsHide: true,
|
|
21846
|
-
windowsVerbatimArguments: invocation.windowsVerbatimArguments
|
|
21864
|
+
windowsVerbatimArguments: invocation.windowsVerbatimArguments,
|
|
21865
|
+
...serverCwd ? { cwd: serverCwd } : {}
|
|
21847
21866
|
});
|
|
21848
21867
|
} catch (error51) {
|
|
21849
21868
|
throw new OpenCodeTransportError(isMissingExecutable(error51) ? "notInstalled" : "unavailable", isMissingExecutable(error51) ? "OpenCode CLI is not installed" : "OpenCode Server failed to start", { cause: error51 });
|
|
@@ -22154,7 +22173,7 @@ var SdkOpenCodeTransport = class {
|
|
|
22154
22173
|
};
|
|
22155
22174
|
|
|
22156
22175
|
// dist/file-change-verification.js
|
|
22157
|
-
import
|
|
22176
|
+
import fs3 from "node:fs";
|
|
22158
22177
|
import path4 from "node:path";
|
|
22159
22178
|
function missingPath(error51) {
|
|
22160
22179
|
if (!error51 || typeof error51 !== "object")
|
|
@@ -22171,7 +22190,7 @@ function canonicalDirectoryPath(value) {
|
|
|
22171
22190
|
const missingSegments = [];
|
|
22172
22191
|
for (; ; ) {
|
|
22173
22192
|
try {
|
|
22174
|
-
return path4.join(
|
|
22193
|
+
return path4.join(fs3.realpathSync.native(candidate), ...missingSegments);
|
|
22175
22194
|
} catch (error51) {
|
|
22176
22195
|
if (!missingPath(error51))
|
|
22177
22196
|
return void 0;
|
|
@@ -22495,7 +22514,7 @@ function normalizeError(error51, fallback) {
|
|
|
22495
22514
|
function sameCwd(left, right) {
|
|
22496
22515
|
const canonical = (value) => {
|
|
22497
22516
|
try {
|
|
22498
|
-
return
|
|
22517
|
+
return fs4.realpathSync.native(value);
|
|
22499
22518
|
} catch {
|
|
22500
22519
|
return path5.resolve(value);
|
|
22501
22520
|
}
|
|
@@ -17467,7 +17467,6 @@ var PiRpcSession = class {
|
|
|
17467
17467
|
#closePromise = null;
|
|
17468
17468
|
#compactionActive = false;
|
|
17469
17469
|
#compactionTurn = null;
|
|
17470
|
-
#compactionTimeout = null;
|
|
17471
17470
|
#failed = false;
|
|
17472
17471
|
#pending = /* @__PURE__ */ new Map();
|
|
17473
17472
|
#state = null;
|
|
@@ -17483,7 +17482,6 @@ var PiRpcSession = class {
|
|
|
17483
17482
|
}
|
|
17484
17483
|
this.#options = {
|
|
17485
17484
|
commandTimeoutMs: 3e4,
|
|
17486
|
-
compactionTimeoutMs: 3e5,
|
|
17487
17485
|
cancelTimeoutMs: 2e3,
|
|
17488
17486
|
closeTimeoutMs: 2e3,
|
|
17489
17487
|
...options
|
|
@@ -17825,10 +17823,6 @@ var PiRpcSession = class {
|
|
|
17825
17823
|
if (value.type === "compaction_start") {
|
|
17826
17824
|
this.#compactionActive = true;
|
|
17827
17825
|
this.#compactionTurn = this.#activeTurn;
|
|
17828
|
-
this.#compactionTimeout ??= setTimeout(() => {
|
|
17829
|
-
this.#compactionTimeout = null;
|
|
17830
|
-
this.#fail(new PiRpcFaultError("protocolError", `Pi RPC compaction timed out after ${this.#options.compactionTimeoutMs}ms`));
|
|
17831
|
-
}, this.#options.compactionTimeoutMs);
|
|
17832
17826
|
const onEvent = this.#activeTurn?.onEvent ?? this.#manualCompaction?.onEvent;
|
|
17833
17827
|
onEvent?.({ type: "compaction.started" });
|
|
17834
17828
|
for (const pending of this.#pending.values()) {
|
|
@@ -17841,9 +17835,6 @@ var PiRpcSession = class {
|
|
|
17841
17835
|
}
|
|
17842
17836
|
if (value.type === "compaction_end") {
|
|
17843
17837
|
this.#compactionActive = false;
|
|
17844
|
-
if (this.#compactionTimeout)
|
|
17845
|
-
clearTimeout(this.#compactionTimeout);
|
|
17846
|
-
this.#compactionTimeout = null;
|
|
17847
17838
|
const compactionTurn = this.#compactionTurn;
|
|
17848
17839
|
this.#compactionTurn = null;
|
|
17849
17840
|
for (const [id, pending] of this.#pending) {
|
|
@@ -18353,9 +18344,6 @@ var PiRpcSession = class {
|
|
|
18353
18344
|
}
|
|
18354
18345
|
}
|
|
18355
18346
|
#rejectAll(error51) {
|
|
18356
|
-
if (this.#compactionTimeout)
|
|
18357
|
-
clearTimeout(this.#compactionTimeout);
|
|
18358
|
-
this.#compactionTimeout = null;
|
|
18359
18347
|
for (const pending of this.#pending.values()) {
|
|
18360
18348
|
if (pending.timeout)
|
|
18361
18349
|
clearTimeout(pending.timeout);
|