@claudiolabs/claudin 0.5.13 → 0.6.0

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 (851) hide show
  1. package/bin/claudin +78 -20
  2. package/dist/chunks/AgentTool-0.6.0-8f3qtrj8.mjs +1 -0
  3. package/dist/chunks/App-0.6.0-9n7fg3v4.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.6.0-egkvq84f.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.6.0-30jea1bv.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.6.0-3kcrm51e.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.6.0-ynatyfe7.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.0-bfvx8vyr.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.6.0-ta5bxsqc.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.6.0-cw7k3rhz.mjs +3 -0
  11. package/dist/chunks/Doctor-0.6.0-w85vn7cp.mjs +1 -0
  12. package/dist/chunks/Grove-0.6.0-8pzwxvxy.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.0-ccznb0th.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.0-0za8mmqc.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.0-mvr8g3r7.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.0-8r6844g6.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.0-s775c4cr.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.0-xgf5m2wn.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.0-z46m261k.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.0-4njrwnw3.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.0-1aanznj9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.0-ddvkc0ya.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.0-r86b0jdg.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.0-m20qbr0e.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.0-qb88j55p.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.0-v8recgw0.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.0-tdfv8cqs.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.0-ajzxc1d4.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.0-e8scpyaj.mjs +1 -0
  30. package/dist/chunks/agents-0.6.0-69xm47ft.mjs +3 -0
  31. package/dist/chunks/agents-0.6.0-8m3ze781.mjs +110 -0
  32. package/dist/chunks/api-0.6.0-3cymw2a4.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.0-mz8jmcqs.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.0-qf4d0nt8.mjs +1 -0
  35. package/dist/chunks/auth-0.6.0-6j97pezz.mjs +1 -0
  36. package/dist/chunks/auth-0.6.0-hkthtnfk.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.0-82td4ejn.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.0-4rrgwmxf.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.0-j2hd827a.mjs +1 -0
  40. package/dist/chunks/branch-0.6.0-rnjgfgek.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.6.0-4pp7berq.mjs +1 -0
  42. package/dist/chunks/btw-0.6.0-9pm632qb.mjs +1 -0
  43. package/dist/chunks/buddy-0.6.0-zyreaya9.mjs +3 -0
  44. package/dist/chunks/cacache-0.6.0-mhcyz322.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.6.0-2m2g30sy.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.6.0-mzcbqxz0.mjs +4 -0
  47. package/dist/chunks/caches-0.6.0-x8ev20m0.mjs +1 -0
  48. package/dist/chunks/claudeDesktop-0.6.0-66prcdq2.mjs +1 -0
  49. package/dist/chunks/claudemd-0.6.0-t41nj06r.mjs +1 -0
  50. package/dist/chunks/clear-0.6.0-g494jnyj.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.6.0-3d2y2snk.mjs +1 -0
  52. package/dist/chunks/cli-0.6.0-0ck8d1xf.mjs +3 -0
  53. package/dist/chunks/cli-0.6.0-0kx1hnqt.mjs +2 -0
  54. package/dist/chunks/cli-0.6.0-0p3mkd59.mjs +2 -0
  55. package/dist/chunks/cli-0.6.0-0yb835ch.mjs +2 -0
  56. package/dist/chunks/cli-0.6.0-1b6rqyjf.mjs +2 -0
  57. package/dist/chunks/cli-0.6.0-1bpa9gj3.mjs +2 -0
  58. package/dist/chunks/cli-0.6.0-1bzempk2.mjs +12 -0
  59. package/dist/chunks/cli-0.6.0-1cfghz45.mjs +20 -0
  60. package/dist/chunks/cli-0.6.0-1d77dayv.mjs +2 -0
  61. package/dist/chunks/cli-0.6.0-1hxw8522.mjs +2 -0
  62. package/dist/chunks/cli-0.6.0-1jem05z7.mjs +45 -0
  63. package/dist/chunks/cli-0.6.0-1zce7bz0.mjs +17 -0
  64. package/dist/chunks/cli-0.6.0-27pnyd8x.mjs +2 -0
  65. package/dist/chunks/cli-0.6.0-295jdx7b.mjs +2 -0
  66. package/dist/chunks/cli-0.6.0-2age3kgh.mjs +2 -0
  67. package/dist/chunks/cli-0.6.0-2bbdcxda.mjs +2 -0
  68. package/dist/chunks/cli-0.6.0-2c7skznf.mjs +2 -0
  69. package/dist/chunks/cli-0.6.0-2gsntzzv.mjs +2 -0
  70. package/dist/chunks/cli-0.6.0-2h139nq7.mjs +2 -0
  71. package/dist/chunks/cli-0.6.0-2hnyx7jy.mjs +2 -0
  72. package/dist/chunks/cli-0.6.0-2k2xxr4j.mjs +2 -0
  73. package/dist/chunks/cli-0.6.0-2kvggf16.mjs +2 -0
  74. package/dist/chunks/cli-0.6.0-2m8k6622.mjs +18 -0
  75. package/dist/chunks/cli-0.6.0-2m9w0jtx.mjs +2 -0
  76. package/dist/chunks/cli-0.6.0-2qtnp6rz.mjs +2 -0
  77. package/dist/chunks/cli-0.6.0-2z14r3n7.mjs +2 -0
  78. package/dist/chunks/cli-0.6.0-2ztxr2t5.mjs +2 -0
  79. package/dist/chunks/cli-0.6.0-32mypc03.mjs +4 -0
  80. package/dist/chunks/cli-0.6.0-363zfcx9.mjs +2 -0
  81. package/dist/chunks/cli-0.6.0-3jwfajtd.mjs +2 -0
  82. package/dist/chunks/cli-0.6.0-3kbabt72.mjs +2 -0
  83. package/dist/chunks/cli-0.6.0-3kxxj2zn.mjs +2 -0
  84. package/dist/chunks/cli-0.6.0-3m7j40bv.mjs +2 -0
  85. package/dist/chunks/cli-0.6.0-3ns7jd71.mjs +2 -0
  86. package/dist/chunks/cli-0.6.0-3qpvyrpf.mjs +16 -0
  87. package/dist/chunks/cli-0.6.0-3sdh6b3v.mjs +2 -0
  88. package/dist/chunks/cli-0.6.0-3wr1g3r3.mjs +2 -0
  89. package/dist/chunks/cli-0.6.0-4fzxnfth.mjs +2 -0
  90. package/dist/chunks/cli-0.6.0-4ks8fpx1.mjs +2 -0
  91. package/dist/chunks/cli-0.6.0-592v9jcz.mjs +2 -0
  92. package/dist/chunks/cli-0.6.0-59hncecf.mjs +17 -0
  93. package/dist/chunks/cli-0.6.0-5bjsew2k.mjs +2 -0
  94. package/dist/chunks/cli-0.6.0-5m6h57jc.mjs +18 -0
  95. package/dist/chunks/cli-0.6.0-5zykg2fc.mjs +2 -0
  96. package/dist/chunks/cli-0.6.0-60ma2ekn.mjs +2 -0
  97. package/dist/chunks/cli-0.6.0-60q6k4k3.mjs +3 -0
  98. package/dist/chunks/cli-0.6.0-6hak6gny.mjs +2 -0
  99. package/dist/chunks/cli-0.6.0-6tdctbcr.mjs +2 -0
  100. package/dist/chunks/cli-0.6.0-6w72esaf.mjs +3 -0
  101. package/dist/chunks/cli-0.6.0-76c1zq6n.mjs +2 -0
  102. package/dist/chunks/cli-0.6.0-7m760mbp.mjs +2 -0
  103. package/dist/chunks/cli-0.6.0-7qw68ehh.mjs +2 -0
  104. package/dist/chunks/cli-0.6.0-7qwx1xwm.mjs +2 -0
  105. package/dist/chunks/cli-0.6.0-7s0k6nw0.mjs +12 -0
  106. package/dist/chunks/cli-0.6.0-7shwamwq.mjs +4 -0
  107. package/dist/chunks/cli-0.6.0-855c2tef.mjs +2 -0
  108. package/dist/chunks/cli-0.6.0-8kh9rbvn.mjs +2 -0
  109. package/dist/chunks/cli-0.6.0-8meqksnp.mjs +9 -0
  110. package/dist/chunks/cli-0.6.0-8xf2xpy3.mjs +3 -0
  111. package/dist/chunks/cli-0.6.0-8zczwtyv.mjs +2 -0
  112. package/dist/chunks/cli-0.6.0-91exkfnc.mjs +2 -0
  113. package/dist/chunks/cli-0.6.0-97d3zsj0.mjs +2 -0
  114. package/dist/chunks/cli-0.6.0-9faq31pe.mjs +4 -0
  115. package/dist/chunks/cli-0.6.0-9gnppzfq.mjs +133 -0
  116. package/dist/chunks/cli-0.6.0-9qdj830c.mjs +4 -0
  117. package/dist/chunks/cli-0.6.0-9rq760gd.mjs +2 -0
  118. package/dist/chunks/cli-0.6.0-9rxskyst.mjs +5 -0
  119. package/dist/chunks/cli-0.6.0-9zx9qdaq.mjs +2 -0
  120. package/dist/chunks/cli-0.6.0-a21pffqx.mjs +2 -0
  121. package/dist/chunks/cli-0.6.0-a62vvs4t.mjs +2 -0
  122. package/dist/chunks/cli-0.6.0-a7h4zkhn.mjs +15 -0
  123. package/dist/chunks/cli-0.6.0-aqestr3c.mjs +193 -0
  124. package/dist/chunks/cli-0.6.0-awtw1t27.mjs +2 -0
  125. package/dist/chunks/cli-0.6.0-b6tgentw.mjs +2 -0
  126. package/dist/chunks/cli-0.6.0-bca4nx7y.mjs +4 -0
  127. package/dist/chunks/cli-0.6.0-bg7yq5wg.mjs +2 -0
  128. package/dist/chunks/cli-0.6.0-bjyadvf4.mjs +2 -0
  129. package/dist/chunks/cli-0.6.0-c1a6kyzf.mjs +2 -0
  130. package/dist/chunks/cli-0.6.0-c1hzx5ft.mjs +2 -0
  131. package/dist/chunks/cli-0.6.0-c6nqbf3d.mjs +3 -0
  132. package/dist/chunks/cli-0.6.0-caxz9dgf.mjs +2 -0
  133. package/dist/chunks/cli-0.6.0-d3wk9en8.mjs +2 -0
  134. package/dist/chunks/cli-0.6.0-d4v4gc51.mjs +2 -0
  135. package/dist/chunks/cli-0.6.0-da98vnek.mjs +3 -0
  136. package/dist/chunks/cli-0.6.0-db9z8rd6.mjs +2 -0
  137. package/dist/chunks/cli-0.6.0-djm9knfa.mjs +2 -0
  138. package/dist/chunks/cli-0.6.0-dsrnkn8r.mjs +2 -0
  139. package/dist/chunks/cli-0.6.0-dsykmkkh.mjs +2 -0
  140. package/dist/chunks/cli-0.6.0-dxwdyaw3.mjs +2 -0
  141. package/dist/chunks/cli-0.6.0-e05hymmk.mjs +2 -0
  142. package/dist/chunks/cli-0.6.0-e8a59m32.mjs +2 -0
  143. package/dist/chunks/cli-0.6.0-f7y1nm61.mjs +4 -0
  144. package/dist/chunks/cli-0.6.0-f8va1ddb.mjs +2 -0
  145. package/dist/chunks/cli-0.6.0-fdfhshmm.mjs +3 -0
  146. package/dist/chunks/cli-0.6.0-fg2kp9t9.mjs +2 -0
  147. package/dist/chunks/cli-0.6.0-fx65e0yv.mjs +2 -0
  148. package/dist/chunks/cli-0.6.0-fzxv7yps.mjs +2 -0
  149. package/dist/chunks/cli-0.6.0-g60zf7ra.mjs +2 -0
  150. package/dist/chunks/cli-0.6.0-g61jvwe5.mjs +2 -0
  151. package/dist/chunks/cli-0.6.0-g7exm24t.mjs +3 -0
  152. package/dist/chunks/cli-0.6.0-gaakjhm0.mjs +2 -0
  153. package/dist/chunks/cli-0.6.0-gassmthg.mjs +2 -0
  154. package/dist/chunks/cli-0.6.0-gec8yt9j.mjs +2 -0
  155. package/dist/chunks/cli-0.6.0-gjcmv34x.mjs +4 -0
  156. package/dist/chunks/cli-0.6.0-gw1zy408.mjs +2 -0
  157. package/dist/chunks/cli-0.6.0-h0z5ygw4.mjs +2 -0
  158. package/dist/chunks/cli-0.6.0-h88zf9sp.mjs +2 -0
  159. package/dist/chunks/cli-0.6.0-hchy51xn.mjs +15 -0
  160. package/dist/chunks/cli-0.6.0-hf8fw0bb.mjs +2 -0
  161. package/dist/chunks/cli-0.6.0-hms5fdyd.mjs +2 -0
  162. package/dist/chunks/cli-0.6.0-hraw3dez.mjs +2 -0
  163. package/dist/chunks/cli-0.6.0-hwes2c0w.mjs +6 -0
  164. package/dist/chunks/cli-0.6.0-hxhwjzmm.mjs +34 -0
  165. package/dist/chunks/cli-0.6.0-j4gvgd8r.mjs +7 -0
  166. package/dist/chunks/cli-0.6.0-j5r9tdmt.mjs +50 -0
  167. package/dist/chunks/cli-0.6.0-jb17xpd5.mjs +2 -0
  168. package/dist/chunks/cli-0.6.0-jfft7zdk.mjs +67 -0
  169. package/dist/chunks/cli-0.6.0-jpsf0t8a.mjs +9 -0
  170. package/dist/chunks/cli-0.6.0-js1fe4hv.mjs +2 -0
  171. package/dist/chunks/cli-0.6.0-k8qnaskd.mjs +8 -0
  172. package/dist/chunks/cli-0.6.0-kr9jt2p9.mjs +6 -0
  173. package/dist/chunks/cli-0.6.0-kvv5zw54.mjs +5 -0
  174. package/dist/chunks/cli-0.6.0-m47zataq.mjs +2 -0
  175. package/dist/chunks/cli-0.6.0-mkca0jw4.mjs +2 -0
  176. package/dist/chunks/cli-0.6.0-mmmmpmp3.mjs +2 -0
  177. package/dist/chunks/cli-0.6.0-mmp6g96h.mjs +2 -0
  178. package/dist/chunks/cli-0.6.0-mqdfskgd.mjs +2 -0
  179. package/dist/chunks/cli-0.6.0-mvv5jvw3.mjs +2 -0
  180. package/dist/chunks/cli-0.6.0-ndxtcmnz.mjs +2 -0
  181. package/dist/chunks/cli-0.6.0-npjb4qxf.mjs +3 -0
  182. package/dist/chunks/cli-0.6.0-npxj2hv4.mjs +2 -0
  183. package/dist/chunks/cli-0.6.0-nxpvznpz.mjs +4 -0
  184. package/dist/chunks/cli-0.6.0-nzqrvkwj.mjs +58 -0
  185. package/dist/chunks/cli-0.6.0-p3kytvrk.mjs +42 -0
  186. package/dist/chunks/cli-0.6.0-pbegwent.mjs +2 -0
  187. package/dist/chunks/cli-0.6.0-pk4x582t.mjs +2 -0
  188. package/dist/chunks/cli-0.6.0-pp6kfka3.mjs +2 -0
  189. package/dist/chunks/cli-0.6.0-pvkfx5f1.mjs +2 -0
  190. package/dist/chunks/cli-0.6.0-q63ry2jk.mjs +2 -0
  191. package/dist/chunks/cli-0.6.0-qnby905t.mjs +2 -0
  192. package/dist/chunks/cli-0.6.0-qzs04ar5.mjs +6 -0
  193. package/dist/chunks/cli-0.6.0-r3kd85yw.mjs +2 -0
  194. package/dist/chunks/cli-0.6.0-r5tyrw7e.mjs +59 -0
  195. package/dist/chunks/cli-0.6.0-r8g9yjbx.mjs +4 -0
  196. package/dist/chunks/cli-0.6.0-rrp10514.mjs +2 -0
  197. package/dist/chunks/cli-0.6.0-rvcpxnfv.mjs +2 -0
  198. package/dist/chunks/cli-0.6.0-rys3h8aw.mjs +2 -0
  199. package/dist/chunks/cli-0.6.0-rytp9dva.mjs +2 -0
  200. package/dist/chunks/cli-0.6.0-s2w74466.mjs +15 -0
  201. package/dist/chunks/cli-0.6.0-s36ckgp3.mjs +2 -0
  202. package/dist/chunks/cli-0.6.0-s4fa0ekw.mjs +2 -0
  203. package/dist/chunks/cli-0.6.0-s56fh7wm.mjs +2 -0
  204. package/dist/chunks/cli-0.6.0-s6hbyqbv.mjs +2 -0
  205. package/dist/chunks/cli-0.6.0-s7b70a0c.mjs +2 -0
  206. package/dist/chunks/cli-0.6.0-sa2mtczk.mjs +2 -0
  207. package/dist/chunks/cli-0.6.0-sd76f2sk.mjs +21 -0
  208. package/dist/chunks/cli-0.6.0-sh2rvpbt.mjs +2 -0
  209. package/dist/chunks/cli-0.6.0-ssdst17p.mjs +2 -0
  210. package/dist/chunks/cli-0.6.0-szxjcmcn.mjs +2 -0
  211. package/dist/chunks/cli-0.6.0-t2arqp0e.mjs +12 -0
  212. package/dist/chunks/cli-0.6.0-t91jvdfm.mjs +2 -0
  213. package/dist/chunks/cli-0.6.0-t93n2gev.mjs +3 -0
  214. package/dist/chunks/cli-0.6.0-tbe2ca49.mjs +3 -0
  215. package/dist/chunks/cli-0.6.0-tgc46p2a.mjs +2 -0
  216. package/dist/chunks/cli-0.6.0-tmwp0q7v.mjs +2 -0
  217. package/dist/chunks/cli-0.6.0-ttys4ffq.mjs +2 -0
  218. package/dist/chunks/cli-0.6.0-tz34279s.mjs +3 -0
  219. package/dist/chunks/cli-0.6.0-v56hqc26.mjs +25 -0
  220. package/dist/chunks/cli-0.6.0-v7kten40.mjs +2 -0
  221. package/dist/chunks/cli-0.6.0-v92kj5pr.mjs +2 -0
  222. package/dist/chunks/cli-0.6.0-vcvchaan.mjs +2 -0
  223. package/dist/chunks/cli-0.6.0-vj1q5vmq.mjs +5321 -0
  224. package/dist/chunks/cli-0.6.0-vrp1zbfc.mjs +4 -0
  225. package/dist/chunks/cli-0.6.0-vy5a76pk.mjs +18 -0
  226. package/dist/chunks/cli-0.6.0-vzmjmj1n.mjs +133 -0
  227. package/dist/chunks/cli-0.6.0-wcqzr1n7.mjs +10 -0
  228. package/dist/chunks/cli-0.6.0-wmt6ytdx.mjs +2 -0
  229. package/dist/chunks/cli-0.6.0-wnrwh53h.mjs +2 -0
  230. package/dist/chunks/cli-0.6.0-wz6en1nw.mjs +39 -0
  231. package/dist/chunks/cli-0.6.0-x7c5eyt4.mjs +2 -0
  232. package/dist/chunks/cli-0.6.0-xczg4s5m.mjs +2 -0
  233. package/dist/chunks/cli-0.6.0-xg7esvcf.mjs +2 -0
  234. package/dist/chunks/cli-0.6.0-xp74d7yz.mjs +1 -0
  235. package/dist/chunks/cli-0.6.0-xyv90m2s.mjs +2 -0
  236. package/dist/chunks/cli-0.6.0-xzvyqs4f.mjs +24 -0
  237. package/dist/chunks/cli-0.6.0-y4g2dppt.mjs +2 -0
  238. package/dist/chunks/cli-0.6.0-ycj7gxxz.mjs +2 -0
  239. package/dist/chunks/cli-0.6.0-yryz4xm4.mjs +2 -0
  240. package/dist/chunks/cli-0.6.0-zabvyppx.mjs +2 -0
  241. package/dist/chunks/cli-0.6.0-zngss8r1.mjs +2 -0
  242. package/dist/chunks/cli-0.6.0-zr99z1nr.mjs +5 -0
  243. package/dist/chunks/cli-0.6.0-zxckyy4s.mjs +2 -0
  244. package/dist/chunks/cli-0.6.0-zz1dfz4t.mjs +24 -0
  245. package/dist/chunks/client-0.6.0-djg9p1rh.mjs +1 -0
  246. package/dist/chunks/color-0.6.0-hpk7e2x9.mjs +1 -0
  247. package/dist/chunks/compact-0.6.0-gtvx4hy7.mjs +3 -0
  248. package/dist/chunks/config-0.6.0-f4jc8hpt.mjs +1 -0
  249. package/dist/chunks/config-0.6.0-jpx4jvj2.mjs +1 -0
  250. package/dist/chunks/constants-0.6.0-qe49df42.mjs +1 -0
  251. package/dist/chunks/context-0.6.0-t33461h9.mjs +1 -0
  252. package/dist/chunks/context-noninteractive-0.6.0-vh1s30rr.mjs +1 -0
  253. package/dist/chunks/conversation-0.6.0-apb71k2e.mjs +1 -0
  254. package/dist/chunks/copilotHeaders-0.6.0-2apz8tq4.mjs +1 -0
  255. package/dist/chunks/copy-0.6.0-yfzmdd0z.mjs +9 -0
  256. package/dist/chunks/cost-0.6.0-qrhnvqtm.mjs +1 -0
  257. package/dist/chunks/createSSHSession-0.6.0-2p1n5srr.mjs +1 -0
  258. package/dist/chunks/createSession-0.6.0-pcy6a299.mjs +1 -0
  259. package/dist/chunks/debug-0.6.0-39p8tt4j.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-0.6.0-8bzdvszj.mjs +1365 -0
  261. package/dist/chunks/desktop-0.6.0-vxzr6474.mjs +1 -0
  262. package/dist/chunks/detectRepository-0.6.0-wvjpx2rr.mjs +1 -0
  263. package/dist/chunks/detection-0.6.0-8thkktsw.mjs +1 -0
  264. package/dist/chunks/diff-0.6.0-g8kn9exw.mjs +1 -0
  265. package/dist/chunks/doctor-0.6.0-dxy0j0g4.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-0.6.0-aa892edk.mjs +1 -0
  267. package/dist/chunks/earlyInput-0.6.0-gj3dyt0d.mjs +1 -0
  268. package/dist/chunks/effort-0.6.0-g5xfz2eg.mjs +10 -0
  269. package/dist/chunks/envUtils-0.6.0-tf4st484.mjs +1 -0
  270. package/dist/chunks/environmentSelection-0.6.0-r5ar2987.mjs +1 -0
  271. package/dist/chunks/environments-0.6.0-gec3hdz5.mjs +1 -0
  272. package/dist/chunks/errors-0.6.0-mf51mpgf.mjs +1 -0
  273. package/dist/chunks/exampleCommands-0.6.0-qg1e4vxh.mjs +1 -0
  274. package/dist/chunks/exit-0.6.0-xys34kqe.mjs +1 -0
  275. package/dist/chunks/export-0.6.0-135ccc8z.mjs +2 -0
  276. package/dist/chunks/extra-usage-0.6.0-aqn3jh3x.mjs +1 -0
  277. package/dist/chunks/extra-usage-noninteractive-0.6.0-yw91pfe0.mjs +1 -0
  278. package/dist/chunks/fast-0.6.0-gw4rymz7.mjs +1 -0
  279. package/dist/chunks/feedback-0.6.0-j898w96j.mjs +14 -0
  280. package/dist/chunks/firstPartyEventLogger-0.6.0-t26jt3ej.mjs +1 -0
  281. package/dist/chunks/git-0.6.0-1rjgfq8r.mjs +1 -0
  282. package/dist/chunks/githubModelsCredentials-0.6.0-ek8depe7.mjs +1 -0
  283. package/dist/chunks/goal-0.6.0-wdmxdemz.mjs +4 -0
  284. package/dist/chunks/grove-0.6.0-bge298jb.mjs +1 -0
  285. package/dist/chunks/growthbook-0.6.0-vkrtxrkt.mjs +1 -0
  286. package/dist/chunks/headless-0.6.0-kw28r6p5.mjs +2 -0
  287. package/dist/chunks/heapdump-0.6.0-5130r1vc.mjs +6 -0
  288. package/dist/chunks/help-0.6.0-krmgwd6p.mjs +1 -0
  289. package/dist/chunks/hookChains-0.6.0-esxa7jav.mjs +3 -0
  290. package/dist/chunks/hooks-0.6.0-652920vq.mjs +79 -0
  291. package/dist/chunks/hooks-0.6.0-tgtx7vah.mjs +1 -0
  292. package/dist/chunks/ide-0.6.0-j84km85e.mjs +3 -0
  293. package/dist/chunks/image-processor-napi-0.6.0-tyyms96b.mjs +1 -0
  294. package/dist/chunks/index-0.6.0-1c8mc7c5.mjs +1 -0
  295. package/dist/chunks/index-0.6.0-33tqx1q0.mjs +1 -0
  296. package/dist/chunks/index-0.6.0-4cjwvzjk.mjs +2 -0
  297. package/dist/chunks/index-0.6.0-8r6qtdvj.mjs +2 -0
  298. package/dist/chunks/index-0.6.0-9br46rw2.mjs +1 -0
  299. package/dist/chunks/index-0.6.0-apr64dfb.mjs +1 -0
  300. package/dist/chunks/index-0.6.0-e79va7fg.mjs +9 -0
  301. package/dist/chunks/index-0.6.0-f35c7dte.mjs +1 -0
  302. package/dist/chunks/index-0.6.0-fsb9nqdb.mjs +1 -0
  303. package/dist/chunks/index-0.6.0-gxd56xhn.mjs +1 -0
  304. package/dist/chunks/index-0.6.0-kbwkgp90.mjs +5 -0
  305. package/dist/chunks/index-0.6.0-mhvzn9h5.mjs +1 -0
  306. package/dist/chunks/index-0.6.0-mxm4er0h.mjs +1 -0
  307. package/dist/chunks/index-0.6.0-nny5a3rt.mjs +30 -0
  308. package/dist/chunks/index-0.6.0-nst006cq.mjs +17 -0
  309. package/dist/chunks/index-0.6.0-rv4pntam.mjs +1 -0
  310. package/dist/chunks/index-0.6.0-scwzrsg7.mjs +1 -0
  311. package/dist/chunks/index-0.6.0-w2djrw2s.mjs +9 -0
  312. package/dist/chunks/index-0.6.0-wb1ws1yr.mjs +1 -0
  313. package/dist/chunks/index-0.6.0-wjesenkh.mjs +1 -0
  314. package/dist/chunks/index-0.6.0-y9ppfz99.mjs +1 -0
  315. package/dist/chunks/index-0.6.0-zem7h5vp.mjs +1 -0
  316. package/dist/chunks/init-0.6.0-1770vy5g.mjs +1 -0
  317. package/dist/chunks/initReplBridge-0.6.0-z9198t8c.mjs +1 -0
  318. package/dist/chunks/ink-0.6.0-qwcph42h.mjs +1 -0
  319. package/dist/chunks/insights-0.6.0-cw0cadtm.mjs +870 -0
  320. package/dist/chunks/install-0.6.0-26gqe0fd.mjs +1 -0
  321. package/dist/chunks/install-github-app-0.6.0-afraccwz.mjs +149 -0
  322. package/dist/chunks/install-slack-app-0.6.0-ddv0a41d.mjs +1 -0
  323. package/dist/chunks/instrumentation-0.6.0-2rcak0p8.mjs +1 -0
  324. package/dist/chunks/interactiveHelpers-0.6.0-jxbk6fey.mjs +1 -0
  325. package/dist/chunks/keybindings-0.6.0-5ytp6650.mjs +2 -0
  326. package/dist/chunks/knowledge-0.6.0-ew766111.mjs +2 -0
  327. package/dist/chunks/latestVersionCache-0.6.0-yy47behr.mjs +1 -0
  328. package/dist/chunks/loadAgentsDir-0.6.0-80k2aj05.mjs +1 -0
  329. package/dist/chunks/loadPluginHooks-0.6.0-vhh7gzzn.mjs +1 -0
  330. package/dist/chunks/loadPluginHooks-0.6.0-ztp923sq.mjs +1 -0
  331. package/dist/chunks/log-0.6.0-9tz5q7ps.mjs +1 -0
  332. package/dist/chunks/main-0.6.0-rzx5483p.mjs +1 -0
  333. package/dist/chunks/managedEnv-0.6.0-vr46tva8.mjs +1 -0
  334. package/dist/chunks/mcp-0.6.0-0w7zg3p3.mjs +4 -0
  335. package/dist/chunks/mcp-0.6.0-6h57nk7y.mjs +1 -0
  336. package/dist/chunks/mcp-0.6.0-r1061w3f.mjs +17 -0
  337. package/dist/chunks/mcpb-0.6.0-9ka233fc.mjs +1 -0
  338. package/dist/chunks/memory-0.6.0-wzcpareq.mjs +3 -0
  339. package/dist/chunks/mobile-0.6.0-wfnegsdg.mjs +2 -0
  340. package/dist/chunks/model-0.6.0-2ncemzh6.mjs +1 -0
  341. package/dist/chunks/model-0.6.0-tefdsge4.mjs +2 -0
  342. package/dist/chunks/node-0.6.0-x0ve6mnc.mjs +12 -0
  343. package/dist/chunks/oauth-0.6.0-dqw6k0tz.mjs +1 -0
  344. package/dist/chunks/openaiShim-0.6.0-22t2dr2z.mjs +14 -0
  345. package/dist/chunks/output-style-0.6.0-6kqm6df4.mjs +1 -0
  346. package/dist/chunks/package-D6422PQU-0.6.0-vx7g6m15.mjs +1 -0
  347. package/dist/chunks/parseConnectUrl-0.6.0-fzb9qfec.mjs +1 -0
  348. package/dist/chunks/parser-0.6.0-y80gn3tg.mjs +1 -0
  349. package/dist/chunks/passes-0.6.0-0gxeeegv.mjs +1 -0
  350. package/dist/chunks/permissions-0.6.0-hke4pdcc.mjs +3 -0
  351. package/dist/chunks/plan-0.6.0-v60h02ep.mjs +1 -0
  352. package/dist/chunks/plist-0.6.0-bz14nbfw.mjs +1 -0
  353. package/dist/chunks/plugin-0.6.0-43b045ac.mjs +29 -0
  354. package/dist/chunks/pluginStartupCheck-0.6.0-rxgqz1f8.mjs +1 -0
  355. package/dist/chunks/plugins-0.6.0-c4zsb658.mjs +9 -0
  356. package/dist/chunks/preActionHook-0.6.0-bxna1trm.mjs +2 -0
  357. package/dist/chunks/print-0.6.0-09j4e2ec.mjs +57 -0
  358. package/dist/chunks/privacy-settings-0.6.0-yhesee0k.mjs +1 -0
  359. package/dist/chunks/process-0.6.0-194s5ayw.mjs +1 -0
  360. package/dist/chunks/processBashCommand-0.6.0-pfp2pv9w.mjs +1 -0
  361. package/dist/chunks/processSlashCommand-0.6.0-7xzbb466.mjs +9 -0
  362. package/dist/chunks/prompt-0.6.0-g86dhhk0.mjs +1 -0
  363. package/dist/chunks/prompt-0.6.0-zaxw8ms6.mjs +1 -0
  364. package/dist/chunks/prompts-0.6.0-dk1vzsz0.mjs +1 -0
  365. package/dist/chunks/protocolHandler-0.6.0-54sm9br3.mjs +13 -0
  366. package/dist/chunks/provider-0.6.0-f3hjdgnv.mjs +2 -0
  367. package/dist/chunks/providerProfiles-0.6.0-bxp22mqt.mjs +1 -0
  368. package/dist/chunks/providerValidation-0.6.0-pvwdjqw3.mjs +6 -0
  369. package/dist/chunks/rate-limit-options-0.6.0-y2qv27ms.mjs +1 -0
  370. package/dist/chunks/registerSubcommands-0.6.0-dh1kmqw1.mjs +34 -0
  371. package/dist/chunks/registry-0.6.0-6zvdx4fa.mjs +1 -0
  372. package/dist/chunks/release-notes-0.6.0-6p8nx2xc.mjs +5 -0
  373. package/dist/chunks/reload-plugins-0.6.0-570gszfw.mjs +2 -0
  374. package/dist/chunks/remote-env-0.6.0-sjemeetj.mjs +1 -0
  375. package/dist/chunks/remoteBridgeCore-0.6.0-ab80z440.mjs +1 -0
  376. package/dist/chunks/remoteSession-0.6.0-d07620cv.mjs +1 -0
  377. package/dist/chunks/rename-0.6.0-nyqpebf6.mjs +1 -0
  378. package/dist/chunks/replBridgeHandle-0.6.0-pvrxskrc.mjs +1 -0
  379. package/dist/chunks/replLauncher-0.6.0-1ng5ajaz.mjs +1 -0
  380. package/dist/chunks/resume-0.6.0-0gcmk4pd.mjs +2 -0
  381. package/dist/chunks/rewind-0.6.0-ktbtm3a9.mjs +1 -0
  382. package/dist/chunks/rootOptions-0.6.0-3y0nvcgg.mjs +1 -0
  383. package/dist/chunks/sandbox-adapter-0.6.0-n03pbpa8.mjs +1 -0
  384. package/dist/chunks/sandbox-toggle-0.6.0-r6ap16jq.mjs +1 -0
  385. package/dist/chunks/session-0.6.0-8wj8t5kq.mjs +2 -0
  386. package/dist/chunks/sessionDiscovery-0.6.0-ggm4y3jm.mjs +1 -0
  387. package/dist/chunks/sessionFileAccessHooks-0.6.0-zzn2r4we.mjs +1 -0
  388. package/dist/chunks/sessionStorage-0.6.0-dqq9e9s8.mjs +1 -0
  389. package/dist/chunks/settings-0.6.0-ap4tqn54.mjs +1 -0
  390. package/dist/chunks/setup-0.6.0-mgbyyc71.mjs +5 -0
  391. package/dist/chunks/sinks-0.6.0-5ekfd4ya.mjs +1 -0
  392. package/dist/chunks/skills-0.6.0-78btd7cr.mjs +1 -0
  393. package/dist/chunks/startupProfiler-0.6.0-a2shb6dh.mjs +1 -0
  394. package/dist/chunks/startupUpdateCheck-0.6.0-3ygq5msd.mjs +1 -0
  395. package/dist/chunks/state-0.6.0-m6bsf1b6.mjs +1 -0
  396. package/dist/chunks/stats-0.6.0-w163rgvd.mjs +6 -0
  397. package/dist/chunks/status-0.6.0-ce1p1nbt.mjs +1 -0
  398. package/dist/chunks/stickers-0.6.0-j9h7rsnm.mjs +1 -0
  399. package/dist/chunks/subprocessEnv-0.6.0-ep7ha98p.mjs +1 -0
  400. package/dist/chunks/tasks-0.6.0-2qdk98p6.mjs +1 -0
  401. package/dist/chunks/teamHelpers-0.6.0-z26tek6c.mjs +1 -0
  402. package/dist/chunks/teammateModeSnapshot-0.6.0-ydtqht2v.mjs +1 -0
  403. package/dist/chunks/teleport-0.6.0-sq90w2z1.mjs +1 -0
  404. package/dist/chunks/terminalSetup-0.6.0-nj633zgj.mjs +1 -0
  405. package/dist/chunks/theme-0.6.0-gbx1fx14.mjs +1 -0
  406. package/dist/chunks/thinkback-0.6.0-g650qsc0.mjs +1 -0
  407. package/dist/chunks/thinkback-play-0.6.0-x83b68dn.mjs +1 -0
  408. package/dist/chunks/toolPool-0.6.0-p2sms7a9.mjs +1 -0
  409. package/dist/chunks/toolSearch-0.6.0-wyps3eqc.mjs +1 -0
  410. package/dist/chunks/tools-0.6.0-xk9wgy5h.mjs +1 -0
  411. package/dist/chunks/trustedDevice-0.6.0-rgqjeqzg.mjs +1 -0
  412. package/dist/chunks/turndown.cjs-0.6.0-dsdamyph.mjs +69 -0
  413. package/dist/chunks/ultrareviewCommand-0.6.0-x19p2w4a.mjs +4 -0
  414. package/dist/chunks/update-0.6.0-ryw1h5dw.mjs +86 -0
  415. package/dist/chunks/upgrade-0.6.0-gwrpq422.mjs +1 -0
  416. package/dist/chunks/upstreamproxy-0.6.0-99efcy5e.mjs +14 -0
  417. package/dist/chunks/url-handler-napi-0.6.0-k1qxf5y3.mjs +1 -0
  418. package/dist/chunks/usage-0.6.0-9gygvtnp.mjs +1 -0
  419. package/dist/chunks/util-0.6.0-pnf3vdnn.mjs +1 -0
  420. package/dist/chunks/utils-0.6.0-pf338f8r.mjs +1 -0
  421. package/dist/chunks/vim-0.6.0-xr4692km.mjs +1 -0
  422. package/dist/chunks/watcher-0.6.0-cypcv0dz.mjs +1 -0
  423. package/dist/chunks/wiki-0.6.0-hj8m2rct.mjs +132 -0
  424. package/dist/chunks/worktree-0.6.0-gkckfba3.mjs +1 -0
  425. package/dist/chunks/worktreeModeEnabled-0.6.0-rrpspmv9.mjs +1 -0
  426. package/dist/chunks/wrapper-0.6.0-hdrsg1aw.mjs +7 -0
  427. package/dist/claudin-vscode.vsix +0 -0
  428. package/dist/cli.mjs +2 -2
  429. package/package.json +1 -1
  430. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +0 -1
  431. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +0 -1
  432. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +0 -1
  433. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +0 -1
  434. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +0 -1
  435. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +0 -1
  436. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +0 -1
  437. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +0 -1
  438. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +0 -3
  439. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +0 -1
  440. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +0 -1
  441. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +0 -1
  442. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +0 -1
  443. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +0 -1
  444. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +0 -1
  445. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +0 -1
  446. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +0 -1
  447. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +0 -1
  448. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +0 -1
  449. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +0 -1
  450. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +0 -1
  451. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +0 -1
  452. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +0 -1
  453. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +0 -9
  454. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +0 -1
  455. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +0 -1
  456. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +0 -1
  457. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +0 -1
  458. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +0 -3
  459. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +0 -110
  460. package/dist/chunks/api-0.5.13-q2anppzf.mjs +0 -1
  461. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +0 -1
  462. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +0 -1
  463. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +0 -1
  464. package/dist/chunks/auth-0.5.13-jn53extx.mjs +0 -1
  465. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +0 -48
  466. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +0 -1
  467. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +0 -1
  468. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +0 -4
  469. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +0 -1
  470. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +0 -1
  471. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +0 -3
  472. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +0 -1
  473. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +0 -21
  474. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +0 -4
  475. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +0 -1
  476. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +0 -1
  477. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +0 -1
  478. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +0 -1
  479. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +0 -1
  480. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +0 -2
  481. package/dist/chunks/cli-0.5.13-055v20cs.mjs +0 -2
  482. package/dist/chunks/cli-0.5.13-061m60f2.mjs +0 -2
  483. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +0 -3
  484. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +0 -2
  485. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +0 -2
  486. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +0 -3
  487. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +0 -2
  488. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +0 -2
  489. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +0 -45
  490. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +0 -2
  491. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +0 -2
  492. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +0 -5276
  493. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +0 -2
  494. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +0 -2
  495. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +0 -2
  496. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +0 -2
  497. package/dist/chunks/cli-0.5.13-426cpksk.mjs +0 -4
  498. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +0 -2
  499. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +0 -2
  500. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +0 -2
  501. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +0 -2
  502. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +0 -2
  503. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +0 -6
  504. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +0 -2
  505. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +0 -2
  506. package/dist/chunks/cli-0.5.13-62qasgve.mjs +0 -2
  507. package/dist/chunks/cli-0.5.13-667jxcab.mjs +0 -18
  508. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +0 -2
  509. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +0 -2
  510. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +0 -2
  511. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +0 -2
  512. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +0 -2
  513. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +0 -4
  514. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +0 -2
  515. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +0 -2
  516. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +0 -2
  517. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +0 -2
  518. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +0 -2
  519. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +0 -2
  520. package/dist/chunks/cli-0.5.13-7je48sax.mjs +0 -15
  521. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +0 -2
  522. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +0 -2
  523. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +0 -2
  524. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +0 -2
  525. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +0 -8
  526. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +0 -2
  527. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +0 -3
  528. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +0 -6
  529. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +0 -2
  530. package/dist/chunks/cli-0.5.13-adphma77.mjs +0 -2
  531. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +0 -2
  532. package/dist/chunks/cli-0.5.13-athb0q85.mjs +0 -2
  533. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +0 -4
  534. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +0 -2
  535. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +0 -1
  536. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +0 -2
  537. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +0 -2
  538. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +0 -3
  539. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +0 -2
  540. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +0 -4
  541. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +0 -2
  542. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +0 -4
  543. package/dist/chunks/cli-0.5.13-cnzars85.mjs +0 -5
  544. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +0 -2
  545. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +0 -39
  546. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +0 -2
  547. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +0 -24
  548. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +0 -2
  549. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +0 -2
  550. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +0 -2
  551. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +0 -15
  552. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +0 -2
  553. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +0 -24
  554. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +0 -2
  555. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +0 -2
  556. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +0 -34
  557. package/dist/chunks/cli-0.5.13-epjykaww.mjs +0 -17
  558. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +0 -10
  559. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +0 -2
  560. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +0 -2
  561. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +0 -4
  562. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +0 -3
  563. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +0 -2
  564. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +0 -2
  565. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +0 -2
  566. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +0 -2
  567. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +0 -2
  568. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +0 -2
  569. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +0 -2
  570. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +0 -15
  571. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +0 -12
  572. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +0 -12
  573. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +0 -9
  574. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +0 -17
  575. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +0 -2
  576. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +0 -25
  577. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +0 -4
  578. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +0 -2
  579. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +0 -2
  580. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +0 -2
  581. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +0 -2
  582. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +0 -2
  583. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +0 -3
  584. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +0 -2
  585. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +0 -2
  586. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +0 -2
  587. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +0 -2
  588. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +0 -9
  589. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +0 -2
  590. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +0 -2
  591. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +0 -2
  592. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +0 -6
  593. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +0 -2
  594. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +0 -2
  595. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +0 -2
  596. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +0 -2
  597. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +0 -2
  598. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +0 -2
  599. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +0 -2
  600. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +0 -133
  601. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +0 -16
  602. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +0 -2
  603. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +0 -193
  604. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +0 -2
  605. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +0 -2
  606. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +0 -2
  607. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +0 -2
  608. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +0 -18
  609. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +0 -2
  610. package/dist/chunks/cli-0.5.13-qrn019we.mjs +0 -2
  611. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +0 -2
  612. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +0 -3
  613. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +0 -2
  614. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +0 -2
  615. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +0 -2
  616. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +0 -2
  617. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +0 -2
  618. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +0 -2
  619. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +0 -58
  620. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +0 -2
  621. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +0 -2
  622. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +0 -2
  623. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +0 -2
  624. package/dist/chunks/cli-0.5.13-s719y89z.mjs +0 -2
  625. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +0 -4
  626. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +0 -42
  627. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +0 -3
  628. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +0 -2
  629. package/dist/chunks/cli-0.5.13-teedketa.mjs +0 -2
  630. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +0 -3
  631. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +0 -21
  632. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +0 -2
  633. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +0 -59
  634. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +0 -2
  635. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +0 -2
  636. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +0 -2
  637. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +0 -2
  638. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +0 -3
  639. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +0 -2
  640. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +0 -2
  641. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +0 -3
  642. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +0 -2
  643. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +0 -5
  644. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +0 -2
  645. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +0 -2
  646. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +0 -2
  647. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +0 -2
  648. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +0 -2
  649. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +0 -2
  650. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +0 -2
  651. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +0 -5
  652. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +0 -7
  653. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +0 -2
  654. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +0 -2
  655. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +0 -2
  656. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +0 -2
  657. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +0 -2
  658. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +0 -67
  659. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +0 -20
  660. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +0 -2
  661. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +0 -12
  662. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +0 -2
  663. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +0 -4
  664. package/dist/chunks/cli-0.5.13-z0f17269.mjs +0 -2
  665. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +0 -2
  666. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +0 -3
  667. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +0 -4
  668. package/dist/chunks/cli-0.5.13-zms1a287.mjs +0 -50
  669. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +0 -133
  670. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +0 -1
  671. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +0 -1
  672. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +0 -3
  673. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +0 -1
  674. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +0 -1
  675. package/dist/chunks/context-0.5.13-zffaf66t.mjs +0 -1
  676. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +0 -1
  677. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +0 -1
  678. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +0 -9
  679. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +0 -1
  680. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +0 -1
  681. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +0 -1
  682. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +0 -1
  683. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +0 -1177
  684. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +0 -1
  685. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +0 -1
  686. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +0 -1
  687. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +0 -1
  688. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +0 -1
  689. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +0 -1
  690. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +0 -1
  691. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +0 -10
  692. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +0 -1
  693. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +0 -1
  694. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +0 -1
  695. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +0 -1
  696. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +0 -1
  697. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +0 -1
  698. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +0 -2
  699. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +0 -1
  700. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +0 -1
  701. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +0 -1
  702. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +0 -14
  703. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +0 -1
  704. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +0 -1
  705. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +0 -1
  706. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +0 -1
  707. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +0 -1
  708. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +0 -2
  709. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +0 -6
  710. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +0 -1
  711. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +0 -3
  712. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +0 -1
  713. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +0 -79
  714. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +0 -3
  715. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +0 -1
  716. package/dist/chunks/index-0.5.13-06mj6naw.mjs +0 -1
  717. package/dist/chunks/index-0.5.13-12hemzfc.mjs +0 -1
  718. package/dist/chunks/index-0.5.13-4559xg8z.mjs +0 -17
  719. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +0 -9
  720. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +0 -1
  721. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +0 -1
  722. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +0 -1
  723. package/dist/chunks/index-0.5.13-9zz559q7.mjs +0 -1
  724. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +0 -1
  725. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +0 -2
  726. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +0 -1
  727. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +0 -30
  728. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +0 -1
  729. package/dist/chunks/index-0.5.13-fertw6vb.mjs +0 -1
  730. package/dist/chunks/index-0.5.13-jwf634zt.mjs +0 -1
  731. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +0 -5
  732. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +0 -1
  733. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +0 -9
  734. package/dist/chunks/index-0.5.13-qq60ettc.mjs +0 -1
  735. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +0 -2
  736. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +0 -1
  737. package/dist/chunks/index-0.5.13-zhze2z09.mjs +0 -1
  738. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +0 -1
  739. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +0 -1
  740. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +0 -1
  741. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +0 -870
  742. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +0 -1
  743. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +0 -149
  744. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +0 -1
  745. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +0 -1
  746. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +0 -1
  747. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +0 -2
  748. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +0 -2
  749. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +0 -1
  750. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +0 -1
  751. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +0 -1
  752. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +0 -1
  753. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +0 -1
  754. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +0 -1
  755. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +0 -1
  756. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +0 -4
  757. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +0 -17
  758. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +0 -1
  759. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +0 -1
  760. package/dist/chunks/memory-0.5.13-exfd915f.mjs +0 -3
  761. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +0 -2
  762. package/dist/chunks/model-0.5.13-02rcx381.mjs +0 -1
  763. package/dist/chunks/model-0.5.13-nn224m13.mjs +0 -2
  764. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +0 -12
  765. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +0 -1
  766. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +0 -14
  767. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +0 -1
  768. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +0 -1
  769. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +0 -1
  770. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +0 -1
  771. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +0 -1
  772. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +0 -3
  773. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +0 -1
  774. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +0 -1
  775. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +0 -29
  776. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +0 -1
  777. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +0 -9
  778. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +0 -2
  779. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +0 -57
  780. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +0 -1
  781. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +0 -1
  782. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +0 -1
  783. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +0 -9
  784. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +0 -1
  785. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +0 -1
  786. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +0 -1
  787. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +0 -13
  788. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +0 -2
  789. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +0 -1
  790. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +0 -6
  791. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +0 -1
  792. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +0 -34
  793. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +0 -1
  794. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +0 -5
  795. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +0 -2
  796. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +0 -1
  797. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +0 -1
  798. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +0 -1
  799. package/dist/chunks/rename-0.5.13-c388bb34.mjs +0 -1
  800. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +0 -1
  801. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +0 -1
  802. package/dist/chunks/resume-0.5.13-zwms595g.mjs +0 -2
  803. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +0 -1
  804. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +0 -1
  805. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +0 -1
  806. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +0 -1
  807. package/dist/chunks/session-0.5.13-ef059m1s.mjs +0 -2
  808. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +0 -1
  809. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +0 -1
  810. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +0 -1
  811. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +0 -1
  812. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +0 -5
  813. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +0 -1
  814. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +0 -1
  815. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +0 -1
  816. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +0 -1
  817. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +0 -1
  818. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +0 -6
  819. package/dist/chunks/status-0.5.13-043z2z1k.mjs +0 -1
  820. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +0 -1
  821. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +0 -1
  822. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +0 -1
  823. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +0 -1
  824. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +0 -1
  825. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +0 -1
  826. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +0 -1
  827. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +0 -1
  828. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +0 -1
  829. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +0 -1
  830. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +0 -1
  831. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +0 -1
  832. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +0 -1
  833. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +0 -1
  834. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +0 -69
  835. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +0 -4
  836. package/dist/chunks/update-0.5.13-r5daertf.mjs +0 -86
  837. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +0 -1
  838. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +0 -14
  839. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +0 -1
  840. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +0 -1
  841. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +0 -1
  842. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +0 -1
  843. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +0 -1
  844. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +0 -1
  845. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +0 -132
  846. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +0 -1
  847. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +0 -1
  848. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +0 -7
  849. /package/dist/chunks/{cli-0.5.13-epw9z05w.mjs → cli-0.6.0-hcx40dgf.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.5.13-07hv5jdz.mjs → cli-0.6.0-ktf52b8k.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.5.13-c4q1pthh.mjs → cli-0.6.0-td7dsace.mjs} +0 -0
