nexus-agents 4.2.1 → 4.3.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 (122) hide show
  1. package/dist/{child-mcp-config-BV3OSP24.js → child-mcp-config-JTLIU3JR.js} +2 -2
  2. package/dist/{chunk-KVHA4AEF.js → chunk-2QYJ7IE2.js} +4 -4
  3. package/dist/{chunk-JRU5G6VW.js → chunk-3K3VGOY4.js} +2 -2
  4. package/dist/{chunk-BYDUN7A5.js → chunk-3P6N3XZF.js} +2 -2
  5. package/dist/{chunk-4O7TU6R3.js → chunk-4JKO5B7A.js} +2 -2
  6. package/dist/{chunk-PAGVGHWL.js → chunk-4WU3BGGK.js} +8 -8
  7. package/dist/{chunk-JJEOBIOI.js → chunk-55XLIDEN.js} +2 -2
  8. package/dist/{chunk-ADIMVMAB.js → chunk-5GUP54YH.js} +2 -2
  9. package/dist/{chunk-6SBSQDCX.js → chunk-73U6W5ZU.js} +2 -2
  10. package/dist/{chunk-BMEJLPAE.js → chunk-A7DEF2I6.js} +3 -3
  11. package/dist/{chunk-5HPJB35V.js → chunk-AQAGVYWS.js} +2 -2
  12. package/dist/{chunk-VKLMXCI2.js → chunk-B6JICUQ6.js} +17 -4
  13. package/dist/chunk-B6JICUQ6.js.map +1 -0
  14. package/dist/{chunk-FRTNZUUF.js → chunk-CYCXJNPA.js} +2 -2
  15. package/dist/{chunk-O3AZI3X2.js → chunk-D32WYARF.js} +5 -5
  16. package/dist/{chunk-U53YMCSE.js → chunk-D3BKW23W.js} +8 -8
  17. package/dist/{chunk-HNC2G7AS.js → chunk-DL5RN53R.js} +2 -2
  18. package/dist/{chunk-FD3I5B4X.js → chunk-FHXDRCIW.js} +2 -2
  19. package/dist/{chunk-N7YLNXHT.js → chunk-H64DUJSZ.js} +6 -6
  20. package/dist/{chunk-EXX6WINJ.js → chunk-JV5HRP3S.js} +2 -2
  21. package/dist/{chunk-C3KZXEBR.js → chunk-KIWPXWL7.js} +4 -4
  22. package/dist/{chunk-CNB4PA7Q.js → chunk-LGTY3B3Q.js} +5 -5
  23. package/dist/{chunk-KLN7TJLT.js → chunk-MLR4PF64.js} +2 -2
  24. package/dist/{chunk-AMEVOGE7.js → chunk-MPCBYY4J.js} +8 -8
  25. package/dist/{chunk-CIQJIBGF.js → chunk-MPEQHP4D.js} +3 -3
  26. package/dist/{chunk-AY6EN765.js → chunk-OHRCTQDC.js} +35 -35
  27. package/dist/{chunk-4Z2Z52C7.js → chunk-OYNZ6FCZ.js} +7 -7
  28. package/dist/{chunk-NZHI7FHX.js → chunk-ROAVF3S5.js} +5 -5
  29. package/dist/{chunk-4XWRSCZ2.js → chunk-SF6KSPBW.js} +3 -3
  30. package/dist/{chunk-S645LGB6.js → chunk-TKA6653I.js} +2 -2
  31. package/dist/{chunk-TN7HF2SQ.js → chunk-TMYLHKLJ.js} +12 -12
  32. package/dist/{chunk-5DED5UHM.js → chunk-WX5TASVN.js} +3 -3
  33. package/dist/{chunk-2HCONJES.js → chunk-X57EI3U6.js} +2 -2
  34. package/dist/{chunk-3OM2W7H7.js → chunk-XABDFFQV.js} +2 -2
  35. package/dist/{chunk-UM376MEM.js → chunk-Y3WYSLFZ.js} +2 -2
  36. package/dist/{cli-circuit-breaker-NRGM3VBL.js → cli-circuit-breaker-DG2L4C3C.js} +3 -3
  37. package/dist/cli.js +41 -41
  38. package/dist/{composite-router-TSPOS57H.js → composite-router-X5QU6XNZ.js} +2 -2
  39. package/dist/{consensus-vote-ULN3XOCN.js → consensus-vote-ZRLZYJ4D.js} +16 -16
  40. package/dist/{context-retriever-SGJTQUCI.js → context-retriever-CIFLPUJA.js} +8 -8
  41. package/dist/{doctor-deep-33C5GGB3.js → doctor-deep-FZGNQXDZ.js} +3 -3
  42. package/dist/{doctor-live-XRIVOJLP.js → doctor-live-KGQWMYJY.js} +9 -9
  43. package/dist/{expert-bridge-UH44L5CN.js → expert-bridge-B6ZTEZNH.js} +4 -4
  44. package/dist/{factory-GUDAJED7.js → factory-5BEGXJVB.js} +9 -9
  45. package/dist/{factory-HYFTOF35.js → factory-RLGGFLYD.js} +5 -5
  46. package/dist/{improvement-review-HU7P73SL.js → improvement-review-52J36YLJ.js} +5 -5
  47. package/dist/index.d.ts +133 -56
  48. package/dist/index.js +30 -30
  49. package/dist/{init-opencode-PXLOY7XY.js → init-opencode-JAJXMGOI.js} +6 -6
  50. package/dist/issue-triage-APE6L5YP.js +17 -0
  51. package/dist/{pr-reviewer-helpers-QU4F2A3X.js → pr-reviewer-helpers-KZ4MNSUT.js} +4 -4
  52. package/dist/{registry-command-2LQLUUXG.js → registry-command-AHGSBCNL.js} +2 -2
  53. package/dist/{repo-security-plan-E2MTJPSC.js → repo-security-plan-C4ZSWVY7.js} +3 -3
  54. package/dist/{research-helpers-synthesize-4YBZF2LZ.js → research-helpers-synthesize-C4GK3GU4.js} +4 -4
  55. package/dist/{routing-memory-EIF5XALW.js → routing-memory-WU4C63BA.js} +2 -2
  56. package/dist/{session-memory-5GVHJR26.js → session-memory-LYX5N2IP.js} +3 -3
  57. package/dist/{setup-command-RS4NCQIB.js → setup-command-775JEHPJ.js} +14 -14
  58. package/dist/{setup-config-PMGHQJ6O.js → setup-config-P722TC57.js} +3 -3
  59. package/dist/{setup-custom-api-JXXGF5QD.js → setup-custom-api-P7T5YKIK.js} +4 -4
  60. package/dist/{tool-memory-YFXJCJFI.js → tool-memory-AL5PXKB4.js} +5 -5
  61. package/dist/{unified-registry-OGXE4772.js → unified-registry-UM4GSYMB.js} +10 -10
  62. package/dist/{weather-report-FV6YYGT4.js → weather-report-QLHSZQOT.js} +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-VKLMXCI2.js.map +0 -1
  65. package/dist/issue-triage-B3KU37U3.js +0 -17
  66. /package/dist/{child-mcp-config-BV3OSP24.js.map → child-mcp-config-JTLIU3JR.js.map} +0 -0
  67. /package/dist/{chunk-KVHA4AEF.js.map → chunk-2QYJ7IE2.js.map} +0 -0
  68. /package/dist/{chunk-JRU5G6VW.js.map → chunk-3K3VGOY4.js.map} +0 -0
  69. /package/dist/{chunk-BYDUN7A5.js.map → chunk-3P6N3XZF.js.map} +0 -0
  70. /package/dist/{chunk-4O7TU6R3.js.map → chunk-4JKO5B7A.js.map} +0 -0
  71. /package/dist/{chunk-PAGVGHWL.js.map → chunk-4WU3BGGK.js.map} +0 -0
  72. /package/dist/{chunk-JJEOBIOI.js.map → chunk-55XLIDEN.js.map} +0 -0
  73. /package/dist/{chunk-ADIMVMAB.js.map → chunk-5GUP54YH.js.map} +0 -0
  74. /package/dist/{chunk-6SBSQDCX.js.map → chunk-73U6W5ZU.js.map} +0 -0
  75. /package/dist/{chunk-BMEJLPAE.js.map → chunk-A7DEF2I6.js.map} +0 -0
  76. /package/dist/{chunk-5HPJB35V.js.map → chunk-AQAGVYWS.js.map} +0 -0
  77. /package/dist/{chunk-FRTNZUUF.js.map → chunk-CYCXJNPA.js.map} +0 -0
  78. /package/dist/{chunk-O3AZI3X2.js.map → chunk-D32WYARF.js.map} +0 -0
  79. /package/dist/{chunk-U53YMCSE.js.map → chunk-D3BKW23W.js.map} +0 -0
  80. /package/dist/{chunk-HNC2G7AS.js.map → chunk-DL5RN53R.js.map} +0 -0
  81. /package/dist/{chunk-FD3I5B4X.js.map → chunk-FHXDRCIW.js.map} +0 -0
  82. /package/dist/{chunk-N7YLNXHT.js.map → chunk-H64DUJSZ.js.map} +0 -0
  83. /package/dist/{chunk-EXX6WINJ.js.map → chunk-JV5HRP3S.js.map} +0 -0
  84. /package/dist/{chunk-C3KZXEBR.js.map → chunk-KIWPXWL7.js.map} +0 -0
  85. /package/dist/{chunk-CNB4PA7Q.js.map → chunk-LGTY3B3Q.js.map} +0 -0
  86. /package/dist/{chunk-KLN7TJLT.js.map → chunk-MLR4PF64.js.map} +0 -0
  87. /package/dist/{chunk-AMEVOGE7.js.map → chunk-MPCBYY4J.js.map} +0 -0
  88. /package/dist/{chunk-CIQJIBGF.js.map → chunk-MPEQHP4D.js.map} +0 -0
  89. /package/dist/{chunk-AY6EN765.js.map → chunk-OHRCTQDC.js.map} +0 -0
  90. /package/dist/{chunk-4Z2Z52C7.js.map → chunk-OYNZ6FCZ.js.map} +0 -0
  91. /package/dist/{chunk-NZHI7FHX.js.map → chunk-ROAVF3S5.js.map} +0 -0
  92. /package/dist/{chunk-4XWRSCZ2.js.map → chunk-SF6KSPBW.js.map} +0 -0
  93. /package/dist/{chunk-S645LGB6.js.map → chunk-TKA6653I.js.map} +0 -0
  94. /package/dist/{chunk-TN7HF2SQ.js.map → chunk-TMYLHKLJ.js.map} +0 -0
  95. /package/dist/{chunk-5DED5UHM.js.map → chunk-WX5TASVN.js.map} +0 -0
  96. /package/dist/{chunk-2HCONJES.js.map → chunk-X57EI3U6.js.map} +0 -0
  97. /package/dist/{chunk-3OM2W7H7.js.map → chunk-XABDFFQV.js.map} +0 -0
  98. /package/dist/{chunk-UM376MEM.js.map → chunk-Y3WYSLFZ.js.map} +0 -0
  99. /package/dist/{cli-circuit-breaker-NRGM3VBL.js.map → cli-circuit-breaker-DG2L4C3C.js.map} +0 -0
  100. /package/dist/{composite-router-TSPOS57H.js.map → composite-router-X5QU6XNZ.js.map} +0 -0
  101. /package/dist/{consensus-vote-ULN3XOCN.js.map → consensus-vote-ZRLZYJ4D.js.map} +0 -0
  102. /package/dist/{context-retriever-SGJTQUCI.js.map → context-retriever-CIFLPUJA.js.map} +0 -0
  103. /package/dist/{doctor-deep-33C5GGB3.js.map → doctor-deep-FZGNQXDZ.js.map} +0 -0
  104. /package/dist/{doctor-live-XRIVOJLP.js.map → doctor-live-KGQWMYJY.js.map} +0 -0
  105. /package/dist/{expert-bridge-UH44L5CN.js.map → expert-bridge-B6ZTEZNH.js.map} +0 -0
  106. /package/dist/{factory-GUDAJED7.js.map → factory-5BEGXJVB.js.map} +0 -0
  107. /package/dist/{factory-HYFTOF35.js.map → factory-RLGGFLYD.js.map} +0 -0
  108. /package/dist/{improvement-review-HU7P73SL.js.map → improvement-review-52J36YLJ.js.map} +0 -0
  109. /package/dist/{init-opencode-PXLOY7XY.js.map → init-opencode-JAJXMGOI.js.map} +0 -0
  110. /package/dist/{issue-triage-B3KU37U3.js.map → issue-triage-APE6L5YP.js.map} +0 -0
  111. /package/dist/{pr-reviewer-helpers-QU4F2A3X.js.map → pr-reviewer-helpers-KZ4MNSUT.js.map} +0 -0
  112. /package/dist/{registry-command-2LQLUUXG.js.map → registry-command-AHGSBCNL.js.map} +0 -0
  113. /package/dist/{repo-security-plan-E2MTJPSC.js.map → repo-security-plan-C4ZSWVY7.js.map} +0 -0
  114. /package/dist/{research-helpers-synthesize-4YBZF2LZ.js.map → research-helpers-synthesize-C4GK3GU4.js.map} +0 -0
  115. /package/dist/{routing-memory-EIF5XALW.js.map → routing-memory-WU4C63BA.js.map} +0 -0
  116. /package/dist/{session-memory-5GVHJR26.js.map → session-memory-LYX5N2IP.js.map} +0 -0
  117. /package/dist/{setup-command-RS4NCQIB.js.map → setup-command-775JEHPJ.js.map} +0 -0
  118. /package/dist/{setup-config-PMGHQJ6O.js.map → setup-config-P722TC57.js.map} +0 -0
  119. /package/dist/{setup-custom-api-JXXGF5QD.js.map → setup-custom-api-P7T5YKIK.js.map} +0 -0
  120. /package/dist/{tool-memory-YFXJCJFI.js.map → tool-memory-AL5PXKB4.js.map} +0 -0
  121. /package/dist/{unified-registry-OGXE4772.js.map → unified-registry-UM4GSYMB.js.map} +0 -0
  122. /package/dist/{weather-report-FV6YYGT4.js.map → weather-report-QLHSZQOT.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -2909,8 +2909,8 @@ declare const OutcomeFailureCategorySchema: z.ZodEnum<{
2909
2909
  rate_limit: "rate_limit";
2910
2910
  unknown: "unknown";
2911
2911
  validation: "validation";
2912
- authentication: "authentication";
2913
2912
  crash: "crash";
2913
+ authentication: "authentication";
2914
2914
  adapter_unavailable: "adapter_unavailable";
2915
2915
  generic: "generic";
2916
2916
  }>;
@@ -2953,8 +2953,8 @@ declare const TaskOutcomeSchema$1: z.ZodObject<{
2953
2953
  rate_limit: "rate_limit";
2954
2954
  unknown: "unknown";
2955
2955
  validation: "validation";
2956
- authentication: "authentication";
2957
2956
  crash: "crash";
2957
+ authentication: "authentication";
2958
2958
  adapter_unavailable: "adapter_unavailable";
2959
2959
  generic: "generic";
2960
2960
  }>>;
@@ -3014,8 +3014,8 @@ declare const OutcomeQuerySchema: z.ZodObject<{
3014
3014
  rate_limit: "rate_limit";
3015
3015
  unknown: "unknown";
3016
3016
  validation: "validation";
3017
- authentication: "authentication";
3018
3017
  crash: "crash";
3018
+ authentication: "authentication";
3019
3019
  adapter_unavailable: "adapter_unavailable";
3020
3020
  generic: "generic";
3021
3021
  }>>;
@@ -4791,8 +4791,8 @@ declare const CompositeRouterConfigSchema: z.ZodObject<{
4791
4791
  }, z.core.$strip>>;
4792
4792
  linucbAlpha: z.ZodDefault<z.ZodNumber>;
4793
4793
  billingMode: z.ZodDefault<z.ZodEnum<{
4794
- plan: "plan";
4795
4794
  api: "api";
4795
+ plan: "plan";
4796
4796
  }>>;
4797
4797
  enableCapacityBalancing: z.ZodDefault<z.ZodBoolean>;
4798
4798
  maxDecisionTimeMs: z.ZodDefault<z.ZodNumber>;
@@ -7571,43 +7571,6 @@ declare class CliDetectionCache implements ICliDetectionCache {
7571
7571
  */
7572
7572
  declare function createCliDetectionCache(config?: Partial<CliDetectionCacheConfig>): ICliDetectionCache;
7573
7573
 
7574
- /**
7575
- * Health states for the adapter.
7576
- * - healthy: adapter detected and operational
7577
- * - degraded: adapter operational but experienced recent failures
7578
- * - unavailable: no adapter could be detected
7579
- */
7580
- type AdapterHealthState = 'healthy' | 'degraded' | 'unavailable';
7581
- /**
7582
- * Health information for the current adapter.
7583
- */
7584
- interface AdapterHealthInfo {
7585
- readonly source: CliName | 'api';
7586
- readonly state: AdapterHealthState;
7587
- readonly selectedAt: Date;
7588
- readonly failoverCount: number;
7589
- readonly lastError?: string;
7590
- }
7591
- /**
7592
- * Extension of IModelAdapter with health monitoring and failover.
7593
- *
7594
- * Consumers that only need IModelAdapter continue to work unchanged.
7595
- * Dashboard/monitoring consumers can cast to IResilientAdapter for
7596
- * health and failover APIs.
7597
- */
7598
- interface IResilientAdapter extends IModelAdapter {
7599
- /** Current health info (undefined if not yet initialized) */
7600
- getHealth(): AdapterHealthInfo | undefined;
7601
- /** Force re-detection of adapters */
7602
- refresh(): Promise<void>;
7603
- /** Override preferred CLI */
7604
- setPreferredCli(cli: CliName | undefined): void;
7605
- /** Register failover callback */
7606
- onFailover(cb: (info: AdapterHealthInfo) => void): () => void;
7607
- /** Cleanup listeners and timers */
7608
- dispose(): void;
7609
- }
7610
-
7611
7574
  /**
7612
7575
  * Circuit breaker states.
7613
7576
  */
@@ -7730,6 +7693,120 @@ declare class CircuitError extends NexusError {
7730
7693
  });
7731
7694
  }
