@liberseek/boft-cli-linux-x64 0.8.3 → 0.8.4
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 +58 -5
- package/app/console-web.js +436 -67
- package/app/desktop-controller.mjs +72 -9
- package/app/host-runtime.mjs +772 -218
- package/app/plugins/antigravity/plugin.mjs +91 -13
- package/app/plugins/claude-code/plugin.mjs +404 -26
- package/app/plugins/codebuddy/plugin.mjs +117 -22
- package/app/plugins/codex-usage/plugin.mjs +176 -74
- package/app/plugins/copilot/assets/icon.png +0 -0
- package/app/plugins/copilot/manifest.json +26 -0
- package/app/plugins/copilot/plugin.mjs +34601 -0
- package/app/plugins/cursor-cli/plugin.mjs +20794 -44912
- package/app/plugins/deepseek-harness/plugin.mjs +83 -11
- package/app/plugins/enabled.json +1 -0
- package/app/plugins/grok/plugin.mjs +214 -24
- package/app/plugins/hermes/plugin.mjs +80 -9
- package/app/plugins/kimi-code/plugin.mjs +76 -7
- package/app/plugins/kiro-cli/plugin.mjs +76 -7
- package/app/plugins/muse/plugin.mjs +73 -5
- package/app/plugins/omp/plugin.mjs +2155 -2000
- package/app/plugins/opencode/plugin.mjs +85 -11
- package/app/plugins/pi/plugin.mjs +2515 -2298
- package/app/plugins/qoder/plugin.mjs +83 -11
- package/app/plugins/qoder-cn/plugin.mjs +83 -11
- package/app/plugins/workbuddy/plugin.mjs +378 -46
- package/app/plugins/zcode/plugin.mjs +84 -11
- package/app/renderer-extension.js +833 -162
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +1 -1
|
@@ -22,10 +22,13 @@ function usageSessionTitle(value) {
|
|
|
22
22
|
return void 0;
|
|
23
23
|
if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
|
|
24
24
|
return normalized;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
let title = "";
|
|
26
|
+
for (const character of normalized) {
|
|
27
|
+
if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
|
|
28
|
+
break;
|
|
29
|
+
title += character;
|
|
30
|
+
}
|
|
31
|
+
return `${title.trimEnd()}…`;
|
|
29
32
|
}
|
|
30
33
|
function sessionIdOk(value) {
|
|
31
34
|
return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
|
|
@@ -14845,10 +14848,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
14845
14848
|
var project = external_exports.string().min(1).max(4096);
|
|
14846
14849
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
14847
14850
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14851
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
14852
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
14853
|
+
try {
|
|
14854
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
14855
|
+
return true;
|
|
14856
|
+
} catch {
|
|
14857
|
+
return false;
|
|
14858
|
+
}
|
|
14859
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
14848
14860
|
harness: harness.optional(),
|
|
14849
14861
|
model: model.nullable().optional(),
|
|
14850
14862
|
project: project.nullable().optional(),
|
|
14851
|
-
/** One
|
|
14863
|
+
/** One date in the query timezone inside the range. */
|
|
14852
14864
|
date: localDate.optional()
|
|
14853
14865
|
});
|
|
14854
14866
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -14884,7 +14896,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
14884
14896
|
});
|
|
14885
14897
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
14886
14898
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14887
|
-
/** First
|
|
14899
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
14888
14900
|
from: localDate.nullable(),
|
|
14889
14901
|
to: localDate,
|
|
14890
14902
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -14924,7 +14936,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
14924
14936
|
totals: usageStatisticsTotalsSchema,
|
|
14925
14937
|
/** Each date and Harness of the range: every filter except the day. */
|
|
14926
14938
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
14927
|
-
/**
|
|
14939
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
14928
14940
|
hourly: external_exports.array(external_exports.strictObject({
|
|
14929
14941
|
weekday: external_exports.number().int().min(0).max(6),
|
|
14930
14942
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15066,6 +15078,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15066
15078
|
"codexhost/harness/display-settings/set",
|
|
15067
15079
|
"codexhost/harness/inspect",
|
|
15068
15080
|
"codexhost/harness/installation",
|
|
15081
|
+
"codexhost/harness/installation/start",
|
|
15082
|
+
"codexhost/harness/installation/status",
|
|
15069
15083
|
"codexhost/harness/launch-settings/get",
|
|
15070
15084
|
"codexhost/harness/launch-settings/set",
|
|
15071
15085
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15143,7 +15157,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15143
15157
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15144
15158
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15145
15159
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15160
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
|
|
15161
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15162
|
+
kind: external_exports.literal("countdown"),
|
|
15163
|
+
id: external_exports.string().min(1).max(64),
|
|
15164
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15165
|
+
label: indicatorTextSchema(256).optional(),
|
|
15166
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15167
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15168
|
+
message: "Composer indicator IDs must be unique"
|
|
15169
|
+
});
|
|
15146
15170
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15171
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15147
15172
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15148
15173
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15149
15174
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15569,7 +15594,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15569
15594
|
}).strict().optional(),
|
|
15570
15595
|
input: external_exports.object({
|
|
15571
15596
|
image: external_exports.boolean()
|
|
15572
|
-
}).strict().optional()
|
|
15597
|
+
}).strict().optional(),
|
|
15598
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15599
|
+
steer: external_exports.boolean().optional()
|
|
15573
15600
|
}).strict();
|
|
15574
15601
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15575
15602
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15616,7 +15643,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15616
15643
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15617
15644
|
harnessId: harnessIdSchema,
|
|
15618
15645
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15619
|
-
refresh: external_exports.boolean().optional()
|
|
15646
|
+
refresh: external_exports.boolean().optional(),
|
|
15647
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15648
|
+
purpose: external_exports.literal("availability").optional()
|
|
15620
15649
|
}).strict();
|
|
15621
15650
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15622
15651
|
harnessId: harnessIdSchema
|
|
@@ -15701,6 +15730,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15701
15730
|
seen.add(thread.threadId);
|
|
15702
15731
|
}
|
|
15703
15732
|
});
|
|
15733
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
15734
|
+
threadId: hostThreadIdSchema,
|
|
15735
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15736
|
+
text: external_exports.string().optional()
|
|
15737
|
+
}).strict();
|
|
15738
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15739
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15740
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15741
|
+
}).strict();
|
|
15704
15742
|
|
|
15705
15743
|
// ../../shared-contracts/dist/harness-route.js
|
|
15706
15744
|
var harnessPluginRouteSchema = external_exports.object({
|
|
@@ -15733,6 +15771,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15733
15771
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15734
15772
|
updateAvailable: external_exports.boolean(),
|
|
15735
15773
|
canUpdate: external_exports.boolean(),
|
|
15774
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
15775
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
15776
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
15777
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
15736
15778
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15737
15779
|
message: external_exports.string().max(2048).optional(),
|
|
15738
15780
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -15740,6 +15782,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15740
15782
|
notice: harnessLocalizedTextSchema.optional(),
|
|
15741
15783
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15742
15784
|
}).strict();
|
|
15785
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
15786
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
15787
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
15788
|
+
external_exports.object({
|
|
15789
|
+
taskId: external_exports.string().uuid(),
|
|
15790
|
+
status: external_exports.literal("succeeded"),
|
|
15791
|
+
result: harnessInstallationStateSchema
|
|
15792
|
+
}).strict(),
|
|
15793
|
+
external_exports.object({
|
|
15794
|
+
taskId: external_exports.string().uuid(),
|
|
15795
|
+
status: external_exports.literal("failed"),
|
|
15796
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
15797
|
+
}).strict()
|
|
15798
|
+
]);
|
|
15743
15799
|
|
|
15744
15800
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15745
15801
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16237,6 +16293,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16237
16293
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16238
16294
|
}
|
|
16239
16295
|
|
|
16296
|
+
// ../../harness-adapter/dist/steer.js
|
|
16297
|
+
function unsupportedSteer(harnessLabel) {
|
|
16298
|
+
return {
|
|
16299
|
+
ok: false,
|
|
16300
|
+
error: {
|
|
16301
|
+
code: "unsupported",
|
|
16302
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16303
|
+
retryable: false
|
|
16304
|
+
}
|
|
16305
|
+
};
|
|
16306
|
+
}
|
|
16307
|
+
|
|
16240
16308
|
// ../../harness-adapter/dist/usage.js
|
|
16241
16309
|
var tokenFields = [
|
|
16242
16310
|
"inputTokens",
|
|
@@ -16264,6 +16332,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16264
16332
|
...safeIntegerFields,
|
|
16265
16333
|
...percentFields,
|
|
16266
16334
|
"sessionCacheUsage",
|
|
16335
|
+
"composerIndicators",
|
|
16267
16336
|
"totalCostUsd",
|
|
16268
16337
|
"totalCredits",
|
|
16269
16338
|
"contextUsagePercent",
|
|
@@ -16286,6 +16355,7 @@ function parseHostUsage(value) {
|
|
|
16286
16355
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
16287
16356
|
}
|
|
16288
16357
|
}
|
|
16358
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
16289
16359
|
for (const field2 of [
|
|
16290
16360
|
"totalCredits",
|
|
16291
16361
|
"contextUsagePercent",
|
|
@@ -16362,9 +16432,9 @@ function parseHostUsage(value) {
|
|
|
16362
16432
|
if (value.costSource !== "publicPrice") {
|
|
16363
16433
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
16364
16434
|
}
|
|
16365
|
-
return { ...value, unpricedModels: [...models] };
|
|
16435
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
16366
16436
|
}
|
|
16367
|
-
return { ...value };
|
|
16437
|
+
return { ...value, ...indicators };
|
|
16368
16438
|
}
|
|
16369
16439
|
var requestTokenFields = [
|
|
16370
16440
|
"inputTokens",
|
|
@@ -19472,6 +19542,7 @@ async function readHistory(transport, snapshot, events = []) {
|
|
|
19472
19542
|
|
|
19473
19543
|
// dist/capabilities.js
|
|
19474
19544
|
var ZCODE_CAPABILITIES = {
|
|
19545
|
+
steer: false,
|
|
19475
19546
|
configuration: {
|
|
19476
19547
|
selectModel: true,
|
|
19477
19548
|
selectThinkingOption: true,
|
|
@@ -19646,6 +19717,8 @@ var ZcodeSession = class {
|
|
|
19646
19717
|
if (this.#closed || this.#faulted)
|
|
19647
19718
|
return failure("invalidState", "ZCode session is closed");
|
|
19648
19719
|
try {
|
|
19720
|
+
if (command.type === "turn.steer")
|
|
19721
|
+
return unsupportedSteer("ZCode");
|
|
19649
19722
|
if (command.type === "turn.start") {
|
|
19650
19723
|
if (!hostTurnIdSchema.safeParse(command.turnId).success || !command.input.length || command.input.some((item) => item.type !== "text") || !command.input.some((item) => item.type === "text" && item.text.trim()))
|
|
19651
19724
|
return failure("invalidRequest", "ZCode requires nonempty text and a turn ID");
|