nexus-agents 9.0.2 → 9.1.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.
Files changed (25) hide show
  1. package/dist/{chunk-3OBOVCFZ.js → chunk-AI4DWDDD.js} +2 -2
  2. package/dist/{chunk-3OBOVCFZ.js.map → chunk-AI4DWDDD.js.map} +1 -1
  3. package/dist/{chunk-FSM6ZCVF.js → chunk-BQPQIOEB.js} +2 -2
  4. package/dist/{chunk-L25VW7RC.js → chunk-IHSX3WQN.js} +3 -3
  5. package/dist/{chunk-SFILA57C.js → chunk-JHLMYOPG.js} +11 -9
  6. package/dist/{chunk-SFILA57C.js.map → chunk-JHLMYOPG.js.map} +1 -1
  7. package/dist/{chunk-EF5FB4QM.js → chunk-RJDZOOPA.js} +2 -2
  8. package/dist/{chunk-GZHDEMLN.js → chunk-V5CYHQ7H.js} +170 -88
  9. package/dist/chunk-V5CYHQ7H.js.map +1 -0
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +7 -7
  12. package/dist/{consensus-vote-THWFSBC7.js → consensus-vote-4NUYMBIC.js} +4 -4
  13. package/dist/{consensus-vote-types-D2RbRYve.d.ts → consensus-vote-types-B001FCSw.d.ts} +10 -1
  14. package/dist/{improvement-review-FQRJMLHU.js → improvement-review-J2DWPLWX.js} +4 -4
  15. package/dist/index.d.ts +5 -3
  16. package/dist/index.js +6 -6
  17. package/dist/{setup-data-dir-XCHPJFBD.js → setup-data-dir-CSNTWHYS.js} +3 -3
  18. package/package.json +1 -1
  19. package/dist/chunk-GZHDEMLN.js.map +0 -1
  20. /package/dist/{chunk-FSM6ZCVF.js.map → chunk-BQPQIOEB.js.map} +0 -0
  21. /package/dist/{chunk-L25VW7RC.js.map → chunk-IHSX3WQN.js.map} +0 -0
  22. /package/dist/{chunk-EF5FB4QM.js.map → chunk-RJDZOOPA.js.map} +0 -0
  23. /package/dist/{consensus-vote-THWFSBC7.js.map → consensus-vote-4NUYMBIC.js.map} +0 -0
  24. /package/dist/{improvement-review-FQRJMLHU.js.map → improvement-review-J2DWPLWX.js.map} +0 -0
  25. /package/dist/{setup-data-dir-XCHPJFBD.js.map → setup-data-dir-CSNTWHYS.js.map} +0 -0
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { aK as VoteThreshold, a6 as VotingStrategy, aL as VoteRecordPrBinding, a7 as ErrorPolicy, aM as NoQuorumPolicy } from './consensus-vote-types-D2RbRYve.js';
2
+ import { aK as VoteThreshold, a6 as VotingStrategy, aL as VoteRecordPrBinding, a7 as ErrorPolicy, aM as NoQuorumPolicy } from './consensus-vote-types-B001FCSw.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
package/dist/cli.js CHANGED
@@ -165,7 +165,7 @@ import {
165
165
  validateWorkflow,
166
166
  withPanelWorkspace,
167
167
  wrapInMarkdownFence
168
- } from "./chunk-SFILA57C.js";
168
+ } from "./chunk-JHLMYOPG.js";
169
169
  import "./chunk-D26ZNDI3.js";
170
170
  import "./chunk-WDAND5YU.js";
171
171
  import {
@@ -189,7 +189,7 @@ import {
189
189
  registerConsensusVoteTool,
190
190
  seatFallbacks,
191
191
  toRecordDecision
192
- } from "./chunk-GZHDEMLN.js";
192
+ } from "./chunk-V5CYHQ7H.js";
193
193
  import {
194
194
  synthesizeResearch
195
195
  } from "./chunk-C5P5D45H.js";
