nexus-agents 3.7.0 → 3.8.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 (124) hide show
  1. package/dist/{child-mcp-config-RERUXZJS.js → child-mcp-config-R4GQMDAV.js} +2 -2
  2. package/dist/{chunk-KEO6QJE6.js → chunk-2XFBHREJ.js} +2 -2
  3. package/dist/{chunk-J2F5E3DF.js → chunk-5CXAYPSU.js} +2 -2
  4. package/dist/{chunk-WT6JCD3E.js → chunk-5LFB77LA.js} +2 -2
  5. package/dist/{chunk-JFZP7IA4.js → chunk-5WGOPKHZ.js} +2 -2
  6. package/dist/{chunk-5FMDEEV7.js → chunk-6G4FMCXS.js} +8 -8
  7. package/dist/{chunk-PXJDALVM.js → chunk-6Y4QIIQD.js} +2 -2
  8. package/dist/{chunk-NC6CLKIB.js → chunk-7ILVQDUT.js} +2 -2
  9. package/dist/{chunk-7TJVDU2S.js → chunk-A5P7Y4SB.js} +3 -3
  10. package/dist/{chunk-UK2HVVTQ.js → chunk-C5O7Z4P7.js} +2 -2
  11. package/dist/{chunk-TDXJYLRP.js → chunk-C62JS6A7.js} +2 -2
  12. package/dist/{chunk-MBNECNPL.js → chunk-D55LWKBW.js} +15 -10
  13. package/dist/{chunk-MBNECNPL.js.map → chunk-D55LWKBW.js.map} +1 -1
  14. package/dist/{chunk-DOT3TG4T.js → chunk-DHWEXVCJ.js} +3 -3
  15. package/dist/{chunk-4LMP452D.js → chunk-GJDNMK3G.js} +7 -7
  16. package/dist/{chunk-4DXZJJK3.js → chunk-GX3QJX7X.js} +2 -2
  17. package/dist/{chunk-ETEGV2NG.js → chunk-H5G4N5UL.js} +2 -2
  18. package/dist/{chunk-CZC4FIVH.js → chunk-IJXJGQUY.js} +4 -4
  19. package/dist/{chunk-D2SKFK4W.js → chunk-JIZ7B6FX.js} +5 -5
  20. package/dist/{chunk-V7EFU7LB.js → chunk-MB2T54VO.js} +6 -2
  21. package/dist/chunk-MB2T54VO.js.map +1 -0
  22. package/dist/{chunk-TZGM6BXE.js → chunk-NTBGFI5Q.js} +3 -3
  23. package/dist/{chunk-3BKFXSHM.js → chunk-OIBSPO6Q.js} +3 -3
  24. package/dist/{chunk-6YLKVLI4.js → chunk-P3XQMXIW.js} +35 -35
  25. package/dist/{chunk-VYWHIQHX.js → chunk-P4QFJ7OX.js} +2 -2
  26. package/dist/{chunk-TOBIDJ3V.js → chunk-PPZTSOSH.js} +8 -8
  27. package/dist/{chunk-XFQMSO3R.js → chunk-PQCKQKKP.js} +5 -5
  28. package/dist/{chunk-Y3CGQUCQ.js → chunk-Q4L2DXA4.js} +5 -5
  29. package/dist/{chunk-YKEBDGCK.js → chunk-QWI4VF5L.js} +2 -2
  30. package/dist/{chunk-JF7YUXZX.js → chunk-R3ZNOB3V.js} +2 -2
  31. package/dist/{chunk-6QBCTIKD.js → chunk-RYJ2VU7E.js} +2 -2
  32. package/dist/{chunk-V24NAR5C.js → chunk-RYOQ3WJR.js} +2 -2
  33. package/dist/{chunk-ZYL6RNBZ.js → chunk-SJGNFNFT.js} +5 -5
  34. package/dist/{chunk-ZHVVLJFQ.js → chunk-SQ35C5SD.js} +4 -4
  35. package/dist/{chunk-7KHCQPHO.js → chunk-YSE3VQ4A.js} +343 -314
  36. package/dist/chunk-YSE3VQ4A.js.map +1 -0
  37. package/dist/{chunk-ISF7BEHM.js → chunk-YUPUHMWP.js} +4 -4
  38. package/dist/{cli-circuit-breaker-AR6SXY4G.js → cli-circuit-breaker-YKY7NCQ5.js} +3 -3
  39. package/dist/cli.d.ts +1 -1
  40. package/dist/cli.js +41 -41
  41. package/dist/{composite-router-NQ4UCMV6.js → composite-router-63QDM6CQ.js} +2 -2
  42. package/dist/{consensus-vote-ILSS373K.js → consensus-vote-C7QTJJH7.js} +16 -16
  43. package/dist/{consensus-vote-types-BC2vWQKe.d.ts → consensus-vote-types-b-KD-0g_.d.ts} +102 -0
  44. package/dist/{context-retriever-CCGMXTGJ.js → context-retriever-DIKQ7QZA.js} +8 -8
  45. package/dist/{doctor-deep-VMTFQG7N.js → doctor-deep-JVUEAUAG.js} +3 -3
  46. package/dist/{doctor-live-IAQOG6LI.js → doctor-live-CT2SKNLI.js} +9 -9
  47. package/dist/{expert-bridge-JOM5P4I4.js → expert-bridge-G5WXRNUH.js} +4 -4
  48. package/dist/{factory-6A6TGK6D.js → factory-72QUNWLV.js} +5 -5
  49. package/dist/{factory-MYQRDKOJ.js → factory-LYRONJ3P.js} +9 -9
  50. package/dist/{improvement-review-CFBMX6BL.js → improvement-review-CJMYGUDM.js} +5 -5
  51. package/dist/index.d.ts +10 -2
  52. package/dist/index.js +30 -30
  53. package/dist/{init-opencode-J7GUKZF4.js → init-opencode-UATS6Q6W.js} +6 -6
  54. package/dist/{issue-triage-T3L7CAUV.js → issue-triage-CZWWJSOT.js} +6 -6
  55. package/dist/{pr-reviewer-helpers-XMTT5K4E.js → pr-reviewer-helpers-OLEK46AR.js} +4 -4
  56. package/dist/{registry-command-5QPDC5SH.js → registry-command-FKRZFXYQ.js} +2 -2
  57. package/dist/{repo-security-plan-WQG7G4H6.js → repo-security-plan-BULZVX3A.js} +3 -3
  58. package/dist/{research-helpers-synthesize-6FPLB3UK.js → research-helpers-synthesize-LTMSKVUB.js} +4 -4
  59. package/dist/{routing-memory-HNZRMLXC.js → routing-memory-H7DT3HVY.js} +2 -2
  60. package/dist/{session-memory-SXYFTZYM.js → session-memory-UTPN4MCS.js} +3 -3
  61. package/dist/{setup-command-X7EJ7LBU.js → setup-command-TGGSIV6F.js} +14 -14
  62. package/dist/{setup-config-4UPPIMTI.js → setup-config-WIXJT5YV.js} +3 -3
  63. package/dist/{setup-custom-api-U5WEZRQO.js → setup-custom-api-36BFRFWO.js} +4 -4
  64. package/dist/{tool-memory-BT7VS5N5.js → tool-memory-YQTO4WUG.js} +5 -5
  65. package/dist/{unified-registry-L2T5UJHQ.js → unified-registry-N2BQJSLK.js} +10 -10
  66. package/dist/{weather-report-2T3OIAJS.js → weather-report-AOX6RULO.js} +2 -2
  67. package/package.json +1 -1
  68. package/dist/chunk-7KHCQPHO.js.map +0 -1
  69. package/dist/chunk-V7EFU7LB.js.map +0 -1
  70. /package/dist/{child-mcp-config-RERUXZJS.js.map → child-mcp-config-R4GQMDAV.js.map} +0 -0
  71. /package/dist/{chunk-KEO6QJE6.js.map → chunk-2XFBHREJ.js.map} +0 -0
  72. /package/dist/{chunk-J2F5E3DF.js.map → chunk-5CXAYPSU.js.map} +0 -0
  73. /package/dist/{chunk-WT6JCD3E.js.map → chunk-5LFB77LA.js.map} +0 -0
  74. /package/dist/{chunk-JFZP7IA4.js.map → chunk-5WGOPKHZ.js.map} +0 -0
  75. /package/dist/{chunk-5FMDEEV7.js.map → chunk-6G4FMCXS.js.map} +0 -0
  76. /package/dist/{chunk-PXJDALVM.js.map → chunk-6Y4QIIQD.js.map} +0 -0
  77. /package/dist/{chunk-NC6CLKIB.js.map → chunk-7ILVQDUT.js.map} +0 -0
  78. /package/dist/{chunk-7TJVDU2S.js.map → chunk-A5P7Y4SB.js.map} +0 -0
  79. /package/dist/{chunk-UK2HVVTQ.js.map → chunk-C5O7Z4P7.js.map} +0 -0
  80. /package/dist/{chunk-TDXJYLRP.js.map → chunk-C62JS6A7.js.map} +0 -0
  81. /package/dist/{chunk-DOT3TG4T.js.map → chunk-DHWEXVCJ.js.map} +0 -0
  82. /package/dist/{chunk-4LMP452D.js.map → chunk-GJDNMK3G.js.map} +0 -0
  83. /package/dist/{chunk-4DXZJJK3.js.map → chunk-GX3QJX7X.js.map} +0 -0
  84. /package/dist/{chunk-ETEGV2NG.js.map → chunk-H5G4N5UL.js.map} +0 -0
  85. /package/dist/{chunk-CZC4FIVH.js.map → chunk-IJXJGQUY.js.map} +0 -0
  86. /package/dist/{chunk-D2SKFK4W.js.map → chunk-JIZ7B6FX.js.map} +0 -0
  87. /package/dist/{chunk-TZGM6BXE.js.map → chunk-NTBGFI5Q.js.map} +0 -0
  88. /package/dist/{chunk-3BKFXSHM.js.map → chunk-OIBSPO6Q.js.map} +0 -0
  89. /package/dist/{chunk-6YLKVLI4.js.map → chunk-P3XQMXIW.js.map} +0 -0
  90. /package/dist/{chunk-VYWHIQHX.js.map → chunk-P4QFJ7OX.js.map} +0 -0
  91. /package/dist/{chunk-TOBIDJ3V.js.map → chunk-PPZTSOSH.js.map} +0 -0
  92. /package/dist/{chunk-XFQMSO3R.js.map → chunk-PQCKQKKP.js.map} +0 -0
  93. /package/dist/{chunk-Y3CGQUCQ.js.map → chunk-Q4L2DXA4.js.map} +0 -0
  94. /package/dist/{chunk-YKEBDGCK.js.map → chunk-QWI4VF5L.js.map} +0 -0
  95. /package/dist/{chunk-JF7YUXZX.js.map → chunk-R3ZNOB3V.js.map} +0 -0
  96. /package/dist/{chunk-6QBCTIKD.js.map → chunk-RYJ2VU7E.js.map} +0 -0
  97. /package/dist/{chunk-V24NAR5C.js.map → chunk-RYOQ3WJR.js.map} +0 -0
  98. /package/dist/{chunk-ZYL6RNBZ.js.map → chunk-SJGNFNFT.js.map} +0 -0
  99. /package/dist/{chunk-ZHVVLJFQ.js.map → chunk-SQ35C5SD.js.map} +0 -0
  100. /package/dist/{chunk-ISF7BEHM.js.map → chunk-YUPUHMWP.js.map} +0 -0
  101. /package/dist/{cli-circuit-breaker-AR6SXY4G.js.map → cli-circuit-breaker-YKY7NCQ5.js.map} +0 -0
  102. /package/dist/{composite-router-NQ4UCMV6.js.map → composite-router-63QDM6CQ.js.map} +0 -0
  103. /package/dist/{consensus-vote-ILSS373K.js.map → consensus-vote-C7QTJJH7.js.map} +0 -0
  104. /package/dist/{context-retriever-CCGMXTGJ.js.map → context-retriever-DIKQ7QZA.js.map} +0 -0
  105. /package/dist/{doctor-deep-VMTFQG7N.js.map → doctor-deep-JVUEAUAG.js.map} +0 -0
  106. /package/dist/{doctor-live-IAQOG6LI.js.map → doctor-live-CT2SKNLI.js.map} +0 -0
  107. /package/dist/{expert-bridge-JOM5P4I4.js.map → expert-bridge-G5WXRNUH.js.map} +0 -0
  108. /package/dist/{factory-6A6TGK6D.js.map → factory-72QUNWLV.js.map} +0 -0
  109. /package/dist/{factory-MYQRDKOJ.js.map → factory-LYRONJ3P.js.map} +0 -0
  110. /package/dist/{improvement-review-CFBMX6BL.js.map → improvement-review-CJMYGUDM.js.map} +0 -0
  111. /package/dist/{init-opencode-J7GUKZF4.js.map → init-opencode-UATS6Q6W.js.map} +0 -0
  112. /package/dist/{issue-triage-T3L7CAUV.js.map → issue-triage-CZWWJSOT.js.map} +0 -0
  113. /package/dist/{pr-reviewer-helpers-XMTT5K4E.js.map → pr-reviewer-helpers-OLEK46AR.js.map} +0 -0
  114. /package/dist/{registry-command-5QPDC5SH.js.map → registry-command-FKRZFXYQ.js.map} +0 -0
  115. /package/dist/{repo-security-plan-WQG7G4H6.js.map → repo-security-plan-BULZVX3A.js.map} +0 -0
  116. /package/dist/{research-helpers-synthesize-6FPLB3UK.js.map → research-helpers-synthesize-LTMSKVUB.js.map} +0 -0
  117. /package/dist/{routing-memory-HNZRMLXC.js.map → routing-memory-H7DT3HVY.js.map} +0 -0
  118. /package/dist/{session-memory-SXYFTZYM.js.map → session-memory-UTPN4MCS.js.map} +0 -0
  119. /package/dist/{setup-command-X7EJ7LBU.js.map → setup-command-TGGSIV6F.js.map} +0 -0
  120. /package/dist/{setup-config-4UPPIMTI.js.map → setup-config-WIXJT5YV.js.map} +0 -0
  121. /package/dist/{setup-custom-api-U5WEZRQO.js.map → setup-custom-api-36BFRFWO.js.map} +0 -0
  122. /package/dist/{tool-memory-BT7VS5N5.js.map → tool-memory-YQTO4WUG.js.map} +0 -0
  123. /package/dist/{unified-registry-L2T5UJHQ.js.map → unified-registry-N2BQJSLK.js.map} +0 -0
  124. /package/dist/{weather-report-2T3OIAJS.js.map → weather-report-AOX6RULO.js.map} +0 -0
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-JF7YUXZX.js";
4
+ } from "./chunk-R3ZNOB3V.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-UK2HVVTQ.js";
7
+ } from "./chunk-C5O7Z4P7.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-7KHCQPHO.js";
11
+ } from "./chunk-YSE3VQ4A.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-ISF7BEHM.js.map
44
+ //# sourceMappingURL=chunk-YUPUHMWP.js.map
@@ -3,8 +3,8 @@ import {
3
3
  createCliCircuitBreakerIntegration,
4
4
  getCliCircuitBreakerSnapshot,
5
5
  getDefaultCliCircuitBreakerRegistry
6
- } from "./chunk-NC6CLKIB.js";
7
- import "./chunk-7KHCQPHO.js";
6
+ } from "./chunk-7ILVQDUT.js";
7
+ import "./chunk-YSE3VQ4A.js";
8
8
  import "./chunk-2HUC6NZN.js";
