nexus-agents 14.0.1 → 14.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/dist/{ast-rule-runner-3DNARGI6.js → ast-rule-runner-2PEUHSHO.js} +5 -5
  2. package/dist/{child-mcp-config-JDA622RX.js → child-mcp-config-AYVMLJDV.js} +4 -4
  3. package/dist/{chunk-IXL2W6E3.js → chunk-236T3AOZ.js} +4 -4
  4. package/dist/{chunk-OVVJGCB7.js → chunk-5QNWRC7B.js} +2 -2
  5. package/dist/{chunk-P4L4CEJX.js → chunk-B5RDZLU3.js} +4 -4
  6. package/dist/{chunk-IMRAE2LB.js → chunk-CZSEUZFE.js} +2 -2
  7. package/dist/{chunk-OAX3TSGU.js → chunk-DCPN7F5J.js} +2 -2
  8. package/dist/{chunk-O3D6HEXJ.js → chunk-DXDKAVWV.js} +5 -5
  9. package/dist/{chunk-O6SI3EVF.js → chunk-FEAWCZ7E.js} +2 -2
  10. package/dist/{chunk-L2JOGUR3.js → chunk-GDCIDLUF.js} +13 -12
  11. package/dist/{chunk-L2JOGUR3.js.map → chunk-GDCIDLUF.js.map} +1 -1
  12. package/dist/{chunk-RTO52ZBC.js → chunk-GPZQVYKV.js} +2 -2
  13. package/dist/{chunk-IIUEAOTT.js → chunk-GR4BMQAS.js} +9 -7
  14. package/dist/chunk-GR4BMQAS.js.map +1 -0
  15. package/dist/{chunk-NZDRN4NL.js → chunk-H6SGSQJM.js} +2 -2
  16. package/dist/{chunk-TKF3X3RI.js → chunk-HJJRUYNR.js} +7 -6
  17. package/dist/chunk-HJJRUYNR.js.map +1 -0
  18. package/dist/{chunk-2FOPXY3L.js → chunk-IZSJWIHK.js} +39 -9
  19. package/dist/chunk-IZSJWIHK.js.map +1 -0
  20. package/dist/{chunk-V3X7QGN3.js → chunk-JV3UBRRA.js} +2 -2
  21. package/dist/{chunk-2UWQ2GEG.js → chunk-KXWLZDQR.js} +5 -5
  22. package/dist/{chunk-QSABRS3I.js → chunk-LBVPKHHU.js} +3 -3
  23. package/dist/{chunk-UZ3KUNPN.js → chunk-LC34UPDQ.js} +2 -2
  24. package/dist/{chunk-UW54ACTR.js → chunk-LE6TQVXF.js} +2 -2
  25. package/dist/{chunk-SVGX2YBK.js → chunk-MFUJU7RO.js} +3 -3
  26. package/dist/{chunk-MO7WRW77.js → chunk-MQSSTTZU.js} +4 -4
  27. package/dist/{chunk-K7JTBFP3.js → chunk-OQR2C64M.js} +5 -5
  28. package/dist/{chunk-OFC642UR.js → chunk-P3CFDAW5.js} +2 -2
  29. package/dist/{chunk-TG23XP5G.js → chunk-PG6NTUTS.js} +8 -8
  30. package/dist/{chunk-MWPS5QGR.js → chunk-PQ3V2SYP.js} +2 -2
  31. package/dist/{chunk-IUQWX4N2.js → chunk-Q6R3JTXH.js} +3 -3
  32. package/dist/{chunk-2AWX7DYU.js → chunk-SNSV6GGV.js} +10 -10
  33. package/dist/{chunk-IT5TIGRD.js → chunk-SQPFJLCI.js} +3 -3
  34. package/dist/{chunk-CZVV33JI.js → chunk-TV6RX3ZL.js} +4 -4
  35. package/dist/{chunk-HFYXNFXG.js → chunk-TYIIAIXA.js} +7 -7
  36. package/dist/{chunk-VSVDAN2A.js → chunk-VH4T4O5L.js} +2 -2
  37. package/dist/{chunk-FSCDQZ2A.js → chunk-WWBYNWYB.js} +4 -4
  38. package/dist/{chunk-4IKJME6O.js → chunk-YE3T4X2U.js} +4 -4
  39. package/dist/{chunk-PEVU52PM.js → chunk-YSEMHACQ.js} +36 -36
  40. package/dist/{cli-circuit-breaker-KBPM3UE7.js → cli-circuit-breaker-HWMTEEYI.js} +5 -5
  41. package/dist/{cli-readiness-5WZ4ASF5.js → cli-readiness-6C6E2T2O.js} +9 -9
  42. package/dist/{cli-server-gateway-J6SKTZVM.js → cli-server-gateway-HHRF22EB.js} +14 -14
  43. package/dist/cli.js +505 -409
  44. package/dist/cli.js.map +1 -1
  45. package/dist/{composite-router-H75KI2RS.js → composite-router-CX2W7RVA.js} +4 -4
  46. package/dist/{consensus-vote-YO6MOHVG.js → consensus-vote-CQGIWMYY.js} +17 -17
  47. package/dist/{context-retriever-R3YJAG7F.js → context-retriever-G4LMWEN5.js} +10 -10
  48. package/dist/{doctor-deep-IGFWT3TZ.js → doctor-deep-VOX7KVGK.js} +5 -5
  49. package/dist/{doctor-gateway-report-DPTKEJA7.js → doctor-gateway-report-GMYX62JU.js} +7 -7
  50. package/dist/{doctor-live-BE6JTA3J.js → doctor-live-AES3PON5.js} +14 -14
  51. package/dist/{expert-bridge-2FHVYPMM.js → expert-bridge-WEZXYIGA.js} +6 -6
  52. package/dist/{factory-AEKU72IJ.js → factory-L2DIM3PM.js} +7 -7
  53. package/dist/{factory-FOQWD6AW.js → factory-L6CLXVPW.js} +13 -13
  54. package/dist/{gemini-adapter-MSTCCLDO.js → gemini-adapter-CL7YW7UZ.js} +8 -8
  55. package/dist/{improvement-review-3I2L2PBA.js → improvement-review-EBC3I55P.js} +6 -6
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.js +27 -27
  58. package/dist/{init-opencode-5CFNILZP.js → init-opencode-F6FV63VR.js} +6 -6
  59. package/dist/{issue-triage-ZO7YSQ5O.js → issue-triage-3EJ5DSGG.js} +7 -7
  60. package/dist/{model-config-helpers-253O7ABU.js → model-config-helpers-27GO3OEU.js} +3 -3
  61. package/dist/{openai-compat-adapter-HZGCBWE5.js → openai-compat-adapter-JJD7VWZC.js} +6 -6
  62. package/dist/{pr-reviewer-helpers-NQ3YK7PL.js → pr-reviewer-helpers-KGGKESLT.js} +5 -5
  63. package/dist/{registry-command-7U5HC6NB.js → registry-command-SQQNXDGS.js} +2 -2
  64. package/dist/{repo-security-plan-3BD76WQZ.js → repo-security-plan-CIGD7QBY.js} +4 -4
  65. package/dist/{research-helpers-synthesize-ZSCC5GNR.js → research-helpers-synthesize-HAQSK2RL.js} +6 -6
  66. package/dist/{routing-memory-BZF7JDET.js → routing-memory-AFHV5NDT.js} +4 -4
  67. package/dist/{session-memory-MF5D2MXZ.js → session-memory-RBY5SHFK.js} +5 -5
  68. package/dist/{setup-config-E3TNM4HV.js → setup-config-47NNRD4E.js} +5 -5
  69. package/dist/{setup-custom-api-6X6FUHNV.js → setup-custom-api-H74QY7EM.js} +5 -5
  70. package/dist/{tool-memory-A6XPMC7X.js → tool-memory-QESESDGS.js} +7 -7
  71. package/dist/{unified-registry-VMT3VCHF.js → unified-registry-HWZRXFQ6.js} +13 -13
  72. package/dist/{weather-report-5AUOIJSP.js → weather-report-QZLXDT5L.js} +4 -4
  73. package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  74. package/node_modules/@protobufjs/aspromise/README.md +13 -0
  75. package/node_modules/{protobufjs/src/util/aspromise.d.ts → @protobufjs/aspromise/index.d.ts} +13 -13
  76. package/node_modules/{protobufjs/src/util/aspromise.js → @protobufjs/aspromise/index.js} +52 -52
  77. package/node_modules/@protobufjs/aspromise/package.json +21 -0
  78. package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  79. package/node_modules/@protobufjs/base64/LICENSE +26 -0
  80. package/node_modules/@protobufjs/base64/README.md +19 -0
  81. package/node_modules/{protobufjs/src/util/base64.d.ts → @protobufjs/base64/index.d.ts} +32 -32
  82. package/node_modules/{protobufjs/src/util/base64.js → @protobufjs/base64/index.js} +139 -146
  83. package/node_modules/@protobufjs/base64/package.json +21 -0
  84. package/node_modules/@protobufjs/base64/tests/index.js +46 -0
  85. package/node_modules/@protobufjs/codegen/LICENSE +26 -0
  86. package/node_modules/@protobufjs/codegen/README.md +49 -0
  87. package/node_modules/{protobufjs/src/util/codegen.d.ts → @protobufjs/codegen/index.d.ts} +31 -31
  88. package/node_modules/{protobufjs/src/util/codegen.js → @protobufjs/codegen/index.js} +112 -120
  89. package/node_modules/@protobufjs/codegen/package.json +13 -0
  90. package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  91. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  92. package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  93. package/node_modules/@protobufjs/eventemitter/README.md +22 -0
  94. package/node_modules/{protobufjs/src/util/eventemitter.d.ts → @protobufjs/eventemitter/index.d.ts} +45 -45
  95. package/node_modules/{protobufjs/src/util/eventemitter.js → @protobufjs/eventemitter/index.js} +86 -86
  96. package/node_modules/@protobufjs/eventemitter/package.json +21 -0
  97. package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
  98. package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  99. package/node_modules/@protobufjs/fetch/LICENSE +26 -0
  100. package/node_modules/@protobufjs/fetch/README.md +13 -0
  101. package/node_modules/{protobufjs/src/util/fetch.d.ts → @protobufjs/fetch/index.d.ts} +56 -56
  102. package/node_modules/{protobufjs/src/util/fetch.js → @protobufjs/fetch/index.js} +112 -112
  103. package/node_modules/@protobufjs/fetch/package.json +27 -0
  104. package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  105. package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
  106. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  107. package/node_modules/@protobufjs/float/LICENSE +26 -0
  108. package/node_modules/@protobufjs/float/README.md +102 -0
  109. package/node_modules/@protobufjs/float/bench/index.js +87 -0
  110. package/node_modules/@protobufjs/float/bench/suite.js +46 -0
  111. package/node_modules/{protobufjs/src/util/float.js → @protobufjs/float/index.js} +335 -335
  112. package/node_modules/@protobufjs/float/package.json +26 -0
  113. package/node_modules/@protobufjs/float/tests/index.js +100 -0
  114. package/node_modules/@protobufjs/path/LICENSE +26 -0
  115. package/node_modules/@protobufjs/path/README.md +19 -0
  116. package/node_modules/{protobufjs/src/util/path.d.ts → @protobufjs/path/index.d.ts} +22 -22
  117. package/node_modules/{protobufjs/src/util/path.js → @protobufjs/path/index.js} +65 -100
  118. package/node_modules/@protobufjs/path/package.json +21 -0
  119. package/node_modules/@protobufjs/path/tests/index.js +60 -0
  120. package/node_modules/@protobufjs/pool/.npmignore +3 -0
  121. package/node_modules/@protobufjs/pool/LICENSE +26 -0
  122. package/node_modules/@protobufjs/pool/README.md +13 -0
  123. package/node_modules/{protobufjs/src/util/pool.d.ts → @protobufjs/pool/index.d.ts} +32 -32
  124. package/node_modules/{protobufjs/src/util/pool.js → @protobufjs/pool/index.js} +48 -48
  125. package/node_modules/@protobufjs/pool/package.json +21 -0
  126. package/node_modules/@protobufjs/pool/tests/index.js +33 -0
  127. package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
  128. package/node_modules/@protobufjs/utf8/LICENSE +26 -0
  129. package/node_modules/@protobufjs/utf8/README.md +20 -0
  130. package/node_modules/{protobufjs/src/util/utf8.d.ts → @protobufjs/utf8/index.d.ts} +24 -24
  131. package/node_modules/@protobufjs/utf8/index.js +115 -0
  132. package/node_modules/@protobufjs/utf8/package.json +21 -0
  133. package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
  134. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  135. package/node_modules/@protobufjs/utf8/tests/index.js +79 -0
  136. package/node_modules/@types/node/LICENSE +21 -0
  137. package/node_modules/@types/node/README.md +15 -0
  138. package/node_modules/@types/node/assert/strict.d.ts +68 -0
  139. package/node_modules/@types/node/assert.d.ts +1077 -0
  140. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  141. package/node_modules/@types/node/buffer.buffer.d.ts +471 -0
  142. package/node_modules/@types/node/buffer.d.ts +1800 -0
  143. package/node_modules/@types/node/child_process.d.ts +1361 -0
  144. package/node_modules/@types/node/cluster.d.ts +432 -0
  145. package/node_modules/@types/node/console.d.ts +93 -0
  146. package/node_modules/@types/node/constants.d.ts +14 -0
  147. package/node_modules/@types/node/crypto.d.ts +3964 -0
  148. package/node_modules/@types/node/dgram.d.ts +652 -0
  149. package/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
  150. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  151. package/node_modules/@types/node/dns.d.ts +876 -0
  152. package/node_modules/@types/node/domain.d.ts +150 -0
  153. package/node_modules/@types/node/events.d.ts +1008 -0
  154. package/node_modules/@types/node/ffi.d.ts +500 -0
  155. package/node_modules/@types/node/fs/promises.d.ts +1477 -0
  156. package/node_modules/@types/node/fs.d.ts +4803 -0
  157. package/node_modules/@types/node/globals.d.ts +150 -0
  158. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  159. package/node_modules/@types/node/http.d.ts +2218 -0
  160. package/node_modules/@types/node/http2.d.ts +2498 -0
  161. package/node_modules/@types/node/https.d.ts +400 -0
  162. package/node_modules/@types/node/index.d.ts +116 -0
  163. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  164. package/node_modules/@types/node/inspector.d.ts +265 -0
  165. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  166. package/node_modules/@types/node/module.d.ts +726 -0
  167. package/node_modules/@types/node/net.d.ts +1074 -0
  168. package/node_modules/@types/node/os.d.ts +498 -0
  169. package/node_modules/@types/node/package.json +140 -0
  170. package/node_modules/@types/node/path/posix.d.ts +8 -0
  171. package/node_modules/@types/node/path/win32.d.ts +8 -0
  172. package/node_modules/@types/node/path.d.ts +178 -0
  173. package/node_modules/@types/node/perf_hooks.d.ts +617 -0
  174. package/node_modules/@types/node/process.d.ts +2269 -0
  175. package/node_modules/@types/node/punycode.d.ts +89 -0
  176. package/node_modules/@types/node/querystring.d.ts +139 -0
  177. package/node_modules/@types/node/quic.d.ts +2191 -0
  178. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  179. package/node_modules/@types/node/readline.d.ts +508 -0
  180. package/node_modules/@types/node/repl.d.ts +420 -0
  181. package/node_modules/@types/node/sea.d.ts +47 -0
  182. package/node_modules/@types/node/sqlite.d.ts +1140 -0
  183. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  184. package/node_modules/@types/node/stream/iter.d.ts +449 -0
  185. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  186. package/node_modules/@types/node/stream/web.d.ts +320 -0
  187. package/node_modules/@types/node/stream.d.ts +1806 -0
  188. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  189. package/node_modules/@types/node/test/reporters.d.ts +60 -0
  190. package/node_modules/@types/node/test.d.ts +2558 -0
  191. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  192. package/node_modules/@types/node/timers.d.ts +149 -0
  193. package/node_modules/@types/node/tls.d.ts +1232 -0
  194. package/node_modules/@types/node/trace_events.d.ts +103 -0
  195. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +467 -0
  196. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  197. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  198. package/node_modules/@types/node/ts5.6/index.d.ts +118 -0
  199. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  200. package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
  201. package/node_modules/@types/node/tty.d.ts +226 -0
  202. package/node_modules/@types/node/url.d.ts +556 -0
  203. package/node_modules/@types/node/util/types.d.ts +558 -0
  204. package/node_modules/@types/node/util.d.ts +1680 -0
  205. package/node_modules/@types/node/v8.d.ts +1059 -0
  206. package/node_modules/@types/node/vfs.d.ts +211 -0
  207. package/node_modules/@types/node/vm.d.ts +1137 -0
  208. package/node_modules/@types/node/wasi.d.ts +131 -0
  209. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  210. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  211. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  212. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  213. package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
  214. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  215. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  216. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  217. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  218. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  219. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  220. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  221. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  222. package/node_modules/@types/node/web-globals/streams.d.ts +119 -0
  223. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  224. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  225. package/node_modules/@types/node/worker_threads.d.ts +672 -0
  226. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  227. package/node_modules/@types/node/zlib.d.ts +612 -0
  228. package/node_modules/fast-uri/.github/dependabot.yml +2 -42
  229. package/node_modules/fast-uri/.github/workflows/ci.yml +6 -54
  230. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +1 -1
  231. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  232. package/node_modules/fast-uri/.github/workflows/release.yml +2 -1
  233. package/node_modules/fast-uri/README.md +10 -12
  234. package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -71
  235. package/node_modules/fast-uri/index.js +20 -94
  236. package/node_modules/fast-uri/lib/schemes.js +4 -439
  237. package/node_modules/fast-uri/lib/utils.js +113 -230
  238. package/node_modules/fast-uri/package.json +5 -5
  239. package/node_modules/fast-uri/test/equal.test.js +0 -63
  240. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +1 -23
  241. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +1 -23
  242. package/node_modules/fast-uri/test/ipv6-validation.test.js +0 -160
  243. package/node_modules/fast-uri/test/parse.test.js +5 -150
  244. package/node_modules/fast-uri/test/relative-normalization-security.test.js +4 -0
  245. package/node_modules/fast-uri/test/scheme-validation.test.js +5 -3
  246. package/node_modules/fast-uri/test/security.test.js +2 -2
  247. package/node_modules/fast-uri/test/serialize.test.js +0 -144
  248. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +3 -0
  249. package/node_modules/fast-uri/test/uri-js.test.js +9 -11
  250. package/node_modules/fast-uri/test/urn-full-input.test.js +0 -18
  251. package/node_modules/fast-uri/test/util.test.js +0 -9
  252. package/node_modules/fast-uri/tsconfig.json +7 -8
  253. package/node_modules/fast-uri/types/index.d.ts +9 -20
  254. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  255. package/node_modules/hono/README.md +2 -3
  256. package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
  257. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  258. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  259. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  260. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
  261. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  262. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  263. package/node_modules/hono/dist/cjs/utils/url.js +11 -6
  264. package/node_modules/hono/dist/helper/css/common.js +8 -3
  265. package/node_modules/hono/dist/helper/css/index.js +1 -1
  266. package/node_modules/hono/dist/helper/route/index.js +3 -1
  267. package/node_modules/hono/dist/jsx/base.js +1 -1
  268. package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
  269. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  270. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  271. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  272. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  273. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  274. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  275. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  276. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  277. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  278. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  279. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  280. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  281. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  282. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  283. package/node_modules/hono/dist/types/index.d.ts +1 -1
  284. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  285. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  286. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  287. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  288. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  289. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  290. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  291. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  292. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  293. package/node_modules/hono/dist/utils/url.js +11 -6
  294. package/node_modules/hono/package.json +1 -1
  295. package/node_modules/path-to-regexp/Readme.md +7 -1
  296. package/node_modules/path-to-regexp/dist/index.d.ts +12 -7
  297. package/node_modules/path-to-regexp/dist/index.js +99 -99
  298. package/node_modules/path-to-regexp/dist/index.js.map +1 -1
  299. package/node_modules/path-to-regexp/package.json +8 -9
  300. package/node_modules/protobufjs/README.md +562 -259
  301. package/node_modules/protobufjs/dist/light/protobuf.js +1915 -3267
  302. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  303. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  304. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  305. package/node_modules/protobufjs/dist/minimal/protobuf.js +1173 -2018
  306. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  307. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  308. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  309. package/node_modules/protobufjs/dist/protobuf.js +1982 -3483
  310. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  311. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  312. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  313. package/node_modules/protobufjs/ext/descriptor/README.md +70 -3
  314. package/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
  315. package/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
  316. package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  317. package/node_modules/protobufjs/google/api/annotations.json +1 -3
  318. package/node_modules/protobufjs/google/api/http.json +1 -2
  319. package/node_modules/protobufjs/google/protobuf/api.json +6 -12
  320. package/node_modules/protobufjs/google/protobuf/descriptor.json +88 -194
  321. package/node_modules/protobufjs/google/protobuf/descriptor.proto +9 -15
  322. package/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
  323. package/node_modules/protobufjs/google/protobuf/type.json +7 -14
  324. package/node_modules/protobufjs/index.d.ts +685 -1077
  325. package/node_modules/protobufjs/package.json +51 -25
  326. package/node_modules/protobufjs/scripts/postinstall.js +32 -0
  327. package/node_modules/protobufjs/src/common.js +8 -14
  328. package/node_modules/protobufjs/src/converter.js +52 -90
  329. package/node_modules/protobufjs/src/decoder.js +67 -211
  330. package/node_modules/protobufjs/src/encoder.js +7 -27
  331. package/node_modules/protobufjs/src/enum.js +7 -33
  332. package/node_modules/protobufjs/src/field.js +20 -77
  333. package/node_modules/protobufjs/src/index-light.js +29 -29
  334. package/node_modules/protobufjs/src/index-minimal.js +13 -12
  335. package/node_modules/protobufjs/src/index.js +6 -6
  336. package/node_modules/protobufjs/src/mapfield.js +8 -26
  337. package/node_modules/protobufjs/src/message.js +11 -5
  338. package/node_modules/protobufjs/src/method.js +7 -30
  339. package/node_modules/protobufjs/src/namespace.js +10 -26
  340. package/node_modules/protobufjs/src/object.js +31 -44
  341. package/node_modules/protobufjs/src/oneof.js +1 -12
  342. package/node_modules/protobufjs/src/parse.js +67 -194
  343. package/node_modules/protobufjs/src/reader.js +58 -520
  344. package/node_modules/protobufjs/src/reader_buffer.js +5 -31
  345. package/node_modules/protobufjs/src/root.js +4 -16
  346. package/node_modules/protobufjs/src/rpc/service.js +5 -18
  347. package/node_modules/protobufjs/src/service.js +2 -15
  348. package/node_modules/protobufjs/src/tokenize.js +4 -20
  349. package/node_modules/protobufjs/src/type.js +37 -91
  350. package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  351. package/node_modules/protobufjs/src/util/longbits.js +6 -10
  352. package/node_modules/protobufjs/src/util/minimal.js +51 -71
  353. package/node_modules/protobufjs/src/util.js +17 -51
  354. package/node_modules/protobufjs/src/verifier.js +14 -19
  355. package/node_modules/protobufjs/src/wrappers.js +3 -2
  356. package/node_modules/protobufjs/src/writer.js +189 -428
  357. package/node_modules/protobufjs/src/writer_buffer.js +26 -41
  358. package/node_modules/protobufjs/tsconfig.json +5 -3
  359. package/node_modules/undici-types/LICENSE +21 -0
  360. package/node_modules/undici-types/README.md +6 -0
  361. package/node_modules/undici-types/agent.d.ts +30 -0
  362. package/node_modules/undici-types/api.d.ts +43 -0
  363. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  364. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  365. package/node_modules/undici-types/cache.d.ts +36 -0
  366. package/node_modules/undici-types/client-stats.d.ts +15 -0
  367. package/node_modules/undici-types/client.d.ts +134 -0
  368. package/node_modules/undici-types/connector.d.ts +37 -0
  369. package/node_modules/undici-types/content-type.d.ts +21 -0
  370. package/node_modules/undici-types/cookies.d.ts +30 -0
  371. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  372. package/node_modules/undici-types/dispatcher.d.ts +253 -0
  373. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  374. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  375. package/node_modules/undici-types/errors.d.ts +187 -0
  376. package/node_modules/undici-types/eventsource.d.ts +66 -0
  377. package/node_modules/undici-types/fetch.d.ts +235 -0
  378. package/node_modules/undici-types/formdata.d.ts +108 -0
  379. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  380. package/node_modules/undici-types/global-origin.d.ts +7 -0
  381. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  382. package/node_modules/undici-types/handlers.d.ts +16 -0
  383. package/node_modules/undici-types/header.d.ts +165 -0
  384. package/node_modules/undici-types/index.d.ts +93 -0
  385. package/node_modules/undici-types/interceptors.d.ts +80 -0
  386. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  387. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  388. package/node_modules/undici-types/mock-client.d.ts +27 -0
  389. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  390. package/node_modules/undici-types/mock-interceptor.d.ts +98 -0
  391. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  392. package/node_modules/undici-types/package.json +55 -0
  393. package/node_modules/undici-types/patch.d.ts +29 -0
  394. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  395. package/node_modules/undici-types/pool.d.ts +39 -0
  396. package/node_modules/undici-types/proxy-agent.d.ts +36 -0
  397. package/node_modules/undici-types/readable.d.ts +68 -0
  398. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  399. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  400. package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
  401. package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
  402. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  403. package/node_modules/undici-types/util.d.ts +18 -0
  404. package/node_modules/undici-types/utility.d.ts +7 -0
  405. package/node_modules/undici-types/webidl.d.ts +346 -0
  406. package/node_modules/undici-types/websocket.d.ts +188 -0
  407. package/package.json +16 -4
  408. package/dist/chunk-2FOPXY3L.js.map +0 -1
  409. package/dist/chunk-IIUEAOTT.js.map +0 -1
  410. package/dist/chunk-TKF3X3RI.js.map +0 -1
  411. package/node_modules/fast-uri/.github/workflows/ossf-scorecard.yml +0 -45
  412. package/node_modules/fast-uri/SECURITY.md +0 -222
  413. package/node_modules/fast-uri/benchmark/encoder.mjs +0 -54
  414. package/node_modules/fast-uri/test/c0-reference-security.test.js +0 -137
  415. package/node_modules/fast-uri/test/host-encoding.test.js +0 -60
  416. package/node_modules/fast-uri/test/mailto-authority-security.test.js +0 -125
  417. package/node_modules/fast-uri/test/mailto-field-name-security.test.js +0 -151
  418. package/node_modules/fast-uri/test/scheme-normalization.test.js +0 -16
  419. package/node_modules/fast-uri/test/security-utf8-encoding.test.js +0 -0
  420. package/node_modules/fast-uri/types/index.tst.ts +0 -31
  421. package/node_modules/protobufjs/ext/README.md +0 -70
  422. package/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
  423. package/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -424
  424. package/node_modules/protobufjs/ext/descriptor.js +0 -1405
  425. package/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
  426. package/node_modules/protobufjs/ext/protojson.d.ts +0 -20
  427. package/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
  428. package/node_modules/protobufjs/ext/protojson.js +0 -972
  429. package/node_modules/protobufjs/ext/textformat.d.ts +0 -19
  430. package/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
  431. package/node_modules/protobufjs/ext/textformat.js +0 -1280
  432. package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
  433. package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
  434. package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.json +0 -56
  435. package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.proto +0 -31
  436. package/node_modules/protobufjs/src/typescript.js +0 -25
  437. package/node_modules/protobufjs/src/util/utf8.js +0 -164
  438. /package/dist/{ast-rule-runner-3DNARGI6.js.map → ast-rule-runner-2PEUHSHO.js.map} +0 -0
  439. /package/dist/{child-mcp-config-JDA622RX.js.map → child-mcp-config-AYVMLJDV.js.map} +0 -0
  440. /package/dist/{chunk-IXL2W6E3.js.map → chunk-236T3AOZ.js.map} +0 -0
  441. /package/dist/{chunk-OVVJGCB7.js.map → chunk-5QNWRC7B.js.map} +0 -0
  442. /package/dist/{chunk-P4L4CEJX.js.map → chunk-B5RDZLU3.js.map} +0 -0
  443. /package/dist/{chunk-IMRAE2LB.js.map → chunk-CZSEUZFE.js.map} +0 -0
  444. /package/dist/{chunk-OAX3TSGU.js.map → chunk-DCPN7F5J.js.map} +0 -0
  445. /package/dist/{chunk-O3D6HEXJ.js.map → chunk-DXDKAVWV.js.map} +0 -0
  446. /package/dist/{chunk-O6SI3EVF.js.map → chunk-FEAWCZ7E.js.map} +0 -0
  447. /package/dist/{chunk-RTO52ZBC.js.map → chunk-GPZQVYKV.js.map} +0 -0
  448. /package/dist/{chunk-NZDRN4NL.js.map → chunk-H6SGSQJM.js.map} +0 -0
  449. /package/dist/{chunk-V3X7QGN3.js.map → chunk-JV3UBRRA.js.map} +0 -0
  450. /package/dist/{chunk-2UWQ2GEG.js.map → chunk-KXWLZDQR.js.map} +0 -0
  451. /package/dist/{chunk-QSABRS3I.js.map → chunk-LBVPKHHU.js.map} +0 -0
  452. /package/dist/{chunk-UZ3KUNPN.js.map → chunk-LC34UPDQ.js.map} +0 -0
  453. /package/dist/{chunk-UW54ACTR.js.map → chunk-LE6TQVXF.js.map} +0 -0
  454. /package/dist/{chunk-SVGX2YBK.js.map → chunk-MFUJU7RO.js.map} +0 -0
  455. /package/dist/{chunk-MO7WRW77.js.map → chunk-MQSSTTZU.js.map} +0 -0
  456. /package/dist/{chunk-K7JTBFP3.js.map → chunk-OQR2C64M.js.map} +0 -0
  457. /package/dist/{chunk-OFC642UR.js.map → chunk-P3CFDAW5.js.map} +0 -0
  458. /package/dist/{chunk-TG23XP5G.js.map → chunk-PG6NTUTS.js.map} +0 -0
  459. /package/dist/{chunk-MWPS5QGR.js.map → chunk-PQ3V2SYP.js.map} +0 -0
  460. /package/dist/{chunk-IUQWX4N2.js.map → chunk-Q6R3JTXH.js.map} +0 -0
  461. /package/dist/{chunk-2AWX7DYU.js.map → chunk-SNSV6GGV.js.map} +0 -0
  462. /package/dist/{chunk-IT5TIGRD.js.map → chunk-SQPFJLCI.js.map} +0 -0
  463. /package/dist/{chunk-CZVV33JI.js.map → chunk-TV6RX3ZL.js.map} +0 -0
  464. /package/dist/{chunk-HFYXNFXG.js.map → chunk-TYIIAIXA.js.map} +0 -0
  465. /package/dist/{chunk-VSVDAN2A.js.map → chunk-VH4T4O5L.js.map} +0 -0
  466. /package/dist/{chunk-FSCDQZ2A.js.map → chunk-WWBYNWYB.js.map} +0 -0
  467. /package/dist/{chunk-4IKJME6O.js.map → chunk-YE3T4X2U.js.map} +0 -0
  468. /package/dist/{chunk-PEVU52PM.js.map → chunk-YSEMHACQ.js.map} +0 -0
  469. /package/dist/{cli-circuit-breaker-KBPM3UE7.js.map → cli-circuit-breaker-HWMTEEYI.js.map} +0 -0
  470. /package/dist/{cli-readiness-5WZ4ASF5.js.map → cli-readiness-6C6E2T2O.js.map} +0 -0
  471. /package/dist/{cli-server-gateway-J6SKTZVM.js.map → cli-server-gateway-HHRF22EB.js.map} +0 -0
  472. /package/dist/{composite-router-H75KI2RS.js.map → composite-router-CX2W7RVA.js.map} +0 -0
  473. /package/dist/{consensus-vote-YO6MOHVG.js.map → consensus-vote-CQGIWMYY.js.map} +0 -0
  474. /package/dist/{context-retriever-R3YJAG7F.js.map → context-retriever-G4LMWEN5.js.map} +0 -0
  475. /package/dist/{doctor-deep-IGFWT3TZ.js.map → doctor-deep-VOX7KVGK.js.map} +0 -0
  476. /package/dist/{doctor-gateway-report-DPTKEJA7.js.map → doctor-gateway-report-GMYX62JU.js.map} +0 -0
  477. /package/dist/{doctor-live-BE6JTA3J.js.map → doctor-live-AES3PON5.js.map} +0 -0
  478. /package/dist/{expert-bridge-2FHVYPMM.js.map → expert-bridge-WEZXYIGA.js.map} +0 -0
  479. /package/dist/{factory-AEKU72IJ.js.map → factory-L2DIM3PM.js.map} +0 -0
  480. /package/dist/{factory-FOQWD6AW.js.map → factory-L6CLXVPW.js.map} +0 -0
  481. /package/dist/{gemini-adapter-MSTCCLDO.js.map → gemini-adapter-CL7YW7UZ.js.map} +0 -0
  482. /package/dist/{improvement-review-3I2L2PBA.js.map → improvement-review-EBC3I55P.js.map} +0 -0
  483. /package/dist/{init-opencode-5CFNILZP.js.map → init-opencode-F6FV63VR.js.map} +0 -0
  484. /package/dist/{issue-triage-ZO7YSQ5O.js.map → issue-triage-3EJ5DSGG.js.map} +0 -0
  485. /package/dist/{model-config-helpers-253O7ABU.js.map → model-config-helpers-27GO3OEU.js.map} +0 -0
  486. /package/dist/{openai-compat-adapter-HZGCBWE5.js.map → openai-compat-adapter-JJD7VWZC.js.map} +0 -0
  487. /package/dist/{pr-reviewer-helpers-NQ3YK7PL.js.map → pr-reviewer-helpers-KGGKESLT.js.map} +0 -0
  488. /package/dist/{registry-command-7U5HC6NB.js.map → registry-command-SQQNXDGS.js.map} +0 -0
  489. /package/dist/{repo-security-plan-3BD76WQZ.js.map → repo-security-plan-CIGD7QBY.js.map} +0 -0
  490. /package/dist/{research-helpers-synthesize-ZSCC5GNR.js.map → research-helpers-synthesize-HAQSK2RL.js.map} +0 -0
  491. /package/dist/{routing-memory-BZF7JDET.js.map → routing-memory-AFHV5NDT.js.map} +0 -0
  492. /package/dist/{session-memory-MF5D2MXZ.js.map → session-memory-RBY5SHFK.js.map} +0 -0
  493. /package/dist/{setup-config-E3TNM4HV.js.map → setup-config-47NNRD4E.js.map} +0 -0
  494. /package/dist/{setup-custom-api-6X6FUHNV.js.map → setup-custom-api-H74QY7EM.js.map} +0 -0
  495. /package/dist/{tool-memory-A6XPMC7X.js.map → tool-memory-QESESDGS.js.map} +0 -0
  496. /package/dist/{unified-registry-VMT3VCHF.js.map → unified-registry-HWZRXFQ6.js.map} +0 -0
  497. /package/dist/{weather-report-5AUOIJSP.js.map → weather-report-QZLXDT5L.js.map} +0 -0
  498. /package/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
