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.
- package/dist/chunk-36RKSOEU.js +7 -0
- package/dist/{chunk-Q4T3UWOC.js → chunk-5URQKORV.js} +18 -17
- package/dist/chunk-5URQKORV.js.map +1 -0
- package/dist/{chunk-VEFRTBUE.js → chunk-CRBION3T.js} +3 -3
- package/dist/{chunk-6OAWETHW.js → chunk-PDCWRF24.js} +29 -5
- package/dist/chunk-PDCWRF24.js.map +1 -0
- package/dist/{chunk-EGO754SU.js → chunk-QQ4WCJ3E.js} +30 -9
- package/dist/chunk-QQ4WCJ3E.js.map +1 -0
- package/dist/{chunk-7V5V6H5C.js → chunk-Z65BID74.js} +2 -2
- package/dist/cli.js +11 -9
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-YYHQHD7V.js → consensus-vote-XBMHZBSF.js} +4 -4
- package/dist/{improvement-review-C74SDVTQ.js → improvement-review-XZLMD6CB.js} +4 -4
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-YSN7UU3M.js → setup-data-dir-C3EDLJKC.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-6OAWETHW.js.map +0 -1
- package/dist/chunk-D2E5PC2V.js +0 -7
- package/dist/chunk-EGO754SU.js.map +0 -1
- package/dist/chunk-Q4T3UWOC.js.map +0 -1
- /package/dist/{chunk-D2E5PC2V.js.map → chunk-36RKSOEU.js.map} +0 -0
- /package/dist/{chunk-VEFRTBUE.js.map → chunk-CRBION3T.js.map} +0 -0
- /package/dist/{chunk-7V5V6H5C.js.map → chunk-Z65BID74.js.map} +0 -0
- /package/dist/{consensus-vote-YYHQHD7V.js.map → consensus-vote-XBMHZBSF.js.map} +0 -0
- /package/dist/{improvement-review-C74SDVTQ.js.map → improvement-review-XZLMD6CB.js.map} +0 -0
- /package/dist/{setup-data-dir-YSN7UU3M.js.map → setup-data-dir-C3EDLJKC.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
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: [
|
|
1768
|
-
|
|
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
|
|
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-
|
|
2136
|
+
//# sourceMappingURL=chunk-5URQKORV.js.map
|