9
9
  import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
@@ -14,4 +14,4 @@ export {
14
14
  getCliCircuitBreakerSnapshot,
15
15
  getDefaultCliCircuitBreakerRegistry
16
16
  };
17
- //# sourceMappingURL=cli-circuit-breaker-AR6SXY4G.js.map
17
+ //# sourceMappingURL=cli-circuit-breaker-YKY7NCQ5.js.map
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as CliNameLiteral, K as VoteThreshold, E as ErrorPolicy, N as NoQuorumPolicy } from './consensus-vote-types-BC2vWQKe.js';
2
+ import { C as CliNameLiteral, K as VoteThreshold, E as ErrorPolicy, N as NoQuorumPolicy } from './consensus-vote-types-b-KD-0g_.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
package/dist/cli.js CHANGED
@@ -13,13 +13,13 @@ import {
13
13
  generateSummary,
14
14
  parseFindings,
15
15
  sumFindings
16
- } from "./chunk-TZGM6BXE.js";
17
- import "./chunk-WT6JCD3E.js";
16
+ } from "./chunk-NTBGFI5Q.js";
17
+ import "./chunk-5LFB77LA.js";
18
18
  import {
19
19
  setupCommandAsync,
20
20
  verifyCommand
21
- } from "./chunk-XFQMSO3R.js";
22
- import "./chunk-PXJDALVM.js";
21
+ } from "./chunk-PQCKQKKP.js";
22
+ import "./chunk-6Y4QIIQD.js";
23
23
  import {
24
24
  AuthHandler,
25
25
  DEFAULT_EXPERTS,
@@ -139,8 +139,8 @@ import {
139
139
  validateCommand,
140
140
  validateWorkflow,
141
141
  wrapInMarkdownFence
142
- } from "./chunk-6YLKVLI4.js";
143
- import "./chunk-VYWHIQHX.js";
142
+ } from "./chunk-P3XQMXIW.js";
143
+ import "./chunk-P4QFJ7OX.js";
144
144
  import "./chunk-HFOQKCD2.js";
