nexus-agents 4.37.2 → 5.0.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-7A63AX2A.js +7 -0
- package/dist/{chunk-3BL6HLHW.js.map → chunk-7A63AX2A.js.map} +1 -1
- package/dist/{chunk-WCQD5WJX.js → chunk-AYJNW7JN.js} +3 -3
- package/dist/{chunk-DLWXTCLB.js → chunk-BZRUZSJ6.js} +2 -2
- package/dist/{chunk-BL2RCXGC.js → chunk-DDUZI6OD.js} +2 -2
- package/dist/{chunk-DIMPT3NS.js → chunk-GQXDNAMB.js} +2 -2
- package/dist/{chunk-EZVDJJ4T.js → chunk-LFAIB5MG.js} +33 -21
- package/dist/{chunk-EZVDJJ4T.js.map → chunk-LFAIB5MG.js.map} +1 -1
- package/dist/cli.js +21 -10
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-VNLVKZZK.js → consensus-vote-X2EF47XM.js} +4 -4
- package/dist/{improvement-review-RVR2XRU2.js → improvement-review-VBLDRXFP.js} +4 -4
- package/dist/index.d.ts +63 -20
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-TCVUSEDW.js → setup-data-dir-RQCYL3D3.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3BL6HLHW.js +0 -7
- /package/dist/{chunk-WCQD5WJX.js.map → chunk-AYJNW7JN.js.map} +0 -0
- /package/dist/{chunk-DLWXTCLB.js.map → chunk-BZRUZSJ6.js.map} +0 -0
- /package/dist/{chunk-BL2RCXGC.js.map → chunk-DDUZI6OD.js.map} +0 -0
- /package/dist/{chunk-DIMPT3NS.js.map → chunk-GQXDNAMB.js.map} +0 -0
- /package/dist/{consensus-vote-VNLVKZZK.js.map → consensus-vote-X2EF47XM.js.map} +0 -0
- /package/dist/{improvement-review-RVR2XRU2.js.map → improvement-review-VBLDRXFP.js.map} +0 -0
- /package/dist/{setup-data-dir-TCVUSEDW.js.map → setup-data-dir-RQCYL3D3.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
validateNexusEnv,
|
|
153
153
|
validateWorkflow,
|
|
154
154
|
wrapInMarkdownFence
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-LFAIB5MG.js";
|
|
156
156
|
import "./chunk-W7ITYRY2.js";
|
|
157
157
|
import "./chunk-HFOQKCD2.js";
|
|
158
158
|
import "./chunk-RSMG2DPB.js";
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
doctorCommand,
|
|
172
172
|
initDataDirectories,
|
|
173
173
|
runDoctor
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-AYJNW7JN.js";
|
|
175
175
|
import {
|
|
176
176
|
buildOpenAICompatAdapters,
|
|
177
177
|
readOpenAICompatEnv
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
recordAuthenticVote,
|
|
191
191
|
registerConsensusVoteTool,
|
|
192
192
|
toRecordDecision
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-DDUZI6OD.js";
|
|
194
194
|
import {
|
|
195
195
|
loadUsageEvents,
|
|
196
196
|
rollupByModel
|
|
@@ -226,15 +226,15 @@ import {
|
|
|
226
226
|
registerImprovementReviewTool,
|
|
227
227
|
runImprovementReview,
|
|
228
228
|
scanForSecrets
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-GQXDNAMB.js";
|
|
230
230
|
import {
|
|
231
231
|
createDefaultPolicyFirewall,
|
|
232
232
|
setGlobalPolicyFirewall,
|
|
233
233
|
stagePolicyFirewallForRollout
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-BZRUZSJ6.js";
|
|
235
235
|
import {
|
|
236
236
|
VERSION
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-7A63AX2A.js";
|
|
238
238
|
import "./chunk-ZSNWRX2B.js";
|
|
239
239
|
import {
|
|
240
240
|
createUnifiedRegistry,
|
|
@@ -19553,7 +19553,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
19553
19553
|
let running = false;
|
|
19554
19554
|
const runOnce = async () => {
|
|
19555
19555
|
try {
|
|
19556
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
19556
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-VBLDRXFP.js");
|
|
19557
19557
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
19558
19558
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
19559
19559
|
logger22.info("Scheduled improvement_review complete", {
|
|
@@ -24033,6 +24033,13 @@ async function generateSyntheticTestCases(backend, count = 50) {
|
|
|
24033
24033
|
}
|
|
24034
24034
|
|
|
24035
24035
|
// src/testing/memory-benchmark-output.ts
|
|
24036
|
+
function formatDecayConsistency(result) {
|
|
24037
|
+
if (result.decayConsistencyScore === null) {
|
|
24038
|
+
return " Decay consistency: unmeasured (no items checked)";
|
|
24039
|
+
}
|
|
24040
|
+
const pct2 = (result.decayConsistencyScore * 100).toFixed(1);
|
|
24041
|
+
return ` Decay consistency: ${pct2}% (${String(result.decayItemsChecked)} items)`;
|
|
24042
|
+
}
|
|
24036
24043
|
function formatBenchmarkResult(result) {
|
|
24037
24044
|
const lines = [
|
|
24038
24045
|
"\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557",
|
|
@@ -24068,7 +24075,7 @@ function formatBenchmarkResult(result) {
|
|
|
24068
24075
|
lines.push("");
|
|
24069
24076
|
lines.push("\u25B8 Phase 2: Growth & Decay");
|
|
24070
24077
|
lines.push(` Growth rate: ${result.growthRateBytesPerOp.toFixed(0)} bytes/op`);
|
|
24071
|
-
lines.push(
|
|
24078
|
+
lines.push(formatDecayConsistency(result));
|
|
24072
24079
|
lines.push("");
|
|
24073
24080
|
lines.push("\u25B8 Phase 3: Promotion & Appropriateness");
|
|
24074
24081
|
lines.push(` Promotion retention: ${(result.promotionRetentionRate * 100).toFixed(1)}%`);
|
|
@@ -24089,6 +24096,9 @@ var formatters = {
|
|
|
24089
24096
|
};
|
|
24090
24097
|
function checkThreshold(value, threshold, comparison, label, format) {
|
|
24091
24098
|
if (threshold === void 0) return { applied: false };
|
|
24099
|
+
if (value === null) {
|
|
24100
|
+
return { applied: true, failure: `${label} unmeasured - could not be checked` };
|
|
24101
|
+
}
|
|
24092
24102
|
const failed = comparison === "min" ? value < threshold : value > threshold;
|
|
24093
24103
|
if (!failed) return { applied: true, failure: null };
|
|
24094
24104
|
return {
|
|
@@ -24301,11 +24311,11 @@ async function measureDecayConsistency(backend, logger22) {
|
|
|
24301
24311
|
const beforePrune = await backend.search("", 1e4);
|
|
24302
24312
|
if (!beforePrune.ok) {
|
|
24303
24313
|
logger22?.debug("Cannot measure decay consistency - search failed");
|
|
24304
|
-
return { consistencyScore:
|
|
24314
|
+
return { consistencyScore: null, itemsChecked: 0 };
|
|
24305
24315
|
}
|
|
24306
24316
|
const beforeCount = beforePrune.value.length;
|
|
24307
24317
|
if (beforeCount === 0) {
|
|
24308
|
-
return { consistencyScore:
|
|
24318
|
+
return { consistencyScore: null, itemsChecked: 0 };
|
|
24309
24319
|
}
|
|
24310
24320
|
const sampleSize = Math.min(10, beforeCount);
|
|
24311
24321
|
const samples = beforePrune.value.slice(0, sampleSize);
|
|
@@ -24336,6 +24346,7 @@ function buildBenchmarkResult(m) {
|
|
|
24336
24346
|
orphanedRefCount: m.coherence.orphanedRefs,
|
|
24337
24347
|
growthRateBytesPerOp: m.growth.bytesPerOperation,
|
|
24338
24348
|
decayConsistencyScore: m.decay.consistencyScore,
|
|
24349
|
+
decayItemsChecked: m.decay.itemsChecked,
|
|
24339
24350
|
promotionRetentionRate: m.promotion.retentionRate,
|
|
24340
24351
|
decayRegretScore: m.appropriateness.regretScore
|
|
24341
24352
|
};
|