@claudiolabs/claudin 1.1.29 → 1.1.30

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 (919) hide show
  1. package/dist/chunks/AgentTool-1.1.30-3wq8zzaa.mjs +1 -0
  2. package/dist/chunks/App-1.1.30-ywb53g2c.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.30-wtpe9n8e.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.30-776xks64.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.30-bjm91hx0.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.30-rcy7msd9.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.30-bexsqxcb.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.30-jfhq3h4z.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.30-kqds97f2.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.30-48qzfckm.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.30-tfv4wc5m.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.30-z31ecx5v.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.30-f17w1kzx.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.30-fzajgngq.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.30-15c4h452.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.30-xajg2p3r.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.30-8jrhxd1r.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.30-74pzzw1d.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.30-8bmshptz.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.30-v5fnwt30.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.30-v55nsv7g.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.30-2hg56v1b.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.30-r2hwd3a6.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.30-y6hny4s2.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.30-cq18pvam.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.30-qp3cr0fk.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.30-ydaqb760.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.30-gta8twv0.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.30-rxcmv28v.mjs +1 -0
  30. package/dist/chunks/agents-1.1.30-d5hxfnnt.mjs +3 -0
  31. package/dist/chunks/agents-1.1.30-q3f25044.mjs +110 -0
  32. package/dist/chunks/api-1.1.30-30hng0e4.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.30-mhcedd5b.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.30-1zxsr09t.mjs +1 -0
  35. package/dist/chunks/auth-1.1.30-mmymct98.mjs +1 -0
  36. package/dist/chunks/auth-1.1.30-ntfwzwxz.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.30-9jd1avyj.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.30-8cnp296z.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.30-f0wbf5ha.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.30-b7t4y9th.mjs +1 -0
  41. package/dist/chunks/branch-1.1.30-x77nhthz.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.30-scfmh172.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.30-8hd92b6p.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.30-n5c6p8kd.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.30-9cpc29zx.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.30-gsa0eerc.mjs +1 -0
  47. package/dist/chunks/btw-1.1.30-gyh84rd1.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.30-vzfs4xt1.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.30-qjppzj5p.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.30-w1c0ekr4.mjs +4 -0
  51. package/dist/chunks/caches-1.1.30-6rye5cdg.mjs +1 -0
  52. package/dist/chunks/cd-1.1.30-tn402589.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.30-sm5ncwqz.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.30-36eyf63s.mjs +1 -0
  55. package/dist/chunks/clear-1.1.30-p5p9kp96.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.30-nrdembs6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.30-053d5ph7.mjs +2 -0
  58. package/dist/chunks/cli-1.1.30-092dkm0p.mjs +2 -0
  59. package/dist/chunks/cli-1.1.30-0e0e9msg.mjs +17 -0
  60. package/dist/chunks/cli-1.1.30-0fz758j0.mjs +2 -0
  61. package/dist/chunks/cli-1.1.30-0qcyzbs1.mjs +2 -0
  62. package/dist/chunks/cli-1.1.30-0yafp3ky.mjs +2 -0
  63. package/dist/chunks/cli-1.1.30-1j4dyr5r.mjs +2 -0
  64. package/dist/chunks/cli-1.1.30-1k2bwved.mjs +3 -0
  65. package/dist/chunks/cli-1.1.30-1qczaqkt.mjs +2 -0
  66. package/dist/chunks/cli-1.1.30-1wfffyq2.mjs +2 -0
  67. package/dist/chunks/cli-1.1.30-1xmhk219.mjs +2 -0
  68. package/dist/chunks/cli-1.1.30-1ybfyckn.mjs +2 -0
  69. package/dist/chunks/cli-1.1.30-1zsgv3yp.mjs +2 -0
  70. package/dist/chunks/cli-1.1.30-2af3eeg6.mjs +2 -0
  71. package/dist/chunks/cli-1.1.30-2hw4vdpg.mjs +2 -0
  72. package/dist/chunks/cli-1.1.30-2pqs37e0.mjs +3 -0
  73. package/dist/chunks/cli-1.1.30-2y4yj9sd.mjs +2 -0
  74. package/dist/chunks/cli-1.1.30-2yd2af56.mjs +50 -0
  75. package/dist/chunks/cli-1.1.30-2zq3aea6.mjs +2 -0
  76. package/dist/chunks/cli-1.1.30-322advqh.mjs +4 -0
  77. package/dist/chunks/cli-1.1.30-3b1nw95m.mjs +2 -0
  78. package/dist/chunks/cli-1.1.30-3c6j35rs.mjs +2 -0
  79. package/dist/chunks/cli-1.1.30-3x86c2pa.mjs +24 -0
  80. package/dist/chunks/cli-1.1.30-489cr054.mjs +2 -0
  81. package/dist/chunks/cli-1.1.30-4d90v0pd.mjs +6 -0
  82. package/dist/chunks/cli-1.1.30-4kytbyxq.mjs +15 -0
  83. package/dist/chunks/cli-1.1.30-4t03vay7.mjs +2 -0
  84. package/dist/chunks/cli-1.1.30-4wqfr0ya.mjs +2 -0
  85. package/dist/chunks/cli-1.1.30-4zrfbe17.mjs +2 -0
  86. package/dist/chunks/cli-1.1.30-51kze0eh.mjs +2 -0
  87. package/dist/chunks/cli-1.1.30-569esepc.mjs +60 -0
  88. package/dist/chunks/cli-1.1.30-57b410qh.mjs +25 -0
  89. package/dist/chunks/cli-1.1.30-5cc6nada.mjs +2 -0
  90. package/dist/chunks/cli-1.1.30-5f76gnk2.mjs +2 -0
  91. package/dist/chunks/cli-1.1.30-5j2mdj81.mjs +2 -0
  92. package/dist/chunks/cli-1.1.30-5pn20fxz.mjs +2 -0
  93. package/dist/chunks/cli-1.1.30-5r9pakw5.mjs +2 -0
  94. package/dist/chunks/cli-1.1.30-63ndyxgm.mjs +2 -0
  95. package/dist/chunks/cli-1.1.30-6eaj3n76.mjs +9 -0
  96. package/dist/chunks/cli-1.1.30-6phpx599.mjs +2 -0
  97. package/dist/chunks/cli-1.1.30-6pp4z5px.mjs +2 -0
  98. package/dist/chunks/cli-1.1.30-7a064pfm.mjs +2 -0
  99. package/dist/chunks/cli-1.1.30-7bdj31x8.mjs +2 -0
  100. package/dist/chunks/cli-1.1.30-7dtpd1ra.mjs +2 -0
  101. package/dist/chunks/cli-1.1.30-7h45a0x6.mjs +6 -0
  102. package/dist/chunks/cli-1.1.30-7ma427qh.mjs +8 -0
  103. package/dist/chunks/cli-1.1.30-7q8f7mp7.mjs +2 -0
  104. package/dist/chunks/cli-1.1.30-84cemtwn.mjs +4 -0
  105. package/dist/chunks/cli-1.1.30-87zsgch6.mjs +21 -0
  106. package/dist/chunks/cli-1.1.30-8a5gwcde.mjs +2 -0
  107. package/dist/chunks/cli-1.1.30-8e36e2c1.mjs +2 -0
  108. package/dist/chunks/cli-1.1.30-8hcc4gax.mjs +15 -0
  109. package/dist/chunks/cli-1.1.30-8t3c3a4k.mjs +20 -0
  110. package/dist/chunks/cli-1.1.30-8vr9ea9g.mjs +2 -0
  111. package/dist/chunks/cli-1.1.30-8zyep40e.mjs +2 -0
  112. package/dist/chunks/cli-1.1.30-902jyjpx.mjs +2 -0
  113. package/dist/chunks/cli-1.1.30-917y0q4m.mjs +2 -0
  114. package/dist/chunks/cli-1.1.30-92t0b3hs.mjs +2 -0
  115. package/dist/chunks/cli-1.1.30-94vhzqcd.mjs +2 -0
  116. package/dist/chunks/cli-1.1.30-9685r12p.mjs +2 -0
  117. package/dist/chunks/cli-1.1.30-9h8mm4pg.mjs +2 -0
  118. package/dist/chunks/cli-1.1.30-9m8jc7as.mjs +4 -0
  119. package/dist/chunks/cli-1.1.30-9rn8qz9x.mjs +2 -0
  120. package/dist/chunks/cli-1.1.30-9s9qp1m7.mjs +2 -0
  121. package/dist/chunks/cli-1.1.30-a1phf5vm.mjs +2 -0
  122. package/dist/chunks/cli-1.1.30-a2ww16zh.mjs +2 -0
  123. package/dist/chunks/cli-1.1.30-a2xctbvc.mjs +18 -0
  124. package/dist/chunks/cli-1.1.30-amecp2v0.mjs +3 -0
  125. package/dist/chunks/cli-1.1.30-aqvjv0jh.mjs +4 -0
  126. package/dist/chunks/cli-1.1.30-aw93z4yt.mjs +2 -0
  127. package/dist/chunks/cli-1.1.30-b1mqmct7.mjs +4 -0
  128. package/dist/chunks/cli-1.1.30-bfqnz691.mjs +2 -0
  129. package/dist/chunks/cli-1.1.30-bgrp9j3q.mjs +2 -0
  130. package/dist/chunks/cli-1.1.30-bwdw42tf.mjs +24 -0
  131. package/dist/chunks/cli-1.1.30-bzjamz5p.mjs +2 -0
  132. package/dist/chunks/cli-1.1.30-c0b5kmhr.mjs +2 -0
  133. package/dist/chunks/cli-1.1.30-c2e2yeaj.mjs +2 -0
  134. package/dist/chunks/cli-1.1.30-c44kpd39.mjs +2 -0
  135. package/dist/chunks/cli-1.1.30-c70p43p6.mjs +133 -0
  136. package/dist/chunks/cli-1.1.30-c9xtenrd.mjs +2 -0
  137. package/dist/chunks/cli-1.1.30-ca1a9ntm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.30-cb34mrvh.mjs +2 -0
  139. package/dist/chunks/cli-1.1.30-cgcdnarw.mjs +2 -0
  140. package/dist/chunks/cli-1.1.30-cjetc80p.mjs +2 -0
  141. package/dist/chunks/cli-1.1.30-cwc68erm.mjs +2 -0
  142. package/dist/chunks/cli-1.1.30-d3n6dp6r.mjs +2 -0
  143. package/dist/chunks/cli-1.1.30-d8chymja.mjs +2 -0
  144. package/dist/chunks/cli-1.1.30-d9sphwgb.mjs +3 -0
  145. package/dist/chunks/cli-1.1.30-dbbhdfn1.mjs +2 -0
  146. package/dist/chunks/cli-1.1.30-dv38qw87.mjs +3 -0
  147. package/dist/chunks/cli-1.1.30-e0fcx44n.mjs +2 -0
  148. package/dist/chunks/cli-1.1.30-e15hq24m.mjs +2 -0
  149. package/dist/chunks/cli-1.1.30-eg5krttf.mjs +2 -0
  150. package/dist/chunks/cli-1.1.30-ehk76t59.mjs +2 -0
  151. package/dist/chunks/cli-1.1.30-em031y3s.mjs +2 -0
  152. package/dist/chunks/cli-1.1.30-endh0hmx.mjs +2 -0
  153. package/dist/chunks/cli-1.1.30-ensp6hjk.mjs +2 -0
  154. package/dist/chunks/cli-1.1.30-erqva8zn.mjs +2 -0
  155. package/dist/chunks/cli-1.1.30-etnn22zf.mjs +2 -0
  156. package/dist/chunks/cli-1.1.30-f6tarbyn.mjs +2 -0
  157. package/dist/chunks/cli-1.1.30-f8qnd0hw.mjs +20 -0
  158. package/dist/chunks/cli-1.1.30-f9cckkn6.mjs +7 -0
  159. package/dist/chunks/cli-1.1.30-f9tp1b8r.mjs +6 -0
  160. package/dist/chunks/cli-1.1.30-facztg9n.mjs +133 -0
  161. package/dist/chunks/cli-1.1.30-fct5wt67.mjs +2 -0
  162. package/dist/chunks/cli-1.1.30-fm4mj7wy.mjs +2 -0
  163. package/dist/chunks/cli-1.1.30-fpa799y4.mjs +3 -0
  164. package/dist/chunks/cli-1.1.30-fzan6qjf.mjs +2 -0
  165. package/dist/chunks/cli-1.1.30-g17zgmea.mjs +3 -0
  166. package/dist/chunks/cli-1.1.30-g3qd3ec3.mjs +2 -0
  167. package/dist/chunks/cli-1.1.30-g4c9mx6r.mjs +2 -0
  168. package/dist/chunks/cli-1.1.30-g9qsgq1r.mjs +2 -0
  169. package/dist/chunks/cli-1.1.30-gdmbygdz.mjs +2 -0
  170. package/dist/chunks/cli-1.1.30-gev0f31f.mjs +24 -0
  171. package/dist/chunks/cli-1.1.30-gk8x7f6m.mjs +2 -0
  172. package/dist/chunks/cli-1.1.30-gncy6j5b.mjs +2 -0
  173. package/dist/chunks/cli-1.1.30-gv4z21b9.mjs +4 -0
  174. package/dist/chunks/cli-1.1.30-gvp1pabq.mjs +2 -0
  175. package/dist/chunks/cli-1.1.30-h5yj1axw.mjs +6 -0
  176. package/dist/chunks/cli-1.1.30-h9pfkdf2.mjs +2 -0
  177. package/dist/chunks/cli-1.1.30-ha9qd4n4.mjs +2 -0
  178. package/dist/chunks/cli-1.1.30-he73pyqy.mjs +2 -0
  179. package/dist/chunks/cli-1.1.30-hncb22wm.mjs +2 -0
  180. package/dist/chunks/cli-1.1.30-hxy861gq.mjs +2 -0
  181. package/dist/chunks/cli-1.1.30-j29r8pgr.mjs +4 -0
  182. package/dist/chunks/cli-1.1.30-j2wahkcp.mjs +6 -0
  183. package/dist/chunks/cli-1.1.30-j46p2me4.mjs +3 -0
  184. package/dist/chunks/cli-1.1.30-jb34rbbt.mjs +7 -0
  185. package/dist/chunks/cli-1.1.30-jevxd0jk.mjs +2 -0
  186. package/dist/chunks/cli-1.1.30-jgxnrbme.mjs +2 -0
  187. package/dist/chunks/cli-1.1.30-jvqc1jfc.mjs +2 -0
  188. package/dist/chunks/cli-1.1.30-jyvb3jrk.mjs +3 -0
  189. package/dist/chunks/cli-1.1.30-kx2svwf6.mjs +2 -0
  190. package/dist/chunks/cli-1.1.30-kzbhw1mf.mjs +2 -0
  191. package/dist/chunks/cli-1.1.30-m5fx6y02.mjs +2 -0
  192. package/dist/chunks/cli-1.1.30-m5ta5zwh.mjs +2 -0
  193. package/dist/chunks/cli-1.1.30-m62yy9h8.mjs +2 -0
  194. package/dist/chunks/cli-1.1.30-mebteknr.mjs +206 -0
  195. package/dist/chunks/cli-1.1.30-mef66hvr.mjs +10 -0
  196. package/dist/chunks/cli-1.1.30-mgj06132.mjs +2 -0
  197. package/dist/chunks/cli-1.1.30-mpmg84pk.mjs +3 -0
  198. package/dist/chunks/cli-1.1.30-mz5a585j.mjs +9 -0
  199. package/dist/chunks/cli-1.1.30-n306djbd.mjs +2 -0
  200. package/dist/chunks/cli-1.1.30-naaxghkh.mjs +2 -0
  201. package/dist/chunks/cli-1.1.30-nhfsct38.mjs +2 -0
  202. package/dist/chunks/cli-1.1.30-p3m6d618.mjs +2 -0
  203. package/dist/chunks/cli-1.1.30-p63h2njx.mjs +42 -0
  204. package/dist/chunks/cli-1.1.30-p6bsj13y.mjs +2 -0
  205. package/dist/chunks/cli-1.1.30-pc2wp50b.mjs +5504 -0
  206. package/dist/chunks/cli-1.1.30-pc6nevmd.mjs +2 -0
  207. package/dist/chunks/cli-1.1.30-pez1sh7w.mjs +2 -0
  208. package/dist/chunks/cli-1.1.30-pg6jbgcq.mjs +12 -0
  209. package/dist/chunks/cli-1.1.30-pgx35gqd.mjs +2 -0
  210. package/dist/chunks/cli-1.1.30-pw08jvvr.mjs +3 -0
  211. package/dist/chunks/cli-1.1.30-pzp496y6.mjs +2 -0
  212. package/dist/chunks/cli-1.1.30-q00wdmf9.mjs +2 -0
  213. package/dist/chunks/cli-1.1.30-q51sf5gk.mjs +2 -0
  214. package/dist/chunks/cli-1.1.30-q8sd13v9.mjs +2 -0
  215. package/dist/chunks/cli-1.1.30-q8xgmv1x.mjs +39 -0
  216. package/dist/chunks/cli-1.1.30-qcwzchrc.mjs +2 -0
  217. package/dist/chunks/cli-1.1.30-qdnzwgr7.mjs +2 -0
  218. package/dist/chunks/cli-1.1.30-qjdmnkfj.mjs +2 -0
  219. package/dist/chunks/cli-1.1.30-qm4vn98q.mjs +2 -0
  220. package/dist/chunks/cli-1.1.30-qn71nvqn.mjs +2 -0
  221. package/dist/chunks/cli-1.1.30-qykdr3bk.mjs +2 -0
  222. package/dist/chunks/cli-1.1.30-r4ap6bq3.mjs +4 -0
  223. package/dist/chunks/cli-1.1.30-rdbwn1xc.mjs +2 -0
  224. package/dist/chunks/cli-1.1.30-rdgv4qpw.mjs +2 -0
  225. package/dist/chunks/cli-1.1.30-s2b0zbj0.mjs +1 -0
  226. package/dist/chunks/cli-1.1.30-s7f7x42j.mjs +2 -0
  227. package/dist/chunks/cli-1.1.30-sdxgwxfm.mjs +2 -0
  228. package/dist/chunks/cli-1.1.30-sgm7bcet.mjs +58 -0
  229. package/dist/chunks/cli-1.1.30-sr3wnzt7.mjs +17 -0
  230. package/dist/chunks/cli-1.1.30-syea4bx7.mjs +2 -0
  231. package/dist/chunks/cli-1.1.30-t27wxks6.mjs +6 -0
  232. package/dist/chunks/cli-1.1.30-tc8vq728.mjs +15 -0
  233. package/dist/chunks/cli-1.1.30-tcz89gqa.mjs +2 -0
  234. package/dist/chunks/cli-1.1.30-tt85hxby.mjs +25 -0
  235. package/dist/chunks/cli-1.1.30-ty0pw373.mjs +24 -0
  236. package/dist/chunks/cli-1.1.30-vcexen3n.mjs +2 -0
  237. package/dist/chunks/cli-1.1.30-vda14n5e.mjs +2 -0
  238. package/dist/chunks/cli-1.1.30-vf6wrqmh.mjs +2 -0
  239. package/dist/chunks/cli-1.1.30-vhh5kt6v.mjs +2 -0
  240. package/dist/chunks/cli-1.1.30-vrgnzjd2.mjs +2 -0
  241. package/dist/chunks/cli-1.1.30-w9wdamqc.mjs +34 -0
  242. package/dist/chunks/cli-1.1.30-wfs29rd9.mjs +12 -0
  243. package/dist/chunks/cli-1.1.30-wgmdrp34.mjs +2 -0
  244. package/dist/chunks/cli-1.1.30-wjx6yhry.mjs +2 -0
  245. package/dist/chunks/cli-1.1.30-wmpgbhw0.mjs +16 -0
  246. package/dist/chunks/cli-1.1.30-x76str7r.mjs +3 -0
  247. package/dist/chunks/cli-1.1.30-x8wzmxay.mjs +2 -0
  248. package/dist/chunks/cli-1.1.30-x960htw5.mjs +2 -0
  249. package/dist/chunks/cli-1.1.30-xhk0n48x.mjs +2 -0
  250. package/dist/chunks/cli-1.1.30-xqb55m51.mjs +2 -0
  251. package/dist/chunks/cli-1.1.30-xrrzhx6s.mjs +5 -0
  252. package/dist/chunks/cli-1.1.30-xxvagrpc.mjs +2 -0
  253. package/dist/chunks/cli-1.1.30-ycv7a9hg.mjs +2 -0
  254. package/dist/chunks/cli-1.1.30-ygdwz4ed.mjs +4 -0
  255. package/dist/chunks/cli-1.1.30-yt59tc1t.mjs +2 -0
  256. package/dist/chunks/cli-1.1.30-yw5qpt76.mjs +2 -0
  257. package/dist/chunks/cli-1.1.30-yy92v8yq.mjs +63 -0
  258. package/dist/chunks/cli-1.1.30-z1e7k65a.mjs +5 -0
  259. package/dist/chunks/cli-1.1.30-z9xfs5zq.mjs +2 -0
  260. package/dist/chunks/cli-1.1.30-zfz29t3v.mjs +3 -0
  261. package/dist/chunks/cli-1.1.30-zj3nk96z.mjs +2 -0
  262. package/dist/chunks/cli-1.1.30-zm2e2zvb.mjs +2 -0
  263. package/dist/chunks/cli-1.1.30-zpss0nht.mjs +3 -0
  264. package/dist/chunks/cli-1.1.30-zxkfqcvj.mjs +2 -0
  265. package/dist/chunks/cli-1.1.30-zych8w4z.mjs +45 -0
  266. package/dist/chunks/client-1.1.30-6xd07jrd.mjs +1 -0
  267. package/dist/chunks/color-1.1.30-yhxh49s0.mjs +1 -0
  268. package/dist/chunks/compact-1.1.30-wxxb111z.mjs +3 -0
  269. package/dist/chunks/config-1.1.30-4gdp5w7v.mjs +1 -0
  270. package/dist/chunks/config-1.1.30-s02sv9vf.mjs +1 -0
  271. package/dist/chunks/constants-1.1.30-g1xm727k.mjs +1 -0
  272. package/dist/chunks/context-1.1.30-pepgc836.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.30-ahdmm09h.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.30-93marv3a.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.30-ypx3j03s.mjs +1 -0
  276. package/dist/chunks/copy-1.1.30-bsfx33za.mjs +9 -0
  277. package/dist/chunks/cost-1.1.30-rhgx2a0h.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.30-p5qve4c1.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.30-rwvvv9na.mjs +1 -0
  280. package/dist/chunks/debug-1.1.30-j1zw0q5b.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.30-5gkcnqp5.mjs +1481 -0
  282. package/dist/chunks/desktop-1.1.30-rwbfgek7.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.30-2xwvggy6.mjs +1 -0
  284. package/dist/chunks/detection-1.1.30-kkar89w6.mjs +1 -0
  285. package/dist/chunks/diff-1.1.30-t1r0x9g4.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.30-cvqts45f.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.30-smg0046q.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.30-cpx4e858.mjs +1 -0
  289. package/dist/chunks/effort-1.1.30-jdxyeqz7.mjs +13 -0
  290. package/dist/chunks/engine-1.1.30-8qhtasfe.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.30-jnz4sy6x.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.30-y5dyaydm.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.30-w1z47qad.mjs +1 -0
  294. package/dist/chunks/environments-1.1.30-sjscvfn9.mjs +1 -0
  295. package/dist/chunks/errors-1.1.30-7cmbc98j.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.30-jx9hvt2q.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.30-dqrsra7k.mjs +1 -0
  298. package/dist/chunks/exit-1.1.30-m2yzbcth.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.30-5tat30es.mjs +1 -0
  300. package/dist/chunks/export-1.1.30-545a0v8x.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.30-5k9b4t6b.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.30-h5fqbtg3.mjs +1 -0
  303. package/dist/chunks/fast-1.1.30-91wr1vy4.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.30-36xrb399.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.30-be1ke8r3.mjs +1 -0
  306. package/dist/chunks/git-1.1.30-sxa8xf85.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.30-m7a8kdwg.mjs +1 -0
  308. package/dist/chunks/goal-1.1.30-71sj2735.mjs +4 -0
  309. package/dist/chunks/growthbook-1.1.30-rx44zvrq.mjs +1 -0
  310. package/dist/chunks/headless-1.1.30-h98t9mfb.mjs +2 -0
  311. package/dist/chunks/heapdump-1.1.30-82m1rvjw.mjs +6 -0
  312. package/dist/chunks/help-1.1.30-vnsg1001.mjs +1 -0
  313. package/dist/chunks/hookChains-1.1.30-tc5ff3xr.mjs +3 -0
  314. package/dist/chunks/hooks-1.1.30-2sctf45c.mjs +79 -0
  315. package/dist/chunks/hooks-1.1.30-707b390t.mjs +1 -0
  316. package/dist/chunks/ide-1.1.30-e8neepsj.mjs +3 -0
  317. package/dist/chunks/image-processor-napi-1.1.30-gcqgfeec.mjs +1 -0
  318. package/dist/chunks/import-1.1.30-g0p9rj63.mjs +261 -0
  319. package/dist/chunks/inboundAttachments-1.1.30-a5p4ftqg.mjs +1 -0
  320. package/dist/chunks/index-1.1.30-00d73fwg.mjs +1 -0
  321. package/dist/chunks/index-1.1.30-0sdck5q1.mjs +9 -0
  322. package/dist/chunks/index-1.1.30-38597fv3.mjs +5 -0
  323. package/dist/chunks/index-1.1.30-3z58evcj.mjs +1 -0
  324. package/dist/chunks/index-1.1.30-5k081eyt.mjs +1 -0
  325. package/dist/chunks/index-1.1.30-8n15b4e3.mjs +2 -0
  326. package/dist/chunks/index-1.1.30-9nx8fm72.mjs +1 -0
  327. package/dist/chunks/index-1.1.30-9zfyk995.mjs +23 -0
  328. package/dist/chunks/index-1.1.30-ba27qy75.mjs +1 -0
  329. package/dist/chunks/index-1.1.30-cddndqaa.mjs +1 -0
  330. package/dist/chunks/index-1.1.30-cnbcr7zp.mjs +1 -0
  331. package/dist/chunks/index-1.1.30-f65yg5kz.mjs +9 -0
  332. package/dist/chunks/index-1.1.30-fwvhky1a.mjs +1 -0
  333. package/dist/chunks/index-1.1.30-hmnpjmd5.mjs +1 -0
  334. package/dist/chunks/index-1.1.30-nemv1gaj.mjs +1 -0
  335. package/dist/chunks/index-1.1.30-pnpy7v0s.mjs +1 -0
  336. package/dist/chunks/index-1.1.30-q4x054c8.mjs +2 -0
  337. package/dist/chunks/index-1.1.30-racdqjba.mjs +1 -0
  338. package/dist/chunks/index-1.1.30-scb66j47.mjs +1 -0
  339. package/dist/chunks/index-1.1.30-tfz6950h.mjs +30 -0
  340. package/dist/chunks/index-1.1.30-tx381qq5.mjs +1 -0
  341. package/dist/chunks/index-1.1.30-w4zhj1qd.mjs +1 -0
  342. package/dist/chunks/index-1.1.30-xxh224ea.mjs +1 -0
  343. package/dist/chunks/init-1.1.30-txzpz2vm.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.30-hkrhwfr3.mjs +1 -0
  345. package/dist/chunks/ink-1.1.30-av1t4b54.mjs +1 -0
  346. package/dist/chunks/insights-1.1.30-nbs0zndp.mjs +870 -0
  347. package/dist/chunks/install-1.1.30-kd3vnaat.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.30-ea78ytf6.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.30-v2q1py01.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.30-20686d7h.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.30-rd0zzjyp.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.30-157aap7w.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.30-4mcx1txk.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.30-65qvjpys.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.30-nfrca2zv.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.30-wa8regkc.mjs +1 -0
  357. package/dist/chunks/log-1.1.30-nh81h0jz.mjs +1 -0
  358. package/dist/chunks/main-1.1.30-87zf4enf.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.30-p38nd6r6.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.30-egynhffm.mjs +17 -0
  361. package/dist/chunks/mcp-1.1.30-gaz9mgmq.mjs +4 -0
  362. package/dist/chunks/mcp-1.1.30-r6q89d8c.mjs +1 -0
  363. package/dist/chunks/mcpb-1.1.30-qxpx83j6.mjs +1 -0
  364. package/dist/chunks/memory-1.1.30-72gbfb3b.mjs +77 -0
  365. package/dist/chunks/model-1.1.30-7nsbqqvm.mjs +2 -0
  366. package/dist/chunks/model-1.1.30-f7d6dbt2.mjs +1 -0
  367. package/dist/chunks/node-1.1.30-nbnhkya6.mjs +15 -0
  368. package/dist/chunks/node-1.1.30-vaaf7x0g.mjs +1 -0
  369. package/dist/chunks/oauth-1.1.30-g201gbyg.mjs +1 -0
  370. package/dist/chunks/openaiShim-1.1.30-rz4xax1e.mjs +14 -0
  371. package/dist/chunks/output-style-1.1.30-ms4eck90.mjs +1 -0
  372. package/dist/chunks/package-D2QZMRW7-1.1.30-08c7mgpt.mjs +1 -0
  373. package/dist/chunks/parseConnectUrl-1.1.30-bd7ade4m.mjs +1 -0
  374. package/dist/chunks/parser-1.1.30-qe7n0vnw.mjs +1 -0
  375. package/dist/chunks/passes-1.1.30-3cz64bpa.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.30-28z7ax7g.mjs +3 -0
  377. package/dist/chunks/permissions-1.1.30-vgtb4qf9.mjs +1 -0
  378. package/dist/chunks/plan-1.1.30-s865r5b5.mjs +1 -0
  379. package/dist/chunks/plist-1.1.30-pxa62mce.mjs +1 -0
  380. package/dist/chunks/plugin-1.1.30-6apj9sf8.mjs +29 -0
  381. package/dist/chunks/pluginStartupCheck-1.1.30-gmcab9kx.mjs +1 -0
  382. package/dist/chunks/plugins-1.1.30-40c7sagf.mjs +9 -0
  383. package/dist/chunks/preActionHook-1.1.30-q2g48qsk.mjs +2 -0
  384. package/dist/chunks/print-1.1.30-drvg0v0c.mjs +57 -0
  385. package/dist/chunks/process-1.1.30-f6y2msx6.mjs +1 -0
  386. package/dist/chunks/processBashCommand-1.1.30-5bzgcejg.mjs +1 -0
  387. package/dist/chunks/processSlashCommand-1.1.30-2bwd1kpt.mjs +9 -0
  388. package/dist/chunks/prompt-1.1.30-9rbbx5vr.mjs +1 -0
  389. package/dist/chunks/prompt-1.1.30-phmv317m.mjs +1 -0
  390. package/dist/chunks/prompts-1.1.30-1myv5ewh.mjs +1 -0
  391. package/dist/chunks/protocolHandler-1.1.30-d6jkd0dk.mjs +13 -0
  392. package/dist/chunks/provider-1.1.30-cwkzb2t8.mjs +2 -0
  393. package/dist/chunks/providerProfiles-1.1.30-qe0y7b6e.mjs +1 -0
  394. package/dist/chunks/providerValidation-1.1.30-rzg2nkx3.mjs +6 -0
  395. package/dist/chunks/rate-limit-options-1.1.30-4q04y9f7.mjs +1 -0
  396. package/dist/chunks/registerSubcommands-1.1.30-k3ar1dyg.mjs +26 -0
  397. package/dist/chunks/registry-1.1.30-epdyxcsa.mjs +1 -0
  398. package/dist/chunks/release-notes-1.1.30-k11yp5hh.mjs +5 -0
  399. package/dist/chunks/reload-plugins-1.1.30-n7qhqqr3.mjs +2 -0
  400. package/dist/chunks/remote-env-1.1.30-f8e03jpx.mjs +1 -0
  401. package/dist/chunks/remoteBridgeCore-1.1.30-fqankvvx.mjs +1 -0
  402. package/dist/chunks/remoteSession-1.1.30-fc5x1bz4.mjs +1 -0
  403. package/dist/chunks/rename-1.1.30-vw8eyfha.mjs +1 -0
  404. package/dist/chunks/replBridgeHandle-1.1.30-bagtg7fm.mjs +1 -0
  405. package/dist/chunks/replLauncher-1.1.30-318vaq80.mjs +1 -0
  406. package/dist/chunks/resume-1.1.30-jrj1wpvj.mjs +2 -0
  407. package/dist/chunks/rewind-1.1.30-z97mdn25.mjs +1 -0
  408. package/dist/chunks/rootOptions-1.1.30-ybrgmmyy.mjs +1 -0
  409. package/dist/chunks/runWorkflowHeadless-1.1.30-w3gn8w75.mjs +10 -0
  410. package/dist/chunks/sandbox-adapter-1.1.30-4rd9w5by.mjs +1 -0
  411. package/dist/chunks/sandbox-toggle-1.1.30-zmtfq25w.mjs +1 -0
  412. package/dist/chunks/session-1.1.30-sbykpbav.mjs +2 -0
  413. package/dist/chunks/sessionDiscovery-1.1.30-dd680nx7.mjs +1 -0
  414. package/dist/chunks/sessionFileAccessHooks-1.1.30-4rhdr018.mjs +1 -0
  415. package/dist/chunks/sessionStorage-1.1.30-cwb5a83p.mjs +1 -0
  416. package/dist/chunks/settings-1.1.30-xxee6nzb.mjs +1 -0
  417. package/dist/chunks/setup-1.1.30-p2wwqw6v.mjs +12 -0
  418. package/dist/chunks/sinks-1.1.30-phkc3yep.mjs +1 -0
  419. package/dist/chunks/skills-1.1.30-vsg5twx1.mjs +1 -0
  420. package/dist/chunks/startupProfiler-1.1.30-wa0xbx1z.mjs +1 -0
  421. package/dist/chunks/startupUpdateCheck-1.1.30-9cgnvwtt.mjs +1 -0
  422. package/dist/chunks/state-1.1.30-ge0kb9gr.mjs +1 -0
  423. package/dist/chunks/stats-1.1.30-n5w7ehyg.mjs +1 -0
  424. package/dist/chunks/status-1.1.30-snsvg4xb.mjs +1 -0
  425. package/dist/chunks/stickers-1.1.30-7ffpw08c.mjs +1 -0
  426. package/dist/chunks/subprocessEnv-1.1.30-5efpmhgz.mjs +1 -0
  427. package/dist/chunks/tasks-1.1.30-ykgkx7d8.mjs +1 -0
  428. package/dist/chunks/teamHelpers-1.1.30-cjjzmnj6.mjs +1 -0
  429. package/dist/chunks/teammateModeSnapshot-1.1.30-e2mh88ze.mjs +1 -0
  430. package/dist/chunks/teleport-1.1.30-9y1akw6m.mjs +1 -0
  431. package/dist/chunks/terminalSetup-1.1.30-mwbzfrfc.mjs +1 -0
  432. package/dist/chunks/theme-1.1.30-9dqykgv2.mjs +1 -0
  433. package/dist/chunks/thinkback-1.1.30-3pbzqt97.mjs +1 -0
  434. package/dist/chunks/thinkback-play-1.1.30-83akae4q.mjs +1 -0
  435. package/dist/chunks/toolPool-1.1.30-3kvrwtxa.mjs +1 -0
  436. package/dist/chunks/toolSearch-1.1.30-s60zcj4t.mjs +1 -0
  437. package/dist/chunks/tools-1.1.30-by0ddhf4.mjs +1 -0
  438. package/dist/chunks/trustedDevice-1.1.30-ecq2hfrc.mjs +1 -0
  439. package/dist/chunks/turndown.cjs-1.1.30-m5hyejns.mjs +69 -0
  440. package/dist/chunks/types-1.1.30-mrv5q877.mjs +1 -0
  441. package/dist/chunks/ultrareviewCommand-1.1.30-5etzjedp.mjs +4 -0
  442. package/dist/chunks/update-1.1.30-ax60cy72.mjs +72 -0
  443. package/dist/chunks/upgrade-1.1.30-hrny7f12.mjs +1 -0
  444. package/dist/chunks/upload-1.1.30-s0z8kw2s.mjs +7 -0
  445. package/dist/chunks/upstreamproxy-1.1.30-tkvbafsh.mjs +14 -0
  446. package/dist/chunks/url-handler-napi-1.1.30-enhczdhm.mjs +1 -0
  447. package/dist/chunks/usage-1.1.30-ew9dakf2.mjs +1 -0
  448. package/dist/chunks/util-1.1.30-knp77fm5.mjs +1 -0
  449. package/dist/chunks/utils-1.1.30-74ykpfac.mjs +1 -0
  450. package/dist/chunks/vim-1.1.30-y01vnb23.mjs +1 -0
  451. package/dist/chunks/watchLoop-1.1.30-sjecqqx4.mjs +13 -0
  452. package/dist/chunks/watcher-1.1.30-qnfq5sma.mjs +1 -0
  453. package/dist/chunks/wiki-1.1.30-qddcp6x2.mjs +132 -0
  454. package/dist/chunks/workflows-1.1.30-j5wcb76g.mjs +1 -0
  455. package/dist/chunks/worktree-1.1.30-m6gvqkc9.mjs +1 -0
  456. package/dist/chunks/worktreeModeEnabled-1.1.30-nma5ggmd.mjs +1 -0
  457. package/dist/chunks/wrapper-1.1.30-c8vm3try.mjs +7 -0
  458. package/dist/cli.mjs +2 -2
  459. package/package.json +9 -9
  460. package/dist/chunks/AgentTool-1.1.29-awhbrkah.mjs +0 -1
  461. package/dist/chunks/App-1.1.29-pm1xvr3g.mjs +0 -1
  462. package/dist/chunks/ApproveApiKey-1.1.29-c44twxse.mjs +0 -1
  463. package/dist/chunks/AssistantSessionChooser-1.1.29-f11by8v4.mjs +0 -1
  464. package/dist/chunks/AutoModeOptInDialog-1.1.29-vnqj2te2.mjs +0 -1
  465. package/dist/chunks/BypassPermissionsModeDialog-1.1.29-z2ah9t9j.mjs +0 -1
  466. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.29-30pn689g.mjs +0 -1
  467. package/dist/chunks/ConsoleOAuthFlow-1.1.29-sja8s9ck.mjs +0 -1
  468. package/dist/chunks/DiffDialog-1.1.29-k98h1gzp.mjs +0 -6
  469. package/dist/chunks/Doctor-1.1.29-ab8tjfg7.mjs +0 -1
  470. package/dist/chunks/ExplorerDialog-1.1.29-16y5q4ta.mjs +0 -6
  471. package/dist/chunks/ITermBackend-1.1.29-rk6hjgv2.mjs +0 -1
  472. package/dist/chunks/InvalidConfigDialog-1.1.29-kwjexf2x.mjs +0 -1
  473. package/dist/chunks/InvalidSettingsDialog-1.1.29-479a268q.mjs +0 -1
  474. package/dist/chunks/MigrationDialog-1.1.29-vshc8a59.mjs +0 -1
  475. package/dist/chunks/Onboarding-1.1.29-snkzzfjw.mjs +0 -1
  476. package/dist/chunks/ProviderManager-1.1.29-x67swksb.mjs +0 -1
  477. package/dist/chunks/REPL-1.1.29-yw76hfjs.mjs +0 -1
  478. package/dist/chunks/ResumeConversation-1.1.29-033m6wha.mjs +0 -1
  479. package/dist/chunks/SnapshotUpdateDialog-1.1.29-kbtx0xa6.mjs +0 -1
  480. package/dist/chunks/TeleportProgress-1.1.29-dq4fkj22.mjs +0 -1
  481. package/dist/chunks/TeleportRepoMismatchDialog-1.1.29-x5fsxqa3.mjs +0 -1
  482. package/dist/chunks/TeleportResumeWrapper-1.1.29-18h9wdn7.mjs +0 -1
  483. package/dist/chunks/TmuxBackend-1.1.29-42z37x43.mjs +0 -9
  484. package/dist/chunks/ToolSearchTool-1.1.29-dkk7q8sf.mjs +0 -1
  485. package/dist/chunks/TrustDialog-1.1.29-944b5g4w.mjs +0 -1
  486. package/dist/chunks/activeProvider-1.1.29-j7qknp7t.mjs +0 -1
  487. package/dist/chunks/add-dir-1.1.29-na3kdm45.mjs +0 -1
  488. package/dist/chunks/agentTypes-1.1.29-fjjae3tn.mjs +0 -1
  489. package/dist/chunks/agents-1.1.29-gdcf24kq.mjs +0 -110
  490. package/dist/chunks/agents-1.1.29-hbyggbar.mjs +0 -3
  491. package/dist/chunks/api-1.1.29-tb280rgw.mjs +0 -1
  492. package/dist/chunks/asciicast-1.1.29-69mc9agv.mjs +0 -1
  493. package/dist/chunks/assistant-1.1.29-qmvynqfb.mjs +0 -1
  494. package/dist/chunks/auth-1.1.29-k2h0c136.mjs +0 -1
  495. package/dist/chunks/auth-1.1.29-mkh8s4y7.mjs +0 -1
  496. package/dist/chunks/autoMode-1.1.29-5enddc49.mjs +0 -52
  497. package/dist/chunks/autoModeSetup-1.1.29-p4hp4dv6.mjs +0 -44
  498. package/dist/chunks/autoUpdater-1.1.29-sk8rt0mh.mjs +0 -1
  499. package/dist/chunks/backgroundHousekeeping-1.1.29-qxt8xakt.mjs +0 -1
  500. package/dist/chunks/branch-1.1.29-0zwfdt6s.mjs +0 -4
  501. package/dist/chunks/bridge-1.1.29-ee6b7cck.mjs +0 -2
  502. package/dist/chunks/bridgeConfig-1.1.29-4wseqmtn.mjs +0 -1
  503. package/dist/chunks/bridgeEnabled-1.1.29-2r501b1s.mjs +0 -1
  504. package/dist/chunks/bridgeMain-1.1.29-sk2e5ssh.mjs +0 -88
  505. package/dist/chunks/bridgePointer-1.1.29-mjz0jnns.mjs +0 -1
  506. package/dist/chunks/btw-1.1.29-arf7x19m.mjs +0 -1
  507. package/dist/chunks/buddy-1.1.29-awsva6y8.mjs +0 -3
  508. package/dist/chunks/cache-probe-1.1.29-67egf5jw.mjs +0 -21
  509. package/dist/chunks/cacheStats-1.1.29-yk1h4vdq.mjs +0 -4
  510. package/dist/chunks/caches-1.1.29-8ryyt679.mjs +0 -1
  511. package/dist/chunks/cd-1.1.29-w9gepxqm.mjs +0 -3
  512. package/dist/chunks/claudeDesktop-1.1.29-7g8vpmk4.mjs +0 -1
  513. package/dist/chunks/claudemd-1.1.29-z00d07f9.mjs +0 -1
  514. package/dist/chunks/clear-1.1.29-aj6vgn4b.mjs +0 -1
  515. package/dist/chunks/clearTerminal-1.1.29-95xqw9gq.mjs +0 -1
  516. package/dist/chunks/cli-1.1.29-0kfg7hf8.mjs +0 -2
  517. package/dist/chunks/cli-1.1.29-0rnfn0gy.mjs +0 -2
  518. package/dist/chunks/cli-1.1.29-0s73ykp6.mjs +0 -3
  519. package/dist/chunks/cli-1.1.29-0tf52nkw.mjs +0 -8
  520. package/dist/chunks/cli-1.1.29-0v2ryegc.mjs +0 -2
  521. package/dist/chunks/cli-1.1.29-0vpcc8vm.mjs +0 -2
  522. package/dist/chunks/cli-1.1.29-11hr4111.mjs +0 -2
  523. package/dist/chunks/cli-1.1.29-13gvy0m9.mjs +0 -25
  524. package/dist/chunks/cli-1.1.29-153rxzts.mjs +0 -2
  525. package/dist/chunks/cli-1.1.29-17kpfbq0.mjs +0 -2
  526. package/dist/chunks/cli-1.1.29-1dqp4d2w.mjs +0 -2
  527. package/dist/chunks/cli-1.1.29-1pqjxrp8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.29-20bcsb6f.mjs +0 -15
  529. package/dist/chunks/cli-1.1.29-23gv5dgk.mjs +0 -2
  530. package/dist/chunks/cli-1.1.29-247v5hpd.mjs +0 -2
  531. package/dist/chunks/cli-1.1.29-252q86ck.mjs +0 -2
  532. package/dist/chunks/cli-1.1.29-27h8nqm5.mjs +0 -2
  533. package/dist/chunks/cli-1.1.29-29svre2k.mjs +0 -133
  534. package/dist/chunks/cli-1.1.29-2e5s8gsb.mjs +0 -24
  535. package/dist/chunks/cli-1.1.29-2ezms0yf.mjs +0 -2
  536. package/dist/chunks/cli-1.1.29-2hejf6pj.mjs +0 -2
  537. package/dist/chunks/cli-1.1.29-2mcxe125.mjs +0 -2
  538. package/dist/chunks/cli-1.1.29-2sjtk1zb.mjs +0 -2
  539. package/dist/chunks/cli-1.1.29-2tyhgmxe.mjs +0 -2
  540. package/dist/chunks/cli-1.1.29-2yev8mxw.mjs +0 -6
  541. package/dist/chunks/cli-1.1.29-31y8na35.mjs +0 -2
  542. package/dist/chunks/cli-1.1.29-34nqdrk5.mjs +0 -2
  543. package/dist/chunks/cli-1.1.29-35kpvqby.mjs +0 -4
  544. package/dist/chunks/cli-1.1.29-3776marx.mjs +0 -9
  545. package/dist/chunks/cli-1.1.29-37j436rz.mjs +0 -2
  546. package/dist/chunks/cli-1.1.29-3dnft82a.mjs +0 -2
  547. package/dist/chunks/cli-1.1.29-3fcr0sm5.mjs +0 -2
  548. package/dist/chunks/cli-1.1.29-3s4wcn65.mjs +0 -4
  549. package/dist/chunks/cli-1.1.29-40v483aw.mjs +0 -58
  550. package/dist/chunks/cli-1.1.29-4ahf2sg4.mjs +0 -2
  551. package/dist/chunks/cli-1.1.29-4bemzx23.mjs +0 -2
  552. package/dist/chunks/cli-1.1.29-4p953chd.mjs +0 -2
  553. package/dist/chunks/cli-1.1.29-4pdnzc5j.mjs +0 -2
  554. package/dist/chunks/cli-1.1.29-4q271q7a.mjs +0 -2
  555. package/dist/chunks/cli-1.1.29-4w9b7g8h.mjs +0 -3
  556. package/dist/chunks/cli-1.1.29-4xqgqvwm.mjs +0 -2
  557. package/dist/chunks/cli-1.1.29-4yztmbcx.mjs +0 -17
  558. package/dist/chunks/cli-1.1.29-55khgk00.mjs +0 -9
  559. package/dist/chunks/cli-1.1.29-566mygcr.mjs +0 -2
  560. package/dist/chunks/cli-1.1.29-57e9kkv7.mjs +0 -12
  561. package/dist/chunks/cli-1.1.29-57f3k3fp.mjs +0 -5
  562. package/dist/chunks/cli-1.1.29-5bm4np8j.mjs +0 -2
  563. package/dist/chunks/cli-1.1.29-5gydp5n7.mjs +0 -6
  564. package/dist/chunks/cli-1.1.29-5mpj7dft.mjs +0 -2
  565. package/dist/chunks/cli-1.1.29-5p2zzfpq.mjs +0 -4
  566. package/dist/chunks/cli-1.1.29-5pbjmqzt.mjs +0 -2
  567. package/dist/chunks/cli-1.1.29-5svhj1v0.mjs +0 -18
  568. package/dist/chunks/cli-1.1.29-6g47vtst.mjs +0 -2
  569. package/dist/chunks/cli-1.1.29-6kvtrk8a.mjs +0 -2
  570. package/dist/chunks/cli-1.1.29-6mbq5wth.mjs +0 -3
  571. package/dist/chunks/cli-1.1.29-6ngsfhk3.mjs +0 -17
  572. package/dist/chunks/cli-1.1.29-6q1q5fa3.mjs +0 -2
  573. package/dist/chunks/cli-1.1.29-6qykmvew.mjs +0 -2
  574. package/dist/chunks/cli-1.1.29-6t6n6ctd.mjs +0 -2
  575. package/dist/chunks/cli-1.1.29-71e5px3b.mjs +0 -2
  576. package/dist/chunks/cli-1.1.29-740d0ga1.mjs +0 -2
  577. package/dist/chunks/cli-1.1.29-79tgwbnn.mjs +0 -2
  578. package/dist/chunks/cli-1.1.29-7p975zzx.mjs +0 -2
  579. package/dist/chunks/cli-1.1.29-7peev9wq.mjs +0 -3
  580. package/dist/chunks/cli-1.1.29-7pfvq0z6.mjs +0 -60
  581. package/dist/chunks/cli-1.1.29-7vrxybxh.mjs +0 -15
  582. package/dist/chunks/cli-1.1.29-834b4680.mjs +0 -2
  583. package/dist/chunks/cli-1.1.29-8398r1x1.mjs +0 -2
  584. package/dist/chunks/cli-1.1.29-842m4sds.mjs +0 -2
  585. package/dist/chunks/cli-1.1.29-84fpb4zk.mjs +0 -2
  586. package/dist/chunks/cli-1.1.29-89nqwnk6.mjs +0 -3
  587. package/dist/chunks/cli-1.1.29-8c371c3k.mjs +0 -2
  588. package/dist/chunks/cli-1.1.29-8dsnjzad.mjs +0 -2
  589. package/dist/chunks/cli-1.1.29-8eeh9yez.mjs +0 -2
  590. package/dist/chunks/cli-1.1.29-8k2xw0ns.mjs +0 -16
  591. package/dist/chunks/cli-1.1.29-8s0k2ydg.mjs +0 -2
  592. package/dist/chunks/cli-1.1.29-995n5c8r.mjs +0 -2
  593. package/dist/chunks/cli-1.1.29-9fkgjjzm.mjs +0 -2
  594. package/dist/chunks/cli-1.1.29-9n8sz71q.mjs +0 -6
  595. package/dist/chunks/cli-1.1.29-9qc9kyz8.mjs +0 -6
  596. package/dist/chunks/cli-1.1.29-9s3rafev.mjs +0 -2
  597. package/dist/chunks/cli-1.1.29-9s9kgzze.mjs +0 -2
  598. package/dist/chunks/cli-1.1.29-a1p2bm8x.mjs +0 -4
  599. package/dist/chunks/cli-1.1.29-a6pnwve8.mjs +0 -206
  600. package/dist/chunks/cli-1.1.29-aa81cr7r.mjs +0 -2
  601. package/dist/chunks/cli-1.1.29-aazftc8x.mjs +0 -4
  602. package/dist/chunks/cli-1.1.29-ajwqka67.mjs +0 -2
  603. package/dist/chunks/cli-1.1.29-akx5bp37.mjs +0 -2
  604. package/dist/chunks/cli-1.1.29-am1n3767.mjs +0 -5553
  605. package/dist/chunks/cli-1.1.29-aptcshv0.mjs +0 -2
  606. package/dist/chunks/cli-1.1.29-ar7jahd2.mjs +0 -2
  607. package/dist/chunks/cli-1.1.29-bpvwqqqm.mjs +0 -3
  608. package/dist/chunks/cli-1.1.29-bzfhb58d.mjs +0 -21
  609. package/dist/chunks/cli-1.1.29-c67xmzgw.mjs +0 -2
  610. package/dist/chunks/cli-1.1.29-c7eatffy.mjs +0 -7
  611. package/dist/chunks/cli-1.1.29-ccmw3ns3.mjs +0 -2
  612. package/dist/chunks/cli-1.1.29-cgska4m2.mjs +0 -2
  613. package/dist/chunks/cli-1.1.29-cjy4bmpv.mjs +0 -2
  614. package/dist/chunks/cli-1.1.29-cwngf5s4.mjs +0 -2
  615. package/dist/chunks/cli-1.1.29-df0crs3h.mjs +0 -2
  616. package/dist/chunks/cli-1.1.29-dfra4ygt.mjs +0 -2
  617. package/dist/chunks/cli-1.1.29-dpzd32s9.mjs +0 -2
  618. package/dist/chunks/cli-1.1.29-dseazhey.mjs +0 -34
  619. package/dist/chunks/cli-1.1.29-e7b3rw2q.mjs +0 -2
  620. package/dist/chunks/cli-1.1.29-enk5zgkk.mjs +0 -2
  621. package/dist/chunks/cli-1.1.29-eq7p29fp.mjs +0 -2
  622. package/dist/chunks/cli-1.1.29-erh6v56f.mjs +0 -2
  623. package/dist/chunks/cli-1.1.29-es8f8tm1.mjs +0 -2
  624. package/dist/chunks/cli-1.1.29-ex9733z1.mjs +0 -2
  625. package/dist/chunks/cli-1.1.29-f103mqc1.mjs +0 -133
  626. package/dist/chunks/cli-1.1.29-f56z0kjj.mjs +0 -2
  627. package/dist/chunks/cli-1.1.29-f8qh0czy.mjs +0 -24
  628. package/dist/chunks/cli-1.1.29-fhwjnhs2.mjs +0 -12
  629. package/dist/chunks/cli-1.1.29-fsht50yz.mjs +0 -2
  630. package/dist/chunks/cli-1.1.29-g2g0bf6s.mjs +0 -2
  631. package/dist/chunks/cli-1.1.29-g9nssmee.mjs +0 -2
  632. package/dist/chunks/cli-1.1.29-gd1bzvdb.mjs +0 -20
  633. package/dist/chunks/cli-1.1.29-gfwfhh3b.mjs +0 -4
  634. package/dist/chunks/cli-1.1.29-gfyabc3h.mjs +0 -2
  635. package/dist/chunks/cli-1.1.29-gycpj0z6.mjs +0 -2
  636. package/dist/chunks/cli-1.1.29-h1ej5qf0.mjs +0 -2
  637. package/dist/chunks/cli-1.1.29-h4fg85xm.mjs +0 -2
  638. package/dist/chunks/cli-1.1.29-hez6jzkx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.29-hsa1qk75.mjs +0 -2
  640. package/dist/chunks/cli-1.1.29-j17q2nnf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.29-j3n6rxnx.mjs +0 -2
  642. package/dist/chunks/cli-1.1.29-k0yj3sf0.mjs +0 -2
  643. package/dist/chunks/cli-1.1.29-kcfqkdev.mjs +0 -24
  644. package/dist/chunks/cli-1.1.29-kd96jtpb.mjs +0 -2
  645. package/dist/chunks/cli-1.1.29-kjbjanmr.mjs +0 -2
  646. package/dist/chunks/cli-1.1.29-krg96g94.mjs +0 -2
  647. package/dist/chunks/cli-1.1.29-ksekfz16.mjs +0 -3
  648. package/dist/chunks/cli-1.1.29-kywbej24.mjs +0 -3
  649. package/dist/chunks/cli-1.1.29-m4bwjmrm.mjs +0 -2
  650. package/dist/chunks/cli-1.1.29-m4j21s8k.mjs +0 -3
  651. package/dist/chunks/cli-1.1.29-m7rehwdd.mjs +0 -58
  652. package/dist/chunks/cli-1.1.29-mcacd7ag.mjs +0 -2
  653. package/dist/chunks/cli-1.1.29-mn3z3w8e.mjs +0 -2
  654. package/dist/chunks/cli-1.1.29-mwntmkzh.mjs +0 -39
  655. package/dist/chunks/cli-1.1.29-mxtxy5qg.mjs +0 -2
  656. package/dist/chunks/cli-1.1.29-mxxghqnd.mjs +0 -2
  657. package/dist/chunks/cli-1.1.29-nkb4dq83.mjs +0 -2
  658. package/dist/chunks/cli-1.1.29-nn0hkwgq.mjs +0 -2
  659. package/dist/chunks/cli-1.1.29-nx6ynaex.mjs +0 -6
  660. package/dist/chunks/cli-1.1.29-nxbgdt4q.mjs +0 -2
  661. package/dist/chunks/cli-1.1.29-nxvs12dw.mjs +0 -2
  662. package/dist/chunks/cli-1.1.29-pbydvpcy.mjs +0 -7
  663. package/dist/chunks/cli-1.1.29-pf67dsfj.mjs +0 -42
  664. package/dist/chunks/cli-1.1.29-pwsznt80.mjs +0 -2
  665. package/dist/chunks/cli-1.1.29-q4fv8e5e.mjs +0 -2
  666. package/dist/chunks/cli-1.1.29-q7nywp06.mjs +0 -2
  667. package/dist/chunks/cli-1.1.29-q9atby2h.mjs +0 -2
  668. package/dist/chunks/cli-1.1.29-qqcjvb8v.mjs +0 -3
  669. package/dist/chunks/cli-1.1.29-qyg6dttd.mjs +0 -2
  670. package/dist/chunks/cli-1.1.29-qz5zy9rd.mjs +0 -4
  671. package/dist/chunks/cli-1.1.29-ra7737c1.mjs +0 -2
  672. package/dist/chunks/cli-1.1.29-rah0vfkh.mjs +0 -1
  673. package/dist/chunks/cli-1.1.29-rbtgtxtr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.29-rcf2pvf2.mjs +0 -2
  675. package/dist/chunks/cli-1.1.29-rd1s45en.mjs +0 -24
  676. package/dist/chunks/cli-1.1.29-rfz718th.mjs +0 -6
  677. package/dist/chunks/cli-1.1.29-rn9a55ga.mjs +0 -2
  678. package/dist/chunks/cli-1.1.29-rnrvwymv.mjs +0 -2
  679. package/dist/chunks/cli-1.1.29-rse83jw9.mjs +0 -2
  680. package/dist/chunks/cli-1.1.29-s7njwf37.mjs +0 -15
  681. package/dist/chunks/cli-1.1.29-s8attyep.mjs +0 -2
  682. package/dist/chunks/cli-1.1.29-sb5dzja5.mjs +0 -2
  683. package/dist/chunks/cli-1.1.29-scf5dmr2.mjs +0 -50
  684. package/dist/chunks/cli-1.1.29-sgfpybka.mjs +0 -2
  685. package/dist/chunks/cli-1.1.29-smn5dd7n.mjs +0 -2
  686. package/dist/chunks/cli-1.1.29-snxnt4nr.mjs +0 -2
  687. package/dist/chunks/cli-1.1.29-t64smfse.mjs +0 -2
  688. package/dist/chunks/cli-1.1.29-tf20f72b.mjs +0 -2
  689. package/dist/chunks/cli-1.1.29-tg84q1yd.mjs +0 -20
  690. package/dist/chunks/cli-1.1.29-tyew653x.mjs +0 -3
  691. package/dist/chunks/cli-1.1.29-tz817yh8.mjs +0 -2
  692. package/dist/chunks/cli-1.1.29-v4wsvara.mjs +0 -2
  693. package/dist/chunks/cli-1.1.29-v6y1118n.mjs +0 -4
  694. package/dist/chunks/cli-1.1.29-v9bvr1aw.mjs +0 -5
  695. package/dist/chunks/cli-1.1.29-vd6b2ckm.mjs +0 -2
  696. package/dist/chunks/cli-1.1.29-vmmpxa0v.mjs +0 -2
  697. package/dist/chunks/cli-1.1.29-vp3z0245.mjs +0 -2
  698. package/dist/chunks/cli-1.1.29-vr34j6s2.mjs +0 -3
  699. package/dist/chunks/cli-1.1.29-vv1sy2ya.mjs +0 -25
  700. package/dist/chunks/cli-1.1.29-vws4vx43.mjs +0 -2
  701. package/dist/chunks/cli-1.1.29-vybx7rvs.mjs +0 -10
  702. package/dist/chunks/cli-1.1.29-we6vghby.mjs +0 -2
  703. package/dist/chunks/cli-1.1.29-wscghnfp.mjs +0 -2
  704. package/dist/chunks/cli-1.1.29-wv5r6reg.mjs +0 -2
  705. package/dist/chunks/cli-1.1.29-wxg06wve.mjs +0 -2
  706. package/dist/chunks/cli-1.1.29-xfcy5e42.mjs +0 -2
  707. package/dist/chunks/cli-1.1.29-xfhxkzzh.mjs +0 -2
  708. package/dist/chunks/cli-1.1.29-xftqnjy0.mjs +0 -4
  709. package/dist/chunks/cli-1.1.29-xjh2k6ex.mjs +0 -3
  710. package/dist/chunks/cli-1.1.29-xrwps5rg.mjs +0 -3
  711. package/dist/chunks/cli-1.1.29-y3v15ehz.mjs +0 -2
  712. package/dist/chunks/cli-1.1.29-yddrcp23.mjs +0 -2
  713. package/dist/chunks/cli-1.1.29-ykat6ksh.mjs +0 -2
  714. package/dist/chunks/cli-1.1.29-ymcd1d05.mjs +0 -2
  715. package/dist/chunks/cli-1.1.29-ypgjht1s.mjs +0 -2
  716. package/dist/chunks/cli-1.1.29-yv3r7f00.mjs +0 -2
  717. package/dist/chunks/cli-1.1.29-zb1qmpq0.mjs +0 -45
  718. package/dist/chunks/cli-1.1.29-ze1sanxc.mjs +0 -2
  719. package/dist/chunks/cli-1.1.29-zf1md9se.mjs +0 -2
  720. package/dist/chunks/cli-1.1.29-zh2qqpcy.mjs +0 -2
  721. package/dist/chunks/cli-1.1.29-zqccyb2h.mjs +0 -2
  722. package/dist/chunks/client-1.1.29-abnv29yp.mjs +0 -1
  723. package/dist/chunks/color-1.1.29-h2d0ea1p.mjs +0 -1
  724. package/dist/chunks/compact-1.1.29-071ysk4h.mjs +0 -3
  725. package/dist/chunks/config-1.1.29-jhy41xna.mjs +0 -1
  726. package/dist/chunks/config-1.1.29-wzvad2ns.mjs +0 -1
  727. package/dist/chunks/constants-1.1.29-5536grwb.mjs +0 -1
  728. package/dist/chunks/context-1.1.29-qxvktpnx.mjs +0 -1
  729. package/dist/chunks/context-noninteractive-1.1.29-rypt767r.mjs +0 -1
  730. package/dist/chunks/conversation-1.1.29-yr51bv23.mjs +0 -1
  731. package/dist/chunks/copilotHeaders-1.1.29-h3z6avxk.mjs +0 -1
  732. package/dist/chunks/copy-1.1.29-ze2g86qn.mjs +0 -9
  733. package/dist/chunks/cost-1.1.29-bn9nefss.mjs +0 -1
  734. package/dist/chunks/createSSHSession-1.1.29-5fe73ss4.mjs +0 -1
  735. package/dist/chunks/createSession-1.1.29-rscwvwx3.mjs +0 -1
  736. package/dist/chunks/debug-1.1.29-hsa8740f.mjs +0 -1
  737. package/dist/chunks/defaultActionDeps-1.1.29-nrkya6cw.mjs +0 -1534
  738. package/dist/chunks/desktop-1.1.29-wzh1a3fx.mjs +0 -1
  739. package/dist/chunks/detectRepository-1.1.29-tgssqtyy.mjs +0 -1
  740. package/dist/chunks/detection-1.1.29-f3hp0x2s.mjs +0 -1
  741. package/dist/chunks/diff-1.1.29-h7fm7n04.mjs +0 -1
  742. package/dist/chunks/doctor-1.1.29-5ccr1m55.mjs +0 -1
  743. package/dist/chunks/doctorDiagnostic-1.1.29-vmnf895k.mjs +0 -1
  744. package/dist/chunks/earlyInput-1.1.29-d0ktjabf.mjs +0 -1
  745. package/dist/chunks/effort-1.1.29-xxzxaym4.mjs +0 -13
  746. package/dist/chunks/engine-1.1.29-9ekq4v2g.mjs +0 -1
  747. package/dist/chunks/envLessBridgeConfig-1.1.29-8c9jjpjy.mjs +0 -1
  748. package/dist/chunks/envUtils-1.1.29-593t90q5.mjs +0 -1
  749. package/dist/chunks/environmentSelection-1.1.29-g5qpphd9.mjs +0 -1
  750. package/dist/chunks/environments-1.1.29-x2aa2eet.mjs +0 -1
  751. package/dist/chunks/errors-1.1.29-jgx19cvb.mjs +0 -1
  752. package/dist/chunks/exampleCommands-1.1.29-wxzjn2xw.mjs +0 -1
  753. package/dist/chunks/execFileNoThrow-1.1.29-hexzsnhv.mjs +0 -1
  754. package/dist/chunks/exit-1.1.29-h788x2yv.mjs +0 -1
  755. package/dist/chunks/explorer-1.1.29-wtr7bga1.mjs +0 -1
  756. package/dist/chunks/export-1.1.29-42ve1rgm.mjs +0 -2
  757. package/dist/chunks/extra-usage-1.1.29-y1e1m369.mjs +0 -1
  758. package/dist/chunks/extra-usage-noninteractive-1.1.29-gq3g80nm.mjs +0 -1
  759. package/dist/chunks/fast-1.1.29-h6r42366.mjs +0 -1
  760. package/dist/chunks/feedback-1.1.29-st43crhj.mjs +0 -14
  761. package/dist/chunks/firstPartyEventLogger-1.1.29-ckcepqgc.mjs +0 -1
  762. package/dist/chunks/git-1.1.29-j563zwhc.mjs +0 -1
  763. package/dist/chunks/githubModelsCredentials-1.1.29-vk8m9ket.mjs +0 -1
  764. package/dist/chunks/goal-1.1.29-p7hzmh24.mjs +0 -4
  765. package/dist/chunks/growthbook-1.1.29-3549rcjz.mjs +0 -1
  766. package/dist/chunks/headless-1.1.29-5vx8fpbe.mjs +0 -2
  767. package/dist/chunks/heapdump-1.1.29-rp203g47.mjs +0 -6
  768. package/dist/chunks/help-1.1.29-3y5b0e2g.mjs +0 -1
  769. package/dist/chunks/hookChains-1.1.29-ga4rejj3.mjs +0 -3
  770. package/dist/chunks/hooks-1.1.29-b38tdtzk.mjs +0 -1
  771. package/dist/chunks/hooks-1.1.29-ygwx2459.mjs +0 -79
  772. package/dist/chunks/ide-1.1.29-67nmghjh.mjs +0 -3
  773. package/dist/chunks/image-processor-napi-1.1.29-z1xa8jsd.mjs +0 -1
  774. package/dist/chunks/import-1.1.29-627psf8x.mjs +0 -261
  775. package/dist/chunks/inboundAttachments-1.1.29-9dtr0d37.mjs +0 -1
  776. package/dist/chunks/index-1.1.29-101dgedk.mjs +0 -9
  777. package/dist/chunks/index-1.1.29-3mknam1s.mjs +0 -1
  778. package/dist/chunks/index-1.1.29-3rjcfsf3.mjs +0 -1
  779. package/dist/chunks/index-1.1.29-4ye92se8.mjs +0 -1
  780. package/dist/chunks/index-1.1.29-568ncn0w.mjs +0 -1
  781. package/dist/chunks/index-1.1.29-5zbg7qfm.mjs +0 -1
  782. package/dist/chunks/index-1.1.29-6pe6cr8p.mjs +0 -1
  783. package/dist/chunks/index-1.1.29-cpvbfs32.mjs +0 -5
  784. package/dist/chunks/index-1.1.29-e90xbdas.mjs +0 -23
  785. package/dist/chunks/index-1.1.29-efsdrxv3.mjs +0 -1
  786. package/dist/chunks/index-1.1.29-gy6pctgv.mjs +0 -1
  787. package/dist/chunks/index-1.1.29-jghqwznd.mjs +0 -1
  788. package/dist/chunks/index-1.1.29-k42kw8w5.mjs +0 -1
  789. package/dist/chunks/index-1.1.29-kvaapa6z.mjs +0 -1
  790. package/dist/chunks/index-1.1.29-mwtftmry.mjs +0 -9
  791. package/dist/chunks/index-1.1.29-q7ydx0h2.mjs +0 -2
  792. package/dist/chunks/index-1.1.29-r4y0qs9x.mjs +0 -1
  793. package/dist/chunks/index-1.1.29-rgsmqr6q.mjs +0 -1
  794. package/dist/chunks/index-1.1.29-tfnnf0k2.mjs +0 -1
  795. package/dist/chunks/index-1.1.29-v640rrh6.mjs +0 -1
  796. package/dist/chunks/index-1.1.29-v7vcnkxr.mjs +0 -30
  797. package/dist/chunks/index-1.1.29-xwekv48p.mjs +0 -2
  798. package/dist/chunks/index-1.1.29-z8a1fx6p.mjs +0 -1
  799. package/dist/chunks/init-1.1.29-h07twh7g.mjs +0 -1
  800. package/dist/chunks/initReplBridge-1.1.29-ae1e53vd.mjs +0 -1
  801. package/dist/chunks/ink-1.1.29-jkk9zn2g.mjs +0 -1
  802. package/dist/chunks/insights-1.1.29-awyethqq.mjs +0 -870
  803. package/dist/chunks/install-1.1.29-yhkejpep.mjs +0 -1
  804. package/dist/chunks/install-github-app-1.1.29-jsrj24s4.mjs +0 -149
  805. package/dist/chunks/install-slack-app-1.1.29-gts768ac.mjs +0 -1
  806. package/dist/chunks/instrumentation-1.1.29-mhgk5gm7.mjs +0 -1
  807. package/dist/chunks/interactiveHelpers-1.1.29-nz689brn.mjs +0 -1
  808. package/dist/chunks/keybindings-1.1.29-gh9axh60.mjs +0 -2
  809. package/dist/chunks/knowledge-1.1.29-hfwtr4gz.mjs +0 -2
  810. package/dist/chunks/latestVersionCache-1.1.29-hfeprnvk.mjs +0 -1
  811. package/dist/chunks/loadAgentsDir-1.1.29-m2np7bm8.mjs +0 -1
  812. package/dist/chunks/loadPluginHooks-1.1.29-zpz05b3t.mjs +0 -1
  813. package/dist/chunks/log-1.1.29-fw86q3jh.mjs +0 -1
  814. package/dist/chunks/main-1.1.29-w3b4z9p1.mjs +0 -1
  815. package/dist/chunks/managedEnv-1.1.29-r7qb1f8v.mjs +0 -1
  816. package/dist/chunks/mcp-1.1.29-jyq80had.mjs +0 -4
  817. package/dist/chunks/mcp-1.1.29-rj6rmrwj.mjs +0 -17
  818. package/dist/chunks/mcp-1.1.29-v1dw736k.mjs +0 -1
  819. package/dist/chunks/mcpb-1.1.29-2eqhsr4h.mjs +0 -1
  820. package/dist/chunks/memory-1.1.29-f9bfe5q1.mjs +0 -77
  821. package/dist/chunks/model-1.1.29-3cbf7nj8.mjs +0 -1
  822. package/dist/chunks/model-1.1.29-65mwx0jt.mjs +0 -2
  823. package/dist/chunks/node-1.1.29-9gdbqzzb.mjs +0 -15
  824. package/dist/chunks/node-1.1.29-g8j45zsn.mjs +0 -1
  825. package/dist/chunks/oauth-1.1.29-rzdyddzx.mjs +0 -1
  826. package/dist/chunks/openaiShim-1.1.29-3v0weah8.mjs +0 -14
  827. package/dist/chunks/output-style-1.1.29-kh5kpq0r.mjs +0 -1
  828. package/dist/chunks/package-OS7RONXY-1.1.29-wartca0p.mjs +0 -1
  829. package/dist/chunks/parseConnectUrl-1.1.29-1pk3egnf.mjs +0 -1
  830. package/dist/chunks/parser-1.1.29-j664c2gz.mjs +0 -1
  831. package/dist/chunks/passes-1.1.29-daz9sxtn.mjs +0 -1
  832. package/dist/chunks/permissions-1.1.29-2t8t5tw7.mjs +0 -1
  833. package/dist/chunks/permissions-1.1.29-yrdqzbx5.mjs +0 -3
  834. package/dist/chunks/plan-1.1.29-bz008b9p.mjs +0 -1
  835. package/dist/chunks/plist-1.1.29-35acgftn.mjs +0 -1
  836. package/dist/chunks/plugin-1.1.29-8f04719q.mjs +0 -29
  837. package/dist/chunks/pluginStartupCheck-1.1.29-xb113h6m.mjs +0 -1
  838. package/dist/chunks/plugins-1.1.29-qvtkwvvz.mjs +0 -9
  839. package/dist/chunks/preActionHook-1.1.29-y3pz26pa.mjs +0 -2
  840. package/dist/chunks/print-1.1.29-efswnrv9.mjs +0 -57
  841. package/dist/chunks/process-1.1.29-58f1e2bp.mjs +0 -1
  842. package/dist/chunks/processBashCommand-1.1.29-d1jsv2w2.mjs +0 -1
  843. package/dist/chunks/processSlashCommand-1.1.29-b3y0q14a.mjs +0 -9
  844. package/dist/chunks/prompt-1.1.29-62tsknn0.mjs +0 -1
  845. package/dist/chunks/prompt-1.1.29-jhbfphh7.mjs +0 -1
  846. package/dist/chunks/prompts-1.1.29-3z4c3ek4.mjs +0 -1
  847. package/dist/chunks/protocolHandler-1.1.29-rdwh19s1.mjs +0 -13
  848. package/dist/chunks/provider-1.1.29-3zvq773g.mjs +0 -2
  849. package/dist/chunks/providerProfiles-1.1.29-607et4qp.mjs +0 -1
  850. package/dist/chunks/providerValidation-1.1.29-yenzyrfm.mjs +0 -6
  851. package/dist/chunks/rate-limit-options-1.1.29-298ja1r1.mjs +0 -1
  852. package/dist/chunks/registerSubcommands-1.1.29-4jd1spvm.mjs +0 -26
  853. package/dist/chunks/registry-1.1.29-m25stkr0.mjs +0 -1
  854. package/dist/chunks/release-notes-1.1.29-22baamfx.mjs +0 -5
  855. package/dist/chunks/reload-plugins-1.1.29-phv53y08.mjs +0 -2
  856. package/dist/chunks/remote-env-1.1.29-2ey2vymh.mjs +0 -1
  857. package/dist/chunks/remoteBridgeCore-1.1.29-eafsxes0.mjs +0 -1
  858. package/dist/chunks/remoteSession-1.1.29-hs2wyhc3.mjs +0 -1
  859. package/dist/chunks/rename-1.1.29-75kb3avp.mjs +0 -1
  860. package/dist/chunks/replBridgeHandle-1.1.29-dz6hhgez.mjs +0 -1
  861. package/dist/chunks/replLauncher-1.1.29-09a6pk1q.mjs +0 -1
  862. package/dist/chunks/resume-1.1.29-685rb92g.mjs +0 -2
  863. package/dist/chunks/rewind-1.1.29-7nw7f08p.mjs +0 -1
  864. package/dist/chunks/rootOptions-1.1.29-9cr8rvbr.mjs +0 -1
  865. package/dist/chunks/runWorkflowHeadless-1.1.29-xmaezf6n.mjs +0 -10
  866. package/dist/chunks/sandbox-adapter-1.1.29-db9nwpd6.mjs +0 -1
  867. package/dist/chunks/sandbox-toggle-1.1.29-wzeynybm.mjs +0 -1
  868. package/dist/chunks/session-1.1.29-m8fppsh2.mjs +0 -2
  869. package/dist/chunks/sessionDiscovery-1.1.29-ast9gceq.mjs +0 -1
  870. package/dist/chunks/sessionFileAccessHooks-1.1.29-h1eqvpq2.mjs +0 -1
  871. package/dist/chunks/sessionStorage-1.1.29-aykc0gmj.mjs +0 -1
  872. package/dist/chunks/settings-1.1.29-0c2fyzj5.mjs +0 -1
  873. package/dist/chunks/setup-1.1.29-y2wjm0r9.mjs +0 -12
  874. package/dist/chunks/sinks-1.1.29-5rs2f8yn.mjs +0 -1
  875. package/dist/chunks/skills-1.1.29-cp2813x4.mjs +0 -1
  876. package/dist/chunks/startupProfiler-1.1.29-kh45g8fh.mjs +0 -1
  877. package/dist/chunks/startupUpdateCheck-1.1.29-82s33sqm.mjs +0 -1
  878. package/dist/chunks/state-1.1.29-p67vvgkh.mjs +0 -1
  879. package/dist/chunks/stats-1.1.29-by56pge2.mjs +0 -1
  880. package/dist/chunks/status-1.1.29-hw493zns.mjs +0 -1
  881. package/dist/chunks/stickers-1.1.29-8s1sjy27.mjs +0 -1
  882. package/dist/chunks/subprocessEnv-1.1.29-qz9p5e81.mjs +0 -1
  883. package/dist/chunks/tasks-1.1.29-337vzgbz.mjs +0 -1
  884. package/dist/chunks/teamHelpers-1.1.29-85qvaaf6.mjs +0 -1
  885. package/dist/chunks/teammateModeSnapshot-1.1.29-k78c522w.mjs +0 -1
  886. package/dist/chunks/teleport-1.1.29-c44n1v9b.mjs +0 -1
  887. package/dist/chunks/terminalSetup-1.1.29-rrwvk8ab.mjs +0 -1
  888. package/dist/chunks/theme-1.1.29-y04xza5k.mjs +0 -1
  889. package/dist/chunks/thinkback-1.1.29-s3hjbm7q.mjs +0 -1
  890. package/dist/chunks/thinkback-play-1.1.29-2bhrtfq9.mjs +0 -1
  891. package/dist/chunks/toolPool-1.1.29-gfpcfj2x.mjs +0 -1
  892. package/dist/chunks/toolSearch-1.1.29-vfnsb7j0.mjs +0 -1
  893. package/dist/chunks/tools-1.1.29-w11mxfwv.mjs +0 -1
  894. package/dist/chunks/trustedDevice-1.1.29-qwyypx3m.mjs +0 -1
  895. package/dist/chunks/turndown.cjs-1.1.29-yxqqz6t4.mjs +0 -69
  896. package/dist/chunks/types-1.1.29-2v59e63g.mjs +0 -1
  897. package/dist/chunks/ultrareviewCommand-1.1.29-a115pcna.mjs +0 -4
  898. package/dist/chunks/update-1.1.29-3zmwqt73.mjs +0 -72
  899. package/dist/chunks/upgrade-1.1.29-xpe0b67z.mjs +0 -1
  900. package/dist/chunks/upload-1.1.29-d3tkf4nc.mjs +0 -7
  901. package/dist/chunks/upstreamproxy-1.1.29-fqatj32w.mjs +0 -14
  902. package/dist/chunks/url-handler-napi-1.1.29-9w1d0vdc.mjs +0 -1
  903. package/dist/chunks/usage-1.1.29-6mr5tsjn.mjs +0 -1
  904. package/dist/chunks/util-1.1.29-94aahqex.mjs +0 -1
  905. package/dist/chunks/utils-1.1.29-jg1xnwx8.mjs +0 -1
  906. package/dist/chunks/vim-1.1.29-hf5m1934.mjs +0 -1
  907. package/dist/chunks/watchLoop-1.1.29-7z8smp5m.mjs +0 -13
  908. package/dist/chunks/watcher-1.1.29-qeqe2296.mjs +0 -1
  909. package/dist/chunks/wiki-1.1.29-cr99gpcx.mjs +0 -132
  910. package/dist/chunks/workflows-1.1.29-v6f0e3am.mjs +0 -1
  911. package/dist/chunks/worktree-1.1.29-qf1zfstj.mjs +0 -1
  912. package/dist/chunks/worktreeModeEnabled-1.1.29-qxpsmfqy.mjs +0 -1
  913. package/dist/chunks/wrapper-1.1.29-b7y6s4vd.mjs +0 -7
  914. /package/dist/chunks/{cli-1.1.29-v507w0kc.mjs → cli-1.1.30-2cmsx74f.mjs} +0 -0
  915. /package/dist/chunks/{cli-1.1.29-8zfk7gyk.mjs → cli-1.1.30-dy1jvt4f.mjs} +0 -0
  916. /package/dist/chunks/{cli-1.1.29-09pf4n9h.mjs → cli-1.1.30-fa5djn9v.mjs} +0 -0
  917. /package/dist/chunks/{cli-1.1.29-skjcgaw2.mjs → cli-1.1.30-s27erhy7.mjs} +0 -0
  918. /package/dist/chunks/{cli-1.1.29-vk67t66v.mjs → cli-1.1.30-vxh27fdj.mjs} +0 -0
  919. /package/dist/chunks/{cli-1.1.29-h0m93zmw.mjs → cli-1.1.30-y1pn2vb5.mjs} +0 -0
