nexus-agents 4.2.1 → 4.3.1

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 (123) 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-JJEOBIOI.js → chunk-55XLIDEN.js} +2 -2
  7. package/dist/{chunk-ADIMVMAB.js → chunk-5GUP54YH.js} +2 -2
  8. package/dist/{chunk-6SBSQDCX.js → chunk-73U6W5ZU.js} +2 -2
  9. package/dist/{chunk-BMEJLPAE.js → chunk-A7DEF2I6.js} +3 -3
  10. package/dist/{chunk-5HPJB35V.js → chunk-AQAGVYWS.js} +2 -2
  11. package/dist/{chunk-VKLMXCI2.js → chunk-B6JICUQ6.js} +17 -4
  12. package/dist/chunk-B6JICUQ6.js.map +1 -0
  13. package/dist/{chunk-FRTNZUUF.js → chunk-CYCXJNPA.js} +2 -2
  14. package/dist/{chunk-HNC2G7AS.js → chunk-DL5RN53R.js} +2 -2
  15. package/dist/{chunk-FD3I5B4X.js → chunk-FHXDRCIW.js} +2 -2
  16. package/dist/{chunk-N7YLNXHT.js → chunk-H64DUJSZ.js} +6 -6
  17. package/dist/{chunk-EXX6WINJ.js → chunk-JV5HRP3S.js} +2 -2
  18. package/dist/{chunk-C3KZXEBR.js → chunk-KIWPXWL7.js} +4 -4
  19. package/dist/{chunk-O3AZI3X2.js → chunk-L7Z7ZLM5.js} +5 -5
  20. package/dist/{chunk-CNB4PA7Q.js → chunk-LGTY3B3Q.js} +5 -5
  21. package/dist/{chunk-AY6EN765.js → chunk-LSQ6TVSS.js} +35 -35
  22. package/dist/{chunk-PAGVGHWL.js → chunk-LWB4RR47.js} +14 -78
  23. package/dist/chunk-LWB4RR47.js.map +1 -0
  24. package/dist/{chunk-KLN7TJLT.js → chunk-MLR4PF64.js} +2 -2
  25. package/dist/{chunk-AMEVOGE7.js → chunk-MPCBYY4J.js} +8 -8
  26. package/dist/{chunk-CIQJIBGF.js → chunk-MPEQHP4D.js} +3 -3
  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-U53YMCSE.js → chunk-UZUECKIV.js} +8 -8
  33. package/dist/{chunk-5DED5UHM.js → chunk-WX5TASVN.js} +3 -3
  34. package/dist/{chunk-2HCONJES.js → chunk-X57EI3U6.js} +2 -2
  35. package/dist/{chunk-3OM2W7H7.js → chunk-XABDFFQV.js} +2 -2
  36. package/dist/{chunk-UM376MEM.js → chunk-Y3WYSLFZ.js} +2 -2
  37. package/dist/{cli-circuit-breaker-NRGM3VBL.js → cli-circuit-breaker-DG2L4C3C.js} +3 -3
  38. package/dist/cli.js +41 -41
  39. package/dist/{composite-router-TSPOS57H.js → composite-router-X5QU6XNZ.js} +2 -2
  40. package/dist/{consensus-vote-ULN3XOCN.js → consensus-vote-3IHQNBNY.js} +16 -16
  41. package/dist/{context-retriever-SGJTQUCI.js → context-retriever-CIFLPUJA.js} +8 -8
  42. package/dist/{doctor-deep-33C5GGB3.js → doctor-deep-FZGNQXDZ.js} +3 -3
  43. package/dist/{doctor-live-XRIVOJLP.js → doctor-live-KGQWMYJY.js} +9 -9
  44. package/dist/{expert-bridge-UH44L5CN.js → expert-bridge-B6ZTEZNH.js} +4 -4
  45. package/dist/{factory-GUDAJED7.js → factory-5BEGXJVB.js} +9 -9
  46. package/dist/{factory-HYFTOF35.js → factory-RLGGFLYD.js} +5 -5
  47. package/dist/{improvement-review-HU7P73SL.js → improvement-review-52J36YLJ.js} +5 -5
  48. package/dist/index.d.ts +133 -56
  49. package/dist/index.js +30 -30
  50. package/dist/{init-opencode-PXLOY7XY.js → init-opencode-JAJXMGOI.js} +6 -6
  51. package/dist/issue-triage-APE6L5YP.js +17 -0
  52. package/dist/{pr-reviewer-helpers-QU4F2A3X.js → pr-reviewer-helpers-KZ4MNSUT.js} +4 -4
  53. package/dist/{registry-command-2LQLUUXG.js → registry-command-AHGSBCNL.js} +2 -2
  54. package/dist/{repo-security-plan-E2MTJPSC.js → repo-security-plan-C4ZSWVY7.js} +3 -3
  55. package/dist/{research-helpers-synthesize-4YBZF2LZ.js → research-helpers-synthesize-C4GK3GU4.js} +4 -4
  56. package/dist/{routing-memory-EIF5XALW.js → routing-memory-WU4C63BA.js} +2 -2
  57. package/dist/{session-memory-5GVHJR26.js → session-memory-LYX5N2IP.js} +3 -3
  58. package/dist/{setup-command-RS4NCQIB.js → setup-command-H4XOEBF5.js} +14 -14
  59. package/dist/{setup-config-PMGHQJ6O.js → setup-config-P722TC57.js} +3 -3
  60. package/dist/{setup-custom-api-JXXGF5QD.js → setup-custom-api-P7T5YKIK.js} +4 -4
  61. package/dist/{tool-memory-YFXJCJFI.js → tool-memory-AL5PXKB4.js} +5 -5
  62. package/dist/{unified-registry-OGXE4772.js → unified-registry-UM4GSYMB.js} +10 -10
  63. package/dist/{weather-report-FV6YYGT4.js → weather-report-QLHSZQOT.js} +2 -2
  64. package/package.json +1 -1
  65. package/dist/chunk-PAGVGHWL.js.map +0 -1
  66. package/dist/chunk-VKLMXCI2.js.map +0 -1
  67. package/dist/issue-triage-B3KU37U3.js +0 -17
  68. /package/dist/{child-mcp-config-BV3OSP24.js.map → child-mcp-config-JTLIU3JR.js.map} +0 -0
  69. /package/dist/{chunk-KVHA4AEF.js.map → chunk-2QYJ7IE2.js.map} +0 -0
  70. /package/dist/{chunk-JRU5G6VW.js.map → chunk-3K3VGOY4.js.map} +0 -0
  71. /package/dist/{chunk-BYDUN7A5.js.map → chunk-3P6N3XZF.js.map} +0 -0
  72. /package/dist/{chunk-4O7TU6R3.js.map → chunk-4JKO5B7A.js.map} +0 -0
  73. /package/dist/{chunk-JJEOBIOI.js.map → chunk-55XLIDEN.js.map} +0 -0
  74. /package/dist/{chunk-ADIMVMAB.js.map → chunk-5GUP54YH.js.map} +0 -0
  75. /package/dist/{chunk-6SBSQDCX.js.map → chunk-73U6W5ZU.js.map} +0 -0
  76. /package/dist/{chunk-BMEJLPAE.js.map → chunk-A7DEF2I6.js.map} +0 -0
  77. /package/dist/{chunk-5HPJB35V.js.map → chunk-AQAGVYWS.js.map} +0 -0
  78. /package/dist/{chunk-FRTNZUUF.js.map → chunk-CYCXJNPA.js.map} +0 -0
  79. /package/dist/{chunk-HNC2G7AS.js.map → chunk-DL5RN53R.js.map} +0 -0
  80. /package/dist/{chunk-FD3I5B4X.js.map → chunk-FHXDRCIW.js.map} +0 -0
  81. /package/dist/{chunk-N7YLNXHT.js.map → chunk-H64DUJSZ.js.map} +0 -0
  82. /package/dist/{chunk-EXX6WINJ.js.map → chunk-JV5HRP3S.js.map} +0 -0
  83. /package/dist/{chunk-C3KZXEBR.js.map → chunk-KIWPXWL7.js.map} +0 -0
  84. /package/dist/{chunk-O3AZI3X2.js.map → chunk-L7Z7ZLM5.js.map} +0 -0
  85. /package/dist/{chunk-CNB4PA7Q.js.map → chunk-LGTY3B3Q.js.map} +0 -0
  86. /package/dist/{chunk-AY6EN765.js.map → chunk-LSQ6TVSS.js.map} +0 -0
  87. /package/dist/{chunk-KLN7TJLT.js.map → chunk-MLR4PF64.js.map} +0 -0
  88. /package/dist/{chunk-AMEVOGE7.js.map → chunk-MPCBYY4J.js.map} +0 -0
  89. /package/dist/{chunk-CIQJIBGF.js.map → chunk-MPEQHP4D.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-U53YMCSE.js.map → chunk-UZUECKIV.js.map} +0 -0
  96. /package/dist/{chunk-5DED5UHM.js.map → chunk-WX5TASVN.js.map} +0 -0
  97. /package/dist/{chunk-2HCONJES.js.map → chunk-X57EI3U6.js.map} +0 -0
  98. /package/dist/{chunk-3OM2W7H7.js.map → chunk-XABDFFQV.js.map} +0 -0
  99. /package/dist/{chunk-UM376MEM.js.map → chunk-Y3WYSLFZ.js.map} +0 -0
  100. /package/dist/{cli-circuit-breaker-NRGM3VBL.js.map → cli-circuit-breaker-DG2L4C3C.js.map} +0 -0
  101. /package/dist/{composite-router-TSPOS57H.js.map → composite-router-X5QU6XNZ.js.map} +0 -0
  102. /package/dist/{consensus-vote-ULN3XOCN.js.map → consensus-vote-3IHQNBNY.js.map} +0 -0
  103. /package/dist/{context-retriever-SGJTQUCI.js.map → context-retriever-CIFLPUJA.js.map} +0 -0
  104. /package/dist/{doctor-deep-33C5GGB3.js.map → doctor-deep-FZGNQXDZ.js.map} +0 -0
  105. /package/dist/{doctor-live-XRIVOJLP.js.map → doctor-live-KGQWMYJY.js.map} +0 -0
  106. /package/dist/{expert-bridge-UH44L5CN.js.map → expert-bridge-B6ZTEZNH.js.map} +0 -0
  107. /package/dist/{factory-GUDAJED7.js.map → factory-5BEGXJVB.js.map} +0 -0
  108. /package/dist/{factory-HYFTOF35.js.map → factory-RLGGFLYD.js.map} +0 -0
  109. /package/dist/{improvement-review-HU7P73SL.js.map → improvement-review-52J36YLJ.js.map} +0 -0
  110. /package/dist/{init-opencode-PXLOY7XY.js.map → init-opencode-JAJXMGOI.js.map} +0 -0
  111. /package/dist/{issue-triage-B3KU37U3.js.map → issue-triage-APE6L5YP.js.map} +0 -0
  112. /package/dist/{pr-reviewer-helpers-QU4F2A3X.js.map → pr-reviewer-helpers-KZ4MNSUT.js.map} +0 -0
  113. /package/dist/{registry-command-2LQLUUXG.js.map → registry-command-AHGSBCNL.js.map} +0 -0
  114. /package/dist/{repo-security-plan-E2MTJPSC.js.map → repo-security-plan-C4ZSWVY7.js.map} +0 -0
  115. /package/dist/{research-helpers-synthesize-4YBZF2LZ.js.map → research-helpers-synthesize-C4GK3GU4.js.map} +0 -0
  116. /package/dist/{routing-memory-EIF5XALW.js.map → routing-memory-WU4C63BA.js.map} +0 -0
  117. /package/dist/{session-memory-5GVHJR26.js.map → session-memory-LYX5N2IP.js.map} +0 -0
  118. /package/dist/{setup-command-RS4NCQIB.js.map → setup-command-H4XOEBF5.js.map} +0 -0
  119. /package/dist/{setup-config-PMGHQJ6O.js.map → setup-config-P722TC57.js.map} +0 -0
  120. /package/dist/{setup-custom-api-JXXGF5QD.js.map → setup-custom-api-P7T5YKIK.js.map} +0 -0
  121. /package/dist/{tool-memory-YFXJCJFI.js.map → tool-memory-AL5PXKB4.js.map} +0 -0
  122. /package/dist/{unified-registry-OGXE4772.js.map → unified-registry-UM4GSYMB.js.map} +0 -0
  123. /package/dist/{weather-report-FV6YYGT4.js.map → weather-report-QLHSZQOT.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  CompositeRoutingError,
5
5
  DEFAULT_COMPOSITE_CONFIG,
6
6
  createCompositeRouter
7
- } from "./chunk-TN7HF2SQ.js";
7
+ } from "./chunk-TMYLHKLJ.js";
8
8
  import "./chunk-2HUC6NZN.js";
