@liberseek/boft-cli-linux-x64 0.8.2 → 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 +250 -40
- 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
|
@@ -4209,10 +4209,13 @@ function usageSessionTitle(value) {
|
|
|
4209
4209
|
return void 0;
|
|
4210
4210
|
if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
|
|
4211
4211
|
return normalized;
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4212
|
+
let title = "";
|
|
4213
|
+
for (const character of normalized) {
|
|
4214
|
+
if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
|
|
4215
|
+
break;
|
|
4216
|
+
title += character;
|
|
4217
|
+
}
|
|
4218
|
+
return `${title.trimEnd()}…`;
|
|
4216
4219
|
}
|
|
4217
4220
|
function sessionIdOk(value) {
|
|
4218
4221
|
return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
|
|
@@ -18900,10 +18903,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
18900
18903
|
var project = external_exports.string().min(1).max(4096);
|
|
18901
18904
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
18902
18905
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
18906
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
18907
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
18908
|
+
try {
|
|
18909
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
18910
|
+
return true;
|
|
18911
|
+
} catch {
|
|
18912
|
+
return false;
|
|
18913
|
+
}
|
|
18914
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
18903
18915
|
harness: harness.optional(),
|
|
18904
18916
|
model: model.nullable().optional(),
|
|
18905
18917
|
project: project.nullable().optional(),
|
|
18906
|
-
/** One
|
|
18918
|
+
/** One date in the query timezone inside the range. */
|
|
18907
18919
|
date: localDate.optional()
|
|
18908
18920
|
});
|
|
18909
18921
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -18939,7 +18951,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
18939
18951
|
});
|
|
18940
18952
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
18941
18953
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
18942
|
-
/** First
|
|
18954
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
18943
18955
|
from: localDate.nullable(),
|
|
18944
18956
|
to: localDate,
|
|
18945
18957
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -18979,7 +18991,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
18979
18991
|
totals: usageStatisticsTotalsSchema,
|
|
18980
18992
|
/** Each date and Harness of the range: every filter except the day. */
|
|
18981
18993
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
18982
|
-
/**
|
|
18994
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
18983
18995
|
hourly: external_exports.array(external_exports.strictObject({
|
|
18984
18996
|
weekday: external_exports.number().int().min(0).max(6),
|
|
18985
18997
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -19121,6 +19133,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
19121
19133
|
"codexhost/harness/display-settings/set",
|
|
19122
19134
|
"codexhost/harness/inspect",
|
|
19123
19135
|
"codexhost/harness/installation",
|
|
19136
|
+
"codexhost/harness/installation/start",
|
|
19137
|
+
"codexhost/harness/installation/status",
|
|
19124
19138
|
"codexhost/harness/launch-settings/get",
|
|
19125
19139
|
"codexhost/harness/launch-settings/set",
|
|
19126
19140
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -19198,7 +19212,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
19198
19212
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
19199
19213
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
19200
19214
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
19215
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
19216
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
19217
|
+
kind: external_exports.literal("countdown"),
|
|
19218
|
+
id: external_exports.string().min(1).max(64),
|
|
19219
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
19220
|
+
label: indicatorTextSchema(256).optional(),
|
|
19221
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
19222
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
19223
|
+
message: "Composer indicator IDs must be unique"
|
|
19224
|
+
});
|
|
19201
19225
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
19226
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
19202
19227
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
19203
19228
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
19204
19229
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -19624,7 +19649,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
19624
19649
|
}).strict().optional(),
|
|
19625
19650
|
input: external_exports.object({
|
|
19626
19651
|
image: external_exports.boolean()
|
|
19627
|
-
}).strict().optional()
|
|
19652
|
+
}).strict().optional(),
|
|
19653
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
19654
|
+
steer: external_exports.boolean().optional()
|
|
19628
19655
|
}).strict();
|
|
19629
19656
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
19630
19657
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -19671,7 +19698,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
19671
19698
|
var harnessInspectParamsSchema = external_exports.object({
|
|
19672
19699
|
harnessId: harnessIdSchema,
|
|
19673
19700
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
19674
|
-
refresh: external_exports.boolean().optional()
|
|
19701
|
+
refresh: external_exports.boolean().optional(),
|
|
19702
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
19703
|
+
purpose: external_exports.literal("availability").optional()
|
|
19675
19704
|
}).strict();
|
|
19676
19705
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
19677
19706
|
harnessId: harnessIdSchema
|
|
@@ -19756,6 +19785,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
19756
19785
|
seen.add(thread.threadId);
|
|
19757
19786
|
}
|
|
19758
19787
|
});
|
|
19788
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
19789
|
+
threadId: hostThreadIdSchema,
|
|
19790
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
19791
|
+
text: external_exports.string().optional()
|
|
19792
|
+
}).strict();
|
|
19793
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
19794
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
19795
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
19796
|
+
}).strict();
|
|
19759
19797
|
|
|
19760
19798
|
// ../../shared-contracts/dist/harness-route.js
|
|
19761
19799
|
var harnessPluginRouteSchema = external_exports.object({
|
|
@@ -19788,6 +19826,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
19788
19826
|
latestVersion: external_exports.string().min(1).max(128),
|
|
19789
19827
|
updateAvailable: external_exports.boolean(),
|
|
19790
19828
|
canUpdate: external_exports.boolean(),
|
|
19829
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
19830
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
19831
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
19832
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
19791
19833
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
19792
19834
|
message: external_exports.string().max(2048).optional(),
|
|
19793
19835
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -19795,6 +19837,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
19795
19837
|
notice: harnessLocalizedTextSchema.optional(),
|
|
19796
19838
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
19797
19839
|
}).strict();
|
|
19840
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
19841
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
19842
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
19843
|
+
external_exports.object({
|
|
19844
|
+
taskId: external_exports.string().uuid(),
|
|
19845
|
+
status: external_exports.literal("succeeded"),
|
|
19846
|
+
result: harnessInstallationStateSchema
|
|
19847
|
+
}).strict(),
|
|
19848
|
+
external_exports.object({
|
|
19849
|
+
taskId: external_exports.string().uuid(),
|
|
19850
|
+
status: external_exports.literal("failed"),
|
|
19851
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
19852
|
+
}).strict()
|
|
19853
|
+
]);
|
|
19798
19854
|
|
|
19799
19855
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
19800
19856
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -20318,6 +20374,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
20318
20374
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
20319
20375
|
}
|
|
20320
20376
|
|
|
20377
|
+
// ../../harness-adapter/dist/steer.js
|
|
20378
|
+
function unsupportedSteer(harnessLabel) {
|
|
20379
|
+
return {
|
|
20380
|
+
ok: false,
|
|
20381
|
+
error: {
|
|
20382
|
+
code: "unsupported",
|
|
20383
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
20384
|
+
retryable: false
|
|
20385
|
+
}
|
|
20386
|
+
};
|
|
20387
|
+
}
|
|
20388
|
+
|
|
20321
20389
|
// ../../harness-adapter/dist/usage.js
|
|
20322
20390
|
var tokenFields = [
|
|
20323
20391
|
"inputTokens",
|
|
@@ -20345,6 +20413,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
20345
20413
|
...safeIntegerFields,
|
|
20346
20414
|
...percentFields,
|
|
20347
20415
|
"sessionCacheUsage",
|
|
20416
|
+
"composerIndicators",
|
|
20348
20417
|
"totalCostUsd",
|
|
20349
20418
|
"totalCredits",
|
|
20350
20419
|
"contextUsagePercent",
|
|
@@ -20367,6 +20436,7 @@ function parseHostUsage(value) {
|
|
|
20367
20436
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
20368
20437
|
}
|
|
20369
20438
|
}
|
|
20439
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
20370
20440
|
for (const field of [
|
|
20371
20441
|
"totalCredits",
|
|
20372
20442
|
"contextUsagePercent",
|
|
@@ -20443,9 +20513,9 @@ function parseHostUsage(value) {
|
|
|
20443
20513
|
if (value.costSource !== "publicPrice") {
|
|
20444
20514
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
20445
20515
|
}
|
|
20446
|
-
return { ...value, unpricedModels: [...models] };
|
|
20516
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
20447
20517
|
}
|
|
20448
|
-
return { ...value };
|
|
20518
|
+
return { ...value, ...indicators };
|
|
20449
20519
|
}
|
|
20450
20520
|
var requestTokenFields = [
|
|
20451
20521
|
"inputTokens",
|
|
@@ -28833,6 +28903,8 @@ var ModernHarnessSession = class {
|
|
|
28833
28903
|
switch (command.type) {
|
|
28834
28904
|
case "turn.start":
|
|
28835
28905
|
return this.#start(command);
|
|
28906
|
+
case "turn.steer":
|
|
28907
|
+
return Promise.resolve(unsupportedSteer("DeepSeek Harness"));
|
|
28836
28908
|
case "turn.cancel":
|
|
28837
28909
|
return this.#cancel(command);
|
|
28838
28910
|
case "interaction.respond":
|