nexus-agents 2.151.1 → 2.152.0
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-UIL37D2V.js → chunk-447YUGJD.js} +11 -2
- package/dist/chunk-447YUGJD.js.map +1 -0
- package/dist/{chunk-IR7FP4SS.js → chunk-4RJB246Z.js} +28 -16
- package/dist/{chunk-IR7FP4SS.js.map → chunk-4RJB246Z.js.map} +1 -1
- package/dist/{chunk-QL4Q3HUO.js → chunk-FOC2KDKV.js} +2 -2
- package/dist/{chunk-SJFARLAQ.js → chunk-GKZ3GPB3.js} +3 -3
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +59 -19
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-72AX6HNF.js → consensus-vote-VPHFIIMN.js} +2 -2
- package/dist/consensus-vote-types-B06ynHGk.d.ts +841 -0
- package/dist/index.d.ts +34 -481
- package/dist/index.js +51 -15
- package/dist/index.js.map +1 -1
- package/dist/{setup-command-IQ7WFZIM.js → setup-command-EQ6XG2QV.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-UIL37D2V.js.map +0 -1
- package/dist/consensus-vote-types-DOCnPzfx.d.ts +0 -357
- /package/dist/{chunk-QL4Q3HUO.js.map → chunk-FOC2KDKV.js.map} +0 -0
- /package/dist/{chunk-SJFARLAQ.js.map → chunk-GKZ3GPB3.js.map} +0 -0
- /package/dist/{consensus-vote-72AX6HNF.js.map → consensus-vote-VPHFIIMN.js.map} +0 -0
- /package/dist/{setup-command-IQ7WFZIM.js.map → setup-command-EQ6XG2QV.js.map} +0 -0
|
@@ -4473,7 +4473,9 @@ function applyAbsoluteQuorumTelemetry(response, input, decision, degradeReason)
|
|
|
4473
4473
|
function buildResponse(input, result, costSummary, voteRecord) {
|
|
4474
4474
|
const proposalTruncated = input.proposal.length > 200 ? input.proposal.slice(0, 200) + "..." : input.proposal;
|
|
4475
4475
|
const errorCount = result.votes.filter((v) => v.source === "error").length;
|
|
4476
|
-
const
|
|
4476
|
+
const resolved = resolveVoteDecision(input, result, errorCount);
|
|
4477
|
+
const decision = result.decision ?? resolved.decision;
|
|
4478
|
+
const { degradeReason } = resolved;
|
|
4477
4479
|
const response = {
|
|
4478
4480
|
proposal: proposalTruncated,
|
|
4479
4481
|
strategy: result.strategy,
|
|
@@ -5957,6 +5959,12 @@ async function maybeEscalateContrarian(input, outcome, ctx, logger10, opts) {
|
|
|
5957
5959
|
return { escalated: await executeVoting({ ...input, quickMode: false }, logger10, opts) };
|
|
5958
5960
|
}
|
|
5959
5961
|
async function executeVoting(input, logger10, opts) {
|
|
5962
|
+
const result = await executeVotingInner(input, logger10, opts);
|
|
5963
|
+
const errorCount = result.votes.filter((v) => v.source === "error").length;
|
|
5964
|
+
result.decision = resolveVoteDecision(input, result, errorCount).decision;
|
|
5965
|
+
return result;
|
|
5966
|
+
}
|
|
5967
|
+
async function executeVotingInner(input, logger10, opts) {
|
|
5960
5968
|
const strategy = resolveStrategy(input);
|
|
5961
5969
|
const algorithm = strategyToAlgorithm(strategy);
|
|
5962
5970
|
const roles = getVoterRoles(input.quickMode);
|
|
@@ -6370,6 +6378,7 @@ export {
|
|
|
6370
6378
|
ErrorPolicySchema,
|
|
6371
6379
|
VoteThresholdSchema,
|
|
6372
6380
|
ConsensusVoteInputSchema,
|
|
6381
|
+
mapOutcomeToDecision,
|
|
6373
6382
|
recordDecisionCost,
|
|
6374
6383
|
warnIfSimulatedOutsideTests,
|
|
6375
6384
|
resetCorrelationTracker,
|
|
@@ -6380,4 +6389,4 @@ export {
|
|
|
6380
6389
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
6381
6390
|
registerConsensusVoteTool
|
|
6382
6391
|
};
|
|
6383
|
-
//# sourceMappingURL=chunk-
|
|
6392
|
+
//# sourceMappingURL=chunk-447YUGJD.js.map
|