nexus-agents 8.31.5 → 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.
- package/dist/{chunk-OFLUSVM6.js → chunk-44V524M2.js} +3 -3
- package/dist/{chunk-Z4YLKK65.js → chunk-57MMCJKK.js} +2 -2
- package/dist/{chunk-LO6S63AH.js → chunk-BQGUZW4E.js} +20 -15
- package/dist/{chunk-LO6S63AH.js.map → chunk-BQGUZW4E.js.map} +1 -1
- package/dist/{chunk-CLP7NSQZ.js → chunk-D7JRDB2N.js} +3 -3
- package/dist/{chunk-SOJP7EZU.js → chunk-QFFIGF3D.js} +2 -2
- package/dist/{chunk-J5ZXINMR.js → chunk-WGBQSUTR.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-Y5LU3N4E.js → consensus-vote-PQCSWHNE.js} +4 -4
- package/dist/{improvement-review-Z62UE3RT.js → improvement-review-SW6IWW2M.js} +4 -4
- package/dist/index.d.ts +18 -1
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-2ZI5WN7C.js → setup-data-dir-2IQC7FR2.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-OFLUSVM6.js.map → chunk-44V524M2.js.map} +0 -0
- /package/dist/{chunk-Z4YLKK65.js.map → chunk-57MMCJKK.js.map} +0 -0
- /package/dist/{chunk-CLP7NSQZ.js.map → chunk-D7JRDB2N.js.map} +0 -0
- /package/dist/{chunk-SOJP7EZU.js.map → chunk-QFFIGF3D.js.map} +0 -0
- /package/dist/{chunk-J5ZXINMR.js.map → chunk-WGBQSUTR.js.map} +0 -0
- /package/dist/{consensus-vote-Y5LU3N4E.js.map → consensus-vote-PQCSWHNE.js.map} +0 -0
- /package/dist/{improvement-review-Z62UE3RT.js.map → improvement-review-SW6IWW2M.js.map} +0 -0
- /package/dist/{setup-data-dir-2ZI5WN7C.js.map → setup-data-dir-2IQC7FR2.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
NODE_ENGINE_RANGE,
|
|
9
9
|
VERSION,
|
|
10
10
|
isNodeVersionSupported
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
1333
|
+
//# sourceMappingURL=chunk-44V524M2.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
103
|
+
} from "./chunk-QFFIGF3D.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).
|
|
25836
|
-
const inDegree = this.getIncomingEdges(node).
|
|
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
|
}
|
|
@@ -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
|
|
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:
|
|
26208
|
+
avgLatencyMs: timedEdges.length > 0 ? totalLatency / timedEdges.length : 0,
|
|
26207
26209
|
bottlenecks: this.getBottlenecks(),
|
|
26208
26210
|
clusters: this.getEmergentClusters(),
|
|
26209
26211
|
calculatedAt: getTimeProvider().nowIso()
|
|
@@ -26510,7 +26512,7 @@ ${line}`;
|
|
|
26510
26512
|
return lines.join("\n");
|
|
26511
26513
|
}
|
|
26512
26514
|
renderBar(value, width) {
|
|
26513
|
-
const filled = Math.round(value * width);
|
|
26515
|
+
const filled = Math.min(width, Math.max(0, Math.round(value * width)));
|
|
26514
26516
|
const empty = width - filled;
|
|
26515
26517
|
return "\u2588".repeat(filled) + "\u2591".repeat(empty);
|
|
26516
26518
|
}
|
|
@@ -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.
|
|
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: [],
|
|
@@ -27437,7 +27441,8 @@ function calculateMinSampleSize(baselineRate, minimumDetectableEffect, options =
|
|
|
27437
27441
|
|
|
27438
27442
|
// src/observability/validation-dashboard-render.ts
|
|
27439
27443
|
function renderProgressBar(value, max, width = 20) {
|
|
27440
|
-
const
|
|
27444
|
+
const ratio = max === 0 ? 0 : value / max;
|
|
27445
|
+
const filled = Math.min(width, Math.max(0, Math.round(ratio * width)));
|
|
27441
27446
|
const empty = width - filled;
|
|
27442
27447
|
return `[${"\u2588".repeat(filled)}${"\u2591".repeat(empty)}]`;
|
|
27443
27448
|
}
|
|
@@ -45756,7 +45761,7 @@ function buildVotingInput(plan, config) {
|
|
|
45756
45761
|
}
|
|
45757
45762
|
async function executeSingleVote(plan, config, log) {
|
|
45758
45763
|
try {
|
|
45759
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45764
|
+
const { executeVoting } = await import("./consensus-vote-PQCSWHNE.js");
|
|
45760
45765
|
const input = buildVotingInput(plan, config);
|
|
45761
45766
|
const result = await executeVoting(input, log);
|
|
45762
45767
|
return parseVotingResult(result);
|
|
@@ -47548,7 +47553,7 @@ ${contextBlock}`;
|
|
|
47548
47553
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47549
47554
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47550
47555
|
try {
|
|
47551
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47556
|
+
const { executeVoting } = await import("./consensus-vote-PQCSWHNE.js");
|
|
47552
47557
|
const votingResult = await executeVoting(
|
|
47553
47558
|
{
|
|
47554
47559
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -56268,4 +56273,4 @@ export {
|
|
|
56268
56273
|
shutdownFeedbackSubscriber,
|
|
56269
56274
|
createEventBusBridge
|
|
56270
56275
|
};
|
|
56271
|
-
//# sourceMappingURL=chunk-
|
|
56276
|
+
//# sourceMappingURL=chunk-BQGUZW4E.js.map
|