@namzu/cli 52.2.0 → 53.0.1

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 (348) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-QNJODJHL.js → acp-IOWTKF2X.js} +49 -49
  4. package/dist/chunks/{activity-command-EXDEKDLZ.js → activity-command-U2AOTIVF.js} +12 -12
  5. package/dist/chunks/{add-L6FKDP7N.js → add-YYQLPCP2.js} +19 -19
  6. package/dist/chunks/{agent-VJRVABX2.js → agent-WL6NX4W6.js} +36 -36
  7. package/dist/chunks/agent-session-L6J5GZVX.js +73 -0
  8. package/dist/chunks/{apply-at-exit-OGSLNQHX.js → apply-at-exit-BRXYTQVG.js} +8 -8
  9. package/dist/chunks/{archive-Z34VDKBO.js → archive-UE756BME.js} +10 -10
  10. package/dist/chunks/{bin-main-XIAVK2BK.js → bin-main-XR2DJOI6.js} +8 -8
  11. package/dist/chunks/{binding-P5DCYNQG.js → binding-HCIPLFUO.js} +3 -3
  12. package/dist/chunks/{browser-MEVCXUOS.js → browser-7SFVCKSO.js} +6 -6
  13. package/dist/chunks/{chat-AQICSI4M.js → chat-K6GQGRUA.js} +15 -15
  14. package/dist/chunks/{chunk-CKL6DYHR.js → chunk-24N42TGE.js} +6 -6
  15. package/dist/chunks/{chunk-BCPKC2WP.js → chunk-2U357RJS.js} +10 -10
  16. package/dist/chunks/{chunk-ZQIWZDPM.js → chunk-2VSICYQP.js} +2 -2
  17. package/dist/chunks/{chunk-USDNK4TL.js → chunk-2WDF5N2A.js} +9 -9
  18. package/dist/chunks/{chunk-F7XHPIXJ.js → chunk-3NAVAACC.js} +2 -2
  19. package/dist/chunks/{chunk-VYUMMKAA.js → chunk-46VSU4QF.js} +2 -2
  20. package/dist/chunks/{chunk-ZIFCQKET.js → chunk-4FV2VZS6.js} +3 -3
  21. package/dist/chunks/{chunk-DE5AFFGK.js → chunk-4RTQTX5R.js} +2 -2
  22. package/dist/chunks/{chunk-A54YZM6S.js → chunk-5I45HTKW.js} +45 -13
  23. package/dist/chunks/chunk-5I45HTKW.js.map +6 -0
  24. package/dist/chunks/{chunk-TUFFLY74.js → chunk-5NDRDTNX.js} +3 -3
  25. package/dist/chunks/chunk-5PO5ZH6M.js +528 -0
  26. package/dist/chunks/chunk-5PO5ZH6M.js.map +6 -0
  27. package/dist/chunks/{chunk-YFMR2PV7.js → chunk-6CFPN6I4.js} +2 -2
  28. package/dist/chunks/{chunk-QALDU3HZ.js → chunk-7AWFHVMT.js} +3 -3
  29. package/dist/chunks/{chunk-LANIV6OQ.js → chunk-7JT7DNR7.js} +3 -3
  30. package/dist/chunks/{chunk-DC76BQGF.js → chunk-A47ZNTW7.js} +3 -3
  31. package/dist/chunks/{chunk-OBA275BH.js → chunk-AGFGC7SI.js} +3 -3
  32. package/dist/chunks/{chunk-SZXJSTKM.js → chunk-AME342DQ.js} +4 -4
  33. package/dist/chunks/{chunk-7ZC4ZAW4.js → chunk-BHOZPFJM.js} +2 -2
  34. package/dist/chunks/{chunk-7UTSUGXV.js → chunk-C5XQHEYB.js} +2 -2
  35. package/dist/chunks/{chunk-FOP7MQEU.js → chunk-CCYAWSZL.js} +5 -5
  36. package/dist/chunks/{chunk-MVJXTG2V.js → chunk-CQKYKQEF.js} +4 -4
  37. package/dist/chunks/{chunk-U5LAYHN6.js → chunk-DHS5CQNC.js} +6 -6
  38. package/dist/chunks/{chunk-FZVZJQHL.js → chunk-DI4L3GH5.js} +2 -2
  39. package/dist/chunks/{chunk-YMMEAXUK.js → chunk-DIWEKTYK.js} +5 -5
  40. package/dist/chunks/{chunk-KLUCQZAS.js → chunk-DOFQWVBL.js} +3 -3
  41. package/dist/chunks/{chunk-ET6Y6QTB.js → chunk-DSKNFDTL.js} +2 -2
  42. package/dist/chunks/{chunk-ZI7BWTPK.js → chunk-EA73SWCT.js} +4 -4
  43. package/dist/chunks/{chunk-G7KLFAVX.js → chunk-EKMHZKVP.js} +2 -2
  44. package/dist/chunks/{chunk-WG6CPS5G.js → chunk-EKQ6J5KA.js} +2 -2
  45. package/dist/chunks/{chunk-BWHOX7GQ.js → chunk-F3SQRGKZ.js} +2 -2
  46. package/dist/chunks/{chunk-PVHTDN4J.js → chunk-FEIIR46G.js} +2 -2
  47. package/dist/chunks/{chunk-5GP2SAXN.js → chunk-FX7BSCB4.js} +4 -4
  48. package/dist/chunks/{chunk-USAVWSGJ.js → chunk-HGZYNEQE.js} +3 -3
  49. package/dist/chunks/{chunk-4I4BFAV4.js → chunk-HJILJSZO.js} +2 -2
  50. package/dist/chunks/{chunk-AVPOO4NC.js → chunk-HOB6FTE2.js} +3 -3
  51. package/dist/chunks/{chunk-T2Q6B7IG.js → chunk-HOKSVFIC.js} +6 -6
  52. package/dist/chunks/{chunk-WZHS724Y.js → chunk-HTHNDZ3L.js} +2 -2
  53. package/dist/chunks/{chunk-CA7QW5JY.js → chunk-HUONDMU4.js} +2 -2
  54. package/dist/chunks/{chunk-47E6HKJT.js → chunk-J3PHMXN4.js} +4 -4
  55. package/dist/chunks/{chunk-WSEJK4WO.js → chunk-J7SA5BCI.js} +4 -4
  56. package/dist/chunks/{chunk-YLEBTBWP.js → chunk-KAPCNFMC.js} +3 -3
  57. package/dist/chunks/{chunk-UKOCGHMU.js → chunk-KNQ7R54U.js} +86 -40
  58. package/dist/chunks/{chunk-UKOCGHMU.js.map → chunk-KNQ7R54U.js.map} +2 -2
  59. package/dist/chunks/{chunk-IZJ5JESH.js → chunk-KO2N6EIF.js} +7 -7
  60. package/dist/chunks/{chunk-7OHK3TZD.js → chunk-LMLJ7NS5.js} +5 -5
  61. package/dist/chunks/{chunk-46EO7Z5W.js → chunk-LOWGGJOB.js} +4 -4
  62. package/dist/chunks/{chunk-T6ZUFXGP.js → chunk-M3AUPUII.js} +3 -3
  63. package/dist/chunks/{chunk-JCIHE3LO.js → chunk-MHXJYXOF.js} +3 -3
  64. package/dist/chunks/{chunk-TXLQW4AJ.js → chunk-MYVF3JRV.js} +6 -6
  65. package/dist/chunks/{chunk-RX22HLIT.js → chunk-N56NUKMT.js} +2 -2
  66. package/dist/chunks/{chunk-F7JDATG3.js → chunk-NICPMJJQ.js} +4 -4
  67. package/dist/chunks/{chunk-SWUGIHFO.js → chunk-NTV2XD2J.js} +2 -2
  68. package/dist/chunks/{chunk-QWDCN75Y.js → chunk-NZMKMXGG.js} +2 -2
  69. package/dist/chunks/{chunk-ZB5RBBVO.js → chunk-O326HKCW.js} +3 -3
  70. package/dist/chunks/{chunk-F2BM7LHM.js → chunk-OAHCS42A.js} +2 -2
  71. package/dist/chunks/{chunk-SONYUWOD.js → chunk-OBMHA7OP.js} +3 -3
  72. package/dist/chunks/{chunk-NRFNUYVH.js → chunk-P5E6ITP5.js} +5 -5
  73. package/dist/chunks/{chunk-SGFN62CP.js → chunk-P7FHJL3V.js} +2 -2
  74. package/dist/chunks/{chunk-AXQRLXWR.js → chunk-POOJ2MUS.js} +3 -3
  75. package/dist/chunks/{chunk-VAXTDL7E.js → chunk-PSLNHLZI.js} +3 -3
  76. package/dist/chunks/{chunk-G6MRTDJQ.js → chunk-PV65WQHD.js} +12 -12
  77. package/dist/chunks/{chunk-467N452A.js → chunk-PYSZ7JTU.js} +2 -2
  78. package/dist/chunks/{chunk-CR4ERJTP.js → chunk-QPR3UA4L.js} +2 -2
  79. package/dist/chunks/{chunk-CKYZQOOB.js → chunk-RAPO3KLG.js} +4 -4
  80. package/dist/chunks/{chunk-625CBBTB.js → chunk-RDW6L3PV.js} +3 -3
  81. package/dist/chunks/{chunk-FTVJAKCW.js → chunk-RJWPNAYL.js} +5 -5
  82. package/dist/chunks/{chunk-MVVZHKSQ.js → chunk-SB3A7KUJ.js} +4 -4
  83. package/dist/chunks/{chunk-474J6ZI2.js → chunk-SHUA4YUK.js} +2 -2
  84. package/dist/chunks/{chunk-DVYMOESJ.js → chunk-SPSWX3QZ.js} +2 -2
  85. package/dist/chunks/{chunk-R3BEW6BX.js → chunk-SVMGV4AS.js} +37 -37
  86. package/dist/chunks/{chunk-VMKK6SOW.js → chunk-TI6FFONP.js} +2 -2
  87. package/dist/chunks/{chunk-F6S3IBNL.js → chunk-TUXH7IXQ.js} +2 -2
  88. package/dist/chunks/{chunk-D6M3CBER.js → chunk-TYTE2GIF.js} +5 -5
  89. package/dist/chunks/{chunk-SRHEX5JB.js → chunk-UJOWXA23.js} +980 -15783
  90. package/dist/chunks/chunk-UJOWXA23.js.map +6 -0
  91. package/dist/chunks/{chunk-HIPITBXZ.js → chunk-UMHKTV2L.js} +3 -3
  92. package/dist/chunks/{chunk-2RYGHXYK.js → chunk-UWN4WNQZ.js} +2 -2
  93. package/dist/chunks/{chunk-TITSLPYI.js → chunk-V7VNFYA4.js} +14 -14
  94. package/dist/chunks/{chunk-UF6F2Z62.js → chunk-VVWI4EB7.js} +3 -3
  95. package/dist/chunks/{chunk-33CQRXME.js → chunk-VYLCV6W3.js} +9 -9
  96. package/dist/chunks/{chunk-4XZ67B3M.js → chunk-WOSL3OZD.js} +4 -4
  97. package/dist/chunks/{chunk-LJNIEZAF.js → chunk-WSMX3IQE.js} +308 -29
  98. package/dist/chunks/chunk-WSMX3IQE.js.map +6 -0
  99. package/dist/chunks/{chunk-OWTWCES3.js → chunk-X6SREM2V.js} +4 -4
  100. package/dist/chunks/{chunk-IN5SOIH6.js → chunk-XHLFI6F6.js} +2 -2
  101. package/dist/chunks/{chunk-4SC6RBFK.js → chunk-YELRULQ7.js} +715 -113
  102. package/dist/chunks/chunk-YELRULQ7.js.map +6 -0
  103. package/dist/chunks/{chunk-PRTQ2L3O.js → chunk-YSKCWH72.js} +34 -15
  104. package/dist/chunks/chunk-YSKCWH72.js.map +6 -0
  105. package/dist/chunks/{chunk-7OKLSYRU.js → chunk-Z5FDI74K.js} +3 -3
  106. package/dist/chunks/{chunk-4TS3KCPO.js → chunk-Z5NMQ2YN.js} +2 -2
  107. package/dist/chunks/{chunk-M7LQ3C6L.js → chunk-Z6J7SVOB.js} +2 -2
  108. package/dist/chunks/{chunk-N4JROMUU.js → chunk-ZDZ35MMZ.js} +2 -2
  109. package/dist/chunks/{chunk-ZDEQIXJX.js → chunk-ZMKEYARZ.js} +3 -3
  110. package/dist/chunks/{chunk-EY32VJBC.js → chunk-ZZNHDQAD.js} +2 -2
  111. package/dist/chunks/{cli-runtime-J5E5XM6I.js → cli-runtime-SVXU6U4V.js} +12 -12
  112. package/dist/chunks/{commands-VTKTL26Z.js → commands-A2E3OV7F.js} +5 -5
  113. package/dist/chunks/{cost-IRSQA4W3.js → cost-NA7APCZD.js} +3 -3
  114. package/dist/chunks/{crash-report-4RK3TDIG.js → crash-report-C6QXQJAK.js} +6 -6
  115. package/dist/chunks/{dist-ZWWZFMZ7.js → dist-3PE5MOU6.js} +2 -2
  116. package/dist/chunks/{dist-DZ7AVBME.js → dist-5SZ7VOLE.js} +2 -2
  117. package/dist/chunks/{dist-SRSREGI2.js → dist-6CHQ5OPZ.js} +2 -2
  118. package/dist/chunks/{dist-XGVPG3SE.js → dist-G4BSVJKY.js} +2 -2
  119. package/dist/chunks/{dist-3OXE5SY4.js → dist-GVGW7AZ2.js} +2 -2
  120. package/dist/chunks/{dist-MFNIF6PB.js → dist-HASAHQL3.js} +2 -2
  121. package/dist/chunks/{dist-FFDAK4ES.js → dist-HYKH6P7F.js} +2 -2
  122. package/dist/chunks/{dist-IX7VHPCS.js → dist-LBTLFSNF.js} +24 -2
  123. package/dist/chunks/{doctor-TC5F3XFP.js → doctor-Y5PQ2R7D.js} +33 -33
  124. package/dist/chunks/{drain-VINUZDH4.js → drain-RG275P5J.js} +9 -9
  125. package/dist/chunks/{entry-UEPUPWGI.js → entry-BJY7UE6P.js} +6 -6
  126. package/dist/chunks/{eval-YTQCMDNP.js → eval-GG2BH7CQ.js} +7 -7
  127. package/dist/chunks/{exec-DGX427HX.js → exec-63SUPKUV.js} +38 -38
  128. package/dist/chunks/{home-LOZLKE2R.js → home-KMZDOTX5.js} +3 -3
  129. package/dist/chunks/{host-KTD5OE67.js → host-OB5CL3GG.js} +11 -11
  130. package/dist/chunks/{host-queries-JPW6LDTA.js → host-queries-2GQM7BTI.js} +15 -15
  131. package/dist/chunks/{learn-VUJQOB57.js → learn-LUEHNOMA.js} +11 -11
  132. package/dist/chunks/{learn-builtin-POKSGCNI.js → learn-builtin-R2Z27LDI.js} +14 -14
  133. package/dist/chunks/{lifecycle-7BOLGSXR.js → lifecycle-DCLLAROM.js} +28 -28
  134. package/dist/chunks/{list-QTYDGVQY.js → list-5UW5SFIX.js} +12 -12
  135. package/dist/chunks/{live-WTDKDIAG.js → live-YUE4AKRQ.js} +32 -32
  136. package/dist/chunks/{login-KTFS33SV.js → login-ELIGI6HT.js} +12 -12
  137. package/dist/chunks/{logs-2RSTZ4Y5.js → logs-PXASK6XI.js} +4 -4
  138. package/dist/chunks/{mcp-6QVO6CF6.js → mcp-YVV35X7H.js} +20 -20
  139. package/dist/chunks/{message-command-LZDQXRHW.js → message-command-QVGOKB4W.js} +42 -42
  140. package/dist/chunks/{open-PJI6LGEB.js → open-MDT2NTF4.js} +8 -8
  141. package/dist/chunks/{operator-tools-7WLNIRD3.js → operator-tools-LYY2FXSO.js} +13 -13
  142. package/dist/chunks/{output-schema-PDWST74V.js → output-schema-VR43KZNJ.js} +3 -3
  143. package/dist/chunks/{pal-EHDMM5XR.js → pal-YXOWNULV.js} +15 -15
  144. package/dist/chunks/{peers-XXL4YN6O.js → peers-6M4UPHDF.js} +6 -6
  145. package/dist/chunks/{peers-MCOSOVCD.js → peers-CJOTRI4W.js} +9 -9
  146. package/dist/chunks/{plugin-JKJNFSF3.js → plugin-IVIHCAEO.js} +9 -9
  147. package/dist/chunks/{providers-2NZ5YDHJ.js → providers-7WDY37V3.js} +10 -10
  148. package/dist/chunks/{pty-QYTCSD7G.js → pty-CLDDZT5T.js} +3 -3
  149. package/dist/chunks/resume-ZRVTAGB6.js +23 -0
  150. package/dist/chunks/{resume-command-KXICGDCC.js → resume-command-TXPTYQFF.js} +4 -4
  151. package/dist/chunks/{running-5FNI2UAN.js → running-KBISZDIQ.js} +5 -5
  152. package/dist/chunks/{schedule-BLLPDUT7.js → schedule-ECZVNZLH.js} +8 -8
  153. package/dist/chunks/{send-5B4ROQRC.js → send-VUJ33MJM.js} +15 -15
  154. package/dist/chunks/{send-person-5CPYLU6J.js → send-person-WXM7Y5PZ.js} +13 -13
  155. package/dist/chunks/{service-E2JXIOD6.js → service-DORQ3PNE.js} +28 -28
  156. package/dist/chunks/{skills-MJVSGTLM.js → skills-W7KY3WX4.js} +8 -8
  157. package/dist/chunks/{start-check-NHTTM354.js → start-check-KECY75IO.js} +2 -2
  158. package/dist/chunks/{startup-failure-UCPXEDWH.js → startup-failure-MS7TPUMI.js} +2 -2
  159. package/dist/chunks/{state-FHGFEIF6.js → state-YK5JWP5I.js} +2 -2
  160. package/dist/chunks/{store-TXC7F7KD.js → store-7SFKBFX6.js} +10 -10
  161. package/dist/chunks/{store-PL3BXOPA.js → store-H4IVAEZK.js} +3 -3
  162. package/dist/chunks/{store-TVP3LZNP.js → store-TM7VDQ5G.js} +4 -4
  163. package/dist/chunks/{store-XJXBG4MP.js → store-XIPDR26B.js} +6 -6
  164. package/dist/chunks/{tui-MYBPZUMK.js → tui-XKAQI3DD.js} +70 -70
  165. package/dist/chunks/{upgrade-LG2D66IY.js → upgrade-GLEEEZWO.js} +9 -9
  166. package/dist/chunks/{watch-E5G5E7SZ.js → watch-XZKKDKAF.js} +73 -73
  167. package/dist/chunks/{workspaces-XNXMVP5C.js → workspaces-GS6D72XT.js} +17 -17
  168. package/dist/chunks/{worktree-2JUYAPLO.js → worktree-Z456JZKA.js} +12 -12
  169. package/dist/config/hook-common-shape.d.ts +50 -0
  170. package/dist/config/hook-common-shape.d.ts.map +1 -0
  171. package/dist/config/load.d.ts +18 -0
  172. package/dist/config/load.d.ts.map +1 -1
  173. package/dist/doctor/checks/hooks.d.ts +2 -2
  174. package/dist/doctor/checks/hooks.d.ts.map +1 -1
  175. package/dist/index.js +33 -33
  176. package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
  177. package/dist/tui/App.d.ts.map +1 -1
  178. package/dist/tui/agent.d.ts +20 -1
  179. package/dist/tui/agent.d.ts.map +1 -1
  180. package/dist/tui/fullscreen/code-wrap.d.ts +31 -0
  181. package/dist/tui/fullscreen/code-wrap.d.ts.map +1 -0
  182. package/dist/tui/fullscreen/layout.d.ts.map +1 -1
  183. package/dist/tui/fullscreen/markdown-rows.d.ts +19 -1
  184. package/dist/tui/fullscreen/markdown-rows.d.ts.map +1 -1
  185. package/dist/tui/slashCommands.d.ts +15 -0
  186. package/dist/tui/slashCommands.d.ts.map +1 -1
  187. package/package.json +6 -6
  188. package/dist/chunks/agent-session-JO5HEUHN.js +0 -73
  189. package/dist/chunks/chunk-4SC6RBFK.js.map +0 -6
  190. package/dist/chunks/chunk-A54YZM6S.js.map +0 -6
  191. package/dist/chunks/chunk-HREK4V2O.js +0 -1545
  192. package/dist/chunks/chunk-HREK4V2O.js.map +0 -6
  193. package/dist/chunks/chunk-LJNIEZAF.js.map +0 -6
  194. package/dist/chunks/chunk-PRTQ2L3O.js.map +0 -6
  195. package/dist/chunks/chunk-SRHEX5JB.js.map +0 -6
  196. package/dist/chunks/resume-5MSYHNA7.js +0 -23
  197. /package/dist/chunks/{acp-QNJODJHL.js.map → acp-IOWTKF2X.js.map} +0 -0
  198. /package/dist/chunks/{activity-command-EXDEKDLZ.js.map → activity-command-U2AOTIVF.js.map} +0 -0
  199. /package/dist/chunks/{add-L6FKDP7N.js.map → add-YYQLPCP2.js.map} +0 -0
  200. /package/dist/chunks/{agent-VJRVABX2.js.map → agent-WL6NX4W6.js.map} +0 -0
  201. /package/dist/chunks/{agent-session-JO5HEUHN.js.map → agent-session-L6J5GZVX.js.map} +0 -0
  202. /package/dist/chunks/{apply-at-exit-OGSLNQHX.js.map → apply-at-exit-BRXYTQVG.js.map} +0 -0
  203. /package/dist/chunks/{archive-Z34VDKBO.js.map → archive-UE756BME.js.map} +0 -0
  204. /package/dist/chunks/{bin-main-XIAVK2BK.js.map → bin-main-XR2DJOI6.js.map} +0 -0
  205. /package/dist/chunks/{binding-P5DCYNQG.js.map → binding-HCIPLFUO.js.map} +0 -0
  206. /package/dist/chunks/{browser-MEVCXUOS.js.map → browser-7SFVCKSO.js.map} +0 -0
  207. /package/dist/chunks/{chat-AQICSI4M.js.map → chat-K6GQGRUA.js.map} +0 -0
  208. /package/dist/chunks/{chunk-CKL6DYHR.js.map → chunk-24N42TGE.js.map} +0 -0
  209. /package/dist/chunks/{chunk-BCPKC2WP.js.map → chunk-2U357RJS.js.map} +0 -0
  210. /package/dist/chunks/{chunk-ZQIWZDPM.js.map → chunk-2VSICYQP.js.map} +0 -0
  211. /package/dist/chunks/{chunk-USDNK4TL.js.map → chunk-2WDF5N2A.js.map} +0 -0
  212. /package/dist/chunks/{chunk-F7XHPIXJ.js.map → chunk-3NAVAACC.js.map} +0 -0
  213. /package/dist/chunks/{chunk-VYUMMKAA.js.map → chunk-46VSU4QF.js.map} +0 -0
  214. /package/dist/chunks/{chunk-ZIFCQKET.js.map → chunk-4FV2VZS6.js.map} +0 -0
  215. /package/dist/chunks/{chunk-DE5AFFGK.js.map → chunk-4RTQTX5R.js.map} +0 -0
  216. /package/dist/chunks/{chunk-TUFFLY74.js.map → chunk-5NDRDTNX.js.map} +0 -0
  217. /package/dist/chunks/{chunk-YFMR2PV7.js.map → chunk-6CFPN6I4.js.map} +0 -0
  218. /package/dist/chunks/{chunk-QALDU3HZ.js.map → chunk-7AWFHVMT.js.map} +0 -0
  219. /package/dist/chunks/{chunk-LANIV6OQ.js.map → chunk-7JT7DNR7.js.map} +0 -0
  220. /package/dist/chunks/{chunk-DC76BQGF.js.map → chunk-A47ZNTW7.js.map} +0 -0
  221. /package/dist/chunks/{chunk-OBA275BH.js.map → chunk-AGFGC7SI.js.map} +0 -0
  222. /package/dist/chunks/{chunk-SZXJSTKM.js.map → chunk-AME342DQ.js.map} +0 -0
  223. /package/dist/chunks/{chunk-7ZC4ZAW4.js.map → chunk-BHOZPFJM.js.map} +0 -0
  224. /package/dist/chunks/{chunk-7UTSUGXV.js.map → chunk-C5XQHEYB.js.map} +0 -0
  225. /package/dist/chunks/{chunk-FOP7MQEU.js.map → chunk-CCYAWSZL.js.map} +0 -0
  226. /package/dist/chunks/{chunk-MVJXTG2V.js.map → chunk-CQKYKQEF.js.map} +0 -0
  227. /package/dist/chunks/{chunk-U5LAYHN6.js.map → chunk-DHS5CQNC.js.map} +0 -0
  228. /package/dist/chunks/{chunk-FZVZJQHL.js.map → chunk-DI4L3GH5.js.map} +0 -0
  229. /package/dist/chunks/{chunk-YMMEAXUK.js.map → chunk-DIWEKTYK.js.map} +0 -0
  230. /package/dist/chunks/{chunk-KLUCQZAS.js.map → chunk-DOFQWVBL.js.map} +0 -0
  231. /package/dist/chunks/{chunk-ET6Y6QTB.js.map → chunk-DSKNFDTL.js.map} +0 -0
  232. /package/dist/chunks/{chunk-ZI7BWTPK.js.map → chunk-EA73SWCT.js.map} +0 -0
  233. /package/dist/chunks/{chunk-G7KLFAVX.js.map → chunk-EKMHZKVP.js.map} +0 -0
  234. /package/dist/chunks/{chunk-WG6CPS5G.js.map → chunk-EKQ6J5KA.js.map} +0 -0
  235. /package/dist/chunks/{chunk-BWHOX7GQ.js.map → chunk-F3SQRGKZ.js.map} +0 -0
  236. /package/dist/chunks/{chunk-PVHTDN4J.js.map → chunk-FEIIR46G.js.map} +0 -0
  237. /package/dist/chunks/{chunk-5GP2SAXN.js.map → chunk-FX7BSCB4.js.map} +0 -0
  238. /package/dist/chunks/{chunk-USAVWSGJ.js.map → chunk-HGZYNEQE.js.map} +0 -0
  239. /package/dist/chunks/{chunk-4I4BFAV4.js.map → chunk-HJILJSZO.js.map} +0 -0
  240. /package/dist/chunks/{chunk-AVPOO4NC.js.map → chunk-HOB6FTE2.js.map} +0 -0
  241. /package/dist/chunks/{chunk-T2Q6B7IG.js.map → chunk-HOKSVFIC.js.map} +0 -0
  242. /package/dist/chunks/{chunk-WZHS724Y.js.map → chunk-HTHNDZ3L.js.map} +0 -0
  243. /package/dist/chunks/{chunk-CA7QW5JY.js.map → chunk-HUONDMU4.js.map} +0 -0
  244. /package/dist/chunks/{chunk-47E6HKJT.js.map → chunk-J3PHMXN4.js.map} +0 -0
  245. /package/dist/chunks/{chunk-WSEJK4WO.js.map → chunk-J7SA5BCI.js.map} +0 -0
  246. /package/dist/chunks/{chunk-YLEBTBWP.js.map → chunk-KAPCNFMC.js.map} +0 -0
  247. /package/dist/chunks/{chunk-IZJ5JESH.js.map → chunk-KO2N6EIF.js.map} +0 -0
  248. /package/dist/chunks/{chunk-7OHK3TZD.js.map → chunk-LMLJ7NS5.js.map} +0 -0
  249. /package/dist/chunks/{chunk-46EO7Z5W.js.map → chunk-LOWGGJOB.js.map} +0 -0
  250. /package/dist/chunks/{chunk-T6ZUFXGP.js.map → chunk-M3AUPUII.js.map} +0 -0
  251. /package/dist/chunks/{chunk-JCIHE3LO.js.map → chunk-MHXJYXOF.js.map} +0 -0
  252. /package/dist/chunks/{chunk-TXLQW4AJ.js.map → chunk-MYVF3JRV.js.map} +0 -0
  253. /package/dist/chunks/{chunk-RX22HLIT.js.map → chunk-N56NUKMT.js.map} +0 -0
  254. /package/dist/chunks/{chunk-F7JDATG3.js.map → chunk-NICPMJJQ.js.map} +0 -0
  255. /package/dist/chunks/{chunk-SWUGIHFO.js.map → chunk-NTV2XD2J.js.map} +0 -0
  256. /package/dist/chunks/{chunk-QWDCN75Y.js.map → chunk-NZMKMXGG.js.map} +0 -0
  257. /package/dist/chunks/{chunk-ZB5RBBVO.js.map → chunk-O326HKCW.js.map} +0 -0
  258. /package/dist/chunks/{chunk-F2BM7LHM.js.map → chunk-OAHCS42A.js.map} +0 -0
  259. /package/dist/chunks/{chunk-SONYUWOD.js.map → chunk-OBMHA7OP.js.map} +0 -0
  260. /package/dist/chunks/{chunk-NRFNUYVH.js.map → chunk-P5E6ITP5.js.map} +0 -0
  261. /package/dist/chunks/{chunk-SGFN62CP.js.map → chunk-P7FHJL3V.js.map} +0 -0
  262. /package/dist/chunks/{chunk-AXQRLXWR.js.map → chunk-POOJ2MUS.js.map} +0 -0
  263. /package/dist/chunks/{chunk-VAXTDL7E.js.map → chunk-PSLNHLZI.js.map} +0 -0
  264. /package/dist/chunks/{chunk-G6MRTDJQ.js.map → chunk-PV65WQHD.js.map} +0 -0
  265. /package/dist/chunks/{chunk-467N452A.js.map → chunk-PYSZ7JTU.js.map} +0 -0
  266. /package/dist/chunks/{chunk-CR4ERJTP.js.map → chunk-QPR3UA4L.js.map} +0 -0
  267. /package/dist/chunks/{chunk-CKYZQOOB.js.map → chunk-RAPO3KLG.js.map} +0 -0
  268. /package/dist/chunks/{chunk-625CBBTB.js.map → chunk-RDW6L3PV.js.map} +0 -0
  269. /package/dist/chunks/{chunk-FTVJAKCW.js.map → chunk-RJWPNAYL.js.map} +0 -0
  270. /package/dist/chunks/{chunk-MVVZHKSQ.js.map → chunk-SB3A7KUJ.js.map} +0 -0
  271. /package/dist/chunks/{chunk-474J6ZI2.js.map → chunk-SHUA4YUK.js.map} +0 -0
  272. /package/dist/chunks/{chunk-DVYMOESJ.js.map → chunk-SPSWX3QZ.js.map} +0 -0
  273. /package/dist/chunks/{chunk-R3BEW6BX.js.map → chunk-SVMGV4AS.js.map} +0 -0
  274. /package/dist/chunks/{chunk-VMKK6SOW.js.map → chunk-TI6FFONP.js.map} +0 -0
  275. /package/dist/chunks/{chunk-F6S3IBNL.js.map → chunk-TUXH7IXQ.js.map} +0 -0
  276. /package/dist/chunks/{chunk-D6M3CBER.js.map → chunk-TYTE2GIF.js.map} +0 -0
  277. /package/dist/chunks/{chunk-HIPITBXZ.js.map → chunk-UMHKTV2L.js.map} +0 -0
  278. /package/dist/chunks/{chunk-2RYGHXYK.js.map → chunk-UWN4WNQZ.js.map} +0 -0
  279. /package/dist/chunks/{chunk-TITSLPYI.js.map → chunk-V7VNFYA4.js.map} +0 -0
  280. /package/dist/chunks/{chunk-UF6F2Z62.js.map → chunk-VVWI4EB7.js.map} +0 -0
  281. /package/dist/chunks/{chunk-33CQRXME.js.map → chunk-VYLCV6W3.js.map} +0 -0
  282. /package/dist/chunks/{chunk-4XZ67B3M.js.map → chunk-WOSL3OZD.js.map} +0 -0
  283. /package/dist/chunks/{chunk-OWTWCES3.js.map → chunk-X6SREM2V.js.map} +0 -0
  284. /package/dist/chunks/{chunk-IN5SOIH6.js.map → chunk-XHLFI6F6.js.map} +0 -0
  285. /package/dist/chunks/{chunk-7OKLSYRU.js.map → chunk-Z5FDI74K.js.map} +0 -0
  286. /package/dist/chunks/{chunk-4TS3KCPO.js.map → chunk-Z5NMQ2YN.js.map} +0 -0
  287. /package/dist/chunks/{chunk-M7LQ3C6L.js.map → chunk-Z6J7SVOB.js.map} +0 -0
  288. /package/dist/chunks/{chunk-N4JROMUU.js.map → chunk-ZDZ35MMZ.js.map} +0 -0
  289. /package/dist/chunks/{chunk-ZDEQIXJX.js.map → chunk-ZMKEYARZ.js.map} +0 -0
  290. /package/dist/chunks/{chunk-EY32VJBC.js.map → chunk-ZZNHDQAD.js.map} +0 -0
  291. /package/dist/chunks/{cli-runtime-J5E5XM6I.js.map → cli-runtime-SVXU6U4V.js.map} +0 -0
  292. /package/dist/chunks/{commands-VTKTL26Z.js.map → commands-A2E3OV7F.js.map} +0 -0
  293. /package/dist/chunks/{cost-IRSQA4W3.js.map → cost-NA7APCZD.js.map} +0 -0
  294. /package/dist/chunks/{crash-report-4RK3TDIG.js.map → crash-report-C6QXQJAK.js.map} +0 -0
  295. /package/dist/chunks/{dist-ZWWZFMZ7.js.map → dist-3PE5MOU6.js.map} +0 -0
  296. /package/dist/chunks/{dist-DZ7AVBME.js.map → dist-5SZ7VOLE.js.map} +0 -0
  297. /package/dist/chunks/{dist-SRSREGI2.js.map → dist-6CHQ5OPZ.js.map} +0 -0
  298. /package/dist/chunks/{dist-XGVPG3SE.js.map → dist-G4BSVJKY.js.map} +0 -0
  299. /package/dist/chunks/{dist-3OXE5SY4.js.map → dist-GVGW7AZ2.js.map} +0 -0
  300. /package/dist/chunks/{dist-MFNIF6PB.js.map → dist-HASAHQL3.js.map} +0 -0
  301. /package/dist/chunks/{dist-FFDAK4ES.js.map → dist-HYKH6P7F.js.map} +0 -0
  302. /package/dist/chunks/{dist-IX7VHPCS.js.map → dist-LBTLFSNF.js.map} +0 -0
  303. /package/dist/chunks/{doctor-TC5F3XFP.js.map → doctor-Y5PQ2R7D.js.map} +0 -0
  304. /package/dist/chunks/{drain-VINUZDH4.js.map → drain-RG275P5J.js.map} +0 -0
  305. /package/dist/chunks/{entry-UEPUPWGI.js.map → entry-BJY7UE6P.js.map} +0 -0
  306. /package/dist/chunks/{eval-YTQCMDNP.js.map → eval-GG2BH7CQ.js.map} +0 -0
  307. /package/dist/chunks/{exec-DGX427HX.js.map → exec-63SUPKUV.js.map} +0 -0
  308. /package/dist/chunks/{home-LOZLKE2R.js.map → home-KMZDOTX5.js.map} +0 -0
  309. /package/dist/chunks/{host-KTD5OE67.js.map → host-OB5CL3GG.js.map} +0 -0
  310. /package/dist/chunks/{host-queries-JPW6LDTA.js.map → host-queries-2GQM7BTI.js.map} +0 -0
  311. /package/dist/chunks/{learn-VUJQOB57.js.map → learn-LUEHNOMA.js.map} +0 -0
  312. /package/dist/chunks/{learn-builtin-POKSGCNI.js.map → learn-builtin-R2Z27LDI.js.map} +0 -0
  313. /package/dist/chunks/{lifecycle-7BOLGSXR.js.map → lifecycle-DCLLAROM.js.map} +0 -0
  314. /package/dist/chunks/{list-QTYDGVQY.js.map → list-5UW5SFIX.js.map} +0 -0
  315. /package/dist/chunks/{live-WTDKDIAG.js.map → live-YUE4AKRQ.js.map} +0 -0
  316. /package/dist/chunks/{login-KTFS33SV.js.map → login-ELIGI6HT.js.map} +0 -0
  317. /package/dist/chunks/{logs-2RSTZ4Y5.js.map → logs-PXASK6XI.js.map} +0 -0
  318. /package/dist/chunks/{mcp-6QVO6CF6.js.map → mcp-YVV35X7H.js.map} +0 -0
  319. /package/dist/chunks/{message-command-LZDQXRHW.js.map → message-command-QVGOKB4W.js.map} +0 -0
  320. /package/dist/chunks/{open-PJI6LGEB.js.map → open-MDT2NTF4.js.map} +0 -0
  321. /package/dist/chunks/{operator-tools-7WLNIRD3.js.map → operator-tools-LYY2FXSO.js.map} +0 -0
  322. /package/dist/chunks/{output-schema-PDWST74V.js.map → output-schema-VR43KZNJ.js.map} +0 -0
  323. /package/dist/chunks/{pal-EHDMM5XR.js.map → pal-YXOWNULV.js.map} +0 -0
  324. /package/dist/chunks/{peers-XXL4YN6O.js.map → peers-6M4UPHDF.js.map} +0 -0
  325. /package/dist/chunks/{peers-MCOSOVCD.js.map → peers-CJOTRI4W.js.map} +0 -0
  326. /package/dist/chunks/{plugin-JKJNFSF3.js.map → plugin-IVIHCAEO.js.map} +0 -0
  327. /package/dist/chunks/{providers-2NZ5YDHJ.js.map → providers-7WDY37V3.js.map} +0 -0
  328. /package/dist/chunks/{pty-QYTCSD7G.js.map → pty-CLDDZT5T.js.map} +0 -0
  329. /package/dist/chunks/{resume-5MSYHNA7.js.map → resume-ZRVTAGB6.js.map} +0 -0
  330. /package/dist/chunks/{resume-command-KXICGDCC.js.map → resume-command-TXPTYQFF.js.map} +0 -0
  331. /package/dist/chunks/{running-5FNI2UAN.js.map → running-KBISZDIQ.js.map} +0 -0
  332. /package/dist/chunks/{schedule-BLLPDUT7.js.map → schedule-ECZVNZLH.js.map} +0 -0
  333. /package/dist/chunks/{send-5B4ROQRC.js.map → send-VUJ33MJM.js.map} +0 -0
  334. /package/dist/chunks/{send-person-5CPYLU6J.js.map → send-person-WXM7Y5PZ.js.map} +0 -0
  335. /package/dist/chunks/{service-E2JXIOD6.js.map → service-DORQ3PNE.js.map} +0 -0
  336. /package/dist/chunks/{skills-MJVSGTLM.js.map → skills-W7KY3WX4.js.map} +0 -0
  337. /package/dist/chunks/{start-check-NHTTM354.js.map → start-check-KECY75IO.js.map} +0 -0
  338. /package/dist/chunks/{startup-failure-UCPXEDWH.js.map → startup-failure-MS7TPUMI.js.map} +0 -0
  339. /package/dist/chunks/{state-FHGFEIF6.js.map → state-YK5JWP5I.js.map} +0 -0
  340. /package/dist/chunks/{store-PL3BXOPA.js.map → store-7SFKBFX6.js.map} +0 -0
  341. /package/dist/chunks/{store-TVP3LZNP.js.map → store-H4IVAEZK.js.map} +0 -0
  342. /package/dist/chunks/{store-TXC7F7KD.js.map → store-TM7VDQ5G.js.map} +0 -0
  343. /package/dist/chunks/{store-XJXBG4MP.js.map → store-XIPDR26B.js.map} +0 -0
  344. /package/dist/chunks/{tui-MYBPZUMK.js.map → tui-XKAQI3DD.js.map} +0 -0
  345. /package/dist/chunks/{upgrade-LG2D66IY.js.map → upgrade-GLEEEZWO.js.map} +0 -0
  346. /package/dist/chunks/{watch-E5G5E7SZ.js.map → watch-XZKKDKAF.js.map} +0 -0
  347. /package/dist/chunks/{workspaces-XNXMVP5C.js.map → workspaces-GS6D72XT.js.map} +0 -0
  348. /package/dist/chunks/{worktree-2JUYAPLO.js.map → worktree-Z456JZKA.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  mergePermissionTables,
10
10
  permissionSettingsProblem,
11
11
  splitPermissionsTable
12
- } from "./chunk-TUFFLY74.js";
12
+ } from "./chunk-5NDRDTNX.js";
13
13
  import {
14
14
  resolveGeneratorSettings
15
15
  } from "./chunk-LCGXWCVU.js";
