nexus-agents 4.20.0 → 4.22.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-6JLJLDGR.js → child-mcp-config-GNF2DS7K.js} +2 -2
  2. package/dist/{chunk-3WGAPD5L.js → chunk-26VBDXT7.js} +3 -3
  3. package/dist/{chunk-JKWBSEL3.js → chunk-2SXZIUEA.js} +2 -2
  4. package/dist/{chunk-7CGVYJQS.js → chunk-3AAAEN6N.js} +5 -5
  5. package/dist/{chunk-RAOEVIA2.js → chunk-3X2ZQAJI.js} +4 -4
  6. package/dist/{chunk-SHMGRIYH.js → chunk-6MVRXQ6V.js} +2 -2
  7. package/dist/{chunk-SWCDZHUY.js → chunk-7B5YTCHU.js} +2 -2
  8. package/dist/{chunk-AZMXXJ5X.js → chunk-AJM6RCCB.js} +2 -2
  9. package/dist/{chunk-XOC6DP35.js → chunk-AQV5RKO7.js} +37 -5
  10. package/dist/chunk-AQV5RKO7.js.map +1 -0
  11. package/dist/{chunk-2AAG45CT.js → chunk-BDEWOJL4.js} +2 -2
  12. package/dist/{chunk-MMDJ4TU6.js → chunk-BZTFS7FN.js} +2 -2
  13. package/dist/{chunk-3WKO7D53.js → chunk-C67BIG35.js} +8 -8
  14. package/dist/{chunk-LTS4MLEO.js → chunk-G2USF7DN.js} +51 -31
  15. package/dist/chunk-G2USF7DN.js.map +1 -0
  16. package/dist/{chunk-EI3AC7X2.js → chunk-HVCYICUX.js} +4 -4
  17. package/dist/{chunk-MY33A5CO.js → chunk-HWBUN7WP.js} +2 -2
  18. package/dist/{chunk-TKI4VCS6.js → chunk-IDLQNS5U.js} +3 -3
  19. package/dist/{chunk-SD42OJST.js → chunk-IIJSUNEK.js} +7 -7
  20. package/dist/{chunk-EQG2GVM7.js → chunk-JJC5YKBH.js} +44 -19
  21. package/dist/chunk-JJC5YKBH.js.map +1 -0
  22. package/dist/{chunk-3VJ2MSUU.js → chunk-KASC5XK7.js} +7 -7
  23. package/dist/{chunk-3CU6PDLQ.js → chunk-LYI5GXON.js} +5 -5
  24. package/dist/{chunk-SPU2PTV7.js → chunk-M4BAGHYQ.js} +2 -2
  25. package/dist/{chunk-FBR5GT7E.js → chunk-MDVHI3PP.js} +6 -6
  26. package/dist/{chunk-HBTUFRGO.js → chunk-MNPD6TMW.js} +2 -2
  27. package/dist/{chunk-Q2VYGOSY.js → chunk-NF7GW4QQ.js} +2 -2
  28. package/dist/{chunk-5HGWH5WI.js → chunk-PAZLJC46.js} +2 -2
  29. package/dist/{chunk-UGIA52M7.js → chunk-PT3QWCKF.js} +3 -3
  30. package/dist/{chunk-EB3NZFSA.js → chunk-QWTDGESS.js} +2 -2
  31. package/dist/{chunk-XB4XNBNK.js → chunk-RNMJUIPI.js} +42 -36
  32. package/dist/{chunk-XB4XNBNK.js.map → chunk-RNMJUIPI.js.map} +1 -1
  33. package/dist/{chunk-2GSHMVVW.js → chunk-S3EAMH4I.js} +3 -3
  34. package/dist/{chunk-R54L73RR.js → chunk-TV3L3GME.js} +2 -2
  35. package/dist/{chunk-2D3KX7MD.js → chunk-VZHZFAYL.js} +2 -2
  36. package/dist/{chunk-BNWYB6E6.js → chunk-Z6W6G35I.js} +2 -2
  37. package/dist/{chunk-JUXLSC52.js → chunk-ZDLWHEFZ.js} +2 -2
  38. package/dist/{cli-circuit-breaker-VX7YIXHE.js → cli-circuit-breaker-NSXLDTKZ.js} +3 -3
  39. package/dist/cli.js +59 -46
  40. package/dist/cli.js.map +1 -1
  41. package/dist/{composite-router-BU4CXKV2.js → composite-router-ULSYJV7S.js} +2 -2
  42. package/dist/{consensus-vote-QLVXXHZW.js → consensus-vote-OUZGLMJ4.js} +16 -16
  43. package/dist/{context-retriever-Y7FS4RCN.js → context-retriever-QAZWTGAT.js} +8 -8
  44. package/dist/{doctor-deep-FHMLBUAO.js → doctor-deep-IWQUV5IH.js} +3 -3
  45. package/dist/{doctor-live-H2CSOEWT.js → doctor-live-MJSBAH5J.js} +9 -9
  46. package/dist/{expert-bridge-KH35UIRS.js → expert-bridge-6D43UDLS.js} +4 -4
  47. package/dist/{factory-NXF36QPJ.js → factory-2MLMLJDK.js} +9 -9
  48. package/dist/{factory-FEJB4OCS.js → factory-GUBAT3HH.js} +5 -5
  49. package/dist/{improvement-review-XPIA6KDL.js → improvement-review-W6HJIQLG.js} +5 -5
  50. package/dist/index.d.ts +11 -2
  51. package/dist/index.js +30 -30
  52. package/dist/{init-opencode-RMQHV22F.js → init-opencode-TCP3OSFK.js} +6 -6
  53. package/dist/issue-triage-CLHI2MHK.js +17 -0
  54. package/dist/{pr-reviewer-helpers-JTONAPBK.js → pr-reviewer-helpers-VKQR2T3Y.js} +4 -4
  55. package/dist/{registry-command-NFR5FYUP.js → registry-command-ALLKEWVO.js} +2 -2
  56. package/dist/{repo-security-plan-H4FLKET3.js → repo-security-plan-SJYA5PJC.js} +3 -3
  57. package/dist/{research-helpers-synthesize-VXUN6GGY.js → research-helpers-synthesize-ERZD3P4M.js} +4 -4
  58. package/dist/{routing-memory-GARJ7D7B.js → routing-memory-4WAKAU2L.js} +2 -2
  59. package/dist/{session-memory-AEOECSZP.js → session-memory-XR5FJQSM.js} +3 -3
  60. package/dist/{setup-config-N6WDWBUU.js → setup-config-26GAKOC3.js} +3 -3
  61. package/dist/{setup-custom-api-LRRWPNLL.js → setup-custom-api-TKMWDJJW.js} +4 -4
  62. package/dist/setup-data-dir-HTZZ5FII.js +28 -0
  63. package/dist/{tool-memory-QIOKTGQT.js → tool-memory-QCZKITSG.js} +5 -5
  64. package/dist/{unified-registry-5GGXSFFS.js → unified-registry-63G7RTA6.js} +10 -10
  65. package/dist/{weather-report-ZWXHO3EF.js → weather-report-JVVJXNQY.js} +2 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-EQG2GVM7.js.map +0 -1
  68. package/dist/chunk-LTS4MLEO.js.map +0 -1
  69. package/dist/chunk-XOC6DP35.js.map +0 -1
  70. package/dist/issue-triage-M2YN5FMW.js +0 -17
  71. package/dist/setup-data-dir-4IBG3QPA.js +0 -28
  72. /package/dist/{child-mcp-config-6JLJLDGR.js.map → child-mcp-config-GNF2DS7K.js.map} +0 -0
  73. /package/dist/{chunk-3WGAPD5L.js.map → chunk-26VBDXT7.js.map} +0 -0
  74. /package/dist/{chunk-JKWBSEL3.js.map → chunk-2SXZIUEA.js.map} +0 -0
  75. /package/dist/{chunk-7CGVYJQS.js.map → chunk-3AAAEN6N.js.map} +0 -0
  76. /package/dist/{chunk-RAOEVIA2.js.map → chunk-3X2ZQAJI.js.map} +0 -0
  77. /package/dist/{chunk-SHMGRIYH.js.map → chunk-6MVRXQ6V.js.map} +0 -0
  78. /package/dist/{chunk-SWCDZHUY.js.map → chunk-7B5YTCHU.js.map} +0 -0
  79. /package/dist/{chunk-AZMXXJ5X.js.map → chunk-AJM6RCCB.js.map} +0 -0
  80. /package/dist/{chunk-2AAG45CT.js.map → chunk-BDEWOJL4.js.map} +0 -0
  81. /package/dist/{chunk-MMDJ4TU6.js.map → chunk-BZTFS7FN.js.map} +0 -0
  82. /package/dist/{chunk-3WKO7D53.js.map → chunk-C67BIG35.js.map} +0 -0
  83. /package/dist/{chunk-EI3AC7X2.js.map → chunk-HVCYICUX.js.map} +0 -0
  84. /package/dist/{chunk-MY33A5CO.js.map → chunk-HWBUN7WP.js.map} +0 -0
  85. /package/dist/{chunk-TKI4VCS6.js.map → chunk-IDLQNS5U.js.map} +0 -0
  86. /package/dist/{chunk-SD42OJST.js.map → chunk-IIJSUNEK.js.map} +0 -0
  87. /package/dist/{chunk-3VJ2MSUU.js.map → chunk-KASC5XK7.js.map} +0 -0
  88. /package/dist/{chunk-3CU6PDLQ.js.map → chunk-LYI5GXON.js.map} +0 -0
  89. /package/dist/{chunk-SPU2PTV7.js.map → chunk-M4BAGHYQ.js.map} +0 -0
  90. /package/dist/{chunk-FBR5GT7E.js.map → chunk-MDVHI3PP.js.map} +0 -0
  91. /package/dist/{chunk-HBTUFRGO.js.map → chunk-MNPD6TMW.js.map} +0 -0
  92. /package/dist/{chunk-Q2VYGOSY.js.map → chunk-NF7GW4QQ.js.map} +0 -0
  93. /package/dist/{chunk-5HGWH5WI.js.map → chunk-PAZLJC46.js.map} +0 -0
  94. /package/dist/{chunk-UGIA52M7.js.map → chunk-PT3QWCKF.js.map} +0 -0
  95. /package/dist/{chunk-EB3NZFSA.js.map → chunk-QWTDGESS.js.map} +0 -0
  96. /package/dist/{chunk-2GSHMVVW.js.map → chunk-S3EAMH4I.js.map} +0 -0
  97. /package/dist/{chunk-R54L73RR.js.map → chunk-TV3L3GME.js.map} +0 -0
  98. /package/dist/{chunk-2D3KX7MD.js.map → chunk-VZHZFAYL.js.map} +0 -0
  99. /package/dist/{chunk-BNWYB6E6.js.map → chunk-Z6W6G35I.js.map} +0 -0
  100. /package/dist/{chunk-JUXLSC52.js.map → chunk-ZDLWHEFZ.js.map} +0 -0
  101. /package/dist/{cli-circuit-breaker-VX7YIXHE.js.map → cli-circuit-breaker-NSXLDTKZ.js.map} +0 -0
  102. /package/dist/{composite-router-BU4CXKV2.js.map → composite-router-ULSYJV7S.js.map} +0 -0
  103. /package/dist/{consensus-vote-QLVXXHZW.js.map → consensus-vote-OUZGLMJ4.js.map} +0 -0
  104. /package/dist/{context-retriever-Y7FS4RCN.js.map → context-retriever-QAZWTGAT.js.map} +0 -0
  105. /package/dist/{doctor-deep-FHMLBUAO.js.map → doctor-deep-IWQUV5IH.js.map} +0 -0
  106. /package/dist/{doctor-live-H2CSOEWT.js.map → doctor-live-MJSBAH5J.js.map} +0 -0
  107. /package/dist/{expert-bridge-KH35UIRS.js.map → expert-bridge-6D43UDLS.js.map} +0 -0
  108. /package/dist/{factory-FEJB4OCS.js.map → factory-2MLMLJDK.js.map} +0 -0
  109. /package/dist/{factory-NXF36QPJ.js.map → factory-GUBAT3HH.js.map} +0 -0
  110. /package/dist/{improvement-review-XPIA6KDL.js.map → improvement-review-W6HJIQLG.js.map} +0 -0
  111. /package/dist/{init-opencode-RMQHV22F.js.map → init-opencode-TCP3OSFK.js.map} +0 -0
  112. /package/dist/{issue-triage-M2YN5FMW.js.map → issue-triage-CLHI2MHK.js.map} +0 -0
  113. /package/dist/{pr-reviewer-helpers-JTONAPBK.js.map → pr-reviewer-helpers-VKQR2T3Y.js.map} +0 -0
  114. /package/dist/{registry-command-NFR5FYUP.js.map → registry-command-ALLKEWVO.js.map} +0 -0
  115. /package/dist/{repo-security-plan-H4FLKET3.js.map → repo-security-plan-SJYA5PJC.js.map} +0 -0
  116. /package/dist/{research-helpers-synthesize-VXUN6GGY.js.map → research-helpers-synthesize-ERZD3P4M.js.map} +0 -0
  117. /package/dist/{routing-memory-GARJ7D7B.js.map → routing-memory-4WAKAU2L.js.map} +0 -0
  118. /package/dist/{session-memory-AEOECSZP.js.map → session-memory-XR5FJQSM.js.map} +0 -0
  119. /package/dist/{setup-config-N6WDWBUU.js.map → setup-config-26GAKOC3.js.map} +0 -0
  120. /package/dist/{setup-custom-api-LRRWPNLL.js.map → setup-custom-api-TKMWDJJW.js.map} +0 -0
  121. /package/dist/{setup-data-dir-4IBG3QPA.js.map → setup-data-dir-HTZZ5FII.js.map} +0 -0
  122. /package/dist/{tool-memory-QIOKTGQT.js.map → tool-memory-QCZKITSG.js.map} +0 -0
  123. /package/dist/{unified-registry-5GGXSFFS.js.map → unified-registry-63G7RTA6.js.map} +0 -0
  124. /package/dist/{weather-report-ZWXHO3EF.js.map → weather-report-JVVJXNQY.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-SWCDZHUY.js";
3
+ } from "./chunk-7B5YTCHU.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-TKI4VCS6.js";
6
+ } from "./chunk-IDLQNS5U.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-2GSHMVVW.js.map
879
+ //# sourceMappingURL=chunk-S3EAMH4I.js.map
@@ -13,7 +13,7 @@ import {
13
13
  lookupInTreeCapability,
14
14
  ok,
15
15
  resolveRetryAfterMs
16
- } from "./chunk-TKI4VCS6.js";
16
+ } from "./chunk-IDLQNS5U.js";
17
17
 