package/dist/cli.js CHANGED
@@ -16,10 +16,10 @@ import {
16
16
  symbols,
17
17
  writeEmptyLine,
18
18
  writeLine
19
- } from "./chunk-MO7WRW77.js";
19
+ } from "./chunk-MQSSTTZU.js";
20
20
  import {
21
21
  runConfigInitSync
22
- } from "./chunk-RTO52ZBC.js";
22
+ } from "./chunk-GPZQVYKV.js";
23
23
  import {
24
24
  CATEGORY_DISPLAY_NAMES,
25
25
  DEFAULT_PR_REVIEW_CONFIG,
@@ -40,8 +40,8 @@ import {
40
40
  parseExpertReview,
41
41
  reviewPostingBlock,
42
42
  sumFindings
43
- } from "./chunk-UW54ACTR.js";
44
- import "./chunk-UZ3KUNPN.js";
43
+ } from "./chunk-LE6TQVXF.js";
44
+ import "./chunk-LC34UPDQ.js";
45
45
  import {
46
46
  COMMAND_CATALOG,
47
47
  EXIT_CODES,
@@ -56,7 +56,7 @@ import {
56
56
  renderHelp,
57
57
  resolveDefaultModelAdapter,
58
58
  wireGateway
59
- } from "./chunk-HFYXNFXG.js";
59
+ } from "./chunk-TYIIAIXA.js";
60
60
  import {
61
61
  detectCliBinary,
62
62
  detectionRecoveryHint,
@@ -203,8 +203,8 @@ import {
203
203
  validateWorkflow,
204
204
  withPanelWorkspace,
205
205
  wrapInMarkdownFence
206
- } from "./chunk-PEVU52PM.js";
207
- import "./chunk-NZDRN4NL.js";
206
+ } from "./chunk-YSEMHACQ.js";
207
+ import "./chunk-H6SGSQJM.js";
208
208
  import {
209
209
  fenceExternalContent,
210
210
  formatDiffs
@@ -225,14 +225,14 @@ import {
225
225
  recordVoteDecisionCost,
226
226
  registerConsensusVoteTool,
227
227
  toRecordDecision
228
- } from "./chunk-2AWX7DYU.js";
228
+ } from "./chunk-SNSV6GGV.js";
229
229
  import {
230
230
  allOf,
231
231
  anyOf
232
232
  } from "./chunk-EZNIYU5T.js";