7732
7695
 
7696
+ /**
7697
+ * nexus-agents/cli-adapters - Circuit Breaker Implementation
7698
+ *
7699
+ * Implements the circuit breaker pattern to handle CLI failures gracefully
7700
+ * and prevent cascade failures in the multi-CLI mesh.
7701
+ *
7702
+ * (Source: Issue #81 - Circuit breaker for CLI failures)
7703
+ * (Source: Martin Fowler's Circuit Breaker pattern)
7704
+ */
7705
+
7706
+ /**
7707
+ * Circuit breaker implementation for CLI adapters.
7708
+ *
7709
+ * Provides protection against cascading failures by:
7710
+ * 1. Tracking failure counts
7711
+ * 2. Opening circuit when threshold exceeded
7712
+ * 3. Allowing gradual recovery through half-open state
7713
+ */
7714
+ declare class CliCircuitBreaker implements ICircuitBreaker {
7715
+ private readonly cliName;
7716
+ private readonly config;
7717
+ private state;
7718
+ private failureCount;
7719
+ private successCount;
7720
+ private lastFailureTime;
7721
+ private lastStateChange;
7722
+ private halfOpenRequests;
7723
+ private readonly listeners;
7724
+ constructor(cliName: CliName, config?: CircuitBreakerConfig);
7725
+ /**
7726
+ * Executes a function with circuit breaker protection.
7727
+ */
7728
+ execute<T>(fn: () => Promise<T>): Promise<Result<T, CircuitError>>;
7729
+ getState(): CircuitState;
7730
+ getSnapshot(): CircuitBreakerSnapshot;
7731
+ reset(): void;
7732
+ recordFailure(category: FailureCategory): void;
7733
+ recordSuccess(): void;
7734
+ addStateChangeListener(listener: CircuitStateChangeListener): void;
7735
+ removeStateChangeListener(listener: CircuitStateChangeListener): void;
7736
+ private canExecute;
7737
+ private checkStateTransition;
7738
+ private onSuccess;
7739
+ private onFailure;
7740
+ private transitionTo;
7741
+ private emitStateChange;
7742
+ private shouldCountFailure;
7743
+ private createExecutionError;
7744
+ }
7745
+ /**
7746
+ * Registry for managing per-CLI circuit breakers.
7747
+ */
7748
+ declare class CircuitBreakerRegistry {
7749
+ private readonly defaultConfig;
7750
+ private readonly breakers;
7751
+ private readonly globalListeners;
7752
+ constructor(defaultConfig?: Partial<CircuitBreakerConfig>);
7753
+ getBreaker(cliName: CliName, config?: Partial<CircuitBreakerConfig>): CliCircuitBreaker;
7754
+ isOpen(cliName: CliName): boolean;
7755
+ getAllSnapshots(): Map<CliName, CircuitBreakerSnapshot>;
7756
+ resetAll(): void;
7757
+ reset(cliName: CliName): void;
7758
+ addGlobalStateChangeListener(listener: CircuitStateChangeListener): void;
7759
+ removeGlobalStateChangeListener(listener: CircuitStateChangeListener): void;
7760
+ getHealthyClis(): CliName[];
7761
+ getUnhealthyClis(): CliName[];
7762
+ }
7763
+
7764
+ /**
7765
+ * Health states for the adapter.
7766
+ * - healthy: adapter detected and operational
7767
+ * - degraded: adapter operational but experienced recent failures
7768
+ * - unavailable: no adapter could be detected
7769
+ */
7770
+ type AdapterHealthState = 'healthy' | 'degraded' | 'unavailable';
7771
+ /**
7772
+ * Health information for the current adapter.
7773
+ */
7774
+ interface AdapterHealthInfo {
7775
+ readonly source: CliName | 'api';
7776
+ readonly state: AdapterHealthState;
7777
+ readonly selectedAt: Date;
7778
+ readonly failoverCount: number;
7779
+ readonly lastError?: string;
7780
+ }
7781
+ /**
7782
+ * Extension of IModelAdapter with health monitoring and failover.
7783
+ *
7784
+ * Consumers that only need IModelAdapter continue to work unchanged.
7785
+ * Dashboard/monitoring consumers can cast to IResilientAdapter for
7786
+ * health and failover APIs.
7787
+ */
7788
+ interface IResilientAdapter extends IModelAdapter {
7789
+ /** Current health info (undefined if not yet initialized) */
7790
+ getHealth(): AdapterHealthInfo | undefined;
7791
+ /** Force re-detection of adapters */
7792
+ refresh(): Promise<void>;
7793
+ /** Override preferred CLI */
7794
+ setPreferredCli(cli: CliName | undefined): void;
7795
+ /** Register failover callback */
7796
+ onFailover(cb: (info: AdapterHealthInfo) => void): () => void;
7797
+ /**
7798
+ * The registry arming this adapter's failover, or `undefined` if none (#4659).
7799
+ *
7800
+ * Read-only on purpose: exposing `attach` here would re-create the "someone
7801
+ * must remember to call it" shape that left the breaker disarmed. Supply it
7802
+ * via {@link ResilientAdapterConfig.circuitBreakerRegistry} instead. This
7803
+ * accessor exists so a caller can VERIFY the adapter is armed.
7804
+ */
7805
+ getCircuitBreakerRegistry?(): CircuitBreakerRegistry | undefined;
7806
+ /** Cleanup listeners and timers */
7807
+ dispose(): void;
7808
+ }
7809
+
7733
7810
  /**
7734
7811
  * Unified Adapter Registry — single entry point for all model adapter access.
7735
7812
  *
@@ -9111,8 +9188,8 @@ interface IEventBus$1 {
9111
9188
  * Zod schema for CollaborationPattern.
9112
9189
  */