145
145
  import "./chunk-BQTMMLQQ.js";
146
146
  import {
@@ -166,14 +166,14 @@ import {
166
166
  loadConfig,
167
167
  runDoctor,
168
168
  validateNexusEnv
169
- } from "./chunk-TOBIDJ3V.js";
169
+ } from "./chunk-PPZTSOSH.js";
170
170
  import {
171
171
  buildOpenAICompatAdapters,
172
172
  readOpenAICompatEnv
173
- } from "./chunk-D2SKFK4W.js";
173
+ } from "./chunk-JIZ7B6FX.js";
174
174
  import {
175
175
  shutdownExpertBridge
176
- } from "./chunk-4LMP452D.js";
176
+ } from "./chunk-GJDNMK3G.js";
177
177
  import {
178
178
  ConsensusVoteInputSchema,
179
179
  DEFAULT_VOTE_TIMEOUT_MS,
@@ -183,29 +183,29 @@ import {
183
183
  executeVoting,
184
184
  mapOutcomeToDecision,
185
185
  registerConsensusVoteTool
186
- } from "./chunk-MBNECNPL.js";
186
+ } from "./chunk-D55LWKBW.js";
187
187
  import {
188
188
  loadUsageEvents,
189
189
  rollupByModel
190
- } from "./chunk-V7EFU7LB.js";
190
+ } from "./chunk-MB2T54VO.js";
191
191
  import {
192
192
  allOf,
193
193
  anyOf
194
194
  } from "./chunk-OQB3XC5O.js";
