nexus-agents 8.54.13 → 8.54.15

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-F5W2ULJZ.js";
3
+ } from "./chunk-NQ4ROOA3.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-MG7XTYJW.js";
@@ -2167,6 +2167,14 @@ var ERROR_FLOOR_FRACTION = 0.5;
2167
2167
 
2168
2168
  // src/consensus/types-core.ts
2169
2169
  import { z as z3 } from "zod";
2170
+
2171
+ // src/consensus/decision/quorum.ts
2172
+ var DEFAULT_MIN_VOTERS_FOR_QUORUM = 2;
2173
+ function isQuorumReached(voteCount, minVotersForQuorum) {
2174
+ return voteCount >= minVotersForQuorum;
2175
+ }
2176
+
2177
+ // src/consensus/types-core.ts
2170
2178
  var ConsensusAlgorithmSchema = z3.enum([
2171
2179
  "simple_majority",
2172
2180
  "supermajority",
@@ -2279,7 +2287,7 @@ var ProposalCacheConfigSchema = z3.object({
2279
2287
  var ConsensusEngineConfigSchema = z3.object({
2280
2288
  defaultTimeout: z3.number().int().positive().default(3e5),
2281
2289
  // 5 minutes
2282
- minVotersForQuorum: z3.number().int().positive().default(2),
2290
+ minVotersForQuorum: z3.number().int().positive().default(DEFAULT_MIN_VOTERS_FOR_QUORUM),
2283
2291
  maxActiveProposals: z3.number().int().positive().default(100),
2284
2292
  enablePerformanceTracking: z3.boolean().default(true),
2285
2293
  maxClosedProposals: z3.number().int().positive().default(1e3),
@@ -2290,7 +2298,8 @@ var ConsensusEngineConfigSchema = z3.object({
2290
2298
  var DEFAULT_CONSENSUS_CONFIG = {
2291
2299
  defaultTimeout: 3e5,
2292
2300
  // 5 minutes
2293
- minVotersForQuorum: 2,
2301
+ minVotersForQuorum: DEFAULT_MIN_VOTERS_FOR_QUORUM,
2302
+ // governed: decision/quorum.ts (#6180)
2294
2303
  maxActiveProposals: 100,
2295
2304
  enablePerformanceTracking: true,
2296
2305
  maxClosedProposals: 1e3
@@ -2351,6 +2360,7 @@ export {
2351
2360
  SUPERMAJORITY_THRESHOLD,
2352
2361
  VOTING_THRESHOLDS,
2353
2362
  ERROR_FLOOR_FRACTION,
2363
+ isQuorumReached,
2354
2364
  ConsensusAlgorithmSchema,
2355
2365
  ProposalStatusSchema,
2356
2366
  RejectionCategorySchema,
@@ -2364,4 +2374,4 @@ export {
2364
2374
  DEFAULT_CONSENSUS_CONFIG,
2365
2375
  ConsensusMetricsSchema
2366
2376
  };
2367
- //# sourceMappingURL=chunk-MPFPHE65.js.map
2377
+ //# sourceMappingURL=chunk-2EIW5DWE.js.map