@liberseek/boft-cli-win32-arm64 0.7.7 → 0.7.8
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 +16 -8
- package/app/console-web.js +141 -112
- package/app/desktop-controller.mjs +16 -2
- package/app/host-runtime.mjs +17 -8
- package/app/plugins/antigravity/plugin.mjs +5 -2
- package/app/plugins/claude-code/plugin.mjs +6 -2
- package/app/plugins/codebuddy/plugin.mjs +6 -2
- package/app/plugins/cursor-cli/plugin.mjs +5 -2
- package/app/plugins/deepseek-harness/plugin.mjs +6 -2
- package/app/plugins/grok/plugin.mjs +5 -2
- package/app/plugins/hermes/plugin.mjs +70 -10
- package/app/plugins/kimi-code/plugin.mjs +9 -3
- package/app/plugins/kiro-cli/plugin.mjs +16 -13
- package/app/plugins/muse/plugin.mjs +5 -2
- package/app/plugins/omp/plugin.mjs +34 -8
- package/app/plugins/opencode/plugin.mjs +9 -3
- package/app/plugins/pi/plugin.mjs +5 -2
- package/app/plugins/qoder/plugin.mjs +36 -3
- package/app/plugins/qoder-cn/plugin.mjs +36 -3
- package/app/plugins/workbuddy/plugin.mjs +5 -2
- package/app/renderer-extension.js +276 -193
- package/bin/boft.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +0 -0
- package/package.json +2 -2
|
@@ -15299,7 +15299,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15299
15299
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15300
15300
|
updateAvailable: external_exports.boolean(),
|
|
15301
15301
|
canUpdate: external_exports.boolean(),
|
|
15302
|
-
|
|
15302
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15303
|
+
message: external_exports.string().max(2048).optional(),
|
|
15304
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15305
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15303
15306
|
}).strict();
|
|
15304
15307
|
|
|
15305
15308
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -15594,7 +15597,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
15594
15597
|
}
|
|
15595
15598
|
});
|
|
15596
15599
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
15597
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15600
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15598
15601
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
15599
15602
|
currentVersion: updateSemanticVersionSchema,
|
|
15600
15603
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -50103,6 +50106,7 @@ function createClaudeInstallation(environment, command) {
|
|
|
50103
50106
|
updateAvailable: newerInstallationVersion(currentVersion, latestVersion),
|
|
50104
50107
|
canUpdate,
|
|
50105
50108
|
...!canUpdate ? {
|
|
50109
|
+
messageCode: blocked ? "claude-policy-restricted" : "original-installer",
|
|
50106
50110
|
message: blocked ? "Claude updates are restricted by the installation's settings or policy." : "Use the original installer or package manager for this Claude installation."
|
|
50107
50111
|
} : {}
|
|
50108
50112
|
};
|
|
@@ -15776,7 +15776,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15776
15776
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15777
15777
|
updateAvailable: external_exports.boolean(),
|
|
15778
15778
|
canUpdate: external_exports.boolean(),
|
|
15779
|
-
|
|
15779
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15780
|
+
message: external_exports.string().max(2048).optional(),
|
|
15781
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15782
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15780
15783
|
}).strict();
|
|
15781
15784
|
|
|
15782
15785
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -16071,7 +16074,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
16071
16074
|
}
|
|
16072
16075
|
});
|
|
16073
16076
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
16074
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16077
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16075
16078
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
16076
16079
|
currentVersion: updateSemanticVersionSchema,
|
|
16077
16080
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -24079,6 +24082,7 @@ function createCodeBuddyInstallation(environment) {
|
|
|
24079
24082
|
updateAvailable: !!npm && newerInstallationVersion(currentVersion, latestVersion),
|
|
24080
24083
|
canUpdate,
|
|
24081
24084
|
...!canUpdate ? {
|
|
24085
|
+
messageCode: "codebuddy-npm-required",
|
|
24082
24086
|
message: "Use CodeBuddy's native updater or original package manager for this installation. Latest-version checks here require an identified npm installation."
|
|
24083
24087
|
} : {}
|
|
24084
24088
|
};
|
|
@@ -28350,7 +28350,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28350
28350
|
latestVersion: external_exports.string().min(1).max(128),
|
|
28351
28351
|
updateAvailable: external_exports.boolean(),
|
|
28352
28352
|
canUpdate: external_exports.boolean(),
|
|
28353
|
-
|
|
28353
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
28354
|
+
message: external_exports.string().max(2048).optional(),
|
|
28355
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
28356
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
28354
28357
|
}).strict();
|
|
28355
28358
|
|
|
28356
28359
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -28645,7 +28648,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
28645
28648
|
}
|
|
28646
28649
|
});
|
|
28647
28650
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
28648
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
28651
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
28649
28652
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
28650
28653
|
currentVersion: updateSemanticVersionSchema,
|
|
28651
28654
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -19480,7 +19480,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
19480
19480
|
latestVersion: external_exports.string().min(1).max(128),
|
|
19481
19481
|
updateAvailable: external_exports.boolean(),
|
|
19482
19482
|
canUpdate: external_exports.boolean(),
|
|
19483
|
-
|
|
19483
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
19484
|
+
message: external_exports.string().max(2048).optional(),
|
|
19485
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
19486
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
19484
19487
|
}).strict();
|
|
19485
19488
|
|
|
19486
19489
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -19779,7 +19782,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
19779
19782
|
}
|
|
19780
19783
|
});
|
|
19781
19784
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
19782
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
19785
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
19783
19786
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
19784
19787
|
currentVersion: updateSemanticVersionSchema,
|
|
19785
19788
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -31903,6 +31906,7 @@ function createDeepSeekInstallation(environment, command) {
|
|
|
31903
31906
|
updateAvailable: newerInstallationVersion(currentVersion, latestVersion),
|
|
31904
31907
|
canUpdate,
|
|
31905
31908
|
...!canUpdate ? {
|
|
31909
|
+
messageCode: "deepseek-original-installer",
|
|
31906
31910
|
message: "Update with the original installer. Python, desktop, and project-local installations are not upgraded through global npm."
|
|
31907
31911
|
} : {}
|
|
31908
31912
|
};
|
|
@@ -19864,7 +19864,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
19864
19864
|
latestVersion: external_exports.string().min(1).max(128),
|
|
19865
19865
|
updateAvailable: external_exports.boolean(),
|
|
19866
19866
|
canUpdate: external_exports.boolean(),
|
|
19867
|
-
|
|
19867
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
19868
|
+
message: external_exports.string().max(2048).optional(),
|
|
19869
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
19870
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
19868
19871
|
}).strict();
|
|
19869
19872
|
|
|
19870
19873
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -20159,7 +20162,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
20159
20162
|
}
|
|
20160
20163
|
});
|
|
20161
20164
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
20162
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
20165
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
20163
20166
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
20164
20167
|
currentVersion: updateSemanticVersionSchema,
|
|
20165
20168
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -15656,7 +15656,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15656
15656
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15657
15657
|
updateAvailable: external_exports.boolean(),
|
|
15658
15658
|
canUpdate: external_exports.boolean(),
|
|
15659
|
-
|
|
15659
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15660
|
+
message: external_exports.string().max(2048).optional(),
|
|
15661
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15662
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15660
15663
|
}).strict();
|
|
15661
15664
|
|
|
15662
15665
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -15951,7 +15954,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
15951
15954
|
}
|
|
15952
15955
|
});
|
|
15953
15956
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
15954
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15957
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15955
15958
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
15956
15959
|
currentVersion: updateSemanticVersionSchema,
|
|
15957
15960
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -20855,8 +20858,9 @@ var HermesAcpTransport = class {
|
|
|
20855
20858
|
};
|
|
20856
20859
|
|
|
20857
20860
|
// dist/hermes-inventory.js
|
|
20858
|
-
import { spawn as spawn2 } from "node:child_process";
|
|
20861
|
+
import { execFile as execFile2, spawn as spawn2 } from "node:child_process";
|
|
20859
20862
|
import { access, readFile } from "node:fs/promises";
|
|
20863
|
+
import { promisify } from "node:util";
|
|
20860
20864
|
import path5 from "node:path";
|
|
20861
20865
|
|
|
20862
20866
|
// dist/hermes-models.js
|
|
@@ -21016,10 +21020,18 @@ for row in payload.get("providers") or []:
|
|
|
21016
21020
|
current_provider = str(getattr(context, "current_provider", "") or "").strip()
|
|
21017
21021
|
current_model = str(getattr(context, "current_model", "") or "").strip()
|
|
21018
21022
|
current_model_id = current_provider + ":" + current_model if current_provider and current_model else None
|
|
21019
|
-
|
|
21023
|
+
from hermes_cli import main as native_main
|
|
21024
|
+
check_configured = getattr(native_main, "_has_any_provider_configured", None)
|
|
21025
|
+
configured = bool(check_configured()) if callable(check_configured) else None
|
|
21026
|
+
print("codexhost_inventory=" + json.dumps({"models": rows, "currentModelId": current_model_id, "configured": configured}))
|
|
21020
21027
|
`;
|
|
21021
21028
|
var HermesInventoryError = class extends Error {
|
|
21022
21029
|
};
|
|
21030
|
+
var HermesConfigurationRequiredError = class extends HermesInventoryError {
|
|
21031
|
+
constructor() {
|
|
21032
|
+
super("Hermes has no configured Provider or API key. Run `hermes setup`, then check the connection again.");
|
|
21033
|
+
}
|
|
21034
|
+
};
|
|
21023
21035
|
var HermesInventoryTimeoutError = class extends HermesInventoryError {
|
|
21024
21036
|
constructor() {
|
|
21025
21037
|
super("Hermes model inventory probe timed out");
|
|
@@ -21052,9 +21064,9 @@ function inventoryPythonCandidates(hermesExecutable, platform = process.platform
|
|
|
21052
21064
|
candidates.push(pathApi.resolve(executableDirectory, "../../.hermes/hermes-agent", relativePython));
|
|
21053
21065
|
return [...new Set(candidates)];
|
|
21054
21066
|
}
|
|
21055
|
-
function runProbe(pythonExecutable, timeoutMs, environment) {
|
|
21067
|
+
function runProbe(pythonExecutable, timeoutMs, environment, arguments_ = ["-I", "-c", INVENTORY_PROBE_SCRIPT]) {
|
|
21056
21068
|
return new Promise((resolve, reject) => {
|
|
21057
|
-
const child = spawn2(pythonExecutable,
|
|
21069
|
+
const child = spawn2(pythonExecutable, arguments_, {
|
|
21058
21070
|
cwd: path5.dirname(pythonExecutable),
|
|
21059
21071
|
env: { ...process.env, ...environment },
|
|
21060
21072
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -21082,10 +21094,12 @@ function runProbe(pythonExecutable, timeoutMs, environment) {
|
|
|
21082
21094
|
return;
|
|
21083
21095
|
}
|
|
21084
21096
|
try {
|
|
21085
|
-
const
|
|
21097
|
+
const payload = stdout.split(/\r?\n/).find((line) => line.startsWith("codexhost_inventory="));
|
|
21098
|
+
const parsed2 = JSON.parse(payload ? payload.slice("codexhost_inventory=".length) : stdout.trim());
|
|
21086
21099
|
const models = (parsed2.models ?? []).filter((model) => typeof model?.modelId === "string" && model.modelId.length > 0);
|
|
21087
21100
|
resolve({
|
|
21088
21101
|
models,
|
|
21102
|
+
...typeof parsed2.configured === "boolean" ? { configured: parsed2.configured } : {},
|
|
21089
21103
|
currentModelId: typeof parsed2.currentModelId === "string" && parsed2.currentModelId.length > 0 ? parsed2.currentModelId : null
|
|
21090
21104
|
});
|
|
21091
21105
|
} catch {
|
|
@@ -21096,6 +21110,36 @@ function runProbe(pythonExecutable, timeoutMs, environment) {
|
|
|
21096
21110
|
}
|
|
21097
21111
|
async function readHermesModelInventory(hermesExecutable, timeoutMs = 2e4, options = {}) {
|
|
21098
21112
|
const platform = options.platform ?? process.platform;
|
|
21113
|
+
let command = null;
|
|
21114
|
+
try {
|
|
21115
|
+
const environment = { ...process.env, ...options.environment };
|
|
21116
|
+
const invocation = commandInvocation(hermesExecutable, [
|
|
21117
|
+
"--print-runtime-command",
|
|
21118
|
+
"--module",
|
|
21119
|
+
"timeit",
|
|
21120
|
+
"--",
|
|
21121
|
+
"-n",
|
|
21122
|
+
"1",
|
|
21123
|
+
"-r",
|
|
21124
|
+
"1",
|
|
21125
|
+
"-s",
|
|
21126
|
+
`exec(${JSON.stringify(INVENTORY_PROBE_SCRIPT)})`,
|
|
21127
|
+
"pass"
|
|
21128
|
+
], environment, platform);
|
|
21129
|
+
const { stdout } = await promisify(execFile2)(invocation.command, invocation.arguments, {
|
|
21130
|
+
env: environment,
|
|
21131
|
+
timeout: timeoutMs,
|
|
21132
|
+
maxBuffer: 64 * 1024,
|
|
21133
|
+
windowsHide: true,
|
|
21134
|
+
windowsVerbatimArguments: invocation.windowsVerbatimArguments
|
|
21135
|
+
});
|
|
21136
|
+
const value = JSON.parse(stdout.trim());
|
|
21137
|
+
if (Array.isArray(value) && value.length > 0 && value.every((entry) => typeof entry === "string"))
|
|
21138
|
+
command = value;
|
|
21139
|
+
} catch {
|
|
21140
|
+
}
|
|
21141
|
+
if (command?.[0])
|
|
21142
|
+
return runProbe(command[0], timeoutMs, options.environment, command.slice(1));
|
|
21099
21143
|
const candidates = [
|
|
21100
21144
|
await venvPythonFromShim(hermesExecutable, platform) ?? "",
|
|
21101
21145
|
...inventoryPythonCandidates(hermesExecutable, platform)
|
|
@@ -23321,12 +23365,12 @@ var HermesGatewayHistory = class {
|
|
|
23321
23365
|
};
|
|
23322
23366
|
|
|
23323
23367
|
// dist/gateway-configuration.js
|
|
23324
|
-
import { execFile as
|
|
23325
|
-
import { promisify } from "node:util";
|
|
23368
|
+
import { execFile as execFile3 } from "node:child_process";
|
|
23369
|
+
import { promisify as promisify2 } from "node:util";
|
|
23326
23370
|
async function resolveGatewayModel(transport, modelId) {
|
|
23327
23371
|
if (/\s/u.test(modelId) || modelId.startsWith("-"))
|
|
23328
23372
|
throw new Error("Invalid Hermes Model identifier");
|
|
23329
|
-
const result = await
|
|
23373
|
+
const result = await promisify2(execFile3)(transport.python, [
|
|
23330
23374
|
"-I",
|
|
23331
23375
|
"-c",
|
|
23332
23376
|
"import json,sys\nfrom hermes_cli.models import parse_model_input\np,m=parse_model_input(sys.argv[1], '')\nprint(json.dumps({'provider':p,'model':m}))",
|
|
@@ -24043,6 +24087,12 @@ var HermesAdapter = class {
|
|
|
24043
24087
|
this.#inventoryRead = readHermesModelInventory(executable, 2e4, {
|
|
24044
24088
|
...this.#options.environment ? { environment: this.#options.environment } : {}
|
|
24045
24089
|
}).then((inventory) => {
|
|
24090
|
+
if (inventory.configured === false) {
|
|
24091
|
+
this.#lastInventory = null;
|
|
24092
|
+
this.#inspectionCache = null;
|
|
24093
|
+
this.#inspectionCacheScope = null;
|
|
24094
|
+
throw new HermesConfigurationRequiredError();
|
|
24095
|
+
}
|
|
24046
24096
|
if (!this.#closed)
|
|
24047
24097
|
this.#lastInventory = inventory;
|
|
24048
24098
|
return inventory;
|
|
@@ -24364,6 +24414,12 @@ var HermesAdapter = class {
|
|
|
24364
24414
|
}
|
|
24365
24415
|
};
|
|
24366
24416
|
function inspectionFromTransportError(error51) {
|
|
24417
|
+
if (error51 instanceof HermesConfigurationRequiredError) {
|
|
24418
|
+
return {
|
|
24419
|
+
status: "unavailable",
|
|
24420
|
+
error: { code: "configurationRequired", message: error51.message, retryable: false }
|
|
24421
|
+
};
|
|
24422
|
+
}
|
|
24367
24423
|
if (error51 instanceof HermesTransportError) {
|
|
24368
24424
|
if (error51.kind === "notInstalled") {
|
|
24369
24425
|
return {
|
|
@@ -24419,6 +24475,7 @@ function createHermesInstallation(environment, command) {
|
|
|
24419
24475
|
latestVersion: "Unknown",
|
|
24420
24476
|
updateAvailable: false,
|
|
24421
24477
|
canUpdate: false,
|
|
24478
|
+
messageCode: "hermes-update-plan-unavailable",
|
|
24422
24479
|
message: "This Hermes release does not expose a safe update plan. Use the original installer."
|
|
24423
24480
|
};
|
|
24424
24481
|
const plan = await run(["update", "--plan"]);
|
|
@@ -24430,6 +24487,7 @@ function createHermesInstallation(environment, command) {
|
|
|
24430
24487
|
latestVersion: "Unknown",
|
|
24431
24488
|
updateAvailable: false,
|
|
24432
24489
|
canUpdate: false,
|
|
24490
|
+
messageCode: "hermes-externally-managed",
|
|
24433
24491
|
message: "This Hermes installation is managed externally. Update it through its desktop app, container, or original package manager."
|
|
24434
24492
|
};
|
|
24435
24493
|
const output = await run(["update", "--check"]);
|
|
@@ -24446,6 +24504,8 @@ function createHermesInstallation(environment, command) {
|
|
|
24446
24504
|
latestVersion,
|
|
24447
24505
|
updateAvailable,
|
|
24448
24506
|
canUpdate,
|
|
24507
|
+
...updateAvailable && !release ? { latestVersionKind: "tracking-branch" } : {},
|
|
24508
|
+
messageCode: canUpdate ? "hermes-update-channel" : "hermes-manual-update",
|
|
24449
24509
|
message: canUpdate ? "Uses Hermes's configured update channel. Gateway restarts are deferred; existing processes keep their running code." : "Use the native updater manually. Safe non-interactive updates require a clean source checkout, commit identity, and Gateway restart deferral."
|
|
24450
24510
|
};
|
|
24451
24511
|
},
|
|
@@ -15781,7 +15781,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15781
15781
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15782
15782
|
updateAvailable: external_exports.boolean(),
|
|
15783
15783
|
canUpdate: external_exports.boolean(),
|
|
15784
|
-
|
|
15784
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15785
|
+
message: external_exports.string().max(2048).optional(),
|
|
15786
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15787
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15785
15788
|
}).strict();
|
|
15786
15789
|
|
|
15787
15790
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -16076,7 +16079,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
16076
16079
|
}
|
|
16077
16080
|
});
|
|
16078
16081
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
16079
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16082
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16080
16083
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
16081
16084
|
currentVersion: updateSemanticVersionSchema,
|
|
16082
16085
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -24890,7 +24893,10 @@ function createKimiInstallation(environment) {
|
|
|
24890
24893
|
latestVersion,
|
|
24891
24894
|
updateAvailable: newerInstallationVersion(currentVersion, latestVersion),
|
|
24892
24895
|
canUpdate,
|
|
24893
|
-
...!canUpdate ? {
|
|
24896
|
+
...!canUpdate ? {
|
|
24897
|
+
messageCode: "original-installer",
|
|
24898
|
+
message: "Use the original installer to update this Kimi installation"
|
|
24899
|
+
} : {}
|
|
24894
24900
|
};
|
|
24895
24901
|
},
|
|
24896
24902
|
async update(state) {
|
|
@@ -15640,7 +15640,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15640
15640
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15641
15641
|
updateAvailable: external_exports.boolean(),
|
|
15642
15642
|
canUpdate: external_exports.boolean(),
|
|
15643
|
-
|
|
15643
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15644
|
+
message: external_exports.string().max(2048).optional(),
|
|
15645
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15646
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15644
15647
|
}).strict();
|
|
15645
15648
|
|
|
15646
15649
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -15935,7 +15938,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
15935
15938
|
}
|
|
15936
15939
|
});
|
|
15937
15940
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
15938
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15941
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15939
15942
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
15940
15943
|
currentVersion: updateSemanticVersionSchema,
|
|
15941
15944
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -20650,18 +20653,19 @@ function isRecord5(value) {
|
|
|
20650
20653
|
function errorText(error51) {
|
|
20651
20654
|
return error51 instanceof Error ? error51.message : String(error51);
|
|
20652
20655
|
}
|
|
20653
|
-
function classifyStartupError(error51) {
|
|
20654
|
-
if (error51 instanceof KiroTransportError)
|
|
20655
|
-
return error51;
|
|
20656
|
+
function classifyStartupError(error51, stderr = "") {
|
|
20656
20657
|
if (error51 instanceof KiroExecutableError) {
|
|
20657
20658
|
return new KiroTransportError("notInstalled", error51.message, { cause: error51 });
|
|
20658
20659
|
}
|
|
20659
|
-
const text = errorText(error51)
|
|
20660
|
-
|
|
20661
|
-
|
|
20660
|
+
const text = `${errorText(error51)}
|
|
20661
|
+
${stderr}`.toLowerCase();
|
|
20662
|
+
if (text.includes("auth_required") || text.includes("authentication") || text.includes("not logged in") || text.includes("not log in") || text.includes("sign in") || text.includes("unauthorized")) {
|
|
20663
|
+
return new KiroTransportError("authenticationRequired", "Kiro CLI authentication is required (run `kiro-cli login`)", {
|
|
20662
20664
|
cause: error51
|
|
20663
20665
|
});
|
|
20664
20666
|
}
|
|
20667
|
+
if (error51 instanceof KiroTransportError)
|
|
20668
|
+
return error51;
|
|
20665
20669
|
return new KiroTransportError("unavailable", "Kiro CLI could not start", { cause: error51 });
|
|
20666
20670
|
}
|
|
20667
20671
|
var KiroRequestTimeoutError = class extends KiroTransportError {
|
|
@@ -20771,9 +20775,8 @@ var KiroAcpTransport = class {
|
|
|
20771
20775
|
});
|
|
20772
20776
|
return { ...initialize, catalog: parseKiroCliModels(JSON.parse(stdout)) };
|
|
20773
20777
|
} catch (error51) {
|
|
20774
|
-
const classified = classifyStartupError(error51);
|
|
20775
20778
|
await this.close().catch(() => void 0);
|
|
20776
|
-
throw
|
|
20779
|
+
throw classifyStartupError(error51, this.#stderrTail);
|
|
20777
20780
|
}
|
|
20778
20781
|
}
|
|
20779
20782
|
async open(input) {
|
|
@@ -20861,9 +20864,8 @@ var KiroAcpTransport = class {
|
|
|
20861
20864
|
replay
|
|
20862
20865
|
};
|
|
20863
20866
|
} catch (error51) {
|
|
20864
|
-
const classified = classifyStartupError(error51);
|
|
20865
20867
|
await this.close().catch(() => void 0);
|
|
20866
|
-
throw
|
|
20868
|
+
throw classifyStartupError(error51, this.#stderrTail);
|
|
20867
20869
|
}
|
|
20868
20870
|
}
|
|
20869
20871
|
async setConfigOption(configId, value) {
|
|
@@ -22856,7 +22858,7 @@ var KiroAdapter = class {
|
|
|
22856
22858
|
status: "error",
|
|
22857
22859
|
error: {
|
|
22858
22860
|
code: "authenticationRequired",
|
|
22859
|
-
message: "Kiro CLI authentication is required",
|
|
22861
|
+
message: "Kiro CLI authentication is required (run `kiro-cli login`)",
|
|
22860
22862
|
retryable: false
|
|
22861
22863
|
}
|
|
22862
22864
|
};
|
|
@@ -23903,6 +23905,7 @@ function createKiroInstallation(environment, command) {
|
|
|
23903
23905
|
latestVersion: "Unknown",
|
|
23904
23906
|
updateAvailable: false,
|
|
23905
23907
|
canUpdate: false,
|
|
23908
|
+
messageCode: "kiro-native-updater",
|
|
23906
23909
|
message: "Use Kiro CLI's original installer or native updater to check for and install updates."
|
|
23907
23910
|
};
|
|
23908
23911
|
};
|
|
@@ -15549,7 +15549,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15549
15549
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15550
15550
|
updateAvailable: external_exports.boolean(),
|
|
15551
15551
|
canUpdate: external_exports.boolean(),
|
|
15552
|
-
|
|
15552
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15553
|
+
message: external_exports.string().max(2048).optional(),
|
|
15554
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15555
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15553
15556
|
}).strict();
|
|
15554
15557
|
|
|
15555
15558
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -15844,7 +15847,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
15844
15847
|
}
|
|
15845
15848
|
});
|
|
15846
15849
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
15847
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15850
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
15848
15851
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
15849
15852
|
currentVersion: updateSemanticVersionSchema,
|
|
15850
15853
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -16222,7 +16222,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16222
16222
|
latestVersion: external_exports.string().min(1).max(128),
|
|
16223
16223
|
updateAvailable: external_exports.boolean(),
|
|
16224
16224
|
canUpdate: external_exports.boolean(),
|
|
16225
|
-
|
|
16225
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
16226
|
+
message: external_exports.string().max(2048).optional(),
|
|
16227
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
16228
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
16226
16229
|
}).strict();
|
|
16227
16230
|
|
|
16228
16231
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -16517,7 +16520,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
16517
16520
|
}
|
|
16518
16521
|
});
|
|
16519
16522
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
16520
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16523
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16521
16524
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
16522
16525
|
currentVersion: updateSemanticVersionSchema,
|
|
16523
16526
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -17837,6 +17840,10 @@ var OmpRpcSession = class {
|
|
|
17837
17840
|
#manualCompaction = null;
|
|
17838
17841
|
#stderrTail = "";
|
|
17839
17842
|
#frameDecoder = new OmpFrameDecoder();
|
|
17843
|
+
#startupFaultResolve = null;
|
|
17844
|
+
#startupFault = new Promise((resolve) => {
|
|
17845
|
+
this.#startupFaultResolve = resolve;
|
|
17846
|
+
});
|
|
17840
17847
|
#readyResolve = null;
|
|
17841
17848
|
#ready = new Promise((resolve) => {
|
|
17842
17849
|
this.#readyResolve = resolve;
|
|
@@ -17908,10 +17915,20 @@ var OmpRpcSession = class {
|
|
|
17908
17915
|
}),
|
|
17909
17916
|
new Promise((_resolve, reject) => setTimeout(() => reject(new Error("Omp RPC start timed out")), this.#options.commandTimeoutMs))
|
|
17910
17917
|
]);
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17918
|
+
let readyTimeout;
|
|
17919
|
+
try {
|
|
17920
|
+
await Promise.race([
|
|
17921
|
+
this.#ready,
|
|
17922
|
+
this.#startupFault.then((error51) => {
|
|
17923
|
+
throw error51;
|
|
17924
|
+
}),
|
|
17925
|
+
new Promise((_resolve, reject) => {
|
|
17926
|
+
readyTimeout = setTimeout(() => reject(new Error("Omp RPC ready signal timed out")), this.#options.commandTimeoutMs);
|
|
17927
|
+
})
|
|
17928
|
+
]);
|
|
17929
|
+
} finally {
|
|
17930
|
+
clearTimeout(readyTimeout);
|
|
17931
|
+
}
|
|
17915
17932
|
await this.#send("negotiate_protocol", { protocolVersion: 2 }).catch(() => void 0);
|
|
17916
17933
|
if (this.#options.subscribeSubagentEvents !== false) {
|
|
17917
17934
|
await this.#send("set_subagent_subscription", { level: "events" }).catch(() => void 0);
|
|
@@ -18804,6 +18821,8 @@ var OmpRpcSession = class {
|
|
|
18804
18821
|
if (this.#closed || this.#failed)
|
|
18805
18822
|
return;
|
|
18806
18823
|
this.#failed = true;
|
|
18824
|
+
this.#startupFaultResolve?.(error51);
|
|
18825
|
+
this.#startupFaultResolve = null;
|
|
18807
18826
|
this.#rejectAll(error51);
|
|
18808
18827
|
this.#options.onFault?.(error51);
|
|
18809
18828
|
}
|
|
@@ -20823,7 +20842,11 @@ var OmpAdapter = class {
|
|
|
20823
20842
|
};
|
|
20824
20843
|
} catch (error51) {
|
|
20825
20844
|
await transport.close().catch(() => void 0);
|
|
20826
|
-
const normalized =
|
|
20845
|
+
const normalized = stage === "startup" && /No models available\.\s*Use \/login or set an API key environment variable\./i.test(transport.stderrTail ?? "") ? {
|
|
20846
|
+
code: "configurationRequired",
|
|
20847
|
+
message: "No models are configured for use in Oh My Pi. Configure a Provider and its API key or models.yml, then run `omp` and use `/model` to select a model. For Providers that support it, `/login` configures Provider authentication, not an Oh My Pi account.",
|
|
20848
|
+
retryable: false
|
|
20849
|
+
} : normalizedError(error51, "unavailable");
|
|
20827
20850
|
return {
|
|
20828
20851
|
status: normalized.code === "notInstalled" ? "notInstalled" : "error",
|
|
20829
20852
|
error: {
|
|
@@ -21049,7 +21072,10 @@ function createOmpInstallation(environment, command) {
|
|
|
21049
21072
|
latestVersion,
|
|
21050
21073
|
updateAvailable: newerInstallationVersion(currentVersion, latestVersion),
|
|
21051
21074
|
canUpdate,
|
|
21052
|
-
...!canUpdate ? {
|
|
21075
|
+
...!canUpdate ? {
|
|
21076
|
+
messageCode: "original-installer",
|
|
21077
|
+
message: "Update this installation with its original package manager or launcher."
|
|
21078
|
+
} : {}
|
|
21053
21079
|
};
|
|
21054
21080
|
},
|
|
21055
21081
|
async update() {
|
|
@@ -15781,7 +15781,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15781
15781
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15782
15782
|
updateAvailable: external_exports.boolean(),
|
|
15783
15783
|
canUpdate: external_exports.boolean(),
|
|
15784
|
-
|
|
15784
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15785
|
+
message: external_exports.string().max(2048).optional(),
|
|
15786
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15787
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15785
15788
|
}).strict();
|
|
15786
15789
|
|
|
15787
15790
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -16076,7 +16079,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
16076
16079
|
}
|
|
16077
16080
|
});
|
|
16078
16081
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
16079
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16082
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16080
16083
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
16081
16084
|
currentVersion: updateSemanticVersionSchema,
|
|
16082
16085
|
installation: updateInstallationSchema.nullable(),
|
|
@@ -27442,7 +27445,10 @@ function createOpenCodeInstallation(environment, command) {
|
|
|
27442
27445
|
latestVersion,
|
|
27443
27446
|
updateAvailable: newerInstallationVersion(currentVersion, latestVersion),
|
|
27444
27447
|
canUpdate,
|
|
27445
|
-
...!canUpdate ? {
|
|
27448
|
+
...!canUpdate ? {
|
|
27449
|
+
messageCode: "original-installer",
|
|
27450
|
+
message: "Use the original package manager to update this OpenCode installation."
|
|
27451
|
+
} : {}
|
|
27446
27452
|
};
|
|
27447
27453
|
},
|
|
27448
27454
|
async update(state) {
|
|
@@ -15702,7 +15702,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15702
15702
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15703
15703
|
updateAvailable: external_exports.boolean(),
|
|
15704
15704
|
canUpdate: external_exports.boolean(),
|
|
15705
|
-
|
|
15705
|
+
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15706
|
+
message: external_exports.string().max(2048).optional(),
|
|
15707
|
+
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15708
|
+
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15706
15709
|
}).strict();
|
|
15707
15710
|
|
|
15708
15711
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
@@ -15997,7 +16000,7 @@ var updateStatusSchema = external_exports.strictObject({
|
|
|
15997
16000
|
}
|
|
15998
16001
|
});
|
|
15999
16002
|
var updateEmptyParamsSchema = external_exports.strictObject({});
|
|
16000
|
-
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/LiberSeek\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16003
|
+
var githubReleaseNotesUrlSchema = external_exports.string().max(300).regex(/^https:\/\/github\.com\/(LiberSeek|LIBERSEEK)\/BOFT-CLI\/releases\/tag\/v[0-9A-Za-z.+-]+$/u, "release notes URL must identify a codexhost GitHub Release");
|
|
16001
16004
|
var updateCheckResultSchema = external_exports.strictObject({
|
|
16002
16005
|
currentVersion: updateSemanticVersionSchema,
|
|
16003
16006
|
installation: updateInstallationSchema.nullable(),
|