@liberseek/boft-cli-linux-x64 0.7.5 → 0.7.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/console-server.mjs +17934 -0
- package/app/console-web.js +27017 -0
- package/app/desktop-controller.mjs +154 -14
- package/app/host-runtime.mjs +3084 -1144
- package/app/plugins/antigravity/plugin.mjs +355 -74
- package/app/plugins/claude-code/plugin.mjs +2851 -2152
- package/app/plugins/codebuddy/plugin.mjs +436 -95
- package/app/plugins/cursor-cli/manifest.json +1 -1
- package/app/plugins/cursor-cli/plugin.mjs +1089 -503
- package/app/plugins/deepseek-harness/plugin.mjs +614 -38
- package/app/plugins/grok/plugin.mjs +301 -81
- package/app/plugins/hermes/plugin.mjs +321 -87
- package/app/plugins/kimi-code/plugin.mjs +669 -76
- package/app/plugins/kiro-cli/plugin.mjs +237 -57
- package/app/plugins/muse/plugin.mjs +123 -8
- package/app/plugins/omp/plugin.mjs +310 -47
- package/app/plugins/opencode/plugin.mjs +467 -70
- package/app/plugins/pi/plugin.mjs +907 -277
- package/app/plugins/qoder/plugin.mjs +407 -48
- package/app/plugins/qoder-cn/plugin.mjs +414 -49
- package/app/plugins/workbuddy/plugin.mjs +126 -8
- package/app/renderer-extension.js +2712 -1195
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +1 -1
|
@@ -14829,6 +14829,55 @@ var credentialImportsParamsSchema = external_exports.object({
|
|
|
14829
14829
|
request: credentialImportsRequestSchema
|
|
14830
14830
|
}).strict();
|
|
14831
14831
|
|
|
14832
|
+
// ../../shared-contracts/dist/harness-display-settings.js
|
|
14833
|
+
var harnessDisplayEntriesSchema = external_exports.array(external_exports.strictObject({
|
|
14834
|
+
agent: external_exports.string().min(1).max(128),
|
|
14835
|
+
section: external_exports.enum(["main", "more", "auto"])
|
|
14836
|
+
})).max(256).refine((entries) => new Set(entries.map((entry) => entry.agent)).size === entries.length, "Duplicate Harness IDs");
|
|
14837
|
+
var harnessDisplaySettingsSchema = external_exports.strictObject({
|
|
14838
|
+
entries: harnessDisplayEntriesSchema.nullable()
|
|
14839
|
+
});
|
|
14840
|
+
var harnessDisplayGetSchema = external_exports.strictObject({});
|
|
14841
|
+
var harnessDisplaySetSchema = external_exports.strictObject({
|
|
14842
|
+
entries: harnessDisplayEntriesSchema,
|
|
14843
|
+
/** Import legacy Desktop preferences only if no shared settings exist yet. */
|
|
14844
|
+
initializeOnly: external_exports.boolean().optional()
|
|
14845
|
+
});
|
|
14846
|
+
|
|
14847
|
+
// ../../shared-contracts/dist/console.js
|
|
14848
|
+
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
14849
|
+
title: external_exports.string().trim().min(1).max(200),
|
|
14850
|
+
type: external_exports.enum(["info", "warning", "danger"]),
|
|
14851
|
+
body: external_exports.string().trim().min(1).max(16 * 1024)
|
|
14852
|
+
});
|
|
14853
|
+
var consoleOpenParamsSchema = external_exports.strictObject({});
|
|
14854
|
+
var consoleOpenResultSchema = external_exports.strictObject({
|
|
14855
|
+
/** The console address. */
|
|
14856
|
+
url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
|
|
14857
|
+
});
|
|
14858
|
+
var CONSOLE_HOST_METHODS = Object.freeze([
|
|
14859
|
+
"codexhost/harness/plugins/list",
|
|
14860
|
+
"codexhost/harness/display-settings/get",
|
|
14861
|
+
"codexhost/harness/display-settings/set",
|
|
14862
|
+
"codexhost/harness/inspect",
|
|
14863
|
+
"codexhost/harness/launch-settings/get",
|
|
14864
|
+
"codexhost/harness/launch-settings/set",
|
|
14865
|
+
"codexhost/harness/web-ui/open",
|
|
14866
|
+
"codexhost/harness/accounts/sources",
|
|
14867
|
+
"codexhost/harness/accounts/list",
|
|
14868
|
+
"codexhost/harness/accounts/inspect",
|
|
14869
|
+
"codexhost/harness/credential-imports",
|
|
14870
|
+
"codexhost/harness/session-import/sources",
|
|
14871
|
+
"codexhost/harness/session-import/list",
|
|
14872
|
+
"codexhost/harness/session-import/import",
|
|
14873
|
+
"codexhost/account/list",
|
|
14874
|
+
"codexhost/account/refresh",
|
|
14875
|
+
"codexhost/account/usage/inspect",
|
|
14876
|
+
"codexhost/update/check",
|
|
14877
|
+
"codexhost/update/start",
|
|
14878
|
+
"codexhost/update/status"
|
|
14879
|
+
]);
|
|
14880
|
+
|
|
14832
14881
|
// ../../shared-contracts/dist/version.js
|
|
14833
14882
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
14834
14883
|
|
|
@@ -14882,6 +14931,12 @@ var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
|
14882
14931
|
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
14883
14932
|
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
14884
14933
|
|
|
14934
|
+
// ../../shared-contracts/dist/manual-compaction.js
|
|
14935
|
+
var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
14936
|
+
threadId: hostThreadIdSchema,
|
|
14937
|
+
turnId: hostTurnIdSchema
|
|
14938
|
+
});
|
|
14939
|
+
|
|
14885
14940
|
// ../../shared-contracts/dist/thread-usage.js
|
|
14886
14941
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
14887
14942
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
@@ -14942,6 +14997,10 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
14942
14997
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14943
14998
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
14944
14999
|
product: external_exports.string().min(1),
|
|
15000
|
+
used: external_exports.number().finite().nonnegative().optional(),
|
|
15001
|
+
// Zero is a real empty cap, not an absent field.
|
|
15002
|
+
limit: external_exports.number().finite().nonnegative().optional(),
|
|
15003
|
+
unit: external_exports.string().min(1).max(32).optional(),
|
|
14945
15004
|
usagePercent: usagePercentSchema,
|
|
14946
15005
|
resetsAt: external_exports.string().min(1).optional()
|
|
14947
15006
|
}).strict();
|
|
@@ -14951,11 +15010,14 @@ var accountResetCreditsSchema = external_exports.object({
|
|
|
14951
15010
|
expiresAt: external_exports.array(external_exports.string().min(1)).min(1).max(32).optional()
|
|
14952
15011
|
}).strict();
|
|
14953
15012
|
var accountCreditsSnapshotSchema = external_exports.object({
|
|
15013
|
+
used: external_exports.number().finite().nonnegative().optional(),
|
|
15014
|
+
// Zero is a real empty cap, not an absent field.
|
|
15015
|
+
limit: external_exports.number().finite().nonnegative().optional(),
|
|
15016
|
+
unit: external_exports.string().trim().min(1).max(32).optional(),
|
|
14954
15017
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
14955
15018
|
label: external_exports.string().min(1).optional(),
|
|
14956
15019
|
usedPercent: usagePercentSchema.optional(),
|
|
14957
15020
|
remaining: external_exports.number().finite().optional(),
|
|
14958
|
-
unit: external_exports.string().trim().min(1).max(32).optional(),
|
|
14959
15021
|
resetsAt: external_exports.string().min(1).optional(),
|
|
14960
15022
|
periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
|
|
14961
15023
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
@@ -14986,12 +15048,27 @@ var threadUsageInspectionSchema = external_exports.object({
|
|
|
14986
15048
|
}).strict();
|
|
14987
15049
|
|
|
14988
15050
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
14989
|
-
var
|
|
15051
|
+
var accountBalanceSnapshotSchema = external_exports.object({
|
|
15052
|
+
amount: external_exports.number().finite().nonnegative(),
|
|
15053
|
+
/** ISO 4217 code as reported by the Provider, for example `CNY`. */
|
|
15054
|
+
currency: external_exports.string().trim().min(1).max(8),
|
|
15055
|
+
/** Native label when the Harness exposes several Billing Sources. */
|
|
15056
|
+
label: external_exports.string().trim().min(1).max(128).optional()
|
|
15057
|
+
}).strict();
|
|
15058
|
+
var harnessAccountSnapshotObject = external_exports.object({
|
|
14990
15059
|
email: external_exports.string().trim().min(1).max(320).optional(),
|
|
14991
15060
|
label: external_exports.string().trim().min(1).max(256).optional(),
|
|
14992
15061
|
plan: external_exports.string().trim().min(1).max(128).optional(),
|
|
14993
|
-
credits: accountCreditsSnapshotSchema
|
|
15062
|
+
credits: accountCreditsSnapshotSchema.optional(),
|
|
15063
|
+
balance: accountBalanceSnapshotSchema.optional()
|
|
14994
15064
|
}).strict();
|
|
15065
|
+
function requireReportedQuota(schema) {
|
|
15066
|
+
return schema.refine((value) => {
|
|
15067
|
+
const reported = value;
|
|
15068
|
+
return reported.credits !== void 0 || reported.balance !== void 0;
|
|
15069
|
+
}, { message: "Account must report either credits or a balance" });
|
|
15070
|
+
}
|
|
15071
|
+
var harnessAccountSnapshotSchema = requireReportedQuota(harnessAccountSnapshotObject);
|
|
14995
15072
|
var harnessAccountIdentityShape = {
|
|
14996
15073
|
harnessId: harnessIdSchema,
|
|
14997
15074
|
harnessName: external_exports.string().trim().min(1).max(128)
|
|
@@ -15002,11 +15079,13 @@ var harnessAccountSourceListResultSchema = external_exports.object({ sources: ex
|
|
|
15002
15079
|
var harnessAccountInspectParamsSchema = external_exports.object({ harnessId: harnessIdSchema, refresh: external_exports.boolean().optional() }).strict();
|
|
15003
15080
|
var harnessAccountInspectResultSchema = external_exports.object({
|
|
15004
15081
|
...harnessAccountIdentityShape,
|
|
15005
|
-
account: harnessAccountSnapshotSchema.nullable()
|
|
15082
|
+
account: harnessAccountSnapshotSchema.nullable(),
|
|
15083
|
+
/** Every Billing Source from one Harness; `account` remains the first for older clients. */
|
|
15084
|
+
accounts: external_exports.array(harnessAccountSnapshotSchema).max(8).optional()
|
|
15006
15085
|
}).strict();
|
|
15007
15086
|
var harnessAccountListParamsSchema = external_exports.object({ refresh: external_exports.boolean().optional() }).strict();
|
|
15008
15087
|
var harnessAccountListResultSchema = external_exports.object({
|
|
15009
|
-
accounts: external_exports.array(
|
|
15088
|
+
accounts: external_exports.array(requireReportedQuota(harnessAccountSnapshotObject.extend(harnessAccountIdentityShape))).max(128)
|
|
15010
15089
|
}).strict();
|
|
15011
15090
|
|
|
15012
15091
|
// ../../shared-contracts/dist/json-value.js
|
|
@@ -15144,6 +15223,8 @@ var harnessModelSchema = external_exports.object({
|
|
|
15144
15223
|
ref: harnessModelRefSchema,
|
|
15145
15224
|
label: nonBlankTextSchema2.max(HARNESS_MODEL_LABEL_MAX_LENGTH),
|
|
15146
15225
|
resolvedModelLabel: harnessResolvedModelLabelSchema.optional(),
|
|
15226
|
+
/** Optional opaque selection for this same Model with priority processing enabled. */
|
|
15227
|
+
fastModel: harnessModelRefSchema.optional(),
|
|
15147
15228
|
supportedThinkingOptionIds: external_exports.array(harnessThinkingOptionIdSchema).optional()
|
|
15148
15229
|
}).strict();
|
|
15149
15230
|
var harnessThinkingOptionsSchema = external_exports.array(harnessThinkingOptionSchema).superRefine((options, context) => {
|
|
@@ -15176,6 +15257,16 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15176
15257
|
});
|
|
15177
15258
|
}
|
|
15178
15259
|
refs.add(model.ref.id);
|
|
15260
|
+
if (model.fastModel) {
|
|
15261
|
+
if (refs.has(model.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model.fastModel?.id)) {
|
|
15262
|
+
context.addIssue({
|
|
15263
|
+
code: "custom",
|
|
15264
|
+
message: "Fast Model refs must be distinct and unique",
|
|
15265
|
+
path: ["models", index, "fastModel"]
|
|
15266
|
+
});
|
|
15267
|
+
}
|
|
15268
|
+
refs.add(model.fastModel.id);
|
|
15269
|
+
}
|
|
15179
15270
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15180
15271
|
for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
|
|
15181
15272
|
if (supportedThinkingIds.has(optionId)) {
|
|
@@ -15298,11 +15389,13 @@ var threadThinkingSelectParamsSchema = external_exports.object({
|
|
|
15298
15389
|
thinkingOptionId: harnessThinkingOptionIdSchema
|
|
15299
15390
|
}).strict();
|
|
15300
15391
|
var threadInspectionParamsSchema = external_exports.object({
|
|
15301
|
-
threadId: hostThreadIdSchema
|
|
15392
|
+
threadId: hostThreadIdSchema,
|
|
15393
|
+
includeReferenceCapability: external_exports.boolean().optional()
|
|
15302
15394
|
}).strict();
|
|
15303
15395
|
var codexThreadInspectionSchema = external_exports.object({
|
|
15304
15396
|
owner: external_exports.literal("codex"),
|
|
15305
|
-
locked: external_exports.literal(true)
|
|
15397
|
+
locked: external_exports.literal(true),
|
|
15398
|
+
supportsThreadReferences: external_exports.literal(true).optional()
|
|
15306
15399
|
}).strict();
|
|
15307
15400
|
var externalThreadInspectionSchema = external_exports.object({
|
|
15308
15401
|
owner: external_exports.literal("external"),
|
|
@@ -15430,10 +15523,31 @@ var harnessLaunchSettingsSchema = external_exports.object({
|
|
|
15430
15523
|
restartRequired: external_exports.boolean()
|
|
15431
15524
|
}).strict();
|
|
15432
15525
|
|
|
15526
|
+
// ../../shared-contracts/dist/harness-installation.js
|
|
15527
|
+
var harnessInstallationParamsSchema = external_exports.object({
|
|
15528
|
+
harnessId: harnessIdSchema,
|
|
15529
|
+
action: external_exports.enum(["check", "update"])
|
|
15530
|
+
}).strict();
|
|
15531
|
+
var harnessInstallationStateSchema = external_exports.object({
|
|
15532
|
+
currentVersion: external_exports.string().min(1).max(128),
|
|
15533
|
+
latestVersion: external_exports.string().min(1).max(128),
|
|
15534
|
+
updateAvailable: external_exports.boolean(),
|
|
15535
|
+
canUpdate: external_exports.boolean(),
|
|
15536
|
+
message: external_exports.string().max(2048).optional()
|
|
15537
|
+
}).strict();
|
|
15538
|
+
|
|
15433
15539
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15434
15540
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
15435
15541
|
var nonBlankTextSchema3 = external_exports.string().trim().min(1);
|
|
15436
15542
|
var codexAccountAuthKindSchema = external_exports.enum(["api", "chatgpt"]);
|
|
15543
|
+
var codexAccountSiteUrlPattern = /^https?:\/\/(?:\[[0-9a-fA-F:]+\]|[^/\s:@?#]+)(?::\d{1,5})?(?:[/?#][^\s]*)?$/u;
|
|
15544
|
+
function isCodexAccountSiteUrl(value) {
|
|
15545
|
+
return value.length > 0 && value.length <= 2048 && codexAccountSiteUrlPattern.test(value);
|
|
15546
|
+
}
|
|
15547
|
+
var externalUrlOpenParamsSchema = external_exports.object({
|
|
15548
|
+
url: external_exports.string().max(2048).refine(isCodexAccountSiteUrl, "External URL must be http(s)")
|
|
15549
|
+
}).strict();
|
|
15550
|
+
var externalUrlOpenResultSchema = external_exports.object({}).strict();
|
|
15437
15551
|
var codexAccountPlanTypeSchema = external_exports.enum([
|
|
15438
15552
|
"free",
|
|
15439
15553
|
"go",
|
|
@@ -15459,7 +15573,8 @@ var codexAccountSchema = external_exports.object({
|
|
|
15459
15573
|
email: external_exports.string().email().max(320).optional(),
|
|
15460
15574
|
planType: codexAccountPlanTypeSchema.optional(),
|
|
15461
15575
|
authKind: codexAccountAuthKindSchema.optional(),
|
|
15462
|
-
authIdentity: nonBlankTextSchema3.max(256).optional()
|
|
15576
|
+
authIdentity: nonBlankTextSchema3.max(256).optional(),
|
|
15577
|
+
siteUrl: external_exports.string().refine(isCodexAccountSiteUrl, "Account site URL must be http(s)").optional()
|
|
15463
15578
|
}).strict();
|
|
15464
15579
|
var codexAccountPhaseSchema = external_exports.enum(["ready", "unavailable"]);
|
|
15465
15580
|
var codexAccountListResultSchema = external_exports.object({
|