nexus-agents 2.106.0 → 2.109.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 (115) hide show
  1. package/dist/{child-mcp-config-KP2XBOIB.js → child-mcp-config-VF736CNG.js} +2 -2
  2. package/dist/{chunk-DLFJQ6W6.js → chunk-3NON6THG.js} +2 -2
  3. package/dist/{chunk-KZWJ52HH.js → chunk-4QH4IHCY.js} +2 -2
  4. package/dist/{chunk-75NKH2VD.js → chunk-5H3YYSMY.js} +4 -4
  5. package/dist/{chunk-R2VTDJO5.js → chunk-6R5IEZGJ.js} +5 -5
  6. package/dist/{chunk-CNIRLXNH.js → chunk-7PW7DTAV.js} +3 -3
  7. package/dist/{chunk-E3JGMUGY.js → chunk-AESMMLSZ.js} +4 -4
  8. package/dist/{chunk-CUX775NF.js → chunk-C5OTCDF6.js} +4 -4
  9. package/dist/{chunk-BJQA6DSN.js → chunk-DLWY7U6K.js} +2 -2
  10. package/dist/{chunk-EBJJGYOQ.js → chunk-EAQLDAKX.js} +3 -3
  11. package/dist/{chunk-PRPHNXUM.js → chunk-H47QJVMR.js} +3 -3
  12. package/dist/{chunk-KMASI7UC.js → chunk-H6Q3EPQG.js} +2 -2
  13. package/dist/{chunk-3YWBA5GE.js → chunk-HBPDYYIT.js} +7 -7
  14. package/dist/{chunk-RWAI74H6.js → chunk-HL22AVD4.js} +7 -7
  15. package/dist/{chunk-HNBA265P.js → chunk-ICOKYKLH.js} +31 -31
  16. package/dist/{chunk-M6JRWJZW.js → chunk-IJZGHD7O.js} +2 -2
  17. package/dist/{chunk-BEWKRRNZ.js → chunk-K3UILZ5X.js} +21 -3
  18. package/dist/chunk-K3UILZ5X.js.map +1 -0
  19. package/dist/{chunk-OP4VPTQZ.js → chunk-LLM3HY54.js} +3 -3
  20. package/dist/{chunk-U3Y6AWG5.js → chunk-LQLFZEOP.js} +2 -2
  21. package/dist/{chunk-GMHCPEHS.js → chunk-N5I4PC3P.js} +105 -27
  22. package/dist/chunk-N5I4PC3P.js.map +1 -0
  23. package/dist/{chunk-YL7SS6JZ.js → chunk-PFZNK25E.js} +2 -2
  24. package/dist/{chunk-GRHCGUBQ.js → chunk-RCN76RFJ.js} +157 -17
  25. package/dist/chunk-RCN76RFJ.js.map +1 -0
  26. package/dist/{chunk-MYXT7VPF.js → chunk-RMTFEDQV.js} +2 -2
  27. package/dist/{chunk-SFIGDPAE.js → chunk-RROQMZW2.js} +3 -3
  28. package/dist/{chunk-WPF7G56I.js → chunk-SXI5ZFBR.js} +2 -2
  29. package/dist/{chunk-5UU6BQJ3.js → chunk-TJUGEDQI.js} +2 -2
  30. package/dist/{chunk-VHIRBRZF.js → chunk-UIFDDBIG.js} +2 -2
  31. package/dist/{chunk-2J6HSR6X.js → chunk-V5UOHHOD.js} +2 -2
  32. package/dist/{chunk-2DHISFDY.js → chunk-VO7FEIXD.js} +5 -4
  33. package/dist/{chunk-2DHISFDY.js.map → chunk-VO7FEIXD.js.map} +1 -1
  34. package/dist/{chunk-VIXH6P3Y.js → chunk-YDPEK6NQ.js} +3 -3
  35. package/dist/{chunk-DOIOSEDU.js → chunk-ZFDG2CDY.js} +2 -2
  36. package/dist/{cli-circuit-breaker-PE3AYA56.js → cli-circuit-breaker-X4DTCCLH.js} +4 -4
  37. package/dist/cli.js +37 -37
  38. package/dist/{composite-router-GXLSZZQU.js → composite-router-QJRU2JU5.js} +2 -2
  39. package/dist/{consensus-vote-ZS4IDC5T.js → consensus-vote-HK5G3DYU.js} +12 -12
  40. package/dist/{context-retriever-52RLYDVE.js → context-retriever-3N7NVP57.js} +6 -6
  41. package/dist/{doctor-deep-3463IMLO.js → doctor-deep-6DKSM74K.js} +3 -3
  42. package/dist/{expert-bridge-OBOSFIHR.js → expert-bridge-N7PLXYBV.js} +4 -4
  43. package/dist/{factory-VXD4XO7R.js → factory-U23DIWPS.js} +5 -5
  44. package/dist/factory-UVXXFLOI.js +21 -0
  45. package/dist/{improvement-review-Y4DSR2AF.js → improvement-review-5DRHKSXV.js} +4 -4
  46. package/dist/index.d.ts +13 -4
  47. package/dist/index.js +38 -39
  48. package/dist/index.js.map +1 -1
  49. package/dist/{init-opencode-3FW2TAOR.js → init-opencode-YAYDQ36A.js} +5 -5
  50. package/dist/{issue-triage-KAVEQE5V.js → issue-triage-L3MTN6RS.js} +5 -5
  51. package/dist/{pr-reviewer-helpers-KORDKN6O.js → pr-reviewer-helpers-H4R57FMV.js} +4 -4
  52. package/dist/{registry-command-WZK7PYVZ.js → registry-command-7TVGPC43.js} +2 -2
  53. package/dist/{repo-security-plan-EO5R3S7C.js → repo-security-plan-543K7VCE.js} +3 -3
  54. package/dist/{research-helpers-synthesize-6HFD32XJ.js → research-helpers-synthesize-4BQHGJ3O.js} +3 -3
  55. package/dist/{routing-memory-XPJT3Y6Z.js → routing-memory-QN3PS4SS.js} +2 -2
  56. package/dist/{session-memory-TTE5YPV4.js → session-memory-Q3MMU45M.js} +3 -3
  57. package/dist/{setup-command-VVHIWCD4.js → setup-command-BDBPSHZD.js} +11 -11
  58. package/dist/{setup-config-NEM4KPUA.js → setup-config-D6WCNU6M.js} +3 -3
  59. package/dist/{setup-custom-api-GMMHEJJ5.js → setup-custom-api-SMLJ27IY.js} +3 -3
  60. package/dist/{tool-memory-TTLQ7MHZ.js → tool-memory-H6W6KNR3.js} +5 -5
  61. package/dist/{weather-report-KGAHUQFF.js → weather-report-R3KUDV4W.js} +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-BEWKRRNZ.js.map +0 -1
  64. package/dist/chunk-GMHCPEHS.js.map +0 -1
  65. package/dist/chunk-GRHCGUBQ.js.map +0 -1
  66. package/dist/factory-SM7AIAFL.js +0 -21
  67. /package/dist/{child-mcp-config-KP2XBOIB.js.map → child-mcp-config-VF736CNG.js.map} +0 -0
  68. /package/dist/{chunk-DLFJQ6W6.js.map → chunk-3NON6THG.js.map} +0 -0
  69. /package/dist/{chunk-KZWJ52HH.js.map → chunk-4QH4IHCY.js.map} +0 -0
  70. /package/dist/{chunk-75NKH2VD.js.map → chunk-5H3YYSMY.js.map} +0 -0
  71. /package/dist/{chunk-R2VTDJO5.js.map → chunk-6R5IEZGJ.js.map} +0 -0
  72. /package/dist/{chunk-CNIRLXNH.js.map → chunk-7PW7DTAV.js.map} +0 -0
  73. /package/dist/{chunk-E3JGMUGY.js.map → chunk-AESMMLSZ.js.map} +0 -0
  74. /package/dist/{chunk-CUX775NF.js.map → chunk-C5OTCDF6.js.map} +0 -0
  75. /package/dist/{chunk-BJQA6DSN.js.map → chunk-DLWY7U6K.js.map} +0 -0
  76. /package/dist/{chunk-EBJJGYOQ.js.map → chunk-EAQLDAKX.js.map} +0 -0
  77. /package/dist/{chunk-PRPHNXUM.js.map → chunk-H47QJVMR.js.map} +0 -0
  78. /package/dist/{chunk-KMASI7UC.js.map → chunk-H6Q3EPQG.js.map} +0 -0
  79. /package/dist/{chunk-3YWBA5GE.js.map → chunk-HBPDYYIT.js.map} +0 -0
  80. /package/dist/{chunk-RWAI74H6.js.map → chunk-HL22AVD4.js.map} +0 -0
  81. /package/dist/{chunk-HNBA265P.js.map → chunk-ICOKYKLH.js.map} +0 -0
  82. /package/dist/{chunk-M6JRWJZW.js.map → chunk-IJZGHD7O.js.map} +0 -0
  83. /package/dist/{chunk-OP4VPTQZ.js.map → chunk-LLM3HY54.js.map} +0 -0
  84. /package/dist/{chunk-U3Y6AWG5.js.map → chunk-LQLFZEOP.js.map} +0 -0
  85. /package/dist/{chunk-YL7SS6JZ.js.map → chunk-PFZNK25E.js.map} +0 -0
  86. /package/dist/{chunk-MYXT7VPF.js.map → chunk-RMTFEDQV.js.map} +0 -0
  87. /package/dist/{chunk-SFIGDPAE.js.map → chunk-RROQMZW2.js.map} +0 -0
  88. /package/dist/{chunk-WPF7G56I.js.map → chunk-SXI5ZFBR.js.map} +0 -0
  89. /package/dist/{chunk-5UU6BQJ3.js.map → chunk-TJUGEDQI.js.map} +0 -0
  90. /package/dist/{chunk-VHIRBRZF.js.map → chunk-UIFDDBIG.js.map} +0 -0
  91. /package/dist/{chunk-2J6HSR6X.js.map → chunk-V5UOHHOD.js.map} +0 -0
  92. /package/dist/{chunk-VIXH6P3Y.js.map → chunk-YDPEK6NQ.js.map} +0 -0
  93. /package/dist/{chunk-DOIOSEDU.js.map → chunk-ZFDG2CDY.js.map} +0 -0
  94. /package/dist/{cli-circuit-breaker-PE3AYA56.js.map → cli-circuit-breaker-X4DTCCLH.js.map} +0 -0
  95. /package/dist/{composite-router-GXLSZZQU.js.map → composite-router-QJRU2JU5.js.map} +0 -0
  96. /package/dist/{consensus-vote-ZS4IDC5T.js.map → consensus-vote-HK5G3DYU.js.map} +0 -0
  97. /package/dist/{context-retriever-52RLYDVE.js.map → context-retriever-3N7NVP57.js.map} +0 -0
  98. /package/dist/{doctor-deep-3463IMLO.js.map → doctor-deep-6DKSM74K.js.map} +0 -0
  99. /package/dist/{expert-bridge-OBOSFIHR.js.map → expert-bridge-N7PLXYBV.js.map} +0 -0
  100. /package/dist/{factory-SM7AIAFL.js.map → factory-U23DIWPS.js.map} +0 -0
  101. /package/dist/{factory-VXD4XO7R.js.map → factory-UVXXFLOI.js.map} +0 -0
  102. /package/dist/{improvement-review-Y4DSR2AF.js.map → improvement-review-5DRHKSXV.js.map} +0 -0
  103. /package/dist/{init-opencode-3FW2TAOR.js.map → init-opencode-YAYDQ36A.js.map} +0 -0
  104. /package/dist/{issue-triage-KAVEQE5V.js.map → issue-triage-L3MTN6RS.js.map} +0 -0
  105. /package/dist/{pr-reviewer-helpers-KORDKN6O.js.map → pr-reviewer-helpers-H4R57FMV.js.map} +0 -0
  106. /package/dist/{registry-command-WZK7PYVZ.js.map → registry-command-7TVGPC43.js.map} +0 -0
  107. /package/dist/{repo-security-plan-EO5R3S7C.js.map → repo-security-plan-543K7VCE.js.map} +0 -0
  108. /package/dist/{research-helpers-synthesize-6HFD32XJ.js.map → research-helpers-synthesize-4BQHGJ3O.js.map} +0 -0
  109. /package/dist/{routing-memory-XPJT3Y6Z.js.map → routing-memory-QN3PS4SS.js.map} +0 -0
  110. /package/dist/{session-memory-TTE5YPV4.js.map → session-memory-Q3MMU45M.js.map} +0 -0
  111. /package/dist/{setup-command-VVHIWCD4.js.map → setup-command-BDBPSHZD.js.map} +0 -0
  112. /package/dist/{setup-config-NEM4KPUA.js.map → setup-config-D6WCNU6M.js.map} +0 -0
  113. /package/dist/{setup-custom-api-GMMHEJJ5.js.map → setup-custom-api-SMLJ27IY.js.map} +0 -0
  114. /package/dist/{tool-memory-TTLQ7MHZ.js.map → tool-memory-H6W6KNR3.js.map} +0 -0
  115. /package/dist/{weather-report-KGAHUQFF.js.map → weather-report-R3KUDV4W.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-2DHISFDY.js";
3
+ } from "./chunk-VO7FEIXD.js";
4
4
  import "./chunk-CH7QIDHQ.js";
