nexus-agents 4.28.0 → 4.29.1

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.
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var VERSION = true ? "4.29.1" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-36RKSOEU.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-7V5V6H5C.js";
10
+ } from "./chunk-Z65BID74.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -110,9 +110,6 @@ function withPrerequisite(toolName, handler) {
110
110
  return applyPrerequisite(toolName, prereq, handler);
111
111
  }
112
112
 
113
- // src/mcp/tools/improvement-review.ts
114
- import { createHash } from "crypto";
115
-
116
113
  // src/governance/fitness-score.ts
117
114
  import { existsSync, readFileSync, readdirSync, statSync } from "fs";
118
115
  import { join } from "path";
@@ -187,6 +184,9 @@ var FITNESS_DIMENSION_MAX = {
187
184
  operatorErgonomics: 10,
188
185
  governanceIntegration: 5
189
186
  };
187
+ function isAuditableScore(audit) {
188
+ return audit.auditable !== false;
189
+ }
190
190
  function clamp(score, max) {
191
191
  return Math.max(0, Math.min(max, score));
192
192
  }
@@ -209,11 +209,7 @@ var FitnessScoreCalculator = class {
209
209
  reg("configSimplicity", "Config Simplicity", () => this.checkConfigSimplicity());
210
210
  reg("layerSeparation", "Layer Separation", () => this.checkLayerSeparation());
211
211
  reg("operatorErgonomics", "Operator Ergonomics", () => this.checkOperatorErgonomics());
212
- reg(
213
- "governanceIntegration",
214
- "Governance Integration",
215
- () => this.checkGovernanceIntegration()
216
- );
212
+ reg("governanceIntegration", "Governance Integration", () => this.checkGovernanceIntegration());
217
213
  }
218
214
  /** Run full fitness audit. */
219
215
  audit(version) {
@@ -697,6 +693,9 @@ function calculateFitnessScore(version) {
697
693
  return calculator.audit(version);
698
694
  }
699
695
 
696
+ // src/mcp/tools/improvement-review.ts
697
+ import { createHash } from "crypto";
698
+
700
699
  // src/mcp/tools/improvement-review-signals.ts
701
700
  function worstDimension(audit) {
702
701
  let worst;
@@ -708,6 +707,7 @@ function worstDimension(audit) {
708
707
  return worst?.dimension;
709
708
  }
710
709
  function emitFitnessDeclinedSignal(audit, fitnessFloor, bus, logger) {
710
+ if (!isAuditableScore(audit)) return;
711
711
  if (audit.score >= fitnessFloor) return;
712
712
  try {
713
713
  const dimension = worstDimension(audit);
@@ -1738,9 +1738,7 @@ var FITNESS_DIMENSION_TARGET_FRACTION = 0.6;
1738
1738
  var MAX_DIMENSION_SIGNALS_PER_RUN = 3;
1739
1739
  var MAX_FINDING_TEXT_LEN = 280;
1740
1740
  var MAX_FINDINGS_IN_DIMENSION_BODY = 10;
1741
- var STRUCTURALLY_UNREACHABLE_DIMENSIONS = /* @__PURE__ */ new Set(
1742
- []
1743
- );
1741
+ var STRUCTURALLY_UNREACHABLE_DIMENSIONS = /* @__PURE__ */ new Set([]);
1744
1742
  var KNOWN_DIMENSIONS = new Set(
1745
1743
  Object.keys(FITNESS_DIMENSION_MAX)
1746
1744
  );
@@ -1764,9 +1762,12 @@ function buildCriticalFindingSignal(finding) {
1764
1762
  signalKey: `tech-debt:fitness-critical:${finding.dimension}`,
1765
1763
  severity: "critical",
1766
1764
  title: `tech-debt: critical fitness finding in ${finding.dimension}`,
1767
- body: [`Fitness audit returned a CRITICAL finding.`, "", `- Dimension: \`${finding.dimension}\``, ...findingBodyLines(finding)].join(
1768
- "\n"
1769
- ),
1765
+ body: [
1766
+ `Fitness audit returned a CRITICAL finding.`,
1767
+ "",
1768
+ `- Dimension: \`${finding.dimension}\``,
1769
+ ...findingBodyLines(finding)
1770
+ ].join("\n"),
1770
1771
  evidence: { observedValue: -finding.pointsDeducted }
1771
1772
  };
1772
1773
  }
@@ -1834,7 +1835,7 @@ function detectFitnessDimensionSignals(audit) {
1834
1835
  }
1835
1836
  function detectFitnessSignals(audit, fitnessFloor) {
1836
1837
  const signals = [];
1837
- if (audit.auditable === false) return signals;
1838
+ if (!isAuditableScore(audit)) return signals;
1838
1839
  if (audit.score < fitnessFloor) signals.push(buildFloorSignal(audit, fitnessFloor));
1839
1840
  for (const finding of audit.findings) {
1840
1841
  if (finding.severity === "critical") signals.push(buildCriticalFindingSignal(finding));
@@ -2132,4 +2133,4 @@ export {
2132
2133
  runImprovementReview,
2133
2134
  registerImprovementReviewTool
2134
2135
  };
2135
- //# sourceMappingURL=chunk-Q4T3UWOC.js.map
2136
+ //# sourceMappingURL=chunk-5URQKORV.js.map