233
233
  import {
234
234
  synthesizeResearch
235
- } from "./chunk-IT5TIGRD.js";
235
+ } from "./chunk-SQPFJLCI.js";
236
236
  import {
237
237
  DRAFT_REPLY_BODY_MAX_LENGTH,
238
238
  configureUntrustedInputFirewall,
@@ -243,7 +243,7 @@ import {
243
243
  runUntrustedInputFirewall,
244
244
  validateActionCorroboration,
245
245
  validateAgentAction
246
- } from "./chunk-4IKJME6O.js";
246
+ } from "./chunk-YE3T4X2U.js";
247
247
  import {
248
248
  ReputationCache,
249
249
  sanitizeInput
@@ -267,7 +267,7 @@ import {
267
267
  renderPlanAsResearch,
268
268
  runImprovementReview,
269
269
  scanForSecrets
270
- } from "./chunk-IUQWX4N2.js";
270
+ } from "./chunk-Q6R3JTXH.js";
271
271
  import {
272
272
  NODE_ENGINE_RANGE,
273
273
  VERSION,
@@ -281,11 +281,11 @@ import {
281
281
  stagePolicyFirewallForRollout,
282
282
  toSdkCallback,
283
283
  wrapToolWithTimeout
284
- } from "./chunk-SVGX2YBK.js";
284
+ } from "./chunk-MFUJU7RO.js";
285
285
  import "./chunk-KMGKOF5P.js";
286
286
  import "./chunk-4GDMHCKX.js";
287
287
  import "./chunk-I2THTVA4.js";
288
- import "./chunk-VSVDAN2A.js";
288
+ import "./chunk-VH4T4O5L.js";
289
289
  import {
290
290
  CodebaseIndexSchema,
291
291
  PaperStatusSchema,
@@ -312,25 +312,25 @@ import {
312
312
  loadSourcesRegistry,
313
313
  rankDiscoveredItems,
314
314
  saveSourcesRegistry
315
- } from "./chunk-O3D6HEXJ.js";
315
+ } from "./chunk-DXDKAVWV.js";
316
316
  import {
317
317
  loadPapersRegistry,
318
318
  loadTechniquesRegistry,
319
319
  savePapersRegistry
320
- } from "./chunk-MWPS5QGR.js";
320
+ } from "./chunk-PQ3V2SYP.js";
321
321
  import {
322
322
  getTsMorph
323
323
  } from "./chunk-W654ME6B.js";
324
324
  import {
325
325
  resolveToken
326
- } from "./chunk-IMRAE2LB.js";
326
+ } from "./chunk-CZSEUZFE.js";
327
327
  import {
328
328
  MemoryError,
329
329
  configureToolMemory,
330
330
  shutdownToolMemory
331
- } from "./chunk-IXL2W6E3.js";
331
+ } from "./chunk-236T3AOZ.js";
332
332
  import "./chunk-RGB5OTRZ.js";
333
- import "./chunk-O6SI3EVF.js";
333
+ import "./chunk-FEAWCZ7E.js";
334
334
  import "./chunk-BFO2NZPO.js";
335
335
  import {
336
336
  BUILT_IN_EXPERTS
@@ -340,7 +340,7 @@ import {
340
340
  } from "./chunk-MZWHXERV.js";
341
341
  import {
342
342
  shutdownExpertBridge
343
- } from "./chunk-TG23XP5G.js";
343
+ } from "./chunk-PG6NTUTS.js";
344
344
  import {
345
345
  CODEX_MCP_SERVER_UNAVAILABLE_REASON,
346
346
  Client,
@@ -354,7 +354,7 @@ import {
354
354
  createUnifiedRegistry,
355
355
  getAvailableClis,
356
356
  getGlobalRegistry
357
- } from "./chunk-L2JOGUR3.js";
357
+ } from "./chunk-GDCIDLUF.js";
358
358
  import {
359
359
  CUSTOM_API_DEFAULT_MODEL,
360
360
  DEFAULTS
@@ -367,20 +367,20 @@ import {
367
367
  } from "./chunk-EBKVMMWA.js";
368
368
  import {
369
369
  ensureGatewayDiscovered
370
- } from "./chunk-P4L4CEJX.js";
370
+ } from "./chunk-B5RDZLU3.js";
371
371
  import {
372
372
  createOpenAIAdapter,
373
373
  discoverModels,
374
374
  readOpenAICompatEndpoint,
375
375
  readOpenAICompatEnv
376
- } from "./chunk-K7JTBFP3.js";
376
+ } from "./chunk-OQR2C64M.js";
377
377
  import {
378
378
  hostnameOf
379
- } from "./chunk-OFC642UR.js";
379
+ } from "./chunk-P3CFDAW5.js";
380
380
  import {
381
381
  CODEX_LEGACY_LANDLOCK_CONFIG,
382
382
  codexSandboxPreflight
383
- } from "./chunk-CZVV33JI.js";
383
+ } from "./chunk-TV6RX3ZL.js";
384
384
  import "./chunk-ZI6OOIEI.js";
385
385
  import "./chunk-RARMDUSM.js";
386
386
  import "./chunk-ROYGBFVE.js";
@@ -390,18 +390,18 @@ import {
390
390
  } from "./chunk-JZYTBKAP.js";
391
391
  import {
392
392
  SERVES_PROBE_PROMPT
393
- } from "./chunk-QSABRS3I.js";
393
+ } from "./chunk-LBVPKHHU.js";
394
394
  import {
395
395
  ClaudeCliAdapter,
396
396
  IN_FAMILY_FALLBACK_OPTION
397
- } from "./chunk-2UWQ2GEG.js";
397
+ } from "./chunk-KXWLZDQR.js";
398
398
  import {
399
399
  NEXUS_SUBPROCESS_DEPTH_ENV,
400
400
  readSubprocessDepth,
401
401
  signalTrackedProcessTreesAsync
402
- } from "./chunk-IIUEAOTT.js";
403
- import "./chunk-OAX3TSGU.js";
404
- import "./chunk-TKF3X3RI.js";
402
+ } from "./chunk-GR4BMQAS.js";
403
+ import "./chunk-DCPN7F5J.js";
404
+ import "./chunk-HJJRUYNR.js";
405
405
  import "./chunk-JHTL4P4L.js";
406
406
  import {
407
407
  AgentCapability,
@@ -486,7 +486,7 @@ import {
486
486
  toError,
487
487
  truncateText,
488
488
  warmStartBandit
489
- } from "./chunk-2FOPXY3L.js";
489
+ } from "./chunk-IZSJWIHK.js";
490
490
  import "./chunk-XBEKMUTO.js";