5
5
  import "./chunk-PR4QN5HX.js";
6
6
 
@@ -59,4 +59,4 @@ export {
59
59
  generateMcpConfig,
60
60
  getDefaultAllowedTools
61
61
  };
62
- //# sourceMappingURL=child-mcp-config-KP2XBOIB.js.map
62
+ //# sourceMappingURL=child-mcp-config-VF736CNG.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-2DHISFDY.js";
7
+ } from "./chunk-VO7FEIXD.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -351,4 +351,4 @@ export {
351
351
  SessionMemory,
352
352
  createSessionMemory
353
353
  };
354
- //# sourceMappingURL=chunk-DLFJQ6W6.js.map
354
+ //# sourceMappingURL=chunk-3NON6THG.js.map
@@ -11,7 +11,7 @@ import {
11
11
  getErrorMessage,
12
12
  getTimeProvider,
13
13
  ok
14
- } from "./chunk-2DHISFDY.js";
14
+ } from "./chunk-VO7FEIXD.js";
15
15
  import {
16
16
  getNexusDataDir
17
17
  } from "./chunk-CH7QIDHQ.js";
@@ -2428,4 +2428,4 @@ export {
2428
2428
  getMcpAnnotations,
2429
2429
  getToolAnnotations
2430
2430
  };
