claude-code-best 1.1.0 → 1.2.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 (542) hide show
  1. package/README.md +66 -75
  2. package/dist/chunk-03hxwxzh.js +344 -0
  3. package/dist/chunk-07069jq1.js +30 -0
  4. package/dist/{chunk-kq098bkj.js → chunk-08g51x43.js} +254 -320
  5. package/dist/{chunk-7tqhx6dr.js → chunk-093r60b7.js} +109 -213
  6. package/dist/{chunk-ahjgghpe.js → chunk-0aya4737.js} +1 -1
  7. package/dist/{chunk-b4mnbry0.js → chunk-0fsdxz74.js} +4 -4
  8. package/dist/chunk-0jzdwbdc.js +14 -0
  9. package/dist/chunk-0mbxeb5q.js +406 -0
  10. package/dist/chunk-0pryepme.js +66 -0
  11. package/dist/chunk-0qsm7jac.js +169 -0
  12. package/dist/{chunk-1cbn5kxf.js → chunk-0rpb2bdp.js} +3 -2
  13. package/dist/chunk-0se7sxd4.js +38 -0
  14. package/dist/{chunk-3m7ge6tj.js → chunk-0xnepnph.js} +14 -12
  15. package/dist/{chunk-q7tvkc86.js → chunk-0zsam7pn.js} +10 -115
  16. package/dist/{chunk-44fpr6jq.js → chunk-168xb8v1.js} +4 -2
  17. package/dist/{chunk-bj0rvnjw.js → chunk-19h3a9pw.js} +40 -30
  18. package/dist/chunk-19wjkpe7.js +115 -0
  19. package/dist/{chunk-wsqhnjj3.js → chunk-1atfzck5.js} +24 -24
  20. package/dist/{chunk-0e1xsncc.js → chunk-1cwdhk7a.js} +1 -1
  21. package/dist/{chunk-c8jv6rtj.js → chunk-1hq59w8z.js} +78 -69
  22. package/dist/chunk-1qzk963z.js +108 -0
  23. package/dist/{chunk-fk06pejm.js → chunk-1rrmvwjn.js} +9 -9
  24. package/dist/{chunk-d18z9pna.js → chunk-1thgdca1.js} +2 -2
  25. package/dist/chunk-1tjnmcw7.js +68 -0
  26. package/dist/chunk-1xj83yc8.js +219 -0
  27. package/dist/chunk-21j2jfen.js +435 -0
  28. package/dist/{chunk-wc6wwwyb.js → chunk-21z7acxh.js} +3 -3
  29. package/dist/chunk-22gbbc5x.js +313 -0
  30. package/dist/chunk-238g70xa.js +1 -1
  31. package/dist/{chunk-vpb723tx.js → chunk-23ad5t92.js} +5 -5
  32. package/dist/{chunk-vbbf707n.js → chunk-24r3gfks.js} +39 -29
  33. package/dist/chunk-24sahbec.js +71 -0
  34. package/dist/chunk-28az45r7.js +112 -0
  35. package/dist/{chunk-9g827w4j.js → chunk-2q39ej51.js} +6 -6
  36. package/dist/chunk-2qwgfjcj.js +5370 -0
  37. package/dist/{chunk-0cpnzx7t.js → chunk-2rgvd09y.js} +118 -151
  38. package/dist/chunk-2wq8q15s.js +475 -0
  39. package/dist/{chunk-bqq4zamw.js → chunk-2ys5wcxk.js} +3 -3
  40. package/dist/{chunk-t24ytdcw.js → chunk-31nce7eh.js} +12 -10
  41. package/dist/chunk-31q6p2ke.js +123 -0
  42. package/dist/chunk-3394wc12.js +1024 -0
  43. package/dist/{chunk-33khw5gy.js → chunk-365zvqv3.js} +7 -7
  44. package/dist/{chunk-9g2ncq68.js → chunk-36gkb95k.js} +124 -128
  45. package/dist/{chunk-khdjg2v9.js → chunk-37y42ayh.js} +39 -29
  46. package/dist/chunk-3816xd5p.js +195 -0
  47. package/dist/chunk-3a6bynts.js +656 -0
  48. package/dist/{chunk-qvd0k5dn.js → chunk-3avfhw6x.js} +190 -348
  49. package/dist/{chunk-660kcy7p.js → chunk-3b25ycrx.js} +14 -8
  50. package/dist/chunk-3b4xhwhp.js +113 -0
  51. package/dist/chunk-3fjzvf0e.js +128 -0
  52. package/dist/chunk-3fvc0a79.js +67 -0
  53. package/dist/chunk-3g50kcwk.js +513 -0
  54. package/dist/chunk-3jnmy0nd.js +114 -0
  55. package/dist/chunk-3jzsxj3v.js +310 -0
  56. package/dist/{chunk-frbv3xqa.js → chunk-3mpfxbab.js} +2 -2
  57. package/dist/{chunk-aqa7w38f.js → chunk-3v03e2kz.js} +5 -5
  58. package/dist/chunk-3x5hdd5g.js +1030 -0
  59. package/dist/{chunk-mecs0gpc.js → chunk-3xv7rjsy.js} +14 -11
  60. package/dist/{chunk-j3215c49.js → chunk-3ygnhge8.js} +232 -372
  61. package/dist/chunk-42x5tjk2.js +42 -0
  62. package/dist/chunk-430tvx8d.js +110 -0
  63. package/dist/{chunk-dh6c8y1j.js → chunk-43h8sw5x.js} +3 -3
  64. package/dist/chunk-44d150tz.js +1175 -0
  65. package/dist/chunk-45dj834r.js +115 -0
  66. package/dist/{chunk-yhd82045.js → chunk-46fcr28b.js} +30 -9
  67. package/dist/{chunk-wm2f2f1z.js → chunk-474y75ga.js} +2 -2
  68. package/dist/{chunk-6fkwz9yk.js → chunk-478rpnqm.js} +8 -8
  69. package/dist/{chunk-83z0wrnz.js → chunk-47j9e6m2.js} +2 -2
  70. package/dist/chunk-47wqjw88.js +112 -0
  71. package/dist/{chunk-v4t6dyyh.js → chunk-4cp6193g.js} +2 -2
  72. package/dist/chunk-4h102wt5.js +65 -0
  73. package/dist/{chunk-3mgywd32.js → chunk-4hv90qcz.js} +1 -1
  74. package/dist/chunk-4k2270je.js +295 -0
  75. package/dist/{chunk-2wcbcdky.js → chunk-4k842par.js} +5 -5
  76. package/dist/chunk-4nspekjp.js +69 -0
  77. package/dist/chunk-4pjqtps4.js +151 -0
  78. package/dist/chunk-4sehjy27.js +112 -0
  79. package/dist/{chunk-pgnnrm2v.js → chunk-4t86n23n.js} +21 -17
  80. package/dist/{chunk-2de1vaxf.js → chunk-4whfjn78.js} +68 -78
  81. package/dist/{chunk-41mpwc8h.js → chunk-53c9gb9c.js} +19 -15
  82. package/dist/chunk-53kt8caz.js +122 -0
  83. package/dist/chunk-5a6ahhvy.js +594 -0
  84. package/dist/{chunk-12pv5fez.js → chunk-5gbqknz6.js} +10 -8
  85. package/dist/{chunk-hfzj1m07.js → chunk-5kkvfgzs.js} +14 -5
  86. package/dist/{chunk-4ycz58wj.js → chunk-5pxygepg.js} +68 -8
  87. package/dist/{chunk-2w8633e3.js → chunk-5rgbq3kf.js} +61 -100
  88. package/dist/{chunk-ggqx30m9.js → chunk-5z28bqne.js} +23 -311
  89. package/dist/{chunk-7ejt5gqq.js → chunk-5z8w2q5k.js} +65 -48
  90. package/dist/chunk-60k6v40t.js +70 -0
  91. package/dist/{chunk-p7g7pf3f.js → chunk-61ahbn23.js} +8 -6
  92. package/dist/{chunk-rmbp2das.js → chunk-64pp4hsr.js} +21 -19
  93. package/dist/{chunk-0sb5scxx.js → chunk-652wnf1z.js} +5 -5
  94. package/dist/{chunk-q25bjaev.js → chunk-677as3nh.js} +2 -2
  95. package/dist/{chunk-xs0hwvpa.js → chunk-68pfxvxt.js} +14 -9
  96. package/dist/{chunk-epmheefa.js → chunk-69hys77v.js} +8 -8
  97. package/dist/{chunk-427m88ms.js → chunk-6p1cptq5.js} +9 -9
  98. package/dist/{chunk-0nqrscrr.js → chunk-6p3mtny2.js} +5 -5
  99. package/dist/{chunk-v1mgv1et.js → chunk-6p4cyhb3.js} +4 -3
  100. package/dist/{chunk-m17y8b22.js → chunk-6rxz872v.js} +39 -29
  101. package/dist/chunk-6sjxvthw.js +106 -0
  102. package/dist/{chunk-6mz58s8p.js → chunk-6xana182.js} +18 -14
  103. package/dist/{chunk-vaebptnz.js → chunk-6zn3fm1k.js} +39 -29
  104. package/dist/chunk-704jkbsp.js +183 -0
  105. package/dist/chunk-71sf47by.js +154 -0
  106. package/dist/chunk-73a5g713.js +78 -0
  107. package/dist/chunk-78p7h20f.js +259 -0
  108. package/dist/chunk-7a3b1d4s.js +75 -0
  109. package/dist/{chunk-fpf4cgbt.js → chunk-7bfach0x.js} +9 -9
  110. package/dist/{chunk-ckcagq32.js → chunk-7gqf9wej.js} +5 -5
  111. package/dist/{chunk-sa7nc0vv.js → chunk-7y25wk51.js} +1 -1
  112. package/dist/{chunk-vyd8jzde.js → chunk-81v55vtd.js} +96 -85
  113. package/dist/{chunk-dv1wfr85.js → chunk-8225arm6.js} +5 -4
  114. package/dist/chunk-86715d2d.js +186 -0
  115. package/dist/chunk-8ah9easf.js +365 -0
  116. package/dist/{chunk-rwexx5ns.js → chunk-8baq1s87.js} +1 -3
  117. package/dist/chunk-8fy8hx84.js +386 -0
  118. package/dist/{chunk-4pbx3g7s.js → chunk-8g747a8x.js} +1 -1
  119. package/dist/{chunk-xyqr1cww.js → chunk-8me0yq6v.js} +12 -12
  120. package/dist/{chunk-sdj9b9wh.js → chunk-8pn8tvgg.js} +9 -154
  121. package/dist/chunk-8qxyxgkb.js +161 -0
  122. package/dist/{chunk-ecsw41df.js → chunk-8xs4yp9x.js} +85 -77
  123. package/dist/{chunk-24x87knx.js → chunk-9000dg9h.js} +1327 -2882
  124. package/dist/{chunk-bmvb57qb.js → chunk-905d2hee.js} +5 -5
  125. package/dist/chunk-90qsc60s.js +378 -0
  126. package/dist/chunk-92x6xgex.js +265 -0
  127. package/dist/{chunk-jknt3rxg.js → chunk-9ctg4x6c.js} +7 -9
  128. package/dist/chunk-9e4z7dx7.js +389 -0
  129. package/dist/chunk-9hy6ejmp.js +151 -0
  130. package/dist/chunk-9jvggd30.js +173 -0
  131. package/dist/{chunk-z9tgzh90.js → chunk-9m729tsn.js} +46 -35
  132. package/dist/chunk-9r90d3jt.js +121 -0
  133. package/dist/chunk-9rx2m3cb.js +124 -0
  134. package/dist/chunk-9sr2etaw.js +110 -0
  135. package/dist/chunk-9z8hzgve.js +68 -0
  136. package/dist/{chunk-yxnwsp4f.js → chunk-9zy607vw.js} +8 -6
  137. package/dist/chunk-a0bz6g5e.js +63 -0
  138. package/dist/chunk-a136cvvz.js +27 -0
  139. package/dist/{chunk-n5t9m8h9.js → chunk-a1bjde7d.js} +7 -7
  140. package/dist/{chunk-mvss16tj.js → chunk-a2aj2mtb.js} +414 -636
  141. package/dist/{chunk-8hsyagr8.js → chunk-a3sfy6as.js} +1 -1
  142. package/dist/{chunk-8hq5kk3y.js → chunk-a4twdmhf.js} +3 -2
  143. package/dist/chunk-ae76ded0.js +30 -0
  144. package/dist/chunk-aegyxcne.js +111 -0
  145. package/dist/chunk-aj1dcvrh.js +131 -0
  146. package/dist/{chunk-1yabrspp.js → chunk-amxm6996.js} +2 -2
  147. package/dist/{chunk-t6h4wf3k.js → chunk-ar39mr9c.js} +11 -11
  148. package/dist/{chunk-r6b58y3x.js → chunk-ase86y73.js} +1 -3
  149. package/dist/chunk-asfxrz4f.js +94 -0
  150. package/dist/chunk-axj46c2c.js +196 -0
  151. package/dist/{chunk-m5eb5pt2.js → chunk-ayz6f38j.js} +6 -6
  152. package/dist/{chunk-5b7119h5.js → chunk-b00zd850.js} +8 -6
  153. package/dist/chunk-b2abjkf7.js +126 -0
  154. package/dist/{chunk-8bedvdm1.js → chunk-b81hd3m6.js} +1 -1
  155. package/dist/chunk-bcfd2zw7.js +20 -0
  156. package/dist/{chunk-n5516f5q.js → chunk-bd8zk9tn.js} +4 -4
  157. package/dist/chunk-bhdt6k7w.js +15 -0
  158. package/dist/{chunk-jy35mvy3.js → chunk-bmjmrk76.js} +7 -7
  159. package/dist/chunk-bqaqz1j1.js +126 -0
  160. package/dist/chunk-bsbmmfyt.js +17 -0
  161. package/dist/{chunk-snvypj85.js → chunk-bt64sq5y.js} +3 -2
  162. package/dist/{chunk-zq9xa1xe.js → chunk-bwevztsj.js} +109 -141
  163. package/dist/{chunk-vyc0rjyx.js → chunk-bwg7582d.js} +1 -1
  164. package/dist/{chunk-3be7ka25.js → chunk-bxcfz5gy.js} +1 -1
  165. package/dist/chunk-c2mn2fyg.js +1406 -0
  166. package/dist/chunk-c2tw0dep.js +1811 -0
  167. package/dist/{chunk-402jrnj6.js → chunk-c5bngssh.js} +8 -8
  168. package/dist/chunk-c6sjhj89.js +1284 -0
  169. package/dist/chunk-cb2hpe6k.js +443 -0
  170. package/dist/{chunk-91r0z5qq.js → chunk-ccr1s7qs.js} +1152 -1771
  171. package/dist/chunk-cewqh6rb.js +111 -0
  172. package/dist/{chunk-k9a8jemz.js → chunk-cg01f3ez.js} +7 -7
  173. package/dist/{chunk-f64npa3b.js → chunk-chsyvavm.js} +704 -4
  174. package/dist/{chunk-z8nbjar4.js → chunk-cmcbatgz.js} +7 -5
  175. package/dist/chunk-cnsj3vq2.js +35 -0
  176. package/dist/{chunk-rj86xm6z.js → chunk-cpwe0yw7.js} +1 -1
  177. package/dist/chunk-cqjmxeqv.js +269 -0
  178. package/dist/{chunk-qpm1tmzz.js → chunk-crefny3c.js} +125 -193
  179. package/dist/{chunk-ks0m9njy.js → chunk-d2jekryq.js} +8 -8
  180. package/dist/chunk-d4mdda98.js +94 -0
  181. package/dist/{chunk-26wtxbdc.js → chunk-d7886r6a.js} +6928 -6928
  182. package/dist/chunk-dfkgpfaj.js +135 -0
  183. package/dist/{chunk-9mfbqw9k.js → chunk-dm3n2qgd.js} +4 -4
  184. package/dist/chunk-dnj95atq.js +66 -0
  185. package/dist/{chunk-vjc1svpc.js → chunk-dqgzpb0q.js} +87 -77
  186. package/dist/chunk-drenq3c7.js +383 -0
  187. package/dist/chunk-drkm8yx2.js +34 -0
  188. package/dist/{chunk-ra8fbt9p.js → chunk-dvjzq9x9.js} +543 -874
  189. package/dist/{chunk-w7h2yphx.js → chunk-dwekpr47.js} +2 -2
  190. package/dist/{chunk-49k5ktrj.js → chunk-e18dg1md.js} +31 -16
  191. package/dist/chunk-e396ak46.js +111 -0
  192. package/dist/{chunk-r55r29js.js → chunk-e3c32vwa.js} +191 -276
  193. package/dist/chunk-e3m7kqkb.js +1185 -0
  194. package/dist/{chunk-9cc60ae5.js → chunk-ea9m4e0k.js} +79 -70
  195. package/dist/chunk-ecsa9nd5.js +63 -0
  196. package/dist/{chunk-cmdsbsb6.js → chunk-edzkkadh.js} +2 -2
  197. package/dist/chunk-ek1jasqg.js +142 -0
  198. package/dist/chunk-ep0hwv07.js +126 -0
  199. package/dist/{chunk-cs6y2pc9.js → chunk-ergam9ft.js} +5 -5
  200. package/dist/{chunk-ptwn7qw7.js → chunk-f2k8b4nd.js} +38 -10
  201. package/dist/{chunk-h0rbjg6x.js → chunk-f2mhrmww.js} +8 -1
  202. package/dist/{chunk-s84smrx4.js → chunk-f32cksgw.js} +155 -190
  203. package/dist/{chunk-vzqrbsd1.js → chunk-f69rgsm2.js} +5 -5
  204. package/dist/{chunk-f3bapa1x.js → chunk-f6rbj3gz.js} +12 -7
  205. package/dist/chunk-f7n3xete.js +113 -0
  206. package/dist/chunk-fbest4vx.js +109 -0
  207. package/dist/{chunk-v0wa5ref.js → chunk-fdtcb8qr.js} +13 -555
  208. package/dist/chunk-feh2j8m2.js +136 -0
  209. package/dist/chunk-feyzykye.js +10 -0
  210. package/dist/chunk-fkkysfev.js +158 -0
  211. package/dist/chunk-fn510gqw.js +216 -0
  212. package/dist/{chunk-ch53fgm5.js → chunk-ft9qsa01.js} +13 -11
  213. package/dist/chunk-fw0ckaxh.js +109 -0
  214. package/dist/{chunk-kd97kxjn.js → chunk-fz0ch109.js} +3 -2
  215. package/dist/{chunk-ks0dm6t3.js → chunk-fzn524wa.js} +17 -71
  216. package/dist/chunk-g1k68z1b.js +15 -0
  217. package/dist/{chunk-9t1x831d.js → chunk-g5nb4xhz.js} +86 -74
  218. package/dist/chunk-g82mdy27.js +429 -0
  219. package/dist/{chunk-68qevppc.js → chunk-g8sz060e.js} +82 -72
  220. package/dist/chunk-g9f19ttm.js +15 -0
  221. package/dist/{chunk-zz21rvr7.js → chunk-gdqxtdh4.js} +9 -6
  222. package/dist/chunk-get9fk3h.js +74 -0
  223. package/dist/{chunk-4x5ym4h2.js → chunk-gf6qjt7j.js} +130 -16
  224. package/dist/{chunk-bq6x1ehp.js → chunk-gpz0ddyz.js} +8 -8
  225. package/dist/{chunk-mwp7sj0q.js → chunk-gs5eeqmc.js} +110336 -114801
  226. package/dist/{chunk-qqfa0dqg.js → chunk-h4b85amj.js} +20 -32
  227. package/dist/{chunk-j4c8s7tn.js → chunk-h5zv78zq.js} +9 -6
  228. package/dist/{chunk-cgn27dqf.js → chunk-ha5d5zfj.js} +3 -3
  229. package/dist/{chunk-crr52hf4.js → chunk-han7cwc0.js} +14 -12
  230. package/dist/{chunk-dnyeb288.js → chunk-hbv0tk35.js} +74 -106
  231. package/dist/{chunk-nxsh6de2.js → chunk-hcgkak1j.js} +20 -125
  232. package/dist/{chunk-224x480q.js → chunk-hd1p4hrd.js} +8 -6
  233. package/dist/{chunk-tjaqa99q.js → chunk-hezj20qy.js} +3 -3
  234. package/dist/{chunk-z7pr85qw.js → chunk-hfdyez7b.js} +3 -3
  235. package/dist/chunk-hh7hqa2c.js +272 -0
  236. package/dist/chunk-hk4a2sks.js +83 -0
  237. package/dist/{chunk-5zh1fbrj.js → chunk-hq85v2s7.js} +3 -3
  238. package/dist/chunk-hr06142m.js +117 -0
  239. package/dist/chunk-j1b3r6v6.js +66 -0
  240. package/dist/{chunk-v8xem37v.js → chunk-j2fgn3kq.js} +8 -6
  241. package/dist/chunk-j2wgj22c.js +441 -0
  242. package/dist/{chunk-9gbamk79.js → chunk-j5bth84e.js} +5 -1
  243. package/dist/{chunk-vratq94g.js → chunk-j9gxwbe3.js} +1 -1
  244. package/dist/{chunk-cettj572.js → chunk-ja87jt56.js} +7 -131
  245. package/dist/{chunk-3r24h7t6.js → chunk-jaaxk89e.js} +1 -1
  246. package/dist/{chunk-f4jcw0ea.js → chunk-jaew3662.js} +18 -14
  247. package/dist/{chunk-e1ge9n4d.js → chunk-jb2nh0m0.js} +2 -2
  248. package/dist/{chunk-f9b4wb89.js → chunk-jb4fc073.js} +84 -75
  249. package/dist/chunk-jba8f3hz.js +108 -0
  250. package/dist/{chunk-er9vzjac.js → chunk-jbt0jgtc.js} +16 -14
  251. package/dist/{chunk-v399mzxk.js → chunk-jf0p00fz.js} +2 -2
  252. package/dist/{chunk-vygf94dw.js → chunk-jg4ge4de.js} +78 -69
  253. package/dist/chunk-jkvy2cmt.js +346 -0
  254. package/dist/{chunk-80qg1pzv.js → chunk-jmdy5vdy.js} +11 -9
  255. package/dist/{chunk-dqh7e4mt.js → chunk-jn08nxj8.js} +52 -42
  256. package/dist/{chunk-av73dywf.js → chunk-jna2tcvj.js} +8 -8
  257. package/dist/chunk-jwh384j5.js +126 -0
  258. package/dist/chunk-jwx2scxy.js +222 -0
  259. package/dist/{chunk-41xeh3t9.js → chunk-jy6c07wa.js} +4 -4
  260. package/dist/{chunk-ctmt7xh1.js → chunk-jy77nthd.js} +740 -907
  261. package/dist/{chunk-hzttn8j7.js → chunk-jyjpaqbt.js} +139 -135
  262. package/dist/chunk-jztjnw31.js +147 -0
  263. package/dist/chunk-k0jhzcwg.js +2540 -0
  264. package/dist/{chunk-myzwt5yw.js → chunk-k0kwfqr8.js} +9 -15
  265. package/dist/{chunk-bqfnp99q.js → chunk-k3s4yk22.js} +1 -1
  266. package/dist/{chunk-1dyeexvn.js → chunk-kd3mmsd2.js} +4 -4
  267. package/dist/{chunk-x51h62jq.js → chunk-ke78h68m.js} +78 -69
  268. package/dist/{chunk-1xkekb9y.js → chunk-kfd89dsd.js} +5 -3
  269. package/dist/chunk-ksvvwa9w.js +111 -0
  270. package/dist/{chunk-jy35z4n0.js → chunk-m1z5td19.js} +9 -9
  271. package/dist/{chunk-jafes477.js → chunk-m2bcpk8j.js} +4 -3
  272. package/dist/{chunk-n6fbyke9.js → chunk-m2mzpskw.js} +3 -3
  273. package/dist/{chunk-s2dmn3yg.js → chunk-m47q5mxt.js} +5 -5
  274. package/dist/{chunk-s7qj2hg5.js → chunk-m8vyp6rw.js} +2 -2
  275. package/dist/chunk-mm4m13ng.js +881 -0
  276. package/dist/{chunk-ghr4s9g6.js → chunk-mq1qrwhq.js} +79 -70
  277. package/dist/{chunk-45e9mkyr.js → chunk-mqqw60br.js} +43 -83
  278. package/dist/chunk-mtcdknc8.js +2842 -0
  279. package/dist/{chunk-cvge4pvp.js → chunk-mzd6frw6.js} +2 -2
  280. package/dist/{chunk-n2874aq5.js → chunk-n1neft0d.js} +13 -7
  281. package/dist/{chunk-bcrxtdcy.js → chunk-n2mysxn1.js} +40 -30
  282. package/dist/chunk-n4wkxbq0.js +365 -0
  283. package/dist/chunk-n57dw6h9.js +128 -0
  284. package/dist/chunk-n5wf3b82.js +118 -0
  285. package/dist/{chunk-zgrg0wk3.js → chunk-n7ce94nd.js} +27 -67
  286. package/dist/{chunk-me2ef6g4.js → chunk-n8mpqdje.js} +1 -1
  287. package/dist/{chunk-g5sg6y9q.js → chunk-na2e0dfj.js} +82 -72
  288. package/dist/chunk-netzwgv1.js +154 -0
  289. package/dist/{chunk-xszk7n10.js → chunk-nh3cd07f.js} +1 -1
  290. package/dist/{chunk-5tx8dsy0.js → chunk-npjsp3z3.js} +10493 -18453
  291. package/dist/{chunk-5hva0tsg.js → chunk-p2yv7m0g.js} +6 -6
  292. package/dist/chunk-p4rmbc1e.js +409 -0
  293. package/dist/chunk-p7jdncj4.js +122 -0
  294. package/dist/{chunk-zk2wsm7d.js → chunk-p7vkh4wx.js} +2 -2
  295. package/dist/{chunk-da4ve9t5.js → chunk-p8crqj70.js} +10 -10
  296. package/dist/{chunk-hy3g1nv8.js → chunk-prw4xz5q.js} +9 -7
  297. package/dist/{chunk-zsfxha74.js → chunk-pshjyzq4.js} +8 -7
  298. package/dist/{chunk-684kdqez.js → chunk-q08sb44h.js} +203 -304
  299. package/dist/{chunk-n7158r58.js → chunk-q78bgdtk.js} +79 -70
  300. package/dist/{chunk-e5pntxye.js → chunk-q7tpyeb3.js} +6 -4
  301. package/dist/{chunk-7ymfj7m3.js → chunk-q82r31er.js} +1 -1
  302. package/dist/chunk-qajrkk97.js +298 -0
  303. package/dist/chunk-qbrsmra3.js +23 -0
  304. package/dist/chunk-qhfn4vgv.js +66 -0
  305. package/dist/{chunk-d7mx1phm.js → chunk-qndzvkdx.js} +61 -103
  306. package/dist/{chunk-35y0r56v.js → chunk-qtfc6wdh.js} +1 -4
  307. package/dist/{chunk-v9y80148.js → chunk-qwcnwn5t.js} +100 -191
  308. package/dist/chunk-qwehvedn.js +440 -0
  309. package/dist/{chunk-2cgdr2n7.js → chunk-qwk9fq7r.js} +78 -69
  310. package/dist/chunk-qy75c2vm.js +70 -0
  311. package/dist/{chunk-rryx19hp.js → chunk-r2k2jy0y.js} +2 -2
  312. package/dist/chunk-r47p0ff0.js +61 -0
  313. package/dist/{chunk-t3bf8hcf.js → chunk-r5tk54yt.js} +2 -2
  314. package/dist/{chunk-bt9krt49.js → chunk-r8q993g6.js} +38 -32
  315. package/dist/{chunk-veb0gkcf.js → chunk-ra2rykps.js} +78 -69
  316. package/dist/{chunk-gbcqdr0x.js → chunk-rav5xp8h.js} +1 -1
  317. package/dist/chunk-rbe0tcn9.js +120 -0
  318. package/dist/chunk-rd5cfz3k.js +68 -0
  319. package/dist/{chunk-cenpqc2t.js → chunk-rdvaan98.js} +8 -6
  320. package/dist/{chunk-dr4qq42x.js → chunk-rgbbtszq.js} +9 -9
  321. package/dist/chunk-rjsb9s3q.js +206 -0
  322. package/dist/{chunk-fdwa7gem.js → chunk-rkak3kjw.js} +7 -7
  323. package/dist/{chunk-a6s8wnhe.js → chunk-rnam0xc5.js} +4 -4
  324. package/dist/chunk-rqkqbppr.js +112 -0
  325. package/dist/{chunk-ye18m1zb.js → chunk-rqvqqrpg.js} +38 -8
  326. package/dist/{chunk-rw466wqn.js → chunk-rvkvehat.js} +5284 -3093
  327. package/dist/chunk-s1baskk7.js +14 -0
  328. package/dist/{chunk-jt0pha6y.js → chunk-s5gnvx67.js} +227 -198
  329. package/dist/chunk-s7dtt7tw.js +109 -0
  330. package/dist/chunk-s9ftt1fh.js +135 -0
  331. package/dist/chunk-sc6sy490.js +240 -0
  332. package/dist/chunk-sh9er84d.js +1073 -0
  333. package/dist/{chunk-faycqscv.js → chunk-sk9xag9g.js} +2 -2
  334. package/dist/{chunk-zpc0kwkb.js → chunk-t0g8wbcq.js} +7 -7
  335. package/dist/chunk-tbgm1v8n.js +146 -0
  336. package/dist/{chunk-35b0ek0j.js → chunk-tcdv4gp8.js} +13 -9
  337. package/dist/{chunk-mt25echc.js → chunk-tezak8rx.js} +1 -1
  338. package/dist/chunk-thk6yn51.js +154 -0
  339. package/dist/{chunk-s2gm9vfk.js → chunk-tkf24yhv.js} +7 -7
  340. package/dist/{chunk-6td4c2eq.js → chunk-tkrjcekq.js} +54 -72
  341. package/dist/{chunk-9rcbyag3.js → chunk-tmdbrszg.js} +2 -2
  342. package/dist/chunk-tw2g1yhq.js +118 -0
  343. package/dist/chunk-twzjxwhf.js +182 -0
  344. package/dist/{chunk-m94pnhfa.js → chunk-v4e4f711.js} +39 -29
  345. package/dist/{chunk-b51jjfh5.js → chunk-v5k7zmqm.js} +43 -32
  346. package/dist/chunk-var1et7e.js +66 -0
  347. package/dist/chunk-vd11xbz3.js +304 -0
  348. package/dist/{chunk-hqmz36b3.js → chunk-vf612n57.js} +21 -101
  349. package/dist/chunk-vfhqj46w.js +144 -0
  350. package/dist/chunk-vkxx8ymr.js +2377 -0
  351. package/dist/{chunk-n9x557ea.js → chunk-vs094cby.js} +2332 -4220
  352. package/dist/{chunk-dxc7begm.js → chunk-vtb8z6as.js} +14 -10
  353. package/dist/{chunk-x51mdzqq.js → chunk-vzd3cjy9.js} +3 -3
  354. package/dist/chunk-w2es9743.js +439 -0
  355. package/dist/{chunk-8z039kef.js → chunk-w92b262y.js} +53 -54
  356. package/dist/chunk-wa1dpga1.js +236 -0
  357. package/dist/{chunk-qf2v384j.js → chunk-wbmacbfb.js} +9 -7
  358. package/dist/{chunk-ryj80g9p.js → chunk-wbn46nb4.js} +136 -178
  359. package/dist/{chunk-t9z6njcr.js → chunk-wtycm8km.js} +9 -9
  360. package/dist/{chunk-q6rax9kh.js → chunk-wymtgh88.js} +5 -5
  361. package/dist/{chunk-pa7saazk.js → chunk-x0aj8rh8.js} +28 -56
  362. package/dist/{chunk-1szr63w0.js → chunk-x69w7xr7.js} +86 -74
  363. package/dist/{chunk-k5gdea6r.js → chunk-x6qmm22r.js} +84 -75
  364. package/dist/{chunk-zrse3zpz.js → chunk-xbprynsc.js} +18 -46
  365. package/dist/chunk-xc0v11v6.js +914 -0
  366. package/dist/chunk-xed18bb5.js +233 -0
  367. package/dist/{chunk-gjyc3293.js → chunk-xj76qk4z.js} +288 -499
  368. package/dist/chunk-xmd9eezd.js +83 -0
  369. package/dist/chunk-xrzrbw0f.js +142 -0
  370. package/dist/{chunk-fzxg8v1y.js → chunk-xycy3c8q.js} +15 -12
  371. package/dist/chunk-y0m0rd5v.js +140 -0
  372. package/dist/chunk-y2vtmzre.js +137 -0
  373. package/dist/{chunk-vybkxr18.js → chunk-y5z1cjbk.js} +42 -32
  374. package/dist/chunk-y60q54ph.js +111 -0
  375. package/dist/{chunk-d7vv2ydf.js → chunk-y78t50v0.js} +2 -2
  376. package/dist/{chunk-xkr7as9h.js → chunk-y9bgt2k1.js} +13 -9
  377. package/dist/chunk-ycwdzwz5.js +233 -0
  378. package/dist/chunk-yfyc2y1v.js +136 -0
  379. package/dist/chunk-yg6gtf9j.js +152 -0
  380. package/dist/{chunk-kyer92r4.js → chunk-yk8vcecd.js} +33 -5
  381. package/dist/{chunk-hkn7tzgv.js → chunk-ym5r3jnk.js} +1 -1
  382. package/dist/chunk-yr6gqw17.js +132 -0
  383. package/dist/chunk-yw62vhjz.js +445 -0
  384. package/dist/{chunk-athjeyrt.js → chunk-yw79dz62.js} +4 -4
  385. package/dist/{chunk-5mrhhmas.js → chunk-yx64nmbh.js} +8 -5
  386. package/dist/chunk-yy232vtj.js +84 -0
  387. package/dist/chunk-z1bs6d7k.js +24 -0
  388. package/dist/chunk-z4mgvsdj.js +456 -0
  389. package/dist/chunk-z6e5jp2w.js +119 -0
  390. package/dist/{chunk-t7cbhqd2.js → chunk-z6zt2ns7.js} +111 -123
  391. package/dist/chunk-z735r3p2.js +114 -0
  392. package/dist/{chunk-rjz6btwk.js → chunk-z7ssqvt6.js} +4972 -4638
  393. package/dist/{chunk-bpts9jbq.js → chunk-z8nv1ah0.js} +39 -31
  394. package/dist/chunk-z9mbssbe.js +128 -0
  395. package/dist/chunk-zdctabq6.js +264 -0
  396. package/dist/{chunk-ve60fbtd.js → chunk-ze6zvkg6.js} +2 -2
  397. package/dist/{chunk-t0rgmccj.js → chunk-zejm280k.js} +1 -1
  398. package/dist/{chunk-krstc7m7.js → chunk-zfapazzd.js} +15 -11
  399. package/dist/{chunk-2j0j79p0.js → chunk-zg4ae27v.js} +8 -8
  400. package/dist/chunk-zqxe8qnw.js +3590 -0
  401. package/dist/{chunk-q6dpqj3z.js → chunk-zs2ddzfv.js} +10 -7
  402. package/dist/chunk-zy80g72r.js +512 -0
  403. package/dist/{chunk-g3t0act8.js → chunk-zzm33q8x.js} +1 -1
  404. package/dist/{chunk-s8fzxy94.js → chunk-zzzc1ead.js} +17 -13
  405. package/dist/cli.js +63 -11
  406. package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
  407. package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
  408. package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
  409. package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
  410. package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
  411. package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
  412. package/package.json +8 -5
  413. package/scripts/postinstall.cjs +319 -0
  414. package/dist/chunk-0291smg3.js +0 -42
  415. package/dist/chunk-04g2ty3v.js +0 -104
  416. package/dist/chunk-069x95ne.js +0 -764
  417. package/dist/chunk-06x02eab.js +0 -655
  418. package/dist/chunk-09pjmga5.js +0 -713
  419. package/dist/chunk-0g90je6r.js +0 -145
  420. package/dist/chunk-0paqc2yw.js +0 -15
  421. package/dist/chunk-0rddv9vb.js +0 -328
  422. package/dist/chunk-162w6yv3.js +0 -756
  423. package/dist/chunk-1gjbaa3n.js +0 -128
  424. package/dist/chunk-23wg4mnt.js +0 -404
  425. package/dist/chunk-2gbjtg7c.js +0 -102
  426. package/dist/chunk-2v1q0ezq.js +0 -102
  427. package/dist/chunk-37n7jkxe.js +0 -436
  428. package/dist/chunk-38svjnh4.js +0 -158
  429. package/dist/chunk-3bg1089y.js +0 -616
  430. package/dist/chunk-3d8ck5ne.js +0 -112
  431. package/dist/chunk-3g6rf9sz.js +0 -106
  432. package/dist/chunk-3x3rr2n5.js +0 -57
  433. package/dist/chunk-4f6q3d38.js +0 -117
  434. package/dist/chunk-4h57km3m.js +0 -74
  435. package/dist/chunk-4kyh2618.js +0 -99
  436. package/dist/chunk-4w9vc9vc.js +0 -119
  437. package/dist/chunk-53hqpp5z.js +0 -208
  438. package/dist/chunk-5deqy8r0.js +0 -143
  439. package/dist/chunk-5m2rmc2k.js +0 -128
  440. package/dist/chunk-5wp9pkpt.js +0 -539
  441. package/dist/chunk-5ym9f6w3.js +0 -263
  442. package/dist/chunk-6f938733.js +0 -1027
  443. package/dist/chunk-6nenxecd.js +0 -115
  444. package/dist/chunk-6rja0h86.js +0 -1593
  445. package/dist/chunk-70q6dp4d.js +0 -96
  446. package/dist/chunk-7bn0wzs3.js +0 -1493
  447. package/dist/chunk-7e2e0bfm.js +0 -65
  448. package/dist/chunk-7ywadnax.js +0 -490
  449. package/dist/chunk-7z33j54s.js +0 -142
  450. package/dist/chunk-8yvfkzyh.js +0 -58
  451. package/dist/chunk-9abpx1kv.js +0 -2833
  452. package/dist/chunk-9ks2nswb.js +0 -114
  453. package/dist/chunk-9wrds5tr.js +0 -109
  454. package/dist/chunk-ab2twken.js +0 -102
  455. package/dist/chunk-abncjeag.js +0 -97
  456. package/dist/chunk-am6w4x6y.js +0 -103
  457. package/dist/chunk-b1xt9jqg.js +0 -28
  458. package/dist/chunk-b73bd7db.js +0 -496
  459. package/dist/chunk-bc7nvynh.js +0 -195
  460. package/dist/chunk-br17dhef.js +0 -103
  461. package/dist/chunk-c3k0sdey.js +0 -281
  462. package/dist/chunk-c909bmyv.js +0 -103
  463. package/dist/chunk-cftsv9w4.js +0 -129
  464. package/dist/chunk-cj1a7npk.js +0 -99
  465. package/dist/chunk-cpma9zs5.js +0 -335
  466. package/dist/chunk-cyscs4k5.js +0 -1330
  467. package/dist/chunk-czr7y063.js +0 -348
  468. package/dist/chunk-d93sndem.js +0 -372
  469. package/dist/chunk-ddz8xbpd.js +0 -481
  470. package/dist/chunk-dkhqx4hk.js +0 -84
  471. package/dist/chunk-dsrharmv.js +0 -359
  472. package/dist/chunk-eqmy5d05.js +0 -56
  473. package/dist/chunk-f2crxw2c.js +0 -5400
  474. package/dist/chunk-f8zga40p.js +0 -234
  475. package/dist/chunk-fbgm2ym6.js +0 -990
  476. package/dist/chunk-fcbbsswe.js +0 -119
  477. package/dist/chunk-fda654nt.js +0 -6121
  478. package/dist/chunk-ffmv9ezj.js +0 -104
  479. package/dist/chunk-fmjte7md.js +0 -38
  480. package/dist/chunk-fqtwqxxc.js +0 -293
  481. package/dist/chunk-g8k85nkd.js +0 -802
  482. package/dist/chunk-ge4ak7dj.js +0 -127
  483. package/dist/chunk-gpqemecy.js +0 -126
  484. package/dist/chunk-h19p6s3b.js +0 -131
  485. package/dist/chunk-j0sk1rct.js +0 -998
  486. package/dist/chunk-j1wfpa1a.js +0 -70
  487. package/dist/chunk-j829fx31.js +0 -3458
  488. package/dist/chunk-jqctzrvd.js +0 -722
  489. package/dist/chunk-jx817w05.js +0 -11
  490. package/dist/chunk-ka6sab33.js +0 -174
  491. package/dist/chunk-krjsvmwp.js +0 -101
  492. package/dist/chunk-kvpe50pm.js +0 -311
  493. package/dist/chunk-mez504fj.js +0 -113
  494. package/dist/chunk-mj6wbrae.js +0 -105
  495. package/dist/chunk-n0k8xrey.js +0 -319
  496. package/dist/chunk-n0pg2kpe.js +0 -122
  497. package/dist/chunk-n4qtqkp0.js +0 -295
  498. package/dist/chunk-n9meha2m.js +0 -73
  499. package/dist/chunk-ndk7q5n3.js +0 -169
  500. package/dist/chunk-ng6n9t4h.js +0 -56
  501. package/dist/chunk-p3pz13x2.js +0 -1933
  502. package/dist/chunk-p9ez6zgq.js +0 -2656
  503. package/dist/chunk-ph750kx1.js +0 -550
  504. package/dist/chunk-pxb99zqs.js +0 -117
  505. package/dist/chunk-q1yqc5n3.js +0 -100
  506. package/dist/chunk-q5b91nhh.js +0 -40
  507. package/dist/chunk-qtfqk0jr.js +0 -131
  508. package/dist/chunk-qzfmdh1t.js +0 -388
  509. package/dist/chunk-r3cv0j9n.js +0 -456
  510. package/dist/chunk-rx0pbgym.js +0 -97
  511. package/dist/chunk-s624rd5j.js +0 -531
  512. package/dist/chunk-satndwqj.js +0 -285
  513. package/dist/chunk-ssrxnkd1.js +0 -109
  514. package/dist/chunk-t2pgctqx.js +0 -106
  515. package/dist/chunk-t7sgwf31.js +0 -644
  516. package/dist/chunk-tth904tj.js +0 -53
  517. package/dist/chunk-typpbjhy.js +0 -128
  518. package/dist/chunk-vp6nrhdq.js +0 -102
  519. package/dist/chunk-vtjm53nt.js +0 -432
  520. package/dist/chunk-w412n7tq.js +0 -469
  521. package/dist/chunk-w4153rky.js +0 -1885
  522. package/dist/chunk-wdgv15as.js +0 -212
  523. package/dist/chunk-wgn9kydv.js +0 -58
  524. package/dist/chunk-whknbrk0.js +0 -184
  525. package/dist/chunk-x1k8e1xc.js +0 -56
  526. package/dist/chunk-x45xx6sc.js +0 -105
  527. package/dist/chunk-x4xvqbe5.js +0 -1166
  528. package/dist/chunk-x8b7vft8.js +0 -132
  529. package/dist/chunk-xaycc8qe.js +0 -44
  530. package/dist/chunk-xd4785ks.js +0 -73
  531. package/dist/chunk-xjxgmxhq.js +0 -463
  532. package/dist/chunk-xx2x3tz9.js +0 -166
  533. package/dist/chunk-y2j23eem.js +0 -101
  534. package/dist/chunk-y83j09wv.js +0 -123
  535. package/dist/chunk-yh8460pb.js +0 -119
  536. package/dist/chunk-z6nhchdb.js +0 -60
  537. package/dist/chunk-zbt73sj7.js +0 -192
  538. package/dist/chunk-zmwaatmq.js +0 -118
  539. package/dist/chunk-zvdg9tex.js +0 -135
  540. package/dist/chunk-zwa780cx.js +0 -584
  541. package/dist/{chunk-whvdag1y.js → chunk-3bfs3x0h.js} +9 -9
  542. package/dist/{chunk-27xc1csx.js → chunk-dggvswz1.js} +3 -3