@@ -227,14 +227,14 @@ import {
227
227
  renderPlanAsResearch,
228
228
  runImprovementReview,
229
229
  scanForSecrets
230
- } from "./chunk-3OBOVCFZ.js";
230
+ } from "./chunk-AI4DWDDD.js";
231
231
  import {
232
232
  getGlobalExecutionMode,
233
233
  setGlobalExecutionMode,
234
234
  setGlobalPolicyFirewall,
235
235
  setSecureHandlerAuditLogger,
236
236
  stagePolicyFirewallForRollout
237
- } from "./chunk-EF5FB4QM.js";
237
+ } from "./chunk-RJDZOOPA.js";
238
238
  import "./chunk-7ZZHQ6H3.js";
239
239
  import "./chunk-4GDMHCKX.js";
240
240
  import "./chunk-3UWT434E.js";
@@ -299,7 +299,7 @@ import {
299
299
  initDataDirectories,
300
300
  printDoctorSummary,
301
301
  runDoctor
302
- } from "./chunk-L25VW7RC.js";
302
+ } from "./chunk-IHSX3WQN.js";
303
303
  import {
304
304
  allOf,
305
305
  anyOf
@@ -308,7 +308,7 @@ import {
308
308
  NODE_ENGINE_RANGE,
309
309
  VERSION,
310
310
  isNodeVersionSupported
311
- } from "./chunk-FSM6ZCVF.js";
311
+ } from "./chunk-BQPQIOEB.js";
312
312
  import "./chunk-FVYQWWPB.js";