2431
- //# sourceMappingURL=chunk-KZWJ52HH.js.map
2431
+ //# sourceMappingURL=chunk-4QH4IHCY.js.map
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  generateId
8
- } from "./chunk-M6JRWJZW.js";
8
+ } from "./chunk-IJZGHD7O.js";
9
9
  import {
10
10
  getMemoryRegistry
11
11
  } from "./chunk-PQHVC4BD.js";
12
12
  import {
13
13
  SessionMemory
14
- } from "./chunk-DLFJQ6W6.js";
14
+ } from "./chunk-3NON6THG.js";
15
15
  import {
16
16
  ErrorCode,
17
17
  NexusError,
@@ -24,7 +24,7 @@ import {
24
24
  getTimeProvider,
25
25
  ok,
26
26
  setSharedMobiMemDbPathResolver
27
- } from "./chunk-2DHISFDY.js";
27
+ } from "./chunk-VO7FEIXD.js";
28
28
  import {
29
29
  nexusDataPath
30
30
  } from "./chunk-CH7QIDHQ.js";
@@ -5612,4 +5612,4 @@ export {
5612
5612
  reinitializeMemoryBackends,
5613
5613
  ToolMemoryManager
5614
5614
  };
5615
- //# sourceMappingURL=chunk-75NKH2VD.js.map
5615
+ //# sourceMappingURL=chunk-5H3YYSMY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runConfigInitSync
3
- } from "./chunk-2J6HSR6X.js";
3
+ } from "./chunk-V5UOHHOD.js";
4
4
  import {
5
5
  VERSION,
6
6
  checkApiKeys,
@@ -8,10 +8,10 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-RWAI74H6.js";
11
+ } from "./chunk-HL22AVD4.js";
12
12
  import {
13
13
  probeAllClis
14
- } from "./chunk-GMHCPEHS.js";
14
+ } from "./chunk-N5I4PC3P.js";
15
15
  import {
16
16
  BUILT_IN_EXPERTS
17
17
  } from "./chunk-ZM4O442V.js";
