nexus-agents 8.81.1 → 8.81.2

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 (130) hide show
  1. package/dist/{ast-rule-runner-JQEXQ6TH.js → ast-rule-runner-E7YTMJ5Y.js} +3 -3
  2. package/dist/{child-mcp-config-MBLR2WWP.js → child-mcp-config-QDIGRNBU.js} +2 -2
  3. package/dist/{chunk-YQKBO7CK.js → chunk-4FYP7M2K.js} +2 -2
  4. package/dist/{chunk-S3IRRRRS.js → chunk-54ONOJKD.js} +45 -42
  5. package/dist/chunk-54ONOJKD.js.map +1 -0
  6. package/dist/{chunk-YCQKR566.js → chunk-5ROOEIQK.js} +5 -5
  7. package/dist/{chunk-XM5XOIIQ.js → chunk-643BLSSB.js} +4 -4
  8. package/dist/{chunk-6B6PD72V.js → chunk-7SQMHEZD.js} +2 -2
  9. package/dist/{chunk-Z3C6CK5H.js → chunk-7VYISKPN.js} +2 -2
  10. package/dist/{chunk-4GPACB6C.js → chunk-AOPT42VD.js} +14 -6
  11. package/dist/{chunk-4GPACB6C.js.map → chunk-AOPT42VD.js.map} +1 -1
  12. package/dist/{chunk-B3R6LHO7.js → chunk-BJTMODGX.js} +2 -2
  13. package/dist/{chunk-HCMXZN2Q.js → chunk-CDXK5Z4N.js} +4 -4
  14. package/dist/{chunk-5H5H334P.js → chunk-F5RDXNLX.js} +4 -4
  15. package/dist/{chunk-ANSKQCTR.js → chunk-FB7QZNIS.js} +7 -7
  16. package/dist/{chunk-HEZI4EBH.js → chunk-GNATBL4B.js} +2 -2
  17. package/dist/{chunk-DFD4CQ2N.js → chunk-GTTW6T6G.js} +5 -5
  18. package/dist/{chunk-FP2U5LWP.js → chunk-H7UDQ7AP.js} +2 -2
  19. package/dist/{chunk-A4TQILS7.js → chunk-I32LUMPP.js} +2 -2
  20. package/dist/{chunk-SFD7Q4PF.js → chunk-JVJMGGQZ.js} +2 -2
  21. package/dist/{chunk-TV7F24E5.js → chunk-KENW5TDE.js} +2 -2
  22. package/dist/{chunk-ZDHUGKF2.js → chunk-LAWMKRBU.js} +2 -2
  23. package/dist/{chunk-T3UKXQIJ.js → chunk-LYC3QM2R.js} +2 -2
  24. package/dist/{chunk-WZLS7Y5S.js → chunk-MZLQLZH5.js} +3 -3
  25. package/dist/{chunk-E2EU625K.js → chunk-NW5IGUSD.js} +8 -8
  26. package/dist/{chunk-XSWUOJTT.js → chunk-OEANQZOP.js} +2 -2
  27. package/dist/{chunk-MKLOFVZQ.js → chunk-P3YYHAEO.js} +2 -2
  28. package/dist/{chunk-A7365L3F.js → chunk-RLF2Q3MC.js} +2 -2
  29. package/dist/{chunk-PAMBTVX2.js → chunk-SJBSYJVH.js} +9 -9
  30. package/dist/{chunk-JAQ22ZXB.js → chunk-VFHDRNRH.js} +33 -14
  31. package/dist/chunk-VFHDRNRH.js.map +1 -0
  32. package/dist/{chunk-NNSE7UKZ.js → chunk-VG7RD3RT.js} +3 -3
  33. package/dist/{chunk-ADCRZSGS.js → chunk-VHLA4NKL.js} +2 -2
  34. package/dist/{chunk-6QCRY5T6.js → chunk-VNSGVNDY.js} +3 -3
  35. package/dist/{chunk-RDONHGG5.js → chunk-WCI2ZMN3.js} +3 -3
  36. package/dist/{chunk-2SYNAJSQ.js → chunk-XZJR4KWT.js} +2 -2
  37. package/dist/{chunk-QAQA7I2I.js → chunk-YFVB5GMV.js} +2 -2
  38. package/dist/{chunk-FWLDPML6.js → chunk-ZZIETXPR.js} +10 -10
  39. package/dist/{cli-circuit-breaker-OB3KVAKE.js → cli-circuit-breaker-Q44WXEDM.js} +3 -3
  40. package/dist/cli.d.ts +1 -1
  41. package/dist/cli.js +43 -43
  42. package/dist/cli.js.map +1 -1
  43. package/dist/{composite-router-6LPQBPF3.js → composite-router-SLF6L4SP.js} +2 -2
  44. package/dist/{consensus-vote-EIC4EVP5.js → consensus-vote-GJXCIUFH.js} +16 -16
  45. package/dist/{consensus-vote-types-B4e7bt34.d.ts → consensus-vote-types-DkRs8FbB.d.ts} +1 -1
  46. package/dist/{context-retriever-MTVZNKVQ.js → context-retriever-NV2CYR7J.js} +8 -8
  47. package/dist/{doctor-deep-BU7R2LOQ.js → doctor-deep-G7KB72NK.js} +3 -3
  48. package/dist/{doctor-live-GD5KNRY4.js → doctor-live-LMJTMTHX.js} +10 -10
  49. package/dist/{expert-bridge-NPPEA7XN.js → expert-bridge-RL2DJ7DC.js} +4 -4
  50. package/dist/{factory-EMF4QWKO.js → factory-F62344QV.js} +5 -5
  51. package/dist/{factory-UAQIMW4O.js → factory-L3NSWNGK.js} +9 -9
  52. package/dist/{improvement-review-TWAAJKCK.js → improvement-review-FK2PUKVY.js} +5 -5
  53. package/dist/index.d.ts +22 -3
  54. package/dist/index.js +33 -31
  55. package/dist/index.js.map +1 -1
  56. package/dist/{init-opencode-GYAHDQTE.js → init-opencode-YAXNZBN3.js} +5 -5
  57. package/dist/issue-triage-ACJXDFSC.js +16 -0
  58. package/dist/{pr-reviewer-helpers-OD44PPEH.js → pr-reviewer-helpers-WMTOSCB4.js} +4 -4
  59. package/dist/{registry-command-6TONMQE3.js → registry-command-2TMBJYSO.js} +2 -2
  60. package/dist/{repo-security-plan-JQ3LU7A6.js → repo-security-plan-EV4P7JAK.js} +3 -3
  61. package/dist/{research-helpers-synthesize-WBAM233C.js → research-helpers-synthesize-2P6WFMIY.js} +4 -4
  62. package/dist/{routing-memory-5W6CULZU.js → routing-memory-O2GSQEBA.js} +2 -2
  63. package/dist/{session-memory-ZL4CXIX5.js → session-memory-VAOVD4VO.js} +3 -3
  64. package/dist/{setup-config-TDAO22HG.js → setup-config-H7WHYFTU.js} +3 -3
  65. package/dist/{setup-custom-api-BKLCM3EZ.js → setup-custom-api-DTG3365A.js} +4 -4
  66. package/dist/setup-data-dir-MBJVLZKP.js +30 -0
  67. package/dist/{tool-memory-EE7UEHYX.js → tool-memory-WLTKWKMS.js} +5 -5
  68. package/dist/{unified-registry-PYEGUTPZ.js → unified-registry-NR5TF6OS.js} +10 -10
  69. package/dist/{weather-report-CHOTQD4X.js → weather-report-7P7EL3KA.js} +2 -2
  70. package/package.json +1 -1
  71. package/dist/chunk-JAQ22ZXB.js.map +0 -1
  72. package/dist/chunk-S3IRRRRS.js.map +0 -1
  73. package/dist/issue-triage-ANVDVOUF.js +0 -16
  74. package/dist/setup-data-dir-C2PEW7GZ.js +0 -30
  75. /package/dist/{ast-rule-runner-JQEXQ6TH.js.map → ast-rule-runner-E7YTMJ5Y.js.map} +0 -0
  76. /package/dist/{child-mcp-config-MBLR2WWP.js.map → child-mcp-config-QDIGRNBU.js.map} +0 -0
  77. /package/dist/{chunk-YQKBO7CK.js.map → chunk-4FYP7M2K.js.map} +0 -0
  78. /package/dist/{chunk-YCQKR566.js.map → chunk-5ROOEIQK.js.map} +0 -0
  79. /package/dist/{chunk-XM5XOIIQ.js.map → chunk-643BLSSB.js.map} +0 -0
  80. /package/dist/{chunk-6B6PD72V.js.map → chunk-7SQMHEZD.js.map} +0 -0
  81. /package/dist/{chunk-Z3C6CK5H.js.map → chunk-7VYISKPN.js.map} +0 -0
  82. /package/dist/{chunk-B3R6LHO7.js.map → chunk-BJTMODGX.js.map} +0 -0
  83. /package/dist/{chunk-HCMXZN2Q.js.map → chunk-CDXK5Z4N.js.map} +0 -0
  84. /package/dist/{chunk-5H5H334P.js.map → chunk-F5RDXNLX.js.map} +0 -0
  85. /package/dist/{chunk-ANSKQCTR.js.map → chunk-FB7QZNIS.js.map} +0 -0
  86. /package/dist/{chunk-HEZI4EBH.js.map → chunk-GNATBL4B.js.map} +0 -0
  87. /package/dist/{chunk-DFD4CQ2N.js.map → chunk-GTTW6T6G.js.map} +0 -0
  88. /package/dist/{chunk-FP2U5LWP.js.map → chunk-H7UDQ7AP.js.map} +0 -0
  89. /package/dist/{chunk-A4TQILS7.js.map → chunk-I32LUMPP.js.map} +0 -0
  90. /package/dist/{chunk-SFD7Q4PF.js.map → chunk-JVJMGGQZ.js.map} +0 -0
  91. /package/dist/{chunk-TV7F24E5.js.map → chunk-KENW5TDE.js.map} +0 -0
  92. /package/dist/{chunk-ZDHUGKF2.js.map → chunk-LAWMKRBU.js.map} +0 -0
  93. /package/dist/{chunk-T3UKXQIJ.js.map → chunk-LYC3QM2R.js.map} +0 -0
  94. /package/dist/{chunk-WZLS7Y5S.js.map → chunk-MZLQLZH5.js.map} +0 -0
  95. /package/dist/{chunk-E2EU625K.js.map → chunk-NW5IGUSD.js.map} +0 -0
  96. /package/dist/{chunk-XSWUOJTT.js.map → chunk-OEANQZOP.js.map} +0 -0
  97. /package/dist/{chunk-MKLOFVZQ.js.map → chunk-P3YYHAEO.js.map} +0 -0
  98. /package/dist/{chunk-A7365L3F.js.map → chunk-RLF2Q3MC.js.map} +0 -0
  99. /package/dist/{chunk-PAMBTVX2.js.map → chunk-SJBSYJVH.js.map} +0 -0
  100. /package/dist/{chunk-NNSE7UKZ.js.map → chunk-VG7RD3RT.js.map} +0 -0
  101. /package/dist/{chunk-ADCRZSGS.js.map → chunk-VHLA4NKL.js.map} +0 -0
  102. /package/dist/{chunk-6QCRY5T6.js.map → chunk-VNSGVNDY.js.map} +0 -0
  103. /package/dist/{chunk-RDONHGG5.js.map → chunk-WCI2ZMN3.js.map} +0 -0
  104. /package/dist/{chunk-2SYNAJSQ.js.map → chunk-XZJR4KWT.js.map} +0 -0
  105. /package/dist/{chunk-QAQA7I2I.js.map → chunk-YFVB5GMV.js.map} +0 -0
  106. /package/dist/{chunk-FWLDPML6.js.map → chunk-ZZIETXPR.js.map} +0 -0
  107. /package/dist/{cli-circuit-breaker-OB3KVAKE.js.map → cli-circuit-breaker-Q44WXEDM.js.map} +0 -0
  108. /package/dist/{composite-router-6LPQBPF3.js.map → composite-router-SLF6L4SP.js.map} +0 -0
  109. /package/dist/{consensus-vote-EIC4EVP5.js.map → consensus-vote-GJXCIUFH.js.map} +0 -0
  110. /package/dist/{context-retriever-MTVZNKVQ.js.map → context-retriever-NV2CYR7J.js.map} +0 -0
  111. /package/dist/{doctor-deep-BU7R2LOQ.js.map → doctor-deep-G7KB72NK.js.map} +0 -0
  112. /package/dist/{doctor-live-GD5KNRY4.js.map → doctor-live-LMJTMTHX.js.map} +0 -0
  113. /package/dist/{expert-bridge-NPPEA7XN.js.map → expert-bridge-RL2DJ7DC.js.map} +0 -0
  114. /package/dist/{factory-EMF4QWKO.js.map → factory-F62344QV.js.map} +0 -0
  115. /package/dist/{factory-UAQIMW4O.js.map → factory-L3NSWNGK.js.map} +0 -0
  116. /package/dist/{improvement-review-TWAAJKCK.js.map → improvement-review-FK2PUKVY.js.map} +0 -0
  117. /package/dist/{init-opencode-GYAHDQTE.js.map → init-opencode-YAXNZBN3.js.map} +0 -0
  118. /package/dist/{issue-triage-ANVDVOUF.js.map → issue-triage-ACJXDFSC.js.map} +0 -0
  119. /package/dist/{pr-reviewer-helpers-OD44PPEH.js.map → pr-reviewer-helpers-WMTOSCB4.js.map} +0 -0
  120. /package/dist/{registry-command-6TONMQE3.js.map → registry-command-2TMBJYSO.js.map} +0 -0
  121. /package/dist/{repo-security-plan-JQ3LU7A6.js.map → repo-security-plan-EV4P7JAK.js.map} +0 -0
  122. /package/dist/{research-helpers-synthesize-WBAM233C.js.map → research-helpers-synthesize-2P6WFMIY.js.map} +0 -0
  123. /package/dist/{routing-memory-5W6CULZU.js.map → routing-memory-O2GSQEBA.js.map} +0 -0
  124. /package/dist/{session-memory-ZL4CXIX5.js.map → session-memory-VAOVD4VO.js.map} +0 -0
  125. /package/dist/{setup-config-TDAO22HG.js.map → setup-config-H7WHYFTU.js.map} +0 -0
  126. /package/dist/{setup-custom-api-BKLCM3EZ.js.map → setup-custom-api-DTG3365A.js.map} +0 -0
  127. /package/dist/{setup-data-dir-C2PEW7GZ.js.map → setup-data-dir-MBJVLZKP.js.map} +0 -0
  128. /package/dist/{tool-memory-EE7UEHYX.js.map → tool-memory-WLTKWKMS.js.map} +0 -0
  129. /package/dist/{unified-registry-PYEGUTPZ.js.map → unified-registry-NR5TF6OS.js.map} +0 -0
  130. /package/dist/{weather-report-CHOTQD4X.js.map → weather-report-7P7EL3KA.js.map} +0 -0
