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/cli.js CHANGED
@@ -18,7 +18,7 @@ import "./chunk-CFJV3CEA.js";
18
18
  import {
19
19
  setupCommandAsync,
20
20
  verifyCommand
21
- } from "./chunk-URTX43PS.js";
21
+ } from "./chunk-4U2CQYZY.js";
22
22
  import "./chunk-KJY3WZJY.js";
23
23
  import {
24
24
  AuthHandler,
@@ -139,7 +139,7 @@ import {
139
139
  validateCommand,
140
140
  validateWorkflow,
141
141
  wrapInMarkdownFence
142
- } from "./chunk-W6BGGXFL.js";
142
+ } from "./chunk-LOS63AKL.js";
143
143
  import "./chunk-WSFTWS2A.js";
144
144
  import "./chunk-HFOQKCD2.js";
145
145
  import "./chunk-BQTMMLQQ.js";
@@ -166,7 +166,7 @@ import {
166
166
  loadConfig,
167
167
  runDoctor,
168
168
  validateNexusEnv
169
- } from "./chunk-SRCFMAN5.js";
169
+ } from "./chunk-Y33P5D4B.js";
170
170
  import {
171
171
  buildOpenAICompatAdapters,
172
172
  readOpenAICompatEnv
@@ -3631,6 +3631,11 @@ var PARSE_ARGS_CONFIG = {
3631
3631
  type: "boolean",
3632
3632
  default: false
3633
3633
  },
3634
+ // Doctor live readiness probe (#4376)
3635
+ live: {
3636
+ type: "boolean",
3637
+ default: false
3638
+ },
3634
3639
  // Registry command options (#2179)
3635
3640
  json: {
3636
3641
  type: "boolean",
@@ -20134,9 +20139,20 @@ var WORKFLOW_HELP = {
20134
20139
  };
20135
20140
  var DOCTOR_HELP = {
20136
20141
  command: "doctor",
20137
- examples: ["nexus-agents doctor", "nexus-agents doctor --deep", "nexus-agents doctor --fix"],
20142
+ examples: [
20143
+ "nexus-agents doctor",
20144
+ "nexus-agents doctor --live",
20145
+ "nexus-agents doctor --deep",
20146
+ "nexus-agents doctor --fix"
20147
+ ],
20138
20148
  flags: [
20139
- { flag: "--deep", description: "Run deep health checks (adapter connectivity)" },
20149
+ // #4376: the previous wording said "adapter connectivity", which this flag
20150
+ // does not check — it reports learning-loop and routing health.
20151
+ { flag: "--deep", description: "Learning-loop, data-sufficiency and routing diagnostics" },
20152
+ {
20153
+ flag: "--live",
20154
+ description: "Verify each adapter actually serves a completion (spends quota)"
20155
+ },
20140
20156
  { flag: "--fix", description: "Auto-fix correctable issues (data dirs, config)" },
20141
20157
  { flag: "--verbose", description: "Show detailed check output" }
20142
20158
  ]
@@ -20746,6 +20762,14 @@ async function handleDoctorCommand(args) {
20746
20762
  const diag = runDeepDiagnostics2();
20747
20763
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
20748
20764
  }
20765
+ if (args.options.live) {
20766
+ const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-TXBH4FFG.js");
20767
+ const report = await runLiveReadiness();
20768
+ process.stdout.write(formatLiveReadiness(report) + "\n");
20769
+ if (report.some((r) => r.levels.serves.status === "failed")) {
20770
+ return cliExitFromStatus(1);
20771
+ }
20772
+ }
20749
20773
  return cliExitFromStatus(exitCode);
20750
20774
  }
20751
20775
  function validateInitFlags(args) {
@@ -25490,6 +25514,7 @@ function buildOptions(values) {
25490
25514
  quick: values.quick,
25491
25515
  mock: values.mock,
25492
25516
  deep: values.deep,
25517
+ live: values.live,
25493
25518
  json: values.json,
25494
25519
  // remediation-review command options (#3765)
25495
25520
  sound: values.sound,