313
313
  import {
314
314
  GatewayHostRefusedError,
@@ -20102,7 +20102,7 @@ function startImprovementReviewScheduler(options) {
20102
20102
  let running = false;
20103
20103
  const runOnce = async () => {
20104
20104
  try {
20105
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-FQRJMLHU.js");
20105
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-J2DWPLWX.js");
20106
20106
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
20107
20107
  const result = await runImprovementReview2(input, { logger: logger23 });
20108
20108
  logger23.info("Scheduled improvement_review complete", {
@@ -10,12 +10,12 @@ import {
10
10
  resetCorrelationTracker,
11
11
  runConsensusForGoal,
12
12
  unwrapVoteOrThrow
13
- } from "./chunk-GZHDEMLN.js";
14
- import "./chunk-EF5FB4QM.js";
13
+ } from "./chunk-V5CYHQ7H.js";
14
+ import "./chunk-RJDZOOPA.js";
15
15
  import "./chunk-WNVJQ5SC.js";
16
16
  import "./chunk-ZO6ZKR7L.js";
17
17
  import "./chunk-EZNIYU5T.js";
18
- import "./chunk-FSM6ZCVF.js";
18
+ import "./chunk-BQPQIOEB.js";
19
19
  import "./chunk-T5IBXFFY.js";
20
20
  import "./chunk-7JYW5F77.js";
21
21
  import "./chunk-MGVYGV7P.js";
@@ -55,4 +55,4 @@ export {
55
55
  runConsensusForGoal,
56
56
  unwrapVoteOrThrow
57
57
  };
58
- //# sourceMappingURL=consensus-vote-THWFSBC7.js.map
58
+ //# sourceMappingURL=consensus-vote-4NUYMBIC.js.map
@@ -2404,6 +2404,8 @@ interface AgentVoteResult {
2404
2404
  * the primary assignment when router failover serves the vote elsewhere.
2405
2405
  */
2406
2406
  readonly pinnedModel?: string | undefined;
2407
+ /** Ignored operator pins and this seat's primary assignment, disclosed in panelWarning. */
2408
+ readonly modelPinWarning?: string | undefined;
2407
2409
  /**
2408
2410
  * The CLI the round-robin or `NEXUS_VOTER_MODEL_<ROLE>` pin chose for this
2409
2411
  * seat (#6115), as a bare name (`claude`, not `cli-claude`). Unlike
@@ -2494,7 +2496,8 @@ interface AgentVoteResult {
2494
2496
  * one, so "7 of 7 on gemini" was visible only to someone who knew the
2495
2497
  * round-robin. This module measures what the response and the summary line
2496
2498
  * disclose: how many distinct models actually answered, and how many seats
2497
- * answered somewhere other than where they were assigned.
2499
+ * answered somewhere other than where they were assigned, and the distinct
2500
+ * assigned models and families across the full roster.
2498
2501
  *
2499
2502
  * Shared by the MCP response (`consensus-vote-types`) and the CLI / GitHub
2500
2503
  * renderings (`vote-summary-lines`) so the two cannot drift.
@@ -2681,6 +2684,8 @@ interface AgentVoteSummary {
2681
2684
  * {@link MODEL_USED_MAX_CHARS} to fit the advertised output schema.
2682
2685
  */
2683
2686
  modelUsed?: string;
2687
+ /** Model assigned before execution, including seats that errored or abstained. */
2688
+ assignedModel?: string;
2684
2689
  /** Structured rejection categories for reject→refine→re-vote loops (Issue #1213). */
2685
2690
  rejectionCategories?: readonly RejectionCategory[];
2686
2691
  /**
@@ -2857,6 +2862,10 @@ interface ConsensusVoteResponse {
2857
2862
  * panel of 3+ seats.
2858
2863
  */
2859
2864
  panelDiversity: PanelDiversity;
2865
+ /** Distinct assigned models over all seats; absent when no assignment resolved. */
2866
+ assignedDistinctModels?: number;
2867
+ /** Recognised families over all assigned models; absent when no assignment resolved. */
2868
+ assignedDistinctFamilies?: number;
2860
2869
  /**
2861
2870
  * Per-decision cost rollup (#3855): per-voter / per-model token + USD totals
2862
2871
  * for this governed decision. Rides the existing response — no new MCP tool.
@@ -10,9 +10,9 @@ import {
10
10
  loadSelfEvalSignals,
11
11
  registerImprovementReviewTool,
12
12
  runImprovementReview
13
- } from "./chunk-3OBOVCFZ.js";
14
- import "./chunk-EF5FB4QM.js";
15
- import "./chunk-FSM6ZCVF.js";
13
+ } from "./chunk-AI4DWDDD.js";
14
+ import "./chunk-RJDZOOPA.js";
15
+ import "./chunk-BQPQIOEB.js";
16
16
  import "./chunk-ECJ52NSK.js";
17
17
  import "./chunk-AJ37AWCG.js";
18
18
  import "./chunk-NHNXANOF.js";
@@ -34,4 +34,4 @@ export {
34
34
  registerImprovementReviewTool,
35
35
  runImprovementReview
36
36
  };
37
- //# sourceMappingURL=improvement-review-FQRJMLHU.js.map
37
+ //# sourceMappingURL=improvement-review-J2DWPLWX.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Result, C as CliNameLiteral, A as AgentError$1, a as CliName, b as CliTransport, E as ExecutionAccessMode, c as CliResponse, d as CliError, H as HealthStatus, e as CapacityStatus, T as TokenUsage, O as ObservedArmId, M as ModelEntry, f as ResolvedModelIdentity, g as ModelRegistry, h as RoutingArmId, W as WorkflowError, i as ModelId, I as IModelAdapter, j as ConfigError, N as NexusError, k as ModelError, l as NexusErrorOptions, m as ModelCapability, n as CompletionRequest, o as CompletionResponse, S as StreamChunk, p as ModelMetadata, V as VersionStatus, q as EndpointArmId, r as ErrorCode, s as ValidationError$1, t as Message, u as ToolDefinition, v as ModelHints, w as SecurityError, D as DispatchEnum, x as RejectedModeKey, y as ConsensusAlgorithm, z as Vote, B as VoteDecision$1, P as ProposalStatus, F as VoteRecordDecision, G as ObservedAttemptUsage, J as VoterRole, K as AgentVoteResult, L as ResolvedVoterProject, Q as DecisionCostSummary, U as CliErrorCode, X as CliPermissionDenial, Y as VoteCounts, Z as WeightedVoteCounts, _ as WeightBasis, $ as ProposalState, a0 as ProposalId, a1 as ConsensusEngineConfig, a2 as ConsensusResult, a3 as Proposal, a4 as ConsensusMetrics, a5 as VoterExpansionCallback, a6 as VotingStrategy, a7 as ErrorPolicy } from './consensus-vote-types-D2RbRYve.js';
2
- export { a8 as AgentVoteSummary, a9 as ConsensusAlgorithmSchema, aa as ConsensusEngineConfigSchema, ab as ConsensusMetricsSchema, ac as ConsensusResultSchema, ad as ConsensusVoteInput, ae as ConsensusVoteInputSchema, af as ConsensusVoteResponse, ag as ContentBlock, ah as DEFAULT_CONSENSUS_CONFIG, ai as EntrySource, aj as MessageRole, ak as ModelPricingProvenance, al as ModelRegistryOptions, am as PromptCachingMode, an as ProposalSchema, ao as ProposalStatusSchema, ap as REJECTION_CATEGORIES, aq as RateLimitError, ar as RejectionCategory, as as RejectionCategorySchema, at as SerializedError, au as StopReason, av as TimeoutError, aw as TokenUsage, ax as ToolDefinitionFormat, ay as VoteDecisionStatus, az as VoteSchema, aA as err, aB as getDefaultRegistry, aC as isErr, aD as isOk, aE as map, aF as mapErr, aG as ok, aH as setDefaultRegistry, aI as unwrap, aJ as unwrapOr } from './consensus-vote-types-D2RbRYve.js';
1
+ import { R as Result, C as CliNameLiteral, A as AgentError$1, a as CliName, b as CliTransport, E as ExecutionAccessMode, c as CliResponse, d as CliError, H as HealthStatus, e as CapacityStatus, T as TokenUsage, O as ObservedArmId, M as ModelEntry, f as ResolvedModelIdentity, g as ModelRegistry, h as RoutingArmId, W as WorkflowError, i as ModelId, I as IModelAdapter, j as ConfigError, N as NexusError, k as ModelError, l as NexusErrorOptions, m as ModelCapability, n as CompletionRequest, o as CompletionResponse, S as StreamChunk, p as ModelMetadata, V as VersionStatus, q as EndpointArmId, r as ErrorCode, s as ValidationError$1, t as Message, u as ToolDefinition, v as ModelHints, w as SecurityError, D as DispatchEnum, x as RejectedModeKey, y as ConsensusAlgorithm, z as Vote, B as VoteDecision$1, P as ProposalStatus, F as VoteRecordDecision, G as ObservedAttemptUsage, J as VoterRole, K as AgentVoteResult, L as ResolvedVoterProject, Q as DecisionCostSummary, U as CliErrorCode, X as CliPermissionDenial, Y as VoteCounts, Z as WeightedVoteCounts, _ as WeightBasis, $ as ProposalState, a0 as ProposalId, a1 as ConsensusEngineConfig, a2 as ConsensusResult, a3 as Proposal, a4 as ConsensusMetrics, a5 as VoterExpansionCallback, a6 as VotingStrategy, a7 as ErrorPolicy } from './consensus-vote-types-B001FCSw.js';
2
+ export { a8 as AgentVoteSummary, a9 as ConsensusAlgorithmSchema, aa as ConsensusEngineConfigSchema, ab as ConsensusMetricsSchema, ac as ConsensusResultSchema, ad as ConsensusVoteInput, ae as ConsensusVoteInputSchema, af as ConsensusVoteResponse, ag as ContentBlock, ah as DEFAULT_CONSENSUS_CONFIG, ai as EntrySource, aj as MessageRole, ak as ModelPricingProvenance, al as ModelRegistryOptions, am as PromptCachingMode, an as ProposalSchema, ao as ProposalStatusSchema, ap as REJECTION_CATEGORIES, aq as RateLimitError, ar as RejectionCategory, as as RejectionCategorySchema, at as SerializedError, au as StopReason, av as TimeoutError, aw as TokenUsage, ax as ToolDefinitionFormat, ay as VoteDecisionStatus, az as VoteSchema, aA as err, aB as getDefaultRegistry, aC as isErr, aD as isOk, aE as map, aF as mapErr, aG as ok, aH as setDefaultRegistry, aI as unwrap, aJ as unwrapOr } from './consensus-vote-types-B001FCSw.js';
3
3
  import { ZodError, z, ZodType, ZodSafeParseResult } from 'zod';
4
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
5
  import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
@@ -24421,7 +24421,9 @@ declare class GraphBuilder {
24421
24421
  * ("Edge references non-existent node 'x' (from 'y')") already reads correctly.
24422
24422
  * Adding a variant would widen a union the library RETURNS, which breaks any
24423
24423
  * consumer switching exhaustively over `GraphCompileError` — a breaking change
24424
- * needing a unanimous panel, for a diagnostic distinction nothing consumes.
24424
+ * needing supermajority (≥5 of 7 on a full panel) and no unresolved
24425
+ * concrete-defect dissent from any seat (see `.rules/governance.md`), for a
24426
+ * diagnostic distinction nothing consumes.
24425
24427
  */
24426
24428
  private checkGotoTargets;
24427
24429
  /**
package/dist/index.js CHANGED
@@ -538,7 +538,7 @@ import {
538
538
  withLogging,
539
539
  withRetry,
540
540
  withRetryWrapper
541
- } from "./chunk-SFILA57C.js";
541
+ } from "./chunk-JHLMYOPG.js";
542
542
  import {
543
543
  AST_RULE_LANGUAGES,
544
544
  AST_RULE_SEVERITIES,
@@ -601,7 +601,7 @@ import {
601
601
  generateProposalId,
602
602
  parseAgentPairKey,
603
603
  registerConsensusVoteTool
604
- } from "./chunk-GZHDEMLN.js";
604
+ } from "./chunk-V5CYHQ7H.js";
605
605
  import "./chunk-C5P5D45H.js";
606
606
  import {
607
607
  AgentActionSchema,
@@ -656,7 +656,7 @@ import {
656
656
  import {
657
657
  ImprovementReviewInputSchema,
658
658
  registerImprovementReviewTool
659
- } from "./chunk-3OBOVCFZ.js";
659
+ } from "./chunk-AI4DWDDD.js";
660
660
  import {
661
661
  ConsensusAlgorithmSchema,
662
662
  ConsensusEngineConfigSchema,
@@ -692,7 +692,7 @@ import {
692
692
  toolSuccess,
693
693
  toolSuccessStructured,
694
694
  validateToolInput
695
- } from "./chunk-EF5FB4QM.js";
695
+ } from "./chunk-RJDZOOPA.js";
696
696
  import {
697
697
  FALLBACK_SCANNER_DATA,
698
698
  buildPlanFromAnalysis,
@@ -740,13 +740,13 @@ import {
740
740
  connectTransport,
741
741
  createServer,
742
742
  startStdioServer
743
- } from "./chunk-L25VW7RC.js";
743
+ } from "./chunk-IHSX3WQN.js";
744
744
  import {
745
745
  allOf
746
746
  } from "./chunk-EZNIYU5T.js";
747
747
  import {
748
748
  VERSION
749
- } from "./chunk-FSM6ZCVF.js";
749
+ } from "./chunk-BQPQIOEB.js";
750
750
  import "./chunk-FVYQWWPB.js";
751
751
  import {
752
752
  OPENAI_MODELS,
@@ -2,9 +2,9 @@ import {
2
2
  NEXUS_DATA_DIR,
3
3
  describeDataDirFix,
4
4
  initDataDirectories
5
- } from "./chunk-L25VW7RC.js";
5
+ } from "./chunk-IHSX3WQN.js";
6
6
  import "./chunk-EZNIYU5T.js";
7
- import "./chunk-FSM6ZCVF.js";
7
+ import "./chunk-BQPQIOEB.js";
8
8
  import "./chunk-FVYQWWPB.js";
9
9
  import "./chunk-T5IBXFFY.js";
10
10
  import "./chunk-7JYW5F77.js";
@@ -33,4 +33,4 @@ export {
33
33
  describeDataDirFix,
34
34
  initDataDirectories
35
35
  };
36
- //# sourceMappingURL=setup-data-dir-XCHPJFBD.js.map
36
+ //# sourceMappingURL=setup-data-dir-CSNTWHYS.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "9.0.2",
3
+ "version": "9.1.0",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, tamper-evident audit, and closed-loop outcome routing for Claude, Codex, Gemini, and OpenCode",
5
5
  "mcpName": "io.github.nexus-substrate/nexus-agents",
6
6
  "license": "MIT",