@@ -0,0 +1,1481 @@
1
+ import"./cli-1.1.30-s2b0zbj0.mjs";import{B as _G,C as GG,D as IZ,E as BZ,z as a}from"./cli-1.1.30-amecp2v0.mjs";import"./cli-1.1.30-pc6nevmd.mjs";import"./cli-1.1.30-s27erhy7.mjs";import{L as pI,N as uZ,O as qZ,P as $Z,U as DZ,V as fG,W as FG}from"./cli-1.1.30-7ma427qh.mjs";import"./cli-1.1.30-g17zgmea.mjs";import{La as xI,Ma as PZ,Oa as OZ}from"./cli-1.1.30-x8wzmxay.mjs";import{qb as iG}from"./cli-1.1.30-dbbhdfn1.mjs";import"./cli-1.1.30-aqvjv0jh.mjs";import"./cli-1.1.30-qykdr3bk.mjs";import"./cli-1.1.30-dy1jvt4f.mjs";import{Jb as XG}from"./cli-1.1.30-g9qsgq1r.mjs";import{Nb as Wb,Ob as Xb}from"./cli-1.1.30-sdxgwxfm.mjs";import"./cli-1.1.30-a1phf5vm.mjs";import"./cli-1.1.30-fa5djn9v.mjs";import{jc as MZ,kc as fY}from"./cli-1.1.30-cgcdnarw.mjs";import"./cli-1.1.30-917y0q4m.mjs";import"./cli-1.1.30-f6tarbyn.mjs";import{rd as Lg,sd as lY}from"./cli-1.1.30-9h8mm4pg.mjs";import"./cli-1.1.30-1j4dyr5r.mjs";import"./cli-1.1.30-m5ta5zwh.mjs";import"./cli-1.1.30-dv38qw87.mjs";import"./cli-1.1.30-g4c9mx6r.mjs";import{ah as Xg,bh as Vg,ch as IY}from"./cli-1.1.30-f9cckkn6.mjs";import{sh as bg,th as Cg,uh as KI,xh as nC}from"./cli-1.1.30-a2xctbvc.mjs";import"./cli-1.1.30-x960htw5.mjs";import"./cli-1.1.30-63ndyxgm.mjs";import"./cli-1.1.30-cb34mrvh.mjs";import{$D as wZ,$u as RI,$x as rB,AO as kZ,AQ as k,Ar as mB,BO as pY,BQ as t,Bk as aI,CL as wb,Co as uI,DU as Og,Dl as FB,Do as eY,EU as Tg,Ek as sZ,El as kb,Er as LB,FI as aG,FU as cY,GF as tZ,GI as TZ,Gk as tY,HF as eZ,HI as rI,Hq as UI,Hv as sI,II as tI,Iq as kY,Iv as Kb,JF as rg,JI as Rb,JQ as QI,Jm as iI,Jq as BG,KI as Gb,KK as pG,Km as oI,Kq as eG,LI as Ib,Lm as nI,MI as Bb,MJ as CG,NF as tg,NI as gb,NJ as gg,Nv as FZ,OJ as Zg,OT as Dg,Ov as xY,PI as Zb,PJ as oC,PT as Pg,QK as LG,QQ as MI,RG as _g,Ru as OB,SG as RY,Su as zC,UI as IW,VQ as wI,Vl as Gg,Wl as Ig,XE as NZ,Xl as dI,Xm as Jb,Xx as oB,Yl as Bg,Yx as UC,ZG as eg,Zx as nB,_G as QY,_l as iC,_x as sB,aF as DY,aU as Yb,ar as dZ,bF as jZ,bK as bG,br as SY,by as mC,cE as $Y,cF as PY,cK as _b,cT as xZ,cU as II,cl as KB,cr as AG,cs as hZ,cv as kg,cy as tB,dF as AZ,dQ as bb,ds as MY,eN as XB,eT as f,el as Ub,ex as zZ,fF as OY,fl as RB,fv as zI,fx as uY,gG as vZ,gT as zG,gl as mb,gy as LC,hN as Nb,hl as hB,iG as TY,il as Lb,iv as Sg,jL as bB,kN as gI,lv as Mg,mL as CB,mk as EB,mr as KZ,nD as rZ,oD as GW,oL as YB,or as RZ,pN as VB,px as KG,rN as HB,rl as WI,rx as GI,sN as yB,sO as mI,sQ as Cb,sl as Eb,tN as ZI,tQ as BW,tk as Wg,tz as QZ,uN as lB,uk as _B,vp as gB,wp as zb,wz as qY,xN as jb,xr as UB,yO as _Y,zL as WB,zS as mG}from"./cli-1.1.30-pc2wp50b.mjs";import{GU as tG,HU as db}from"./cli-1.1.30-5j2mdj81.mjs";import{XU as ZB,hV as Qb}from"./cli-1.1.30-tc8vq728.mjs";import"./cli-1.1.30-q00wdmf9.mjs";import{sV as GZ,uV as wY}from"./cli-1.1.30-aw93z4yt.mjs";import"./cli-1.1.30-xhk0n48x.mjs";import{DV as EG,EV as hI,GV as xg,HV as ug,IV as qg,LV as $g}from"./cli-1.1.30-sr3wnzt7.mjs";import"./cli-1.1.30-jevxd0jk.mjs";import"./cli-1.1.30-bfqnz691.mjs";import"./cli-1.1.30-ycv7a9hg.mjs";import"./cli-1.1.30-mpmg84pk.mjs";import{QW as fI,TW as cb}from"./cli-1.1.30-7bdj31x8.mjs";import"./cli-1.1.30-489cr054.mjs";import"./cli-1.1.30-pw08jvvr.mjs";import"./cli-1.1.30-ensp6hjk.mjs";import"./cli-1.1.30-51kze0eh.mjs";import{HX as UZ,IX as mZ,KX as LZ,LX as EY}from"./cli-1.1.30-ty0pw373.mjs";import"./cli-1.1.30-1zsgv3yp.mjs";import"./cli-1.1.30-5cc6nada.mjs";import"./cli-1.1.30-zxkfqcvj.mjs";import{qZ as SZ,rZ as aY}from"./cli-1.1.30-p3m6d618.mjs";import"./cli-1.1.30-w9wdamqc.mjs";import"./cli-1.1.30-569esepc.mjs";import{F1 as PI,G1 as lb}from"./cli-1.1.30-zfz29t3v.mjs";import"./cli-1.1.30-gk8x7f6m.mjs";import"./cli-1.1.30-qn71nvqn.mjs";import"./cli-1.1.30-1qczaqkt.mjs";import"./cli-1.1.30-902jyjpx.mjs";import"./cli-1.1.30-5r9pakw5.mjs";import"./cli-1.1.30-c44kpd39.mjs";import"./cli-1.1.30-gvp1pabq.mjs";import"./cli-1.1.30-f9tp1b8r.mjs";import"./cli-1.1.30-2af3eeg6.mjs";import"./cli-1.1.30-vcexen3n.mjs";import"./cli-1.1.30-2hw4vdpg.mjs";import"./cli-1.1.30-t27wxks6.mjs";import{S5 as cG,U5 as Eg}from"./cli-1.1.30-92t0b3hs.mjs";import{V5 as zY}from"./cli-1.1.30-cjetc80p.mjs";import"./cli-1.1.30-rdbwn1xc.mjs";import"./cli-1.1.30-bgrp9j3q.mjs";import{j6 as SI,m6 as nZ,q6 as _Z}from"./cli-1.1.30-eg5krttf.mjs";import"./cli-1.1.30-zpss0nht.mjs";import{$8 as LY,B8 as TG,B_ as ng,D_ as sg,J6 as HZ,L6 as UY,N8 as OG,P7 as yZ,S8 as mg,U6 as vg,U8 as yY,V6 as HY,_8 as cZ,a8 as vI,b8 as lZ,c8 as mY,o_ as JZ,t8 as Ug}from"./cli-1.1.30-wmpgbhw0.mjs";import"./cli-1.1.30-wfs29rd9.mjs";import{Z_ as Q,__ as wG}from"./cli-1.1.30-4d90v0pd.mjs";import"./cli-1.1.30-facztg9n.mjs";import"./cli-1.1.30-3b1nw95m.mjs";import"./cli-1.1.30-he73pyqy.mjs";import{$fa as XZ,Baa as jI,Bba as NB,Bia as JG,Daa as AY,Eba as bI,Eia as _I,Gaa as uG,Gba as OI,Hba as TI,Iaa as qb,Mfa as PG,Nfa as YZ,Qia as e,Rca as MG,Tfa as hG,Uga as LI,Vea as ZG,Vfa as WZ,Wca as IB,Xga as gG,Yea as CI,Yga as VZ,Yia as jG,ega as XI,gba as qG,hba as xG,jca as oZ,jfa as yG,kca as AI,lca as bZ,mba as iZ,qha as EI,rfa as BB,vfa as Kg,wda as CZ,xda as vY,zfa as bY}from"./cli-1.1.30-mebteknr.mjs";import{Aja as WG,Eja as FY,jja as PB,vja as FC}from"./cli-1.1.30-322advqh.mjs";import"./cli-1.1.30-jvqc1jfc.mjs";import"./cli-1.1.30-0fz758j0.mjs";import{Yja as UG,bka as og,ika as NI}from"./cli-1.1.30-d3n6dp6r.mjs";import{Aka as n,Bka as aB,Cka as VI,Dka as AC,yka as dg}from"./cli-1.1.30-yy92v8yq.mjs";import{Gka as FI,Ika as VY}from"./cli-1.1.30-1ybfyckn.mjs";import{sla as DI,tla as yb}from"./cli-1.1.30-c9xtenrd.mjs";import{ula as L,xla as HG}from"./cli-1.1.30-pgx35gqd.mjs";import{Ala as ZZ,Ama as RG,Cla as jY,ama as lG,fma as iB,qma as $B,xma as q,yma as DB}from"./cli-1.1.30-7h45a0x6.mjs";import{Dma as BI,Gma as Fb}from"./cli-1.1.30-q8sd13v9.mjs";import{Tma as nG,Wma as fZ,Xma as r,Yma as rG,Zma as qB,cna as QG}from"./cli-1.1.30-gv4z21b9.mjs";import{ina as sG,kna as NG,qna as SG}from"./cli-1.1.30-qdnzwgr7.mjs";import{Bra as eI,Lqa as dG,Vsa as o,Woa as $I,Zoa as pZ,apa as vG,cpa as oG,esa as aZ,iqa as wg,jqa as Ng,kqa as jg,psa as Ag,rsa as kI,ysa as GB}from"./cli-1.1.30-ehk76t59.mjs";import"./cli-1.1.30-m62yy9h8.mjs";import"./cli-1.1.30-p63h2njx.mjs";import"./cli-1.1.30-gev0f31f.mjs";import"./cli-1.1.30-j2wahkcp.mjs";import"./cli-1.1.30-gncy6j5b.mjs";import{Iua as hY,Nua as O}from"./cli-1.1.30-7dtpd1ra.mjs";wG();yb();o();Rb();_I();HG();eG();EI();lb();SG();QG();Kb();TI();cb();II();GI();Jb();db();import{readFileSync as qI}from"fs";import{resolve as kG}from"path";async function hb(G,I,B,g){let{teammate:Z,assistant:C}=g,b=G;if(I.bare)process.env.CLAUDIN_SIMPLE="1";if(b==="code")L("",{}),console.warn(Q.yellow("Tip: You can launch Claudin with just `claudin`")),b=void 0;if(b&&typeof b==="string"&&!/\s/.test(b)&&b.length>0)L("",{length:b.length});let{debug:Y=!1,debugToStderr:W=!1,dangerouslySkipPermissions:H,allowDangerouslySkipPermissions:h=!1,tools:d=[],allowedTools:c=[],disallowedTools:K=[],mcpConfig:y=[],permissionMode:F,addDir:w=[],fallbackModel:R,betas:V=[],ide:N=!1,sessionId:$,includeHookEvents:M,includePartialMessages:m}=I;if(I.prefill)PI(I.prefill);let{agents:J,agent:j,outputFormat:l,inputFormat:z}=I,T=I.verbose??gG().verbose,x=I.print,A=I.init??!1,u=I.initOnly??!1,S=I.maintenance??!1;if(B.disableSlashCommands=I.disableSlashCommands||!1,B.taskListId=void 0,B.worktreeOption=tG()?I.worktree:void 0,B.worktreeName=typeof B.worktreeOption==="string"?B.worktreeOption:void 0,B.worktreeEnabled=B.worktreeOption!==void 0,B.worktreeName){let X=iI(B.worktreeName);if(X!==null)B.worktreePRNumber=X,B.worktreeName=void 0}if(B.tmuxEnabled=tG()&&I.tmux===!0,B.tmuxEnabled){if(!B.worktreeEnabled)process.stderr.write(Q.red(`Error: --tmux requires --worktree
2
+ `)),process.exit(1);if(OI()==="windows")process.stderr.write(Q.red(`Error: --tmux is not supported on Windows
3
+ `)),process.exit(1);if(!await oI())process.stderr.write(Q.red(`Error: tmux is not installed.
4
+ ${nI()}
5
+ `)),process.exit(1)}if(BG()){let X=pI(I);B.storedTeammateOpts=X;let i=X.agentId||X.agentName||X.teamName,_=X.agentId&&X.agentName&&X.teamName;if(i&&!_)process.stderr.write(Q.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
6
+ `)),process.exit(1);if(X.agentId&&X.agentName&&X.teamName)Z.getTeammateUtils().setDynamicTeamContext?.({agentId:X.agentId,agentName:X.agentName,teamName:X.teamName,color:X.agentColor,planModeRequired:X.planModeRequired??!1,parentSessionId:X.parentSessionId});if(X.teammateMode)Z.getTeammateModeSnapshot().setCliTeammateModeOverride?.(X.teammateMode)}if(B.sdkUrl=I.sdkUrl??void 0,B.effectiveIncludePartialMessages=!!m||sG(process.env.CLAUDIN_INCLUDE_PARTIAL_MESSAGES),M||sG(process.env.CLAUDE_CODE_REMOTE))sI(!0);if(B.sdkUrl){if(!z)z="stream-json";if(!l)l="stream-json";if(I.verbose===void 0)T=!0;if(!I.print)x=!0}let v=I.teleport??null,U=I.remote,D=U===!0?"":U??null,E=I.remoteControl??I.rc,s=typeof E==="string"&&E.length>0?E:void 0;if($){if((I.continue||I.resume)&&!I.forkSession)process.stderr.write(Q.red(`Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
7
+ `)),process.exit(1);if(!B.sdkUrl){let X=KG($);if(!X)process.stderr.write(Q.red(`Error: Invalid session ID. Must be a valid UUID.
8
+ `)),process.exit(1);if(aI(X))process.stderr.write(Q.red(`Error: Session ID ${X} is already in use.
9
+ `)),process.exit(1)}}if(B.fileSpecs=I.file,B.fileSpecs&&B.fileSpecs.length>0){let X=fI();if(!X)process.stderr.write(Q.red(`Error: Session token required for file downloads. CLAUDE_CODE_SESSION_ACCESS_TOKEN must be set.
10
+ `)),process.exit(1);let i=process.env.CLAUDE_CODE_REMOTE_SESSION_ID||$I(),_=tI(B.fileSpecs);if(_.length>0){let Hb={baseUrl:(JG()?.transport==="anthropic"?JG()?.baseUrl:void 0)||DI().BASE_API_URL,oauthToken:X,sessionId:i};B.fileDownloadPromise=rI(_,Hb)}}let p=dG();if(R&&I.model&&R===I.model)process.stderr.write(Q.red(`Error: Fallback model cannot be the same as the main model. Please specify a different model for --fallback-model.
11
+ `)),process.exit(1);let P=I.systemPrompt;if(I.systemPromptFile){if(I.systemPrompt)process.stderr.write(Q.red(`Error: Cannot use both --system-prompt and --system-prompt-file. Please use only one.
12
+ `)),process.exit(1);try{let X=kG(I.systemPromptFile);P=qI(X,"utf8")}catch(X){if(rG(X)==="ENOENT")process.stderr.write(Q.red(`Error: System prompt file not found: ${kG(I.systemPromptFile)}
13
+ `)),process.exit(1);process.stderr.write(Q.red(`Error reading system prompt file: ${r(X)}
14
+ `)),process.exit(1)}}let IG=I.appendSystemPrompt;if(I.appendSystemPromptFile){if(I.appendSystemPrompt)process.stderr.write(Q.red(`Error: Cannot use both --append-system-prompt and --append-system-prompt-file. Please use only one.
15
+ `)),process.exit(1);try{let X=kG(I.appendSystemPromptFile);IG=qI(X,"utf8")}catch(X){if(rG(X)==="ENOENT")process.stderr.write(Q.red(`Error: Append system prompt file not found: ${kG(I.appendSystemPromptFile)}
16
+ `)),process.exit(1);process.stderr.write(Q.red(`Error reading append system prompt file: ${r(X)}
17
+ `)),process.exit(1)}}if(BG()&&B.storedTeammateOpts?.agentId&&B.storedTeammateOpts?.agentName&&B.storedTeammateOpts?.teamName){let X=Z.getTeammatePromptAddendum().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;IG=IG?`${IG}
18
+
19
+ ${X}`:X}return{prompt:b,debug:Y,debugToStderr:W,dangerouslySkipPermissions:H,allowDangerouslySkipPermissions:h,baseTools:d,allowedTools:c,disallowedTools:K,mcpConfig:y,permissionModeCli:F,addDir:w,fallbackModel:R,betas:V,ide:N,sessionId:$,includeHookEvents:M,includePartialMessages:m,outputFormat:l,inputFormat:z,verbose:T,print:x,init:A,initOnly:u,maintenance:S,agentsJson:J,agentCli:j,systemPrompt:P,appendSystemPrompt:IG,teleport:v,remote:D,remoteControlOption:E,remoteControlName:s,isNonInteractiveSession:p}}wG();zb();o();HG();Nb();jb();o();Qb();RG();SG();QG();IB();wb();TI();Fb();o();BB();import{resolve as Ab}from"path";async function vb(G,I){let{options:B,ctx:g,permissionModeCli:Z,dangerouslySkipPermissions:C,allowDangerouslySkipPermissions:b,baseTools:Y,allowedTools:W,disallowedTools:H,mcpConfig:h,addDir:d,isNonInteractiveSession:c,inputFormat:K,outputFormat:y}=G,{autoModeStateModule:F}=I,{mode:w,notification:R}=CB({permissionModeCli:Z,dangerouslySkipPermissions:C});if(eI(w==="bypassPermissions"),B.enableAutoMode||Z==="auto"||w==="auto"||!Z&&WB())F?.setAutoModeFlagCli(!0);let V={};if(h&&h.length>0){let u=h.map((U)=>U.trim()).filter((U)=>U.length>0),S={},v=[];for(let U of u){let D=null,E=[],s=MG(U);if(s){let p=HB({configObject:s,filePath:"command line",expandVars:!0,scope:"dynamic"});if(p.config)D=p.config.mcpServers;else E=p.errors}else{let p=Ab(U),P=yB({filePath:p,expandVars:!0,scope:"dynamic"});if(P.config)D=P.config.mcpServers;else E=P.errors}if(E.length>0)v.push(...E);else if(D)S={...S,...D}}if(v.length>0){let U=v.map((D)=>`${D.path?D.path+": ":""}${D.message}`).join(`
20
+ `);q(`--mcp-config validation failed (${v.length} errors): ${U}`,{level:"error"}),process.stderr.write(`Error: Invalid MCP configuration:
21
+ ${U}
22
+ `),process.exit(1)}if(Object.keys(S).length>0){let U=Object.entries(S).filter(([,P])=>P.type!=="sdk").map(([P])=>P),D=null;if(D)process.stderr.write(`Error: ${D}
23
+ `),process.exit(1);let E=gB(S,(P)=>({...P,scope:"dynamic"})),{allowed:s,blocked:p}=gI(E);if(p.length>0)process.stderr.write(`Warning: MCP ${yG(p.length,"server")} blocked by enterprise policy: ${p.join(", ")}
24
+ `);V={...V,...s}}}let N=B.strictMcpConfig||!1;if(ZI()){if(N)process.stderr.write(Q.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(V&&!lB(V))process.stderr.write(Q.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}GB(d);let $,M=await YB({allowedToolsCli:W,disallowedToolsCli:H,baseToolsCli:Y,permissionMode:w,allowDangerouslySkipPermissions:b,addDirs:d}),m=M.toolPermissionContext,{warnings:J,dangerousPermissions:j,overlyBroadBashPermissions:l}=M;if(j.length>0)m=bB(m);J.forEach((u)=>{console.error(u)}),ZB();let z=c&&!N&&!ZI()&&!NG()?XB().then((u)=>{let{allowed:S,blocked:v}=gI(u);if(v.length>0)process.stderr.write(`Warning: claude.ai MCP ${yG(v.length,"server")} blocked by enterprise policy: ${v.join(", ")}
25
+ `);return S}):Promise.resolve({});q("[STARTUP] Loading MCP configs...");let T=Date.now(),x={current:void 0},A=(N||NG()?Promise.resolve({servers:{},errors:[]}):VB(V)).then((u)=>{return x.current=Date.now()-T,u});if(K&&K!=="text"&&K!=="stream-json")console.error(`Error: Invalid input format "${K}".`),process.exit(1);if(K==="stream-json"&&y!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(g.sdkUrl){if(K!=="stream-json"||y!=="stream-json")console.error("Error: --sdk-url requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(B.replayUserMessages){if(K!=="stream-json"||y!=="stream-json")console.error("Error: --replay-user-messages requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(g.effectiveIncludePartialMessages){if(!c||y!=="stream-json")BI("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(B.sessionPersistence===!1&&!c)BI("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);return{permissionMode:w,permissionModeNotification:R,dynamicMcpConfig:V,strictMcpConfig:N,devChannels:$,toolPermissionContext:m,overlyBroadBashPermissions:l,claudeaiConfigPromise:z,mcpConfigPromise:A,mcpConfigResolvedRef:x}}wG();o();wI();cY();Mg();$g();eG();HG();VY();RG();SG();IB();jG();lY();yY();HY();o();II();XI();GI();function cB(){}CI();Lb();mb();Ub();kb();bI();t();var JB=5,dB=30,Sb=`After you finish implementing the change:
26
+ 1. **Code review** — Invoke the \`${FB}\` tool with \`skill: "code-review"\` and \`args: "medium"\` to get a correctness-bug report on your changes, then fix every reported bug before moving on.
27
+ 2. **Run unit tests** — Run the project's test suite (check for package.json scripts, Makefile targets, or common commands like \`npm test\`, \`bun test\`, \`pytest\`, \`go test\`). If tests fail, fix them.
28
+ 3. **Test end-to-end** — Follow the e2e test recipe from the coordinator's prompt (below). If the recipe says to skip e2e for this unit, skip it.
29
+ 4. **Commit and push** — Commit all changes with a clear message, push the branch, and create a PR with \`gh pr create\`. Use a descriptive title. If \`gh\` is not available or the push fails, note it in your final message.
30
+ 5. **Report** — End with a single line: \`PR: <url>\` so the coordinator can track it. If no PR was created, end with \`PR: none — <reason>\`.`;function Mb(G){return`# Batch: Parallel Work Orchestration
31
+
32
+ You are orchestrating a large, parallelizable change across this codebase.
33
+
34
+ ## User Instruction
35
+
36
+ ${G}
37
+
38
+ ## Phase 1: Research and Plan (Plan Mode)
39
+
40
+ Call the \`${RB}\` tool now to enter plan mode, then:
41
+
42
+ 1. **Understand the scope.** Launch one or more subagents (in the foreground — you need their results) to deeply research what this instruction touches. Find all the files, patterns, and call sites that need to change. Understand the existing conventions so the migration is consistent.
43
+
44
+ 2. **Decompose into independent units.** Break the work into ${JB}–${dB} self-contained units. Each unit must:
45
+ - Be independently implementable in an isolated git worktree (no shared state with sibling units)
46
+ - Be mergeable on its own without depending on another unit's PR landing first
47
+ - Be roughly uniform in size (split large units, merge trivial ones)
48
+
49
+ Scale the count to the actual work: few files → closer to ${JB}; hundreds of files → closer to ${dB}. Prefer per-directory or per-module slicing over arbitrary file lists.
50
+
51
+ 3. **Determine the e2e test recipe.** Figure out how a worker can verify its change actually works end-to-end — not just that unit tests pass. Look for:
52
+ - A \`claude-in-chrome\` skill or browser-automation tool (for UI changes: click through the affected flow, screenshot the result)
53
+ - A \`tmux\` or CLI-verifier skill (for CLI changes: launch the app interactively, exercise the changed behavior)
54
+ - A dev-server + curl pattern (for API changes: start the server, hit the affected endpoints)
55
+ - An existing e2e/integration test suite the worker can run
56
+
57
+ If you cannot find a concrete e2e path, use the \`${hB}\` tool to ask the user how to verify this change end-to-end. Offer 2–3 specific options based on what you found (e.g., "Screenshot via chrome extension", "Run \`bun run dev\` and curl the endpoint", "No e2e — unit tests are sufficient"). Do not skip this — the workers cannot ask the user themselves.
58
+
59
+ Write the recipe as a short, concrete set of steps that a worker can execute autonomously. Include any setup (start a dev server, build first) and the exact command/interaction to verify.
60
+
61
+ 4. **Write the plan.** In your plan file, include:
62
+ - A summary of what you found during research
63
+ - A numbered list of work units — for each: a short title, the list of files/directories it covers, and a one-line description of the change
64
+ - The e2e test recipe (or "skip e2e because …" if the user chose that)
65
+ - The exact worker instructions you will give each agent (the shared template)
66
+
67
+ 5. Call \`${KB}\` to present the plan for approval.
68
+
69
+ ## Phase 2: Spawn Workers (After Plan Approval)
70
+
71
+ Once the plan is approved, spawn one background agent per work unit using the \`${ZG}\` tool. **All agents must use \`isolation: "worktree"\` and \`run_in_background: true\`.** Launch them all in a single message block so they run in parallel.
72
+
73
+ For each agent, the prompt must be fully self-contained. Include:
74
+ - The overall goal (the user's instruction)
75
+ - This unit's specific task (title, file list, change description — copied verbatim from your plan)
76
+ - Any codebase conventions you discovered that the worker needs to follow
77
+ - The e2e test recipe from your plan (or "skip e2e because …")
78
+ - The worker instructions below, copied verbatim:
79
+
80
+ \`\`\`
81
+ ${Sb}
82
+ \`\`\`
83
+
84
+ Use \`subagent_type: "Code"\` unless a more specific agent type fits.
85
+
86
+ ## Phase 3: Track Progress
87
+
88
+ After launching all workers, render an initial status table:
89
+
90
+ | # | Unit | Status | PR |
91
+ |---|------|--------|----|
92
+ | 1 | <title> | running | — |
93
+ | 2 | <title> | running | — |
94
+
95
+ As background-agent completion notifications arrive, parse the \`PR: <url>\` line from each agent's result and re-render the table with updated status (\`done\` / \`failed\`) and PR links. Keep a brief failure note for any agent that did not produce a PR.
96
+
97
+ When all agents have reported, render the final table and a one-line summary (e.g., "22/24 units landed as PRs").
98
+ `}var xb="This is not a git repository. The `/batch` command requires a git repo because it spawns agents in isolated git worktrees and creates PRs from each. Initialize a repo first, or run this from inside an existing one.",ub=`Provide an instruction describing the batch change you want to make.
99
+
100
+ Examples:
101
+ /batch migrate from react to vue
102
+ /batch replace all uses of lodash with native equivalents
103
+ /batch add type annotations to all untyped function parameters`;function zB(){k({name:"batch",description:"Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.",whenToUse:"Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames) that can be decomposed into independent parallel units.",argumentHint:"<instruction>",userInvocable:!0,disableModelInvocation:!0,async getPromptForCommand(G){let I=G.trim();if(!I)return[{type:"text",text:ub}];if(!await xG())return[{type:"text",text:xb}];return[{type:"text",text:Mb(I)}]}})}o();CI();_b();Eb();LB();t();qb();jG();bI();var $b=60;function Db(G){let I=[];for(let B of G.split(`
104
+ `)){let g=B.trimEnd();if(!g)continue;let Z=g.split("\t");if(Z.length<3)continue;let[C,b,...Y]=Z,W=Y.join("\t");if(!W||C===void 0||b===void 0)continue;let H=C==="-"||b==="-";I.push({path:W,additions:H?0:Number.parseInt(C,10)||0,deletions:H?0:Number.parseInt(b,10)||0,binary:H,untracked:!1})}return I}function Pb(G){return G.split(`
105
+ `).map((I)=>I.trimEnd()).filter(Boolean).map((I)=>({path:I,additions:0,deletions:0,binary:!1,untracked:!0}))}function Ob(G){let I=new Map;for(let B of G)for(let g of B){let Z=I.get(g.path);if(!Z){I.set(g.path,{...g});continue}Z.additions=Math.max(Z.additions,g.additions),Z.deletions=Math.max(Z.deletions,g.deletions),Z.binary=Z.binary||g.binary,Z.untracked=Z.untracked&&g.untracked}return[...I.values()].sort((B,g)=>{if(B.untracked!==g.untracked)return B.untracked?-1:1;if(B.untracked)return B.path.localeCompare(g.path);let Z=g.additions+g.deletions-(B.additions+B.deletions);return Z!==0?Z:B.path.localeCompare(g.path)})}function jB(G){let I=[G.range?`git diff ${G.range}`:"",G.includesWorkingTree?"git diff HEAD":""].filter(Boolean),B=G.files.slice(0,$b),g=G.files.length-B.length,Z=B.map((W)=>{if(W.untracked)return`- ${W.path} (new file, untracked)`;if(W.binary)return`- ${W.path} (binary)`;return`- ${W.path} (+${W.additions} −${W.deletions})`});if(g>0)Z.push(`- …and ${g} more file${g===1?"":"s"}`);let C=`${G.files.length} file${G.files.length===1?"":"s"}`,b=G.files.some((W)=>W.untracked)?`
106
+ The files marked \`(new file, untracked)\` are NOT in the output of those
107
+ commands — git has never seen them. Read each one in full; it is part of the
108
+ change under review.
109
+ `:"";return`## Scope
110
+
111
+ ${I.length>0?`The diff under review is already resolved. Fetch it with exactly these commands —
112
+ every angle below must use the same range, do not substitute another one:
113
+
114
+ ${I.map((W)=>` ${W}`).join(`
115
+ `)}
116
+ `:`The change under review is entirely new files — there is no diff to fetch.
117
+ Read each file below in full.
118
+ `}
119
+ ${C}, +${G.totalAdditions} −${G.totalDeletions}:
120
+
121
+ ${Z.join(`
122
+ `)}
123
+ ${b}`}async function QB(G){let{stdout:I,code:B}=await uG(qG(),["diff","--numstat",...G],{preserveOutputOnError:!1});return B===0?Db(I):null}async function wB(G){let{code:I}=await uG(qG(),["rev-parse","--verify",G],{preserveOutputOnError:!1});return I===0}async function Tb(){let{stdout:G,code:I}=await uG(qG(),["ls-files","--others","--exclude-standard"],{preserveOutputOnError:!1});return I===0?Pb(G):[]}async function AB(){try{if(!await xG())return null;let G=await NB(),I="";if(G&&await wB(G))I=`${G}...HEAD`;else if(await wB("HEAD~1"))I="HEAD~1";let B=I?await QB([I])??[]:[],g=await QB(["HEAD"])??[],Z=await Tb(),C=Ob([B,g,Z]);if(C.length===0)return null;return{range:B.length>0?I:"",includesWorkingTree:g.length>0,files:C,totalAdditions:C.reduce((b,Y)=>b+Y.additions,0),totalDeletions:C.reduce((b,Y)=>b+Y.deletions,0)}}catch(G){return e(G),null}}var pb={med:"medium"},ab=new RegExp(`^(${AG.map((G)=>G.slice(0,3)).join("|")})[a-z]*$`,"i");function fb(G){let I=G.trim().toLowerCase(),B=pb[I]??I;return AG.includes(B)?B:void 0}function ib(G){let I=G.trim().split(/\s+/).filter(Boolean),B=I[0]??"",g=!1,Z=!1,C=[];for(let W of I)if(/^--comment$/i.test(W))g=!0;else if(/^--fix$/i.test(W))Z=!0;else C.push(W);if(B.toLowerCase()==="ultra")return{explicit:void 0,target:C.slice(1).join(" "),comment:g,fix:Z,unrecognizedLevel:void 0,ultraFallback:!0};let b=C[0]??"",Y=fb(b);if(Y!==void 0)return{explicit:Y,target:C.slice(1).join(" "),comment:g,fix:Z,unrecognizedLevel:void 0,ultraFallback:!1};return{explicit:void 0,target:C.join(" "),comment:g,fix:Z,unrecognizedLevel:b&&ab.test(b)?b:void 0,ultraFallback:!1}}function ob(G,I){let B=G.ultraFallback?"max":G.explicit,g=I?.options?.mainLoopModel,Z=I?.getAppState?.().effortValue,C=g?UB(g,B??Z):B??Z;if(C===void 0)return"medium";return mB(C)}var nb=(G)=>`## Scope
124
+
125
+ Review target: \`${G}\`. Resolve it to a unified diff before anything else —
126
+ \`gh pr diff <n>\` for a PR number, \`git diff <branch>...HEAD\` for a branch,
127
+ \`git diff HEAD -- <path>\` for a path — and treat that diff as the review scope.
128
+ Every angle below must use that same diff.
129
+ `,sb="## Scope\n\nRun `git diff @{upstream}...HEAD` (or `git diff main...HEAD` / `git diff HEAD~1`\nif there's no upstream) to get the unified diff under review, plus\n`git diff HEAD` for uncommitted changes. Treat the union as the review scope,\nand use the same range for every angle below.\n";function rb(G,I){if(G.target)return nb(G.target);return I?jB(I):sb}var tb=`### Angle A — line-by-line scan + language pitfalls
130
+
131
+ Read every hunk in the diff, line by line. Then Read the enclosing function for
132
+ each hunk — bugs in unchanged lines of a touched function are in scope (the PR
133
+ re-exposes or fails to fix them). For every line ask: what input, state, timing,
134
+ or platform makes this line wrong? Cover the language-agnostic defects and the
135
+ pitfalls specific to this diff's language/framework alike: inverted/wrong
136
+ condition, off-by-one, null/undefined deref, missing \`await\`, falsy-zero check,
137
+ wrong-variable copy-paste, error swallowed in a catch, unescaped regex
138
+ metachars, \`==\` coercion, closure-captured loop var, mutable default arg,
139
+ late-binding closure, nil-map write, range-var capture, SQL injection,
140
+ timezone/DST drift, float equality.
141
+ `,eb=`### Angle B — removed-behavior auditor
142
+
143
+ For every line the diff DELETES or replaces, name the invariant or behavior it
144
+ enforced, then search the new code for where that invariant is re-established.
145
+ If you can't find it, that's a candidate: a removed guard, a dropped error
146
+ path, a narrowed validation, a deleted test that was covering a real case.
147
+ `,GC=`### Angle C — cross-file tracer
148
+
149
+ For each function the diff changes, find its callers (Grep for the symbol) and
150
+ check whether the change breaks any call site: a new precondition, a changed
151
+ return shape, a new exception, a timing/ordering dependency. Also check callees:
152
+ does a parallel change in the same PR make a call unsafe?
153
+ `,IC=`### Angle D — wrapper/proxy correctness
154
+
155
+ When the PR adds or modifies a type that wraps another (cache, proxy, decorator,
156
+ adapter): check that every method routes to the wrapped instance and not back
157
+ through a registry/session/global — e.g. a caching provider holding a
158
+ \`delegate\` field that resolves IDs via \`session.get(...)\` instead of
159
+ \`delegate.get(...)\` will re-enter the cache or recurse. Also check that the
160
+ wrapper forwards all the methods the callers actually use.
161
+ `,$G=`### Angle Z — cleanup pass (reuse, simplification, efficiency, altitude)
162
+
163
+ The angles above hunt for bugs; this one hunts for cleanup in the changed code.
164
+ Cover four axes and tag each candidate with the axis it came from:
165
+
166
+ - **reuse** — new code that re-implements something the codebase already has.
167
+ Grep shared modules and files adjacent to the change, and name the existing
168
+ helper to call instead.
169
+ - **simplification** — unnecessary complexity the diff adds: redundant or
170
+ derivable state, copy-paste with slight variation, deep nesting, dead code
171
+ left behind. Name the simpler form that does the same job.
172
+ - **efficiency** — wasted work the diff introduces: redundant computation or
173
+ repeated I/O, independent operations run sequentially, blocking work added to
174
+ startup or a hot path. Also long-lived objects built from closures or captured
175
+ environments — they keep the entire enclosing scope alive for the object's
176
+ lifetime (a memory leak when that scope holds large values); prefer a
177
+ class/struct that copies only the fields it needs. Name the cheaper
178
+ alternative.
179
+ - **altitude** — a change implemented at the wrong depth, as a fragile bandaid.
180
+ Special cases layered on shared infrastructure are a sign the fix isn't deep
181
+ enough; prefer generalizing the underlying mechanism over adding special cases.
182
+
183
+ These use the same \`file\`/\`line\`/\`summary\` shape as the correctness angles; in
184
+ \`failure_scenario\`, state the concrete cost (what is duplicated, wasted, or
185
+ harder to maintain) instead of a crash. Correctness bugs always outrank cleanup
186
+ findings when the output cap forces a cut.
187
+ `,BC=`Pass every candidate with a nameable failure scenario through — finders that
188
+ silently drop half-believed candidates bypass the verify step and are the
189
+ dominant cause of misses.
190
+ `,gC=`- **CONFIRMED** — can name the inputs/state that trigger it and the wrong
191
+ output or crash. Quote the line.
192
+ - **PLAUSIBLE** — mechanism is real, trigger is uncertain (timing, env,
193
+ config). State what would confirm it.
194
+ - **REFUTED** — factually wrong (code doesn't say that) or guarded elsewhere.
195
+ Quote the line that proves it.`,ZC=`**PLAUSIBLE by default** — do not refute a candidate for being "speculative" or
196
+ "depends on runtime state" when the state is realistic: concurrency races,
197
+ nil/undefined on a rare-but-reachable path (error handler, cold cache, missing
198
+ optional field), falsy-zero treated as missing, off-by-one on a boundary the
199
+ code does not exclude, retry storms / partial failures, regex/allowlist that
200
+ lost an anchor. These are PLAUSIBLE.
201
+
202
+ **REFUTED** only when constructible from the code: factually wrong (quote the
203
+ actual line); provably impossible (type/constant/invariant — show it); already
204
+ handled in this diff (cite the guard); or pure style with no observable effect.`,bC=(G)=>`## Phase 2 — Verify (batched by file)
205
+
206
+ Dedup candidates that point at the same line and mechanism, keeping the one with
207
+ the most concrete failure scenario. Then group the survivors **by file** and run
208
+ **one verifier per file** via the ${ZG} tool: give it that file, its hunks,
209
+ and every candidate in it. It returns one verdict per candidate${G?", recall-biased":""}:
210
+
211
+ ${G?ZC:gC}
212
+
213
+ Keep CONFIRMED and PLAUSIBLE. Drop REFUTED.
214
+ `,CC=`## Phase 3 — Sweep for gaps
215
+
216
+ Run **one more finder** as a fresh reviewer who has the verified list. Re-read
217
+ the diff and enclosing functions looking ONLY for defects not already listed.
218
+ Do not re-derive or re-confirm anything already there — the job is gaps. Focus
219
+ on what the first pass tends to miss: moved/extracted code that dropped a guard
220
+ or anchor; second-tier footguns (dataclass default evaluated once, \`hash()\`
221
+ non-determinism, lock-scope shrink, predicate methods with side effects);
222
+ setup/teardown asymmetry in tests; config defaults flipped.
223
+
224
+ Surface **up to 8 additional candidates**, each naming a defect not already on
225
+ the list. If nothing new, return an empty sweep — do not pad.
226
+ `,YC=(G)=>`## Output
227
+
228
+ Report the findings with a **single ${bG} tool call** — do not
229
+ also print them as text. ${bG} is a deferred tool: if it is
230
+ not already in your tool list, load it first with ${WI}
231
+ (\`select:${bG}\`). Its schema names the fields; this is what
232
+ the schema can't say:
233
+
234
+ - Rank \`findings\` most-severe first, correctness before cleanup.
235
+ - Set \`verdict\` from the verify pass, \`category\` to the angle's axis, and
236
+ \`level\` to the review effort.
237
+ - Keep the ${G} most severe if more survive, and call it with an empty
238
+ \`findings\` array if nothing does.
239
+ `,YI=[tb,eb,GC],vB=[...YI,IC],WC={medium:{header:"`medium effort → 4 angles × 6 candidates → verify by file → ≤8 findings`",intro:`You are reviewing for **precision** at medium effort: every finding you surface
240
+ should be one a maintainer would act on.`,angles:[...YI,$G],candidates:6,recall:!1,sweep:!1,maxFindings:8},high:{header:"`high effort → 4 angles × 6 candidates → verify by file (recall) → ≤10 findings`",intro:`You are reviewing for **recall** at high effort: catch every real bug a careful
241
+ reviewer would catch in one sitting. At this level, catching real bugs matters
242
+ more than avoiding false positives. Err on the side of surfacing.`,angles:[...YI,$G],candidates:6,recall:!0,sweep:!1,maxFindings:10},xhigh:{header:"`xhigh effort → 5 angles × 8 candidates → verify by file (recall) → sweep → ≤15 findings`",intro:`You are reviewing for **recall** at extra-high effort: catch every real bug. At
243
+ this level, catching real bugs matters more than avoiding false positives — a
244
+ missed bug ships. Err on the side of surfacing.`,angles:[...vB,$G],candidates:8,recall:!0,sweep:!0,maxFindings:15},max:{header:"`max effort → 5 angles × 8 candidates → verify by file (recall) → sweep → ≤15 findings`",intro:`You are reviewing for **recall** at maximum effort: catch every real bug. At
245
+ this level, catching real bugs matters more than avoiding false positives — a
246
+ missed bug ships. Err on the side of surfacing.`,angles:[...vB,$G],candidates:8,recall:!0,sweep:!0,maxFindings:15}};function XC(G,I){let B=G.angles.length-1;return`${G.header}
247
+
248
+ ${G.intro}
249
+
250
+ ${I}
251
+ ## Phase 1 — Find candidates (${B} correctness angles + 1 cleanup angle, up to ${G.candidates} each)
252
+
253
+ Run **${G.angles.length} independent finder angles** via the ${ZG} tool. Each surfaces
254
+ **up to ${G.candidates} candidate findings** with \`file\`, \`line\`, a one-line \`summary\`, and a
255
+ concrete \`failure_scenario\`. Do NOT let one angle's conclusions suppress
256
+ another's — if two angles flag the same line for different reasons, record both.
257
+
258
+ ${G.angles.join(`
259
+ `)}
260
+ ${BC}
261
+ ${bC(G.recall)}${G.sweep?`
262
+ ${CC}`:""}
263
+ ${YC(G.maxFindings)}`}var VC=(G)=>`\`low effort → 1 diff pass → no verify → ≤4 findings\`
264
+
265
+ ${G}
266
+ ## Turn 1 — read
267
+
268
+ One tool call: read the diff named in the Scope section above. Skip test/fixture
269
+ hunks (\`test/\`, \`spec/\`, \`__tests__/\`, \`*_test.*\`, \`*.test.*\`,
270
+ \`fixtures/\`, \`testdata/\`) — test-file changes are not reviewed at this level.
271
+ No subagents, no full-file reads.
272
+
273
+ ## Turn 2 — findings
274
+
275
+ Flag runtime-correctness bugs visible from the hunk alone: inverted/wrong
276
+ condition, off-by-one, null/undefined deref where adjacent lines show the value
277
+ can be absent, removed guard, falsy-zero check, missing \`await\`,
278
+ wrong-variable copy-paste, error swallowed in a catch that should propagate.
279
+ Also flag — still from the hunk alone — new code that duplicates an existing
280
+ helper visible in the diff context, and dead code the diff leaves behind.
281
+
282
+ Do **not** flag style, naming, perf, missing tests, or anything outside the
283
+ hunk.
284
+
285
+ Output at most **4 findings**, most-severe first, one line each:
286
+ \`path/to/file.ext:123 — what's wrong and the concrete failure\`. If nothing
287
+ qualifies, output exactly \`(none)\`.
288
+ `,HC=`
289
+
290
+ ## Posting to GitHub (--comment)
291
+
292
+ The \`--comment\` flag was passed. In addition to producing the findings report
293
+ (the ${bG} call at medium+ effort, or the text list at
294
+ low effort), if the review target is a GitHub PR, post each finding as an inline
295
+ PR comment via \`gh api\` (repos/{owner}/{repo}/pulls/{pr}/comments; one call per
296
+ finding; include a suggestion block only when it fully fixes the issue). If
297
+ \`gh\` is not available in this session, or the target is not a PR, just produce
298
+ the findings report and note that \`--comment\` was ignored.
299
+ `,yC=`
300
+
301
+ ## Applying fixes (--fix)
302
+
303
+ The \`--fix\` flag was passed. After producing the findings report, apply the
304
+ findings to the working tree instead of stopping at the report: fix each one
305
+ directly — correctness bugs and reuse/simplification/efficiency cleanups alike.
306
+ Skip any finding whose fix would change intended behavior, require changes well
307
+ outside the reviewed diff, or that you judge to be a false positive — note the
308
+ skip rather than arguing with it. Then report each finding's outcome
309
+ (\`fixed\` / \`skipped\` / \`no_change_needed\`): at medium+ effort, re-call
310
+ ${bG} with the \`outcome\` field set on each finding; at
311
+ low effort, note it inline. Finish with a brief summary of what was fixed and
312
+ what was skipped.
313
+ `,lC=`
314
+
315
+ ## Headless output (non-interactive session)
316
+
317
+ You are running non-interactively (\`-p\`), where the ${bG}
318
+ render is not shown. After the tool call, print the same findings as a JSON array
319
+ to stdout — one object per finding with the schema's fields (\`file\`, \`line\`,
320
+ \`summary\`, \`failure_scenario\`), ranked most-severe first, \`[]\` if nothing
321
+ survived — so text-mode consumers still receive them.
322
+ `;function cC(G,I,B){let g=ob(G,I),Z="";if(G.ultraFallback)Z=`(ultra (cloud review) isn't available in Claudin — running a local ${g}-effort review${G.fix?" and applying its findings":""}.)
323
+ `;else if(G.unrecognizedLevel!==void 0)Z=`(Ignoring unrecognized effort "${G.unrecognizedLevel}"; valid: ${AG.join(", ")}. Using ${g}.)
324
+ `;let C=rb(G,B??null),b=g==="low"?VC(C):XC(WC[g],C),Y=g!=="low"&&dG()?lC:"";return`${Z}${b}${G.comment?HC:""}${G.fix?yC:""}${Y}`}function kB(){k({name:"code-review",description:"Review the current diff for correctness bugs and reuse/simplification/efficiency cleanups at the given effort level (low/medium: fewer, high-confidence findings; high→max: broader coverage, may include uncertain findings). Pass --comment to post findings as inline PR comments, or --fix to apply the findings to the working tree after the review.",whenToUse:"When the user wants changed/recent code reviewed for correctness bugs and reuse/simplification/efficiency cleanups.",argumentHint:`[${AG.join("|")}] [--fix] [--comment] [<target>]`,userInvocable:!0,disableModelInvocation:!1,allowedTools:[ZG,WI,bG,"Read","Grep","Glob","Bash(git diff:*)","Bash(git status:*)","Bash(git log:*)","Bash(gh pr view:*)","Bash(gh pr diff:*)"],async getPromptForCommand(G,I){let B=ib(G),g=B.target?null:await AB();return[{type:"text",text:cC(B,I,g)}]}})}t();var JC={skill:"skill",skills:"skill",command:"skill",rule:"rule",rules:"rule",agent:"agent",agents:"agent",subagent:"agent"},dC=`# Create Claudin Customizations
325
+
326
+ You are helping the user create or refine Claudin customizations. Follow this
327
+ workflow:
328
+
329
+ 1. **Intent** — Decide whether the user wants to *create* something new or
330
+ *refine* an existing artifact. If refining, Read the existing file first and
331
+ validate its frontmatter against the contract below before changing it.
332
+ 2. **Type** — Pick the right artifact for the job:
333
+ - **Skill**: a reusable workflow or reference knowledge, invoked on demand
334
+ (\`/<name>\` by the user, or auto-invoked by the model when relevant).
335
+ Costs nothing in context until invoked.
336
+ - **Rule**: always-on (or path-conditional) instructions loaded into
337
+ context automatically. Costs context every session — keep rules short.
338
+ - **Agent**: a subagent with its own system prompt, tool allowlist, and
339
+ context window, dispatched via the Agent tool for delegated work.
340
+ If the choice is ambiguous, ask the user with a one-line trade-off summary.
341
+ 3. **Scope** — Ask (or infer from the request) whether it belongs to the
342
+ project (\`.claudin/\` in the repo, shared via git) or to the user globally
343
+ (\`~/.claudin/\`, available in every project). Default: project for
344
+ repo-specific workflows/conventions, global for personal preferences.
345
+ 4. **Interview** — Ask only what you cannot infer: what should it do, when
346
+ should it trigger, which tools does it need, any inputs/arguments. Keep it
347
+ to one short round; if the current conversation already contains the
348
+ workflow being captured ("turn this into a skill"), extract the answers
349
+ from it instead of asking.
350
+ 5. **Draft & save** — Write the file at the correct path using the contract
351
+ for its type. Look at existing artifacts in the target directory first and
352
+ match their style; never overwrite an existing file without telling the
353
+ user.
354
+ 6. **Verify** — Confirm the artifact loads (see "Verifying" below) and show
355
+ the user the file plus a one-line usage example.
356
+
357
+ The description fields (\`description\`, \`when_to_use\`) are what the runtime
358
+ uses to decide auto-invocation and delegation — spend the most effort there.
359
+ Be specific about the trigger conditions, not just the capability.`,SB="## Skills\n\n**Location** (layout is mandatory — a loose `.md` at the root of `skills/`\nis ignored):\n- Project: `.claudin/skills/<name>/SKILL.md`\n- Global: `~/.claudin/skills/<name>/SKILL.md`\n- Nested categories work: `skills/<category>/<name>/SKILL.md`\n- Extra files (references, scripts) may live next to `SKILL.md` — discovery\n only picks up `SKILL.md`, so use sibling files for progressive disclosure\n and tell the skill body to Read them on demand.\n- `.claudin/commands/` also loads but is **deprecated** — always create\n skills, and offer to migrate if you find the user still has commands there.\n\n**Format** — YAML frontmatter + markdown body (the body becomes the prompt):\n\n```markdown\n---\nname: my-skill\ndescription: What it does AND when to use it — this drives auto-invocation.\n---\n\nInstructions for the model...\n```\n\n**Supported frontmatter** (anything else is ignored):\n| Key | Meaning |\n|---|---|\n| `name` | Display name (defaults to the directory name) |\n| `description` | What/when — shown in `/skills` and used for auto-invocation |\n| `when_to_use` | Extra trigger guidance (note: snake_case, unlike the other keys) |\n| `allowed-tools` | Tool allowlist while the skill runs, e.g. `Read, Bash(git diff:*)` |\n| `argument-hint` | Hint shown in the composer, e.g. `[pr-number]` |\n| `arguments` | Argument names as a space-separated string or YAML list of plain strings (e.g. `arguments: name repo`) — NOT a list of objects; each name becomes a `$<name>` placeholder |\n| `disable-model-invocation` | `true` = only the user can invoke (use for side-effectful workflows like deploys) |\n| `user-invocable` | `false` = model-only (hidden from `/` menu) |\n| `model` | Override model for this skill, or `inherit` |\n| `effort` | Effort level (`low`/`medium`/`high`/...) or an integer |\n| `context` | `fork` = run in a forked subagent instead of inline |\n| `agent` | Named agent to run the skill in (with `context: fork`) |\n| `paths` | Globs — makes the skill conditional, loaded when matching files are touched |\n| `hooks` | Skill-scoped hooks (same schema as settings.json hooks) |\n| `version` | Informational version string |\n\n**Body features**: `$ARGUMENTS` is replaced with the full invocation args,\n`$0`/`$ARGUMENTS[0]` with individual args, and `$<name>` with the\npositional arg matching `arguments`; `${CLAUDIN_SKILL_DIR}` resolves to the\nskill's directory (for referencing sibling scripts); `!` + backtick-wrapped\nshell commands are executed before the prompt is sent (gated by\n`allowed-tools`).\n\n**Gotchas**:\n- `SKILL.md` must be inside its own directory — `skills/foo.md` silently\n does not load.\n- Keep the body focused; move long reference material to sibling files.",MB='## Agents (subagents)\n\n**Location** — flat `.md` files, one agent per file:\n- Project: `.claudin/agents/<name>.md`\n- Global: `~/.claudin/agents/<name>.md`\n\n**Format** — the markdown body is the agent\'s **system prompt**:\n\n```markdown\n---\nname: my-reviewer\ndescription: Use this agent when the user asks for a security-focused review.\ntools: Read, Grep, Glob\n---\n\nYou are a security reviewer. Given a diff, you...\n```\n\n**Supported frontmatter**:\n| Key | Meaning |\n|---|---|\n| `name` | **Required** — the agent type used in Agent tool dispatch. Files without it are silently skipped |\n| `description` | **Required** — "when to delegate to this agent"; drives automatic delegation |\n| `tools` | Tool allowlist (comma list). Omit = all tools |\n| `disallowedTools` | Tools to remove from the allowlist |\n| `model` | ⚠️ **Not supported** in agent markdown — do not add it (common habit from other tools); the agent inherits the session model |\n| `color` | Accent color in the TUI |\n| `background` | `true` = always run as a background task |\n| `memory` | `user` \\| `project` \\| `local` — persistent agent memory scope (auto-adds Read/Write/Edit) |\n| `isolation` | `worktree` = run in an isolated git worktree |\n| `effort` | Effort level or integer |\n| `permissionMode` | Permission mode the agent runs under |\n| `maxTurns` | Turn budget (positive integer) |\n| `skills` | Skill names to preload into the agent |\n| `initialPrompt` | Text prepended to the agent\'s first user turn |\n| `mcpServers` | MCP servers by name reference or inline config |\n| `hooks` | Agent-scoped hooks |\n\n**Gotchas**:\n- Missing `name` or `description` → the file is treated as co-located\n documentation and skipped without an error.\n- Write `description` from the *dispatcher\'s* point of view ("Use this agent\n when...") — it is what the main model reads when deciding to delegate.\n- For interactive creation the `/agents` wizard also works; creating the\n `.md` directly is equivalent and reviewable in git.',xB='## Rules\n\n**Location** — plain markdown, nested subdirectories allowed:\n- Project: `.claudin/rules/<topic>.md`\n- Global: `~/.claudin/rules/<topic>.md`\n\n**Format** — markdown, auto-loaded into context. The only supported\nfrontmatter key is `paths`:\n\n```markdown\n---\npaths: src/api/**, src/services/api/**\n---\n\n# API conventions\n...\n```\n\n- No `paths` (or `paths: "**"`) → the rule is unconditional: loaded into\n every session. **It costs context every turn — keep it short and factual.**\n- With `paths` globs → conditional: activated only when files matching the\n globs are touched. Project-rule globs are relative to the directory\n containing `.claudin/`.\n\n**Gotchas**:\n- `alwaysApply`, `globs`, `description` frontmatter (Cursor/other tools) are\n **not supported** — only `paths`. Migrate `globs:` → `paths:`.\n- One topic per file; prefer several small conditional rules over one large\n unconditional one.\n- If guidance is only needed on demand, make it a skill instead of a rule.',KC=`## Verifying
360
+
361
+ - **Skills**: if the skills directory already existed when the session
362
+ started, a file watcher picks up the new skill within a few seconds — check
363
+ with \`/skills\` or by invoking \`/<name>\`. If you just created the
364
+ \`skills/\` directory itself, the watcher is not attached: tell the user to
365
+ restart the session.
366
+ - **Agents and rules**: loaded at session start — tell the user to restart
367
+ the session (agents also reload when the \`/agents\` wizard runs).
368
+ - Always show the user the final file path and how to invoke or trigger what
369
+ you created.`,RC={skill:SB,rule:xB,agent:MB};function hC(G){let I=G.trim(),[B,...g]=I.split(/\s+/),Z=B?JC[B.toLowerCase()]:void 0,C=Z?[RC[Z]]:[SB,xB,MB],b=Z?g.join(" "):I,Y=b?`
370
+
371
+ ## User Request
372
+
373
+ ${Z?`Artifact type: ${Z}. `:""}${b}`:Z?`
374
+
375
+ ## User Request
376
+
377
+ Artifact type: ${Z}. Ask the user what it should do.`:"";return[dC,...C,KC].join(`
378
+
379
+ `)+Y}function uB(){k({name:"create",description:"Create or refine Claudin customizations — skills, rules, and custom agents — in the project (.claudin/) or global (~/.claudin/) structure.",whenToUse:"When the user wants to create, scaffold, improve, or fix a skill, rule, slash command, or custom agent/subagent for Claudin.",argumentHint:"[skill|rule|agent] [description]",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Write","Edit","Glob","Grep"],async getPromptForCommand(G){return[{type:"text",text:hC(G)}]}})}zC();XI();RG();QG();FC();t();import{open as QC,stat as wC}from"fs/promises";var DG=20,NC=65536;function TB(){k({name:"debug",description:"Enable debug logging for this session and help diagnose issues",allowedTools:["Read","Grep","Glob"],argumentHint:"[issue description]",disableModelInvocation:!0,userInvocable:!0,async getPromptForCommand(G){let I=$B(),B=DB(),g;try{let b=await wC(B),Y=Math.min(b.size,NC),W=b.size-Y,H=await QC(B,"r");try{let{buffer:h,bytesRead:d}=await H.read({buffer:Buffer.alloc(Y),position:W}),c=h.toString("utf-8",0,d).split(`
380
+ `).slice(-DG).join(`
381
+ `);g=`Log size: ${PB(b.size)}
382
+
383
+ ### Last ${DG} lines
384
+
385
+ \`\`\`
386
+ ${c}
387
+ \`\`\``}finally{await H.close()}}catch(b){g=qB(b)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${DG} lines of debug log: ${r(b)}`}return[{type:"text",text:`# Debug Skill
388
+
389
+ Help the user debug an issue they're encountering in this current Claudin session.
390
+ ${I?"":`
391
+ ## Debug Logging Just Enabled
392
+
393
+ Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
394
+
395
+ Tell the user that debug logging is now active at \`${B}\`, ask them to reproduce the issue, then re-read the log. If they can't reproduce, they can also restart with \`claude --debug\` to capture logs from startup.
396
+ `}
397
+ ## Session Debug Log
398
+
399
+ The debug log for the current session is at: \`${B}\`
400
+
401
+ ${g}
402
+
403
+ For additional context, grep for [ERROR] and [WARN] lines across the full file.
404
+
405
+ ## Issue Description
406
+
407
+ ${G||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
408
+
409
+ ## Settings
410
+
411
+ Remember that settings are in:
412
+ * user - ${PG("userSettings")}
413
+ * project - ${PG("projectSettings")}
414
+ * local - ${PG("localSettings")}
415
+
416
+ ## Instructions
417
+
418
+ 1. Review the user's issue description
419
+ 2. The last ${DG} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
420
+ 3. Consider launching the ${OB} subagent to understand the relevant Claudin features
421
+ 4. Explain what you found in plain language
422
+ 5. Suggest concrete fixes or next steps
423
+ `}]}})}_B();t();function jC(){return`# Fewer Permission Prompts
424
+
425
+ Look through my transcripts' MCP and bash tool calls, and based on those, make a prioritized list of patterns that I should add to my permission allowlist to reduce permission prompts. Focus on read-only commands.
426
+
427
+ The format for permissions is: \`Bash(foo*)\`, \`Bash(foo)\`, \`Bash(foo bar *)\`, \`mcp__slack__slack_read_thread\`, etc.
428
+
429
+ Then, add these to the project \`.claudin/settings.json\` under \`permissions.allow\`.
430
+
431
+ ## Steps
432
+
433
+ 1. **Locate transcripts.** Session transcripts live under \`${EB()}/<sanitized-cwd>/*.jsonl\` (this is Claudin's projects dir, honoring \`CLAUDIN_CONFIG_DIR\`). Each line is a JSON object. Tool calls appear as \`assistant\` messages with \`message.content[]\` entries of \`type: "tool_use"\`. The \`name\` field identifies the tool (e.g. \`"Bash"\`, \`"mcp__slack__slack_read_thread"\`); for Bash, \`input.command\` is the shell string.
434
+
435
+ Scan the recent transcripts across the projects dir — not just the current project — so the allowlist reflects their actual usage. Cap the scan at a reasonable number of recent sessions (e.g. 50 most-recently-modified JSONL files) so this stays fast.
436
+
437
+ 2. **Extract tool-call frequencies.**
438
+ - For \`Bash\` calls: parse \`input.command\`, take the leading command token (handling \`sudo\`, \`timeout\`, pipes, \`&&\`, env-var prefixes). Record the command + first subcommand pair (e.g. \`git status\`, \`gh pr view\`, \`ls\`, \`cat\`).
439
+ - For MCP calls: record the full tool name (e.g. \`mcp__slack__slack_read_thread\`).
440
+ - Count occurrences across the scanned transcripts.
441
+
442
+ 3. **Filter to read-only.** Keep only commands that don't mutate state. Examples of read-only: \`ls\`, \`cat\`, \`pwd\`, \`git status\`, \`git log\`, \`git diff\`, \`git show\`, \`git branch\`, \`rg\`, \`grep\`, \`find\`, \`head\`, \`tail\`, \`wc\`, \`file\`, \`which\`, \`echo\`, \`date\`, \`gh pr view\`, \`gh pr list\`, \`gh pr diff\`, \`gh issue view\`, \`gh issue list\`, \`gh run list\`, \`gh run view\`, \`gh api\` (GET), \`bun run typecheck\`, \`bun run lint\`, \`bun run test\` (for tests that don't mutate), \`docker ps\`, \`docker logs\`, \`kubectl get\`, \`kubectl describe\`, \`ps\`, \`top\`, \`df\`, \`du\`, \`env\`, \`printenv\`, any MCP tool with \`read\`/\`get\`/\`list\`/\`search\`/\`view\` in its name.
443
+
444
+ Drop anything that writes, deletes, renames, pushes, merges, installs, or runs a build/test that has side effects. When in doubt, leave it out.
445
+
446
+ **Never allowlist a pattern that grants arbitrary code execution.** A wildcard rule for any of these (e.g. \`Bash(python3:*)\`) is equivalent to allowing arbitrary code execution. This list is not exhaustive — apply the same rule to anything in the same category:
447
+ - Interpreters: \`python\`/\`python3\`, \`node\`, \`bun\`, \`deno\`, \`ruby\`, \`perl\`, \`php\`, \`lua\`, etc.
448
+ - Shells: \`bash\`, \`sh\`, \`zsh\`, \`fish\`, \`eval\`, \`exec\`, \`ssh\`, etc.
449
+ - Package runners: \`npx\`, \`bunx\`, \`uvx\`, \`uv run\`, etc.
450
+ - Task-runner wildcards: \`npm run *\`, \`yarn run *\`, \`pnpm run *\`, \`bun run *\`, \`make *\`, \`just *\`, \`cargo run *\`, \`go run *\`, etc. — an exact \`Bash(bun run typecheck)\` is fine, \`Bash(bun run *)\` is not
451
+ - \`gh api *\`, \`docker run\`/\`exec\`, \`kubectl exec\`, \`sudo\`, and similar
452
+
453
+ 4. **Drop commands Claudin already auto-allows.** These don't need an allowlist entry — they never prompt. If you see any of these in the transcripts, skip them; don't suggest them to the user.
454
+
455
+ - **Always auto-allowed (any args):** \`cal\`, \`uptime\`, \`cat\`, \`head\`, \`tail\`, \`wc\`, \`stat\`, \`strings\`, \`hexdump\`, \`od\`, \`nl\`, \`id\`, \`uname\`, \`free\`, \`df\`, \`du\`, \`locale\`, \`groups\`, \`nproc\`, \`basename\`, \`dirname\`, \`realpath\`, \`cut\`, \`paste\`, \`tr\`, \`column\`, \`tac\`, \`rev\`, \`fold\`, \`expand\`, \`unexpand\`, \`fmt\`, \`comm\`, \`cmp\`, \`numfmt\`, \`readlink\`, \`diff\`, \`true\`, \`false\`, \`sleep\`, \`which\`, \`type\`, \`expr\`, \`test\`, \`getconf\`, \`seq\`, \`tsort\`, \`pr\`, \`echo\`, \`printf\`, \`ls\`, \`cd\`, \`find\`.
456
+ - **Auto-allowed with zero args only:** \`pwd\`, \`whoami\`, \`alias\`.
457
+ - **Auto-allowed exact forms:** \`node -v\`, \`node --version\`, \`python --version\`, \`python3 --version\`, \`ip addr\`.
458
+ - **Auto-allowed with safe flags only (validated):** \`xargs\`, \`file\`, \`sed\` (read-only expressions), \`sort\`, \`man\`, \`help\`, \`netstat\`, \`ps\`, \`base64\`, \`grep\`, \`egrep\`, \`fgrep\`, \`sha256sum\`, \`sha1sum\`, \`md5sum\`, \`tree\`, \`date\`, \`hostname\`, \`info\`, \`lsof\`, \`pgrep\`, \`tput\`, \`ss\`, \`fd\`, \`fdfind\`, \`rg\`, \`jq\`, \`uniq\`, \`history\`, \`arch\`, \`ifconfig\`, \`pyright\`.
459
+ - **All git read-only subcommands:** \`git status\`, \`git log\`, \`git diff\`, \`git show\`, \`git blame\`, \`git branch\`, \`git tag\`, \`git remote\`, \`git ls-files\`, \`git ls-remote\`, \`git config --get\`, \`git rev-parse\`, \`git describe\`, \`git stash list\`, \`git reflog\`, \`git shortlog\`, \`git cat-file\`, \`git for-each-ref\`, \`git worktree list\`, etc.
460
+ - **All gh read-only subcommands:** \`gh pr view\`, \`gh pr list\`, \`gh pr diff\`, \`gh pr checks\`, \`gh pr status\`, \`gh issue view\`, \`gh issue list\`, \`gh issue status\`, \`gh run view\`, \`gh run list\`, \`gh workflow list\`, \`gh workflow view\`, \`gh repo view\`, \`gh release view\`, \`gh release list\`, \`gh api\` (GET), \`gh auth status\`, etc.
461
+ - **Docker read-only subcommands:** \`docker ps\`, \`docker images\`, \`docker logs\`, \`docker inspect\`.
462
+
463
+ Source of truth: \`src/tools/BashTool/readOnlyValidation.ts\` (\`COMMAND_ALLOWLIST\`, \`READONLY_COMMANDS\`, \`READONLY_COMMAND_REGEXES\`) and \`src/platform/shell/readOnlyCommandValidation.ts\` (\`GIT_READ_ONLY_COMMANDS\`, \`GH_READ_ONLY_COMMANDS\`, \`DOCKER_READ_ONLY_COMMANDS\`, \`RIPGREP_READ_ONLY_COMMANDS\`, \`PYRIGHT_READ_ONLY_COMMANDS\`). If you're in this repo and unsure whether a command is covered, grep these files rather than guessing.
464
+
465
+ 5. **Pick the pattern form.** Use the narrowest pattern that still covers the observed usage:
466
+ - If the user runs many variants (\`git log\`, \`git log --oneline\`, \`git log main..HEAD\`): use \`Bash(git log *)\` — note the space before \`*\`, which is required for prefix matching to work correctly.
467
+ - If a single exact invocation is common: use \`Bash(foo)\` with no wildcard.
468
+ - For MCP: use the full tool name verbatim (no wildcard needed; they're already specific).
469
+ - Never widen a pattern to the point that it conflicts with the rules above (no arbitrary code execution, no mutation/side effects).
470
+
471
+ 6. **Prioritize.** Rank by count descending. Drop anything that appeared fewer than ~3 times — not worth the allowlist entry. Cap the list at the top ~20 so the user can skim it.
472
+
473
+ 7. **Present the prioritized list to the user** as a markdown table with columns: rank, pattern, count, one-line description. Example:
474
+
475
+ | # | Pattern | Count | Notes |
476
+ |---|---------|-------|-------|
477
+ | 1 | \`Bash(git status *)\` | 142 | repo status checks |
478
+ | 2 | \`Bash(gh pr view *)\` | 87 | PR inspection |
479
+ | 3 | \`mcp__slack__slack_read_thread\` | 54 | Slack thread reads |
480
+
481
+ 8. **Merge into \`.claudin/settings.json\`** in the current project (not the user-level \`settings.json\`, not \`.claudin/settings.local.json\`). Create the file if it doesn't exist. Preserve existing keys and existing entries in \`permissions.allow\`; de-duplicate against what's already there; don't remove anything; don't reorder unrelated fields.
482
+
483
+ 9. **Report back.** Tell the user what you added (count + a few examples), what was already in the allowlist, and what you skipped and why (e.g. "dropped \`rm\` and \`git push\` — not read-only; dropped \`cat\`/\`ls\`/\`git status\` — already auto-allowed, no rule needed").
484
+
485
+ Do not add anything to \`permissions.deny\` or \`permissions.ask\`. Do not touch any other settings field.`}function pB(){k({name:"fewer-permission-prompts",description:"Scan recent transcripts for common read-only Bash/MCP calls and add a prioritized allowlist to the project's .claudin/settings.json to reduce permission prompts.",whenToUse:"When the user wants to cut down on permission prompts by allowlisting their frequent read-only commands.",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Grep","Glob","Edit","Write","Bash(ls:*)"],async getPromptForCommand(){return[{type:"text",text:jC()}]}})}UC();LC();mC();aB();AC();var HI=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin","Memory"],fB={Global:"Active everywhere, regardless of focus",Chat:"When the chat input is focused",Autocomplete:"When autocomplete menu is visible",Confirmation:"When a confirmation/permission dialog is shown",Help:"When the help overlay is open",Transcript:"When viewing the transcript",HistorySearch:"When searching command history (ctrl+r)",Task:"When a task/agent is running in the foreground",ThemePicker:"When the theme picker is open",Settings:"When the settings menu is open",Tabs:"When tab navigation is active",Attachments:"When navigating image attachments in a select dialog",Footer:"When footer indicators are focused",MessageSelector:"When the message selector (rewind) is open",DiffDialog:"When the diff dialog is open",ModelPicker:"When the model picker is open",Select:"When a select/list component is focused",Plugin:"When the plugin dialog is open",Memory:"When browsing a memory directory in /memory"},yI=["app:interrupt","app:exit","app:toggleTodos","app:toggleTranscript","app:toggleBrief","app:toggleTeammatePreview","app:toggleTerminal","app:redraw","app:globalSearch","app:quickOpen","history:search","history:previous","history:next","chat:cancel","chat:killAgents","chat:cycleMode","chat:modelPicker","chat:fastMode","chat:thinkingToggle","chat:increaseEffort","chat:decreaseEffort","chat:submit","chat:newline","chat:undo","chat:externalEditor","chat:openDiff","chat:openExplorer","chat:stash","chat:focusPanel","chat:imagePaste","chat:messageActions","autocomplete:accept","autocomplete:dismiss","autocomplete:previous","autocomplete:next","confirm:yes","confirm:no","confirm:previous","confirm:next","confirm:nextField","confirm:previousField","confirm:cycleMode","confirm:toggle","confirm:toggleExplanation","tabs:next","tabs:previous","transcript:toggleShowAll","transcript:exit","historySearch:next","historySearch:accept","historySearch:cancel","historySearch:execute","task:background","theme:toggleSyntaxHighlighting","help:dismiss","attachments:next","attachments:previous","attachments:remove","attachments:exit","footer:up","footer:down","footer:next","footer:previous","footer:openSelected","footer:clearSelection","footer:close","messageSelector:up","messageSelector:down","messageSelector:top","messageSelector:bottom","messageSelector:select","diff:dismiss","diff:close","diff:previousSource","diff:nextSource","diff:focusList","diff:focusContent","diff:viewDetails","diff:previousFile","diff:nextFile","diff:nextTab","diff:refresh","diff:expandAll","diff:focusPrompt","diff:select","diff:focusSectionUp","diff:focusSectionDown","modelPicker:decreaseEffort","modelPicker:increaseEffort","select:next","select:previous","select:accept","select:cancel","select:search","select:toggleFavorite","plugin:toggle","plugin:install","memory:openFolder","memory:delete","permission:toggleDebug","settings:search","settings:retry","settings:close","settings:usageDay","settings:usageWeek","voice:pushToTalk"],vC=VI(()=>n.object({context:n.enum(HI).describe("UI context where these bindings apply. Global bindings work everywhere."),bindings:n.record(n.string().describe('Keystroke pattern (e.g., "ctrl+k", "shift+tab")'),n.union([n.enum(yI),n.string().regex(/^command:[a-zA-Z0-9:\-_]+$/).describe('Command binding (e.g., "command:help", "command:compact"). Executes the slash command as if typed.'),n.null().describe("Set to null to unbind a default shortcut")]).describe("Action to trigger, command to invoke, or null to unbind")).describe("Map of keystroke patterns to actions")}).describe("A block of keybindings for a specific context")),q2=VI(()=>n.object({$schema:n.string().optional().describe("JSON Schema URL for editor validation"),$docs:n.string().optional().describe("Documentation URL"),bindings:n.array(vC()).describe("Array of keybinding blocks by context")}).describe("Claudin keybindings configuration. Customize keyboard shortcuts by context."));iB();t();function kC(){return lI(["Context","Description"],HI.map((G)=>[`\`${G}\``,fB[G]]))}function SC(){let G={};for(let I of oB)for(let[B,g]of Object.entries(I.bindings))if(g){if(!G[g])G[g]={keys:[],context:I.context};G[g].keys.push(B)}return lI(["Action","Default Key(s)","Context"],yI.map((I)=>{let B=G[I],g=B?B.keys.map((C)=>`\`${C}\``).join(", "):"(none)",Z=B?B.context:MC(I);return[`\`${I}\``,g,Z]}))}function MC(G){let I=G.split(":")[0];return{app:"Global",history:"Global or Chat",chat:"Chat",autocomplete:"Autocomplete",confirm:"Confirmation",tabs:"Tabs",transcript:"Transcript",historySearch:"HistorySearch",task:"Task",theme:"ThemePicker",help:"Help",attachments:"Attachments",footer:"Footer",messageSelector:"MessageSelector",diff:"DiffDialog",modelPicker:"ModelPicker",select:"Select",permission:"Confirmation"}[I??""]??"Unknown"}function xC(){let G=[];G.push("### Non-rebindable (errors)");for(let I of nB)G.push(`- \`${I.key}\` — ${I.reason}`);G.push(""),G.push("### Terminal reserved (errors/warnings)");for(let I of sB)G.push(`- \`${I.key}\` — ${I.reason} (${I.severity==="error"?"will not work":"may conflict"})`);G.push(""),G.push("### macOS reserved (errors)");for(let I of rB)G.push(`- \`${I.key}\` — ${I.reason}`);return G.join(`
486
+ `)}var uC={$schema:"https://www.schemastore.org/claude-code-keybindings.json",$docs:"https://code.claude.com/docs/en/keybindings",bindings:[{context:"Chat",bindings:{"ctrl+e":"chat:externalEditor"}}]},qC={context:"Chat",bindings:{"ctrl+s":null}},$C={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},DC={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},PC=["# Keybindings Skill","","Create or modify `~/.claudin/keybindings.json` to customize keyboard shortcuts.","","## CRITICAL: Read Before Write","","**Always read `~/.claudin/keybindings.json` first** (it may not exist yet). Merge changes with existing bindings — never replace the entire file.","","- Use **Edit** tool for modifications to existing files","- Use **Write** tool only if the file does not exist yet"].join(`
487
+ `),OC=["## File Format","","```json",lG(uC,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
488
+ `),TC=["## Keystroke Syntax","","**Modifiers** (combine with `+`):","- `ctrl` (alias: `control`)","- `alt` (aliases: `opt`, `option`) — note: `alt` and `meta` are identical in terminals","- `shift`","- `meta` (aliases: `cmd`, `command`)","","**Special keys**: `escape`/`esc`, `enter`/`return`, `tab`, `space`, `backspace`, `delete`, `up`, `down`, `left`, `right`","","**Chords**: Space-separated keystrokes, e.g. `ctrl+k ctrl+s` (1-second timeout between keystrokes)","","**Examples**: `ctrl+shift+p`, `alt+enter`, `ctrl+k ctrl+n`"].join(`
489
+ `),EC=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",lG(qC,null,2),"```"].join(`
490
+ `),_C=["## How User Bindings Interact with Defaults","","- User bindings are **additive** — they are appended after the default bindings","- To **move** a binding to a different key: unbind the old key (`null`) AND add the new binding","- A context only needs to appear in the user's file if they want to change something in that context"].join(`
491
+ `),pC=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",lG($C,null,2),"```","","### Add a chord binding","```json",lG(DC,null,2),"```"].join(`
492
+ `),aC=["## Behavioral Rules","","1. Only include contexts the user wants to change (minimal overrides)","2. Validate that actions and contexts are from the known lists below","3. Warn the user proactively if they choose a key that conflicts with reserved shortcuts or common tools like tmux (`ctrl+b`) and screen (`ctrl+a`)","4. When adding a new binding for an existing action, the new binding is additive (existing default still works unless explicitly unbound)","5. To fully replace a default binding, unbind the old key AND add the new one"].join(`
493
+ `),fC=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claudin/keybindings.json`.',"","### Common Issues and Fixes","",lI(["Issue","Cause","Fix"],[['`keybindings.json must have a "bindings" array`',"Missing wrapper object",'Wrap bindings in `{ "bindings": [...] }`'],['`"bindings" must be an array`',"`bindings` is not an array",'Set `"bindings"` to an array: `[{ context: ..., bindings: ... }]`'],['`Unknown context "X"`',"Typo or invalid context name","Use exact context names from the Available Contexts table"],['`Duplicate key "X" in Y bindings`',"Same key defined twice in one context","Remove the duplicate; JSON uses only the last value"],['`"X" may not work: ...`',"Key conflicts with terminal/OS reserved shortcut","Choose a different key (see Reserved Shortcuts section)"],['`Could not parse keystroke "X"`',"Invalid key syntax","Check syntax: use `+` between modifiers, valid key names"],['`Invalid action for "X"`',"Action value is not a string or null",'Actions must be strings like `"app:help"` or `null` to unbind']]),"","### Example /doctor Output","","```","Keybinding Configuration Issues","Location: ~/.claudin/keybindings.json",' └ [Error] Unknown context "chat"'," → Valid contexts: Global, Chat, Autocomplete, ...",' └ [Warning] "ctrl+c" may not work: Terminal interrupt (SIGINT)',"```","","**Errors** prevent bindings from working and must be fixed. **Warnings** indicate potential conflicts but the binding may still work."].join(`
494
+ `);function eB(){k({name:"keybindings-help",description:'Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claudin/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".',allowedTools:["Read"],userInvocable:!1,isEnabled:tB,async getPromptForCommand(G){let I=kC(),B=SC(),g=xC(),Z=[PC,OC,TC,EC,_C,pC,aC,fC,`## Reserved Shortcuts
495
+
496
+ ${g}`,`## Available Contexts
497
+
498
+ ${I}`,`## Available Actions
499
+
500
+ ${B}`];if(G)Z.push(`## User Request
501
+
502
+ ${G}`);return[{type:"text",text:Z.join(`
503
+
504
+ `)}]}})}function lI(G,I){let B=G.map(()=>"---");return[`| ${G.join(" | ")} |`,`| ${B.join(" | ")} |`,...I.map((g)=>`| ${g.join(" | ")} |`)].join(`
505
+ `)}iC();oC();nC();t();var cI="Monitor";function sC(G){let I=G.toLowerCase();if(["s","sec","secs","second","seconds"].includes(I))return"s";if(["m","min","mins","minute","minutes"].includes(I))return"m";if(["h","hr","hrs","hour","hours"].includes(I))return"h";if(["d","day","days"].includes(I))return"d";return null}function JI(G){let I=G.trim().match(/^(\d+)\s*([a-zA-Z]+)$/);if(!I)return null;let B=Number.parseInt(I[1],10);if(!Number.isFinite(B)||B<1)return null;let g=sC(I[2]);if(!g)return null;return`${B}${g}`}function rC(G){let I=G.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!I)return null;let B=JI(`${I[2]}${I[3]}`);if(!B)return null;return{prompt:I[1].trim(),interval:B}}function tC(G){let I=G.trim();if(!I)return{mode:"dynamic-maintenance"};let B=JI(I);if(B)return{mode:"fixed-maintenance",interval:B};let[g,...Z]=I.split(/\s+/),C=JI(g??"");if(C){let Y=Z.join(" ").trim();if(!Y)return{mode:"fixed-maintenance",interval:C};return{mode:"fixed-prompt",interval:C,prompt:Y}}let b=rC(I);if(b){if(!b.prompt)return{mode:"fixed-maintenance",interval:b.interval};return{mode:"fixed-prompt",interval:b.interval,prompt:b.prompt}}return{mode:"dynamic-prompt",prompt:I}}function eC(G){let I=G.prompt?`Use this prompt verbatim for both the immediate run and the recurring scheduled task:
506
+
507
+ --- BEGIN PROMPT ---
508
+ ${G.prompt}
509
+ --- END PROMPT ---
510
+ `:`This is a maintenance loop with no explicit prompt.
511
+
512
+ For the recurring scheduled task, use this exact one-line prompt body. It is a sentinel the runtime expands at delivery time (full maintenance instructions on the first fire and whenever loop.md changes, a short reminder afterwards), which keeps the long instruction text in the cached prefix. Pass it exactly — do not inline the instructions:
513
+
514
+ --- BEGIN SCHEDULED PROMPT ---
515
+ ${bg}
516
+ --- END SCHEDULED PROMPT ---
517
+
518
+ For the immediate run in step 4, follow this maintenance prompt:
519
+
520
+ --- BEGIN MAINTENANCE PROMPT ---
521
+ ${KI}
522
+ --- END MAINTENANCE PROMPT ---
523
+ `;return`# /loop — fixed recurring interval
524
+
525
+ The user invoked /loop with a fixed interval.
526
+
527
+ Requested interval: ${G.interval}
528
+
529
+ ${I}
530
+ ## Instructions
531
+
532
+ 1. Convert the requested interval to a recurring cron expression.
533
+ - Supported suffixes: s, m, h, d.
534
+ - Seconds must be rounded up to the nearest minute because cron has minute granularity.
535
+ - If the requested interval does not map cleanly to cron cadence, choose the nearest clean recurring interval and tell the user what you picked.
536
+ 2. Call ${dI} with:
537
+ - the recurring cron expression
538
+ - the scheduled prompt body above (for maintenance loops, the one-line sentinel exactly as given)
539
+ - recurring: true
540
+ - durable: false
541
+ 3. Briefly confirm what was scheduled, the cron expression, the human cadence, that recurring tasks auto-expire after ${Gg} days, and that the user can cancel sooner with ${Bg} using the returned job ID.
542
+ 4. Immediately execute the effective prompt now — do not wait for the first cron fire.
543
+ - If the effective prompt starts with a slash command, invoke it via the Skill tool.
544
+ - Otherwise, act on it directly.
545
+ `}function GY(G){let I=G.prompt?`Use this prompt verbatim as the effective prompt for this iteration:
546
+
547
+ --- BEGIN PROMPT ---
548
+ ${G.prompt}
549
+ --- END PROMPT ---
550
+ `:`This is a maintenance loop with no explicit prompt.
551
+
552
+ Determine the effective prompt in this order:
553
+ 1. If .claudin/loop.md exists, read it and use it.
554
+ 2. Otherwise, if ~/.claudin/loop.md exists, read it and use it.
555
+ 3. Otherwise, use this built-in maintenance prompt:
556
+
557
+ --- BEGIN MAINTENANCE PROMPT ---
558
+ ${KI}
559
+ --- END MAINTENANCE PROMPT ---
560
+ `,B=G.prompt?`/loop ${G.prompt}`:Cg,g=G.prompt?"":" (a sentinel the runtime expands at delivery time — pass it exactly, do not inline the maintenance instructions)";return`# /loop — dynamic rescheduling
561
+
562
+ The user invoked /loop without a fixed interval — you pace the iterations yourself with ${CG}.
563
+
564
+ ${I}
565
+ ## Instructions
566
+
567
+ 1. Execute the effective prompt now.
568
+ - If it starts with a slash command, invoke it via the Skill tool.
569
+ - Otherwise, act on it directly.
570
+ 2. Then, as the LAST action of this turn, call ${CG} exactly once to schedule the next iteration:
571
+ - delaySeconds: choose it yourself per the pacing guidance in the ${CG} tool description. The runtime clamps to [${gg}, ${Zg}] seconds.
572
+ - reason: one short sentence telling the user what delay you picked and why.
573
+ - prompt: set it to this exact text${g} so the next iteration stays in dynamic mode:
574
+
575
+ --- BEGIN SCHEDULED PROMPT ---
576
+ ${B}
577
+ --- END SCHEDULED PROMPT ---
578
+
579
+ 3. Only one wakeup is alive at a time — calling ${CG} again replaces the pending one. Do not use ${dI} in this mode.
580
+ 4. If the next iteration is gated on an external event the ${cI} tool can watch (a CI run, a deploy, an endpoint or file changing) and ${cI} is available in this session, arm a persistent ${cI} as the primary wake signal and use ${CG} only as a 1200–1800s fallback heartbeat.
581
+ 5. To end the loop (the task is complete, you are blocked on the user, or the user asked to stop), do not call ${CG} — and briefly tell the user the loop ended and why. If a wakeup is already pending from a previous turn (e.g. the user interrupted to ask you to stop), call ${CG} with cancel: true to kill it.
582
+ `}function Yg(){k({name:"loop",description:"Run a prompt on a fixed interval or dynamically reschedule it, including bare maintenance-mode loops.",whenToUse:"When the user wants to poll for status, babysit a workflow, run recurring maintenance, or keep re-running a prompt within the current session.",argumentHint:"[interval] [prompt]",userInvocable:!0,isEnabled:Ig,async getPromptForCommand(G){let I=tC(G);return[{type:"text",text:I.mode==="fixed-prompt"||I.mode==="fixed-maintenance"?eC(I):GY(I)}]}})}o();IY();_B();t();async function BY(){let G=vG(),I=Wg(G),B;try{let{findings:g,unconditional:Z,unconditionalChars:C,filesChecked:b}=await Xg({root:G}),Y=g.map((W)=>`- [${W.severity}] ${Vg(G,W.file)}${W.line===void 0?"":`:${W.line}`} — ${W.message}
583
+ fix: ${W.fix}`);B=[`Checked ${b} rule file(s).`,Y.length>0?`
584
+ Mechanical findings (already computed — do not re-derive these):
585
+ ${Y.join(`
586
+ `)}`:"\nNo mechanical findings: every `paths:` matches at least one tracked file, no unsupported frontmatter keys, no stale path references in prose or inside a fenced block, no symbol attributed to a file that does not define it, and no size or `(N)` count off by enough to matter.",`
587
+ Always-loaded context: ${Z.length} file(s) totalling ${C.toLocaleString()} chars, paid on every turn — the root AGENTS.md/CLAUDE.md plus every rule with no \`paths:\`.`].join(`
588
+ `)}catch{B="The mechanical check could not run here. Inspect the rule frontmatter by hand."}return`# Refresh this project's rules
589
+
590
+ Reconcile \`.claudin/rules/\` with what this project actually looks like and
591
+ with what the agent actually reads. **Propose; do not rewrite.**
592
+
593
+ ## Rule health (computed for you)
594
+
595
+ ${B}
596
+
597
+ ## What you are looking for
598
+
599
+ The mechanical findings above cover the defects a checker can see. Your job is
600
+ the one it cannot: a rule that is *wrong* rather than broken. Concretely —
601
+
602
+ - a rule that names a directory for one thing when a same-named file holds
603
+ another (a \`context/\` of UI providers documented while \`context.ts\` holds
604
+ the system prompt is the case that motivated this skill);
605
+ - module-map entries whose described purpose no longer matches the code;
606
+ - files the agent opens constantly that no rule mentions.
607
+
608
+ ## Steps
609
+
610
+ 1. **Read every file under \`.claudin/rules/\`.** Note what each one claims:
611
+ which paths it names, and what it says they contain.
612
+
613
+ 2. **Mine this project's transcripts** at \`${I}/*.jsonl\`. Each line
614
+ is a JSON object; tool calls are \`assistant\` messages with
615
+ \`message.content[]\` entries of \`type: "tool_use"\`, where \`name\` is the tool
616
+ and \`input\` its arguments. Aggregate with a shell one-liner (jq or python3) —
617
+ **never read these files into context, they are large.**
618
+
619
+ Only the **orientation prefix** matters: the tool calls in a session before
620
+ its first \`Edit\`/\`Write\`/\`apply_patch\`. That is the stretch a navigation
621
+ rule could shorten. Rank files by the number of **distinct sessions** that
622
+ read them, not by raw call count — five reads in one investigation is not a
623
+ pattern.
624
+
625
+ Ignore sidechain files (sub-agent transcripts) and any path under a
626
+ scratch/tmp/fixture directory.
627
+
628
+ 3. **Diff the two.** Produce three lists:
629
+ - **Missing** — files in the top ~30 by distinct sessions that no rule names,
630
+ directly or via a directory it names.
631
+ - **Wrong** — anything a rule describes inaccurately. This is the valuable
632
+ list; verify each one by actually reading the file before claiming it.
633
+ Paths, symbol attributions and size/count claims are already covered
634
+ mechanically above, including inside fenced blocks — so spend your effort
635
+ on the half that is not: whether the *described purpose* of a module still
636
+ matches what it does.
637
+ - **Dead** — paths a rule names that no longer exist. Cross-check against the
638
+ mechanical findings above rather than re-deriving.
639
+
640
+ 4. **Propose; do not write anything.** \`.claudin/rules/\` is git-tracked and the
641
+ user decides what lands in it. Print the proposed diff and stop.
642
+
643
+ 5. **Know which half of \`.claudin/rules/search-strategy.md\` is yours**, which
644
+ depends on which kind of map it is.
645
+ - **Carries \`<!-- claudin:module-map -->\`** — generated. Its tree, its
646
+ \`(N)\` counts and its \`paths:\` frontmatter are refreshed automatically, so
647
+ proposing an edit to them spends the user's review on a change the next
648
+ session start discards. What survives is the \`←\` annotation on each entry:
649
+ keyed to the directory's full path, carried across every refresh, and
650
+ reading \`← TODO\` until somebody explains it.
651
+ - **No marker** — hand-written, like this repo's own. Only its numbers move
652
+ automatically; the tree is never restructured, because where a directory
653
+ belongs in a curated tree is judgment. A dead directory, a missing one, or
654
+ a described purpose that no longer matches the code are all yours to raise,
655
+ and they are the valuable part of this report.
656
+
657
+ 6. **Frontmatter, for any rule you propose.**
658
+ \`paths\` is the ONLY supported key — \`globs:\`/\`alwaysApply:\` are silently
659
+ ignored and would leave the rule unconditional, costing context on every
660
+ turn of every session.
661
+
662
+ ## Reporting
663
+
664
+ Lead with the counts (missing / wrong / dead), then the proposed diff as a
665
+ fenced block the user can apply. Be explicit about what you did **not** verify.
666
+
667
+ A caveat worth passing on: measured over 257 sessions in a mature repo, a
668
+ static top-50 file list covered only 33.4% of orientation reads, and 59.5% of
669
+ read paths appeared in exactly one session. Prefer a short, accurate map over a
670
+ long one — the value here is in what the rule gets *wrong*, not in its length.`}function Hg(){k({name:"refresh-rules",description:"Reconcile .claudin/rules/ with the codebase and with what the agent actually reads, then propose corrections. Creates a navigation rule when the project has none and there is enough session history.",whenToUse:"When the user wants to check whether the project rules are still accurate, or wants a navigation rule for a project that has none.",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Grep","Glob","Write","Bash(ls:*)","Bash(jq:*)"],async getPromptForCommand(){return[{type:"text",text:await BY()}]}})}t();function YG(G){return Buffer.from(G,"base64").toString("utf8")}var yg={"examples/cli.md":YG("IyBWZXJpZnlpbmcgYSBDTEkgY2hhbmdlCgpUaGUgaGFuZGxlIGlzIGRpcmVjdCBpbnZvY2F0aW9uLiBUaGUgZXZpZGVuY2UgaXMgc3Rkb3V0L3N0ZGVyci9leGl0IGNvZGUuCgojIyBQYXR0ZXJuCgoxLiBCdWlsZCAoaWYgdGhlIENMSSBuZWVkcyBidWlsZGluZykKMi4gUnVuIHdpdGggYXJndW1lbnRzIHRoYXQgZXhlcmNpc2UgdGhlIGNoYW5nZWQgY29kZQozLiBD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KAlCByZXR1cm5zIHRoZSBpbnN0YW50IHRoZSBhcHAgaXMgdXAsIGFuZCBmYWlscwogIHVzZWZ1bGx5IHdoZW4gaXQgbmV2ZXIgZG9lcy4gU2F5IHdoYXQgc3RyaW5nIG1lYW5zIHJlYWR5LgotICoqS2V5YmluZGluZyByZWZlcmVuY2UuKiogQSB0YWJsZSBvZiB0aGUgbWFpbiBrZXlzLiBUaGlzIGlzIHRoZSAiQVBJIgogIG9mIGEgVFVJIOKAlCBhbiBhZ2VudCBuZWVkcyBpdCB0byBkcml2ZSB0aGUgYXBwLgotICoqRXhpdCBjbGVhbmx5LioqIFNob3cgdGhlIHF1aXQga2V5c3Ryb2tlICphbmQqIGB0bXV4IGtpbGwtc2Vzc2lvbmAgYXMKICBhIGZhbGxiYWNrLgotICoqQ29sb3IvdW5pY29kZSBxdWlya3MuKiogSWYgYGNhcHR1cmUtcGFuZWAgb3V0cHV0IGlzIGhhcmQgdG8gcmVhZCwKICBub3RlIGZsYWdzIHRoYXQgaGVscCAoYC1lYCBmb3IgZXNjYXBlIHNlcXVlbmNlcywgYC1KYCB0byBqb2luIHdyYXBwZWQKICBsaW5lcykuCgojIyBBbHNvIGRvY3VtZW50IHRoZSBkaXJlY3QgaW52b2NhdGlvbgoKRm9yIGEgaHVtYW4gcnVubmluZyB0aGUgYXBwIGludGVyYWN0aXZlbHksIHRtdXggaXMgb3ZlcmtpbGwuIEluY2x1ZGUKdGhlIG9uZS1saW5lciB0b286Cgo+ICMjIFJ1biAoZGlyZWN0LCBmb3IgaHVtYW5zKQo+Cj4gYGBgYmFzaAo+IC4vbXlhcHAKPiBgYGAKPgo+IFByZXNzIGBxYCB0byBxdWl0Lgo=")};var gY=`**Running means launching the actual app and interacting with it** —
671
+ not the test suite, not an \`import\` of an internal function and a
672
+ \`console.log\`. The app as a user (human or programmatic) would meet
673
+ it: the CLI at its command, the server at its socket, the GUI at its
674
+ window.
675
+
676
+ ## First: does a project skill already cover this?
677
+
678
+ A project skill that launches this app is the repo's verified path —
679
+ its author already cold-started from a Linux container and committed
680
+ what worked: the exact \`apt-get\` line, the env vars, the patches, the
681
+ driver. Use it instead of rediscovering.
682
+
683
+ \`\`\`bash
684
+ d=$PWD; while :; do
685
+ grep -Hm1 '^description:' "$d"/.claudin/skills/*/SKILL.md 2>/dev/null
686
+ [ -e "$d/.git" ] || [ "$d" = / ] && break
687
+ d=$(dirname "$d")
688
+ done
689
+ \`\`\`
690
+
691
+ - **One describes launching/driving this app** → read that SKILL.md
692
+ and follow it verbatim. Don't paraphrase; don't skip the patches.
693
+ - **Mega-repo, several plausible, no clear match** → ask the user
694
+ which unit to run.
695
+ - **Stale** (fails on mechanics unrelated to your task) → tell the
696
+ user.
697
+ - **Nothing about running** → fall back to the patterns below.
698
+
699
+ ## Otherwise: match the shape, use the pattern
700
+
701
+ Pick the row closest to your project. Each example walks through
702
+ launch + first interaction; ignore any trailing "write the skill"
703
+ section — you're using the recipe, not authoring one.
704
+
705
+ | Project type | Handle | Example |
706
+ |---|---|---|
707
+ | CLI tool | direct invocation, exit code, stdin/stdout | [examples/cli.md](examples/cli.md) |
708
+ | Web server / API | background launch + \`curl\` smoke | [examples/server.md](examples/server.md) |
709
+ | TUI / interactive terminal | tmux \`send-keys\` / \`capture-pane\` | [examples/tui.md](examples/tui.md) |
710
+ | Electron / desktop GUI | Playwright \`_electron\` REPL under xvfb | [examples/electron.md](examples/electron.md) |
711
+ | Browser-driven | dev server + \`chromium-cli\` script | [examples/playwright.md](examples/playwright.md) |
712
+ | Library / SDK | import-and-call smoke script at the package boundary | [examples/library.md](examples/library.md) |
713
+
714
+ If nothing fits, start from the closest match and adapt. For a web
715
+ app, [examples/playwright.md](examples/playwright.md) — drive it with
716
+ \`chromium-cli\`, no custom driver needed. For a desktop app,
717
+ [examples/electron.md](examples/electron.md) — it has the \`_electron\`
718
+ REPL driver skeleton and the tmux wrapping.
719
+
720
+ ## Drive it, don't just launch it
721
+
722
+ Launching with no interaction proves the entrypoint resolves. That's
723
+ not running the app — it's typechecking with extra steps. Drive it to
724
+ a point where a user would see something:
725
+
726
+ - CLI → type a representative command, check the exit code and output.
727
+ - Server → hit the route the diff touches with \`curl\`, read the body.
728
+ - TUI → \`send-keys\` a navigation, \`capture-pane\` the result.
729
+ - GUI → click the button, screenshot the window. **Look at the
730
+ screenshot.** A blank frame is a failure to launch.
731
+
732
+ If the fallback pattern didn't work out of the box — you had to
733
+ install packages, set env vars, patch config, or write a driver —
734
+ note that in your report so the work can be captured as a project
735
+ skill for next time. If it just worked, don't.`;function cg(){k({name:"run",description:"Launch this project's app and drive it to confirm a change works in the real app (not just tests).",whenToUse:"When the user wants to run/start/screenshot the app, or confirm a change works end-to-end in the running app.",userInvocable:!0,disableModelInvocation:!1,files:lg,async getPromptForCommand(){return[{type:"text",text:gY}]}})}CI();t();function ZY(G){let I=G.trim(),B=I?`
736
+
737
+ ## Additional Focus
738
+
739
+ ${I}
740
+ `:"";return`# Simplify: Quality Cleanup of Changed Code
741
+
742
+ You are improving the quality of the changed code, not hunting for bugs. Review
743
+ it for reuse, simplification, efficiency, and altitude issues, then fix what you
744
+ find. Do not look for correctness bugs — that is what \`/code-review\` is for.
745
+
746
+ ## Phase 0 — Gather the diff
747
+
748
+ Run \`git diff @{upstream}...HEAD\` (or \`git diff main...HEAD\` / \`git diff HEAD~1\`
749
+ if there's no upstream) to get the unified diff under review. If there are
750
+ uncommitted changes, or the range diff is empty, also run \`git diff HEAD\` and
751
+ include the working-tree changes in scope — the review often runs before the
752
+ commit. If a PR number, branch name, or file path was passed as an argument,
753
+ review that target instead. Treat this diff as the review scope.
754
+
755
+ ## Phase 1 — Review (4 cleanup agents in parallel)
756
+
757
+ Use the ${ZG} tool to launch **4 independent review agents**, all in
758
+ a single message so they run concurrently. Pass each agent the diff and one of
759
+ the four angles below. Each returns its findings with \`file\`, \`line\`, a
760
+ one-line \`summary\`, and the concrete cost (what is duplicated, wasted, or
761
+ harder to maintain).
762
+
763
+ ### Reuse
764
+
765
+ Flag new code that re-implements something the codebase
766
+ already has — Grep shared/utility modules and files adjacent to the change,
767
+ and name the existing helper to call instead.
768
+
769
+ ### Simplification
770
+
771
+ Flag unnecessary complexity the diff adds: redundant or derivable state,
772
+ copy-paste with slight variation, deep nesting, dead code left behind. Name
773
+ the simpler form that does the same job.
774
+
775
+ ### Efficiency
776
+
777
+ Flag wasted work the diff introduces: redundant computation or repeated I/O,
778
+ independent operations run sequentially, blocking work added to startup or
779
+ hot paths. Name the cheaper alternative.
780
+
781
+ ### Altitude
782
+
783
+ Check that each change is implemented at the right depth, not as a fragile
784
+ bandaid. Special cases layered on shared infrastructure are a sign the fix
785
+ isn't deep enough — prefer generalizing the underlying mechanism over adding
786
+ special cases.
787
+
788
+ ## Phase 2 — Apply the fixes
789
+
790
+ Wait for all four agents to complete, dedup findings that point at the same
791
+ line or mechanism, and fix each remaining one directly. Skip any finding whose
792
+ fix would change intended behavior, require changes well outside the reviewed
793
+ diff, or that you judge to be a false positive — note the skip rather than
794
+ arguing with it. Finish with a brief summary of what was fixed and what was
795
+ skipped (or confirm the code was already clean).${B}`}function Jg(){k({name:"simplify",description:"Clean up changed code for reuse, simplification, efficiency, and altitude, then apply the fixes. Quality only — use /code-review for correctness bugs.",whenToUse:"When the user wants the changed/recent code refactored for clarity and reuse (not bug-hunting).",argumentHint:"[focus]",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Grep","Glob","Edit","Bash(git diff:*)","Bash(git status:*)","Bash(git log:*)"],async getPromptForCommand(G){return[{type:"text",text:ZY(G)}]}})}aB();bY();iB();t();function CY(){let G=dg(Kg(),{io:"input"});return lG(G,null,2)}var YY=`## Settings File Locations
796
+
797
+ Choose the appropriate file based on scope:
798
+
799
+ | File | Scope | Git | Use For |
800
+ |------|-------|-----|---------|
801
+ | \`~/.claudin/settings.json\` | Global | N/A | Personal preferences for all projects |
802
+ | \`.claudin/settings.json\` | Project | Commit | Team-wide hooks, permissions, plugins |
803
+ | \`.claudin/settings.local.json\` | Project | Gitignore | Personal overrides for this project |
804
+
805
+ Settings load in order: user → project → local (later overrides earlier).
806
+
807
+ ## Settings Schema Reference
808
+
809
+ ### Permissions
810
+ \`\`\`json
811
+ {
812
+ "permissions": {
813
+ "allow": ["Bash(npm:*)", "Edit(.claudin)", "Read"],
814
+ "deny": ["Bash(rm -rf:*)"],
815
+ "ask": ["Write(/etc/*)"],
816
+ "defaultMode": "default" | "plan" | "acceptEdits" | "dontAsk",
817
+ "additionalDirectories": ["/extra/dir"]
818
+ }
819
+ }
820
+ \`\`\`
821
+
822
+ **Permission Rule Syntax:**
823
+ - Exact match: \`"Bash(npm run test)"\`
824
+ - Prefix wildcard: \`"Bash(git:*)"\` - matches \`git status\`, \`git commit\`, etc.
825
+ - Tool only: \`"Read"\` - allows all Read operations
826
+
827
+ ### Environment Variables
828
+ \`\`\`json
829
+ {
830
+ "env": {
831
+ "DEBUG": "true",
832
+ "MY_API_KEY": "value"
833
+ }
834
+ }
835
+ \`\`\`
836
+
837
+ ### Model & Agent
838
+ \`\`\`json
839
+ {
840
+ "model": "sonnet", // or "opus", "haiku", full model ID
841
+ "agent": "agent-name",
842
+ "alwaysThinkingEnabled": true
843
+ }
844
+ \`\`\`
845
+
846
+ ### Attribution (Commits & PRs)
847
+ \`\`\`json
848
+ {
849
+ "attribution": {
850
+ "commit": "Custom commit trailer text",
851
+ "pr": "Custom PR description text"
852
+ }
853
+ }
854
+ \`\`\`
855
+ Set \`commit\` or \`pr\` to empty string \`""\` to hide that attribution.
856
+
857
+ ### MCP Server Management
858
+ \`\`\`json
859
+ {
860
+ "enableAllProjectMcpServers": true,
861
+ "enabledMcpjsonServers": ["server1", "server2"],
862
+ "disabledMcpjsonServers": ["blocked-server"]
863
+ }
864
+ \`\`\`
865
+
866
+ ### Plugins
867
+ \`\`\`json
868
+ {
869
+ "enabledPlugins": {
870
+ "formatter@anthropic-tools": true
871
+ }
872
+ }
873
+ \`\`\`
874
+ Plugin syntax: \`plugin-name@source\` where source is \`claude-code-marketplace\`, \`claude-plugins-official\`, or \`builtin\`.
875
+
876
+ ### Other Settings
877
+ - \`language\`: Preferred response language (e.g., "japanese")
878
+ - \`cleanupPeriodDays\`: Days to keep transcripts (default: 30; 0 disables persistence entirely)
879
+ - \`respectGitignore\`: Whether to respect .gitignore (default: true)
880
+ - \`spinnerTipsEnabled\`: Show tips in spinner
881
+ - \`spinnerVerbs\`: Customize spinner verbs (\`{ "mode": "append" | "replace", "verbs": [...] }\`)
882
+ - \`spinnerTipsOverride\`: Override spinner tips (\`{ "excludeDefault": true, "tips": ["Custom tip"] }\`)
883
+ - \`syntaxHighlightingDisabled\`: Disable diff highlighting
884
+ `,Rg=`## Hooks Configuration
885
+
886
+ Hooks run commands at specific points in Claudin's lifecycle.
887
+
888
+ ### Hook Structure
889
+ \`\`\`json
890
+ {
891
+ "hooks": {
892
+ "EVENT_NAME": [
893
+ {
894
+ "matcher": "ToolName|OtherTool",
895
+ "hooks": [
896
+ {
897
+ "type": "command",
898
+ "command": "your-command-here",
899
+ "timeout": 60,
900
+ "statusMessage": "Running..."
901
+ }
902
+ ]
903
+ }
904
+ ]
905
+ }
906
+ }
907
+ \`\`\`
908
+
909
+ ### Hook Events
910
+
911
+ | Event | Matcher | Purpose |
912
+ |-------|---------|---------|
913
+ | PermissionRequest | Tool name | Run before permission prompt |
914
+ | PreToolUse | Tool name | Run before tool, can block |
915
+ | PostToolUse | Tool name | Run after successful tool |
916
+ | PostToolUseFailure | Tool name | Run after tool fails |
917
+ | Notification | Notification type | Run on notifications |
918
+ | Stop | - | Run when Claude stops (including clear, resume, compact) |
919
+ | PreCompact | "manual"/"auto" | Before compaction |
920
+ | PostCompact | "manual"/"auto" | After compaction (receives summary) |
921
+ | UserPromptSubmit | - | When user submits |
922
+ | SessionStart | - | When session starts |
923
+
924
+ **Common tool matchers:** \`Bash\`, \`Write\`, \`Edit\`, \`Read\`, \`Glob\`, \`Grep\`
925
+
926
+ ### Hook Types
927
+
928
+ **1. Command Hook** - Runs a shell command:
929
+ \`\`\`json
930
+ { "type": "command", "command": "prettier --write $FILE", "timeout": 30 }
931
+ \`\`\`
932
+
933
+ **2. Prompt Hook** - Evaluates a condition with LLM:
934
+ \`\`\`json
935
+ { "type": "prompt", "prompt": "Is this safe? $ARGUMENTS" }
936
+ \`\`\`
937
+ Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
938
+
939
+ **3. Agent Hook** - Runs an agent with tools:
940
+ \`\`\`json
941
+ { "type": "agent", "prompt": "Verify tests pass: $ARGUMENTS" }
942
+ \`\`\`
943
+ Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
944
+
945
+ ### Hook Input (stdin JSON)
946
+ \`\`\`json
947
+ {
948
+ "session_id": "abc123",
949
+ "tool_name": "Write",
950
+ "tool_input": { "file_path": "/path/to/file.txt", "content": "..." },
951
+ "tool_response": { "success": true } // PostToolUse only
952
+ }
953
+ \`\`\`
954
+
955
+ ### Hook JSON Output
956
+
957
+ Hooks can return JSON to control behavior:
958
+
959
+ \`\`\`json
960
+ {
961
+ "systemMessage": "Warning shown to user in UI",
962
+ "continue": false,
963
+ "stopReason": "Message shown when blocking",
964
+ "suppressOutput": false,
965
+ "decision": "block",
966
+ "reason": "Explanation for decision",
967
+ "hookSpecificOutput": {
968
+ "hookEventName": "PostToolUse",
969
+ "additionalContext": "Context injected back to model"
970
+ }
971
+ }
972
+ \`\`\`
973
+
974
+ **Fields:**
975
+ - \`systemMessage\` - Display a message to the user (all hooks)
976
+ - \`continue\` - Set to \`false\` to block/stop (default: true)
977
+ - \`stopReason\` - Message shown when \`continue\` is false
978
+ - \`suppressOutput\` - Hide stdout from transcript (default: false)
979
+ - \`decision\` - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
980
+ - \`reason\` - Explanation for decision
981
+ - \`hookSpecificOutput\` - Event-specific output (must include \`hookEventName\`):
982
+ - \`additionalContext\` - Text injected into model context
983
+ - \`permissionDecision\` - "allow", "deny", or "ask" (PreToolUse only)
984
+ - \`permissionDecisionReason\` - Reason for the permission decision (PreToolUse only)
985
+ - \`updatedInput\` - Modified tool input (PreToolUse only)
986
+
987
+ ### Common Patterns
988
+
989
+ **Auto-format after writes:**
990
+ \`\`\`json
991
+ {
992
+ "hooks": {
993
+ "PostToolUse": [{
994
+ "matcher": "Write|Edit",
995
+ "hooks": [{
996
+ "type": "command",
997
+ "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
998
+ }]
999
+ }]
1000
+ }
1001
+ }
1002
+ \`\`\`
1003
+
1004
+ **Log all bash commands:**
1005
+ \`\`\`json
1006
+ {
1007
+ "hooks": {
1008
+ "PreToolUse": [{
1009
+ "matcher": "Bash",
1010
+ "hooks": [{
1011
+ "type": "command",
1012
+ "command": "jq -r '.tool_input.command' >> ~/.claudin/bash-log.txt"
1013
+ }]
1014
+ }]
1015
+ }
1016
+ }
1017
+ \`\`\`
1018
+
1019
+ **Stop hook that displays message to user:**
1020
+
1021
+ Command must output JSON with \`systemMessage\` field:
1022
+ \`\`\`bash
1023
+ # Example command that outputs: {"systemMessage": "Session complete!"}
1024
+ echo '{"systemMessage": "Session complete!"}'
1025
+ \`\`\`
1026
+
1027
+ **Run tests after code changes:**
1028
+ \`\`\`json
1029
+ {
1030
+ "hooks": {
1031
+ "PostToolUse": [{
1032
+ "matcher": "Write|Edit",
1033
+ "hooks": [{
1034
+ "type": "command",
1035
+ "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\\\.(ts|js)$' && npm test || true"
1036
+ }]
1037
+ }]
1038
+ }
1039
+ }
1040
+ \`\`\`
1041
+ `,hg=`## Constructing a Hook (with verification)
1042
+
1043
+ Given an event, matcher, target file, and desired behavior, follow this flow. Each step catches a different failure class — a hook that silently does nothing is worse than no hook.
1044
+
1045
+ 1. **Dedup check.** Read the target file. If a hook already exists on the same event+matcher, show the existing command and ask: keep it, replace it, or add alongside.
1046
+
1047
+ 2. **Construct the command for THIS project — don't assume.** The hook receives JSON on stdin. Build a command that:
1048
+ - Extracts any needed payload safely — use \`jq -r\` into a quoted variable or \`{ read -r f; ... "$f"; }\`, NOT unquoted \`| xargs\` (splits on spaces)
1049
+ - Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
1050
+ - Skips inputs the tool doesn't handle (formatters often have \`--ignore-unknown\`; if not, guard by extension)
1051
+ - Stays RAW for now — no \`|| true\`, no stderr suppression. You'll wrap it after the pipe-test passes.
1052
+
1053
+ 3. **Pipe-test the raw command.** Synthesize the stdin payload the hook will receive and pipe it directly:
1054
+ - \`Pre|PostToolUse\` on \`Write|Edit\`: \`echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>\`
1055
+ - \`Pre|PostToolUse\` on \`Bash\`: \`echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>\`
1056
+ - \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\`: most commands don't read stdin, so \`echo '{}' | <cmd>\` suffices
1057
+
1058
+ Check exit code AND side effect (file actually formatted, test actually ran). If it fails you get a real error — fix (wrong package manager? tool not installed? jq path wrong?) and retest. Once it works, wrap with \`2>/dev/null || true\` (unless the user wants a blocking check).
1059
+
1060
+ 4. **Write the JSON.** Merge into the target file (schema shape in the "Hook Structure" section above). If this creates \`.claudin/settings.local.json\` for the first time, add it to .gitignore — the Write tool doesn't auto-gitignore it.
1061
+
1062
+ 5. **Validate syntax + schema in one shot:**
1063
+
1064
+ \`jq -e '.hooks.<event>[] | select(.matcher == "<matcher>") | .hooks[] | select(.type == "command") | .command' <target-file>\`
1065
+
1066
+ Exit 0 + prints your command = correct. Exit 4 = matcher doesn't match. Exit 5 = malformed JSON or wrong nesting. A broken settings.json silently disables ALL settings from that file — fix any pre-existing malformation too.
1067
+
1068
+ 6. **Prove the hook fires** — only for \`Pre|PostToolUse\` on a matcher you can trigger in-turn (\`Write|Edit\` via Edit, \`Bash\` via Bash). \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\` fire outside this turn — skip to step 7.
1069
+
1070
+ For a **formatter** on \`PostToolUse\`/\`Write|Edit\`: introduce a detectable violation via Edit (two consecutive blank lines, bad indentation, missing semicolon — something this formatter corrects; NOT trailing whitespace, Edit strips that before writing), re-read, confirm the hook **fixed** it. For **anything else**: temporarily prefix the command in settings.json with \`echo "$(date) hook fired" >> /tmp/claude-hook-check.txt; \`, trigger the matching tool (Edit for \`Write|Edit\`, a harmless \`true\` for \`Bash\`), read the sentinel file.
1071
+
1072
+ **Always clean up** — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
1073
+
1074
+ **If proof fails but pipe-test passed and \`jq -e\` passed**: the settings watcher isn't watching \`.claudin/\` — it only watches directories that had a settings file when this session started. The hook is written correctly. Tell the user to open \`/hooks\` once (reloads config) or restart — you can't do this yourself; \`/hooks\` is a user UI menu and opening it ends this turn.
1075
+
1076
+ 7. **Handoff.** Tell the user the hook is live (or needs \`/hooks\`/restart per the watcher caveat). Point them at \`/hooks\` to review, edit, or disable it later. The UI only shows "Ran N hooks" if a hook errors or is slow — silent success is invisible by design.
1077
+ `,WY=`# Update Config Skill
1078
+
1079
+ Modify Claudin configuration by updating settings.json files.
1080
+
1081
+ ## When Hooks Are Required (Not Memory)
1082
+
1083
+ If the user wants something to happen automatically in response to an EVENT, they need a **hook** configured in settings.json. Memory/preferences cannot trigger automated actions.
1084
+
1085
+ **These require hooks:**
1086
+ - "Before compacting, ask me what to preserve" → PreCompact hook
1087
+ - "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
1088
+ - "When I run bash commands, log them" → PreToolUse hook with Bash matcher
1089
+ - "Always run tests after code changes" → PostToolUse hook
1090
+
1091
+ **Hook events:** PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart
1092
+
1093
+ ## CRITICAL: Read Before Write
1094
+
1095
+ **Always read the existing settings file before making changes.** Merge new settings with existing ones - never replace the entire file.
1096
+
1097
+ ## CRITICAL: Use AskUserQuestion for Ambiguity
1098
+
1099
+ When the user's request is ambiguous, use AskUserQuestion to clarify:
1100
+ - Which settings file to modify (user/project/local)
1101
+ - Whether to add to existing arrays or replace them
1102
+ - Specific values when multiple options exist
1103
+
1104
+ ## Decision: Config Tool vs Direct Edit
1105
+
1106
+ **Use the Config tool** for these simple settings:
1107
+ - \`theme\`, \`editorMode\`, \`verbose\`, \`model\`
1108
+ - \`language\`, \`alwaysThinkingEnabled\`
1109
+ - \`permissions.defaultMode\`
1110
+
1111
+ **Edit settings.json directly** for:
1112
+ - Hooks (PreToolUse, PostToolUse, etc.)
1113
+ - Complex permission rules (allow/deny arrays)
1114
+ - Environment variables
1115
+ - MCP server configuration
1116
+ - Plugin configuration
1117
+
1118
+ ## Workflow
1119
+
1120
+ 1. **Clarify intent** - Ask if the request is ambiguous
1121
+ 2. **Read existing file** - Use Read tool on the target settings file
1122
+ 3. **Merge carefully** - Preserve existing settings, especially arrays
1123
+ 4. **Edit file** - Use Edit tool (if file doesn't exist, ask user to create it first)
1124
+ 5. **Confirm** - Tell user what was changed
1125
+
1126
+ ## Merging Arrays (Important!)
1127
+
1128
+ When adding to permission arrays or hook arrays, **merge with existing**, don't replace:
1129
+
1130
+ **WRONG** (replaces existing permissions):
1131
+ \`\`\`json
1132
+ { "permissions": { "allow": ["Bash(npm:*)"] } }
1133
+ \`\`\`
1134
+
1135
+ **RIGHT** (preserves existing + adds new):
1136
+ \`\`\`json
1137
+ {
1138
+ "permissions": {
1139
+ "allow": [
1140
+ "Bash(git:*)", // existing
1141
+ "Edit(.claudin)", // existing
1142
+ "Bash(npm:*)" // new
1143
+ ]
1144
+ }
1145
+ }
1146
+ \`\`\`
1147
+
1148
+ ${YY}
1149
+
1150
+ ${Rg}
1151
+
1152
+ ${hg}
1153
+
1154
+ ## Example Workflows
1155
+
1156
+ ### Adding a Hook
1157
+
1158
+ User: "Format my code after Claude writes it"
1159
+
1160
+ 1. **Clarify**: Which formatter? (prettier, gofmt, etc.)
1161
+ 2. **Read**: \`.claudin/settings.json\` (or create if missing)
1162
+ 3. **Merge**: Add to existing hooks, don't replace
1163
+ 4. **Result**:
1164
+ \`\`\`json
1165
+ {
1166
+ "hooks": {
1167
+ "PostToolUse": [{
1168
+ "matcher": "Write|Edit",
1169
+ "hooks": [{
1170
+ "type": "command",
1171
+ "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
1172
+ }]
1173
+ }]
1174
+ }
1175
+ }
1176
+ \`\`\`
1177
+
1178
+ ### Adding Permissions
1179
+
1180
+ User: "Allow npm commands without prompting"
1181
+
1182
+ 1. **Read**: Existing permissions
1183
+ 2. **Merge**: Add \`Bash(npm:*)\` to allow array
1184
+ 3. **Result**: Combined with existing allows
1185
+
1186
+ ### Environment Variables
1187
+
1188
+ User: "Set DEBUG=true"
1189
+
1190
+ 1. **Decide**: User settings (global) or project settings?
1191
+ 2. **Read**: Target file
1192
+ 3. **Merge**: Add to env object
1193
+ \`\`\`json
1194
+ { "env": { "DEBUG": "true" } }
1195
+ \`\`\`
1196
+
1197
+ ## Common Mistakes to Avoid
1198
+
1199
+ 1. **Replacing instead of merging** - Always preserve existing settings
1200
+ 2. **Wrong file** - Ask user if scope is unclear
1201
+ 3. **Invalid JSON** - Validate syntax after changes
1202
+ 4. **Forgetting to read first** - Always read before write
1203
+
1204
+ ## Troubleshooting Hooks
1205
+
1206
+ If a hook isn't running:
1207
+ 1. **Check the settings file** - Read ~/.claudin/settings.json or .claudin/settings.json
1208
+ 2. **Verify JSON syntax** - Invalid JSON silently fails
1209
+ 3. **Check the matcher** - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
1210
+ 4. **Check hook type** - Is it "command", "prompt", or "agent"?
1211
+ 5. **Test the command** - Run the hook command manually to see if it works
1212
+ 6. **Use --debug** - Run \`claude --debug\` to see hook execution logs
1213
+ `;function Fg(){k({name:"update-config",description:'Use this skill to configure the Claudin harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, use Config tool.',allowedTools:["Read"],userInvocable:!0,async getPromptForCommand(G){if(G.startsWith("[hooks-only]")){let g=G.slice(12).trim(),Z=Rg+`
1214
+
1215
+ `+hg;if(g)Z+=`
1216
+
1217
+ ## Task
1218
+
1219
+ ${g}`;return[{type:"text",text:Z}]}let I=CY(),B=WY;if(B+=`
1220
+
1221
+ ## Full Settings JSON Schema
1222
+
1223
+ \`\`\`json
1224
+ ${I}
1225
+ \`\`\``,G)B+=`
1226
+
1227
+ ## User Request
1228
+
1229
+ ${G}`;return[{type:"text",text:B}]}})}t();var XY=`**Verification is runtime observation.** You build the app, run it,
1230
+ drive it to where the changed code executes, and capture what you
1231
+ see. That capture is your evidence. Nothing else is.
1232
+
1233
+ **Don't run tests. Don't typecheck.** Running them here proves you
1234
+ can run CI — not that the change works. Not as a warm-up,
1235
+ not "just to be sure," not as a regression sweep after. The time
1236
+ goes to running the app instead.
1237
+
1238
+ **Don't import-and-call.** \`import { foo } from './src/...'\` then
1239
+ \`console.log(foo(x))\` is a unit test you wrote. The function did what
1240
+ the function does — you knew that from reading it. The app never ran.
1241
+ Whatever calls \`foo\` in the real codebase ends at a CLI, a socket, or
1242
+ a window. Go there.
1243
+
1244
+ ## Find the change
1245
+
1246
+ The scope is what you're verifying — usually a diff, sometimes just
1247
+ "does X work." In a git repo, establish the full range (a branch may
1248
+ be many commits, or the change may still be uncommitted):
1249
+
1250
+ \`\`\`bash
1251
+ git log --oneline @{u}.. # count commits (if upstream set)
1252
+ git diff @{u}.. --stat # full range, not HEAD~1
1253
+ git diff origin/HEAD... --stat # no upstream: committed vs base
1254
+ git diff HEAD --stat # uncommitted: working tree vs HEAD
1255
+ gh pr diff # if in a PR context
1256
+ \`\`\`
1257
+
1258
+ State the commit count. Large diff truncating? Redirect to a file
1259
+ then Read it. Repo but no diff from any of these → say so, stop.
1260
+ **No repo → the scope is whatever the user named; ask if they
1261
+ didn't.**
1262
+
1263
+ **The diff is ground truth. Any description is a claim about it.**
1264
+ Read both. If they disagree, that's a finding.
1265
+
1266
+ ## Surface
1267
+
1268
+ The surface is where a user — human or programmatic — meets the
1269
+ change. That's where you observe.
1270
+
1271
+ | Change reaches | Surface | You |
1272
+ |---|---|---|
1273
+ | CLI / TUI | terminal | type the command, capture the pane — [example](examples/cli.md) |
1274
+ | Server / API | socket | send the request, capture the response — [example](examples/server.md) |
1275
+ | GUI | pixels | drive it under xvfb/Playwright, screenshot |
1276
+ | Library | package boundary | sample code through the public export — \`import pkg\`, not \`import ./src/...\` |
1277
+ | Prompt / agent config | the agent | run the agent, capture its behavior |
1278
+ | CI workflow | Actions | dispatch it, read the run |
1279
+
1280
+ **Internal function? Not a surface.** Something in the repo calls it
1281
+ and that caller ends at one of the rows above. Follow it there. A
1282
+ bash security gate's surface isn't the function's return value — it's
1283
+ the CLI prompting or auto-allowing when you type the command.
1284
+
1285
+ **No runtime surface at all** — docs-only, type declarations with no
1286
+ emit, build config that produces no behavioral diff — report
1287
+ **SKIP — no runtime surface: (reason).** Don't run tests to fill
1288
+ the space.
1289
+
1290
+ **Tests in the diff are the author's evidence, not a surface.** CI
1291
+ runs them. You'd be re-running CI. Tests-only PR → SKIP, one line.
1292
+ Mixed src+tests → verify the src, ignore the test files. Reading a
1293
+ test to learn what to check is fine — it's a spec. But then go run
1294
+ the app. Checking that assertions match source is code review.
1295
+
1296
+ ## Get a handle
1297
+
1298
+ **Check \`.claudin/skills/\` first — even if you already know how to
1299
+ build and run.** A matching \`verifier-*\` skill is the repo's
1300
+ evidence-capture protocol: it wraps the session so a reviewer can
1301
+ replay what you saw (recording, screenshots). Drive the surface
1302
+ without it and you get a verdict with no replay.
1303
+
1304
+ \`\`\`bash
1305
+ ls .claudin/skills/
1306
+ \`\`\`
1307
+
1308
+ - **\`verifier-*\` matching your surface** (CLI verifier for a CLI
1309
+ change, etc.) → invoke it with the Skill tool and follow its
1310
+ setup. Mismatched surface → skip that one, try the next. Stale
1311
+ verifier (fails on mechanics unrelated to the change) → ask the
1312
+ user whether to patch it; don't FAIL the change for verifier rot.
1313
+ - **\`run-*\` but no matching verifier** → use its build/launch
1314
+ primitives as your handle.
1315
+ - **Neither** → cold start from README/package.json/Makefile. Timebox
1316
+ ~15min. Stuck → BLOCKED with exactly where it stopped. Got through →
1317
+ note the working build/launch recipe so it can become a
1318
+ \`verifier-*\` skill.
1319
+
1320
+ ## Drive it
1321
+
1322
+ Smallest path that makes the changed code execute:
1323
+
1324
+ - Changed a flag? Run with it.
1325
+ - Changed a handler? Hit that route.
1326
+ - Changed error handling? Trigger the error.
1327
+ - Changed an internal function? Find the CLI command / request / render
1328
+ that reaches it. Run that.
1329
+
1330
+ **Read your plan back before running.** If every step is build /
1331
+ typecheck / run test file — you've planned a CI rerun, not a
1332
+ verification. Find a step that reaches the surface or report BLOCKED.
1333
+
1334
+ **The verdict is table stakes. Your observations are the signal.**
1335
+ A PASS with three sharp "hey, I noticed…" lines is worth more than a
1336
+ bare PASS. You're the only reviewer who actually *ran* the thing —
1337
+ anything that made you pause, work around, or go "huh" is information
1338
+ the author doesn't have. Don't filter for "is this a bug." Filter for
1339
+ "would I mention this if they were sitting next to me."
1340
+
1341
+ **End-to-end, through the real interface.** Pieces passing in
1342
+ isolation doesn't mean the flow works — seams are where bugs hide.
1343
+ If users click buttons, test by clicking buttons, not by curling the
1344
+ API underneath.
1345
+
1346
+ **Destructive path?** If the change touches code that deletes,
1347
+ publishes, sends, or writes outside the workspace and there's no
1348
+ dry-run or safe target, don't drive it live. Verify what you can
1349
+ around it and say which path you didn't exercise and why.
1350
+
1351
+ ## Push on it
1352
+
1353
+ The claim checked out — that's the first half. Confirming is step
1354
+ one, not the job. The description is what the author intended;
1355
+ your value is what they didn't.
1356
+
1357
+ You know exactly what changed. Probe *around* it, at the same
1358
+ surface you just drove:
1359
+
1360
+ - **New flag / option** → empty value, passed twice, combined with a
1361
+ conflicting flag, typo'd (does the error name it?)
1362
+ - **New handler / route** → wrong method, malformed body, missing
1363
+ required field, oversized payload
1364
+ - **Changed error path** → the adjacent errors it didn't touch —
1365
+ did the refactor catch them too, or only the one in the diff?
1366
+ - **Interactive / TUI** → Ctrl-C mid-op, resize the pane, paste
1367
+ garbage, rapid-fire the key, Esc at the wrong moment
1368
+ - **State / persistence** → do it twice, do it with stale state
1369
+ underneath, do it in two sessions at once
1370
+ - **Wander** → what's adjacent? What looked off while you were
1371
+ confirming? Go back to it.
1372
+
1373
+ These aren't a checklist — pick the ones the change points at. Stop
1374
+ when you've covered the obvious adjacents or hit something worth a
1375
+ ⚠️. A probe that finds nothing is still a step: "\uD83D\uDD0D passed \`--from ''\`
1376
+ → clean \`error: --from requires a value\`, exit 2." That the author
1377
+ didn't test it is exactly why it's worth knowing it holds.
1378
+
1379
+ Still not a test run. You're at the surface, typing what a user
1380
+ would type wrong.
1381
+
1382
+ ## Capture
1383
+
1384
+ Stdout, response bodies, screenshots, pane dumps. Captured output is
1385
+ evidence; your memory isn't. Something unexpected? Don't route around
1386
+ it — capture, note, decide if it's the change or the environment.
1387
+ Unrelated breakage is a finding, not noise.
1388
+
1389
+ Shared process state (tmux, ports, lockfiles) — isolate. \`tmux -L
1390
+ name\`, bind \`:0\`, \`mktemp -d\`. You share a namespace with your host.
1391
+
1392
+ ## Report
1393
+
1394
+ Inline, final message:
1395
+
1396
+ \`\`\`
1397
+ ## Verification: <one-line what changed>
1398
+
1399
+ **Verdict:** PASS | FAIL | BLOCKED | SKIP
1400
+
1401
+ **Claim:** <what it's supposed to do — your read of the diff and/or
1402
+ the stated claim; note any mismatch>
1403
+
1404
+ **Method:** <how you got a handle — which verifier/run skill, or
1405
+ cold start; what you launched>
1406
+
1407
+ ### Steps
1408
+
1409
+ Each step is one thing you did to the **running app** and what it
1410
+ showed. Build/install/checkout are setup, not steps. Test runs and
1411
+ typecheck don't belong here — they're CI's output.
1412
+
1413
+ 1. ✅/❌/⚠️/\uD83D\uDD0D <what you did to the running app> → <what you observed>
1414
+ <evidence: the app's own output — pane capture, response body,
1415
+ screenshot path>
1416
+
1417
+ \uD83D\uDD0D marks a probe — a step off the claim's happy path, trying to
1418
+ break it. At least one. A Steps list that's all ✅ and no \uD83D\uDD0D is a
1419
+ happy-path replay: still PASS, but you stopped at the first half.
1420
+
1421
+ **Screenshot / sample:** <the one frame a reviewer looks at to see
1422
+ the feature — image path for GUI/TUI, code block for library/API;
1423
+ omit for build/types-only>
1424
+
1425
+ ### Findings
1426
+ <Things you noticed. Not just bugs — friction, surprises, anything
1427
+ a first-time user would trip on. "Took three tries to find the right
1428
+ flag." "Error message on typo was unhelpful." "Default seems odd for
1429
+ the common case." "Works, but slower than I expected." Lower the bar:
1430
+ if it made you pause, it goes here. But the pause has to be yours,
1431
+ from running the app — not from reading the PR page. A red CI check,
1432
+ a review comment, someone else's bot: visible to anyone already, and
1433
+ you relaying it isn't an observation. Claim/diff mismatch, pre-existing
1434
+ breakage, and env notes also belong.
1435
+
1436
+ Each probe gets a line here even when it held — "\uD83D\uDD0D empty \`--from\`
1437
+ → clean error" tells the author what *was* covered, which they
1438
+ can't see from a bare PASS.
1439
+
1440
+ Lead with ⚠️ for lines worth interrupting the reviewer for; plain
1441
+ bullets are context. Empty is fine if nothing stuck out — but nothing
1442
+ sticking out is itself rare.>
1443
+ \`\`\`
1444
+
1445
+ **Verdicts:**
1446
+ - **PASS** — you ran the app, the change did what it should at its
1447
+ surface. Not: tests pass, builds clean, code looks right.
1448
+ - **FAIL** — you ran it and it doesn't. Or it breaks something else.
1449
+ Or claim and diff disagree materially.
1450
+ - **BLOCKED** — couldn't reach a state where the change is observable.
1451
+ Build broke, env missing a dep, handle wouldn't come up. Not a
1452
+ verdict on the change. Say exactly where it stopped.
1453
+ - **SKIP** — no runtime surface exists. Docs-only, types-only,
1454
+ tests-only. Nothing went wrong; there's just nothing here to run.
1455
+ One line why.
1456
+
1457
+ No partial pass. "3 of 4 passed" is FAIL until 4 passes or is
1458
+ explained away.
1459
+
1460
+ **When in doubt, FAIL.** False PASS ships broken code; false FAIL
1461
+ costs one more human look. Ambiguous output is FAIL with the raw
1462
+ capture attached — don't interpret.`;function zg(){k({name:"verify",description:"Verify a change works by building the app, running it, driving it to the changed code, and capturing what you observe.",whenToUse:"When the user wants to confirm a fix/feature actually works at runtime (not just that tests pass).",userInvocable:!0,disableModelInvocation:!1,files:yg,async getPromptForCommand(){return[{type:"text",text:XY}]}})}function Qg(){Fg(),eB(),TB(),kB(),zB(),Jg(),zg(),cg(),pB(),uB(),Hg(),Yg()}async function JY(G){let{options:I,ctx:B,permissionMode:g,allowDangerouslySkipPermissions:Z,sessionId:C}=G;q("[STARTUP] Running setup()...");let b=Date.now(),{setup:Y}=await import("./setup-1.1.30-p2wwqw6v.mjs"),W=void 0,H=FI();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")cB(),Qg();let h=Y(H,g,Z,B.worktreeEnabled,B.worktreeName,B.tmuxEnabled,C?KG(C):void 0,B.worktreePRNumber,W),d=B.worktreeEnabled?null:QI(H),c=B.worktreeEnabled?null:zI(H);return d?.catch(()=>{}),c?.catch(()=>{}),await h,q(`[STARTUP] setup() completed in ${Date.now()-b}ms`),{preSetupCwd:H,commandsPromise:d,agentDefsPromise:c}}async function dY(G){let{options:I,ctx:B,outputFormat:g,fallbackModel:Z,preSetupCwd:C,commandsPromise:b,agentDefsPromise:Y}=G,W=!!I.replayUserMessages;if(dG())Lg(),Og(),Tg(),vg();let H=I.name?.trim();if(H)Pg(H);let h=I.model==="default"?TG():I.model,d=Z==="default"?TG():Z,c=B.worktreeEnabled?FI():C;q("[STARTUP] Loading commands and agents...");let K=Date.now(),[y,F]=await Promise.all([b??QI(c),Y??zI(c)]);return q(`[STARTUP] Commands and agents loaded in ${Date.now()-K}ms`),{effectiveReplayUserMessages:W,sessionNameArg:H,userSpecifiedModel:h,userSpecifiedFallbackModel:d,currentCwd:c,commands:y,agentDefinitionsResult:F}}async function KY(G,I){let{options:B,ctx:g,isNonInteractiveSession:Z,agentCli:C,agentsJson:b,userSpecifiedModel:Y,agentDefinitionsResult:W}=G,{systemPrompt:H,appendSystemPrompt:h,inputPrompt:d}=G,{coordinatorModeModule:c,assistantModule:K}=I,y=[];if(b)try{let J=MG(b);if(J)y=Sg(J,"flagSettings")}catch(J){e(J)}let F=[...W.allAgents,...y],w={...W,allAgents:F,activeAgents:kg(F)},R=C??hG().agent,V;if(R){if(V=w.activeAgents.find((J)=>J.agentType===R),!V)q(`Warning: agent "${R}" not found. Available agents: ${w.activeAgents.map((J)=>J.agentType).join(", ")}. Using default behavior.`)}if(Ag(V?.agentType),V)L("",{agentType:RI(V)?V.agentType:"custom",...C&&{source:"cli"}});if(V?.agentType)Dg(V.agentType);if(Z&&V&&!H&&!RI(V)){let J=V.getSystemPrompt();if(J)H=J}if(V?.initialPrompt){if(typeof d==="string")d=d?`${V.initialPrompt}
1463
+
1464
+ ${d}`:V.initialPrompt;else if(!d)d=V.initialPrompt}let N=Y;if(!N&&V?.model&&V.model!=="inherit")N=OG(V.model);Ng(N),jg(Ug()||null);let $=wg(),M=OG($??TG()),m;if(EG()){let J=hI()?B.advisor:void 0;if(J){if(q(`[AdvisorTool] --advisor ${J}`),!xg(M))process.stderr.write(Q.red(`Error: The model "${M}" does not support the advisor tool.
1465
+ `)),process.exit(1);let j=mg(OG(J));if(!ug(j))process.stderr.write(Q.red(`Error: The model "${J}" cannot be used as an advisor.
1466
+ `)),process.exit(1)}if(m=hI()?J??qg():J,m)q(`[AdvisorTool] Advisor model: ${m}`)}if(BG()&&g.storedTeammateOpts?.agentId&&g.storedTeammateOpts?.agentName&&g.storedTeammateOpts?.teamName&&g.storedTeammateOpts?.agentType){let J=w.activeAgents.find((j)=>j.agentType===g.storedTeammateOpts?.agentType);if(J){let j;if(J.source==="built-in")q(`[teammate] Built-in agent ${g.storedTeammateOpts.agentType} - skipping custom prompt (not supported)`);else j=J.getSystemPrompt();if(J.memory)L("",{scope:J.memory,source:"teammate"});if(j){let l=`
1467
+ # Custom Agent Instructions
1468
+ ${j}`;h=h?`${h}
1469
+
1470
+ ${l}`:l}}else q(`[teammate] Custom agent ${g.storedTeammateOpts.agentType} not found in available agents`)}return FG(B),{agentDefinitions:w,mainThreadAgentDefinition:V,cliAgents:y,agentSetting:R,effectiveModel:N,initialMainLoopModel:$,resolvedInitialModel:M,advisorModel:m,systemPrompt:H,appendSystemPrompt:h,inputPrompt:d}}wG();HG();NI();tg();QY();Mg();sg();RG();wY();var gZ=hY(zY(),1);RY();Eg();async function pg(G,I){let{InvalidSettingsDialog:B}=await import("./InvalidSettingsDialog-1.1.30-fzajgngq.mjs");return _G(G,(g)=>cG(B,{settingsErrors:I.settingsErrors,onContinue:g,onExit:I.onExit}))}async function ag(G){let{TeleportResumeWrapper:I}=await import("./TeleportResumeWrapper-1.1.30-r2hwd3a6.mjs");return _G(G,(B)=>cG(I,{onComplete:B,onCancel:()=>B(null),source:"cliArg"}))}async function fg(G,I){let{TeleportRepoMismatchDialog:B}=await import("./TeleportRepoMismatchDialog-1.1.30-2hg56v1b.mjs");return _G(G,(g)=>cG(B,{targetRepo:I.targetRepo,initialPaths:I.initialPaths,onSelectPath:g,onCancel:()=>g(null)}))}async function ig(G,I,B,g){let[Z,{ResumeConversation:C},{App:b}]=await Promise.all([B,import("./ResumeConversation-1.1.30-8bmshptz.mjs"),import("./App-1.1.30-ywb53g2c.mjs")]);await GG(G,cG(b,{getFpsMetrics:I.getFpsMetrics,stats:I.stats,initialState:I.initialState,children:cG(_g,{children:cG(C,{...g,worktreePaths:Z})})}))}FY();async function NY(G){let{permissionMode:I,allowDangerouslySkipPermissions:B,commands:g,devChannels:Z,remoteControlOption:C,mainThreadAgentDefinition:b}=G,Y=G.prompt,W=G.inputPrompt;WG("trust_onboarding_start");let H=BZ(!1),h=H.getFpsMetrics,d=H.stats;WG("trust_render_ctx_ready");let{createRoot:c}=await import("./ink-1.1.30-av1t4b54.mjs");WG("trust_ink_imported");let K=await c(H.renderOptions);WG("trust_ink_root_created"),L("",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let y=await IZ(K,I,B,g,Z);WG("trust_setup_screens_done");let F=!1;if(C!==void 0){let{getBridgeDisabledReason:R}=await import("./bridgeEnabled-1.1.30-n5c6p8kd.mjs"),V=await R();if(F=V===null,V)process.stderr.write(Q.yellow(`${V}
1471
+ --rc flag ignored.
1472
+ `))}if(y&&typeof Y==="string"&&Y.trim().toLowerCase()==="/login")Y="";if(y)eg(),rg(),GZ(),og(),import("./trustedDevice-1.1.30-ecq2hfrc.mjs").then((R)=>{return R.clearTrustedDeviceToken(),R.enrollTrustedDevice()});try{let{getActiveProviderProfile:R,getProviderProfiles:V}=await import("./providerProfiles-1.1.30-qe0y7b6e.mjs");if(!(V().length>0||Boolean(R()))&&!y){let{showSetupDialog:$}=await import("./interactiveHelpers-1.1.30-rd0zzjyp.mjs"),{ProviderManager:M}=await import("./ProviderManager-1.1.30-8jrhxd1r.mjs");await $(K,(m)=>gZ.default.createElement(M,{mode:"first-run",onDone:()=>m()}))}}catch(R){q(`[provider-wizard] auto-wizard failed: ${R instanceof Error?R.message:String(R)}`)}try{let{tryGetActiveProvider:R}=await import("./activeProvider-1.1.30-ydaqb760.mjs");if(R()&&process.stdout.isTTY&&process.env.CLAUDIN_CLEAR_ON_START==="1"){let{clearTerminal:V}=await import("./clearTerminal-1.1.30-nrdembs6.mjs");process.stdout.write(V)}}catch(R){q(`[startup-clear] failed: ${R instanceof Error?R.message:String(R)}`)}WG("trust_before_org_validation");let w=await ng();if(WG("trust_after_org_validation"),!w.valid)await a(K,w.message);return{root:K,getFpsMetrics:h,stats:d,remoteControl:F,prompt:Y,inputPrompt:W}}TY();HG();sg();EI();RG();SG();NI();MY();fY();aY();xY();qY();_Y();_I();$g();eG();jG();pY();bZ();o();EY();jY();PY();AY();LB();mY();zG();vY();mG();$Y();UY();uY();LY();XI();BB();DY();SY();OY();kY();async function iY(G){let{ctx:I,root:B,isNonInteractiveSession:g,dynamicMcpConfig:Z,mcpConfigPromise:C}=G;if(process.exitCode!==void 0)return q("Graceful shutdown initiated, skipping further initialization"),{exited:!0};if(FZ())QZ();if(!g){let{errors:K}=WZ(),y=K.filter((w)=>!w.mcpErrorMetadata),F=JG()?.transport;if(y.length>0&&F!=="openai_compat"&&F!=="codex_responses"&&F!=="github_copilot")await pg(B,{settingsErrors:y,onExit:()=>xZ(1)})}let b=UG("tengu_cicada_nap_ms",0),Y=gG().startupPrefetchedAt??0,W=NG()||b>0&&Date.now()-Y<b;if(zZ(),cZ(),HZ(),!W){let K=Y>0?` last ran ${Math.round((Date.now()-Y)/1000)}s ago`:"";if(q(`Starting background startup prefetches${K}`),hZ().catch((y)=>e(y)),MZ(),SZ(),!UG("tengu_miraculo_the_bard",!1))lZ();else vI();if(b>0)LI((y)=>({...y,startupPrefetchedAt:Date.now()}))}else q(`Skipping startup prefetches, last ran ${Math.round((Date.now()-Y)/1000)}s ago`),vI();if(!g){let{refreshExampleCommands:K}=await import("./exampleCommands-1.1.30-jx9hvt2q.mjs");K()}let{servers:H}=await C,h={...H,...Z},d={},c={};for(let[K,y]of Object.entries(h)){let F=y;if(F.type==="sdk")d[K]=F;else c[K]=F}return{exited:!1,allMcpConfigs:h,sdkMcpConfigs:d,regularMcpConfigs:c}}function oY(G,I){let{options:B,ctx:g,isNonInteractiveSession:Z,regularMcpConfigs:C,claudeaiConfigPromise:b,mainThreadAgentDefinition:Y,resolvedInitialModel:W,initOnly:H,init:h,maintenance:d,prompt:c,inputPrompt:K,verbose:y,debug:F,debugToStderr:w,print:R,outputFormat:V,inputFormat:N,allowedTools:$,disallowedTools:M,allMcpConfigs:m,dangerouslySkipPermissions:J,permissionMode:j,allowDangerouslySkipPermissions:l,systemPrompt:z,appendSystemPrompt:T,toolPermissionContext:x,sessionNameArg:A}=G,{assistantModule:u,coordinatorModeModule:S}=I,v=Z?Promise.resolve({clients:[],tools:[],commands:[]}):mI(C),U=Z?Promise.resolve({clients:[],tools:[],commands:[]}):b.then((_)=>Object.keys(_).length>0?mI(_):{clients:[],tools:[],commands:[]}),D=Promise.all([v,U]).then(([_,VG])=>({clients:[..._.clients,...VG.clients],tools:UI([..._.tools,...VG.tools],"name"),commands:UI([..._.commands,...VG.commands],"name")})),E=H||h||d||Z||B.continue||B.resume?null:wZ("startup",{agentType:Y?.agentType,model:W}),s=[];D.catch(()=>{});let p=[],P=[],IG=[],X=dZ(),i=X!==!1?{type:"adaptive"}:{type:"disabled"};if(B.thinking==="adaptive"||B.thinking==="enabled")X=!0,i={type:"adaptive"};else if(B.thinking==="disabled")X=!1,i={type:"disabled"};else{let _=process.env.MAX_THINKING_TOKENS?parseInt(process.env.MAX_THINKING_TOKENS,10):B.maxThinkingTokens;if(_!==void 0){if(_>0)X=!0,i={type:"enabled",budgetTokens:_};else if(_===0)X=!1,i={type:"disabled"}}}return jI("info","started",{version:"99.0.0",is_native_binary:CZ()}),ZZ(async()=>{jI("info","exited")}),DZ({hasInitialPrompt:Boolean(c),hasStdin:Boolean(K),verbose:y,debug:F,debugToStderr:w,print:R??!1,outputFormat:V??"text",inputFormat:N??"text",numAllowedTools:$.length,numDisallowedTools:M.length,mcpClientCount:Object.keys(m).length,worktreeEnabled:g.worktreeEnabled,skipWebFetchPreflight:hG().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:J??!1,permissionMode:j,modeIsBypass:j==="bypassPermissions",allowDangerouslySkipPermissionsPassed:l,systemPromptFlag:z?B.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:T?B.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:i,assistantActivationPath:void 0,isCoordinator:S?.isCoordinatorMode()===!0}),kZ(C,x),uZ(),UZ().then((_)=>{if(!_)return;if(A)mZ(A);LZ().then((VG)=>{if(VG>=2)L("",{num_sessions:VG})})}),{mcpPromise:D,hooksPromise:E,hookMessages:s,mcpClients:p,mcpTools:P,mcpCommands:IG,thinkingEnabled:X,thinkingConfig:i}}function nY(G,I){let{options:B,ctx:g,agentSetting:Z,resolvedInitialModel:C,permissionModeNotification:b,overlyBroadBashPermissions:Y,toolPermissionContext:W,initialMainLoopModel:H,agentDefinitions:h,mainThreadAgentDefinition:d,verbose:c,remoteControl:K,remoteControlName:y,advisorModel:F,inputPrompt:w,thinkingEnabled:R,mcpTools:V}=G,{getTeammateUtils:N}=I;L("",{cli_flag:B.model,env_var:JG()?.model,settings_file:(hG()||{}).model,subscriptionType:JZ(),agent:Z});let $=OZ(C),M=[];if(b)M.push({key:"permission-mode-notification",text:b,priority:"high"});if($)M.push({key:"model-deprecation-warning",text:$,color:"warning",priority:"high"});if(Y.length>0){let A=AI(Y.map((U)=>U.ruleDisplay)),u=A.join(", "),S=AI(Y.map((U)=>U.sourceDisplay)).join(", "),v=A.length;M.push({key:"overly-broad-bash-notification",text:`${u} allow ${yG(v,"rule")} from ${S} ${yG(v,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let m=XZ().ignoredSources;if(m.length>0){let A=m.map((S)=>YZ(S)).join(", "),u=m.length;M.push({key:"ignored-auto-mode-settings",text:`autoMode rules in ${A} ${yG(u,"was","were")} ignored — settings inside the repository cannot configure auto mode. Run /auto-mode-setup to write them to your user settings.`,color:"warning",priority:"high"})}let J={...W,mode:BG()&&N().isPlanModeRequired()?"plan":W.mode},j=!1,l=K||VZ()||g.kairosEnabled,z=!1,T={settings:hG(),tasks:{},agentNameRegistry:new Map,verbose:c??gG().verbose??!1,mainLoopModel:H,mainLoopModelForSession:null,isBriefOnly:j,collapseSubagentProgress:gG().collapseSubagentProgress??!0,expandedView:gG().showSpinnerTree?"teammates":gG().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:BG()?!1:void 0,selectedIPAgentIndex:-1,collapsedTaskGroups:[],seededTaskGroups:[],footerTasksCollapsed:!0,coordinatorTaskIndex:-1,viewSelectionMode:"none",pendingContainerStop:null,footerSelection:null,toolPermissionContext:J,agent:d?.agentType,agentDefinitions:h,mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:0},plugins:{enabled:[],disabled:[],commands:[],errors:[],installationStatus:{marketplaces:[],plugins:[]},needsRefresh:!1},statusLineText:void 0,kairosEnabled:g.kairosEnabled,remoteSessionUrl:void 0,remoteConnectionStatus:"connecting",remoteBackgroundTaskCount:0,replBridgeEnabled:l||z,replBridgeExplicit:K,replBridgeOutboundOnly:z,replBridgeConnected:!1,replBridgeSessionActive:!1,replBridgeReconnecting:!1,replBridgeConnectUrl:void 0,replBridgeSessionUrl:void 0,replBridgeEnvironmentId:void 0,replBridgeSessionId:void 0,replBridgeError:void 0,replBridgeInitialName:y,showRemoteCallout:!1,notifications:{current:null,queue:M},elicitation:{queue:[]},todos:{},remoteAgentTaskSuggestions:[],fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},attribution:jZ(),thinkingEnabled:R,promptSuggestionEnabled:NZ(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:AZ,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:w?{message:pG({content:String(w)})}:null,effortValue:KZ(B.effort)??RZ(),activeOverlays:new Set,fastMode:yZ(C),...EG()&&F&&{advisorModel:F},teamContext:PZ?.()};if(w)vZ(String(w));let x=V;return LI((A)=>({...A,numStartups:(A.numStartups??0)+1})),setImmediate(()=>{$Z(),qZ()}),{initialState:T,initialTools:x}}jG();QG();HG();TZ();zG();async function EZ(G){let{root:I,options:B,sessionConfig:g,resumeContext:Z,mainThreadAgentDefinitionRef:C,getFpsMetrics:b,stats:Y}=G,W=!1;try{let H=performance.now(),{clearSessionCaches:h}=await import("./caches-1.1.30-6rye5cdg.mjs");h();let d=await aG(void 0,void 0);if(!d)return L("",{success:!1}),await a(I,"No conversation found to continue");let c=await iG(d,{forkSession:!!B.forkSession,includeAttribution:!0,transcriptPath:d.fullPath},Z);if(c.restoredAgentDef)C.current=c.restoredAgentDef;fG(B),FG(B),L("",{success:!0,resume_duration_ms:Math.round(performance.now()-H)}),W=!0,await XG(I,{getFpsMetrics:b,stats:Y,initialState:c.initialState},{...g,mainThreadAgentDefinition:c.restoredAgentDef??C.current,initialMessages:c.messages,initialFileHistorySnapshots:c.fileHistorySnapshots,initialContentReplacements:c.contentReplacements,initialAgentName:c.agentName,initialAgentColor:c.agentColor},GG)}catch(H){if(!W)L("",{success:!1});return e(H),await a(I,r(H),()=>f(1))}}o();zG();mG();o();zG();mG();o();wI();zG();mG();_Z();wG();eY();o();wI();NI();HG();tY();bZ();TZ();QG();bI();BW();zG();RG();jG();mG();II();GW();_Z();IW();GI();tg();async function Vb(G){let{root:I,ctx:B,options:g,teleport:Z,remote:C,debug:b,debugToStderr:Y,commands:W,ide:H,mainThreadAgentDefinitionRef:h,thinkingConfig:d,sessionConfig:c,resumeContext:K,getFpsMetrics:y,stats:F,initialState:w}=G,{clearSessionCaches:R}=await import("./caches-1.1.30-6rye5cdg.mjs");R();let V=null,N=void 0,$=KG(g.resume),M=void 0,m=null,J=void 0;if(g.fromPr){if(g.fromPr===!0)J=!0;else if(typeof g.fromPr==="string")J=g.fromPr}if(g.resume&&typeof g.resume==="string"&&!$){let l=g.resume.trim();if(l){let z=await Yb(l,{exact:!0});if(z.length===1)m=z[0],$=bb(m)??null;else M=l}}if(C!==null||Z){if(await tZ(),!eZ("allow_remote_sessions"))return await a(I,"Error: Remote sessions are disabled by your organization's policy.",()=>f(1))}if(C!==null){let l=C.length>0,z=UG("tengu_remote_backend",!1);if(!z&&!l)return await a(I,`Error: --remote requires a description.
1473
+ Usage: claudin --remote "your task description"`,()=>f(1));L("",{has_initial_prompt:String(l)});let T=await iZ(),x=await Zb(I,l?C:null,new AbortController().signal,T||void 0);if(!x)return L("",{error:"unable_to_create_session"}),await a(I,"Error: Unable to create remote session",()=>f(1));if(L("",{session_id:x.id}),!z)process.stdout.write(`Created remote session: ${x.title}
1474
+ `),process.stdout.write(`View: ${uI(x.id)}?m=0
1475
+ `),process.stdout.write(`Resume with: claude --teleport ${x.id}
1476
+ `),await f(0),process.exit(0);kI(!0),pZ(sZ(x.id));let A;try{A=await SI()}catch(P){return e(fZ(P)),await a(I,`Error: ${r(P)||"Failed to authenticate"}`,()=>f(1))}let{getClaudeAIOAuthTokens:u}=await import("./auth-1.1.30-mmymct98.mjs"),S=()=>u()?.accessToken??A.accessToken,v=xI(x.id,S,A.orgUUID,l),U=`${uI(x.id)}?m=0`,D=LG(`/remote-control is active. Code in CLI or at ${U}`,"info"),E=l?pG({content:C}):null,s={...w,remoteSessionUrl:U},p=MI(W);await XG(I,{getFpsMetrics:y,stats:F,initialState:s},{debug:b||Y,commands:p,initialTools:[],initialMessages:E?[D,E]:[D],mcpClients:[],autoConnectIdeFlag:H,mainThreadAgentDefinition:h.current,disableSlashCommands:B.disableSlashCommands,remoteSessionConfig:v,thinkingConfig:d},GG);return}else if(Z){if(Z===!0||Z===""){L("",{}),q("selectAndResumeTeleportTask: Starting teleport flow...");let l=await ag(I);if(!l)await f(0),process.exit(0);let{branchError:z}=await Bb(l.branch);V=Ib(l.log,z)}else if(typeof Z==="string"){L("",{mode:"direct"});try{let l=await nZ(Z),z=await gb(l);if(z.status==="mismatch"||z.status==="not_in_repo"){let A=z.sessionRepo;if(A){let u=Wb(A),S=await Xb(u);if(S.length>0){let v=await fg(I,{targetRepo:A,initialPaths:S});if(v)process.chdir(v),rZ(v),oG(v);else await f(0)}else throw new nG(`You must run claude --teleport ${Z} from a checkout of ${A}.`,Q.red(`You must run claude --teleport ${Z} from a checkout of ${Q.bold(A)}.
1477
+ `))}}else if(z.status==="error")throw new nG(z.errorMessage||"Failed to validate session",Q.red(`Error: ${z.errorMessage||"Failed to validate session"}
1478
+ `));await Gb();let{teleportWithProgress:T}=await import("./TeleportProgress-1.1.30-v55nsv7g.mjs"),x=await T(I,Z);aZ({sessionId:Z}),V=x.messages}catch(l){if(l instanceof nG)process.stderr.write(l.formattedMessage+`
1479
+ `);else e(l),process.stderr.write(Q.red(`Error: ${r(l)}
1480
+ `));await f(1)}}}if($){let l=$;try{let z=performance.now(),T=await aG(m??l,void 0);if(!T)return L("",{entrypoint:"cli_flag",success:!1}),await a(I,`No conversation found with session ID: ${l}`);let x=m?.fullPath??T.fullPath;if(N=await iG(T,{forkSession:!!g.forkSession,sessionIdOverride:l,transcriptPath:x},K),N.restoredAgentDef)h.current=N.restoredAgentDef;L("",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-z)})}catch(z){L("",{entrypoint:"cli_flag",success:!1}),e(z),await a(I,r(z))}}if(B.fileDownloadPromise)try{let l=await B.fileDownloadPromise,z=oZ(l,(T)=>!T.success);if(z>0)process.stderr.write(Q.yellow(`Warning: ${z}/${l.length} file(s) failed to download.
1481
+ `))}catch(l){return await a(I,`Error downloading files: ${r(l)}`)}let j=N??(Array.isArray(V)?{messages:V,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:h.current,initialState:w,contentReplacements:void 0}:void 0);if(j)fG(g),FG(g),await XG(I,{getFpsMetrics:y,stats:F,initialState:j.initialState},{...c,mainThreadAgentDefinition:j.restoredAgentDef??h.current,initialMessages:j.messages,initialFileHistorySnapshots:j.fileHistorySnapshots,initialContentReplacements:j.contentReplacements,initialAgentName:j.agentName,initialAgentColor:j.agentColor},GG);else await ig(I,{getFpsMetrics:y,stats:F,initialState:w},Cb(vG()),{...c,initialSearchQuery:M,forkSession:g.forkSession,filterByPr:J})}function gW(G){let I={debug:G.debug||G.debugToStderr,commands:[...G.commands,...G.mcpCommands],initialTools:G.initialTools,mcpClients:G.mcpClients,autoConnectIdeFlag:G.ide,mainThreadAgentDefinition:G.mainThreadAgentDefinition,disableSlashCommands:G.ctx.disableSlashCommands,dynamicMcpConfig:G.dynamicMcpConfig,strictMcpConfig:G.strictMcpConfig,systemPrompt:G.systemPrompt,appendSystemPrompt:G.appendSystemPrompt,taskListId:G.ctx.taskListId,thinkingConfig:G.thinkingConfig},B={modeApi:G.coordinatorModeModule,mainThreadAgentDefinition:G.mainThreadAgentDefinition,agentDefinitions:G.agentDefinitions,currentCwd:G.currentCwd,cliAgents:G.cliAgents,initialState:G.initialState};return{sessionConfig:I,resumeContext:B}}async function ZW(G){let{root:I,ctx:B,options:g,debug:Z,debugToStderr:C,commands:b,ide:Y,teleport:W,remote:H,thinkingConfig:h,initialState:d,getFpsMetrics:c,stats:K}=G,y=G.mainThreadAgentDefinition,{sessionConfig:F,resumeContext:w}=gW({ctx:B,debug:Z,debugToStderr:C,commands:b,initialTools:G.initialTools,mcpClients:G.mcpClients,mcpCommands:G.mcpCommands,ide:Y,mainThreadAgentDefinition:y,dynamicMcpConfig:G.dynamicMcpConfig,strictMcpConfig:G.strictMcpConfig,systemPrompt:G.systemPrompt,appendSystemPrompt:G.appendSystemPrompt,thinkingConfig:h,coordinatorModeModule:G.coordinatorModeModule,agentDefinitions:G.agentDefinitions,currentCwd:G.currentCwd,cliAgents:G.cliAgents,initialState:d});if(g.continue){let N={current:y};return await EZ({root:I,options:g,sessionConfig:F,resumeContext:w,mainThreadAgentDefinitionRef:N,getFpsMetrics:c,stats:K}),y=N.current,{handled:!0,mainThreadAgentDefinition:y,sessionConfig:F}}let R=Z,V=C;if(g.resume||g.fromPr||W||H!==null){let N={current:y};return await Vb({root:I,ctx:B,options:g,teleport:W,remote:H,debug:R,debugToStderr:V,commands:b,ide:Y,mainThreadAgentDefinitionRef:N,thinkingConfig:h,sessionConfig:F,resumeContext:w,getFpsMetrics:c,stats:K,initialState:d}),y=N.current,{handled:!0,mainThreadAgentDefinition:y,sessionConfig:F}}return{handled:!1,mainThreadAgentDefinition:y,sessionConfig:F}}export{NY as runTrustAndOnboarding,iY as runPostHeadlessGuards,oY as runMcpHooksAndTelemetry,vb as runMcpAndPerms,nY as runInteractiveStartupBlock,ZW as runDefaultActionDispatch,JY as runActionSetup,dY as runActionPostSetup,KY as runActionAgentSetup,hb as parseActionOptions};