9113
9190
  declare const CollaborationPatternSchema: z.ZodEnum<{
9114
- consensus: "consensus";
9115
9191
  review: "review";
9192
+ consensus: "consensus";
9116
9193
  sequential: "sequential";
9117
9194
  parallel: "parallel";
9118
9195
  reflexion: "reflexion";
@@ -9147,8 +9224,8 @@ declare const VoteDecisionSchema: z.ZodEnum<{
9147
9224
  declare const CollaborationConfigSchema: z.ZodObject<{
9148
9225
  sessionId: z.ZodString;
9149
9226
  pattern: z.ZodEnum<{
9150
- consensus: "consensus";
9151
9227
  review: "review";
9228
+ consensus: "consensus";
9152
9229
  sequential: "sequential";
9153
9230
  parallel: "parallel";
9154
9231
  reflexion: "reflexion";
@@ -19847,8 +19924,8 @@ declare const DecisionCostRecordSchema: z.ZodObject<{
19847
19924
  timestamp: z.ZodString;
19848
19925
  summary: z.ZodObject<{
19849
19926
  billingMode: z.ZodEnum<{
19850
- plan: "plan";
19851
19927
  api: "api";
19928
+ plan: "plan";
19852
19929
  }>;
19853
19930
  voterCount: z.ZodNumber;
19854
19931
  measuredVoters: z.ZodNumber;
@@ -22230,8 +22307,8 @@ declare const DelegateInputSchema: z.ZodObject<{
22230
22307
  }>>;
22231
22308
  model_hint: z.ZodOptional<z.ZodString>;
22232
22309
  billing_mode: z.ZodOptional<z.ZodEnum<{
22233
- plan: "plan";
22234
22310
  api: "api";
22311
+ plan: "plan";
22235
22312
  }>>;
22236
22313
  }, z.core.$strip>;
22237
22314
  type DelegateInput = z.infer<typeof DelegateInputSchema>;
@@ -22333,8 +22410,8 @@ declare function selectModel(input: DelegateInput, requirements: TaskRequirement
22333
22410
  * - consensus: Final vote on recommendations (Round 3)
22334
22411
  */
22335
22412
  declare const VotingRoundPhaseSchema: z.ZodEnum<{
22336
- consensus: "consensus";
22337
22413
  analysis: "analysis";
22414
+ consensus: "consensus";
22338
22415
  deliberation: "deliberation";
22339
22416
  }>;
22340
22417
  type VotingRoundPhase = z.infer<typeof VotingRoundPhaseSchema>;
@@ -22357,8 +22434,8 @@ declare const AgentFindingSchema: z.ZodObject<{
22357
22434
  category: z.ZodEnum<{
22358
22435
  security: "security";
22359
22436
  documentation: "documentation";
22360
- design: "design";
22361
22437
  performance: "performance";
22438
+ design: "design";
22362
22439
  other: "other";
22363
22440
  bug: "bug";
22364
22441
  style: "style";
@@ -31280,8 +31357,8 @@ declare function parseSpec(markdown: string): Result<ParsedSpec, SpecParseError>
31280
31357
  */
31281
31358
  declare const SubtaskTypeSchema: z.ZodEnum<{
31282
31359
  code: "code";
31283
- test: "test";
31284
31360
  refactor: "refactor";
31361
+ test: "test";
31285
31362
  docs: "docs";
31286
31363
  config: "config";
31287
31364
  }>;
@@ -31304,8 +31381,8 @@ declare const SubtaskNodeSchema: z.ZodObject<{
31304
31381
  description: z.ZodString;
31305
31382
  type: z.ZodEnum<{
31306
31383
  code: "code";
31307
- test: "test";
31308
31384
  refactor: "refactor";
31385
+ test: "test";
31309
31386
  docs: "docs";
31310
31387
  config: "config";
31311
31388
  }>;
@@ -31337,8 +31414,8 @@ declare const TaskDagSchema: z.ZodObject<{
31337
31414
  description: z.ZodString;
31338
31415
  type: z.ZodEnum<{
31339
31416
  code: "code";
31340
- test: "test";
31341
31417
  refactor: "refactor";
31418
+ test: "test";
31342
31419
  docs: "docs";
31343
31420
  config: "config";
31344
31421
  }>;
@@ -33143,12 +33220,12 @@ declare const ArtifactRefSchema: z.ZodObject<{
33143
33220
  id: z.ZodString;
33144
33221
  type: z.ZodEnum<{
33145
33222
  code: "code";
33146
- plan: "plan";
33147
- test: "test";
33148
33223
  analysis: "analysis";
33224
+ test: "test";
33149
33225
  spec: "spec";
33150
33226
  review: "review";
33151
33227
  report: "report";
33228
+ plan: "plan";
33152
33229
  vote: "vote";
33153
33230
  }>;
33154
33231
  }, z.core.$strip>;
@@ -33193,12 +33270,12 @@ declare const TaskContractSchema: z.ZodObject<{
33193
33270
  id: z.ZodString;
33194
33271
  type: z.ZodEnum<{
33195
33272
  code: "code";
33196
- plan: "plan";
33197
- test: "test";
33198
33273
  analysis: "analysis";
33274
+ test: "test";
33199
33275
  spec: "spec";
33200
33276
  review: "review";
33201
33277
  report: "report";
33278
+ plan: "plan";
33202
33279
  vote: "vote";
33203
33280
  }>;
33204
33281
  }, z.core.$strip>>;
@@ -33340,12 +33417,12 @@ declare const StageResultSchema: z.ZodObject<{
33340
33417
  id: z.ZodString;
33341
33418
  type: z.ZodEnum<{
33342
33419
  code: "code";
33343
- plan: "plan";
33344
- test: "test";
33345
33420
  analysis: "analysis";
33421
+ test: "test";
33346
33422
  spec: "spec";
33347
33423
  review: "review";
33348
33424
  report: "report";
33425
+ plan: "plan";
33349
33426
  vote: "vote";
33350
33427
  }>;
33351
33428
  }, z.core.$strip>>;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-C3KZXEBR.js";
4
+ } from "./chunk-KIWPXWL7.js";
5
5
  import {
6
6
  ALLOWED_COMMANDS,
7
7
  ARTIFACT_TYPES,
@@ -541,7 +541,7 @@ import {
541
541
  withLogging,
542
542
  withRetry,
543
543
  withRetryWrapper
544
- } from "./chunk-AY6EN765.js";
544
+ } from "./chunk-OHRCTQDC.js";
545
545
  import {
546
546
  FALLBACK_SCANNER_DATA,
547
547
  buildPlanFromAnalysis,
@@ -549,7 +549,7 @@ import {
549
549
  generateSecurityPlan,
550
550
  getRegistryManifest,
551
551
  resolveScannerData
552
- } from "./chunk-FD3I5B4X.js";
552
+ } from "./chunk-FHXDRCIW.js";
553
553
  import {
554
554
  analyzeGitHubRepo,
555
555
  analyzeRepo,
@@ -575,16 +575,16 @@ import {
575
575
  getKnownNexusVarNames,
576
576
  startStdioServer,
577
577
  validateNexusEnv
578
- } from "./chunk-U53YMCSE.js";
578
+ } from "./chunk-D3BKW23W.js";
579
579
  import {
580
580
  OPENAI_MODELS,
581
581
  OPENAI_MODEL_ALIASES,
582
582
  OpenAIAdapter,
583
583
  createOpenAIAdapter
584
- } from "./chunk-NZHI7FHX.js";
584
+ } from "./chunk-ROAVF3S5.js";
585
585
  import {
586
586
  executeExpert
587
- } from "./chunk-4Z2Z52C7.js";
587
+ } from "./chunk-OYNZ6FCZ.js";
588
588
  import {
589
589
  AgentFindingSchema,
590
590
  ConsensusEngine,
@@ -633,12 +633,12 @@ import {
633
633
  generateProposalId,
634
634
  parseAgentPairKey,
635
635
  registerConsensusVoteTool
636
- } from "./chunk-PAGVGHWL.js";
637
- import "./chunk-BYDUN7A5.js";
636
+ } from "./chunk-4WU3BGGK.js";
637
+ import "./chunk-3P6N3XZF.js";
638
638
  import {
639
639
  allOf
640
640
  } from "./chunk-OQB3XC5O.js";
641
- import "./chunk-BMEJLPAE.js";
641
+ import "./chunk-A7DEF2I6.js";
642
642
  import {
643
643
  AgentActionSchema,
644
644
  GitHubReviewer,
@@ -661,11 +661,11 @@ import {
661
661
  requiresHumanApproval,
662
662
  validateAgentAction,
663
663
  validateCorroboration
664
- } from "./chunk-N7YLNXHT.js";
664
+ } from "./chunk-H64DUJSZ.js";
665
665
  import {
666
666
  GitHubProvider,
667
667
  ScmError
668
- } from "./chunk-JJEOBIOI.js";
668
+ } from "./chunk-55XLIDEN.js";
669
669
  import {
670
670
  GitHubUserRoleSchema,
671
671
  InjectionFlagSchema,
@@ -680,11 +680,11 @@ import {
680
680
  assessReputation,
681
681
  reconcileTrustTier,
682
682
  sanitizeInput
683
- } from "./chunk-5HPJB35V.js";
683
+ } from "./chunk-AQAGVYWS.js";
684
684
  import {
685
685
  ImprovementReviewInputSchema,
686
686
  registerImprovementReviewTool
687
- } from "./chunk-CIQJIBGF.js";
687
+ } from "./chunk-MPEQHP4D.js";
688
688
  import {
689
689
  AgentPerformanceSchema,
690
690
  ConsensusAlgorithmSchema,
@@ -720,7 +720,7 @@ import {
720
720
  toolSuccess,
721
721
  toolSuccessStructured,
722
722
  validateToolInput
723
- } from "./chunk-5DED5UHM.js";
723
+ } from "./chunk-WX5TASVN.js";
724
724
  import {
725
725
  AuditTrail,
726
726
  MAX_STRIPPED_ELEMENTS_PER_EVENT,
@@ -732,13 +732,13 @@ import {
732
732
  emitReputationEvent,
733
733
  emitSanitizationEvent,
734
734
  emitTrustEvent
735
- } from "./chunk-ADIMVMAB.js";
735
+ } from "./chunk-5GUP54YH.js";
736
736
  import {
737
737
  UnifiedAdapterRegistry,
738
738
  createUnifiedRegistry,
739
739
  getGlobalRegistry,
740
740
  resetGlobalRegistry
741
- } from "./chunk-VKLMXCI2.js";
741
+ } from "./chunk-B6JICUQ6.js";
742
742
  import {
743
743
  PersistentStrategyDistiller,
744
744
  RulesSnapshotSchema,
@@ -746,19 +746,19 @@ import {
746
746
  TokenCounter,
747
747
  TokenCounterProvider,
748
748
  createTokenCounter
749
- } from "./chunk-CNB4PA7Q.js";
750
- import "./chunk-UM376MEM.js";
749
+ } from "./chunk-LGTY3B3Q.js";
750
+ import "./chunk-Y3WYSLFZ.js";
751
751
  import "./chunk-NUBSJGQZ.js";
752
752
  import {
753
753
  getTokenEnvVars,
754
754
  hasToken,
755
755
  resolveToken
756
- } from "./chunk-3OM2W7H7.js";
756
+ } from "./chunk-XABDFFQV.js";
757
757
  import {
758
758
  MemoryError
759
- } from "./chunk-KVHA4AEF.js";
759
+ } from "./chunk-2QYJ7IE2.js";
760
760
  import "./chunk-6T3EPABN.js";
761
- import "./chunk-JRU5G6VW.js";
761
+ import "./chunk-3K3VGOY4.js";
762
762
  import {
763
763
  BUILT_IN_EXPERTS,
764
764
  BuiltInExpertTypeSchema,
@@ -803,7 +803,7 @@ import {
803
803
  isCliAvailable,
804
804
  isRetryableError,
805
805
  sleep
806
- } from "./chunk-AMEVOGE7.js";
806
+ } from "./chunk-MPCBYY4J.js";
807
807
  import {
808
808
  AdapterModelError,
809
809
  BaseAdapter,
@@ -825,11 +825,11 @@ import {
825
825
  tapStream,
826
826
  transformStream,
827
827
  withTimeout
828
- } from "./chunk-KLN7TJLT.js";
829
- import "./chunk-HNC2G7AS.js";
828
+ } from "./chunk-MLR4PF64.js";
829
+ import "./chunk-DL5RN53R.js";
830
830
  import {
831
831
  PROVIDER_ENV_KEYS
832
- } from "./chunk-2HCONJES.js";
832
+ } from "./chunk-X57EI3U6.js";
833
833
  import "./chunk-SNJNRDKZ.js";
834
834
  import {
835
835
  AvailabilityCache,
@@ -839,13 +839,13 @@ import {
839
839
  getFallbackChain,
840
840
  resetAvailabilityCache,
841
841
  resolveFallback
842
- } from "./chunk-S645LGB6.js";
842
+ } from "./chunk-TKA6653I.js";
843
843
  import "./chunk-QZUG667L.js";
844
- import "./chunk-FRTNZUUF.js";
844
+ import "./chunk-CYCXJNPA.js";
845
845
  import {
846
846
  CliCircuitBreakerIntegration,
847
847
  createCliCircuitBreakerIntegration
848
- } from "./chunk-4O7TU6R3.js";
848
+ } from "./chunk-4JKO5B7A.js";
849
849
  import {
850
850
  AgentCapability,
851
851
  AgentError,
@@ -919,7 +919,7 @@ import {
919
919
  toError,
920
920
  unwrap,
921
921
  unwrapOr
922
- } from "./chunk-TN7HF2SQ.js";
922
+ } from "./chunk-TMYLHKLJ.js";
923
923
  import "./chunk-2HUC6NZN.js";