@@ -1,1177 +0,0 @@
1
- import"./cli-0.5.13-b6aefc28.mjs";import{C as a,E as qG,F as GG,G as AB,H as jB}from"./cli-0.5.13-qv3v2ydv.mjs";import"./cli-0.5.13-ytqyx6qh.mjs";import"./cli-0.5.13-epw9z05w.mjs";import{O as uI,Q as gZ,R as BZ,S as ZZ,X as bZ,Y as $G,Z as JG}from"./cli-0.5.13-9r26f53q.mjs";import"./cli-0.5.13-a8k2grq1.mjs";import"./cli-0.5.13-k8vf1rgk.mjs";import{Ia as QI,Ja as CZ,La as WZ}from"./cli-0.5.13-tyh63jx3.mjs";import{Ra as PG}from"./cli-0.5.13-vt1mnr9f.mjs";import"./cli-0.5.13-426cpksk.mjs";import"./cli-0.5.13-xzeqt5b9.mjs";import"./cli-0.5.13-hwcqeqbn.mjs";import"./cli-0.5.13-4at49cv9.mjs";import{zb as bG}from"./cli-0.5.13-xxpqtp1x.mjs";import{Db as UZ,Eb as LZ}from"./cli-0.5.13-vhvwgvqz.mjs";import{Lb as GZ,Mb as kC}from"./cli-0.5.13-s005ka5h.mjs";import"./cli-0.5.13-7b4c61sf.mjs";import"./cli-0.5.13-tqs67xcg.mjs";import"./cli-0.5.13-athb0q85.mjs";import{id as GB,jd as eb}from"./cli-0.5.13-4yqsxc90.mjs";import"./cli-0.5.13-fjs5qecq.mjs";import"./cli-0.5.13-jc4m6d2k.mjs";import"./cli-0.5.13-s719y89z.mjs";import"./cli-0.5.13-vfkw26ed.mjs";import"./cli-0.5.13-x3f97qaq.mjs";import"./cli-0.5.13-fgckevv1.mjs";import{$B as AC,AO as f,BC as zB,BK as JI,Bs as gB,CC as NB,CO as KG,CP as YB,DP as XB,Ej as Sg,Es as BB,FQ as VB,Fj as kg,Fs as EB,GF as DG,GQ as cB,Gj as bI,Gs as FC,HF as YZ,HK as UC,HQ as GC,Hj as ug,IF as PI,Im as fI,Ip as DB,JF as EI,Jj as Mb,Jm as TZ,Jp as KC,KF as $Z,Kw as _B,LF as zZ,LK as tB,Lw as QC,MF as NZ,MK as LC,NF as QZ,Ns as TB,OF as wZ,Oi as Yg,Os as zC,Pl as wI,QF as AZ,QL as jZ,QP as vZ,Qi as nZ,Ql as $C,RA as aB,RL as TC,Rn as RI,Rs as pB,Sn as RC,Sp as $B,Tn as gG,UA as wC,UD as HB,Ui as Kg,Un as fG,Up as PB,Us as NC,VD as ZC,VF as EC,Vi as Yb,Vw as HG,WB as fB,WN as NG,Wi as UG,Xi as Xg,Xw as iG,YL as D,ZL as t,_h as Fg,aC as iB,aE as QB,aJ as tI,bE as YC,bq as hC,cC as jC,dA as KZ,dJ as aZ,dj as Vg,eA as PC,eQ as mZ,ej as sZ,ek as qI,fH as oI,fM as VI,fk as OI,gJ as sG,gQ as oG,gi as yb,gk as DI,hD as oB,iH as nI,jD as vC,kH as sI,lJ as eI,mM as NI,mj as cg,mt as Ag,nJ as Gg,ni as xI,nj as rZ,nt as Rb,oJ as Ig,oN as OG,ot as jg,pJ as rG,pp as OB,pt as vg,qJ as gg,qi as JZ,qp as JC,qt as mg,rM as cI,si as DC,sk as qZ,ss as CI,st as Jb,sv as $I,tJ as fZ,tt as Ug,tv as DZ,uN as QG,vH as rI,vs as IB,xt as Kb,yC as hZ,yH as _Z,yO as IZ,ys as XI,zC as FZ}from"./cli-0.5.13-2vy5qjm5.mjs";import{IQ as aG,JQ as OZ}from"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import{cR as iI,oR as pZ}from"./cli-0.5.13-7je48sax.mjs";import{pR as MI,sR as MZ}from"./cli-0.5.13-kt5d0qv4.mjs";import{FR as wB,HR as XC}from"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import{VR as MG,WR as WI,YR as ZB,ZR as bB,_R as CB,bS as WB}from"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import{WT as nB,XT as sB,ZT as rB,_T as mC}from"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import{GU as eB,HU as SC}from"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import{fY as mI,hY as xZ}from"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import{FZ as cG,HZ as yB}from"./cli-0.5.13-f1e673b2.mjs";import{IZ as WC}from"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import{WZ as zI,ZZ as RZ,b0 as VZ}from"./cli-0.5.13-f1akqq6k.mjs";import{A2 as tb,E2 as MB,F2 as dC,J1 as dI,K1 as xB,L1 as lC,U3 as qB,a2 as tg,f4 as hB,h4 as FB,i2 as uG,t2 as kG,w1 as uB,y0 as rg,y2 as eg,z0 as rb}from"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import{D4 as Q,E4 as vG}from"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import{Fca as e,J$ as SG,Naa as KI,Nca as xG,P7 as Wg,Q$ as RG,Q6 as HI,Qaa as YG,R7 as UI,Raa as kB,S6 as yC,S7 as LI,S_ as XG,T$ as SB,V_ as tG,Y8 as mG,_$ as eG,b9 as _I,g$ as lG,iba as SI,o$ as aI,qca as yG,s$ as Eg,s7 as Cg,t9 as LB,tca as kI,u8 as dZ,u9 as HC,v8 as lI,w$ as ab,w8 as UB,x7 as lZ}from"./cli-0.5.13-p70x9j1v.mjs";import{_ca as Jg,ida as Wb,nda as ZG,sda as CC}from"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import{Qda as Pg,Sda as o,Uda as Ng,Vda as GI,Wda as lb}from"./cli-0.5.13-yc6wyazy.mjs";import{eea as zG,jea as KB,qea as yI}from"./cli-0.5.13-j97wk70q.mjs";import{tea as YI,uea as sb}from"./cli-0.5.13-cwy43qr2.mjs";import{ffa as vI,gfa as uZ}from"./cli-0.5.13-vee98ybt.mjs";import{hfa as m,jfa as WG}from"./cli-0.5.13-ktrr6zcr.mjs";import{Ofa as VG,Tfa as wg,cga as dg,jga as S,kga as Rg,mfa as mB,mga as dG,ofa as cC}from"./cli-0.5.13-a9gqqmjh.mjs";import{pga as nG,sga as EZ}from"./cli-0.5.13-g76ge0hv.mjs";import{Cga as HZ,Dga as s,Ega as _G,Fga as lg,Kga as hG,zga as TG}from"./cli-0.5.13-ywwd10c0.mjs";import{Qga as pG,Sga as FG,_ga as jG}from"./cli-0.5.13-vhjxq97s.mjs";import{Eia as jI,Hia as cZ,Kia as hI,Lla as yZ,Mia as EG,Qja as ig,Rja as og,Sja as ng,Wla as sg,Yla as FI,dma as pI,hla as TI,rka as AG,vma as r}from"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import{aoa as bC,foa as p}from"./cli-0.5.13-rmc7f4b8.mjs";vG();uZ();r();$Z();kI();WG();fG();SI();xZ();jG();hG();DZ();LI();MZ();oG();iG();qZ();OZ();import{readFileSync as AI}from"fs";import{resolve as wG}from"path";async function PZ(I,G,g,B){let{teammate:Z,assistant:W}=B,b=I;if(G.bare)process.env.CLAUDE_CODE_SIMPLE="1";if(b==="code")m("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)m("tengu_single_word_prompt",{length:b.length});let{debug:Y=!1,debugToStderr:h=!1,dangerouslySkipPermissions:y,allowDangerouslySkipPermissions:R=!1,tools:l=[],allowedTools:H=[],disallowedTools:J=[],mcpConfig:c=[],permissionMode:F,addDir:N=[],fallbackModel:K,betas:X=[],ide:w=!1,sessionId:k,includeHookEvents:u,includePartialMessages:U}=G;if(G.prefill)mI(G.prefill);let{agents:d,agent:j,outputFormat:V,inputFormat:z}=G,$=G.verbose??YG().verbose,A=G.print,P=G.init??!1,M=G.initOnly??!1,L=G.maintenance??!1;if(g.disableSlashCommands=G.disableSlashCommands||!1,g.taskListId=void 0,g.worktreeOption=aG()?G.worktree:void 0,g.worktreeName=typeof g.worktreeOption==="string"?g.worktreeOption:void 0,g.worktreeEnabled=g.worktreeOption!==void 0,g.worktreeName){let C=qI(g.worktreeName);if(C!==null)g.worktreePRNumber=C,g.worktreeName=void 0}if(g.tmuxEnabled=aG()&&G.tmux===!0,g.tmuxEnabled){if(!g.worktreeEnabled)process.stderr.write(Q.red(`Error: --tmux requires --worktree
2
- `)),process.exit(1);if(UI()==="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
- ${DI()}
5
- `)),process.exit(1)}if(gG()){let C=uI(G);g.storedTeammateOpts=C;let i=C.agentId||C.agentName||C.teamName,T=C.agentId&&C.agentName&&C.teamName;if(i&&!T)process.stderr.write(Q.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
6
- `)),process.exit(1);if(C.agentId&&C.agentName&&C.teamName)Z.getTeammateUtils().setDynamicTeamContext?.({agentId:C.agentId,agentName:C.agentName,teamName:C.teamName,color:C.agentColor,planModeRequired:C.planModeRequired??!1,parentSessionId:C.parentSessionId});if(C.teammateMode)Z.getTeammateModeSnapshot().setCliTeammateModeOverride?.(C.teammateMode)}if(g.sdkUrl=G.sdkUrl??void 0,g.effectiveIncludePartialMessages=!!U||pG(process.env.CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES),u||pG(process.env.CLAUDE_CODE_REMOTE))$I(!0);if(g.sdkUrl){if(!z)z="stream-json";if(!V)V="stream-json";if(G.verbose===void 0)$=!0;if(!G.print)A=!0}let v=G.teleport??null,x=G.remote,q=x===!0?"":x??null,E=G.remoteControl??G.rc,n=typeof E==="string"&&E.length>0?E:void 0;if(k){if((G.continue||G.resume)&&!G.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 C=HG(k);if(!C)process.stderr.write(Q.red(`Error: Invalid session ID. Must be a valid UUID.
8
- `)),process.exit(1);if(xI(C))process.stderr.write(Q.red(`Error: Session ID ${C} is already in use.
9
- `)),process.exit(1)}}if(g.fileSpecs=G.file,g.fileSpecs&&g.fileSpecs.length>0){let C=MI();if(!C)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||jI(),T=EI(g.fileSpecs);if(T.length>0){let kZ={baseUrl:(yG()?.transport==="anthropic"?yG()?.baseUrl:void 0)||vI().BASE_API_URL,oauthToken:C,sessionId:i};g.fileDownloadPromise=PI(T,kZ)}}let _=AG();if(K&&G.model&&K===G.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 O=G.systemPrompt;if(G.systemPromptFile){if(G.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 C=wG(G.systemPromptFile);O=AI(C,"utf8")}catch(C){if(_G(C)==="ENOENT")process.stderr.write(Q.red(`Error: System prompt file not found: ${wG(G.systemPromptFile)}
13
- `)),process.exit(1);process.stderr.write(Q.red(`Error reading system prompt file: ${s(C)}
14
- `)),process.exit(1)}}let IG=G.appendSystemPrompt;if(G.appendSystemPromptFile){if(G.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 C=wG(G.appendSystemPromptFile);IG=AI(C,"utf8")}catch(C){if(_G(C)==="ENOENT")process.stderr.write(Q.red(`Error: Append system prompt file not found: ${wG(G.appendSystemPromptFile)}
16
- `)),process.exit(1);process.stderr.write(Q.red(`Error reading append system prompt file: ${s(C)}
17
- `)),process.exit(1)}}if(gG()&&g.storedTeammateOpts?.agentId&&g.storedTeammateOpts?.agentName&&g.storedTeammateOpts?.teamName){let C=Z.getTeammatePromptAddendum().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;IG=IG?`${IG}
18
-
19
- ${C}`:C}return{prompt:b,debug:Y,debugToStderr:h,dangerouslySkipPermissions:y,allowDangerouslySkipPermissions:R,baseTools:l,allowedTools:H,disallowedTools:J,mcpConfig:c,permissionModeCli:F,addDir:N,fallbackModel:K,betas:X,ide:w,sessionId:k,includeHookEvents:u,includePartialMessages:U,outputFormat:V,inputFormat:z,verbose:$,print:A,init:P,initOnly:M,maintenance:L,agentsJson:d,agentCli:j,systemPrompt:O,appendSystemPrompt:IG,teleport:v,remote:q,remoteControlOption:E,remoteControlName:n,isNonInteractiveSession:_}}vG();TZ();r();WG();aZ();fZ();r();pZ();dG();jG();hG();_I();_Z();LI();EZ();r();aI();import{resolve as iZ}from"path";async function oZ(I,G){let{options:g,ctx:B,permissionModeCli:Z,dangerouslySkipPermissions:W,allowDangerouslySkipPermissions:b,baseTools:Y,allowedTools:h,disallowedTools:y,mcpConfig:R,addDir:l,isNonInteractiveSession:H,inputFormat:J,outputFormat:c}=I,{autoModeStateModule:F}=G,{mode:N,notification:K}=nI({permissionModeCli:Z,dangerouslySkipPermissions:W});if(TI(N==="bypassPermissions"),g.enableAutoMode||Z==="auto"||N==="auto"||!Z&&rI())F?.setAutoModeFlagCli(!0);let X={};if(R&&R.length>0){let M=R.map((x)=>x.trim()).filter((x)=>x.length>0),L={},v=[];for(let x of M){let q=null,E=[],n=mG(x);if(n){let _=Gg({configObject:n,filePath:"command line",expandVars:!0,scope:"dynamic"});if(_.config)q=_.config.mcpServers;else E=_.errors}else{let _=iZ(x),O=Ig({filePath:_,expandVars:!0,scope:"dynamic"});if(O.config)q=O.config.mcpServers;else E=O.errors}if(E.length>0)v.push(...E);else if(q)L={...L,...q}}if(v.length>0){let x=v.map((q)=>`${q.path?q.path+": ":""}${q.message}`).join(`
20
- `);S(`--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(([,O])=>O.type!=="sdk").map(([O])=>O),q=null;if(q)process.stderr.write(`Error: ${q}
23
- `),process.exit(1);let E=fI(L,(O)=>({...O,scope:"dynamic"})),{allowed:n,blocked:_}=sG(E);if(_.length>0)process.stderr.write(`Warning: MCP ${lG(_.length,"server")} blocked by enterprise policy: ${_.join(", ")}
24
- `);X={...X,...n}}}let w=g.strictMcpConfig||!1;if(rG()){if(w)process.stderr.write(Q.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(X&&!gg(X))process.stderr.write(Q.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}pI(l);let k,u=await sI({allowedToolsCli:h,disallowedToolsCli:y,baseToolsCli:Y,permissionMode:N,allowDangerouslySkipPermissions:b,addDirs:l}),U=u.toolPermissionContext,{warnings:d,dangerousPermissions:j,overlyBroadBashPermissions:V}=u;if(j.length>0)U=oI(U);d.forEach((M)=>{console.error(M)}),iI();let z=H&&!w&&!rG()&&!FG()?tI().then((M)=>{let{allowed:L,blocked:v}=sG(M);if(v.length>0)process.stderr.write(`Warning: claude.ai MCP ${lG(v.length,"server")} blocked by enterprise policy: ${v.join(", ")}
25
- `);return L}):Promise.resolve({});S("[STARTUP] Loading MCP configs...");let $=Date.now(),A={current:void 0},P=(w||FG()?Promise.resolve({servers:{},errors:[]}):eI(X)).then((M)=>{return A.current=Date.now()-$,M});if(J&&J!=="text"&&J!=="stream-json")console.error(`Error: Invalid input format "${J}".`),process.exit(1);if(J==="stream-json"&&c!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(B.sdkUrl){if(J!=="stream-json"||c!=="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"||c!=="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(!H||c!=="stream-json")nG("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(g.sessionPersistence===!1&&!H)nG("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);return{permissionMode:N,permissionModeNotification:K,dynamicMcpConfig:X,strictMcpConfig:w,devChannels:k,toolPermissionContext:U,overlyBroadBashPermissions:V,claudeaiConfigPromise:z,mcpConfigPromise:P,mcpConfigResolvedRef:A}}vG();r();cI();GC();BB();WB();fG();WG();sb();dG();jG();_I();xG();eb();tb();rb();r();oG();eG();iG();function Bg(){}tG();Xg();sZ();nZ();rZ();Wg();t();var Zg=5,bg=30,tZ=`After you finish implementing the change:
26
- 1. **Code review** — Invoke the \`${cg}\` 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 eZ(I){return`# Batch: Parallel Work Orchestration
31
-
32
- You are orchestrating a large, parallelizable change across this codebase.
33
-
34
- ## User Instruction
35
-
36
- ${I}
37
-
38
- ## Phase 1: Research and Plan (Plan Mode)
39
-
40
- Call the \`${Vg}\` 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 ${Zg}–${bg} 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 ${Zg}; hundreds of files → closer to ${bg}. 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 \`${UG}\` 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 \`${Yg}\` 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 \`${XG}\` 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
- ${tZ}
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 Gb="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.",Ib=`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 yg(){D({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(I){let G=I.trim();if(!G)return[{type:"text",text:Ib}];if(!await Cg())return[{type:"text",text:Gb}];return[{type:"text",text:eZ(G)}]}})}tG();Xg();t();var gb=/^(low|medium|high)$/i,Bb=/^--comment$/i,Zb={low:1,medium:2,high:3};function bb(I){let G=I.trim().split(/\s+/).filter(Boolean),g=!1,B=[];for(let h of G)if(Bb.test(h))g=!0;else B.push(h);let Z="high",W,b=B,Y=B[0];if(Y!==void 0&&gb.test(Y))Z=Y.toLowerCase(),b=B.slice(1);else if(Y!==void 0&&B.length===1)W=Y,b=[];return{effort:Z,comment:g,invalidEffort:W,focus:b.join(" ")}}function Cb(I){let{effort:G,comment:g,invalidEffort:B,focus:Z}=I,W=Zb[G],b=G==="high",Y=B?`
104
- > Note: \`${B}\` is not a valid effort level — defaulting to \`high\`. Valid levels are \`low\`, \`medium\`, \`high\`. Tell the user this once.
105
- `:"",h=W===1?`Use the ${XG} tool to launch **one** review agent. Pass it the full diff.`:`Use the ${XG} tool to launch **${W}** review agents concurrently in a single message. Pass each agent the full diff. Split the changed files roughly evenly between agents so each owns a distinct slice, but every agent sees the whole diff for context.`,y=b?`
106
- This is a **high-effort** review. ultrathink — reason deeply about each change before reporting. Trace control flow and data flow by hand, consider adversarial and boundary inputs, and verify your suspicion is a real bug (not a false positive) before including it.
107
- `:"",R=g?`## Phase 3: Report and Post to the PR
108
-
109
- The user passed \`--comment\`, so findings should be posted as inline comments on the branch's open GitHub pull request. **Never post without explicit user confirmation** — follow these steps in order:
110
-
111
- 1. Run \`gh pr view --json number,headRefName,url\` to find the open PR for the current branch.
112
- 2. If there is **no open PR** (or \`gh\` is unavailable), fall back: print the full markdown report in the chat and tell the user that \`--comment\` needs an open PR to post inline comments. Stop here.
113
- 3. Review **the PR's own diff** via \`gh pr diff\` (not a local \`git diff\` — this avoids mismatches if the local branch has diverged from the remote).
114
- 4. Present the verdict and all findings in the chat first, as a markdown report.
115
- 5. Use the ${UG} tool to let the user decide what to do next: post the inline comments to the PR, dig deeper into a finding, or discard. Answer any follow-up questions the user has before they decide.
116
- 6. Only if the user confirms posting, submit **one** review with all inline comments in a single request:
117
- \`gh api repos/{owner}/{repo}/pulls/{number}/reviews -f event=COMMENT -F 'comments[][path]=...' -F 'comments[][line]=...' -F 'comments[][body]=...'\`
118
- Each finding becomes one inline comment anchored at its file path and line.
119
- 7. Confirm what was posted and link the PR.`:`## Phase 3: Report
120
-
121
- Wait for all review agents to finish. Aggregate their findings into a single markdown report. For each finding include:
122
-
123
- - File and line (\`path:line\`)
124
- - Severity (high / medium / low)
125
- - A short description of the bug
126
- - Why it is a bug — the concrete failure case or input that triggers it
127
- - A suggested fix
128
-
129
- Do **not** modify the code — this skill only reports. If a finding is a false positive or too speculative, drop it rather than padding the report. If no real bugs were found, say so plainly.`,l=Z?`
130
-
131
- ## Additional Focus
132
-
133
- ${Z}
134
- `:"";return`# Code Review: Report Correctness Bugs
135
-
136
- Review the changed code for **correctness bugs** and report them. Effort level: **${G}**.
137
- ${Y}${y}
138
- Focus exclusively on bugs that make the code behave incorrectly:
139
-
140
- - Incorrect logic, inverted conditions, off-by-one errors
141
- - Unhandled edge cases — empty inputs, boundaries, null/undefined
142
- - Missing \`await\` on promises, unhandled rejections
143
- - Regressions in existing behavior the change touches
144
- - Broken or swallowed error handling
145
- - Concrete race conditions (not theoretical ones)
146
-
147
- Do **not** report style, naming, formatting, refactor opportunities, or general cleanup — only correctness bugs.
148
-
149
- ## Phase 1: Identify Changes
150
-
151
- Run \`git diff\` (or \`git diff HEAD\` if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.
152
-
153
- ## Phase 2: Launch Review Agent${W===1?"":"s"}
154
-
155
- ${h} Instruct each agent to read the surrounding code as needed to confirm whether a suspected bug is real, and to report only correctness bugs with a concrete failure case.
156
-
157
- ${R}${l}`}function Hg(){D({name:"code-review",description:"Report correctness bugs in changed code at a chosen effort level. Pass --comment to post findings as inline GitHub PR comments.",whenToUse:"When the user wants changed/recent code reviewed for correctness bugs (logic errors, edge cases, regressions).",argumentHint:"[low|medium|high] [--comment]",userInvocable:!0,disableModelInvocation:!1,allowedTools:["Read","Grep","Glob","Bash(git diff:*)","Bash(git status:*)","Bash(git log:*)","Bash(gh pr view:*)","Bash(gh pr diff:*)","Bash(gh api:*)"],async getPromptForCommand(I){let G=bb(I);return[{type:"text",text:Cb(G)}]}})}Yb();eG();dG();hG();Wb();t();import{open as Xb,stat as Vb}from"fs/promises";var LG=20,cb=65536;function hg(){D({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(I){let G=dg(),g=Rg(),B;try{let b=await Vb(g),Y=Math.min(b.size,cb),h=b.size-Y,y=await Xb(g,"r");try{let{buffer:R,bytesRead:l}=await y.read({buffer:Buffer.alloc(Y),position:h}),H=R.toString("utf-8",0,l).split(`
158
- `).slice(-LG).join(`
159
- `);B=`Log size: ${Jg(b.size)}
160
-
161
- ### Last ${LG} lines
162
-
163
- \`\`\`
164
- ${H}
165
- \`\`\``}finally{await y.close()}}catch(b){B=lg(b)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${LG} lines of debug log: ${s(b)}`}return[{type:"text",text:`# Debug Skill
166
-
167
- Help the user debug an issue they're encountering in this current Claude Code session.
168
- ${G?"":`
169
- ## Debug Logging Just Enabled
170
-
171
- Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
172
-
173
- 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.
174
- `}
175
- ## Session Debug Log
176
-
177
- The debug log for the current session is at: \`${g}\`
178
-
179
- ${B}
180
-
181
- For additional context, grep for [ERROR] and [WARN] lines across the full file.
182
-
183
- ## Issue Description
184
-
185
- ${I||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
186
-
187
- ## Settings
188
-
189
- Remember that settings are in:
190
- * user - ${SG("userSettings")}
191
- * project - ${SG("projectSettings")}
192
- * local - ${SG("localSettings")}
193
-
194
- ## Instructions
195
-
196
- 1. Review the user's issue description
197
- 2. The last ${LG} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
198
- 3. Consider launching the ${Kg} subagent to understand the relevant Claude Code features
199
- 4. Explain what you found in plain language
200
- 5. Suggest concrete fixes or next steps
201
- `}]}})}yb();t();function Hb(){return`# Fewer Permission Prompts
202
-
203
- 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.
204
-
205
- The format for permissions is: \`Bash(foo*)\`, \`Bash(foo)\`, \`Bash(foo bar *)\`, \`mcp__slack__slack_read_thread\`, etc.
206
-
207
- Then, add these to the project \`.claudin/settings.json\` under \`permissions.allow\`.
208
-
209
- ## Steps
210
-
211
- 1. **Locate transcripts.** Session transcripts live under \`${Fg()}/<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.
212
-
213
- 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.
214
-
215
- 2. **Extract tool-call frequencies.**
216
- - 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\`).
217
- - For MCP calls: record the full tool name (e.g. \`mcp__slack__slack_read_thread\`).
218
- - Count occurrences across the scanned transcripts.
219
-
220
- 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.
221
-
222
- Drop anything that writes, deletes, renames, pushes, merges, installs, or runs a build/test that has side effects. When in doubt, leave it out.
223
-
224
- **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:
225
- - Interpreters: \`python\`/\`python3\`, \`node\`, \`bun\`, \`deno\`, \`ruby\`, \`perl\`, \`php\`, \`lua\`, etc.
226
- - Shells: \`bash\`, \`sh\`, \`zsh\`, \`fish\`, \`eval\`, \`exec\`, \`ssh\`, etc.
227
- - Package runners: \`npx\`, \`bunx\`, \`uvx\`, \`uv run\`, etc.
228
- - 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
229
- - \`gh api *\`, \`docker run\`/\`exec\`, \`kubectl exec\`, \`sudo\`, and similar
230
-
231
- 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.
232
-
233
- - **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\`.
234
- - **Auto-allowed with zero args only:** \`pwd\`, \`whoami\`, \`alias\`.
235
- - **Auto-allowed exact forms:** \`node -v\`, \`node --version\`, \`python --version\`, \`python3 --version\`, \`ip addr\`.
236
- - **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\`.
237
- - **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.
238
- - **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.
239
- - **Docker read-only subcommands:** \`docker ps\`, \`docker images\`, \`docker logs\`, \`docker inspect\`.
240
-
241
- 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.
242
-
243
- 5. **Pick the pattern form.** Use the narrowest pattern that still covers the observed usage:
244
- - 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.
245
- - If a single exact invocation is common: use \`Bash(foo)\` with no wildcard.
246
- - For MCP: use the full tool name verbatim (no wildcard needed; they're already specific).
247
- - Never widen a pattern to the point that it conflicts with the rules above (no arbitrary code execution, no mutation/side effects).
248
-
249
- 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.
250
-
251
- 7. **Present the prioritized list to the user** as a markdown table with columns: rank, pattern, count, one-line description. Example:
252
-
253
- | # | Pattern | Count | Notes |
254
- |---|---------|-------|-------|
255
- | 1 | \`Bash(git status *)\` | 142 | repo status checks |
256
- | 2 | \`Bash(gh pr view *)\` | 87 | PR inspection |
257
- | 3 | \`mcp__slack__slack_read_thread\` | 54 | Slack thread reads |
258
-
259
- 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.
260
-
261
- 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").
262
-
263
- Do not add anything to \`permissions.deny\` or \`permissions.ask\`. Do not touch any other settings field.`}function zg(){D({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:Hb()}]}})}Rb();Kb();Jb();Ng();lb();var II=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],Qg={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"},gI=["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:submit","chat:newline","chat:undo","chat:externalEditor","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:back","diff:viewDetails","diff:previousFile","diff:nextFile","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"],db=GI(()=>o.object({context:o.enum(II).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(gI),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")),yY=GI(()=>o.object({$schema:o.string().optional().describe("JSON Schema URL for editor validation"),$docs:o.string().optional().describe("Documentation URL"),bindings:o.array(db()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."));wg();t();function hb(){return BI(["Context","Description"],II.map((I)=>[`\`${I}\``,Qg[I]]))}function Fb(){let I={};for(let G of Ag)for(let[g,B]of Object.entries(G.bindings))if(B){if(!I[B])I[B]={keys:[],context:G.context};I[B].keys.push(g)}return BI(["Action","Default Key(s)","Context"],gI.map((G)=>{let g=I[G],B=g?g.keys.map((W)=>`\`${W}\``).join(", "):"(none)",Z=g?g.context:zb(G);return[`\`${G}\``,B,Z]}))}function zb(I){let G=I.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"}[G??""]??"Unknown"}function Nb(){let I=[];I.push("### Non-rebindable (errors)");for(let G of jg)I.push(`- \`${G.key}\` — ${G.reason}`);I.push(""),I.push("### Terminal reserved (errors/warnings)");for(let G of vg)I.push(`- \`${G.key}\` — ${G.reason} (${G.severity==="error"?"will not work":"may conflict"})`);I.push(""),I.push("### macOS reserved (errors)");for(let G of mg)I.push(`- \`${G.key}\` — ${G.reason}`);return I.join(`
264
- `)}var Qb={$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"}}]},wb={context:"Chat",bindings:{"ctrl+s":null}},Ab={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},jb={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},vb=["# 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(`
265
- `),mb=["## File Format","","```json",VG(Qb,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
266
- `),Ub=["## 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(`
267
- `),Lb=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",VG(wb,null,2),"```"].join(`
268
- `),Sb=["## 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(`
269
- `),kb=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",VG(Ab,null,2),"```","","### Add a chord binding","```json",VG(jb,null,2),"```"].join(`
270
- `),ub=["## 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(`
271
- `),xb=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claudin/keybindings.json`.',"","### Common Issues and Fixes","",BI(["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(`
272
- `);function Lg(){D({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:Ug,async getPromptForCommand(I){let G=hb(),g=Fb(),B=Nb(),Z=[vb,mb,Ub,Lb,Sb,kb,ub,xb,`## Reserved Shortcuts
273
-
274
- ${B}`,`## Available Contexts
275
-
276
- ${G}`,`## Available Actions
277
-
278
- ${g}`];if(I)Z.push(`## User Request
279
-
280
- ${I}`);return[{type:"text",text:Z.join(`
281
-
282
- `)}]}})}function BI(I,G){let g=I.map(()=>"---");return[`| ${I.join(" | ")} |`,`| ${g.join(" | ")} |`,...G.map((B)=>`| ${B.join(" | ")} |`)].join(`
283
- `)}Mb();t();var qb="1 minute",Ob="1 hour",xg=`Scheduled maintenance loop iteration.
284
-
285
- If .claudin/loop.md exists, read it and follow it.
286
- Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
287
- Otherwise:
288
- - continue any unfinished work from the conversation
289
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
290
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
291
-
292
- Do not start new initiatives outside that scope.
293
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`;function Db(I){let G=I.toLowerCase();if(["s","sec","secs","second","seconds"].includes(G))return"s";if(["m","min","mins","minute","minutes"].includes(G))return"m";if(["h","hr","hrs","hour","hours"].includes(G))return"h";if(["d","day","days"].includes(G))return"d";return null}function ZI(I){let G=I.trim().match(/^(\d+)\s*([a-zA-Z]+)$/);if(!G)return null;let g=Number.parseInt(G[1],10);if(!Number.isFinite(g)||g<1)return null;let B=Db(G[2]);if(!B)return null;return`${g}${B}`}function $b(I){let G=I.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!G)return null;let g=ZI(`${G[2]}${G[3]}`);if(!g)return null;return{prompt:G[1].trim(),interval:g}}function Pb(I){let G=I.trim();if(!G)return{mode:"dynamic-maintenance"};let g=ZI(G);if(g)return{mode:"fixed-maintenance",interval:g};let[B,...Z]=G.split(/\s+/),W=ZI(B??"");if(W){let Y=Z.join(" ").trim();if(!Y)return{mode:"fixed-maintenance",interval:W};return{mode:"fixed-prompt",interval:W,prompt:Y}}let b=$b(G);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:G}}function Eb(I){let G=I.prompt?`Use this prompt verbatim for both the immediate run and the recurring scheduled task:
294
-
295
- --- BEGIN PROMPT ---
296
- ${I.prompt}
297
- --- END PROMPT ---
298
- `:`This is a maintenance loop with no explicit prompt.
299
-
300
- For the recurring scheduled task, use this exact maintenance prompt body:
301
-
302
- --- BEGIN MAINTENANCE PROMPT ---
303
- ${xg}
304
- --- END MAINTENANCE PROMPT ---
305
- `;return`# /loop — fixed recurring interval
306
-
307
- The user invoked /loop with a fixed interval.
308
-
309
- Requested interval: ${I.interval}
310
-
311
- ${G}
312
- ## Instructions
313
-
314
- 1. Convert the requested interval to a recurring cron expression.
315
- - Supported suffixes: s, m, h, d.
316
- - Seconds must be rounded up to the nearest minute because cron has minute granularity.
317
- - If the requested interval does not map cleanly to cron cadence, choose the nearest clean recurring interval and tell the user what you picked.
318
- 2. Call ${bI} with:
319
- - the recurring cron expression
320
- - the effective prompt body above
321
- - recurring: true
322
- - durable: false
323
- 3. Briefly confirm what was scheduled, the cron expression, the human cadence, that recurring tasks auto-expire after ${Sg} days, and that the user can cancel sooner with ${ug} using the returned job ID.
324
- 4. Immediately execute the effective prompt now — do not wait for the first cron fire.
325
- - If the effective prompt starts with a slash command, invoke it via the Skill tool.
326
- - Otherwise, act on it directly.
327
- `}function Tb(I){let G=I.prompt?`Use this prompt verbatim as the effective prompt for this iteration:
328
-
329
- --- BEGIN PROMPT ---
330
- ${I.prompt}
331
- --- END PROMPT ---
332
- `:`This is a maintenance loop with no explicit prompt.
333
-
334
- Determine the effective prompt in this order:
335
- 1. If .claudin/loop.md exists, read it and use it.
336
- 2. Otherwise, if ~/.claudin/loop.md exists, read it and use it.
337
- 3. Otherwise, use this built-in maintenance prompt:
338
-
339
- --- BEGIN MAINTENANCE PROMPT ---
340
- ${xg}
341
- --- END MAINTENANCE PROMPT ---
342
- `,g=I.prompt?`/loop ${I.prompt}`:"/loop";return`# /loop — dynamic rescheduling
343
-
344
- The user invoked /loop without a fixed interval.
345
-
346
- ${G}
347
- ## Instructions
348
-
349
- 1. Execute the effective prompt now.
350
- - If it starts with a slash command, invoke it via the Skill tool.
351
- - Otherwise, act on it directly.
352
- 2. After the work finishes, choose the next delay dynamically between ${qb} and ${Ob}.
353
- - Use shorter delays while active work is progressing or likely to change soon.
354
- - Use longer delays when the situation is quiet or stable.
355
- 3. Briefly tell the user the chosen delay and the reason.
356
- 4. Schedule exactly one session-only follow-up run with ${bI}.
357
- - Use recurring: false.
358
- - Use durable: false.
359
- - Pin the cron expression to a specific future local-time minute that matches the chosen delay.
360
- - Set the scheduled prompt to this exact text so the next iteration stays in dynamic mode:
361
-
362
- --- BEGIN SCHEDULED PROMPT ---
363
- ${g}
364
- --- END SCHEDULED PROMPT ---
365
-
366
- 5. Confirm the next run time and the returned job ID.
367
- 6. Do not create a recurring cron for this mode.
368
- `}function Mg(){D({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:kg,async getPromptForCommand(I){let G=Pb(I);return[{type:"text",text:G.mode==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gcnVubmluZyB0aGUgYXBwIGludGVyYWN0aXZlbHksIHRtdXggaXMgb3ZlcmtpbGwuIEluY2x1ZGUKdGhlIG9uZS1saW5lciB0b286Cgo+ICMjIFJ1biAoZGlyZWN0LCBmb3IgaHVtYW5zKQo+Cj4gYGBgYmFzaAo+IC4vbXlhcHAKPiBgYGAKPgo+IFByZXNzIGBxYCB0byBxdWl0Lgo=")};var pb=`**Running means launching the actual app and interacting with it** —
369
- not the test suite, not an \`import\` of an internal function and a
370
- \`console.log\`. The app as a user (human or programmatic) would meet
371
- it: the CLI at its command, the server at its socket, the GUI at its
372
- window.
373
-
374
- ## First: does a project skill already cover this?
375
-
376
- A project skill that launches this app is the repo's verified path —
377
- its author already cold-started from a Linux container and committed
378
- what worked: the exact \`apt-get\` line, the env vars, the patches, the
379
- driver. Use it instead of rediscovering.
380
-
381
- \`\`\`bash
382
- d=$PWD; while :; do
383
- grep -Hm1 '^description:' "$d"/.claudin/skills/*/SKILL.md 2>/dev/null
384
- [ -e "$d/.git" ] || [ "$d" = / ] && break
385
- d=$(dirname "$d")
386
- done
387
- \`\`\`
388
-
389
- - **One describes launching/driving this app** → read that SKILL.md
390
- and follow it verbatim. Don't paraphrase; don't skip the patches.
391
- - **Mega-repo, several plausible, no clear match** → ask the user
392
- which unit to run.
393
- - **Stale** (fails on mechanics unrelated to your task) → tell the
394
- user.
395
- - **Nothing about running** → fall back to the patterns below.
396
-
397
- ## Otherwise: match the shape, use the pattern
398
-
399
- Pick the row closest to your project. Each example walks through
400
- launch + first interaction; ignore any trailing "write the skill"
401
- section — you're using the recipe, not authoring one.
402
-
403
- | Project type | Handle | Example |
404
- |---|---|---|
405
- | CLI tool | direct invocation, exit code, stdin/stdout | [examples/cli.md](examples/cli.md) |
406
- | Web server / API | background launch + \`curl\` smoke | [examples/server.md](examples/server.md) |
407
- | TUI / interactive terminal | tmux \`send-keys\` / \`capture-pane\` | [examples/tui.md](examples/tui.md) |
408
- | Electron / desktop GUI | Playwright \`_electron\` REPL under xvfb | [examples/electron.md](examples/electron.md) |
409
- | Browser-driven | dev server + \`chromium-cli\` script | [examples/playwright.md](examples/playwright.md) |
410
- | Library / SDK | import-and-call smoke script at the package boundary | [examples/library.md](examples/library.md) |
411
-
412
- If nothing fits, start from the closest match and adapt. For a web
413
- app, [examples/playwright.md](examples/playwright.md) — drive it with
414
- \`chromium-cli\`, no custom driver needed. For a desktop app,
415
- [examples/electron.md](examples/electron.md) — it has the \`_electron\`
416
- REPL driver skeleton and the tmux wrapping.
417
-
418
- ## Drive it, don't just launch it
419
-
420
- Launching with no interaction proves the entrypoint resolves. That's
421
- not running the app — it's typechecking with extra steps. Drive it to
422
- a point where a user would see something:
423
-
424
- - CLI → type a representative command, check the exit code and output.
425
- - Server → hit the route the diff touches with \`curl\`, read the body.
426
- - TUI → \`send-keys\` a navigation, \`capture-pane\` the result.
427
- - GUI → click the button, screenshot the window. **Look at the
428
- screenshot.** A blank frame is a failure to launch.
429
-
430
- If the fallback pattern didn't work out of the box — you had to
431
- install packages, set env vars, patch config, or write a driver —
432
- note that in your report so the work can be captured as a project
433
- skill for next time. If it just worked, don't.`;function Dg(){D({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:Og,async getPromptForCommand(){return[{type:"text",text:pb}]}})}tG();t();function _b(I){let G=I.trim(),g=G?`
434
-
435
- ## Additional Focus
436
-
437
- ${G}
438
- `:"";return`# Simplify: Quality Cleanup of Changed Code
439
-
440
- You are improving the quality of the changed code, not hunting for bugs. Review
441
- it for reuse, simplification, efficiency, and altitude issues, then fix what you
442
- find. Do not look for correctness bugs — that is what \`/code-review\` is for.
443
-
444
- ## Phase 0 — Gather the diff
445
-
446
- Run \`git diff @{upstream}...HEAD\` (or \`git diff main...HEAD\` / \`git diff HEAD~1\`
447
- if there's no upstream) to get the unified diff under review. If there are
448
- uncommitted changes, or the range diff is empty, also run \`git diff HEAD\` and
449
- include the working-tree changes in scope — the review often runs before the
450
- commit. If a PR number, branch name, or file path was passed as an argument,
451
- review that target instead. Treat this diff as the review scope.
452
-
453
- ## Phase 1 — Review (4 cleanup agents in parallel)
454
-
455
- Use the ${XG} tool to launch **4 independent review agents**, all in
456
- a single message so they run concurrently. Pass each agent the diff and one of
457
- the four angles below. Each returns its findings with \`file\`, \`line\`, a
458
- one-line \`summary\`, and the concrete cost (what is duplicated, wasted, or
459
- harder to maintain).
460
-
461
- ### Reuse
462
-
463
- Flag new code that re-implements something the codebase
464
- already has — Grep shared/utility modules and files adjacent to the change,
465
- and name the existing helper to call instead.
466
-
467
- ### Simplification
468
-
469
- Flag unnecessary complexity the diff adds: redundant or derivable state,
470
- copy-paste with slight variation, deep nesting, dead code left behind. Name
471
- the simpler form that does the same job.
472
-
473
- ### Efficiency
474
-
475
- Flag wasted work the diff introduces: redundant computation or repeated I/O,
476
- independent operations run sequentially, blocking work added to startup or
477
- hot paths. Name the cheaper alternative.
478
-
479
- ### Altitude
480
-
481
- Check that each change is implemented at the right depth, not as a fragile
482
- bandaid. Special cases layered on shared infrastructure are a sign the fix
483
- isn't deep enough — prefer generalizing the underlying mechanism over adding
484
- special cases.
485
-
486
- ## Phase 2 — Apply the fixes
487
-
488
- Wait for all four agents to complete, dedup findings that point at the same
489
- line or mechanism, and fix each remaining one directly. Skip any finding whose
490
- fix would change intended behavior, require changes well outside the reviewed
491
- diff, or that you judge to be a false positive — note the skip rather than
492
- arguing with it. Finish with a brief summary of what was fixed and what was
493
- skipped (or confirm the code was already clean).${g}`}function $g(){D({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(I){return[{type:"text",text:_b(I)}]}})}Ng();ab();wg();t();function fb(){let I=Pg(Eg(),{io:"input"});return VG(I,null,2)}var ib=`## Settings File Locations
494
-
495
- Choose the appropriate file based on scope:
496
-
497
- | File | Scope | Git | Use For |
498
- |------|-------|-----|---------|
499
- | \`~/.claudin/settings.json\` | Global | N/A | Personal preferences for all projects |
500
- | \`.claudin/settings.json\` | Project | Commit | Team-wide hooks, permissions, plugins |
501
- | \`.claudin/settings.local.json\` | Project | Gitignore | Personal overrides for this project |
502
-
503
- Settings load in order: user → project → local (later overrides earlier).
504
-
505
- ## Settings Schema Reference
506
-
507
- ### Permissions
508
- \`\`\`json
509
- {
510
- "permissions": {
511
- "allow": ["Bash(npm:*)", "Edit(.claudin)", "Read"],
512
- "deny": ["Bash(rm -rf:*)"],
513
- "ask": ["Write(/etc/*)"],
514
- "defaultMode": "default" | "plan" | "acceptEdits" | "dontAsk",
515
- "additionalDirectories": ["/extra/dir"]
516
- }
517
- }
518
- \`\`\`
519
-
520
- **Permission Rule Syntax:**
521
- - Exact match: \`"Bash(npm run test)"\`
522
- - Prefix wildcard: \`"Bash(git:*)"\` - matches \`git status\`, \`git commit\`, etc.
523
- - Tool only: \`"Read"\` - allows all Read operations
524
-
525
- ### Environment Variables
526
- \`\`\`json
527
- {
528
- "env": {
529
- "DEBUG": "true",
530
- "MY_API_KEY": "value"
531
- }
532
- }
533
- \`\`\`
534
-
535
- ### Model & Agent
536
- \`\`\`json
537
- {
538
- "model": "sonnet", // or "opus", "haiku", full model ID
539
- "agent": "agent-name",
540
- "alwaysThinkingEnabled": true
541
- }
542
- \`\`\`
543
-
544
- ### Attribution (Commits & PRs)
545
- \`\`\`json
546
- {
547
- "attribution": {
548
- "commit": "Custom commit trailer text",
549
- "pr": "Custom PR description text"
550
- }
551
- }
552
- \`\`\`
553
- Set \`commit\` or \`pr\` to empty string \`""\` to hide that attribution.
554
-
555
- ### MCP Server Management
556
- \`\`\`json
557
- {
558
- "enableAllProjectMcpServers": true,
559
- "enabledMcpjsonServers": ["server1", "server2"],
560
- "disabledMcpjsonServers": ["blocked-server"]
561
- }
562
- \`\`\`
563
-
564
- ### Plugins
565
- \`\`\`json
566
- {
567
- "enabledPlugins": {
568
- "formatter@anthropic-tools": true
569
- }
570
- }
571
- \`\`\`
572
- Plugin syntax: \`plugin-name@source\` where source is \`claude-code-marketplace\`, \`claude-plugins-official\`, or \`builtin\`.
573
-
574
- ### Other Settings
575
- - \`language\`: Preferred response language (e.g., "japanese")
576
- - \`cleanupPeriodDays\`: Days to keep transcripts (default: 30; 0 disables persistence entirely)
577
- - \`respectGitignore\`: Whether to respect .gitignore (default: true)
578
- - \`spinnerTipsEnabled\`: Show tips in spinner
579
- - \`spinnerVerbs\`: Customize spinner verbs (\`{ "mode": "append" | "replace", "verbs": [...] }\`)
580
- - \`spinnerTipsOverride\`: Override spinner tips (\`{ "excludeDefault": true, "tips": ["Custom tip"] }\`)
581
- - \`syntaxHighlightingDisabled\`: Disable diff highlighting
582
- `,Tg=`## Hooks Configuration
583
-
584
- Hooks run commands at specific points in Claude Code's lifecycle.
585
-
586
- ### Hook Structure
587
- \`\`\`json
588
- {
589
- "hooks": {
590
- "EVENT_NAME": [
591
- {
592
- "matcher": "ToolName|OtherTool",
593
- "hooks": [
594
- {
595
- "type": "command",
596
- "command": "your-command-here",
597
- "timeout": 60,
598
- "statusMessage": "Running..."
599
- }
600
- ]
601
- }
602
- ]
603
- }
604
- }
605
- \`\`\`
606
-
607
- ### Hook Events
608
-
609
- | Event | Matcher | Purpose |
610
- |-------|---------|---------|
611
- | PermissionRequest | Tool name | Run before permission prompt |
612
- | PreToolUse | Tool name | Run before tool, can block |
613
- | PostToolUse | Tool name | Run after successful tool |
614
- | PostToolUseFailure | Tool name | Run after tool fails |
615
- | Notification | Notification type | Run on notifications |
616
- | Stop | - | Run when Claude stops (including clear, resume, compact) |
617
- | PreCompact | "manual"/"auto" | Before compaction |
618
- | PostCompact | "manual"/"auto" | After compaction (receives summary) |
619
- | UserPromptSubmit | - | When user submits |
620
- | SessionStart | - | When session starts |
621
-
622
- **Common tool matchers:** \`Bash\`, \`Write\`, \`Edit\`, \`Read\`, \`Glob\`, \`Grep\`
623
-
624
- ### Hook Types
625
-
626
- **1. Command Hook** - Runs a shell command:
627
- \`\`\`json
628
- { "type": "command", "command": "prettier --write $FILE", "timeout": 30 }
629
- \`\`\`
630
-
631
- **2. Prompt Hook** - Evaluates a condition with LLM:
632
- \`\`\`json
633
- { "type": "prompt", "prompt": "Is this safe? $ARGUMENTS" }
634
- \`\`\`
635
- Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
636
-
637
- **3. Agent Hook** - Runs an agent with tools:
638
- \`\`\`json
639
- { "type": "agent", "prompt": "Verify tests pass: $ARGUMENTS" }
640
- \`\`\`
641
- Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
642
-
643
- ### Hook Input (stdin JSON)
644
- \`\`\`json
645
- {
646
- "session_id": "abc123",
647
- "tool_name": "Write",
648
- "tool_input": { "file_path": "/path/to/file.txt", "content": "..." },
649
- "tool_response": { "success": true } // PostToolUse only
650
- }
651
- \`\`\`
652
-
653
- ### Hook JSON Output
654
-
655
- Hooks can return JSON to control behavior:
656
-
657
- \`\`\`json
658
- {
659
- "systemMessage": "Warning shown to user in UI",
660
- "continue": false,
661
- "stopReason": "Message shown when blocking",
662
- "suppressOutput": false,
663
- "decision": "block",
664
- "reason": "Explanation for decision",
665
- "hookSpecificOutput": {
666
- "hookEventName": "PostToolUse",
667
- "additionalContext": "Context injected back to model"
668
- }
669
- }
670
- \`\`\`
671
-
672
- **Fields:**
673
- - \`systemMessage\` - Display a message to the user (all hooks)
674
- - \`continue\` - Set to \`false\` to block/stop (default: true)
675
- - \`stopReason\` - Message shown when \`continue\` is false
676
- - \`suppressOutput\` - Hide stdout from transcript (default: false)
677
- - \`decision\` - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
678
- - \`reason\` - Explanation for decision
679
- - \`hookSpecificOutput\` - Event-specific output (must include \`hookEventName\`):
680
- - \`additionalContext\` - Text injected into model context
681
- - \`permissionDecision\` - "allow", "deny", or "ask" (PreToolUse only)
682
- - \`permissionDecisionReason\` - Reason for the permission decision (PreToolUse only)
683
- - \`updatedInput\` - Modified tool input (PreToolUse only)
684
-
685
- ### Common Patterns
686
-
687
- **Auto-format after writes:**
688
- \`\`\`json
689
- {
690
- "hooks": {
691
- "PostToolUse": [{
692
- "matcher": "Write|Edit",
693
- "hooks": [{
694
- "type": "command",
695
- "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
696
- }]
697
- }]
698
- }
699
- }
700
- \`\`\`
701
-
702
- **Log all bash commands:**
703
- \`\`\`json
704
- {
705
- "hooks": {
706
- "PreToolUse": [{
707
- "matcher": "Bash",
708
- "hooks": [{
709
- "type": "command",
710
- "command": "jq -r '.tool_input.command' >> ~/.claudin/bash-log.txt"
711
- }]
712
- }]
713
- }
714
- }
715
- \`\`\`
716
-
717
- **Stop hook that displays message to user:**
718
-
719
- Command must output JSON with \`systemMessage\` field:
720
- \`\`\`bash
721
- # Example command that outputs: {"systemMessage": "Session complete!"}
722
- echo '{"systemMessage": "Session complete!"}'
723
- \`\`\`
724
-
725
- **Run tests after code changes:**
726
- \`\`\`json
727
- {
728
- "hooks": {
729
- "PostToolUse": [{
730
- "matcher": "Write|Edit",
731
- "hooks": [{
732
- "type": "command",
733
- "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\\\.(ts|js)$' && npm test || true"
734
- }]
735
- }]
736
- }
737
- }
738
- \`\`\`
739
- `,pg=`## Constructing a Hook (with verification)
740
-
741
- 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.
742
-
743
- 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.
744
-
745
- 2. **Construct the command for THIS project — don't assume.** The hook receives JSON on stdin. Build a command that:
746
- - Extracts any needed payload safely — use \`jq -r\` into a quoted variable or \`{ read -r f; ... "$f"; }\`, NOT unquoted \`| xargs\` (splits on spaces)
747
- - Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
748
- - Skips inputs the tool doesn't handle (formatters often have \`--ignore-unknown\`; if not, guard by extension)
749
- - Stays RAW for now — no \`|| true\`, no stderr suppression. You'll wrap it after the pipe-test passes.
750
-
751
- 3. **Pipe-test the raw command.** Synthesize the stdin payload the hook will receive and pipe it directly:
752
- - \`Pre|PostToolUse\` on \`Write|Edit\`: \`echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>\`
753
- - \`Pre|PostToolUse\` on \`Bash\`: \`echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>\`
754
- - \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\`: most commands don't read stdin, so \`echo '{}' | <cmd>\` suffices
755
-
756
- 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).
757
-
758
- 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.
759
-
760
- 5. **Validate syntax + schema in one shot:**
761
-
762
- \`jq -e '.hooks.<event>[] | select(.matcher == "<matcher>") | .hooks[] | select(.type == "command") | .command' <target-file>\`
763
-
764
- 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.
765
-
766
- 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.
767
-
768
- 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.
769
-
770
- **Always clean up** — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
771
-
772
- **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.
773
-
774
- 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.
775
- `,ob=`# Update Config Skill
776
-
777
- Modify Claude Code configuration by updating settings.json files.
778
-
779
- ## When Hooks Are Required (Not Memory)
780
-
781
- 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.
782
-
783
- **These require hooks:**
784
- - "Before compacting, ask me what to preserve" → PreCompact hook
785
- - "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
786
- - "When I run bash commands, log them" → PreToolUse hook with Bash matcher
787
- - "Always run tests after code changes" → PostToolUse hook
788
-
789
- **Hook events:** PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart
790
-
791
- ## CRITICAL: Read Before Write
792
-
793
- **Always read the existing settings file before making changes.** Merge new settings with existing ones - never replace the entire file.
794
-
795
- ## CRITICAL: Use AskUserQuestion for Ambiguity
796
-
797
- When the user's request is ambiguous, use AskUserQuestion to clarify:
798
- - Which settings file to modify (user/project/local)
799
- - Whether to add to existing arrays or replace them
800
- - Specific values when multiple options exist
801
-
802
- ## Decision: Config Tool vs Direct Edit
803
-
804
- **Use the Config tool** for these simple settings:
805
- - \`theme\`, \`editorMode\`, \`verbose\`, \`model\`
806
- - \`language\`, \`alwaysThinkingEnabled\`
807
- - \`permissions.defaultMode\`
808
-
809
- **Edit settings.json directly** for:
810
- - Hooks (PreToolUse, PostToolUse, etc.)
811
- - Complex permission rules (allow/deny arrays)
812
- - Environment variables
813
- - MCP server configuration
814
- - Plugin configuration
815
-
816
- ## Workflow
817
-
818
- 1. **Clarify intent** - Ask if the request is ambiguous
819
- 2. **Read existing file** - Use Read tool on the target settings file
820
- 3. **Merge carefully** - Preserve existing settings, especially arrays
821
- 4. **Edit file** - Use Edit tool (if file doesn't exist, ask user to create it first)
822
- 5. **Confirm** - Tell user what was changed
823
-
824
- ## Merging Arrays (Important!)
825
-
826
- When adding to permission arrays or hook arrays, **merge with existing**, don't replace:
827
-
828
- **WRONG** (replaces existing permissions):
829
- \`\`\`json
830
- { "permissions": { "allow": ["Bash(npm:*)"] } }
831
- \`\`\`
832
-
833
- **RIGHT** (preserves existing + adds new):
834
- \`\`\`json
835
- {
836
- "permissions": {
837
- "allow": [
838
- "Bash(git:*)", // existing
839
- "Edit(.claudin)", // existing
840
- "Bash(npm:*)" // new
841
- ]
842
- }
843
- }
844
- \`\`\`
845
-
846
- ${ib}
847
-
848
- ${Tg}
849
-
850
- ${pg}
851
-
852
- ## Example Workflows
853
-
854
- ### Adding a Hook
855
-
856
- User: "Format my code after Claude writes it"
857
-
858
- 1. **Clarify**: Which formatter? (prettier, gofmt, etc.)
859
- 2. **Read**: \`.claudin/settings.json\` (or create if missing)
860
- 3. **Merge**: Add to existing hooks, don't replace
861
- 4. **Result**:
862
- \`\`\`json
863
- {
864
- "hooks": {
865
- "PostToolUse": [{
866
- "matcher": "Write|Edit",
867
- "hooks": [{
868
- "type": "command",
869
- "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
870
- }]
871
- }]
872
- }
873
- }
874
- \`\`\`
875
-
876
- ### Adding Permissions
877
-
878
- User: "Allow npm commands without prompting"
879
-
880
- 1. **Read**: Existing permissions
881
- 2. **Merge**: Add \`Bash(npm:*)\` to allow array
882
- 3. **Result**: Combined with existing allows
883
-
884
- ### Environment Variables
885
-
886
- User: "Set DEBUG=true"
887
-
888
- 1. **Decide**: User settings (global) or project settings?
889
- 2. **Read**: Target file
890
- 3. **Merge**: Add to env object
891
- \`\`\`json
892
- { "env": { "DEBUG": "true" } }
893
- \`\`\`
894
-
895
- ## Common Mistakes to Avoid
896
-
897
- 1. **Replacing instead of merging** - Always preserve existing settings
898
- 2. **Wrong file** - Ask user if scope is unclear
899
- 3. **Invalid JSON** - Validate syntax after changes
900
- 4. **Forgetting to read first** - Always read before write
901
-
902
- ## Troubleshooting Hooks
903
-
904
- If a hook isn't running:
905
- 1. **Check the settings file** - Read ~/.claudin/settings.json or .claudin/settings.json
906
- 2. **Verify JSON syntax** - Invalid JSON silently fails
907
- 3. **Check the matcher** - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
908
- 4. **Check hook type** - Is it "command", "prompt", or "agent"?
909
- 5. **Test the command** - Run the hook command manually to see if it works
910
- 6. **Use --debug** - Run \`claude --debug\` to see hook execution logs
911
- `;function _g(){D({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(I){if(I.startsWith("[hooks-only]")){let B=I.slice(12).trim(),Z=Tg+`
912
-
913
- `+pg;if(B)Z+=`
914
-
915
- ## Task
916
-
917
- ${B}`;return[{type:"text",text:Z}]}let G=fb(),g=ob;if(g+=`
918
-
919
- ## Full Settings JSON Schema
920
-
921
- \`\`\`json
922
- ${G}
923
- \`\`\``,I)g+=`
924
-
925
- ## User Request
926
-
927
- ${I}`;return[{type:"text",text:g}]}})}t();var nb=`**Verification is runtime observation.** You build the app, run it,
928
- drive it to where the changed code executes, and capture what you
929
- see. That capture is your evidence. Nothing else is.
930
-
931
- **Don't run tests. Don't typecheck.** Running them here proves you
932
- can run CI — not that the change works. Not as a warm-up,
933
- not "just to be sure," not as a regression sweep after. The time
934
- goes to running the app instead.
935
-
936
- **Don't import-and-call.** \`import { foo } from './src/...'\` then
937
- \`console.log(foo(x))\` is a unit test you wrote. The function did what
938
- the function does — you knew that from reading it. The app never ran.
939
- Whatever calls \`foo\` in the real codebase ends at a CLI, a socket, or
940
- a window. Go there.
941
-
942
- ## Find the change
943
-
944
- The scope is what you're verifying — usually a diff, sometimes just
945
- "does X work." In a git repo, establish the full range (a branch may
946
- be many commits, or the change may still be uncommitted):
947
-
948
- \`\`\`bash
949
- git log --oneline @{u}.. # count commits (if upstream set)
950
- git diff @{u}.. --stat # full range, not HEAD~1
951
- git diff origin/HEAD... --stat # no upstream: committed vs base
952
- git diff HEAD --stat # uncommitted: working tree vs HEAD
953
- gh pr diff # if in a PR context
954
- \`\`\`
955
-
956
- State the commit count. Large diff truncating? Redirect to a file
957
- then Read it. Repo but no diff from any of these → say so, stop.
958
- **No repo → the scope is whatever the user named; ask if they
959
- didn't.**
960
-
961
- **The diff is ground truth. Any description is a claim about it.**
962
- Read both. If they disagree, that's a finding.
963
-
964
- ## Surface
965
-
966
- The surface is where a user — human or programmatic — meets the
967
- change. That's where you observe.
968
-
969
- | Change reaches | Surface | You |
970
- |---|---|---|
971
- | CLI / TUI | terminal | type the command, capture the pane — [example](examples/cli.md) |
972
- | Server / API | socket | send the request, capture the response — [example](examples/server.md) |
973
- | GUI | pixels | drive it under xvfb/Playwright, screenshot |
974
- | Library | package boundary | sample code through the public export — \`import pkg\`, not \`import ./src/...\` |
975
- | Prompt / agent config | the agent | run the agent, capture its behavior |
976
- | CI workflow | Actions | dispatch it, read the run |
977
-
978
- **Internal function? Not a surface.** Something in the repo calls it
979
- and that caller ends at one of the rows above. Follow it there. A
980
- bash security gate's surface isn't the function's return value — it's
981
- the CLI prompting or auto-allowing when you type the command.
982
-
983
- **No runtime surface at all** — docs-only, type declarations with no
984
- emit, build config that produces no behavioral diff — report
985
- **SKIP — no runtime surface: (reason).** Don't run tests to fill
986
- the space.
987
-
988
- **Tests in the diff are the author's evidence, not a surface.** CI
989
- runs them. You'd be re-running CI. Tests-only PR → SKIP, one line.
990
- Mixed src+tests → verify the src, ignore the test files. Reading a
991
- test to learn what to check is fine — it's a spec. But then go run
992
- the app. Checking that assertions match source is code review.
993
-
994
- ## Get a handle
995
-
996
- **Check \`.claudin/skills/\` first — even if you already know how to
997
- build and run.** A matching \`verifier-*\` skill is the repo's
998
- evidence-capture protocol: it wraps the session so a reviewer can
999
- replay what you saw (recording, screenshots). Drive the surface
1000
- without it and you get a verdict with no replay.
1001
-
1002
- \`\`\`bash
1003
- ls .claudin/skills/
1004
- \`\`\`
1005
-
1006
- - **\`verifier-*\` matching your surface** (CLI verifier for a CLI
1007
- change, etc.) → invoke it with the Skill tool and follow its
1008
- setup. Mismatched surface → skip that one, try the next. Stale
1009
- verifier (fails on mechanics unrelated to the change) → ask the
1010
- user whether to patch it; don't FAIL the change for verifier rot.
1011
- - **\`run-*\` but no matching verifier** → use its build/launch
1012
- primitives as your handle.
1013
- - **Neither** → cold start from README/package.json/Makefile. Timebox
1014
- ~15min. Stuck → BLOCKED with exactly where it stopped. Got through →
1015
- note the working build/launch recipe so it can become a
1016
- \`verifier-*\` skill.
1017
-
1018
- ## Drive it
1019
-
1020
- Smallest path that makes the changed code execute:
1021
-
1022
- - Changed a flag? Run with it.
1023
- - Changed a handler? Hit that route.
1024
- - Changed error handling? Trigger the error.
1025
- - Changed an internal function? Find the CLI command / request / render
1026
- that reaches it. Run that.
1027
-
1028
- **Read your plan back before running.** If every step is build /
1029
- typecheck / run test file — you've planned a CI rerun, not a
1030
- verification. Find a step that reaches the surface or report BLOCKED.
1031
-
1032
- **The verdict is table stakes. Your observations are the signal.**
1033
- A PASS with three sharp "hey, I noticed…" lines is worth more than a
1034
- bare PASS. You're the only reviewer who actually *ran* the thing —
1035
- anything that made you pause, work around, or go "huh" is information
1036
- the author doesn't have. Don't filter for "is this a bug." Filter for
1037
- "would I mention this if they were sitting next to me."
1038
-
1039
- **End-to-end, through the real interface.** Pieces passing in
1040
- isolation doesn't mean the flow works — seams are where bugs hide.
1041
- If users click buttons, test by clicking buttons, not by curling the
1042
- API underneath.
1043
-
1044
- **Destructive path?** If the change touches code that deletes,
1045
- publishes, sends, or writes outside the workspace and there's no
1046
- dry-run or safe target, don't drive it live. Verify what you can
1047
- around it and say which path you didn't exercise and why.
1048
-
1049
- ## Push on it
1050
-
1051
- The claim checked out — that's the first half. Confirming is step
1052
- one, not the job. The description is what the author intended;
1053
- your value is what they didn't.
1054
-
1055
- You know exactly what changed. Probe *around* it, at the same
1056
- surface you just drove:
1057
-
1058
- - **New flag / option** → empty value, passed twice, combined with a
1059
- conflicting flag, typo'd (does the error name it?)
1060
- - **New handler / route** → wrong method, malformed body, missing
1061
- required field, oversized payload
1062
- - **Changed error path** → the adjacent errors it didn't touch —
1063
- did the refactor catch them too, or only the one in the diff?
1064
- - **Interactive / TUI** → Ctrl-C mid-op, resize the pane, paste
1065
- garbage, rapid-fire the key, Esc at the wrong moment
1066
- - **State / persistence** → do it twice, do it with stale state
1067
- underneath, do it in two sessions at once
1068
- - **Wander** → what's adjacent? What looked off while you were
1069
- confirming? Go back to it.
1070
-
1071
- These aren't a checklist — pick the ones the change points at. Stop
1072
- when you've covered the obvious adjacents or hit something worth a
1073
- ⚠️. A probe that finds nothing is still a step: "\uD83D\uDD0D passed \`--from ''\`
1074
- → clean \`error: --from requires a value\`, exit 2." That the author
1075
- didn't test it is exactly why it's worth knowing it holds.
1076
-
1077
- Still not a test run. You're at the surface, typing what a user
1078
- would type wrong.
1079
-
1080
- ## Capture
1081
-
1082
- Stdout, response bodies, screenshots, pane dumps. Captured output is
1083
- evidence; your memory isn't. Something unexpected? Don't route around
1084
- it — capture, note, decide if it's the change or the environment.
1085
- Unrelated breakage is a finding, not noise.
1086
-
1087
- Shared process state (tmux, ports, lockfiles) — isolate. \`tmux -L
1088
- name\`, bind \`:0\`, \`mktemp -d\`. You share a namespace with your host.
1089
-
1090
- ## Report
1091
-
1092
- Inline, final message:
1093
-
1094
- \`\`\`
1095
- ## Verification: <one-line what changed>
1096
-
1097
- **Verdict:** PASS | FAIL | BLOCKED | SKIP
1098
-
1099
- **Claim:** <what it's supposed to do — your read of the diff and/or
1100
- the stated claim; note any mismatch>
1101
-
1102
- **Method:** <how you got a handle — which verifier/run skill, or
1103
- cold start; what you launched>
1104
-
1105
- ### Steps
1106
-
1107
- Each step is one thing you did to the **running app** and what it
1108
- showed. Build/install/checkout are setup, not steps. Test runs and
1109
- typecheck don't belong here — they're CI's output.
1110
-
1111
- 1. ✅/❌/⚠️/\uD83D\uDD0D <what you did to the running app> → <what you observed>
1112
- <evidence: the app's own output — pane capture, response body,
1113
- screenshot path>
1114
-
1115
- \uD83D\uDD0D marks a probe — a step off the claim's happy path, trying to
1116
- break it. At least one. A Steps list that's all ✅ and no \uD83D\uDD0D is a
1117
- happy-path replay: still PASS, but you stopped at the first half.
1118
-
1119
- **Screenshot / sample:** <the one frame a reviewer looks at to see
1120
- the feature — image path for GUI/TUI, code block for library/API;
1121
- omit for build/types-only>
1122
-
1123
- ### Findings
1124
- <Things you noticed. Not just bugs — friction, surprises, anything
1125
- a first-time user would trip on. "Took three tries to find the right
1126
- flag." "Error message on typo was unhelpful." "Default seems odd for
1127
- the common case." "Works, but slower than I expected." Lower the bar:
1128
- if it made you pause, it goes here. But the pause has to be yours,
1129
- from running the app — not from reading the PR page. A red CI check,
1130
- a review comment, someone else's bot: visible to anyone already, and
1131
- you relaying it isn't an observation. Claim/diff mismatch, pre-existing
1132
- breakage, and env notes also belong.
1133
-
1134
- Each probe gets a line here even when it held — "\uD83D\uDD0D empty \`--from\`
1135
- → clean error" tells the author what *was* covered, which they
1136
- can't see from a bare PASS.
1137
-
1138
- Lead with ⚠️ for lines worth interrupting the reviewer for; plain
1139
- bullets are context. Empty is fine if nothing stuck out — but nothing
1140
- sticking out is itself rare.>
1141
- \`\`\`
1142
-
1143
- **Verdicts:**
1144
- - **PASS** — you ran the app, the change did what it should at its
1145
- surface. Not: tests pass, builds clean, code looks right.
1146
- - **FAIL** — you ran it and it doesn't. Or it breaks something else.
1147
- Or claim and diff disagree materially.
1148
- - **BLOCKED** — couldn't reach a state where the change is observable.
1149
- Build broke, env missing a dep, handle wouldn't come up. Not a
1150
- verdict on the change. Say exactly where it stopped.
1151
- - **SKIP** — no runtime surface exists. Docs-only, types-only,
1152
- tests-only. Nothing went wrong; there's just nothing here to run.
1153
- One line why.
1154
-
1155
- No partial pass. "3 of 4 passed" is FAIL until 4 passes or is
1156
- explained away.
1157
-
1158
- **When in doubt, FAIL.** False PASS ships broken code; false FAIL
1159
- costs one more human look. Ambiguous output is FAIL with the raw
1160
- capture attached — don't interpret.`;function ag(){D({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:qg,async getPromptForCommand(){return[{type:"text",text:nb}]}})}function fg(){_g(),Lg(),hg(),Hg(),yg(),$g(),ag(),Dg(),zg(),Mg()}async function IC(I){let{options:G,ctx:g,permissionMode:B,allowDangerouslySkipPermissions:Z,sessionId:W}=I;S("[STARTUP] Running setup()...");let b=Date.now(),{setup:Y}=await import("./setup-0.5.13-0qy4tjwk.mjs"),h=void 0,y=YI();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")Bg(),fg();let R=Y(y,B,Z,g.worktreeEnabled,g.worktreeName,g.tmuxEnabled,W?HG(W):void 0,g.worktreePRNumber,h),l=g.worktreeEnabled?null:VI(y),H=g.worktreeEnabled?null:XI(y);return l?.catch(()=>{}),H?.catch(()=>{}),await R,S(`[STARTUP] setup() completed in ${Date.now()-b}ms`),{preSetupCwd:y,commandsPromise:l,agentDefsPromise:H}}async function gC(I){let{options:G,ctx:g,outputFormat:B,fallbackModel:Z,preSetupCwd:W,commandsPromise:b,agentDefsPromise:Y}=I,h=!!G.replayUserMessages;if(AG())GB(),VB(),cB(),rg();let y=G.name?.trim();if(y)XB(y);let R=G.model==="default"?uG():G.model,l=Z==="default"?uG():Z,H=g.worktreeEnabled?YI():W;S("[STARTUP] Loading commands and agents...");let J=Date.now(),[c,F]=await Promise.all([b??VI(H),Y??XI(H)]);return S(`[STARTUP] Commands and agents loaded in ${Date.now()-J}ms`),{effectiveReplayUserMessages:h,sessionNameArg:y,userSpecifiedModel:R,userSpecifiedFallbackModel:l,currentCwd:H,commands:c,agentDefinitionsResult:F}}async function BC(I,G){let{options:g,ctx:B,isNonInteractiveSession:Z,agentCli:W,agentsJson:b,userSpecifiedModel:Y,agentDefinitionsResult:h}=I,{systemPrompt:y,appendSystemPrompt:R,inputPrompt:l}=I,{coordinatorModeModule:H,assistantModule:J}=G,c=[];if(b)try{let d=mG(b);if(d)c=gB(d,"flagSettings")}catch(d){e(d)}let F=[...h.allAgents,...c],N={...h,allAgents:F,activeAgents:IB(F)},K=W??RG().agent,X;if(K){if(X=N.activeAgents.find((d)=>d.agentType===K),!X)S(`Warning: agent "${K}" not found. Available agents: ${N.activeAgents.map((d)=>d.agentType).join(", ")}. Using default behavior.`)}if(sg(X?.agentType),X)m("tengu_agent_flag",{agentType:CI(X)?X.agentType:"custom",...W&&{source:"cli"}});if(X?.agentType)YB(X.agentType);if(Z&&X&&!y&&!CI(X)){let d=X.getSystemPrompt();if(d)y=d}if(X?.initialPrompt){if(typeof l==="string")l=l?`${X.initialPrompt}
1161
-
1162
- ${l}`:X.initialPrompt;else if(!l)l=X.initialPrompt}let w=Y;if(!w&&X?.model&&X.model!=="inherit")w=kG(X.model);og(w),ng(tg()||null);let k=ig(),u=kG(k??uG()),U;if(MG()){let d=WI()?g.advisor:void 0;if(d){if(S(`[AdvisorTool] --advisor ${d}`),!ZB(u))process.stderr.write(Q.red(`Error: The model "${u}" does not support the advisor tool.
1163
- `)),process.exit(1);let j=eg(kG(d));if(!bB(j))process.stderr.write(Q.red(`Error: The model "${d}" cannot be used as an advisor.
1164
- `)),process.exit(1)}if(U=WI()?d??CB():d,U)S(`[AdvisorTool] Advisor model: ${U}`)}if(gG()&&B.storedTeammateOpts?.agentId&&B.storedTeammateOpts?.agentName&&B.storedTeammateOpts?.teamName&&B.storedTeammateOpts?.agentType){let d=N.activeAgents.find((j)=>j.agentType===B.storedTeammateOpts?.agentType);if(d){let j;if(d.source==="built-in")S(`[teammate] Built-in agent ${B.storedTeammateOpts.agentType} - skipping custom prompt (not supported)`);else j=d.getSystemPrompt();if(d.memory)m("tengu_agent_memory_loaded",{scope:d.memory,source:"teammate"});if(j){let V=`
1165
- # Custom Agent Instructions
1166
- ${j}`;R=R?`${R}
1167
-
1168
- ${V}`:V}}else S(`[teammate] Custom agent ${B.storedTeammateOpts.agentType} not found in available agents`)}return JG(g),{agentDefinitions:N,mainThreadAgentDefinition:X,cliAgents:c,agentSetting:K,effectiveModel:w,initialMainLoopModel:k,resolvedInitialModel:u,advisorModel:U,systemPrompt:y,appendSystemPrompt:R,inputPrompt:l}}WG();yI();NB();YC();BB();FB();dG();XC();var vB=bC(WC(),1);ZC();yB();async function lB(I,G){let{InvalidSettingsDialog:g}=await import("./InvalidSettingsDialog-0.5.13-byp7h5gk.mjs");return qG(I,(B)=>cG(g,{settingsErrors:G.settingsErrors,onContinue:B,onExit:G.onExit}))}async function dB(I){let{TeleportResumeWrapper:G}=await import("./TeleportResumeWrapper-0.5.13-hr5qx564.mjs");return qG(I,(g)=>cG(G,{onComplete:g,onCancel:()=>g(null),source:"cliArg"}))}async function RB(I,G){let{TeleportRepoMismatchDialog:g}=await import("./TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs");return qG(I,(B)=>cG(g,{targetRepo:G.targetRepo,initialPaths:G.initialPaths,onSelectPath:B,onCancel:()=>B(null)}))}async function JB(I,G,g,B){let[Z,{ResumeConversation:W},{App:b}]=await Promise.all([g,import("./ResumeConversation-0.5.13-8yg9t110.mjs"),import("./App-0.5.13-h8h37pzk.mjs")]);await GG(I,cG(b,{getFpsMetrics:G.getFpsMetrics,stats:G.stats,initialState:G.initialState,children:cG(HB,{children:cG(W,{...B,worktreePaths:Z})})}))}CC();async function VC(I){let{permissionMode:G,allowDangerouslySkipPermissions:g,commands:B,devChannels:Z,remoteControlOption:W,mainThreadAgentDefinition:b}=I,Y=I.prompt,h=I.inputPrompt;ZG("trust_onboarding_start");let y=jB(!1),R=y.getFpsMetrics,l=y.stats;ZG("trust_render_ctx_ready");let{createRoot:H}=await import("./ink-0.5.13-hp9a2nw1.mjs");ZG("trust_ink_imported");let J=await H(y.renderOptions);ZG("trust_ink_root_created"),m("tengu_timer",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let c=await AB(J,G,g,B,Z);ZG("trust_setup_screens_done");let F=!1;if(c&&typeof Y==="string"&&Y.trim().toLowerCase()==="/login")Y="";if(c)QB(),zB(),wB(),KB(),import("./trustedDevice-0.5.13-8vncqgx8.mjs").then((K)=>{return K.clearTrustedDeviceToken(),K.enrollTrustedDevice()});try{let{getActiveProviderProfile:K,getProviderProfiles:X}=await import("./providerProfiles-0.5.13-hyx6zffe.mjs");if(!(X().length>0||Boolean(K()))&&!c){let{showSetupDialog:k}=await import("./interactiveHelpers-0.5.13-pzrtv38g.mjs"),{ProviderManager:u}=await import("./ProviderManager-0.5.13-c1vawvvp.mjs");await k(J,(U)=>vB.default.createElement(u,{mode:"first-run",onDone:()=>U()}))}}catch(K){S(`[provider-wizard] auto-wizard failed: ${K instanceof Error?K.message:String(K)}`)}try{let{tryGetActiveProvider:K}=await import("./activeProvider-0.5.13-50732cyn.mjs");if(K()&&process.stdout.isTTY&&process.env.CLAUDIN_CLEAR_ON_START==="1"){let{clearTerminal:X}=await import("./clearTerminal-0.5.13-veyek376.mjs");process.stdout.write(X)}}catch(K){S(`[startup-clear] failed: ${K instanceof Error?K.message:String(K)}`)}ZG("trust_before_org_validation");let N=await hB();if(ZG("trust_after_org_validation"),!N.valid)await a(J,N.message);return{root:J,getFpsMetrics:R,stats:l,remoteControl:F,prompt:Y,inputPrompt:h}}vC();WG();FB();SI();dG();jG();yI();JC();kC();SC();zC();NC();UC();kI();WB();fG();xG();LC();UB();r();mC();cC();FC();yC();hC();lC();KG();HC();NG();wC();QC();dC();eG();aI();AC();KC();jC();RC();async function uC(I){let{ctx:G,root:g,isNonInteractiveSession:B,dynamicMcpConfig:Z,mcpConfigPromise:W}=I;if(process.exitCode!==void 0)return S("Graceful shutdown initiated, skipping further initialization"),{exited:!0};if(TB())pB();if(!B){let{errors:J}=SB(),c=J.filter((N)=>!N.mcpErrorMetadata),F=yG()?.transport;if(c.length>0&&F!=="openai_compat"&&F!=="codex_responses"&&F!=="github_copilot")await lB(g,{settingsErrors:c,onExit:()=>IZ(1)})}let b=zG("tengu_cicada_nap_ms",0),Y=YG().startupPrefetchedAt??0,h=FG()||b>0&&Date.now()-Y<b;if(_B(),MB(),!h){let J=Y>0?` last ran ${Math.round((Date.now()-Y)/1000)}s ago`:"";if(S(`Starting background startup prefetches${J}`),OB().catch((c)=>e(c)),GZ(),eB(),!zG("tengu_miraculo_the_bard",!1))xB();else dI();if(b>0)KI((c)=>({...c,startupPrefetchedAt:Date.now()}))}else S(`Skipping startup prefetches, last ran ${Math.round((Date.now()-Y)/1000)}s ago`),dI();if(!B){let{refreshExampleCommands:J}=await import("./exampleCommands-0.5.13-fxpyc0yh.mjs");J()}let{servers:y}=await W,R={...y,...Z},l={},H={};for(let[J,c]of Object.entries(R)){let F=c;if(F.type==="sdk")l[J]=F;else H[J]=F}return{exited:!1,allMcpConfigs:R,sdkMcpConfigs:l,regularMcpConfigs:H}}function xC(I,G){let{options:g,ctx:B,isNonInteractiveSession:Z,regularMcpConfigs:W,claudeaiConfigPromise:b,mainThreadAgentDefinition:Y,resolvedInitialModel:h,initOnly:y,init:R,maintenance:l,prompt:H,inputPrompt:J,verbose:c,debug:F,debugToStderr:N,print:K,outputFormat:X,inputFormat:w,allowedTools:k,disallowedTools:u,allMcpConfigs:U,dangerouslySkipPermissions:d,permissionMode:j,allowDangerouslySkipPermissions:V,systemPrompt:z,appendSystemPrompt:$,toolPermissionContext:A,sessionNameArg:P}=I,{assistantModule:M,coordinatorModeModule:L}=G,v=Z?Promise.resolve({clients:[],tools:[],commands:[]}):JI(W),x=Z?Promise.resolve({clients:[],tools:[],commands:[]}):b.then((T)=>Object.keys(T).length>0?JI(T):{clients:[],tools:[],commands:[]}),q=Promise.all([v,x]).then(([T,CG])=>({clients:[...T.clients,...CG.clients],tools:RI([...T.tools,...CG.tools],"name"),commands:RI([...T.commands,...CG.commands],"name")})),E=y||R||l||Z||g.continue||g.resume?null:aB("startup",{agentType:Y?.agentType,model:h}),n=[];q.catch(()=>{});let _=[],O=[],IG=[],C=DB(),i=C!==!1?{type:"adaptive"}:{type:"disabled"};if(g.thinking==="adaptive"||g.thinking==="enabled")C=!0,i={type:"adaptive"};else if(g.thinking==="disabled")C=!1,i={type:"disabled"};else{let T=process.env.MAX_THINKING_TOKENS?parseInt(process.env.MAX_THINKING_TOKENS,10):g.maxThinkingTokens;if(T!==void 0){if(T>0)C=!0,i={type:"enabled",budgetTokens:T};else if(T===0)C=!1,i={type:"disabled"}}}return HI("info","started",{version:"99.0.0",is_native_binary:LB()}),mB(async()=>{HI("info","exited")}),bZ({hasInitialPrompt:Boolean(H),hasStdin:Boolean(J),verbose:c,debug:F,debugToStderr:N,print:K??!1,outputFormat:X??"text",inputFormat:w??"text",numAllowedTools:k.length,numDisallowedTools:u.length,mcpClientCount:Object.keys(U).length,worktreeEnabled:B.worktreeEnabled,skipWebFetchPreflight:RG().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:d??!1,permissionMode:j,modeIsBypass:j==="bypassPermissions",allowDangerouslySkipPermissionsPassed:V,systemPromptFlag:z?g.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:$?g.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:i,assistantActivationPath:void 0,isCoordinator:L?.isCoordinatorMode()===!0}),tB(W,A),gZ(),nB().then((T)=>{if(!T)return;if(P)sB(P);rB().then((CG)=>{if(CG>=2)m("tengu_concurrent_sessions",{num_sessions:CG})})}),{mcpPromise:q,hooksPromise:E,hookMessages:n,mcpClients:_,mcpTools:O,mcpCommands:IG,thinkingEnabled:C,thinkingConfig:i}}function MC(I,G){let{options:g,ctx:B,agentSetting:Z,resolvedInitialModel:W,permissionModeNotification:b,overlyBroadBashPermissions:Y,toolPermissionContext:h,initialMainLoopModel:y,agentDefinitions:R,mainThreadAgentDefinition:l,verbose:H,remoteControl:J,remoteControlName:c,advisorModel:F,inputPrompt:N,thinkingEnabled:K,mcpTools:X}=I,{getTeammateUtils:w}=G;m("tengu_startup_manual_model_config",{cli_flag:g.model,env_var:yG()?.model,settings_file:(RG()||{}).model,subscriptionType:qB(),agent:Z});let k=WZ(W),u=[];if(b)u.push({key:"permission-mode-notification",text:b,priority:"high"});if(k)u.push({key:"model-deprecation-warning",text:k,color:"warning",priority:"high"});if(Y.length>0){let A=lI(Y.map((v)=>v.ruleDisplay)),P=A.join(", "),M=lI(Y.map((v)=>v.sourceDisplay)).join(", "),L=A.length;u.push({key:"overly-broad-bash-notification",text:`${P} allow ${lG(L,"rule")} from ${M} ${lG(L,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let U={...h,mode:gG()&&w().isPlanModeRequired()?"plan":h.mode},d=!1,j=J||kB()||B.kairosEnabled,V=!1,z={settings:RG(),tasks:{},agentNameRegistry:new Map,verbose:H??YG().verbose??!1,mainLoopModel:y,mainLoopModelForSession:null,isBriefOnly:d,expandedView:YG().showSpinnerTree?"teammates":YG().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:gG()?!1:void 0,selectedIPAgentIndex:-1,coordinatorTaskIndex:-1,viewSelectionMode:"none",footerSelection:null,toolPermissionContext:U,agent:l?.agentType,agentDefinitions:R,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:j||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:c,showRemoteCallout:!1,notifications:{current:null,queue:u},elicitation:{queue:[]},todos:{},remoteAgentTaskSuggestions:[],fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},attribution:EB(),thinkingEnabled:K,promptSuggestionEnabled:fB(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:iB,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:N?{message:OG({content:String(N)})}:null,effortValue:$B(g.effort)??PB(),activeOverlays:new Set,fastMode:uB(W),...MG()&&F&&{advisorModel:F},teamContext:CZ?.()};if(N)oB(String(N));let $=X;return KI((A)=>({...A,numStartups:(A.numStartups??0)+1})),setImmediate(()=>{ZZ(),BZ()}),{initialState:z,initialTools:$}}xG();hG();WG();YZ();KG();async function XZ(I){let{root:G,options:g,sessionConfig:B,resumeContext:Z,mainThreadAgentDefinitionRef:W,getFpsMetrics:b,stats:Y}=I,h=!1;try{let y=performance.now(),{clearSessionCaches:R}=await import("./caches-0.5.13-75dr0q42.mjs");R();let l=await DG(void 0,void 0);if(!l)return m("tengu_continue",{success:!1}),await a(G,"No conversation found to continue");let H=await PG(l,{forkSession:!!g.forkSession,includeAttribution:!0,transcriptPath:l.fullPath},Z);if(H.restoredAgentDef)W.current=H.restoredAgentDef;$G(g),JG(g),m("tengu_continue",{success:!0,resume_duration_ms:Math.round(performance.now()-y)}),h=!0,await bG(G,{getFpsMetrics:b,stats:Y,initialState:H.initialState},{...B,mainThreadAgentDefinition:H.restoredAgentDef??W.current,initialMessages:H.messages,initialFileHistorySnapshots:H.fileHistorySnapshots,initialContentReplacements:H.contentReplacements,initialAgentName:H.agentName,initialAgentColor:H.agentColor},GG)}catch(y){if(!h)m("tengu_continue",{success:!1});return e(y),await a(G,s(y),()=>f(1))}}r();KG();NG();r();KG();NG();r();cI();KG();NG();VZ();vG();$C();r();cI();yI();WG();DC();UB();YZ();hG();Wg();TC();KG();dG();xG();NG();oG();PC();VZ();EC();iG();NB();async function SZ(I){let{root:G,ctx:g,options:B,teleport:Z,remote:W,debug:b,debugToStderr:Y,commands:h,ide:y,mainThreadAgentDefinitionRef:R,thinkingConfig:l,sessionConfig:H,resumeContext:J,getFpsMetrics:c,stats:F,initialState:N}=I,{clearSessionCaches:K}=await import("./caches-0.5.13-75dr0q42.mjs");K();let X=null,w=void 0,k=HG(B.resume),u=void 0,U=null,d=void 0;if(B.fromPr){if(B.fromPr===!0)d=!0;else if(typeof B.fromPr==="string")d=B.fromPr}if(B.resume&&typeof B.resume==="string"&&!k){let V=B.resume.trim();if(V){let z=await mZ(V,{exact:!0});if(z.length===1)U=z[0],k=vZ(U)??null;else u=V}}if(W!==null||Z){if(await hZ(),!FZ("allow_remote_sessions"))return await a(G,"Error: Remote sessions are disabled by your organization's policy.",()=>f(1))}if(W!==null){let V=W.length>0,z=zG("tengu_remote_backend",!1);if(!z&&!V)return await a(G,`Error: --remote requires a description.
1169
- Usage: claude --remote "your task description"`,()=>f(1));m("tengu_remote_create_session",{has_initial_prompt:String(V)});let $=await lZ(),A=await AZ(G,V?W:null,new AbortController().signal,$||void 0);if(!A)return m("tengu_remote_create_session_error",{error:"unable_to_create_session"}),await a(G,"Error: Unable to create remote session",()=>f(1));if(m("tengu_remote_create_session_success",{session_id:A.id}),!z)process.stdout.write(`Created remote session: ${A.title}
1170
- `),process.stdout.write(`View: ${wI(A.id)}?m=0
1171
- `),process.stdout.write(`Resume with: claude --teleport ${A.id}
1172
- `),await f(0),process.exit(0);FI(!0),cZ(JZ(A.id));let P;try{P=await zI()}catch(O){return e(HZ(O)),await a(G,`Error: ${s(O)||"Failed to authenticate"}`,()=>f(1))}let{getClaudeAIOAuthTokens:M}=await import("./auth-0.5.13-05zhnpsy.mjs"),L=()=>M()?.accessToken??P.accessToken,v=QI(A.id,L,P.orgUUID,V),x=`${wI(A.id)}?m=0`,q=QG(`/remote-control is active. Code in CLI or at ${x}`,"info"),E=V?OG({content:W}):null,n={...N,remoteSessionUrl:x},_=NI(h);await bG(G,{getFpsMetrics:c,stats:F,initialState:n},{debug:b||Y,commands:_,initialTools:[],initialMessages:E?[q,E]:[q],mcpClients:[],autoConnectIdeFlag:y,mainThreadAgentDefinition:R.current,disableSlashCommands:g.disableSlashCommands,remoteSessionConfig:v,thinkingConfig:l},GG);return}else if(Z){if(Z===!0||Z===""){m("tengu_teleport_interactive_mode",{}),S("selectAndResumeTeleportTask: Starting teleport flow...");let V=await dB(G);if(!V)await f(0),process.exit(0);let{branchError:z}=await QZ(V.branch);X=NZ(V.log,z)}else if(typeof Z==="string"){m("tengu_teleport_resume_session",{mode:"direct"});try{let V=await RZ(Z),z=await wZ(V);if(z.status==="mismatch"||z.status==="not_in_repo"){let P=z.sessionRepo;if(P){let M=UZ(P),L=await LZ(M);if(L.length>0){let v=await RB(G,{targetRepo:P,initialPaths:L});if(v)process.chdir(v),KZ(v),EG(v);else await f(0)}else throw new TG(`You must run claude --teleport ${Z} from a checkout of ${P}.`,Q.red(`You must run claude --teleport ${Z} from a checkout of ${Q.bold(P)}.
1173
- `))}}else if(z.status==="error")throw new TG(z.errorMessage||"Failed to validate session",Q.red(`Error: ${z.errorMessage||"Failed to validate session"}
1174
- `));await zZ();let{teleportWithProgress:$}=await import("./TeleportProgress-0.5.13-mqff8prx.mjs"),A=await $(G,Z);yZ({sessionId:Z}),X=A.messages}catch(V){if(V instanceof TG)process.stderr.write(V.formattedMessage+`
1175
- `);else e(V),process.stderr.write(Q.red(`Error: ${s(V)}
1176
- `));await f(1)}}}if(k){let V=k;try{let z=performance.now(),$=await DG(U??V,void 0);if(!$)return m("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),await a(G,`No conversation found with session ID: ${V}`);let A=U?.fullPath??$.fullPath;if(w=await PG($,{forkSession:!!B.forkSession,sessionIdOverride:V,transcriptPath:A},J),w.restoredAgentDef)R.current=w.restoredAgentDef;m("tengu_session_resumed",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-z)})}catch(z){m("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),e(z),await a(G,s(z))}}if(g.fileDownloadPromise)try{let V=await g.fileDownloadPromise,z=dZ(V,($)=>!$.success);if(z>0)process.stderr.write(Q.yellow(`Warning: ${z}/${V.length} file(s) failed to download.
1177
- `))}catch(V){return await a(G,`Error downloading files: ${s(V)}`)}let j=w??(Array.isArray(X)?{messages:X,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:R.current,initialState:N,contentReplacements:void 0}:void 0);if(j)$G(B),JG(B),await bG(G,{getFpsMetrics:c,stats:F,initialState:j.initialState},{...H,mainThreadAgentDefinition:j.restoredAgentDef??R.current,initialMessages:j.messages,initialFileHistorySnapshots:j.fileHistorySnapshots,initialContentReplacements:j.contentReplacements,initialAgentName:j.agentName,initialAgentColor:j.agentColor},GG);else await JB(G,{getFpsMetrics:c,stats:F,initialState:N},jZ(hI()),{...H,initialSearchQuery:u,forkSession:B.forkSession,filterByPr:d})}function pC(I){let G={debug:I.debug||I.debugToStderr,commands:[...I.commands,...I.mcpCommands],initialTools:I.initialTools,mcpClients:I.mcpClients,autoConnectIdeFlag:I.ide,mainThreadAgentDefinition:I.mainThreadAgentDefinition,disableSlashCommands:I.ctx.disableSlashCommands,dynamicMcpConfig:I.dynamicMcpConfig,strictMcpConfig:I.strictMcpConfig,systemPrompt:I.systemPrompt,appendSystemPrompt:I.appendSystemPrompt,taskListId:I.ctx.taskListId,thinkingConfig:I.thinkingConfig},g={modeApi:I.coordinatorModeModule,mainThreadAgentDefinition:I.mainThreadAgentDefinition,agentDefinitions:I.agentDefinitions,currentCwd:I.currentCwd,cliAgents:I.cliAgents,initialState:I.initialState};return{sessionConfig:G,resumeContext:g}}async function _C(I){let{root:G,ctx:g,options:B,debug:Z,debugToStderr:W,commands:b,ide:Y,teleport:h,remote:y,thinkingConfig:R,initialState:l,getFpsMetrics:H,stats:J}=I,c=I.mainThreadAgentDefinition,{sessionConfig:F,resumeContext:N}=pC({ctx:g,debug:Z,debugToStderr:W,commands:b,initialTools:I.initialTools,mcpClients:I.mcpClients,mcpCommands:I.mcpCommands,ide:Y,mainThreadAgentDefinition:c,dynamicMcpConfig:I.dynamicMcpConfig,strictMcpConfig:I.strictMcpConfig,systemPrompt:I.systemPrompt,appendSystemPrompt:I.appendSystemPrompt,thinkingConfig:R,coordinatorModeModule:I.coordinatorModeModule,agentDefinitions:I.agentDefinitions,currentCwd:I.currentCwd,cliAgents:I.cliAgents,initialState:l});if(B.continue){let w={current:c};return await XZ({root:G,options:B,sessionConfig:F,resumeContext:N,mainThreadAgentDefinitionRef:w,getFpsMetrics:H,stats:J}),c=w.current,{handled:!0,mainThreadAgentDefinition:c,sessionConfig:F}}let K=Z,X=W;if(B.resume||B.fromPr||h||y!==null){let w={current:c};return await SZ({root:G,ctx:g,options:B,teleport:h,remote:y,debug:K,debugToStderr:X,commands:b,ide:Y,mainThreadAgentDefinitionRef:w,thinkingConfig:R,sessionConfig:F,resumeContext:N,getFpsMetrics:H,stats:J,initialState:l}),c=w.current,{handled:!0,mainThreadAgentDefinition:c,sessionConfig:F}}return{handled:!1,mainThreadAgentDefinition:c,sessionConfig:F}}export{VC as runTrustAndOnboarding,uC as runPostHeadlessGuards,xC as runMcpHooksAndTelemetry,oZ as runMcpAndPerms,MC as runInteractiveStartupBlock,_C as runDefaultActionDispatch,IC as runActionSetup,gC as runActionPostSetup,BC as runActionAgentSetup,PZ as parseActionOptions};