nexus-agents 5.0.0 → 5.0.3

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 ? "5.0.3" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-RXJHAUJY.js.map
package/dist/cli.js CHANGED
@@ -152,7 +152,7 @@ import {
152
152
  validateNexusEnv,
153
153
  validateWorkflow,
154
154
  wrapInMarkdownFence
155
- } from "./chunk-AJTCAKFN.js";
155
+ } from "./chunk-26PZ2652.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-OHAMRJ45.js";
174
+ } from "./chunk-OLCMDKQE.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-5ZMA2TIE.js";
193
+ } from "./chunk-FTIJ4V4A.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-CAQ5KUPL.js";
229
+ } from "./chunk-AU6N4HZR.js";
230
230
  import {
231
231
  createDefaultPolicyFirewall,
232
232
  setGlobalPolicyFirewall,
233
233
  stagePolicyFirewallForRollout
234
- } from "./chunk-KRIAQJ7L.js";
234
+ } from "./chunk-O6TCROTE.js";
235
235
  import {
236
236
  VERSION
237
- } from "./chunk-EYOJLWOA.js";
237
+ } from "./chunk-RXJHAUJY.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-TSK2V5LL.js");
19556
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-NVIZXYSX.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(` Decay consistency: ${(result.decayConsistencyScore * 100).toFixed(1)}%`);
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: 1, itemsChecked: 0 };
24314
+ return { consistencyScore: null, itemsChecked: 0 };
24305
24315
  }
24306
24316
  const beforeCount = beforePrune.value.length;
24307
24317
  if (beforeCount === 0) {
24308
- return { consistencyScore: 1, itemsChecked: 0 };
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
  };