924
924
  import "./chunk-OQLFRJCW.js";
925
925
  import "./chunk-ZPWHCABL.js";
@@ -4728,7 +4728,7 @@ function buildVotingInput(plan, config) {
4728
4728
  }
4729
4729
  async function executeSingleVote(plan, config, log) {
4730
4730
  try {
4731
- const { executeVoting } = await import("./consensus-vote-ULN3XOCN.js");
4731
+ const { executeVoting } = await import("./consensus-vote-ZRLZYJ4D.js");
4732
4732
  const input = buildVotingInput(plan, config);
4733
4733
  const result = await executeVoting(input, log);
4734
4734
  return parseVotingResult(result);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  discoverModels,
3
3
  readOpencodeGateway
4
- } from "./chunk-NZHI7FHX.js";
5
- import "./chunk-BYDUN7A5.js";
6
- import "./chunk-KLN7TJLT.js";
7
- import "./chunk-2HCONJES.js";
4
+ } from "./chunk-ROAVF3S5.js";
5
+ import "./chunk-3P6N3XZF.js";
6
+ import "./chunk-MLR4PF64.js";
7
+ import "./chunk-X57EI3U6.js";
8
8
  import {
9
9
  createLogger
10
- } from "./chunk-TN7HF2SQ.js";
10
+ } from "./chunk-TMYLHKLJ.js";
11
11
  import "./chunk-2HUC6NZN.js";
