nexus-agents 6.1.3 → 6.1.5

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.
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-767D24JM.js";
10
+ } from "./chunk-R2QMJAUF.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-LLGYR7KF.js.map
2162
+ //# sourceMappingURL=chunk-6D5BIVED.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OQB3XC5O.js";
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-2FXH2HEW.js";
9
+ } from "./chunk-KXHJA6WM.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-SUFIDLFX.js");
1204
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-24U27GCS.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-BZUZ6P6O.js.map
1306
+ //# sourceMappingURL=chunk-F4K63ZYW.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-BZUZ6P6O.js";
24
+ } from "./chunk-F4K63ZYW.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-GHD3CUV7.js";
@@ -47,7 +47,7 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-KTVP7FRA.js";
50
+ } from "./chunk-QDRH7QJD.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-QNXB6PVL.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-LLGYR7KF.js";
67
+ } from "./chunk-6D5BIVED.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-767D24JM.js";
91
+ } from "./chunk-R2QMJAUF.js";
92
92
  import {
93
93
  createAuditTrail,
94
94
  createGraphAuditBridge,
@@ -47358,7 +47358,7 @@ ${contextBlock}`;
47358
47358
  const strategy = config.votingStrategy ?? "higher_order";
47359
47359
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47360
47360
  try {
47361
- const { executeVoting } = await import("./consensus-vote-M6LEXIR7.js");
47361
+ const { executeVoting } = await import("./consensus-vote-4FIT5MTP.js");
47362
47362
  const votingResult = await executeVoting(
47363
47363
  {
47364
47364
  proposal: buildVoteProposal(plan, research),
@@ -55989,4 +55989,4 @@ export {
55989
55989
  shutdownFeedbackSubscriber,
55990
55990
  createEventBusBridge
55991
55991
  };
55992
- //# sourceMappingURL=chunk-4FQGYWI4.js.map
55992
+ //# sourceMappingURL=chunk-JI4VNHV5.js.map
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var VERSION = true ? "6.1.5" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-KXHJA6WM.js.map
@@ -23,7 +23,7 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-767D24JM.js";
26
+ } from "./chunk-R2QMJAUF.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
@@ -4673,6 +4673,13 @@ function applyAbsoluteQuorumTelemetry(response, input, decision, degradeReason)
4673
4673
  response.panelWarning ??= degradeReason;
4674
4674
  }
4675
4675
  }
4676
+ function appliedThresholdFor(strategy) {
4677
+ const algorithm = strategy ?? "simple_majority";
4678
+ const bar = VOTING_THRESHOLDS[algorithm];
4679
+ if (bar >= 1) return "unanimous";
4680
+ if (bar >= SUPERMAJORITY_THRESHOLD) return "supermajority";
4681
+ return "majority";
4682
+ }
4676
4683
  function buildResponse(input, result, costSummary, voteRecord) {
4677
4684
  const proposalTruncated = input.proposal.length > 200 ? input.proposal.slice(0, 200) + "..." : input.proposal;
4678
4685
  const errorCount = result.votes.filter((v) => v.source === "error").length;
@@ -4718,9 +4725,7 @@ function buildResponse(input, result, costSummary, voteRecord) {
4718
4725
  return response;
4719
4726
  }
4720
4727
  function applyOptionalResponseFields(response, input, result, errorCount, costSummary) {
4721
- if (input.threshold !== void 0) {
4722
- response.threshold = input.threshold;
4723
- }
4728
+ response.threshold = appliedThresholdFor(result.strategy);
4724
4729
  if (result.policyReason !== void 0) {
4725
4730
  response.policyReason = result.policyReason;
4726
4731
  }
@@ -6873,4 +6878,4 @@ export {
6873
6878
  CONSENSUS_VOTE_TOOL_SCHEMA,
6874
6879
  registerConsensusVoteTool
6875
6880
  };
6876
- //# sourceMappingURL=chunk-KTVP7FRA.js.map
6881
+ //# sourceMappingURL=chunk-QDRH7QJD.js.map