nexus-agents 5.0.0 → 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.
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var VERSION = true ? "5.0.1" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-7A63AX2A.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OQB3XC5O.js";
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-EYOJLWOA.js";
9
+ } from "./chunk-7A63AX2A.js";
10
10
  import {
11
11
  capitalize
12
12
  } from "./chunk-6T3EPABN.js";
@@ -1201,7 +1201,7 @@ async function runDoctorFix(result) {
1201
1201
  writeLine2("\u2500".repeat(40));
1202
1202
  let fixCount = 0;
1203
1203
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1204
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-RWQ2M3SU.js");
1204
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-RQCYL3D3.js");
1205
1205
  const outcome = describeDataDirFix2(initDataDirectories2());
1206
1206
  writeLine2(outcome.line);
1207
1207
  if (outcome.counted) fixCount++;
@@ -1303,4 +1303,4 @@ export {
1303
1303
  startStdioServer,
1304
1304
  closeServer
1305
1305
  };
1306
- //# sourceMappingURL=chunk-OHAMRJ45.js.map
1306
+ //# sourceMappingURL=chunk-AYJNW7JN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-EYOJLWOA.js";
3
+ } from "./chunk-7A63AX2A.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-ZSNWRX2B.js";
@@ -2130,4 +2130,4 @@ export {
2130
2130
  VOTING_THRESHOLDS,
2131
2131
  ConsensusMetricsSchema
2132
2132
  };
2133
- //# sourceMappingURL=chunk-KRIAQJ7L.js.map
2133
+ //# sourceMappingURL=chunk-BZRUZSJ6.js.map
@@ -23,7 +23,7 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-KRIAQJ7L.js";
26
+ } from "./chunk-BZRUZSJ6.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
@@ -6848,4 +6848,4 @@ export {
6848
6848
  CONSENSUS_VOTE_TOOL_SCHEMA,
6849
6849
  registerConsensusVoteTool
6850
6850
  };
6851
- //# sourceMappingURL=chunk-5ZMA2TIE.js.map
6851
+ //# sourceMappingURL=chunk-DDUZI6OD.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-KRIAQJ7L.js";
10
+ } from "./chunk-BZRUZSJ6.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2159,4 +2159,4 @@ export {
2159
2159
  runImprovementReview,
2160
2160
  registerImprovementReviewTool
2161
2161
  };
2162
- //# sourceMappingURL=chunk-CAQ5KUPL.js.map
2162
+ //# sourceMappingURL=chunk-GQXDNAMB.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-OHAMRJ45.js";
24
+ } from "./chunk-AYJNW7JN.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-WTQEMR7D.js";
@@ -47,7 +47,7 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-5ZMA2TIE.js";
50
+ } from "./chunk-DDUZI6OD.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-C2LEM7RD.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-CAQ5KUPL.js";
67
+ } from "./chunk-GQXDNAMB.js";
68
68
  import {
69
69
  NOOP_NOTIFIER,
70
70
  RateLimiter,
@@ -88,7 +88,7 @@ import {
88
88
  withAuditTrail,
89
89
  withProgressHeartbeat,
90
90
  wrapToolWithTimeout
91
- } from "./chunk-KRIAQJ7L.js";
91
+ } from "./chunk-BZRUZSJ6.js";
92
92
  import {
93
93
  createAuditTrail,
94
94
  createGraphAuditBridge,
@@ -47317,7 +47317,7 @@ ${contextBlock}`;
47317
47317
  const strategy = config.votingStrategy ?? "higher_order";
47318
47318
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47319
47319
  try {
47320
- const { executeVoting } = await import("./consensus-vote-DCN5VMST.js");
47320
+ const { executeVoting } = await import("./consensus-vote-X2EF47XM.js");
47321
47321
  const votingResult = await executeVoting(
47322
47322
  {
47323
47323
  proposal: buildVoteProposal(plan, research),
@@ -55953,4 +55953,4 @@ export {
55953
55953
  shutdownFeedbackSubscriber,
55954
55954
  createEventBusBridge
55955
55955
  };
55956
- //# sourceMappingURL=chunk-AJTCAKFN.js.map
55956
+ //# sourceMappingURL=chunk-LFAIB5MG.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-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-OHAMRJ45.js";
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-5ZMA2TIE.js";
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-CAQ5KUPL.js";
229
+ } from "./chunk-GQXDNAMB.js";
230
230
  import {
231
231
  createDefaultPolicyFirewall,
232
232
  setGlobalPolicyFirewall,
233
233
  stagePolicyFirewallForRollout
234
- } from "./chunk-KRIAQJ7L.js";
234
+ } from "./chunk-BZRUZSJ6.js";
235
235
  import {
236
236
  VERSION
237
- } from "./chunk-EYOJLWOA.js";
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-TSK2V5LL.js");
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(` 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
  };