@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
|
@@ -504,10 +504,13 @@ function usageSessionTitle(value) {
|
|
|
504
504
|
return void 0;
|
|
505
505
|
if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
|
|
506
506
|
return normalized;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
507
|
+
let title = "";
|
|
508
|
+
for (const character of normalized) {
|
|
509
|
+
if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
|
|
510
|
+
break;
|
|
511
|
+
title += character;
|
|
512
|
+
}
|
|
513
|
+
return `${title.trimEnd()}…`;
|
|
511
514
|
}
|
|
512
515
|
function sessionIdOk(value) {
|
|
513
516
|
return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
|
|
@@ -15199,10 +15202,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
15199
15202
|
var project = external_exports.string().min(1).max(4096);
|
|
15200
15203
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15201
15204
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15205
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
15206
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
15207
|
+
try {
|
|
15208
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
15209
|
+
return true;
|
|
15210
|
+
} catch {
|
|
15211
|
+
return false;
|
|
15212
|
+
}
|
|
15213
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
15202
15214
|
harness: harness.optional(),
|
|
15203
15215
|
model: model.nullable().optional(),
|
|
15204
15216
|
project: project.nullable().optional(),
|
|
15205
|
-
/** One
|
|
15217
|
+
/** One date in the query timezone inside the range. */
|
|
15206
15218
|
date: localDate.optional()
|
|
15207
15219
|
});
|
|
15208
15220
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -15238,7 +15250,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15238
15250
|
});
|
|
15239
15251
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15240
15252
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15241
|
-
/** First
|
|
15253
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
15242
15254
|
from: localDate.nullable(),
|
|
15243
15255
|
to: localDate,
|
|
15244
15256
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -15278,7 +15290,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15278
15290
|
totals: usageStatisticsTotalsSchema,
|
|
15279
15291
|
/** Each date and Harness of the range: every filter except the day. */
|
|
15280
15292
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15281
|
-
/**
|
|
15293
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
15282
15294
|
hourly: external_exports.array(external_exports.strictObject({
|
|
15283
15295
|
weekday: external_exports.number().int().min(0).max(6),
|
|
15284
15296
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15420,6 +15432,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15420
15432
|
"codexhost/harness/display-settings/set",
|
|
15421
15433
|
"codexhost/harness/inspect",
|
|
15422
15434
|
"codexhost/harness/installation",
|
|
15435
|
+
"codexhost/harness/installation/start",
|
|
15436
|
+
"codexhost/harness/installation/status",
|
|
15423
15437
|
"codexhost/harness/launch-settings/get",
|
|
15424
15438
|
"codexhost/harness/launch-settings/set",
|
|
15425
15439
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15497,7 +15511,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15497
15511
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15498
15512
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15499
15513
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15514
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15515
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15516
|
+
kind: external_exports.literal("countdown"),
|
|
15517
|
+
id: external_exports.string().min(1).max(64),
|
|
15518
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15519
|
+
label: indicatorTextSchema(256).optional(),
|
|
15520
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15521
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15522
|
+
message: "Composer indicator IDs must be unique"
|
|
15523
|
+
});
|
|
15500
15524
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15525
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15501
15526
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15502
15527
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15503
15528
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15923,7 +15948,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15923
15948
|
}).strict().optional(),
|
|
15924
15949
|
input: external_exports.object({
|
|
15925
15950
|
image: external_exports.boolean()
|
|
15926
|
-
}).strict().optional()
|
|
15951
|
+
}).strict().optional(),
|
|
15952
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15953
|
+
steer: external_exports.boolean().optional()
|
|
15927
15954
|
}).strict();
|
|
15928
15955
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15929
15956
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15970,7 +15997,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15970
15997
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15971
15998
|
harnessId: harnessIdSchema,
|
|
15972
15999
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15973
|
-
refresh: external_exports.boolean().optional()
|
|
16000
|
+
refresh: external_exports.boolean().optional(),
|
|
16001
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
16002
|
+
purpose: external_exports.literal("availability").optional()
|
|
15974
16003
|
}).strict();
|
|
15975
16004
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15976
16005
|
harnessId: harnessIdSchema
|
|
@@ -16055,6 +16084,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
16055
16084
|
seen.add(thread.threadId);
|
|
16056
16085
|
}
|
|
16057
16086
|
});
|
|
16087
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
16088
|
+
threadId: hostThreadIdSchema,
|
|
16089
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
16090
|
+
text: external_exports.string().optional()
|
|
16091
|
+
}).strict();
|
|
16092
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
16093
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
16094
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
16095
|
+
}).strict();
|
|
16058
16096
|
|
|
16059
16097
|
// ../../shared-contracts/dist/harness-route.js
|
|
16060
16098
|
var harnessPluginRouteSchema = external_exports.object({
|
|
@@ -16087,6 +16125,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16087
16125
|
latestVersion: external_exports.string().min(1).max(128),
|
|
16088
16126
|
updateAvailable: external_exports.boolean(),
|
|
16089
16127
|
canUpdate: external_exports.boolean(),
|
|
16128
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
16129
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
16130
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
16131
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
16090
16132
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
16091
16133
|
message: external_exports.string().max(2048).optional(),
|
|
16092
16134
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -16094,6 +16136,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16094
16136
|
notice: harnessLocalizedTextSchema.optional(),
|
|
16095
16137
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
16096
16138
|
}).strict();
|
|
16139
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
16140
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
16141
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
16142
|
+
external_exports.object({
|
|
16143
|
+
taskId: external_exports.string().uuid(),
|
|
16144
|
+
status: external_exports.literal("succeeded"),
|
|
16145
|
+
result: harnessInstallationStateSchema
|
|
16146
|
+
}).strict(),
|
|
16147
|
+
external_exports.object({
|
|
16148
|
+
taskId: external_exports.string().uuid(),
|
|
16149
|
+
status: external_exports.literal("failed"),
|
|
16150
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
16151
|
+
}).strict()
|
|
16152
|
+
]);
|
|
16097
16153
|
|
|
16098
16154
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
16099
16155
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16591,6 +16647,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16591
16647
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16592
16648
|
}
|
|
16593
16649
|
|
|
16650
|
+
// ../../harness-adapter/dist/steer.js
|
|
16651
|
+
function unsupportedSteer(harnessLabel) {
|
|
16652
|
+
return {
|
|
16653
|
+
ok: false,
|
|
16654
|
+
error: {
|
|
16655
|
+
code: "unsupported",
|
|
16656
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16657
|
+
retryable: false
|
|
16658
|
+
}
|
|
16659
|
+
};
|
|
16660
|
+
}
|
|
16661
|
+
|
|
16594
16662
|
// ../../harness-adapter/dist/usage.js
|
|
16595
16663
|
var tokenFields = [
|
|
16596
16664
|
"inputTokens",
|
|
@@ -16618,6 +16686,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16618
16686
|
...safeIntegerFields,
|
|
16619
16687
|
...percentFields,
|
|
16620
16688
|
"sessionCacheUsage",
|
|
16689
|
+
"composerIndicators",
|
|
16621
16690
|
"totalCostUsd",
|
|
16622
16691
|
"totalCredits",
|
|
16623
16692
|
"contextUsagePercent",
|
|
@@ -16640,6 +16709,7 @@ function parseHostUsage(value) {
|
|
|
16640
16709
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
16641
16710
|
}
|
|
16642
16711
|
}
|
|
16712
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
16643
16713
|
for (const field of [
|
|
16644
16714
|
"totalCredits",
|
|
16645
16715
|
"contextUsagePercent",
|
|
@@ -16716,9 +16786,9 @@ function parseHostUsage(value) {
|
|
|
16716
16786
|
if (value.costSource !== "publicPrice") {
|
|
16717
16787
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
16718
16788
|
}
|
|
16719
|
-
return { ...value, unpricedModels: [...models] };
|
|
16789
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
16720
16790
|
}
|
|
16721
|
-
return { ...value };
|
|
16791
|
+
return { ...value, ...indicators };
|
|
16722
16792
|
}
|
|
16723
16793
|
var requestTokenFields = [
|
|
16724
16794
|
"inputTokens",
|
|
@@ -23838,6 +23908,8 @@ var OpenCodeHarnessSession = class {
|
|
|
23838
23908
|
if (this.#phase !== "open") {
|
|
23839
23909
|
return { ok: false, error: invalidState("OpenCode Session is not open") };
|
|
23840
23910
|
}
|
|
23911
|
+
if (command.type === "turn.steer")
|
|
23912
|
+
return unsupportedSteer("OpenCode");
|
|
23841
23913
|
if (command.type === "turn.cancel")
|
|
23842
23914
|
return this.#cancel(command);
|
|
23843
23915
|
if (command.type === "interaction.respond")
|
|
@@ -27518,6 +27590,8 @@ var V2Session = class {
|
|
|
27518
27590
|
async execute(command) {
|
|
27519
27591
|
if (this.#closed)
|
|
27520
27592
|
return { ok: false, error: failure("OpenCode Session is closed", "invalidState") };
|
|
27593
|
+
if (command.type === "turn.steer")
|
|
27594
|
+
return unsupportedSteer("OpenCode");
|
|
27521
27595
|
if (command.type === "turn.start")
|
|
27522
27596
|
return this.#start(command, false);
|
|
27523
27597
|
if (command.type === "turn.cancel") {
|