nexus-agents 2.152.1 → 2.153.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.
@@ -838,4 +838,4 @@ interface ConsensusVoteResponse {
838
838
  voteRecordNote?: string;
839
839
  }
840
840
 
841
- export { type AgentPerformance as A, type RejectionCategory as B, type CliNameLiteral as C, type DecisionCostSummary as D, RejectionCategorySchema as E, VOTING_THRESHOLDS as F, type VoteDecisionStatus as G, VoteSchema as H, type InputModality as I, type VoteThreshold as J, type ErrorPolicy as K, type ModelId as M, type NoQuorumPolicy as N, type OutputModality as O, type Pricing as P, type QualityScores as Q, REJECTION_CATEGORIES as R, type SpecialFeature as S, type ToolCapability as T, type Vote as V, type WeightedVoteCounts as W, type VoteDecision as a, type VoterRole as b, type ConsensusAlgorithm as c, type VoteCounts as d, type ProposalState as e, type ProposalId as f, type ConsensusEngineConfig as g, type ConsensusResult as h, type ProposalStatus as i, type Proposal as j, type ConsensusMetrics as k, type VoterExpansionCallback as l, type AgentVoteResult as m, type VotingStrategy as n, AgentPerformanceSchema as o, type AgentVoteSummary as p, ConsensusAlgorithmSchema as q, ConsensusEngineConfigSchema as r, ConsensusMetricsSchema as s, ConsensusResultSchema as t, type ConsensusVoteInput as u, ConsensusVoteInputSchema as v, type ConsensusVoteResponse as w, DEFAULT_CONSENSUS_CONFIG as x, ProposalSchema as y, ProposalStatusSchema as z };
841
+ export { type AgentPerformance as A, type RejectionCategory as B, type CliNameLiteral as C, type DecisionCostSummary as D, type ErrorPolicy as E, RejectionCategorySchema as F, VOTING_THRESHOLDS as G, type VoteDecisionStatus as H, type InputModality as I, VoteSchema as J, type VoteThreshold as K, type ModelId as M, type NoQuorumPolicy as N, type OutputModality as O, type Pricing as P, type QualityScores as Q, REJECTION_CATEGORIES as R, type SpecialFeature as S, type ToolCapability as T, type Vote as V, type WeightedVoteCounts as W, type VoteDecision as a, type VoterRole as b, type ConsensusAlgorithm as c, type VoteCounts as d, type ProposalState as e, type ProposalId as f, type ConsensusEngineConfig as g, type ConsensusResult as h, type ProposalStatus as i, type Proposal as j, type ConsensusMetrics as k, type VoterExpansionCallback as l, type AgentVoteResult as m, type VotingStrategy as n, AgentPerformanceSchema as o, type AgentVoteSummary as p, ConsensusAlgorithmSchema as q, ConsensusEngineConfigSchema as r, ConsensusMetricsSchema as s, ConsensusResultSchema as t, type ConsensusVoteInput as u, ConsensusVoteInputSchema as v, type ConsensusVoteResponse as w, DEFAULT_CONSENSUS_CONFIG as x, ProposalSchema as y, ProposalStatusSchema as z };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ZodError, z, ZodType, ZodSafeParseResult } from 'zod';
2
- import { C as CliNameLiteral, I as InputModality, O as OutputModality, T as ToolCapability, S as SpecialFeature, P as Pricing, Q as QualityScores, M as ModelId, V as Vote, a as VoteDecision$1, b as VoterRole, D as DecisionCostSummary, c as ConsensusAlgorithm, d as VoteCounts, W as WeightedVoteCounts, A as AgentPerformance, e as ProposalState, f as ProposalId, g as ConsensusEngineConfig, h as ConsensusResult, i as ProposalStatus, j as Proposal, k as ConsensusMetrics, l as VoterExpansionCallback, m as AgentVoteResult, n as VotingStrategy } from './consensus-vote-types-B06ynHGk.js';
3
- export { o as AgentPerformanceSchema, p as AgentVoteSummary, q as ConsensusAlgorithmSchema, r as ConsensusEngineConfigSchema, s as ConsensusMetricsSchema, t as ConsensusResultSchema, u as ConsensusVoteInput, v as ConsensusVoteInputSchema, w as ConsensusVoteResponse, x as DEFAULT_CONSENSUS_CONFIG, y as ProposalSchema, z as ProposalStatusSchema, R as REJECTION_CATEGORIES, B as RejectionCategory, E as RejectionCategorySchema, F as VOTING_THRESHOLDS, G as VoteDecisionStatus, H as VoteSchema } from './consensus-vote-types-B06ynHGk.js';
2
+ import { C as CliNameLiteral, I as InputModality, O as OutputModality, T as ToolCapability, S as SpecialFeature, P as Pricing, Q as QualityScores, M as ModelId, V as Vote, a as VoteDecision$1, b as VoterRole, D as DecisionCostSummary, c as ConsensusAlgorithm, d as VoteCounts, W as WeightedVoteCounts, A as AgentPerformance, e as ProposalState, f as ProposalId, g as ConsensusEngineConfig, h as ConsensusResult, i as ProposalStatus, j as Proposal, k as ConsensusMetrics, l as VoterExpansionCallback, m as AgentVoteResult, n as VotingStrategy, E as ErrorPolicy } from './consensus-vote-types-BNBMB415.js';
3
+ export { o as AgentPerformanceSchema, p as AgentVoteSummary, q as ConsensusAlgorithmSchema, r as ConsensusEngineConfigSchema, s as ConsensusMetricsSchema, t as ConsensusResultSchema, u as ConsensusVoteInput, v as ConsensusVoteInputSchema, w as ConsensusVoteResponse, x as DEFAULT_CONSENSUS_CONFIG, y as ProposalSchema, z as ProposalStatusSchema, R as REJECTION_CATEGORIES, B as RejectionCategory, F as RejectionCategorySchema, G as VOTING_THRESHOLDS, H as VoteDecisionStatus, J as VoteSchema } from './consensus-vote-types-BNBMB415.js';
4
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
5
  import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
