@liberseek/boft-cli-linux-x64 0.7.4 → 0.7.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/THIRD_PARTY_NOTICES.txt +4 -0
- package/app/codexhost-distribution.json +1 -1
- package/app/host-runtime.mjs +458 -171
- package/app/plugins/claude-code/plugin.mjs +3 -6
- package/app/plugins/cursor-cli/plugin.mjs +80 -19
- package/app/plugins/deepseek-harness/plugin.mjs +598 -125
- package/app/plugins/omp/plugin.mjs +163 -103
- package/app/plugins/opencode/plugin.mjs +3175 -169
- package/app/plugins/pi/plugin.mjs +4 -1
- package/app/renderer-extension.js +149 -156
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/licenses/OpenCode-v2-Client-LICENSE.txt +21 -0
- package/package.json +1 -1
|
@@ -18730,7 +18730,10 @@ var PiRpcSession = class {
|
|
|
18730
18730
|
}
|
|
18731
18731
|
this.#options = {
|
|
18732
18732
|
commandTimeoutMs: 3e4,
|
|
18733
|
-
|
|
18733
|
+
// Bounds proven stable settlement (Abort acknowledgement plus agent_settled and get_state
|
|
18734
|
+
// confirmation), not the RPC write round trip; must exceed the Host's 20s external steering
|
|
18735
|
+
// bound so a slow cancellation times out gracefully instead of faulting the whole Session.
|
|
18736
|
+
cancelTimeoutMs: 3e4,
|
|
18734
18737
|
closeTimeoutMs: 2e3,
|
|
18735
18738
|
...options
|
|
18736
18739
|
};
|
|
@@ -16674,6 +16674,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16674
16674
|
["path", { d: "M12 17h.01" }]
|
|
16675
16675
|
];
|
|
16676
16676
|
|
|
16677
|
+
// ../../node_modules/lucide/dist/esm/icons/star.mjs
|
|
16678
|
+
var Star = [
|
|
16679
|
+
[
|
|
16680
|
+
"path",
|
|
16681
|
+
{
|
|
16682
|
+
d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"
|
|
16683
|
+
}
|
|
16684
|
+
]
|
|
16685
|
+
];
|
|
16686
|
+
|
|
16677
16687
|
// ../../node_modules/lucide/dist/esm/icons/users.mjs
|
|
16678
16688
|
var Users = [
|
|
16679
16689
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }],
|
|
@@ -16695,6 +16705,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16695
16705
|
var RENDERER_SETTINGS_ICON_NAMES = [
|
|
16696
16706
|
"settings",
|
|
16697
16707
|
"close",
|
|
16708
|
+
"star",
|
|
16709
|
+
"github",
|
|
16698
16710
|
"language",
|
|
16699
16711
|
"connections",
|
|
16700
16712
|
"plugins",
|
|
@@ -16733,6 +16745,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16733
16745
|
var iconNodes = {
|
|
16734
16746
|
settings: Settings,
|
|
16735
16747
|
close: X,
|
|
16748
|
+
star: Star,
|
|
16749
|
+
github: [
|
|
16750
|
+
[
|
|
16751
|
+
"path",
|
|
16752
|
+
{
|
|
16753
|
+
fill: "currentColor",
|
|
16754
|
+
stroke: "none",
|
|
16755
|
+
d: "M12 .297C5.37.297 0 5.67 0 12.297c0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.043-1.61-4.043-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.09-.745.083-.729.083-.729 1.205.084 1.838 1.237 1.838 1.237 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.467-1.334-5.467-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23a11.5 11.5 0 0 1 3-.405c1.02.005 2.045.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
16756
|
+
}
|
|
16757
|
+
]
|
|
16758
|
+
],
|
|
16736
16759
|
language: Languages,
|
|
16737
16760
|
connections: PlugZap,
|
|
16738
16761
|
plugins: Puzzle,
|
|
@@ -17926,6 +17949,7 @@ ${error51.stderrTail}`] : []
|
|
|
17926
17949
|
locale: "en",
|
|
17927
17950
|
title: "Settings",
|
|
17928
17951
|
close: "Close settings",
|
|
17952
|
+
starOnGitHub: "Star to support",
|
|
17929
17953
|
sectionsLabel: "Settings sections",
|
|
17930
17954
|
connectionSection: "Connections",
|
|
17931
17955
|
generalSection: "General",
|
|
@@ -18098,7 +18122,7 @@ ${error51.stderrTail}`] : []
|
|
|
18098
18122
|
launchPathSaveError: "Could not save. Enter an existing absolute installation folder on this Host and check configuration permissions.",
|
|
18099
18123
|
connectionOpenInstallation: "Open official installation page",
|
|
18100
18124
|
connectionOpenHarnessWeb: "Open DeepSeek Harness Web",
|
|
18101
|
-
connectionDeepSeekTestedVersions: "
|
|
18125
|
+
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2, 0.1.5-rc.3, 0.1.7-rc.1 and 0.1.7-rc.2. Other versions may connect after native protocol checks, but are not listed as supported.",
|
|
18102
18126
|
connectionInstall: "Install",
|
|
18103
18127
|
connectionInstallDescription: "This Harness was not detected. Copy the official install command, copy an install prompt for another Agent, or open the official installation page. After installing, return here and run the check again.",
|
|
18104
18128
|
connectionInstallCommand: "Install command",
|
|
@@ -18158,6 +18182,8 @@ ${error51.stderrTail}`] : []
|
|
|
18158
18182
|
updateCopyFailed: "Copy failed",
|
|
18159
18183
|
updateDownloadFromReleases: "Download from GitHub Releases",
|
|
18160
18184
|
updateDownloadWindowsInstaller: "Download Windows installer",
|
|
18185
|
+
updateStarCallout: "If BOFT CLI has helped you, please Star it on GitHub. It means a lot to us \u{1F449}",
|
|
18186
|
+
updateStarLink: "GitHub",
|
|
18161
18187
|
aboutTagline: "An Extension for running third-party Agent Harnesses in Codex.",
|
|
18162
18188
|
aboutLead: "Codex provides an excellent desktop development experience.",
|
|
18163
18189
|
aboutExtensionIntro: "BOFT CLI builds on that, bringing in more compelling Agents through an Extension.",
|
|
@@ -18194,6 +18220,7 @@ ${error51.stderrTail}`] : []
|
|
|
18194
18220
|
locale: "zh-CN",
|
|
18195
18221
|
title: "\u8BBE\u7F6E",
|
|
18196
18222
|
close: "\u5173\u95ED\u8BBE\u7F6E",
|
|
18223
|
+
starOnGitHub: "Star \u652F\u6301",
|
|
18197
18224
|
sectionsLabel: "\u8BBE\u7F6E\u5206\u7C7B",
|
|
18198
18225
|
connectionSection: "\u8FDE\u63A5",
|
|
18199
18226
|
generalSection: "\u901A\u7528",
|
|
@@ -18366,7 +18393,7 @@ ${error51.stderrTail}`] : []
|
|
|
18366
18393
|
launchPathSaveError: "\u4FDD\u5B58\u5931\u8D25\u3002\u8BF7\u586B\u5199\u6B64 Host \u4E0A\u5B9E\u9645\u5B58\u5728\u7684\u5B89\u88C5\u76EE\u5F55\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u5E76\u786E\u8BA4\u914D\u7F6E\u76EE\u5F55\u53EF\u5199\u3002",
|
|
18367
18394
|
connectionOpenInstallation: "\u524D\u5F80\u5B98\u65B9\u5B89\u88C5\u9875\u9762",
|
|
18368
18395
|
connectionOpenHarnessWeb: "\u6253\u5F00 DeepSeek Harness Web",
|
|
18369
|
-
connectionDeepSeekTestedVersions: "\
|
|
18396
|
+
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.2-rc.1\u30010.1.5-rc.1\u30010.1.5-rc.2\u30010.1.5-rc.3\u30010.1.7-rc.1 \u548C 0.1.7-rc.2\u3002\u5176\u4ED6\u7248\u672C\u53EF\u4EE5\u5728\u901A\u8FC7\u539F\u751F\u534F\u8BAE\u68C0\u67E5\u540E\u5C1D\u8BD5\u8FDE\u63A5\uFF0C\u4F46\u5C1A\u672A\u5217\u5165\u652F\u6301\u5217\u8868\u3002",
|
|
18370
18397
|
connectionInstall: "\u5B89\u88C5",
|
|
18371
18398
|
connectionInstallDescription: "\u5C1A\u672A\u68C0\u6D4B\u5230\u8BE5 Harness\u3002\u53EF\u4EE5\u590D\u5236\u5B98\u65B9\u5B89\u88C5\u547D\u4EE4\u3001\u590D\u5236\u5B89\u88C5 Prompt \u4EA4\u7ED9\u5176\u4ED6 Agent \u6267\u884C\uFF0C\u6216\u524D\u5F80\u5B98\u65B9\u5B89\u88C5\u9875\u9762\u3002\u5B89\u88C5\u5B8C\u6210\u540E\u8BF7\u8FD4\u56DE\u6B64\u9875\u9762\u91CD\u65B0\u68C0\u67E5\u3002",
|
|
18372
18399
|
connectionInstallCommand: "\u5B89\u88C5\u547D\u4EE4",
|
|
@@ -18426,6 +18453,8 @@ ${error51.stderrTail}`] : []
|
|
|
18426
18453
|
updateCopyFailed: "\u590D\u5236\u5931\u8D25",
|
|
18427
18454
|
updateDownloadFromReleases: "\u524D\u5F80 GitHub Releases \u4E0B\u8F7D",
|
|
18428
18455
|
updateDownloadWindowsInstaller: "\u4E0B\u8F7D Windows \u5B89\u88C5\u5305",
|
|
18456
|
+
updateStarCallout: "\u5982\u679C BOFT CLI \u5E2E\u5230\u4E86\u4F60\uFF0C\u8BF7\u5728 GitHub \u70B9\u4E2A Star\uFF0C\u8FD9\u5BF9\u6211\u4EEC\u610F\u4E49\u91CD\u5927 \u{1F449}",
|
|
18457
|
+
updateStarLink: "GitHub",
|
|
18429
18458
|
aboutTagline: "\u5728 Codex \u4E2D\u8FD0\u884C\u7B2C\u4E09\u65B9 Agent Harness \u7684 Extension\u3002",
|
|
18430
18459
|
aboutLead: "Codex \u63D0\u4F9B\u4E86\u4F18\u79C0\u7684\u684C\u9762\u5F00\u53D1\u4EA4\u4E92\u4F53\u9A8C\u3002",
|
|
18431
18460
|
aboutExtensionIntro: "BOFT CLI \u5728\u57FA\u7840\u4E0A\uFF0C\u901A\u8FC7 Extension \u52A0\u5165\u4E86\u66F4\u591A\u5F15\u4EBA\u5165\u80DC\u7684 Agent\u3002",
|
|
@@ -19265,16 +19294,6 @@ ${error51.stderrTail}`] : []
|
|
|
19265
19294
|
}
|
|
19266
19295
|
}
|
|
19267
19296
|
|
|
19268
|
-
// ../../node_modules/lucide/dist/esm/icons/star.mjs
|
|
19269
|
-
var Star = [
|
|
19270
|
-
[
|
|
19271
|
-
"path",
|
|
19272
|
-
{
|
|
19273
|
-
d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"
|
|
19274
|
-
}
|
|
19275
|
-
]
|
|
19276
|
-
];
|
|
19277
|
-
|
|
19278
19297
|
// src/renderer-model-option-style.ts
|
|
19279
19298
|
var STYLE_ATTRIBUTE3 = "data-codexhost-model-option-style";
|
|
19280
19299
|
function ensureModelOptionStyle(ownerDocument) {
|
|
@@ -22066,7 +22085,7 @@ ${error51.stderrTail}`] : []
|
|
|
22066
22085
|
).filter(
|
|
22067
22086
|
({ memoizedProps: props }) => isRecord2(props) && "onLocalSubmitStart" in props && typeof props.submitDisabled === "boolean"
|
|
22068
22087
|
);
|
|
22069
|
-
return owners;
|
|
22088
|
+
return owners.filter((owner) => gateSubscriptions(owner).reserve.length > 0);
|
|
22070
22089
|
}
|
|
22071
22090
|
element = element.parentElement;
|
|
22072
22091
|
}
|
|
@@ -22588,7 +22607,7 @@ ${error51.stderrTail}`] : []
|
|
|
22588
22607
|
UPDATE_CHECK_METHOD,
|
|
22589
22608
|
updateEmptyParamsSchema.parse({})
|
|
22590
22609
|
);
|
|
22591
|
-
return updateCheckResultSchema.parse(result);
|
|
22610
|
+
return updateCheckResultSchema.nullable().parse(result);
|
|
22592
22611
|
},
|
|
22593
22612
|
async startUpdate() {
|
|
22594
22613
|
const result = await manager.sendRequest(
|
|
@@ -28282,6 +28301,23 @@ ${error51.stderrTail}`] : []
|
|
|
28282
28301
|
}
|
|
28283
28302
|
});
|
|
28284
28303
|
}
|
|
28304
|
+
function updateStarBanner(document2, messages) {
|
|
28305
|
+
const banner = document2.createElement("div");
|
|
28306
|
+
banner.className = "settings-update-star";
|
|
28307
|
+
const copy = document2.createElement("p");
|
|
28308
|
+
copy.className = "settings-update-star__copy";
|
|
28309
|
+
copy.textContent = messages.updateStarCallout;
|
|
28310
|
+
const link = document2.createElement("a");
|
|
28311
|
+
link.className = "settings-update-link settings-update-star__link";
|
|
28312
|
+
link.href = CODEXHOST_GITHUB_REPOSITORY_URL;
|
|
28313
|
+
link.target = "_blank";
|
|
28314
|
+
link.rel = "noopener noreferrer";
|
|
28315
|
+
const star = createRendererSettingsIcon("star", 14);
|
|
28316
|
+
star.classList.add("settings-update-star__mark");
|
|
28317
|
+
link.append(createRendererSettingsIcon("github", 15), messages.updateStarLink, star);
|
|
28318
|
+
banner.append(copy, link);
|
|
28319
|
+
return banner;
|
|
28320
|
+
}
|
|
28285
28321
|
function updatesPage(messages, getClient) {
|
|
28286
28322
|
return Object.freeze({
|
|
28287
28323
|
id: "updates",
|
|
@@ -28391,7 +28427,8 @@ ${error51.stderrTail}`] : []
|
|
|
28391
28427
|
controls.append(manualTitle, manualNpm, manualWindowsInstaller, actions);
|
|
28392
28428
|
const notes = document2.createElement("div");
|
|
28393
28429
|
notes.className = "settings-update-notes-section";
|
|
28394
|
-
|
|
28430
|
+
const starBanner = updateStarBanner(document2, messages);
|
|
28431
|
+
context.content.append(header, metadata, panel, controls, starBanner, notes);
|
|
28395
28432
|
const setManualFallback = (fallback) => {
|
|
28396
28433
|
controls.className = !fallback && !windows ? "settings-update-controls is-quiet" : "settings-update-controls";
|
|
28397
28434
|
manualNpmDescription.textContent = windows ? messages.updateWindowsNpmDescription : fallback ? messages.updateManualFallbackDescription : messages.updateManualNpmDescription;
|
|
@@ -28407,6 +28444,17 @@ ${error51.stderrTail}`] : []
|
|
|
28407
28444
|
}
|
|
28408
28445
|
};
|
|
28409
28446
|
const renderUnavailable = (detail) => {
|
|
28447
|
+
currentVersionValue.textContent = "-";
|
|
28448
|
+
latestVersionValue.textContent = "-";
|
|
28449
|
+
latestVersionValue.className = "";
|
|
28450
|
+
installationValue.textContent = "-";
|
|
28451
|
+
manualTitle.hidden = false;
|
|
28452
|
+
manualNpm.hidden = true;
|
|
28453
|
+
manualWindowsInstaller.hidden = true;
|
|
28454
|
+
manualWindowsInstallerLink.href = CODEXHOST_RELEASES_LATEST_URL;
|
|
28455
|
+
releaseLink.hidden = false;
|
|
28456
|
+
releaseLink.href = CODEXHOST_RELEASES_LATEST_URL;
|
|
28457
|
+
controls.className = "settings-update-controls";
|
|
28410
28458
|
panel.dataset.updateState = "unavailable";
|
|
28411
28459
|
delete panel.dataset.inline;
|
|
28412
28460
|
panel.replaceChildren();
|
|
@@ -28504,6 +28552,10 @@ ${error51.stderrTail}`] : []
|
|
|
28504
28552
|
);
|
|
28505
28553
|
};
|
|
28506
28554
|
const renderCheck = (result, client) => {
|
|
28555
|
+
if (result === null) {
|
|
28556
|
+
renderUnavailable(messages.runtimeCapabilityNotInstalled);
|
|
28557
|
+
return;
|
|
28558
|
+
}
|
|
28507
28559
|
currentVersionValue.textContent = `v${result.currentVersion}`;
|
|
28508
28560
|
latestVersionValue.textContent = result.latestVersion ? `v${result.latestVersion}` : "-";
|
|
28509
28561
|
latestVersionValue.className = result.updateAvailable ? "settings-update-metadata__value--newer" : "";
|
|
@@ -30780,121 +30832,44 @@ ${error51.stderrTail}`] : []
|
|
|
30780
30832
|
border: 0;
|
|
30781
30833
|
}
|
|
30782
30834
|
|
|
30783
|
-
.settings-
|
|
30784
|
-
display: grid;
|
|
30785
|
-
min-width: 0;
|
|
30786
|
-
gap: 12px;
|
|
30787
|
-
margin-top: 16px;
|
|
30788
|
-
}
|
|
30789
|
-
|
|
30790
|
-
.settings-session-import-list {
|
|
30791
|
-
display: grid;
|
|
30792
|
-
min-width: 0;
|
|
30793
|
-
overflow: hidden;
|
|
30794
|
-
background: var(--settings-surface);
|
|
30795
|
-
border: 1px solid var(--settings-border);
|
|
30796
|
-
border-radius: 12px;
|
|
30797
|
-
}
|
|
30798
|
-
|
|
30799
|
-
.settings-session-import-row {
|
|
30800
|
-
display: grid;
|
|
30801
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
30802
|
-
align-items: center;
|
|
30803
|
-
min-width: 0;
|
|
30804
|
-
gap: 16px;
|
|
30805
|
-
padding: 14px 16px;
|
|
30806
|
-
border-bottom: 1px solid var(--settings-divider);
|
|
30807
|
-
}
|
|
30808
|
-
|
|
30809
|
-
.settings-session-import-row:last-child {
|
|
30810
|
-
border-bottom: 0;
|
|
30811
|
-
}
|
|
30812
|
-
|
|
30813
|
-
.settings-session-import-row__copy {
|
|
30814
|
-
display: grid;
|
|
30815
|
-
min-width: 0;
|
|
30816
|
-
gap: 4px;
|
|
30817
|
-
}
|
|
30818
|
-
|
|
30819
|
-
.settings-session-import-row__copy strong {
|
|
30820
|
-
color: var(--settings-text);
|
|
30821
|
-
font-size: 14px;
|
|
30822
|
-
font-weight: 600;
|
|
30823
|
-
line-height: 20px;
|
|
30824
|
-
}
|
|
30825
|
-
|
|
30826
|
-
.settings-session-import-row__copy span,
|
|
30827
|
-
.settings-session-import-row__cwd {
|
|
30828
|
-
min-width: 0;
|
|
30829
|
-
overflow-wrap: anywhere;
|
|
30830
|
-
color: var(--settings-muted);
|
|
30831
|
-
font-size: 12px;
|
|
30832
|
-
line-height: 18px;
|
|
30833
|
-
}
|
|
30834
|
-
|
|
30835
|
-
.settings-session-import-row__cwd {
|
|
30836
|
-
font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
|
30837
|
-
}
|
|
30838
|
-
|
|
30839
|
-
.settings-session-import-row__action {
|
|
30835
|
+
.settings-update-star {
|
|
30840
30836
|
display: flex;
|
|
30841
30837
|
align-items: center;
|
|
30842
|
-
|
|
30843
|
-
|
|
30844
|
-
|
|
30845
|
-
|
|
30846
|
-
|
|
30847
|
-
|
|
30848
|
-
font-size: 12px;
|
|
30849
|
-
font-weight: 500;
|
|
30850
|
-
line-height: 18px;
|
|
30851
|
-
white-space: nowrap;
|
|
30852
|
-
}
|
|
30853
|
-
|
|
30854
|
-
.settings-session-import-recovery {
|
|
30855
|
-
display: grid;
|
|
30856
|
-
min-width: 0;
|
|
30857
|
-
gap: 12px;
|
|
30858
|
-
padding: 16px;
|
|
30859
|
-
background: var(--settings-surface);
|
|
30838
|
+
justify-content: space-between;
|
|
30839
|
+
flex-wrap: wrap;
|
|
30840
|
+
gap: 12px 16px;
|
|
30841
|
+
margin-top: 16px;
|
|
30842
|
+
padding: 12px 14px;
|
|
30843
|
+
background: var(--settings-panel);
|
|
30860
30844
|
border: 1px solid var(--settings-border);
|
|
30861
30845
|
border-radius: 12px;
|
|
30862
30846
|
}
|
|
30863
30847
|
|
|
30864
|
-
.settings-
|
|
30865
|
-
display: grid;
|
|
30866
|
-
gap: 6px;
|
|
30867
|
-
}
|
|
30868
|
-
|
|
30869
|
-
.settings-session-import-recovery__copy strong {
|
|
30870
|
-
color: var(--settings-text);
|
|
30871
|
-
font-size: 15px;
|
|
30872
|
-
font-weight: 600;
|
|
30873
|
-
line-height: 22px;
|
|
30874
|
-
}
|
|
30875
|
-
|
|
30876
|
-
.settings-session-import-recovery__copy p {
|
|
30848
|
+
.settings-update-star__copy {
|
|
30877
30849
|
margin: 0;
|
|
30878
|
-
|
|
30850
|
+
min-width: min(100%, 16rem);
|
|
30851
|
+
flex: 1;
|
|
30852
|
+
color: var(--settings-focus);
|
|
30879
30853
|
font-size: 13px;
|
|
30854
|
+
font-weight: 600;
|
|
30880
30855
|
line-height: 20px;
|
|
30881
30856
|
}
|
|
30882
30857
|
|
|
30883
|
-
.settings-
|
|
30884
|
-
|
|
30885
|
-
|
|
30886
|
-
|
|
30887
|
-
gap: 8px;
|
|
30858
|
+
.settings-update-star__link {
|
|
30859
|
+
color: var(--settings-focus);
|
|
30860
|
+
background: light-dark(rgb(11 117 209 / 8%), rgb(102 170 249 / 12%));
|
|
30861
|
+
border-color: light-dark(rgb(11 117 209 / 22%), rgb(102 170 249 / 32%));
|
|
30888
30862
|
}
|
|
30889
30863
|
|
|
30890
|
-
.settings-
|
|
30891
|
-
|
|
30892
|
-
|
|
30893
|
-
|
|
30894
|
-
|
|
30895
|
-
|
|
30896
|
-
|
|
30897
|
-
|
|
30864
|
+
.settings-update-star__link:hover {
|
|
30865
|
+
background: light-dark(rgb(11 117 209 / 14%), rgb(102 170 249 / 18%));
|
|
30866
|
+
border-color: light-dark(rgb(11 117 209 / 32%), rgb(102 170 249 / 42%));
|
|
30867
|
+
}
|
|
30868
|
+
|
|
30869
|
+
.settings-update-star__mark {
|
|
30870
|
+
color: light-dark(#f5b400, #ffd15c);
|
|
30871
|
+
fill: currentColor;
|
|
30872
|
+
stroke: none;
|
|
30898
30873
|
}
|
|
30899
30874
|
|
|
30900
30875
|
.codexhost-settings-icon {
|
|
@@ -32071,43 +32046,62 @@ ${accounts_default}`;
|
|
|
32071
32046
|
|
|
32072
32047
|
// src/settings/trigger.ts
|
|
32073
32048
|
var SETTINGS_TRIGGER_ATTRIBUTE = "data-codexhost-settings-trigger";
|
|
32074
|
-
var
|
|
32075
|
-
var
|
|
32076
|
-
|
|
32077
|
-
var SETTINGS_HEADER_NATIVE_ACTION_GROUP_SELECTOR = ':scope > [data-app-shell-header-obstacle="true"]';
|
|
32078
|
-
function measuredBounds(element) {
|
|
32049
|
+
var SETTINGS_HEADER_SELECTOR = 'header[data-pip-obstacle="app-shell-header"]';
|
|
32050
|
+
var SETTINGS_HEADER_TOOLBAR_SELECTOR = '[data-app-shell-header-toolbar="true"]';
|
|
32051
|
+
function isVisible(element) {
|
|
32079
32052
|
const bounds = element.getBoundingClientRect();
|
|
32080
|
-
return
|
|
32081
|
-
|
|
32082
|
-
|
|
32083
|
-
|
|
32084
|
-
|
|
32085
|
-
|
|
32086
|
-
|
|
32087
|
-
|
|
32088
|
-
|
|
32089
|
-
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
const
|
|
32093
|
-
|
|
32094
|
-
]
|
|
32095
|
-
|
|
32053
|
+
return bounds.width > 0 && bounds.height > 0;
|
|
32054
|
+
}
|
|
32055
|
+
function isElement(node) {
|
|
32056
|
+
return node.nodeType === 1 || "hasAttribute" in node;
|
|
32057
|
+
}
|
|
32058
|
+
function isRightActionCluster(header, child) {
|
|
32059
|
+
const headerBounds = header.getBoundingClientRect();
|
|
32060
|
+
const bounds = child.getBoundingClientRect();
|
|
32061
|
+
const midpoint = headerBounds.left + headerBounds.width / 2;
|
|
32062
|
+
return bounds.left >= midpoint - 1 && bounds.right <= headerBounds.right + 1;
|
|
32063
|
+
}
|
|
32064
|
+
function findRightActionCluster(header) {
|
|
32065
|
+
const toolbar = header.querySelector(SETTINGS_HEADER_TOOLBAR_SELECTOR);
|
|
32066
|
+
if (!toolbar) return null;
|
|
32067
|
+
const clusters = [...toolbar.children].filter(
|
|
32068
|
+
(child) => isElement(child) && isRightActionCluster(header, child)
|
|
32069
|
+
);
|
|
32070
|
+
clusters.sort(
|
|
32071
|
+
(left, right) => right.getBoundingClientRect().right - left.getBoundingClientRect().right
|
|
32072
|
+
);
|
|
32073
|
+
return clusters[0] ?? null;
|
|
32074
|
+
}
|
|
32075
|
+
function directClusterChild(cluster, node) {
|
|
32076
|
+
let current = node;
|
|
32077
|
+
while (current && current.parentElement !== cluster) current = current.parentElement;
|
|
32078
|
+
return current?.parentElement === cluster ? current : null;
|
|
32079
|
+
}
|
|
32080
|
+
function ownedByTrigger(node) {
|
|
32081
|
+
let current = node;
|
|
32082
|
+
while (current) {
|
|
32083
|
+
if ("hasAttribute" in current && current.hasAttribute(SETTINGS_TRIGGER_ATTRIBUTE)) return true;
|
|
32084
|
+
current = current.parentElement;
|
|
32085
|
+
}
|
|
32086
|
+
return false;
|
|
32087
|
+
}
|
|
32088
|
+
function summaryClusterChild(cluster) {
|
|
32089
|
+
const summary = [...cluster.querySelectorAll("button[aria-pressed]")].filter((button) => !ownedByTrigger(button)).at(-1);
|
|
32090
|
+
return summary ? directClusterChild(cluster, summary) : null;
|
|
32096
32091
|
}
|
|
32097
32092
|
function findRendererSettingsHeaderInsertionPoint(ownerDocument) {
|
|
32098
|
-
const header
|
|
32099
|
-
|
|
32100
|
-
|
|
32101
|
-
|
|
32102
|
-
|
|
32103
|
-
|
|
32104
|
-
|
|
32105
|
-
|
|
32106
|
-
|
|
32107
|
-
|
|
32108
|
-
|
|
32109
|
-
|
|
32110
|
-
return endSlot ? { parent: header, before: endSlot } : null;
|
|
32093
|
+
for (const header of ownerDocument.querySelectorAll(SETTINGS_HEADER_SELECTOR)) {
|
|
32094
|
+
if (!isVisible(header)) continue;
|
|
32095
|
+
const cluster = findRightActionCluster(header);
|
|
32096
|
+
if (!cluster) continue;
|
|
32097
|
+
const summary = summaryClusterChild(cluster);
|
|
32098
|
+
let before = summary ? summary.nextSibling : null;
|
|
32099
|
+
if (before && isElement(before) && before.hasAttribute(SETTINGS_TRIGGER_ATTRIBUTE)) {
|
|
32100
|
+
before = before.nextSibling;
|
|
32101
|
+
}
|
|
32102
|
+
return { parent: cluster, before };
|
|
32103
|
+
}
|
|
32104
|
+
return null;
|
|
32111
32105
|
}
|
|
32112
32106
|
function mountRendererSettingsTrigger(triggerId, available, onOpen, ownerDocument = document, messages = DEFAULT_RENDERER_SETTINGS_MESSAGES) {
|
|
32113
32107
|
const updateLabelText = messages.pageLabels.updates;
|
|
@@ -32488,6 +32482,7 @@ ${accounts_default}`;
|
|
|
32488
32482
|
if (disposed || updateRetryTimer !== null) return;
|
|
32489
32483
|
const delay = UPDATE_RETRY_DELAYS_MS[updateRetryAttempt];
|
|
32490
32484
|
if (delay === void 0) return;
|
|
32485
|
+
checkedUpdateClient = null;
|
|
32491
32486
|
updateRetryAttempt += 1;
|
|
32492
32487
|
updateRetryTimer = ownerWindow.setTimeout(() => {
|
|
32493
32488
|
updateRetryTimer = null;
|
|
@@ -32525,20 +32520,18 @@ ${accounts_default}`;
|
|
|
32525
32520
|
const generation = ++updateCheckGeneration;
|
|
32526
32521
|
void checkUpdateWithTimeout(client).then((result) => {
|
|
32527
32522
|
if (disposed || generation !== updateCheckGeneration) return;
|
|
32528
|
-
updateAvailable = result
|
|
32523
|
+
updateAvailable = result?.updateAvailable ?? false;
|
|
32529
32524
|
trigger?.setUpdateAvailable(updateAvailable);
|
|
32530
|
-
if (result.error === null) {
|
|
32525
|
+
if (result === null || result.error === null) {
|
|
32531
32526
|
updateRetryAttempt = 0;
|
|
32532
32527
|
clearUpdateRetry();
|
|
32533
32528
|
return;
|
|
32534
32529
|
}
|
|
32535
|
-
checkedUpdateClient = null;
|
|
32536
32530
|
scheduleUpdateRetry(client);
|
|
32537
32531
|
}).catch(() => {
|
|
32538
32532
|
if (disposed || generation !== updateCheckGeneration || checkedUpdateClient !== client) {
|
|
32539
32533
|
return;
|
|
32540
32534
|
}
|
|
32541
|
-
checkedUpdateClient = null;
|
|
32542
32535
|
scheduleUpdateRetry(client);
|
|
32543
32536
|
});
|
|
32544
32537
|
};
|
|
@@ -35484,9 +35477,9 @@ lucide/dist/esm/icons/trash-2.mjs:
|
|
|
35484
35477
|
lucide/dist/esm/icons/terminal.mjs:
|
|
35485
35478
|
lucide/dist/esm/icons/search.mjs:
|
|
35486
35479
|
lucide/dist/esm/icons/circle-question-mark.mjs:
|
|
35480
|
+
lucide/dist/esm/icons/star.mjs:
|
|
35487
35481
|
lucide/dist/esm/icons/users.mjs:
|
|
35488
35482
|
lucide/dist/esm/icons/x.mjs:
|
|
35489
|
-
lucide/dist/esm/icons/star.mjs:
|
|
35490
35483
|
lucide/dist/esm/icons/lock.mjs:
|
|
35491
35484
|
lucide/dist/esm/icons/shield.mjs:
|
|
35492
35485
|
lucide/dist/esm/icons/shield-alert.mjs:
|
package/bin/boft
CHANGED
|
Binary file
|
package/libexec/boft-shim
CHANGED
|
Binary file
|
package/libexec/boft-updater
CHANGED
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 opencode
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|