nexus-agents 3.5.5 → 3.5.6

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.
@@ -22,7 +22,7 @@ import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  DEFAULT_TOOL_RATE_LIMITS,
24
24
  clampTaskTtl
25
- } from "./chunk-SRCFMAN5.js";
25
+ } from "./chunk-V3YRYNAA.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-W6BGGXFL.js.map
54258
+ //# sourceMappingURL=chunk-JQHK34AF.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.5.5" : "dev";
52
+ var VERSION = true ? "3.5.6" : "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 = nodeVersion.supported && hasAuthMethod && mcpServerReady && clis.every((c) => c.installed && c.authenticated && c.versionStatus !== "unsupported");
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-XGW7X7RX.js");
2306
+ const { runSetup } = await import("./setup-command-7I6EZWB7.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-SRCFMAN5.js.map
2419
+ //# sourceMappingURL=chunk-V3YRYNAA.js.map