18
18
  // src/config/model-parameter-support.ts
19
19
  function parseClaudeMajorMinor(bareId) {
@@ -834,4 +834,4 @@ export {
834
834
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
835
835
  collectStream
836
836
  };
837
- //# sourceMappingURL=chunk-R54L73RR.js.map
837
+ //# sourceMappingURL=chunk-TV3L3GME.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-TKI4VCS6.js";
7
+ } from "./chunk-IDLQNS5U.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -721,4 +721,4 @@ export {
721
721
  generateSecurityPlan,
722
722
  buildPlanFromAnalysis
723
723
  };
724
- //# sourceMappingURL=chunk-2D3KX7MD.js.map
724
+ //# sourceMappingURL=chunk-VZHZFAYL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-TKI4VCS6.js";
7
+ } from "./chunk-IDLQNS5U.js";
8
8
 
9
9
  // src/scm/types.ts
10
10
  var ScmError = class extends Error {
@@ -263,4 +263,4 @@ export {
263
263
  ScmError,
264
264
  GitHubProvider
265
265
  };
266
- //# sourceMappingURL=chunk-BNWYB6E6.js.map
266
+ //# sourceMappingURL=chunk-Z6W6G35I.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDefaultRegistry
3
- } from "./chunk-TKI4VCS6.js";
3
+ } from "./chunk-IDLQNS5U.js";
4
4
  import {
5
5
  getNexusDataDir
6
6
  } from "./chunk-NBMWONHE.js";