@@ -25,7 +25,7 @@ import {
25
25
  getErrorMessage,
26
26
  getTimeProvider,
27
27
  symbols
28
- } from "./chunk-2DHISFDY.js";
28
+ } from "./chunk-VO7FEIXD.js";
29
29
  import {
30
30
  ensureGitignored,
31
31
  findRepoRoot
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-R2VTDJO5.js.map
1990
+ //# sourceMappingURL=chunk-6R5IEZGJ.js.map
@@ -9,11 +9,11 @@ import {
9
9
  gateWithReputation,
10
10
  resolveReputationGatingMode,
11
11
  sanitizeInput
12
- } from "./chunk-BJQA6DSN.js";
12
+ } from "./chunk-DLWY7U6K.js";
13
13
  import {
14
14
  createLogger,
15
15
  getTimeProvider
16
- } from "./chunk-2DHISFDY.js";
16
+ } from "./chunk-VO7FEIXD.js";
17
17
 
18
18
  // src/dogfooding/pr-reviewer-helpers.ts
19
19
  import { randomUUID } from "crypto";
@@ -288,4 +288,4 @@ export {
288
288
  formatReviewComment,
289
289
  createFailedReview
290
290
  };
291
- //# sourceMappingURL=chunk-CNIRLXNH.js.map
291
+ //# sourceMappingURL=chunk-7PW7DTAV.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-5UU6BQJ3.js";
3
+ } from "./chunk-TJUGEDQI.js";
4
4
  import {
5
5
  GitHubProvider,
6
6
  ScmError
7
- } from "./chunk-U3Y6AWG5.js";
7
+ } from "./chunk-LQLFZEOP.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-2DHISFDY.js";
11
+ } from "./chunk-VO7FEIXD.js";
12
12
 
13
13
  // src/scm/factory.ts
14
14
  async function createScmProvider(config) {
@@ -41,4 +41,4 @@ export {
41
41
  createScmProvider,
42
42
  createGitHubProvider
43
43
  };
44
- //# sourceMappingURL=chunk-E3JGMUGY.js.map
44
+ //# sourceMappingURL=chunk-AESMMLSZ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-U3Y6AWG5.js";
4
+ } from "./chunk-LQLFZEOP.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,13 +11,13 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-BJQA6DSN.js";
14
+ } from "./chunk-DLWY7U6K.js";
15
15
  import {
16
16
  createLogger,
17
17
  err,
18
18
  getTimeProvider,
19
19
  ok
20
- } from "./chunk-2DHISFDY.js";
20
+ } from "./chunk-VO7FEIXD.js";
21
21
 
22
22
  // src/security/trust-classifier.ts
23
23
  function mapAuthorAssociation(association) {
@@ -1390,4 +1390,4 @@ export {
1390
1390
  IssueTriage,
1391
1391
  createIssueTriage
1392
1392
  };
1393
- //# sourceMappingURL=chunk-CUX775NF.js.map
1393
+ //# sourceMappingURL=chunk-C5OTCDF6.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-2DHISFDY.js";
5
+ } from "./chunk-VO7FEIXD.js";
6
6
 
