@liberseek/boft-cli-win32-arm64 0.6.5 → 0.6.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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/host-runtime.mjs +326 -115
- package/app/plugins/antigravity/plugin.mjs +9 -7
- package/app/plugins/deepseek-harness/plugin.mjs +7452 -10273
- package/app/plugins/grok/plugin.mjs +42 -24
- package/app/renderer-extension.js +795 -426
- package/bin/{codexhost.exe → boft.exe} +0 -0
- package/libexec/{codexhost-node-repl.exe → boft-node-repl.exe} +0 -0
- package/libexec/{codexhost-shim.exe → boft-shim.exe} +0 -0
- package/libexec/{codexhost-updater.exe → boft-updater.exe} +0 -0
- package/package.json +1 -1
|
@@ -20004,8 +20004,13 @@ function resolveGrokExecutable(input = {}) {
|
|
|
20004
20004
|
throw new GrokExecutableError("Grok CLI is not installed");
|
|
20005
20005
|
return targetPath(platform).isAbsolute(resolution.executable) ? resolution.executable : path3.resolve(resolution.executable);
|
|
20006
20006
|
}
|
|
20007
|
-
function grokInvocation(command, platform = process.platform) {
|
|
20008
|
-
|
|
20007
|
+
function grokInvocation(command, platform = process.platform, modelId) {
|
|
20008
|
+
const arguments_ = ["agent", "--no-leader"];
|
|
20009
|
+
const trimmed = modelId?.trim();
|
|
20010
|
+
if (trimmed)
|
|
20011
|
+
arguments_.push("--model", trimmed);
|
|
20012
|
+
arguments_.push("stdio");
|
|
20013
|
+
return commandInvocation(command, arguments_, process.env, platform);
|
|
20009
20014
|
}
|
|
20010
20015
|
|
|
20011
20016
|
// dist/grok-fork.js
|
|
@@ -21493,7 +21498,9 @@ function mapGrokReplay(replay, harnessId, sessionId, cwd, knownTurnRefs = [], to
|
|
|
21493
21498
|
retryable: false
|
|
21494
21499
|
}
|
|
21495
21500
|
} : { status: "succeeded" };
|
|
21496
|
-
|
|
21501
|
+
if (status === "completed") {
|
|
21502
|
+
settleWatchedSubagents(tool.type === "toolExecution" ? tool.toolName : tool.command, tool.type === "toolExecution" ? tool.arguments : void 0, content, rawOutput);
|
|
21503
|
+
}
|
|
21497
21504
|
items.push({ item: tool, outcome });
|
|
21498
21505
|
if (status !== "completed")
|
|
21499
21506
|
return;
|
|
@@ -22704,6 +22711,7 @@ var GrokAcpTransport = class {
|
|
|
22704
22711
|
#initialize = null;
|
|
22705
22712
|
#replay = null;
|
|
22706
22713
|
#sessionId = null;
|
|
22714
|
+
#startupModelId;
|
|
22707
22715
|
#stderrTail = "";
|
|
22708
22716
|
constructor(options) {
|
|
22709
22717
|
this.#options = {
|
|
@@ -22760,6 +22768,8 @@ var GrokAcpTransport = class {
|
|
|
22760
22768
|
if (this.#sessionId || this.#closed)
|
|
22761
22769
|
throw new Error("Grok ACP Transport cannot be opened twice");
|
|
22762
22770
|
try {
|
|
22771
|
+
if (input.kind === "create")
|
|
22772
|
+
this.#startupModelId = input.modelId;
|
|
22763
22773
|
const initialize = await this.#ensureInitialized();
|
|
22764
22774
|
const connection = this.#connection;
|
|
22765
22775
|
if (!connection)
|
|
@@ -22885,7 +22895,7 @@ var GrokAcpTransport = class {
|
|
|
22885
22895
|
...this.#options.command ? { command: this.#options.command } : {},
|
|
22886
22896
|
environment: this.#options.environment ?? process.env
|
|
22887
22897
|
});
|
|
22888
|
-
const invocation = grokInvocation(executable);
|
|
22898
|
+
const invocation = grokInvocation(executable, process.platform, this.#startupModelId);
|
|
22889
22899
|
const child = spawn(invocation.command, invocation.arguments, {
|
|
22890
22900
|
cwd: this.#options.cwd,
|
|
22891
22901
|
env: { ...process.env, ...this.#options.environment },
|
|
@@ -23376,10 +23386,13 @@ function finitePercent(value) {
|
|
|
23376
23386
|
return void 0;
|
|
23377
23387
|
return Math.min(100, Math.max(0, value));
|
|
23378
23388
|
}
|
|
23379
|
-
function
|
|
23380
|
-
if (
|
|
23389
|
+
function nonNegativeCentValue(value) {
|
|
23390
|
+
if (!isRecord14(value))
|
|
23381
23391
|
return void 0;
|
|
23382
|
-
|
|
23392
|
+
const amount = value.val === void 0 ? 0 : value.val;
|
|
23393
|
+
if (typeof amount !== "number" || !Number.isFinite(amount) || amount < 0)
|
|
23394
|
+
return void 0;
|
|
23395
|
+
return amount;
|
|
23383
23396
|
}
|
|
23384
23397
|
function grokHome(environment) {
|
|
23385
23398
|
return environment.GROK_HOME ?? path9.join(environment.HOME ?? environment.USERPROFILE ?? os4.homedir(), ".grok");
|
|
@@ -23410,16 +23423,26 @@ function parseGrokCreditsResponse(value, fetchedAt = (/* @__PURE__ */ new Date()
|
|
|
23410
23423
|
return null;
|
|
23411
23424
|
const config2 = value.config;
|
|
23412
23425
|
const period = isRecord14(config2.currentPeriod) ? config2.currentPeriod : void 0;
|
|
23426
|
+
const periodType = periodTypeFrom(period?.type);
|
|
23413
23427
|
const resetsAt = (typeof period?.end === "string" && period.end.length > 0 ? period.end : void 0) ?? (typeof config2.billingPeriodEnd === "string" && config2.billingPeriodEnd.length > 0 ? config2.billingPeriodEnd : void 0);
|
|
23414
|
-
|
|
23415
|
-
|
|
23416
|
-
|
|
23428
|
+
let usedPercent = finitePercent(config2.creditUsagePercent);
|
|
23429
|
+
if (config2.creditUsagePercent === void 0) {
|
|
23430
|
+
const monthlyLimit = nonNegativeCentValue(config2.monthlyLimit);
|
|
23431
|
+
const used = nonNegativeCentValue(config2.used);
|
|
23432
|
+
if (config2.monthlyLimit !== void 0 && monthlyLimit === void 0 || config2.used !== void 0 && used === void 0)
|
|
23433
|
+
return null;
|
|
23434
|
+
if (monthlyLimit !== void 0 && monthlyLimit > 0) {
|
|
23435
|
+
usedPercent = Math.min(100, (used ?? 0) / monthlyLimit * 100);
|
|
23436
|
+
} else if (periodType !== "unknown" && resetsAt !== void 0 && Number.isFinite(Date.parse(resetsAt))) {
|
|
23437
|
+
usedPercent = 0;
|
|
23438
|
+
}
|
|
23439
|
+
}
|
|
23417
23440
|
if (usedPercent === void 0)
|
|
23418
23441
|
return null;
|
|
23419
23442
|
const productUsage = productUsageFrom(config2.productUsage);
|
|
23420
23443
|
return {
|
|
23421
23444
|
usedPercent,
|
|
23422
|
-
periodType
|
|
23445
|
+
periodType,
|
|
23423
23446
|
fetchedAt,
|
|
23424
23447
|
...resetsAt ? { resetsAt } : {},
|
|
23425
23448
|
...productUsage ? { productUsage } : {}
|
|
@@ -24410,12 +24433,6 @@ var GrokHarnessSession = class {
|
|
|
24410
24433
|
emit: (event) => this.#event(event)
|
|
24411
24434
|
});
|
|
24412
24435
|
}
|
|
24413
|
-
#subagentModelLabel(modelId) {
|
|
24414
|
-
const id = modelId ?? this.#state.effectiveModel?.id;
|
|
24415
|
-
if (!id)
|
|
24416
|
-
return void 0;
|
|
24417
|
-
return this.#modelState.catalog.models.find((model) => model.ref.id === id)?.label ?? id;
|
|
24418
|
-
}
|
|
24419
24436
|
#startTool(active, event) {
|
|
24420
24437
|
this.#completeReasoning(active, { status: "succeeded" });
|
|
24421
24438
|
this.#completeAgent(active, { status: "succeeded" });
|
|
@@ -24424,8 +24441,7 @@ var GrokHarnessSession = class {
|
|
|
24424
24441
|
const prompt = grokSubagentPrompt(event.rawInput);
|
|
24425
24442
|
const role = grokSubagentRole(event.rawInput);
|
|
24426
24443
|
const nativeSubagentId = grokNativeSubagentId(event.rawInput);
|
|
24427
|
-
const model =
|
|
24428
|
-
const reasoningEffort = this.#state.effectiveThinkingOptionId;
|
|
24444
|
+
const model = grokSubagentModel(event.rawInput);
|
|
24429
24445
|
active.subagents.start(active.command.turnId, {
|
|
24430
24446
|
callId: event.callId,
|
|
24431
24447
|
operation,
|
|
@@ -24433,7 +24449,6 @@ var GrokHarnessSession = class {
|
|
|
24433
24449
|
...prompt ? { prompt } : {},
|
|
24434
24450
|
...role ? { role } : {},
|
|
24435
24451
|
...model ? { model } : {},
|
|
24436
|
-
...reasoningEffort ? { reasoningEffort } : {},
|
|
24437
24452
|
background: grokSubagentBackground(event.rawInput),
|
|
24438
24453
|
...nativeSubagentId ? { nativeSubagentId } : {}
|
|
24439
24454
|
});
|
|
@@ -24541,9 +24556,9 @@ var GrokHarnessSession = class {
|
|
|
24541
24556
|
}
|
|
24542
24557
|
} : { status: "succeeded" };
|
|
24543
24558
|
this.#completeItem(active, tool.item, outcome);
|
|
24544
|
-
this.#completeWatchedSubagents(active, tool.item, content, rawOutput);
|
|
24545
24559
|
if (status !== "completed")
|
|
24546
24560
|
return;
|
|
24561
|
+
this.#completeWatchedSubagents(active, tool.item, content, rawOutput);
|
|
24547
24562
|
const changes = projectGrokFileChanges(content, this.#cwd);
|
|
24548
24563
|
if (!changes)
|
|
24549
24564
|
return;
|
|
@@ -24585,12 +24600,11 @@ var GrokHarnessSession = class {
|
|
|
24585
24600
|
}
|
|
24586
24601
|
}
|
|
24587
24602
|
#bindSpawnedSubagent(active, event) {
|
|
24588
|
-
const model = event.model ? this.#subagentModelLabel(event.model) : void 0;
|
|
24589
24603
|
active.subagents.bindNativeId(active.command.turnId, {
|
|
24590
24604
|
nativeSubagentId: event.nativeSubagentId,
|
|
24591
24605
|
...event.description ? { description: event.description } : {},
|
|
24592
24606
|
...event.role ? { role: event.role } : {},
|
|
24593
|
-
...model ? { model } : {}
|
|
24607
|
+
...event.model ? { model: event.model } : {}
|
|
24594
24608
|
});
|
|
24595
24609
|
}
|
|
24596
24610
|
#finishNativeSubagent(active, event) {
|
|
@@ -24984,7 +24998,11 @@ var GrokAdapter = class {
|
|
|
24984
24998
|
kind: "resume",
|
|
24985
24999
|
sessionId: parsedRef.data.nativeSessionId,
|
|
24986
25000
|
permissionModeId: requestedPermissionModeId
|
|
24987
|
-
} : {
|
|
25001
|
+
} : {
|
|
25002
|
+
kind: "create",
|
|
25003
|
+
permissionModeId: requestedPermissionModeId,
|
|
25004
|
+
...input.kind === "create" && input.model ? { modelId: input.model.id } : {}
|
|
25005
|
+
});
|
|
24988
25006
|
}
|
|
24989
25007
|
if (!opened) {
|
|
24990
25008
|
await transport.close().catch(() => void 0);
|