12
12
  import "./chunk-OQLFRJCW.js";
13
13
  import "./chunk-ZPWHCABL.js";
@@ -176,4 +176,4 @@ export {
176
176
  runInitOpencode,
177
177
  runOpencodeValidate
178
178
  };
179
- //# sourceMappingURL=init-opencode-PXLOY7XY.js.map
179
+ //# sourceMappingURL=init-opencode-JAJXMGOI.js.map
@@ -0,0 +1,17 @@
1
+ import {
2
+ IssueTriage,
3
+ createIssueTriage
4
+ } from "./chunk-H64DUJSZ.js";
5
+ import "./chunk-55XLIDEN.js";
6
+ import "./chunk-AQAGVYWS.js";
7
+ import "./chunk-5GUP54YH.js";
8
+ import "./chunk-XABDFFQV.js";
9
+ import "./chunk-TMYLHKLJ.js";
10
+ import "./chunk-2HUC6NZN.js";
11
+ import "./chunk-OQLFRJCW.js";
12
+ import "./chunk-ZPWHCABL.js";
13
+ export {
14
+ IssueTriage,
15
+ createIssueTriage
16
+ };
17
+ //# sourceMappingURL=issue-triage-APE6L5YP.js.map
@@ -17,11 +17,11 @@ import {
17
17
  parseFindings,
18
18
  parseSeverity,
19
19
  sumFindings
20
- } from "./chunk-4XWRSCZ2.js";
20
+ } from "./chunk-SF6KSPBW.js";
21
21
  import "./chunk-CQ77TF4Y.js";