9
9
  import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
@@ -15,4 +15,4 @@ export {
15
15
  DEFAULT_COMPOSITE_CONFIG,
16
16
  createCompositeRouter
17
17
  };
18
- //# sourceMappingURL=composite-router-TSPOS57H.js.map
18
+ //# sourceMappingURL=composite-router-X5QU6XNZ.js.map
@@ -11,27 +11,27 @@ import {
11
11
  resetCorrelationTracker,
12
12
  runConsensusForGoal,
13
13
  unwrapVoteOrThrow
14
- } from "./chunk-PAGVGHWL.js";
15
- import "./chunk-BYDUN7A5.js";
14
+ } from "./chunk-LWB4RR47.js";
15
+ import "./chunk-3P6N3XZF.js";
16
16
  import "./chunk-OQB3XC5O.js";
17
- import "./chunk-5DED5UHM.js";
18
- import "./chunk-ADIMVMAB.js";
19
- import "./chunk-VKLMXCI2.js";
20
- import "./chunk-KVHA4AEF.js";
17
+ import "./chunk-WX5TASVN.js";
18
+ import "./chunk-5GUP54YH.js";
19
+ import "./chunk-B6JICUQ6.js";
20
+ import "./chunk-2QYJ7IE2.js";
21
21
  import "./chunk-6T3EPABN.js";