@@ -42,13 +42,14 @@ import {
42
42
  clearStoredApiKey,
43
43
  readStoredApiKey,
44
44
  writeStoredApiKey
45
- } from "./chunk-YFMR2PV7.js";
45
+ } from "./chunk-6CFPN6I4.js";
46
46
  import {
47
47
  BROWSER_ACT_TOOL_NAME,
48
48
  BROWSER_TOOL_NAME,
49
49
  LOG_SECRET_PATTERNS,
50
50
  RENAMED_PLUGIN_HOOK_EVENTS,
51
51
  SHELL_HOOK_EVENTS,
52
+ SHELL_HOOK_PASCAL_EVENT_NAMES,
52
53
  canonicalizeBrowserSitePattern,
53
54
  canonicalizeBrowserUrl,
54
55
  passthroughToolNames,
@@ -56,7 +57,7 @@ import {
56
57
  resolveNamzuHome,
57
58
  toolResultCorrespondenceGuardrail,
58
59
  toolResultInjectionGuardrail
59
- } from "./chunk-4SC6RBFK.js";
60
+ } from "./chunk-YELRULQ7.js";
60
61
  import {
61
62
  __name,
62
63
  __toESM
@@ -197,9 +198,9 @@ function sessionWorkflowSizeAdvice(config) {
197
198
  }
198
199
  __name(sessionWorkflowSizeAdvice, "sessionWorkflowSizeAdvice");
199
200
  var SUFFIX = { k: 1e3, m: 1e6, b: 1e9 };
200
- function parseTokenTarget(text) {
201
+ function parseTokenTarget(text2) {
201
202
  let found;
202
- for (const match of text.matchAll(/(?<![\w+.])\+(\d+(?:\.\d+)?)([kmb])(?![\w])/gi)) {
203
+ for (const match of text2.matchAll(/(?<![\w+.])\+(\d+(?:\.\d+)?)([kmb])(?![\w])/gi)) {
203
204
  const unit = match[2]?.toLowerCase();
204
205
  const value = Math.round(Number(match[1]) * SUFFIX[unit]);
205
206
  if (Number.isSafeInteger(value) && value > 0) found = value;
@@ -784,15 +785,15 @@ function toolNameOf(written) {
784
785
  }
785
786
  __name(toolNameOf, "toolNameOf");
786
787
  function parseRuleString(entry) {
787
- const text = entry.trim();
788
- if (!text) return void 0;
789
- const open = text.search(/(?<!\\)\(/);
788
+ const text2 = entry.trim();
789
+ if (!text2) return void 0;
790
+ const open = text2.search(/(?<!\\)\(/);
790
791
  if (open === -1) {
791
- return /[()]/.test(text.replaceAll("\\(", "").replaceAll("\\)", "")) ? void 0 : { tool: toolNameOf(text) };
792
+ return /[()]/.test(text2.replaceAll("\\(", "").replaceAll("\\)", "")) ? void 0 : { tool: toolNameOf(text2) };
792
793
  }
793
- const name = text.slice(0, open);
794
- if (!name || /[()\s]/.test(name) || !text.endsWith(")") || text.endsWith("\\)")) return void 0;
795
- const raw = text.slice(open + 1, -1);
794
+ const name = text2.slice(0, open);
795
+ if (!name || /[()\s]/.test(name) || !text2.endsWith(")") || text2.endsWith("\\)")) return void 0;
796
+ const raw = text2.slice(open + 1, -1);
796
797
  if (/(?<!\\)[()]/.test(raw)) return void 0;
797
798
  const specifier = raw.replaceAll("\\(", "(").replaceAll("\\)", ")");
798
799
  const tool = toolNameOf(name);
@@ -923,6 +924,231 @@ function mergeComposerTriggers(below, layer, projectControlled) {
923
924
  }
924
925
  __name(mergeComposerTriggers, "mergeComposerTriggers");
925
926
 
927
+ // src/config/hook-common-shape.ts
928
+ var GUARD_EVENTS = /* @__PURE__ */ new Set([
929
+ "user_prompt_submit",
930
+ "pre_tool_use",
931
+ "post_tool_use",
932
+ "post_tool_use_failure",
933
+ "permission_request",
934
+ "pre_compact",
935
+ "turn_end",
936
+ "subagent_start",
937
+ "subagent_stop"
938
+ ]);
939
+ var KIND_KEYS = {
940
+ command: ["command", "args", "async"],
941
+ http: ["url", "headers", "allowedEnvVars"],
942
+ prompt: ["prompt"]
943
+ };
944
+ var SHARED_KEYS = ["type", "timeout", "if", "once", "statusMessage", "onFailure"];
945
+ function isMapping(value) {
946
+ return value !== null && typeof value === "object" && !Array.isArray(value);
947
+ }
948
+ __name(isMapping, "isMapping");
949
+ function hookEventForKey(key) {
950
+ if (SHELL_HOOK_EVENTS.includes(key)) return key;
951
+ for (const event of SHELL_HOOK_EVENTS) {
952
+ if (SHELL_HOOK_PASCAL_EVENT_NAMES[event] === key) return event;
953
+ }
954
+ return void 0;
955
+ }
956
+ __name(hookEventForKey, "hookEventForKey");
957
+ function looksLikeWrittenEvent(key) {
958
+ return /^[A-Z][A-Za-z]+$/.test(key);
959
+ }
960
+ __name(looksLikeWrittenEvent, "looksLikeWrittenEvent");
961
+ function isHookGroup(element) {
962
+ return isMapping(element) && Array.isArray(element.hooks);
963
+ }
964
+ __name(isHookGroup, "isHookGroup");
965
+ function unreadableElement(event, index) {
966
+ const guard = GUARD_EVENTS.has(event);
967
+ return {
968
+ severity: guard ? "problem" : "note",
969
+ message: `entry ${index + 1} is not a mapping, so it will not run${guard ? " and what it was meant to guard is not checked" : ""}.`
970
+ };
971
+ }
972
+ __name(unreadableElement, "unreadableElement");
973
+ function hooksOfElement(element) {
974
+ return isHookGroup(element) ? element.hooks : [element];
975
+ }
976
+ __name(hooksOfElement, "hooksOfElement");
977
+ function isMeantAsGroup(element) {
978
+ if (!isMapping(element)) return false;
979
+ if (element.hooks !== void 0) return true;
980
+ return !("command" in element || "url" in element || "prompt" in element || "type" in element);
981
+ }
982
+ __name(isMeantAsGroup, "isMeantAsGroup");
983
+ function text(value) {
984
+ return typeof value === "string" && value.trim().length > 0 ? value : void 0;
985
+ }
986
+ __name(text, "text");
987
+ function readHookGroup(event, group, groupIndex, report) {
988
+ const where = `group ${groupIndex + 1}`;
989
+ const guard = GUARD_EVENTS.has(event);
990
+ const lost = /* @__PURE__ */ __name((hook, why) => {
991
+ report(
992
+ guard ? "problem" : "note",
993
+ `${where}, hook ${hook + 1} ${why}, so it will not run${guard ? " and what it was meant to guard is not checked" : ""}.`
994
+ );
995
+ }, "lost");
996
+ for (const key of Object.keys(group)) {
997
+ if (key !== "matcher" && key !== "hooks") {
998
+ report("note", `${where}: "${key}" is not a setting of a group and is not acted on.`);
999
+ }
1000
+ }
1001
+ let matcher;
1002
+ if (group.matcher !== void 0) {
1003
+ if (typeof group.matcher === "string") matcher = group.matcher;
1004
+ else {
1005
+ report(
1006
+ "note",
1007
+ `${where}: "matcher" is not text and is left off, so its hooks run for every call.`
1008
+ );
1009
+ }
1010
+ }
1011
+ const out = [];
1012
+ const hooks = Array.isArray(group.hooks) ? group.hooks : [];
1013
+ for (const [index, hook] of hooks.entries()) {
1014
+ const at = `${where}, hook ${index + 1}`;
1015
+ if (!isMapping(hook)) {
1016
+ lost(index, "is not a mapping");
1017
+ continue;
1018
+ }
1019
+ const kind = hook.type === void 0 ? "command" : hook.type;
1020
+ if (kind !== "command" && kind !== "http" && kind !== "prompt") {
1021
+ lost(
1022
+ index,
1023
+ `is of type ${JSON.stringify(kind)}, a kind this kernel does not have (it has command, http and prompt)`
1024
+ );
1025
+ continue;
1026
+ }
1027
+ const acted = [...SHARED_KEYS, ...KIND_KEYS[kind]];
1028
+ for (const key of Object.keys(hook)) {
1029
+ if (!acted.includes(key)) {
1030
+ report(
1031
+ "note",
1032
+ `${at}: "${key}" is not acted on${kind === "command" ? "" : ` in a ${kind} hook`}; the hook runs without it.`
1033
+ );
1034
+ }
1035
+ }
1036
+ const ignored = /* @__PURE__ */ __name((key, need) => report(
1037
+ "note",
1038
+ `${at}: "${key}" must be ${need}; it is left off and the hook runs without it.`
1039
+ ), "ignored");
1040
+ let timeoutMs;
1041
+ if (hook.timeout !== void 0) {
1042
+ if (typeof hook.timeout === "number" && Number.isFinite(hook.timeout) && hook.timeout > 0) {
1043
+ timeoutMs = Math.max(1, Math.round(hook.timeout * 1e3));
1044
+ } else ignored("timeout", "a number of seconds above zero");
1045
+ }
1046
+ let filter;
1047
+ if (hook.if !== void 0) {
1048
+ filter = text(hook.if);
1049
+ if (filter === void 0) ignored("if", "non-empty text");
1050
+ }
1051
+ let once;
1052
+ if (hook.once !== void 0) {
1053
+ if (typeof hook.once === "boolean") once = hook.once;
1054
+ else ignored("once", "true or false");
1055
+ }
1056
+ let statusMessage;
1057
+ if (hook.statusMessage !== void 0) {
1058
+ statusMessage = text(hook.statusMessage);
1059
+ if (statusMessage === void 0) ignored("statusMessage", "non-empty text");
1060
+ }
1061
+ let onFailure;
1062
+ if (hook.onFailure !== void 0) {
1063
+ if (hook.onFailure === "continue" || hook.onFailure === "block") onFailure = hook.onFailure;
1064
+ else ignored("onFailure", '"continue" or "block"');
1065
+ }
1066
+ const shared = {
1067
+ ...matcher !== void 0 ? { matcher } : {},
1068
+ ...timeoutMs !== void 0 ? { timeoutMs } : {},
1069
+ ...filter !== void 0 ? { if: filter } : {},
1070
+ ...once !== void 0 ? { once } : {},
1071
+ ...statusMessage !== void 0 ? { statusMessage } : {},
1072
+ ...onFailure !== void 0 ? { onFailure } : {},
1073
+ toolNames: "written"
1074
+ };
1075
+ if (kind === "http") {
1076
+ const url = text(hook.url);
1077
+ let protocol;
1078
+ try {
1079
+ protocol = url === void 0 ? void 0 : new URL(url).protocol;
1080
+ } catch {
1081
+ protocol = void 0;
1082
+ }
1083
+ if (protocol !== "http:" && protocol !== "https:") {
1084
+ lost(index, 'has no http or https "url"');
1085
+ continue;
1086
+ }
1087
+ let headers;
1088
+ if (hook.headers !== void 0) {
1089
+ if (isMapping(hook.headers) && Object.values(hook.headers).every((v) => typeof v === "string")) {
1090
+ headers = hook.headers;
1091
+ } else ignored("headers", "a mapping of header names to text");
1092
+ }
1093
+ let allowedEnvVars;
1094
+ if (hook.allowedEnvVars !== void 0) {
1095
+ if (Array.isArray(hook.allowedEnvVars) && hook.allowedEnvVars.every((v) => typeof v === "string")) {
1096
+ allowedEnvVars = hook.allowedEnvVars;
1097
+ } else ignored("allowedEnvVars", "a list of variable names");
1098
+ }
1099
+ out.push({
1100
+ type: "http",
1101
+ url,
1102
+ ...headers !== void 0 ? { headers } : {},
1103
+ ...allowedEnvVars !== void 0 ? { allowedEnvVars } : {},
1104
+ ...shared
1105
+ });
1106
+ } else if (kind === "prompt") {
1107
+ const prompt = text(hook.prompt);
1108
+ if (prompt === void 0) {
1109
+ lost(index, 'has no "prompt" text');
1110
+ continue;
1111
+ }
1112
+ out.push({ type: "prompt", prompt, ...shared });
1113
+ } else {
1114
+ const command = text(hook.command);
1115
+ if (command === void 0) {
1116
+ lost(index, 'has no "command"');
1117
+ continue;
1118
+ }
1119
+ let args;
1120
+ if (hook.args !== void 0) {
1121
+ if (Array.isArray(hook.args) && hook.args.every((v) => typeof v === "string")) {
1122
+ args = hook.args;
1123
+ } else {
1124
+ lost(index, 'has "args" that are not a list of text');
1125
+ continue;
1126
+ }
1127
+ }
1128
+ let async;
1129
+ if (hook.async !== void 0) {
1130
+ if (typeof hook.async === "boolean") async = hook.async;
1131
+ else ignored("async", "true or false");
1132
+ }
1133
+ out.push({
1134
+ command,
1135
+ ...args !== void 0 ? { args } : {},
1136
+ ...async !== void 0 ? { async } : {},
1137
+ ...shared
1138
+ });
1139
+ }
1140
+ }
1141
+ if (hooks.length === 0 && !Array.isArray(group.hooks)) {
1142
+ report(guard ? "problem" : "note", `${where} has no list "hooks", so nothing in it will run.`);
1143
+ }
1144
+ return out;
1145
+ }
1146
+ __name(readHookGroup, "readHookGroup");
1147
+ function unknownEventMessage() {
1148
+ return "is not an event this kernel has, so none of its hooks will run";
1149
+ }
1150
+ __name(unknownEventMessage, "unknownEventMessage");
1151
+
926
1152
  // src/config/learning-generator.ts
927
1153
  var MAX_LEARNING_TOKENS = 1e7;
928
1154
  var MIN_LEARNING_TOKENS = 1e3;
@@ -1272,10 +1498,10 @@ function invalidJsonSentence(name, raw, cause) {
1272
1498
  }
1273
1499
  __name(invalidJsonSentence, "invalidJsonSentence");
1274
1500
  function jsonErrorPosition(raw, cause) {
1275
- const text = cause instanceof Error ? cause.message : String(cause);
1276
- const at = /position (\d+)/.exec(text);
1501
+ const text2 = cause instanceof Error ? cause.message : String(cause);
1502
+ const at = /position (\d+)/.exec(text2);
1277
1503
  if (at) return Math.min(Number(at[1]), raw.length);
1278
- if (/end of JSON input/i.test(text)) return raw.length;
1504
+ if (/end of JSON input/i.test(text2)) return raw.length;
1279
1505
  return void 0;
1280
1506
  }
1281
1507
  __name(jsonErrorPosition, "jsonErrorPosition");
@@ -1305,8 +1531,8 @@ function describe(value) {
1305
1531
  return Array.isArray(value) ? "a list" : `a ${typeof value}`;
1306
1532
  }
1307
1533
  __name(describe, "describe");
1308
- function stripByteOrderMark(text) {
1309
- return text.charCodeAt(0) === 65279 ? text.slice(1) : text;
1534
+ function stripByteOrderMark(text2) {
1535
+ return text2.charCodeAt(0) === 65279 ? text2.slice(1) : text2;
1310
1536
  }
1311
1537
  __name(stripByteOrderMark, "stripByteOrderMark");
1312
1538
  function reasonOf(cause) {
@@ -1327,7 +1553,8 @@ var HOOK_COMMON_KEYS = [
1327
1553
  "if",
1328
1554
  "once",
1329
1555
  "statusMessage",
1330
- "onFailure"
1556
+ "onFailure",
1557
+ "toolNames"
1331
1558
  ];
1332
1559
  var HOOK_KIND_KEYS = {
1333
1560
  command: ["command", "args", "async"],
@@ -1665,14 +1892,19 @@ var CONFIG_READERS = {
1665
1892
  hooks: /* @__PURE__ */ __name((v, context) => {
1666
1893
  if (!isConfigMapping(v))
1667
1894
  return invalidConfigValue(context, [], "must be a mapping of event \u2192 list");
1668
- const events = new Set(SHELL_HOOK_EVENTS);
1669
1895
  const out = {};
1896
+ const file = hookSourceLabel(context.source);
1670
1897
  for (const [event, entries] of Object.entries(v)) {
1671
1898
  const renamed = Object.hasOwn(RENAMED_PLUGIN_HOOK_EVENTS, event) ? RENAMED_PLUGIN_HOOK_EVENTS[event] : void 0;
1672
1899
  if (renamed !== void 0) {
1673
1900
  return invalidConfigValue(context, [event], `was renamed; name it \`${renamed}\``);
1674
1901
  }
1675
- if (!events.has(event)) {
1902
+ const target = hookEventForKey(event);
1903
+ if (target === void 0) {
1904
+ if (looksLikeWrittenEvent(event) && Array.isArray(entries)) {
1905
+ recordHookProblem(file, event, "problem", `${unknownEventMessage()}.`);
1906
+ continue;
1907
+ }
1676
1908
  return invalidConfigValue(
1677
1909
  context,
1678
1910
  [event],
@@ -1681,9 +1913,26 @@ var CONFIG_READERS = {
1681
1913
  }
1682
1914
  if (!Array.isArray(entries))
1683
1915
  return invalidConfigValue(context, [event], "must be a list of hooks");
1916
+ const writtenKey = event !== target;
1684
1917
  const parsed = [];
1685
1918
  for (const [index, entry] of entries.entries()) {
1919
+ if (isHookGroup(entry) || writtenKey && isMeantAsGroup(entry)) {
1920
+ parsed.push(
1921
+ ...readHookGroup(
1922
+ target,
1923
+ entry,
1924
+ index,
1925
+ (severity, message) => recordHookProblem(file, event, severity, message)
1926
+ )
1927
+ );
1928
+ continue;
1929
+ }
1686
1930
  if (!isConfigMapping(entry)) {
1931
+ if (writtenKey) {
1932
+ const lost = unreadableElement(target, index);
1933
+ recordHookProblem(file, event, lost.severity, lost.message);
1934
+ continue;
1935
+ }
1687
1936
  return invalidConfigValue(context, [event, index], "must be a mapping with a `command`");
1688
1937
  }
1689
1938
  const raw = entry;
@@ -1705,21 +1954,21 @@ var CONFIG_READERS = {
1705
1954
  );
1706
1955
  }
1707
1956
  }
1708
- const text = /* @__PURE__ */ __name((key) => {
1957
+ const text2 = /* @__PURE__ */ __name((key) => {
1709
1958
  const value = raw[key];
1710
1959
  return typeof value === "string" && value.trim().length > 0 ? value : void 0;
1711
1960
  }, "text");
1712
- if (kind === "command" && text("command") === void 0) {
1961
+ if (kind === "command" && text2("command") === void 0) {
1713
1962
  return invalidConfigValue(
1714
1963
  context,
1715
1964
  [event, index, "command"],
1716
1965
  "must be a non-empty string"
1717
1966
  );
1718
1967
  }
1719
- if (kind === "http" && text("url") === void 0) {
1968
+ if (kind === "http" && text2("url") === void 0) {
1720
1969
  return invalidConfigValue(context, [event, index, "url"], "must be a non-empty string");
1721
1970
  }
1722
- if (kind === "prompt" && text("prompt") === void 0) {
1971
+ if (kind === "prompt" && text2("prompt") === void 0) {
1723
1972
  return invalidConfigValue(context, [event, index, "prompt"], "must be a non-empty string");
1724
1973
  }
1725
1974
  if (raw.matcher !== void 0 && typeof raw.matcher !== "string") {
@@ -1732,13 +1981,13 @@ var CONFIG_READERS = {
1732
1981
  "must be a positive integer"
1733
1982
  );
1734
1983
  }
1735
- if (raw.if !== void 0 && text("if") === void 0) {
1984
+ if (raw.if !== void 0 && text2("if") === void 0) {
1736
1985
  return invalidConfigValue(context, [event, index, "if"], "must be a non-empty string");
1737
1986
  }
1738
1987
  if (raw.once !== void 0 && typeof raw.once !== "boolean") {
1739
1988
  return invalidConfigValue(context, [event, index, "once"], "must be true or false");
1740
1989
  }
1741
- if (raw.statusMessage !== void 0 && text("statusMessage") === void 0) {
1990
+ if (raw.statusMessage !== void 0 && text2("statusMessage") === void 0) {
1742
1991
  return invalidConfigValue(
1743
1992
  context,
1744
1993
  [event, index, "statusMessage"],
@@ -1752,6 +2001,13 @@ var CONFIG_READERS = {
1752
2001
  'must be "continue" or "block"'
1753
2002
  );
1754
2003
  }
2004
+ if (raw.toolNames !== void 0 && raw.toolNames !== "namzu" && raw.toolNames !== "written") {
2005
+ return invalidConfigValue(
2006
+ context,
2007
+ [event, index, "toolNames"],
2008
+ 'must be "namzu" or "written"'
2009
+ );
2010
+ }
1755
2011
  if (raw.async !== void 0 && typeof raw.async !== "boolean") {
1756
2012
  return invalidConfigValue(context, [event, index, "async"], "must be true or false");
1757
2013
  }
@@ -1795,7 +2051,8 @@ var CONFIG_READERS = {
1795
2051
  ...raw.if !== void 0 ? { if: raw.if } : {},
1796
2052
  ...raw.once !== void 0 ? { once: raw.once } : {},
1797
2053
  ...raw.statusMessage !== void 0 ? { statusMessage: raw.statusMessage } : {},
1798
- ...raw.onFailure !== void 0 ? { onFailure: raw.onFailure } : {}
2054
+ ...raw.onFailure !== void 0 ? { onFailure: raw.onFailure } : {},
2055
+ ...raw.toolNames !== void 0 ? { toolNames: raw.toolNames } : {}
1799
2056
  };
1800
2057
  if (kind === "http") {
1801
2058
  parsed.push({
@@ -1816,7 +2073,7 @@ var CONFIG_READERS = {
1816
2073
  });
1817
2074
  }
1818
2075
  }
1819
- out[event] = parsed;
2076
+ out[target] = [...out[target] ?? [], ...parsed];
1820
2077
  }
1821
2078
  return out;
1822
2079
  }, "hooks"),
@@ -2589,6 +2846,26 @@ var ENV_VARIABLE_NAMES = {
2589
2846
  modelCatalogueRefresh: "NAMZU_MODEL_CATALOGUE_REFRESH"
2590
2847
  };
2591
2848
  var configWarnings = /* @__PURE__ */ new Set();
2849
+ var hookConfigProblemList = /* @__PURE__ */ new Map();
2850
+ function hookSourceLabel(source) {
2851
+ return source.kind === "file" ? shortHomePath(source.path) : `environment variable ${source.variable}`;
2852
+ }
2853
+ __name(hookSourceLabel, "hookSourceLabel");
2854
+ function recordHookProblem(file, event, severity, message) {
2855
+ const key = `${file}
2856
+ ${event}
2857
+ ${message}`;
2858
+ if (hookConfigProblemList.has(key)) return;
2859
+ hookConfigProblemList.set(key, { file, event, severity, message });
2860
+ configWarnings.add(
2861
+ `${severity === "problem" ? "Hook problem" : "Hook note"} in ${file}, ${event}: ${message}`
2862
+ );
2863
+ }
2864
+ __name(recordHookProblem, "recordHookProblem");
2865
+ function hookConfigProblems() {
2866
+ return [...hookConfigProblemList.values()];
2867
+ }
2868
+ __name(hookConfigProblems, "hookConfigProblems");
2592
2869
  function takeConfigWarnings() {
2593
2870
  const out = [...configWarnings];
2594
2871
  configWarnings.clear();
@@ -3213,6 +3490,7 @@ export {
3213
3490
  createConfigDebugSnapshot,
3214
3491
  formatConfigSource,
3215
3492
  renderConfigDebug,
3493
+ hooksOfElement,
3216
3494
  DEFAULT_CONFIG,
3217
3495
  resolveToolResultScreens,
3218
3496
  configuredPassthroughTools,
@@ -3226,8 +3504,9 @@ export {
3226
3504
  pendingProjectMcpServers,
3227
3505
  LOCAL_CONFIG_FILE,
3228
3506
  shortHomePath,
3507
+ hookConfigProblems,
3229
3508
  takeConfigWarnings,
3230
3509
  CONFIG_KEYS,
3231
3510
  readConfigKey
3232
3511
  };
3233
- //# sourceMappingURL=chunk-LJNIEZAF.js.map
3512
+ //# sourceMappingURL=chunk-WSMX3IQE.js.map