nexus-agents 8.54.13 → 8.54.14

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.
@@ -18,16 +18,17 @@ import {
18
18
  createSecureHandler,
19
19
  getToolAnnotations,
20
20
  getToolTimeout,
21
+ isQuorumReached,
21
22
  toSdkCallbackWithBudgetCheck,
22
23
  toolStructuredError,
23
24
  toolSuccess,
24
25
  toolSuccessStructured,
25
26
  withProgressHeartbeat,
26
27
  wrapToolWithTimeout
27
- } from "./chunk-MPFPHE65.js";
28
+ } from "./chunk-GOJL7V5S.js";
28
29
  import {
29
30
  VERSION
30
- } from "./chunk-F5W2ULJZ.js";
31
+ } from "./chunk-BOXTTA7E.js";
31
32
  import {
32
33
  UNRESOLVED_MODEL_ID,
33
34
  assessPanelIndependence,
@@ -2661,7 +2662,7 @@ function buildPendingResult(state, proposalId, outcome, config) {
2661
2662
  weightedCounts: outcome.weightedCounts,
2662
2663
  weightBasis: outcome.weightBasis,
2663
2664
  approvalPercentage: outcome.approvalPercentage,
2664
- quorumReached: state.votes.size >= config.minVotersForQuorum,
2665
+ quorumReached: isQuorumReached(state.votes.size, config.minVotersForQuorum),
2665
2666
  startedAt: state.startedAt.toISOString(),
2666
2667
  closedAt: now.toISOString(),
2667
2668
  durationMs: now.getTime() - state.startedAt.getTime()
@@ -2669,7 +2670,7 @@ function buildPendingResult(state, proposalId, outcome, config) {
2669
2670
  }
2670
2671
  function buildFinalResult(state, proposalId, outcome, config) {
2671
2672
  const now = new Date(getTimeProvider().now());
2672
- const quorumReached = state.votes.size >= config.minVotersForQuorum;
2673
+ const quorumReached = isQuorumReached(state.votes.size, config.minVotersForQuorum);
2673
2674
  const finalStatus = determineFinalStatus(quorumReached, outcome.approved);
2674
2675
  return {
2675
2676
  proposalId,
@@ -2697,7 +2698,7 @@ function buildTimeoutResult(state, proposalId, outcome, config) {
2697
2698
  weightedCounts: outcome.weightedCounts,
2698
2699
  weightBasis: outcome.weightBasis,
2699
2700
  approvalPercentage: outcome.approvalPercentage,
2700
- quorumReached: state.votes.size >= config.minVotersForQuorum,
2701
+ quorumReached: isQuorumReached(state.votes.size, config.minVotersForQuorum),
2701
2702
  startedAt: state.startedAt.toISOString(),
2702
2703
  closedAt: now.toISOString(),
2703
2704
  durationMs: now.getTime() - state.startedAt.getTime()
@@ -8512,4 +8513,4 @@ export {
8512
8513
  CONSENSUS_VOTE_TOOL_SCHEMA,
8513
8514
  registerConsensusVoteTool
8514
8515
  };
8515
- //# sourceMappingURL=chunk-ZDRVAMRL.js.map
8516
+ //# sourceMappingURL=chunk-4I2LUNEB.js.map