22
- import "./chunk-JRU5G6VW.js";
22
+ import "./chunk-3K3VGOY4.js";
23
23
  import "./chunk-DVKS77O5.js";
24
24
  import "./chunk-KSQSWEFH.js";
25
- import "./chunk-AMEVOGE7.js";
26
- import "./chunk-KLN7TJLT.js";
27
- import "./chunk-HNC2G7AS.js";
28
- import "./chunk-2HCONJES.js";
25
+ import "./chunk-MPCBYY4J.js";
26
+ import "./chunk-MLR4PF64.js";
27
+ import "./chunk-DL5RN53R.js";
28
+ import "./chunk-X57EI3U6.js";
29
29
  import "./chunk-SNJNRDKZ.js";
30
- import "./chunk-S645LGB6.js";
30
+ import "./chunk-TKA6653I.js";
31
31
  import "./chunk-QZUG667L.js";
32
- import "./chunk-FRTNZUUF.js";
33
- import "./chunk-4O7TU6R3.js";
34
- import "./chunk-TN7HF2SQ.js";
32
+ import "./chunk-CYCXJNPA.js";
33
+ import "./chunk-4JKO5B7A.js";
34
+ import "./chunk-TMYLHKLJ.js";
35
35
  import "./chunk-2HUC6NZN.js";