7
7
  // src/security/trust-types.ts
8
8
  import { z } from "zod";
@@ -560,4 +560,4 @@ export {
560
560
  resolveReputationGatingMode,
561
561
  gateWithReputation
562
562
  };
563
- //# sourceMappingURL=chunk-BJQA6DSN.js.map
563
+ //# sourceMappingURL=chunk-DLWY7U6K.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getToolMemory
3
- } from "./chunk-75NKH2VD.js";
3
+ } from "./chunk-5H3YYSMY.js";
4
4
  import {
5
5
  CLI_NAMES,
6
6
  StrategyDistiller,
7
7
  createLogger,
8
8
  getOutcomeStore,
9
9
  registerPersistentDistillerFactory
10
- } from "./chunk-2DHISFDY.js";
10
+ } from "./chunk-VO7FEIXD.js";
11
11
  import {
12
12
  ensureLearningDir,
13
13
  getRulesFile
@@ -273,4 +273,4 @@ export {
273
273
  inferTaskCategory,
274
274
  summarizeContextForPrompt
275
275
  };
276
- //# sourceMappingURL=chunk-EBJJGYOQ.js.map
276
+ //# sourceMappingURL=chunk-EAQLDAKX.js.map
@@ -2,14 +2,14 @@ import {
2
2
  CircuitBreakerRegistry,
3
3
  CircuitError,
4
4
  mapCliErrorToCategory
5
- } from "./chunk-BEWKRRNZ.js";
5
+ } from "./chunk-K3UILZ5X.js";
6
6
  import {
7
7
  createLogger,
8
8
  err,
9
9
  getFallbackChainForCategory,
10
10
  getTimeProvider,
11
11
  ok
12
- } from "./chunk-2DHISFDY.js";
12
+ } from "./chunk-VO7FEIXD.js";
13
13
 
14
14
  // src/cli-adapters/cli-circuit-breaker.ts
15
15
  var CATEGORY_TO_FALLBACK = {
@@ -152,4 +152,4 @@ export {
152
152
  CliCircuitBreakerIntegration,
153
153
  createCliCircuitBreakerIntegration
154
154
  };
155
- //# sourceMappingURL=chunk-PRPHNXUM.js.map
155
+ //# sourceMappingURL=chunk-H47QJVMR.js.map
@@ -10,7 +10,7 @@ import {
10
10
  getTokenEstimator,
11
11
  isRateLimitLikeError,
12
12
  ok
13
- } from "./chunk-2DHISFDY.js";
13
+ } from "./chunk-VO7FEIXD.js";
14
14
 
15
15
  // src/adapters/base-adapter.ts
16
16
  var AdapterModelError = class extends ModelError {
@@ -707,4 +707,4 @@ export {
707
707
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
708
708
  collectStream
709
709
  };
710
- //# sourceMappingURL=chunk-KMASI7UC.js.map
710
+ //# sourceMappingURL=chunk-H6Q3EPQG.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-MYXT7VPF.js";
3
+ } from "./chunk-RMTFEDQV.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-2DHISFDY.js";
8
+ } from "./chunk-VO7FEIXD.js";
9
9
 
10
10
  // src/pipeline/expert-bridge.ts