22
22
  import "./chunk-OQB3XC5O.js";
23
- import "./chunk-5HPJB35V.js";
24
- import "./chunk-TN7HF2SQ.js";
23
+ import "./chunk-AQAGVYWS.js";
24
+ import "./chunk-TMYLHKLJ.js";
25
25
  import "./chunk-2HUC6NZN.js";
26
26
  import "./chunk-OQLFRJCW.js";
27
27
  import "./chunk-ZPWHCABL.js";
@@ -45,4 +45,4 @@ export {
45
45
  parseSeverity,
46
46
  sumFindings
47
47
  };
48
- //# sourceMappingURL=pr-reviewer-helpers-QU4F2A3X.js.map
48
+ //# sourceMappingURL=pr-reviewer-helpers-KZ4MNSUT.js.map
@@ -7,7 +7,7 @@ import {
7
7
  loadGeneratedRegistryEntries,
8
8
  loadUserManifestOverlay,
9
9
  reloadDefaultRegistry
10
- } from "./chunk-TN7HF2SQ.js";
10
+ } from "./chunk-TMYLHKLJ.js";
11
11
  import "./chunk-2HUC6NZN.js";
12
12
  import {
13
13
  nexusDataPath
@@ -249,4 +249,4 @@ export {
249
249
  isValidRegistrySubcommand,
250
250
  registryCommand
251
251
  };
252
- //# sourceMappingURL=registry-command-2LQLUUXG.js.map
252
+ //# sourceMappingURL=registry-command-AHGSBCNL.js.map
@@ -3,9 +3,9 @@ import {
3
3
  buildPlanFromAnalysis,
4
4
  generateSecurityPlan,
5
5
  resolveScannerData
6
- } from "./chunk-FD3I5B4X.js";
6
+ } from "./chunk-FHXDRCIW.js";
7
7
  import "./chunk-HFOQKCD2.js";
