@liberseek/boft-cli-linux-x64 0.8.1 → 0.8.2
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/console-server.mjs +36 -3
- package/app/console-web.js +100 -75
- package/app/desktop-controller.mjs +36 -3
- package/app/host-runtime.mjs +81 -21
- package/app/plugins/antigravity/plugin.mjs +52 -7
- package/app/plugins/claude-code/plugin.mjs +206 -54
- package/app/plugins/codebuddy/plugin.mjs +110 -8
- package/app/plugins/codex-usage/plugin.mjs +36 -3
- package/app/plugins/cursor-cli/plugin.mjs +71 -10
- package/app/plugins/deepseek-harness/manifest.json +2 -2
- package/app/plugins/deepseek-harness/plugin.mjs +198 -26
- package/app/plugins/grok/plugin.mjs +64 -5
- package/app/plugins/hermes/plugin.mjs +63 -3
- package/app/plugins/kimi-code/plugin.mjs +64 -9
- package/app/plugins/kiro-cli/plugin.mjs +45 -3
- package/app/plugins/muse/plugin.mjs +36 -3
- package/app/plugins/omp/plugin.mjs +46 -3
- package/app/plugins/opencode/plugin.mjs +52 -5
- package/app/plugins/pi/plugin.mjs +37 -3
- package/app/plugins/qoder/plugin.mjs +50 -3
- package/app/plugins/qoder-cn/plugin.mjs +50 -3
- package/app/plugins/workbuddy/plugin.mjs +227 -12
- package/app/plugins/zcode/plugin.mjs +49 -3
- package/app/renderer-extension.js +369 -281
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +1 -1
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.2
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@liberseek/boft-cli`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.8.
|
|
1
|
+
{"schemaVersion":1,"version":"0.8.2","distribution":"npm","target":"linux-x64"}
|
package/app/console-server.mjs
CHANGED
|
@@ -15494,6 +15494,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
15494
15494
|
initializeOnly: external_exports.boolean().optional()
|
|
15495
15495
|
});
|
|
15496
15496
|
|
|
15497
|
+
// packages/shared-contracts/dist/harness-presentation.js
|
|
15498
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
15499
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
|
|
15500
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
15501
|
+
label: displayText(256).optional(),
|
|
15502
|
+
description: displayText(1024).optional()
|
|
15503
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
15504
|
+
var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
15505
|
+
|
|
15497
15506
|
// packages/shared-contracts/dist/model-price-overrides.js
|
|
15498
15507
|
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
15499
15508
|
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
@@ -15917,8 +15926,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15917
15926
|
}
|
|
15918
15927
|
});
|
|
15919
15928
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15929
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
15930
|
+
"weekly",
|
|
15931
|
+
"monthly",
|
|
15932
|
+
"five_hour",
|
|
15933
|
+
"seven_day",
|
|
15934
|
+
"unknown"
|
|
15935
|
+
]);
|
|
15936
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
15937
|
+
id: external_exports.string().min(1).max(256),
|
|
15938
|
+
label: external_exports.string().min(1).max(256),
|
|
15939
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15940
|
+
}).strict();
|
|
15920
15941
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
15921
15942
|
product: external_exports.string().min(1),
|
|
15943
|
+
/** Native period and scope, never inferred from the display name. */
|
|
15944
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
15945
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15946
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15922
15947
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
15923
15948
|
// Zero is a real empty cap, not an absent field.
|
|
15924
15949
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -15940,8 +15965,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
15940
15965
|
label: external_exports.string().min(1).optional(),
|
|
15941
15966
|
usedPercent: usagePercentSchema.optional(),
|
|
15942
15967
|
remaining: external_exports.number().finite().optional(),
|
|
15968
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15969
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15943
15970
|
resetsAt: external_exports.string().min(1).optional(),
|
|
15944
|
-
periodType:
|
|
15971
|
+
periodType: accountCreditsPeriodSchema,
|
|
15945
15972
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
15946
15973
|
resetCredits: accountResetCreditsSchema.optional()
|
|
15947
15974
|
}).strict().superRefine((credits, context) => {
|
|
@@ -15966,7 +15993,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
15966
15993
|
var threadUsageInspectionSchema = external_exports.object({
|
|
15967
15994
|
threadId: hostThreadIdSchema,
|
|
15968
15995
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
15969
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
15996
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
15997
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
15998
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
15970
15999
|
}).strict();
|
|
15971
16000
|
|
|
15972
16001
|
// packages/shared-contracts/dist/harness-accounts.js
|
|
@@ -16093,7 +16122,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
16093
16122
|
id: harnessPermissionModeIdSchema,
|
|
16094
16123
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
16095
16124
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
16096
|
-
dangerous: external_exports.boolean().optional()
|
|
16125
|
+
dangerous: external_exports.boolean().optional(),
|
|
16126
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
16097
16127
|
}).strict();
|
|
16098
16128
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
16099
16129
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -16416,6 +16446,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16416
16446
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
16417
16447
|
message: external_exports.string().max(2048).optional(),
|
|
16418
16448
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
16449
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
16450
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
16419
16451
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
16420
16452
|
}).strict();
|
|
16421
16453
|
|
|
@@ -16554,6 +16586,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
16554
16586
|
invocation: commandInvocationSchema,
|
|
16555
16587
|
label: commandLabelSchema,
|
|
16556
16588
|
description: commandDescriptionSchema.optional(),
|
|
16589
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
16557
16590
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
16558
16591
|
/**
|
|
16559
16592
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
package/app/console-web.js
CHANGED
|
@@ -14673,6 +14673,48 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14673
14673
|
initializeOnly: external_exports.boolean().optional()
|
|
14674
14674
|
});
|
|
14675
14675
|
|
|
14676
|
+
// ../shared-contracts/dist/harness-presentation.js
|
|
14677
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
14678
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
|
|
14679
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
14680
|
+
label: displayText(256).optional(),
|
|
14681
|
+
description: displayText(1024).optional()
|
|
14682
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
14683
|
+
var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
14684
|
+
function translation(entries, locale) {
|
|
14685
|
+
if (!entries)
|
|
14686
|
+
return void 0;
|
|
14687
|
+
const language = locale.split("-")[0] ?? locale;
|
|
14688
|
+
for (const candidate of [locale, language]) {
|
|
14689
|
+
if (Object.hasOwn(entries, candidate))
|
|
14690
|
+
return entries[candidate];
|
|
14691
|
+
}
|
|
14692
|
+
return void 0;
|
|
14693
|
+
}
|
|
14694
|
+
function localizeHarnessPresentation(value, locale) {
|
|
14695
|
+
const localized = translation(value.localizations, locale);
|
|
14696
|
+
const language = translation(value.localizations, locale.split("-")[0] ?? locale);
|
|
14697
|
+
return {
|
|
14698
|
+
label: localized?.label ?? language?.label ?? value.label,
|
|
14699
|
+
description: localized?.description ?? language?.description ?? value.description
|
|
14700
|
+
};
|
|
14701
|
+
}
|
|
14702
|
+
function localizeHarnessText(value, locale) {
|
|
14703
|
+
return translation(value, locale) ?? value.en ?? "";
|
|
14704
|
+
}
|
|
14705
|
+
|
|
14706
|
+
// ../shared-contracts/dist/account-credits-presentation.js
|
|
14707
|
+
function accountCreditsWindowLabel(window2, locale, periodLabel) {
|
|
14708
|
+
if (window2.periodType && window2.periodType !== "unknown" && (window2.scope || !window2.label)) {
|
|
14709
|
+
const period = periodLabel(window2.periodType);
|
|
14710
|
+
return window2.scope ? `${localizeHarnessPresentation(window2.scope, locale).label} \xB7 ${period}` : period;
|
|
14711
|
+
}
|
|
14712
|
+
return localizeHarnessPresentation({
|
|
14713
|
+
label: window2.label ?? window2.product ?? periodLabel("unknown"),
|
|
14714
|
+
...window2.localizations ? { localizations: window2.localizations } : {}
|
|
14715
|
+
}, locale).label;
|
|
14716
|
+
}
|
|
14717
|
+
|
|
14676
14718
|
// ../shared-contracts/dist/model-price-overrides.js
|
|
14677
14719
|
var MODEL_PRICE_OVERRIDES_GET_METHOD = "codexhost/usage/model-prices/get";
|
|
14678
14720
|
var MODEL_PRICE_OVERRIDES_SET_METHOD = "codexhost/usage/model-prices/set";
|
|
@@ -15100,8 +15142,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15100
15142
|
}
|
|
15101
15143
|
});
|
|
15102
15144
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15145
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
15146
|
+
"weekly",
|
|
15147
|
+
"monthly",
|
|
15148
|
+
"five_hour",
|
|
15149
|
+
"seven_day",
|
|
15150
|
+
"unknown"
|
|
15151
|
+
]);
|
|
15152
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
15153
|
+
id: external_exports.string().min(1).max(256),
|
|
15154
|
+
label: external_exports.string().min(1).max(256),
|
|
15155
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15156
|
+
}).strict();
|
|
15103
15157
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
15104
15158
|
product: external_exports.string().min(1),
|
|
15159
|
+
/** Native period and scope, never inferred from the display name. */
|
|
15160
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
15161
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15162
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15105
15163
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
15106
15164
|
// Zero is a real empty cap, not an absent field.
|
|
15107
15165
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -15123,8 +15181,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15123
15181
|
label: external_exports.string().min(1).optional(),
|
|
15124
15182
|
usedPercent: usagePercentSchema.optional(),
|
|
15125
15183
|
remaining: external_exports.number().finite().optional(),
|
|
15184
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15185
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15126
15186
|
resetsAt: external_exports.string().min(1).optional(),
|
|
15127
|
-
periodType:
|
|
15187
|
+
periodType: accountCreditsPeriodSchema,
|
|
15128
15188
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
15129
15189
|
resetCredits: accountResetCreditsSchema.optional()
|
|
15130
15190
|
}).strict().superRefine((credits, context) => {
|
|
@@ -15149,7 +15209,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15149
15209
|
var threadUsageInspectionSchema = external_exports.object({
|
|
15150
15210
|
threadId: hostThreadIdSchema,
|
|
15151
15211
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
15152
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
15212
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
15213
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
15214
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
15153
15215
|
}).strict();
|
|
15154
15216
|
|
|
15155
15217
|
// ../shared-contracts/dist/harness-accounts.js
|
|
@@ -15276,7 +15338,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15276
15338
|
id: harnessPermissionModeIdSchema,
|
|
15277
15339
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
15278
15340
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
15279
|
-
dangerous: external_exports.boolean().optional()
|
|
15341
|
+
dangerous: external_exports.boolean().optional(),
|
|
15342
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15280
15343
|
}).strict();
|
|
15281
15344
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
15282
15345
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -15603,6 +15666,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15603
15666
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15604
15667
|
message: external_exports.string().max(2048).optional(),
|
|
15605
15668
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15669
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
15670
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
15606
15671
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15607
15672
|
}).strict();
|
|
15608
15673
|
|
|
@@ -15744,6 +15809,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15744
15809
|
invocation: commandInvocationSchema,
|
|
15745
15810
|
label: commandLabelSchema,
|
|
15746
15811
|
description: commandDescriptionSchema.optional(),
|
|
15812
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15747
15813
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
15748
15814
|
/**
|
|
15749
15815
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -16629,10 +16695,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16629
16695
|
let previousWasTranslation = false;
|
|
16630
16696
|
paragraphLines.forEach((line, lineIndex) => {
|
|
16631
16697
|
if (lineIndex > 0 && !primaryIsCjk && CJK_PATTERN.test(line)) {
|
|
16632
|
-
const
|
|
16633
|
-
|
|
16634
|
-
appendInline(document2,
|
|
16635
|
-
paragraph.append(
|
|
16698
|
+
const translation2 = document2.createElement("span");
|
|
16699
|
+
translation2.className = "release-note-translation";
|
|
16700
|
+
appendInline(document2, translation2, line);
|
|
16701
|
+
paragraph.append(translation2);
|
|
16636
16702
|
previousWasTranslation = true;
|
|
16637
16703
|
return;
|
|
16638
16704
|
}
|
|
@@ -20631,37 +20697,19 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20631
20697
|
|
|
20632
20698
|
// src/settings/harness-version-messages.ts
|
|
20633
20699
|
var harnessVersionEnglish = Object.freeze({
|
|
20700
|
+
locale: "en",
|
|
20634
20701
|
unknown: "Unknown",
|
|
20635
20702
|
trackingBranch: "Tracking branch (new commits)",
|
|
20636
20703
|
notes: Object.freeze({
|
|
20637
|
-
"original-installer": "Use the original installer, package manager, or launcher to update this installation."
|
|
20638
|
-
"claude-policy-restricted": "Claude updates are restricted by the installation's settings or policy.",
|
|
20639
|
-
"codebuddy-npm-required": "Use CodeBuddy's native updater or original package manager. Latest-version checks here require an identified npm installation.",
|
|
20640
|
-
"deepseek-original-installer": "Update with the original installer. Python, desktop, and project-local installations are not upgraded through global npm.",
|
|
20641
|
-
"kiro-native-updater": "Use Kiro CLI's original installer or native updater to check for and install updates.",
|
|
20642
|
-
"zcode-desktop-updater": "The CLI ships inside ZCode Desktop. Update ZCode Desktop itself to update it.",
|
|
20643
|
-
"qoder-check-unavailable": "This Qoder China release does not expose a non-installing update check. Use its original installer.",
|
|
20644
|
-
"hermes-update-plan-unavailable": "This Hermes release does not expose a safe update plan. Use the original installer.",
|
|
20645
|
-
"hermes-externally-managed": "This Hermes installation is managed externally. Update it through its desktop app, container, or original package manager.",
|
|
20646
|
-
"hermes-update-channel": "Uses Hermes's configured update channel. Gateway restarts are deferred; existing processes keep their running code.",
|
|
20647
|
-
"hermes-manual-update": "Use the native updater manually. Safe non-interactive updates require a clean source checkout, commit identity, and Gateway restart deferral."
|
|
20704
|
+
"original-installer": "Use the original installer, package manager, or launcher to update this installation."
|
|
20648
20705
|
})
|
|
20649
20706
|
});
|
|
20650
20707
|
var harnessVersionChinese = Object.freeze({
|
|
20708
|
+
locale: "zh-CN",
|
|
20651
20709
|
unknown: "\u672A\u77E5",
|
|
20652
20710
|
trackingBranch: "\u8DDF\u8E2A\u5206\u652F\uFF08\u6709\u65B0\u63D0\u4EA4\uFF09",
|
|
20653
20711
|
notes: Object.freeze({
|
|
20654
|
-
"original-installer": "\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u7A0B\u5E8F\u3001\u5305\u7BA1\u7406\u5668\u6216\u542F\u52A8\u5668\u66F4\u65B0\u6B64\u5B89\u88C5\u3002"
|
|
20655
|
-
"claude-policy-restricted": "\u6B64 Claude \u5B89\u88C5\u7684\u8BBE\u7F6E\u6216\u7B56\u7565\u9650\u5236\u4E86\u66F4\u65B0\u3002",
|
|
20656
|
-
"codebuddy-npm-required": "\u8BF7\u4F7F\u7528 CodeBuddy \u539F\u751F\u66F4\u65B0\u5668\u6216\u539F\u5305\u7BA1\u7406\u5668\u66F4\u65B0\u3002\u6B64\u5904\u4EC5\u80FD\u67E5\u8BE2\u5DF2\u8BC6\u522B\u7684 npm \u5B89\u88C5\u7684\u6700\u65B0\u7248\u672C\u3002",
|
|
20657
|
-
"deepseek-original-installer": "\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u65B9\u5F0F\u66F4\u65B0\u3002Python\u3001\u684C\u9762\u5E94\u7528\u53CA\u9879\u76EE\u5185\u5B89\u88C5\u4E0D\u4F1A\u901A\u8FC7\u5168\u5C40 npm \u66F4\u65B0\u3002",
|
|
20658
|
-
"kiro-native-updater": "\u8BF7\u4F7F\u7528 Kiro CLI \u539F\u5B89\u88C5\u7A0B\u5E8F\u6216\u539F\u751F\u66F4\u65B0\u5668\u68C0\u67E5\u5E76\u5B89\u88C5\u66F4\u65B0\u3002",
|
|
20659
|
-
"zcode-desktop-updater": "CLI \u968F ZCode Desktop \u4E00\u8D77\u53D1\u5E03\uFF0C\u8BF7\u76F4\u63A5\u66F4\u65B0 ZCode Desktop\u3002",
|
|
20660
|
-
"qoder-check-unavailable": "\u6B64 Qoder \u4E2D\u56FD\u7248\u5C1A\u4E0D\u652F\u6301\u53EA\u68C0\u67E5\u3001\u4E0D\u5B89\u88C5\u7684\u66F4\u65B0\u67E5\u8BE2\uFF0C\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u65B9\u5F0F\u66F4\u65B0\u3002",
|
|
20661
|
-
"hermes-update-plan-unavailable": "\u6B64 Hermes \u7248\u672C\u4E0D\u63D0\u4F9B\u5B89\u5168\u7684\u66F4\u65B0\u8BA1\u5212\uFF0C\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u65B9\u5F0F\u66F4\u65B0\u3002",
|
|
20662
|
-
"hermes-externally-managed": "\u6B64 Hermes \u5B89\u88C5\u7531\u5916\u90E8\u5DE5\u5177\u7BA1\u7406\uFF0C\u8BF7\u901A\u8FC7\u5176\u684C\u9762\u5E94\u7528\u3001\u5BB9\u5668\u6216\u539F\u5305\u7BA1\u7406\u5668\u66F4\u65B0\u3002",
|
|
20663
|
-
"hermes-update-channel": "\u4F7F\u7528 Hermes \u914D\u7F6E\u7684\u66F4\u65B0\u6E20\u9053\uFF0C\u6682\u4E0D\u91CD\u542F Gateway\uFF1B\u73B0\u6709\u8FDB\u7A0B\u7EE7\u7EED\u8FD0\u884C\u539F\u6709\u4EE3\u7801\u3002",
|
|
20664
|
-
"hermes-manual-update": "\u8BF7\u624B\u52A8\u4F7F\u7528\u539F\u751F\u66F4\u65B0\u5668\u3002\u5B89\u5168\u7684\u975E\u4EA4\u4E92\u66F4\u65B0\u8981\u6C42\u6E90\u7801\u76EE\u5F55\u65E0\u672A\u63D0\u4EA4\u4FEE\u6539\u3001\u53EF\u8BC6\u522B\u5F53\u524D\u63D0\u4EA4\uFF0C\u5E76\u652F\u6301\u63A8\u8FDF Gateway \u91CD\u542F\u3002"
|
|
20712
|
+
"original-installer": "\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u7A0B\u5E8F\u3001\u5305\u7BA1\u7406\u5668\u6216\u542F\u52A8\u5668\u66F4\u65B0\u6B64\u5B89\u88C5\u3002"
|
|
20665
20713
|
})
|
|
20666
20714
|
});
|
|
20667
20715
|
function harnessVersionLabel(state, messages) {
|
|
@@ -20673,6 +20721,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20673
20721
|
return state.latestVersion;
|
|
20674
20722
|
}
|
|
20675
20723
|
function harnessVersionNote(state, messages) {
|
|
20724
|
+
if (state?.notice) return localizeHarnessText(state.notice, messages.locale);
|
|
20676
20725
|
const code = state?.messageCode;
|
|
20677
20726
|
return code && Object.hasOwn(messages.notes, code) ? messages.notes[code] : void 0;
|
|
20678
20727
|
}
|
|
@@ -20866,7 +20915,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20866
20915
|
connectionOfficialWebsite: "Visit official website",
|
|
20867
20916
|
connectionOpenInstallation: "Open official installation page",
|
|
20868
20917
|
connectionOpenHarnessWeb: "Open DeepSeek Harness Web",
|
|
20869
|
-
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1 and 0.2.
|
|
20918
|
+
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1 and 0.2.1-rc.2. Versions newer than 0.2.1-rc.2 can be tried, but compatibility may be limited; versions older than 0.1.7-rc.1 must be upgraded first.",
|
|
20870
20919
|
connectionInstall: "Install",
|
|
20871
20920
|
connectionLongContextLabel: "1M",
|
|
20872
20921
|
connectionLongContextOn: "On: Claude models use a 1M context window. Claude CLI uses that larger window locally.",
|
|
@@ -21174,7 +21223,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21174
21223
|
connectionOfficialWebsite: "\u8BBF\u95EE\u5B98\u7F51",
|
|
21175
21224
|
connectionOpenInstallation: "\u524D\u5F80\u5B98\u65B9\u5B89\u88C5\u9875\u9762",
|
|
21176
21225
|
connectionOpenHarnessWeb: "\u6253\u5F00 DeepSeek Harness Web",
|
|
21177
|
-
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1 \u548C 0.2.
|
|
21226
|
+
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1\u30010.2.0-rc.2\u30010.2.1-rc.1 \u548C 0.2.1-rc.2\u3002\u9AD8\u4E8E 0.2.1-rc.2 \u7684\u7248\u672C\u53EF\u4EE5\u5C1D\u8BD5\u8FDE\u63A5\uFF0C\u4F46\u9002\u914D\u5EA6\u53EF\u80FD\u6709\u9650\uFF1B\u4F4E\u4E8E 0.1.7-rc.1 \u7684\u7248\u672C\u9700\u8981\u5148\u5347\u7EA7\u3002",
|
|
21178
21227
|
connectionInstall: "\u5B89\u88C5",
|
|
21179
21228
|
connectionLongContextLabel: "1M",
|
|
21180
21229
|
connectionLongContextOn: "\u5F00\u542F\u540E: Claude \u6A21\u578B\u4F7F\u7528 1M \u4E0A\u4E0B\u6587\u3002Claude CLI \u4F1A\u5728\u672C\u5730\u6309\u8FD9\u4E2A\u66F4\u5927\u7684\u7A97\u53E3\u5DE5\u4F5C\u3002",
|
|
@@ -28314,17 +28363,6 @@ ${error51.stderrTail}`] : []
|
|
|
28314
28363
|
if (periodType === "seven_day") return messages.accountCreditsPeriodSevenDay;
|
|
28315
28364
|
return messages.accountCreditsPeriodUnknown;
|
|
28316
28365
|
}
|
|
28317
|
-
function creditsProductLabel(product, messages) {
|
|
28318
|
-
if (product === "GrokBuild" || product === "Build") return messages.accountCreditsBuild;
|
|
28319
|
-
if (product === "5-hour window") return messages.accountCreditsPeriodFiveHour;
|
|
28320
|
-
if (product === "7-day window") return messages.accountCreditsPeriodSevenDay;
|
|
28321
|
-
if (product.endsWith(" \xB7 monthly"))
|
|
28322
|
-
return `${product.slice(0, -" \xB7 monthly".length)} \xB7 ${messages.accountCreditsPeriodMonthly}`;
|
|
28323
|
-
if (product === "GrokChat") return "Chat";
|
|
28324
|
-
if (product === "GrokImagine") return "Imagine";
|
|
28325
|
-
if (product === "GrokVoice") return "Voice";
|
|
28326
|
-
return product;
|
|
28327
|
-
}
|
|
28328
28366
|
function formatAccountCreditsReset(value, locale, now = /* @__PURE__ */ new Date()) {
|
|
28329
28367
|
if (locale !== "zh-CN") return formatRendererCreditsReset(value, now);
|
|
28330
28368
|
const date5 = new Date(value);
|
|
@@ -28351,36 +28389,22 @@ ${error51.stderrTail}`] : []
|
|
|
28351
28389
|
if (periodType === "weekly" || periodType === "seven_day") return "seven_day";
|
|
28352
28390
|
return null;
|
|
28353
28391
|
}
|
|
28354
|
-
function scopedUsageProduct(product) {
|
|
28355
|
-
const suffixes = [
|
|
28356
|
-
[" \xB7 5-hour window", "five_hour"],
|
|
28357
|
-
[" \xB7 Weekly window", "seven_day"],
|
|
28358
|
-
[" \xB7 7-day window", "seven_day"],
|
|
28359
|
-
[" \xB7 5-hour", "five_hour"],
|
|
28360
|
-
[" \xB7 7-day", "seven_day"]
|
|
28361
|
-
];
|
|
28362
|
-
for (const [suffix, period] of suffixes) {
|
|
28363
|
-
if (!product.endsWith(suffix)) continue;
|
|
28364
|
-
const scope = product.slice(0, -suffix.length).trim();
|
|
28365
|
-
if (scope) return { scope, period };
|
|
28366
|
-
}
|
|
28367
|
-
return null;
|
|
28368
|
-
}
|
|
28369
28392
|
function splitUsageWindows(credits, messages, filter) {
|
|
28370
28393
|
const generic = { columns: {} };
|
|
28371
28394
|
const scopedRows = /* @__PURE__ */ new Map();
|
|
28372
28395
|
const additional = [];
|
|
28373
28396
|
const addScoped = (scope, period, window2) => {
|
|
28374
|
-
const
|
|
28397
|
+
const scopeLabel = localizeHarnessPresentation(scope, messages.locale).label;
|
|
28398
|
+
const rows2 = scopedRows.get(scope.id) ?? [];
|
|
28375
28399
|
let row = rows2.find((candidate) => !candidate.columns[period]);
|
|
28376
28400
|
if (!row) {
|
|
28377
|
-
row = { scope, columns: {} };
|
|
28401
|
+
row = { scope: scopeLabel, columns: {} };
|
|
28378
28402
|
rows2.push(row);
|
|
28379
|
-
scopedRows.set(scope, rows2);
|
|
28403
|
+
scopedRows.set(scope.id, rows2);
|
|
28380
28404
|
}
|
|
28381
28405
|
row.columns[period] = {
|
|
28382
28406
|
...window2,
|
|
28383
|
-
label:
|
|
28407
|
+
label: window2.label,
|
|
28384
28408
|
scoped: true
|
|
28385
28409
|
};
|
|
28386
28410
|
};
|
|
@@ -28390,29 +28414,30 @@ ${error51.stderrTail}`] : []
|
|
|
28390
28414
|
else additional.push(window2);
|
|
28391
28415
|
};
|
|
28392
28416
|
const primary = {
|
|
28393
|
-
label:
|
|
28417
|
+
label: accountCreditsWindowLabel(
|
|
28418
|
+
credits,
|
|
28419
|
+
messages.locale,
|
|
28420
|
+
(period) => creditsPeriodLabel(period, messages)
|
|
28421
|
+
),
|
|
28394
28422
|
usedPercent: credits.usedPercent ?? 0,
|
|
28395
28423
|
amount: credits,
|
|
28396
28424
|
resetsAt: credits.resetsAt,
|
|
28397
|
-
scoped: Boolean(credits.
|
|
28425
|
+
scoped: Boolean(credits.scope)
|
|
28398
28426
|
};
|
|
28399
|
-
|
|
28400
|
-
addWindow(
|
|
28401
|
-
primary,
|
|
28402
|
-
primaryScope?.period ?? (credits.label ? null : comparisonPeriod(credits.periodType)),
|
|
28403
|
-
primaryScope?.scope
|
|
28404
|
-
);
|
|
28427
|
+
addWindow(primary, comparisonPeriod(credits.periodType), credits.scope);
|
|
28405
28428
|
for (const product of credits.productUsage ?? []) {
|
|
28406
|
-
const scoped = scopedUsageProduct(product.product);
|
|
28407
28429
|
const window2 = {
|
|
28408
|
-
label:
|
|
28430
|
+
label: accountCreditsWindowLabel(
|
|
28431
|
+
product,
|
|
28432
|
+
messages.locale,
|
|
28433
|
+
(period) => creditsPeriodLabel(period, messages)
|
|
28434
|
+
),
|
|
28409
28435
|
usedPercent: product.usagePercent,
|
|
28410
28436
|
amount: product,
|
|
28411
28437
|
resetsAt: product.resetsAt,
|
|
28412
|
-
scoped: Boolean(
|
|
28438
|
+
scoped: Boolean(product.scope)
|
|
28413
28439
|
};
|
|
28414
|
-
|
|
28415
|
-
addWindow(window2, scoped?.period ?? genericPeriod, scoped?.scope);
|
|
28440
|
+
addWindow(window2, comparisonPeriod(product.periodType ?? "unknown"), product.scope);
|
|
28416
28441
|
}
|
|
28417
28442
|
const structured = [...scopedRows.values()].flat();
|
|
28418
28443
|
let rows = Object.keys(generic.columns).length > 0 ? [generic, ...structured] : structured;
|
|
@@ -29420,7 +29445,7 @@ ${error51.stderrTail}`] : []
|
|
|
29420
29445
|
var CODEXHOST_GITHUB_REPOSITORY_URL = "https://github.com/LIBERSEEK/BOFT-CLI";
|
|
29421
29446
|
var CODEXHOST_RELEASES_LATEST_URL = `${CODEXHOST_GITHUB_REPOSITORY_URL}/releases/latest`;
|
|
29422
29447
|
var CODEXHOST_NPM_MANUAL_UPDATE_COMMAND = "npm install -g @liberseek/boft-cli@latest";
|
|
29423
|
-
var LIBERSEEK_WEBSITE_URL = "https://
|
|
29448
|
+
var LIBERSEEK_WEBSITE_URL = "https://liberseek.ai";
|
|
29424
29449
|
var LIBERSEEK_LOGO_VIDEO_URL = logo_animated_default;
|
|
29425
29450
|
function rendererUserAgentData(navigator2) {
|
|
29426
29451
|
return navigator2.userAgentData;
|
|
@@ -14873,6 +14873,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
14873
14873
|
initializeOnly: external_exports.boolean().optional()
|
|
14874
14874
|
});
|
|
14875
14875
|
|
|
14876
|
+
// packages/shared-contracts/dist/harness-presentation.js
|
|
14877
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
14878
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
|
|
14879
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
14880
|
+
label: displayText(256).optional(),
|
|
14881
|
+
description: displayText(1024).optional()
|
|
14882
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
14883
|
+
var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
14884
|
+
|
|
14876
14885
|
// packages/shared-contracts/dist/model-price-overrides.js
|
|
14877
14886
|
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
14878
14887
|
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
@@ -15293,8 +15302,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15293
15302
|
}
|
|
15294
15303
|
});
|
|
15295
15304
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15305
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
15306
|
+
"weekly",
|
|
15307
|
+
"monthly",
|
|
15308
|
+
"five_hour",
|
|
15309
|
+
"seven_day",
|
|
15310
|
+
"unknown"
|
|
15311
|
+
]);
|
|
15312
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
15313
|
+
id: external_exports.string().min(1).max(256),
|
|
15314
|
+
label: external_exports.string().min(1).max(256),
|
|
15315
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15316
|
+
}).strict();
|
|
15296
15317
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
15297
15318
|
product: external_exports.string().min(1),
|
|
15319
|
+
/** Native period and scope, never inferred from the display name. */
|
|
15320
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
15321
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15322
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15298
15323
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
15299
15324
|
// Zero is a real empty cap, not an absent field.
|
|
15300
15325
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -15316,8 +15341,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
15316
15341
|
label: external_exports.string().min(1).optional(),
|
|
15317
15342
|
usedPercent: usagePercentSchema.optional(),
|
|
15318
15343
|
remaining: external_exports.number().finite().optional(),
|
|
15344
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15345
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15319
15346
|
resetsAt: external_exports.string().min(1).optional(),
|
|
15320
|
-
periodType:
|
|
15347
|
+
periodType: accountCreditsPeriodSchema,
|
|
15321
15348
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
15322
15349
|
resetCredits: accountResetCreditsSchema.optional()
|
|
15323
15350
|
}).strict().superRefine((credits, context) => {
|
|
@@ -15342,7 +15369,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
15342
15369
|
var threadUsageInspectionSchema = external_exports.object({
|
|
15343
15370
|
threadId: hostThreadIdSchema,
|
|
15344
15371
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
15345
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
15372
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
15373
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
15374
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
15346
15375
|
}).strict();
|
|
15347
15376
|
|
|
15348
15377
|
// packages/shared-contracts/dist/harness-accounts.js
|
|
@@ -15469,7 +15498,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
15469
15498
|
id: harnessPermissionModeIdSchema,
|
|
15470
15499
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
15471
15500
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
15472
|
-
dangerous: external_exports.boolean().optional()
|
|
15501
|
+
dangerous: external_exports.boolean().optional(),
|
|
15502
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15473
15503
|
}).strict();
|
|
15474
15504
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
15475
15505
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -15792,6 +15822,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15792
15822
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15793
15823
|
message: external_exports.string().max(2048).optional(),
|
|
15794
15824
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15825
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
15826
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
15795
15827
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15796
15828
|
}).strict();
|
|
15797
15829
|
|
|
@@ -15930,6 +15962,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
15930
15962
|
invocation: commandInvocationSchema,
|
|
15931
15963
|
label: commandLabelSchema,
|
|
15932
15964
|
description: commandDescriptionSchema.optional(),
|
|
15965
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15933
15966
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
15934
15967
|
/**
|
|
15935
15968
|
* Native distinction reported by the Harness. Omitted when the Harness does
|