@liberseek/boft-cli-win32-arm64 0.6.4 → 0.6.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/host-runtime.mjs +182 -127
- package/app/plugins/claude-code/plugin.mjs +664 -229
- package/app/plugins/deepseek-harness/plugin.mjs +82 -17
- package/app/plugins/grok/plugin.mjs +6 -0
- package/app/plugins/kiro-cli/plugin.mjs +77 -61
- package/app/plugins/omp/plugin.mjs +6 -0
- package/app/plugins/opencode/plugin.mjs +292 -142
- package/app/plugins/pi/plugin.mjs +1489 -1304
- package/app/renderer-extension.js +17 -23
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
|
@@ -20663,29 +20663,19 @@ ${error51.stderrTail}`] : []
|
|
|
20663
20663
|
document.body.append(popover);
|
|
20664
20664
|
return control;
|
|
20665
20665
|
}
|
|
20666
|
+
function composerCreditsChipVisible(accountCredits) {
|
|
20667
|
+
return accountCredits !== null && accountCredits.usedPercent !== void 0;
|
|
20668
|
+
}
|
|
20669
|
+
function composerAccountCredits(accountCredits) {
|
|
20670
|
+
const credits = accountCredits ?? null;
|
|
20671
|
+
return composerCreditsChipVisible(credits) ? credits : null;
|
|
20672
|
+
}
|
|
20666
20673
|
function renderRendererCreditsControl(control, accountCredits, locale = "en") {
|
|
20667
|
-
if (accountCredits
|
|
20674
|
+
if (!composerCreditsChipVisible(accountCredits)) {
|
|
20668
20675
|
control.root.style.display = "none";
|
|
20669
20676
|
closePopover2(control);
|
|
20670
20677
|
return false;
|
|
20671
20678
|
}
|
|
20672
|
-
if (accountCredits.usedPercent === void 0) {
|
|
20673
|
-
const amount = accountCredits.remaining === void 0 || !accountCredits.unit ? null : formatAccountCreditsBalance(accountCredits.remaining, accountCredits.unit);
|
|
20674
|
-
if (!amount) {
|
|
20675
|
-
control.root.style.display = "none";
|
|
20676
|
-
closePopover2(control);
|
|
20677
|
-
return false;
|
|
20678
|
-
}
|
|
20679
|
-
const ringSlot2 = control.trigger.querySelector("[data-codexhost-credits-ring]");
|
|
20680
|
-
const label2 = control.trigger.querySelector("[data-codexhost-credits-label]");
|
|
20681
|
-
ringSlot2?.replaceChildren();
|
|
20682
|
-
if (label2) label2.textContent = amount;
|
|
20683
|
-
control.root.style.display = "inline-flex";
|
|
20684
|
-
control.trigger.setAttribute("aria-label", amount);
|
|
20685
|
-
control.trigger.title = amount;
|
|
20686
|
-
renderDetails2(control.popover, accountCredits, locale);
|
|
20687
|
-
return true;
|
|
20688
|
-
}
|
|
20689
20679
|
const remaining = remainingPercent(accountCredits.usedPercent);
|
|
20690
20680
|
const percent = formatRendererCreditsPercent(remaining);
|
|
20691
20681
|
const title = `${creditsPeriodLabel(accountCredits.periodType)} ${percent}`;
|
|
@@ -21508,7 +21498,11 @@ ${error51.stderrTail}`] : []
|
|
|
21508
21498
|
control.harnessCommands.root.hidden = state.agent === "codex";
|
|
21509
21499
|
control.harnessCommands.root.style.display = state.agent === "codex" ? "none" : "inline-flex";
|
|
21510
21500
|
if (state.agent === "codex") control.harnessCommands.close();
|
|
21511
|
-
renderRendererCreditsControl(
|
|
21501
|
+
renderRendererCreditsControl(
|
|
21502
|
+
control.credits,
|
|
21503
|
+
selectedCodexAccount && codexAccountAuthKind(selectedCodexAccount) === "api" ? null : composerAccountCredits(accountCredits),
|
|
21504
|
+
locale
|
|
21505
|
+
);
|
|
21512
21506
|
}
|
|
21513
21507
|
function disposeComposerAgentControl(control) {
|
|
21514
21508
|
if (control.sendDisabledBeforeSwitch !== null) {
|
|
@@ -28272,7 +28266,7 @@ ${accounts_default}`;
|
|
|
28272
28266
|
if (threadIdFromComposerModelTarget(mounted.modelTarget) !== update.threadId) continue;
|
|
28273
28267
|
mounted.usageRequestGeneration += 1;
|
|
28274
28268
|
mounted.usage = update.usage;
|
|
28275
|
-
mounted.accountCredits = update.accountCredits
|
|
28269
|
+
mounted.accountCredits = composerAccountCredits(update.accountCredits);
|
|
28276
28270
|
usageRefreshAttempts.delete(mounted.composer);
|
|
28277
28271
|
renderMounted(mounted);
|
|
28278
28272
|
}
|
|
@@ -28295,7 +28289,7 @@ ${accounts_default}`;
|
|
|
28295
28289
|
if (disposed || mounted.hostId !== hostId || composerCodexAccounts(mounted.composer) !== accounts || !mounted.composer.isConnected || mountedByComposer.get(mounted.composer) !== mounted || mounted.usageRequestGeneration !== generation || controller.get(mounted.composer).agent !== "codex" || controller.get(mounted.composer).phase !== "draft" || controller.isSubmissionPending(mounted.composer) || threadIdFromComposerModelTarget(mounted.modelTarget) || accounts.selection.selectedAccountId !== accountId || result.accountId !== accountId)
|
|
28296
28290
|
return;
|
|
28297
28291
|
mounted.usage = result.usage;
|
|
28298
|
-
mounted.accountCredits = result.accountCredits
|
|
28292
|
+
mounted.accountCredits = composerAccountCredits(result.accountCredits);
|
|
28299
28293
|
renderMounted(mounted);
|
|
28300
28294
|
} catch {
|
|
28301
28295
|
}
|
|
@@ -28323,7 +28317,7 @@ ${accounts_default}`;
|
|
|
28323
28317
|
return;
|
|
28324
28318
|
}
|
|
28325
28319
|
mounted.usage = result.usage;
|
|
28326
|
-
mounted.accountCredits = result.accountCredits
|
|
28320
|
+
mounted.accountCredits = composerAccountCredits(result.accountCredits);
|
|
28327
28321
|
const agent = controller.get(mounted.composer).agent;
|
|
28328
28322
|
if (result.usage !== null && (!externalAgentHasAccountCredits(agent) || result.accountCredits)) {
|
|
28329
28323
|
usageRefreshAttempts.delete(mounted.composer);
|
|
@@ -29456,7 +29450,7 @@ ${accounts_default}`;
|
|
|
29456
29450
|
ownershipStatus: threadIdFromComposerModelTarget(modelTarget) ? inherited ? "ready" : "loading" : "not-required",
|
|
29457
29451
|
threadConfiguration: inherited?.threadConfiguration,
|
|
29458
29452
|
usage: inherited?.usage ?? null,
|
|
29459
|
-
accountCredits: inherited?.accountCredits
|
|
29453
|
+
accountCredits: composerAccountCredits(inherited?.accountCredits),
|
|
29460
29454
|
hostId: inherited?.hostId ?? hostId,
|
|
29461
29455
|
usageRequestGeneration: 0,
|
|
29462
29456
|
commandRequestGeneration: 0
|
package/bin/codexhost.exe
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|