nexus-agents 8.31.6 → 8.32.0

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-NBITRRYV.js";
11
+ } from "./chunk-WGBQSUTR.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-3ISE7HV5.js");
1231
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-2IQC7FR2.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-GHOHQDX5.js.map
1333
+ //# sourceMappingURL=chunk-44V524M2.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-NSHROISV.js";
10
+ } from "./chunk-QFFIGF3D.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2173,4 +2173,4 @@ export {
2173
2173
  runImprovementReview,
2174
2174
  registerImprovementReviewTool
2175
2175
  };
2176
- //# sourceMappingURL=chunk-TX6U2OJM.js.map
2176
+ //# sourceMappingURL=chunk-57MMCJKK.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-GHOHQDX5.js";
24
+ } from "./chunk-44V524M2.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-YESGTJB2.js";
58
+ } from "./chunk-D7JRDB2N.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-TX6U2OJM.js";
78
+ } from "./chunk-57MMCJKK.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-NSHROISV.js";
103
+ } from "./chunk-QFFIGF3D.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
@@ -26194,7 +26194,8 @@ var SwarmObserver = class {
26194
26194
  const windowStart = getTimeProvider().now() - this.config.metricsWindowMs;
26195
26195
  const recentEdges = edges.filter((e) => new Date(e.timestamp).getTime() >= windowStart);
26196
26196
  const successCount = recentEdges.filter((e) => e.outcome === "success").length;
26197
- const totalLatency = recentEdges.reduce((sum, e) => sum + (e.durationMs ?? 0), 0);
26197
+ const timedEdges = recentEdges.filter((e) => e.durationMs !== void 0);
26198
+ const totalLatency = timedEdges.reduce((sum, e) => sum + (e.durationMs ?? 0), 0);
26198
26199
  const activeAgents = this.countActiveAgents(windowStart);
26199
26200
  const errorAgents = this.countErrorAgents();
26200
26201
  return {
@@ -26202,8 +26203,9 @@ var SwarmObserver = class {
26202
26203
  activeAgents,
26203
26204
  errorAgents,
26204
26205
  totalInteractions: recentEdges.length,
26206
+ timedInteractions: timedEdges.length,
26205
26207
  successRate: recentEdges.length > 0 ? successCount / recentEdges.length : 0,
26206
- avgLatencyMs: recentEdges.length > 0 ? totalLatency / recentEdges.length : 0,
26208
+ avgLatencyMs: timedEdges.length > 0 ? totalLatency / timedEdges.length : 0,
26207
26209
  bottlenecks: this.getBottlenecks(),
26208
26210
  clusters: this.getEmergentClusters(),
26209
26211
  calculatedAt: getTimeProvider().nowIso()
@@ -26674,13 +26676,14 @@ function buildTopEdges(graph) {
26674
26676
  const edgeMap = /* @__PURE__ */ new Map();
26675
26677
  for (const edge of edges) {
26676
26678
  const key = `${edge.from}|${edge.to}`;
26677
- const existing = edgeMap.get(key) ?? { count: 0, successes: 0, totalLatency: 0 };
26679
+ const existing = edgeMap.get(key) ?? { count: 0, successes: 0, totalLatency: 0, timed: 0 };
26678
26680
  existing.count++;
26679
26681
  if (edge.outcome === "success") {
26680
26682
  existing.successes++;
26681
26683
  }
26682
26684
  if (edge.durationMs !== void 0) {
26683
26685
  existing.totalLatency += edge.durationMs;
26686
+ existing.timed++;
26684
26687
  }
26685
26688
  edgeMap.set(key, existing);
26686
26689
  }
@@ -26691,7 +26694,7 @@ function buildTopEdges(graph) {
26691
26694
  to: to ?? "",
26692
26695
  count: stats.count,
26693
26696
  successRate: stats.count > 0 ? stats.successes / stats.count : 0,
26694
- avgLatencyMs: stats.count > 0 ? stats.totalLatency / stats.count : 0
26697
+ avgLatencyMs: stats.timed > 0 ? stats.totalLatency / stats.timed : 0
26695
26698
  };
26696
26699
  }).sort((a, b) => b.count - a.count).slice(0, 10);
26697
26700
  }
@@ -26872,6 +26875,7 @@ var Dashboard = class {
26872
26875
  activeAgents: 0,
26873
26876
  errorAgents: 0,
26874
26877
  totalInteractions: 0,
26878
+ timedInteractions: 0,
26875
26879
  successRate: 0,
26876
26880
  avgLatencyMs: 0,
26877
26881
  bottlenecks: [],
@@ -45757,7 +45761,7 @@ function buildVotingInput(plan, config) {
45757
45761
  }
45758
45762
  async function executeSingleVote(plan, config, log) {
45759
45763
  try {
45760
- const { executeVoting } = await import("./consensus-vote-LKPWI7RV.js");
45764
+ const { executeVoting } = await import("./consensus-vote-PQCSWHNE.js");
45761
45765
  const input = buildVotingInput(plan, config);
45762
45766
  const result = await executeVoting(input, log);
45763
45767
  return parseVotingResult(result);
@@ -47549,7 +47553,7 @@ ${contextBlock}`;
47549
47553
  const strategy = config.votingStrategy ?? "higher_order";
47550
47554
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47551
47555
  try {
47552
- const { executeVoting } = await import("./consensus-vote-LKPWI7RV.js");
47556
+ const { executeVoting } = await import("./consensus-vote-PQCSWHNE.js");
47553
47557
  const votingResult = await executeVoting(
47554
47558
  {
47555
47559
  proposal: buildVoteProposal(plan, research),
@@ -56269,4 +56273,4 @@ export {
56269
56273
  shutdownFeedbackSubscriber,
56270
56274
  createEventBusBridge
56271
56275
  };
56272
- //# sourceMappingURL=chunk-KZOYW3UF.js.map
56276
+ //# sourceMappingURL=chunk-BQGUZW4E.js.map