@@ -9,8 +9,8 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-SFD7Q4PF.js";
13
- import "./chunk-JAQ22ZXB.js";
12
+ } from "./chunk-JVJMGGQZ.js";
13
+ import "./chunk-VFHDRNRH.js";
14
14
  import "./chunk-4UHDDCRB.js";
15
15
  import "./chunk-RNDHNRSX.js";
16
16
  import "./chunk-PX6F3LHL.js";
@@ -26,4 +26,4 @@ export {
26
26
  loadRules,
27
27
  runAstQaRules
28
28
  };
29
- //# sourceMappingURL=ast-rule-runner-JQEXQ6TH.js.map
29
+ //# sourceMappingURL=ast-rule-runner-E7YTMJ5Y.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HERI7LXN.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-JAQ22ZXB.js";
6
+ } from "./chunk-VFHDRNRH.js";
7
7
  import "./chunk-4UHDDCRB.js";
8
8
  import "./chunk-RNDHNRSX.js";
9
9
  import "./chunk-PX6F3LHL.js";
@@ -56,4 +56,4 @@ async function generateMcpConfig(options) {
56
56
  export {
57
57
  generateMcpConfig
58
58
  };
59
- //# sourceMappingURL=child-mcp-config-MBLR2WWP.js.map
59
+ //# sourceMappingURL=child-mcp-config-QDIGRNBU.js.map
@@ -10,7 +10,7 @@ import {
10
10
  isRateLimitText,
11
11
  observedArmDisplaySlot,
12
12
  ok
13
- } from "./chunk-JAQ22ZXB.js";
13
+ } from "./chunk-VFHDRNRH.js";
14
14
 