6
6
 
@@ -33498,6 +33498,14 @@ interface IterativeConsensusConfig {
33498
33498
  readonly quickMode?: boolean | undefined;
33499
33499
  /** Voting strategy (default: 'higher_order'). */
33500
33500
  readonly strategy?: VotingStrategy | undefined;
33501
+ /**
33502
+ * #4138: error policy for the vote (default: 'absolute_quorum'). The dev-pipeline
33503
+ * plan gate opts in to `absolute_quorum` so an errored voter — especially the
33504
+ * contrarian — degrades to a recoverable `no_quorum` (which the bounded
33505
+ * `maxNoQuorumRetries` re-run then terminal path already honors) instead of being
33506
+ * silently dropped from the denominator. Overridable per-caller.
33507
+ */
33508
+ readonly errorPolicy?: ErrorPolicy | undefined;
33501
33509
  /**
33502
33510
  * #4135: how many times to re-run the SAME plan when a vote returns
33503
33511
  * `no_quorum` — a missing/errored voice, not a rejection — before giving up
package/dist/index.js CHANGED
@@ -520,7 +520,7 @@ import {
520
520
  validateWorkflow,
521
521
  validateWorkflowDependencies,
522
522
  withLogging
523
- } from "./chunk-KZUJBQYH.js";
523
+ } from "./chunk-C6S6L5WB.js";
524
524
  import {
525
525
  OPENAI_MODELS,
526
526
  OPENAI_MODEL_ALIASES,
@@ -560,7 +560,7 @@ import {
560
560
  getKnownNexusVarNames,
561
561
  startStdioServer,
562
562
  validateNexusEnv
563
- } from "./chunk-FQEYEH7X.js";
563
+ } from "./chunk-EJXJNWV6.js";
564
564
  import {
565
565
  CliCircuitBreakerIntegration,
566
566
  createCliCircuitBreakerIntegration
@@ -5974,12 +5974,15 @@ function buildExhaustedResult(state, maxIter) {
5974
5974
  return { vote: state.lastVote ?? fallback, iterations: maxIter, durationMs: totalMs };
5975
5975
  }
5976
5976
  function buildVotingInput(plan, config) {
5977
- const maxLen = config?.maxProposalLength ?? DEFAULT_MAX_PROPOSAL_LENGTH;
5977
+ const c = config ?? {};
5978
+ const maxLen = c.maxProposalLength ?? DEFAULT_MAX_PROPOSAL_LENGTH;
5978
5979
  return {
5979
5980
  proposal: plan.slice(0, maxLen),
5980
- strategy: config?.strategy ?? DEFAULT_STRATEGY,
5981
- simulateVotes: config?.simulateVotes ?? false,
5982
- quickMode: config?.quickMode ?? false
5981
+ strategy: c.strategy ?? DEFAULT_STRATEGY,
5982
+ simulateVotes: c.simulateVotes ?? false,
5983
+ quickMode: c.quickMode ?? false,
5984
+ // #4138: the dev-pipeline plan gate opts in to absolute_quorum (overridable).
5985
+ errorPolicy: c.errorPolicy ?? "absolute_quorum"
5983
5986
  };
5984
5987
  }
5985
5988
  async function executeSingleVote(plan, config, log) {