nexus-agents 8.31.5 → 8.31.6

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.
@@ -8,7 +8,7 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-J5ZXINMR.js";
11
+ } from "./chunk-NBITRRYV.js";
12
12
  import {
13
13
  capitalize
14
14
  } from "./chunk-7LP6VJRP.js";
@@ -1228,7 +1228,7 @@ async function runDoctorFix(result) {
1228
1228
  writeLine2("\u2500".repeat(40));
1229
1229
  let fixCount = 0;
1230
1230
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1231
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-2ZI5WN7C.js");
1231
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-3ISE7HV5.js");
1232
1232
  const outcome = describeDataDirFix2(initDataDirectories2());
1233
1233
  writeLine2(outcome.line);
1234
1234
  if (outcome.counted) fixCount++;
@@ -1330,4 +1330,4 @@ export {
1330
1330
  startStdioServer,
1331
1331
  closeServer
1332
1332
  };
1333
- //# sourceMappingURL=chunk-OFLUSVM6.js.map
1333
+ //# sourceMappingURL=chunk-GHOHQDX5.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-OFLUSVM6.js";
24
+ } from "./chunk-GHOHQDX5.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-7ILTIJY7.js";
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-CLP7NSQZ.js";
58
+ } from "./chunk-YESGTJB2.js";
59
59
  import {
60
60
  allOf,
61
61
  anyOf
@@ -75,7 +75,7 @@ import {
75
75
  } from "./chunk-DQMUMYRB.js";
76
76
  import {
77
77
  withPrerequisite
78
- } from "./chunk-Z4YLKK65.js";
78
+ } from "./chunk-TX6U2OJM.js";
79
79
  import {
80
80
  NOOP_NOTIFIER,
81
81
  RateLimiter,
@@ -100,7 +100,7 @@ import {
100
100
  withAuditTrail,
101
101
  withProgressHeartbeat,
102
102
  wrapToolWithTimeout
103
- } from "./chunk-SOJP7EZU.js";
103
+ } from "./chunk-NSHROISV.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
@@ -25832,8 +25832,8 @@ var DirectedInteractionGraph = class {
25832
25832
  }
25833
25833
  const maxPossibleDegree = (nodeCount - 1) * 2;
25834
25834
  for (const node of this.nodes) {
25835
- const outDegree = this.getOutgoingEdges(node).length;
25836
- const inDegree = this.getIncomingEdges(node).length;
25835
+ const outDegree = new Set(this.getOutgoingEdges(node).map((e) => e.to)).size;
25836
+ const inDegree = new Set(this.getIncomingEdges(node).map((e) => e.from)).size;
25837
25837
  const totalDegree = outDegree + inDegree;
25838
25838
  centrality.set(node, totalDegree / maxPossibleDegree);
25839
25839
  }
@@ -26510,7 +26510,7 @@ ${line}`;
26510
26510
  return lines.join("\n");
26511
26511
  }
26512
26512
  renderBar(value, width) {
26513
- const filled = Math.round(value * width);
26513
+ const filled = Math.min(width, Math.max(0, Math.round(value * width)));
26514
26514
  const empty = width - filled;
26515
26515
  return "\u2588".repeat(filled) + "\u2591".repeat(empty);
26516
26516
  }
@@ -27437,7 +27437,8 @@ function calculateMinSampleSize(baselineRate, minimumDetectableEffect, options =
27437
27437
 
27438
27438
  // src/observability/validation-dashboard-render.ts
27439
27439
  function renderProgressBar(value, max, width = 20) {
27440
- const filled = Math.round(value / max * width);
27440
+ const ratio = max === 0 ? 0 : value / max;
27441
+ const filled = Math.min(width, Math.max(0, Math.round(ratio * width)));
27441
27442
  const empty = width - filled;
27442
27443
  return `[${"\u2588".repeat(filled)}${"\u2591".repeat(empty)}]`;
27443
27444
  }
@@ -45756,7 +45757,7 @@ function buildVotingInput(plan, config) {
45756
45757
  }
45757
45758
  async function executeSingleVote(plan, config, log) {
45758
45759
  try {
45759
- const { executeVoting } = await import("./consensus-vote-Y5LU3N4E.js");
45760
+ const { executeVoting } = await import("./consensus-vote-LKPWI7RV.js");
45760
45761
  const input = buildVotingInput(plan, config);
45761
45762
  const result = await executeVoting(input, log);
45762
45763
  return parseVotingResult(result);
@@ -47548,7 +47549,7 @@ ${contextBlock}`;
47548
47549
  const strategy = config.votingStrategy ?? "higher_order";
47549
47550
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47550
47551
  try {
47551
- const { executeVoting } = await import("./consensus-vote-Y5LU3N4E.js");
47552
+ const { executeVoting } = await import("./consensus-vote-LKPWI7RV.js");
47552
47553
  const votingResult = await executeVoting(
47553
47554
  {
47554
47555
  proposal: buildVoteProposal(plan, research),
@@ -56268,4 +56269,4 @@ export {
56268
56269
  shutdownFeedbackSubscriber,
56269
56270
  createEventBusBridge
56270
56271
  };
56271
- //# sourceMappingURL=chunk-LO6S63AH.js.map
56272
+ //# sourceMappingURL=chunk-KZOYW3UF.js.map