@@ -1,1933 +0,0 @@
1
- // @bun
2
- import {
3
- Select,
4
- getAllHooks,
5
- getHookDisplayText,
6
- getTools,
7
- hookSourceDescriptionDisplayString,
8
- hookSourceHeaderDisplayString,
9
- hookSourceInlineDisplayString,
10
- init_AppState,
11
- init_hooksSettings,
12
- init_select,
13
- init_tools1 as init_tools,
14
- init_useSettingsChange,
15
- sortMatchersByPriority,
16
- useAppState,
17
- useAppStateStore,
18
- useSettingsChange
19
- } from "./chunk-mwp7sj0q.js";
20
- import"./chunk-t0rgmccj.js";
21
- import"./chunk-ye18m1zb.js";
22
- import"./chunk-12pv5fez.js";
23
- import"./chunk-cgn27dqf.js";
24
- import"./chunk-dh6c8y1j.js";
25
- import {
26
- Dialog,
27
- init_Dialog
28
- } from "./chunk-xjxgmxhq.js";
29
- import"./chunk-2gzv8nrw.js";
30
- import"./chunk-ehtwnxpg.js";
31
- import"./chunk-n6fbyke9.js";
32
- import"./chunk-33khw5gy.js";
33
- import"./chunk-3be7ka25.js";
34
- import"./chunk-er9vzjac.js";
35
- import"./chunk-f3bapa1x.js";
36
- import"./chunk-cgfdkzhb.js";
37
- import"./chunk-4ycz58wj.js";
38
- import"./chunk-4kyh2618.js";
39
- import"./chunk-9gbamk79.js";
40
- import"./chunk-d7mx1phm.js";
41
- import"./chunk-hfzj1m07.js";
42
- import {
43
- init_useKeybinding,
44
- useKeybinding
45
- } from "./chunk-g8k85nkd.js";
46
- import {
47
- Link,
48
- ThemedBox_default,
49
- ThemedText,
50
- init_ink,
51
- require_compiler_runtime
52
- } from "./chunk-rw466wqn.js";
53
- import"./chunk-yhd82045.js";
54
- import"./chunk-ps49ymvj.js";
55
- import {
56
- require_jsx_dev_runtime,
57
- require_react
58
- } from "./chunk-g338npwr.js";
59
- import"./chunk-zk2wsm7d.js";
60
- import"./chunk-z8nbjar4.js";
61
- import"./chunk-660kcy7p.js";
62
- import"./chunk-rj86xm6z.js";
63
- import"./chunk-d7vv2ydf.js";
64
- import"./chunk-4jm600zv.js";
65
- import"./chunk-me2ef6g4.js";
66
- import"./chunk-t24ytdcw.js";
67
- import"./chunk-cenpqc2t.js";
68
- import"./chunk-mx28h61f.js";
69
- import"./chunk-ptwn7qw7.js";
70
- import"./chunk-b4mnbry0.js";
71
- import"./chunk-faycqscv.js";
72
- import"./chunk-fbgm2ym6.js";
73
- import"./chunk-f64npa3b.js";
74
- import"./chunk-8z039kef.js";
75
- import {
76
- getSettingsForSource,
77
- getSettings_DEPRECATED,
78
- init_settings1 as init_settings,
79
- init_stringUtils,
80
- plural
81
- } from "./chunk-mvss16tj.js";
82
- import"./chunk-bmvb57qb.js";
83
- import"./chunk-fdwa7gem.js";
84
- import"./chunk-vratq94g.js";
85
- import"./chunk-5hva0tsg.js";
86
- import"./chunk-0e1xsncc.js";
87
- import"./chunk-64c1avct.js";
88
- import"./chunk-8g5pe1gr.js";
89
- import"./chunk-tjaqa99q.js";
90
- import"./chunk-v4t6dyyh.js";
91
- import"./chunk-4pbx3g7s.js";
92
- import"./chunk-26wtxbdc.js";
93
- import"./chunk-f5ma3nh5.js";
94
- import"./chunk-qz2x630m.js";
95
- import"./chunk-cvge4pvp.js";
96
- import"./chunk-rryx19hp.js";
97
- import"./chunk-3c25bcsw.js";
98
- import"./chunk-9g827w4j.js";
99
- import"./chunk-7ymfj7m3.js";
100
- import"./chunk-p2816w9z.js";
101
- import"./chunk-v9smspw2.js";
102
- import"./chunk-v1kzp02e.js";
103
- import"./chunk-0vkfrmqm.js";
104
- import"./chunk-0xjaqda8.js";
105
- import"./chunk-jqctzrvd.js";
106
- import"./chunk-crmjpsqe.js";
107
- import {
108
- init_analytics,
109
- logEvent
110
- } from "./chunk-h0rbjg6x.js";
111
- import"./chunk-wc6wwwyb.js";
112
- import"./chunk-dr4qq42x.js";
113
- import"./chunk-d18z9pna.js";
114
- import"./chunk-qnfx3qtx.js";
115
- import"./chunk-athjeyrt.js";
116
- import"./chunk-8bedvdm1.js";
117
- import"./chunk-p7g7pf3f.js";
118
- import"./chunk-8tnsngw2.js";
119
- import"./chunk-cmdsbsb6.js";
120
- import"./chunk-vyc0rjyx.js";
121
- import {
122
- figures_default,
123
- init_figures
124
- } from "./chunk-ggqx30m9.js";
125
- import"./chunk-7wm5s02e.js";
126
- import"./chunk-nxsh6de2.js";
127
- import"./chunk-fbv4apne.js";
128
- import"./chunk-3r24h7t6.js";
129
- import {
130
- getRegisteredHooks,
131
- init_state
132
- } from "./chunk-qqfa0dqg.js";
133
- import {
134
- init_memoize,
135
- memoize_default
136
- } from "./chunk-hqmz36b3.js";
137
- import"./chunk-4g3v8y12.js";
138
- import"./chunk-7739pg2c.js";
139
- import"./chunk-xszk7n10.js";
140
- import"./chunk-sdj9b9wh.js";
141
- import {
142
- __esm,
143
- __toESM
144
- } from "./chunk-qp2qdcda.js";
145
-
146
- // src/utils/hooks/hooksConfigManager.ts
147
- function groupHooksByEventAndMatcher(appState, toolNames) {
148
- const grouped = {
149
- PreToolUse: {},
150
- PostToolUse: {},
151
- PostToolUseFailure: {},
152
- PermissionDenied: {},
153
- Notification: {},
154
- UserPromptSubmit: {},
155
- SessionStart: {},
156
- SessionEnd: {},
157
- Stop: {},
158
- StopFailure: {},
159
- SubagentStart: {},
160
- SubagentStop: {},
161
- PreCompact: {},
162
- PostCompact: {},
163
- PermissionRequest: {},
164
- Setup: {},
165
- TeammateIdle: {},
166
- TaskCreated: {},
167
- TaskCompleted: {},
168
- Elicitation: {},
169
- ElicitationResult: {},
170
- ConfigChange: {},
171
- WorktreeCreate: {},
172
- WorktreeRemove: {},
173
- InstructionsLoaded: {},
174
- CwdChanged: {},
175
- FileChanged: {}
176
- };
177
- const metadata = getHookEventMetadata(toolNames);
178
- getAllHooks(appState).forEach((hook) => {
179
- const eventGroup = grouped[hook.event];
180
- if (eventGroup) {
181
- const matcherKey = metadata[hook.event].matcherMetadata !== undefined ? hook.matcher || "" : "";
182
- if (!eventGroup[matcherKey]) {
183
- eventGroup[matcherKey] = [];
184
- }
185
- eventGroup[matcherKey].push(hook);
186
- }
187
- });
188
- const registeredHooks = getRegisteredHooks();
189
- if (registeredHooks) {
190
- for (const [event, matchers] of Object.entries(registeredHooks)) {
191
- const hookEvent = event;
192
- const eventGroup = grouped[hookEvent];
193
- if (!eventGroup)
194
- continue;
195
- for (const matcher of matchers) {
196
- const matcherKey = matcher.matcher || "";
197
- if ("pluginRoot" in matcher) {
198
- eventGroup[matcherKey] ??= [];
199
- for (const hook of matcher.hooks) {
200
- eventGroup[matcherKey].push({
201
- event: hookEvent,
202
- config: hook,
203
- matcher: matcher.matcher,
204
- source: "pluginHook",
205
- pluginName: matcher.pluginId
206
- });
207
- }
208
- } else if (process.env.USER_TYPE === "ant") {
209
- eventGroup[matcherKey] ??= [];
210
- for (const _hook of matcher.hooks) {
211
- eventGroup[matcherKey].push({
212
- event: hookEvent,
213
- config: {
214
- type: "command",
215
- command: "[ANT-ONLY] Built-in Hook"
216
- },
217
- matcher: matcher.matcher,
218
- source: "builtinHook"
219
- });
220
- }
221
- }
222
- }
223
- }
224
- }
225
- return grouped;
226
- }
227
- function getSortedMatchersForEvent(hooksByEventAndMatcher, event) {
228
- const matchers = Object.keys(hooksByEventAndMatcher[event] || {});
229
- return sortMatchersByPriority(matchers, hooksByEventAndMatcher, event);
230
- }
231
- function getHooksForMatcher(hooksByEventAndMatcher, event, matcher) {
232
- const matcherKey = matcher ?? "";
233
- return hooksByEventAndMatcher[event]?.[matcherKey] ?? [];
234
- }
235
- function getMatcherMetadata(event, toolNames) {
236
- return getHookEventMetadata(toolNames)[event].matcherMetadata;
237
- }
238
- var getHookEventMetadata;
239
- var init_hooksConfigManager = __esm(() => {
240
- init_memoize();
241
- init_state();
242
- init_hooksSettings();
243
- getHookEventMetadata = memoize_default(function(toolNames) {
244
- return {
245
- PreToolUse: {
246
- summary: "Before tool execution",
247
- description: `Input to command is JSON of tool call arguments.
248
- Exit code 0 - stdout/stderr not shown
249
- Exit code 2 - show stderr to model and block tool call
250
- Other exit codes - show stderr to user only but continue with tool call`,
251
- matcherMetadata: {
252
- fieldToMatch: "tool_name",
253
- values: toolNames
254
- }
255
- },
256
- PostToolUse: {
257
- summary: "After tool execution",
258
- description: `Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).
259
- Exit code 0 - stdout shown in transcript mode (ctrl+o)
260
- Exit code 2 - show stderr to model immediately
261
- Other exit codes - show stderr to user only`,
262
- matcherMetadata: {
263
- fieldToMatch: "tool_name",
264
- values: toolNames
265
- }
266
- },
267
- PostToolUseFailure: {
268
- summary: "After tool execution fails",
269
- description: `Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.
270
- Exit code 0 - stdout shown in transcript mode (ctrl+o)
271
- Exit code 2 - show stderr to model immediately
272
- Other exit codes - show stderr to user only`,
273
- matcherMetadata: {
274
- fieldToMatch: "tool_name",
275
- values: toolNames
276
- }
277
- },
278
- PermissionDenied: {
279
- summary: "After auto mode classifier denies a tool call",
280
- description: `Input to command is JSON with tool_name, tool_input, tool_use_id, and reason.
281
- Return {"hookSpecificOutput":{"hookEventName":"PermissionDenied","retry":true}} to tell the model it may retry.
282
- Exit code 0 - stdout shown in transcript mode (ctrl+o)
283
- Other exit codes - show stderr to user only`,
284
- matcherMetadata: {
285
- fieldToMatch: "tool_name",
286
- values: toolNames
287
- }
288
- },
289
- Notification: {
290
- summary: "When notifications are sent",
291
- description: `Input to command is JSON with notification message and type.
292
- Exit code 0 - stdout/stderr not shown
293
- Other exit codes - show stderr to user only`,
294
- matcherMetadata: {
295
- fieldToMatch: "notification_type",
296
- values: [
297
- "permission_prompt",
298
- "idle_prompt",
299
- "auth_success",
300
- "elicitation_dialog",
301
- "elicitation_complete",
302
- "elicitation_response"
303
- ]
304
- }
305
- },
306
- UserPromptSubmit: {
307
- summary: "When the user submits a prompt",
308
- description: `Input to command is JSON with original user prompt text.
309
- Exit code 0 - stdout shown to Claude
310
- Exit code 2 - block processing, erase original prompt, and show stderr to user only
311
- Other exit codes - show stderr to user only`
312
- },
313
- SessionStart: {
314
- summary: "When a new session is started",
315
- description: `Input to command is JSON with session start source.
316
- Exit code 0 - stdout shown to Claude
317
- Blocking errors are ignored
318
- Other exit codes - show stderr to user only`,
319
- matcherMetadata: {
320
- fieldToMatch: "source",
321
- values: ["startup", "resume", "clear", "compact"]
322
- }
323
- },
324
- Stop: {
325
- summary: "Right before Claude concludes its response",
326
- description: `Exit code 0 - stdout/stderr not shown
327
- Exit code 2 - show stderr to model and continue conversation
328
- Other exit codes - show stderr to user only`
329
- },
330
- StopFailure: {
331
- summary: "When the turn ends due to an API error",
332
- description: "Fires instead of Stop when an API error (rate limit, auth failure, etc.) ended the turn. Fire-and-forget \u2014 hook output and exit codes are ignored.",
333
- matcherMetadata: {
334
- fieldToMatch: "error",
335
- values: [
336
- "rate_limit",
337
- "authentication_failed",
338
- "billing_error",
339
- "invalid_request",
340
- "server_error",
341
- "max_output_tokens",
342
- "unknown"
343
- ]
344
- }
345
- },
346
- SubagentStart: {
347
- summary: "When a subagent (Agent tool call) is started",
348
- description: `Input to command is JSON with agent_id and agent_type.
349
- Exit code 0 - stdout shown to subagent
350
- Blocking errors are ignored
351
- Other exit codes - show stderr to user only`,
352
- matcherMetadata: {
353
- fieldToMatch: "agent_type",
354
- values: []
355
- }
356
- },
357
- SubagentStop: {
358
- summary: "Right before a subagent (Agent tool call) concludes its response",
359
- description: `Input to command is JSON with agent_id, agent_type, and agent_transcript_path.
360
- Exit code 0 - stdout/stderr not shown
361
- Exit code 2 - show stderr to subagent and continue having it run
362
- Other exit codes - show stderr to user only`,
363
- matcherMetadata: {
364
- fieldToMatch: "agent_type",
365
- values: []
366
- }
367
- },
368
- PreCompact: {
369
- summary: "Before conversation compaction",
370
- description: `Input to command is JSON with compaction details.
371
- Exit code 0 - stdout appended as custom compact instructions
372
- Exit code 2 - block compaction
373
- Other exit codes - show stderr to user only but continue with compaction`,
374
- matcherMetadata: {
375
- fieldToMatch: "trigger",
376
- values: ["manual", "auto"]
377
- }
378
- },
379
- PostCompact: {
380
- summary: "After conversation compaction",
381
- description: `Input to command is JSON with compaction details and the summary.
382
- Exit code 0 - stdout shown to user
383
- Other exit codes - show stderr to user only`,
384
- matcherMetadata: {
385
- fieldToMatch: "trigger",
386
- values: ["manual", "auto"]
387
- }
388
- },
389
- SessionEnd: {
390
- summary: "When a session is ending",
391
- description: `Input to command is JSON with session end reason.
392
- Exit code 0 - command completes successfully
393
- Other exit codes - show stderr to user only`,
394
- matcherMetadata: {
395
- fieldToMatch: "reason",
396
- values: ["clear", "logout", "prompt_input_exit", "other"]
397
- }
398
- },
399
- PermissionRequest: {
400
- summary: "When a permission dialog is displayed",
401
- description: `Input to command is JSON with tool_name, tool_input, and tool_use_id.
402
- Output JSON with hookSpecificOutput containing decision to allow or deny.
403
- Exit code 0 - use hook decision if provided
404
- Other exit codes - show stderr to user only`,
405
- matcherMetadata: {
406
- fieldToMatch: "tool_name",
407
- values: toolNames
408
- }
409
- },
410
- Setup: {
411
- summary: "Repo setup hooks for init and maintenance",
412
- description: `Input to command is JSON with trigger (init or maintenance).
413
- Exit code 0 - stdout shown to Claude
414
- Blocking errors are ignored
415
- Other exit codes - show stderr to user only`,
416
- matcherMetadata: {
417
- fieldToMatch: "trigger",
418
- values: ["init", "maintenance"]
419
- }
420
- },
421
- TeammateIdle: {
422
- summary: "When a teammate is about to go idle",
423
- description: `Input to command is JSON with teammate_name and team_name.
424
- Exit code 0 - stdout/stderr not shown
425
- Exit code 2 - show stderr to teammate and prevent idle (teammate continues working)
426
- Other exit codes - show stderr to user only`
427
- },
428
- TaskCreated: {
429
- summary: "When a task is being created",
430
- description: `Input to command is JSON with task_id, task_subject, task_description, teammate_name, and team_name.
431
- Exit code 0 - stdout/stderr not shown
432
- Exit code 2 - show stderr to model and prevent task creation
433
- Other exit codes - show stderr to user only`
434
- },
435
- TaskCompleted: {
436
- summary: "When a task is being marked as completed",
437
- description: `Input to command is JSON with task_id, task_subject, task_description, teammate_name, and team_name.
438
- Exit code 0 - stdout/stderr not shown
439
- Exit code 2 - show stderr to model and prevent task completion
440
- Other exit codes - show stderr to user only`
441
- },
442
- Elicitation: {
443
- summary: "When an MCP server requests user input (elicitation)",
444
- description: `Input to command is JSON with mcp_server_name, message, and requested_schema.
445
- Output JSON with hookSpecificOutput containing action (accept/decline/cancel) and optional content.
446
- Exit code 0 - use hook response if provided
447
- Exit code 2 - deny the elicitation
448
- Other exit codes - show stderr to user only`,
449
- matcherMetadata: {
450
- fieldToMatch: "mcp_server_name",
451
- values: []
452
- }
453
- },
454
- ElicitationResult: {
455
- summary: "After a user responds to an MCP elicitation",
456
- description: `Input to command is JSON with mcp_server_name, action, content, mode, and elicitation_id.
457
- Output JSON with hookSpecificOutput containing optional action and content to override the response.
458
- Exit code 0 - use hook response if provided
459
- Exit code 2 - block the response (action becomes decline)
460
- Other exit codes - show stderr to user only`,
461
- matcherMetadata: {
462
- fieldToMatch: "mcp_server_name",
463
- values: []
464
- }
465
- },
466
- ConfigChange: {
467
- summary: "When configuration files change during a session",
468
- description: `Input to command is JSON with source (user_settings, project_settings, local_settings, policy_settings, skills) and file_path.
469
- Exit code 0 - allow the change
470
- Exit code 2 - block the change from being applied to the session
471
- Other exit codes - show stderr to user only`,
472
- matcherMetadata: {
473
- fieldToMatch: "source",
474
- values: [
475
- "user_settings",
476
- "project_settings",
477
- "local_settings",
478
- "policy_settings",
479
- "skills"
480
- ]
481
- }
482
- },
483
- InstructionsLoaded: {
484
- summary: "When an instruction file (CLAUDE.md or rule) is loaded",
485
- description: `Input to command is JSON with file_path, memory_type (User, Project, Local, Managed), load_reason (session_start, nested_traversal, path_glob_match, include, compact), globs (optional \u2014 the paths: frontmatter patterns that matched), trigger_file_path (optional \u2014 the file Claude touched that caused the load), and parent_file_path (optional \u2014 the file that @-included this one).
486
- Exit code 0 - command completes successfully
487
- Other exit codes - show stderr to user only
488
- This hook is observability-only and does not support blocking.`,
489
- matcherMetadata: {
490
- fieldToMatch: "load_reason",
491
- values: [
492
- "session_start",
493
- "nested_traversal",
494
- "path_glob_match",
495
- "include",
496
- "compact"
497
- ]
498
- }
499
- },
500
- WorktreeCreate: {
501
- summary: "Create an isolated worktree for VCS-agnostic isolation",
502
- description: `Input to command is JSON with name (suggested worktree slug).
503
- Stdout should contain the absolute path to the created worktree directory.
504
- Exit code 0 - worktree created successfully
505
- Other exit codes - worktree creation failed`
506
- },
507
- WorktreeRemove: {
508
- summary: "Remove a previously created worktree",
509
- description: `Input to command is JSON with worktree_path (absolute path to worktree).
510
- Exit code 0 - worktree removed successfully
511
- Other exit codes - show stderr to user only`
512
- },
513
- CwdChanged: {
514
- summary: "After the working directory changes",
515
- description: `Input to command is JSON with old_cwd and new_cwd.
516
- CLAUDE_ENV_FILE is set \u2014 write bash exports there to apply env to subsequent BashTool commands.
517
- Hook output can include hookSpecificOutput.watchPaths (array of absolute paths) to register with the FileChanged watcher.
518
- Exit code 0 - command completes successfully
519
- Other exit codes - show stderr to user only`
520
- },
521
- FileChanged: {
522
- summary: "When a watched file changes",
523
- description: `Input to command is JSON with file_path and event (change, add, unlink).
524
- CLAUDE_ENV_FILE is set \u2014 write bash exports there to apply env to subsequent BashTool commands.
525
- The matcher field specifies filenames to watch in the current directory (e.g. ".envrc|.env").
526
- Hook output can include hookSpecificOutput.watchPaths (array of absolute paths) to dynamically update the watch list.
527
- Exit code 0 - command completes successfully
528
- Other exit codes - show stderr to user only`
529
- }
530
- };
531
- }, (toolNames) => toolNames.slice().sort().join(","));
532
- });
533
-
534
- // src/components/hooks/SelectEventMode.tsx
535
- function SelectEventMode(t0) {
536
- const $ = import_compiler_runtime.c(23);
537
- const {
538
- hookEventMetadata,
539
- hooksByEvent,
540
- totalHooksCount,
541
- restrictedByPolicy,
542
- onSelectEvent,
543
- onCancel
544
- } = t0;
545
- let t1;
546
- if ($[0] !== totalHooksCount) {
547
- t1 = plural(totalHooksCount, "hook");
548
- $[0] = totalHooksCount;
549
- $[1] = t1;
550
- } else {
551
- t1 = $[1];
552
- }
553
- const subtitle = `${totalHooksCount} ${t1} configured`;
554
- let t2;
555
- if ($[2] !== restrictedByPolicy) {
556
- t2 = restrictedByPolicy && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
557
- flexDirection: "column",
558
- children: [
559
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
560
- color: "suggestion",
561
- children: [
562
- figures_default.info,
563
- " Hooks Restricted by Policy"
564
- ]
565
- }, undefined, true, undefined, this),
566
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
567
- dimColor: true,
568
- children: "Only hooks from managed settings can run. User-defined hooks from ~/.claude/settings.json, .claude/settings.json, and .claude/settings.local.json are blocked."
569
- }, undefined, false, undefined, this)
570
- ]
571
- }, undefined, true, undefined, this);
572
- $[2] = restrictedByPolicy;
573
- $[3] = t2;
574
- } else {
575
- t2 = $[3];
576
- }
577
- let t3;
578
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
579
- t3 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
580
- flexDirection: "column",
581
- children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
582
- dimColor: true,
583
- children: [
584
- figures_default.info,
585
- " This menu is read-only. To add or modify hooks, edit settings.json directly or ask Claude.",
586
- " ",
587
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
588
- url: "https://code.claude.com/docs/en/hooks",
589
- children: "Learn more"
590
- }, undefined, false, undefined, this)
591
- ]
592
- }, undefined, true, undefined, this)
593
- }, undefined, false, undefined, this);
594
- $[4] = t3;
595
- } else {
596
- t3 = $[4];
597
- }
598
- let t4;
599
- if ($[5] !== onSelectEvent) {
600
- t4 = (value) => {
601
- onSelectEvent(value);
602
- };
603
- $[5] = onSelectEvent;
604
- $[6] = t4;
605
- } else {
606
- t4 = $[6];
607
- }
608
- let t5;
609
- if ($[7] !== hookEventMetadata) {
610
- t5 = Object.entries(hookEventMetadata);
611
- $[7] = hookEventMetadata;
612
- $[8] = t5;
613
- } else {
614
- t5 = $[8];
615
- }
616
- let t6;
617
- if ($[9] !== hooksByEvent || $[10] !== t5) {
618
- t6 = t5.map((t72) => {
619
- const [name, metadata] = t72;
620
- const count = hooksByEvent[name] || 0;
621
- return {
622
- label: count > 0 ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
623
- children: [
624
- name,
625
- " ",
626
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
627
- color: "suggestion",
628
- children: [
629
- "(",
630
- count,
631
- ")"
632
- ]
633
- }, undefined, true, undefined, this)
634
- ]
635
- }, undefined, true, undefined, this) : name,
636
- value: name,
637
- description: metadata.summary
638
- };
639
- });
640
- $[9] = hooksByEvent;
641
- $[10] = t5;
642
- $[11] = t6;
643
- } else {
644
- t6 = $[11];
645
- }
646
- let t7;
647
- if ($[12] !== onCancel || $[13] !== t4 || $[14] !== t6) {
648
- t7 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
649
- flexDirection: "column",
650
- children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Select, {
651
- onChange: t4,
652
- onCancel,
653
- options: t6
654
- }, undefined, false, undefined, this)
655
- }, undefined, false, undefined, this);
656
- $[12] = onCancel;
657
- $[13] = t4;
658
- $[14] = t6;
659
- $[15] = t7;
660
- } else {
661
- t7 = $[15];
662
- }
663
- let t8;
664
- if ($[16] !== t2 || $[17] !== t7) {
665
- t8 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
666
- flexDirection: "column",
667
- gap: 1,
668
- children: [
669
- t2,
670
- t3,
671
- t7
672
- ]
673
- }, undefined, true, undefined, this);
674
- $[16] = t2;
675
- $[17] = t7;
676
- $[18] = t8;
677
- } else {
678
- t8 = $[18];
679
- }
680
- let t9;
681
- if ($[19] !== onCancel || $[20] !== subtitle || $[21] !== t8) {
682
- t9 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Dialog, {
683
- title: "Hooks",
684
- subtitle,
685
- onCancel,
686
- children: t8
687
- }, undefined, false, undefined, this);
688
- $[19] = onCancel;
689
- $[20] = subtitle;
690
- $[21] = t8;
691
- $[22] = t9;
692
- } else {
693
- t9 = $[22];
694
- }
695
- return t9;
696
- }
697
- var import_compiler_runtime, jsx_dev_runtime;
698
- var init_SelectEventMode = __esm(() => {
699
- init_figures();
700
- init_ink();
701
- init_stringUtils();
702
- init_select();
703
- init_Dialog();
704
- import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
705
- jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
706
- });
707
-
708
- // src/components/hooks/SelectHookMode.tsx
709
- function SelectHookMode(t0) {
710
- const $ = import_compiler_runtime2.c(19);
711
- const {
712
- selectedEvent,
713
- selectedMatcher,
714
- hooksForSelectedMatcher,
715
- hookEventMetadata,
716
- onSelect,
717
- onCancel
718
- } = t0;
719
- const title = hookEventMetadata.matcherMetadata !== undefined ? `${selectedEvent} - Matcher: ${selectedMatcher || "(all)"}` : selectedEvent;
720
- if (hooksForSelectedMatcher.length === 0) {
721
- let t12;
722
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
723
- t12 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
724
- flexDirection: "column",
725
- gap: 1,
726
- children: [
727
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
728
- dimColor: true,
729
- children: "No hooks configured for this event."
730
- }, undefined, false, undefined, this),
731
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
732
- dimColor: true,
733
- children: "To add hooks, edit settings.json directly or ask Claude."
734
- }, undefined, false, undefined, this)
735
- ]
736
- }, undefined, true, undefined, this);
737
- $[0] = t12;
738
- } else {
739
- t12 = $[0];
740
- }
741
- let t22;
742
- if ($[1] !== hookEventMetadata.description || $[2] !== onCancel || $[3] !== title) {
743
- t22 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Dialog, {
744
- title,
745
- subtitle: hookEventMetadata.description,
746
- onCancel,
747
- inputGuide: _temp,
748
- children: t12
749
- }, undefined, false, undefined, this);
750
- $[1] = hookEventMetadata.description;
751
- $[2] = onCancel;
752
- $[3] = title;
753
- $[4] = t22;
754
- } else {
755
- t22 = $[4];
756
- }
757
- return t22;
758
- }
759
- const t1 = hookEventMetadata.description;
760
- let t2;
761
- if ($[5] !== hooksForSelectedMatcher) {
762
- t2 = hooksForSelectedMatcher.map(_temp2);
763
- $[5] = hooksForSelectedMatcher;
764
- $[6] = t2;
765
- } else {
766
- t2 = $[6];
767
- }
768
- let t3;
769
- if ($[7] !== hooksForSelectedMatcher || $[8] !== onSelect) {
770
- t3 = (value) => {
771
- const index_0 = parseInt(value, 10);
772
- const hook_0 = hooksForSelectedMatcher[index_0];
773
- if (hook_0) {
774
- onSelect(hook_0);
775
- }
776
- };
777
- $[7] = hooksForSelectedMatcher;
778
- $[8] = onSelect;
779
- $[9] = t3;
780
- } else {
781
- t3 = $[9];
782
- }
783
- let t4;
784
- if ($[10] !== onCancel || $[11] !== t2 || $[12] !== t3) {
785
- t4 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
786
- flexDirection: "column",
787
- children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Select, {
788
- options: t2,
789
- onChange: t3,
790
- onCancel
791
- }, undefined, false, undefined, this)
792
- }, undefined, false, undefined, this);
793
- $[10] = onCancel;
794
- $[11] = t2;
795
- $[12] = t3;
796
- $[13] = t4;
797
- } else {
798
- t4 = $[13];
799
- }
800
- let t5;
801
- if ($[14] !== hookEventMetadata.description || $[15] !== onCancel || $[16] !== t4 || $[17] !== title) {
802
- t5 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Dialog, {
803
- title,
804
- subtitle: t1,
805
- onCancel,
806
- children: t4
807
- }, undefined, false, undefined, this);
808
- $[14] = hookEventMetadata.description;
809
- $[15] = onCancel;
810
- $[16] = t4;
811
- $[17] = title;
812
- $[18] = t5;
813
- } else {
814
- t5 = $[18];
815
- }
816
- return t5;
817
- }
818
- function _temp2(hook, index) {
819
- return {
820
- label: `[${hook.config.type}] ${getHookDisplayText(hook.config)}`,
821
- value: index.toString(),
822
- description: hook.source === "pluginHook" && hook.pluginName ? `${hookSourceHeaderDisplayString(hook.source)} (${hook.pluginName})` : hookSourceHeaderDisplayString(hook.source)
823
- };
824
- }
825
- function _temp() {
826
- return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
827
- children: "Esc to go back"
828
- }, undefined, false, undefined, this);
829
- }
830
- var import_compiler_runtime2, jsx_dev_runtime2;
831
- var init_SelectHookMode = __esm(() => {
832
- init_ink();
833
- init_hooksSettings();
834
- init_select();
835
- init_Dialog();
836
- import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
837
- jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
838
- });
839
-
840
- // src/components/hooks/SelectMatcherMode.tsx
841
- function SelectMatcherMode(t0) {
842
- const $ = import_compiler_runtime3.c(25);
843
- const {
844
- selectedEvent,
845
- matchersForSelectedEvent,
846
- hooksByEventAndMatcher,
847
- eventDescription,
848
- onSelect,
849
- onCancel
850
- } = t0;
851
- let t1;
852
- if ($[0] !== hooksByEventAndMatcher || $[1] !== matchersForSelectedEvent || $[2] !== selectedEvent) {
853
- let t22;
854
- if ($[4] !== hooksByEventAndMatcher || $[5] !== selectedEvent) {
855
- t22 = (matcher) => {
856
- const hooks = hooksByEventAndMatcher[selectedEvent]?.[matcher] || [];
857
- const sources = Array.from(new Set(hooks.map(_temp4)));
858
- return {
859
- matcher,
860
- sources,
861
- hookCount: hooks.length
862
- };
863
- };
864
- $[4] = hooksByEventAndMatcher;
865
- $[5] = selectedEvent;
866
- $[6] = t22;
867
- } else {
868
- t22 = $[6];
869
- }
870
- t1 = matchersForSelectedEvent.map(t22);
871
- $[0] = hooksByEventAndMatcher;
872
- $[1] = matchersForSelectedEvent;
873
- $[2] = selectedEvent;
874
- $[3] = t1;
875
- } else {
876
- t1 = $[3];
877
- }
878
- const matchersWithSources = t1;
879
- if (matchersForSelectedEvent.length === 0) {
880
- const t22 = `${selectedEvent} - Matchers`;
881
- let t32;
882
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
883
- t32 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
884
- flexDirection: "column",
885
- gap: 1,
886
- children: [
887
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
888
- dimColor: true,
889
- children: "No hooks configured for this event."
890
- }, undefined, false, undefined, this),
891
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
892
- dimColor: true,
893
- children: "To add hooks, edit settings.json directly or ask Claude."
894
- }, undefined, false, undefined, this)
895
- ]
896
- }, undefined, true, undefined, this);
897
- $[7] = t32;
898
- } else {
899
- t32 = $[7];
900
- }
901
- let t42;
902
- if ($[8] !== eventDescription || $[9] !== onCancel || $[10] !== t22) {
903
- t42 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Dialog, {
904
- title: t22,
905
- subtitle: eventDescription,
906
- onCancel,
907
- inputGuide: _temp22,
908
- children: t32
909
- }, undefined, false, undefined, this);
910
- $[8] = eventDescription;
911
- $[9] = onCancel;
912
- $[10] = t22;
913
- $[11] = t42;
914
- } else {
915
- t42 = $[11];
916
- }
917
- return t42;
918
- }
919
- const t2 = `${selectedEvent} - Matchers`;
920
- let t3;
921
- if ($[12] !== matchersWithSources) {
922
- t3 = matchersWithSources.map(_temp3);
923
- $[12] = matchersWithSources;
924
- $[13] = t3;
925
- } else {
926
- t3 = $[13];
927
- }
928
- let t4;
929
- if ($[14] !== onSelect) {
930
- t4 = (value) => {
931
- onSelect(value);
932
- };
933
- $[14] = onSelect;
934
- $[15] = t4;
935
- } else {
936
- t4 = $[15];
937
- }
938
- let t5;
939
- if ($[16] !== onCancel || $[17] !== t3 || $[18] !== t4) {
940
- t5 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
941
- flexDirection: "column",
942
- children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Select, {
943
- options: t3,
944
- onChange: t4,
945
- onCancel
946
- }, undefined, false, undefined, this)
947
- }, undefined, false, undefined, this);
948
- $[16] = onCancel;
949
- $[17] = t3;
950
- $[18] = t4;
951
- $[19] = t5;
952
- } else {
953
- t5 = $[19];
954
- }
955
- let t6;
956
- if ($[20] !== eventDescription || $[21] !== onCancel || $[22] !== t2 || $[23] !== t5) {
957
- t6 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Dialog, {
958
- title: t2,
959
- subtitle: eventDescription,
960
- onCancel,
961
- children: t5
962
- }, undefined, false, undefined, this);
963
- $[20] = eventDescription;
964
- $[21] = onCancel;
965
- $[22] = t2;
966
- $[23] = t5;
967
- $[24] = t6;
968
- } else {
969
- t6 = $[24];
970
- }
971
- return t6;
972
- }
973
- function _temp3(item) {
974
- const sourceText = item.sources.map(hookSourceInlineDisplayString).join(", ");
975
- const matcherLabel = item.matcher || "(all)";
976
- return {
977
- label: `[${sourceText}] ${matcherLabel}`,
978
- value: item.matcher,
979
- description: `${item.hookCount} ${plural(item.hookCount, "hook")}`
980
- };
981
- }
982
- function _temp22() {
983
- return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
984
- children: "Esc to go back"
985
- }, undefined, false, undefined, this);
986
- }
987
- function _temp4(h) {
988
- return h.source;
989
- }
990
- var import_compiler_runtime3, jsx_dev_runtime3;
991
- var init_SelectMatcherMode = __esm(() => {
992
- init_ink();
993
- init_hooksSettings();
994
- init_stringUtils();
995
- init_select();
996
- init_Dialog();
997
- import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
998
- jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
999
- });
1000
-
1001
- // src/components/hooks/ViewHookMode.tsx
1002
- function ViewHookMode(t0) {
1003
- const $ = import_compiler_runtime4.c(40);
1004
- const {
1005
- selectedHook,
1006
- eventSupportsMatcher,
1007
- onCancel
1008
- } = t0;
1009
- let t1;
1010
- if ($[0] !== selectedHook.event) {
1011
- t1 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1012
- children: [
1013
- "Event: ",
1014
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1015
- bold: true,
1016
- children: selectedHook.event
1017
- }, undefined, false, undefined, this)
1018
- ]
1019
- }, undefined, true, undefined, this);
1020
- $[0] = selectedHook.event;
1021
- $[1] = t1;
1022
- } else {
1023
- t1 = $[1];
1024
- }
1025
- let t2;
1026
- if ($[2] !== eventSupportsMatcher || $[3] !== selectedHook.matcher) {
1027
- t2 = eventSupportsMatcher && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1028
- children: [
1029
- "Matcher: ",
1030
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1031
- bold: true,
1032
- children: selectedHook.matcher || "(all)"
1033
- }, undefined, false, undefined, this)
1034
- ]
1035
- }, undefined, true, undefined, this);
1036
- $[2] = eventSupportsMatcher;
1037
- $[3] = selectedHook.matcher;
1038
- $[4] = t2;
1039
- } else {
1040
- t2 = $[4];
1041
- }
1042
- let t3;
1043
- if ($[5] !== selectedHook.config.type) {
1044
- t3 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1045
- children: [
1046
- "Type: ",
1047
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1048
- bold: true,
1049
- children: selectedHook.config.type
1050
- }, undefined, false, undefined, this)
1051
- ]
1052
- }, undefined, true, undefined, this);
1053
- $[5] = selectedHook.config.type;
1054
- $[6] = t3;
1055
- } else {
1056
- t3 = $[6];
1057
- }
1058
- let t4;
1059
- if ($[7] !== selectedHook.source) {
1060
- t4 = hookSourceDescriptionDisplayString(selectedHook.source);
1061
- $[7] = selectedHook.source;
1062
- $[8] = t4;
1063
- } else {
1064
- t4 = $[8];
1065
- }
1066
- let t5;
1067
- if ($[9] !== t4) {
1068
- t5 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1069
- children: [
1070
- "Source:",
1071
- " ",
1072
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1073
- dimColor: true,
1074
- children: t4
1075
- }, undefined, false, undefined, this)
1076
- ]
1077
- }, undefined, true, undefined, this);
1078
- $[9] = t4;
1079
- $[10] = t5;
1080
- } else {
1081
- t5 = $[10];
1082
- }
1083
- let t6;
1084
- if ($[11] !== selectedHook.pluginName) {
1085
- t6 = selectedHook.pluginName && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1086
- children: [
1087
- "Plugin: ",
1088
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1089
- dimColor: true,
1090
- children: selectedHook.pluginName
1091
- }, undefined, false, undefined, this)
1092
- ]
1093
- }, undefined, true, undefined, this);
1094
- $[11] = selectedHook.pluginName;
1095
- $[12] = t6;
1096
- } else {
1097
- t6 = $[12];
1098
- }
1099
- let t7;
1100
- if ($[13] !== t1 || $[14] !== t2 || $[15] !== t3 || $[16] !== t5 || $[17] !== t6) {
1101
- t7 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
1102
- flexDirection: "column",
1103
- children: [
1104
- t1,
1105
- t2,
1106
- t3,
1107
- t5,
1108
- t6
1109
- ]
1110
- }, undefined, true, undefined, this);
1111
- $[13] = t1;
1112
- $[14] = t2;
1113
- $[15] = t3;
1114
- $[16] = t5;
1115
- $[17] = t6;
1116
- $[18] = t7;
1117
- } else {
1118
- t7 = $[18];
1119
- }
1120
- let t8;
1121
- if ($[19] !== selectedHook.config) {
1122
- t8 = getContentFieldLabel(selectedHook.config);
1123
- $[19] = selectedHook.config;
1124
- $[20] = t8;
1125
- } else {
1126
- t8 = $[20];
1127
- }
1128
- let t9;
1129
- if ($[21] !== t8) {
1130
- t9 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1131
- dimColor: true,
1132
- children: [
1133
- t8,
1134
- ":"
1135
- ]
1136
- }, undefined, true, undefined, this);
1137
- $[21] = t8;
1138
- $[22] = t9;
1139
- } else {
1140
- t9 = $[22];
1141
- }
1142
- let t10;
1143
- if ($[23] !== selectedHook.config) {
1144
- t10 = getContentFieldValue(selectedHook.config);
1145
- $[23] = selectedHook.config;
1146
- $[24] = t10;
1147
- } else {
1148
- t10 = $[24];
1149
- }
1150
- let t11;
1151
- if ($[25] !== t10) {
1152
- t11 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
1153
- borderStyle: "round",
1154
- borderDimColor: true,
1155
- paddingLeft: 1,
1156
- paddingRight: 1,
1157
- children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1158
- children: t10
1159
- }, undefined, false, undefined, this)
1160
- }, undefined, false, undefined, this);
1161
- $[25] = t10;
1162
- $[26] = t11;
1163
- } else {
1164
- t11 = $[26];
1165
- }
1166
- let t12;
1167
- if ($[27] !== t11 || $[28] !== t9) {
1168
- t12 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
1169
- flexDirection: "column",
1170
- children: [
1171
- t9,
1172
- t11
1173
- ]
1174
- }, undefined, true, undefined, this);
1175
- $[27] = t11;
1176
- $[28] = t9;
1177
- $[29] = t12;
1178
- } else {
1179
- t12 = $[29];
1180
- }
1181
- let t13;
1182
- if ($[30] !== selectedHook.config) {
1183
- t13 = "statusMessage" in selectedHook.config && selectedHook.config.statusMessage && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1184
- children: [
1185
- "Status message:",
1186
- " ",
1187
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1188
- dimColor: true,
1189
- children: selectedHook.config.statusMessage
1190
- }, undefined, false, undefined, this)
1191
- ]
1192
- }, undefined, true, undefined, this);
1193
- $[30] = selectedHook.config;
1194
- $[31] = t13;
1195
- } else {
1196
- t13 = $[31];
1197
- }
1198
- let t14;
1199
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
1200
- t14 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1201
- dimColor: true,
1202
- children: "To modify or remove this hook, edit settings.json directly or ask Claude to help."
1203
- }, undefined, false, undefined, this);
1204
- $[32] = t14;
1205
- } else {
1206
- t14 = $[32];
1207
- }
1208
- let t15;
1209
- if ($[33] !== t12 || $[34] !== t13 || $[35] !== t7) {
1210
- t15 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
1211
- flexDirection: "column",
1212
- gap: 1,
1213
- children: [
1214
- t7,
1215
- t12,
1216
- t13,
1217
- t14
1218
- ]
1219
- }, undefined, true, undefined, this);
1220
- $[33] = t12;
1221
- $[34] = t13;
1222
- $[35] = t7;
1223
- $[36] = t15;
1224
- } else {
1225
- t15 = $[36];
1226
- }
1227
- let t16;
1228
- if ($[37] !== onCancel || $[38] !== t15) {
1229
- t16 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Dialog, {
1230
- title: "Hook details",
1231
- onCancel,
1232
- inputGuide: _temp6,
1233
- children: t15
1234
- }, undefined, false, undefined, this);
1235
- $[37] = onCancel;
1236
- $[38] = t15;
1237
- $[39] = t16;
1238
- } else {
1239
- t16 = $[39];
1240
- }
1241
- return t16;
1242
- }
1243
- function _temp6() {
1244
- return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
1245
- children: "Esc to go back"
1246
- }, undefined, false, undefined, this);
1247
- }
1248
- function getContentFieldLabel(config) {
1249
- switch (config.type) {
1250
- case "command":
1251
- return "Command";
1252
- case "prompt":
1253
- return "Prompt";
1254
- case "agent":
1255
- return "Prompt";
1256
- case "http":
1257
- return "URL";
1258
- }
1259
- }
1260
- function getContentFieldValue(config) {
1261
- switch (config.type) {
1262
- case "command":
1263
- return config.command;
1264
- case "prompt":
1265
- return config.prompt;
1266
- case "agent":
1267
- return config.prompt;
1268
- case "http":
1269
- return config.url;
1270
- }
1271
- }
1272
- var import_compiler_runtime4, jsx_dev_runtime4;
1273
- var init_ViewHookMode = __esm(() => {
1274
- init_ink();
1275
- init_hooksSettings();
1276
- init_Dialog();
1277
- import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
1278
- jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
1279
- });
1280
-
1281
- // src/components/hooks/HooksConfigMenu.tsx
1282
- function HooksConfigMenu(t0) {
1283
- const $ = import_compiler_runtime5.c(100);
1284
- const {
1285
- toolNames,
1286
- onExit
1287
- } = t0;
1288
- let t1;
1289
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1290
- t1 = {
1291
- mode: "select-event"
1292
- };
1293
- $[0] = t1;
1294
- } else {
1295
- t1 = $[0];
1296
- }
1297
- const [modeState, setModeState] = import_react.useState(t1);
1298
- const [disabledByPolicy, setDisabledByPolicy] = import_react.useState(_temp7);
1299
- const [restrictedByPolicy, setRestrictedByPolicy] = import_react.useState(_temp23);
1300
- let t2;
1301
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1302
- t2 = (source) => {
1303
- if (source === "policySettings") {
1304
- const settings_0 = getSettings_DEPRECATED();
1305
- const hooksDisabled_0 = settings_0?.disableAllHooks === true;
1306
- setDisabledByPolicy(hooksDisabled_0 && getSettingsForSource("policySettings")?.disableAllHooks === true);
1307
- setRestrictedByPolicy(getSettingsForSource("policySettings")?.allowManagedHooksOnly === true);
1308
- }
1309
- };
1310
- $[1] = t2;
1311
- } else {
1312
- t2 = $[1];
1313
- }
1314
- useSettingsChange(t2);
1315
- const mode = modeState.mode;
1316
- const selectedEvent = "event" in modeState ? modeState.event : "PreToolUse";
1317
- const selectedMatcher = "matcher" in modeState ? modeState.matcher : null;
1318
- const mcp = useAppState(_temp32);
1319
- const appStateStore = useAppStateStore();
1320
- let t3;
1321
- if ($[2] !== mcp.tools || $[3] !== toolNames) {
1322
- t3 = [...toolNames, ...mcp.tools.map(_temp42)];
1323
- $[2] = mcp.tools;
1324
- $[3] = toolNames;
1325
- $[4] = t3;
1326
- } else {
1327
- t3 = $[4];
1328
- }
1329
- const combinedToolNames = t3;
1330
- let t4;
1331
- if ($[5] !== appStateStore || $[6] !== combinedToolNames) {
1332
- t4 = groupHooksByEventAndMatcher(appStateStore.getState(), combinedToolNames);
1333
- $[5] = appStateStore;
1334
- $[6] = combinedToolNames;
1335
- $[7] = t4;
1336
- } else {
1337
- t4 = $[7];
1338
- }
1339
- const hooksByEventAndMatcher = t4;
1340
- let t5;
1341
- if ($[8] !== hooksByEventAndMatcher || $[9] !== selectedEvent) {
1342
- t5 = getSortedMatchersForEvent(hooksByEventAndMatcher, selectedEvent);
1343
- $[8] = hooksByEventAndMatcher;
1344
- $[9] = selectedEvent;
1345
- $[10] = t5;
1346
- } else {
1347
- t5 = $[10];
1348
- }
1349
- const sortedMatchersForSelectedEvent = t5;
1350
- let t6;
1351
- if ($[11] !== hooksByEventAndMatcher || $[12] !== selectedEvent || $[13] !== selectedMatcher) {
1352
- t6 = getHooksForMatcher(hooksByEventAndMatcher, selectedEvent, selectedMatcher);
1353
- $[11] = hooksByEventAndMatcher;
1354
- $[12] = selectedEvent;
1355
- $[13] = selectedMatcher;
1356
- $[14] = t6;
1357
- } else {
1358
- t6 = $[14];
1359
- }
1360
- const hooksForSelectedMatcher = t6;
1361
- let t7;
1362
- if ($[15] !== onExit) {
1363
- t7 = () => {
1364
- onExit("Hooks dialog dismissed", {
1365
- display: "system"
1366
- });
1367
- };
1368
- $[15] = onExit;
1369
- $[16] = t7;
1370
- } else {
1371
- t7 = $[16];
1372
- }
1373
- const handleExit = t7;
1374
- const t8 = mode === "select-event";
1375
- let t9;
1376
- if ($[17] !== t8) {
1377
- t9 = {
1378
- context: "Confirmation",
1379
- isActive: t8
1380
- };
1381
- $[17] = t8;
1382
- $[18] = t9;
1383
- } else {
1384
- t9 = $[18];
1385
- }
1386
- useKeybinding("confirm:no", handleExit, t9);
1387
- let t10;
1388
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
1389
- t10 = () => {
1390
- setModeState({
1391
- mode: "select-event"
1392
- });
1393
- };
1394
- $[19] = t10;
1395
- } else {
1396
- t10 = $[19];
1397
- }
1398
- const t11 = mode === "select-matcher";
1399
- let t12;
1400
- if ($[20] !== t11) {
1401
- t12 = {
1402
- context: "Confirmation",
1403
- isActive: t11
1404
- };
1405
- $[20] = t11;
1406
- $[21] = t12;
1407
- } else {
1408
- t12 = $[21];
1409
- }
1410
- useKeybinding("confirm:no", t10, t12);
1411
- let t13;
1412
- if ($[22] !== combinedToolNames || $[23] !== modeState) {
1413
- t13 = () => {
1414
- if ("event" in modeState) {
1415
- if (getMatcherMetadata(modeState.event, combinedToolNames) !== undefined) {
1416
- setModeState({
1417
- mode: "select-matcher",
1418
- event: modeState.event
1419
- });
1420
- } else {
1421
- setModeState({
1422
- mode: "select-event"
1423
- });
1424
- }
1425
- }
1426
- };
1427
- $[22] = combinedToolNames;
1428
- $[23] = modeState;
1429
- $[24] = t13;
1430
- } else {
1431
- t13 = $[24];
1432
- }
1433
- const t14 = mode === "select-hook";
1434
- let t15;
1435
- if ($[25] !== t14) {
1436
- t15 = {
1437
- context: "Confirmation",
1438
- isActive: t14
1439
- };
1440
- $[25] = t14;
1441
- $[26] = t15;
1442
- } else {
1443
- t15 = $[26];
1444
- }
1445
- useKeybinding("confirm:no", t13, t15);
1446
- let t16;
1447
- if ($[27] !== modeState) {
1448
- t16 = () => {
1449
- if (modeState.mode === "view-hook") {
1450
- const {
1451
- event,
1452
- hook
1453
- } = modeState;
1454
- setModeState({
1455
- mode: "select-hook",
1456
- event,
1457
- matcher: hook.matcher || ""
1458
- });
1459
- }
1460
- };
1461
- $[27] = modeState;
1462
- $[28] = t16;
1463
- } else {
1464
- t16 = $[28];
1465
- }
1466
- const t17 = mode === "view-hook";
1467
- let t18;
1468
- if ($[29] !== t17) {
1469
- t18 = {
1470
- context: "Confirmation",
1471
- isActive: t17
1472
- };
1473
- $[29] = t17;
1474
- $[30] = t18;
1475
- } else {
1476
- t18 = $[30];
1477
- }
1478
- useKeybinding("confirm:no", t16, t18);
1479
- let t19;
1480
- if ($[31] !== combinedToolNames) {
1481
- t19 = getHookEventMetadata(combinedToolNames);
1482
- $[31] = combinedToolNames;
1483
- $[32] = t19;
1484
- } else {
1485
- t19 = $[32];
1486
- }
1487
- const hookEventMetadata = t19;
1488
- const settings_1 = getSettings_DEPRECATED();
1489
- const hooksDisabled_1 = settings_1?.disableAllHooks === true;
1490
- let t20;
1491
- if ($[33] !== hooksByEventAndMatcher) {
1492
- const byEvent = {};
1493
- let total = 0;
1494
- for (const [event_0, matchers] of Object.entries(hooksByEventAndMatcher)) {
1495
- const eventCount = Object.values(matchers).reduce(_temp5, 0);
1496
- byEvent[event_0] = eventCount;
1497
- total = total + eventCount;
1498
- }
1499
- t20 = {
1500
- hooksByEvent: byEvent,
1501
- totalHooksCount: total
1502
- };
1503
- $[33] = hooksByEventAndMatcher;
1504
- $[34] = t20;
1505
- } else {
1506
- t20 = $[34];
1507
- }
1508
- const {
1509
- hooksByEvent,
1510
- totalHooksCount
1511
- } = t20;
1512
- if (hooksDisabled_1) {
1513
- let t21;
1514
- if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
1515
- t21 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1516
- bold: true,
1517
- children: "disabled"
1518
- }, undefined, false, undefined, this);
1519
- $[35] = t21;
1520
- } else {
1521
- t21 = $[35];
1522
- }
1523
- const t22 = disabledByPolicy && " by a managed settings file";
1524
- let t23;
1525
- if ($[36] !== totalHooksCount) {
1526
- t23 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1527
- bold: true,
1528
- children: totalHooksCount
1529
- }, undefined, false, undefined, this);
1530
- $[36] = totalHooksCount;
1531
- $[37] = t23;
1532
- } else {
1533
- t23 = $[37];
1534
- }
1535
- let t24;
1536
- if ($[38] !== totalHooksCount) {
1537
- t24 = plural(totalHooksCount, "hook");
1538
- $[38] = totalHooksCount;
1539
- $[39] = t24;
1540
- } else {
1541
- t24 = $[39];
1542
- }
1543
- let t25;
1544
- if ($[40] !== totalHooksCount) {
1545
- t25 = plural(totalHooksCount, "is", "are");
1546
- $[40] = totalHooksCount;
1547
- $[41] = t25;
1548
- } else {
1549
- t25 = $[41];
1550
- }
1551
- let t26;
1552
- if ($[42] !== t22 || $[43] !== t23 || $[44] !== t24 || $[45] !== t25) {
1553
- t26 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1554
- children: [
1555
- "All hooks are currently ",
1556
- t21,
1557
- t22,
1558
- ". You have",
1559
- " ",
1560
- t23,
1561
- " configured",
1562
- " ",
1563
- t24,
1564
- " that",
1565
- " ",
1566
- t25,
1567
- " not running."
1568
- ]
1569
- }, undefined, true, undefined, this);
1570
- $[42] = t22;
1571
- $[43] = t23;
1572
- $[44] = t24;
1573
- $[45] = t25;
1574
- $[46] = t26;
1575
- } else {
1576
- t26 = $[46];
1577
- }
1578
- let t27;
1579
- let t28;
1580
- let t29;
1581
- let t30;
1582
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
1583
- t27 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedBox_default, {
1584
- marginTop: 1,
1585
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1586
- dimColor: true,
1587
- children: "When hooks are disabled:"
1588
- }, undefined, false, undefined, this)
1589
- }, undefined, false, undefined, this);
1590
- t28 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1591
- dimColor: true,
1592
- children: "\xB7 No hook commands will execute"
1593
- }, undefined, false, undefined, this);
1594
- t29 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1595
- dimColor: true,
1596
- children: "\xB7 StatusLine will not be displayed"
1597
- }, undefined, false, undefined, this);
1598
- t30 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1599
- dimColor: true,
1600
- children: "\xB7 Tool operations will proceed without hook validation"
1601
- }, undefined, false, undefined, this);
1602
- $[47] = t27;
1603
- $[48] = t28;
1604
- $[49] = t29;
1605
- $[50] = t30;
1606
- } else {
1607
- t27 = $[47];
1608
- t28 = $[48];
1609
- t29 = $[49];
1610
- t30 = $[50];
1611
- }
1612
- let t31;
1613
- if ($[51] !== t26) {
1614
- t31 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedBox_default, {
1615
- flexDirection: "column",
1616
- children: [
1617
- t26,
1618
- t27,
1619
- t28,
1620
- t29,
1621
- t30
1622
- ]
1623
- }, undefined, true, undefined, this);
1624
- $[51] = t26;
1625
- $[52] = t31;
1626
- } else {
1627
- t31 = $[52];
1628
- }
1629
- let t32;
1630
- if ($[53] !== disabledByPolicy) {
1631
- t32 = !disabledByPolicy && /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1632
- dimColor: true,
1633
- children: 'To re-enable hooks, remove "disableAllHooks" from settings.json or ask Claude.'
1634
- }, undefined, false, undefined, this);
1635
- $[53] = disabledByPolicy;
1636
- $[54] = t32;
1637
- } else {
1638
- t32 = $[54];
1639
- }
1640
- let t33;
1641
- if ($[55] !== t31 || $[56] !== t32) {
1642
- t33 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedBox_default, {
1643
- flexDirection: "column",
1644
- gap: 1,
1645
- children: [
1646
- t31,
1647
- t32
1648
- ]
1649
- }, undefined, true, undefined, this);
1650
- $[55] = t31;
1651
- $[56] = t32;
1652
- $[57] = t33;
1653
- } else {
1654
- t33 = $[57];
1655
- }
1656
- let t34;
1657
- if ($[58] !== handleExit || $[59] !== t33) {
1658
- t34 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Dialog, {
1659
- title: "Hook Configuration - Disabled",
1660
- onCancel: handleExit,
1661
- inputGuide: _temp62,
1662
- children: t33
1663
- }, undefined, false, undefined, this);
1664
- $[58] = handleExit;
1665
- $[59] = t33;
1666
- $[60] = t34;
1667
- } else {
1668
- t34 = $[60];
1669
- }
1670
- return t34;
1671
- }
1672
- switch (modeState.mode) {
1673
- case "select-event": {
1674
- let t21;
1675
- if ($[61] !== combinedToolNames) {
1676
- t21 = (event_2) => {
1677
- if (getMatcherMetadata(event_2, combinedToolNames) !== undefined) {
1678
- setModeState({
1679
- mode: "select-matcher",
1680
- event: event_2
1681
- });
1682
- } else {
1683
- setModeState({
1684
- mode: "select-hook",
1685
- event: event_2,
1686
- matcher: ""
1687
- });
1688
- }
1689
- };
1690
- $[61] = combinedToolNames;
1691
- $[62] = t21;
1692
- } else {
1693
- t21 = $[62];
1694
- }
1695
- let t22;
1696
- if ($[63] !== handleExit || $[64] !== hookEventMetadata || $[65] !== hooksByEvent || $[66] !== restrictedByPolicy || $[67] !== t21 || $[68] !== totalHooksCount) {
1697
- t22 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(SelectEventMode, {
1698
- hookEventMetadata,
1699
- hooksByEvent,
1700
- totalHooksCount,
1701
- restrictedByPolicy,
1702
- onSelectEvent: t21,
1703
- onCancel: handleExit
1704
- }, undefined, false, undefined, this);
1705
- $[63] = handleExit;
1706
- $[64] = hookEventMetadata;
1707
- $[65] = hooksByEvent;
1708
- $[66] = restrictedByPolicy;
1709
- $[67] = t21;
1710
- $[68] = totalHooksCount;
1711
- $[69] = t22;
1712
- } else {
1713
- t22 = $[69];
1714
- }
1715
- return t22;
1716
- }
1717
- case "select-matcher": {
1718
- const t21 = hookEventMetadata[modeState.event];
1719
- let t22;
1720
- if ($[70] !== modeState.event) {
1721
- t22 = (matcher) => {
1722
- setModeState({
1723
- mode: "select-hook",
1724
- event: modeState.event,
1725
- matcher
1726
- });
1727
- };
1728
- $[70] = modeState.event;
1729
- $[71] = t22;
1730
- } else {
1731
- t22 = $[71];
1732
- }
1733
- let t23;
1734
- if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
1735
- t23 = () => {
1736
- setModeState({
1737
- mode: "select-event"
1738
- });
1739
- };
1740
- $[72] = t23;
1741
- } else {
1742
- t23 = $[72];
1743
- }
1744
- let t24;
1745
- if ($[73] !== hooksByEventAndMatcher || $[74] !== modeState.event || $[75] !== sortedMatchersForSelectedEvent || $[76] !== t21.description || $[77] !== t22) {
1746
- t24 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(SelectMatcherMode, {
1747
- selectedEvent: modeState.event,
1748
- matchersForSelectedEvent: sortedMatchersForSelectedEvent,
1749
- hooksByEventAndMatcher,
1750
- eventDescription: t21.description,
1751
- onSelect: t22,
1752
- onCancel: t23
1753
- }, undefined, false, undefined, this);
1754
- $[73] = hooksByEventAndMatcher;
1755
- $[74] = modeState.event;
1756
- $[75] = sortedMatchersForSelectedEvent;
1757
- $[76] = t21.description;
1758
- $[77] = t22;
1759
- $[78] = t24;
1760
- } else {
1761
- t24 = $[78];
1762
- }
1763
- return t24;
1764
- }
1765
- case "select-hook": {
1766
- const t21 = hookEventMetadata[modeState.event];
1767
- let t22;
1768
- if ($[79] !== modeState.event) {
1769
- t22 = (hook_1) => {
1770
- setModeState({
1771
- mode: "view-hook",
1772
- event: modeState.event,
1773
- hook: hook_1
1774
- });
1775
- };
1776
- $[79] = modeState.event;
1777
- $[80] = t22;
1778
- } else {
1779
- t22 = $[80];
1780
- }
1781
- let t23;
1782
- if ($[81] !== combinedToolNames || $[82] !== modeState.event) {
1783
- t23 = () => {
1784
- if (getMatcherMetadata(modeState.event, combinedToolNames) !== undefined) {
1785
- setModeState({
1786
- mode: "select-matcher",
1787
- event: modeState.event
1788
- });
1789
- } else {
1790
- setModeState({
1791
- mode: "select-event"
1792
- });
1793
- }
1794
- };
1795
- $[81] = combinedToolNames;
1796
- $[82] = modeState.event;
1797
- $[83] = t23;
1798
- } else {
1799
- t23 = $[83];
1800
- }
1801
- let t24;
1802
- if ($[84] !== hooksForSelectedMatcher || $[85] !== modeState.event || $[86] !== modeState.matcher || $[87] !== t21 || $[88] !== t22 || $[89] !== t23) {
1803
- t24 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(SelectHookMode, {
1804
- selectedEvent: modeState.event,
1805
- selectedMatcher: modeState.matcher,
1806
- hooksForSelectedMatcher,
1807
- hookEventMetadata: t21,
1808
- onSelect: t22,
1809
- onCancel: t23
1810
- }, undefined, false, undefined, this);
1811
- $[84] = hooksForSelectedMatcher;
1812
- $[85] = modeState.event;
1813
- $[86] = modeState.matcher;
1814
- $[87] = t21;
1815
- $[88] = t22;
1816
- $[89] = t23;
1817
- $[90] = t24;
1818
- } else {
1819
- t24 = $[90];
1820
- }
1821
- return t24;
1822
- }
1823
- case "view-hook": {
1824
- const t21 = modeState.hook;
1825
- let t22;
1826
- if ($[91] !== combinedToolNames || $[92] !== modeState.event) {
1827
- t22 = getMatcherMetadata(modeState.event, combinedToolNames);
1828
- $[91] = combinedToolNames;
1829
- $[92] = modeState.event;
1830
- $[93] = t22;
1831
- } else {
1832
- t22 = $[93];
1833
- }
1834
- const t23 = t22 !== undefined;
1835
- let t24;
1836
- if ($[94] !== modeState) {
1837
- t24 = () => {
1838
- const {
1839
- event: event_1,
1840
- hook: hook_0
1841
- } = modeState;
1842
- setModeState({
1843
- mode: "select-hook",
1844
- event: event_1,
1845
- matcher: hook_0.matcher || ""
1846
- });
1847
- };
1848
- $[94] = modeState;
1849
- $[95] = t24;
1850
- } else {
1851
- t24 = $[95];
1852
- }
1853
- let t25;
1854
- if ($[96] !== modeState.hook || $[97] !== t23 || $[98] !== t24) {
1855
- t25 = /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ViewHookMode, {
1856
- selectedHook: t21,
1857
- eventSupportsMatcher: t23,
1858
- onCancel: t24
1859
- }, undefined, false, undefined, this);
1860
- $[96] = modeState.hook;
1861
- $[97] = t23;
1862
- $[98] = t24;
1863
- $[99] = t25;
1864
- } else {
1865
- t25 = $[99];
1866
- }
1867
- return t25;
1868
- }
1869
- }
1870
- }
1871
- function _temp62() {
1872
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ThemedText, {
1873
- children: "Esc to close"
1874
- }, undefined, false, undefined, this);
1875
- }
1876
- function _temp5(sum, hooks) {
1877
- return sum + hooks.length;
1878
- }
1879
- function _temp42(tool) {
1880
- return tool.name;
1881
- }
1882
- function _temp32(s) {
1883
- return s.mcp;
1884
- }
1885
- function _temp23() {
1886
- return getSettingsForSource("policySettings")?.allowManagedHooksOnly === true;
1887
- }
1888
- function _temp7() {
1889
- const settings = getSettings_DEPRECATED();
1890
- const hooksDisabled = settings?.disableAllHooks === true;
1891
- return hooksDisabled && getSettingsForSource("policySettings")?.disableAllHooks === true;
1892
- }
1893
- var import_compiler_runtime5, import_react, jsx_dev_runtime5;
1894
- var init_HooksConfigMenu = __esm(() => {
1895
- init_AppState();
1896
- init_useSettingsChange();
1897
- init_ink();
1898
- init_useKeybinding();
1899
- init_hooksConfigManager();
1900
- init_settings();
1901
- init_stringUtils();
1902
- init_Dialog();
1903
- init_SelectEventMode();
1904
- init_SelectHookMode();
1905
- init_SelectMatcherMode();
1906
- init_ViewHookMode();
1907
- import_compiler_runtime5 = __toESM(require_compiler_runtime(), 1);
1908
- import_react = __toESM(require_react(), 1);
1909
- jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
1910
- });
1911
-
1912
- // src/commands/hooks/hooks.tsx
1913
- var jsx_dev_runtime6, call = async (onDone, context) => {
1914
- logEvent("tengu_hooks_command", {});
1915
- const appState = context.getAppState();
1916
- const permissionContext = appState.toolPermissionContext;
1917
- const toolNames = getTools(permissionContext).map((tool) => tool.name);
1918
- return /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(HooksConfigMenu, {
1919
- toolNames,
1920
- onExit: onDone
1921
- }, undefined, false, undefined, this);
1922
- };
1923
- var init_hooks = __esm(() => {
1924
- init_HooksConfigMenu();
1925
- init_analytics();
1926
- init_tools();
1927
- jsx_dev_runtime6 = __toESM(require_jsx_dev_runtime(), 1);
1928
- });
1929
- init_hooks();
1930
-
1931
- export {
1932
- call
1933
- };