nexus-agents 8.75.1 → 8.76.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 (132) hide show
  1. package/dist/{ast-rule-runner-TCI3CB7K.js → ast-rule-runner-6IAAL43M.js} +3 -3
  2. package/dist/{child-mcp-config-J7HDNVYD.js → child-mcp-config-A4LIY5TG.js} +2 -2
  3. package/dist/{chunk-4WWQHHD4.js → chunk-2QMW2KMH.js} +4 -4
  4. package/dist/{chunk-QBBHX62B.js → chunk-55QYPH5F.js} +3 -3
  5. package/dist/{chunk-GAUJEB2Q.js → chunk-5MWN2LI2.js} +2 -2
  6. package/dist/{chunk-K5RSOZA2.js → chunk-6CYKSB6S.js} +5 -5
  7. package/dist/{chunk-SGSFVIVA.js → chunk-6QQOVB6Y.js} +30 -23
  8. package/dist/{chunk-SGSFVIVA.js.map → chunk-6QQOVB6Y.js.map} +1 -1
  9. package/dist/{chunk-5DTXWI36.js → chunk-ASF4HCLR.js} +2 -2
  10. package/dist/{chunk-5KE6TDTR.js → chunk-DXTTIJL4.js} +2 -2
  11. package/dist/{chunk-CZTXBFF7.js → chunk-EK4ANFB2.js} +7 -7
  12. package/dist/{chunk-5J2JXRFK.js → chunk-EKUTAEL6.js} +35 -35
  13. package/dist/{chunk-BOFMEYN3.js → chunk-ERWWXVVM.js} +3 -3
  14. package/dist/{chunk-M32SPAVJ.js → chunk-EWCHPHKO.js} +2 -2
  15. package/dist/{chunk-DVP6Q6FV.js → chunk-FKHYDVCQ.js} +2 -2
  16. package/dist/{chunk-P5JIBL7V.js → chunk-HHPDVL75.js} +9 -9
  17. package/dist/{chunk-N55572YJ.js → chunk-HRCJYS3M.js} +2 -2
  18. package/dist/{chunk-2RWMVCFQ.js → chunk-IJCXL57M.js} +26 -16
  19. package/dist/chunk-IJCXL57M.js.map +1 -0
  20. package/dist/{chunk-UBXS4Z36.js → chunk-JFANCEZ4.js} +602 -407
  21. package/dist/chunk-JFANCEZ4.js.map +1 -0
  22. package/dist/{chunk-JOZFWG7Z.js → chunk-JMUYQMU3.js} +2 -2
  23. package/dist/{chunk-2FQGQTMQ.js → chunk-JZPRRHNB.js} +2 -2
  24. package/dist/{chunk-J5KJSH7X.js → chunk-P4IBKWRD.js} +2 -2
  25. package/dist/{chunk-3TBIIXNO.js → chunk-QKV4AQSC.js} +5 -5
  26. package/dist/{chunk-ICRAAJNV.js → chunk-QRVI44WE.js} +2 -2
  27. package/dist/{chunk-G7XHATON.js → chunk-RVGICII7.js} +4 -4
  28. package/dist/{chunk-2WYASA3M.js → chunk-SPSM7TWB.js} +2 -2
  29. package/dist/{chunk-3GTY2CQ5.js → chunk-TJIUBTSN.js} +3 -3
  30. package/dist/{chunk-TIT3LPGB.js → chunk-U2LTPDHN.js} +2 -2
  31. package/dist/{chunk-VNOCNVSN.js → chunk-UFLDOHWI.js} +2 -2
  32. package/dist/{chunk-KP526GCE.js → chunk-UIIHBU73.js} +8 -8
  33. package/dist/{chunk-T62P7IRM.js → chunk-UO7FFOAL.js} +4 -4
  34. package/dist/{chunk-OC63XXB7.js → chunk-WBTC7E6Z.js} +2 -2
  35. package/dist/{chunk-WVUCQSOB.js → chunk-Y2S2JKPP.js} +2 -2
  36. package/dist/{chunk-AQ4EN6ST.js → chunk-YF6VDLIQ.js} +2 -2
  37. package/dist/{chunk-LZHSNTUX.js → chunk-YYSUWKIF.js} +2 -2
  38. package/dist/{chunk-OFBBSPDK.js → chunk-ZNQ5F4QP.js} +3 -3
  39. package/dist/{cli-circuit-breaker-7RAGD3XB.js → cli-circuit-breaker-MYREMCYC.js} +3 -3
  40. package/dist/cli.d.ts +1 -1
  41. package/dist/cli.js +55 -49
  42. package/dist/cli.js.map +1 -1
  43. package/dist/{composite-router-FX7VCZGG.js → composite-router-7EFG5JO3.js} +2 -2
  44. package/dist/{consensus-vote-4JEMCYF2.js → consensus-vote-T6NT5TH3.js} +16 -16
  45. package/dist/{consensus-vote-types-DtqMYo6b.d.ts → consensus-vote-types-CjV_hgDK.d.ts} +272 -1
  46. package/dist/{context-retriever-6ZD3LQTB.js → context-retriever-5R4KYYDC.js} +8 -8
  47. package/dist/{doctor-deep-QSNUGWT5.js → doctor-deep-R4HXMRIS.js} +3 -3
  48. package/dist/{doctor-live-XDL6NHPH.js → doctor-live-QJRB6HKE.js} +10 -10
  49. package/dist/{expert-bridge-O3PVHUY7.js → expert-bridge-GZFSYIDY.js} +4 -4
  50. package/dist/{factory-OIRZP4UC.js → factory-45WRDLYG.js} +5 -5
  51. package/dist/{factory-3GA4UEAV.js → factory-BB4L5DMB.js} +9 -9
  52. package/dist/{improvement-review-6U34DUAY.js → improvement-review-PKWQXPPH.js} +5 -5
  53. package/dist/index.d.ts +3 -263
  54. package/dist/index.js +35 -36
  55. package/dist/index.js.map +1 -1
  56. package/dist/{init-opencode-EZ2WZL4U.js → init-opencode-MF4KJ62S.js} +5 -6
  57. package/dist/{init-opencode-EZ2WZL4U.js.map → init-opencode-MF4KJ62S.js.map} +1 -1
  58. package/dist/issue-triage-YYW7GQLN.js +16 -0
  59. package/dist/{pr-reviewer-helpers-NFSVOOIG.js → pr-reviewer-helpers-E3GJOIUI.js} +4 -4
  60. package/dist/{registry-command-AY5RBNW2.js → registry-command-CIEY3EKQ.js} +2 -2
  61. package/dist/{repo-security-plan-HDB3CQ2I.js → repo-security-plan-WEZDYMI4.js} +3 -3
  62. package/dist/{research-helpers-synthesize-SQ7NIY76.js → research-helpers-synthesize-ZSKQAHME.js} +4 -4
  63. package/dist/{routing-memory-SYX26ZNK.js → routing-memory-XLXPLSKS.js} +2 -2
  64. package/dist/{session-memory-LYFWPS3L.js → session-memory-P6FIBSKK.js} +3 -3
  65. package/dist/{setup-config-HUPTMNWM.js → setup-config-5IZDOCOE.js} +3 -3
  66. package/dist/{setup-custom-api-NDCTK7FZ.js → setup-custom-api-2OA4I464.js} +4 -4
  67. package/dist/setup-data-dir-APES7ONG.js +30 -0
  68. package/dist/{tool-memory-26IMPPPK.js → tool-memory-4K3F2X6J.js} +5 -5
  69. package/dist/{unified-registry-XUZZIJSZ.js → unified-registry-3QLEUPXI.js} +10 -10
  70. package/dist/{weather-report-C577KPRB.js → weather-report-WOKLGC27.js} +2 -2
  71. package/package.json +1 -1
  72. package/dist/chunk-2RWMVCFQ.js.map +0 -1
  73. package/dist/chunk-RAMD5SM3.js +0 -199
  74. package/dist/chunk-RAMD5SM3.js.map +0 -1
  75. package/dist/chunk-UBXS4Z36.js.map +0 -1
  76. package/dist/issue-triage-MJKN6FQY.js +0 -16
  77. package/dist/setup-data-dir-TXQQO54X.js +0 -31
  78. /package/dist/{ast-rule-runner-TCI3CB7K.js.map → ast-rule-runner-6IAAL43M.js.map} +0 -0
  79. /package/dist/{child-mcp-config-J7HDNVYD.js.map → child-mcp-config-A4LIY5TG.js.map} +0 -0
  80. /package/dist/{chunk-4WWQHHD4.js.map → chunk-2QMW2KMH.js.map} +0 -0
  81. /package/dist/{chunk-QBBHX62B.js.map → chunk-55QYPH5F.js.map} +0 -0
  82. /package/dist/{chunk-GAUJEB2Q.js.map → chunk-5MWN2LI2.js.map} +0 -0
  83. /package/dist/{chunk-K5RSOZA2.js.map → chunk-6CYKSB6S.js.map} +0 -0
  84. /package/dist/{chunk-5DTXWI36.js.map → chunk-ASF4HCLR.js.map} +0 -0
  85. /package/dist/{chunk-5KE6TDTR.js.map → chunk-DXTTIJL4.js.map} +0 -0
  86. /package/dist/{chunk-CZTXBFF7.js.map → chunk-EK4ANFB2.js.map} +0 -0
  87. /package/dist/{chunk-5J2JXRFK.js.map → chunk-EKUTAEL6.js.map} +0 -0
  88. /package/dist/{chunk-BOFMEYN3.js.map → chunk-ERWWXVVM.js.map} +0 -0
  89. /package/dist/{chunk-M32SPAVJ.js.map → chunk-EWCHPHKO.js.map} +0 -0
  90. /package/dist/{chunk-DVP6Q6FV.js.map → chunk-FKHYDVCQ.js.map} +0 -0
  91. /package/dist/{chunk-P5JIBL7V.js.map → chunk-HHPDVL75.js.map} +0 -0
  92. /package/dist/{chunk-N55572YJ.js.map → chunk-HRCJYS3M.js.map} +0 -0
  93. /package/dist/{chunk-JOZFWG7Z.js.map → chunk-JMUYQMU3.js.map} +0 -0
  94. /package/dist/{chunk-2FQGQTMQ.js.map → chunk-JZPRRHNB.js.map} +0 -0
  95. /package/dist/{chunk-J5KJSH7X.js.map → chunk-P4IBKWRD.js.map} +0 -0
  96. /package/dist/{chunk-3TBIIXNO.js.map → chunk-QKV4AQSC.js.map} +0 -0
  97. /package/dist/{chunk-ICRAAJNV.js.map → chunk-QRVI44WE.js.map} +0 -0
  98. /package/dist/{chunk-G7XHATON.js.map → chunk-RVGICII7.js.map} +0 -0
  99. /package/dist/{chunk-2WYASA3M.js.map → chunk-SPSM7TWB.js.map} +0 -0
  100. /package/dist/{chunk-3GTY2CQ5.js.map → chunk-TJIUBTSN.js.map} +0 -0
  101. /package/dist/{chunk-TIT3LPGB.js.map → chunk-U2LTPDHN.js.map} +0 -0
  102. /package/dist/{chunk-VNOCNVSN.js.map → chunk-UFLDOHWI.js.map} +0 -0
  103. /package/dist/{chunk-KP526GCE.js.map → chunk-UIIHBU73.js.map} +0 -0
  104. /package/dist/{chunk-T62P7IRM.js.map → chunk-UO7FFOAL.js.map} +0 -0
  105. /package/dist/{chunk-OC63XXB7.js.map → chunk-WBTC7E6Z.js.map} +0 -0
  106. /package/dist/{chunk-WVUCQSOB.js.map → chunk-Y2S2JKPP.js.map} +0 -0
  107. /package/dist/{chunk-AQ4EN6ST.js.map → chunk-YF6VDLIQ.js.map} +0 -0
  108. /package/dist/{chunk-LZHSNTUX.js.map → chunk-YYSUWKIF.js.map} +0 -0
  109. /package/dist/{chunk-OFBBSPDK.js.map → chunk-ZNQ5F4QP.js.map} +0 -0
  110. /package/dist/{cli-circuit-breaker-7RAGD3XB.js.map → cli-circuit-breaker-MYREMCYC.js.map} +0 -0
  111. /package/dist/{composite-router-FX7VCZGG.js.map → composite-router-7EFG5JO3.js.map} +0 -0
  112. /package/dist/{consensus-vote-4JEMCYF2.js.map → consensus-vote-T6NT5TH3.js.map} +0 -0
  113. /package/dist/{context-retriever-6ZD3LQTB.js.map → context-retriever-5R4KYYDC.js.map} +0 -0
  114. /package/dist/{doctor-deep-QSNUGWT5.js.map → doctor-deep-R4HXMRIS.js.map} +0 -0
  115. /package/dist/{doctor-live-XDL6NHPH.js.map → doctor-live-QJRB6HKE.js.map} +0 -0
  116. /package/dist/{expert-bridge-O3PVHUY7.js.map → expert-bridge-GZFSYIDY.js.map} +0 -0
  117. /package/dist/{factory-3GA4UEAV.js.map → factory-45WRDLYG.js.map} +0 -0
  118. /package/dist/{factory-OIRZP4UC.js.map → factory-BB4L5DMB.js.map} +0 -0
  119. /package/dist/{improvement-review-6U34DUAY.js.map → improvement-review-PKWQXPPH.js.map} +0 -0
  120. /package/dist/{issue-triage-MJKN6FQY.js.map → issue-triage-YYW7GQLN.js.map} +0 -0
  121. /package/dist/{pr-reviewer-helpers-NFSVOOIG.js.map → pr-reviewer-helpers-E3GJOIUI.js.map} +0 -0
  122. /package/dist/{registry-command-AY5RBNW2.js.map → registry-command-CIEY3EKQ.js.map} +0 -0
  123. /package/dist/{repo-security-plan-HDB3CQ2I.js.map → repo-security-plan-WEZDYMI4.js.map} +0 -0
  124. /package/dist/{research-helpers-synthesize-SQ7NIY76.js.map → research-helpers-synthesize-ZSKQAHME.js.map} +0 -0
  125. /package/dist/{routing-memory-SYX26ZNK.js.map → routing-memory-XLXPLSKS.js.map} +0 -0
  126. /package/dist/{session-memory-LYFWPS3L.js.map → session-memory-P6FIBSKK.js.map} +0 -0
  127. /package/dist/{setup-config-HUPTMNWM.js.map → setup-config-5IZDOCOE.js.map} +0 -0
  128. /package/dist/{setup-custom-api-NDCTK7FZ.js.map → setup-custom-api-2OA4I464.js.map} +0 -0
  129. /package/dist/{setup-data-dir-TXQQO54X.js.map → setup-data-dir-APES7ONG.js.map} +0 -0
  130. /package/dist/{tool-memory-26IMPPPK.js.map → tool-memory-4K3F2X6J.js.map} +0 -0
  131. /package/dist/{unified-registry-XUZZIJSZ.js.map → unified-registry-3QLEUPXI.js.map} +0 -0
  132. /package/dist/{weather-report-C577KPRB.js.map → weather-report-WOKLGC27.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-UBXS4Z36.js";
7
+ } from "./chunk-JFANCEZ4.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -740,4 +740,4 @@ export {
740
740
  generateSecurityPlan,