491
491
  import {
492
492
  findInTreeByCli,
@@ -498,13 +498,13 @@ import {
498
498
  getDefaultModelForCli,
499
499
  getInTreeCapabilitiesMatrix,
500
500
  lookupInTreeCapability
501
- } from "./chunk-OVVJGCB7.js";
501
+ } from "./chunk-5QNWRC7B.js";
502
502
  import {
503
503
  DEFAULT_MODEL_PER_CLI,
504
504
  getDefaultRegistry,
505
505
  normaliseModelId,
506
506
  resolveModelIdentitySync
507
- } from "./chunk-V3X7QGN3.js";
507
+ } from "./chunk-JV3UBRRA.js";
508
508
  import {
509
509
  getLearningDir,
510
510
  getOutcomesFile,
@@ -1922,7 +1922,7 @@ async function doctorCommand(options = {}) {
1922
1922
  options.onResult?.(result);
1923
1923
  printDoctorResults(result, void 0, options.deferSummary === true);
1924
1924
  if (options.gateway === true || options.probe === true) {
1925
- const { formatGatewayReport } = await import("./doctor-gateway-report-DPTKEJA7.js");
1925
+ const { formatGatewayReport } = await import("./doctor-gateway-report-GMYX62JU.js");
1926
1926
  for (const line of formatGatewayReport(result.gateway, result.clis)) {
1927
1927
  process.stdout.write(line + "\n");
1928
1928
  }
@@ -1947,7 +1947,7 @@ async function runDoctorFix(result) {
1947
1947
  if (outcome.counted) fixCount++;
1948
1948
  }
1949
1949
  if (!result.configFile.found) {
1950
- const { runConfigInitSync: runConfigInitSync2 } = await import("./setup-config-E3TNM4HV.js");
1950
+ const { runConfigInitSync: runConfigInitSync2 } = await import("./setup-config-47NNRD4E.js");
1951
1951
  const configResult = runConfigInitSync2(process.cwd(), false, false);
1952
1952
  if (configResult.success && configResult.created) {
1953
1953
  writeLine6(`\u2713 Generated config: ${configResult.path}`);
@@ -4592,11 +4592,11 @@ function calculateSummary(results) {
4592
4592
  totalConfidence += result.confidence;
4593
4593
  totalEvidence += result.evidenceQuality;
4594
4594
  }
4595
- const count = results.length || 1;
4595
+ const count2 = results.length || 1;
4596
4596
  return {
4597
4597
  ...counts,
4598
- averageConfidence: totalConfidence / count,
4599
- averageEvidenceQuality: totalEvidence / count
4598
+ averageConfidence: totalConfidence / count2,
4599
+ averageEvidenceQuality: totalEvidence / count2
4600
4600
  };
4601
4601
  }
4602
4602
  function parseOptions(args) {
@@ -5173,7 +5173,7 @@ Provide a structured review with:
5173
5173
  * (Source: Issue #828 — Wire policy gate into production pipeline)
5174
5174
  */
5175
5175
  async postReviewToGitHub(provider, pr, result, context) {
5176
- const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-NQ3YK7PL.js");
5176
+ const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-KGGKESLT.js");
5177
5177
  const formattedBody = formatReviewComment2(result);
5178
5178
  const body = truncateText(formattedBody, DRAFT_REPLY_BODY_MAX_LENGTH, "\u2026[review truncated]");
5179
5179
  const sources = buildReviewCitations(pr.files);
@@ -5375,6 +5375,26 @@ function safeExecSandboxed(commandString, options = {}) {
5375
5375
  return null;
5376
5376
  }
5377
5377
  }
5378
+ function execSandboxed(commandString, options = {}) {
5379
+ const violation = validateCommandWithPolicy(commandString, options);
5380
+ if (violation !== null) {
5381
+ const msg = `Sandbox policy denied: ${violation.reason}`;
5382
+ logger6.warn(msg, { command: commandString });
5383
+ throw new Error(msg);
5384
+ }
5385
+ const execOptions = {
5386
+ encoding: "utf-8",
5387
+ stdio: ["pipe", "pipe", "pipe"]
5388
+ };
5389
+ if (options.cwd !== void 0) {
5390
+ execOptions.cwd = options.cwd;
5391
+ }
5392
+ if (options.stdin !== void 0) {
5393
+ execOptions.input = options.stdin;
5394
+ }
5395
+ const result = execSync(commandString, execOptions);
5396
+ return typeof result === "string" ? result.trim() : result.toString("utf-8").trim();
5397
+ }
5378
5398
 
5379
5399
  // src/cli/review-demo-helpers.ts
5380
5400
  var GITHUB_API_TIMEOUT_MS = API_TIMEOUTS.githubApiMs;
@@ -7462,8 +7482,8 @@ async function handlePrune(args, log, flags) {
7462
7482
  if (!result.ok) {
7463
7483
  throw new Error(result.error.message);
7464
7484
  }
7465
- const count = String(result.value);
7466
- output(dryRun ? "Would delete " + count + " sessions." : "Deleted " + count + " sessions.");
7485
+ const count2 = String(result.value);
7486
+ output(dryRun ? "Would delete " + count2 + " sessions." : "Deleted " + count2 + " sessions.");
7467
7487
  }
7468
7488
  async function sessionCommand(subcommand, args, logger22, flags = {}) {
7469
7489
  const log = logger22 ?? createLogger({ component: "SessionCommand" });
@@ -7481,6 +7501,81 @@ async function sessionCommand(subcommand, args, logger22, flags = {}) {
7481
7501
  import * as fs5 from "node:fs";
7482
7502
  import * as path4 from "node:path";
7483
7503
 
7504
+ // src/cli/system-review-audit.ts
7505
+ import { z as z2 } from "zod";
7506
+ var MAX_AUDIT_OUTPUT_BYTES = 1024 * 1024;
7507
+ var count = z2.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
7508
+ var reportSchema = z2.object({
7509
+ error: z2.never().optional(),
7510
+ errors: z2.never().optional(),
7511
+ metadata: z2.object({
7512
+ vulnerabilities: z2.object({
7513
+ info: count,
7514
+ low: count,
7515
+ moderate: count,
7516
+ high: count,
7517
+ critical: count,
7518
+ total: count.optional()
7519
+ }).strict()
7520
+ })
7521
+ });
7522
+ function unavailable(reason, exitCode) {
7523
+ return { status: "unmeasured", reason, ...exitCode === void 0 ? {} : { exitCode } };
7524
+ }
7525
+ function knownExitCode(value) {
7526
+ return typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= 255 ? value : void 0;
7527
+ }
7528
+ function wasTerminated(error) {
7529
+ const signal = "signal" in error && error.signal !== void 0 && error.signal !== null;
7530
+ const killed = "killed" in error && error.killed !== void 0 && error.killed !== false;
7531
+ return signal || killed;
7532
+ }
7533
+ function hasExecutionErrorCode(error) {
7534
+ return "code" in error && error.code !== void 0 && error.code !== 1;
7535
+ }
7536
+ function readFindingsOutput(error) {
7537
+ const exitCode = knownExitCode("status" in error ? error.status : void 0);
7538
+ if (exitCode !== 1 || wasTerminated(error) || hasExecutionErrorCode(error)) {
7539
+ return unavailable("execution-failed", exitCode);
7540
+ }
7541
+ if (!("stdout" in error) || typeof error.stdout !== "string") {
7542
+ return unavailable("execution-failed", exitCode);
7543
+ }
7544
+ return { stdout: error.stdout, exitCode };
7545
+ }
7546
+ function readExecution(execution) {
7547
+ if (typeof execution === "string") return { stdout: execution, exitCode: 0 };
7548
+ if (execution === void 0 || execution === null) return unavailable("missing-output");
7549
+ return typeof execution === "object" ? readFindingsOutput(execution) : unavailable("execution-failed");
7550
+ }
7551
+ function isConsistentTotal(computed, reported) {
7552
+ return Number.isSafeInteger(computed) && (reported === void 0 || reported === computed);
7553
+ }
7554
+ function parsePnpmAuditResult(execution) {
7555
+ const completed = readExecution(execution);
7556
+ if ("status" in completed) return completed;
7557
+ const { stdout, exitCode } = completed;
7558
+ if (Buffer.byteLength(stdout, "utf8") > MAX_AUDIT_OUTPUT_BYTES) {
7559
+ return unavailable("output-too-large", exitCode);
7560
+ }
7561
+ if (stdout.trim() === "") return unavailable("missing-output", exitCode);
7562
+ let raw;
7563
+ try {
7564
+ raw = JSON.parse(stdout);
7565
+ } catch {
7566
+ return unavailable("invalid-json", exitCode);
7567
+ }
7568
+ const parsed = reportSchema.safeParse(raw);
7569
+ if (!parsed.success) return unavailable("invalid-counts", exitCode);
7570
+ const { total: reportedTotal, ...counts } = parsed.data.metadata.vulnerabilities;
7571
+ const total = counts.info + counts.low + counts.moderate + counts.high + counts.critical;
7572
+ if (!isConsistentTotal(total, reportedTotal)) {
7573
+ return unavailable("invalid-counts", exitCode);
7574
+ }
7575
+ if (exitCode === 1 && total === 0) return unavailable("inconsistent-report", exitCode);
7576
+ return { status: "measured", exitCode, counts: { ...counts, total } };
7577
+ }
7578
+
7484
7579
  // src/cli/system-review-types.ts
7485
7580
  var SYSTEM_REVIEW_CONSTANTS = {
7486
7581
  /** Time thresholds */
@@ -7535,7 +7630,7 @@ function calculateHealthScore(r) {
7535
7630
  for (const d of r.docs) {
7536
7631
  score -= d.status === "stale" ? DOC_STALE_PENALTY : d.status === "review" ? DOC_REVIEW_PENALTY : 0;
7537
7632
  }
7538
- score -= r.security.parseError === true ? SECURITY_UNMEASURED_PENALTY : r.security.high * SECURITY_HIGH_PENALTY + r.security.moderate * SECURITY_MODERATE_PENALTY;
7633
+ score -= r.security.parseError === true ? SECURITY_UNMEASURED_PENALTY : (r.security.high + (r.security.critical ?? 0)) * SECURITY_HIGH_PENALTY + r.security.moderate * SECURITY_MODERATE_PENALTY;
7539
7634
  if (!r.quality.typecheckPass) score -= TYPECHECK_FAIL_PENALTY;
7540
7635
  if (!r.quality.lintPass) score -= LINT_FAIL_PENALTY;
7541
7636
  if (r.quality.coveragePercent !== null && r.quality.coveragePercent < COVERAGE_TARGET_PERCENT) {
@@ -7581,13 +7676,16 @@ function printPhase4(s) {
7581
7676
  writeLine(`${colors.cyan}Phase 4: Security Audit${colors.reset}
7582
7677
  `);
7583
7678
  if (s.parseError === true) {
7584
- writeLine(` ${formatStatus("warn")} Unmeasured \u2014 the audit did not run`);
7679
+ writeLine(` ${formatStatus("warn")} Unmeasured \u2014 the audit did not produce a usable result`);
7585
7680
  writeLine("");
7586
7681
  return;
7587
7682
  }
7588
7683
  if (s.totalVulns === 0) {
7589
7684
  writeLine(` ${formatStatus("pass")} No vulnerabilities found`);
7590
7685
  } else {
7686
+ if ((s.critical ?? 0) > 0)
7687
+ writeLine(` ${formatStatus("fail")} Critical: ${String(s.critical)}`);
7688
+ if ((s.info ?? 0) > 0) writeLine(` ${formatStatus("pass")} Info: ${String(s.info)}`);
7591
7689
  if (s.high > 0) writeLine(` ${formatStatus("fail")} High: ${String(s.high)}`);
7592
7690
  if (s.moderate > 0) writeLine(` ${formatStatus("warn")} Moderate: ${String(s.moderate)}`);
7593
7691
  if (s.low > 0) writeLine(` ${formatStatus("pass")} Low: ${String(s.low)}`);
@@ -7612,7 +7710,12 @@ function formatDocRow(d) {
7612
7710
  return `| ${d.file} | ${String(d.daysSinceUpdate)} | ${statusIcon}${newerInfo} |`;
7613
7711
  }
7614
7712
  function formatSecurityCaveat(s) {
7615
- return s.parseError === true ? "> **Unmeasured:** the audit did not run \u2014 the counts below are defaults, not findings.\n\n" : "";
7713
+ return s.parseError === true ? "> **Unmeasured:** the audit did not produce a usable result \u2014 the counts below are defaults, not findings.\n\n" : "";
7714
+ }
7715
+ function formatAdditionalSeverities(s) {
7716
+ return (s.critical === void 0 ? "" : `- Critical: ${String(s.critical)}
7717
+ `) + (s.info === void 0 ? "" : `- Info: ${String(s.info)}
7718
+ `);
7616
7719
  }
7617
7720
  function createIssueBody(r) {
7618
7721
  const now = new Date(getTimeProvider().now());
@@ -7648,7 +7751,7 @@ ${r.docs.map(formatDocRow).join("\n")}
7648
7751
 
7649
7752
  ### Phase 4: Security
7650
7753
 
7651
- ${formatSecurityCaveat(r.security)}- High: ${String(r.security.high)}
7754
+ ${formatSecurityCaveat(r.security)}${formatAdditionalSeverities(r.security)}- High: ${String(r.security.high)}
7652
7755
  - Moderate: ${String(r.security.moderate)}
7653
7756
  - Low: ${String(r.security.low)}
7654
7757
 
@@ -7936,9 +8039,9 @@ var {
7936
8039
  NOT_STARTED_TECHNIQUE_THRESHOLD,
7937
8040
  HEALTH_SCORE_WARN_THRESHOLD: HEALTH_SCORE_WARN_THRESHOLD2
7938
8041
  } = SYSTEM_REVIEW_CONSTANTS;
7939
- function safeExec(command, cwd, allowNonZeroExit = false) {
8042
+ function safeExec(command, cwd) {
7940
8043
  const context = command.startsWith("gh ") ? "gh" : command.startsWith("git ") ? "git" : command.startsWith("pnpm ") ? "write" : "read";
7941
- return cwd !== void 0 ? safeExecSandboxed(command, { context, cwd, allowNonZeroExit }) : safeExecSandboxed(command, { context, allowNonZeroExit });
8044
+ return cwd !== void 0 ? safeExecSandboxed(command, { context, cwd }) : safeExecSandboxed(command, { context });
7942
8045
  }
7943
8046
  function parseGhIssueList(json, context) {
7944
8047
  try {
@@ -8013,30 +8116,19 @@ function runPhase3() {
8013
8116
  return { openCount, staleCount, byLabel };
8014
8117
  }
8015
8118
  function runPhase4(projectRoot) {
8016
- const def = { totalVulns: 0, high: 0, moderate: 0, low: 0, parseError: false };
8017
- const out = safeExec("pnpm audit --json", projectRoot, true);
8018
- if (out === null) {
8019
- logger10.warn("pnpm audit command failed or returned null", { projectRoot });
8020
- return { ...def, parseError: true };
8021
- }
8119
+ let execution;
8022
8120
  try {
8023
- const a = JSON.parse(out);
8024
- const m = a.metadata?.vulnerabilities ?? {};
8025
- return {
8026
- totalVulns: m.total ?? 0,
8027
- high: m.high ?? 0,
8028
- moderate: m.moderate ?? 0,
8029
- low: m.low ?? 0,
8030
- parseError: false
8031
- };
8121
+ execution = execSandboxed("pnpm audit --json", { context: "write", cwd: projectRoot });
8032
8122
  } catch (error) {
8033
- const message = getErrorMessage(error);
8034
- logger10.warn("Failed to parse pnpm audit JSON", {
8035
- error: message,
8036
- outputPreview: out.slice(0, 200)
8037
- });
8038
- return { ...def, parseError: true };
8123
+ execution = error;
8124
+ }
8125
+ const audit = parsePnpmAuditResult(execution);
8126
+ if (audit.status === "unmeasured") {
8127
+ logger10.warn("Security audit is unmeasured", { reason: audit.reason, exitCode: audit.exitCode });
8128
+ return { totalVulns: 0, info: 0, critical: 0, high: 0, moderate: 0, low: 0, parseError: true };
8039
8129
  }
8130
+ const { total: totalVulns, ...counts } = audit.counts;
8131
+ return { totalVulns, ...counts, parseError: false };
8040
8132
  }
8041
8133
  function runPhase5(projectRoot) {
8042
8134
  const tc = safeExec("pnpm typecheck", projectRoot);
@@ -8068,12 +8160,16 @@ function getQualityItems(q) {
8068
8160
  }
8069
8161
  function getSecurityItems(security) {
8070
8162
  if (security.parseError === true) {
8071
- return ["WARNING: Security audit parsing failed - verify pnpm audit manually"];
8163
+ return ["WARNING: Security audit is unmeasured - verify pnpm audit manually"];
8164
+ }
8165
+ const items = [];
8166
+ if ((security.critical ?? 0) > 0) {
8167
+ items.push(`Address ${String(security.critical)} critical-severity vulnerabilities`);
8072
8168
  }
8073
8169
  if (security.high > 0) {
8074
- return [`Address ${String(security.high)} high-severity vulnerabilities`];
8170
+ items.push(`Address ${String(security.high)} high-severity vulnerabilities`);
8075
8171
  }
8076
- return [];
8172
+ return items;
8077
8173
  }
8078
8174
  function getStaleDocItems(docs) {
8079
8175
  const items = [];
@@ -8175,8 +8271,8 @@ function fallbackLabel({ role, fallback, toCli, toModel }) {
8175
8271
  const to = inFamily ? toModel ?? toCli : toCli;
8176
8272
  return `${role}: ${from}\u2192${to}, ${fallback.reason}`;
8177
8273
  }
8178
- function seatCount(count, label) {
8179
- return count === 0 ? "" : `${String(count)} ${count === 1 ? "seat" : "seats"} ${label}`;
8274
+ function seatCount(count2, label) {
8275
+ return count2 === 0 ? "" : `${String(count2)} ${count2 === 1 ? "seat" : "seats"} ${label}`;
8180
8276
  }
8181
8277
  function modelsLine(votes) {
8182
8278
  const { distinctModels, distinctFamilies, unclassifiedSeats, unresolvedSeats, fallbacks } = panelDiversityOf(votes);
@@ -8680,7 +8776,7 @@ ${colors.bold}Nexus Agents Consensus Vote${colors.reset}`);
8680
8776
  }
8681
8777
 
8682
8778
  // src/cli/issue-command.ts
8683
- import { z as z2 } from "zod";
8779
+ import { z as z3 } from "zod";
8684
8780
 
8685
8781
  // src/cli/issue-template-definitions.ts
8686
8782
  var FEAT_TEMPLATE = {
@@ -8997,12 +9093,12 @@ function generateTemplateBody(type) {
8997
9093
  }
8998
9094
 
8999
9095
  // src/cli/issue-command.ts
9000
- var GhIssueJsonSchema = z2.object({
9001
- number: z2.number(),
9002
- title: z2.string(),
9003
- body: z2.string().nullable(),
9004
- state: z2.string(),
9005
- labels: z2.array(z2.object({ name: z2.string() }))
9096
+ var GhIssueJsonSchema = z3.object({
9097
+ number: z3.number(),
9098
+ title: z3.string(),
9099
+ body: z3.string().nullable(),
9100
+ state: z3.string(),
9101
+ labels: z3.array(z3.object({ name: z3.string() }))
9006
9102
  });
9007
9103
  function fetchGitHubIssue(issueNumber) {
9008
9104
  let output2;
@@ -9669,8 +9765,8 @@ import * as path7 from "node:path";
9669
9765
  import * as yaml3 from "yaml";
9670
9766
 
9671
9767
  // src/research/research-schemas.ts
9672
- import { z as z3 } from "zod";
9673
- var ResearchTopicSchema = z3.string().min(1);
9768
+ import { z as z4 } from "zod";
9769
+ var ResearchTopicSchema = z4.string().min(1);
9674
9770
  var RESEARCH_TOPICS = [
9675
9771
  "consensus",
9676
9772
  "routing",
@@ -9701,95 +9797,95 @@ var TOPIC_DESCRIPTIONS = {
9701
9797
  };
9702
9798
  var PaperStatusSchema2 = PaperStatusSchema;
9703
9799
  var TechniqueStatusSchema2 = TechniqueStatusSchema;
9704
- var TechniquePrioritySchema = z3.enum(["P1", "P2", "P3", "P4"]).nullable();
9705
- var TechniqueComplexitySchema = z3.enum(["low", "medium", "high"]);
9706
- var RelevanceSchema = z3.enum(["high", "medium", "low"]);
9707
- var PaperSourceSchema = z3.enum(["arxiv", "conference", "journal", "preprint"]);
9708
- var DecisionHistoryEntrySchema = z3.object({
9709
- date: z3.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be YYYY-MM-DD format"),
9710
- decision: z3.string().min(1),
9711
- rationale: z3.string().min(1)
9800
+ var TechniquePrioritySchema = z4.enum(["P1", "P2", "P3", "P4"]).nullable();
9801
+ var TechniqueComplexitySchema = z4.enum(["low", "medium", "high"]);
9802
+ var RelevanceSchema = z4.enum(["high", "medium", "low"]);
9803
+ var PaperSourceSchema = z4.enum(["arxiv", "conference", "journal", "preprint"]);
9804
+ var DecisionHistoryEntrySchema = z4.object({
9805
+ date: z4.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be YYYY-MM-DD format"),
9806
+ decision: z4.string().min(1),
9807
+ rationale: z4.string().min(1)
9712
9808
  });
9713
- var ResearchPaperSchema = z3.object({
9809
+ var ResearchPaperSchema = z4.object({
9714
9810
  /** Paper title (required) */
9715
- title: z3.string().min(1),
9811
+ title: z4.string().min(1),
9716
9812
  /** Paper authors */
9717
- authors: z3.array(z3.string()).optional().default([]),
9813
+ authors: z4.array(z4.string()).optional().default([]),
9718
9814
  /** Source type */
9719
9815
  source: PaperSourceSchema.optional(),
9720
9816
  /** arXiv ID (e.g., '2501.06322') */
9721
- arxiv_id: z3.string().optional(),
9817
+ arxiv_id: z4.string().optional(),
9722
9818
  /** URL to the paper */
9723
9819
  // eslint-disable-next-line @typescript-eslint/no-deprecated -- z.url() fails at runtime despite being recommended
9724
- url: z3.string().url().optional(),
9820
+ url: z4.string().url().optional(),
9725
9821
  /** Publication date (YYYY-MM format) */
9726
- publication_date: z3.string().optional(),
9822
+ publication_date: z4.string().optional(),
9727
9823
  /** Publication venue */
9728
- venue: z3.string().nullable().optional(),
9824
+ venue: z4.string().nullable().optional(),
9729
9825
  /**
9730
9826
  * Research topics (array).
9731
9827
  * First topic is considered primary for counting purposes.
9732
9828
  */
9733
- topics: z3.array(z3.string()).optional().default([]),
9829
+ topics: z4.array(z4.string()).optional().default([]),
9734
9830
  /** Tags for searching */
9735
- tags: z3.array(z3.string()).optional().default([]),
9831
+ tags: z4.array(z4.string()).optional().default([]),
9736
9832
  /** Date when the paper was reviewed (YYYY-MM-DD) */
9737
- reviewed_date: z3.string().optional(),
9833
+ reviewed_date: z4.string().optional(),
9738
9834
  /** File where the paper is reviewed */
9739
- reviewed_in: z3.string().optional(),
9835
+ reviewed_in: z4.string().optional(),
9740
9836
  /** Summary of the paper */
9741
- summary: z3.string().optional(),
9837
+ summary: z4.string().optional(),
9742
9838
  /** Key findings from the paper */
9743
- key_findings: z3.array(z3.string()).optional().default([]),
9839
+ key_findings: z4.array(z4.string()).optional().default([]),
9744
9840
  /** Relevance to the project */
9745
9841
  relevance: RelevanceSchema.optional(),
9746
9842
  /** Techniques extracted from this paper */
9747
- techniques_extracted: z3.array(z3.string()).optional().default([]),
9843
+ techniques_extracted: z4.array(z4.string()).optional().default([]),
9748
9844
  /** Related GitHub issues */
9749
- related_issues: z3.array(z3.number().int().positive()).optional().default([]),
9845
+ related_issues: z4.array(z4.number().int().positive()).optional().default([]),
9750
9846
  /** Implementation status */
9751
9847
  implementation_status: PaperStatusSchema2.optional().default("not-started"),
9752
9848
  // ── Quality Assessment (Issue #1571) ──────────────────────────
9753
9849
  /** Citation count from Semantic Scholar (auto-fetched) */
9754
- citation_count: z3.number().nonnegative().optional(),
9850
+ citation_count: z4.number().nonnegative().optional(),
9755
9851
  /** Venue quality tier: 3=top (NeurIPS/ICML/ICLR), 2=good, 1=workshop, 0=preprint */
9756
- venue_tier: z3.number().min(0).max(3).optional(),
9852
+ venue_tier: z4.number().min(0).max(3).optional(),
9757
9853
  /** Whether the paper links to a code repository */
9758
- has_code: z3.boolean().optional(),
9854
+ has_code: z4.boolean().optional(),
9759
9855
  /** Code repository URL (from Papers With Code or manual) */
9760
- code_url: z3.string().optional(),
9856
+ code_url: z4.string().optional(),
9761
9857
  /** Rigor assessment tags (factual, verifiable signals) */
9762
- rigor_tags: z3.array(
9763
- z3.enum(["has-code", "has-dataset", "has-baselines", "peer-reviewed", "single-model-eval"])
9858
+ rigor_tags: z4.array(
9859
+ z4.enum(["has-code", "has-dataset", "has-baselines", "peer-reviewed", "single-model-eval"])
9764
9860
  ).optional().default([]),
9765
9861
  /** Composite quality score (0-10, auto-computed from signals) */
9766
- quality_score: z3.number().min(0).max(10).optional(),
9862
+ quality_score: z4.number().min(0).max(10).optional(),
9767
9863
  /** Evidence confidence tier for extracted techniques */
9768
- evidence_tier: z3.enum(["high", "medium", "low"]).optional(),
9864
+ evidence_tier: z4.enum(["high", "medium", "low"]).optional(),
9769
9865
  /** Why this paper scored low — enables future re-review when conditions change */
9770
- quality_notes: z3.string().optional(),
9866
+ quality_notes: z4.string().optional(),
9771
9867
  /** When quality was last assessed (ISO date) — enables periodic re-review */
9772
- last_quality_check: z3.string().optional()
9868
+ last_quality_check: z4.string().optional()
9773
9869
  });
9774
- var IntegrationFileObjectSchema = z3.object({
9775
- path: z3.string(),
9776
- type: z3.enum(["primary", "test", "types", "helpers"]).optional(),
9777
- required: z3.boolean().default(true)
9870
+ var IntegrationFileObjectSchema = z4.object({
9871
+ path: z4.string(),
9872
+ type: z4.enum(["primary", "test", "types", "helpers"]).optional(),
9873
+ required: z4.boolean().default(true)
9778
9874
  });
9779
- var IntegrationFileSchema = z3.union([z3.string(), IntegrationFileObjectSchema]);
9780
- var ResearchTechniqueSchema = z3.object({
9875
+ var IntegrationFileSchema = z4.union([z4.string(), IntegrationFileObjectSchema]);
9876
+ var ResearchTechniqueSchema = z4.object({
9781
9877
  /** Technique name (required) */
9782
- name: z3.string().min(1),
9878
+ name: z4.string().min(1),
9783
9879
  /** Description of the technique (required) */
9784
- description: z3.string().min(1),
9880
+ description: z4.string().min(1),
9785
9881
  /** Source papers (arXiv IDs or paper IDs) */
9786
- source_papers: z3.array(z3.string()).optional().default([]),
9882
+ source_papers: z4.array(z4.string()).optional().default([]),
9787
9883
  /** Primary topic (required) */
9788
9884
  topic: ResearchTopicSchema,
9789
9885
  /** Tags for searching */
9790
- tags: z3.array(z3.string()).optional().default([]),
9886
+ tags: z4.array(z4.string()).optional().default([]),
9791
9887
  /** Metrics associated with this technique */
9792
- metrics: z3.record(z3.string(), z3.string()).optional().default({}),
9888
+ metrics: z4.record(z4.string(), z4.string()).optional().default({}),
9793
9889
  /** Implementation status (required) */
9794
9890
  status: TechniqueStatusSchema2,
9795
9891
  /** Priority level */
@@ -9797,35 +9893,35 @@ var ResearchTechniqueSchema = z3.object({
9797
9893
  /** Complexity level */
9798
9894
  complexity: TechniqueComplexitySchema.optional(),
9799
9895
  /** Files where this technique is implemented */
9800
- integration_files: z3.array(IntegrationFileSchema).optional().default([]),
9896
+ integration_files: z4.array(IntegrationFileSchema).optional().default([]),
9801
9897
  /** GitHub issue number for implementation */
9802
- implementation_issue: z3.number().int().positive().nullable().optional().default(null),
9898
+ implementation_issue: z4.number().int().positive().nullable().optional().default(null),
9803
9899
  /** Related PR numbers */
9804
- related_prs: z3.array(z3.number().int().positive()).optional().default([]),
9900
+ related_prs: z4.array(z4.number().int().positive()).optional().default([]),
9805
9901
  /** Implementation notes */
9806
- notes: z3.string().optional(),
9902
+ notes: z4.string().optional(),
9807
9903
  /** Dependent techniques */
9808
- dependencies: z3.array(z3.string()).optional().default([]),
9904
+ dependencies: z4.array(z4.string()).optional().default([]),
9809
9905
  /** Decision history */
9810
- decision_history: z3.array(DecisionHistoryEntrySchema).optional().default([]),
9906
+ decision_history: z4.array(DecisionHistoryEntrySchema).optional().default([]),
9811
9907
  // ── Evaluation Plan (Issue #1576 Wave 6) ──────────────────────
9812
9908
  /** Structured evaluation plan for keeping or removing the technique */
9813
- evaluation_plan: z3.object({
9814
- success_criteria: z3.string().optional(),
9815
- evaluation_method: z3.string().optional(),
9816
- evaluation_deadline: z3.string().optional(),
9817
- removal_criteria: z3.string().optional()
9909
+ evaluation_plan: z4.object({
9910
+ success_criteria: z4.string().optional(),
9911
+ evaluation_method: z4.string().optional(),
9912
+ evaluation_deadline: z4.string().optional(),
9913
+ removal_criteria: z4.string().optional()
9818
9914
  }).optional(),
9819
9915
  /** Evaluation status: pending (not yet evaluated), passed, failed, deferred */
9820
- evaluation_status: z3.enum(["pending", "passed", "failed", "deferred"]).optional()
9916
+ evaluation_status: z4.enum(["pending", "passed", "failed", "deferred"]).optional()
9821
9917
  });
9822
- var PapersRegistrySchema = z3.object({
9823
- schema_version: z3.string(),
9824
- papers: z3.record(z3.string(), ResearchPaperSchema)
9918
+ var PapersRegistrySchema = z4.object({
9919
+ schema_version: z4.string(),
9920
+ papers: z4.record(z4.string(), ResearchPaperSchema)
9825
9921
  });
9826
- var TechniquesRegistrySchema = z3.object({
9827
- schema_version: z3.string(),
9828
- techniques: z3.record(z3.string(), ResearchTechniqueSchema)
9922
+ var TechniquesRegistrySchema = z4.object({
9923
+ schema_version: z4.string(),
9924
+ techniques: z4.record(z4.string(), ResearchTechniqueSchema)
9829
9925
  });
9830
9926
  function getIntegrationFilePath(file) {
9831
9927
  if (typeof file === "string") {
@@ -11555,43 +11651,43 @@ function validateIndex(index, currentFiles) {
11555
11651
  }
11556
11652
 
11557
11653
  // src/indexer/entrypoint-types.ts
11558
- import { z as z4 } from "zod";
11654
+ import { z as z5 } from "zod";
11559
11655
  var ENTRYPOINT_SCHEMA_VERSION = "1.0";
11560
- var OptionSpecSchema = z4.object({
11561
- name: z4.string(),
11562
- type: z4.string(),
11563
- description: z4.string().optional(),
11564
- required: z4.boolean().optional(),
11565
- default: z4.string().optional(),
11566
- short: z4.string().optional()
11656
+ var OptionSpecSchema = z5.object({
11657
+ name: z5.string(),
11658
+ type: z5.string(),
11659
+ description: z5.string().optional(),
11660
+ required: z5.boolean().optional(),
11661
+ default: z5.string().optional(),
11662
+ short: z5.string().optional()
11567
11663
  });
11568
- var ParameterSpecSchema = z4.object({
11569
- name: z4.string(),
11570
- type: z4.string(),
11571
- description: z4.string().optional(),
11572
- required: z4.boolean().optional(),
11573
- default: z4.string().optional()
11664
+ var ParameterSpecSchema = z5.object({
11665
+ name: z5.string(),
11666
+ type: z5.string(),
11667
+ description: z5.string().optional(),
11668
+ required: z5.boolean().optional(),
11669
+ default: z5.string().optional()
11574
11670
  });
11575
- var CliCommandSpecSchema = z4.object({
11576
- name: z4.string(),
11577
- description: z4.string(),
11578
- subcommands: z4.array(z4.string()).readonly().optional(),
11579
- options: z4.array(OptionSpecSchema).readonly().optional(),
11580
- source_file: z4.string(),
11581
- source_line: z4.number().int().positive()
11671
+ var CliCommandSpecSchema = z5.object({
11672
+ name: z5.string(),
11673
+ description: z5.string(),
11674
+ subcommands: z5.array(z5.string()).readonly().optional(),
11675
+ options: z5.array(OptionSpecSchema).readonly().optional(),
11676
+ source_file: z5.string(),
11677
+ source_line: z5.number().int().positive()
11582
11678
  });
11583
- var McpToolSpecSchema = z4.object({
11584
- name: z4.string(),
11585
- description: z4.string(),
11586
- parameters: z4.array(ParameterSpecSchema).readonly(),
11587
- source_file: z4.string(),
11588
- source_line: z4.number().int().positive()
11679
+ var McpToolSpecSchema = z5.object({
11680
+ name: z5.string(),
11681
+ description: z5.string(),
11682
+ parameters: z5.array(ParameterSpecSchema).readonly(),
11683
+ source_file: z5.string(),
11684
+ source_line: z5.number().int().positive()
11589
11685
  });
11590
- var EntrypointManifestSchema = z4.object({
11591
- schema_version: z4.literal(ENTRYPOINT_SCHEMA_VERSION),
11592
- generated_at: z4.string(),
11593
- cli_commands: z4.array(CliCommandSpecSchema).readonly(),
11594
- mcp_tools: z4.array(McpToolSpecSchema).readonly()
11686
+ var EntrypointManifestSchema = z5.object({
11687
+ schema_version: z5.literal(ENTRYPOINT_SCHEMA_VERSION),
11688
+ generated_at: z5.string(),
11689
+ cli_commands: z5.array(CliCommandSpecSchema).readonly(),
11690
+ mcp_tools: z5.array(McpToolSpecSchema).readonly()
11595
11691
  });
11596
11692
  var DEFAULT_ENTRYPOINT_EXTRACTOR_OPTIONS = {
11597
11693
  packageRoot: "packages/nexus-agents",
@@ -12933,7 +13029,7 @@ function probeGrammars(register, parse6, probes = GRAMMAR_PROBES) {
12933
13029
  }
12934
13030
  async function loadGrammarModules() {
12935
13031
  const [{ ensurePolyglotLangs }, napi] = await Promise.all([
12936
- import("./ast-rule-runner-3DNARGI6.js"),
13032
+ import("./ast-rule-runner-2PEUHSHO.js"),
12937
13033
  import("@ast-grep/napi")
12938
13034
  ]);
12939
13035
  return { register: ensurePolyglotLangs, parse: napi.parse };
@@ -13242,12 +13338,12 @@ function checkConfigLoading() {
13242
13338
  }
13243
13339
  function checkExpertSystem() {
13244
13340
  const expertTypes = Object.keys(BUILT_IN_EXPERTS);
13245
- const count = expertTypes.length;
13246
- if (count >= 5) {
13341
+ const count2 = expertTypes.length;
13342
+ if (count2 >= 5) {
13247
13343
  return {
13248
13344
  name: "Expert System",
13249
13345
  passed: true,
13250
- message: `${String(count)} expert types available`
13346
+ message: `${String(count2)} expert types available`
13251
13347
  };
13252
13348
  }
13253
13349
  return {
@@ -13574,9 +13670,9 @@ function aggregateFeatureImportance(banditStats) {
13574
13670
  featureMap.set(fi.feature, { sum: existing.sum + fi.importance, count: existing.count + 1 });
13575
13671
  }
13576
13672
  }
13577
- const topFeatures = Array.from(featureMap.entries()).map(([feature, { sum, count }]) => ({
13673
+ const topFeatures = Array.from(featureMap.entries()).map(([feature, { sum, count: count2 }]) => ({
13578
13674
  feature,
13579
- importance: sum / count,
13675
+ importance: sum / count2,
13580
13676
  direction: sum >= 0 ? "positive" : "negative"
13581
13677
  })).sort((a, b) => Math.abs(b.importance) - Math.abs(a.importance)).slice(0, 5);
13582
13678
  return topFeatures;
@@ -13700,8 +13796,8 @@ function formatSummary2(result) {
13700
13796
  lines.push(color("\u251C" + horizontalLine() + "\u2524", ANSI3.cyan));
13701
13797
  return lines;
13702
13798
  }
13703
- function sampleLabel(source, count) {
13704
- return `${count.toLocaleString()} ${source === "bandit" ? "pulls" : "routings"}`;
13799
+ function sampleLabel(source, count2) {
13800
+ return `${count2.toLocaleString()} ${source === "bandit" ? "pulls" : "routings"}`;
13705
13801
  }
13706
13802
  function formatSelectionShare(model) {
13707
13803
  if (model.routingSelectionCount === 0) return UNMEASURED_NO_ROUTINGS;
@@ -13936,30 +14032,30 @@ function gatherContextMetrics(context, options) {
13936
14032
  import { existsSync as existsSync14 } from "node:fs";
13937
14033
 
13938
14034
  // src/cli/setup-types.ts
13939
- import { z as z5 } from "zod";
13940
- var SetupOptionsSchema = z5.object({
14035
+ import { z as z6 } from "zod";
14036
+ var SetupOptionsSchema = z6.object({
13941
14037
  /** Skip interactive prompts */
13942
- nonInteractive: z5.boolean().default(false),
14038
+ nonInteractive: z6.boolean().default(false),
13943
14039
  /** Overwrite existing configurations */
13944
- force: z5.boolean().default(false),
14040
+ force: z6.boolean().default(false),
13945
14041
  /** Skip MCP configuration */
13946
- skipMcp: z5.boolean().default(false),
14042
+ skipMcp: z6.boolean().default(false),
13947
14043
  /** Skip CLAUDE.md/rules generation */
13948
- skipRules: z5.boolean().default(false),
14044
+ skipRules: z6.boolean().default(false),
13949
14045
  /** Skip hooks configuration (Issue #416) */
13950
- skipHooks: z5.boolean().default(false),
14046
+ skipHooks: z6.boolean().default(false),
13951
14047
  /** Skip config file generation (#1252) */
13952
- skipConfig: z5.boolean().default(false),
14048
+ skipConfig: z6.boolean().default(false),
13953
14049
  /** Skip OpenCode MCP configuration (#1253) */
13954
- skipOpencode: z5.boolean().default(false),
14050
+ skipOpencode: z6.boolean().default(false),
13955
14051
  /** Skip Codex CLI MCP configuration (#1263) */
13956
- skipCodex: z5.boolean().default(false),
14052
+ skipCodex: z6.boolean().default(false),
13957
14053
  /** Show what would be done without making changes */
13958
- dryRun: z5.boolean().default(false),
14054
+ dryRun: z6.boolean().default(false),
13959
14055
  /** Show detailed output */
13960
- verbose: z5.boolean().default(false),
14056
+ verbose: z6.boolean().default(false),
13961
14057
  /** Target scope for MCP config */
13962
- scope: z5.enum(["user", "project"]).default("user")
14058
+ scope: z6.enum(["user", "project"]).default("user")
13963
14059
  });
13964
14060
 
13965
14061
  // src/cli/setup-environment.ts
@@ -15212,8 +15308,8 @@ function printPermissionsSuggestion() {
15212
15308
  function printDataDirSection(result) {
15213
15309
  writeLine4(formatHeader("Data Directory"));
15214
15310
  writeLine4("\u2500".repeat(40));
15215
- const count = result.dataDirsCreated ?? 0;
15216
- const msg = count > 0 ? `${result.dryRun === true ? "Would create:" : "Created"} ${String(count)} directories under ${result.dataDirPath ?? ""}` : `All directories already exist at ${result.dataDirPath ?? ""}`;
15311
+ const count2 = result.dataDirsCreated ?? 0;
15312
+ const msg = count2 > 0 ? `${result.dryRun === true ? "Would create:" : "Created"} ${String(count2)} directories under ${result.dataDirPath ?? ""}` : `All directories already exist at ${result.dataDirPath ?? ""}`;
15217
15313
  writeLine4(msg);
15218
15314
  writeEmptyLine3();
15219
15315
  }
@@ -15344,32 +15440,32 @@ function runSetupAndPrint(options) {
15344
15440
  }
15345
15441
 
15346
15442
  // src/cli/config-command-types.ts
15347
- import { z as z6 } from "zod";
15443
+ import { z as z7 } from "zod";
15348
15444
  var CONFIG_ACTIONS = ["get", "set", "list", "reset", "export", "import"];
15349
15445
  var CONFIG_FORMATS = ["json", "yaml"];
15350
- var ConfigCommandOptionsSchema = z6.object({
15446
+ var ConfigCommandOptionsSchema = z7.object({
15351
15447
  /** Command action */
15352
- action: z6.enum(CONFIG_ACTIONS),
15448
+ action: z7.enum(CONFIG_ACTIONS),
15353
15449
  /** Configuration key (dot notation supported) */
15354
- key: z6.string().optional(),
15450
+ key: z7.string().optional(),
15355
15451
  /** Value to set */
15356
- value: z6.string().optional(),
15452
+ value: z7.string().optional(),
15357
15453
  /** File path for import/export */
15358
- file: z6.string().optional(),
15454
+ file: z7.string().optional(),
15359
15455
  /** Export format */
15360
- format: z6.enum(CONFIG_FORMATS).default("json"),
15456
+ format: z7.enum(CONFIG_FORMATS).default("json"),
15361
15457
  /** Force overwrite without backup */
15362
- force: z6.boolean().default(false),
15458
+ force: z7.boolean().default(false),
15363
15459
  /** Show verbose output */
15364
- verbose: z6.boolean().default(false)
15460
+ verbose: z7.boolean().default(false)
15365
15461
  });
15366
- var ParsedConfigKeySchema = z6.object({
15462
+ var ParsedConfigKeySchema = z7.object({
15367
15463
  /** Full key string */
15368
- fullKey: z6.string(),
15464
+ fullKey: z7.string(),
15369
15465
  /** Category portion */
15370
- category: z6.string(),
15466
+ category: z7.string(),
15371
15467
  /** Key within category */
15372
- key: z6.string()
15468
+ key: z7.string()
15373
15469
  });
15374
15470
  var ConfigCommandError = class extends Error {
15375
15471
  code;
@@ -16051,8 +16147,8 @@ async function configCommand(options) {
16051
16147
  }
16052
16148
 
16053
16149
  // src/cli/hooks/hook-types.ts
16054
- import { z as z7 } from "zod";
16055
- var HookEventName = z7.enum([
16150
+ import { z as z8 } from "zod";
16151
+ var HookEventName = z8.enum([
16056
16152
  "SessionStart",
16057
16153
  "UserPromptSubmit",
16058
16154
  "PreToolUse",
@@ -16067,100 +16163,100 @@ var HookEventName = z7.enum([
16067
16163
  "Notification",
16068
16164
  "Setup"
16069
16165
  ]);
16070
- var PermissionMode = z7.enum([
16166
+ var PermissionMode = z8.enum([
16071
16167
  "default",
16072
16168
  "plan",
16073
16169
  "acceptEdits",
16074
16170
  "dontAsk",
16075
16171
  "bypassPermissions"
16076
16172
  ]);
16077
- var HookInputBaseSchema = z7.object({
16078
- session_id: z7.string(),
16079
- transcript_path: z7.string(),
16080
- cwd: z7.string(),
16173
+ var HookInputBaseSchema = z8.object({
16174
+ session_id: z8.string(),
16175
+ transcript_path: z8.string(),
16176
+ cwd: z8.string(),
16081
16177
  permission_mode: PermissionMode,
16082
16178
  hook_event_name: HookEventName
16083
16179
  });
16084
- var SessionStartSource = z7.enum(["startup", "resume", "clear", "compact"]);
16180
+ var SessionStartSource = z8.enum(["startup", "resume", "clear", "compact"]);
16085
16181
  var SessionStartInputSchema = HookInputBaseSchema.extend({
16086
- hook_event_name: z7.literal("SessionStart"),
16182
+ hook_event_name: z8.literal("SessionStart"),
16087
16183
  source: SessionStartSource,
16088
- model: z7.string().optional(),
16089
- agent_type: z7.string().optional()
16184
+ model: z8.string().optional(),
16185
+ agent_type: z8.string().optional()
16090
16186
  });
16091
- var SessionEndReason = z7.enum(["clear", "logout", "prompt_input_exit", "other"]);
16187
+ var SessionEndReason = z8.enum(["clear", "logout", "prompt_input_exit", "other"]);
16092
16188
  var SessionEndInputSchema = HookInputBaseSchema.extend({
16093
- hook_event_name: z7.literal("SessionEnd"),
16189
+ hook_event_name: z8.literal("SessionEnd"),
16094
16190
  reason: SessionEndReason
16095
16191
  });
16096
16192
  var PreToolUseInputSchema = HookInputBaseSchema.extend({
16097
- hook_event_name: z7.literal("PreToolUse"),
16098
- tool_name: z7.string(),
16099
- tool_input: z7.record(z7.string(), z7.unknown()),
16100
- tool_use_id: z7.string()
16193
+ hook_event_name: z8.literal("PreToolUse"),
16194
+ tool_name: z8.string(),
16195
+ tool_input: z8.record(z8.string(), z8.unknown()),
16196
+ tool_use_id: z8.string()
16101
16197
  });
16102
16198
  var PostToolUseInputSchema = HookInputBaseSchema.extend({
16103
- hook_event_name: z7.literal("PostToolUse"),
16104
- tool_name: z7.string(),
16105
- tool_input: z7.record(z7.string(), z7.unknown()),
16106
- tool_response: z7.record(z7.string(), z7.unknown()),
16107
- tool_use_id: z7.string()
16199
+ hook_event_name: z8.literal("PostToolUse"),
16200
+ tool_name: z8.string(),
16201
+ tool_input: z8.record(z8.string(), z8.unknown()),
16202
+ tool_response: z8.record(z8.string(), z8.unknown()),
16203
+ tool_use_id: z8.string()
16108
16204
  });
16109
16205
  var PostToolUseFailureInputSchema = HookInputBaseSchema.extend({
16110
- hook_event_name: z7.literal("PostToolUseFailure"),
16111
- tool_name: z7.string(),
16112
- tool_input: z7.record(z7.string(), z7.unknown()),
16113
- tool_use_id: z7.string(),
16114
- error: z7.string().optional()
16206
+ hook_event_name: z8.literal("PostToolUseFailure"),
16207
+ tool_name: z8.string(),
16208
+ tool_input: z8.record(z8.string(), z8.unknown()),
16209
+ tool_use_id: z8.string(),
16210
+ error: z8.string().optional()
16115
16211
  });
16116
16212
  var StopInputSchema = HookInputBaseSchema.extend({
16117
- hook_event_name: z7.literal("Stop"),
16118
- stop_hook_active: z7.boolean()
16213
+ hook_event_name: z8.literal("Stop"),
16214
+ stop_hook_active: z8.boolean()
16119
16215
  });
16120
16216
  var SubagentStopInputSchema = HookInputBaseSchema.extend({
16121
- hook_event_name: z7.literal("SubagentStop"),
16122
- stop_hook_active: z7.boolean(),
16123
- agent_id: z7.string(),
16124
- agent_transcript_path: z7.string()
16217
+ hook_event_name: z8.literal("SubagentStop"),
16218
+ stop_hook_active: z8.boolean(),
16219
+ agent_id: z8.string(),
16220
+ agent_transcript_path: z8.string()
16125
16221
  });
16126
16222
  var UserPromptSubmitInputSchema = HookInputBaseSchema.extend({
16127
- hook_event_name: z7.literal("UserPromptSubmit"),
16128
- prompt: z7.string()
16223
+ hook_event_name: z8.literal("UserPromptSubmit"),
16224
+ prompt: z8.string()
16129
16225
  });
16130
- var NotificationType = z7.enum([
16226
+ var NotificationType = z8.enum([
16131
16227
  "permission_prompt",
16132
16228
  "idle_prompt",
16133
16229
  "auth_success",
16134
16230
  "elicitation_dialog"
16135
16231
  ]);
16136
16232
  var NotificationInputSchema = HookInputBaseSchema.extend({
16137
- hook_event_name: z7.literal("Notification"),
16138
- message: z7.string(),
16233
+ hook_event_name: z8.literal("Notification"),
16234
+ message: z8.string(),
16139
16235
  notification_type: NotificationType
16140
16236
  });
16141
- var PreCompactTrigger = z7.enum(["manual", "auto"]);
16237
+ var PreCompactTrigger = z8.enum(["manual", "auto"]);
16142
16238
  var PreCompactInputSchema = HookInputBaseSchema.extend({
16143
- hook_event_name: z7.literal("PreCompact"),
16239
+ hook_event_name: z8.literal("PreCompact"),
16144
16240
  trigger: PreCompactTrigger,
16145
- custom_instructions: z7.string().optional()
16241
+ custom_instructions: z8.string().optional()
16146
16242
  });
16147
- var SetupTrigger = z7.enum(["init", "maintenance"]);
16243
+ var SetupTrigger = z8.enum(["init", "maintenance"]);
16148
16244
  var SetupInputSchema = HookInputBaseSchema.extend({
16149
- hook_event_name: z7.literal("Setup"),
16245
+ hook_event_name: z8.literal("Setup"),
16150
16246
  trigger: SetupTrigger
16151
16247
  });
16152
16248
  var SubagentStartInputSchema = HookInputBaseSchema.extend({
16153
- hook_event_name: z7.literal("SubagentStart"),
16154
- agent_id: z7.string(),
16155
- agent_type: z7.string()
16249
+ hook_event_name: z8.literal("SubagentStart"),
16250
+ agent_id: z8.string(),
16251
+ agent_type: z8.string()
16156
16252
  });
16157
16253
  var PermissionRequestInputSchema = HookInputBaseSchema.extend({
16158
- hook_event_name: z7.literal("PermissionRequest"),
16159
- tool_name: z7.string(),
16160
- tool_input: z7.record(z7.string(), z7.unknown()),
16161
- tool_use_id: z7.string()
16254
+ hook_event_name: z8.literal("PermissionRequest"),
16255
+ tool_name: z8.string(),
16256
+ tool_input: z8.record(z8.string(), z8.unknown()),
16257
+ tool_use_id: z8.string()
16162
16258
  });
16163
- var HookInputSchema = z7.discriminatedUnion("hook_event_name", [
16259
+ var HookInputSchema = z8.discriminatedUnion("hook_event_name", [
16164
16260
  SessionStartInputSchema,
16165
16261
  SessionEndInputSchema,
16166
16262
  PreToolUseInputSchema,
@@ -16175,57 +16271,57 @@ var HookInputSchema = z7.discriminatedUnion("hook_event_name", [
16175
16271
  SubagentStartInputSchema,
16176
16272
  PermissionRequestInputSchema
16177
16273
  ]);
16178
- var PermissionDecision = z7.enum(["allow", "deny", "ask"]);
16179
- var HookDecision = z7.enum(["block"]);
16180
- var HookOutputBaseSchema = z7.object({
16181
- continue: z7.boolean().optional(),
16182
- stopReason: z7.string().optional(),
16183
- suppressOutput: z7.boolean().optional(),
16184
- systemMessage: z7.string().optional()
16274
+ var PermissionDecision = z8.enum(["allow", "deny", "ask"]);
16275
+ var HookDecision = z8.enum(["block"]);
16276
+ var HookOutputBaseSchema = z8.object({
16277
+ continue: z8.boolean().optional(),
16278
+ stopReason: z8.string().optional(),
16279
+ suppressOutput: z8.boolean().optional(),
16280
+ systemMessage: z8.string().optional()
16185
16281
  });
16186
16282
  var PreToolUseOutputSchema = HookOutputBaseSchema.extend({
16187
- hookSpecificOutput: z7.object({
16188
- hookEventName: z7.literal("PreToolUse"),
16283
+ hookSpecificOutput: z8.object({
16284
+ hookEventName: z8.literal("PreToolUse"),
16189
16285
  permissionDecision: PermissionDecision.optional(),
16190
- permissionDecisionReason: z7.string().optional(),
16191
- updatedInput: z7.record(z7.string(), z7.unknown()).optional(),
16192
- additionalContext: z7.string().optional()
16286
+ permissionDecisionReason: z8.string().optional(),
16287
+ updatedInput: z8.record(z8.string(), z8.unknown()).optional(),
16288
+ additionalContext: z8.string().optional()
16193
16289
  }).optional()
16194
16290
  });
16195
16291
  var PostToolUseOutputSchema = HookOutputBaseSchema.extend({
16196
16292
  decision: HookDecision.optional(),
16197
- reason: z7.string().optional(),
16198
- hookSpecificOutput: z7.object({
16199
- hookEventName: z7.literal("PostToolUse"),
16200
- additionalContext: z7.string().optional()
16293
+ reason: z8.string().optional(),
16294
+ hookSpecificOutput: z8.object({
16295
+ hookEventName: z8.literal("PostToolUse"),
16296
+ additionalContext: z8.string().optional()
16201
16297
  }).optional()
16202
16298
  });
16203
16299
  var StopOutputSchema = HookOutputBaseSchema.extend({
16204
16300
  decision: HookDecision.optional(),
16205
- reason: z7.string().optional()
16301
+ reason: z8.string().optional()
16206
16302
  });
16207
16303
  var UserPromptSubmitOutputSchema = HookOutputBaseSchema.extend({
16208
16304
  decision: HookDecision.optional(),
16209
- reason: z7.string().optional(),
16210
- hookSpecificOutput: z7.object({
16211
- hookEventName: z7.literal("UserPromptSubmit"),
16212
- additionalContext: z7.string().optional()
16305
+ reason: z8.string().optional(),
16306
+ hookSpecificOutput: z8.object({
16307
+ hookEventName: z8.literal("UserPromptSubmit"),
16308
+ additionalContext: z8.string().optional()
16213
16309
  }).optional()
16214
16310
  });
16215
16311
  var SessionStartOutputSchema = HookOutputBaseSchema.extend({
16216
- hookSpecificOutput: z7.object({
16217
- hookEventName: z7.literal("SessionStart"),
16218
- additionalContext: z7.string().optional()
16312
+ hookSpecificOutput: z8.object({
16313
+ hookEventName: z8.literal("SessionStart"),
16314
+ additionalContext: z8.string().optional()
16219
16315
  }).optional()
16220
16316
  });
16221
16317
  var PermissionRequestOutputSchema = HookOutputBaseSchema.extend({
16222
- hookSpecificOutput: z7.object({
16223
- hookEventName: z7.literal("PermissionRequest"),
16224
- decision: z7.object({
16225
- behavior: z7.enum(["allow", "deny"]),
16226
- updatedInput: z7.record(z7.string(), z7.unknown()).optional(),
16227
- message: z7.string().optional(),
16228
- interrupt: z7.boolean().optional()
16318
+ hookSpecificOutput: z8.object({
16319
+ hookEventName: z8.literal("PermissionRequest"),
16320
+ decision: z8.object({
16321
+ behavior: z8.enum(["allow", "deny"]),
16322
+ updatedInput: z8.record(z8.string(), z8.unknown()).optional(),
16323
+ message: z8.string().optional(),
16324
+ interrupt: z8.boolean().optional()
16229
16325
  })
16230
16326
  }).optional()
16231
16327
  });
@@ -16991,9 +17087,9 @@ function isPendingTask(task) {
16991
17087
  }
16992
17088
  function createBlockResult(pendingTasks, maxToShow) {
16993
17089
  const taskList = formatPendingTasks(pendingTasks, maxToShow);
16994
- const count = String(pendingTasks.length);
17090
+ const count2 = String(pendingTasks.length);
16995
17091
  return blockStop(
16996
- `There are ${count} incomplete task(s):
17092
+ `There are ${count2} incomplete task(s):
16997
17093
  ${taskList}
16998
17094
  Please complete or cancel these tasks before stopping.`
16999
17095
  );
@@ -17861,8 +17957,8 @@ function scriptedIO() {
17861
17957
 
17862
17958
  // src/governance/claims-registry.ts
17863
17959
  import { parse as parseYaml2 } from "yaml";
17864
- import { z as z8 } from "zod";
17865
- var VerificationMethodSchema = z8.enum([
17960
+ import { z as z9 } from "zod";
17961
+ var VerificationMethodSchema = z9.enum([
17866
17962
  "file-exists",
17867
17963
  "file-contains",
17868
17964
  "source-contains-all",
@@ -17870,7 +17966,7 @@ var VerificationMethodSchema = z8.enum([
17870
17966
  "manifest-tool-count",
17871
17967
  "roadmap-status"
17872
17968
  ]);
17873
- var ClaimStatusSchema = z8.enum([
17969
+ var ClaimStatusSchema = z9.enum([
17874
17970
  "verified",
17875
17971
  // backed by live evidence the runner checks every CI run
17876
17972
  "partial",
@@ -17880,25 +17976,25 @@ var ClaimStatusSchema = z8.enum([
17880
17976
  "stale"
17881
17977
  // known-broken backing; tracked, must not regress to silent
17882
17978
  ]);
17883
- var EvidenceTypeSchema = z8.enum(["test", "gate", "eval-artifact", "adr", "source"]);
17884
- var VerificationSchema = z8.object({
17979
+ var EvidenceTypeSchema = z9.enum(["test", "gate", "eval-artifact", "adr", "source"]);
17980
+ var VerificationSchema = z9.object({
17885
17981
  method: VerificationMethodSchema,
17886
17982
  /** Repo-root-relative path to the live backing evidence. */
17887
- path: z8.string().min(1),
17983
+ path: z9.string().min(1),
17888
17984
  /**
17889
17985
  * Expected value. Numeric for `enum-member-count` / `manifest-tool-count`,
17890
17986
  * string for `file-contains` / `roadmap-status`. Unused by `file-exists`.
17891
17987
  */
17892
- expected: z8.union([z8.number().int().nonnegative(), z8.string().min(1)]).optional(),
17988
+ expected: z9.union([z9.number().int().nonnegative(), z9.string().min(1)]).optional(),
17893
17989
  /** Target symbol name (e.g. the exported `z.enum` const) for count methods. */
17894
- symbol: z8.string().min(1).optional(),
17990
+ symbol: z9.string().min(1).optional(),
17895
17991
  /**
17896
17992
  * Literal the claim's `subject` doc must contain (#3877). When present, the
17897
17993
  * runner verifies the doc making the claim — not just the source of truth —
17898
17994
  * so README/ARCHITECTURE drift fails the gate. Omit only for claims whose
17899
17995
  * `subject` IS the verification `path` (e.g. `roadmap-status`).
17900
17996
  */
17901
- subjectContains: z8.string().min(1).optional()
17997
+ subjectContains: z9.string().min(1).optional()
17902
17998
  }).strict().superRefine((v, ctx) => {
17903
17999
  const needsNumber = v.method === "enum-member-count" || v.method === "manifest-tool-count";
17904
18000
  const needsString = v.method === "file-contains" || v.method === "source-contains-all" || v.method === "roadmap-status";
@@ -17924,24 +18020,24 @@ var VerificationSchema = z8.object({
17924
18020
  });
17925
18021
  }
17926
18022
  });
17927
- var ClaimEntrySchema = z8.object({
18023
+ var ClaimEntrySchema = z9.object({
17928
18024
  /** Stable, kebab-case identifier; never reused. */
17929
- id: z8.string().regex(/^[a-z0-9]+(-[a-z0-9]+)*$/, "id must be kebab-case"),
18025
+ id: z9.string().regex(/^[a-z0-9]+(-[a-z0-9]+)*$/, "id must be kebab-case"),
17930
18026
  /** Human-readable claim text (<=25 words). */
17931
- claim: z8.string().min(1).refine((s) => s.trim().split(/\s+/).length <= 25, "claim must be <=25 words"),
18027
+ claim: z9.string().min(1).refine((s) => s.trim().split(/\s+/).length <= 25, "claim must be <=25 words"),
17932
18028
  /** Repo-root-relative doc that makes the claim (e.g. README.md). */
17933
- subject: z8.string().min(1),
18029
+ subject: z9.string().min(1),
17934
18030
  status: ClaimStatusSchema,
17935
18031
  evidenceType: EvidenceTypeSchema,
17936
18032
  verification: VerificationSchema,
17937
18033
  /** ISO date (YYYY-MM-DD) the claim was last manually verified. */
17938
- lastVerified: z8.string().regex(/^\d{4}-\d{2}-\d{2}$/, "lastVerified must be YYYY-MM-DD"),
18034
+ lastVerified: z9.string().regex(/^\d{4}-\d{2}-\d{2}$/, "lastVerified must be YYYY-MM-DD"),
17939
18035
  /** Optional caveat surfaced in reports (required-ish for `partial`). */
17940
- caveat: z8.string().optional()
18036
+ caveat: z9.string().optional()
17941
18037
  }).strict();
17942
- var ClaimsRegistrySchema = z8.object({
17943
- version: z8.number().int().positive(),
17944
- claims: z8.array(ClaimEntrySchema).min(1).superRefine((claims, ctx) => {
18038
+ var ClaimsRegistrySchema = z9.object({
18039
+ version: z9.number().int().positive(),
18040
+ claims: z9.array(ClaimEntrySchema).min(1).superRefine((claims, ctx) => {
17945
18041
  const seen = /* @__PURE__ */ new Set();
17946
18042
  for (const [i, c] of claims.entries()) {
17947
18043
  if (seen.has(c.id)) {
@@ -18411,7 +18507,7 @@ import { readFileSync as readFileSync14 } from "node:fs";
18411
18507
  // src/cli/release-validate-helpers.ts
18412
18508
  import { execSync as execSync5 } from "node:child_process";
18413
18509
  import { existsSync as existsSync16, readFileSync as readFileSync13 } from "node:fs";
18414
- import { z as z9 } from "zod";
18510
+ import { z as z10 } from "zod";
18415
18511
 
18416
18512
  // src/cli/release-secret-scan.ts
18417
18513
  import { execSync as execSync4 } from "node:child_process";
@@ -18435,12 +18531,12 @@ function scanRecentCommitsForSecrets(options = {}) {
18435
18531
  }
18436
18532
 
18437
18533
  // src/cli/release-validate-helpers.ts
18438
- var NPM_AUDIT_REPORT_SCHEMA = z9.object({
18439
- metadata: z9.object({
18440
- vulnerabilities: z9.object({
18441
- moderate: z9.number().int().nonnegative(),
18442
- high: z9.number().int().nonnegative(),
18443
- critical: z9.number().int().nonnegative()
18534
+ var NPM_AUDIT_REPORT_SCHEMA = z10.object({
18535
+ metadata: z10.object({
18536
+ vulnerabilities: z10.object({
18537
+ moderate: z10.number().int().nonnegative(),
18538
+ high: z10.number().int().nonnegative(),
18539
+ critical: z10.number().int().nonnegative()
18444
18540
  })
18445
18541
  })
18446
18542
  });
@@ -20074,9 +20170,9 @@ function createSeededRng(seed) {
20074
20170
  return ((t ^ t >>> 14) >>> 0) / 4294967296;
20075
20171
  };
20076
20172
  }
20077
- function generateTasks(count, rng) {
20173
+ function generateTasks(count2, rng) {
20078
20174
  const tasks = [];
20079
- for (let i = 0; i < count; i++) {
20175
+ for (let i = 0; i < count2; i++) {
20080
20176
  const catIdx = Math.floor(rng() * TASK_CATEGORIES.length);
20081
20177
  const category = TASK_CATEGORIES[catIdx] ?? "code_generation";
20082
20178
  tasks.push({
@@ -20980,7 +21076,7 @@ function startImprovementReviewScheduler(options) {
20980
21076
  let running = false;
20981
21077
  const runOnce = async () => {
20982
21078
  try {
20983
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-3I2L2PBA.js");
21079
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-EBC3I55P.js");
20984
21080
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
20985
21081
  const result = await runImprovementReview2(input, { logger: logger22 });
20986
21082
  logger22.info("Scheduled improvement_review complete", {
@@ -21466,8 +21562,8 @@ async function initUpstreamServers(gatewayConfig, deps) {
21466
21562
  servers: upstreamServers.length,
21467
21563
  tools: tools.length
21468
21564
  });
21469
- const { z: z15 } = await import("zod");
21470
- const passthroughSchema = z15.looseObject({});
21565
+ const { z: z16 } = await import("zod");
21566
+ const passthroughSchema = z16.looseObject({});
21471
21567
  for (const tool of tools) {
21472
21568
  registerSingleUpstreamTool(tool, manager, passthroughSchema, deps);
21473
21569
  }
@@ -23064,7 +23160,7 @@ function adaptConfigToLibrary(config) {
23064
23160
  }
23065
23161
  function createBeliefPromoter() {
23066
23162
  return async (event) => {
23067
- const { getToolMemory } = await import("./tool-memory-A6XPMC7X.js");
23163
+ const { getToolMemory } = await import("./tool-memory-QESESDGS.js");
23068
23164
  const tm = getToolMemory();
23069
23165
  await tm.recordBelief(
23070
23166
  `skill:${event.name}`,
@@ -24234,7 +24330,7 @@ async function handleResearchCommand(args) {
24234
24330
  }
24235
24331
  }
24236
24332
  async function handleRegistryCommand(args) {
24237
- const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-7U5HC6NB.js");
24333
+ const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-SQQNXDGS.js");
24238
24334
  const subcommand = args.subcommand;
24239
24335
  if (!isValidRegistrySubcommand(subcommand)) {
24240
24336
  process.stdout.write(`${formatRegistryUsage()}
@@ -24302,12 +24398,12 @@ async function handleDoctorCommand(args) {
24302
24398
  }
24303
24399
  });
24304
24400
  if (args.options.deep) {
24305
- const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-IGFWT3TZ.js");
24401
+ const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-VOX7KVGK.js");
24306
24402
  const diag = runDeepDiagnostics2();
24307
24403
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
24308
24404
  }
24309
24405
  if (args.options.live) {
24310
- const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-BE6JTA3J.js");
24406
+ const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-AES3PON5.js");
24311
24407
  const report = await runLiveReadiness(cliListAdmits !== void 0 ? { cliListAdmits } : {});
24312
24408
  process.stdout.write(formatLiveReadiness(report) + "\n");
24313
24409
  if (doctorResult !== void 0) {
@@ -24470,20 +24566,20 @@ function handleWarmUpCommand(_args) {
24470
24566
  return cliExit(EXIT_CODES.SUCCESS);
24471
24567
  }
24472
24568
  function handleE2EEvalCommand(args) {
24473
- const count = parsePositiveInt(args.positionals[1], 50);
24474
- const result = runE2EEval({ taskCount: count });
24569
+ const count2 = parsePositiveInt(args.positionals[1], 50);
24570
+ const result = runE2EEval({ taskCount: count2 });
24475
24571
  process.stdout.write(formatE2EEvalResult(result) + "\n");
24476
24572
  return cliExit(result.passed ? EXIT_CODES.SUCCESS : 1);
24477
24573
  }
24478
24574
  function handleRoutingABCommand(args) {
24479
- const count = parsePositiveInt(args.positionals[1], 30);
24480
- const result = runRoutingAB({ taskCount: count });
24575
+ const count2 = parsePositiveInt(args.positionals[1], 30);
24576
+ const result = runRoutingAB({ taskCount: count2 });
24481
24577
  process.stdout.write(formatABReport(result) + "\n");
24482
24578
  return cliExit(EXIT_CODES.SUCCESS);
24483
24579
  }
24484
24580
  function handleMemoryEvalCommand(args) {
24485
- const count = parsePositiveInt(args.positionals[1], 50);
24486
- const result = runMemoryEval(count);
24581
+ const count2 = parsePositiveInt(args.positionals[1], 50);
24582
+ const result = runMemoryEval(count2);
24487
24583
  process.stdout.write(formatMemoryEvalReport(result) + "\n");
24488
24584
  return cliExit(EXIT_CODES.SUCCESS);
24489
24585
  }
@@ -25054,7 +25150,7 @@ async function runInitPortableFlow(args) {
25054
25150
  return cliExit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
25055
25151
  }
25056
25152
  async function runInitOpencodeFlow(args) {
25057
- const { runInitOpencode } = await import("./init-opencode-5CFNILZP.js");
25153
+ const { runInitOpencode } = await import("./init-opencode-F6FV63VR.js");
25058
25154
  const opencodePath = args.options.opencode;
25059
25155
  if (opencodePath === void 0 || opencodePath === "") {
25060
25156
  process.stderr.write("Error: --opencode requires a path argument.\n");
@@ -25080,7 +25176,7 @@ async function runInitOpencodeFlow(args) {
25080
25176
  return cliExit(EXIT_CODES.SUCCESS);
25081
25177
  }
25082
25178
  async function renderOpencodeValidate(opencodePath) {
25083
- const { runOpencodeValidate } = await import("./init-opencode-5CFNILZP.js");
25179
+ const { runOpencodeValidate } = await import("./init-opencode-F6FV63VR.js");
25084
25180
  const result = await runOpencodeValidate(opencodePath);
25085
25181
  if (!result.ok) {
25086
25182
  process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
@@ -25181,7 +25277,7 @@ function resolveCustomApiInput(args) {
25181
25277
  async function runCustomApiSetup(args) {
25182
25278
  const input = resolveCustomApiInput(args);
25183
25279
  if (input === void 0) return EXIT_CODES.SERVER_START_FAILED;
25184
- const { configureCustomApi } = await import("./setup-custom-api-6X6FUHNV.js");
25280
+ const { configureCustomApi } = await import("./setup-custom-api-H74QY7EM.js");
25185
25281
  const result = await configureCustomApi(input);
25186
25282
  if (!result.ok) {
25187
25283
  process.stderr.write(`\u2717 ${result.error.message}
@@ -25390,15 +25486,15 @@ function findPackageRoot(startDir) {
25390
25486
  }
25391
25487
  function countFiles(dir, pattern) {
25392
25488
  if (!fs15.existsSync(dir)) return 0;
25393
- let count = 0;
25489
+ let count2 = 0;
25394
25490
  for (const entry of fs15.readdirSync(dir, { withFileTypes: true })) {
25395
25491
  if (entry.isDirectory() && entry.name !== "node_modules" && entry.name !== "dist") {
25396
- count += countFiles(path16.join(dir, entry.name), pattern);
25492
+ count2 += countFiles(path16.join(dir, entry.name), pattern);
25397
25493
  } else if (entry.isFile() && pattern.test(entry.name)) {
25398
- count++;
25494
+ count2++;
25399
25495
  }
25400
25496
  }
25401
- return count;
25497
+ return count2;
25402
25498
  }
25403
25499
  function readVersion(pkgRoot) {
25404
25500
  try {
@@ -25949,10 +26045,10 @@ async function measurePromotionEffectiveness(backend, logger22) {
25949
26045
  });
25950
26046
  return { retentionRate, itemsPromoted: promotedEntries.length, itemsRetained: retained };
25951
26047
  }
25952
- async function storeTestEntries(backend, importance, count) {
26048
+ async function storeTestEntries(backend, importance, count2) {
25953
26049
  const keys = [];
25954
26050
  const metadata = { importance, tags: ["decay-test"] };
25955
- for (let i = 0; i < count; i++) {
26051
+ for (let i = 0; i < count2; i++) {
25956
26052
  const key = `${importance}-importance-${String(getTimeProvider().now())}-${String(i)}`;
25957
26053
  const value = { importance, content: `${importance} value content #${String(i)}` };
25958
26054
  const storeResult = await backend.store(key, value, metadata);
@@ -25987,10 +26083,10 @@ async function measureDecayAppropriateness(backend, logger22) {
25987
26083
  }
25988
26084
 
25989
26085
  // src/testing/memory-benchmark-synthetic.ts
25990
- async function generateSyntheticTestCases(backend, count = 50) {
26086
+ async function generateSyntheticTestCases(backend, count2 = 50) {
25991
26087
  const testCases = [];
25992
26088
  const topics = ["typescript", "react", "nodejs", "testing", "security", "performance"];
25993
- const entriesPerTopic = Math.ceil(count / topics.length);
26089
+ const entriesPerTopic = Math.ceil(count2 / topics.length);
25994
26090
  for (const topic of topics) {
25995
26091
  const relevantKeys = /* @__PURE__ */ new Set();
25996
26092
  for (let i = 0; i < entriesPerTopic; i++) {
@@ -27794,27 +27890,27 @@ function makeGhPrCreator() {
27794
27890
  import { createHash as createHash4 } from "node:crypto";
27795
27891
  import { readFileSync as readFileSync20 } from "node:fs";
27796
27892
  import { isAbsolute as isAbsolute3 } from "node:path";
27797
- import { z as z11 } from "zod";
27893
+ import { z as z12 } from "zod";
27798
27894
 
27799
27895
  // src/mcp/tools/remediation-review-sample.ts
27800
27896
  import { createHash as createHash3, randomBytes, randomUUID as randomUUID2 } from "node:crypto";
27801
- import { z as z10 } from "zod";
27802
- var PanelSnapshotSchema = z10.object({
27803
- soakRef: z10.string(),
27804
- voteRecordId: z10.string().min(1),
27805
- soakRecordHash: z10.string().regex(/^[a-f0-9]{64}$/),
27806
- sound: z10.boolean()
27897
+ import { z as z11 } from "zod";
27898
+ var PanelSnapshotSchema = z11.object({
27899
+ soakRef: z11.string(),
27900
+ voteRecordId: z11.string().min(1),
27901
+ soakRecordHash: z11.string().regex(/^[a-f0-9]{64}$/),
27902
+ sound: z11.boolean()
27807
27903
  });
27808
- var ReviewSampleSchema = z10.object({
27809
- id: z10.string().min(1),
27810
- seed: z10.string().min(1),
27811
- owner: z10.string().trim().min(1),
27812
- sampledAt: z10.string(),
27813
- refs: z10.array(z10.string()),
27904
+ var ReviewSampleSchema = z11.object({
27905
+ id: z11.string().min(1),
27906
+ seed: z11.string().min(1),
27907
+ owner: z11.string().trim().min(1),
27908
+ sampledAt: z11.string(),
27909
+ refs: z11.array(z11.string()),
27814
27910
  /** Present on new draws; legacy draws remain readable. */
27815
- randomRefs: z10.array(z10.string()).optional(),
27816
- mandatoryOverrideRefs: z10.array(z10.string()).optional(),
27817
- panels: z10.array(PanelSnapshotSchema)
27911
+ randomRefs: z11.array(z11.string()).optional(),
27912
+ mandatoryOverrideRefs: z11.array(z11.string()).optional(),
27913
+ panels: z11.array(PanelSnapshotSchema)
27818
27914
  }).refine(
27819
27915
  (s) => new Set(s.refs).size === s.refs.length && s.refs.length === s.panels.length && s.refs.every((ref, i) => s.panels[i]?.soakRef === ref),
27820
27916
  { message: "Sample refs must be distinct and bound to panel snapshots" }
@@ -27839,9 +27935,9 @@ function getRemediationReviewSampleStore() {
27839
27935
  return createRemediationReviewSampleStore();
27840
27936
  }
27841
27937
  function drawRemediationReviewSample(records, n, owner, seed = randomBytes(32).toString("hex"), samples = []) {
27842
- z10.number().int().positive().parse(n);
27843
- owner = z10.string().trim().min(1).parse(owner);
27844
- z10.string().min(1).parse(seed);
27938
+ z11.number().int().positive().parse(n);
27939
+ owner = z11.string().trim().min(1).parse(owner);
27940
+ z11.string().min(1).parse(seed);
27845
27941
  const current = currentRemediationJudgments(records);
27846
27942
  const candidates = [...current.values()].filter((r) => r.judgeKind === "panel");
27847
27943
  const unconfirmed = new Set(
@@ -28161,29 +28257,29 @@ function hashSoakRecordLine(line) {
28161
28257
  function soakRefOf(record) {
28162
28258
  return `${record.signalKey}::${record.timestamp}`;
28163
28259
  }
28164
- var ReviewRecordSchema = z11.object({
28165
- judgeKind: z11.enum(["human", "panel", "owner-sample"]).default("human"),
28166
- voteRecordId: z11.string().min(1).optional(),
28260
+ var ReviewRecordSchema = z12.object({
28261
+ judgeKind: z12.enum(["human", "panel", "owner-sample"]).default("human"),
28262
+ voteRecordId: z12.string().min(1).optional(),
28167
28263
  /** Exact absolute ledger used by the panel vote; absent legacy rows cannot verify. */
28168
- voteLedgerPath: z11.string().refine(isAbsolute3, "Vote ledger path must be absolute").optional(),
28169
- soakRecordHash: z11.string().regex(/^[a-f0-9]{64}$/).optional(),
28170
- sampleId: z11.string().min(1).optional(),
28264
+ voteLedgerPath: z12.string().refine(isAbsolute3, "Vote ledger path must be absolute").optional(),
28265
+ soakRecordHash: z12.string().regex(/^[a-f0-9]{64}$/).optional(),
28266
+ sampleId: z12.string().min(1).optional(),
28171
28267
  /** Reference to the reviewed soak selection (`signalKey::timestamp`). */
28172
- soakRef: z11.string(),
28268
+ soakRef: z12.string(),
28173
28269
  /** ISO-8601 time the review was recorded. */
28174
- reviewedAt: z11.string(),
28270
+ reviewedAt: z12.string(),
28175
28271
  /** Always true — a persisted record is, by construction, a review. */
28176
- reviewed: z11.literal(true),
28272
+ reviewed: z12.literal(true),
28177
28273
  /** Whether the evaluator assessed the selection SOUND. */
28178
- sound: z11.boolean(),
28274
+ sound: z12.boolean(),
28179
28275
  /** Named evaluator who performed the review (required — the gate's named-evaluator criterion). */
28180
- evaluator: z11.string().min(1),
28276
+ evaluator: z12.string().min(1),
28181
28277
  /** Named owner accepting enforcement, recorded at sign-off time (optional per record). */
28182
- owner: z11.string().min(1).optional(),
28278
+ owner: z12.string().min(1).optional(),
28183
28279
  /** True only for the explicit sign-off operation; absent on legacy human rows. */
28184
- ownerSignedOff: z11.boolean().optional(),
28280
+ ownerSignedOff: z12.boolean().optional(),
28185
28281
  /** Free-text note (secret-scrubbed). */
28186
- note: z11.string().optional()
28282
+ note: z12.string().optional()
28187
28283
  }).superRefine((record, ctx) => {
28188
28284
  if (record.judgeKind === "panel" && (record.voteRecordId === void 0 || record.soakRecordHash === void 0 || record.evaluator !== `panel:${record.voteRecordId}` || record.owner !== void 0)) {
28189
28285
  ctx.addIssue({
@@ -28495,12 +28591,12 @@ import { createHash as createHash5 } from "node:crypto";
28495
28591
  import { mkdirSync as mkdirSync8, writeFileSync as writeFileSync10, rmSync as rmSync2, realpathSync as realpathSync2 } from "node:fs";
28496
28592
  import { dirname as dirname12, join as join22 } from "node:path";
28497
28593
  import { execFileSync as execFileSync6 } from "node:child_process";
28498
- import { z as z13 } from "zod";
28594
+ import { z as z14 } from "zod";
28499
28595
 
28500
28596
  // src/mcp/tools/codepr-guards.ts
28501
28597
  import { realpathSync } from "node:fs";
28502
28598
  import { isAbsolute as isAbsolute4, resolve as resolve15, relative as relative4, sep, dirname as dirname11, basename as basename5 } from "node:path";
28503
- import { z as z12 } from "zod";
28599
+ import { z as z13 } from "zod";
28504
28600
  function deny(reason, detail) {
28505
28601
  return { ok: false, reason, detail };
28506
28602
  }
@@ -28657,11 +28753,11 @@ function classifyPath(relPath) {
28657
28753
  }
28658
28754
  return { sensitive: false };
28659
28755
  }
28660
- var BlastRadiusLimitsSchema = z12.object({
28756
+ var BlastRadiusLimitsSchema = z13.object({
28661
28757
  /** Max number of files the change may touch. Default 20. */
28662
- maxFiles: z12.number().int().positive().default(20),
28758
+ maxFiles: z13.number().int().positive().default(20),
28663
28759
  /** Max total changed lines (added + removed across all files). Default 400. */
28664
- maxLines: z12.number().int().positive().default(400)
28760
+ maxLines: z13.number().int().positive().default(400)
28665
28761
  }).strict();
28666
28762
  var DEFAULT_BLAST_RADIUS_LIMITS = Object.freeze(
28667
28763
  BlastRadiusLimitsSchema.parse({})
@@ -28739,13 +28835,13 @@ function auditAutonomousEvent(logger22, record) {
28739
28835
  }
28740
28836
  return { ok: true };
28741
28837
  }
28742
- var ResourceBudgetLimitsSchema = z12.object({
28838
+ var ResourceBudgetLimitsSchema = z13.object({
28743
28839
  /** Wall-clock ceiling in ms. Default 600000 (10 min). */
28744
- maxWallClockMs: z12.number().int().positive().default(6e5),
28840
+ maxWallClockMs: z13.number().int().positive().default(6e5),
28745
28841
  /** Token ceiling. Default 200000. */
28746
- maxTokens: z12.number().int().positive().default(2e5),
28842
+ maxTokens: z13.number().int().positive().default(2e5),
28747
28843
  /** Tool-call ceiling. Default 200. */
28748
- maxToolCalls: z12.number().int().positive().default(200)
28844
+ maxToolCalls: z13.number().int().positive().default(200)
28749
28845
  }).strict();
28750
28846
  var DEFAULT_RESOURCE_BUDGET_LIMITS = Object.freeze(
28751
28847
  ResourceBudgetLimitsSchema.parse({})
@@ -28805,19 +28901,19 @@ function runGuard(name, fn) {
28805
28901
  }
28806
28902
 
28807
28903
  // src/mcp/tools/codepr-orchestrator.ts
28808
- var ProposedChangeSchema = z13.object({
28904
+ var ProposedChangeSchema = z14.object({
28809
28905
  /** Repo-relative path the change would write. */
28810
- relPath: z13.string().min(1),
28906
+ relPath: z14.string().min(1),
28811
28907
  /** The full new file content. */
28812
- newContent: z13.string()
28908
+ newContent: z14.string()
28813
28909
  }).strict();
28814
- var CodePrRunInputSchema = z13.object({
28910
+ var CodePrRunInputSchema = z14.object({
28815
28911
  /** Correlates all audit events for this run. */
28816
- runId: z13.string().min(1),
28912
+ runId: z14.string().min(1),
28817
28913
  /** Hash of the source signal (fitness/improvement) that triggered the run. */
28818
- sourceSignalHash: z13.string().min(1),
28914
+ sourceSignalHash: z14.string().min(1),
28819
28915
  /** The proposed change set. */
28820
- changes: z13.array(ProposedChangeSchema).min(1)
28916
+ changes: z14.array(ProposedChangeSchema).min(1)
28821
28917
  }).strict();
28822
28918
  var ORCHESTRATOR_USAGE_ZERO = { wallClockMs: 0, tokens: 0, toolCalls: 0 };
28823
28919
  function sha256(s) {
@@ -29036,22 +29132,22 @@ function planCodePrRun(input, logger22, options = {}) {
29036
29132
  }
29037
29133
 
29038
29134
  // src/mcp/tools/codepr-soak-store.ts
29039
- import { z as z14 } from "zod";
29040
- var CodePrSoakRecordSchema = z14.object({
29135
+ import { z as z15 } from "zod";
29136
+ var CodePrSoakRecordSchema = z15.object({
29041
29137
  /** ISO-8601 capture time. */
29042
- timestamp: z14.string(),
29138
+ timestamp: z15.string(),
29043
29139
  /** Correlates the data point to the dry-run's orchestrator runId. */
29044
- runId: z14.string(),
29140
+ runId: z15.string(),
29045
29141
  /** The improvement signal's stable key that triggered the dry-run. */
29046
- signalKey: z14.string(),
29142
+ signalKey: z15.string(),
29047
29143
  /** Explicit provenance on new writes; absent only on legacy records. */
29048
- origin: z14.enum(["production", "test"]).optional(),
29144
+ origin: z15.enum(["production", "test"]).optional(),
29049
29145
  /** True when the dry-run plan succeeded with ZERO guard denial. */
29050
- green: z14.boolean(),
29146
+ green: z15.boolean(),
29051
29147
  /** The guard denial reason when `green` is false; omitted for a green plan. */
29052
- denialReason: z14.string().optional(),
29148
+ denialReason: z15.string().optional(),
29053
29149
  /** Files the dry-run plan touched (0 on denial before the diff was realized). */
29054
- filesTouched: z14.number().int().nonnegative()
29150
+ filesTouched: z15.number().int().nonnegative()
29055
29151
  }).strict();
29056
29152
  var CODEPR_SOAK_MAX_RECORDS = 1e4;
29057
29153
  function getCodePrSoakFile() {
@@ -30775,20 +30871,20 @@ function runSignOff(args) {
30775
30871
  throw new Error("remediation-review sign-off: no reviews to sign off (mark selections first)");
30776
30872
  }
30777
30873
  const latest = signOffJudgments(existing, owner);
30778
- let count = 0;
30874
+ let count2 = 0;
30779
30875
  for (const r of latest.values()) {
30780
30876
  if (!store.record({ ...r, owner, ownerSignedOff: true }))
30781
30877
  throw new Error("Sign-off persistence failed");
30782
- count++;
30878
+ count2++;
30783
30879
  }
30784
30880
  const summary = readRemediationReviewSummary();
30785
30881
  if (args.options.format === "json") {
30786
- process.stdout.write(`${JSON.stringify({ owner, signedOff: count, summary }, null, 2)}
30882
+ process.stdout.write(`${JSON.stringify({ owner, signedOff: count2, summary }, null, 2)}
30787
30883
  `);
30788
30884
  return;
30789
30885
  }
30790
30886
  process.stdout.write(
30791
- `owner sign-off recorded by ${owner} across ${String(count)} selection(s)
30887
+ `owner sign-off recorded by ${owner} across ${String(count2)} selection(s)
30792
30888
  `
30793
30889
  );
30794
30890
  }
@@ -31501,7 +31597,7 @@ async function main() {
31501
31597
  parsedArgs = { ...parsedArgs, command: "help" };
31502
31598
  }
31503
31599
  if (shouldBootstrapGateway(parsedArgs)) {
31504
- const { wireGateway: wireGateway2 } = await import("./cli-server-gateway-J6SKTZVM.js");
31600
+ const { wireGateway: wireGateway2 } = await import("./cli-server-gateway-HHRF22EB.js");
31505
31601
  await wireGateway2(createLogger({ component: "nexus-cli" }));
31506
31602
  }
31507
31603
  await dispatchCommand(parsedArgs);