195
195
  import {
196
196
  synthesizeResearch
197
- } from "./chunk-7TJVDU2S.js";
197
+ } from "./chunk-A5P7Y4SB.js";
198
198
  import {
199
199
  classifyTrust,
200
200
  createFullGitHubProvider,
201
201
  evaluatePolicy,
202
202
  parsePRUrl
203
- } from "./chunk-Y3CGQUCQ.js";
204
- import "./chunk-JF7YUXZX.js";
203
+ } from "./chunk-Q4L2DXA4.js";
204
+ import "./chunk-R3ZNOB3V.js";
205
205
  import {
206
206
  ReputationCache,
207
207
  sanitizeInput
208
- } from "./chunk-ETEGV2NG.js";
208
+ } from "./chunk-H5G4N5UL.js";
209
209
  import {
210
210
  ImprovementReviewInputSchema,
211
211
  calculateFitnessScore,
@@ -219,15 +219,15 @@ import {
219
219
  registerImprovementReviewTool,
220
220
  runImprovementReview,
221
221
  scanForSecrets
222
- } from "./chunk-DOT3TG4T.js";
222
+ } from "./chunk-DHWEXVCJ.js";
223
223
  import {
224
224
  createDefaultPolicyFirewall
225
- } from "./chunk-3BKFXSHM.js";
226
- import "./chunk-YKEBDGCK.js";
225
+ } from "./chunk-OIBSPO6Q.js";
226
+ import "./chunk-QWI4VF5L.js";
227
227
  import {
228
228
  createUnifiedRegistry,
229
229
  getGlobalRegistry
230
- } from "./chunk-CZC4FIVH.js";
230
+ } from "./chunk-IJXJGQUY.js";
231
231
  import {
232
232
  CodebaseIndexSchema,
233
233
  PaperStatusSchema,
@@ -253,25 +253,25 @@ import {
253
253
  loadSourcesRegistry,
254
254
  rankDiscoveredItems,
255
255
  saveSourcesRegistry
256
- } from "./chunk-ZYL6RNBZ.js";
256
+ } from "./chunk-SJGNFNFT.js";
257
257
  import {
258
258
  resolveToken
259
- } from "./chunk-UK2HVVTQ.js";
259
+ } from "./chunk-C5O7Z4P7.js";
260
260
  import {
261
261
  loadPapersRegistry,
262
262
  loadTechniquesRegistry,
263
263
  savePapersRegistry
264
- } from "./chunk-6QBCTIKD.js";
264
+ } from "./chunk-RYJ2VU7E.js";
265
265
  import "./chunk-NUBSJGQZ.js";
266
266
  import {
267
267
  MemoryError,
268
268
  shutdownToolMemory
269
- } from "./chunk-ZHVVLJFQ.js";
269
+ } from "./chunk-SQ35C5SD.js";
270
270
  import {
271
271
  capitalize,
272
272
  capitalizeKebab
273
273
  } from "./chunk-6T3EPABN.js";
274
- import "./chunk-JFZP7IA4.js";
274
+ import "./chunk-5WGOPKHZ.js";
275
275
  import "./chunk-YPNQPT2F.js";
276
276
  import "./chunk-DVKS77O5.js";
277
277
  import "./chunk-KSQSWEFH.js";
@@ -282,19 +282,19 @@ import {
282
282
  isRecord,
283
283
  probeAllClis,
284
284
  readSubprocessDepth
285
- } from "./chunk-5FMDEEV7.js";
286
- import "./chunk-V24NAR5C.js";
285
+ } from "./chunk-6G4FMCXS.js";
286
+ import "./chunk-RYOQ3WJR.js";
287
287
  import {
288
288
  DEFAULTS
289
- } from "./chunk-TDXJYLRP.js";
290
- import "./chunk-KEO6QJE6.js";
289
+ } from "./chunk-C62JS6A7.js";
290
+ import "./chunk-2XFBHREJ.js";
291
291
  import {
292
292
  nexusMkdtempSync
293
293
  } from "./chunk-SNJNRDKZ.js";
294
- import "./chunk-J2F5E3DF.js";
294
+ import "./chunk-5CXAYPSU.js";
295
295
  import "./chunk-QZUG667L.js";