741
741
  buildPlanFromAnalysis
742
742
  };
743
- //# sourceMappingURL=chunk-5KE6TDTR.js.map
743
+ //# sourceMappingURL=chunk-DXTTIJL4.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-TIT3LPGB.js";
3
+ } from "./chunk-U2LTPDHN.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-UBXS4Z36.js";
8
+ } from "./chunk-JFANCEZ4.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-J7HDNVYD.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-A4LIY5TG.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-3GA4UEAV.js");
97
- const { createCompositeRouter } = await import("./composite-router-FX7VCZGG.js");
96
+ const { createAllAdapters } = await import("./factory-BB4L5DMB.js");
97
+ const { createCompositeRouter } = await import("./composite-router-7EFG5JO3.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-7RAGD3XB.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-MYREMCYC.js");
106
106
  cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
107
107
  } catch (error) {
108
108
  const msg = error instanceof Error ? error.message : String(error);
@@ -216,4 +216,4 @@ export {
216
216
  tokenSplitFromUsage,
217
217
  executeExpert
218
218
  };
219
- //# sourceMappingURL=chunk-CZTXBFF7.js.map
219
+ //# sourceMappingURL=chunk-EK4ANFB2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-5KE6TDTR.js";
3
+ } from "./chunk-DXTTIJL4.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-P5JIBL7V.js";
24
+ } from "./chunk-HHPDVL75.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-CZTXBFF7.js";
27
+ } from "./chunk-EK4ANFB2.js";
28
28
  import {
29
29
  DEPRECATED_MODE_ALIAS_INPUT,
30
30
  JobStatusSchema,
@@ -71,7 +71,7 @@ import {
71
71
  updateStage,
72
72
  withWarnings,
73
73
  writeJobCancelled
74
- } from "./chunk-2RWMVCFQ.js";
74
+ } from "./chunk-IJCXL57M.js";
75
75
  import {
76
76
  allOf,
77
77
  anyOf
@@ -79,7 +79,7 @@ import {
79
79
  import {
80
80
  normalizeTopicToCanonical,
81
81
  synthesizeResearch
82
- } from "./chunk-BOFMEYN3.js";
82
+ } from "./chunk-ERWWXVVM.js";
83
83
  import {
84
84
  IssueTriage,
85
85
  createAuditTrail,
@@ -87,13 +87,13 @@ import {
87
87
  createDurableAuditTrail,
88
88
  createGraphAuditBridge,
89
89
  emitPipelinePolicyEvent
90
- } from "./chunk-3TBIIXNO.js";
90
+ } from "./chunk-QKV4AQSC.js";
91
91
  import {
92
92
  sanitizeInput
93
- } from "./chunk-2WYASA3M.js";
93
+ } from "./chunk-SPSM7TWB.js";
94
94
  import {
95
95
  withPrerequisite
96
- } from "./chunk-3GTY2CQ5.js";
96
+ } from "./chunk-TJIUBTSN.js";
97
97
  import {
98
98
  NOOP_NOTIFIER,
99
99
  RateLimiter,
@@ -116,14 +116,14 @@ import {
116
116
  toolSuccessStructured,
117
117
  withProgressHeartbeat,
118
118
  wrapToolWithTimeout
119
- } from "./chunk-QBBHX62B.js";
119
+ } from "./chunk-55QYPH5F.js";
120
120
  import {
121
121
  EventTopics,
122
122
  UNRESOLVED_MODEL_ID,
123
123
  createEvent,
124
124
  getGlobalEventBus,
125
125
  getGlobalRegistry
126
- } from "./chunk-T62P7IRM.js";
126
+ } from "./chunk-UO7FFOAL.js";
127
127
  import {
128
128
  IDENTIFIER_RE,
129
129
  LANG_VALUES,
@@ -156,7 +156,7 @@ import {
156
156
  parseRegistry,
157
157
  sourceExistsInRegistry,
158
158
  summarizeContextForPrompt
159
- } from "./chunk-K5RSOZA2.js";
159
+ } from "./chunk-6CYKSB6S.js";
160
160
  import {
161
161
  REGISTRY_PATH,
162
162
  getProjectRoot,
@@ -164,25 +164,25 @@ import {
164
164
  loadTechniquesRegistry,
165
165
  resolveInsideRoot,
166
166
  resolveRegistryRoot
167
- } from "./chunk-JOZFWG7Z.js";
167
+ } from "./chunk-JMUYQMU3.js";
168
168
  import {
169
169
  getTokenEnvVars,
170
170
  resolveToken
171
- } from "./chunk-2FQGQTMQ.js";
171
+ } from "./chunk-JZPRRHNB.js";
172
172
  import {
173
173
  DEFAULT_RELEVANCE_CONFIG,
174
174
  MemoryImportance,
175
175
  MemoryType,
176
176
  calculateTextJaccardSimilarity,
177
177
  getToolMemory
178
- } from "./chunk-G7XHATON.js";
178
+ } from "./chunk-RVGICII7.js";
179
179
  import {
180
180
  STOPWORDS,
181
181
  truncateWithInfo
182
182
  } from "./chunk-7LP6VJRP.js";