11
11
  function resolveCliFromModelString(model) {
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
21
21
  if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
22
22
  mcpConfigInitPromise ??= (async () => {
23
23
  try {
24
- const { generateMcpConfig } = await import("./child-mcp-config-KP2XBOIB.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-VF736CNG.js");
25
25
  const config = await generateMcpConfig();
26
26
  cachedMcpConfigPath = config.configPath;
27
27
  cachedMcpConfigCleanup = config.cleanup;
@@ -93,8 +93,8 @@ var routerInitPromise = null;
93
93
  async function getRouter() {
94
94
  if (cachedRouter !== null) return cachedRouter;
95
95
  routerInitPromise ??= (async () => {
96
- const { createAllAdapters } = await import("./factory-SM7AIAFL.js");
97
- const { createCompositeRouter } = await import("./composite-router-GXLSZZQU.js");
96
+ const { createAllAdapters } = await import("./factory-UVXXFLOI.js");
97
+ const { createCompositeRouter } = await import("./composite-router-QJRU2JU5.js");
98
98
  const adapters = createAllAdapters();
99
99
  if (adapters.size === 0) {
100
100
  routerInitPromise = null;
@@ -102,7 +102,7 @@ async function getRouter() {
102
102
  }
103
103
  cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
104
104
  try {
105
- const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-PE3AYA56.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-X4DTCCLH.js");
106
106
  cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
107
107
  } catch (error) {
108
108
  const msg = error instanceof Error ? error.message : String(error);
@@ -213,4 +213,4 @@ export {
213
213
  tokenSplitFromUsage,
214
214
  executeExpert
215
215
  };
216
- //# sourceMappingURL=chunk-3YWBA5GE.js.map
216
+ //# sourceMappingURL=chunk-HBPDYYIT.js.map
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  createAllAdapters,
9
9
  probeCli
10
- } from "./chunk-GMHCPEHS.js";
10
+ } from "./chunk-N5I4PC3P.js";
11
11
  import {
12
12
  DEFAULTS
13
- } from "./chunk-DOIOSEDU.js";
13
+ } from "./chunk-ZFDG2CDY.js";
14
14
  import {
15
15
  CliNameSchema,
16
16
  DEFAULT_CAPABILITIES,
@@ -26,7 +26,7 @@ import {
26
26
  ok,
27
27
  symbols,
28
28
  writeLine
29
- } from "./chunk-2DHISFDY.js";
29
+ } from "./chunk-VO7FEIXD.js";
30
30
  import {
31
31
  detectSandbox,
32
32
  getLearningDir,
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-CH7QIDHQ.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.106.0" : "dev";
43
+ var VERSION = true ? "2.109.0" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
2096
2096
  writeLine2("\u2500".repeat(40));
2097
2097
  let fixCount = 0;
2098
2098
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2099
- const { runSetup } = await import("./setup-command-VVHIWCD4.js");
2099
+ const { runSetup } = await import("./setup-command-BDBPSHZD.js");
2100
2100
  const setupResult = runSetup({
2101
2101
  skipMcp: true,
2102
2102
  skipRules: true,
@@ -2110,7 +2110,7 @@ async function runDoctorFix(result) {
2110
2110
  }
2111
2111
  }
2112
2112
  if (!result.configFile.found) {
2113
- const { runConfigInitSync } = await import("./setup-config-NEM4KPUA.js");
2113
+ const { runConfigInitSync } = await import("./setup-config-D6WCNU6M.js");
2114
2114
  const configResult = runConfigInitSync(process.cwd(), false, false);
2115
2115
  if (configResult.success && configResult.created) {
2116
2116
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -2208,4 +2208,4 @@ export {
2208
2208
  startStdioServer,
2209
2209
  closeServer
2210
2210
  };
2211
- //# sourceMappingURL=chunk-RWAI74H6.js.map
2211
+ //# sourceMappingURL=chunk-HL22AVD4.js.map
@@ -6,10 +6,10 @@ import {
6
6
  import {
7
7
  getTokenEnvVars,
8
8
  resolveToken
9
- } from "./chunk-5UU6BQJ3.js";
9
+ } from "./chunk-TJUGEDQI.js";
10
10
  import {
11
11
  executeExpert
12
- } from "./chunk-3YWBA5GE.js";
12
+ } from "./chunk-HBPDYYIT.js";
13
13
  import {
14
14
  EventTopics,
15
15
  JobStatusSchema,
@@ -30,7 +30,7 @@ import {
30
30
  writeJobComplete,
31
31
  writeJobFailed,
32
32
  writeJobPending
33
- } from "./chunk-GRHCGUBQ.js";
33
+ } from "./chunk-RCN76RFJ.js";
34
34
  import {
35
35
  REGISTRY_PATH,
36
36
  getProjectRoot,
@@ -39,19 +39,19 @@ import {
39
39
  normalizeTopicToCanonical,
40
40
  savePapersRegistry,
41
41
  synthesizeResearch
42
- } from "./chunk-VHIRBRZF.js";
42
+ } from "./chunk-UIFDDBIG.js";
43
43
  import {
44
44
  IssueTriage,
45
45
  createAuditTrail,
46
46
  createGraphAuditBridge
47
- } from "./chunk-CUX775NF.js";
47
+ } from "./chunk-C5OTCDF6.js";
48
48
  import {
49
49
  resolveEnvMode,
50
50
  sanitizeInput
51
- } from "./chunk-BJQA6DSN.js";
51
+ } from "./chunk-DLWY7U6K.js";
52
52
  import {
53
53
  withPrerequisite
54
- } from "./chunk-SFIGDPAE.js";
54
+ } from "./chunk-RROQMZW2.js";
55
55
  import {
56
56
  NOOP_NOTIFIER,
57
57
  RateLimiter,
@@ -71,10 +71,10 @@ import {
71
71
  withAccessPolicy,
72
72
  withProgressHeartbeat,
73
73
  wrapToolWithTimeout
74
- } from "./chunk-KZWJ52HH.js";
74
+ } from "./chunk-4QH4IHCY.js";
75
75
  import {
76
76
  generateSecurityPlan
77
- } from "./chunk-WPF7G56I.js";
77
+ } from "./chunk-SXI5ZFBR.js";
78
78
  import {
79
79
  analyzeGitHubRepo
80
80
  } from "./chunk-HFOQKCD2.js";
@@ -82,18 +82,18 @@ import {
82
82
  getContextForTask,
83
83
  inferTaskCategory,
84
84
  summarizeContextForPrompt
85
- } from "./chunk-EBJJGYOQ.js";
85
+ } from "./chunk-EAQLDAKX.js";
86
86
  import {
87
87
  DEFAULT_RELEVANCE_CONFIG,
88
88
  MemoryImportance,
89
89
  calculateTextJaccardSimilarity,
90
90
  getToolMemory
91
- } from "./chunk-75NKH2VD.js";
91
+ } from "./chunk-5H3YYSMY.js";
92
92
  import {
93
93
  DEFAULT_TASK_TTL_MS,
94
94
  DEFAULT_TOOL_RATE_LIMITS,
95
95
  clampTaskTtl
96
- } from "./chunk-RWAI74H6.js";
96
+ } from "./chunk-HL22AVD4.js";
97
97
  import {
98
98
  resolveInsideRoot
99
99
  } from "./chunk-NUBSJGQZ.js";
@@ -109,19 +109,19 @@ import {
109
109
  getAvailableClis,
110
110
  sleep,
111
111
  withTimeout
112
- } from "./chunk-GMHCPEHS.js";
112
+ } from "./chunk-N5I4PC3P.js";
113
113
  import {
114
114
  DEFAULTS
115
- } from "./chunk-DOIOSEDU.js";
115
+ } from "./chunk-ZFDG2CDY.js";
116
116
  import {
117
117
  getAvailabilityCache,
118
118
  getCliForModelId,
119
119
  resolveFallback
120
- } from "./chunk-MYXT7VPF.js";
120
+ } from "./chunk-RMTFEDQV.js";
121
121
  import {
122
122
  generateHyphenId,
123
123
  generateUUID
124
- } from "./chunk-M6JRWJZW.js";
124
+ } from "./chunk-IJZGHD7O.js";
125
125
  import {
126
126
  BUILT_IN_EXPERTS,
127
127
  BuiltInExpertTypeSchema,
@@ -133,7 +133,7 @@ import {
133
133
  } from "./chunk-PQHVC4BD.js";
134
134
  import {
135
135
  createSessionMemory
136
- } from "./chunk-DLFJQ6W6.js";
136
+ } from "./chunk-3NON6THG.js";
137
137
  import {
138
138
  AGENT_ROUTER_TIMEOUTS,
139
139
  API_TIMEOUTS,
@@ -208,7 +208,7 @@ import {
208
208
  routingArmDisplaySlot,
209
209
  toExpertTaskAnalysisResult,
210
210
  withStep
211
- } from "./chunk-2DHISFDY.js";
211
+ } from "./chunk-VO7FEIXD.js";
212
212
  import {
213
213
  nexusDataPath,
214
214
  nexusDataPathEnsure
@@ -27066,7 +27066,7 @@ async function populateUnifiedContextOnState(state) {
27066
27066
  try {
27067
27067
  const taskCandidate = state["task"];
27068
27068
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
27069
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-52RLYDVE.js");
27069
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-3N7NVP57.js");
27070
27070
  const ctx = await getContextForTask2({
27071
27071
  task: taskCandidate,
27072
27072
  category: inferTaskCategory2(taskCandidate),
@@ -42831,7 +42831,7 @@ async function tryIssueTriage(task) {
42831
42831
  try {
42832
42832
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
42833
42833
  if (issueMatch === null) return null;
42834
- const { createIssueTriage } = await import("./issue-triage-KAVEQE5V.js");
42834
+ const { createIssueTriage } = await import("./issue-triage-L3MTN6RS.js");
42835
42835
  const triage = createIssueTriage();
42836
42836
  const owner = issueMatch[1] ?? "";
42837
42837
  const num = issueMatch[2] ?? "";
@@ -42859,7 +42859,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
42859
42859
  ]);
42860
42860
  async function classifyWithLLM(task) {
42861
42861
  try {
42862
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-OBOSFIHR.js");
42862
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-N7PLXYBV.js");
42863
42863
  const prompt = [
42864
42864
  "Classify this task into exactly one pipeline template.",
42865
42865
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43779,7 +43779,7 @@ var memoryInitPromise = null;
43779
43779
  async function initPipelineMemory() {
43780
43780
  if (cachedMemory !== null) return cachedMemory;
43781
43781
  try {
43782
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-TTE5YPV4.js");
43782
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-Q3MMU45M.js");
43783
43783
  const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
43784
43784
  const mem = createSessionMemory2(getLearningDir());
43785
43785
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43836,7 +43836,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0)
43836
43836
  callRecord(routingMemoryCache);
43837
43837
  return;
43838
43838
  }
43839
- routingMemoryInitPromise ??= import("./routing-memory-XPJT3Y6Z.js").then(({ createRoutingMemory }) => {
43839
+ routingMemoryInitPromise ??= import("./routing-memory-QN3PS4SS.js").then(({ createRoutingMemory }) => {
43840
43840
  routingMemoryCache ??= createRoutingMemory();
43841
43841
  return routingMemoryCache;
43842
43842
  }).catch((error) => {
@@ -43870,7 +43870,7 @@ ${text}` : "";
43870
43870
  }
43871
43871
  async function getWeatherContext() {
43872
43872
  try {
43873
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-KGAHUQFF.js");
43873
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-R3KUDV4W.js");
43874
43874
  const report = generateWeatherReport2({ includeAdaptive: true });
43875
43875
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43876
43876
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43888,7 +43888,7 @@ ${lines}
43888
43888
  }
43889
43889
  async function getMemoryContext(task) {
43890
43890
  try {
43891
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-TTE5YPV4.js");
43891
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-Q3MMU45M.js");
43892
43892
  const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
43893
43893
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43894
43894
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43999,7 +43999,7 @@ ${contextBlock}`;
43999
43999
  const strategy = config.votingStrategy ?? "higher_order";
44000
44000
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
44001
44001
  try {
44002
- const { executeVoting } = await import("./consensus-vote-ZS4IDC5T.js");
44002
+ const { executeVoting } = await import("./consensus-vote-HK5G3DYU.js");
44003
44003
  const votingResult = await executeVoting(
44004
44004
  {
44005
44005
  proposal: buildVoteProposal(plan, research),
@@ -44997,7 +44997,7 @@ async function searchCodebaseForTask(task) {
44997
44997
  }
44998
44998
  async function queryResearchRegistry(task) {
44999
44999
  try {
45000
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-6HFD32XJ.js");
45000
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-4BQHGJ3O.js");
45001
45001
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
45002
45002
  if (topic === void 0) return null;
45003
45003
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -45068,7 +45068,7 @@ function createScanStageWrapper() {
45068
45068
  try {
45069
45069
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
45070
45070
  if (slug !== void 0) {
45071
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-EO5R3S7C.js");
45071
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-543K7VCE.js");
45072
45072
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
45073
45073
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
45074
45074
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -46594,7 +46594,7 @@ async function probeSource(source, includeModelIds) {
46594
46594
  }
46595
46595
  }
46596
46596
  async function defaultSources(includeOpenRouter) {
46597
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-SM7AIAFL.js");
46597
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-UVXXFLOI.js");
46598
46598
  const adapters = createAllAdapters2();
46599
46599
  return buildDefaultModelSources(adapters, { includeOpenRouter });
46600
46600
  }
@@ -50209,7 +50209,7 @@ var GitHubTaskTracker = class {
50209
50209
  cachedProvider = null;
50210
50210
  async getProvider() {
50211
50211
  if (this.cachedProvider !== null) return this.cachedProvider;
50212
- const { createScmProvider } = await import("./factory-VXD4XO7R.js");
50212
+ const { createScmProvider } = await import("./factory-U23DIWPS.js");
50213
50213
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
50214
50214
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
50215
50215
  this.cachedProvider = result.value;
@@ -50920,4 +50920,4 @@ export {
50920
50920
  detectBackend,
50921
50921
  createTaskTracker
50922
50922
  };
50923
- //# sourceMappingURL=chunk-HNBA265P.js.map
50923
+ //# sourceMappingURL=chunk-ICOKYKLH.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-2DHISFDY.js";
4
+ } from "./chunk-VO7FEIXD.js";
5
5
 
6
6
  // src/utils/id-utils.ts
7
7
  import { randomUUID } from "crypto";
@@ -24,4 +24,4 @@ export {
24
24
  generateHyphenId,
25
25
  generateUUID
26
26
  };
27
- //# sourceMappingURL=chunk-M6JRWJZW.js.map
27
+ //# sourceMappingURL=chunk-IJZGHD7O.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-2DHISFDY.js";
8
+ } from "./chunk-VO7FEIXD.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -346,12 +346,30 @@ function mapCliErrorToCategory(errorCode) {
346
346
  };
347
347
  return mapping[errorCode] ?? "unknown";
348
348
  }
349
+ function mapModelErrorToCategory(error) {
350
+ switch (error.code) {
351
+ case ErrorCode.MODEL_TIMEOUT:
352
+ case ErrorCode.TIMEOUT_ERROR:
353
+ return "timeout";
354
+ case ErrorCode.UNAUTHORIZED:
355
+ return "authentication";
356
+ case ErrorCode.MODEL_RATE_LIMITED:
357
+ case ErrorCode.RATE_LIMIT_ERROR:
358
+ return "rate_limit";
359
+ case ErrorCode.MODEL_UNAVAILABLE:
360
+ case ErrorCode.MODEL_NOT_FOUND:
361
+ return "connection";
362
+ default:
363
+ return categorizeError(error);
364
+ }
365
+ }
349
366
 
350
367
  export {
351
368
  CircuitError,
352
369
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
353
370
  CliCircuitBreaker,
354
371
  CircuitBreakerRegistry,
355
- mapCliErrorToCategory
372
+ mapCliErrorToCategory,
373
+ mapModelErrorToCategory
356
374
  };
357
- //# sourceMappingURL=chunk-BEWKRRNZ.js.map
375
+ //# sourceMappingURL=chunk-K3UILZ5X.js.map