@@ -128,4 +128,4 @@ export {
128
128
  loadUsageEvents,
129
129
  rollupByModel
130
130
  };
131
- //# sourceMappingURL=chunk-JUXLSC52.js.map
131
+ //# sourceMappingURL=chunk-ZDLWHEFZ.js.map
@@ -3,8 +3,8 @@ import {
3
3
  createCliCircuitBreakerIntegration,
4
4
  getCliCircuitBreakerSnapshot,
5
5
  getDefaultCliCircuitBreakerRegistry
6
- } from "./chunk-2AAG45CT.js";
7
- import "./chunk-TKI4VCS6.js";
6
+ } from "./chunk-BDEWOJL4.js";
7
+ import "./chunk-IDLQNS5U.js";
8
8
  import "./chunk-HHLCAWAV.js";
9
9
  import "./chunk-NBMWONHE.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-VX7YIXHE.js.map
17
+ //# sourceMappingURL=cli-circuit-breaker-NSXLDTKZ.js.map
package/dist/cli.js CHANGED
@@ -18,11 +18,11 @@ import {
18
18
  generateSummary,
19
19
  parseFindings,
20
20
  sumFindings
21
- } from "./chunk-3WGAPD5L.js";
22
- import "./chunk-MMDJ4TU6.js";
21
+ } from "./chunk-26VBDXT7.js";
22
+ import "./chunk-BZTFS7FN.js";
23
23
  import {
24
24
  runConfigInitSync
25
- } from "./chunk-EB3NZFSA.js";
25
+ } from "./chunk-QWTDGESS.js";
26
26
  import {
27
27
  AuthHandler,
28
28
  CustomExpertDefinitionSchema,
@@ -153,8 +153,8 @@ import {
153
153
  validateNexusEnv,
154
154
  validateWorkflow,
155
155
  wrapInMarkdownFence
156
- } from "./chunk-XB4XNBNK.js";
157
- import "./chunk-2D3KX7MD.js";
156
+ } from "./chunk-RNMJUIPI.js";
157
+ import "./chunk-VZHZFAYL.js";
158
158
  import "./chunk-HFOQKCD2.js";