183
183
  import {
184
184
  createSessionMemory
185
- } from "./chunk-GAUJEB2Q.js";
185
+ } from "./chunk-5MWN2LI2.js";
186
186
  import {
187
187
  BUILT_IN_EXPERTS,
188
188
  BuiltInExpertTypeSchema,
@@ -200,25 +200,25 @@ import {
200
200
  getAvailableClis,
201
201
  sleep,
202
202
  withTimeout
203
- } from "./chunk-KP526GCE.js";
203
+ } from "./chunk-UIIHBU73.js";
204
204
  import {
205
205
  BaseAdapter,
206
206
  createStream,
207
207
  requireApiKey,
208
208
  validateApiKeyPresence
209
- } from "./chunk-LZHSNTUX.js";
209
+ } from "./chunk-YYSUWKIF.js";
210
210
  import {
211
211
  DEFAULTS
212
- } from "./chunk-AQ4EN6ST.js";
212
+ } from "./chunk-YF6VDLIQ.js";
213
213
  import {
214
214
  getAvailabilityCache,
215
215
  getCliForModelId,
216
216
  resolveFallback
217
- } from "./chunk-TIT3LPGB.js";
217
+ } from "./chunk-U2LTPDHN.js";
218
218
  import {
219
219
  generateHyphenId,
220
220
  generateUUID
221
- } from "./chunk-VNOCNVSN.js";
221
+ } from "./chunk-UFLDOHWI.js";
222
222
  import {
223
223
  AGENT_ROUTER_TIMEOUTS,
224
224
  API_TIMEOUTS,
@@ -331,7 +331,7 @@ import {
331
331
  selectStrategyByManifest,
332
332
  toExpertTaskAnalysisResult,
333
333
  withStep
334
- } from "./chunk-UBXS4Z36.js";
334
+ } from "./chunk-JFANCEZ4.js";
335
335
  import {
336
336
  ensureLearningDir,
337
337
  getMetaOutcomesFile,
@@ -30088,7 +30088,7 @@ function execIdFields(executionId) {
30088
30088
  async function populateUnifiedContextOnState(state, options) {
30089
30089
  const taskCandidate = state["task"];
30090
30090
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
30091
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-6ZD3LQTB.js");
30091
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-5R4KYYDC.js");
30092
30092
  const category = inferTaskCategory2(taskCandidate);
30093
30093
  const executionId = options?.executionId;
30094
30094
  const execFields = execIdFields(executionId);
@@ -45471,7 +45471,7 @@ async function tryIssueTriage(task) {
45471
45471
  try {
45472
45472
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45473
45473
  if (issueMatch === null) return null;
45474
- const { createIssueTriage } = await import("./issue-triage-MJKN6FQY.js");
45474
+ const { createIssueTriage } = await import("./issue-triage-YYW7GQLN.js");
45475
45475
  const triage = createIssueTriage();
45476
45476
  const owner = issueMatch[1] ?? "";
45477
45477
  const num2 = issueMatch[2] ?? "";
@@ -45499,7 +45499,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45499
45499
  ]);
45500
45500
  async function classifyWithLLM(task) {
45501
45501
  try {
45502
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-O3PVHUY7.js");
45502
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-GZFSYIDY.js");
45503
45503
  const prompt = [
45504
45504
  "Classify this task into exactly one pipeline template.",
45505
45505
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -45873,7 +45873,7 @@ function buildVotingInput(plan, config) {
45873
45873
  }
45874
45874
  async function executeSingleVote(plan, config, log) {
45875
45875
  try {
45876
- const { executeVoting } = await import("./consensus-vote-4JEMCYF2.js");
45876
+ const { executeVoting } = await import("./consensus-vote-T6NT5TH3.js");
45877
45877
  const input = buildVotingInput(plan, config);
45878
45878
  const result = await executeVoting(input, log);
45879
45879
  return parseVotingResult(result);
@@ -47438,7 +47438,7 @@ var memoryInitPromise = null;
47438
47438
  async function initPipelineMemory() {
47439
47439
  if (cachedMemory !== null) return cachedMemory;
47440
47440
  try {
47441
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-LYFWPS3L.js");
47441
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-P6FIBSKK.js");
47442
47442
  const { getLearningDir } = await import("./learning-persistence-7BEPQEGN.js");
47443
47443
  const mem = createSessionMemory2(getLearningDir());
47444
47444
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -47500,7 +47500,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
47500
47500
  callRecord(routingMemoryCache);
47501
47501
  return;
47502
47502
  }
47503
- routingMemoryInitPromise ??= import("./routing-memory-SYX26ZNK.js").then(({ createRoutingMemory }) => {
47503
+ routingMemoryInitPromise ??= import("./routing-memory-XLXPLSKS.js").then(({ createRoutingMemory }) => {
47504
47504
  routingMemoryCache ??= createRoutingMemory();
47505
47505
  return routingMemoryCache;
47506
47506
  }).catch((error) => {
@@ -47534,7 +47534,7 @@ ${text}` : "";
47534
47534
  }
47535
47535
  async function getWeatherContext() {
47536
47536
  try {
47537
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-C577KPRB.js");
47537
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-WOKLGC27.js");
47538
47538
  const report = generateWeatherReport2({ includeAdaptive: true });
47539
47539
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47540
47540
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47552,7 +47552,7 @@ ${lines}
47552
47552
  }
47553
47553
  async function getMemoryContext(task) {
47554
47554
  try {
47555
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-LYFWPS3L.js");
47555
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-P6FIBSKK.js");
47556
47556
  const { getLearningDir } = await import("./learning-persistence-7BEPQEGN.js");
47557
47557
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47558
47558
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -47677,7 +47677,7 @@ ${contextBlock}`;
47677
47677
  const strategy = config.votingStrategy ?? "higher_order";
47678
47678
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47679
47679
  try {
47680
- const { executeVoting } = await import("./consensus-vote-4JEMCYF2.js");
47680
+ const { executeVoting } = await import("./consensus-vote-T6NT5TH3.js");
47681
47681
  const votingResult = await executeVoting(
47682
47682
  {
47683
47683
  proposal: buildVoteProposal(plan, research),
@@ -48108,7 +48108,7 @@ async function searchCodebaseForTask(task) {
48108
48108
  }
48109
48109
  async function queryResearchRegistry(task) {
48110
48110
  try {
48111
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-SQ7NIY76.js");
48111
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-ZSKQAHME.js");
48112
48112
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
48113
48113
  if (topic === void 0) return null;
48114
48114
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -48179,7 +48179,7 @@ function createScanStageWrapper() {
48179
48179
  try {
48180
48180
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
48181
48181
  if (slug !== void 0) {
48182
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-HDB3CQ2I.js");
48182
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-WEZDYMI4.js");
48183
48183
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
48184
48184
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
48185
48185
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -51879,7 +51879,7 @@ var GitHubTaskTracker = class {
51879
51879
  cachedProvider = null;
51880
51880
  async getProvider() {
51881
51881
  if (this.cachedProvider !== null) return this.cachedProvider;
51882
- const { createScmProvider } = await import("./factory-OIRZP4UC.js");
51882
+ const { createScmProvider } = await import("./factory-45WRDLYG.js");
51883
51883
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
51884
51884
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
51885
51885
  this.cachedProvider = result.value;
@@ -52851,7 +52851,7 @@ async function probeSource(source, includeModelIds) {
52851
52851
  }
52852
52852
  }
52853
52853
  async function defaultSources(includeOpenRouter) {
52854
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-3GA4UEAV.js");
52854
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-BB4L5DMB.js");
52855
52855
  const adapters = createAllAdapters2();
52856
52856
  return buildDefaultModelSources(adapters, { includeOpenRouter });
52857
52857
  }
@@ -56927,4 +56927,4 @@ export {
56927
56927
  startPipelineEventBridge,
56928
56928
  shutdownPipelineEventBridge
56929
56929
  };
56930
- //# sourceMappingURL=chunk-5J2JXRFK.js.map
56930
+ //# sourceMappingURL=chunk-EKUTAEL6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-JOZFWG7Z.js";
3
+ } from "./chunk-JMUYQMU3.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-UBXS4Z36.js";
6
+ } from "./chunk-JFANCEZ4.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -876,4 +876,4 @@ export {
876
876
  AttributedInsightSchema,
877
877
  synthesizeResearch
878
878
  };
879
- //# sourceMappingURL=chunk-BOFMEYN3.js.map
879
+ //# sourceMappingURL=chunk-ERWWXVVM.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-UBXS4Z36.js";
7
+ } from "./chunk-JFANCEZ4.js";
8
8
 
9
9
  // src/scm/types.ts
10
10
  var ScmError = class extends Error {
@@ -281,4 +281,4 @@ export {
281
281
  ScmError,
282
282
  GitHubProvider
283
283
  };
284
- //# sourceMappingURL=chunk-M32SPAVJ.js.map
284
+ //# sourceMappingURL=chunk-EWCHPHKO.js.map
@@ -10,7 +10,7 @@ import {
10
10
  isRateLimitText,
11
11
  observedArmDisplaySlot,
12
12
  ok
13
- } from "./chunk-UBXS4Z36.js";
13
+ } from "./chunk-JFANCEZ4.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-DVP6Q6FV.js.map
595
+ //# sourceMappingURL=chunk-FKHYDVCQ.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SERVES_PROBE_PROMPT
3
- } from "./chunk-5DTXWI36.js";
3
+ } from "./chunk-ASF4HCLR.js";
4
4
  import {
5
5
  readOpenAICompatEndpoint,
6
6
  readOpenAICompatEnv
7
- } from "./chunk-SGSFVIVA.js";
7
+ } from "./chunk-6QQOVB6Y.js";
8
8
  import {
9
9
  allOf
10
10
  } from "./chunk-OQB3XC5O.js";
@@ -12,10 +12,10 @@ import {
12
12
  NODE_ENGINE_RANGE,
13
13
  VERSION,
14
14
  isNodeVersionSupported
15
- } from "./chunk-N55572YJ.js";
15
+ } from "./chunk-HRCJYS3M.js";
16
16
  import {
17
17
  claimGlobalRegistry
18
- } from "./chunk-T62P7IRM.js";
18
+ } from "./chunk-UO7FFOAL.js";
19
19
  import {
20
20
  capitalize
21
21
  } from "./chunk-7LP6VJRP.js";
@@ -26,7 +26,7 @@ import {
26
26
  codexMcpServerAvailable,
27
27
  createAllAdapters,
28
28
  probeCli
29
- } from "./chunk-KP526GCE.js";
29
+ } from "./chunk-UIIHBU73.js";
30
30
  import {
31
31
  getNexusTmpDir
32
32
  } from "./chunk-HERI7LXN.js";
@@ -52,7 +52,7 @@ import {
52
52
  resolveGatewayCostDeclaration,
53
53
  symbols,
54
54
  writeLine
55
- } from "./chunk-UBXS4Z36.js";
55
+ } from "./chunk-JFANCEZ4.js";
56
56
  import {
57
57
  getLearningDir,
58
58
  getOutcomesFile,
@@ -1350,13 +1350,13 @@ async function runDoctorFix(result) {
1350
1350
  writeLine2("\u2500".repeat(40));
1351
1351
  let fixCount = 0;
1352
1352
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1353
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-TXQQO54X.js");
1353
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-APES7ONG.js");
1354
1354
  const outcome = describeDataDirFix2(initDataDirectories2());
1355
1355
  writeLine2(outcome.line);
1356
1356
  if (outcome.counted) fixCount++;
1357
1357
  }
1358
1358
  if (!result.configFile.found) {
1359
- const { runConfigInitSync } = await import("./setup-config-HUPTMNWM.js");
1359
+ const { runConfigInitSync } = await import("./setup-config-5IZDOCOE.js");
1360
1360
  const configResult = runConfigInitSync(process.cwd(), false, false);
1361
1361
  if (configResult.success && configResult.created) {
1362
1362
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -1452,4 +1452,4 @@ export {
1452
1452
  startStdioServer,
1453
1453
  closeServer
1454
1454
  };
1455
- //# sourceMappingURL=chunk-P5JIBL7V.js.map
1455
+ //# sourceMappingURL=chunk-HHPDVL75.js.map
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  import semver from "semver";
3
- var VERSION = true ? "8.75.1" : "dev";
3
+ var VERSION = true ? "8.76.0" : "dev";
4
4
  var NODE_ENGINE_RANGE = ">=22.5.0";
5
5
  function isNodeVersionSupported(version) {
6
6
  return semver.satisfies(version, NODE_ENGINE_RANGE);
@@ -11,4 +11,4 @@ export {
11
11
  NODE_ENGINE_RANGE,
12
12
  isNodeVersionSupported
13
13
  };
14
- //# sourceMappingURL=chunk-N55572YJ.js.map
14
+ //# sourceMappingURL=chunk-HRCJYS3M.js.map
@@ -1,7 +1,6 @@
1
1
  import {
2
- computeCostDetail,
3
- priceBasisOf
4
- } from "./chunk-RAMD5SM3.js";
2
+ isGatewayModelAdapter
3
+ } from "./chunk-6QQOVB6Y.js";
5
4
  import {
6
5
  allOf
7
6
  } from "./chunk-OQB3XC5O.js";
@@ -25,20 +24,20 @@ import {
25
24
  toolSuccessStructured,
26
25
  withProgressHeartbeat,
27
26
  wrapToolWithTimeout
28
- } from "./chunk-QBBHX62B.js";
27
+ } from "./chunk-55QYPH5F.js";
29
28
  import {
30
29
  VERSION
31
- } from "./chunk-N55572YJ.js";
30
+ } from "./chunk-HRCJYS3M.js";
32
31
  import {
33
32
  UNRESOLVED_MODEL_ID,
34
33
  assessPanelIndependence,
35
34
  countDistinctModels,
36
35
  createEvent,
37
36
  getGlobalRegistry
38
- } from "./chunk-T62P7IRM.js";
37
+ } from "./chunk-UO7FFOAL.js";
39
38
  import {
40
39
  getToolMemory
41
- } from "./chunk-G7XHATON.js";
40
+ } from "./chunk-RVGICII7.js";
42
41
  import {
43
42
  authRemediation,
44
43
  classifyExtractedError,
@@ -49,7 +48,7 @@ import {
49
48
  sanitizeOutput,
50
49
  sleep,
51
50
  withTimeout
52
- } from "./chunk-KP526GCE.js";
51
+ } from "./chunk-UIIHBU73.js";
53
52
  import {
54
53
  AgentError,
55
54
  CLI_NAMES,
@@ -61,11 +60,13 @@ import {
61
60
  VOTE_TIMEOUTS,
62
61
  categorizeOutcomeErrorMessage,
63
62
  clamp01,
63
+ computeCostDetail,
64
64
  createLogger,
65
65
  err,
66
66
  formatPercentage,
67
67
  formatZodError,
68
68
  formatZodIssueWithRoot,
69
+ gatewayCostDetail,
69
70
  getErrorMessage,
70
71
  getMcpSafeDeadlineMs,
71
72
  getOutcomeStore,
@@ -76,10 +77,11 @@ import {
76
77
  isRateLimitLikeError,
77
78
  isRateLimitText,
78
79
  ok,
80
+ priceBasisOf,
79
81
  registerPersistentOutcomeStoreFactory,
80
82
  resolveClassGuardMs,
81
83
  resolveVoteTimeout
82
- } from "./chunk-UBXS4Z36.js";
84
+ } from "./chunk-JFANCEZ4.js";
83
85
  import {
84
86
  ensureLearningDir,
85
87
  getOutcomesFile
@@ -2147,6 +2149,9 @@ function buildLlmVoteResult(role, { vote, usage, fallbackFrom }, adapter, proces
2147
2149
  source: "llm",
2148
2150
  cli: adapter.providerId,
2149
2151
  model: adapter.modelId,
2152
+ // #4392 step 4: which gateway arm served the seat, so the cost rollup
2153
+ // prices it by the arm's declaration and not the model id's list price.
2154
+ ...isGatewayModelAdapter(adapter) ? { gatewayArm: adapter.gatewayArm } : {},
2150
2155
  // #6115: the CLI answered on another model of its family (#6120) — a
2151
2156
  // capacity fallback by construction, disclosed on the seat.
2152
2157
  ...fallbackFrom !== void 0 ? { fallback: inFamilyFallback(adapter.providerId, fallbackFrom) } : {},
@@ -2226,9 +2231,7 @@ function assignUniformAdapter(roles, adapter) {
2226
2231
  function createCliAdapterMap(clis) {
2227
2232
  const registry = getGlobalRegistry();
2228
2233
  const result = /* @__PURE__ */ new Map();
2229
- for (const cli of clis) {
2230
- result.set(cli, registry.getAdapterForCli(cli));
2231
- }
2234
+ for (const cli of clis) result.set(cli, registry.getAdapterForCli(cli));
2232
2235
  return result;
2233
2236
  }
2234
2237
  function assignRoundRobinAdapters(roles, entries, logger11, source) {
@@ -6407,7 +6410,7 @@ function logPartialProposal(bounded, log) {
6407
6410
  }
6408
6411
  async function runContrarianCheck(proposal, log, opts) {
6409
6412
  try {
6410
- const { executeExpert } = await import("./expert-bridge-O3PVHUY7.js");
6413
+ const { executeExpert } = await import("./expert-bridge-GZFSYIDY.js");
6411
6414
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6412
6415
  logPartialProposal(bounded, log);
6413
6416
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded, opts), {
@@ -7050,10 +7053,17 @@ function reportedTokenFields(v) {
7050
7053
  ...v.cacheCreationInputTokens !== void 0 ? { cacheCreationInputTokens: v.cacheCreationInputTokens } : {}
7051
7054
  };
7052
7055
  }
7056
+ function voteCostDetail(v) {
7057
+ const hasTokens = v.inputTokens !== void 0 || v.outputTokens !== void 0;
7058
+ if (!hasTokens || v.model === void 0) return void 0;
7059
+ const input = v.inputTokens ?? 0;
7060
+ const output = v.outputTokens ?? 0;
7061
+ if (v.gatewayArm !== void 0) return gatewayCostDetail(v.gatewayArm, v.model, input, output);
7062
+ return computeCostDetail(v.model, input, output);
7063
+ }
7053
7064
  function votesToCostInputs(votes) {
7054
7065
  return votes.map((v) => {
7055
- const hasTokens = v.inputTokens !== void 0 || v.outputTokens !== void 0;
7056
- const detail = hasTokens && v.model !== void 0 ? computeCostDetail(v.model, v.inputTokens ?? 0, v.outputTokens ?? 0) : void 0;
7066
+ const detail = voteCostDetail(v);
7057
7067
  const input = {
7058
7068
  role: v.role,
7059
7069
  model: v.model,
@@ -9178,4 +9188,4 @@ export {
9178
9188
  CONSENSUS_VOTE_TOOL_SCHEMA,
9179
9189
  registerConsensusVoteTool
9180
9190
  };
9181
- //# sourceMappingURL=chunk-2RWMVCFQ.js.map
9191
+ //# sourceMappingURL=chunk-IJCXL57M.js.map