nexus-agents 3.6.13 → 3.6.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.
@@ -1,3 +1,6 @@
1
+ import {
2
+ allOf
3
+ } from "./chunk-KYVWCL7O.js";
1
4
  import {
2
5
  computeCostDetail
3
6
  } from "./chunk-6WRQIEKK.js";
@@ -3339,7 +3342,11 @@ var VotingProtocol = class {
3339
3342
  if (session.currentRound < 3) return Promise.resolve(null);
3340
3343
  const consensusRound = session.rounds[2];
3341
3344
  if (!consensusRound) return Promise.resolve(null);
3342
- const allVoted = session.committee.every((agentId) => consensusRound.finalVotes.has(agentId));
3345
+ const allVoted = allOf(
3346
+ session.committee,
3347
+ (agentId) => consensusRound.finalVotes.has(agentId),
3348
+ false
3349
+ );
3343
3350
  if (!allVoted) return Promise.resolve(null);
3344
3351
  const result = this.buildFinalResult(session);
3345
3352
  session.finalResult = result;
@@ -6744,4 +6751,4 @@ export {
6744
6751
  CONSENSUS_VOTE_TOOL_SCHEMA,
6745
6752
  registerConsensusVoteTool
6746
6753
  };
6747
- //# sourceMappingURL=chunk-EOIQRW7A.js.map
6754
+ //# sourceMappingURL=chunk-G3D7AJ3C.js.map