@claudiolabs/claudin 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (892) hide show
  1. package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +1 -0
  2. package/dist/chunks/App-0.7.2-1yazneaj.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +7 -0
  10. package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +6 -0
  12. package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +1 -0
  19. package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +1 -0
  29. package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +1 -0
  30. package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +3 -0
  31. package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +110 -0
  32. package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +1 -0
  33. package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +1 -0
  34. package/dist/chunks/assistant-0.7.2-txvf934b.mjs +1 -0
  35. package/dist/chunks/auth-0.7.2-02q30rsb.mjs +1 -0
  36. package/dist/chunks/auth-0.7.2-x29x49yh.mjs +1 -0
  37. package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +1 -0
  40. package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +4 -0
  41. package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +1 -0
  46. package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +1 -0
  47. package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +3 -0
  48. package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +4 -0
  51. package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +1 -0
  53. package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +1 -0
  54. package/dist/chunks/clear-0.7.2-v59pskrm.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +1 -0
  56. package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +2 -0
  57. package/dist/chunks/cli-0.7.2-0mj25tns.mjs +2 -0
  58. package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +2 -0
  59. package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +2 -0
  60. package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +2 -0
  61. package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +2 -0
  62. package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +2 -0
  63. package/dist/chunks/cli-0.7.2-21mtjks8.mjs +15 -0
  64. package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +2 -0
  65. package/dist/chunks/cli-0.7.2-26rzbaez.mjs +2 -0
  66. package/dist/chunks/cli-0.7.2-29hh46ve.mjs +3 -0
  67. package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +2 -0
  68. package/dist/chunks/cli-0.7.2-2rj33835.mjs +6 -0
  69. package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +2 -0
  70. package/dist/chunks/cli-0.7.2-358vh55m.mjs +2 -0
  71. package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +2 -0
  72. package/dist/chunks/cli-0.7.2-3frg7csa.mjs +2 -0
  73. package/dist/chunks/cli-0.7.2-3s2zd715.mjs +3 -0
  74. package/dist/chunks/cli-0.7.2-3synxf81.mjs +2 -0
  75. package/dist/chunks/cli-0.7.2-40f37y02.mjs +2 -0
  76. package/dist/chunks/cli-0.7.2-40xymk1q.mjs +2 -0
  77. package/dist/chunks/cli-0.7.2-437jawbh.mjs +2 -0
  78. package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +2 -0
  79. package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +2 -0
  80. package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +2 -0
  81. package/dist/chunks/cli-0.7.2-4g4d682x.mjs +3 -0
  82. package/dist/chunks/cli-0.7.2-520tgkhw.mjs +5438 -0
  83. package/dist/chunks/cli-0.7.2-53qayxqk.mjs +2 -0
  84. package/dist/chunks/cli-0.7.2-5415yrkc.mjs +2 -0
  85. package/dist/chunks/cli-0.7.2-55ye29jy.mjs +2 -0
  86. package/dist/chunks/cli-0.7.2-5750g5et.mjs +2 -0
  87. package/dist/chunks/cli-0.7.2-59wm2srd.mjs +2 -0
  88. package/dist/chunks/cli-0.7.2-5aka4emf.mjs +133 -0
  89. package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +4 -0
  90. package/dist/chunks/cli-0.7.2-5e72m61f.mjs +25 -0
  91. package/dist/chunks/cli-0.7.2-5ff63f31.mjs +4 -0
  92. package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +2 -0
  93. package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +193 -0
  94. package/dist/chunks/cli-0.7.2-5tacs42k.mjs +2 -0
  95. package/dist/chunks/cli-0.7.2-5y498dyr.mjs +2 -0
  96. package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +15 -0
  97. package/dist/chunks/cli-0.7.2-5yrman6f.mjs +2 -0
  98. package/dist/chunks/cli-0.7.2-60exfzc0.mjs +2 -0
  99. package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +2 -0
  100. package/dist/chunks/cli-0.7.2-68dn8am7.mjs +2 -0
  101. package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +2 -0
  102. package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +12 -0
  103. package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +2 -0
  104. package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +2 -0
  105. package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +2 -0
  106. package/dist/chunks/cli-0.7.2-81s45w7r.mjs +2 -0
  107. package/dist/chunks/cli-0.7.2-828f420c.mjs +7 -0
  108. package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +2 -0
  109. package/dist/chunks/cli-0.7.2-88h70xrj.mjs +50 -0
  110. package/dist/chunks/cli-0.7.2-894093rv.mjs +2 -0
  111. package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +2 -0
  112. package/dist/chunks/cli-0.7.2-8pfcc363.mjs +12 -0
  113. package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +16 -0
  114. package/dist/chunks/cli-0.7.2-9156j3vm.mjs +6 -0
  115. package/dist/chunks/cli-0.7.2-9328ezjz.mjs +3 -0
  116. package/dist/chunks/cli-0.7.2-9953mwyy.mjs +2 -0
  117. package/dist/chunks/cli-0.7.2-99am4r15.mjs +4 -0
  118. package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +4 -0
  119. package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +2 -0
  120. package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +2 -0
  121. package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +2 -0
  122. package/dist/chunks/cli-0.7.2-a6q1amed.mjs +2 -0
  123. package/dist/chunks/cli-0.7.2-a9324x4q.mjs +8 -0
  124. package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +2 -0
  125. package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +2 -0
  126. package/dist/chunks/cli-0.7.2-atsd6734.mjs +2 -0
  127. package/dist/chunks/cli-0.7.2-avk3azcp.mjs +2 -0
  128. package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +2 -0
  129. package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +2 -0
  130. package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +2 -0
  131. package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +21 -0
  132. package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +2 -0
  133. package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +18 -0
  134. package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +4 -0
  135. package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +2 -0
  136. package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +2 -0
  137. package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +2 -0
  138. package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +2 -0
  139. package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +6 -0
  140. package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +2 -0
  141. package/dist/chunks/cli-0.7.2-dggndd24.mjs +2 -0
  142. package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +2 -0
  143. package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +2 -0
  144. package/dist/chunks/cli-0.7.2-dxm2c139.mjs +24 -0
  145. package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +2 -0
  146. package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +2 -0
  147. package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +2 -0
  148. package/dist/chunks/cli-0.7.2-edf740pd.mjs +5 -0
  149. package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +2 -0
  150. package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +2 -0
  151. package/dist/chunks/cli-0.7.2-f4nt233k.mjs +3 -0
  152. package/dist/chunks/cli-0.7.2-fcadqwem.mjs +1 -0
  153. package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +2 -0
  154. package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +12 -0
  155. package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +2 -0
  156. package/dist/chunks/cli-0.7.2-gar34ch2.mjs +4 -0
  157. package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +2 -0
  158. package/dist/chunks/cli-0.7.2-gssxkynf.mjs +2 -0
  159. package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +2 -0
  160. package/dist/chunks/cli-0.7.2-gysw8esj.mjs +2 -0
  161. package/dist/chunks/cli-0.7.2-h248q4gt.mjs +2 -0
  162. package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +2 -0
  163. package/dist/chunks/cli-0.7.2-h7m849rt.mjs +2 -0
  164. package/dist/chunks/cli-0.7.2-h903zfjz.mjs +2 -0
  165. package/dist/chunks/cli-0.7.2-hbmczrch.mjs +9 -0
  166. package/dist/chunks/cli-0.7.2-he1hdn59.mjs +18 -0
  167. package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +2 -0
  168. package/dist/chunks/cli-0.7.2-hv1z3had.mjs +3 -0
  169. package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +2 -0
  170. package/dist/chunks/cli-0.7.2-j029dkan.mjs +3 -0
  171. package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +2 -0
  172. package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +2 -0
  173. package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +2 -0
  174. package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +2 -0
  175. package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +2 -0
  176. package/dist/chunks/cli-0.7.2-jn2497vh.mjs +2 -0
  177. package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +2 -0
  178. package/dist/chunks/cli-0.7.2-k40k933y.mjs +24 -0
  179. package/dist/chunks/cli-0.7.2-k6jnr159.mjs +2 -0
  180. package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +2 -0
  181. package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +2 -0
  182. package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +2 -0
  183. package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +12 -0
  184. package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +2 -0
  185. package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +15 -0
  186. package/dist/chunks/cli-0.7.2-mqv265gk.mjs +42 -0
  187. package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +3 -0
  188. package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +2 -0
  189. package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +2 -0
  190. package/dist/chunks/cli-0.7.2-ndt224p1.mjs +2 -0
  191. package/dist/chunks/cli-0.7.2-nf346apq.mjs +18 -0
  192. package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +2 -0
  193. package/dist/chunks/cli-0.7.2-nkafymh4.mjs +3 -0
  194. package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +45 -0
  195. package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +3 -0
  196. package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +67 -0
  197. package/dist/chunks/cli-0.7.2-pjavf176.mjs +2 -0
  198. package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +4 -0
  199. package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +2 -0
  200. package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +2 -0
  201. package/dist/chunks/cli-0.7.2-q85af7gm.mjs +2 -0
  202. package/dist/chunks/cli-0.7.2-q88h44qv.mjs +17 -0
  203. package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +2 -0
  204. package/dist/chunks/cli-0.7.2-qf8435qy.mjs +2 -0
  205. package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +5 -0
  206. package/dist/chunks/cli-0.7.2-qr706n52.mjs +10 -0
  207. package/dist/chunks/cli-0.7.2-qsx52bst.mjs +2 -0
  208. package/dist/chunks/cli-0.7.2-r1502pen.mjs +2 -0
  209. package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +5 -0
  210. package/dist/chunks/cli-0.7.2-r7x165sf.mjs +17 -0
  211. package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +2 -0
  212. package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +2 -0
  213. package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +2 -0
  214. package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +133 -0
  215. package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +2 -0
  216. package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +2 -0
  217. package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +2 -0
  218. package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +2 -0
  219. package/dist/chunks/cli-0.7.2-tds456xt.mjs +34 -0
  220. package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +4 -0
  221. package/dist/chunks/cli-0.7.2-twx01hwg.mjs +2 -0
  222. package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +3 -0
  223. package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +2 -0
  224. package/dist/chunks/cli-0.7.2-tz5zv753.mjs +6 -0
  225. package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +3 -0
  226. package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +2 -0
  227. package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +4 -0
  228. package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +2 -0
  229. package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +2 -0
  230. package/dist/chunks/cli-0.7.2-vx10940a.mjs +2 -0
  231. package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +2 -0
  232. package/dist/chunks/cli-0.7.2-w07ksegr.mjs +2 -0
  233. package/dist/chunks/cli-0.7.2-waas8a1p.mjs +2 -0
  234. package/dist/chunks/cli-0.7.2-wahbzckp.mjs +58 -0
  235. package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +2 -0
  236. package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +2 -0
  237. package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +2 -0
  238. package/dist/chunks/cli-0.7.2-xced0m7v.mjs +2 -0
  239. package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +2 -0
  240. package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +39 -0
  241. package/dist/chunks/cli-0.7.2-xpw13d73.mjs +59 -0
  242. package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +2 -0
  243. package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +2 -0
  244. package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +2 -0
  245. package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +20 -0
  246. package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +4 -0
  247. package/dist/chunks/cli-0.7.2-ygx94a70.mjs +2 -0
  248. package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +2 -0
  249. package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +2 -0
  250. package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +2 -0
  251. package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +3 -0
  252. package/dist/chunks/cli-0.7.2-zva1j44t.mjs +2 -0
  253. package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +2 -0
  254. package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +1 -0
  255. package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +1 -0
  256. package/dist/chunks/compact-0.7.2-1htfptdq.mjs +3 -0
  257. package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +1 -0
  258. package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +1 -0
  259. package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +1 -0
  260. package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +1 -0
  261. package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +1 -0
  262. package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +1 -0
  263. package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +1 -0
  264. package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +9 -0
  265. package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +1 -0
  266. package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +1 -0
  267. package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +1 -0
  268. package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +1 -0
  269. package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +1446 -0
  270. package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +1 -0
  271. package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +1 -0
  272. package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +1 -0
  273. package/dist/chunks/diff-0.7.2-7np6da8n.mjs +1 -0
  274. package/dist/chunks/doctor-0.7.2-spqx634t.mjs +1 -0
  275. package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +1 -0
  276. package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +1 -0
  277. package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +10 -0
  278. package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +1 -0
  279. package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +1 -0
  280. package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +1 -0
  281. package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +1 -0
  282. package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +1 -0
  283. package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +1 -0
  284. package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +1 -0
  285. package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +1 -0
  286. package/dist/chunks/export-0.7.2-j6tnta5r.mjs +2 -0
  287. package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +1 -0
  288. package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +1 -0
  289. package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +1 -0
  290. package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +14 -0
  291. package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +1 -0
  292. package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +1 -0
  293. package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +1 -0
  294. package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +4 -0
  295. package/dist/chunks/grove-0.7.2-9sxczf29.mjs +1 -0
  296. package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +1 -0
  297. package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +2 -0
  298. package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +6 -0
  299. package/dist/chunks/help-0.7.2-mkkkzv97.mjs +1 -0
  300. package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +3 -0
  301. package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +1 -0
  302. package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +79 -0
  303. package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +3 -0
  304. package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +1 -0
  305. package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +1 -0
  306. package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +1 -0
  307. package/dist/chunks/index-0.7.2-5mfmhd35.mjs +1 -0
  308. package/dist/chunks/index-0.7.2-62g62r4p.mjs +1 -0
  309. package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +9 -0
  310. package/dist/chunks/index-0.7.2-87jrdmn3.mjs +2 -0
  311. package/dist/chunks/index-0.7.2-9h4tsef1.mjs +1 -0
  312. package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +1 -0
  313. package/dist/chunks/index-0.7.2-a3w6at2z.mjs +1 -0
  314. package/dist/chunks/index-0.7.2-b296et1z.mjs +1 -0
  315. package/dist/chunks/index-0.7.2-c22bn4q9.mjs +1 -0
  316. package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +9 -0
  317. package/dist/chunks/index-0.7.2-f8swc4mv.mjs +30 -0
  318. package/dist/chunks/index-0.7.2-fdsptfbt.mjs +17 -0
  319. package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +1 -0
  320. package/dist/chunks/index-0.7.2-hjcptpaz.mjs +1 -0
  321. package/dist/chunks/index-0.7.2-hts44hhf.mjs +2 -0
  322. package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +1 -0
  323. package/dist/chunks/index-0.7.2-nhtpksxs.mjs +5 -0
  324. package/dist/chunks/index-0.7.2-p5a52s17.mjs +1 -0
  325. package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +1 -0
  326. package/dist/chunks/index-0.7.2-vfyvycvc.mjs +1 -0
  327. package/dist/chunks/index-0.7.2-vw5e1spt.mjs +1 -0
  328. package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +1 -0
  329. package/dist/chunks/init-0.7.2-mdhax55g.mjs +1 -0
  330. package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +1 -0
  331. package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +1 -0
  332. package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +870 -0
  333. package/dist/chunks/install-0.7.2-f33pbxz0.mjs +1 -0
  334. package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +149 -0
  335. package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +1 -0
  336. package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +1 -0
  337. package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +1 -0
  338. package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +2 -0
  339. package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +2 -0
  340. package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +1 -0
  341. package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +1 -0
  343. package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +1 -0
  344. package/dist/chunks/log-0.7.2-n28x7jf3.mjs +1 -0
  345. package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +1 -0
  346. package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +1 -0
  347. package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +1 -0
  348. package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +17 -0
  349. package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +4 -0
  350. package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +1 -0
  351. package/dist/chunks/memory-0.7.2-1hfh6410.mjs +3 -0
  352. package/dist/chunks/model-0.7.2-c8esc658.mjs +1 -0
  353. package/dist/chunks/model-0.7.2-sjw6chpt.mjs +2 -0
  354. package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +12 -0
  355. package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +1 -0
  356. package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +14 -0
  357. package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +1 -0
  358. package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +1 -0
  359. package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +1 -0
  360. package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +1 -0
  361. package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +1 -0
  362. package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +3 -0
  363. package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +1 -0
  364. package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +1 -0
  365. package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +1 -0
  366. package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +29 -0
  367. package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +1 -0
  368. package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +9 -0
  369. package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +2 -0
  370. package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +57 -0
  371. package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +1 -0
  372. package/dist/chunks/process-0.7.2-bydxzc10.mjs +1 -0
  373. package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +1 -0
  374. package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +9 -0
  375. package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +1 -0
  376. package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +1 -0
  377. package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +1 -0
  378. package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +13 -0
  379. package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +2 -0
  380. package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +1 -0
  381. package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +6 -0
  382. package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +1 -0
  383. package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +34 -0
  384. package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +1 -0
  385. package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +5 -0
  386. package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +2 -0
  387. package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +1 -0
  388. package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +1 -0
  389. package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +1 -0
  390. package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +1 -0
  391. package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +1 -0
  392. package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +1 -0
  393. package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +2 -0
  394. package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +1 -0
  395. package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +1 -0
  396. package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +1 -0
  397. package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +1 -0
  398. package/dist/chunks/session-0.7.2-c8me3g3x.mjs +2 -0
  399. package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +1 -0
  400. package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +1 -0
  401. package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +1 -0
  402. package/dist/chunks/settings-0.7.2-xc200363.mjs +1 -0
  403. package/dist/chunks/setup-0.7.2-c982wyvz.mjs +5 -0
  404. package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +1 -0
  405. package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +1 -0
  406. package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +1 -0
  407. package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +1 -0
  408. package/dist/chunks/state-0.7.2-p9tevca2.mjs +1 -0
  409. package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +6 -0
  410. package/dist/chunks/status-0.7.2-fh89jm1g.mjs +1 -0
  411. package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +1 -0
  412. package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +1 -0
  413. package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +1 -0
  414. package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +1 -0
  415. package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +1 -0
  416. package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +1 -0
  417. package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +1 -0
  418. package/dist/chunks/theme-0.7.2-1zmsca02.mjs +1 -0
  419. package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +1 -0
  420. package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +1 -0
  421. package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +1 -0
  422. package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +1 -0
  423. package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +1 -0
  424. package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +1 -0
  425. package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +69 -0
  426. package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +1 -0
  427. package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +4 -0
  428. package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +86 -0
  429. package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +1 -0
  430. package/dist/chunks/upload-0.7.2-p6je053d.mjs +7 -0
  431. package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +14 -0
  432. package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +1 -0
  433. package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +1 -0
  434. package/dist/chunks/util-0.7.2-n4vdasdr.mjs +1 -0
  435. package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +1 -0
  436. package/dist/chunks/vim-0.7.2-bd15xeza.mjs +1 -0
  437. package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +1 -0
  438. package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +132 -0
  439. package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +1 -0
  440. package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +1 -0
  441. package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +7 -0
  442. package/dist/claudin-vscode.vsix +0 -0
  443. package/dist/cli.mjs +2 -2
  444. package/package.json +3 -1
  445. package/dist/chunks/AgentTool-0.7.1-d5a04rhw.mjs +0 -1
  446. package/dist/chunks/App-0.7.1-qe37xdwh.mjs +0 -1
  447. package/dist/chunks/ApproveApiKey-0.7.1-hcwrem4g.mjs +0 -1
  448. package/dist/chunks/AssistantSessionChooser-0.7.1-ed3kh69n.mjs +0 -1
  449. package/dist/chunks/AutoModeOptInDialog-0.7.1-9dhakyk3.mjs +0 -1
  450. package/dist/chunks/BypassPermissionsModeDialog-0.7.1-zqdx4k6r.mjs +0 -1
  451. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.1-ja900v6h.mjs +0 -1
  452. package/dist/chunks/ConsoleOAuthFlow-0.7.1-p5f8b85c.mjs +0 -1
  453. package/dist/chunks/DiffDialog-0.7.1-frcnb58g.mjs +0 -7
  454. package/dist/chunks/Doctor-0.7.1-5a5bqzar.mjs +0 -1
  455. package/dist/chunks/ExplorerDialog-0.7.1-sp9zfyb5.mjs +0 -6
  456. package/dist/chunks/Grove-0.7.1-9ats64c9.mjs +0 -1
  457. package/dist/chunks/ITermBackend-0.7.1-160z9025.mjs +0 -1
  458. package/dist/chunks/InvalidConfigDialog-0.7.1-dm3mnxja.mjs +0 -1
  459. package/dist/chunks/InvalidSettingsDialog-0.7.1-94m5wc8k.mjs +0 -1
  460. package/dist/chunks/MigrationDialog-0.7.1-2sy3633s.mjs +0 -1
  461. package/dist/chunks/Onboarding-0.7.1-4ryf7vkp.mjs +0 -1
  462. package/dist/chunks/ProviderManager-0.7.1-m863v53f.mjs +0 -1
  463. package/dist/chunks/REPL-0.7.1-a1pdjtms.mjs +0 -1
  464. package/dist/chunks/ResumeConversation-0.7.1-39h2xh04.mjs +0 -1
  465. package/dist/chunks/SnapshotUpdateDialog-0.7.1-zwedgae2.mjs +0 -1
  466. package/dist/chunks/TeleportProgress-0.7.1-9anv6ssa.mjs +0 -1
  467. package/dist/chunks/TeleportRepoMismatchDialog-0.7.1-2awpvnbb.mjs +0 -1
  468. package/dist/chunks/TeleportResumeWrapper-0.7.1-nd5kypwz.mjs +0 -1
  469. package/dist/chunks/TmuxBackend-0.7.1-7cyfxvj8.mjs +0 -9
  470. package/dist/chunks/ToolSearchTool-0.7.1-9kyy73xn.mjs +0 -1
  471. package/dist/chunks/TrustDialog-0.7.1-k2dez79x.mjs +0 -1
  472. package/dist/chunks/activeProvider-0.7.1-vv0d3v6j.mjs +0 -1
  473. package/dist/chunks/add-dir-0.7.1-4mzgm2te.mjs +0 -1
  474. package/dist/chunks/agents-0.7.1-atjgpzds.mjs +0 -3
  475. package/dist/chunks/agents-0.7.1-fyqad9rz.mjs +0 -110
  476. package/dist/chunks/api-0.7.1-fsw86vpr.mjs +0 -1
  477. package/dist/chunks/asciicast-0.7.1-2wj656v8.mjs +0 -1
  478. package/dist/chunks/assistant-0.7.1-91m5tfq4.mjs +0 -1
  479. package/dist/chunks/auth-0.7.1-b9ybay2b.mjs +0 -1
  480. package/dist/chunks/auth-0.7.1-tbd13raw.mjs +0 -1
  481. package/dist/chunks/autoMode-0.7.1-jwnj54pb.mjs +0 -48
  482. package/dist/chunks/autoUpdater-0.7.1-e4v9zzkn.mjs +0 -1
  483. package/dist/chunks/backgroundHousekeeping-0.7.1-jxebk27x.mjs +0 -1
  484. package/dist/chunks/branch-0.7.1-qr35xar0.mjs +0 -4
  485. package/dist/chunks/bridge-0.7.1-8qbgc2e9.mjs +0 -2
  486. package/dist/chunks/bridgeConfig-0.7.1-5dz9y1gn.mjs +0 -1
  487. package/dist/chunks/bridgeEnabled-0.7.1-fqgbq6ry.mjs +0 -1
  488. package/dist/chunks/bridgeMain-0.7.1-hd9vv35g.mjs +0 -88
  489. package/dist/chunks/bridgePointer-0.7.1-rxxjfj3q.mjs +0 -1
  490. package/dist/chunks/btw-0.7.1-86yem67j.mjs +0 -1
  491. package/dist/chunks/buddy-0.7.1-kdmsha6s.mjs +0 -3
  492. package/dist/chunks/cacache-0.7.1-ahmz5znn.mjs +0 -1
  493. package/dist/chunks/cache-probe-0.7.1-jkjqgvf0.mjs +0 -21
  494. package/dist/chunks/cacheStats-0.7.1-wt820qhe.mjs +0 -4
  495. package/dist/chunks/caches-0.7.1-xjaktk6r.mjs +0 -1
  496. package/dist/chunks/claudeDesktop-0.7.1-pxv7ev3t.mjs +0 -1
  497. package/dist/chunks/claudemd-0.7.1-dzm84q1p.mjs +0 -1
  498. package/dist/chunks/clear-0.7.1-gx38nydx.mjs +0 -1
  499. package/dist/chunks/clearTerminal-0.7.1-5htkde19.mjs +0 -1
  500. package/dist/chunks/cli-0.7.1-01af799v.mjs +0 -2
  501. package/dist/chunks/cli-0.7.1-0ef7xs1s.mjs +0 -2
  502. package/dist/chunks/cli-0.7.1-0qwnf6wz.mjs +0 -16
  503. package/dist/chunks/cli-0.7.1-0sacamdc.mjs +0 -2
  504. package/dist/chunks/cli-0.7.1-0y31txhk.mjs +0 -2
  505. package/dist/chunks/cli-0.7.1-1188jq4p.mjs +0 -2
  506. package/dist/chunks/cli-0.7.1-1gbsnea3.mjs +0 -2
  507. package/dist/chunks/cli-0.7.1-1ts20eyt.mjs +0 -3
  508. package/dist/chunks/cli-0.7.1-21s047ay.mjs +0 -2
  509. package/dist/chunks/cli-0.7.1-24da357x.mjs +0 -3
  510. package/dist/chunks/cli-0.7.1-28433yep.mjs +0 -2
  511. package/dist/chunks/cli-0.7.1-2e97a1f7.mjs +0 -2
  512. package/dist/chunks/cli-0.7.1-2g1mhmsb.mjs +0 -2
  513. package/dist/chunks/cli-0.7.1-2q24e8yf.mjs +0 -6
  514. package/dist/chunks/cli-0.7.1-30b9rs2y.mjs +0 -2
  515. package/dist/chunks/cli-0.7.1-356bj7gh.mjs +0 -2
  516. package/dist/chunks/cli-0.7.1-37e4777p.mjs +0 -2
  517. package/dist/chunks/cli-0.7.1-3bfhg1sc.mjs +0 -2
  518. package/dist/chunks/cli-0.7.1-3cp4zkfv.mjs +0 -2
  519. package/dist/chunks/cli-0.7.1-3ehkpebq.mjs +0 -2
  520. package/dist/chunks/cli-0.7.1-3eywakdr.mjs +0 -15
  521. package/dist/chunks/cli-0.7.1-3m0mytg6.mjs +0 -2
  522. package/dist/chunks/cli-0.7.1-3s79d0ky.mjs +0 -2
  523. package/dist/chunks/cli-0.7.1-46gjthdy.mjs +0 -2
  524. package/dist/chunks/cli-0.7.1-497wkpjf.mjs +0 -2
  525. package/dist/chunks/cli-0.7.1-4ft7hrdc.mjs +0 -3
  526. package/dist/chunks/cli-0.7.1-4gvkgkvn.mjs +0 -4
  527. package/dist/chunks/cli-0.7.1-4hhqjvy4.mjs +0 -2
  528. package/dist/chunks/cli-0.7.1-4pp5s9hy.mjs +0 -2
  529. package/dist/chunks/cli-0.7.1-4t6v1n3h.mjs +0 -2
  530. package/dist/chunks/cli-0.7.1-57x4wzc4.mjs +0 -2
  531. package/dist/chunks/cli-0.7.1-5bbbwn2g.mjs +0 -2
  532. package/dist/chunks/cli-0.7.1-5fsqggqk.mjs +0 -3
  533. package/dist/chunks/cli-0.7.1-5pp47rx1.mjs +0 -18
  534. package/dist/chunks/cli-0.7.1-65bm304r.mjs +0 -133
  535. package/dist/chunks/cli-0.7.1-6d8y1qn4.mjs +0 -4
  536. package/dist/chunks/cli-0.7.1-6q9k674b.mjs +0 -2
  537. package/dist/chunks/cli-0.7.1-6rrxtyy0.mjs +0 -2
  538. package/dist/chunks/cli-0.7.1-6ta56xg1.mjs +0 -12
  539. package/dist/chunks/cli-0.7.1-6zk672en.mjs +0 -2
  540. package/dist/chunks/cli-0.7.1-71g0e9ze.mjs +0 -6
  541. package/dist/chunks/cli-0.7.1-7mmdptp2.mjs +0 -15
  542. package/dist/chunks/cli-0.7.1-7vnqyd9e.mjs +0 -6
  543. package/dist/chunks/cli-0.7.1-825msf79.mjs +0 -2
  544. package/dist/chunks/cli-0.7.1-84yhx3q1.mjs +0 -12
  545. package/dist/chunks/cli-0.7.1-88kwyk7r.mjs +0 -17
  546. package/dist/chunks/cli-0.7.1-8m2w4jnj.mjs +0 -2
  547. package/dist/chunks/cli-0.7.1-8vpv5q4z.mjs +0 -2
  548. package/dist/chunks/cli-0.7.1-90skq72m.mjs +0 -5
  549. package/dist/chunks/cli-0.7.1-9e4dha4t.mjs +0 -2
  550. package/dist/chunks/cli-0.7.1-9errxa1g.mjs +0 -2
  551. package/dist/chunks/cli-0.7.1-9fk02985.mjs +0 -2
  552. package/dist/chunks/cli-0.7.1-9jzbjqh3.mjs +0 -2
  553. package/dist/chunks/cli-0.7.1-9pspqj1n.mjs +0 -2
  554. package/dist/chunks/cli-0.7.1-9sy5d7re.mjs +0 -2
  555. package/dist/chunks/cli-0.7.1-a24fwkdp.mjs +0 -2
  556. package/dist/chunks/cli-0.7.1-a4x1wq4z.mjs +0 -2
  557. package/dist/chunks/cli-0.7.1-a4zjaz57.mjs +0 -2
  558. package/dist/chunks/cli-0.7.1-a680vzj5.mjs +0 -2
  559. package/dist/chunks/cli-0.7.1-aawgfrph.mjs +0 -3
  560. package/dist/chunks/cli-0.7.1-b1q31fh8.mjs +0 -50
  561. package/dist/chunks/cli-0.7.1-b8rrjfjb.mjs +0 -2
  562. package/dist/chunks/cli-0.7.1-bkp0aqdj.mjs +0 -2
  563. package/dist/chunks/cli-0.7.1-bmqpkffh.mjs +0 -2
  564. package/dist/chunks/cli-0.7.1-bnwqh4sh.mjs +0 -21
  565. package/dist/chunks/cli-0.7.1-bvd99qhf.mjs +0 -2
  566. package/dist/chunks/cli-0.7.1-bzk0abt1.mjs +0 -6
  567. package/dist/chunks/cli-0.7.1-c0ndrc74.mjs +0 -2
  568. package/dist/chunks/cli-0.7.1-c2g89e99.mjs +0 -2
  569. package/dist/chunks/cli-0.7.1-c5513023.mjs +0 -2
  570. package/dist/chunks/cli-0.7.1-c9fnmbwv.mjs +0 -12
  571. package/dist/chunks/cli-0.7.1-cekfrrmq.mjs +0 -8
  572. package/dist/chunks/cli-0.7.1-cf5wjthv.mjs +0 -2
  573. package/dist/chunks/cli-0.7.1-cgnzp3xh.mjs +0 -10
  574. package/dist/chunks/cli-0.7.1-cjg6h2ca.mjs +0 -2
  575. package/dist/chunks/cli-0.7.1-cxscssf3.mjs +0 -4
  576. package/dist/chunks/cli-0.7.1-cxtqva68.mjs +0 -2
  577. package/dist/chunks/cli-0.7.1-d32m4pzb.mjs +0 -2
  578. package/dist/chunks/cli-0.7.1-d566f9dm.mjs +0 -2
  579. package/dist/chunks/cli-0.7.1-dfhpzav5.mjs +0 -2
  580. package/dist/chunks/cli-0.7.1-dmk3nmr9.mjs +0 -4
  581. package/dist/chunks/cli-0.7.1-dnmrbd43.mjs +0 -2
  582. package/dist/chunks/cli-0.7.1-dr27dym5.mjs +0 -2
  583. package/dist/chunks/cli-0.7.1-dsh8dcz2.mjs +0 -2
  584. package/dist/chunks/cli-0.7.1-dw2af4d2.mjs +0 -3
  585. package/dist/chunks/cli-0.7.1-dwrmbzjk.mjs +0 -2
  586. package/dist/chunks/cli-0.7.1-dx2b4mwt.mjs +0 -2
  587. package/dist/chunks/cli-0.7.1-dxxszxaa.mjs +0 -2
  588. package/dist/chunks/cli-0.7.1-dyf7seqv.mjs +0 -4
  589. package/dist/chunks/cli-0.7.1-e59h3jkz.mjs +0 -2
  590. package/dist/chunks/cli-0.7.1-eaqxfq5j.mjs +0 -2
  591. package/dist/chunks/cli-0.7.1-ebdykdv4.mjs +0 -4
  592. package/dist/chunks/cli-0.7.1-ebkzwe4v.mjs +0 -2
  593. package/dist/chunks/cli-0.7.1-eda0jmy0.mjs +0 -3
  594. package/dist/chunks/cli-0.7.1-ef7vcnec.mjs +0 -2
  595. package/dist/chunks/cli-0.7.1-ehc0edr2.mjs +0 -2
  596. package/dist/chunks/cli-0.7.1-ehgqjz41.mjs +0 -2
  597. package/dist/chunks/cli-0.7.1-eqdjtwya.mjs +0 -2
  598. package/dist/chunks/cli-0.7.1-espp6s0y.mjs +0 -2
  599. package/dist/chunks/cli-0.7.1-ez0dpq8d.mjs +0 -2
  600. package/dist/chunks/cli-0.7.1-f6nk5cs1.mjs +0 -2
  601. package/dist/chunks/cli-0.7.1-fgtztd75.mjs +0 -2
  602. package/dist/chunks/cli-0.7.1-g2n9j9vd.mjs +0 -2
  603. package/dist/chunks/cli-0.7.1-gaqzbbr4.mjs +0 -133
  604. package/dist/chunks/cli-0.7.1-gc8m2z4s.mjs +0 -3
  605. package/dist/chunks/cli-0.7.1-gpj27qg9.mjs +0 -9
  606. package/dist/chunks/cli-0.7.1-hdhwyta7.mjs +0 -2
  607. package/dist/chunks/cli-0.7.1-hh3seyqe.mjs +0 -2
  608. package/dist/chunks/cli-0.7.1-hkjqfdbm.mjs +0 -2
  609. package/dist/chunks/cli-0.7.1-hx5avz23.mjs +0 -3
  610. package/dist/chunks/cli-0.7.1-hxqwphz3.mjs +0 -2
  611. package/dist/chunks/cli-0.7.1-j21wk954.mjs +0 -17
  612. package/dist/chunks/cli-0.7.1-j69yv5wv.mjs +0 -2
  613. package/dist/chunks/cli-0.7.1-j71sx09z.mjs +0 -2
  614. package/dist/chunks/cli-0.7.1-jdjhwj9r.mjs +0 -2
  615. package/dist/chunks/cli-0.7.1-jgx9y8hd.mjs +0 -2
  616. package/dist/chunks/cli-0.7.1-jpemgywy.mjs +0 -193
  617. package/dist/chunks/cli-0.7.1-k2r0wewv.mjs +0 -34
  618. package/dist/chunks/cli-0.7.1-k3wrch69.mjs +0 -5422
  619. package/dist/chunks/cli-0.7.1-k62svwx3.mjs +0 -2
  620. package/dist/chunks/cli-0.7.1-k9w4ggkt.mjs +0 -2
  621. package/dist/chunks/cli-0.7.1-kbyy07ta.mjs +0 -42
  622. package/dist/chunks/cli-0.7.1-kes4v4he.mjs +0 -39
  623. package/dist/chunks/cli-0.7.1-knxxgaxv.mjs +0 -58
  624. package/dist/chunks/cli-0.7.1-kwrsgjrs.mjs +0 -2
  625. package/dist/chunks/cli-0.7.1-m00xwwcc.mjs +0 -4
  626. package/dist/chunks/cli-0.7.1-m42mhk67.mjs +0 -2
  627. package/dist/chunks/cli-0.7.1-m4gfza1p.mjs +0 -2
  628. package/dist/chunks/cli-0.7.1-m5pd7m3r.mjs +0 -2
  629. package/dist/chunks/cli-0.7.1-m9xmxtwa.mjs +0 -2
  630. package/dist/chunks/cli-0.7.1-mcb9z58y.mjs +0 -2
  631. package/dist/chunks/cli-0.7.1-md6r4s60.mjs +0 -24
  632. package/dist/chunks/cli-0.7.1-mevd6vax.mjs +0 -2
  633. package/dist/chunks/cli-0.7.1-mky7mf90.mjs +0 -2
  634. package/dist/chunks/cli-0.7.1-mr2e3dyv.mjs +0 -12
  635. package/dist/chunks/cli-0.7.1-mt57tnps.mjs +0 -2
  636. package/dist/chunks/cli-0.7.1-mvq52b0y.mjs +0 -18
  637. package/dist/chunks/cli-0.7.1-mxjp359f.mjs +0 -2
  638. package/dist/chunks/cli-0.7.1-mzdb4t95.mjs +0 -2
  639. package/dist/chunks/cli-0.7.1-n7r3qbr7.mjs +0 -2
  640. package/dist/chunks/cli-0.7.1-n90a1d1a.mjs +0 -3
  641. package/dist/chunks/cli-0.7.1-nm9xqd0t.mjs +0 -4
  642. package/dist/chunks/cli-0.7.1-ns2p247a.mjs +0 -20
  643. package/dist/chunks/cli-0.7.1-nyy6gydm.mjs +0 -2
  644. package/dist/chunks/cli-0.7.1-p0fy9hz7.mjs +0 -2
  645. package/dist/chunks/cli-0.7.1-pfb1t2vv.mjs +0 -2
  646. package/dist/chunks/cli-0.7.1-pj2bwget.mjs +0 -2
  647. package/dist/chunks/cli-0.7.1-pzmph1bb.mjs +0 -5
  648. package/dist/chunks/cli-0.7.1-q22d0nn7.mjs +0 -2
  649. package/dist/chunks/cli-0.7.1-q27rb9ya.mjs +0 -2
  650. package/dist/chunks/cli-0.7.1-q32097ec.mjs +0 -2
  651. package/dist/chunks/cli-0.7.1-q4v2wwpa.mjs +0 -2
  652. package/dist/chunks/cli-0.7.1-qbg9kspq.mjs +0 -2
  653. package/dist/chunks/cli-0.7.1-qkcd1qhy.mjs +0 -2
  654. package/dist/chunks/cli-0.7.1-qmd1fgae.mjs +0 -2
  655. package/dist/chunks/cli-0.7.1-qydxc982.mjs +0 -2
  656. package/dist/chunks/cli-0.7.1-r3ykfxwq.mjs +0 -24
  657. package/dist/chunks/cli-0.7.1-rbby6bd5.mjs +0 -2
  658. package/dist/chunks/cli-0.7.1-rd1z70bz.mjs +0 -2
  659. package/dist/chunks/cli-0.7.1-rmj9pcnx.mjs +0 -15
  660. package/dist/chunks/cli-0.7.1-rmw8587w.mjs +0 -4
  661. package/dist/chunks/cli-0.7.1-rn9q2rxz.mjs +0 -2
  662. package/dist/chunks/cli-0.7.1-rrje9ahd.mjs +0 -2
  663. package/dist/chunks/cli-0.7.1-rt9yw2nh.mjs +0 -67
  664. package/dist/chunks/cli-0.7.1-rtpvm7nh.mjs +0 -2
  665. package/dist/chunks/cli-0.7.1-rz6n3grv.mjs +0 -2
  666. package/dist/chunks/cli-0.7.1-s2eya8px.mjs +0 -2
  667. package/dist/chunks/cli-0.7.1-seanve4t.mjs +0 -2
  668. package/dist/chunks/cli-0.7.1-sz0krng6.mjs +0 -5
  669. package/dist/chunks/cli-0.7.1-thfkavh1.mjs +0 -3
  670. package/dist/chunks/cli-0.7.1-va9tcjyz.mjs +0 -2
  671. package/dist/chunks/cli-0.7.1-vc1w3czg.mjs +0 -59
  672. package/dist/chunks/cli-0.7.1-vfekmem4.mjs +0 -3
  673. package/dist/chunks/cli-0.7.1-vfqcqg6s.mjs +0 -2
  674. package/dist/chunks/cli-0.7.1-vtqvv81d.mjs +0 -7
  675. package/dist/chunks/cli-0.7.1-w2rmty6t.mjs +0 -2
  676. package/dist/chunks/cli-0.7.1-w6mgjapm.mjs +0 -2
  677. package/dist/chunks/cli-0.7.1-wg6vf0hy.mjs +0 -2
  678. package/dist/chunks/cli-0.7.1-wjw73a3c.mjs +0 -3
  679. package/dist/chunks/cli-0.7.1-wp2jn3c0.mjs +0 -2
  680. package/dist/chunks/cli-0.7.1-wqk4b4mn.mjs +0 -2
  681. package/dist/chunks/cli-0.7.1-wzqmjfjs.mjs +0 -2
  682. package/dist/chunks/cli-0.7.1-xhtmjm5c.mjs +0 -2
  683. package/dist/chunks/cli-0.7.1-xjaebq17.mjs +0 -1
  684. package/dist/chunks/cli-0.7.1-xmj6ck32.mjs +0 -18
  685. package/dist/chunks/cli-0.7.1-xn7c84qw.mjs +0 -2
  686. package/dist/chunks/cli-0.7.1-xqxh1d0k.mjs +0 -45
  687. package/dist/chunks/cli-0.7.1-xrxje264.mjs +0 -2
  688. package/dist/chunks/cli-0.7.1-xvhh6hs3.mjs +0 -25
  689. package/dist/chunks/cli-0.7.1-xvp3ptcj.mjs +0 -2
  690. package/dist/chunks/cli-0.7.1-yevrh4dk.mjs +0 -2
  691. package/dist/chunks/cli-0.7.1-ygdm4xdq.mjs +0 -2
  692. package/dist/chunks/cli-0.7.1-yhn13w5s.mjs +0 -2
  693. package/dist/chunks/cli-0.7.1-ykypfrhj.mjs +0 -2
  694. package/dist/chunks/cli-0.7.1-zjw3v1mx.mjs +0 -4
  695. package/dist/chunks/cli-0.7.1-zrz7jgv0.mjs +0 -2
  696. package/dist/chunks/cli-0.7.1-zswdgbrk.mjs +0 -2
  697. package/dist/chunks/cli-0.7.1-zt8sj5mh.mjs +0 -2
  698. package/dist/chunks/client-0.7.1-5bbqygzn.mjs +0 -1
  699. package/dist/chunks/color-0.7.1-d97h4n6v.mjs +0 -1
  700. package/dist/chunks/compact-0.7.1-kq7n7064.mjs +0 -3
  701. package/dist/chunks/config-0.7.1-qw14rnwb.mjs +0 -1
  702. package/dist/chunks/config-0.7.1-vsbb5ybm.mjs +0 -1
  703. package/dist/chunks/constants-0.7.1-j99wnd0t.mjs +0 -1
  704. package/dist/chunks/context-0.7.1-nfbvwjm3.mjs +0 -1
  705. package/dist/chunks/context-noninteractive-0.7.1-w90a8b4k.mjs +0 -1
  706. package/dist/chunks/conversation-0.7.1-cabvk10y.mjs +0 -1
  707. package/dist/chunks/copilotHeaders-0.7.1-576y551e.mjs +0 -1
  708. package/dist/chunks/copy-0.7.1-zjy3ybzx.mjs +0 -9
  709. package/dist/chunks/cost-0.7.1-2sw1r4y9.mjs +0 -1
  710. package/dist/chunks/createSSHSession-0.7.1-ajjsgkcr.mjs +0 -1
  711. package/dist/chunks/createSession-0.7.1-hm73txww.mjs +0 -1
  712. package/dist/chunks/debug-0.7.1-qaj25ne7.mjs +0 -1
  713. package/dist/chunks/defaultActionDeps-0.7.1-xqmrxq95.mjs +0 -1422
  714. package/dist/chunks/desktop-0.7.1-sbjm4tw6.mjs +0 -1
  715. package/dist/chunks/detectRepository-0.7.1-ksy35c3e.mjs +0 -1
  716. package/dist/chunks/detection-0.7.1-h9q77x0f.mjs +0 -1
  717. package/dist/chunks/diff-0.7.1-65vdjrpz.mjs +0 -1
  718. package/dist/chunks/doctor-0.7.1-qpwe5hs1.mjs +0 -1
  719. package/dist/chunks/doctorDiagnostic-0.7.1-n9ez8jjp.mjs +0 -1
  720. package/dist/chunks/earlyInput-0.7.1-evw5t8gb.mjs +0 -1
  721. package/dist/chunks/effort-0.7.1-1gx253x4.mjs +0 -10
  722. package/dist/chunks/envLessBridgeConfig-0.7.1-e9nd930z.mjs +0 -1
  723. package/dist/chunks/envUtils-0.7.1-ymk55nnf.mjs +0 -1
  724. package/dist/chunks/environmentSelection-0.7.1-487w47dh.mjs +0 -1
  725. package/dist/chunks/environments-0.7.1-rafrq9ry.mjs +0 -1
  726. package/dist/chunks/errors-0.7.1-gehaqna3.mjs +0 -1
  727. package/dist/chunks/exampleCommands-0.7.1-nq55tbjv.mjs +0 -1
  728. package/dist/chunks/exit-0.7.1-680hz28c.mjs +0 -1
  729. package/dist/chunks/explorer-0.7.1-z0967d6r.mjs +0 -1
  730. package/dist/chunks/export-0.7.1-g9bdjstd.mjs +0 -2
  731. package/dist/chunks/extra-usage-0.7.1-xdwym2xk.mjs +0 -1
  732. package/dist/chunks/extra-usage-noninteractive-0.7.1-rnf1yy0q.mjs +0 -1
  733. package/dist/chunks/fast-0.7.1-315rzkyy.mjs +0 -1
  734. package/dist/chunks/feedback-0.7.1-p8r4xr11.mjs +0 -14
  735. package/dist/chunks/firstPartyEventLogger-0.7.1-h0ny1a03.mjs +0 -1
  736. package/dist/chunks/git-0.7.1-q9en18yj.mjs +0 -1
  737. package/dist/chunks/githubModelsCredentials-0.7.1-1ew0h3ve.mjs +0 -1
  738. package/dist/chunks/goal-0.7.1-qjzjey3j.mjs +0 -4
  739. package/dist/chunks/grove-0.7.1-4t3w9441.mjs +0 -1
  740. package/dist/chunks/growthbook-0.7.1-h7xxtrvf.mjs +0 -1
  741. package/dist/chunks/headless-0.7.1-6ae94wmy.mjs +0 -2
  742. package/dist/chunks/heapdump-0.7.1-srg8ym4e.mjs +0 -6
  743. package/dist/chunks/help-0.7.1-g1s4amj9.mjs +0 -1
  744. package/dist/chunks/hookChains-0.7.1-nvzpemqb.mjs +0 -3
  745. package/dist/chunks/hooks-0.7.1-19rxqk3m.mjs +0 -79
  746. package/dist/chunks/hooks-0.7.1-918zv23z.mjs +0 -1
  747. package/dist/chunks/ide-0.7.1-29f4xm8h.mjs +0 -3
  748. package/dist/chunks/image-processor-napi-0.7.1-21880z56.mjs +0 -1
  749. package/dist/chunks/inboundAttachments-0.7.1-vj4mtwgs.mjs +0 -1
  750. package/dist/chunks/index-0.7.1-05ga11b5.mjs +0 -1
  751. package/dist/chunks/index-0.7.1-08cj1sdf.mjs +0 -1
  752. package/dist/chunks/index-0.7.1-13drp9nj.mjs +0 -1
  753. package/dist/chunks/index-0.7.1-4xrmd4xj.mjs +0 -30
  754. package/dist/chunks/index-0.7.1-6m7fqnxf.mjs +0 -1
  755. package/dist/chunks/index-0.7.1-6w21gjac.mjs +0 -1
  756. package/dist/chunks/index-0.7.1-7pweww0b.mjs +0 -1
  757. package/dist/chunks/index-0.7.1-8753b2ed.mjs +0 -1
  758. package/dist/chunks/index-0.7.1-8yjbpdj3.mjs +0 -1
  759. package/dist/chunks/index-0.7.1-bcgceyp2.mjs +0 -2
  760. package/dist/chunks/index-0.7.1-bjckst5c.mjs +0 -1
  761. package/dist/chunks/index-0.7.1-drps39aq.mjs +0 -5
  762. package/dist/chunks/index-0.7.1-gfr5qm3n.mjs +0 -1
  763. package/dist/chunks/index-0.7.1-k15r2adh.mjs +0 -9
  764. package/dist/chunks/index-0.7.1-mhbm4m18.mjs +0 -1
  765. package/dist/chunks/index-0.7.1-mshav77m.mjs +0 -9
  766. package/dist/chunks/index-0.7.1-pcnfdjxe.mjs +0 -1
  767. package/dist/chunks/index-0.7.1-pcwfft21.mjs +0 -1
  768. package/dist/chunks/index-0.7.1-th8gnyjv.mjs +0 -1
  769. package/dist/chunks/index-0.7.1-tj6byrkd.mjs +0 -2
  770. package/dist/chunks/index-0.7.1-vezza4mb.mjs +0 -17
  771. package/dist/chunks/index-0.7.1-w0rz5trr.mjs +0 -1
  772. package/dist/chunks/index-0.7.1-wpzgm03y.mjs +0 -1
  773. package/dist/chunks/init-0.7.1-saq601q7.mjs +0 -1
  774. package/dist/chunks/initReplBridge-0.7.1-aqvbm3dc.mjs +0 -1
  775. package/dist/chunks/ink-0.7.1-8q2edv8t.mjs +0 -1
  776. package/dist/chunks/insights-0.7.1-2t65g57h.mjs +0 -870
  777. package/dist/chunks/install-0.7.1-ecee3epk.mjs +0 -1
  778. package/dist/chunks/install-github-app-0.7.1-yz6sr0n1.mjs +0 -149
  779. package/dist/chunks/install-slack-app-0.7.1-z2n7dzqn.mjs +0 -1
  780. package/dist/chunks/instrumentation-0.7.1-ejkfct84.mjs +0 -1
  781. package/dist/chunks/interactiveHelpers-0.7.1-3pgg93hb.mjs +0 -1
  782. package/dist/chunks/keybindings-0.7.1-zstbszpg.mjs +0 -2
  783. package/dist/chunks/knowledge-0.7.1-b5nd9y2x.mjs +0 -2
  784. package/dist/chunks/latestVersionCache-0.7.1-6bpfy1b6.mjs +0 -1
  785. package/dist/chunks/loadAgentsDir-0.7.1-p8rq7yzm.mjs +0 -1
  786. package/dist/chunks/loadPluginHooks-0.7.1-d63pgpzs.mjs +0 -1
  787. package/dist/chunks/loadPluginHooks-0.7.1-gjb8jztz.mjs +0 -1
  788. package/dist/chunks/log-0.7.1-fxt088jb.mjs +0 -1
  789. package/dist/chunks/main-0.7.1-0vqgtt6k.mjs +0 -1
  790. package/dist/chunks/managedEnv-0.7.1-hmbbthb1.mjs +0 -1
  791. package/dist/chunks/mcp-0.7.1-79bgprwt.mjs +0 -17
  792. package/dist/chunks/mcp-0.7.1-fah2dpxt.mjs +0 -1
  793. package/dist/chunks/mcp-0.7.1-y1qkvnjg.mjs +0 -4
  794. package/dist/chunks/mcpb-0.7.1-2dapw2hx.mjs +0 -1
  795. package/dist/chunks/memory-0.7.1-ebb517bx.mjs +0 -3
  796. package/dist/chunks/model-0.7.1-3arjsbnf.mjs +0 -2
  797. package/dist/chunks/model-0.7.1-k3apa82z.mjs +0 -1
  798. package/dist/chunks/node-0.7.1-cdt9e3gn.mjs +0 -12
  799. package/dist/chunks/oauth-0.7.1-x8bhb9nz.mjs +0 -1
  800. package/dist/chunks/openaiShim-0.7.1-z2g9xzcq.mjs +0 -14
  801. package/dist/chunks/output-style-0.7.1-6pse3vv2.mjs +0 -1
  802. package/dist/chunks/package-GCDC7LJR-0.7.1-gy8kt96r.mjs +0 -1
  803. package/dist/chunks/parseConnectUrl-0.7.1-gg6kkfk2.mjs +0 -1
  804. package/dist/chunks/parser-0.7.1-5tt8chsn.mjs +0 -1
  805. package/dist/chunks/passes-0.7.1-b7rbrgkm.mjs +0 -1
  806. package/dist/chunks/permissions-0.7.1-nenep4c2.mjs +0 -1
  807. package/dist/chunks/permissions-0.7.1-zrdsqk21.mjs +0 -3
  808. package/dist/chunks/plan-0.7.1-85aa5f5y.mjs +0 -1
  809. package/dist/chunks/plist-0.7.1-qp82sdff.mjs +0 -1
  810. package/dist/chunks/plugin-0.7.1-je74p85s.mjs +0 -29
  811. package/dist/chunks/pluginStartupCheck-0.7.1-mvcejqcq.mjs +0 -1
  812. package/dist/chunks/plugins-0.7.1-m3wj9r06.mjs +0 -9
  813. package/dist/chunks/preActionHook-0.7.1-r7jz8sy6.mjs +0 -2
  814. package/dist/chunks/print-0.7.1-gsrx6f37.mjs +0 -57
  815. package/dist/chunks/privacy-settings-0.7.1-7kr3zzrk.mjs +0 -1
  816. package/dist/chunks/process-0.7.1-2776jpyn.mjs +0 -1
  817. package/dist/chunks/processBashCommand-0.7.1-5x2898xr.mjs +0 -1
  818. package/dist/chunks/processSlashCommand-0.7.1-dr876jz7.mjs +0 -9
  819. package/dist/chunks/prompt-0.7.1-7af9fgbe.mjs +0 -1
  820. package/dist/chunks/prompt-0.7.1-dw1fgpwq.mjs +0 -1
  821. package/dist/chunks/prompts-0.7.1-nbx9nyb5.mjs +0 -1
  822. package/dist/chunks/protocolHandler-0.7.1-qy15fxqj.mjs +0 -13
  823. package/dist/chunks/provider-0.7.1-0m9xffbf.mjs +0 -2
  824. package/dist/chunks/providerProfiles-0.7.1-9cc9sgnd.mjs +0 -1
  825. package/dist/chunks/providerValidation-0.7.1-jfy1rksg.mjs +0 -6
  826. package/dist/chunks/rate-limit-options-0.7.1-pxbxm170.mjs +0 -1
  827. package/dist/chunks/registerSubcommands-0.7.1-jwn9g5j8.mjs +0 -34
  828. package/dist/chunks/registry-0.7.1-gkweb7m4.mjs +0 -1
  829. package/dist/chunks/release-notes-0.7.1-h92ctc9v.mjs +0 -5
  830. package/dist/chunks/reload-plugins-0.7.1-ke9qvkbd.mjs +0 -2
  831. package/dist/chunks/remote-env-0.7.1-36s0b9x3.mjs +0 -1
  832. package/dist/chunks/remoteBridgeCore-0.7.1-fz71fhjn.mjs +0 -1
  833. package/dist/chunks/remoteSession-0.7.1-syy16saz.mjs +0 -1
  834. package/dist/chunks/rename-0.7.1-pp0vxpxy.mjs +0 -1
  835. package/dist/chunks/replBridgeHandle-0.7.1-ym42egv0.mjs +0 -1
  836. package/dist/chunks/replLauncher-0.7.1-jk6m635f.mjs +0 -1
  837. package/dist/chunks/resume-0.7.1-2q37w3de.mjs +0 -2
  838. package/dist/chunks/rewind-0.7.1-3t95cz8k.mjs +0 -1
  839. package/dist/chunks/rootOptions-0.7.1-4veg3eep.mjs +0 -1
  840. package/dist/chunks/sandbox-adapter-0.7.1-jy6rr7mq.mjs +0 -1
  841. package/dist/chunks/sandbox-toggle-0.7.1-aqpewqqh.mjs +0 -1
  842. package/dist/chunks/session-0.7.1-y1xwe626.mjs +0 -2
  843. package/dist/chunks/sessionDiscovery-0.7.1-nvdbjq60.mjs +0 -1
  844. package/dist/chunks/sessionFileAccessHooks-0.7.1-bbx6cg5g.mjs +0 -1
  845. package/dist/chunks/sessionStorage-0.7.1-n4dhbzem.mjs +0 -1
  846. package/dist/chunks/settings-0.7.1-pecm5dv1.mjs +0 -1
  847. package/dist/chunks/setup-0.7.1-gqpnyen6.mjs +0 -5
  848. package/dist/chunks/sinks-0.7.1-cq5f40zp.mjs +0 -1
  849. package/dist/chunks/skills-0.7.1-5qchbh6n.mjs +0 -1
  850. package/dist/chunks/startupProfiler-0.7.1-q1mwtr5f.mjs +0 -1
  851. package/dist/chunks/startupUpdateCheck-0.7.1-ncttf1vf.mjs +0 -1
  852. package/dist/chunks/state-0.7.1-34txp9ap.mjs +0 -1
  853. package/dist/chunks/stats-0.7.1-v8hnv2t1.mjs +0 -6
  854. package/dist/chunks/status-0.7.1-g7ngz48p.mjs +0 -1
  855. package/dist/chunks/stickers-0.7.1-y53mmmdh.mjs +0 -1
  856. package/dist/chunks/subprocessEnv-0.7.1-1t25wkzh.mjs +0 -1
  857. package/dist/chunks/tasks-0.7.1-2yky7fwg.mjs +0 -1
  858. package/dist/chunks/teamHelpers-0.7.1-0wyvqbjp.mjs +0 -1
  859. package/dist/chunks/teammateModeSnapshot-0.7.1-cgf3g4j9.mjs +0 -1
  860. package/dist/chunks/teleport-0.7.1-353z35fj.mjs +0 -1
  861. package/dist/chunks/terminalSetup-0.7.1-nw69mcxs.mjs +0 -1
  862. package/dist/chunks/theme-0.7.1-nzx60j7s.mjs +0 -1
  863. package/dist/chunks/thinkback-0.7.1-9jvy533f.mjs +0 -1
  864. package/dist/chunks/thinkback-play-0.7.1-m2kx6nfn.mjs +0 -1
  865. package/dist/chunks/toolPool-0.7.1-qywync64.mjs +0 -1
  866. package/dist/chunks/toolSearch-0.7.1-snw68bwv.mjs +0 -1
  867. package/dist/chunks/tools-0.7.1-5btn07a6.mjs +0 -1
  868. package/dist/chunks/trustedDevice-0.7.1-hma4k1vw.mjs +0 -1
  869. package/dist/chunks/turndown.cjs-0.7.1-k8n9qvhg.mjs +0 -69
  870. package/dist/chunks/types-0.7.1-9mrce42m.mjs +0 -1
  871. package/dist/chunks/ultrareviewCommand-0.7.1-h5k5xdws.mjs +0 -4
  872. package/dist/chunks/update-0.7.1-tqtsan40.mjs +0 -86
  873. package/dist/chunks/upgrade-0.7.1-b5ktjkp0.mjs +0 -1
  874. package/dist/chunks/upload-0.7.1-5910sy8s.mjs +0 -7
  875. package/dist/chunks/upstreamproxy-0.7.1-5fyja3cf.mjs +0 -14
  876. package/dist/chunks/url-handler-napi-0.7.1-paf3bx7g.mjs +0 -1
  877. package/dist/chunks/usage-0.7.1-2j0rqtzd.mjs +0 -1
  878. package/dist/chunks/util-0.7.1-62f399jk.mjs +0 -1
  879. package/dist/chunks/utils-0.7.1-vdqtwham.mjs +0 -1
  880. package/dist/chunks/vim-0.7.1-ry9xqmcy.mjs +0 -1
  881. package/dist/chunks/watcher-0.7.1-wdz2r62h.mjs +0 -1
  882. package/dist/chunks/wiki-0.7.1-sdq9xgrk.mjs +0 -132
  883. package/dist/chunks/worktree-0.7.1-e7sx150a.mjs +0 -1
  884. package/dist/chunks/worktreeModeEnabled-0.7.1-s0gwv1pz.mjs +0 -1
  885. package/dist/chunks/wrapper-0.7.1-3xjvgc6e.mjs +0 -7
  886. /package/dist/chunks/{cli-0.7.1-75dek4k4.mjs → cli-0.7.2-1xbehmgb.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.7.1-tyzsanrm.mjs → cli-0.7.2-5c89p68w.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.7.1-3y886h54.mjs → cli-0.7.2-796x24s1.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.7.1-3q21cp2p.mjs → cli-0.7.2-b9pdb0nv.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.7.1-fs00krs3.mjs → cli-0.7.2-d5fbych4.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.7.1-cj9e468m.mjs → cli-0.7.2-q9twb2tn.mjs} +0 -0
  892. /package/dist/chunks/{cli-0.7.1-fzf4j9hh.mjs → cli-0.7.2-yppcb6em.mjs} +0 -0
