nexus-agents 8.42.11 → 8.42.12

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-TBK4UCWL.js";
3
+ } from "./chunk-6IRM7HRV.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-DN63HNKL.js";
@@ -2306,4 +2306,4 @@ export {
2306
2306
  VOTING_THRESHOLDS,
2307
2307
  ConsensusMetricsSchema
2308
2308
  };
2309
- //# sourceMappingURL=chunk-E5POBYIY.js.map
2309
+ //# sourceMappingURL=chunk-4PIRDA2W.js.map
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  import semver from "semver";
3
- var VERSION = true ? "8.42.11" : "dev";
3
+ var VERSION = true ? "8.42.12" : "dev";
4
4
  var NODE_ENGINE_RANGE = ">=22.5.0";
5
5
  function isNodeVersionSupported(version) {
6
6
  return semver.satisfies(version, NODE_ENGINE_RANGE);
@@ -11,4 +11,4 @@ export {
11
11
  NODE_ENGINE_RANGE,
12
12
  isNodeVersionSupported
13
13
  };
14
- //# sourceMappingURL=chunk-TBK4UCWL.js.map
14
+ //# sourceMappingURL=chunk-6IRM7HRV.js.map
@@ -8,7 +8,7 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-TBK4UCWL.js";
11
+ } from "./chunk-6IRM7HRV.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-CMPXMXOQ.js");
1231
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-G56F2OLU.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-3POMCSFH.js.map
1333
+ //# sourceMappingURL=chunk-FOQW75TJ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-E5POBYIY.js";
10
+ } from "./chunk-4PIRDA2W.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-B6Z43TVS.js.map
2176
+ //# sourceMappingURL=chunk-OB2C7QDR.js.map
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-E5POBYIY.js";
26
+ } from "./chunk-4PIRDA2W.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-TBK4UCWL.js";
29
+ } from "./chunk-6IRM7HRV.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -3997,7 +3997,7 @@ function createWeightedVoting(options) {
3997
3997
  function computeSubsetIndependence(subset, correlationMatrix) {
3998
3998
  const totalPairs = subset.length * (subset.length - 1) / 2;
3999
3999
  if (subset.length < 2) return { score: 0, observedPairs: 0, totalPairs };
4000
- let totalCorrelation = 0;
4000
+ let observedCorrelation = 0;
4001
4001
  let pairs = 0;
4002
4002
  for (let i = 0; i < subset.length; i++) {
4003
4003
  for (let j = i + 1; j < subset.length; j++) {
@@ -4007,14 +4007,15 @@ function computeSubsetIndependence(subset, correlationMatrix) {
4007
4007
  const pairKey = createAgentPairKey(agentA, agentB);
4008
4008
  const correlation = correlationMatrix.get(pairKey);
4009
4009
  if (correlation !== void 0) {
4010
- totalCorrelation += Math.abs(correlation);
4010
+ observedCorrelation += Math.abs(correlation);
4011
4011
  pairs++;
4012
4012
  }
4013
4013
  }
4014
4014
  }
4015
4015
  }
4016
+ const unobservedPairs = totalPairs - pairs;
4016
4017
  return {
4017
- score: pairs > 0 ? totalCorrelation / pairs : 0,
4018
+ score: (observedCorrelation + unobservedPairs) / totalPairs,
4018
4019
  observedPairs: pairs,
4019
4020
  totalPairs
4020
4021
  };
@@ -7849,4 +7850,4 @@ export {
7849
7850
  CONSENSUS_VOTE_TOOL_SCHEMA,
7850
7851
  registerConsensusVoteTool
7851
7852
  };
7852
- //# sourceMappingURL=chunk-QWWLXXQ6.js.map
7853
+ //# sourceMappingURL=chunk-SGMNUH2H.js.map