36
36
  import "./chunk-OQLFRJCW.js";
37
37
  import "./chunk-ZPWHCABL.js";
@@ -49,4 +49,4 @@ export {
49
49
  runConsensusForGoal,
50
50
  unwrapVoteOrThrow
51
51
  };
52
- //# sourceMappingURL=consensus-vote-ULN3XOCN.js.map
52
+ //# sourceMappingURL=consensus-vote-3IHQNBNY.js.map
@@ -6,18 +6,18 @@ import {
6
6
  inferTaskCategory,
7
7
  selectRelevantResearch,
8
8
  summarizeContextForPrompt
9
- } from "./chunk-CNB4PA7Q.js";
10
- import "./chunk-UM376MEM.js";
9
+ } from "./chunk-LGTY3B3Q.js";
10
+ import "./chunk-Y3WYSLFZ.js";
11
11
  import "./chunk-NUBSJGQZ.js";
12
- import "./chunk-3OM2W7H7.js";
13
- import "./chunk-KVHA4AEF.js";
12
+ import "./chunk-XABDFFQV.js";
13
+ import "./chunk-2QYJ7IE2.js";
14
14
  import "./chunk-6T3EPABN.js";
15
- import "./chunk-JRU5G6VW.js";
15
+ import "./chunk-3K3VGOY4.js";
16
16
  import "./chunk-DVKS77O5.js";