15
15
  // src/cli-adapters/circuit-breaker-types.ts
16
16
  var CircuitErrorCode = {
@@ -592,4 +592,4 @@ export {
592
592
  CliCircuitBreakerIntegration,
593
593
  createCliCircuitBreakerIntegration
594
594
  };
595
- //# sourceMappingURL=chunk-YQKBO7CK.js.map
595
+ //# sourceMappingURL=chunk-4FYP7M2K.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-A7365L3F.js";
3
+ } from "./chunk-RLF2Q3MC.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-4GDMHCKX.js";
@@ -21,10 +21,10 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-FWLDPML6.js";
24
+ } from "./chunk-ZZIETXPR.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-ANSKQCTR.js";
27
+ } from "./chunk-FB7QZNIS.js";
28
28
  import {
29
29
  DEPRECATED_MODE_ALIAS_INPUT,
30
30
  JobStatusSchema,
@@ -72,7 +72,7 @@ import {
72
72
  updateStage,
73
73
  withWarnings,
74
74
  writeJobCancelled
75
- } from "./chunk-PAMBTVX2.js";
75
+ } from "./chunk-SJBSYJVH.js";
76
76
  import {
77
77
  allOf,
78
78
  anyOf
@@ -80,7 +80,7 @@ import {
80
80
  import {
81
81
  normalizeTopicToCanonical,
82
82
  synthesizeResearch
83
- } from "./chunk-WZLS7Y5S.js";
83
+ } from "./chunk-MZLQLZH5.js";
84
84
  import {
85
85
  IssueTriage,
86
86
  createAuditTrail,
@@ -89,13 +89,13 @@ import {
89
89
  createGraphAuditBridge,
90
90
  emitPipelinePolicyEvent,
91
91
  readActionRefusal
92
- } from "./chunk-YCQKR566.js";
92
+ } from "./chunk-5ROOEIQK.js";
93
93
  import {
94
94
  sanitizeInput
95
- } from "./chunk-ZDHUGKF2.js";
95
+ } from "./chunk-LAWMKRBU.js";
96
96
  import {
97
97
  withPrerequisite
98
- } from "./chunk-RDONHGG5.js";
98
+ } from "./chunk-WCI2ZMN3.js";
99
99
  import {
100
100
  NOOP_NOTIFIER,
101
101
  RateLimiter,
@@ -118,14 +118,14 @@ import {
118
118
  toolSuccessStructured,
119
119
  withProgressHeartbeat,
120
120
  wrapToolWithTimeout
121
- } from "./chunk-6QCRY5T6.js";
121
+ } from "./chunk-VNSGVNDY.js";
122
122
  import {
123
123
  EventTopics,
124
124
  UNRESOLVED_MODEL_ID,
125
125
  createEvent,
126
126
  getGlobalEventBus,
127
127
  getGlobalRegistry
128
- } from "./chunk-XM5XOIIQ.js";
128
+ } from "./chunk-643BLSSB.js";
129
129
  import {
130
130
  IDENTIFIER_RE,
131
131
  LANG_VALUES,
@@ -158,7 +158,7 @@ import {
158
158
  parseRegistry,
159
159
  sourceExistsInRegistry,
160
160
  summarizeContextForPrompt
161
- } from "./chunk-DFD4CQ2N.js";
161
+ } from "./chunk-GTTW6T6G.js";
162
162
  import {
163
163
  REGISTRY_PATH,
164
164
  getProjectRoot,
@@ -166,25 +166,25 @@ import {
166
166
  loadTechniquesRegistry,
167
167
  resolveInsideRoot,
168
168
  resolveRegistryRoot
169
- } from "./chunk-TV7F24E5.js";
169
+ } from "./chunk-KENW5TDE.js";
170
170
  import {
171
171
  getTokenEnvVars,
172
172
  resolveToken
173
- } from "./chunk-HEZI4EBH.js";
173
+ } from "./chunk-GNATBL4B.js";
174
174
  import {
175
175
  DEFAULT_RELEVANCE_CONFIG,
176
176
  MemoryImportance,
177
177
  MemoryType,
178
178
  calculateTextJaccardSimilarity,
179
179
  getToolMemory
180
- } from "./chunk-HCMXZN2Q.js";
180
+ } from "./chunk-CDXK5Z4N.js";
181
181
  import {
182
182
  STOPWORDS,
183
183
  truncateWithInfo
184
184
  } from "./chunk-7LP6VJRP.js";