159
159
  import "./chunk-RSMG2DPB.js";
160
160
  import {
@@ -173,14 +173,14 @@ import {
173
173
  doctorCommand,
174
174
  initDataDirectories,
175
175
  runDoctor
176
- } from "./chunk-SD42OJST.js";
176
+ } from "./chunk-IIJSUNEK.js";
177
177
  import {
178
178
  buildOpenAICompatAdapters,
179
179
  readOpenAICompatEnv
180
- } from "./chunk-3CU6PDLQ.js";
180
+ } from "./chunk-LYI5GXON.js";
181
181
  import {
182
182
  shutdownExpertBridge
183
- } from "./chunk-3VJ2MSUU.js";
183
+ } from "./chunk-KASC5XK7.js";
184
184
  import {
185
185
  ConsensusVoteInputSchema,
186
186
  DEFAULT_VOTE_TIMEOUT_MS,
@@ -191,29 +191,29 @@ import {
191
191
  mapOutcomeToDecision,
192
192
  recordAuthenticVote,
193
193
  registerConsensusVoteTool
194
- } from "./chunk-LTS4MLEO.js";
194
+ } from "./chunk-G2USF7DN.js";
195
195
  import {
196
196
  loadUsageEvents,
197
197
  rollupByModel
198
- } from "./chunk-JUXLSC52.js";
198
+ } from "./chunk-ZDLWHEFZ.js";
199
199
  import {
200
200
  allOf,
201
201
  anyOf
202
202
  } from "./chunk-OQB3XC5O.js";