17
17
  import "./chunk-KSQSWEFH.js";
18
18
  import "./chunk-QZUG667L.js";
19
- import "./chunk-FRTNZUUF.js";
20
- import "./chunk-TN7HF2SQ.js";
19
+ import "./chunk-CYCXJNPA.js";
20
+ import "./chunk-TMYLHKLJ.js";
21
21
  import "./chunk-2HUC6NZN.js";
22
22
  import "./chunk-OQLFRJCW.js";
23
23
  import "./chunk-ZPWHCABL.js";
@@ -30,4 +30,4 @@ export {
30
30
  selectRelevantResearch,
31
31
  summarizeContextForPrompt
32
32
  };
33
- //# sourceMappingURL=context-retriever-SGJTQUCI.js.map
33
+ //# sourceMappingURL=context-retriever-CIFLPUJA.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  formatDeepDiagnostics,
3
3
  runDeepDiagnostics
4
- } from "./chunk-EXX6WINJ.js";
5
- import "./chunk-TN7HF2SQ.js";
4
+ } from "./chunk-JV5HRP3S.js";
5
+ import "./chunk-TMYLHKLJ.js";
6
6
  import "./chunk-2HUC6NZN.js";
7
7
  import "./chunk-OQLFRJCW.js";
8
8
  import "./chunk-ZPWHCABL.js";
@@ -10,4 +10,4 @@ export {
10
10
  formatDeepDiagnostics,
11
11
  runDeepDiagnostics
12
12
  };
13
- //# sourceMappingURL=doctor-deep-33C5GGB3.js.map
13
+ //# sourceMappingURL=doctor-deep-FZGNQXDZ.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  createAllAdapters,
3
3
  probeAllClis
4
- } from "./chunk-AMEVOGE7.js";
5
- import "./chunk-KLN7TJLT.js";
6
- import "./chunk-HNC2G7AS.js";
7
- import "./chunk-2HCONJES.js";
4
+ } from "./chunk-MPCBYY4J.js";
5
+ import "./chunk-MLR4PF64.js";
6
+ import "./chunk-DL5RN53R.js";
7
+ import "./chunk-X57EI3U6.js";
8
8
  import "./chunk-SNJNRDKZ.js";
9
- import "./chunk-S645LGB6.js";
9
+ import "./chunk-TKA6653I.js";
10
10
  import "./chunk-QZUG667L.js";
11
- import "./chunk-FRTNZUUF.js";
12
- import "./chunk-4O7TU6R3.js";
11
+ import "./chunk-CYCXJNPA.js";
12
+ import "./chunk-4JKO5B7A.js";
13
13
  import {
14
14
  resolveClassGuardMs
15
- } from "./chunk-TN7HF2SQ.js";
15
+ } from "./chunk-TMYLHKLJ.js";
16
16
  import "./chunk-2HUC6NZN.js";
17
17
  import "./chunk-OQLFRJCW.js";
18
18
  import "./chunk-ZPWHCABL.js";
@@ -146,4 +146,4 @@ export {
146
146
  formatLiveReadiness,
147
147
  runLiveReadiness
148
148
  };