185
185
  import {
186
186
  createSessionMemory
187
- } from "./chunk-QAQA7I2I.js";
187
+ } from "./chunk-YFVB5GMV.js";
188
188
  import {
189
189
  BUILT_IN_EXPERTS,
190
190
  BuiltInExpertTypeSchema,
@@ -202,28 +202,28 @@ import {
202
202
  getAvailableClis,
203
203
  sleep,
204
204
  withTimeout
205
- } from "./chunk-E2EU625K.js";
205
+ } from "./chunk-NW5IGUSD.js";
206
206
  import {
207
207
  BaseAdapter,
208
208
  createStream,
209
209
  requireApiKey,
210
210
  validateApiKeyPresence
211
- } from "./chunk-B3R6LHO7.js";
211
+ } from "./chunk-BJTMODGX.js";
212
212
  import {
213
213
  DEFAULTS
214
- } from "./chunk-6B6PD72V.js";
214
+ } from "./chunk-7SQMHEZD.js";
215
215
  import {
216
216
  resolveGatewayEnv
217
- } from "./chunk-2SYNAJSQ.js";
217
+ } from "./chunk-XZJR4KWT.js";
218
218
  import {
219
219
  getAvailabilityCache,
220
220
  getCliForModelId,
221
221
  resolveFallback
222
- } from "./chunk-Z3C6CK5H.js";
222
+ } from "./chunk-7VYISKPN.js";
223
223
  import {
224
224
  generateHyphenId,
225
225
  generateUUID
226
- } from "./chunk-XSWUOJTT.js";
226
+ } from "./chunk-OEANQZOP.js";
227
227
  import {
228
228
  AGENT_ROUTER_TIMEOUTS,
229
229
  API_TIMEOUTS,
@@ -297,6 +297,7 @@ import {
297
297
  formatPercentage,
298
298
  formatZodError,
299
299
  formatZodIssuesAsArray,
300
+ gatewayEndpointRejection,
300
301
  generateWeatherReport,
301
302
  getAdaptiveBonus,
302
303
  getCliModelName,
@@ -318,7 +319,6 @@ import {
318
319
  getStrategyManifest,
319
320
  getTimeProvider,
320
321
  getTokenEstimator,
321
- isEndpointArmId,
322
322
  isErr,
323
323
  isRateLimitLikeError,
324
324
  lookupInTreeCapability,
@@ -336,7 +336,7 @@ import {
336
336
  selectStrategyByManifest,
337
337
  toExpertTaskAnalysisResult,
338
338
  withStep
339
- } from "./chunk-JAQ22ZXB.js";
339
+ } from "./chunk-VFHDRNRH.js";
340
340
  import {
341
341
  ensureLearningDir,
342
342
  getMetaOutcomesFile,
@@ -1130,11 +1130,14 @@ var NexusEnvSchema = z11.object({
1130
1130
  // #4392 increment 2 step 2: the `<endpoint>` of the `api:<endpoint>` arm the
1131
1131
  // voter gateway registers as (OPENAI_COMPAT_ENDPOINT_ENV; spelled out for
1132
1132
  // the coverage script). Same shape rule as a scoped NEXUS_GATEWAY_COST key,
1133
- // so a URL — or a credential inside one — can never become an arm id. An
1134
- // invalid value is reported here and the runtime reader falls back to the
1135
- // default endpoint (`openai-compat`).
1136
- NEXUS_OPENAI_COMPAT_ENDPOINT: z11.string().refine((v) => isEndpointArmId(`api:${v.trim()}`), {
1137
- message: "must be an endpoint id: lowercase alphanumerics plus . _ -, 1-64 chars"
1133
+ // so a URL — or a credential inside one — can never become an arm id, and
1134
+ // never a built-in vendor segment, which would make the gateway a VENDOR
1135
+ // arm (#6409). The rule is `gatewayEndpointRejection`, shared with the
1136
+ // runtime reader; an invalid value is reported here and that reader falls
1137
+ // back to the default endpoint (`openai-compat`).
1138
+ NEXUS_OPENAI_COMPAT_ENDPOINT: z11.string().superRefine((v, ctx) => {
1139
+ const reason = gatewayEndpointRejection(v.trim());
1140
+ if (reason !== void 0) ctx.addIssue({ code: "custom", message: reason });
1138
1141
  }).optional(),
1139
1142
  NEXUS_OPENAI_COMPAT_KEY: z11.string().optional(),
1140
1143
  NEXUS_OPENAI_COMPAT_URL: z11.string().optional(),
@@ -30102,7 +30105,7 @@ function execIdFields(executionId) {
30102
30105
  async function populateUnifiedContextOnState(state, options) {
30103
30106
  const taskCandidate = state["task"];
30104
30107
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
30105
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-MTVZNKVQ.js");
30108
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-NV2CYR7J.js");
30106
30109
  const category = inferTaskCategory2(taskCandidate);
30107
30110
  const executionId = options?.executionId;
30108
30111
  const execFields = execIdFields(executionId);
@@ -45528,7 +45531,7 @@ async function tryIssueTriage(task) {
45528
45531
  try {
45529
45532
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45530
45533
  if (issueMatch === null) return null;
45531
- const { createIssueTriage } = await import("./issue-triage-ANVDVOUF.js");
45534
+ const { createIssueTriage } = await import("./issue-triage-ACJXDFSC.js");
45532
45535
  const triage = createIssueTriage();
45533
45536
  const owner = issueMatch[1] ?? "";
45534
45537
  const num2 = issueMatch[2] ?? "";
@@ -45556,7 +45559,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45556
45559
  ]);
45557
45560
  async function classifyWithLLM(task) {
45558
45561
  try {
45559
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-NPPEA7XN.js");
45562
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-RL2DJ7DC.js");
45560
45563
  const prompt = [
45561
45564
  "Classify this task into exactly one pipeline template.",
45562
45565
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -45930,7 +45933,7 @@ function buildVotingInput(plan, config) {
45930
45933
  }
45931
45934
  async function executeSingleVote(plan, config, log) {
45932
45935
  try {
45933
- const { executeVoting } = await import("./consensus-vote-EIC4EVP5.js");
45936
+ const { executeVoting } = await import("./consensus-vote-GJXCIUFH.js");
45934
45937
  const input = buildVotingInput(plan, config);
45935
45938
  const result = await executeVoting(input, log);
45936
45939
  return parseVotingResult(result);
@@ -46634,7 +46637,7 @@ var memoryInitPromise = null;
46634
46637
  async function initPipelineMemory() {
46635
46638
  if (cachedMemory !== null) return cachedMemory;
46636
46639
  try {
46637
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-ZL4CXIX5.js");
46640
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-VAOVD4VO.js");
46638
46641
  const { getLearningDir } = await import("./learning-persistence-7BEPQEGN.js");
46639
46642
  const mem = createSessionMemory2(getLearningDir());
46640
46643
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -46696,7 +46699,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
46696
46699
  callRecord(routingMemoryCache);
46697
46700
  return;
46698
46701
  }
46699
- routingMemoryInitPromise ??= import("./routing-memory-5W6CULZU.js").then(({ createRoutingMemory }) => {
46702
+ routingMemoryInitPromise ??= import("./routing-memory-O2GSQEBA.js").then(({ createRoutingMemory }) => {
46700
46703
  routingMemoryCache ??= createRoutingMemory();
46701
46704
  return routingMemoryCache;
46702
46705
  }).catch((error) => {
@@ -46897,7 +46900,7 @@ function createVoteStage({ config, startStage }) {
46897
46900
  const strategy = config.votingStrategy ?? "higher_order";
46898
46901
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
46899
46902
  try {
46900
- const { executeVoting } = await import("./consensus-vote-EIC4EVP5.js");
46903
+ const { executeVoting } = await import("./consensus-vote-GJXCIUFH.js");
46901
46904
  const votingResult = await executeVoting(
46902
46905
  {
46903
46906
  proposal: buildVoteProposal(plan, research),
@@ -47656,7 +47659,7 @@ ${text}` : "";
47656
47659
  }
47657
47660
  async function getWeatherContext() {
47658
47661
  try {
47659
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-CHOTQD4X.js");
47662
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-7P7EL3KA.js");
47660
47663
  const report = generateWeatherReport2({ includeAdaptive: true });
47661
47664
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47662
47665
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47674,7 +47677,7 @@ ${lines}
47674
47677
  }
47675
47678
  async function getMemoryContext(task) {
47676
47679
  try {
47677
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-ZL4CXIX5.js");
47680
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-VAOVD4VO.js");
47678
47681
  const { getLearningDir } = await import("./learning-persistence-7BEPQEGN.js");
47679
47682
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47680
47683
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -48241,7 +48244,7 @@ async function searchCodebaseForTask(task) {
48241
48244
  }
48242
48245
  async function queryResearchRegistry(task) {
48243
48246
  try {
48244
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-WBAM233C.js");
48247
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-2P6WFMIY.js");
48245
48248
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
48246
48249
  if (topic === void 0) return null;
48247
48250
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -48312,7 +48315,7 @@ function createScanStageWrapper() {
48312
48315
  try {
48313
48316
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
48314
48317
  if (slug !== void 0) {
48315
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-JQ3LU7A6.js");
48318
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-EV4P7JAK.js");
48316
48319
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
48317
48320
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
48318
48321
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -52032,7 +52035,7 @@ var GitHubTaskTracker = class {
52032
52035
  cachedProvider = null;
52033
52036
  async getProvider() {
52034
52037
  if (this.cachedProvider !== null) return this.cachedProvider;
52035
- const { createScmProvider } = await import("./factory-EMF4QWKO.js");
52038
+ const { createScmProvider } = await import("./factory-F62344QV.js");
52036
52039
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
52037
52040
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
52038
52041
  this.cachedProvider = result.value;
@@ -53009,7 +53012,7 @@ async function probeSource(source, includeModelIds) {
53009
53012
  }
53010
53013
  }
53011
53014
  async function defaultSources(includeOpenRouter) {
53012
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-UAQIMW4O.js");
53015
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-L3NSWNGK.js");
53013
53016
  const adapters = createAllAdapters2();
53014
53017
  return buildDefaultModelSources(adapters, { includeOpenRouter });
53015
53018
  }
@@ -57087,4 +57090,4 @@ export {
57087
57090
  startPipelineEventBridge,
57088
57091
  shutdownPipelineEventBridge
57089
57092
  };
57090
- //# sourceMappingURL=chunk-S3IRRRRS.js.map
57093
+ //# sourceMappingURL=chunk-54ONOJKD.js.map