203
203
  import {
204
204
  synthesizeResearch
205
- } from "./chunk-2GSHMVVW.js";
205
+ } from "./chunk-S3EAMH4I.js";
206
206
  import {
207
207
  classifyTrust,
208
208
  createFullGitHubProvider,
209
209
  evaluatePolicy,
210
210
  parsePRUrl
211
- } from "./chunk-FBR5GT7E.js";
212
- import "./chunk-BNWYB6E6.js";
211
+ } from "./chunk-MDVHI3PP.js";
212
+ import "./chunk-Z6W6G35I.js";
213
213
  import {
214
214
  ReputationCache,
215
215
  sanitizeInput
216
- } from "./chunk-MY33A5CO.js";
216
+ } from "./chunk-HWBUN7WP.js";
217
217
  import {
218
218
  ImprovementReviewInputSchema,
219
219
  calculateFitnessScore,
@@ -227,15 +227,17 @@ import {
227
227
  registerImprovementReviewTool,
228
228
  runImprovementReview,
229
229
  scanForSecrets
230
- } from "./chunk-UGIA52M7.js";
230
+ } from "./chunk-PT3QWCKF.js";
231
231
  import {
232
- createDefaultPolicyFirewall
233
- } from "./chunk-EQG2GVM7.js";
234
- import "./chunk-Q2VYGOSY.js";
232
+ createDefaultPolicyFirewall,
233
+ setGlobalPolicyFirewall,
234
+ stagePolicyFirewallForRollout
235
+ } from "./chunk-JJC5YKBH.js";
236
+ import "./chunk-NF7GW4QQ.js";
235
237
  import {
236
238
  createUnifiedRegistry,
237
239
  getGlobalRegistry
238
- } from "./chunk-XOC6DP35.js";
240
+ } from "./chunk-AQV5RKO7.js";
239
241
  import {
240
242
  CodebaseIndexSchema,
241
243
  PaperStatusSchema,
@@ -261,24 +263,24 @@ import {
261
263
  loadSourcesRegistry,
262
264
  rankDiscoveredItems,
263
265
  saveSourcesRegistry
264
- } from "./chunk-7CGVYJQS.js";
266
+ } from "./chunk-3AAAEN6N.js";
265
267
  import {
266
268
  loadPapersRegistry,
267
269
  loadTechniquesRegistry,
268
270
  savePapersRegistry
269
- } from "./chunk-SWCDZHUY.js";
271
+ } from "./chunk-7B5YTCHU.js";
270
272
  import {
271
273
  resolveToken
272
- } from "./chunk-AZMXXJ5X.js";
274
+ } from "./chunk-AJM6RCCB.js";
273
275
  import {
274
276
  MemoryError,
275
277
  shutdownToolMemory
276
- } from "./chunk-EI3AC7X2.js";
278
+ } from "./chunk-HVCYICUX.js";
277
279
  import {
278
280
  capitalize,
279
281
  capitalizeKebab
280
282
  } from "./chunk-6T3EPABN.js";