296
- import "./chunk-4DXZJJK3.js";
297
- import "./chunk-NC6CLKIB.js";
296
+ import "./chunk-GX3QJX7X.js";
297
+ import "./chunk-7ILVQDUT.js";
298
298
  import {
299
299
  API_TIMEOUTS,
300
300
  AgentCapability,
@@ -368,7 +368,7 @@ import {
368
368
  validateTimeout,
369
369
  writeEmptyLine,
370
370
  writeLine
371
- } from "./chunk-7KHCQPHO.js";
371
+ } from "./chunk-YSE3VQ4A.js";
372
372
  import "./chunk-2HUC6NZN.js";
373
373
  import {
374
374
  applyPortableMode,
@@ -4080,7 +4080,7 @@ ${file.patch}
4080
4080
  violations: policyResult.violations
4081
4081
  });
4082
4082
  }
4083
- const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-XMTT5K4E.js");
4083
+ const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-OLEK46AR.js");
4084
4084
  const body = formatReviewComment2(result);
4085
4085
  const postResult = await provider.createReview(pr.prNumber, body, result.decision);
4086
4086
  if (!postResult.ok) {
@@ -17483,7 +17483,7 @@ function startImprovementReviewScheduler(options) {
17483
17483
  let running = false;
17484
17484
  const runOnce = async () => {
17485
17485
  try {
17486
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-CFBMX6BL.js");
17486
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-CJMYGUDM.js");
17487
17487
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
17488
17488
  const result = await runImprovementReview2(input, { logger: logger19 });
17489
17489
  logger19.info("Scheduled improvement_review complete", {
@@ -19540,7 +19540,7 @@ function adaptConfigToLibrary(config) {
19540
19540
  }
19541
19541
  function createBeliefPromoter() {
19542
19542
  return async (event) => {
19543
- const { getToolMemory } = await import("./tool-memory-BT7VS5N5.js");
19543
+ const { getToolMemory } = await import("./tool-memory-YQTO4WUG.js");
19544
19544
  const tm = getToolMemory();
19545
19545
  await tm.recordBelief(
19546
19546
  `skill:${event.name}`,
@@ -20727,7 +20727,7 @@ async function handleResearchCommand(args) {
20727
20727
  }
20728
20728
  }
20729
20729
  async function handleRegistryCommand(args) {
20730
- const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-5QPDC5SH.js");
20730
+ const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-FKRZFXYQ.js");
20731
20731
  const subcommand = args.subcommand;
20732
20732
  if (!isValidRegistrySubcommand(subcommand)) {
20733
20733
  process.stdout.write(`${formatRegistryUsage()}
@@ -20775,12 +20775,12 @@ async function handleVerifyCommand(args) {
20775
20775
  async function handleDoctorCommand(args) {
20776
20776
  const exitCode = await doctorCommand({ fix: args.options.fix });
20777
20777
  if (args.options.deep) {
20778
- const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-VMTFQG7N.js");
20778
+ const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-JVUEAUAG.js");
20779
20779
  const diag = runDeepDiagnostics2();
20780
20780
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
20781
20781
  }
20782
20782
  if (args.options.live) {
20783
- const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-IAQOG6LI.js");
20783
+ const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-CT2SKNLI.js");
20784
20784
  const report = await runLiveReadiness();
20785
20785
  process.stdout.write(formatLiveReadiness(report) + "\n");
20786
20786
  if (report.some((r) => r.levels.serves.status === "failed")) {
@@ -20833,7 +20833,7 @@ async function runInitPortableFlow(args) {
20833
20833
  return cliExit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
20834
20834
  }
20835
20835
  async function runInitOpencodeFlow(args) {
20836
- const { runInitOpencode } = await import("./init-opencode-J7GUKZF4.js");
20836
+ const { runInitOpencode } = await import("./init-opencode-UATS6Q6W.js");
20837
20837
  const opencodePath = args.options.opencode;
20838
20838
  if (opencodePath === void 0 || opencodePath === "") {
20839
20839
  process.stderr.write("Error: --opencode requires a path argument.\n");
@@ -20859,7 +20859,7 @@ async function runInitOpencodeFlow(args) {
20859
20859
  return cliExit(EXIT_CODES.SUCCESS);
20860
20860
  }
20861
20861
  async function renderOpencodeValidate(opencodePath) {
20862
- const { runOpencodeValidate } = await import("./init-opencode-J7GUKZF4.js");
20862
+ const { runOpencodeValidate } = await import("./init-opencode-UATS6Q6W.js");
20863
20863
  const result = await runOpencodeValidate(opencodePath);
20864
20864
  if (!result.ok) {
20865
20865
  process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
@@ -20898,7 +20898,7 @@ async function handleSetupCommandAsync(args) {
20898
20898
  return cliExitFromStatus(exitCode);
20899
20899
  }
20900
20900
  async function runCustomApiSetup(args) {
20901
- const { configureCustomApi } = await import("./setup-custom-api-U5WEZRQO.js");
20901
+ const { configureCustomApi } = await import("./setup-custom-api-36BFRFWO.js");
20902
20902
  const baseUrl = args.options.customApi;
20903
20903
  if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
20904
20904
  const input = {
@@ -4,7 +4,7 @@ import {
4
4
  CompositeRoutingError,
5
5
  DEFAULT_COMPOSITE_CONFIG,
6
6
  createCompositeRouter
7
- } from "./chunk-7KHCQPHO.js";
7
+ } from "./chunk-YSE3VQ4A.js";
8
8
  import "./chunk-2HUC6NZN.js";
9
9
  import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
@@ -15,4 +15,4 @@ export {
15
15
  DEFAULT_COMPOSITE_CONFIG,
16
16
  createCompositeRouter
17
17
  };
18
- //# sourceMappingURL=composite-router-NQ4UCMV6.js.map
18
+ //# sourceMappingURL=composite-router-63QDM6CQ.js.map
@@ -11,27 +11,27 @@ import {
11
11
  resetCorrelationTracker,
12
12
  runConsensusForGoal,
13
13
  unwrapVoteOrThrow
14
- } from "./chunk-MBNECNPL.js";
15
- import "./chunk-V7EFU7LB.js";
14
+ } from "./chunk-D55LWKBW.js";
15
+ import "./chunk-MB2T54VO.js";
16
16
  import "./chunk-OQB3XC5O.js";
17
- import "./chunk-3BKFXSHM.js";
18
- import "./chunk-YKEBDGCK.js";
19
- import "./chunk-CZC4FIVH.js";
20
- import "./chunk-ZHVVLJFQ.js";
17
+ import "./chunk-OIBSPO6Q.js";
18
+ import "./chunk-QWI4VF5L.js";
19
+ import "./chunk-IJXJGQUY.js";
20
+ import "./chunk-SQ35C5SD.js";
21
21
  import "./chunk-6T3EPABN.js";
22
- import "./chunk-JFZP7IA4.js";
22
+ import "./chunk-5WGOPKHZ.js";
23
23
  import "./chunk-DVKS77O5.js";
24
24
  import "./chunk-KSQSWEFH.js";
25
- import "./chunk-5FMDEEV7.js";
26
- import "./chunk-V24NAR5C.js";
27
- import "./chunk-TDXJYLRP.js";
28
- import "./chunk-KEO6QJE6.js";
25
+ import "./chunk-6G4FMCXS.js";
26
+ import "./chunk-RYOQ3WJR.js";
27
+ import "./chunk-C62JS6A7.js";
28
+ import "./chunk-2XFBHREJ.js";
29
29
  import "./chunk-SNJNRDKZ.js";
30
- import "./chunk-J2F5E3DF.js";
30
+ import "./chunk-5CXAYPSU.js";
31
31
  import "./chunk-QZUG667L.js";
32
- import "./chunk-4DXZJJK3.js";
33
- import "./chunk-NC6CLKIB.js";
34
- import "./chunk-7KHCQPHO.js";
32
+ import "./chunk-GX3QJX7X.js";
33
+ import "./chunk-7ILVQDUT.js";
34
+ import "./chunk-YSE3VQ4A.js";
35
35
  import "./chunk-2HUC6NZN.js";
36
36
  import "./chunk-OQLFRJCW.js";
37
37
  import "./chunk-ZPWHCABL.js";
@@ -49,4 +49,4 @@ export {
49
49
  runConsensusForGoal,
50
50
  unwrapVoteOrThrow
51
51
  };
52
- //# sourceMappingURL=consensus-vote-ILSS373K.js.map
52
+ //# sourceMappingURL=consensus-vote-C7QTJJH7.js.map
@@ -1,5 +1,86 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ /**
4
+ * nexus-agents/core - Price-basis vocabulary (#4406)
5
+ *
6
+ * The kind of rate a recorded dollar figure rests on, defined ONCE for both
7
+ * consumers: the pricing chain (`core/trace-pricing.ts`, which turns a model id
8
+ * into a cost) and the persisted decision-cost records
9
+ * (`observability/decision-cost.ts`, which have to transport the basis into
10
+ * JSONL and an MCP `outputSchema`).
11
+ *
12
+ * WHY A SEPARATE LEAF MODULE. `core/trace-pricing` pulls in the model registry,
13
+ * and a runtime edge from `observability/decision-cost` to it closes a cycle
14
+ * back through weather-report → decision-cost-store → decision-cost, which left
15
+ * the zod schema `undefined` at evaluation time. The first fix was a type-only
16
+ * import plus a hand-written `['list', 'unknown'] as const satisfies readonly
17
+ * PriceBasis[]` mirror in decision-cost.ts. That mirror was a data-loss hazard:
18
+ * `satisfies` rejects a member being RENAMED or DROPPED but happily accepts the
19
+ * union GAINING one, so an added member would compile, fail validation at the
20
+ * persistence boundary, and make `JsonlStore` reject the ENTIRE decision record
21
+ * — `append` returning `persisted: false`, and on read the line skipped with
22
+ * only an aggregate debug count. Governance and billing data lost wholesale
23
+ * over one unrecognised field value.
24
+ *
25
+ * This module has no imports beyond zod, so both sides can import it at runtime
26
+ * without a cycle, and the duplication is gone rather than merely guarded: the
27
+ * schema is the single definition and the TypeScript union is DERIVED from it,
28
+ * so a new member cannot be added to one and not the other.
29
+ *
30
+ * @module core/price-basis
31
+ * (Source: Issue #4406)
32
+ */
33
+
34
+ /**
35
+ * The vocabulary itself. Members:
36
+ *
37
+ * - `'list'` — a price WAS resolved from the registry chain. Read it as "an
38
+ * assumed published rate", not a guaranteed vendor list rate: see
39
+ * {@link PriceBasis} for the cases where the resolved number is something
40
+ * else and is still reported this way.
41
+ * - `'unknown'` — no price was resolved for this model. Read it as "the chain
42
+ * produced nothing", not "no price exists in the world": the generated
43
+ * catalog loader (`config/models-generated-loader.ts`) deliberately discards
44
+ * a published $0/$0 rate unless the id ends `:free`, so a genuinely free
45
+ * model can land here.
46
+ *
47
+ * Deriving the type from the schema (rather than the reverse) is what keeps the
48
+ * runtime validator and the compile-time union from drifting.
49
+ */
50
+ declare const PriceBasisSchema: z.ZodEnum<{
51
+ unknown: "unknown";
52
+ list: "list";
53
+ }>;
54
+ /**
55
+ * Where a price came from, so a consumer can caveat it honestly (#4406).
56
+ *
57
+ * `'list'` is an ASSUMPTION about the pricing chain, not a verified property of
58
+ * the number. The chain's tiers are mostly vendors' advertised public rates,
59
+ * but at least three paths put something else behind the same label:
60
+ *
61
+ * 1. The operator manifest overlay (`config/manifest-overlay.ts`) is the
62
+ * HIGHEST-precedence tier and carries `pricing` in its passthrough keys —
63
+ * it exists specifically to override pricing. An operator's negotiated rate
64
+ * entered there is reported `'list'`, and {@link priceBasisCaveat} then
65
+ * warns the reader their contract may differ over the contract rate.
66
+ * 2. The normalized/fuzzy identity tier (`config/model-registry.ts`
67
+ * `mergeMatchedWithDerived`) grants a decorated gateway id the pricing of a
68
+ * DIFFERENT canonical entry it matched. That rate is a real vendor rate for
69
+ * some other model, not necessarily for the id being priced.
70
+ * 3. In the reverse direction, `'unknown'` is not a claim that no price
71
+ * exists — see the loader caveat on {@link PriceBasisSchema}.
72
+ *
73
+ * There is deliberately no `'contract'` member. The gap is NOT that an operator
74
+ * has no way to state a negotiated rate — the manifest overlay above is exactly
75
+ * that mechanism — it is that the mechanism carries no LABEL distinguishing a
76
+ * negotiated rate from a published one, so nothing downstream could populate
77
+ * `'contract'` truthfully. Adding the label, and the member, is tracked
78
+ * separately; until then `'list'` over-claims in the conservative direction
79
+ * (it warns about an estimate over a number that may be exact) and every basis
80
+ * a consumer sees should be read as "the best rate the chain knew about".
81
+ */
82
+ type PriceBasis = z.infer<typeof PriceBasisSchema>;
83
+
3
84
  /**
4
85
  * nexus-agents/config - Model Capabilities Type Definitions
5
86
  *
@@ -136,6 +217,16 @@ interface VoterCostBreakdown {
136
217
  * placeholder, not a measured $0.
137
218
  */
138
219
  readonly unmeasured: boolean;
220
+ /**
221
+ * What kind of rate `costUsd` rests on, when the caller stated one (#4406).
222
+ * Omitted when it did not — absent is not a claim, the same discipline the
223
+ * cache counters follow (#4439).
224
+ *
225
+ * Also omitted in `plan` mode, where `costUsd` was forced to 0: that zero
226
+ * rests on no price, so attributing it to one would be a fiction. Same rule
227
+ * as {@link DecisionCostSummary.priceBasis}, applied at the row level.
228
+ */
229
+ readonly priceBasis?: PriceBasis | undefined;
139
230
  }
140
231
  /** Per-model rollup line within a single decision. */
141
232
  interface ModelCostBreakdown {
@@ -171,6 +262,17 @@ interface DecisionCostSummary {
171
262
  * real cost).
172
263
  */
173
264
  readonly totalCostUsd: number;
265
+ /**
266
+ * What kind of rate `totalCostUsd` rests on (#4406) — `'list'` if ANY voter
267
+ * that contributed a price used a list rate, `'unknown'` if every voter that
268
+ * stated a basis had no price at all.
269
+ *
270
+ * OMITTED when no voter stated a basis (nothing was claimed) and in `plan`
271
+ * mode, where the recorded $0 is pre-covered by a subscription and rests on
272
+ * no price at all — `billingMode` already explains that figure, and labelling
273
+ * it `'list'` would credit a rate that produced nothing.
274
+ */
275
+ readonly priceBasis?: PriceBasis | undefined;
174
276
  /** Per-voter breakdown, in input order. */
175
277
  readonly perVoter: readonly VoterCostBreakdown[];
176
278
  /** Per-model breakdown, sorted by total cost desc then total tokens desc. */
@@ -6,18 +6,18 @@ import {
6
6
  inferTaskCategory,
7
7
  selectRelevantResearch,
8
8
  summarizeContextForPrompt
9
- } from "./chunk-ZYL6RNBZ.js";
10
- import "./chunk-UK2HVVTQ.js";
11
- import "./chunk-6QBCTIKD.js";
9
+ } from "./chunk-SJGNFNFT.js";
10
+ import "./chunk-C5O7Z4P7.js";
11
+ import "./chunk-RYJ2VU7E.js";
12
12
  import "./chunk-NUBSJGQZ.js";
13
- import "./chunk-ZHVVLJFQ.js";
13
+ import "./chunk-SQ35C5SD.js";
14
14
  import "./chunk-6T3EPABN.js";
15
- import "./chunk-JFZP7IA4.js";
15
+ import "./chunk-5WGOPKHZ.js";
16
16
  import "./chunk-DVKS77O5.js";
17
17
  import "./chunk-KSQSWEFH.js";
18
18
  import "./chunk-QZUG667L.js";
19
- import "./chunk-4DXZJJK3.js";
20
- import "./chunk-7KHCQPHO.js";
19
+ import "./chunk-GX3QJX7X.js";
20
+ import "./chunk-YSE3VQ4A.js";
21
21
  import "./chunk-2HUC6NZN.js";
22
22
  import "./chunk-OQLFRJCW.js";
23
23
  import "./chunk-ZPWHCABL.js";
@@ -30,4 +30,4 @@ export {
30
30
  selectRelevantResearch,
31
31
  summarizeContextForPrompt
32
32
  };
33
- //# sourceMappingURL=context-retriever-CCGMXTGJ.js.map
33
+ //# sourceMappingURL=context-retriever-DIKQ7QZA.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  formatDeepDiagnostics,
3
3
  runDeepDiagnostics
4
- } from "./chunk-WT6JCD3E.js";
5
- import "./chunk-7KHCQPHO.js";
4
+ } from "./chunk-5LFB77LA.js";
5
+ import "./chunk-YSE3VQ4A.js";
6
6
  import "./chunk-2HUC6NZN.js";
7
7
  import "./chunk-OQLFRJCW.js";
8
8
  import "./chunk-ZPWHCABL.js";
@@ -10,4 +10,4 @@ export {
10
10
  formatDeepDiagnostics,
11
11
  runDeepDiagnostics
12
12
  };
13
- //# sourceMappingURL=doctor-deep-VMTFQG7N.js.map
13
+ //# sourceMappingURL=doctor-deep-JVUEAUAG.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  createAllAdapters,
3
3
  probeAllClis
4
- } from "./chunk-5FMDEEV7.js";
5
- import "./chunk-V24NAR5C.js";
6
- import "./chunk-TDXJYLRP.js";
7
- import "./chunk-KEO6QJE6.js";
4
+ } from "./chunk-6G4FMCXS.js";
5
+ import "./chunk-RYOQ3WJR.js";
6
+ import "./chunk-C62JS6A7.js";
7
+ import "./chunk-2XFBHREJ.js";
8
8
  import "./chunk-SNJNRDKZ.js";
9
- import "./chunk-J2F5E3DF.js";
9
+ import "./chunk-5CXAYPSU.js";
10
10
  import "./chunk-QZUG667L.js";
11
- import "./chunk-4DXZJJK3.js";
12
- import "./chunk-NC6CLKIB.js";
11
+ import "./chunk-GX3QJX7X.js";
12
+ import "./chunk-7ILVQDUT.js";
13
13
  import {
14
14
  resolveClassGuardMs
15
- } from "./chunk-7KHCQPHO.js";
15
+ } from "./chunk-YSE3VQ4A.js";
16
16
  import "./chunk-2HUC6NZN.js";
17
17
  import "./chunk-OQLFRJCW.js";
18
18
  import "./chunk-ZPWHCABL.js";
@@ -146,4 +146,4 @@ export {
146
146
  formatLiveReadiness,
147
147
  runLiveReadiness
148
148
  };
149
- //# sourceMappingURL=doctor-live-IAQOG6LI.js.map
149
+ //# sourceMappingURL=doctor-live-CT2SKNLI.js.map
@@ -3,9 +3,9 @@ import {
3
3
  shutdownExpertBridge,
4
4
  tokenSplitFromUsage,
5
5
  totalTokensFromUsage
6
- } from "./chunk-4LMP452D.js";
7
- import "./chunk-J2F5E3DF.js";
8
- import "./chunk-7KHCQPHO.js";
6
+ } from "./chunk-GJDNMK3G.js";
7
+ import "./chunk-5CXAYPSU.js";
8
+ import "./chunk-YSE3VQ4A.js";
9
9
  import "./chunk-2HUC6NZN.js";
10
10
  import "./chunk-OQLFRJCW.js";
11
11
  import "./chunk-ZPWHCABL.js";
@@ -15,4 +15,4 @@ export {
15
15
  tokenSplitFromUsage,
16
16
  totalTokensFromUsage
17
17
  };
18
- //# sourceMappingURL=expert-bridge-JOM5P4I4.js.map
18
+ //# sourceMappingURL=expert-bridge-G5WXRNUH.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-ISF7BEHM.js";
5
- import "./chunk-JF7YUXZX.js";
6
- import "./chunk-UK2HVVTQ.js";
7
- import "./chunk-7KHCQPHO.js";
4
+ } from "./chunk-YUPUHMWP.js";
5
+ import "./chunk-R3ZNOB3V.js";
6
+ import "./chunk-C5O7Z4P7.js";
7
+ import "./chunk-YSE3VQ4A.js";
8
8
  import "./chunk-2HUC6NZN.js";
9
9
  import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
@@ -12,4 +12,4 @@ export {
12
12
  createGitHubProvider,
13
13
  createScmProvider
14
14
  };
15
- //# sourceMappingURL=factory-6A6TGK6D.js.map
15
+ //# sourceMappingURL=factory-72QUNWLV.js.map
@@ -3,16 +3,16 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-5FMDEEV7.js";
7
- import "./chunk-V24NAR5C.js";
8
- import "./chunk-TDXJYLRP.js";
9
- import "./chunk-KEO6QJE6.js";
6
+ } from "./chunk-6G4FMCXS.js";
7
+ import "./chunk-RYOQ3WJR.js";
8
+ import "./chunk-C62JS6A7.js";
9
+ import "./chunk-2XFBHREJ.js";
10
10
  import "./chunk-SNJNRDKZ.js";
11
- import "./chunk-J2F5E3DF.js";
11
+ import "./chunk-5CXAYPSU.js";
12
12
  import "./chunk-QZUG667L.js";
13
- import "./chunk-4DXZJJK3.js";
14
- import "./chunk-NC6CLKIB.js";
15
- import "./chunk-7KHCQPHO.js";
13
+ import "./chunk-GX3QJX7X.js";
14
+ import "./chunk-7ILVQDUT.js";
15
+ import "./chunk-YSE3VQ4A.js";
16
16
  import "./chunk-2HUC6NZN.js";
17
17
  import "./chunk-OQLFRJCW.js";
18
18
  import "./chunk-ZPWHCABL.js";
@@ -22,4 +22,4 @@ export {
22
22
  getAvailableClis,
23
23
  isCliAvailable
24
24
  };
25
- //# sourceMappingURL=factory-MYQRDKOJ.js.map
25
+ //# sourceMappingURL=factory-LYRONJ3P.js.map
@@ -11,10 +11,10 @@ import {
11
11
  loadSelfEvalSignals,
12
12
  registerImprovementReviewTool,
13
13
  runImprovementReview
14
- } from "./chunk-DOT3TG4T.js";
15
- import "./chunk-3BKFXSHM.js";
16
- import "./chunk-YKEBDGCK.js";
17
- import "./chunk-7KHCQPHO.js";
14
+ } from "./chunk-DHWEXVCJ.js";
15
+ import "./chunk-OIBSPO6Q.js";
16
+ import "./chunk-QWI4VF5L.js";
17
+ import "./chunk-YSE3VQ4A.js";
18
18
  import "./chunk-2HUC6NZN.js";
19
19
  import "./chunk-OQLFRJCW.js";
20
20
  import "./chunk-ZPWHCABL.js";
@@ -32,4 +32,4 @@ export {
32
32
  registerImprovementReviewTool,
33
33
  runImprovementReview
34
34
  };
35
- //# sourceMappingURL=improvement-review-CFBMX6BL.js.map
35
+ //# sourceMappingURL=improvement-review-CJMYGUDM.js.map