nexus-agents 3.5.5 → 3.6.0
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/dist/{chunk-URTX43PS.js → chunk-4U2CQYZY.js} +2 -2
- package/dist/{chunk-W6BGGXFL.js → chunk-LOS63AKL.js} +2 -2
- package/dist/{chunk-SRCFMAN5.js → chunk-Y33P5D4B.js} +20 -4
- package/dist/chunk-Y33P5D4B.js.map +1 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.js +30 -5
- package/dist/cli.js.map +1 -1
- package/dist/doctor-live-TXBH4FFG.js +136 -0
- package/dist/doctor-live-TXBH4FFG.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/{setup-command-XGW7X7RX.js → setup-command-6C4RZ3ZI.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-SRCFMAN5.js.map +0 -1
- /package/dist/{chunk-URTX43PS.js.map → chunk-4U2CQYZY.js.map} +0 -0
- /package/dist/{chunk-W6BGGXFL.js.map → chunk-LOS63AKL.js.map} +0 -0
- /package/dist/{setup-command-XGW7X7RX.js.map → setup-command-6C4RZ3ZI.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y33P5D4B.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EXPERTS
|
|
14
14
|
} from "./chunk-YPNQPT2F.js";
|
|
@@ -2001,4 +2001,4 @@ export {
|
|
|
2001
2001
|
setupCommand,
|
|
2002
2002
|
setupCommandAsync
|
|
2003
2003
|
};
|
|
2004
|
-
//# sourceMappingURL=chunk-
|
|
2004
|
+
//# sourceMappingURL=chunk-4U2CQYZY.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
24
24
|
clampTaskTtl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Y33P5D4B.js";
|
|
26
26
|
import {
|
|
27
27
|
executeExpert
|
|
28
28
|
} from "./chunk-56GTITUT.js";
|
|
@@ -54255,4 +54255,4 @@ export {
|
|
|
54255
54255
|
shutdownFeedbackSubscriber,
|
|
54256
54256
|
createEventBusBridge
|
|
54257
54257
|
};
|
|
54258
|
-
//# sourceMappingURL=chunk-
|
|
54258
|
+
//# sourceMappingURL=chunk-LOS63AKL.js.map
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
} from "./chunk-OQLFRJCW.js";
|
|
50
50
|
|
|
51
51
|
// src/version.ts
|
|
52
|
-
var VERSION = true ? "3.
|
|
52
|
+
var VERSION = true ? "3.6.0" : "dev";
|
|
53
53
|
|
|
54
54
|
// src/config/schemas-core.ts
|
|
55
55
|
import { z } from "zod";
|
|
@@ -1300,6 +1300,7 @@ function checkScratchSpace(root = getNexusTmpDir(), statfs = statfsSync, label =
|
|
|
1300
1300
|
message: `${formatBytes(freeBytes)} free of ${formatBytes(totalBytes)} (${String(percentUsed)}% used)`
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
1303
|
+
var SEVERITY_ORDER = ["ok", "warn", "critical"];
|
|
1303
1304
|
function defaultRoots() {
|
|
1304
1305
|
return [
|
|
1305
1306
|
{ label: "nexus", root: getNexusTmpDir() },
|
|
@@ -1325,6 +1326,12 @@ function checkScratchFilesystems(options = {}) {
|
|
|
1325
1326
|
}
|
|
1326
1327
|
return checks;
|
|
1327
1328
|
}
|
|
1329
|
+
function worstSeverity(checks) {
|
|
1330
|
+
return checks.reduce(
|
|
1331
|
+
(worst, check) => SEVERITY_ORDER.indexOf(check.severity) > SEVERITY_ORDER.indexOf(worst) ? check.severity : worst,
|
|
1332
|
+
"ok"
|
|
1333
|
+
);
|
|
1334
|
+
}
|
|
1328
1335
|
function formatScratchFilesystems(checks) {
|
|
1329
1336
|
if (checks.length === 0) {
|
|
1330
1337
|
return " \u26A0 Scratch space: no scratch filesystem could be identified";
|
|
@@ -2228,6 +2235,9 @@ function checkSandbox() {
|
|
|
2228
2235
|
function checkVoterTransport() {
|
|
2229
2236
|
return { configured: readOpenAICompatEnv() !== null };
|
|
2230
2237
|
}
|
|
2238
|
+
function isAllHealthy(input) {
|
|
2239
|
+
return input.nodeSupported && input.hasAuthMethod && input.mcpServerReady && worstSeverity(input.scratchSpace) !== "critical" && input.clis.every((c) => c.installed && c.authenticated && c.versionStatus !== "unsupported");
|
|
2240
|
+
}
|
|
2231
2241
|
async function runDoctor() {
|
|
2232
2242
|
const clis = await Promise.all([
|
|
2233
2243
|
checkCli("claude"),
|
|
@@ -2250,7 +2260,13 @@ async function runDoctor() {
|
|
|
2250
2260
|
const voterTransport = checkVoterTransport();
|
|
2251
2261
|
const scratchSpace = checkScratchFilesystems();
|
|
2252
2262
|
const hasAuthMethod = apiKeys.some((k) => k.configured) || clis.some((c) => c.installed && c.authenticated);
|
|
2253
|
-
const allHealthy =
|
|
2263
|
+
const allHealthy = isAllHealthy({
|
|
2264
|
+
nodeSupported: nodeVersion.supported,
|
|
2265
|
+
hasAuthMethod,
|
|
2266
|
+
mcpServerReady,
|
|
2267
|
+
scratchSpace,
|
|
2268
|
+
clis
|
|
2269
|
+
});
|
|
2254
2270
|
return {
|
|
2255
2271
|
clis,
|
|
2256
2272
|
nodeVersion,
|
|
@@ -2287,7 +2303,7 @@ async function runDoctorFix(result) {
|
|
|
2287
2303
|
writeLine2("\u2500".repeat(40));
|
|
2288
2304
|
let fixCount = 0;
|
|
2289
2305
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2290
|
-
const { runSetup } = await import("./setup-command-
|
|
2306
|
+
const { runSetup } = await import("./setup-command-6C4RZ3ZI.js");
|
|
2291
2307
|
const setupResult = runSetup({
|
|
2292
2308
|
skipMcp: true,
|
|
2293
2309
|
skipRules: true,
|
|
@@ -2400,4 +2416,4 @@ export {
|
|
|
2400
2416
|
startStdioServer,
|
|
2401
2417
|
closeServer
|
|
2402
2418
|
};
|
|
2403
|
-
//# sourceMappingURL=chunk-
|
|
2419
|
+
//# sourceMappingURL=chunk-Y33P5D4B.js.map
|