281
- import "./chunk-SHMGRIYH.js";
283
+ import "./chunk-6MVRXQ6V.js";
282
284
  import {
283
285
  BUILT_IN_EXPERTS
284
286
  } from "./chunk-YPNQPT2F.js";
@@ -291,19 +293,19 @@ import {
291
293
  isRecord,
292
294
  probeAllClis,
293
295
  readSubprocessDepth
294
- } from "./chunk-3WKO7D53.js";
295
- import "./chunk-R54L73RR.js";
296
+ } from "./chunk-C67BIG35.js";
297
+ import "./chunk-TV3L3GME.js";
296
298
  import {
297
299
  DEFAULTS
298
- } from "./chunk-SPU2PTV7.js";
299
- import "./chunk-JKWBSEL3.js";
300
+ } from "./chunk-M4BAGHYQ.js";
301
+ import "./chunk-2SXZIUEA.js";
300
302
  import {
301
303
  nexusMkdtempSync
302
304
  } from "./chunk-RQV5ZUXT.js";
303
- import "./chunk-5HGWH5WI.js";
305
+ import "./chunk-PAZLJC46.js";
304
306
  import "./chunk-QZUG667L.js";
305
- import "./chunk-HBTUFRGO.js";
306
- import "./chunk-2AAG45CT.js";
307
+ import "./chunk-MNPD6TMW.js";
308
+ import "./chunk-BDEWOJL4.js";
307
309
  import {
308
310
  API_TIMEOUTS,
309
311
  AgentCapability,
@@ -380,7 +382,7 @@ import {
380
382
  validateTimeout,
381
383
  writeEmptyLine,
382
384
  writeLine
383
- } from "./chunk-TKI4VCS6.js";
385
+ } from "./chunk-IDLQNS5U.js";
384
386
  import "./chunk-HHLCAWAV.js";