8
- import "./chunk-TN7HF2SQ.js";
8
+ import "./chunk-TMYLHKLJ.js";
9
9
  import "./chunk-2HUC6NZN.js";
10
10
  import "./chunk-OQLFRJCW.js";
11
11
  import "./chunk-ZPWHCABL.js";
@@ -15,4 +15,4 @@ export {
15
15
  generateSecurityPlan,
16
16
  resolveScannerData
17
17
  };
18
- //# sourceMappingURL=repo-security-plan-E2MTJPSC.js.map
18
+ //# sourceMappingURL=repo-security-plan-C4ZSWVY7.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  AttributedInsightSchema,
3
3
  synthesizeResearch
4
- } from "./chunk-BMEJLPAE.js";
5
- import "./chunk-UM376MEM.js";
4
+ } from "./chunk-A7DEF2I6.js";
5
+ import "./chunk-Y3WYSLFZ.js";
6
6
  import "./chunk-NUBSJGQZ.js";
7
- import "./chunk-TN7HF2SQ.js";
7
+ import "./chunk-TMYLHKLJ.js";
8
8
  import "./chunk-2HUC6NZN.js";
9
9
  import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
@@ -12,4 +12,4 @@ export {
12
12
  AttributedInsightSchema,
13
13
  synthesizeResearch
14
14
  };