149
- //# sourceMappingURL=doctor-live-XRIVOJLP.js.map
149
+ //# sourceMappingURL=doctor-live-KGQWMYJY.js.map
@@ -3,9 +3,9 @@ import {
3
3
  shutdownExpertBridge,
4
4
  tokenSplitFromUsage,
5
5
  totalTokensFromUsage
6
- } from "./chunk-4Z2Z52C7.js";
7
- import "./chunk-S645LGB6.js";
8
- import "./chunk-TN7HF2SQ.js";
6
+ } from "./chunk-OYNZ6FCZ.js";
7
+ import "./chunk-TKA6653I.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
  tokenSplitFromUsage,
16
16
  totalTokensFromUsage
17
17
  };
18
- //# sourceMappingURL=expert-bridge-UH44L5CN.js.map
18
+ //# sourceMappingURL=expert-bridge-B6ZTEZNH.js.map
@@ -3,16 +3,16 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-AMEVOGE7.js";
7
- import "./chunk-KLN7TJLT.js";
8
- import "./chunk-HNC2G7AS.js";
9
- import "./chunk-2HCONJES.js";
6
+ } from "./chunk-MPCBYY4J.js";
7
+ import "./chunk-MLR4PF64.js";
8
+ import "./chunk-DL5RN53R.js";
9
+ import "./chunk-X57EI3U6.js";
10
10
  import "./chunk-SNJNRDKZ.js";
11
- import "./chunk-S645LGB6.js";
11
+ import "./chunk-TKA6653I.js";
12
12
  import "./chunk-QZUG667L.js";
13
- import "./chunk-FRTNZUUF.js";
14
- import "./chunk-4O7TU6R3.js";
15
- import "./chunk-TN7HF2SQ.js";
13
+ import "./chunk-CYCXJNPA.js";
14
+ import "./chunk-4JKO5B7A.js";
15
+ import "./chunk-TMYLHKLJ.js";
16
16
  import "./chunk-2HUC6NZN.js";
17
17
  import "./chunk-OQLFRJCW.js";
18
18
  import "./chunk-ZPWHCABL.js";
@@ -22,4 +22,4 @@ export {
22
22
  getAvailableClis,
23
23
  isCliAvailable
24
24
  };
25
- //# sourceMappingURL=factory-GUDAJED7.js.map
25
+ //# sourceMappingURL=factory-5BEGXJVB.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-C3KZXEBR.js";
5
- import "./chunk-JJEOBIOI.js";
6
- import "./chunk-3OM2W7H7.js";
7
- import "./chunk-TN7HF2SQ.js";
4
+ } from "./chunk-KIWPXWL7.js";
5
+ import "./chunk-55XLIDEN.js";
6
+ import "./chunk-XABDFFQV.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
  createGitHubProvider,
13
13
  createScmProvider
14
14
  };
15
- //# sourceMappingURL=factory-HYFTOF35.js.map
15
+ //# sourceMappingURL=factory-RLGGFLYD.js.map
@@ -11,10 +11,10 @@ import {
11
11
  loadSelfEvalSignals,
12
12
  registerImprovementReviewTool,
13
13
  runImprovementReview
14
- } from "./chunk-CIQJIBGF.js";
15
- import "./chunk-5DED5UHM.js";
16
- import "./chunk-ADIMVMAB.js";
17
- import "./chunk-TN7HF2SQ.js";
14
+ } from "./chunk-MPEQHP4D.js";
15
+ import "./chunk-WX5TASVN.js";
16
+ import "./chunk-5GUP54YH.js";
17
+ import "./chunk-TMYLHKLJ.js";
18
18
  import "./chunk-2HUC6NZN.js";
19
19
  import "./chunk-OQLFRJCW.js";
20
20
  import "./chunk-ZPWHCABL.js";
@@ -32,4 +32,4 @@ export {
32
32
  registerImprovementReviewTool,
33
33
  runImprovementReview
34
34
  };
35
- //# sourceMappingURL=improvement-review-HU7P73SL.js.map
35
+ //# sourceMappingURL=improvement-review-52J36YLJ.js.map
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>>;