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.
- package/dist/{chunk-MPFPHE65.js → chunk-2EIW5DWE.js} +14 -4
- package/dist/chunk-2EIW5DWE.js.map +1 -0
- package/dist/{chunk-D5U2I6EE.js → chunk-BD3Y6A5Q.js} +2 -2
- package/dist/{chunk-F5W2ULJZ.js → chunk-NQ4ROOA3.js} +2 -2
- package/dist/{chunk-ZDRVAMRL.js → chunk-RKQOM7EB.js} +106 -104
- package/dist/chunk-RKQOM7EB.js.map +1 -0
- package/dist/{chunk-L3ZHMEV2.js → chunk-V6BRGJGM.js} +7 -7
- package/dist/{chunk-C4HYXB6P.js → chunk-XCX6SI4A.js} +3 -3
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-7KDWXAJB.js → consensus-vote-NUISIJFX.js} +4 -6
- package/dist/{improvement-review-UHALZ5AI.js → improvement-review-PU3ZH7SL.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-KFSR7X2F.js → setup-data-dir-ICAEBXQO.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-MPFPHE65.js.map +0 -1
- package/dist/chunk-ZDRVAMRL.js.map +0 -1
- /package/dist/{chunk-D5U2I6EE.js.map → chunk-BD3Y6A5Q.js.map} +0 -0
- /package/dist/{chunk-F5W2ULJZ.js.map → chunk-NQ4ROOA3.js.map} +0 -0
- /package/dist/{chunk-L3ZHMEV2.js.map → chunk-V6BRGJGM.js.map} +0 -0
- /package/dist/{chunk-C4HYXB6P.js.map → chunk-XCX6SI4A.js.map} +0 -0
- /package/dist/{consensus-vote-7KDWXAJB.js.map → consensus-vote-NUISIJFX.js.map} +0 -0
- /package/dist/{improvement-review-UHALZ5AI.js.map → improvement-review-PU3ZH7SL.js.map} +0 -0
- /package/dist/{setup-data-dir-KFSR7X2F.js.map → setup-data-dir-ICAEBXQO.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
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(
|
|
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:
|
|
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-
|
|
2377
|
+
//# sourceMappingURL=chunk-2EIW5DWE.js.map
|