385
387
  import {
386
388
  applyPortableMode,
@@ -4419,7 +4421,7 @@ ${file.patch}
4419
4421
  violations: policyResult.violations
4420
4422
  });
4421
4423
  }
4422
- const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-JTONAPBK.js");
4424
+ const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-VKQR2T3Y.js");
4423
4425
  const body = formatReviewComment2(result);
4424
4426
  const postResult = await provider.createReview(pr.prNumber, body, result.decision);
4425
4427
  if (!postResult.ok) {
@@ -19551,7 +19553,7 @@ function startImprovementReviewScheduler(options) {
19551
19553
  let running = false;
19552
19554
  const runOnce = async () => {
19553
19555
  try {
19554
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-XPIA6KDL.js");
19556
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-W6HJIQLG.js");
19555
19557
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
19556
19558
  const result = await runImprovementReview2(input, { logger: logger22 });
19557
19559
  logger22.info("Scheduled improvement_review complete", {
@@ -20045,10 +20047,13 @@ function logToolRegistration(logger22, allowlist, info) {
20045
20047
  executionMode: info.executionMode ?? "read-only"
20046
20048
  });
20047
20049
  if (info.policyFirewall !== void 0) {
20048
- logger22.warn(
20049
- "PolicyFirewall is configured but not wired to any tool \u2014 no policy middleware runs",
20050
- { configuredMode: info.policyFirewall.getMode() }
20051
- );
20050
+ const mode = info.policyFirewall.getMode();
20051
+ logger22.info("Policy firewall wired to locally registered tools", {
20052
+ policyMode: mode,
20053
+ denialsApplied: mode === "enforce",
20054
+ coveredTools: activeTools.length,
20055
+ upstreamProxiesUncovered: true
20056
+ });
20052
20057
  }
20053
20058
  }
20054
20059
  function buildStandardDeps(ctx, toolName) {
@@ -20210,6 +20215,9 @@ function registerMcpTools(options) {
20210
20215
  logger: toolInfra.logger
20211
20216
  });
20212
20217
  setGlobalToolRateLimiterFactory(rateLimiterFactory);
20218
+ if (policyFirewall !== void 0) {
20219
+ setGlobalPolicyFirewall(stagePolicyFirewallForRollout(policyFirewall, logger22));
20220
+ }
20213
20221
  initV2PipelineSubsystems(logger22, options.auditLogger);
20214
20222
  const gatewayOptions = { ...options, server: observableServer };
20215
20223
  const ctx = createToolContext(gatewayOptions, toolInfra, rateLimiterFactory);
@@ -21612,7 +21620,7 @@ function adaptConfigToLibrary(config) {
21612
21620
  }
21613
21621
  function createBeliefPromoter() {
21614
21622
  return async (event) => {
21615
- const { getToolMemory } = await import("./tool-memory-QIOKTGQT.js");
21623
+ const { getToolMemory } = await import("./tool-memory-QCZKITSG.js");
21616
21624
  const tm = getToolMemory();
21617
21625
  await tm.recordBelief(
21618
21626
  `skill:${event.name}`,
@@ -21806,7 +21814,12 @@ function logSecurityConfig(logger22, config) {
21806
21814
  const policyVals = getPolicyValues(config);
21807
21815
  const rateLimitVals = getRateLimitValues(config);
21808
21816
  logger22.info("Security configuration", {
21809
- policyMode: policyVals.mode,
21817
+ // #4888: named `configuredPolicyMode`, not `policyMode`. This runs at
21818
+ // startup, before `stagePolicyFirewallForRollout` decides the mode that
21819
+ // will actually apply — which is `warn` unless the operator opted in. A
21820
+ // field called `policyMode` reading `enforce` here would claim an
21821
+ // enforcement the staged rollout does not perform.
21822
+ configuredPolicyMode: policyVals.mode,
21810
21823
  defaultExecutionMode: policyVals.defaultExec,
21811
21824
  policyRuleCount: policyFirewall.getRules().length,
21812
21825
  authEnabled: authVals.enabled,
@@ -22815,7 +22828,7 @@ async function handleResearchCommand(args) {
22815
22828
  }
22816
22829
  }
22817
22830
  async function handleRegistryCommand(args) {
22818
- const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-NFR5FYUP.js");
22831
+ const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-ALLKEWVO.js");
22819
22832
  const subcommand = args.subcommand;
22820
22833
  if (!isValidRegistrySubcommand(subcommand)) {
22821
22834
  process.stdout.write(`${formatRegistryUsage()}
@@ -22863,12 +22876,12 @@ async function handleVerifyCommand(args) {
22863
22876
  async function handleDoctorCommand(args) {
22864
22877
  const exitCode = await doctorCommand({ fix: args.options.fix });
22865
22878
  if (args.options.deep) {
22866
- const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-FHMLBUAO.js");
22879
+ const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-IWQUV5IH.js");
22867
22880
  const diag = runDeepDiagnostics2();
22868
22881
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
22869
22882
  }
22870
22883
  if (args.options.live) {
22871
- const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-H2CSOEWT.js");
22884
+ const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-MJSBAH5J.js");
22872
22885
  const report = await runLiveReadiness();
22873
22886
  process.stdout.write(formatLiveReadiness(report) + "\n");
22874
22887
  if (report.some((r) => r.levels.serves.status === "failed")) {
@@ -22921,7 +22934,7 @@ async function runInitPortableFlow(args) {
22921
22934
  return cliExit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
22922
22935
  }
22923
22936
  async function runInitOpencodeFlow(args) {
22924
- const { runInitOpencode } = await import("./init-opencode-RMQHV22F.js");
22937
+ const { runInitOpencode } = await import("./init-opencode-TCP3OSFK.js");
22925
22938
  const opencodePath = args.options.opencode;
22926
22939
  if (opencodePath === void 0 || opencodePath === "") {
22927
22940
  process.stderr.write("Error: --opencode requires a path argument.\n");
@@ -22947,7 +22960,7 @@ async function runInitOpencodeFlow(args) {
22947
22960
  return cliExit(EXIT_CODES.SUCCESS);
22948
22961
  }
22949
22962
  async function renderOpencodeValidate(opencodePath) {
22950
- const { runOpencodeValidate } = await import("./init-opencode-RMQHV22F.js");
22963
+ const { runOpencodeValidate } = await import("./init-opencode-TCP3OSFK.js");
22951
22964
  const result = await runOpencodeValidate(opencodePath);
22952
22965
  if (!result.ok) {
22953
22966
  process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
@@ -22986,7 +22999,7 @@ async function handleSetupCommandAsync(args) {
22986
22999
  return cliExitFromStatus(exitCode);
22987
23000
  }
22988
23001
  async function runCustomApiSetup(args) {
22989
- const { configureCustomApi } = await import("./setup-custom-api-LRRWPNLL.js");
23002
+ const { configureCustomApi } = await import("./setup-custom-api-TKMWDJJW.js");
22990
23003
  const baseUrl = args.options.customApi;
22991
23004
  if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
22992
23005
  const input = {