@@ -1,1422 +0,0 @@
1
- import"./cli-0.7.1-xjaebq17.mjs";import{n as a,p as DG,q as IG,r as oB,s as nB}from"./cli-0.7.1-dw2af4d2.mjs";import"./cli-0.7.1-mky7mf90.mjs";import"./cli-0.7.1-3y886h54.mjs";import{B as AZ,C as vZ,D as UZ,I as mZ,J as PG,K as KG,z as _I}from"./cli-0.7.1-cekfrrmq.mjs";import"./cli-0.7.1-5fsqggqk.mjs";import{U as MI,V as LZ,X as kZ}from"./cli-0.7.1-dfhpzav5.mjs";import{za as TG}from"./cli-0.7.1-jdjhwj9r.mjs";import"./cli-0.7.1-m00xwwcc.mjs";import"./cli-0.7.1-ef7vcnec.mjs";import"./cli-0.7.1-fs00krs3.mjs";import{Ta as YG}from"./cli-0.7.1-b8rrjfjb.mjs";import"./cli-0.7.1-tyzsanrm.mjs";import{Kb as eZ,Lb as Gb}from"./cli-0.7.1-j69yv5wv.mjs";import"./cli-0.7.1-8vpv5q4z.mjs";import{gc as NZ,hc as AY}from"./cli-0.7.1-21s047ay.mjs";import"./cli-0.7.1-dx2b4mwt.mjs";import"./cli-0.7.1-a4x1wq4z.mjs";import{Dc as wB,Ec as iC}from"./cli-0.7.1-w6mgjapm.mjs";import"./cli-0.7.1-k9w4ggkt.mjs";import"./cli-0.7.1-9sy5d7re.mjs";import"./cli-0.7.1-1ts20eyt.mjs";import"./cli-0.7.1-gc8m2z4s.mjs";import"./cli-0.7.1-zt8sj5mh.mjs";import"./cli-0.7.1-q22d0nn7.mjs";import{Jh as gB,Kh as BB,Lh as JI,Oh as kC}from"./cli-0.7.1-mvq52b0y.mjs";import"./cli-0.7.1-xvp3ptcj.mjs";import{$k as mC,$t as AB,AC as KY,AH as fZ,BH as iZ,BM as QZ,BS as uB,Bj as aI,By as lG,CD as JZ,CH as oZ,CM as NY,CS as MB,Cq as YZ,DS as oC,Dq as cY,Dy as oG,EF as qB,EH as nZ,Ej as TZ,Ek as Qg,FF as tC,Fk as Qb,GN as sZ,Gj as SY,HD as hY,HN as qY,ID as RZ,JH as xY,KD as FY,Kl as Cb,LB as pZ,MB as MY,MF as fB,MR as rZ,Mu as ag,NF as gY,Nu as VC,ON as S,Ou as fg,PN as e,Pt as RI,Pu as ig,Qu as og,RP as jG,SK as Xg,St as NB,Su as yC,TE as KZ,Tu as ng,VE as zY,VK as db,Vq as WZ,Vt as FI,Wk as rg,Wq as HY,XI as bg,XN as zI,Xk as tg,Xq as wG,Xu as cC,Xw as sI,YK as rG,Yk as dI,Yt as jB,Yw as Wb,Zk as eg,_I as Cg,aJ as Yg,aS as tZ,au as yZ,bL as Vg,bu as lY,cO as uI,cS as nG,ck as hg,dL as yg,eL as cg,ek as hb,eo as Bg,er as XZ,fE as EZ,fL as tG,fo as cb,gE as _Z,gL as Hg,gr as VZ,hO as QI,iE as _B,iP as $G,ik as $g,jL as Jb,jk as gC,kk as Fg,kr as jg,ku as cZ,lJ as Wg,lk as Fb,ln as xI,mE as aB,mj as Pg,mk as zg,mn as uY,mr as Ag,nk as zb,np as vI,nu as dY,oJ as lb,oP as AG,op as yY,ou as HZ,pp as BG,pu as JY,qp as iG,qr as vg,qy as lZ,rM as UI,ry as RY,sI as ZG,tI as GB,uH as OG,uI as IB,uQ as jZ,uj as CC,vH as SZ,vI as LC,wH as rI,wQ as f,wl as iI,xC as dZ,xH as tI,xM as wY,xl as oI,yH as Xb,yQ as hG,yR as kB,yl as nI,zH as aZ,zR as SB}from"./cli-0.7.1-k3wrch69.mjs";import{ES as fG,FS as Yb}from"./cli-0.7.1-pj2bwget.mjs";import"./cli-0.7.1-2g1mhmsb.mjs";import{_S as Zg,kT as Hb}from"./cli-0.7.1-3eywakdr.mjs";import{oT as iB,qT as BY}from"./cli-0.7.1-yevrh4dk.mjs";import{AT as LB,sT as qG,tT as KI,vT as vB,wT as UB,xT as mB}from"./cli-0.7.1-j21wk954.mjs";import"./cli-0.7.1-kwrsgjrs.mjs";import"./cli-0.7.1-a24fwkdp.mjs";import"./cli-0.7.1-hdhwyta7.mjs";import"./cli-0.7.1-q32097ec.mjs";import"./cli-0.7.1-d566f9dm.mjs";import{OU as fI,RU as bb}from"./cli-0.7.1-pfb1t2vv.mjs";import"./cli-0.7.1-57x4wzc4.mjs";import"./cli-0.7.1-thfkavh1.mjs";import"./cli-0.7.1-9jzbjqh3.mjs";import"./cli-0.7.1-6zk672en.mjs";import{$V as zZ,YV as hZ,ZV as FZ,aW as QY}from"./cli-0.7.1-r3ykfxwq.mjs";import"./cli-0.7.1-q27rb9ya.mjs";import"./cli-0.7.1-m4gfza1p.mjs";import{jX as wZ,kX as jY}from"./cli-0.7.1-825msf79.mjs";import"./cli-0.7.1-k2r0wewv.mjs";import"./cli-0.7.1-vc1w3czg.mjs";import{WZ as OI,YZ as Zb}from"./cli-0.7.1-24da357x.mjs";import"./cli-0.7.1-9fk02985.mjs";import"./cli-0.7.1-qkcd1qhy.mjs";import"./cli-0.7.1-cjg6h2ca.mjs";import"./cli-0.7.1-bkp0aqdj.mjs";import"./cli-0.7.1-3ehkpebq.mjs";import"./cli-0.7.1-71g0e9ze.mjs";import"./cli-0.7.1-rtpvm7nh.mjs";import"./cli-0.7.1-rn9q2rxz.mjs";import"./cli-0.7.1-8m2w4jnj.mjs";import"./cli-0.7.1-pzmph1bb.mjs";import{X1 as cG,Z1 as xB}from"./cli-0.7.1-1188jq4p.mjs";import{_1 as IY}from"./cli-0.7.1-a4zjaz57.mjs";import"./cli-0.7.1-cxtqva68.mjs";import"./cli-0.7.1-qbg9kspq.mjs";import{m2 as SI,p2 as PZ,t2 as MZ}from"./cli-0.7.1-xn7c84qw.mjs";import"./cli-0.7.1-4ft7hrdc.mjs";import{$4 as bZ,C6 as pB,E6 as EB,F4 as MG,M2 as gZ,O2 as WY,Q4 as uG,U3 as BZ,V4 as QB,W2 as FB,X2 as aC,X4 as fC,a5 as VY,f4 as AI,g4 as ZZ,h4 as XY,p6 as CZ,x4 as zB}from"./cli-0.7.1-0qwnf6wz.mjs";import"./cli-0.7.1-mr2e3dyv.mjs";import{$6 as zG,_6 as Q}from"./cli-0.7.1-2q24e8yf.mjs";import"./cli-0.7.1-gaqzbbr4.mjs";import"./cli-0.7.1-mcb9z58y.mjs";import"./cli-0.7.1-hkjqfdbm.mjs";import{$9 as OZ,$_ as eB,Baa as eG,E_ as LG,Gba as WI,J_ as Ig,Oaa as dG,Rca as pI,Waa as gg,Z8 as Rg,_aa as VB,_da as HG,a$ as YY,a_ as jI,b_ as tB,bea as EI,c9 as $Z,cba as OC,nea as GG,pba as SG,s8 as NI,tca as mI,u8 as CY,u9 as Kg,vea as xG,w9 as PI,wba as RG,wca as VG,x9 as TI,xca as IZ,yaa as t,zba as GZ}from"./cli-0.7.1-jpemgywy.mjs";import{Iea as Dg,Sea as IC,Xea as CG,afa as GY}from"./cli-0.7.1-ebdykdv4.mjs";import"./cli-0.7.1-wqk4b4mn.mjs";import"./cli-0.7.1-rz6n3grv.mjs";import{Afa as TB,Hfa as wI,vfa as NG}from"./cli-0.7.1-bmqpkffh.mjs";import{Yfa as XB,_fa as o,aga as pg,bga as XI,cga as WC}from"./cli-0.7.1-rt9yw2nh.mjs";import{fga as hI,gga as _C}from"./cli-0.7.1-zswdgbrk.mjs";import{Tga as $I,Uga as Bb}from"./cli-0.7.1-4pp5s9hy.mjs";import{Vga as U,Yga as XG}from"./cli-0.7.1-q4v2wwpa.mjs";import{$ga as rB,$ha as JG,Bha as yG,Gha as _g,Rha as xg,Yha as k,Zha as qg,bha as bY}from"./cli-0.7.1-7vnqyd9e.mjs";import{cia as sG,fia as yb}from"./cli-0.7.1-qydxc982.mjs";import{mia as EG,pia as DZ,qia as s,ria as aG,sia as Mg,xia as FG}from"./cli-0.7.1-6d8y1qn4.mjs";import{Dia as _G,Fia as QG,Nia as mG}from"./cli-0.7.1-mxjp359f.mjs";import{Dla as JB,Ela as RB,Fla as KB,Kna as hB,Mna as kI,Tna as Gg,Wma as eI,ema as UG,ooa as r,rka as DI,uka as xZ,xka as LI,zka as pG,zna as qZ}from"./cli-0.7.1-356bj7gh.mjs";import"./cli-0.7.1-m42mhk67.mjs";import"./cli-0.7.1-kbyy07ta.mjs";import"./cli-0.7.1-xmj6ck32.mjs";import"./cli-0.7.1-6ta56xg1.mjs";import"./cli-0.7.1-497wkpjf.mjs";import{Vpa as eC,_pa as O}from"./cli-0.7.1-f6nk5cs1.mjs";zG();Bb();r();Xb();EI();XG();iG();pI();Zb();mG();FG();Wb();TI();bb();nG();oG();Cb();Yb();import{readFileSync as qI}from"fs";import{resolve as vG}from"path";async function Vb(G,I,g,B){let{teammate:Z,assistant:C}=B,b=G;if(I.bare)process.env.CLAUDE_CODE_SIMPLE="1";if(b==="code")U("tengu_code_prompt_ignored",{}),console.warn(Q.yellow("Tip: You can launch Claude Code with just `claude`")),b=void 0;if(b&&typeof b==="string"&&!/\s/.test(b)&&b.length>0)U("tengu_single_word_prompt",{length:b.length});let{debug:X=!1,debugToStderr:F=!1,dangerouslySkipPermissions:H,allowDangerouslySkipPermissions:K=!1,tools:d=[],allowedTools:c=[],disallowedTools:J=[],mcpConfig:y=[],permissionMode:h,addDir:w=[],fallbackModel:R,betas:W=[],ide:N=!1,sessionId:u,includeHookEvents:M,includePartialMessages:m}=I;if(I.prefill)OI(I.prefill);let{agents:l,agent:A,outputFormat:V,inputFormat:z}=I,P=I.verbose??VG().verbose,j=I.print,T=I.init??!1,q=I.initOnly??!1,L=I.maintenance??!1;if(g.disableSlashCommands=I.disableSlashCommands||!1,g.taskListId=void 0,g.worktreeOption=fG()?I.worktree:void 0,g.worktreeName=typeof g.worktreeOption==="string"?g.worktreeOption:void 0,g.worktreeEnabled=g.worktreeOption!==void 0,g.worktreeName){let Y=iI(g.worktreeName);if(Y!==null)g.worktreePRNumber=Y,g.worktreeName=void 0}if(g.tmuxEnabled=fG()&&I.tmux===!0,g.tmuxEnabled){if(!g.worktreeEnabled)process.stderr.write(Q.red(`Error: --tmux requires --worktree
2
- `)),process.exit(1);if(PI()==="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 Y=_I(I);g.storedTeammateOpts=Y;let i=Y.agentId||Y.agentName||Y.teamName,E=Y.agentId&&Y.agentName&&Y.teamName;if(i&&!E)process.stderr.write(Q.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
6
- `)),process.exit(1);if(Y.agentId&&Y.agentName&&Y.teamName)Z.getTeammateUtils().setDynamicTeamContext?.({agentId:Y.agentId,agentName:Y.agentName,teamName:Y.teamName,color:Y.agentColor,planModeRequired:Y.planModeRequired??!1,parentSessionId:Y.parentSessionId});if(Y.teammateMode)Z.getTeammateModeSnapshot().setCliTeammateModeOverride?.(Y.teammateMode)}if(g.sdkUrl=I.sdkUrl??void 0,g.effectiveIncludePartialMessages=!!m||_G(process.env.CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES),M||_G(process.env.CLAUDE_CODE_REMOTE))sI(!0);if(g.sdkUrl){if(!z)z="stream-json";if(!V)V="stream-json";if(I.verbose===void 0)P=!0;if(!I.print)j=!0}let v=I.teleport??null,x=I.remote,D=x===!0?"":x??null,p=I.remoteControl??I.rc,n=typeof p==="string"&&p.length>0?p:void 0;if(u){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(!g.sdkUrl){let Y=lG(u);if(!Y)process.stderr.write(Q.red(`Error: Invalid session ID. Must be a valid UUID.
8
- `)),process.exit(1);if(aI(Y))process.stderr.write(Q.red(`Error: Session ID ${Y} is already in use.
9
- `)),process.exit(1)}}if(g.fileSpecs=I.file,g.fileSpecs&&g.fileSpecs.length>0){let Y=fI();if(!Y)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||DI(),E=tI(g.fileSpecs);if(E.length>0){let gb={baseUrl:(HG()?.transport==="anthropic"?HG()?.baseUrl:void 0)||$I().BASE_API_URL,oauthToken:Y,sessionId:i};g.fileDownloadPromise=rI(E,gb)}}let _=UG();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 $=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 Y=vG(I.systemPromptFile);$=qI(Y,"utf8")}catch(Y){if(aG(Y)==="ENOENT")process.stderr.write(Q.red(`Error: System prompt file not found: ${vG(I.systemPromptFile)}
13
- `)),process.exit(1);process.stderr.write(Q.red(`Error reading system prompt file: ${s(Y)}
14
- `)),process.exit(1)}}let gG=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 Y=vG(I.appendSystemPromptFile);gG=qI(Y,"utf8")}catch(Y){if(aG(Y)==="ENOENT")process.stderr.write(Q.red(`Error: Append system prompt file not found: ${vG(I.appendSystemPromptFile)}
16
- `)),process.exit(1);process.stderr.write(Q.red(`Error reading append system prompt file: ${s(Y)}
17
- `)),process.exit(1)}}if(BG()&&g.storedTeammateOpts?.agentId&&g.storedTeammateOpts?.agentName&&g.storedTeammateOpts?.teamName){let Y=Z.getTeammatePromptAddendum().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;gG=gG?`${gG}
18
-
19
- ${Y}`:Y}return{prompt:b,debug:X,debugToStderr:F,dangerouslySkipPermissions:H,allowDangerouslySkipPermissions:K,baseTools:d,allowedTools:c,disallowedTools:J,mcpConfig:y,permissionModeCli:h,addDir:w,fallbackModel:R,betas:W,ide:N,sessionId:u,includeHookEvents:M,includePartialMessages:m,outputFormat:V,inputFormat:z,verbose:P,print:j,init:T,initOnly:q,maintenance:L,agentsJson:l,agentCli:A,systemPrompt:$,appendSystemPrompt:gG,teleport:v,remote:D,remoteControlOption:p,remoteControlName:n,isNonInteractiveSession:_}}zG();cb();r();XG();db();Jb();r();Hb();JG();mG();FG();Ig();lb();TI();yb();r();gg();import{resolve as Rb}from"path";async function Kb(G,I){let{options:g,ctx:B,permissionModeCli:Z,dangerouslySkipPermissions:C,allowDangerouslySkipPermissions:b,baseTools:X,allowedTools:F,disallowedTools:H,mcpConfig:K,addDir:d,isNonInteractiveSession:c,inputFormat:J,outputFormat:y}=G,{autoModeStateModule:h}=I,{mode:w,notification:R}=Cg({permissionModeCli:Z,dangerouslySkipPermissions:C});if(eI(w==="bypassPermissions"),g.enableAutoMode||Z==="auto"||w==="auto"||!Z&&Wg())h?.setAutoModeFlagCli(!0);let W={};if(K&&K.length>0){let q=K.map((x)=>x.trim()).filter((x)=>x.length>0),L={},v=[];for(let x of q){let D=null,p=[],n=LG(x);if(n){let _=yg({configObject:n,filePath:"command line",expandVars:!0,scope:"dynamic"});if(_.config)D=_.config.mcpServers;else p=_.errors}else{let _=Rb(x),$=cg({filePath:_,expandVars:!0,scope:"dynamic"});if($.config)D=$.config.mcpServers;else p=$.errors}if(p.length>0)v.push(...p);else if(D)L={...L,...D}}if(v.length>0){let x=v.map((D)=>`${D.path?D.path+": ":""}${D.message}`).join(`
20
- `);k(`--mcp-config validation failed (${v.length} errors): ${x}`,{level:"error"}),process.stderr.write(`Error: Invalid MCP configuration:
21
- ${x}
22
- `),process.exit(1)}if(Object.keys(L).length>0){let x=Object.entries(L).filter(([,$])=>$.type!=="sdk").map(([$])=>$),D=null;if(D)process.stderr.write(`Error: ${D}
23
- `),process.exit(1);let p=Bg(L,($)=>({...$,scope:"dynamic"})),{allowed:n,blocked:_}=rG(p);if(_.length>0)process.stderr.write(`Warning: MCP ${dG(_.length,"server")} blocked by enterprise policy: ${_.join(", ")}
24
- `);W={...W,...n}}}let N=g.strictMcpConfig||!1;if(tG()){if(N)process.stderr.write(Q.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(W&&!Hg(W))process.stderr.write(Q.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}Gg(d);let u,M=await Yg({allowedToolsCli:F,disallowedToolsCli:H,baseToolsCli:X,permissionMode:w,allowDangerouslySkipPermissions:b,addDirs:d}),m=M.toolPermissionContext,{warnings:l,dangerousPermissions:A,overlyBroadBashPermissions:V}=M;if(A.length>0)m=bg(m);l.forEach((q)=>{console.error(q)}),Zg();let z=c&&!N&&!tG()&&!QG()?Xg().then((q)=>{let{allowed:L,blocked:v}=rG(q);if(v.length>0)process.stderr.write(`Warning: claude.ai MCP ${dG(v.length,"server")} blocked by enterprise policy: ${v.join(", ")}
25
- `);return L}):Promise.resolve({});k("[STARTUP] Loading MCP configs...");let P=Date.now(),j={current:void 0},T=(N||QG()?Promise.resolve({servers:{},errors:[]}):Vg(W)).then((q)=>{return j.current=Date.now()-P,q});if(J&&J!=="text"&&J!=="stream-json")console.error(`Error: Invalid input format "${J}".`),process.exit(1);if(J==="stream-json"&&y!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(B.sdkUrl){if(J!=="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(g.replayUserMessages){if(J!=="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(B.effectiveIncludePartialMessages){if(!c||y!=="stream-json")sG("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(g.sessionPersistence===!1&&!c)sG("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);return{permissionMode:w,permissionModeNotification:R,dynamicMcpConfig:W,strictMcpConfig:N,devChannels:u,toolPermissionContext:m,overlyBroadBashPermissions:V,claudeaiConfigPromise:z,mcpConfigPromise:T,mcpConfigResolvedRef:j}}zG();r();QI();oC();AB();LB();iG();XG();_C();JG();mG();Ig();xG();iC();fC();aC();r();nG();WI();oG();function lg(){}eG();zb();Fb();hb();Qb();Kg();e();var dg=5,Jg=30,wb=`After you finish implementing the change:
26
- 1. **Code review** — Invoke the \`${Qg}\` 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 Nb(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 \`${Fg}\` 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 ${dg}–${Jg} 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 ${dg}; hundreds of files → closer to ${Jg}. 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 \`${zg}\` 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 \`${hg}\` 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 \`${t}\` 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
- ${wb}
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 jb="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.",Ab=`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 wg(){S({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:Ab}];if(!await Rg())return[{type:"text",text:jb}];return[{type:"text",text:Nb(I)}]}})}eG();vg();e();var vb={med:"medium"},Ub=new RegExp(`^(${wG.map((G)=>G.slice(0,3)).join("|")})[a-z]*$`,"i");function mb(G){let I=G.trim().toLowerCase(),g=vb[I]??I;return wG.includes(g)?g:void 0}function Lb(G){let I=G.trim().split(/\s+/).filter(Boolean),g=I[0]??"",B=!1,Z=!1,C=[];for(let F of I)if(/^--comment$/i.test(F))B=!0;else if(/^--fix$/i.test(F))Z=!0;else C.push(F);if(g.toLowerCase()==="ultra")return{explicit:void 0,target:C.slice(1).join(" "),comment:B,fix:Z,unrecognizedLevel:void 0,ultraFallback:!0};let b=C[0]??"",X=mb(b);if(X!==void 0)return{explicit:X,target:C.slice(1).join(" "),comment:B,fix:Z,unrecognizedLevel:void 0,ultraFallback:!1};return{explicit:void 0,target:C.join(" "),comment:B,fix:Z,unrecognizedLevel:b&&Ub.test(b)?b:void 0,ultraFallback:!1}}function kb(G,I){let g=G.ultraFallback?"max":G.explicit,B=I?.options?.mainLoopModel,Z=I?.getAppState?.().effortValue,C=B?jg(B,g??Z):g??Z;if(C===void 0)return"medium";return Ag(C)}var GI="## Phase 0 — Gather the diff\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. If there are\nuncommitted changes, or the range diff is empty, also run `git diff HEAD` and\ninclude the working-tree changes in scope — the review often runs before the\ncommit. If a PR number, branch name, or file path was passed as an argument,\nreview that target instead. Treat this diff as the review scope.\n",Sb=`### Angle A — line-by-line diff scan
104
-
105
- Read every hunk in the diff, line by line. Then Read the enclosing function for
106
- each hunk — bugs in unchanged lines of a touched function are in scope (the PR
107
- re-exposes or fails to fix them). For every line ask: what input, state, timing,
108
- or platform makes this line wrong? Look for inverted/wrong conditions,
109
- off-by-one, null/undefined deref, missing \`await\`, falsy-zero checks,
110
- wrong-variable copy-paste, error swallowed in catch, unescaped regex metachars.
111
- `,ub=`### Angle B — removed-behavior auditor
112
-
113
- For every line the diff DELETES or replaces, name the invariant or behavior it
114
- enforced, then search the new code for where that invariant is re-established.
115
- If you can't find it, that's a candidate: a removed guard, a dropped error
116
- path, a narrowed validation, a deleted test that was covering a real case.
117
- `,Mb=`### Angle C — cross-file tracer
118
-
119
- For each function the diff changes, find its callers (Grep for the symbol) and
120
- check whether the change breaks any call site: a new precondition, a changed
121
- return shape, a new exception, a timing/ordering dependency. Also check callees:
122
- does a parallel change in the same PR make a call unsafe?
123
- `,xb=`### Angle D — language-pitfall specialist
124
-
125
- Scan for the classic pitfalls of the diff's language/framework — for example:
126
- JS falsy-zero, \`==\` coercion, closure-captured loop var; Python mutable default
127
- args, late-binding closures; Go nil-map write, range-var capture; SQL injection;
128
- timezone/DST drift; float equality. Flag any instance the diff introduces.
129
- `,qb=`### Angle E — wrapper/proxy correctness
130
-
131
- When the PR adds or modifies a type that wraps another (cache, proxy, decorator,
132
- adapter): check that every method routes to the wrapped instance and not back
133
- through a registry/session/global — e.g. a caching provider holding a
134
- \`delegate\` field that resolves IDs via \`session.get(...)\` instead of
135
- \`delegate.get(...)\` will re-enter the cache or recurse. Also check that the
136
- wrapper forwards all the methods the callers actually use.
137
- `,II=`${Sb}
138
- ${ub}
139
- ${Mb}`,Db=`${II}
140
- ${xb}
141
- ${qb}`,gI=`### Reuse
142
-
143
- The angles above hunt for bugs; this one and the next two hunt for cleanup in
144
- the changed code. Flag new code that re-implements something the codebase
145
- already has — Grep shared/utility modules and files adjacent to the change,
146
- and name the existing helper to call instead.
147
- `,BI=`### Simplification
148
-
149
- Flag unnecessary complexity the diff adds: redundant or derivable state,
150
- copy-paste with slight variation, deep nesting, dead code left behind. Name
151
- the simpler form that does the same job.
152
- `,ZI=`### Efficiency
153
-
154
- Flag wasted work the diff introduces: redundant computation or repeated I/O,
155
- independent operations run sequentially, blocking work added to startup or
156
- hot paths. Also flag long-lived objects built from closures or captured
157
- environments — they keep the entire enclosing scope alive for the object's
158
- lifetime (a memory leak when that scope holds large values); prefer a
159
- class/struct that copies only the fields it needs. Name the cheaper
160
- alternative.
161
- `,bI=`### Altitude
162
-
163
- Check that each change is implemented at the right depth, not as a fragile
164
- bandaid. Special cases layered on shared infrastructure are a sign the fix
165
- isn't deep enough — prefer generalizing the underlying mechanism over adding
166
- special cases.
167
- `,CI="Cleanup and altitude candidates use the same `file`/`line`/`summary` shape; in\n`failure_scenario`, state the concrete cost (what is duplicated, wasted, or\nharder to maintain) instead of a crash. Correctness bugs always outrank\ncleanup and altitude findings when the output cap forces a cut.\n",$b=`- **CONFIRMED** — can name the inputs/state that trigger it and the wrong
168
- output or crash. Quote the line.
169
- - **PLAUSIBLE** — mechanism is real, trigger is uncertain (timing, env,
170
- config). State what would confirm it.
171
- - **REFUTED** — factually wrong (code doesn't say that) or guarded elsewhere.
172
- Quote the line that proves it.`,Ob=`**PLAUSIBLE by default** — do not refute a candidate for being "speculative" or
173
- "depends on runtime state" when the state is realistic: concurrency races,
174
- nil/undefined on a rare-but-reachable path (error handler, cold cache, missing
175
- optional field), falsy-zero treated as missing, off-by-one on a boundary the
176
- code does not exclude, retry storms / partial failures, regex/allowlist that
177
- lost an anchor. These are PLAUSIBLE.
178
-
179
- **REFUTED** only when constructible from the code: factually wrong (quote the
180
- actual line); provably impossible (type/constant/invariant — show it); already
181
- handled in this diff (cite the guard); or pure style with no observable effect.`,Ug=`## Phase 2 — Verify (1-vote, 3-state)
182
-
183
- Dedup candidates that point at the same line/mechanism, keeping the one with
184
- the most concrete failure scenario. For each remaining candidate, run **one
185
- verifier** via the ${t} tool: give it the diff, the relevant
186
- file(s), and the candidate, and have it return exactly one of:
187
-
188
- ${$b}
189
-
190
- Keep candidates where the vote is CONFIRMED or PLAUSIBLE.
191
- `,Pb=`## Phase 2 — Verify (1-vote, recall-biased)
192
-
193
- Dedup near-duplicates (same defect, same location, same reason → keep one). For
194
- each remaining candidate, run **one verifier** via the ${t} tool:
195
- give it the diff, the relevant file(s), and the candidate; it returns exactly
196
- one of **CONFIRMED / PLAUSIBLE / REFUTED**.
197
-
198
- ${Ob}
199
-
200
- Keep **CONFIRMED and PLAUSIBLE**. Drop REFUTED.
201
- `,Tb=`moved/extracted code that dropped a guard
202
- or anchor; second-tier footguns (dataclass default evaluated once, \`hash()\`
203
- non-determinism, lock-scope shrink, predicate methods with side effects);
204
- setup/teardown asymmetry in tests; config defaults flipped.`,pb=`## Phase 3 — Sweep for gaps
205
-
206
- Run **one more finder** as a fresh reviewer who has the verified list. Re-read
207
- the diff and enclosing functions looking ONLY for defects not already listed.
208
- Do not re-derive or re-confirm anything already there — the job is gaps. Focus
209
- on what the first pass tends to miss: ${Tb}
210
-
211
- Surface **up to 8 additional candidates**, each naming a defect not already on
212
- the list. If nothing new, return an empty sweep — do not pad.
213
- `,YI=(G)=>`## Output
214
-
215
- Return findings as a JSON array of at most ${G} objects:
216
-
217
- \`\`\`json
218
- [
219
- {
220
- "file": "path/to/file.ext",
221
- "line": 123,
222
- "summary": "one-sentence statement of the bug",
223
- "failure_scenario": "concrete inputs/state → wrong output/crash"
224
- }
225
- ]
226
- \`\`\`
227
-
228
- Ranked most-severe first. If more than ${G} survive, keep the ${G} most
229
- severe. If nothing survives verification, return \`[]\`.
230
- `,Eb=`\`low effort → 1 diff pass → no verify → ≤4 findings\`
231
-
232
- ## Turn 1 — read
233
-
234
- One tool call: read the unified diff (\`git diff @{upstream}...HEAD; git diff HEAD\`
235
- to cover both committed and uncommitted changes, or \`git diff main...HEAD\` /
236
- the target passed as an argument). Skip test/fixture
237
- hunks (\`test/\`, \`spec/\`, \`__tests__/\`, \`*_test.*\`, \`*.test.*\`,
238
- \`fixtures/\`, \`testdata/\`) — test-file changes are not reviewed at this level.
239
- No subagents, no full-file reads.
240
-
241
- ## Turn 2 — findings
242
-
243
- Flag runtime-correctness bugs visible from the hunk alone: inverted/wrong
244
- condition, off-by-one, null/undefined deref where adjacent lines show the value
245
- can be absent, removed guard, falsy-zero check, missing \`await\`,
246
- wrong-variable copy-paste, error swallowed in a catch that should propagate.
247
- Also flag — still from the hunk alone — new code that duplicates an existing
248
- helper visible in the diff context, and dead code the diff leaves behind.
249
-
250
- Do **not** flag style, naming, perf, missing tests, or anything outside the
251
- hunk.
252
-
253
- Output at most **4 findings**, most-severe first, one line each:
254
- \`path/to/file.ext:123 — what's wrong and the concrete failure\`. If nothing
255
- qualifies, output exactly \`(none)\`.
256
- `,_b=`\`medium effort → 3+4 angles × 6 candidates → 1-vote verify → ≤8 findings\`
257
-
258
- You are reviewing for **precision** at medium effort: every finding you surface
259
- should be one a maintainer would act on.
260
-
261
- ${GI}
262
- ## Phase 1 — Find candidates (3 correctness angles + 3 cleanup angles + 1 altitude angle, up to 6 each)
263
-
264
- Run **7 independent finder angles** via the ${t} tool. Each
265
- surfaces **up to 6 candidate findings** with \`file\`, \`line\`, a one-line
266
- \`summary\`, and a concrete \`failure_scenario\`.
267
-
268
- ${II}
269
- ${gI}
270
- ${BI}
271
- ${ZI}
272
- ${bI}
273
- ${CI}
274
- Pass every candidate with a nameable failure scenario through — finders that
275
- silently drop half-believed candidates bypass the verify step and are the
276
- dominant cause of misses.
277
-
278
- ${Ug}
279
- ${YI(8)}`,ab=`\`high effort → 3+4 angles × 6 candidates → 1-vote verify (recall-biased) → ≤10 findings\`
280
-
281
- You are reviewing for **recall** at high effort: catch every real bug a careful
282
- reviewer would catch in one sitting. At this level, catching real bugs matters
283
- more than avoiding false positives. Err on the side of surfacing.
284
-
285
- ${GI}
286
- ## Phase 1 — Find candidates (3 correctness angles + 3 cleanup angles + 1 altitude angle, up to 6 each)
287
-
288
- Run **7 independent finder angles** via the ${t} tool. Each
289
- surfaces **up to 6 candidate findings** with \`file\`, \`line\`, a one-line
290
- \`summary\`, and a concrete \`failure_scenario\`.
291
-
292
- ${II}
293
- ${gI}
294
- ${BI}
295
- ${ZI}
296
- ${bI}
297
- ${CI}
298
- Pass every candidate with a nameable failure scenario through — finders that
299
- silently drop half-believed candidates bypass the verify step and are the
300
- dominant cause of misses.
301
-
302
- ${Pb}
303
- ${YI(10)}`,Ng=(G)=>`\`${G} effort → 5+4 angles × 8 candidates → 1-vote verify → sweep → ≤15 findings\`
304
-
305
- You are reviewing for **recall** at ${G==="max"?"maximum":"extra-high"} effort: catch every real bug. At
306
- this level, catching real bugs matters more than avoiding false positives — a
307
- missed bug ships. Err on the side of surfacing.
308
-
309
- ${GI}
310
- ## Phase 1 — Find candidates (5 correctness angles + 3 cleanup angles + 1 altitude angle, up to 8 each)
311
-
312
- Run **9 independent finder angles** via the ${t} tool. Each
313
- surfaces **up to 8 candidate findings**. Do NOT let one angle's conclusions
314
- suppress another's — if two angles flag the same line for different reasons,
315
- record both.
316
-
317
- ${Db}
318
- ${gI}
319
- ${BI}
320
- ${ZI}
321
- ${bI}
322
- ${CI}
323
- ${Ug}
324
- This is recall mode — a single non-REFUTED vote carries the finding. Do NOT
325
- drop on uncertainty.
326
-
327
- ${pb}
328
- ${YI(15)}`,fb={low:Eb,medium:_b,high:ab,xhigh:Ng("xhigh"),max:Ng("max")},ib=`
329
-
330
- ## Posting to GitHub (--comment)
331
-
332
- The \`--comment\` flag was passed. After producing the findings list, if the
333
- review target is a GitHub PR, post each finding as an inline PR comment via
334
- \`gh api\` (repos/{owner}/{repo}/pulls/{pr}/comments; one call per finding;
335
- include a suggestion block only when it fully fixes the issue). If \`gh\` is
336
- not available in this session, print the findings instead. If the target is
337
- not a PR, print the findings to the terminal and note that \`--comment\` was
338
- ignored.
339
- `,ob=`
340
-
341
- ## Applying fixes (--fix)
342
-
343
- The \`--fix\` flag was passed. After producing the findings list, apply the
344
- findings to the working tree instead of stopping at the report: fix each one
345
- directly — correctness bugs and reuse/simplification/efficiency cleanups alike.
346
- Skip any finding whose fix would change intended behavior, require changes well
347
- outside the reviewed diff, or that you judge to be a false positive — note the
348
- skip rather than arguing with it. Finish with a brief summary of what was fixed
349
- and what was skipped.
350
- `;function nb(G,I){let g=kb(G,I),B="";if(G.ultraFallback)B=`(ultra (cloud review) isn't available in Claudin — running a local ${g}-effort review${G.fix?" and applying its findings":""}.)
351
- `;else if(G.unrecognizedLevel!==void 0)B=`(Ignoring unrecognized effort "${G.unrecognizedLevel}"; valid: ${wG.join(", ")}. Using ${g}.)
352
- `;let Z=G.target?`Review target: \`${G.target}\`
353
- `:"";return`${B}${Z}${fb[g]}${G.comment?ib:""}${G.fix?ob:""}`}function mg(){S({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:`[${wG.join("|")}] [--fix] [--comment] [<target>]`,userInvocable:!0,disableModelInvocation:!1,allowedTools:[t,"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 g=Lb(G);return[{type:"text",text:nb(g,I)}]}})}e();var sb={skill:"skill",skills:"skill",command:"skill",rule:"rule",rules:"rule",agent:"agent",agents:"agent",subagent:"agent"},rb=`# Create Claudin Customizations
354
-
355
- You are helping the user create or refine Claudin customizations. Follow this
356
- workflow:
357
-
358
- 1. **Intent** — Decide whether the user wants to *create* something new or
359
- *refine* an existing artifact. If refining, Read the existing file first and
360
- validate its frontmatter against the contract below before changing it.
361
- 2. **Type** — Pick the right artifact for the job:
362
- - **Skill**: a reusable workflow or reference knowledge, invoked on demand
363
- (\`/<name>\` by the user, or auto-invoked by the model when relevant).
364
- Costs nothing in context until invoked.
365
- - **Rule**: always-on (or path-conditional) instructions loaded into
366
- context automatically. Costs context every session — keep rules short.
367
- - **Agent**: a subagent with its own system prompt, tool allowlist, and
368
- context window, dispatched via the Agent tool for delegated work.
369
- If the choice is ambiguous, ask the user with a one-line trade-off summary.
370
- 3. **Scope** — Ask (or infer from the request) whether it belongs to the
371
- project (\`.claudin/\` in the repo, shared via git) or to the user globally
372
- (\`~/.claudin/\`, available in every project). Default: project for
373
- repo-specific workflows/conventions, global for personal preferences.
374
- 4. **Interview** — Ask only what you cannot infer: what should it do, when
375
- should it trigger, which tools does it need, any inputs/arguments. Keep it
376
- to one short round; if the current conversation already contains the
377
- workflow being captured ("turn this into a skill"), extract the answers
378
- from it instead of asking.
379
- 5. **Draft & save** — Write the file at the correct path using the contract
380
- for its type. Look at existing artifacts in the target directory first and
381
- match their style; never overwrite an existing file without telling the
382
- user.
383
- 6. **Verify** — Confirm the artifact loads (see "Verifying" below) and show
384
- the user the file plus a one-line usage example.
385
-
386
- The description fields (\`description\`, \`when_to_use\`) are what the runtime
387
- uses to decide auto-invocation and delegation — spend the most effort there.
388
- Be specific about the trigger conditions, not just the capability.`,Lg="## 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`; `${CLAUDE_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.",kg='## 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.',Sg='## 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.',tb=`## Verifying
389
-
390
- - **Skills**: if the skills directory already existed when the session
391
- started, a file watcher picks up the new skill within a few seconds — check
392
- with \`/skills\` or by invoking \`/<name>\`. If you just created the
393
- \`skills/\` directory itself, the watcher is not attached: tell the user to
394
- restart the session.
395
- - **Agents and rules**: loaded at session start — tell the user to restart
396
- the session (agents also reload when the \`/agents\` wizard runs).
397
- - Always show the user the final file path and how to invoke or trigger what
398
- you created.`,eb={skill:Lg,rule:Sg,agent:kg};function GC(G){let I=G.trim(),[g,...B]=I.split(/\s+/),Z=g?sb[g.toLowerCase()]:void 0,C=Z?[eb[Z]]:[Lg,Sg,kg],b=Z?B.join(" "):I,X=b?`
399
-
400
- ## User Request
401
-
402
- ${Z?`Artifact type: ${Z}. `:""}${b}`:Z?`
403
-
404
- ## User Request
405
-
406
- Artifact type: ${Z}. Ask the user what it should do.`:"";return[rb,...C,tb].join(`
407
-
408
- `)+X}function ug(){S({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:GC(G)}]}})}gC();WI();JG();FG();IC();e();import{open as BC,stat as ZC}from"fs/promises";var kG=20,bC=65536;function Og(){S({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=xg(),g=qg(),B;try{let b=await ZC(g),X=Math.min(b.size,bC),F=b.size-X,H=await BC(g,"r");try{let{buffer:K,bytesRead:d}=await H.read({buffer:Buffer.alloc(X),position:F}),c=K.toString("utf-8",0,d).split(`
409
- `).slice(-kG).join(`
410
- `);B=`Log size: ${Dg(b.size)}
411
-
412
- ### Last ${kG} lines
413
-
414
- \`\`\`
415
- ${c}
416
- \`\`\``}finally{await H.close()}}catch(b){B=Mg(b)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${kG} lines of debug log: ${s(b)}`}return[{type:"text",text:`# Debug Skill
417
-
418
- Help the user debug an issue they're encountering in this current Claude Code session.
419
- ${I?"":`
420
- ## Debug Logging Just Enabled
421
-
422
- Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
423
-
424
- Tell the user that debug logging is now active at \`${g}\`, 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.
425
- `}
426
- ## Session Debug Log
427
-
428
- The debug log for the current session is at: \`${g}\`
429
-
430
- ${B}
431
-
432
- For additional context, grep for [ERROR] and [WARN] lines across the full file.
433
-
434
- ## Issue Description
435
-
436
- ${G||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
437
-
438
- ## Settings
439
-
440
- Remember that settings are in:
441
- * user - ${SG("userSettings")}
442
- * project - ${SG("projectSettings")}
443
- * local - ${SG("localSettings")}
444
-
445
- ## Instructions
446
-
447
- 1. Review the user's issue description
448
- 2. The last ${kG} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
449
- 3. Consider launching the ${$g} subagent to understand the relevant Claude Code features
450
- 4. Explain what you found in plain language
451
- 5. Suggest concrete fixes or next steps
452
- `}]}})}CC();e();function YC(){return`# Fewer Permission Prompts
453
-
454
- 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.
455
-
456
- The format for permissions is: \`Bash(foo*)\`, \`Bash(foo)\`, \`Bash(foo bar *)\`, \`mcp__slack__slack_read_thread\`, etc.
457
-
458
- Then, add these to the project \`.claudin/settings.json\` under \`permissions.allow\`.
459
-
460
- ## Steps
461
-
462
- 1. **Locate transcripts.** Session transcripts live under \`${Pg()}/<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.
463
-
464
- 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.
465
-
466
- 2. **Extract tool-call frequencies.**
467
- - 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\`).
468
- - For MCP calls: record the full tool name (e.g. \`mcp__slack__slack_read_thread\`).
469
- - Count occurrences across the scanned transcripts.
470
-
471
- 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.
472
-
473
- Drop anything that writes, deletes, renames, pushes, merges, installs, or runs a build/test that has side effects. When in doubt, leave it out.
474
-
475
- **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:
476
- - Interpreters: \`python\`/\`python3\`, \`node\`, \`bun\`, \`deno\`, \`ruby\`, \`perl\`, \`php\`, \`lua\`, etc.
477
- - Shells: \`bash\`, \`sh\`, \`zsh\`, \`fish\`, \`eval\`, \`exec\`, \`ssh\`, etc.
478
- - Package runners: \`npx\`, \`bunx\`, \`uvx\`, \`uv run\`, etc.
479
- - 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
480
- - \`gh api *\`, \`docker run\`/\`exec\`, \`kubectl exec\`, \`sudo\`, and similar
481
-
482
- 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.
483
-
484
- - **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\`.
485
- - **Auto-allowed with zero args only:** \`pwd\`, \`whoami\`, \`alias\`.
486
- - **Auto-allowed exact forms:** \`node -v\`, \`node --version\`, \`python --version\`, \`python3 --version\`, \`ip addr\`.
487
- - **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\`.
488
- - **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.
489
- - **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.
490
- - **Docker read-only subcommands:** \`docker ps\`, \`docker images\`, \`docker logs\`, \`docker inspect\`.
491
-
492
- Source of truth: \`src/tools/BashTool/readOnlyValidation.ts\` (\`COMMAND_ALLOWLIST\`, \`READONLY_COMMANDS\`, \`READONLY_COMMAND_REGEXES\`) and \`src/utils/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.
493
-
494
- 5. **Pick the pattern form.** Use the narrowest pattern that still covers the observed usage:
495
- - 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.
496
- - If a single exact invocation is common: use \`Bash(foo)\` with no wildcard.
497
- - For MCP: use the full tool name verbatim (no wildcard needed; they're already specific).
498
- - Never widen a pattern to the point that it conflicts with the rules above (no arbitrary code execution, no mutation/side effects).
499
-
500
- 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.
501
-
502
- 7. **Present the prioritized list to the user** as a markdown table with columns: rank, pattern, count, one-line description. Example:
503
-
504
- | # | Pattern | Count | Notes |
505
- |---|---------|-------|-------|
506
- | 1 | \`Bash(git status *)\` | 142 | repo status checks |
507
- | 2 | \`Bash(gh pr view *)\` | 87 | PR inspection |
508
- | 3 | \`mcp__slack__slack_read_thread\` | 54 | Slack thread reads |
509
-
510
- 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.
511
-
512
- 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").
513
-
514
- Do not add anything to \`permissions.deny\` or \`permissions.ask\`. Do not touch any other settings field.`}function Tg(){S({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:YC()}]}})}VC();cC();yC();pg();WC();var VI=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],Eg={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"},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: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:previousSource","diff:nextSource","diff:focusList","diff:focusContent","diff:viewDetails","diff:previousFile","diff:nextFile","diff:nextTab","diff:refresh","diff:expandAll","modelPicker:decreaseEffort","modelPicker:increaseEffort","select:next","select:previous","select:accept","select:cancel","plugin:toggle","plugin:install","permission:toggleDebug","settings:search","settings:retry","settings:close","voice:pushToTalk"],XC=XI(()=>o.object({context:o.enum(VI).describe("UI context where these bindings apply. Global bindings work everywhere."),bindings:o.record(o.string().describe('Keystroke pattern (e.g., "ctrl+k", "shift+tab")'),o.union([o.enum(yI),o.string().regex(/^command:[a-zA-Z0-9:\-_]+$/).describe('Command binding (e.g., "command:help", "command:compact"). Executes the slash command as if typed.'),o.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")),W2=XI(()=>o.object({$schema:o.string().optional().describe("JSON Schema URL for editor validation"),$docs:o.string().optional().describe("Documentation URL"),bindings:o.array(XC()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."));_g();e();function HC(){return cI(["Context","Description"],VI.map((G)=>[`\`${G}\``,Eg[G]]))}function lC(){let G={};for(let I of ag)for(let[g,B]of Object.entries(I.bindings))if(B){if(!G[B])G[B]={keys:[],context:I.context};G[B].keys.push(g)}return cI(["Action","Default Key(s)","Context"],yI.map((I)=>{let g=G[I],B=g?g.keys.map((C)=>`\`${C}\``).join(", "):"(none)",Z=g?g.context:dC(I);return[`\`${I}\``,B,Z]}))}function dC(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 JC(){let G=[];G.push("### Non-rebindable (errors)");for(let I of fg)G.push(`- \`${I.key}\` — ${I.reason}`);G.push(""),G.push("### Terminal reserved (errors/warnings)");for(let I of ig)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 og)G.push(`- \`${I.key}\` — ${I.reason}`);return G.join(`
515
- `)}var RC={$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"}}]},KC={context:"Chat",bindings:{"ctrl+s":null}},hC={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},FC={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},zC=["# 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(`
516
- `),QC=["## File Format","","```json",yG(RC,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
517
- `),wC=["## 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(`
518
- `),NC=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",yG(KC,null,2),"```"].join(`
519
- `),jC=["## 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(`
520
- `),AC=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",yG(hC,null,2),"```","","### Add a chord binding","```json",yG(FC,null,2),"```"].join(`
521
- `),vC=["## 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(`
522
- `),UC=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claudin/keybindings.json`.',"","### Common Issues and Fixes","",cI(["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(`
523
- `);function sg(){S({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:ng,async getPromptForCommand(G){let I=HC(),g=lC(),B=JC(),Z=[zC,QC,wC,NC,jC,AC,vC,UC,`## Reserved Shortcuts
524
-
525
- ${B}`,`## Available Contexts
526
-
527
- ${I}`,`## Available Actions
528
-
529
- ${g}`];if(G)Z.push(`## User Request
530
-
531
- ${G}`);return[{type:"text",text:Z.join(`
532
-
533
- `)}]}})}function cI(G,I){let g=G.map(()=>"---");return[`| ${G.join(" | ")} |`,`| ${g.join(" | ")} |`,...I.map((B)=>`| ${B.join(" | ")} |`)].join(`
534
- `)}mC();LC();kC();e();var HI="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 lI(G){let I=G.trim().match(/^(\d+)\s*([a-zA-Z]+)$/);if(!I)return null;let g=Number.parseInt(I[1],10);if(!Number.isFinite(g)||g<1)return null;let B=SC(I[2]);if(!B)return null;return`${g}${B}`}function uC(G){let I=G.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!I)return null;let g=lI(`${I[2]}${I[3]}`);if(!g)return null;return{prompt:I[1].trim(),interval:g}}function MC(G){let I=G.trim();if(!I)return{mode:"dynamic-maintenance"};let g=lI(I);if(g)return{mode:"fixed-maintenance",interval:g};let[B,...Z]=I.split(/\s+/),C=lI(B??"");if(C){let X=Z.join(" ").trim();if(!X)return{mode:"fixed-maintenance",interval:C};return{mode:"fixed-prompt",interval:C,prompt:X}}let b=uC(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 xC(G){let I=G.prompt?`Use this prompt verbatim for both the immediate run and the recurring scheduled task:
535
-
536
- --- BEGIN PROMPT ---
537
- ${G.prompt}
538
- --- END PROMPT ---
539
- `:`This is a maintenance loop with no explicit prompt.
540
-
541
- 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:
542
-
543
- --- BEGIN SCHEDULED PROMPT ---
544
- ${gB}
545
- --- END SCHEDULED PROMPT ---
546
-
547
- For the immediate run in step 4, follow this maintenance prompt:
548
-
549
- --- BEGIN MAINTENANCE PROMPT ---
550
- ${JI}
551
- --- END MAINTENANCE PROMPT ---
552
- `;return`# /loop — fixed recurring interval
553
-
554
- The user invoked /loop with a fixed interval.
555
-
556
- Requested interval: ${G.interval}
557
-
558
- ${I}
559
- ## Instructions
560
-
561
- 1. Convert the requested interval to a recurring cron expression.
562
- - Supported suffixes: s, m, h, d.
563
- - Seconds must be rounded up to the nearest minute because cron has minute granularity.
564
- - If the requested interval does not map cleanly to cron cadence, choose the nearest clean recurring interval and tell the user what you picked.
565
- 2. Call ${dI} with:
566
- - the recurring cron expression
567
- - the scheduled prompt body above (for maintenance loops, the one-line sentinel exactly as given)
568
- - recurring: true
569
- - durable: false
570
- 3. Briefly confirm what was scheduled, the cron expression, the human cadence, that recurring tasks auto-expire after ${rg} days, and that the user can cancel sooner with ${eg} using the returned job ID.
571
- 4. Immediately execute the effective prompt now — do not wait for the first cron fire.
572
- - If the effective prompt starts with a slash command, invoke it via the Skill tool.
573
- - Otherwise, act on it directly.
574
- `}function qC(G){let I=G.prompt?`Use this prompt verbatim as the effective prompt for this iteration:
575
-
576
- --- BEGIN PROMPT ---
577
- ${G.prompt}
578
- --- END PROMPT ---
579
- `:`This is a maintenance loop with no explicit prompt.
580
-
581
- Determine the effective prompt in this order:
582
- 1. If .claudin/loop.md exists, read it and use it.
583
- 2. Otherwise, if ~/.claudin/loop.md exists, read it and use it.
584
- 3. Otherwise, use this built-in maintenance prompt:
585
-
586
- --- BEGIN MAINTENANCE PROMPT ---
587
- ${JI}
588
- --- END MAINTENANCE PROMPT ---
589
- `,g=G.prompt?`/loop ${G.prompt}`:BB,B=G.prompt?"":" (a sentinel the runtime expands at delivery time — pass it exactly, do not inline the maintenance instructions)";return`# /loop — dynamic rescheduling
590
-
591
- The user invoked /loop without a fixed interval — you pace the iterations yourself with ${ZG}.
592
-
593
- ${I}
594
- ## Instructions
595
-
596
- 1. Execute the effective prompt now.
597
- - If it starts with a slash command, invoke it via the Skill tool.
598
- - Otherwise, act on it directly.
599
- 2. Then, as the LAST action of this turn, call ${ZG} exactly once to schedule the next iteration:
600
- - delaySeconds: choose it yourself per the pacing guidance in the ${ZG} tool description. The runtime clamps to [${GB}, ${IB}] seconds.
601
- - reason: one short sentence telling the user what delay you picked and why.
602
- - prompt: set it to this exact text${B} so the next iteration stays in dynamic mode:
603
-
604
- --- BEGIN SCHEDULED PROMPT ---
605
- ${g}
606
- --- END SCHEDULED PROMPT ---
607
-
608
- 3. Only one wakeup is alive at a time — calling ${ZG} again replaces the pending one. Do not use ${dI} in this mode.
609
- 4. If the next iteration is gated on an external event the ${HI} tool can watch (a CI run, a deploy, an endpoint or file changing) and ${HI} is available in this session, arm a persistent ${HI} as the primary wake signal and use ${ZG} only as a 1200–1800s fallback heartbeat.
610
- 5. To end the loop (the task is complete, you are blocked on the user, or the user asked to stop), do not call ${ZG} — 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 ${ZG} with cancel: true to kill it.
611
- `}function ZB(){S({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:tg,async getPromptForCommand(G){let I=MC(G);return[{type:"text",text:I.mode==="fixed-prompt"||I.mode==="fixed-maintenance"?xC(I):qC(I)}]}})}e();function bG(G){return Buffer.from(G,"base64").toString("utf8")}var bB={"examples/cli.md":bG("IyBWZXJpZnlpbmcgYSBDTEkgY2hhbmdlCgpUaGUgaGFuZGxlIGlzIGRpcmVjdCBpbnZvY2F0aW9uLiBUaGUgZXZpZGVuY2UgaXMgc3Rkb3V0L3N0ZGVyci9leGl0IGNvZGUuCgojIyBQYXR0ZXJuCgoxLiBCdWlsZCAoaWYgdGhlIENMSSBuZWVkcyBidWlsZGluZykKMi4gUnVuIHdpdGggYXJndW1lbnRzIHRoYXQgZXhlcmNpc2UgdGhlIGNoYW5nZWQgY29kZQozLiBDYXB0dXJlIG91dHB1dCBhbmQgZXhpdCBjb2RlCjQuIENvbXBhcmUgdG8gZXhwZWN0ZWQKCkNMSXMgYXJlIHVzdWFsbHkgdGhlIHNpbXBsZXN0IHRvIHZlcmlmeSDigJQgbm8gbGlmZWN5Y2xlLCBubyBwb3J0cy4KCiMjIFdvcmtlZCBleGFtcGxlCgoqKkRpZmY6KiogYWRkcyBhIGAtLWpzb25gIGZsYWcgdG8gdGhlIGBzdGF0dXNgIHN1YmNvbW1hbmQuIE5ldyBmbGFnCnBhcnNpbmcgaW4gYGNtZC9zdGF0dXMuZ29gLCBuZXcgb3V0cHV0IGJyYW5jaC4KCioqQ2xhaW0gKGNvbW1pdCBtc2cpOioqICJtYWNoaW5lLXJlYWRhYmxlIHN0Y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BhIGZhbGxiYWNrLgotICoqQ29sb3IvdW5pY29kZSBxdWlya3MuKiogSWYgYGNhcHR1cmUtcGFuZWAgb3V0cHV0IGlzIGhhcmQgdG8gcmVhZCwKICBub3RlIGZsYWdzIHRoYXQgaGVscCAoYC1lYCBmb3IgZXNjYXBlIHNlcXVlbmNlcywgYC1KYCB0byBqb2luIHdyYXBwZWQKICBsaW5lcykuCgojIyBBbHNvIGRvY3VtZW50IHRoZSBkaXJlY3QgaW52b2NhdGlvbgoKRm9yIGEgaHVtYW4gcnVubmluZyB0aGUgYXBwIGludGVyYWN0aXZlbHksIHRtdXggaXMgb3ZlcmtpbGwuIEluY2x1ZGUKdGhlIG9uZS1saW5lciB0b286Cgo+ICMjIFJ1biAoZGlyZWN0LCBmb3IgaHVtYW5zKQo+Cj4gYGBgYmFzaAo+IC4vbXlhcHAKPiBgYGAKPgo+IFByZXNzIGBxYCB0byBxdWl0Lgo=")};var DC=`**Running means launching the actual app and interacting with it** —
612
- not the test suite, not an \`import\` of an internal function and a
613
- \`console.log\`. The app as a user (human or programmatic) would meet
614
- it: the CLI at its command, the server at its socket, the GUI at its
615
- window.
616
-
617
- ## First: does a project skill already cover this?
618
-
619
- A project skill that launches this app is the repo's verified path —
620
- its author already cold-started from a Linux container and committed
621
- what worked: the exact \`apt-get\` line, the env vars, the patches, the
622
- driver. Use it instead of rediscovering.
623
-
624
- \`\`\`bash
625
- d=$PWD; while :; do
626
- grep -Hm1 '^description:' "$d"/.claudin/skills/*/SKILL.md 2>/dev/null
627
- [ -e "$d/.git" ] || [ "$d" = / ] && break
628
- d=$(dirname "$d")
629
- done
630
- \`\`\`
631
-
632
- - **One describes launching/driving this app** → read that SKILL.md
633
- and follow it verbatim. Don't paraphrase; don't skip the patches.
634
- - **Mega-repo, several plausible, no clear match** → ask the user
635
- which unit to run.
636
- - **Stale** (fails on mechanics unrelated to your task) → tell the
637
- user.
638
- - **Nothing about running** → fall back to the patterns below.
639
-
640
- ## Otherwise: match the shape, use the pattern
641
-
642
- Pick the row closest to your project. Each example walks through
643
- launch + first interaction; ignore any trailing "write the skill"
644
- section — you're using the recipe, not authoring one.
645
-
646
- | Project type | Handle | Example |
647
- |---|---|---|
648
- | CLI tool | direct invocation, exit code, stdin/stdout | [examples/cli.md](examples/cli.md) |
649
- | Web server / API | background launch + \`curl\` smoke | [examples/server.md](examples/server.md) |
650
- | TUI / interactive terminal | tmux \`send-keys\` / \`capture-pane\` | [examples/tui.md](examples/tui.md) |
651
- | Electron / desktop GUI | Playwright \`_electron\` REPL under xvfb | [examples/electron.md](examples/electron.md) |
652
- | Browser-driven | dev server + \`chromium-cli\` script | [examples/playwright.md](examples/playwright.md) |
653
- | Library / SDK | import-and-call smoke script at the package boundary | [examples/library.md](examples/library.md) |
654
-
655
- If nothing fits, start from the closest match and adapt. For a web
656
- app, [examples/playwright.md](examples/playwright.md) — drive it with
657
- \`chromium-cli\`, no custom driver needed. For a desktop app,
658
- [examples/electron.md](examples/electron.md) — it has the \`_electron\`
659
- REPL driver skeleton and the tmux wrapping.
660
-
661
- ## Drive it, don't just launch it
662
-
663
- Launching with no interaction proves the entrypoint resolves. That's
664
- not running the app — it's typechecking with extra steps. Drive it to
665
- a point where a user would see something:
666
-
667
- - CLI → type a representative command, check the exit code and output.
668
- - Server → hit the route the diff touches with \`curl\`, read the body.
669
- - TUI → \`send-keys\` a navigation, \`capture-pane\` the result.
670
- - GUI → click the button, screenshot the window. **Look at the
671
- screenshot.** A blank frame is a failure to launch.
672
-
673
- If the fallback pattern didn't work out of the box — you had to
674
- install packages, set env vars, patch config, or write a driver —
675
- note that in your report so the work can be captured as a project
676
- skill for next time. If it just worked, don't.`;function YB(){S({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:CB,async getPromptForCommand(){return[{type:"text",text:DC}]}})}eG();e();function $C(G){let I=G.trim(),g=I?`
677
-
678
- ## Additional Focus
679
-
680
- ${I}
681
- `:"";return`# Simplify: Quality Cleanup of Changed Code
682
-
683
- You are improving the quality of the changed code, not hunting for bugs. Review
684
- it for reuse, simplification, efficiency, and altitude issues, then fix what you
685
- find. Do not look for correctness bugs — that is what \`/code-review\` is for.
686
-
687
- ## Phase 0 — Gather the diff
688
-
689
- Run \`git diff @{upstream}...HEAD\` (or \`git diff main...HEAD\` / \`git diff HEAD~1\`
690
- if there's no upstream) to get the unified diff under review. If there are
691
- uncommitted changes, or the range diff is empty, also run \`git diff HEAD\` and
692
- include the working-tree changes in scope — the review often runs before the
693
- commit. If a PR number, branch name, or file path was passed as an argument,
694
- review that target instead. Treat this diff as the review scope.
695
-
696
- ## Phase 1 — Review (4 cleanup agents in parallel)
697
-
698
- Use the ${t} tool to launch **4 independent review agents**, all in
699
- a single message so they run concurrently. Pass each agent the diff and one of
700
- the four angles below. Each returns its findings with \`file\`, \`line\`, a
701
- one-line \`summary\`, and the concrete cost (what is duplicated, wasted, or
702
- harder to maintain).
703
-
704
- ### Reuse
705
-
706
- Flag new code that re-implements something the codebase
707
- already has — Grep shared/utility modules and files adjacent to the change,
708
- and name the existing helper to call instead.
709
-
710
- ### Simplification
711
-
712
- Flag unnecessary complexity the diff adds: redundant or derivable state,
713
- copy-paste with slight variation, deep nesting, dead code left behind. Name
714
- the simpler form that does the same job.
715
-
716
- ### Efficiency
717
-
718
- Flag wasted work the diff introduces: redundant computation or repeated I/O,
719
- independent operations run sequentially, blocking work added to startup or
720
- hot paths. Name the cheaper alternative.
721
-
722
- ### Altitude
723
-
724
- Check that each change is implemented at the right depth, not as a fragile
725
- bandaid. Special cases layered on shared infrastructure are a sign the fix
726
- isn't deep enough — prefer generalizing the underlying mechanism over adding
727
- special cases.
728
-
729
- ## Phase 2 — Apply the fixes
730
-
731
- Wait for all four agents to complete, dedup findings that point at the same
732
- line or mechanism, and fix each remaining one directly. Skip any finding whose
733
- fix would change intended behavior, require changes well outside the reviewed
734
- diff, or that you judge to be a false positive — note the skip rather than
735
- arguing with it. Finish with a brief summary of what was fixed and what was
736
- skipped (or confirm the code was already clean).${g}`}function WB(){S({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:$C(G)}]}})}pg();OC();_g();e();function PC(){let G=XB(VB(),{io:"input"});return yG(G,null,2)}var TC=`## Settings File Locations
737
-
738
- Choose the appropriate file based on scope:
739
-
740
- | File | Scope | Git | Use For |
741
- |------|-------|-----|---------|
742
- | \`~/.claudin/settings.json\` | Global | N/A | Personal preferences for all projects |
743
- | \`.claudin/settings.json\` | Project | Commit | Team-wide hooks, permissions, plugins |
744
- | \`.claudin/settings.local.json\` | Project | Gitignore | Personal overrides for this project |
745
-
746
- Settings load in order: user → project → local (later overrides earlier).
747
-
748
- ## Settings Schema Reference
749
-
750
- ### Permissions
751
- \`\`\`json
752
- {
753
- "permissions": {
754
- "allow": ["Bash(npm:*)", "Edit(.claudin)", "Read"],
755
- "deny": ["Bash(rm -rf:*)"],
756
- "ask": ["Write(/etc/*)"],
757
- "defaultMode": "default" | "plan" | "acceptEdits" | "dontAsk",
758
- "additionalDirectories": ["/extra/dir"]
759
- }
760
- }
761
- \`\`\`
762
-
763
- **Permission Rule Syntax:**
764
- - Exact match: \`"Bash(npm run test)"\`
765
- - Prefix wildcard: \`"Bash(git:*)"\` - matches \`git status\`, \`git commit\`, etc.
766
- - Tool only: \`"Read"\` - allows all Read operations
767
-
768
- ### Environment Variables
769
- \`\`\`json
770
- {
771
- "env": {
772
- "DEBUG": "true",
773
- "MY_API_KEY": "value"
774
- }
775
- }
776
- \`\`\`
777
-
778
- ### Model & Agent
779
- \`\`\`json
780
- {
781
- "model": "sonnet", // or "opus", "haiku", full model ID
782
- "agent": "agent-name",
783
- "alwaysThinkingEnabled": true
784
- }
785
- \`\`\`
786
-
787
- ### Attribution (Commits & PRs)
788
- \`\`\`json
789
- {
790
- "attribution": {
791
- "commit": "Custom commit trailer text",
792
- "pr": "Custom PR description text"
793
- }
794
- }
795
- \`\`\`
796
- Set \`commit\` or \`pr\` to empty string \`""\` to hide that attribution.
797
-
798
- ### MCP Server Management
799
- \`\`\`json
800
- {
801
- "enableAllProjectMcpServers": true,
802
- "enabledMcpjsonServers": ["server1", "server2"],
803
- "disabledMcpjsonServers": ["blocked-server"]
804
- }
805
- \`\`\`
806
-
807
- ### Plugins
808
- \`\`\`json
809
- {
810
- "enabledPlugins": {
811
- "formatter@anthropic-tools": true
812
- }
813
- }
814
- \`\`\`
815
- Plugin syntax: \`plugin-name@source\` where source is \`claude-code-marketplace\`, \`claude-plugins-official\`, or \`builtin\`.
816
-
817
- ### Other Settings
818
- - \`language\`: Preferred response language (e.g., "japanese")
819
- - \`cleanupPeriodDays\`: Days to keep transcripts (default: 30; 0 disables persistence entirely)
820
- - \`respectGitignore\`: Whether to respect .gitignore (default: true)
821
- - \`spinnerTipsEnabled\`: Show tips in spinner
822
- - \`spinnerVerbs\`: Customize spinner verbs (\`{ "mode": "append" | "replace", "verbs": [...] }\`)
823
- - \`spinnerTipsOverride\`: Override spinner tips (\`{ "excludeDefault": true, "tips": ["Custom tip"] }\`)
824
- - \`syntaxHighlightingDisabled\`: Disable diff highlighting
825
- `,yB=`## Hooks Configuration
826
-
827
- Hooks run commands at specific points in Claude Code's lifecycle.
828
-
829
- ### Hook Structure
830
- \`\`\`json
831
- {
832
- "hooks": {
833
- "EVENT_NAME": [
834
- {
835
- "matcher": "ToolName|OtherTool",
836
- "hooks": [
837
- {
838
- "type": "command",
839
- "command": "your-command-here",
840
- "timeout": 60,
841
- "statusMessage": "Running..."
842
- }
843
- ]
844
- }
845
- ]
846
- }
847
- }
848
- \`\`\`
849
-
850
- ### Hook Events
851
-
852
- | Event | Matcher | Purpose |
853
- |-------|---------|---------|
854
- | PermissionRequest | Tool name | Run before permission prompt |
855
- | PreToolUse | Tool name | Run before tool, can block |
856
- | PostToolUse | Tool name | Run after successful tool |
857
- | PostToolUseFailure | Tool name | Run after tool fails |
858
- | Notification | Notification type | Run on notifications |
859
- | Stop | - | Run when Claude stops (including clear, resume, compact) |
860
- | PreCompact | "manual"/"auto" | Before compaction |
861
- | PostCompact | "manual"/"auto" | After compaction (receives summary) |
862
- | UserPromptSubmit | - | When user submits |
863
- | SessionStart | - | When session starts |
864
-
865
- **Common tool matchers:** \`Bash\`, \`Write\`, \`Edit\`, \`Read\`, \`Glob\`, \`Grep\`
866
-
867
- ### Hook Types
868
-
869
- **1. Command Hook** - Runs a shell command:
870
- \`\`\`json
871
- { "type": "command", "command": "prettier --write $FILE", "timeout": 30 }
872
- \`\`\`
873
-
874
- **2. Prompt Hook** - Evaluates a condition with LLM:
875
- \`\`\`json
876
- { "type": "prompt", "prompt": "Is this safe? $ARGUMENTS" }
877
- \`\`\`
878
- Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
879
-
880
- **3. Agent Hook** - Runs an agent with tools:
881
- \`\`\`json
882
- { "type": "agent", "prompt": "Verify tests pass: $ARGUMENTS" }
883
- \`\`\`
884
- Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
885
-
886
- ### Hook Input (stdin JSON)
887
- \`\`\`json
888
- {
889
- "session_id": "abc123",
890
- "tool_name": "Write",
891
- "tool_input": { "file_path": "/path/to/file.txt", "content": "..." },
892
- "tool_response": { "success": true } // PostToolUse only
893
- }
894
- \`\`\`
895
-
896
- ### Hook JSON Output
897
-
898
- Hooks can return JSON to control behavior:
899
-
900
- \`\`\`json
901
- {
902
- "systemMessage": "Warning shown to user in UI",
903
- "continue": false,
904
- "stopReason": "Message shown when blocking",
905
- "suppressOutput": false,
906
- "decision": "block",
907
- "reason": "Explanation for decision",
908
- "hookSpecificOutput": {
909
- "hookEventName": "PostToolUse",
910
- "additionalContext": "Context injected back to model"
911
- }
912
- }
913
- \`\`\`
914
-
915
- **Fields:**
916
- - \`systemMessage\` - Display a message to the user (all hooks)
917
- - \`continue\` - Set to \`false\` to block/stop (default: true)
918
- - \`stopReason\` - Message shown when \`continue\` is false
919
- - \`suppressOutput\` - Hide stdout from transcript (default: false)
920
- - \`decision\` - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
921
- - \`reason\` - Explanation for decision
922
- - \`hookSpecificOutput\` - Event-specific output (must include \`hookEventName\`):
923
- - \`additionalContext\` - Text injected into model context
924
- - \`permissionDecision\` - "allow", "deny", or "ask" (PreToolUse only)
925
- - \`permissionDecisionReason\` - Reason for the permission decision (PreToolUse only)
926
- - \`updatedInput\` - Modified tool input (PreToolUse only)
927
-
928
- ### Common Patterns
929
-
930
- **Auto-format after writes:**
931
- \`\`\`json
932
- {
933
- "hooks": {
934
- "PostToolUse": [{
935
- "matcher": "Write|Edit",
936
- "hooks": [{
937
- "type": "command",
938
- "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
939
- }]
940
- }]
941
- }
942
- }
943
- \`\`\`
944
-
945
- **Log all bash commands:**
946
- \`\`\`json
947
- {
948
- "hooks": {
949
- "PreToolUse": [{
950
- "matcher": "Bash",
951
- "hooks": [{
952
- "type": "command",
953
- "command": "jq -r '.tool_input.command' >> ~/.claudin/bash-log.txt"
954
- }]
955
- }]
956
- }
957
- }
958
- \`\`\`
959
-
960
- **Stop hook that displays message to user:**
961
-
962
- Command must output JSON with \`systemMessage\` field:
963
- \`\`\`bash
964
- # Example command that outputs: {"systemMessage": "Session complete!"}
965
- echo '{"systemMessage": "Session complete!"}'
966
- \`\`\`
967
-
968
- **Run tests after code changes:**
969
- \`\`\`json
970
- {
971
- "hooks": {
972
- "PostToolUse": [{
973
- "matcher": "Write|Edit",
974
- "hooks": [{
975
- "type": "command",
976
- "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\\\.(ts|js)$' && npm test || true"
977
- }]
978
- }]
979
- }
980
- }
981
- \`\`\`
982
- `,cB=`## Constructing a Hook (with verification)
983
-
984
- 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.
985
-
986
- 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.
987
-
988
- 2. **Construct the command for THIS project — don't assume.** The hook receives JSON on stdin. Build a command that:
989
- - Extracts any needed payload safely — use \`jq -r\` into a quoted variable or \`{ read -r f; ... "$f"; }\`, NOT unquoted \`| xargs\` (splits on spaces)
990
- - Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
991
- - Skips inputs the tool doesn't handle (formatters often have \`--ignore-unknown\`; if not, guard by extension)
992
- - Stays RAW for now — no \`|| true\`, no stderr suppression. You'll wrap it after the pipe-test passes.
993
-
994
- 3. **Pipe-test the raw command.** Synthesize the stdin payload the hook will receive and pipe it directly:
995
- - \`Pre|PostToolUse\` on \`Write|Edit\`: \`echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>\`
996
- - \`Pre|PostToolUse\` on \`Bash\`: \`echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>\`
997
- - \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\`: most commands don't read stdin, so \`echo '{}' | <cmd>\` suffices
998
-
999
- 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).
1000
-
1001
- 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.
1002
-
1003
- 5. **Validate syntax + schema in one shot:**
1004
-
1005
- \`jq -e '.hooks.<event>[] | select(.matcher == "<matcher>") | .hooks[] | select(.type == "command") | .command' <target-file>\`
1006
-
1007
- 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.
1008
-
1009
- 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.
1010
-
1011
- 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.
1012
-
1013
- **Always clean up** — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
1014
-
1015
- **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.
1016
-
1017
- 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.
1018
- `,pC=`# Update Config Skill
1019
-
1020
- Modify Claude Code configuration by updating settings.json files.
1021
-
1022
- ## When Hooks Are Required (Not Memory)
1023
-
1024
- 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.
1025
-
1026
- **These require hooks:**
1027
- - "Before compacting, ask me what to preserve" → PreCompact hook
1028
- - "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
1029
- - "When I run bash commands, log them" → PreToolUse hook with Bash matcher
1030
- - "Always run tests after code changes" → PostToolUse hook
1031
-
1032
- **Hook events:** PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart
1033
-
1034
- ## CRITICAL: Read Before Write
1035
-
1036
- **Always read the existing settings file before making changes.** Merge new settings with existing ones - never replace the entire file.
1037
-
1038
- ## CRITICAL: Use AskUserQuestion for Ambiguity
1039
-
1040
- When the user's request is ambiguous, use AskUserQuestion to clarify:
1041
- - Which settings file to modify (user/project/local)
1042
- - Whether to add to existing arrays or replace them
1043
- - Specific values when multiple options exist
1044
-
1045
- ## Decision: Config Tool vs Direct Edit
1046
-
1047
- **Use the Config tool** for these simple settings:
1048
- - \`theme\`, \`editorMode\`, \`verbose\`, \`model\`
1049
- - \`language\`, \`alwaysThinkingEnabled\`
1050
- - \`permissions.defaultMode\`
1051
-
1052
- **Edit settings.json directly** for:
1053
- - Hooks (PreToolUse, PostToolUse, etc.)
1054
- - Complex permission rules (allow/deny arrays)
1055
- - Environment variables
1056
- - MCP server configuration
1057
- - Plugin configuration
1058
-
1059
- ## Workflow
1060
-
1061
- 1. **Clarify intent** - Ask if the request is ambiguous
1062
- 2. **Read existing file** - Use Read tool on the target settings file
1063
- 3. **Merge carefully** - Preserve existing settings, especially arrays
1064
- 4. **Edit file** - Use Edit tool (if file doesn't exist, ask user to create it first)
1065
- 5. **Confirm** - Tell user what was changed
1066
-
1067
- ## Merging Arrays (Important!)
1068
-
1069
- When adding to permission arrays or hook arrays, **merge with existing**, don't replace:
1070
-
1071
- **WRONG** (replaces existing permissions):
1072
- \`\`\`json
1073
- { "permissions": { "allow": ["Bash(npm:*)"] } }
1074
- \`\`\`
1075
-
1076
- **RIGHT** (preserves existing + adds new):
1077
- \`\`\`json
1078
- {
1079
- "permissions": {
1080
- "allow": [
1081
- "Bash(git:*)", // existing
1082
- "Edit(.claudin)", // existing
1083
- "Bash(npm:*)" // new
1084
- ]
1085
- }
1086
- }
1087
- \`\`\`
1088
-
1089
- ${TC}
1090
-
1091
- ${yB}
1092
-
1093
- ${cB}
1094
-
1095
- ## Example Workflows
1096
-
1097
- ### Adding a Hook
1098
-
1099
- User: "Format my code after Claude writes it"
1100
-
1101
- 1. **Clarify**: Which formatter? (prettier, gofmt, etc.)
1102
- 2. **Read**: \`.claudin/settings.json\` (or create if missing)
1103
- 3. **Merge**: Add to existing hooks, don't replace
1104
- 4. **Result**:
1105
- \`\`\`json
1106
- {
1107
- "hooks": {
1108
- "PostToolUse": [{
1109
- "matcher": "Write|Edit",
1110
- "hooks": [{
1111
- "type": "command",
1112
- "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
1113
- }]
1114
- }]
1115
- }
1116
- }
1117
- \`\`\`
1118
-
1119
- ### Adding Permissions
1120
-
1121
- User: "Allow npm commands without prompting"
1122
-
1123
- 1. **Read**: Existing permissions
1124
- 2. **Merge**: Add \`Bash(npm:*)\` to allow array
1125
- 3. **Result**: Combined with existing allows
1126
-
1127
- ### Environment Variables
1128
-
1129
- User: "Set DEBUG=true"
1130
-
1131
- 1. **Decide**: User settings (global) or project settings?
1132
- 2. **Read**: Target file
1133
- 3. **Merge**: Add to env object
1134
- \`\`\`json
1135
- { "env": { "DEBUG": "true" } }
1136
- \`\`\`
1137
-
1138
- ## Common Mistakes to Avoid
1139
-
1140
- 1. **Replacing instead of merging** - Always preserve existing settings
1141
- 2. **Wrong file** - Ask user if scope is unclear
1142
- 3. **Invalid JSON** - Validate syntax after changes
1143
- 4. **Forgetting to read first** - Always read before write
1144
-
1145
- ## Troubleshooting Hooks
1146
-
1147
- If a hook isn't running:
1148
- 1. **Check the settings file** - Read ~/.claudin/settings.json or .claudin/settings.json
1149
- 2. **Verify JSON syntax** - Invalid JSON silently fails
1150
- 3. **Check the matcher** - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
1151
- 4. **Check hook type** - Is it "command", "prompt", or "agent"?
1152
- 5. **Test the command** - Run the hook command manually to see if it works
1153
- 6. **Use --debug** - Run \`claude --debug\` to see hook execution logs
1154
- `;function HB(){S({name:"update-config",description:'Use this skill to configure the Claude Code 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 B=G.slice(12).trim(),Z=yB+`
1155
-
1156
- `+cB;if(B)Z+=`
1157
-
1158
- ## Task
1159
-
1160
- ${B}`;return[{type:"text",text:Z}]}let I=PC(),g=pC;if(g+=`
1161
-
1162
- ## Full Settings JSON Schema
1163
-
1164
- \`\`\`json
1165
- ${I}
1166
- \`\`\``,G)g+=`
1167
-
1168
- ## User Request
1169
-
1170
- ${G}`;return[{type:"text",text:g}]}})}e();var EC=`**Verification is runtime observation.** You build the app, run it,
1171
- drive it to where the changed code executes, and capture what you
1172
- see. That capture is your evidence. Nothing else is.
1173
-
1174
- **Don't run tests. Don't typecheck.** Running them here proves you
1175
- can run CI — not that the change works. Not as a warm-up,
1176
- not "just to be sure," not as a regression sweep after. The time
1177
- goes to running the app instead.
1178
-
1179
- **Don't import-and-call.** \`import { foo } from './src/...'\` then
1180
- \`console.log(foo(x))\` is a unit test you wrote. The function did what
1181
- the function does — you knew that from reading it. The app never ran.
1182
- Whatever calls \`foo\` in the real codebase ends at a CLI, a socket, or
1183
- a window. Go there.
1184
-
1185
- ## Find the change
1186
-
1187
- The scope is what you're verifying — usually a diff, sometimes just
1188
- "does X work." In a git repo, establish the full range (a branch may
1189
- be many commits, or the change may still be uncommitted):
1190
-
1191
- \`\`\`bash
1192
- git log --oneline @{u}.. # count commits (if upstream set)
1193
- git diff @{u}.. --stat # full range, not HEAD~1
1194
- git diff origin/HEAD... --stat # no upstream: committed vs base
1195
- git diff HEAD --stat # uncommitted: working tree vs HEAD
1196
- gh pr diff # if in a PR context
1197
- \`\`\`
1198
-
1199
- State the commit count. Large diff truncating? Redirect to a file
1200
- then Read it. Repo but no diff from any of these → say so, stop.
1201
- **No repo → the scope is whatever the user named; ask if they
1202
- didn't.**
1203
-
1204
- **The diff is ground truth. Any description is a claim about it.**
1205
- Read both. If they disagree, that's a finding.
1206
-
1207
- ## Surface
1208
-
1209
- The surface is where a user — human or programmatic — meets the
1210
- change. That's where you observe.
1211
-
1212
- | Change reaches | Surface | You |
1213
- |---|---|---|
1214
- | CLI / TUI | terminal | type the command, capture the pane — [example](examples/cli.md) |
1215
- | Server / API | socket | send the request, capture the response — [example](examples/server.md) |
1216
- | GUI | pixels | drive it under xvfb/Playwright, screenshot |
1217
- | Library | package boundary | sample code through the public export — \`import pkg\`, not \`import ./src/...\` |
1218
- | Prompt / agent config | the agent | run the agent, capture its behavior |
1219
- | CI workflow | Actions | dispatch it, read the run |
1220
-
1221
- **Internal function? Not a surface.** Something in the repo calls it
1222
- and that caller ends at one of the rows above. Follow it there. A
1223
- bash security gate's surface isn't the function's return value — it's
1224
- the CLI prompting or auto-allowing when you type the command.
1225
-
1226
- **No runtime surface at all** — docs-only, type declarations with no
1227
- emit, build config that produces no behavioral diff — report
1228
- **SKIP — no runtime surface: (reason).** Don't run tests to fill
1229
- the space.
1230
-
1231
- **Tests in the diff are the author's evidence, not a surface.** CI
1232
- runs them. You'd be re-running CI. Tests-only PR → SKIP, one line.
1233
- Mixed src+tests → verify the src, ignore the test files. Reading a
1234
- test to learn what to check is fine — it's a spec. But then go run
1235
- the app. Checking that assertions match source is code review.
1236
-
1237
- ## Get a handle
1238
-
1239
- **Check \`.claudin/skills/\` first — even if you already know how to
1240
- build and run.** A matching \`verifier-*\` skill is the repo's
1241
- evidence-capture protocol: it wraps the session so a reviewer can
1242
- replay what you saw (recording, screenshots). Drive the surface
1243
- without it and you get a verdict with no replay.
1244
-
1245
- \`\`\`bash
1246
- ls .claudin/skills/
1247
- \`\`\`
1248
-
1249
- - **\`verifier-*\` matching your surface** (CLI verifier for a CLI
1250
- change, etc.) → invoke it with the Skill tool and follow its
1251
- setup. Mismatched surface → skip that one, try the next. Stale
1252
- verifier (fails on mechanics unrelated to the change) → ask the
1253
- user whether to patch it; don't FAIL the change for verifier rot.
1254
- - **\`run-*\` but no matching verifier** → use its build/launch
1255
- primitives as your handle.
1256
- - **Neither** → cold start from README/package.json/Makefile. Timebox
1257
- ~15min. Stuck → BLOCKED with exactly where it stopped. Got through →
1258
- note the working build/launch recipe so it can become a
1259
- \`verifier-*\` skill.
1260
-
1261
- ## Drive it
1262
-
1263
- Smallest path that makes the changed code execute:
1264
-
1265
- - Changed a flag? Run with it.
1266
- - Changed a handler? Hit that route.
1267
- - Changed error handling? Trigger the error.
1268
- - Changed an internal function? Find the CLI command / request / render
1269
- that reaches it. Run that.
1270
-
1271
- **Read your plan back before running.** If every step is build /
1272
- typecheck / run test file — you've planned a CI rerun, not a
1273
- verification. Find a step that reaches the surface or report BLOCKED.
1274
-
1275
- **The verdict is table stakes. Your observations are the signal.**
1276
- A PASS with three sharp "hey, I noticed…" lines is worth more than a
1277
- bare PASS. You're the only reviewer who actually *ran* the thing —
1278
- anything that made you pause, work around, or go "huh" is information
1279
- the author doesn't have. Don't filter for "is this a bug." Filter for
1280
- "would I mention this if they were sitting next to me."
1281
-
1282
- **End-to-end, through the real interface.** Pieces passing in
1283
- isolation doesn't mean the flow works — seams are where bugs hide.
1284
- If users click buttons, test by clicking buttons, not by curling the
1285
- API underneath.
1286
-
1287
- **Destructive path?** If the change touches code that deletes,
1288
- publishes, sends, or writes outside the workspace and there's no
1289
- dry-run or safe target, don't drive it live. Verify what you can
1290
- around it and say which path you didn't exercise and why.
1291
-
1292
- ## Push on it
1293
-
1294
- The claim checked out — that's the first half. Confirming is step
1295
- one, not the job. The description is what the author intended;
1296
- your value is what they didn't.
1297
-
1298
- You know exactly what changed. Probe *around* it, at the same
1299
- surface you just drove:
1300
-
1301
- - **New flag / option** → empty value, passed twice, combined with a
1302
- conflicting flag, typo'd (does the error name it?)
1303
- - **New handler / route** → wrong method, malformed body, missing
1304
- required field, oversized payload
1305
- - **Changed error path** → the adjacent errors it didn't touch —
1306
- did the refactor catch them too, or only the one in the diff?
1307
- - **Interactive / TUI** → Ctrl-C mid-op, resize the pane, paste
1308
- garbage, rapid-fire the key, Esc at the wrong moment
1309
- - **State / persistence** → do it twice, do it with stale state
1310
- underneath, do it in two sessions at once
1311
- - **Wander** → what's adjacent? What looked off while you were
1312
- confirming? Go back to it.
1313
-
1314
- These aren't a checklist — pick the ones the change points at. Stop
1315
- when you've covered the obvious adjacents or hit something worth a
1316
- ⚠️. A probe that finds nothing is still a step: "\uD83D\uDD0D passed \`--from ''\`
1317
- → clean \`error: --from requires a value\`, exit 2." That the author
1318
- didn't test it is exactly why it's worth knowing it holds.
1319
-
1320
- Still not a test run. You're at the surface, typing what a user
1321
- would type wrong.
1322
-
1323
- ## Capture
1324
-
1325
- Stdout, response bodies, screenshots, pane dumps. Captured output is
1326
- evidence; your memory isn't. Something unexpected? Don't route around
1327
- it — capture, note, decide if it's the change or the environment.
1328
- Unrelated breakage is a finding, not noise.
1329
-
1330
- Shared process state (tmux, ports, lockfiles) — isolate. \`tmux -L
1331
- name\`, bind \`:0\`, \`mktemp -d\`. You share a namespace with your host.
1332
-
1333
- ## Report
1334
-
1335
- Inline, final message:
1336
-
1337
- \`\`\`
1338
- ## Verification: <one-line what changed>
1339
-
1340
- **Verdict:** PASS | FAIL | BLOCKED | SKIP
1341
-
1342
- **Claim:** <what it's supposed to do — your read of the diff and/or
1343
- the stated claim; note any mismatch>
1344
-
1345
- **Method:** <how you got a handle — which verifier/run skill, or
1346
- cold start; what you launched>
1347
-
1348
- ### Steps
1349
-
1350
- Each step is one thing you did to the **running app** and what it
1351
- showed. Build/install/checkout are setup, not steps. Test runs and
1352
- typecheck don't belong here — they're CI's output.
1353
-
1354
- 1. ✅/❌/⚠️/\uD83D\uDD0D <what you did to the running app> → <what you observed>
1355
- <evidence: the app's own output — pane capture, response body,
1356
- screenshot path>
1357
-
1358
- \uD83D\uDD0D marks a probe — a step off the claim's happy path, trying to
1359
- break it. At least one. A Steps list that's all ✅ and no \uD83D\uDD0D is a
1360
- happy-path replay: still PASS, but you stopped at the first half.
1361
-
1362
- **Screenshot / sample:** <the one frame a reviewer looks at to see
1363
- the feature — image path for GUI/TUI, code block for library/API;
1364
- omit for build/types-only>
1365
-
1366
- ### Findings
1367
- <Things you noticed. Not just bugs — friction, surprises, anything
1368
- a first-time user would trip on. "Took three tries to find the right
1369
- flag." "Error message on typo was unhelpful." "Default seems odd for
1370
- the common case." "Works, but slower than I expected." Lower the bar:
1371
- if it made you pause, it goes here. But the pause has to be yours,
1372
- from running the app — not from reading the PR page. A red CI check,
1373
- a review comment, someone else's bot: visible to anyone already, and
1374
- you relaying it isn't an observation. Claim/diff mismatch, pre-existing
1375
- breakage, and env notes also belong.
1376
-
1377
- Each probe gets a line here even when it held — "\uD83D\uDD0D empty \`--from\`
1378
- → clean error" tells the author what *was* covered, which they
1379
- can't see from a bare PASS.
1380
-
1381
- Lead with ⚠️ for lines worth interrupting the reviewer for; plain
1382
- bullets are context. Empty is fine if nothing stuck out — but nothing
1383
- sticking out is itself rare.>
1384
- \`\`\`
1385
-
1386
- **Verdicts:**
1387
- - **PASS** — you ran the app, the change did what it should at its
1388
- surface. Not: tests pass, builds clean, code looks right.
1389
- - **FAIL** — you ran it and it doesn't. Or it breaks something else.
1390
- Or claim and diff disagree materially.
1391
- - **BLOCKED** — couldn't reach a state where the change is observable.
1392
- Build broke, env missing a dep, handle wouldn't come up. Not a
1393
- verdict on the change. Say exactly where it stopped.
1394
- - **SKIP** — no runtime surface exists. Docs-only, types-only,
1395
- tests-only. Nothing went wrong; there's just nothing here to run.
1396
- One line why.
1397
-
1398
- No partial pass. "3 of 4 passed" is FAIL until 4 passes or is
1399
- explained away.
1400
-
1401
- **When in doubt, FAIL.** False PASS ships broken code; false FAIL
1402
- costs one more human look. Ambiguous output is FAIL with the raw
1403
- capture attached — don't interpret.`;function lB(){S({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:bB,async getPromptForCommand(){return[{type:"text",text:EC}]}})}function dB(){HB(),sg(),Og(),mg(),wg(),WB(),lB(),YB(),Tg(),ug(),ZB()}async function nC(G){let{options:I,ctx:g,permissionMode:B,allowDangerouslySkipPermissions:Z,sessionId:C}=G;k("[STARTUP] Running setup()...");let b=Date.now(),{setup:X}=await import("./setup-0.7.1-gqpnyen6.mjs"),F=void 0,H=hI();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")lg(),dB();let K=X(H,B,Z,g.worktreeEnabled,g.worktreeName,g.tmuxEnabled,C?lG(C):void 0,g.worktreePRNumber,F),d=g.worktreeEnabled?null:zI(H),c=g.worktreeEnabled?null:FI(H);return d?.catch(()=>{}),c?.catch(()=>{}),await K,k(`[STARTUP] setup() completed in ${Date.now()-b}ms`),{preSetupCwd:H,commandsPromise:d,agentDefsPromise:c}}async function sC(G){let{options:I,ctx:g,outputFormat:B,fallbackModel:Z,preSetupCwd:C,commandsPromise:b,agentDefsPromise:X}=G,F=!!I.replayUserMessages;if(UG())wB(),uB(),MB(),FB();let H=I.name?.trim();if(H)SB(H);let K=I.model==="default"?MG():I.model,d=Z==="default"?MG():Z,c=g.worktreeEnabled?hI():C;k("[STARTUP] Loading commands and agents...");let J=Date.now(),[y,h]=await Promise.all([b??zI(c),X??FI(c)]);return k(`[STARTUP] Commands and agents loaded in ${Date.now()-J}ms`),{effectiveReplayUserMessages:F,sessionNameArg:H,userSpecifiedModel:K,userSpecifiedFallbackModel:d,currentCwd:c,commands:y,agentDefinitionsResult:h}}async function rC(G,I){let{options:g,ctx:B,isNonInteractiveSession:Z,agentCli:C,agentsJson:b,userSpecifiedModel:X,agentDefinitionsResult:F}=G,{systemPrompt:H,appendSystemPrompt:K,inputPrompt:d}=G,{coordinatorModeModule:c,assistantModule:J}=I,y=[];if(b)try{let l=LG(b);if(l)y=jB(l,"flagSettings")}catch(l){GG(l)}let h=[...F.allAgents,...y],w={...F,allAgents:h,activeAgents:NB(h)},R=C??RG().agent,W;if(R){if(W=w.activeAgents.find((l)=>l.agentType===R),!W)k(`Warning: agent "${R}" not found. Available agents: ${w.activeAgents.map((l)=>l.agentType).join(", ")}. Using default behavior.`)}if(hB(W?.agentType),W)U("tengu_agent_flag",{agentType:RI(W)?W.agentType:"custom",...C&&{source:"cli"}});if(W?.agentType)kB(W.agentType);if(Z&&W&&!H&&!RI(W)){let l=W.getSystemPrompt();if(l)H=l}if(W?.initialPrompt){if(typeof d==="string")d=d?`${W.initialPrompt}
1404
-
1405
- ${d}`:W.initialPrompt;else if(!d)d=W.initialPrompt}let N=X;if(!N&&W?.model&&W.model!=="inherit")N=uG(W.model);RB(N),KB(zB()||null);let u=JB(),M=uG(u??MG()),m;if(qG()){let l=KI()?g.advisor:void 0;if(l){if(k(`[AdvisorTool] --advisor ${l}`),!vB(M))process.stderr.write(Q.red(`Error: The model "${M}" does not support the advisor tool.
1406
- `)),process.exit(1);let A=QB(uG(l));if(!UB(A))process.stderr.write(Q.red(`Error: The model "${l}" cannot be used as an advisor.
1407
- `)),process.exit(1)}if(m=KI()?l??mB():l,m)k(`[AdvisorTool] Advisor model: ${m}`)}if(BG()&&B.storedTeammateOpts?.agentId&&B.storedTeammateOpts?.agentName&&B.storedTeammateOpts?.teamName&&B.storedTeammateOpts?.agentType){let l=w.activeAgents.find((A)=>A.agentType===B.storedTeammateOpts?.agentType);if(l){let A;if(l.source==="built-in")k(`[teammate] Built-in agent ${B.storedTeammateOpts.agentType} - skipping custom prompt (not supported)`);else A=l.getSystemPrompt();if(l.memory)U("tengu_agent_memory_loaded",{scope:l.memory,source:"teammate"});if(A){let V=`
1408
- # Custom Agent Instructions
1409
- ${A}`;K=K?`${K}
1410
-
1411
- ${V}`:V}}else k(`[teammate] Custom agent ${B.storedTeammateOpts.agentType} not found in available agents`)}return KG(g),{agentDefinitions:w,mainThreadAgentDefinition:W,cliAgents:y,agentSetting:R,effectiveModel:N,initialMainLoopModel:u,resolvedInitialModel:M,advisorModel:m,systemPrompt:H,appendSystemPrompt:K,inputPrompt:d}}zG();XG();wI();aB();gY();AB();EB();JG();BY();var sB=eC(IY(),1);tC();xB();async function DB(G,I){let{InvalidSettingsDialog:g}=await import("./InvalidSettingsDialog-0.7.1-94m5wc8k.mjs");return DG(G,(B)=>cG(g,{settingsErrors:I.settingsErrors,onContinue:B,onExit:I.onExit}))}async function $B(G){let{TeleportResumeWrapper:I}=await import("./TeleportResumeWrapper-0.7.1-nd5kypwz.mjs");return DG(G,(g)=>cG(I,{onComplete:g,onCancel:()=>g(null),source:"cliArg"}))}async function OB(G,I){let{TeleportRepoMismatchDialog:g}=await import("./TeleportRepoMismatchDialog-0.7.1-2awpvnbb.mjs");return DG(G,(B)=>cG(g,{targetRepo:I.targetRepo,initialPaths:I.initialPaths,onSelectPath:B,onCancel:()=>B(null)}))}async function PB(G,I,g,B){let[Z,{ResumeConversation:C},{App:b}]=await Promise.all([g,import("./ResumeConversation-0.7.1-39h2xh04.mjs"),import("./App-0.7.1-qe37xdwh.mjs")]);await IG(G,cG(b,{getFpsMetrics:I.getFpsMetrics,stats:I.stats,initialState:I.initialState,children:cG(qB,{children:cG(C,{...B,worktreePaths:Z})})}))}GY();async function ZY(G){let{permissionMode:I,allowDangerouslySkipPermissions:g,commands:B,devChannels:Z,remoteControlOption:C,mainThreadAgentDefinition:b}=G,X=G.prompt,F=G.inputPrompt;CG("trust_onboarding_start");let H=nB(!1),K=H.getFpsMetrics,d=H.stats;CG("trust_render_ctx_ready");let{createRoot:c}=await import("./ink-0.7.1-8q2edv8t.mjs");CG("trust_ink_imported");let J=await c(H.renderOptions);CG("trust_ink_root_created"),U("tengu_timer",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let y=await oB(J,I,g,B,Z);CG("trust_setup_screens_done");let h=!1;if(C!==void 0){let{getBridgeDisabledReason:R}=await import("./bridgeEnabled-0.7.1-fqgbq6ry.mjs"),W=await R();if(h=W===null,W)process.stderr.write(Q.yellow(`${W}
1412
- --rc flag ignored.
1413
- `))}if(y&&typeof X==="string"&&X.trim().toLowerCase()==="/login")X="";if(y)fB(),_B(),iB(),TB(),import("./trustedDevice-0.7.1-hma4k1vw.mjs").then((R)=>{return R.clearTrustedDeviceToken(),R.enrollTrustedDevice()});try{let{getActiveProviderProfile:R,getProviderProfiles:W}=await import("./providerProfiles-0.7.1-9cc9sgnd.mjs");if(!(W().length>0||Boolean(R()))&&!y){let{showSetupDialog:u}=await import("./interactiveHelpers-0.7.1-3pgg93hb.mjs"),{ProviderManager:M}=await import("./ProviderManager-0.7.1-m863v53f.mjs");await u(J,(m)=>sB.default.createElement(M,{mode:"first-run",onDone:()=>m()}))}}catch(R){k(`[provider-wizard] auto-wizard failed: ${R instanceof Error?R.message:String(R)}`)}try{let{tryGetActiveProvider:R}=await import("./activeProvider-0.7.1-vv0d3v6j.mjs");if(R()&&process.stdout.isTTY&&process.env.CLAUDIN_CLEAR_ON_START==="1"){let{clearTerminal:W}=await import("./clearTerminal-0.7.1-5htkde19.mjs");process.stdout.write(W)}}catch(R){k(`[startup-clear] failed: ${R instanceof Error?R.message:String(R)}`)}CG("trust_before_org_validation");let w=await pB();if(CG("trust_after_org_validation"),!w.valid)await a(J,w.message);return{root:J,getFpsMetrics:K,stats:d,remoteControl:h,prompt:X,inputPrompt:F}}zY();XG();EB();pI();JG();mG();wI();cY();AY();jY();JY();dY();wY();EI();LB();iG();xG();NY();tB();r();QY();bY();lY();CY();vg();XY();hG();YY();jG();KY();WY();RY();VY();WI();gg();hY();HY();FY();yY();async function vY(G){let{ctx:I,root:g,isNonInteractiveSession:B,dynamicMcpConfig:Z,mcpConfigPromise:C}=G;if(process.exitCode!==void 0)return k("Graceful shutdown initiated, skipping further initialization"),{exited:!0};if(HZ())cZ();if(!B){let{errors:J}=GZ(),y=J.filter((w)=>!w.mcpErrorMetadata),h=HG()?.transport;if(y.length>0&&h!=="openai_compat"&&h!=="codex_responses"&&h!=="github_copilot")await DB(g,{settingsErrors:y,onExit:()=>jZ(1)})}let b=NG("tengu_cicada_nap_ms",0),X=VG().startupPrefetchedAt??0,F=QG()||b>0&&Date.now()-X<b;if(lZ(),bZ(),gZ(),!F){let J=X>0?` last ran ${Math.round((Date.now()-X)/1000)}s ago`:"";if(k(`Starting background startup prefetches${J}`),YZ().catch((y)=>GG(y)),NZ(),wZ(),!NG("tengu_miraculo_the_bard",!1))ZZ();else AI();if(b>0)mI((y)=>({...y,startupPrefetchedAt:Date.now()}))}else k(`Skipping startup prefetches, last ran ${Math.round((Date.now()-X)/1000)}s ago`),AI();if(!B){let{refreshExampleCommands:J}=await import("./exampleCommands-0.7.1-nq55tbjv.mjs");J()}let{servers:H}=await C,K={...H,...Z},d={},c={};for(let[J,y]of Object.entries(K)){let h=y;if(h.type==="sdk")d[J]=h;else c[J]=h}return{exited:!1,allMcpConfigs:K,sdkMcpConfigs:d,regularMcpConfigs:c}}function UY(G,I){let{options:g,ctx:B,isNonInteractiveSession:Z,regularMcpConfigs:C,claudeaiConfigPromise:b,mainThreadAgentDefinition:X,resolvedInitialModel:F,initOnly:H,init:K,maintenance:d,prompt:c,inputPrompt:J,verbose:y,debug:h,debugToStderr:w,print:R,outputFormat:W,inputFormat:N,allowedTools:u,disallowedTools:M,allMcpConfigs:m,dangerouslySkipPermissions:l,permissionMode:A,allowDangerouslySkipPermissions:V,systemPrompt:z,appendSystemPrompt:P,toolPermissionContext:j,sessionNameArg:T}=G,{assistantModule:q,coordinatorModeModule:L}=I,v=Z?Promise.resolve({clients:[],tools:[],commands:[]}):UI(C),x=Z?Promise.resolve({clients:[],tools:[],commands:[]}):b.then((E)=>Object.keys(E).length>0?UI(E):{clients:[],tools:[],commands:[]}),D=Promise.all([v,x]).then(([E,WG])=>({clients:[...E.clients,...WG.clients],tools:vI([...E.tools,...WG.tools],"name"),commands:vI([...E.commands,...WG.commands],"name")})),p=H||K||d||Z||g.continue||g.resume?null:dZ("startup",{agentType:X?.agentType,model:F}),n=[];D.catch(()=>{});let _=[],$=[],gG=[],Y=WZ(),i=Y!==!1?{type:"adaptive"}:{type:"disabled"};if(g.thinking==="adaptive"||g.thinking==="enabled")Y=!0,i={type:"adaptive"};else if(g.thinking==="disabled")Y=!1,i={type:"disabled"};else{let E=process.env.MAX_THINKING_TOKENS?parseInt(process.env.MAX_THINKING_TOKENS,10):g.maxThinkingTokens;if(E!==void 0){if(E>0)Y=!0,i={type:"enabled",budgetTokens:E};else if(E===0)Y=!1,i={type:"disabled"}}}return NI("info","started",{version:"99.0.0",is_native_binary:eB()}),rB(async()=>{NI("info","exited")}),mZ({hasInitialPrompt:Boolean(c),hasStdin:Boolean(J),verbose:y,debug:h,debugToStderr:w,print:R??!1,outputFormat:W??"text",inputFormat:N??"text",numAllowedTools:u.length,numDisallowedTools:M.length,mcpClientCount:Object.keys(m).length,worktreeEnabled:B.worktreeEnabled,skipWebFetchPreflight:RG().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:l??!1,permissionMode:A,modeIsBypass:A==="bypassPermissions",allowDangerouslySkipPermissionsPassed:V,systemPromptFlag:z?g.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:P?g.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:i,assistantActivationPath:void 0,isCoordinator:L?.isCoordinatorMode()===!0}),QZ(C,j),AZ(),hZ().then((E)=>{if(!E)return;if(T)FZ(T);zZ().then((WG)=>{if(WG>=2)U("tengu_concurrent_sessions",{num_sessions:WG})})}),{mcpPromise:D,hooksPromise:p,hookMessages:n,mcpClients:_,mcpTools:$,mcpCommands:gG,thinkingEnabled:Y,thinkingConfig:i}}function mY(G,I){let{options:g,ctx:B,agentSetting:Z,resolvedInitialModel:C,permissionModeNotification:b,overlyBroadBashPermissions:X,toolPermissionContext:F,initialMainLoopModel:H,agentDefinitions:K,mainThreadAgentDefinition:d,verbose:c,remoteControl:J,remoteControlName:y,advisorModel:h,inputPrompt:w,thinkingEnabled:R,mcpTools:W}=G,{getTeammateUtils:N}=I;U("tengu_startup_manual_model_config",{cli_flag:g.model,env_var:HG()?.model,settings_file:(RG()||{}).model,subscriptionType:CZ(),agent:Z});let u=kZ(C),M=[];if(b)M.push({key:"permission-mode-notification",text:b,priority:"high"});if(u)M.push({key:"model-deprecation-warning",text:u,color:"warning",priority:"high"});if(X.length>0){let j=jI(X.map((v)=>v.ruleDisplay)),T=j.join(", "),q=jI(X.map((v)=>v.sourceDisplay)).join(", "),L=j.length;M.push({key:"overly-broad-bash-notification",text:`${T} allow ${dG(L,"rule")} from ${q} ${dG(L,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let m={...F,mode:BG()&&N().isPlanModeRequired()?"plan":F.mode},l=!1,A=J||IZ()||B.kairosEnabled,V=!1,z={settings:RG(),tasks:{},agentNameRegistry:new Map,verbose:c??VG().verbose??!1,mainLoopModel:H,mainLoopModelForSession:null,isBriefOnly:l,expandedView:VG().showSpinnerTree?"teammates":VG().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:BG()?!1:void 0,selectedIPAgentIndex:-1,coordinatorTaskIndex:-1,viewSelectionMode:"none",footerSelection:null,toolPermissionContext:m,agent:d?.agentType,agentDefinitions:K,mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:0},plugins:{enabled:[],disabled:[],commands:[],errors:[],installationStatus:{marketplaces:[],plugins:[]},needsRefresh:!1},statusLineText:void 0,kairosEnabled:B.kairosEnabled,remoteSessionUrl:void 0,remoteConnectionStatus:"connecting",remoteBackgroundTaskCount:0,replBridgeEnabled:A||V,replBridgeExplicit:J,replBridgeOutboundOnly:V,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:yZ(),thinkingEnabled:R,promptSuggestionEnabled:JZ(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:RZ,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:w?{message:$G({content:String(w)})}:null,effortValue:XZ(g.effort)??VZ(),activeOverlays:new Set,fastMode:BZ(C),...qG()&&h&&{advisorModel:h},teamContext:LZ?.()};if(w)KZ(String(w));let P=W;return mI((j)=>({...j,numStartups:(j.numStartups??0)+1})),setImmediate(()=>{UZ(),vZ()}),{initialState:z,initialTools:P}}xG();FG();XG();SZ();hG();async function uZ(G){let{root:I,options:g,sessionConfig:B,resumeContext:Z,mainThreadAgentDefinitionRef:C,getFpsMetrics:b,stats:X}=G,F=!1;try{let H=performance.now(),{clearSessionCaches:K}=await import("./caches-0.7.1-xjaktk6r.mjs");K();let d=await OG(void 0,void 0);if(!d)return U("tengu_continue",{success:!1}),await a(I,"No conversation found to continue");let c=await TG(d,{forkSession:!!g.forkSession,includeAttribution:!0,transcriptPath:d.fullPath},Z);if(c.restoredAgentDef)C.current=c.restoredAgentDef;PG(g),KG(g),U("tengu_continue",{success:!0,resume_duration_ms:Math.round(performance.now()-H)}),F=!0,await YG(I,{getFpsMetrics:b,stats:X,initialState:c.initialState},{...B,mainThreadAgentDefinition:c.restoredAgentDef??C.current,initialMessages:c.messages,initialFileHistorySnapshots:c.fileHistorySnapshots,initialContentReplacements:c.contentReplacements,initialAgentName:c.agentName,initialAgentColor:c.agentColor},IG)}catch(H){if(!F)U("tengu_continue",{success:!1});return GG(H),await a(I,s(H),()=>f(1))}}r();hG();jG();r();hG();jG();r();QI();hG();jG();MZ();zG();uY();r();QI();wI();XG();SY();tB();SZ();FG();Kg();qY();hG();JG();xG();jG();nG();MY();MZ();xY();oG();aB();async function Ib(G){let{root:I,ctx:g,options:B,teleport:Z,remote:C,debug:b,debugToStderr:X,commands:F,ide:H,mainThreadAgentDefinitionRef:K,thinkingConfig:d,sessionConfig:c,resumeContext:J,getFpsMetrics:y,stats:h,initialState:w}=G,{clearSessionCaches:R}=await import("./caches-0.7.1-xjaktk6r.mjs");R();let W=null,N=void 0,u=lG(B.resume),M=void 0,m=null,l=void 0;if(B.fromPr){if(B.fromPr===!0)l=!0;else if(typeof B.fromPr==="string")l=B.fromPr}if(B.resume&&typeof B.resume==="string"&&!u){let V=B.resume.trim();if(V){let z=await tZ(V,{exact:!0});if(z.length===1)m=z[0],u=rZ(m)??null;else M=V}}if(C!==null||Z){if(await EZ(),!_Z("allow_remote_sessions"))return await a(I,"Error: Remote sessions are disabled by your organization's policy.",()=>f(1))}if(C!==null){let V=C.length>0,z=NG("tengu_remote_backend",!1);if(!z&&!V)return await a(I,`Error: --remote requires a description.
1414
- Usage: claude --remote "your task description"`,()=>f(1));U("tengu_remote_create_session",{has_initial_prompt:String(V)});let P=await $Z(),j=await nZ(I,V?C:null,new AbortController().signal,P||void 0);if(!j)return U("tengu_remote_create_session_error",{error:"unable_to_create_session"}),await a(I,"Error: Unable to create remote session",()=>f(1));if(U("tengu_remote_create_session_success",{session_id:j.id}),!z)process.stdout.write(`Created remote session: ${j.title}
1415
- `),process.stdout.write(`View: ${xI(j.id)}?m=0
1416
- `),process.stdout.write(`Resume with: claude --teleport ${j.id}
1417
- `),await f(0),process.exit(0);kI(!0),xZ(TZ(j.id));let T;try{T=await SI()}catch($){return GG(DZ($)),await a(I,`Error: ${s($)||"Failed to authenticate"}`,()=>f(1))}let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.1-b9ybay2b.mjs"),L=()=>q()?.accessToken??T.accessToken,v=MI(j.id,L,T.orgUUID,V),x=`${xI(j.id)}?m=0`,D=AG(`/remote-control is active. Code in CLI or at ${x}`,"info"),p=V?$G({content:C}):null,n={...w,remoteSessionUrl:x},_=uI(F);await YG(I,{getFpsMetrics:y,stats:h,initialState:n},{debug:b||X,commands:_,initialTools:[],initialMessages:p?[D,p]:[D],mcpClients:[],autoConnectIdeFlag:H,mainThreadAgentDefinition:K.current,disableSlashCommands:g.disableSlashCommands,remoteSessionConfig:v,thinkingConfig:d},IG);return}else if(Z){if(Z===!0||Z===""){U("tengu_teleport_interactive_mode",{}),k("selectAndResumeTeleportTask: Starting teleport flow...");let V=await $B(I);if(!V)await f(0),process.exit(0);let{branchError:z}=await iZ(V.branch);W=fZ(V.log,z)}else if(typeof Z==="string"){U("tengu_teleport_resume_session",{mode:"direct"});try{let V=await PZ(Z),z=await oZ(V);if(z.status==="mismatch"||z.status==="not_in_repo"){let T=z.sessionRepo;if(T){let q=eZ(T),L=await Gb(q);if(L.length>0){let v=await OB(I,{targetRepo:T,initialPaths:L});if(v)process.chdir(v),pZ(v),pG(v);else await f(0)}else throw new EG(`You must run claude --teleport ${Z} from a checkout of ${T}.`,Q.red(`You must run claude --teleport ${Z} from a checkout of ${Q.bold(T)}.
1418
- `))}}else if(z.status==="error")throw new EG(z.errorMessage||"Failed to validate session",Q.red(`Error: ${z.errorMessage||"Failed to validate session"}
1419
- `));await aZ();let{teleportWithProgress:P}=await import("./TeleportProgress-0.7.1-9anv6ssa.mjs"),j=await P(I,Z);qZ({sessionId:Z}),W=j.messages}catch(V){if(V instanceof EG)process.stderr.write(V.formattedMessage+`
1420
- `);else GG(V),process.stderr.write(Q.red(`Error: ${s(V)}
1421
- `));await f(1)}}}if(u){let V=u;try{let z=performance.now(),P=await OG(m??V,void 0);if(!P)return U("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),await a(I,`No conversation found with session ID: ${V}`);let j=m?.fullPath??P.fullPath;if(N=await TG(P,{forkSession:!!B.forkSession,sessionIdOverride:V,transcriptPath:j},J),N.restoredAgentDef)K.current=N.restoredAgentDef;U("tengu_session_resumed",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-z)})}catch(z){U("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),GG(z),await a(I,s(z))}}if(g.fileDownloadPromise)try{let V=await g.fileDownloadPromise,z=OZ(V,(P)=>!P.success);if(z>0)process.stderr.write(Q.yellow(`Warning: ${z}/${V.length} file(s) failed to download.
1422
- `))}catch(V){return await a(I,`Error downloading files: ${s(V)}`)}let A=N??(Array.isArray(W)?{messages:W,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:K.current,initialState:w,contentReplacements:void 0}:void 0);if(A)PG(B),KG(B),await YG(I,{getFpsMetrics:y,stats:h,initialState:A.initialState},{...c,mainThreadAgentDefinition:A.restoredAgentDef??K.current,initialMessages:A.messages,initialFileHistorySnapshots:A.fileHistorySnapshots,initialContentReplacements:A.contentReplacements,initialAgentName:A.agentName,initialAgentColor:A.agentColor},IG);else await PB(I,{getFpsMetrics:y,stats:h,initialState:w},sZ(LI()),{...c,initialSearchQuery:M,forkSession:B.forkSession,filterByPr:l})}function DY(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},g={modeApi:G.coordinatorModeModule,mainThreadAgentDefinition:G.mainThreadAgentDefinition,agentDefinitions:G.agentDefinitions,currentCwd:G.currentCwd,cliAgents:G.cliAgents,initialState:G.initialState};return{sessionConfig:I,resumeContext:g}}async function $Y(G){let{root:I,ctx:g,options:B,debug:Z,debugToStderr:C,commands:b,ide:X,teleport:F,remote:H,thinkingConfig:K,initialState:d,getFpsMetrics:c,stats:J}=G,y=G.mainThreadAgentDefinition,{sessionConfig:h,resumeContext:w}=DY({ctx:g,debug:Z,debugToStderr:C,commands:b,initialTools:G.initialTools,mcpClients:G.mcpClients,mcpCommands:G.mcpCommands,ide:X,mainThreadAgentDefinition:y,dynamicMcpConfig:G.dynamicMcpConfig,strictMcpConfig:G.strictMcpConfig,systemPrompt:G.systemPrompt,appendSystemPrompt:G.appendSystemPrompt,thinkingConfig:K,coordinatorModeModule:G.coordinatorModeModule,agentDefinitions:G.agentDefinitions,currentCwd:G.currentCwd,cliAgents:G.cliAgents,initialState:d});if(B.continue){let N={current:y};return await uZ({root:I,options:B,sessionConfig:h,resumeContext:w,mainThreadAgentDefinitionRef:N,getFpsMetrics:c,stats:J}),y=N.current,{handled:!0,mainThreadAgentDefinition:y,sessionConfig:h}}let R=Z,W=C;if(B.resume||B.fromPr||F||H!==null){let N={current:y};return await Ib({root:I,ctx:g,options:B,teleport:F,remote:H,debug:R,debugToStderr:W,commands:b,ide:X,mainThreadAgentDefinitionRef:N,thinkingConfig:K,sessionConfig:h,resumeContext:w,getFpsMetrics:c,stats:J,initialState:d}),y=N.current,{handled:!0,mainThreadAgentDefinition:y,sessionConfig:h}}return{handled:!1,mainThreadAgentDefinition:y,sessionConfig:h}}export{ZY as runTrustAndOnboarding,vY as runPostHeadlessGuards,UY as runMcpHooksAndTelemetry,Kb as runMcpAndPerms,mY as runInteractiveStartupBlock,$Y as runDefaultActionDispatch,nC as runActionSetup,sC as runActionPostSetup,rC as runActionAgentSetup,Vb as parseActionOptions};