@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
|
@@ -15068,10 +15068,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
15068
15068
|
var project = external_exports.string().min(1).max(4096);
|
|
15069
15069
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15070
15070
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15071
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
15072
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
15073
|
+
try {
|
|
15074
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
15075
|
+
return true;
|
|
15076
|
+
} catch {
|
|
15077
|
+
return false;
|
|
15078
|
+
}
|
|
15079
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
15071
15080
|
harness: harness.optional(),
|
|
15072
15081
|
model: model.nullable().optional(),
|
|
15073
15082
|
project: project.nullable().optional(),
|
|
15074
|
-
/** One
|
|
15083
|
+
/** One date in the query timezone inside the range. */
|
|
15075
15084
|
date: localDate.optional()
|
|
15076
15085
|
});
|
|
15077
15086
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -15107,7 +15116,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
15107
15116
|
});
|
|
15108
15117
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15109
15118
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15110
|
-
/** First
|
|
15119
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
15111
15120
|
from: localDate.nullable(),
|
|
15112
15121
|
to: localDate,
|
|
15113
15122
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -15147,7 +15156,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
15147
15156
|
totals: usageStatisticsTotalsSchema,
|
|
15148
15157
|
/** Each date and Harness of the range: every filter except the day. */
|
|
15149
15158
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15150
|
-
/**
|
|
15159
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
15151
15160
|
hourly: external_exports.array(external_exports.strictObject({
|
|
15152
15161
|
weekday: external_exports.number().int().min(0).max(6),
|
|
15153
15162
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -15289,6 +15298,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15289
15298
|
"codexhost/harness/display-settings/set",
|
|
15290
15299
|
"codexhost/harness/inspect",
|
|
15291
15300
|
"codexhost/harness/installation",
|
|
15301
|
+
"codexhost/harness/installation/start",
|
|
15302
|
+
"codexhost/harness/installation/status",
|
|
15292
15303
|
"codexhost/harness/launch-settings/get",
|
|
15293
15304
|
"codexhost/harness/launch-settings/set",
|
|
15294
15305
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15366,7 +15377,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
15366
15377
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15367
15378
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15368
15379
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15380
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15381
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15382
|
+
kind: external_exports.literal("countdown"),
|
|
15383
|
+
id: external_exports.string().min(1).max(64),
|
|
15384
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15385
|
+
label: indicatorTextSchema(256).optional(),
|
|
15386
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15387
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15388
|
+
message: "Composer indicator IDs must be unique"
|
|
15389
|
+
});
|
|
15369
15390
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15391
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15370
15392
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15371
15393
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15372
15394
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15792,7 +15814,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
15792
15814
|
}).strict().optional(),
|
|
15793
15815
|
input: external_exports.object({
|
|
15794
15816
|
image: external_exports.boolean()
|
|
15795
|
-
}).strict().optional()
|
|
15817
|
+
}).strict().optional(),
|
|
15818
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15819
|
+
steer: external_exports.boolean().optional()
|
|
15796
15820
|
}).strict();
|
|
15797
15821
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15798
15822
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15839,7 +15863,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
15839
15863
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15840
15864
|
harnessId: harnessIdSchema,
|
|
15841
15865
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15842
|
-
refresh: external_exports.boolean().optional()
|
|
15866
|
+
refresh: external_exports.boolean().optional(),
|
|
15867
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15868
|
+
purpose: external_exports.literal("availability").optional()
|
|
15843
15869
|
}).strict();
|
|
15844
15870
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15845
15871
|
harnessId: harnessIdSchema
|
|
@@ -15924,6 +15950,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15924
15950
|
seen.add(thread.threadId);
|
|
15925
15951
|
}
|
|
15926
15952
|
});
|
|
15953
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
15954
|
+
threadId: hostThreadIdSchema,
|
|
15955
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15956
|
+
text: external_exports.string().optional()
|
|
15957
|
+
}).strict();
|
|
15958
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15959
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15960
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15961
|
+
}).strict();
|
|
15927
15962
|
|
|
15928
15963
|
// ../../shared-contracts/dist/harness-route.js
|
|
15929
15964
|
var harnessPluginRouteSchema = external_exports.object({
|
|
@@ -15956,6 +15991,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15956
15991
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15957
15992
|
updateAvailable: external_exports.boolean(),
|
|
15958
15993
|
canUpdate: external_exports.boolean(),
|
|
15994
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
15995
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
15996
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
15997
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
15959
15998
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15960
15999
|
message: external_exports.string().max(2048).optional(),
|
|
15961
16000
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -15963,6 +16002,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15963
16002
|
notice: harnessLocalizedTextSchema.optional(),
|
|
15964
16003
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15965
16004
|
}).strict();
|
|
16005
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
16006
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
16007
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
16008
|
+
external_exports.object({
|
|
16009
|
+
taskId: external_exports.string().uuid(),
|
|
16010
|
+
status: external_exports.literal("succeeded"),
|
|
16011
|
+
result: harnessInstallationStateSchema
|
|
16012
|
+
}).strict(),
|
|
16013
|
+
external_exports.object({
|
|
16014
|
+
taskId: external_exports.string().uuid(),
|
|
16015
|
+
status: external_exports.literal("failed"),
|
|
16016
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
16017
|
+
}).strict()
|
|
16018
|
+
]);
|
|
15966
16019
|
|
|
15967
16020
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15968
16021
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16452,6 +16505,18 @@ function sanitizeDiagnosticTail(value) {
|
|
|
16452
16505
|
return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
|
|
16453
16506
|
}
|
|
16454
16507
|
|
|
16508
|
+
// ../../harness-adapter/dist/steer.js
|
|
16509
|
+
function unsupportedSteer(harnessLabel) {
|
|
16510
|
+
return {
|
|
16511
|
+
ok: false,
|
|
16512
|
+
error: {
|
|
16513
|
+
code: "unsupported",
|
|
16514
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
16515
|
+
retryable: false
|
|
16516
|
+
}
|
|
16517
|
+
};
|
|
16518
|
+
}
|
|
16519
|
+
|
|
16455
16520
|
// ../../harness-adapter/dist/usage.js
|
|
16456
16521
|
var tokenFields = [
|
|
16457
16522
|
"inputTokens",
|
|
@@ -16479,6 +16544,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16479
16544
|
...safeIntegerFields,
|
|
16480
16545
|
...percentFields,
|
|
16481
16546
|
"sessionCacheUsage",
|
|
16547
|
+
"composerIndicators",
|
|
16482
16548
|
"totalCostUsd",
|
|
16483
16549
|
"totalCredits",
|
|
16484
16550
|
"contextUsagePercent",
|
|
@@ -19089,6 +19155,8 @@ var AntigravitySession = class {
|
|
|
19089
19155
|
#closed = false;
|
|
19090
19156
|
#model;
|
|
19091
19157
|
#nativeRef;
|
|
19158
|
+
/** The last result's `response`: agy carries earlier Turns' replies in it. */
|
|
19159
|
+
#lastResultResponse = "";
|
|
19092
19160
|
#permissionMode;
|
|
19093
19161
|
#thinkingOptionId;
|
|
19094
19162
|
#catalog;
|
|
@@ -19150,6 +19218,8 @@ var AntigravitySession = class {
|
|
|
19150
19218
|
return { ok: false, error: invalidState("Antigravity Session is closed") };
|
|
19151
19219
|
if (command.type === "turn.cancel")
|
|
19152
19220
|
return this.#cancel(command);
|
|
19221
|
+
if (command.type === "turn.steer")
|
|
19222
|
+
return unsupportedSteer("Antigravity");
|
|
19153
19223
|
if (command.type === "model.select")
|
|
19154
19224
|
return this.#selectModel(command);
|
|
19155
19225
|
if (command.type === "permissionMode.select")
|
|
@@ -19476,9 +19546,13 @@ ${line}`).slice(-8e3);
|
|
|
19476
19546
|
this.#history.bindNativeSession(convId);
|
|
19477
19547
|
this.#event({ type: "session.state.changed", state: this.#state() });
|
|
19478
19548
|
}
|
|
19479
|
-
|
|
19480
|
-
|
|
19481
|
-
|
|
19549
|
+
const response = event.result.response ?? "";
|
|
19550
|
+
const turnReply = response.startsWith(this.#lastResultResponse) ? response.slice(this.#lastResultResponse.length) : response;
|
|
19551
|
+
const repliedThisTurn = Boolean(active.agentItem) || turnReply.trim() !== "";
|
|
19552
|
+
if (response)
|
|
19553
|
+
this.#lastResultResponse = response;
|
|
19554
|
+
if (turnReply.trim() !== "")
|
|
19555
|
+
this.#appendOrSyncAgentText(active, turnReply, false);
|
|
19482
19556
|
const safeTurnId = event.result.num_turns !== void 0 && event.result.num_turns !== null ? `turn:${event.result.num_turns}` : `turn:${this.#history.snapshot().length + 1}`;
|
|
19483
19557
|
const safeSessionId = convId || this.#nativeRef?.nativeSessionId || "unknown-session";
|
|
19484
19558
|
const nativeTurnRef = nativeTurnRefSchema.parse({
|
|
@@ -19508,13 +19582,17 @@ ${line}`).slice(-8e3);
|
|
|
19508
19582
|
} else {
|
|
19509
19583
|
const nativeError = event.result.error?.trim();
|
|
19510
19584
|
const errorDetail = nativeError || active.stderr;
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
|
|
19514
|
-
|
|
19515
|
-
|
|
19585
|
+
const error51 = normalizedProcessError(errorDetail, `Antigravity Turn ended with status ${event.result.status}`, nativeError !== void 0);
|
|
19586
|
+
if (repliedThisTurn && nativeError && this.#reportedEarlier(error51)) {
|
|
19587
|
+
this.#completeTurn(active, { status: "succeeded", checkpoint }, nativeTurnRef);
|
|
19588
|
+
} else {
|
|
19589
|
+
this.#completeTurn(active, { status: "failed", error: error51, checkpoint }, nativeTurnRef);
|
|
19590
|
+
}
|
|
19516
19591
|
}
|
|
19517
19592
|
}
|
|
19593
|
+
#reportedEarlier(error51) {
|
|
19594
|
+
return this.#history.snapshot().some(({ outcome }) => outcome.status === "failed" && outcome.error.code === error51.code && outcome.error.message === error51.message);
|
|
19595
|
+
}
|
|
19518
19596
|
#publishUsage(active, usage) {
|
|
19519
19597
|
active.latestUsage = { ...active.latestUsage ?? {}, ...usage };
|
|
19520
19598
|
this.#event({
|