nexus-agents 2.77.6 → 2.77.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.
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-GOT7OAL5.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.77.6" : "dev";
43
+ var VERSION = true ? "2.77.8" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2121,7 +2121,7 @@ async function runDoctorFix(result) {
2121
2121
  writeLine2("\u2500".repeat(40));
2122
2122
  let fixCount = 0;
2123
2123
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2124
- const { runSetup } = await import("./setup-command-DTJJ73RB.js");
2124
+ const { runSetup } = await import("./setup-command-AXJA4OGF.js");
2125
2125
  const setupResult = runSetup({
2126
2126
  skipMcp: true,
2127
2127
  skipRules: true,
@@ -2231,4 +2231,4 @@ export {
2231
2231
  startStdioServer,
2232
2232
  closeServer
2233
2233
  };
2234
- //# sourceMappingURL=chunk-MX3NIZGV.js.map
2234
+ //# sourceMappingURL=chunk-35C7VCMT.js.map
@@ -70,7 +70,7 @@ import {
70
70
  clampTaskTtl,
71
71
  getAvailabilityCache,
72
72
  resolveFallback
73
- } from "./chunk-MX3NIZGV.js";
73
+ } from "./chunk-35C7VCMT.js";
74
74
  import {
75
75
  DEFAULTS
76
76
  } from "./chunk-YQMQSJQK.js";
@@ -44727,6 +44727,10 @@ var FitnessScoreCalculator = class {
44727
44727
  audit(version) {
44728
44728
  const findings = [];
44729
44729
  const dimensions = {};
44730
+ const cliAdaptersDir = join11(SRC_ROOT, "cli-adapters");
44731
+ if (!existsSync11(cliAdaptersDir)) {
44732
+ return this.notSourceRepoResult(version);
44733
+ }
44730
44734
  for (const check of this.checks) {
44731
44735
  this.logger.debug(`Running fitness check: ${check.name}`);
44732
44736
  const result = check.check();
@@ -44754,6 +44758,35 @@ var FitnessScoreCalculator = class {
44754
44758
  version
44755
44759
  };
44756
44760
  }
44761
+ /**
44762
+ * Return when the runtime SRC_ROOT doesn't look like the nexus-agents
44763
+ * source tree (#2716). One finding, score 0 — distinct from "the source
44764
+ * tree is broken" because every existsSync would falsely report missing.
44765
+ */
44766
+ notSourceRepoResult(version) {
44767
+ const finding = {
44768
+ dimension: "governanceIntegration",
44769
+ severity: "info",
44770
+ description: `fitness-audit must run against the nexus-agents source repo, but ${SRC_ROOT}/cli-adapters does not exist. You are likely running the installed npm package via \`npx nexus-agents\`, which ships only the bundled dist/. Clone the source repo and run \`node packages/nexus-agents/dist/cli.js fitness-audit\` (or invoke \`pnpm fitness-audit\` from the workspace root).`,
44771
+ pointsDeducted: 0
44772
+ };
44773
+ return {
44774
+ score: 0,
44775
+ dimensions: {
44776
+ canonicalPaths: 0,
44777
+ explicitBehavior: 0,
44778
+ determinism: 0,
44779
+ observability: 0,
44780
+ configSimplicity: 0,
44781
+ layerSeparation: 0,
44782
+ operatorErgonomics: 0,
44783
+ governanceIntegration: 0
44784
+ },
44785
+ findings: [finding],
44786
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
44787
+ version
44788
+ };
44789
+ }
44757
44790
  // =========================================================================
44758
44791
  // Individual Checks — real filesystem analysis
44759
44792
  // =========================================================================
@@ -49990,4 +50023,4 @@ export {
49990
50023
  detectBackend,
49991
50024
  createTaskTracker
49992
50025
  };
49993
- //# sourceMappingURL=chunk-RBZKUFNT.js.map
50026
+ //# sourceMappingURL=chunk-M5NSVRK6.js.map