15
- //# sourceMappingURL=research-helpers-synthesize-4YBZF2LZ.js.map
15
+ //# sourceMappingURL=research-helpers-synthesize-C4GK3GU4.js.map
@@ -2,7 +2,7 @@ import {
2
2
  DEFAULT_ROUTING_MEMORY_CONFIG,
3
3
  RoutingMemory,
4
4
  createRoutingMemory
5
- } from "./chunk-TN7HF2SQ.js";
5
+ } from "./chunk-TMYLHKLJ.js";
6
6
  import "./chunk-2HUC6NZN.js";
7
7
  import "./chunk-OQLFRJCW.js";
8
8
  import "./chunk-ZPWHCABL.js";
@@ -11,4 +11,4 @@ export {
11
11
  RoutingMemory,
12
12
  createRoutingMemory
13
13
  };
14
- //# sourceMappingURL=routing-memory-EIF5XALW.js.map
14
+ //# sourceMappingURL=routing-memory-WU4C63BA.js.map
@@ -6,8 +6,8 @@ import {
6
6
  SessionMemory,
7
7
  SessionMemoryError,
8
8
  createSessionMemory
9
- } from "./chunk-JRU5G6VW.js";
10
- import "./chunk-TN7HF2SQ.js";
9
+ } from "./chunk-3K3VGOY4.js";
10
+ import "./chunk-TMYLHKLJ.js";
11
11
  import "./chunk-2HUC6NZN.js";
12
12
  import "./chunk-OQLFRJCW.js";
13
13
  import "./chunk-ZPWHCABL.js";
@@ -20,4 +20,4 @@ export {
20
20
  SessionMemoryError,
21
21
  createSessionMemory
22
22
  };
23
- //# sourceMappingURL=session-memory-5GVHJR26.js.map
23
+ //# sourceMappingURL=session-memory-LYX5N2IP.js.map