@claudiolabs/claudio 0.1.9 → 0.1.11

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 (814) hide show
  1. package/bin/claudio +50 -1
  2. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +1 -0
  3. package/dist/chunks/App-0.1.11-z60c27dk.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +1 -0
  15. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +1 -0
  32. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +3 -0
  33. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +111 -0
  34. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +1 -0
  35. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +1 -0
  36. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +1 -0
  37. package/dist/chunks/auth-0.1.11-2363mst5.mjs +1 -0
  38. package/dist/chunks/auth-0.1.11-p47wajra.mjs +1 -0
  39. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +48 -0
  40. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +1 -0
  41. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +4 -0
  42. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +1 -0
  43. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +1 -0
  44. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +3 -0
  45. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +1 -0
  46. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +21 -0
  47. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +4 -0
  48. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +1 -0
  50. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +2 -0
  51. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +1 -0
  53. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +1 -0
  54. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +1 -0
  56. package/dist/chunks/cli-0.1.11-036me3yr.mjs +2 -0
  57. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +2 -0
  58. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +2 -0
  59. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +2 -0
  60. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +2 -0
  61. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +2 -0
  62. package/dist/chunks/cli-0.1.11-0tge574q.mjs +2 -0
  63. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +8 -0
  64. package/dist/chunks/cli-0.1.11-16086k9e.mjs +2 -0
  65. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +2 -0
  66. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +2 -0
  67. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +2 -0
  68. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +833 -0
  69. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +3 -0
  70. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +2 -0
  71. package/dist/chunks/cli-0.1.11-21epc92q.mjs +2 -0
  72. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +2 -0
  73. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +2 -0
  74. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +45 -0
  75. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +2 -0
  76. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +2 -0
  77. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +2 -0
  78. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +4 -0
  79. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +2 -0
  80. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +3 -0
  81. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +2 -0
  82. package/dist/chunks/cli-0.1.11-4px8nt5r.mjs +2 -0
  83. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +2 -0
  84. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +2 -0
  85. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +3 -0
  86. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +2 -0
  87. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +2 -0
  88. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +2 -0
  89. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +2 -0
  90. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +2 -0
  91. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +2 -0
  92. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +2 -0
  93. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +3 -0
  94. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +2 -0
  95. package/dist/chunks/cli-0.1.11-70f778wy.mjs +2 -0
  96. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +50 -0
  97. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +2 -0
  98. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +2 -0
  99. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +2 -0
  100. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +3 -0
  101. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +2 -0
  102. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +58 -0
  103. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +2 -0
  104. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +2 -0
  105. package/dist/chunks/cli-0.1.11-852v06g0.mjs +2 -0
  106. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +2 -0
  107. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +2 -0
  108. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +2 -0
  109. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +2 -0
  110. package/dist/chunks/cli-0.1.11-anegs86e.mjs +7 -0
  111. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +5 -0
  112. package/dist/chunks/cli-0.1.11-at3c85af.mjs +2 -0
  113. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +9 -0
  114. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +2 -0
  115. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +2 -0
  116. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +2 -0
  117. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +4 -0
  118. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +2 -0
  119. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +252 -0
  120. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +2 -0
  121. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +2 -0
  122. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +2 -0
  123. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +2 -0
  124. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +134 -0
  125. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +10 -0
  126. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +2 -0
  127. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +4 -0
  128. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +12 -0
  129. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +11 -0
  130. package/dist/chunks/cli-0.1.11-d3exw047.mjs +2 -0
  131. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +2 -0
  132. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +2 -0
  133. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +24 -0
  134. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +2 -0
  135. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +2 -0
  136. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +4 -0
  137. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +16 -0
  138. package/dist/chunks/cli-0.1.11-egck69w4.mjs +2 -0
  139. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +18 -0
  140. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +2 -0
  141. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +3 -0
  142. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +2 -0
  143. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +2 -0
  144. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +2 -0
  145. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +2 -0
  146. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +2 -0
  147. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +22 -0
  148. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +5 -0
  149. package/dist/chunks/cli-0.1.11-g2202evh.mjs +2 -0
  150. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +2 -0
  151. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +2 -0
  152. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +2 -0
  153. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +2 -0
  154. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +2 -0
  155. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +12 -0
  156. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +2 -0
  157. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +2 -0
  158. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +31 -0
  159. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +2 -0
  160. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +2 -0
  161. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +2 -0
  162. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +4 -0
  163. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +2 -0
  164. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +2 -0
  165. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +15 -0
  166. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +2 -0
  167. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +11 -0
  168. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +2 -0
  169. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +3 -0
  170. package/dist/chunks/cli-0.1.11-jye250b3.mjs +2 -0
  171. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +6 -0
  172. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +7 -0
  173. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +2 -0
  174. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +24 -0
  175. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +2 -0
  176. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +4 -0
  177. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +2 -0
  178. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +2 -0
  179. package/dist/chunks/cli-0.1.11-mr356stf.mjs +2 -0
  180. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +2 -0
  181. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +2 -0
  182. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +2 -0
  183. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +2 -0
  184. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +2 -0
  185. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +2 -0
  186. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +4 -0
  187. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +4 -0
  188. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +2 -0
  189. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +5 -0
  190. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +2 -0
  191. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +3 -0
  192. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +2 -0
  193. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +2 -0
  194. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +16 -0
  195. package/dist/chunks/cli-0.1.11-qheffjft.mjs +2 -0
  196. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +15 -0
  197. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +2 -0
  198. package/dist/chunks/cli-0.1.11-r990p54m.mjs +100 -0
  199. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +2 -0
  200. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +2 -0
  201. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +2 -0
  202. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +2 -0
  203. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +2 -0
  204. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +6 -0
  205. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +5036 -0
  206. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +2 -0
  207. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +132 -0
  208. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +2 -0
  209. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +2 -0
  210. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +2 -0
  211. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +2 -0
  212. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +2 -0
  213. package/dist/chunks/cli-0.1.11-tyh8gms9.mjs +2 -0
  214. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +12 -0
  215. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +2 -0
  216. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +192 -0
  217. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +2 -0
  218. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +2 -0
  219. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +2 -0
  220. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +44 -0
  221. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +2 -0
  222. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +39 -0
  223. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +21 -0
  224. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +2 -0
  225. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +34 -0
  226. package/dist/chunks/cli-0.1.11-weav8142.mjs +2 -0
  227. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +2 -0
  228. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +14 -0
  229. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +2 -0
  230. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +2 -0
  231. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +2 -0
  232. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +2 -0
  233. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +2 -0
  234. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +2 -0
  235. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +2 -0
  236. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +2 -0
  237. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +2 -0
  238. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +2 -0
  239. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +3 -0
  240. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +2 -0
  241. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +2 -0
  242. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +2 -0
  243. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +13 -0
  244. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +2 -0
  245. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +2 -0
  246. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +2 -0
  247. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +1 -0
  248. package/dist/chunks/color-0.1.11-b7favzc8.mjs +1 -0
  249. package/dist/chunks/compact-0.1.11-damm234b.mjs +3 -0
  250. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +1 -0
  251. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +1 -0
  252. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +1 -0
  254. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +1 -0
  255. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +9 -0
  256. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +1 -0
  257. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +1 -0
  258. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +1 -0
  259. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +1 -0
  260. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +1 -0
  261. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +1 -0
  262. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +1 -0
  263. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +1 -0
  264. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +1 -0
  265. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +8 -0
  266. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +1 -0
  267. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +1 -0
  268. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +1 -0
  269. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +1 -0
  272. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +1 -0
  273. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +1 -0
  275. package/dist/chunks/git-0.1.11-g77ppr52.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +1 -0
  277. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +1 -0
  278. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +6 -0
  279. package/dist/chunks/help-0.1.11-byp88gen.mjs +1 -0
  280. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +3 -0
  281. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +1 -0
  282. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +79 -0
  283. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +3 -0
  284. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +1 -0
  285. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +1 -0
  286. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +9 -0
  287. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +1 -0
  288. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +1 -0
  289. package/dist/chunks/index-0.1.11-b2q967nq.mjs +30 -0
  290. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +1 -0
  291. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +1 -0
  292. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +1 -0
  293. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +5 -0
  294. package/dist/chunks/index-0.1.11-gb3saayk.mjs +2 -0
  295. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +1 -0
  296. package/dist/chunks/index-0.1.11-n564rmwy.mjs +1 -0
  297. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +1 -0
  298. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +1 -0
  299. package/dist/chunks/index-0.1.11-pmkgntay.mjs +7 -0
  300. package/dist/chunks/index-0.1.11-qspcw49p.mjs +1 -0
  301. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +1 -0
  302. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +9 -0
  303. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +1 -0
  304. package/dist/chunks/index-0.1.11-wze82293.mjs +1 -0
  305. package/dist/chunks/index-0.1.11-xs4mng75.mjs +1 -0
  306. package/dist/chunks/index-0.1.11-yej3awws.mjs +2 -0
  307. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +1 -0
  308. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +1 -0
  309. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +870 -0
  310. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +1 -0
  311. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +149 -0
  312. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +1 -0
  313. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +12 -0
  314. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +1 -0
  315. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +2 -0
  316. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +2 -0
  317. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +1 -0
  318. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +1 -0
  319. package/dist/chunks/logout-0.1.11-48ynp610.mjs +1 -0
  320. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +1 -0
  321. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +1 -0
  322. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +1 -0
  323. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +17 -0
  324. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +4 -0
  325. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +1 -0
  326. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +1 -0
  327. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +1 -0
  328. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +3 -0
  329. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +2 -0
  330. package/dist/chunks/model-0.1.11-4v166f98.mjs +2 -0
  331. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +1 -0
  332. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +1 -0
  333. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +14 -0
  334. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +1 -0
  335. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +1 -0
  336. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +1 -0
  337. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +1 -0
  338. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +3 -0
  339. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +1 -0
  340. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +1 -0
  341. package/dist/chunks/plugin-0.1.11-menj210d.mjs +29 -0
  342. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +1 -0
  343. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +9 -0
  344. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +57 -0
  345. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +1 -0
  346. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +1 -0
  347. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +1 -0
  348. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +9 -0
  349. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +1 -0
  350. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +1 -0
  351. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +1 -0
  352. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +2 -0
  353. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +1 -0
  354. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +1 -0
  355. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +1 -0
  356. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +5 -0
  357. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +2 -0
  358. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +1 -0
  359. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +1 -0
  360. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +1 -0
  361. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +1 -0
  362. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +1 -0
  363. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +2 -0
  364. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +1 -0
  365. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +1 -0
  366. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +1 -0
  367. package/dist/chunks/session-0.1.11-2z972raf.mjs +2 -0
  368. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +1 -0
  369. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +1 -0
  370. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +5 -0
  371. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +1 -0
  372. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +1 -0
  373. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +1 -0
  374. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +1 -0
  375. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +6 -0
  376. package/dist/chunks/status-0.1.11-drvp15n8.mjs +1 -0
  377. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +1 -0
  378. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +1 -0
  379. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +1 -0
  380. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +1 -0
  381. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +1 -0
  382. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +1 -0
  383. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +1 -0
  384. package/dist/chunks/theme-0.1.11-p447kczd.mjs +1 -0
  385. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +1 -0
  386. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +1 -0
  387. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +1 -0
  388. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +1 -0
  389. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +1 -0
  390. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +69 -0
  391. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +4 -0
  392. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +94 -0
  393. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +1 -0
  394. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +14 -0
  395. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +1 -0
  396. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +1 -0
  397. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +1 -0
  398. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +1 -0
  399. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +1 -0
  400. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +132 -0
  401. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +1 -0
  402. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +1 -0
  403. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +7 -0
  404. package/dist/claudio-vscode.vsix +0 -0
  405. package/dist/cli.mjs +6 -6
  406. package/package.json +1 -1
  407. package/dist/chunks/AgentTool-0.1.9-e26h2f7z.mjs +0 -1
  408. package/dist/chunks/App-0.1.9-7ttp2eny.mjs +0 -1
  409. package/dist/chunks/ApproveApiKey-0.1.9-pz0jzna9.mjs +0 -1
  410. package/dist/chunks/AssistantSessionChooser-0.1.9-r5wg1yfv.mjs +0 -1
  411. package/dist/chunks/AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs +0 -1
  412. package/dist/chunks/BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs +0 -1
  413. package/dist/chunks/ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs +0 -1
  414. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs +0 -1
  415. package/dist/chunks/ConsoleOAuthFlow-0.1.9-zb1h6dvy.mjs +0 -1
  416. package/dist/chunks/DiffDialog-0.1.9-09s28v8e.mjs +0 -3
  417. package/dist/chunks/Doctor-0.1.9-9ak6wqtr.mjs +0 -1
  418. package/dist/chunks/Grove-0.1.9-rbrf13rd.mjs +0 -1
  419. package/dist/chunks/ITermBackend-0.1.9-8dgw249h.mjs +0 -1
  420. package/dist/chunks/InProcessTransport-0.1.9-5cp1e7x7.mjs +0 -1
  421. package/dist/chunks/InvalidConfigDialog-0.1.9-6mv9wgt8.mjs +0 -1
  422. package/dist/chunks/InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs +0 -1
  423. package/dist/chunks/MigrationDialog-0.1.9-56807wps.mjs +0 -1
  424. package/dist/chunks/Onboarding-0.1.9-g5nqdh1r.mjs +0 -1
  425. package/dist/chunks/ProviderManager-0.1.9-kj6t8003.mjs +0 -1
  426. package/dist/chunks/REPL-0.1.9-3h2fc9z7.mjs +0 -1
  427. package/dist/chunks/ResumeConversation-0.1.9-k4gv6dx4.mjs +0 -1
  428. package/dist/chunks/SnapshotUpdateDialog-0.1.9-v3h7drc0.mjs +0 -1
  429. package/dist/chunks/StartupScreen-0.1.9-jgk08xvj.mjs +0 -1
  430. package/dist/chunks/TeleportProgress-0.1.9-pnqkmgap.mjs +0 -1
  431. package/dist/chunks/TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs +0 -1
  432. package/dist/chunks/TeleportResumeWrapper-0.1.9-vhnyx04e.mjs +0 -1
  433. package/dist/chunks/TmuxBackend-0.1.9-nb2ks1np.mjs +0 -9
  434. package/dist/chunks/ToolSearchTool-0.1.9-n40whaty.mjs +0 -1
  435. package/dist/chunks/TrustDialog-0.1.9-dm2wppgy.mjs +0 -1
  436. package/dist/chunks/activeProvider-0.1.9-kbwwatt3.mjs +0 -1
  437. package/dist/chunks/add-dir-0.1.9-ed53zp9j.mjs +0 -1
  438. package/dist/chunks/agents-0.1.9-4gwb1qtc.mjs +0 -111
  439. package/dist/chunks/agents-0.1.9-yr85gwa8.mjs +0 -3
  440. package/dist/chunks/api-0.1.9-kqwfw6wj.mjs +0 -1
  441. package/dist/chunks/asciicast-0.1.9-ekvsjx76.mjs +0 -1
  442. package/dist/chunks/assistant-0.1.9-h4rgf0xq.mjs +0 -1
  443. package/dist/chunks/auth-0.1.9-1c12xrxs.mjs +0 -1
  444. package/dist/chunks/auth-0.1.9-rqfx3vqa.mjs +0 -1
  445. package/dist/chunks/autoMode-0.1.9-s92asycq.mjs +0 -48
  446. package/dist/chunks/backgroundHousekeeping-0.1.9-jjbqckpm.mjs +0 -1
  447. package/dist/chunks/branch-0.1.9-m7j2aerq.mjs +0 -4
  448. package/dist/chunks/bridgePointer-0.1.9-rv3aq23v.mjs +0 -1
  449. package/dist/chunks/btw-0.1.9-g55x31zp.mjs +0 -1
  450. package/dist/chunks/buddy-0.1.9-fqmk7e4y.mjs +0 -3
  451. package/dist/chunks/cacache-0.1.9-dr1vt8s1.mjs +0 -1
  452. package/dist/chunks/cache-probe-0.1.9-ydmjrch4.mjs +0 -21
  453. package/dist/chunks/cacheStats-0.1.9-pkarrnw9.mjs +0 -4
  454. package/dist/chunks/caches-0.1.9-d6cndrra.mjs +0 -1
  455. package/dist/chunks/chrome-0.1.9-bvwzw157.mjs +0 -1
  456. package/dist/chunks/chromeNativeHost-0.1.9-8a20nscz.mjs +0 -2
  457. package/dist/chunks/claude-for-chrome-mcp-0.1.9-ndknjd3g.mjs +0 -1
  458. package/dist/chunks/claudeDesktop-0.1.9-7xprztbk.mjs +0 -1
  459. package/dist/chunks/claudemd-0.1.9-dqyhgy2v.mjs +0 -1
  460. package/dist/chunks/clear-0.1.9-tb8x7676.mjs +0 -1
  461. package/dist/chunks/cli-0.1.9-001s9kxw.mjs +0 -24
  462. package/dist/chunks/cli-0.1.9-03e1d9dw.mjs +0 -39
  463. package/dist/chunks/cli-0.1.9-04ez73f7.mjs +0 -5084
  464. package/dist/chunks/cli-0.1.9-0dtdhejj.mjs +0 -31
  465. package/dist/chunks/cli-0.1.9-0e6nsh68.mjs +0 -3
  466. package/dist/chunks/cli-0.1.9-0j8n671q.mjs +0 -2
  467. package/dist/chunks/cli-0.1.9-15y0qt1z.mjs +0 -2
  468. package/dist/chunks/cli-0.1.9-1c3qpbdh.mjs +0 -2
  469. package/dist/chunks/cli-0.1.9-1f5gmndb.mjs +0 -2
  470. package/dist/chunks/cli-0.1.9-1ghbcafn.mjs +0 -2
  471. package/dist/chunks/cli-0.1.9-1kaj4v6k.mjs +0 -2
  472. package/dist/chunks/cli-0.1.9-1xmdqqzd.mjs +0 -3
  473. package/dist/chunks/cli-0.1.9-263y2rkc.mjs +0 -3
  474. package/dist/chunks/cli-0.1.9-2dd7h0hn.mjs +0 -15
  475. package/dist/chunks/cli-0.1.9-2prq7peb.mjs +0 -2
  476. package/dist/chunks/cli-0.1.9-2tc83tsz.mjs +0 -2
  477. package/dist/chunks/cli-0.1.9-2thp2z73.mjs +0 -2
  478. package/dist/chunks/cli-0.1.9-2v0y90vz.mjs +0 -2
  479. package/dist/chunks/cli-0.1.9-2v4s8yf9.mjs +0 -7
  480. package/dist/chunks/cli-0.1.9-2x18rhq6.mjs +0 -6
  481. package/dist/chunks/cli-0.1.9-38zb09vp.mjs +0 -2
  482. package/dist/chunks/cli-0.1.9-3g3er8j1.mjs +0 -15
  483. package/dist/chunks/cli-0.1.9-3h4serkj.mjs +0 -58
  484. package/dist/chunks/cli-0.1.9-3rhe87kw.mjs +0 -2
  485. package/dist/chunks/cli-0.1.9-3vfq7jja.mjs +0 -34
  486. package/dist/chunks/cli-0.1.9-3wmbdmrp.mjs +0 -2
  487. package/dist/chunks/cli-0.1.9-3y36913h.mjs +0 -10
  488. package/dist/chunks/cli-0.1.9-3yscrq86.mjs +0 -833
  489. package/dist/chunks/cli-0.1.9-45ggwszg.mjs +0 -2
  490. package/dist/chunks/cli-0.1.9-4a9qwf11.mjs +0 -2
  491. package/dist/chunks/cli-0.1.9-4bg6jxs8.mjs +0 -2
  492. package/dist/chunks/cli-0.1.9-4kk9fmg2.mjs +0 -2
  493. package/dist/chunks/cli-0.1.9-4n4dqg6k.mjs +0 -2
  494. package/dist/chunks/cli-0.1.9-4sqfjw8t.mjs +0 -16
  495. package/dist/chunks/cli-0.1.9-4vmbyj20.mjs +0 -2
  496. package/dist/chunks/cli-0.1.9-4vt296k0.mjs +0 -18
  497. package/dist/chunks/cli-0.1.9-5ryrgdzg.mjs +0 -2
  498. package/dist/chunks/cli-0.1.9-5vgk7wf7.mjs +0 -2
  499. package/dist/chunks/cli-0.1.9-5ygmjsje.mjs +0 -2
  500. package/dist/chunks/cli-0.1.9-5ypg3t0t.mjs +0 -2
  501. package/dist/chunks/cli-0.1.9-5zhhyq4q.mjs +0 -2
  502. package/dist/chunks/cli-0.1.9-61ywjha3.mjs +0 -2
  503. package/dist/chunks/cli-0.1.9-68vwvmkw.mjs +0 -2
  504. package/dist/chunks/cli-0.1.9-6c7qrr4p.mjs +0 -16
  505. package/dist/chunks/cli-0.1.9-6gk46nr9.mjs +0 -2
  506. package/dist/chunks/cli-0.1.9-6j5gxw5r.mjs +0 -5
  507. package/dist/chunks/cli-0.1.9-6ne451jc.mjs +0 -2
  508. package/dist/chunks/cli-0.1.9-6p67vwxh.mjs +0 -2
  509. package/dist/chunks/cli-0.1.9-6pcahrj9.mjs +0 -2
  510. package/dist/chunks/cli-0.1.9-7047sjwh.mjs +0 -2
  511. package/dist/chunks/cli-0.1.9-7bakxr5q.mjs +0 -3
  512. package/dist/chunks/cli-0.1.9-7bthhhpf.mjs +0 -2
  513. package/dist/chunks/cli-0.1.9-7fp0smtp.mjs +0 -2
  514. package/dist/chunks/cli-0.1.9-7ftnjyps.mjs +0 -2
  515. package/dist/chunks/cli-0.1.9-7h5my4fb.mjs +0 -2
  516. package/dist/chunks/cli-0.1.9-7kcaaxvq.mjs +0 -12
  517. package/dist/chunks/cli-0.1.9-7q9461ka.mjs +0 -2
  518. package/dist/chunks/cli-0.1.9-7qhatm3v.mjs +0 -2
  519. package/dist/chunks/cli-0.1.9-86kws2c7.mjs +0 -192
  520. package/dist/chunks/cli-0.1.9-8egwvs85.mjs +0 -2
  521. package/dist/chunks/cli-0.1.9-90h21nv5.mjs +0 -2
  522. package/dist/chunks/cli-0.1.9-9d4sp76k.mjs +0 -2
  523. package/dist/chunks/cli-0.1.9-9hc8gyb7.mjs +0 -2
  524. package/dist/chunks/cli-0.1.9-9nhh15bp.mjs +0 -2
  525. package/dist/chunks/cli-0.1.9-9vab0er5.mjs +0 -2
  526. package/dist/chunks/cli-0.1.9-9vn4ys3c.mjs +0 -22
  527. package/dist/chunks/cli-0.1.9-a1gtww1d.mjs +0 -2
  528. package/dist/chunks/cli-0.1.9-a7zy4vqn.mjs +0 -134
  529. package/dist/chunks/cli-0.1.9-a95nqhbd.mjs +0 -4
  530. package/dist/chunks/cli-0.1.9-ag6a8kqj.mjs +0 -2
  531. package/dist/chunks/cli-0.1.9-ak0b9xfs.mjs +0 -100
  532. package/dist/chunks/cli-0.1.9-aqd7czgr.mjs +0 -3
  533. package/dist/chunks/cli-0.1.9-axg1kbe4.mjs +0 -2
  534. package/dist/chunks/cli-0.1.9-aype6q4y.mjs +0 -2
  535. package/dist/chunks/cli-0.1.9-b3031hmy.mjs +0 -2
  536. package/dist/chunks/cli-0.1.9-b6zp931m.mjs +0 -11
  537. package/dist/chunks/cli-0.1.9-b73n8vzm.mjs +0 -2
  538. package/dist/chunks/cli-0.1.9-b9kbpf6n.mjs +0 -2
  539. package/dist/chunks/cli-0.1.9-bg9xvmav.mjs +0 -2
  540. package/dist/chunks/cli-0.1.9-bn43vpc0.mjs +0 -2
  541. package/dist/chunks/cli-0.1.9-br9jzagb.mjs +0 -2
  542. package/dist/chunks/cli-0.1.9-c2fjeq7k.mjs +0 -2
  543. package/dist/chunks/cli-0.1.9-c38eyh49.mjs +0 -2
  544. package/dist/chunks/cli-0.1.9-cfzmq9k6.mjs +0 -2
  545. package/dist/chunks/cli-0.1.9-cvnkghgh.mjs +0 -3
  546. package/dist/chunks/cli-0.1.9-dmcbsmj4.mjs +0 -2
  547. package/dist/chunks/cli-0.1.9-dsx18zt1.mjs +0 -2
  548. package/dist/chunks/cli-0.1.9-dt31fs16.mjs +0 -2
  549. package/dist/chunks/cli-0.1.9-dzz1me99.mjs +0 -2
  550. package/dist/chunks/cli-0.1.9-e7ewtpew.mjs +0 -2
  551. package/dist/chunks/cli-0.1.9-e96x59hw.mjs +0 -2
  552. package/dist/chunks/cli-0.1.9-ehhkqhbv.mjs +0 -2
  553. package/dist/chunks/cli-0.1.9-eqxc9zxm.mjs +0 -12
  554. package/dist/chunks/cli-0.1.9-ewq9k9mr.mjs +0 -2
  555. package/dist/chunks/cli-0.1.9-ewwxqbvt.mjs +0 -2
  556. package/dist/chunks/cli-0.1.9-f4v4pahc.mjs +0 -4
  557. package/dist/chunks/cli-0.1.9-f643fvt4.mjs +0 -2
  558. package/dist/chunks/cli-0.1.9-f8ga1n8r.mjs +0 -6
  559. package/dist/chunks/cli-0.1.9-fcf313e7.mjs +0 -2
  560. package/dist/chunks/cli-0.1.9-fh5enjw8.mjs +0 -5
  561. package/dist/chunks/cli-0.1.9-fm2yycpj.mjs +0 -2
  562. package/dist/chunks/cli-0.1.9-fwqwgjwb.mjs +0 -2
  563. package/dist/chunks/cli-0.1.9-gandxpzf.mjs +0 -2
  564. package/dist/chunks/cli-0.1.9-gasw7sr9.mjs +0 -2
  565. package/dist/chunks/cli-0.1.9-gdymcvby.mjs +0 -2
  566. package/dist/chunks/cli-0.1.9-gpd1bhnf.mjs +0 -2
  567. package/dist/chunks/cli-0.1.9-gsc0t4gy.mjs +0 -2
  568. package/dist/chunks/cli-0.1.9-gvrtqwe3.mjs +0 -2
  569. package/dist/chunks/cli-0.1.9-h8xne7z8.mjs +0 -2
  570. package/dist/chunks/cli-0.1.9-hjcv9wr7.mjs +0 -50
  571. package/dist/chunks/cli-0.1.9-hva25eg3.mjs +0 -4
  572. package/dist/chunks/cli-0.1.9-hy4peemf.mjs +0 -3
  573. package/dist/chunks/cli-0.1.9-hy9s1fnj.mjs +0 -14
  574. package/dist/chunks/cli-0.1.9-hz8rssz0.mjs +0 -2
  575. package/dist/chunks/cli-0.1.9-j5zz6gbq.mjs +0 -4
  576. package/dist/chunks/cli-0.1.9-jb6af8n8.mjs +0 -2
  577. package/dist/chunks/cli-0.1.9-jchn9hyn.mjs +0 -2
  578. package/dist/chunks/cli-0.1.9-jdpz959j.mjs +0 -2
  579. package/dist/chunks/cli-0.1.9-jv2z42gk.mjs +0 -2
  580. package/dist/chunks/cli-0.1.9-kbrf27z8.mjs +0 -2
  581. package/dist/chunks/cli-0.1.9-krv35v3v.mjs +0 -2
  582. package/dist/chunks/cli-0.1.9-ksv4ntar.mjs +0 -2
  583. package/dist/chunks/cli-0.1.9-kt9xw7bn.mjs +0 -2
  584. package/dist/chunks/cli-0.1.9-m7shtst2.mjs +0 -2
  585. package/dist/chunks/cli-0.1.9-mfyd9h50.mjs +0 -2
  586. package/dist/chunks/cli-0.1.9-mj88t3jf.mjs +0 -2
  587. package/dist/chunks/cli-0.1.9-mjkhzp2c.mjs +0 -3
  588. package/dist/chunks/cli-0.1.9-mkfnnvz7.mjs +0 -4
  589. package/dist/chunks/cli-0.1.9-mme2x7fq.mjs +0 -2
  590. package/dist/chunks/cli-0.1.9-mnegaqr7.mjs +0 -2
  591. package/dist/chunks/cli-0.1.9-mx4ekht0.mjs +0 -2
  592. package/dist/chunks/cli-0.1.9-mz3mbxwb.mjs +0 -12
  593. package/dist/chunks/cli-0.1.9-n445yk6z.mjs +0 -2
  594. package/dist/chunks/cli-0.1.9-n54k4qt3.mjs +0 -2
  595. package/dist/chunks/cli-0.1.9-n8tc0gpm.mjs +0 -2
  596. package/dist/chunks/cli-0.1.9-nsgdz4rd.mjs +0 -2
  597. package/dist/chunks/cli-0.1.9-nw3rpxdd.mjs +0 -252
  598. package/dist/chunks/cli-0.1.9-nz8phj17.mjs +0 -2
  599. package/dist/chunks/cli-0.1.9-p1kdk178.mjs +0 -2
  600. package/dist/chunks/cli-0.1.9-p58rgwkr.mjs +0 -4
  601. package/dist/chunks/cli-0.1.9-p5scdysw.mjs +0 -2
  602. package/dist/chunks/cli-0.1.9-pdbfg3vh.mjs +0 -2
  603. package/dist/chunks/cli-0.1.9-pgwsmwz1.mjs +0 -2
  604. package/dist/chunks/cli-0.1.9-ph3w8t78.mjs +0 -2
  605. package/dist/chunks/cli-0.1.9-psx0e36a.mjs +0 -2
  606. package/dist/chunks/cli-0.1.9-q3e2h88a.mjs +0 -2
  607. package/dist/chunks/cli-0.1.9-q7hve442.mjs +0 -2
  608. package/dist/chunks/cli-0.1.9-qqjp7mpj.mjs +0 -2
  609. package/dist/chunks/cli-0.1.9-qydwhycw.mjs +0 -2
  610. package/dist/chunks/cli-0.1.9-r3ha1332.mjs +0 -7
  611. package/dist/chunks/cli-0.1.9-r7rcv2wm.mjs +0 -8
  612. package/dist/chunks/cli-0.1.9-rd0jctgk.mjs +0 -21
  613. package/dist/chunks/cli-0.1.9-rerthk1j.mjs +0 -2
  614. package/dist/chunks/cli-0.1.9-rft22htm.mjs +0 -2
  615. package/dist/chunks/cli-0.1.9-rp31nc37.mjs +0 -2
  616. package/dist/chunks/cli-0.1.9-rw09xkh7.mjs +0 -2
  617. package/dist/chunks/cli-0.1.9-s0w3y07w.mjs +0 -2
  618. package/dist/chunks/cli-0.1.9-s45y2ndk.mjs +0 -2
  619. package/dist/chunks/cli-0.1.9-s6bk4fbn.mjs +0 -2
  620. package/dist/chunks/cli-0.1.9-scpj6tps.mjs +0 -3
  621. package/dist/chunks/cli-0.1.9-sqja68fn.mjs +0 -2
  622. package/dist/chunks/cli-0.1.9-sv3awdsv.mjs +0 -2
  623. package/dist/chunks/cli-0.1.9-t24n24mw.mjs +0 -2
  624. package/dist/chunks/cli-0.1.9-teaymnrz.mjs +0 -2
  625. package/dist/chunks/cli-0.1.9-tq9z3reg.mjs +0 -2
  626. package/dist/chunks/cli-0.1.9-v32f99vc.mjs +0 -11
  627. package/dist/chunks/cli-0.1.9-v6x9pr1t.mjs +0 -2
  628. package/dist/chunks/cli-0.1.9-v7ajk1nz.mjs +0 -2
  629. package/dist/chunks/cli-0.1.9-vdw09f8y.mjs +0 -44
  630. package/dist/chunks/cli-0.1.9-vm7cggd9.mjs +0 -45
  631. package/dist/chunks/cli-0.1.9-vp3dtntc.mjs +0 -2
  632. package/dist/chunks/cli-0.1.9-vwv31syx.mjs +0 -2
  633. package/dist/chunks/cli-0.1.9-w692zn5c.mjs +0 -2
  634. package/dist/chunks/cli-0.1.9-wn39cz20.mjs +0 -2
  635. package/dist/chunks/cli-0.1.9-wpvrabrk.mjs +0 -2
  636. package/dist/chunks/cli-0.1.9-x0xxr5dh.mjs +0 -13
  637. package/dist/chunks/cli-0.1.9-x13p19zq.mjs +0 -2
  638. package/dist/chunks/cli-0.1.9-x257hapj.mjs +0 -9
  639. package/dist/chunks/cli-0.1.9-x7qrvj9f.mjs +0 -2
  640. package/dist/chunks/cli-0.1.9-xvn37fkk.mjs +0 -2
  641. package/dist/chunks/cli-0.1.9-xvvq2rcd.mjs +0 -4
  642. package/dist/chunks/cli-0.1.9-xws3mhz4.mjs +0 -2
  643. package/dist/chunks/cli-0.1.9-y8n4w5nn.mjs +0 -5
  644. package/dist/chunks/cli-0.1.9-ycvkz1gf.mjs +0 -4
  645. package/dist/chunks/cli-0.1.9-yddanjg2.mjs +0 -132
  646. package/dist/chunks/cli-0.1.9-ymsq31jx.mjs +0 -2
  647. package/dist/chunks/cli-0.1.9-ywf6743k.mjs +0 -2
  648. package/dist/chunks/cli-0.1.9-z5mm21jw.mjs +0 -24
  649. package/dist/chunks/cli-0.1.9-zae1me3j.mjs +0 -2
  650. package/dist/chunks/cli-0.1.9-zck4s4sh.mjs +0 -2
  651. package/dist/chunks/cli-0.1.9-zehsa1kq.mjs +0 -2
  652. package/dist/chunks/cli-0.1.9-zqyxbf50.mjs +0 -2
  653. package/dist/chunks/cli-0.1.9-zstpbdrf.mjs +0 -2
  654. package/dist/chunks/cli-0.1.9-zzp8m503.mjs +0 -3
  655. package/dist/chunks/cliArgs-0.1.9-kckasx4h.mjs +0 -1
  656. package/dist/chunks/client-0.1.9-ys52xz2v.mjs +0 -1
  657. package/dist/chunks/color-0.1.9-nmnytefc.mjs +0 -1
  658. package/dist/chunks/compact-0.1.9-qw915ckh.mjs +0 -3
  659. package/dist/chunks/config-0.1.9-1m69edch.mjs +0 -1
  660. package/dist/chunks/config-0.1.9-6knxc8a2.mjs +0 -1
  661. package/dist/chunks/context-0.1.9-47a3xmqq.mjs +0 -1
  662. package/dist/chunks/context-noninteractive-0.1.9-6s9bm74v.mjs +0 -1
  663. package/dist/chunks/conversation-0.1.9-vebter8y.mjs +0 -1
  664. package/dist/chunks/copy-0.1.9-ae06p3e2.mjs +0 -9
  665. package/dist/chunks/cost-0.1.9-x5zee0z9.mjs +0 -1
  666. package/dist/chunks/createSession-0.1.9-djn7xdsv.mjs +0 -1
  667. package/dist/chunks/desktop-0.1.9-xaecrssd.mjs +0 -1
  668. package/dist/chunks/detectRepository-0.1.9-qqzcce45.mjs +0 -1
  669. package/dist/chunks/detection-0.1.9-ry1q2ym2.mjs +0 -1
  670. package/dist/chunks/devtools-0.1.9-kzs9wq2w.mjs +0 -1
  671. package/dist/chunks/diff-0.1.9-af5n5bzh.mjs +0 -1
  672. package/dist/chunks/doctor-0.1.9-9f6fz2h0.mjs +0 -1
  673. package/dist/chunks/earlyInput-0.1.9-h7yskwvf.mjs +0 -1
  674. package/dist/chunks/effort-0.1.9-spz96zzr.mjs +0 -8
  675. package/dist/chunks/environmentSelection-0.1.9-0va5g53h.mjs +0 -1
  676. package/dist/chunks/environments-0.1.9-2hka6k26.mjs +0 -1
  677. package/dist/chunks/exit-0.1.9-rvk04qa2.mjs +0 -1
  678. package/dist/chunks/export-0.1.9-c3pqjktx.mjs +0 -2
  679. package/dist/chunks/extra-usage-0.1.9-92jjke47.mjs +0 -1
  680. package/dist/chunks/extra-usage-noninteractive-0.1.9-27zjp5q7.mjs +0 -1
  681. package/dist/chunks/fast-0.1.9-60sqqvgd.mjs +0 -1
  682. package/dist/chunks/feedback-0.1.9-anraj53n.mjs +0 -14
  683. package/dist/chunks/firstPartyEventLogger-0.1.9-y55fqx1x.mjs +0 -1
  684. package/dist/chunks/fullscreen-0.1.9-xy9bnpe3.mjs +0 -1
  685. package/dist/chunks/git-0.1.9-09pdaxwd.mjs +0 -1
  686. package/dist/chunks/githubModelsCredentials-0.1.9-bzx6c3bd.mjs +0 -1
  687. package/dist/chunks/growthbook-0.1.9-rqhcy76z.mjs +0 -1
  688. package/dist/chunks/heapdump-0.1.9-qrfce4dp.mjs +0 -6
  689. package/dist/chunks/help-0.1.9-sfn2ed9n.mjs +0 -1
  690. package/dist/chunks/hookChains-0.1.9-5t2mrtyc.mjs +0 -3
  691. package/dist/chunks/hooks-0.1.9-4cebdztn.mjs +0 -1
  692. package/dist/chunks/hooks-0.1.9-y0vtx23k.mjs +0 -79
  693. package/dist/chunks/ide-0.1.9-yxzacgd5.mjs +0 -3
  694. package/dist/chunks/image-processor-napi-0.1.9-fwc1ge47.mjs +0 -1
  695. package/dist/chunks/index-0.1.9-2gv7a7tq.mjs +0 -2
  696. package/dist/chunks/index-0.1.9-31vnb803.mjs +0 -1
  697. package/dist/chunks/index-0.1.9-68aa3hmw.mjs +0 -1
  698. package/dist/chunks/index-0.1.9-7ktx5gez.mjs +0 -1
  699. package/dist/chunks/index-0.1.9-8feamw1f.mjs +0 -1
  700. package/dist/chunks/index-0.1.9-8hzceckr.mjs +0 -5
  701. package/dist/chunks/index-0.1.9-96thm65j.mjs +0 -1
  702. package/dist/chunks/index-0.1.9-c7sexk3f.mjs +0 -2
  703. package/dist/chunks/index-0.1.9-fvtq6thw.mjs +0 -1
  704. package/dist/chunks/index-0.1.9-g2ngvhaf.mjs +0 -1
  705. package/dist/chunks/index-0.1.9-gtn0qcv2.mjs +0 -7
  706. package/dist/chunks/index-0.1.9-h548q4km.mjs +0 -1
  707. package/dist/chunks/index-0.1.9-j6ac60hq.mjs +0 -1
  708. package/dist/chunks/index-0.1.9-jxdymwv4.mjs +0 -1
  709. package/dist/chunks/index-0.1.9-kgdkzpmr.mjs +0 -1
  710. package/dist/chunks/index-0.1.9-mt2y3wyw.mjs +0 -9
  711. package/dist/chunks/index-0.1.9-smem7egb.mjs +0 -30
  712. package/dist/chunks/index-0.1.9-snmdvw2f.mjs +0 -1
  713. package/dist/chunks/index-0.1.9-vwevfx80.mjs +0 -1
  714. package/dist/chunks/index-0.1.9-w21jc8bp.mjs +0 -1
  715. package/dist/chunks/index-0.1.9-wpqaqk4y.mjs +0 -1
  716. package/dist/chunks/index-0.1.9-yjp28h60.mjs +0 -9
  717. package/dist/chunks/initReplBridge-0.1.9-dag95hyf.mjs +0 -1
  718. package/dist/chunks/ink-0.1.9-4n2nvw5p.mjs +0 -1
  719. package/dist/chunks/insights-0.1.9-9hr8tshw.mjs +0 -870
  720. package/dist/chunks/install-0.1.9-km91vvgf.mjs +0 -1
  721. package/dist/chunks/install-github-app-0.1.9-874a2dgj.mjs +0 -149
  722. package/dist/chunks/install-slack-app-0.1.9-q5yyb8vs.mjs +0 -1
  723. package/dist/chunks/instrumentation-0.1.9-raz129aj.mjs +0 -12
  724. package/dist/chunks/interactiveHelpers-0.1.9-21a8r4rv.mjs +0 -1
  725. package/dist/chunks/keybindings-0.1.9-nm8s4x8m.mjs +0 -2
  726. package/dist/chunks/knowledge-0.1.9-zhr6zq80.mjs +0 -2
  727. package/dist/chunks/loadAgentsDir-0.1.9-3m0mzw84.mjs +0 -1
  728. package/dist/chunks/loadPluginHooks-0.1.9-y46g5zj0.mjs +0 -1
  729. package/dist/chunks/logout-0.1.9-hb89bxj8.mjs +0 -1
  730. package/dist/chunks/lsp-0.1.9-2j3y8eqc.mjs +0 -1
  731. package/dist/chunks/main-0.1.9-7cnyr288.mjs +0 -1
  732. package/dist/chunks/managedEnv-0.1.9-y8wax2wz.mjs +0 -1
  733. package/dist/chunks/mcp-0.1.9-14beee71.mjs +0 -17
  734. package/dist/chunks/mcp-0.1.9-qw1n3pzx.mjs +0 -4
  735. package/dist/chunks/mcp-0.1.9-zd92e41j.mjs +0 -1
  736. package/dist/chunks/mcpServer-0.1.9-5p48a2y0.mjs +0 -1
  737. package/dist/chunks/mcpb-0.1.9-t8x1bjwv.mjs +0 -1
  738. package/dist/chunks/memory-0.1.9-mxz6vgsy.mjs +0 -3
  739. package/dist/chunks/mobile-0.1.9-144nwr03.mjs +0 -2
  740. package/dist/chunks/model-0.1.9-ghswdzx2.mjs +0 -1
  741. package/dist/chunks/model-0.1.9-j4vhm4vm.mjs +0 -2
  742. package/dist/chunks/oauth-0.1.9-a7p9ezjx.mjs +0 -1
  743. package/dist/chunks/openaiShim-0.1.9-5bn57rv6.mjs +0 -14
  744. package/dist/chunks/output-style-0.1.9-y8t5c5v3.mjs +0 -1
  745. package/dist/chunks/package-HMBVQOZ4-0.1.9-mbvqe0av.mjs +0 -1
  746. package/dist/chunks/parser-0.1.9-d7vc9q1w.mjs +0 -1
  747. package/dist/chunks/passes-0.1.9-84vsp058.mjs +0 -1
  748. package/dist/chunks/permissions-0.1.9-h0a2312z.mjs +0 -3
  749. package/dist/chunks/plan-0.1.9-k9dx9nwc.mjs +0 -1
  750. package/dist/chunks/plist-0.1.9-f3c6hvca.mjs +0 -1
  751. package/dist/chunks/plugin-0.1.9-z3nwra38.mjs +0 -29
  752. package/dist/chunks/pluginStartupCheck-0.1.9-p68xwmv4.mjs +0 -1
  753. package/dist/chunks/plugins-0.1.9-grc1bgmj.mjs +0 -9
  754. package/dist/chunks/print-0.1.9-z151tvas.mjs +0 -57
  755. package/dist/chunks/privacy-settings-0.1.9-m7xpxtd8.mjs +0 -1
  756. package/dist/chunks/process-0.1.9-anx0dq1a.mjs +0 -1
  757. package/dist/chunks/processBashCommand-0.1.9-bchtybqh.mjs +0 -1
  758. package/dist/chunks/processSlashCommand-0.1.9-ebvc859m.mjs +0 -9
  759. package/dist/chunks/prompt-0.1.9-08fnpwfx.mjs +0 -1
  760. package/dist/chunks/prompt-0.1.9-whqkx3td.mjs +0 -1
  761. package/dist/chunks/prompts-0.1.9-psek69yr.mjs +0 -1
  762. package/dist/chunks/provider-0.1.9-xwmdqr38.mjs +0 -2
  763. package/dist/chunks/providerProfiles-0.1.9-myc8zcfy.mjs +0 -1
  764. package/dist/chunks/rate-limit-options-0.1.9-06twart5.mjs +0 -1
  765. package/dist/chunks/registry-0.1.9-xxrsbce3.mjs +0 -1
  766. package/dist/chunks/release-notes-0.1.9-4r396x7z.mjs +0 -5
  767. package/dist/chunks/reload-plugins-0.1.9-hm09ekrf.mjs +0 -2
  768. package/dist/chunks/remote-env-0.1.9-0peng4np.mjs +0 -1
  769. package/dist/chunks/remoteBridgeCore-0.1.9-4eg0bkck.mjs +0 -1
  770. package/dist/chunks/remoteSession-0.1.9-7jagnaes.mjs +0 -1
  771. package/dist/chunks/rename-0.1.9-3r8bqa1y.mjs +0 -1
  772. package/dist/chunks/replBridgeHandle-0.1.9-1y32h5jq.mjs +0 -1
  773. package/dist/chunks/resume-0.1.9-gayv56qp.mjs +0 -2
  774. package/dist/chunks/rewind-0.1.9-krxjbzeg.mjs +0 -1
  775. package/dist/chunks/sandbox-adapter-0.1.9-b4ze2ex2.mjs +0 -1
  776. package/dist/chunks/sandbox-toggle-0.1.9-6vctxbed.mjs +0 -1
  777. package/dist/chunks/session-0.1.9-jtrr3jje.mjs +0 -2
  778. package/dist/chunks/sessionFileAccessHooks-0.1.9-wpgdva8t.mjs +0 -1
  779. package/dist/chunks/sessionStorage-0.1.9-1v6wyqzw.mjs +0 -1
  780. package/dist/chunks/setup-0.1.9-jc5w6v5s.mjs +0 -5
  781. package/dist/chunks/sinks-0.1.9-49ereb4y.mjs +0 -1
  782. package/dist/chunks/skills-0.1.9-d63w5m27.mjs +0 -1
  783. package/dist/chunks/startupProfiler-0.1.9-gmke65dk.mjs +0 -1
  784. package/dist/chunks/state-0.1.9-m8x0v07d.mjs +0 -1
  785. package/dist/chunks/stats-0.1.9-yvya6xg6.mjs +0 -6
  786. package/dist/chunks/status-0.1.9-sapnwz4b.mjs +0 -1
  787. package/dist/chunks/stickers-0.1.9-ewdagtd4.mjs +0 -1
  788. package/dist/chunks/subprocessEnv-0.1.9-2dqzh55d.mjs +0 -1
  789. package/dist/chunks/tasks-0.1.9-qgqwhse9.mjs +0 -1
  790. package/dist/chunks/teamHelpers-0.1.9-r474ar76.mjs +0 -1
  791. package/dist/chunks/teammateModeSnapshot-0.1.9-nwc11b9m.mjs +0 -1
  792. package/dist/chunks/teleport-0.1.9-xaj204my.mjs +0 -1
  793. package/dist/chunks/terminalSetup-0.1.9-xd5rhh32.mjs +0 -1
  794. package/dist/chunks/theme-0.1.9-f6jzdysz.mjs +0 -1
  795. package/dist/chunks/thinkback-0.1.9-8j25tex7.mjs +0 -1
  796. package/dist/chunks/thinkback-play-0.1.9-tzs2w3mj.mjs +0 -1
  797. package/dist/chunks/toolPool-0.1.9-6b4938vh.mjs +0 -1
  798. package/dist/chunks/toolSearch-0.1.9-7ych6nv7.mjs +0 -1
  799. package/dist/chunks/trustedDevice-0.1.9-xqxt3kmz.mjs +0 -1
  800. package/dist/chunks/turndown.cjs-0.1.9-m1wesrr4.mjs +0 -69
  801. package/dist/chunks/ultrareviewCommand-0.1.9-x09n5pvc.mjs +0 -4
  802. package/dist/chunks/update-0.1.9-8dntd8kh.mjs +0 -94
  803. package/dist/chunks/upgrade-0.1.9-eja31dgt.mjs +0 -1
  804. package/dist/chunks/upstreamproxy-0.1.9-pv2yqh11.mjs +0 -14
  805. package/dist/chunks/usage-0.1.9-neje6dea.mjs +0 -1
  806. package/dist/chunks/util-0.1.9-kdhggd68.mjs +0 -1
  807. package/dist/chunks/utils-0.1.9-bqw30f8b.mjs +0 -1
  808. package/dist/chunks/vim-0.1.9-w4d1qz6f.mjs +0 -1
  809. package/dist/chunks/watcher-0.1.9-ty2r0yxd.mjs +0 -1
  810. package/dist/chunks/wiki-0.1.9-ah646x2k.mjs +0 -132
  811. package/dist/chunks/worktree-0.1.9-d3fbxjwd.mjs +0 -1
  812. package/dist/chunks/worktreeModeEnabled-0.1.9-qbn6b5fs.mjs +0 -1
  813. package/dist/chunks/wrapper-0.1.9-eh46qafm.mjs +0 -7
  814. /package/dist/chunks/{cli-0.1.9-zrdz7st3.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
@@ -1,833 +0,0 @@
1
- import{I as r,J as O0}from"./cli-0.1.9-zrdz7st3.mjs";import{L as _7,M as S5,N as b5}from"./cli-0.1.9-sqja68fn.mjs";import{oa as D5,qa as k5,ra as A5,xa as O5,ya as C5}from"./cli-0.1.9-y8n4w5nn.mjs";import{Fa as YZ,za as x5}from"./cli-0.1.9-fwqwgjwb.mjs";import{Ya as L7}from"./cli-0.1.9-a1gtww1d.mjs";import{$a as u9}from"./cli-0.1.9-5vgk7wf7.mjs";import{lb as M5,mb as iX}from"./cli-0.1.9-ewq9k9mr.mjs";import{Ab as JZ,Cb as Xq,yb as F5,zb as V9}from"./cli-0.1.9-3y36913h.mjs";import{Xb as U7,Zb as IW}from"./cli-0.1.9-h8xne7z8.mjs";import{kc as r5,lc as LW}from"./cli-0.1.9-5zhhyq4q.mjs";import{Jc as ZZ,Kc as R5}from"./cli-0.1.9-a95nqhbd.mjs";import{Ce as K5,He as dX}from"./cli-0.1.9-scpj6tps.mjs";import{Fg as t3,Hg as uX}from"./cli-0.1.9-38zb09vp.mjs";import{Mg as GQ,uh as W4}from"./cli-0.1.9-e96x59hw.mjs";import{$i as M9,$k as mq,$o as qX,$p as Z4,$q as e5,$y as _X,AF as tq,AJ as z5,Aj as wQ,Ap as e2,Av as D3,BF as bX,BH as n3,Bj as IQ,Bn as s2,Bp as q3,Br as P1,Cn as tY,Cp as JX,Cq as Y3,Cv as GX,DI as o3,DJ as P6,Dj as F4,Dk as _1,Dp as Z3,Dr as zX,Du as FJ,EO as sX,Ej as jQ,Ek as dY,El as LQ,Eu as MJ,Ez as v3,FG as s3,Fl as $4,Fp as QX,Fq as HX,Fu as _3,Fz as yX,GG as r3,GJ as c9,GK as G5,Gk as p2,Gl as XQ,Gu as P3,HG as hX,HK as pX,Hu as N3,Ij as M4,Il as o8,Ip as WQ,Iu as T3,JC as p3,Ji as G7,Jl as dq,Jp as e8,Ju as UJ,KI as e3,KJ as q7,Kk as pY,Kq as X3,LC as CX,LI as qZ,Lm as E9,Lq as W3,Lz as u3,MH as vX,Ml as i2,Mm as sY,Mu as LJ,NI as q5,Nu as v0,Nz as yJ,OK as z0,Oq as sQ,Oz as wJ,PI as Z5,PK as o0,Pl as pq,Pu as U0,Pv as k3,QI as cX,Qq as rQ,Qu as i1,Rk as l2,Rq as nQ,Rx as VX,Sk as lY,Sl as a2,So as F9,Sq as Gq,Sx as FX,Ti as R7,Tj as d2,To as oY,Tq as o5,UM as aX,Uj as gY,Uo as r2,Uu as F7,Vi as V7,Vl as aY,Vq as Fq,Vr as N1,Wp as HQ,Wq as lq,Wr as T1,XK as QZ,Xp as q4,Xq as H3,Xr as G3,YB as jX,Yi as TW,Yq as iq,Yr as R3,Yu as yW,Yv as RX,ZB as DX,ZG as eq,Zo as eY,Zq as B1,Zr as V3,Zy as y1,_K as pQ,_l as dQ,_o as n2,_p as zQ,_r as $X,_y as x3,ai as v2,aj as BZ,ap as t2,bF as i3,bK as $5,bi as hY,bj as c2,bl as gq,bp as o2,br as z3,bz as sq,cF as SX,cL as U5,cj as m2,cp as ZX,cz as PX,dI as x9,dK as mX,dN as IJ,dr as $3,dz as O3,eI as e0,ej as uY,er as B3,ez as C3,fI as Lq,fN as jJ,fm as r4,fr as aq,fz as NX,gI as _q,gr as K3,gv as s5,gz as S3,hI as eQ,hL as lQ,hi as u2,hv as UW,hz as b3,iI as O9,iN as J8,ii as vY,iv as g5,iz as E3,jC as kX,jG as oq,jI as q6,jJ as J5,jr as Mq,jz as f3,kC as AX,kI as Pq,kv as RW,lA as c3,lI as K1,ll as iY,lz as h3,mA as wX,mI as Z6,mJ as Q5,mq as kQ,nI as Uq,nq as AQ,oG as EX,oJ as Y5,oq as Kq,pG as a3,pM as _5,pn as jq,pq as xQ,pv as n0,qG as fX,qJ as X5,qM as P5,qn as Dq,qv as Qq,qz as TX,rM as N5,rO as w5,rj as g2,rn as kq,rq as S4,ru as U3,rv as v9,sO as I5,sj as cY,sn as Aq,sv as y3,tB as rq,tI as Rq,tM as T5,tO as j5,tn as y6,tu as L3,tv as _J,uI as Vq,uJ as _6,un as w6,uu as KX,uv as a1,uw as M7,vB as IX,vJ as W5,vj as cq,vn as ZY,vv as PJ,vw as wW,wI as n4,wM as y5,wj as mY,wv as w3,xK as B5,xj as TQ,xq as YX,xv as I3,yL as L5,yj as V4,yq as XX,yv as NJ,zJ as H5,zK as gX,zj as yQ,zv as j3}from"./cli-0.1.9-04ez73f7.mjs";import{QO as A3,TO as LX}from"./cli-0.1.9-9vab0er5.mjs";import{lP as MX,mP as UX}from"./cli-0.1.9-fcf313e7.mjs";import{CP as l3,DP as KQ,pP as VZ,qP as VW,rP as i5,sP as FW,tP as a5,uP as MW,xP as A1,yP as m5,zP as BQ}from"./cli-0.1.9-ak0b9xfs.mjs";import{BQ as nq,CQ as xX}from"./cli-0.1.9-p5scdysw.mjs";import{$Q as m3,aR as g3,cR as d3,dR as OX}from"./cli-0.1.9-pgwsmwz1.mjs";import{AR as nY,zR as rY}from"./cli-0.1.9-gsc0t4gy.mjs";import{KR as V5,LR as lX}from"./cli-0.1.9-gasw7sr9.mjs";import{AT as fY,FS as RZ,JT as K7,MT as NW,UU as u5,nU as l5,pU as j1,tT as f2,tU as v5,yT as EY,zT as h2}from"./cli-0.1.9-nw3rpxdd.mjs";import{$U as bY,WU as b2,ZU as E2}from"./cli-0.1.9-263y2rkc.mjs";import{IW as J3,MW as Q3,SW as WX}from"./cli-0.1.9-1kaj4v6k.mjs";import{zX as Z0}from"./cli-0.1.9-2v4s8yf9.mjs";import{RX as F3,UX as M3,YX as BX}from"./cli-0.1.9-mme2x7fq.mjs";import{jY as RJ,lY as e7,mY as VJ,nY as q8,xY as TJ,yY as Z8}from"./cli-0.1.9-3wmbdmrp.mjs";import{NZ as GJ,OZ as h0}from"./cli-0.1.9-n54k4qt3.mjs";import{i0 as uq}from"./cli-0.1.9-1c3qpbdh.mjs";import{$3 as O2,D4 as vq,F2 as B6,F4 as Tq,G2 as f9,M2 as K6,P1 as N2,Q0 as M0,R0 as $7,R2 as c0,T2 as z6,U1 as fq,V0 as l0,W2 as w2,X0 as P2,X2 as Nq,Y0 as kY,Y2 as I2,Z2 as xY,_3 as x2,d3 as j2,f2 as hq,g2 as T2,h2 as AY,i3 as OY,k4 as C2,l3 as D2,q1 as KJ,q4 as S2,r4 as M6,s1 as o7,t4 as U6,v3 as CY,v4 as V1,w3 as k2,x1 as B7,x3 as A2,y1 as PW,y2,y3 as SY}from"./cli-0.1.9-4sqfjw8t.mjs";import{N4 as $J,O4 as n7,W4 as BJ,Z4 as t7}from"./cli-0.1.9-x257hapj.mjs";import{$4 as k,a5 as DY}from"./cli-0.1.9-f8ga1n8r.mjs";import{G5 as YJ,L5 as s7}from"./cli-0.1.9-8egwvs85.mjs";import{M5 as aJ,b6 as i8}from"./cli-0.1.9-b6zp931m.mjs";import{$$ as S,$aa as z7,B$ as wY,D9 as B2,F$ as EQ,H7 as mQ,H9 as NY,Iba as qY,J$ as g4,J7 as s4,L6 as H0,M$ as V2,N$ as IY,N6 as QJ,N7 as X1,O$ as F2,O9 as K2,P9 as G2,Q8 as z2,Q9 as TY,R8 as Eq,S7 as W2,S8 as _Y,Saa as I1,T$ as jY,Waa as f,X$ as z1,Z$ as i,Zaa as E,_aa as L2,a7 as p,aaa as M2,aba as HJ,b8 as H2,baa as q9,caa as m0,cba as X6,dba as W6,eaa as U2,eba as _2,f7 as C9,faa as G1,haa as H7,i8 as Yq,jba as zJ,k7 as cQ,k8 as Y1,l7 as a4,laa as q0,m8 as rJ,n8 as XJ,o_ as R2,qba as J0,r8 as r7,s9 as w1,t$ as b9,v6 as A6,w6 as VY,wca as w0,x9 as PY,xba as wq,yba as Iq,z7 as i4,z_ as yY,zca as d1}from"./cli-0.1.9-86kws2c7.mjs";import{Tca as bQ,pda as s,rda as Wq,sda as k9,tda as PQ}from"./cli-0.1.9-0dtdhejj.mjs";import{wda as h9,xda as MY}from"./cli-0.1.9-mj88t3jf.mjs";import{iea as e9,jea as rZ}from"./cli-0.1.9-7ftnjyps.mjs";import{kea as W1,nea as YQ}from"./cli-0.1.9-45ggwszg.mjs";import{Cea as t6,Dea as X7,Jea as $Z,vea as Y7,xea as U1}from"./cli-0.1.9-wpvrabrk.mjs";import{Zea as MQ,hfa as UQ,mfa as L,nfa as $2,rfa as WJ}from"./cli-0.1.9-mkfnnvz7.mjs";import{Afa as Q0,zfa as F}from"./cli-0.1.9-5ryrgdzg.mjs";import{$fa as $1,Aga as i0,Dfa as w9,Ffa as ZJ,Tfa as JJ,Vfa as L1,Yfa as e6,Zfa as m,_fa as Sq,dga as R9,fga as j0,gga as q2,iga as Z2,jga as A9,kga as J2,nga as Q2,rga as UY,tga as VQ,vga as X2,xga as N,yga as FQ}from"./cli-0.1.9-vdw09f8y.mjs";import{Dga as Cq,Ega as a,Gga as S0,Hga as aQ,Lga as W7,Mga as o6,Oga as I9}from"./cli-0.1.9-v7ajk1nz.mjs";import{Rga as bq,Tga as Y2,Uga as LY}from"./cli-0.1.9-sv3awdsv.mjs";import{Cia as C6,Cka as m6,Eia as S6,Fla as a6,Hja as V6,Ija as zZ,Jja as R1,Kja as b6,Lja as E6,Mja as f6,Qla as s6,Sla as r6,Tja as eZ,Vja as qJ,Vka as g6,Xka as d6,Zka as p6,Zla as n6,bla as l6,dja as J7,ila as Q7,jka as a0,kla as i6,lka as h6,nka as v6,pia as HZ,pma as s0,tia as FY,vka as u6,wia as x6,xka as c6,zia as O6,zka as Oq}from"./cli-0.1.9-7fp0smtp.mjs";import{Oma as oZ,Pma as a7}from"./cli-0.1.9-1ghbcafn.mjs";import{hna as d,ina as Z9,jna as u0,kna as o4,lna as e4,mna as R}from"./cli-0.1.9-kbrf27z8.mjs";var j9=u0((Y8)=>{class s1 extends Error{constructor(q,Z,J){super(J);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=Z,this.exitCode=q,this.nestedError=void 0}}class kJ extends s1{constructor(q){super(1,"commander.invalidArgument",q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}Y8.CommanderError=s1;Y8.InvalidArgumentError=kJ});var Z1=u0(($8)=>{var{InvalidArgumentError:H8}=j9();class AJ{constructor(q,Z){switch(this.description=Z||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,q[0]){case"<":this.required=!0,this._name=q.slice(1,-1);break;case"[":this.required=!1,this._name=q.slice(1,-1);break;default:this.required=!0,this._name=q;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(q,Z){if(Z===this.defaultValue||!Array.isArray(Z))return[q];return Z.concat(q)}default(q,Z){return this.defaultValue=q,this.defaultValueDescription=Z,this}argParser(q){return this.parseArg=q,this}choices(q){return this.argChoices=q.slice(),this.parseArg=(Z,J)=>{if(!this.argChoices.includes(Z))throw new H8(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(Z,J);return Z},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function z8(q){let Z=q.name()+(q.variadic===!0?"...":"");return q.required?"<"+Z+">":"["+Z+"]"}$8.Argument=AJ;$8.humanReadableArgName=z8});var r1=u0((R8)=>{var{humanReadableArgName:G8}=Z1();class xJ{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(q){let Z=q.commands.filter((Q)=>!Q._hidden),J=q._getHelpCommand();if(J&&!J._hidden)Z.push(J);if(this.sortSubcommands)Z.sort((Q,Y)=>{return Q.name().localeCompare(Y.name())});return Z}compareOptions(q,Z){let J=(Q)=>{return Q.short?Q.short.replace(/^-/,""):Q.long.replace(/^--/,"")};return J(q).localeCompare(J(Z))}visibleOptions(q){let Z=q.options.filter((Q)=>!Q.hidden),J=q._getHelpOption();if(J&&!J.hidden){let Q=J.short&&q._findOption(J.short),Y=J.long&&q._findOption(J.long);if(!Q&&!Y)Z.push(J);else if(J.long&&!Y)Z.push(q.createOption(J.long,J.description));else if(J.short&&!Q)Z.push(q.createOption(J.short,J.description))}if(this.sortOptions)Z.sort(this.compareOptions);return Z}visibleGlobalOptions(q){if(!this.showGlobalOptions)return[];let Z=[];for(let J=q.parent;J;J=J.parent){let Q=J.options.filter((Y)=>!Y.hidden);Z.push(...Q)}if(this.sortOptions)Z.sort(this.compareOptions);return Z}visibleArguments(q){if(q._argsDescription)q.registeredArguments.forEach((Z)=>{Z.description=Z.description||q._argsDescription[Z.name()]||""});if(q.registeredArguments.find((Z)=>Z.description))return q.registeredArguments;return[]}subcommandTerm(q){let Z=q.registeredArguments.map((J)=>G8(J)).join(" ");return q._name+(q._aliases[0]?"|"+q._aliases[0]:"")+(q.options.length?" [options]":"")+(Z?" "+Z:"")}optionTerm(q){return q.flags}argumentTerm(q){return q.name()}longestSubcommandTermLength(q,Z){return Z.visibleCommands(q).reduce((J,Q)=>{return Math.max(J,Z.subcommandTerm(Q).length)},0)}longestOptionTermLength(q,Z){return Z.visibleOptions(q).reduce((J,Q)=>{return Math.max(J,Z.optionTerm(Q).length)},0)}longestGlobalOptionTermLength(q,Z){return Z.visibleGlobalOptions(q).reduce((J,Q)=>{return Math.max(J,Z.optionTerm(Q).length)},0)}longestArgumentTermLength(q,Z){return Z.visibleArguments(q).reduce((J,Q)=>{return Math.max(J,Z.argumentTerm(Q).length)},0)}commandUsage(q){let Z=q._name;if(q._aliases[0])Z=Z+"|"+q._aliases[0];let J="";for(let Q=q.parent;Q;Q=Q.parent)J=Q.name()+" "+J;return J+Z+" "+q.usage()}commandDescription(q){return q.description()}subcommandDescription(q){return q.summary()||q.description()}optionDescription(q){let Z=[];if(q.argChoices)Z.push(`choices: ${q.argChoices.map((J)=>JSON.stringify(J)).join(", ")}`);if(q.defaultValue!==void 0){if(q.required||q.optional||q.isBoolean()&&typeof q.defaultValue==="boolean")Z.push(`default: ${q.defaultValueDescription||JSON.stringify(q.defaultValue)}`)}if(q.presetArg!==void 0&&q.optional)Z.push(`preset: ${JSON.stringify(q.presetArg)}`);if(q.envVar!==void 0)Z.push(`env: ${q.envVar}`);if(Z.length>0)return`${q.description} (${Z.join(", ")})`;return q.description}argumentDescription(q){let Z=[];if(q.argChoices)Z.push(`choices: ${q.argChoices.map((J)=>JSON.stringify(J)).join(", ")}`);if(q.defaultValue!==void 0)Z.push(`default: ${q.defaultValueDescription||JSON.stringify(q.defaultValue)}`);if(Z.length>0){let J=`(${Z.join(", ")})`;if(q.description)return`${q.description} ${J}`;return J}return q.description}formatHelp(q,Z){let J=Z.padWidth(q,Z),Q=Z.helpWidth||80,Y=2,H=2;function B(U,j){if(j){let C=`${U.padEnd(J+2)}${j}`;return Z.wrap(C,Q-2,J+2)}return U}function z(U){return U.join(`
2
- `).replace(/^/gm," ".repeat(2))}let K=[`Usage: ${Z.commandUsage(q)}`,""],W=Z.commandDescription(q);if(W.length>0)K=K.concat([Z.wrap(W,Q,0),""]);let X=Z.visibleArguments(q).map((U)=>{return B(Z.argumentTerm(U),Z.argumentDescription(U))});if(X.length>0)K=K.concat(["Arguments:",z(X),""]);let G=Z.visibleOptions(q).map((U)=>{return B(Z.optionTerm(U),Z.optionDescription(U))});if(G.length>0)K=K.concat(["Options:",z(G),""]);if(this.showGlobalOptions){let U=Z.visibleGlobalOptions(q).map((j)=>{return B(Z.optionTerm(j),Z.optionDescription(j))});if(U.length>0)K=K.concat(["Global Options:",z(U),""])}let M=Z.visibleCommands(q).map((U)=>{return B(Z.subcommandTerm(U),Z.subcommandDescription(U))});if(M.length>0)K=K.concat(["Commands:",z(M),""]);return K.join(`
3
- `)}padWidth(q,Z){return Math.max(Z.longestOptionTermLength(q,Z),Z.longestGlobalOptionTermLength(q,Z),Z.longestSubcommandTermLength(q,Z),Z.longestArgumentTermLength(q,Z))}wrap(q,Z,J,Q=40){let H=new RegExp(`[\\n][${" \\f\\t\\v   -    \uFEFF"}]+`);if(q.match(H))return q;let B=Z-J;if(B<Q)return q;let z=q.slice(0,J),K=q.slice(J).replace(`\r
4
- `,`
5
- `),W=" ".repeat(J),G=`\\s${"​"}`,M=new RegExp(`
6
- |.{1,${B-1}}([${G}]|$)|[^${G}]+?([${G}]|$)`,"g"),U=K.match(M)||[];return z+U.map((j,C)=>{if(j===`
7
- `)return"";return(C>0?W:"")+j.trimEnd()}).join(`
8
- `)}}R8.Help=xJ});var n1=u0((L8)=>{var{InvalidArgumentError:F8}=j9();class OJ{constructor(q,Z){this.flags=q,this.description=Z||"",this.required=q.includes("<"),this.optional=q.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(q),this.mandatory=!1;let J=U8(q);if(this.short=J.shortFlag,this.long=J.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(q,Z){return this.defaultValue=q,this.defaultValueDescription=Z,this}preset(q){return this.presetArg=q,this}conflicts(q){return this.conflictsWith=this.conflictsWith.concat(q),this}implies(q){let Z=q;if(typeof q==="string")Z={[q]:!0};return this.implied=Object.assign(this.implied||{},Z),this}env(q){return this.envVar=q,this}argParser(q){return this.parseArg=q,this}makeOptionMandatory(q=!0){return this.mandatory=!!q,this}hideHelp(q=!0){return this.hidden=!!q,this}_concatValue(q,Z){if(Z===this.defaultValue||!Array.isArray(Z))return[q];return Z.concat(q)}choices(q){return this.argChoices=q.slice(),this.parseArg=(Z,J)=>{if(!this.argChoices.includes(Z))throw new F8(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(Z,J);return Z},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return M8(this.name().replace(/^no-/,""))}is(q){return this.short===q||this.long===q}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class CJ{constructor(q){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,q.forEach((Z)=>{if(Z.negate)this.negativeOptions.set(Z.attributeName(),Z);else this.positiveOptions.set(Z.attributeName(),Z)}),this.negativeOptions.forEach((Z,J)=>{if(this.positiveOptions.has(J))this.dualOptions.add(J)})}valueFromOption(q,Z){let J=Z.attributeName();if(!this.dualOptions.has(J))return!0;let Q=this.negativeOptions.get(J).presetArg,Y=Q!==void 0?Q:!1;return Z.negate===(Y===q)}}function M8(q){return q.split("-").reduce((Z,J)=>{return Z+J[0].toUpperCase()+J.slice(1)})}function U8(q){let Z,J,Q=q.split(/[ |,]+/);if(Q.length>1&&!/^[[<]/.test(Q[1]))Z=Q.shift();if(J=Q.shift(),!Z&&/^-[^-]$/.test(J))Z=J,J=void 0;return{shortFlag:Z,longFlag:J}}L8.Option=OJ;L8.DualOptions=CJ});var SJ=u0((y8)=>{function N8(q,Z){if(Math.abs(q.length-Z.length)>3)return Math.max(q.length,Z.length);let J=[];for(let Q=0;Q<=q.length;Q++)J[Q]=[Q];for(let Q=0;Q<=Z.length;Q++)J[0][Q]=Q;for(let Q=1;Q<=Z.length;Q++)for(let Y=1;Y<=q.length;Y++){let H=1;if(q[Y-1]===Z[Q-1])H=0;else H=1;if(J[Y][Q]=Math.min(J[Y-1][Q]+1,J[Y][Q-1]+1,J[Y-1][Q-1]+H),Y>1&&Q>1&&q[Y-1]===Z[Q-2]&&q[Y-2]===Z[Q-1])J[Y][Q]=Math.min(J[Y][Q],J[Y-2][Q-2]+1)}return J[q.length][Z.length]}function T8(q,Z){if(!Z||Z.length===0)return"";Z=Array.from(new Set(Z));let J=q.startsWith("--");if(J)q=q.slice(2),Z=Z.map((B)=>B.slice(2));let Q=[],Y=3,H=0.4;if(Z.forEach((B)=>{if(B.length<=1)return;let z=N8(q,B),K=Math.max(q.length,B.length);if((K-z)/K>H){if(z<Y)Y=z,Q=[B];else if(z===Y)Q.push(B)}}),Q.sort((B,z)=>B.localeCompare(z)),J)Q=Q.map((B)=>`--${B}`);if(Q.length>1)return`
9
- (Did you mean one of ${Q.join(", ")}?)`;if(Q.length===1)return`
10
- (Did you mean ${Q[0]}?)`;return""}y8.suggestSimilar=T8});var hJ=u0((x8)=>{var I8=R("node:events").EventEmitter,t1=R("node:child_process"),C0=R("node:path"),o1=R("node:fs"),u=R("node:process"),{Argument:j8,humanReadableArgName:D8}=Z1(),{CommanderError:e1}=j9(),{Help:k8}=r1(),{Option:bJ,DualOptions:A8}=n1(),{suggestSimilar:EJ}=SJ();class qq extends I8{constructor(q){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=q||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(Z)=>u.stdout.write(Z),writeErr:(Z)=>u.stderr.write(Z),getOutHelpWidth:()=>u.stdout.isTTY?u.stdout.columns:void 0,getErrHelpWidth:()=>u.stderr.isTTY?u.stderr.columns:void 0,outputError:(Z,J)=>J(Z)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(q){return this._outputConfiguration=q._outputConfiguration,this._helpOption=q._helpOption,this._helpCommand=q._helpCommand,this._helpConfiguration=q._helpConfiguration,this._exitCallback=q._exitCallback,this._storeOptionsAsProperties=q._storeOptionsAsProperties,this._combineFlagAndOptionalValue=q._combineFlagAndOptionalValue,this._allowExcessArguments=q._allowExcessArguments,this._enablePositionalOptions=q._enablePositionalOptions,this._showHelpAfterError=q._showHelpAfterError,this._showSuggestionAfterError=q._showSuggestionAfterError,this}_getCommandAndAncestors(){let q=[];for(let Z=this;Z;Z=Z.parent)q.push(Z);return q}command(q,Z,J){let Q=Z,Y=J;if(typeof Q==="object"&&Q!==null)Y=Q,Q=null;Y=Y||{};let[,H,B]=q.match(/([^ ]+) *(.*)/),z=this.createCommand(H);if(Q)z.description(Q),z._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=z._name;if(z._hidden=!!(Y.noHelp||Y.hidden),z._executableFile=Y.executableFile||null,B)z.arguments(B);if(this._registerCommand(z),z.parent=this,z.copyInheritedSettings(this),Q)return this;return z}createCommand(q){return new qq(q)}createHelp(){return Object.assign(new k8,this.configureHelp())}configureHelp(q){if(q===void 0)return this._helpConfiguration;return this._helpConfiguration=q,this}configureOutput(q){if(q===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,q),this}showHelpAfterError(q=!0){if(typeof q!=="string")q=!!q;return this._showHelpAfterError=q,this}showSuggestionAfterError(q=!0){return this._showSuggestionAfterError=!!q,this}addCommand(q,Z){if(!q._name)throw Error(`Command passed to .addCommand() must have a name
11
- - specify the name in Command constructor or using .name()`);if(Z=Z||{},Z.isDefault)this._defaultCommandName=q._name;if(Z.noHelp||Z.hidden)q._hidden=!0;return this._registerCommand(q),q.parent=this,q._checkForBrokenPassThrough(),this}createArgument(q,Z){return new j8(q,Z)}argument(q,Z,J,Q){let Y=this.createArgument(q,Z);if(typeof J==="function")Y.default(Q).argParser(J);else Y.default(J);return this.addArgument(Y),this}arguments(q){return q.trim().split(/ +/).forEach((Z)=>{this.argument(Z)}),this}addArgument(q){let Z=this.registeredArguments.slice(-1)[0];if(Z&&Z.variadic)throw Error(`only the last argument can be variadic '${Z.name()}'`);if(q.required&&q.defaultValue!==void 0&&q.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${q.name()}'`);return this.registeredArguments.push(q),this}helpCommand(q,Z){if(typeof q==="boolean")return this._addImplicitHelpCommand=q,this;q=q??"help [command]";let[,J,Q]=q.match(/([^ ]+) *(.*)/),Y=Z??"display help for command",H=this.createCommand(J);if(H.helpOption(!1),Q)H.arguments(Q);if(Y)H.description(Y);return this._addImplicitHelpCommand=!0,this._helpCommand=H,this}addHelpCommand(q,Z){if(typeof q!=="object")return this.helpCommand(q,Z),this;return this._addImplicitHelpCommand=!0,this._helpCommand=q,this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(q,Z){let J=["preSubcommand","preAction","postAction"];if(!J.includes(q))throw Error(`Unexpected value for event passed to hook : '${q}'.
12
- Expecting one of '${J.join("', '")}'`);if(this._lifeCycleHooks[q])this._lifeCycleHooks[q].push(Z);else this._lifeCycleHooks[q]=[Z];return this}exitOverride(q){if(q)this._exitCallback=q;else this._exitCallback=(Z)=>{if(Z.code!=="commander.executeSubCommandAsync")throw Z};return this}_exit(q,Z,J){if(this._exitCallback)this._exitCallback(new e1(q,Z,J));u.exit(q)}action(q){let Z=(J)=>{let Q=this.registeredArguments.length,Y=J.slice(0,Q);if(this._storeOptionsAsProperties)Y[Q]=this;else Y[Q]=this.opts();return Y.push(this),q.apply(this,Y)};return this._actionHandler=Z,this}createOption(q,Z){return new bJ(q,Z)}_callParseArg(q,Z,J,Q){try{return q.parseArg(Z,J)}catch(Y){if(Y.code==="commander.invalidArgument"){let H=`${Q} ${Y.message}`;this.error(H,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(q){let Z=q.short&&this._findOption(q.short)||q.long&&this._findOption(q.long);if(Z){let J=q.long&&this._findOption(q.long)?q.long:q.short;throw Error(`Cannot add option '${q.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${J}'
13
- - already used by option '${Z.flags}'`)}this.options.push(q)}_registerCommand(q){let Z=(Q)=>{return[Q.name()].concat(Q.aliases())},J=Z(q).find((Q)=>this._findCommand(Q));if(J){let Q=Z(this._findCommand(J)).join("|"),Y=Z(q).join("|");throw Error(`cannot add command '${Y}' as already have command '${Q}'`)}this.commands.push(q)}addOption(q){this._registerOption(q);let Z=q.name(),J=q.attributeName();if(q.negate){let Y=q.long.replace(/^--no-/,"--");if(!this._findOption(Y))this.setOptionValueWithSource(J,q.defaultValue===void 0?!0:q.defaultValue,"default")}else if(q.defaultValue!==void 0)this.setOptionValueWithSource(J,q.defaultValue,"default");let Q=(Y,H,B)=>{if(Y==null&&q.presetArg!==void 0)Y=q.presetArg;let z=this.getOptionValue(J);if(Y!==null&&q.parseArg)Y=this._callParseArg(q,Y,z,H);else if(Y!==null&&q.variadic)Y=q._concatValue(Y,z);if(Y==null)if(q.negate)Y=!1;else if(q.isBoolean()||q.optional)Y=!0;else Y="";this.setOptionValueWithSource(J,Y,B)};if(this.on("option:"+Z,(Y)=>{let H=`error: option '${q.flags}' argument '${Y}' is invalid.`;Q(Y,H,"cli")}),q.envVar)this.on("optionEnv:"+Z,(Y)=>{let H=`error: option '${q.flags}' value '${Y}' from env '${q.envVar}' is invalid.`;Q(Y,H,"env")});return this}_optionEx(q,Z,J,Q,Y){if(typeof Z==="object"&&Z instanceof bJ)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let H=this.createOption(Z,J);if(H.makeOptionMandatory(!!q.mandatory),typeof Q==="function")H.default(Y).argParser(Q);else if(Q instanceof RegExp){let B=Q;Q=(z,K)=>{let W=B.exec(z);return W?W[0]:K},H.default(Y).argParser(Q)}else H.default(Q);return this.addOption(H)}option(q,Z,J,Q){return this._optionEx({},q,Z,J,Q)}requiredOption(q,Z,J,Q){return this._optionEx({mandatory:!0},q,Z,J,Q)}combineFlagAndOptionalValue(q=!0){return this._combineFlagAndOptionalValue=!!q,this}allowUnknownOption(q=!0){return this._allowUnknownOption=!!q,this}allowExcessArguments(q=!0){return this._allowExcessArguments=!!q,this}enablePositionalOptions(q=!0){return this._enablePositionalOptions=!!q,this}passThroughOptions(q=!0){return this._passThroughOptions=!!q,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(q=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!q,this}getOptionValue(q){if(this._storeOptionsAsProperties)return this[q];return this._optionValues[q]}setOptionValue(q,Z){return this.setOptionValueWithSource(q,Z,void 0)}setOptionValueWithSource(q,Z,J){if(this._storeOptionsAsProperties)this[q]=Z;else this._optionValues[q]=Z;return this._optionValueSources[q]=J,this}getOptionValueSource(q){return this._optionValueSources[q]}getOptionValueSourceWithGlobals(q){let Z;return this._getCommandAndAncestors().forEach((J)=>{if(J.getOptionValueSource(q)!==void 0)Z=J.getOptionValueSource(q)}),Z}_prepareUserArgs(q,Z){if(q!==void 0&&!Array.isArray(q))throw Error("first parameter to parse must be array or undefined");if(Z=Z||{},q===void 0&&Z.from===void 0){if(u.versions?.electron)Z.from="electron";let Q=u.execArgv??[];if(Q.includes("-e")||Q.includes("--eval")||Q.includes("-p")||Q.includes("--print"))Z.from="eval"}if(q===void 0)q=u.argv;this.rawArgs=q.slice();let J;switch(Z.from){case void 0:case"node":this._scriptPath=q[1],J=q.slice(2);break;case"electron":if(u.defaultApp)this._scriptPath=q[1],J=q.slice(2);else J=q.slice(1);break;case"user":J=q.slice(0);break;case"eval":J=q.slice(1);break;default:throw Error(`unexpected parse option { from: '${Z.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",J}parse(q,Z){let J=this._prepareUserArgs(q,Z);return this._parseCommand([],J),this}async parseAsync(q,Z){let J=this._prepareUserArgs(q,Z);return await this._parseCommand([],J),this}_executeSubCommand(q,Z){Z=Z.slice();let J=!1,Q=[".js",".ts",".tsx",".mjs",".cjs"];function Y(W,X){let G=C0.resolve(W,X);if(o1.existsSync(G))return G;if(Q.includes(C0.extname(X)))return;let M=Q.find((U)=>o1.existsSync(`${G}${U}`));if(M)return`${G}${M}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let H=q._executableFile||`${this._name}-${q._name}`,B=this._executableDir||"";if(this._scriptPath){let W;try{W=o1.realpathSync(this._scriptPath)}catch(X){W=this._scriptPath}B=C0.resolve(C0.dirname(W),B)}if(B){let W=Y(B,H);if(!W&&!q._executableFile&&this._scriptPath){let X=C0.basename(this._scriptPath,C0.extname(this._scriptPath));if(X!==this._name)W=Y(B,`${X}-${q._name}`)}H=W||H}J=Q.includes(C0.extname(H));let z;if(u.platform!=="win32")if(J)Z.unshift(H),Z=fJ(u.execArgv).concat(Z),z=t1.spawn(u.argv[0],Z,{stdio:"inherit"});else z=t1.spawn(H,Z,{stdio:"inherit"});else Z.unshift(H),Z=fJ(u.execArgv).concat(Z),z=t1.spawn(u.execPath,Z,{stdio:"inherit"});if(!z.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((X)=>{u.on(X,()=>{if(z.killed===!1&&z.exitCode===null)z.kill(X)})});let K=this._exitCallback;z.on("close",(W)=>{if(W=W??1,!K)u.exit(W);else K(new e1(W,"commander.executeSubCommandAsync","(close)"))}),z.on("error",(W)=>{if(W.code==="ENOENT"){let X=B?`searched for local subcommand relative to directory '${B}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",G=`'${H}' does not exist
14
- - if '${q._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
- - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${X}`;throw Error(G)}else if(W.code==="EACCES")throw Error(`'${H}' not executable`);if(!K)u.exit(1);else{let X=new e1(1,"commander.executeSubCommandAsync","(error)");X.nestedError=W,K(X)}}),this.runningCommand=z}_dispatchSubcommand(q,Z,J){let Q=this._findCommand(q);if(!Q)this.help({error:!0});let Y;return Y=this._chainOrCallSubCommandHook(Y,Q,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(Q._executableHandler)this._executeSubCommand(Q,Z.concat(J));else return Q._parseCommand(Z,J)}),Y}_dispatchHelpCommand(q){if(!q)this.help();let Z=this._findCommand(q);if(Z&&!Z._executableHandler)Z.help();return this._dispatchSubcommand(q,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((q,Z)=>{if(q.required&&this.args[Z]==null)this.missingArgument(q.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let q=(J,Q,Y)=>{let H=Q;if(Q!==null&&J.parseArg){let B=`error: command-argument value '${Q}' is invalid for argument '${J.name()}'.`;H=this._callParseArg(J,Q,Y,B)}return H};this._checkNumberOfArguments();let Z=[];this.registeredArguments.forEach((J,Q)=>{let Y=J.defaultValue;if(J.variadic){if(Q<this.args.length){if(Y=this.args.slice(Q),J.parseArg)Y=Y.reduce((H,B)=>{return q(J,B,H)},J.defaultValue)}else if(Y===void 0)Y=[]}else if(Q<this.args.length){if(Y=this.args[Q],J.parseArg)Y=q(J,Y,J.defaultValue)}Z[Q]=Y}),this.processedArgs=Z}_chainOrCall(q,Z){if(q&&q.then&&typeof q.then==="function")return q.then(()=>Z());return Z()}_chainOrCallHooks(q,Z){let J=q,Q=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[Z]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[Z].forEach((H)=>{Q.push({hookedCommand:Y,callback:H})})}),Z==="postAction")Q.reverse();return Q.forEach((Y)=>{J=this._chainOrCall(J,()=>{return Y.callback(Y.hookedCommand,this)})}),J}_chainOrCallSubCommandHook(q,Z,J){let Q=q;if(this._lifeCycleHooks[J]!==void 0)this._lifeCycleHooks[J].forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y(this,Z)})});return Q}_parseCommand(q,Z){let J=this.parseOptions(Z);if(this._parseOptionsEnv(),this._parseOptionsImplied(),q=q.concat(J.operands),Z=J.unknown,this.args=q.concat(Z),q&&this._findCommand(q[0]))return this._dispatchSubcommand(q[0],q.slice(1),Z);if(this._getHelpCommand()&&q[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(q[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(Z),this._dispatchSubcommand(this._defaultCommandName,q,Z);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(J.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Q=()=>{if(J.unknown.length>0)this.unknownOption(J.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){Q(),this._processArguments();let H;if(H=this._chainOrCallHooks(H,"preAction"),H=this._chainOrCall(H,()=>this._actionHandler(this.processedArgs)),this.parent)H=this._chainOrCall(H,()=>{this.parent.emit(Y,q,Z)});return H=this._chainOrCallHooks(H,"postAction"),H}if(this.parent&&this.parent.listenerCount(Y))Q(),this._processArguments(),this.parent.emit(Y,q,Z);else if(q.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",q,Z);if(this.listenerCount("command:*"))this.emit("command:*",q,Z);else if(this.commands.length)this.unknownCommand();else Q(),this._processArguments()}else if(this.commands.length)Q(),this.help({error:!0});else Q(),this._processArguments()}_findCommand(q){if(!q)return;return this.commands.find((Z)=>Z._name===q||Z._aliases.includes(q))}_findOption(q){return this.options.find((Z)=>Z.is(q))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((q)=>{q.options.forEach((Z)=>{if(Z.mandatory&&q.getOptionValue(Z.attributeName())===void 0)q.missingMandatoryOptionValue(Z)})})}_checkForConflictingLocalOptions(){let q=this.options.filter((J)=>{let Q=J.attributeName();if(this.getOptionValue(Q)===void 0)return!1;return this.getOptionValueSource(Q)!=="default"});q.filter((J)=>J.conflictsWith.length>0).forEach((J)=>{let Q=q.find((Y)=>J.conflictsWith.includes(Y.attributeName()));if(Q)this._conflictingOption(J,Q)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((q)=>{q._checkForConflictingLocalOptions()})}parseOptions(q){let Z=[],J=[],Q=Z,Y=q.slice();function H(z){return z.length>1&&z[0]==="-"}let B=null;while(Y.length){let z=Y.shift();if(z==="--"){if(Q===J)Q.push(z);Q.push(...Y);break}if(B&&!H(z)){this.emit(`option:${B.name()}`,z);continue}if(B=null,H(z)){let K=this._findOption(z);if(K){if(K.required){let W=Y.shift();if(W===void 0)this.optionMissingArgument(K);this.emit(`option:${K.name()}`,W)}else if(K.optional){let W=null;if(Y.length>0&&!H(Y[0]))W=Y.shift();this.emit(`option:${K.name()}`,W)}else this.emit(`option:${K.name()}`);B=K.variadic?K:null;continue}}if(z.length>2&&z[0]==="-"&&z[1]!=="-"){let K=this._findOption(`-${z[1]}`);if(K){if(K.required||K.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${K.name()}`,z.slice(2));else this.emit(`option:${K.name()}`),Y.unshift(`-${z.slice(2)}`);continue}}if(/^--[^=]+=/.test(z)){let K=z.indexOf("="),W=this._findOption(z.slice(0,K));if(W&&(W.required||W.optional)){this.emit(`option:${W.name()}`,z.slice(K+1));continue}}if(H(z))Q=J;if((this._enablePositionalOptions||this._passThroughOptions)&&Z.length===0&&J.length===0){if(this._findCommand(z)){if(Z.push(z),Y.length>0)J.push(...Y);break}else if(this._getHelpCommand()&&z===this._getHelpCommand().name()){if(Z.push(z),Y.length>0)Z.push(...Y);break}else if(this._defaultCommandName){if(J.push(z),Y.length>0)J.push(...Y);break}}if(this._passThroughOptions){if(Q.push(z),Y.length>0)Q.push(...Y);break}Q.push(z)}return{operands:Z,unknown:J}}opts(){if(this._storeOptionsAsProperties){let q={},Z=this.options.length;for(let J=0;J<Z;J++){let Q=this.options[J].attributeName();q[Q]=Q===this._versionOptionName?this._version:this[Q]}return q}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((q,Z)=>Object.assign(q,Z.opts()),{})}error(q,Z){if(this._outputConfiguration.outputError(`${q}
17
- `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
- `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0});let J=Z||{},Q=J.exitCode||1,Y=J.code||"commander.error";this._exit(Q,Y,q)}_parseOptionsEnv(){this.options.forEach((q)=>{if(q.envVar&&q.envVar in u.env){let Z=q.attributeName();if(this.getOptionValue(Z)===void 0||["default","config","env"].includes(this.getOptionValueSource(Z)))if(q.required||q.optional)this.emit(`optionEnv:${q.name()}`,u.env[q.envVar]);else this.emit(`optionEnv:${q.name()}`)}})}_parseOptionsImplied(){let q=new A8(this.options),Z=(J)=>{return this.getOptionValue(J)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(J))};this.options.filter((J)=>J.implied!==void 0&&Z(J.attributeName())&&q.valueFromOption(this.getOptionValue(J.attributeName()),J)).forEach((J)=>{Object.keys(J.implied).filter((Q)=>!Z(Q)).forEach((Q)=>{this.setOptionValueWithSource(Q,J.implied[Q],"implied")})})}missingArgument(q){let Z=`error: missing required argument '${q}'`;this.error(Z,{code:"commander.missingArgument"})}optionMissingArgument(q){let Z=`error: option '${q.flags}' argument missing`;this.error(Z,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(q){let Z=`error: required option '${q.flags}' not specified`;this.error(Z,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(q,Z){let J=(H)=>{let B=H.attributeName(),z=this.getOptionValue(B),K=this.options.find((X)=>X.negate&&B===X.attributeName()),W=this.options.find((X)=>!X.negate&&B===X.attributeName());if(K&&(K.presetArg===void 0&&z===!1||K.presetArg!==void 0&&z===K.presetArg))return K;return W||H},Q=(H)=>{let B=J(H),z=B.attributeName();if(this.getOptionValueSource(z)==="env")return`environment variable '${B.envVar}'`;return`option '${B.flags}'`},Y=`error: ${Q(q)} cannot be used with ${Q(Z)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(q){if(this._allowUnknownOption)return;let Z="";if(q.startsWith("--")&&this._showSuggestionAfterError){let Q=[],Y=this;do{let H=Y.createHelp().visibleOptions(Y).filter((B)=>B.long).map((B)=>B.long);Q=Q.concat(H),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);Z=EJ(q,Q)}let J=`error: unknown option '${q}'${Z}`;this.error(J,{code:"commander.unknownOption"})}_excessArguments(q){if(this._allowExcessArguments)return;let Z=this.registeredArguments.length,J=Z===1?"":"s",Y=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${Z} argument${J} but got ${q.length}.`;this.error(Y,{code:"commander.excessArguments"})}unknownCommand(){let q=this.args[0],Z="";if(this._showSuggestionAfterError){let Q=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(Q.push(Y.name()),Y.alias())Q.push(Y.alias())}),Z=EJ(q,Q)}let J=`error: unknown command '${q}'${Z}`;this.error(J,{code:"commander.unknownCommand"})}version(q,Z,J){if(q===void 0)return this._version;this._version=q,Z=Z||"-V, --version",J=J||"output the version number";let Q=this.createOption(Z,J);return this._versionOptionName=Q.attributeName(),this._registerOption(Q),this.on("option:"+Q.name(),()=>{this._outputConfiguration.writeOut(`${q}
20
- `),this._exit(0,"commander.version",q)}),this}description(q,Z){if(q===void 0&&Z===void 0)return this._description;if(this._description=q,Z)this._argsDescription=Z;return this}summary(q){if(q===void 0)return this._summary;return this._summary=q,this}alias(q){if(q===void 0)return this._aliases[0];let Z=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)Z=this.commands[this.commands.length-1];if(q===Z._name)throw Error("Command alias can't be the same as its name");let J=this.parent?._findCommand(q);if(J){let Q=[J.name()].concat(J.aliases()).join("|");throw Error(`cannot add alias '${q}' to command '${this.name()}' as already have command '${Q}'`)}return Z._aliases.push(q),this}aliases(q){if(q===void 0)return this._aliases;return q.forEach((Z)=>this.alias(Z)),this}usage(q){if(q===void 0){if(this._usage)return this._usage;let Z=this.registeredArguments.map((J)=>{return D8(J)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?Z:[]).join(" ")}return this._usage=q,this}name(q){if(q===void 0)return this._name;return this._name=q,this}nameFromFilename(q){return this._name=C0.basename(q,C0.extname(q)),this}executableDir(q){if(q===void 0)return this._executableDir;return this._executableDir=q,this}helpInformation(q){let Z=this.createHelp();if(Z.helpWidth===void 0)Z.helpWidth=q&&q.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return Z.formatHelp(this,Z)}_getHelpContext(q){q=q||{};let Z={error:!!q.error},J;if(Z.error)J=(Q)=>this._outputConfiguration.writeErr(Q);else J=(Q)=>this._outputConfiguration.writeOut(Q);return Z.write=q.write||J,Z.command=this,Z}outputHelp(q){let Z;if(typeof q==="function")Z=q,q=void 0;let J=this._getHelpContext(q);this._getCommandAndAncestors().reverse().forEach((Y)=>Y.emit("beforeAllHelp",J)),this.emit("beforeHelp",J);let Q=this.helpInformation(J);if(Z){if(Q=Z(Q),typeof Q!=="string"&&!Buffer.isBuffer(Q))throw Error("outputHelp callback must return a string or a Buffer")}if(J.write(Q),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",J),this._getCommandAndAncestors().forEach((Y)=>Y.emit("afterAllHelp",J))}helpOption(q,Z){if(typeof q==="boolean"){if(q)this._helpOption=this._helpOption??void 0;else this._helpOption=null;return this}return q=q??"-h, --help",Z=Z??"display help for command",this._helpOption=this.createOption(q,Z),this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(q){return this._helpOption=q,this}help(q){this.outputHelp(q);let Z=u.exitCode||0;if(Z===0&&q&&typeof q!=="function"&&q.error)Z=1;this._exit(Z,"commander.help","(outputHelp)")}addHelpText(q,Z){let J=["beforeAll","before","after","afterAll"];if(!J.includes(q))throw Error(`Unexpected value for position to addHelpText.
21
- Expecting one of '${J.join("', '")}'`);let Q=`${q}Help`;return this.on(Q,(Y)=>{let H;if(typeof Z==="function")H=Z({error:Y.error,command:Y.command});else H=Z;if(H)Y.write(`${H}
22
- `)}),this}_outputHelpIfRequested(q){let Z=this._getHelpOption();if(Z&&q.find((Q)=>Z.is(Q)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function fJ(q){return q.map((Z)=>{if(!Z.startsWith("--inspect"))return Z;let J,Q="127.0.0.1",Y="9229",H;if((H=Z.match(/^(--inspect(-brk)?)$/))!==null)J=H[1];else if((H=Z.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(J=H[1],/^\d+$/.test(H[3]))Y=H[3];else Q=H[3];else if((H=Z.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)J=H[1],Q=H[3],Y=H[4];if(J&&Y!=="0")return`${J}=${Q}:${parseInt(Y)+1}`;return Z})}x8.Command=qq});var mJ=u0((b8)=>{var{Argument:vJ}=Z1(),{Command:Zq}=hJ(),{CommanderError:C8,InvalidArgumentError:uJ}=j9(),{Help:S8}=r1(),{Option:cJ}=n1();b8.program=new Zq;b8.createCommand=(q)=>new Zq(q);b8.createOption=(q,Z)=>new cJ(q,Z);b8.createArgument=(q,Z)=>new vJ(q,Z);b8.Command=Zq;b8.Option=cJ;b8.Argument=vJ;b8.Help=S8;b8.CommanderError=C8;b8.InvalidArgumentError=uJ;b8.InvalidOptionArgumentError=uJ});var dJ=u0((G0,gJ)=>{var I0=mJ();G0=gJ.exports={};G0.program=new I0.Command;G0.Argument=I0.Argument;G0.Command=I0.Command;G0.CommanderError=I0.CommanderError;G0.Help=I0.Help;G0.InvalidArgumentError=I0.InvalidArgumentError;G0.InvalidOptionArgumentError=I0.InvalidArgumentError;G0.Option=I0.Option;G0.createCommand=(q)=>new I0.Command(q);G0.createOption=(q,Z)=>new I0.Option(q,Z);G0.createArgument=(q,Z)=>new I0.Argument(q,Z)});var I6={};o4(I6,{runClaudioStartupMigrations:()=>GY});function zY(q){return HY.filter((Z)=>q[Z])}function $Y(q){let Z=q.profile;switch(Z){case"gemini":{let J=q.env.GEMINI_BASE_URL??jq,Q=q.env.GEMINI_MODEL??Dq;return{provider:"gemini",name:"Google Gemini (legacy)",baseUrl:J,model:Q,apiKey:q.env.GEMINI_API_KEY??q.env.GOOGLE_API_KEY??""}}case"mistral":return{provider:"mistral",name:"Mistral (legacy)",baseUrl:q.env.MISTRAL_BASE_URL??kq,model:q.env.MISTRAL_MODEL??Aq,apiKey:q.env.MISTRAL_API_KEY??""};case"codex":case"openai":case"ollama":case"atomic-chat":case"nvidia-nim":case"minimax":{let J=q.env.OPENAI_BASE_URL?.trim(),Q=q.env.OPENAI_MODEL?.trim();if(!J||!Q)return null;return{provider:"openai",name:BY(Z),baseUrl:J,model:Q,apiKey:q.env.OPENAI_API_KEY??""}}default:return null}}function BY(q){switch(q){case"codex":return"Codex (legacy)";case"openai":return"OpenAI (legacy)";case"ollama":return"Ollama (legacy)";case"atomic-chat":return"Atomic Chat (legacy)";case"nvidia-nim":return"NVIDIA NIM (legacy)";case"minimax":return"MiniMax (legacy)";case"gemini":return"Google Gemini (legacy)";case"mistral":return"Mistral (legacy)"}}function KY(q){if(q.CLAUDE_CODE_USE_OPENAI){let Z=q.OPENAI_BASE_URL?.trim()??q.OPENAI_API_BASE?.trim(),J=q.OPENAI_MODEL?.trim();if(!Z||!J)return null;return{input:{provider:"openai",name:"OpenAI (env)",baseUrl:Z,model:J,apiKey:q.OPENAI_API_KEY??""}}}if(q.CLAUDE_CODE_USE_GEMINI)return{input:{provider:"gemini",name:"Google Gemini (env)",baseUrl:q.GEMINI_BASE_URL?.trim()??jq,model:q.GEMINI_MODEL?.trim()??Dq,apiKey:q.GEMINI_API_KEY??q.GOOGLE_API_KEY??""}};if(q.CLAUDE_CODE_USE_MISTRAL)return{input:{provider:"mistral",name:"Mistral (env)",baseUrl:q.MISTRAL_BASE_URL?.trim()??kq,model:q.MISTRAL_MODEL?.trim()??Aq,apiKey:q.MISTRAL_API_KEY??""}};if(q.CLAUDE_CODE_USE_GITHUB){let Z=q.GITHUB_TOKEN?.trim()??q.GH_TOKEN?.trim()??"";return{input:{provider:"openai",name:"GitHub Copilot (legacy env)",baseUrl:JY,model:QY,apiKey:"",extras:Z?{githubToken:Z}:void 0}}}if(q.CLAUDE_CODE_USE_BEDROCK){let Z=q.AWS_REGION?.trim()??q.AWS_DEFAULT_REGION?.trim()??YY;return{input:{provider:"bedrock",name:"AWS Bedrock (legacy env)",baseUrl:`https://bedrock-runtime.${Z}.amazonaws.com`,model:yq,extras:{awsRegion:Z}}}}if(q.CLAUDE_CODE_USE_VERTEX){let Z=q.GCLOUD_PROJECT?.trim()??q.GOOGLE_CLOUD_PROJECT?.trim()??q.ANTHROPIC_VERTEX_PROJECT_ID?.trim(),J=q.CLOUD_ML_REGION?.trim()??XY,Q={gcpRegion:J};if(Z)Q.gcpProject=Z;return{input:{provider:"vertex",name:"Google Vertex AI (legacy env)",baseUrl:`https://${J}-aiplatform.googleapis.com`,model:yq,extras:Q}}}if(q.CLAUDE_CODE_USE_FOUNDRY)return{input:{provider:"foundry",name:"Azure AI Foundry (legacy env)",baseUrl:WY,model:yq},warning:"Profile created from CLAUDE_CODE_USE_FOUNDRY but azureResource missing — open /provider to complete"};return null}function GY(q){let Z=q?.processEnv??process.env,J=q?.log??RY,Q={legacyProfileMigrated:!1,envsIgnored:[],notices:[]},Y=y6();if(Y){let B=$Y(Y);if(B&&!wq()){if(Iq(B,{makeActive:!0})){Q.legacyProfileMigrated=!0;let K="migrated legacy .claudio-profile.json to providerProfiles[]";Q.notices.push(K),J(K)}}w6()}let H=zY(Z);if(H.length>0)if(!wq()){let z=KY(Z);if(z){let K=Iq(z.input,{makeActive:!0});if(K){Q.rescueEnvAdoptedAs=K.name;let W=`migrated env-based config to /provider as "${K.name}"`;if(Q.notices.push(W),J(W),z.warning)Q.notices.push(z.warning),J(z.warning)}}}else{Q.envsIgnored=H;let z=`ignoring ${H.join(", ")} — managed by /provider`;Q.notices.push(z),J(z)}return Q}function RY(q){process.stderr.write(`\x1B[33m${q}\x1B[0m
23
- `)}var JY="https://models.github.ai/inference",QY="github:copilot",YY="us-east-1",XY="us-east5",yq="claude-sonnet-4-6",WY="https://YOUR-RESOURCE-NAME.services.ai.azure.com",HY;var j6=e4(()=>{ZY();qY();HY=["CLAUDE_CODE_USE_OPENAI","CLAUDE_CODE_USE_GEMINI","CLAUDE_CODE_USE_MISTRAL","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY"]});Q0();i1();s0();import{appendFileSync as jW}from"fs";c2();WJ();s0();J0();a7();s0();s0();wJ();o7();UJ();NJ();rZ();d1();l0();var sZ=!1;function nZ(){if(sZ)return;if(sZ=!0,M0()!=="firstParty")return;let q=w0()?.transport;if(q==="bedrock"||q==="vertex"||q==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let Z=w0(),J=(Z?.transport==="anthropic"?Z.baseUrl:void 0)||e9().BASE_API_URL;fetch(J,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}J0();i0();q0();function tZ(){if(process.env.NODE_EXTRA_CA_CERTS)return;let q=i7();if(q)process.env.NODE_EXTRA_CA_CERTS=q,N(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${q}`)}function i7(){try{let Z=E()?.env,Q=i("userSettings")?.env;N(`CA certs: Config fallback - globalEnv keys: ${Z?Object.keys(Z).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let Y=Q?.NODE_EXTRA_CA_CERTS||Z?.NODE_EXTRA_CA_CERTS;if(Y)N(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${Y}`);return Y}catch(q){N(`CA certs: Config fallback failed: ${q}`,{level:"error"});return}}ZJ();J0();i0();s7();QJ();e7();I9();R9();i1();n7();J8();t7();Z8();q8();r7();var p1=!1,DJ=oZ(async()=>{let q=Date.now();H0("info","init_started"),L("init_function_start");try{let Z=Date.now();HJ(),H0("info","init_configs_enabled",{duration_ms:Date.now()-Z}),L("init_configs_enabled");let J=Date.now();if(GJ(),tZ(),H0("info","init_safe_env_vars_applied",{duration_ms:Date.now()-J}),L("init_safe_env_vars_applied"),LJ(),L("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-0.1.9-y55fqx1x.mjs"),import("./growthbook-0.1.9-rqhcy76z.mjs")]).then(([H,B])=>{H.initialize1PEventLogging(),B.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),L("init_after_1p_event_logging"),KJ(),L("init_after_oauth_populate"),RJ(),L("init_after_jetbrains_detection"),YJ(),a1())_J();if(MJ())FJ();L("init_after_remote_settings_check"),zJ();let Q=Date.now();N("[init] configureGlobalMTLS starting"),$J(),H0("info","init_mtls_configured",{duration_ms:Date.now()-Q}),N("[init] configureGlobalMTLS complete");let Y=Date.now();if(N("[init] configureGlobalAgents starting"),BJ(),H0("info","init_proxy_configured",{duration_ms:Date.now()-Y}),N("[init] configureGlobalAgents complete"),L("init_network_configured"),nZ(),a(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:B}=await import("./upstreamproxy-0.1.9-pv2yqh11.mjs"),{registerUpstreamProxyEnvFn:z}=await import("./subprocessEnv-0.1.9-2dqzh55d.mjs");z(B),await H()}catch(H){N(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(XJ(),w9(yJ),w9(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-0.1.9-r474ar76.mjs");await H()}),IJ()){let H=Date.now();await jJ(),H0("info","init_scratchpad_created",{duration_ms:Date.now()-H})}H0("info","init_completed",{duration_ms:Date.now()-q}),L("init_function_end")}catch(Z){if(Z instanceof JJ){if(a0()){process.stderr.write(`Configuration error in ${Z.filePath}: ${Z.message}
24
- `),v0(1);return}return import("./InvalidConfigDialog-0.1.9-6mv9wgt8.mjs").then((J)=>J.showInvalidConfigDialog({error:Z}))}else throw Z}});function q1(){if(a1()){if(a0()&&TJ())l1().catch((q)=>{N(`[3P telemetry] Eager telemetry init failed (beta tracing): ${m(q)}`,{level:"error"})});N("[3P telemetry] Waiting for remote managed settings before telemetry init"),PJ().then(async()=>{N("[3P telemetry] Remote managed settings loaded, initializing telemetry"),h0(),await l1()}).catch((q)=>{N(`[3P telemetry] Telemetry init failed (remote settings path): ${m(q)}`,{level:"error"})})}else l1().catch((q)=>{N(`[3P telemetry] Telemetry init failed: ${m(q)}`,{level:"error"})})}async function l1(){if(p1)return;p1=!0;try{await Q8()}catch(q){throw p1=!1,q}}async function Q8(){let{initializeTelemetry:q}=await import("./instrumentation-0.1.9-raz129aj.mjs"),Z=await q();if(Z)eZ(Z,(Q,Y)=>{let H=Z?.createCounter(Q,Y);return{add(B,z={}){let W={...VJ(),...z};H?.add(B,W)}}}),qJ()?.add(1)}NW();Qq();WJ();IY();SY();var pJ=d(dJ(),1),{program:NH,createCommand:TH,createArgument:yH,createOption:wH,CommanderError:IH,InvalidArgumentError:lJ,InvalidOptionArgumentError:jH,Command:iJ,Argument:DH,Option:T,Help:kH}=pJ.default;DY();cY();VY();sY();rZ();mY();c2();import{readFileSync as XZ}from"fs";mX();var Jq=d(Z0(),1);async function D9(q,Z,J,Q){let{App:Y}=await import("./App-0.1.9-7ttp2eny.mjs"),{REPL:H}=await import("./REPL-0.1.9-3h2fc9z7.mjs");await Q(q,Jq.jsxDEV(Y,{...Z,children:Jq.jsxDEV(H,{...J},void 0,!1,void 0,this)},void 0,!1,void 0,this))}$Z();iX();gX();NX();lX();i8();i0();R9();l0();var a8=void 0;function s8(q){try{let Z=new URL(q);return Z.search="",Z.toString().replace(/\/$/,"")}catch{return}}async function sJ(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;if(M0()!=="firstParty")return;try{let q=await aJ.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),Z=new Set;for(let J of q.data.servers)for(let Q of J.server.remotes??[]){let Y=s8(Q.url);if(Y)Z.add(Y)}a8=Z,N(`[mcp-registry] Loaded ${Z.size} official MCP URLs`)}catch(q){N(`Failed to fetch MCP registry: ${m(q)}`,{level:"error"})}}UJ();NJ();JX();CX();$X();oY();_Y();Tq();J0();bY();iY();AY();vX();rJ();y3();LX();vY();A9();Q0();i0();I9();rJ();var r8=1000,J1=new Map;var n8=[/MaxListenersExceededWarning.*AbortSignal/,/MaxListenersExceededWarning.*EventTarget/];function t8(q){let Z=`${q.name}: ${q.message}`;return n8.some((J)=>J.test(Z))}var Q1=null;function nJ(){let q=process.listeners("warning");if(Q1&&q.includes(Q1))return;if(!1)process.removeAllListeners("warning");Q1=(J)=>{try{let Q=`${J.name}: ${J.message.slice(0,50)}`,Y=J1.get(Q)||0;if(J1.has(Q)||J1.size<r8)J1.set(Q,Y+1);let H=t8(J);if(F("tengu_node_warning",{is_internal:H?1:0,occurrence_count:Y+1,classname:J.name}),a(process.env.CLAUDE_DEBUG))N(`${H?"[Internal Warning]":"[Warning]"} ${J.toString()}`,{level:"warn"})}catch{}},process.on("warning",Q1)}xX();uY();$Z();Q0();uX();s0();lQ();import{resolve as S9}from"path";Qq();var r0=d(Z0(),1);async function tJ(q,Z){let{InvalidSettingsDialog:J}=await import("./InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs");return R0(q,(Q)=>r0.jsxDEV(J,{settingsErrors:Z.settingsErrors,onContinue:Q,onExit:Z.onExit},void 0,!1,void 0,this))}async function oJ(q){let{TeleportResumeWrapper:Z}=await import("./TeleportResumeWrapper-0.1.9-vhnyx04e.mjs");return R0(q,(J)=>r0.jsxDEV(Z,{onComplete:J,onCancel:()=>J(null),source:"cliArg"},void 0,!1,void 0,this))}async function eJ(q,Z){let{TeleportRepoMismatchDialog:J}=await import("./TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs");return R0(q,(Q)=>r0.jsxDEV(J,{targetRepo:Z.targetRepo,initialPaths:Z.initialPaths,onSelectPath:Q,onCancel:()=>Q(null)},void 0,!1,void 0,this))}async function qQ(q,Z,J,Q){let[Y,{ResumeConversation:H},{App:B}]=await Promise.all([J,import("./ResumeConversation-0.1.9-k4gv6dx4.mjs"),import("./App-0.1.9-7ttp2eny.mjs")]);await t0(q,r0.jsxDEV(B,{getFpsMetrics:Z.getFpsMetrics,stats:Z.stats,initialState:Z.initialState,children:r0.jsxDEV(n0,{children:r0.jsxDEV(H,{...Q,worktreePaths:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}EY();function ZQ(){}tY();q5();Xq();YQ();q4();e8();o8();Z4();Yq();o0();var JQ=5,QQ=30,J4=`After you finish implementing the change:
25
- 1. **Simplify** — Invoke the \`${zQ}\` tool with \`skill: "simplify"\` to review and clean up your changes.
26
- 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.
27
- 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.
28
- 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.
29
- 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 Q4(q){return`# Batch: Parallel Work Orchestration
30
-
31
- You are orchestrating a large, parallelizable change across this codebase.
32
-
33
- ## User Instruction
34
-
35
- ${q}
36
-
37
- ## Phase 1: Research and Plan (Plan Mode)
38
-
39
- Call the \`${WQ}\` tool now to enter plan mode, then:
40
-
41
- 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.
42
-
43
- 2. **Decompose into independent units.** Break the work into ${JQ}–${QQ} self-contained units. Each unit must:
44
- - Be independently implementable in an isolated git worktree (no shared state with sibling units)
45
- - Be mergeable on its own without depending on another unit's PR landing first
46
- - Be roughly uniform in size (split large units, merge trivial ones)
47
-
48
- Scale the count to the actual work: few files → closer to ${JQ}; hundreds of files → closer to ${QQ}. Prefer per-directory or per-module slicing over arbitrary file lists.
49
-
50
- 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:
51
- - A \`claude-in-chrome\` skill or browser-automation tool (for UI changes: click through the affected flow, screenshot the result)
52
- - A \`tmux\` or CLI-verifier skill (for CLI changes: launch the app interactively, exercise the changed behavior)
53
- - A dev-server + curl pattern (for API changes: start the server, hit the affected endpoints)
54
- - An existing e2e/integration test suite the worker can run
55
-
56
- If you cannot find a concrete e2e path, use the \`${HQ}\` 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.
57
-
58
- 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.
59
-
60
- 4. **Write the plan.** In your plan file, include:
61
- - A summary of what you found during research
62
- - 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
63
- - The e2e test recipe (or "skip e2e because …" if the user chose that)
64
- - The exact worker instructions you will give each agent (the shared template)
65
-
66
- 5. Call \`${XQ}\` to present the plan for approval.
67
-
68
- ## Phase 2: Spawn Workers (After Plan Approval)
69
-
70
- Once the plan is approved, spawn one background agent per work unit using the \`${W1}\` 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.
71
-
72
- For each agent, the prompt must be fully self-contained. Include:
73
- - The overall goal (the user's instruction)
74
- - This unit's specific task (title, file list, change description — copied verbatim from your plan)
75
- - Any codebase conventions you discovered that the worker needs to follow
76
- - The e2e test recipe from your plan (or "skip e2e because …")
77
- - The worker instructions below, copied verbatim:
78
-
79
- \`\`\`
80
- ${J4}
81
- \`\`\`
82
-
83
- Use \`subagent_type: "general-purpose"\` unless a more specific agent type fits.
84
-
85
- ## Phase 3: Track Progress
86
-
87
- After launching all workers, render an initial status table:
88
-
89
- | # | Unit | Status | PR |
90
- |---|------|--------|----|
91
- | 1 | <title> | running | — |
92
- | 2 | <title> | running | — |
93
-
94
- 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.
95
-
96
- When all agents have reported, render the final table and a one-line summary (e.g., "22/24 units landed as PRs").
97
- `}var Y4="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.",X4=`Provide an instruction describing the batch change you want to make.
98
-
99
- Examples:
100
- /batch migrate from react to vue
101
- /batch replace all uses of lodash with native equivalents
102
- /batch add type annotations to all untyped function parameters`;function $Q(){z0({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(q){let Z=q.trim();if(!Z)return[{type:"text",text:X4}];if(!await X1())return[{type:"text",text:Y4}];return[{type:"text",text:Q4(Z)}]}})}W4();KQ();Xq();o0();var H4=GQ.map((q)=>`mcp__claude-in-chrome__${q.name}`),z4=`
103
- Now that this skill is invoked, you have access to Chrome browser automation tools. You can now use the mcp__claude-in-chrome__* tools to interact with web pages.
104
-
105
- IMPORTANT: Start by calling mcp__claude-in-chrome__tabs_context_mcp to get information about the user's current browser tabs.
106
- `;function RQ(){z0({name:"claude-in-chrome",description:"Automates your Chrome browser to interact with web pages - clicking elements, filling forms, capturing screenshots, reading console logs, and navigating sites. Opens pages in new tabs within your existing Chrome session. Requires site-level permissions before executing (configured in the extension).",whenToUse:"When the user wants to interact with web pages, automate browser tasks, capture screenshots, read console logs, or perform any browser-based actions. Always invoke BEFORE attempting to use any mcp__claude-in-chrome__* tools.",allowedTools:H4,userInvocable:!0,isEnabled:()=>V9(),async getPromptForCommand(q){let Z=`${BQ}
107
- ${z4}`;if(q)Z+=`
108
- ## Task
109
-
110
- ${q}`;return[{type:"text",text:Z}]}})}$4();q0();i0();R9();UQ();o0();import{open as B4,stat as K4}from"fs/promises";var H1=20,G4=65536;function _Q(){z0({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(q){let Z=VQ(),J=FQ(),Q;try{let B=await K4(J),z=Math.min(B.size,G4),K=B.size-z,W=await B4(J,"r");try{let{buffer:X,bytesRead:G}=await W.read({buffer:Buffer.alloc(z),position:K}),M=X.toString("utf-8",0,G).split(`
111
- `).slice(-H1).join(`
112
- `);Q=`Log size: ${MQ(B.size)}
113
-
114
- ### Last ${H1} lines
115
-
116
- \`\`\`
117
- ${M}
118
- \`\`\``}finally{await W.close()}}catch(B){Q=$1(B)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${H1} lines of debug log: ${m(B)}`}return[{type:"text",text:`# Debug Skill
119
-
120
- Help the user debug an issue they're encountering in this current Claude Code session.
121
- ${Z?"":`
122
- ## Debug Logging Just Enabled
123
-
124
- Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
125
-
126
- Tell the user that debug logging is now active at \`${J}\`, 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.
127
- `}
128
- ## Session Debug Log
129
-
130
- The debug log for the current session is at: \`${J}\`
131
-
132
- ${Q}
133
-
134
- For additional context, grep for [ERROR] and [WARN] lines across the full file.
135
-
136
- ## Issue Description
137
-
138
- ${q||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
139
-
140
- ## Settings
141
-
142
- Remember that settings are in:
143
- * user - ${z1("userSettings")}
144
- * project - ${z1("projectSettings")}
145
- * local - ${z1("localSettings")}
146
-
147
- ## Instructions
148
-
149
- 1. Review the user's issue description
150
- 2. The last ${H1} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
151
- 3. Consider launching the ${LQ} subagent to understand the relevant Claude Code features
152
- 4. Explain what you found in plain language
153
- 5. Suggest concrete fixes or next steps
154
- `}]}})}V4();M4();F4();Wq();PQ();var Hq=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],NQ={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"},zq=["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"],R4=k9(()=>s.object({context:s.enum(Hq).describe("UI context where these bindings apply. Global bindings work everywhere."),bindings:s.record(s.string().describe('Keystroke pattern (e.g., "ctrl+k", "shift+tab")'),s.union([s.enum(zq),s.string().regex(/^command:[a-zA-Z0-9:\-_]+$/).describe('Command binding (e.g., "command:help", "command:compact"). Executes the slash command as if typed.'),s.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")),Vz=k9(()=>s.object({$schema:s.string().optional().describe("JSON Schema URL for editor validation"),$docs:s.string().optional().describe("Documentation URL"),bindings:s.array(R4()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."));A9();o0();function U4(){return $q(["Context","Description"],Hq.map((q)=>[`\`${q}\``,NQ[q]]))}function L4(){let q={};for(let Z of TQ)for(let[J,Q]of Object.entries(Z.bindings))if(Q){if(!q[Q])q[Q]={keys:[],context:Z.context};q[Q].keys.push(J)}return $q(["Action","Default Key(s)","Context"],zq.map((Z)=>{let J=q[Z],Q=J?J.keys.map((H)=>`\`${H}\``).join(", "):"(none)",Y=J?J.context:_4(Z);return[`\`${Z}\``,Q,Y]}))}function _4(q){let Z=q.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"}[Z??""]??"Unknown"}function P4(){let q=[];q.push("### Non-rebindable (errors)");for(let Z of yQ)q.push(`- \`${Z.key}\` — ${Z.reason}`);q.push(""),q.push("### Terminal reserved (errors/warnings)");for(let Z of wQ)q.push(`- \`${Z.key}\` — ${Z.reason} (${Z.severity==="error"?"will not work":"may conflict"})`);q.push(""),q.push("### macOS reserved (errors)");for(let Z of IQ)q.push(`- \`${Z.key}\` — ${Z.reason}`);return q.join(`
155
- `)}var N4={$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"}}]},T4={context:"Chat",bindings:{"ctrl+s":null}},y4={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},w4={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},I4=["# Keybindings Skill","","Create or modify `~/.claude/keybindings.json` to customize keyboard shortcuts.","","## CRITICAL: Read Before Write","","**Always read `~/.claude/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(`
156
- `),j4=["## File Format","","```json",j0(N4,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
157
- `),D4=["## 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(`
158
- `),k4=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",j0(T4,null,2),"```"].join(`
159
- `),A4=["## 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(`
160
- `),x4=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",j0(y4,null,2),"```","","### Add a chord binding","```json",j0(w4,null,2),"```"].join(`
161
- `),O4=["## 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(`
162
- `),C4=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claude/keybindings.json`.',"","### Common Issues and Fixes","",$q(["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: ~/.claude/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(`
163
- `);function DQ(){z0({name:"keybindings-help",description:'Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claude/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".',allowedTools:["Read"],userInvocable:!1,isEnabled:jQ,async getPromptForCommand(q){let Z=U4(),J=L4(),Q=P4(),Y=[I4,j4,D4,k4,A4,x4,O4,C4,`## Reserved Shortcuts
164
-
165
- ${Q}`,`## Available Contexts
166
-
167
- ${Z}`,`## Available Actions
168
-
169
- ${J}`];if(q)Y.push(`## User Request
170
-
171
- ${q}`);return[{type:"text",text:Y.join(`
172
-
173
- `)}]}})}function $q(q,Z){let J=q.map(()=>"---");return[`| ${q.join(" | ")} |`,`| ${J.join(" | ")} |`,...Z.map((Q)=>`| ${Q.join(" | ")} |`)].join(`
174
- `)}S4();o0();var b4="1 minute",E4="1 hour",OQ=`Scheduled maintenance loop iteration.
175
-
176
- If .claude/loop.md exists, read it and follow it.
177
- Otherwise, if ~/.claude/loop.md exists, read it and follow it.
178
- Otherwise:
179
- - continue any unfinished work from the conversation
180
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
181
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
182
-
183
- Do not start new initiatives outside that scope.
184
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`;function f4(q){let Z=q.toLowerCase();if(["s","sec","secs","second","seconds"].includes(Z))return"s";if(["m","min","mins","minute","minutes"].includes(Z))return"m";if(["h","hr","hrs","hour","hours"].includes(Z))return"h";if(["d","day","days"].includes(Z))return"d";return null}function Bq(q){let Z=q.trim().match(/^(\d+)\s*([a-zA-Z]+)$/);if(!Z)return null;let J=Number.parseInt(Z[1],10);if(!Number.isFinite(J)||J<1)return null;let Q=f4(Z[2]);if(!Q)return null;return`${J}${Q}`}function h4(q){let Z=q.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!Z)return null;let J=Bq(`${Z[2]}${Z[3]}`);if(!J)return null;return{prompt:Z[1].trim(),interval:J}}function v4(q){let Z=q.trim();if(!Z)return{mode:"dynamic-maintenance"};let J=Bq(Z);if(J)return{mode:"fixed-maintenance",interval:J};let[Q,...Y]=Z.split(/\s+/),H=Bq(Q??"");if(H){let z=Y.join(" ").trim();if(!z)return{mode:"fixed-maintenance",interval:H};return{mode:"fixed-prompt",interval:H,prompt:z}}let B=h4(Z);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:Z}}function u4(q){let Z=q.prompt?`Use this prompt verbatim for both the immediate run and the recurring scheduled task:
185
-
186
- --- BEGIN PROMPT ---
187
- ${q.prompt}
188
- --- END PROMPT ---
189
- `:`This is a maintenance loop with no explicit prompt.
190
-
191
- For the recurring scheduled task, use this exact maintenance prompt body:
192
-
193
- --- BEGIN MAINTENANCE PROMPT ---
194
- ${OQ}
195
- --- END MAINTENANCE PROMPT ---
196
- `;return`# /loop — fixed recurring interval
197
-
198
- The user invoked /loop with a fixed interval.
199
-
200
- Requested interval: ${q.interval}
201
-
202
- ${Z}
203
- ## Instructions
204
-
205
- 1. Convert the requested interval to a recurring cron expression.
206
- - Supported suffixes: s, m, h, d.
207
- - Seconds must be rounded up to the nearest minute because cron has minute granularity.
208
- - If the requested interval does not map cleanly to cron cadence, choose the nearest clean recurring interval and tell the user what you picked.
209
- 2. Call ${Kq} with:
210
- - the recurring cron expression
211
- - the effective prompt body above
212
- - recurring: true
213
- - durable: false
214
- 3. Briefly confirm what was scheduled, the cron expression, the human cadence, that recurring tasks auto-expire after ${kQ} days, and that the user can cancel sooner with ${xQ} using the returned job ID.
215
- 4. Immediately execute the effective prompt now — do not wait for the first cron fire.
216
- - If the effective prompt starts with a slash command, invoke it via the Skill tool.
217
- - Otherwise, act on it directly.
218
- `}function c4(q){let Z=q.prompt?`Use this prompt verbatim as the effective prompt for this iteration:
219
-
220
- --- BEGIN PROMPT ---
221
- ${q.prompt}
222
- --- END PROMPT ---
223
- `:`This is a maintenance loop with no explicit prompt.
224
-
225
- Determine the effective prompt in this order:
226
- 1. If .claude/loop.md exists, read it and use it.
227
- 2. Otherwise, if ~/.claude/loop.md exists, read it and use it.
228
- 3. Otherwise, use this built-in maintenance prompt:
229
-
230
- --- BEGIN MAINTENANCE PROMPT ---
231
- ${OQ}
232
- --- END MAINTENANCE PROMPT ---
233
- `,J=q.prompt?`/loop ${q.prompt}`:"/loop";return`# /loop — dynamic rescheduling
234
-
235
- The user invoked /loop without a fixed interval.
236
-
237
- ${Z}
238
- ## Instructions
239
-
240
- 1. Execute the effective prompt now.
241
- - If it starts with a slash command, invoke it via the Skill tool.
242
- - Otherwise, act on it directly.
243
- 2. After the work finishes, choose the next delay dynamically between ${b4} and ${E4}.
244
- - Use shorter delays while active work is progressing or likely to change soon.
245
- - Use longer delays when the situation is quiet or stable.
246
- 3. Briefly tell the user the chosen delay and the reason.
247
- 4. Schedule exactly one session-only follow-up run with ${Kq}.
248
- - Use recurring: false.
249
- - Use durable: false.
250
- - Pin the cron expression to a specific future local-time minute that matches the chosen delay.
251
- - Set the scheduled prompt to this exact text so the next iteration stays in dynamic mode:
252
-
253
- --- BEGIN SCHEDULED PROMPT ---
254
- ${J}
255
- --- END SCHEDULED PROMPT ---
256
-
257
- 5. Confirm the next run time and the returned job ID.
258
- 6. Do not create a recurring cron for this mode.
259
- `}function CQ(){z0({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:AQ,async getPromptForCommand(q){let Z=v4(q);return[{type:"text",text:Z.mode==="fixed-prompt"||Z.mode==="fixed-maintenance"?u4(Z):c4(Z)}]}})}YQ();o0();var m4=`# Simplify: Code Review and Cleanup
260
-
261
- Review all changed files for reuse, quality, and efficiency. Fix any issues found.
262
-
263
- ## Phase 1: Identify Changes
264
-
265
- 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.
266
-
267
- ## Phase 2: Launch Three Review Agents in Parallel
268
-
269
- Use the ${W1} tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.
270
-
271
- ### Agent 1: Code Reuse Review
272
-
273
- For each change:
274
-
275
- 1. **Search for existing utilities and helpers** that could replace newly written code. Look for similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones.
276
- 2. **Flag any new function that duplicates existing functionality.** Suggest the existing function to use instead.
277
- 3. **Flag any inline logic that could use an existing utility** — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, and similar patterns are common candidates.
278
-
279
- ### Agent 2: Code Quality Review
280
-
281
- Review the same changes for hacky patterns:
282
-
283
- 1. **Redundant state**: state that duplicates existing state, cached values that could be derived, observers/effects that could be direct calls
284
- 2. **Parameter sprawl**: adding new parameters to a function instead of generalizing or restructuring existing ones
285
- 3. **Copy-paste with slight variation**: near-duplicate code blocks that should be unified with a shared abstraction
286
- 4. **Leaky abstractions**: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries
287
- 5. **Stringly-typed code**: using raw strings where constants, enums (string unions), or branded types already exist in the codebase
288
- 6. **Unnecessary JSX nesting**: wrapper Boxes/elements that add no layout value — check if inner component props (flexShrink, alignItems, etc.) already provide the needed behavior
289
- 7. **Unnecessary comments**: comments explaining WHAT the code does (well-named identifiers already do that), narrating the change, or referencing the task/caller — delete; keep only non-obvious WHY (hidden constraints, subtle invariants, workarounds)
290
-
291
- ### Agent 3: Efficiency Review
292
-
293
- Review the same changes for efficiency:
294
-
295
- 1. **Unnecessary work**: redundant computations, repeated file reads, duplicate network/API calls, N+1 patterns
296
- 2. **Missed concurrency**: independent operations run sequentially when they could run in parallel
297
- 3. **Hot-path bloat**: new blocking work added to startup or per-request/per-render hot paths
298
- 4. **Recurring no-op updates**: state/store updates inside polling loops, intervals, or event handlers that fire unconditionally — add a change-detection guard so downstream consumers aren't notified when nothing changed. Also: if a wrapper function takes an updater/reducer callback, verify it honors same-reference returns (or whatever the "no change" signal is) — otherwise callers' early-return no-ops are silently defeated
299
- 5. **Unnecessary existence checks**: pre-checking file/resource existence before operating (TOCTOU anti-pattern) — operate directly and handle the error
300
- 6. **Memory**: unbounded data structures, missing cleanup, event listener leaks
301
- 7. **Overly broad operations**: reading entire files when only a portion is needed, loading all items when filtering for one
302
-
303
- ## Phase 3: Fix Issues
304
-
305
- Wait for all three agents to complete. Aggregate their findings and fix each issue directly. If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.
306
-
307
- When done, briefly summarize what was fixed (or confirm the code was already clean).
308
- `;function SQ(){z0({name:"simplify",description:"Review changed code for reuse, quality, and efficiency, then fix any issues found.",userInvocable:!0,async getPromptForCommand(q){let Z=m4;if(q)Z+=`
309
-
310
- ## Additional Focus
311
-
312
- ${q}`;return[{type:"text",text:Z}]}})}Wq();g4();A9();o0();function d4(){let q=bQ(EQ(),{io:"input"});return j0(q,null,2)}var p4=`## Settings File Locations
313
-
314
- Choose the appropriate file based on scope:
315
-
316
- | File | Scope | Git | Use For |
317
- |------|-------|-----|---------|
318
- | \`~/.claude/settings.json\` | Global | N/A | Personal preferences for all projects |
319
- | \`.claude/settings.json\` | Project | Commit | Team-wide hooks, permissions, plugins |
320
- | \`.claude/settings.local.json\` | Project | Gitignore | Personal overrides for this project |
321
-
322
- Settings load in order: user → project → local (later overrides earlier).
323
-
324
- ## Settings Schema Reference
325
-
326
- ### Permissions
327
- \`\`\`json
328
- {
329
- "permissions": {
330
- "allow": ["Bash(npm:*)", "Edit(.claude)", "Read"],
331
- "deny": ["Bash(rm -rf:*)"],
332
- "ask": ["Write(/etc/*)"],
333
- "defaultMode": "default" | "plan" | "acceptEdits" | "dontAsk",
334
- "additionalDirectories": ["/extra/dir"]
335
- }
336
- }
337
- \`\`\`
338
-
339
- **Permission Rule Syntax:**
340
- - Exact match: \`"Bash(npm run test)"\`
341
- - Prefix wildcard: \`"Bash(git:*)"\` - matches \`git status\`, \`git commit\`, etc.
342
- - Tool only: \`"Read"\` - allows all Read operations
343
-
344
- ### Environment Variables
345
- \`\`\`json
346
- {
347
- "env": {
348
- "DEBUG": "true",
349
- "MY_API_KEY": "value"
350
- }
351
- }
352
- \`\`\`
353
-
354
- ### Model & Agent
355
- \`\`\`json
356
- {
357
- "model": "sonnet", // or "opus", "haiku", full model ID
358
- "agent": "agent-name",
359
- "alwaysThinkingEnabled": true
360
- }
361
- \`\`\`
362
-
363
- ### Attribution (Commits & PRs)
364
- \`\`\`json
365
- {
366
- "attribution": {
367
- "commit": "Custom commit trailer text",
368
- "pr": "Custom PR description text"
369
- }
370
- }
371
- \`\`\`
372
- Set \`commit\` or \`pr\` to empty string \`""\` to hide that attribution.
373
-
374
- ### MCP Server Management
375
- \`\`\`json
376
- {
377
- "enableAllProjectMcpServers": true,
378
- "enabledMcpjsonServers": ["server1", "server2"],
379
- "disabledMcpjsonServers": ["blocked-server"]
380
- }
381
- \`\`\`
382
-
383
- ### Plugins
384
- \`\`\`json
385
- {
386
- "enabledPlugins": {
387
- "formatter@anthropic-tools": true
388
- }
389
- }
390
- \`\`\`
391
- Plugin syntax: \`plugin-name@source\` where source is \`claude-code-marketplace\`, \`claude-plugins-official\`, or \`builtin\`.
392
-
393
- ### Other Settings
394
- - \`language\`: Preferred response language (e.g., "japanese")
395
- - \`cleanupPeriodDays\`: Days to keep transcripts (default: 30; 0 disables persistence entirely)
396
- - \`respectGitignore\`: Whether to respect .gitignore (default: true)
397
- - \`spinnerTipsEnabled\`: Show tips in spinner
398
- - \`spinnerVerbs\`: Customize spinner verbs (\`{ "mode": "append" | "replace", "verbs": [...] }\`)
399
- - \`spinnerTipsOverride\`: Override spinner tips (\`{ "excludeDefault": true, "tips": ["Custom tip"] }\`)
400
- - \`syntaxHighlightingDisabled\`: Disable diff highlighting
401
- `,fQ=`## Hooks Configuration
402
-
403
- Hooks run commands at specific points in Claude Code's lifecycle.
404
-
405
- ### Hook Structure
406
- \`\`\`json
407
- {
408
- "hooks": {
409
- "EVENT_NAME": [
410
- {
411
- "matcher": "ToolName|OtherTool",
412
- "hooks": [
413
- {
414
- "type": "command",
415
- "command": "your-command-here",
416
- "timeout": 60,
417
- "statusMessage": "Running..."
418
- }
419
- ]
420
- }
421
- ]
422
- }
423
- }
424
- \`\`\`
425
-
426
- ### Hook Events
427
-
428
- | Event | Matcher | Purpose |
429
- |-------|---------|---------|
430
- | PermissionRequest | Tool name | Run before permission prompt |
431
- | PreToolUse | Tool name | Run before tool, can block |
432
- | PostToolUse | Tool name | Run after successful tool |
433
- | PostToolUseFailure | Tool name | Run after tool fails |
434
- | Notification | Notification type | Run on notifications |
435
- | Stop | - | Run when Claude stops (including clear, resume, compact) |
436
- | PreCompact | "manual"/"auto" | Before compaction |
437
- | PostCompact | "manual"/"auto" | After compaction (receives summary) |
438
- | UserPromptSubmit | - | When user submits |
439
- | SessionStart | - | When session starts |
440
-
441
- **Common tool matchers:** \`Bash\`, \`Write\`, \`Edit\`, \`Read\`, \`Glob\`, \`Grep\`
442
-
443
- ### Hook Types
444
-
445
- **1. Command Hook** - Runs a shell command:
446
- \`\`\`json
447
- { "type": "command", "command": "prettier --write $FILE", "timeout": 30 }
448
- \`\`\`
449
-
450
- **2. Prompt Hook** - Evaluates a condition with LLM:
451
- \`\`\`json
452
- { "type": "prompt", "prompt": "Is this safe? $ARGUMENTS" }
453
- \`\`\`
454
- Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
455
-
456
- **3. Agent Hook** - Runs an agent with tools:
457
- \`\`\`json
458
- { "type": "agent", "prompt": "Verify tests pass: $ARGUMENTS" }
459
- \`\`\`
460
- Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
461
-
462
- ### Hook Input (stdin JSON)
463
- \`\`\`json
464
- {
465
- "session_id": "abc123",
466
- "tool_name": "Write",
467
- "tool_input": { "file_path": "/path/to/file.txt", "content": "..." },
468
- "tool_response": { "success": true } // PostToolUse only
469
- }
470
- \`\`\`
471
-
472
- ### Hook JSON Output
473
-
474
- Hooks can return JSON to control behavior:
475
-
476
- \`\`\`json
477
- {
478
- "systemMessage": "Warning shown to user in UI",
479
- "continue": false,
480
- "stopReason": "Message shown when blocking",
481
- "suppressOutput": false,
482
- "decision": "block",
483
- "reason": "Explanation for decision",
484
- "hookSpecificOutput": {
485
- "hookEventName": "PostToolUse",
486
- "additionalContext": "Context injected back to model"
487
- }
488
- }
489
- \`\`\`
490
-
491
- **Fields:**
492
- - \`systemMessage\` - Display a message to the user (all hooks)
493
- - \`continue\` - Set to \`false\` to block/stop (default: true)
494
- - \`stopReason\` - Message shown when \`continue\` is false
495
- - \`suppressOutput\` - Hide stdout from transcript (default: false)
496
- - \`decision\` - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
497
- - \`reason\` - Explanation for decision
498
- - \`hookSpecificOutput\` - Event-specific output (must include \`hookEventName\`):
499
- - \`additionalContext\` - Text injected into model context
500
- - \`permissionDecision\` - "allow", "deny", or "ask" (PreToolUse only)
501
- - \`permissionDecisionReason\` - Reason for the permission decision (PreToolUse only)
502
- - \`updatedInput\` - Modified tool input (PreToolUse only)
503
-
504
- ### Common Patterns
505
-
506
- **Auto-format after writes:**
507
- \`\`\`json
508
- {
509
- "hooks": {
510
- "PostToolUse": [{
511
- "matcher": "Write|Edit",
512
- "hooks": [{
513
- "type": "command",
514
- "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
515
- }]
516
- }]
517
- }
518
- }
519
- \`\`\`
520
-
521
- **Log all bash commands:**
522
- \`\`\`json
523
- {
524
- "hooks": {
525
- "PreToolUse": [{
526
- "matcher": "Bash",
527
- "hooks": [{
528
- "type": "command",
529
- "command": "jq -r '.tool_input.command' >> ~/.claude/bash-log.txt"
530
- }]
531
- }]
532
- }
533
- }
534
- \`\`\`
535
-
536
- **Stop hook that displays message to user:**
537
-
538
- Command must output JSON with \`systemMessage\` field:
539
- \`\`\`bash
540
- # Example command that outputs: {"systemMessage": "Session complete!"}
541
- echo '{"systemMessage": "Session complete!"}'
542
- \`\`\`
543
-
544
- **Run tests after code changes:**
545
- \`\`\`json
546
- {
547
- "hooks": {
548
- "PostToolUse": [{
549
- "matcher": "Write|Edit",
550
- "hooks": [{
551
- "type": "command",
552
- "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\\\.(ts|js)$' && npm test || true"
553
- }]
554
- }]
555
- }
556
- }
557
- \`\`\`
558
- `,hQ=`## Constructing a Hook (with verification)
559
-
560
- 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.
561
-
562
- 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.
563
-
564
- 2. **Construct the command for THIS project — don't assume.** The hook receives JSON on stdin. Build a command that:
565
- - Extracts any needed payload safely — use \`jq -r\` into a quoted variable or \`{ read -r f; ... "$f"; }\`, NOT unquoted \`| xargs\` (splits on spaces)
566
- - Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
567
- - Skips inputs the tool doesn't handle (formatters often have \`--ignore-unknown\`; if not, guard by extension)
568
- - Stays RAW for now — no \`|| true\`, no stderr suppression. You'll wrap it after the pipe-test passes.
569
-
570
- 3. **Pipe-test the raw command.** Synthesize the stdin payload the hook will receive and pipe it directly:
571
- - \`Pre|PostToolUse\` on \`Write|Edit\`: \`echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>\`
572
- - \`Pre|PostToolUse\` on \`Bash\`: \`echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>\`
573
- - \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\`: most commands don't read stdin, so \`echo '{}' | <cmd>\` suffices
574
-
575
- 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).
576
-
577
- 4. **Write the JSON.** Merge into the target file (schema shape in the "Hook Structure" section above). If this creates \`.claude/settings.local.json\` for the first time, add it to .gitignore — the Write tool doesn't auto-gitignore it.
578
-
579
- 5. **Validate syntax + schema in one shot:**
580
-
581
- \`jq -e '.hooks.<event>[] | select(.matcher == "<matcher>") | .hooks[] | select(.type == "command") | .command' <target-file>\`
582
-
583
- 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.
584
-
585
- 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.
586
-
587
- 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.
588
-
589
- **Always clean up** — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
590
-
591
- **If proof fails but pipe-test passed and \`jq -e\` passed**: the settings watcher isn't watching \`.claude/\` — 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.
592
-
593
- 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.
594
- `,l4=`# Update Config Skill
595
-
596
- Modify Claude Code configuration by updating settings.json files.
597
-
598
- ## When Hooks Are Required (Not Memory)
599
-
600
- 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.
601
-
602
- **These require hooks:**
603
- - "Before compacting, ask me what to preserve" → PreCompact hook
604
- - "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
605
- - "When I run bash commands, log them" → PreToolUse hook with Bash matcher
606
- - "Always run tests after code changes" → PostToolUse hook
607
-
608
- **Hook events:** PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart
609
-
610
- ## CRITICAL: Read Before Write
611
-
612
- **Always read the existing settings file before making changes.** Merge new settings with existing ones - never replace the entire file.
613
-
614
- ## CRITICAL: Use AskUserQuestion for Ambiguity
615
-
616
- When the user's request is ambiguous, use AskUserQuestion to clarify:
617
- - Which settings file to modify (user/project/local)
618
- - Whether to add to existing arrays or replace them
619
- - Specific values when multiple options exist
620
-
621
- ## Decision: Config Tool vs Direct Edit
622
-
623
- **Use the Config tool** for these simple settings:
624
- - \`theme\`, \`editorMode\`, \`verbose\`, \`model\`
625
- - \`language\`, \`alwaysThinkingEnabled\`
626
- - \`permissions.defaultMode\`
627
-
628
- **Edit settings.json directly** for:
629
- - Hooks (PreToolUse, PostToolUse, etc.)
630
- - Complex permission rules (allow/deny arrays)
631
- - Environment variables
632
- - MCP server configuration
633
- - Plugin configuration
634
-
635
- ## Workflow
636
-
637
- 1. **Clarify intent** - Ask if the request is ambiguous
638
- 2. **Read existing file** - Use Read tool on the target settings file
639
- 3. **Merge carefully** - Preserve existing settings, especially arrays
640
- 4. **Edit file** - Use Edit tool (if file doesn't exist, ask user to create it first)
641
- 5. **Confirm** - Tell user what was changed
642
-
643
- ## Merging Arrays (Important!)
644
-
645
- When adding to permission arrays or hook arrays, **merge with existing**, don't replace:
646
-
647
- **WRONG** (replaces existing permissions):
648
- \`\`\`json
649
- { "permissions": { "allow": ["Bash(npm:*)"] } }
650
- \`\`\`
651
-
652
- **RIGHT** (preserves existing + adds new):
653
- \`\`\`json
654
- {
655
- "permissions": {
656
- "allow": [
657
- "Bash(git:*)", // existing
658
- "Edit(.claude)", // existing
659
- "Bash(npm:*)" // new
660
- ]
661
- }
662
- }
663
- \`\`\`
664
-
665
- ${p4}
666
-
667
- ${fQ}
668
-
669
- ${hQ}
670
-
671
- ## Example Workflows
672
-
673
- ### Adding a Hook
674
-
675
- User: "Format my code after Claude writes it"
676
-
677
- 1. **Clarify**: Which formatter? (prettier, gofmt, etc.)
678
- 2. **Read**: \`.claude/settings.json\` (or create if missing)
679
- 3. **Merge**: Add to existing hooks, don't replace
680
- 4. **Result**:
681
- \`\`\`json
682
- {
683
- "hooks": {
684
- "PostToolUse": [{
685
- "matcher": "Write|Edit",
686
- "hooks": [{
687
- "type": "command",
688
- "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
689
- }]
690
- }]
691
- }
692
- }
693
- \`\`\`
694
-
695
- ### Adding Permissions
696
-
697
- User: "Allow npm commands without prompting"
698
-
699
- 1. **Read**: Existing permissions
700
- 2. **Merge**: Add \`Bash(npm:*)\` to allow array
701
- 3. **Result**: Combined with existing allows
702
-
703
- ### Environment Variables
704
-
705
- User: "Set DEBUG=true"
706
-
707
- 1. **Decide**: User settings (global) or project settings?
708
- 2. **Read**: Target file
709
- 3. **Merge**: Add to env object
710
- \`\`\`json
711
- { "env": { "DEBUG": "true" } }
712
- \`\`\`
713
-
714
- ## Common Mistakes to Avoid
715
-
716
- 1. **Replacing instead of merging** - Always preserve existing settings
717
- 2. **Wrong file** - Ask user if scope is unclear
718
- 3. **Invalid JSON** - Validate syntax after changes
719
- 4. **Forgetting to read first** - Always read before write
720
-
721
- ## Troubleshooting Hooks
722
-
723
- If a hook isn't running:
724
- 1. **Check the settings file** - Read ~/.claude/settings.json or .claude/settings.json
725
- 2. **Verify JSON syntax** - Invalid JSON silently fails
726
- 3. **Check the matcher** - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
727
- 4. **Check hook type** - Is it "command", "prompt", or "agent"?
728
- 5. **Test the command** - Run the hook command manually to see if it works
729
- 6. **Use --debug** - Run \`claude --debug\` to see hook execution logs
730
- `;function vQ(){z0({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(q){if(q.startsWith("[hooks-only]")){let Q=q.slice(12).trim(),Y=fQ+`
731
-
732
- `+hQ;if(Q)Y+=`
733
-
734
- ## Task
735
-
736
- ${Q}`;return[{type:"text",text:Y}]}let Z=d4(),J=l4;if(J+=`
737
-
738
- ## Full Settings JSON Schema
739
-
740
- \`\`\`json
741
- ${Z}
742
- \`\`\``,q)J+=`
743
-
744
- ## User Request
745
-
746
- ${q}`;return[{type:"text",text:J}]}})}function uQ(){if(vQ(),DQ(),_Q(),SQ(),$Q(),CQ(),V9())RQ()}aY();RX();KQ();Xq();OY();PX();UQ();i4();Yq();I9();d1();pX();Yq();a4();s4();async function gQ(){if(!await mQ("gh"))return"not_installed";let{exitCode:Z}=await cQ("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return Z===0?"authenticated":"not_authenticated"}PY();C9();Nq();kY();yY();P6();bX();EX();fX();IX();pY();gY();_X();aX();jY();q0();FY();KX();lQ();Q0();r4();async function iQ(q,Z){let J=await pQ(q),Q=dQ(Z);for(let Y of J){if(Y.type!=="prompt")continue;F("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:Q,...Y.kind&&{skill_kind:Y.kind}})}}fY();zX();Q0();n4();Mq();Fq();Uq();I9();A9();function tQ(q){q.command("add <name> <commandOrUrl> [args...]").description(`Add an MCP server to Claude Code.
747
-
748
- Examples:
749
- # Add HTTP server:
750
- claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
751
-
752
- # Add HTTP server with headers:
753
- claude mcp add --transport http corridor https://app.corridor.dev/api/mcp --header "Authorization: Bearer ..."
754
-
755
- # Add stdio server with environment variables:
756
- claude mcp add -e API_KEY=xxx my-server -- npx my-mcp-server
757
-
758
- # Add stdio server with subprocess flags:
759
- claude mcp add my-server -- my-command --some-flag arg1`).option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").option("-t, --transport <transport>","Transport type (stdio, sse, http). Defaults to stdio if not specified.").option("-e, --env <env...>","Set environment variables (e.g. -e KEY=value)").option("-H, --header <header...>",'Set WebSocket headers (e.g. -H "X-Api-Key: abc123" -H "X-Custom: value")').option("--client-id <clientId>","OAuth client ID for HTTP/SSE servers").option("--client-secret","Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").option("--callback-port <port>","Fixed port for OAuth callback (for servers requiring pre-registered redirect URIs)").helpOption("-h, --help","Display help for command").addOption(new T("--xaa","Enable XAA (SEP-990) for this server. Requires 'claude mcp xaa setup' first. Also requires --client-id and --client-secret (for the MCP server's AS).").hideHelp(!x9())).action(async(Z,J,Q,Y)=>{let H=J,B=Q;if(!Z)r(`Error: Server name is required.
760
- Usage: claude mcp add <name> <command> [args...]`);else if(!H)r(`Error: Command is required when server name is provided.
761
- Usage: claude mcp add <name> <command> [args...]`);try{let z=rQ(Y.scope),K=nQ(Y.transport);if(Y.xaa&&!x9())r("Error: --xaa requires CLAUDE_CODE_ENABLE_XAA=1 in your environment");let W=Boolean(Y.xaa);if(W){let M=[];if(!Y.clientId)M.push("--client-id");if(!Y.clientSecret)M.push("--client-secret");if(!e0())M.push("'claude mcp xaa setup' (settings.xaaIdp not configured)");if(M.length)r(`Error: --xaa requires: ${M.join(", ")}`)}let X=Y.transport!==void 0,G=H.startsWith("http://")||H.startsWith("https://")||H.startsWith("localhost")||H.endsWith("/sse")||H.endsWith("/mcp");if(F("tengu_mcp_add",{type:K,scope:z,source:"command",transport:K,transportExplicit:X,looksLikeUrl:G}),K==="sse"){if(!H)r("Error: URL is required for SSE transport.");let M=Y.header?Gq(Y.header):void 0,U=Y.callbackPort?parseInt(Y.callbackPort,10):void 0,j=Y.clientId||U||W?{...Y.clientId?{clientId:Y.clientId}:{},...U?{callbackPort:U}:{},...W?{xaa:!0}:{}}:void 0,C=Y.clientSecret&&Y.clientId?await Rq():void 0,v={type:"sse",url:H,headers:M,oauth:j};if(await B1(Z,v,z),C)Vq(Z,v,C);if(process.stdout.write(`Added SSE MCP server ${Z} with URL: ${H} to ${z} config
762
- `),M)process.stdout.write(`Headers: ${j0(M,null,2)}
763
- `)}else if(K==="http"){if(!H)r("Error: URL is required for HTTP transport.");let M=Y.header?Gq(Y.header):void 0,U=Y.callbackPort?parseInt(Y.callbackPort,10):void 0,j=Y.clientId||U||W?{...Y.clientId?{clientId:Y.clientId}:{},...U?{callbackPort:U}:{},...W?{xaa:!0}:{}}:void 0,C=Y.clientSecret&&Y.clientId?await Rq():void 0,v={type:"http",url:H,headers:M,oauth:j};if(await B1(Z,v,z),C)Vq(Z,v,C);if(process.stdout.write(`Added HTTP MCP server ${Z} with URL: ${H} to ${z} config
764
- `),M)process.stdout.write(`Headers: ${j0(M,null,2)}
765
- `)}else{if(Y.clientId||Y.clientSecret||Y.callbackPort||Y.xaa)process.stderr.write(`Warning: --client-id, --client-secret, --callback-port, and --xaa are only supported for HTTP/SSE transports and will be ignored for stdio.
766
- `);if(!X&&G)process.stderr.write(`
767
- Warning: The command "${H}" looks like a URL, but is being interpreted as a stdio server as --transport was not specified.
768
- `),process.stderr.write(`If this is an HTTP server, use: claude mcp add --transport http ${Z} ${H}
769
- `),process.stderr.write(`If this is an SSE server, use: claude mcp add --transport sse ${Z} ${H}
770
- `);let M=aQ(Y.env);await B1(Z,{type:"stdio",command:H,args:B,env:M},z),process.stdout.write(`Added stdio MCP server ${Z} with command: ${H} ${B.join(" ")} to ${z} config
771
- `)}O0(`File modified: ${sQ(z)}`)}catch(z){r(z.message)}})}function oQ(q){q.command("doctor [name]").description("Diagnose MCP configuration, precedence, disabled/pending state, and connection health. Note: unless --config-only is used, stdio servers may be spawned and remote servers may be contacted. Only use this command in directories you trust.").option("-s, --scope <scope>","Restrict config analysis to a specific scope (local, project, user, or enterprise)").option("--config-only","Skip live connection checks and only analyze configuration state").option("--json","Output the diagnostics report as JSON").action(async(Z,J)=>{let{mcpDoctorHandler:Q}=await import("./mcp-0.1.9-14beee71.mjs");await Q(Z,J)})}Uq();R9();q0();function J6(q){let Z=q.command("xaa").description("Manage the XAA (SEP-990) IdP connection");Z.command("setup").description("Configure the IdP connection (one-time setup for all XAA-enabled servers)").requiredOption("--issuer <url>","IdP issuer URL (OIDC discovery)").requiredOption("--client-id <id>","Claude Code's client_id at the IdP").option("--client-secret","Read IdP client secret from MCP_XAA_IDP_CLIENT_SECRET env var").option("--callback-port <port>","Fixed loopback callback port (only if IdP does not honor RFC 8252 port-any matching)").action((J)=>{let Q;try{Q=new URL(J.issuer)}catch{return r(`Error: --issuer must be a valid URL (got "${J.issuer}")`)}if(Q.protocol!=="https:"&&!(Q.protocol==="http:"&&(Q.hostname==="localhost"||Q.hostname==="127.0.0.1"||Q.hostname==="[::1]")))return r(`Error: --issuer must use https:// (got "${Q.protocol}//${Q.host}")`);let Y=J.callbackPort?parseInt(J.callbackPort,10):void 0;if(Y!==void 0&&(!Number.isInteger(Y)||Y<=0))return r("Error: --callback-port must be a positive integer");let H=J.clientSecret?process.env.MCP_XAA_IDP_CLIENT_SECRET:void 0;if(J.clientSecret&&!H)return r("Error: --client-secret requires MCP_XAA_IDP_CLIENT_SECRET env var");let B=e0(),z=B?.issuer,K=B?.clientId,{error:W}=S("userSettings",{xaaIdp:{issuer:J.issuer,clientId:J.clientId,callbackPort:Y}});if(W)return r(`Error writing settings: ${W.message}`);if(z){if(Lq(z)!==Lq(J.issuer))O9(z),K1(z);else if(K!==J.clientId)O9(z),K1(z)}if(H){let{success:X,warning:G}=q6(J.issuer,H);if(!X)return r(`Error: settings written but keychain save failed${G?` — ${G}`:""}. Re-run with --client-secret once keychain is available.`)}O0(`XAA IdP connection configured for ${J.issuer}`)}),Z.command("login").description("Cache an IdP id_token so XAA-enabled MCP servers authenticate silently. Default: run the OIDC browser login. With --id-token: write a pre-obtained JWT directly (used by conformance/e2e tests where the mock IdP does not serve /authorize).").option("--force","Ignore any cached id_token and re-login (useful after IdP-side revocation)").option("--id-token <jwt>","Write this pre-obtained id_token directly to cache, skipping the OIDC browser login").action(async(J)=>{let Q=e0();if(!Q)return r("Error: no XAA IdP connection. Run 'claude mcp xaa setup' first.");if(J.idToken){let H=eQ(Q.issuer,J.idToken);return O0(`id_token cached for ${Q.issuer} (expires ${new Date(H).toISOString()})`)}if(J.force)O9(Q.issuer);if(_q(Q.issuer)!==void 0)return O0(`Already logged in to ${Q.issuer} (cached id_token still valid). Use --force to re-login.`);process.stdout.write(`Opening browser for IdP login at ${Q.issuer}…
772
- `);try{await Z6({idpIssuer:Q.issuer,idpClientId:Q.clientId,idpClientSecret:Pq(Q.issuer),callbackPort:Q.callbackPort,onAuthorizationUrl:(H)=>{process.stdout.write(`If the browser did not open, visit:
773
- ${H}
774
- `)}}),O0("Logged in. MCP servers with --xaa will now authenticate silently.")}catch(H){r(`IdP login failed: ${m(H)}`)}}),Z.command("show").description("Show the current IdP connection config").action(()=>{let J=e0();if(!J)return O0("No XAA IdP connection configured.");let Q=Pq(J.issuer)!==void 0,Y=_q(J.issuer)!==void 0;if(process.stdout.write(`Issuer: ${J.issuer}
775
- `),process.stdout.write(`Client ID: ${J.clientId}
776
- `),J.callbackPort!==void 0)process.stdout.write(`Callback port: ${J.callbackPort}
777
- `);process.stdout.write(`Client secret: ${Q?"(stored in keychain)":"(not set — PKCE-only)"}
778
- `),process.stdout.write(`Logged in: ${Y?"yes (id_token cached)":"no — run 'claude mcp xaa login'"}
779
- `),O0()}),Z.command("clear").description("Clear the IdP connection config and cached id_token").action(()=>{let J=e0(),{error:Q}=S("userSettings",{xaaIdp:void 0});if(Q)return r(`Error writing settings: ${Q.message}`);if(J)O9(J.issuer),K1(J.issuer);O0("XAA IdP connection cleared")})}HX();q5();Mq();Fq();Uq();cX();WX();ZJ();qX();OX();MY();i0();R9();UY();i1();SX();xY();LY();wX();NY();wY();s0();Q0();J0();C9();q0();function Q6(){let q=E();if(q.autoUpdates!==!1||q.autoUpdatesProtectedForNative===!0)return;try{let Z=i("userSettings")||{};S("userSettings",{...Z,env:{...Z.env,DISABLE_AUTOUPDATER:"1"}}),F("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!Z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",f((J)=>{let{autoUpdates:Q,autoUpdatesProtectedForNative:Y,...H}=J;return H})}catch(Z){p(Error(`Failed to migrate auto-updates: ${Z}`)),F("tengu_migrate_autoupdates_error",{has_error:!0})}}Q0();J0();C9();q0();function Y6(){if(!E().bypassPermissionsModeAccepted)return;try{if(!G1())S("userSettings",{skipDangerousModePermissionPrompt:!0});F("tengu_migrate_bypass_permissions_accepted",{}),f((Z)=>{if(!("bypassPermissionsModeAccepted"in Z))return Z;let{bypassPermissionsModeAccepted:J,...Q}=Z;return Q})}catch(Z){p(Error(`Failed to migrate bypass permissions accepted: ${Z}`))}}Q0();J0();C9();q0();function H6(){let q=X6(),Z=q.enableAllProjectMcpServers!==void 0,J=q.enabledMcpjsonServers&&q.enabledMcpjsonServers.length>0,Q=q.disabledMcpjsonServers&&q.disabledMcpjsonServers.length>0;if(!Z&&!J&&!Q)return;try{let Y=i("localSettings")||{},H={},B=[];if(Z&&Y.enableAllProjectMcpServers===void 0)H.enableAllProjectMcpServers=q.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(Z)B.push("enableAllProjectMcpServers");if(J&&q.enabledMcpjsonServers){let z=Y.enabledMcpjsonServers||[];H.enabledMcpjsonServers=[...new Set([...z,...q.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(Q&&q.disabledMcpjsonServers){let z=Y.disabledMcpjsonServers||[];H.disabledMcpjsonServers=[...new Set([...z,...q.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(H).length>0)S("localSettings",H);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))W6((z)=>{let{enableAllProjectMcpServers:K,enabledMcpjsonServers:W,disabledMcpjsonServers:X,...G}=z;return G});F("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){p(Y),F("tengu_migrate_mcp_approval_fields_error",{})}}Q0();J0();Nq();l0();q0();function $6(){if(M0()!=="firstParty")return;if(!z6())return;let q=i("userSettings")?.model;if(q!=="claude-opus-4-20250514"&&q!=="claude-opus-4-1-20250805"&&q!=="claude-opus-4-0"&&q!=="claude-opus-4-1")return;S("userSettings",{model:"opus"}),f((Z)=>({...Z,legacyOpusMigrationTimestamp:Date.now()})),F("tengu_legacy_opus_migration",{from_model:q})}Q0();Nq();q0();function G6(){if(!K6())return;if(i("userSettings")?.model!=="opus")return;let Z="opus[1m]",J=c0(Z)===c0(B6())?void 0:Z;S("userSettings",{model:J}),F("tengu_opus_to_opus1m_migration",{})}J0();function R6(){f((q)=>{let Z=q.replBridgeEnabled;if(Z===void 0)return q;if(q.remoteControlAtStartup!==void 0)return q;let J={...q,remoteControlAtStartup:Boolean(Z)};return delete J.replBridgeEnabled,J})}s0();J0();l0();q0();function F6(){if(M0()!=="firstParty")return;if(E().sonnet1m45MigrationComplete)return;if(i("userSettings")?.model==="sonnet[1m]")S("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(V6()==="sonnet[1m]")R1("sonnet-4-5-20250929[1m]");f((Q)=>({...Q,sonnet1m45MigrationComplete:!0}))}Q0();Tq();J0();l0();q0();function L6(){if(M0()!=="firstParty")return;if(!V1()&&!M6()&&!U6())return;let q=i("userSettings")?.model;if(q!=="claude-sonnet-4-5-20250929"&&q!=="claude-sonnet-4-5-20250929[1m]"&&q!=="sonnet-4-5-20250929"&&q!=="sonnet-4-5-20250929[1m]")return;let Z=q.endsWith("[1m]");if(S("userSettings",{model:Z?"sonnet[1m]":"sonnet"}),E().numStartups>1)f((Q)=>({...Q,sonnet45To46MigrationTimestamp:Date.now()}));F("tengu_sonnet45_to_46_migration",{from_model:q,has_1m:Z})}Q0();J0();C9();P6();q0();function N6(){if(E().hasResetAutoModeOptInForDefaultOffer)return;if(_6()!=="enabled")return;try{let Z=i("userSettings");if(Z?.skipAutoPermissionPrompt&&Z?.permissions?.defaultMode!=="auto")S("userSettings",{skipAutoPermissionPrompt:void 0}),F("tengu_migrate_reset_auto_opt_in_for_default_offer",{});f((J)=>{if(J.hasResetAutoModeOptInForDefaultOffer)return J;return{...J,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(Z){p(Error(`Failed to reset auto mode opt-in: ${Z}`))}}Q0();Tq();J0();l0();q0();function T6(){if(E().opusProMigrationComplete)return;if(M0()!=="firstParty"||!V1()){f((Q)=>({...Q,opusProMigrationComplete:!0})),F("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(m0()?.model===void 0){let Q=Date.now();f((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:Q})),F("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else f((Q)=>({...Q,opusProMigrationComplete:!0})),F("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}R9();A9();Wq();PQ();var t4=k9(()=>s.object({session_id:s.string(),ws_url:s.string(),work_dir:s.string().optional()}));wJ();yX();eY();ZX();hY();QX();CY();TY();QJ();hX();dX();dY();BX();TX();lY();GX();sX();var h5=d(Z0(),1);L("main_tsx_entry");V2();k2();var D6=()=>(nY(),Z9(rY)),rX=()=>(FX(),Z9(VX)),nX=()=>(UX(),Z9(MX)),WZ=(XX(),Z9(YX));var tX=(AX(),Z9(kX));L("main_tsx_imports_loaded");function oX(){try{let q=i("policySettings");if(q){let Z=M2(q);F("tengu_managed_settings_loaded",{keyCount:Z.length,keys:Z.join(",")})}}catch{}}function eX(){let q=K2(),Z=process.execArgv.some((Q)=>{if(q)return/--inspect(-brk)?/.test(Q);else return/--inspect(-brk)?|--debug(-brk)?/.test(Q)}),J=process.env.NODE_OPTIONS&&/--inspect(-brk)?|--debug(-brk)?/.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Z||J}catch{return Z||J}}if(eX())process.exit(1);function k6(){let q=c0(zZ()??f9());iQ(h9(),j2(q,E6())),s3().then(({enabled:Z,errors:J})=>{let Q=a3();U3(Z,Q,p2()),L3(J,Q)}).catch((Z)=>p(Z))}function qW(){let q={};if(process.env.NODE_EXTRA_CA_CERTS)q.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)q.has_client_cert=!0;if(Cq("--use-system-ca"))q.has_use_system_ca=!0;if(Cq("--use-openssl-ca"))q.has_use_openssl_ca=!0;return q}async function ZW(){if(m2())return;let[q,Z,J]=await Promise.all([X1(),H2(),gQ()]);F("tengu_startup_telemetry",{is_git:q,worktree_count:Z,gh_auth_status:J,sandbox_enabled:_1.isSandboxingEnabled(),are_unsandboxed_commands_allowed:_1.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:_1.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:_2(),prefers_reduced_motion:q9().prefersReducedMotion??!1,...qW()})}var xq=11;function JW(){if(E().migrationVersion!==xq)Q6(),Y6(),H6(),T6(),F6(),$6(),L6(),G6(),R6(),N6(),f((q)=>q.migrationVersion===xq?q:{...q,migrationVersion:xq});K5().catch(()=>{})}function QW(){if(a0()){H0("info","prefetch_system_context_non_interactive"),M9();return}if(I1())H0("info","prefetch_system_context_has_trust"),M9();else H0("info","prefetch_system_context_skipped_no_trust")}function KZ(){if(a(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||S0())return;j3(),BZ(),QW(),O5();let q=w0()?.transport;if(q==="bedrock"&&!a(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))O2();if(q==="vertex"&&!a(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))x2();if(d2(h9(),AbortSignal.timeout(3000),[]),t3(),sJ(),I2(),u2.initialize(),!S0())x5.initialize()}function YW(q){try{let Z=q.trim(),J=Z.startsWith("{")&&Z.endsWith("}"),Q;if(J){if(!w1(Z))process.stderr.write(k.red(`Error: Invalid JSON provided to --settings
780
- `)),process.exit(1);Q=h2("claude-settings",".json",{contentHash:Z}),Z2(Q,Z,"utf8")}else{let{resolvedPath:Y}=J2(Q2(),q);try{XZ(Y,"utf8")}catch(H){if($1(H))process.stderr.write(k.red(`Error: Settings file not found: ${Y}
781
- `)),process.exit(1);throw H}Q=Y}m6(Q),HZ()}catch(Z){if(Z instanceof Error)p(Z);process.stderr.write(k.red(`Error processing settings: ${m(Z)}
782
- `)),process.exit(1)}}function XW(q){try{let Z=B2(q);g6(Z),HZ()}catch(Z){if(Z instanceof Error)p(Z);process.stderr.write(k.red(`Error processing --setting-sources: ${m(Z)}
783
- `)),process.exit(1)}}function WW(){L("eagerLoadSettings_start");let q=uq("--settings");if(q)YW(q);let Z=uq("--setting-sources");if(Z!==void 0)XW(Z);L("eagerLoadSettings_end")}function HW(q){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let Z=process.argv.slice(2),J=Z.indexOf("mcp");if(J!==-1&&Z[J+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(a(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=q?"sdk-cli":"cli"}async function SR(){L("main_function_start"),process.env.NoDefaultCurrentDirectoryInExePath="1",nJ(),process.on("exit",()=>{KW()}),process.on("SIGINT",()=>{if(process.argv.includes("-p")||process.argv.includes("--print"))return;process.exit(0)}),L("main_warning_handler_initialized");let q=process.argv.slice(2),Z=q.includes("-p")||q.includes("--print"),J=q.includes("--init-only"),Q=q.some((K)=>K.startsWith("--sdk-url")),Y=Z||J||Q||!process.stdout.isTTY;if(Y)b2();h6(!Y),HW(Y);let B=(()=>{if(a(process.env.GITHUB_ACTIONS))return"github-action";if(process.env.CLAUDE_CODE_ENTRYPOINT==="sdk-ts")return"sdk-typescript";if(process.env.CLAUDE_CODE_ENTRYPOINT==="sdk-py")return"sdk-python";if(process.env.CLAUDE_CODE_ENTRYPOINT==="sdk-cli")return"sdk-cli";if(process.env.CLAUDE_CODE_ENTRYPOINT==="claude-vscode")return"claude-vscode";if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return"local-agent";if(process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop")return"claude-desktop";let K=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN||process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(process.env.CLAUDE_CODE_ENTRYPOINT==="remote"||K)return"remote";return"cli"})();v6(B);let z=process.env.CLAUDE_CODE_QUESTION_PREVIEW_FORMAT;if(z==="markdown"||z==="html")Oq(z);else if(!B.startsWith("sdk-")&&B!=="claude-desktop"&&B!=="local-agent"&&B!=="remote")Oq("markdown");if(process.env.CLAUDE_CODE_ENVIRONMENT_KIND==="bridge")c6("remote-control");L("main_client_type_determined"),WW(),L("main_before_run"),await $W(),L("main_after_run")}async function zW(q,Z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(Z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let J="",Q=(H)=>{J+=H};process.stdin.on("data",Q);let Y=await Y2(process.stdin,3000);if(process.stdin.off("data",Q),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
784
- `);return[q,J].filter(Boolean).join(`
785
- `)}return q}async function $W(){L("run_function_start");function q(){let W=(X)=>X.long?.replace(/^--/,"")??X.short?.replace(/^-/,"")??"";return Object.assign({sortSubcommands:!0,sortOptions:!0},{compareOptions:(X,G)=>W(X).localeCompare(W(G))})}let Z=new iJ().configureHelp(q()).enablePositionalOptions();if(L("run_commander_initialized"),Z.hook("preAction",async(W)=>{if(await Promise.all([F2(),A2()]),await DJ(),L("preAction_after_init"),!a(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE))process.title="claudio";let{initSinks:X}=await import("./sinks-0.1.9-49ereb4y.mjs");X(),L("preAction_after_sinks");let G=W.getOptionValue("pluginDir");if(Array.isArray(G)&&G.length>0&&G.every((M)=>typeof M==="string"))d6(G),r3("preAction: --plugin-dir inline plugins");JW(),L("preAction_after_migrations");try{let{runClaudioStartupMigrations:M}=(j6(),Z9(I6));M()}catch(M){N(`[startup-migrations] failed: ${M instanceof Error?M.message:String(M)}`)}L("preAction_after_claudio_migrations"),w3(),N3(),L("preAction_after_remote_settings"),L("preAction_after_settings_sync")}),Z.name("claude").description("Claude Code - starts an interactive session by default, use -p/--print for non-interactive output").argument("[prompt]","Your prompt",String).helpOption("-h, --help","Display help for command").option("-d, --debug [filter]",'Enable debug mode with optional category filtering (e.g., "api,hooks" or "!1p,!file")',(W)=>{return!0}).addOption(new T("-d2e, --debug-to-stderr","Enable debug mode (to stderr)").argParser(Boolean).hideHelp()).option("--debug-file <path>","Write debug logs to a specific file path (implicitly enables debug mode)",()=>!0).option("--verbose","Override verbose mode setting from config",()=>!0).option("-p, --print","Print response and exit (useful for pipes). Note: The workspace trust dialog is skipped when Claude is run with the -p mode. Only use this flag in directories you trust.",()=>!0).option("--bare","Minimal mode: skip hooks, LSP, plugin sync, attribution, auto-memory, background prefetches, keychain reads, and CLAUDE.md auto-discovery. Sets CLAUDE_CODE_SIMPLE=1. Anthropic auth is strictly ANTHROPIC_API_KEY or apiKeyHelper via --settings (OAuth and keychain are never read). 3P providers (Bedrock/Vertex/Foundry) use their own credentials. Skills still resolve via /skill-name. Explicitly provide context via: --system-prompt[-file], --append-system-prompt[-file], --add-dir (CLAUDE.md dirs), --mcp-config, --settings, --agents, --plugin-dir.",()=>!0).addOption(new T("--init","Run Setup hooks with init trigger, then continue").hideHelp()).addOption(new T("--init-only","Run Setup and SessionStart:startup hooks, then exit").hideHelp()).addOption(new T("--maintenance","Run Setup hooks with maintenance trigger, then continue").hideHelp()).addOption(new T("--output-format <format>",'Output format (only works with --print): "text" (default), "json" (single result), or "stream-json" (realtime streaming)').choices(["text","json","stream-json"])).addOption(new T("--json-schema <schema>",'JSON Schema for structured output validation. Example: {"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}').argParser(String)).option("--include-hook-events","Include all hook lifecycle events in the output stream (only works with --output-format=stream-json)",()=>!0).option("--include-partial-messages","Include partial message chunks as they arrive (only works with --print and --output-format=stream-json)",()=>!0).addOption(new T("--input-format <format>",'Input format (only works with --print): "text" (default), or "stream-json" (realtime streaming input)').choices(["text","stream-json"])).option("--mcp-debug","[DEPRECATED. Use --debug instead] Enable MCP debug mode (shows MCP server errors)",()=>!0).option("--dangerously-skip-permissions","Bypass all permission checks. Recommended only for sandboxes with no internet access.",()=>!0).option("--allow-dangerously-skip-permissions","Enable bypassing all permission checks as an option, without it being enabled by default. Recommended only for sandboxes with no internet access.",()=>!0).addOption(new T("--thinking <mode>","Thinking mode: enabled (equivalent to adaptive), disabled").choices(["enabled","adaptive","disabled"]).hideHelp()).addOption(new T("--max-thinking-tokens <tokens>","[DEPRECATED. Use --thinking instead for newer models] Maximum number of thinking tokens (only works with --print)").argParser(Number).hideHelp()).addOption(new T("--max-turns <turns>","Maximum number of agentic turns in non-interactive mode. This will early exit the conversation after the specified number of turns. (only works with --print)").argParser(Number).hideHelp()).addOption(new T("--max-budget-usd <amount>","Maximum dollar amount to spend on API calls (only works with --print)").argParser((W)=>{let X=Number(W);if(isNaN(X)||X<=0)throw Error("--max-budget-usd must be a positive number greater than 0");return X})).addOption(new T("--task-budget <tokens>","API-side task budget in tokens (output_config.task_budget)").argParser((W)=>{let X=Number(W);if(isNaN(X)||X<=0||!Number.isInteger(X))throw Error("--task-budget must be a positive integer");return X}).hideHelp()).option("--replay-user-messages","Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json)",()=>!0).addOption(new T("--enable-auth-status","Enable auth status messages in SDK mode").default(!1).hideHelp()).option("--allowedTools, --allowed-tools <tools...>",'Comma or space-separated list of tool names to allow (e.g. "Bash(git:*) Edit")').option("--tools <tools...>",'Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read").').option("--disallowedTools, --disallowed-tools <tools...>",'Comma or space-separated list of tool names to deny (e.g. "Bash(git:*) Edit")').option("--mcp-config <configs...>","Load MCP servers from JSON files or strings (space-separated)").addOption(new T("--permission-prompt-tool <tool>","MCP tool to use for permission prompts (only works with --print)").argParser(String).hideHelp()).addOption(new T("--system-prompt <prompt>","System prompt to use for the session").argParser(String)).addOption(new T("--system-prompt-file <file>","Read system prompt from a file").argParser(String).hideHelp()).addOption(new T("--append-system-prompt <prompt>","Append a system prompt to the default system prompt").argParser(String)).addOption(new T("--append-system-prompt-file <file>","Read system prompt from a file and append to the default system prompt").argParser(String).hideHelp()).addOption(new T("--permission-mode <mode>","Permission mode to use for the session").argParser(String).choices(R2)).option("-c, --continue","Continue the most recent conversation in the current directory",()=>!0).option("-r, --resume [value]","Resume a conversation by session ID, or open interactive picker with optional search term",(W)=>W||!0).option("--fork-session","When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)",()=>!0).addOption(new T("--prefill <text>","Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new T("--deep-link-origin","Signal that this session was launched from a deep link").hideHelp()).addOption(new T("--deep-link-repo <slug>","Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new T("--deep-link-last-fetch <ms>","FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline").argParser((W)=>{let X=Number(W);return Number.isFinite(X)?X:void 0}).hideHelp()).option("--from-pr [value]","Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term",(W)=>W||!0).option("--no-session-persistence","Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new T("--resume-session-at <message id>","When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new T("--rewind-files <user-message-id>","Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>","Model for the current session. Provide an alias for the latest model (e.g. 'sonnet' or 'opus') or a model's full name (e.g. 'claude-sonnet-4-6').").option("--provider <provider>","AI provider to use (anthropic, openai, gemini, github, bedrock, vertex, ollama). Reads API keys from environment variables.").addOption(new T("--effort <level>","Effort level for the current session (low, medium, high, max)").argParser((W)=>{let X=W.toLowerCase(),G=["low","medium","high","max"];if(!G.includes(X))throw new lJ(`It must be one of: ${G.join(", ")}`);return X})).option("--agent <agent>","Agent for the current session. Overrides the 'agent' setting.").option("--betas <betas...>","Beta headers to include in API requests (API key users only)").option("--fallback-model <model>","Enable automatic fallback to specified model when default model is overloaded (only works with --print)").addOption(new T("--workload <tag>","Workload tag for billing-header attribution (cc_workload). Process-scoped; set by SDK daemon callers that spawn subprocesses for cron work. (only works with --print)").hideHelp()).option("--settings <file-or-json>","Path to a settings JSON file or a JSON string to load additional settings from").option("--add-dir <directories...>","Additional directories to allow tool access to").option("--ide","Automatically connect to IDE on startup if exactly one valid IDE is available",()=>!0).option("--strict-mcp-config","Only use MCP servers from --mcp-config, ignoring all other MCP configurations",()=>!0).option("--session-id <uuid>","Use a specific session ID for the conversation (must be a valid UUID)").option("-n, --name <name>","Set a display name for this session (shown in /resume and terminal title)").option("--agents <json>",`JSON object defining custom agents (e.g. '{"reviewer": {"description": "Reviews code", "prompt": "You are a code reviewer"}}')`).option("--setting-sources <sources>","Comma-separated list of setting sources to load (user, project, local).").option("--plugin-dir <path>","Load plugins from a directory for this session only (repeatable: --plugin-dir A --plugin-dir B)",(W,X)=>[...X,W],[]).option("--disable-slash-commands","Disable all skills",()=>!0).option("--chrome","Enable Claude in Chrome integration").option("--no-chrome","Disable Claude in Chrome integration").option("--file <specs...>","File resources to download at startup. Format: file_id:relative_path (e.g., --file file_abc:doc.txt file_def:img.png)").action(async(W,X)=>{if(L("action_handler_start"),X.bare)process.env.CLAUDE_CODE_SIMPLE="1";if(W==="code")F("tengu_code_prompt_ignored",{}),console.warn(k.yellow("Tip: You can launch Claude Code with just `claude`")),W=void 0;if(W&&typeof W==="string"&&!/\s/.test(W)&&W.length>0)F("tengu_single_word_prompt",{length:W.length});let G=!1,M,{debug:U=!1,debugToStderr:j=!1,dangerouslySkipPermissions:C,allowDangerouslySkipPermissions:v=!1,tools:L0=[],allowedTools:Y0=[],disallowedTools:b0=[],mcpConfig:k0=[],permissionMode:_0,addDir:P0=[],fallbackModel:U9,betas:MZ=[],ide:x1=!1,sessionId:L9,includeHookEvents:UZ,includePartialMessages:LZ}=X;if(X.prefill)E2(X.prefill);let O1,_Z=X.agents,C1=X.agent,A0=X.outputFormat,N0=X.inputFormat,m9=X.verbose??E().verbose,PZ=X.print,NZ=X.init??!1,S1=X.initOnly??!1,TZ=X.maintenance??!1,b1=X.disableSlashCommands||!1,P7=void 0,E1=nq()?X.worktree:void 0,g9=typeof E1==="string"?E1:void 0,Q9=E1!==void 0,yZ;if(g9){let $=w5(g9);if($!==null)yZ=$,g9=void 0}let wZ=nq()&&X.tmux===!0;if(wZ){if(!Q9)process.stderr.write(k.red(`Error: --tmux requires --worktree
786
- `)),process.exit(1);if(Y1()==="windows")process.stderr.write(k.red(`Error: --tmux is not supported on Windows
787
- `)),process.exit(1);if(!await I5())process.stderr.write(k.red(`Error: tmux is not installed.
788
- ${j5()}
789
- `)),process.exit(1)}let T0;if(F9()){let $=GW(X);T0=$;let V=$.agentId||$.agentName||$.teamName,P=$.agentId&&$.agentName&&$.teamName;if(V&&!P)process.stderr.write(k.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
790
- `)),process.exit(1);if($.agentId&&$.agentName&&$.teamName)D6().setDynamicTeamContext?.({agentId:$.agentId,agentName:$.agentName,teamName:$.teamName,color:$.agentColor,planModeRequired:$.planModeRequired??!1,parentSessionId:$.parentSessionId});if($.teammateMode)nX().setCliTeammateModeOverride?.($.teammateMode)}let d9=X.sdkUrl??void 0,IZ=LZ||a(process.env.CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES);if(UZ||a(process.env.CLAUDE_CODE_REMOTE))i3(!0);if(d9){if(!N0)N0="stream-json";if(!A0)A0="stream-json";if(X.verbose===void 0)m9=!0;if(!X.print)PZ=!0}let B0=X.teleport??null,jZ=X.remote,Y9=jZ===!0?"":jZ??null,f1=X.remoteControl??X.rc,DZ=!1,N7=typeof f1==="string"&&f1.length>0?f1:void 0;if(L9){if((X.continue||X.resume)&&!X.forkSession)process.stderr.write(k.red(`Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
791
- `)),process.exit(1);if(!d9){let $=P1(L9);if(!$)process.stderr.write(k.red(`Error: Invalid session ID. Must be a valid UUID.
792
- `)),process.exit(1);if(L5($))process.stderr.write(k.red(`Error: Session ID ${$} is already in use.
793
- `)),process.exit(1)}}let h1=X.file;if(h1&&h1.length>0){let $=A3();if(!$)process.stderr.write(k.red(`Error: Session token required for file downloads. CLAUDE_CODE_SESSION_ACCESS_TOKEN must be set.
794
- `)),process.exit(1);let V=process.env.CLAUDE_CODE_REMOTE_SESSION_ID||x6(),P=C3(h1);if(P.length>0){let I={baseUrl:(w0()?.transport==="anthropic"?w0()?.baseUrl:void 0)||e9().BASE_API_URL,oauthToken:$,sessionId:V};O1=O3(P,I)}}let K0=a0();if(U9&&X.model&&U9===X.model)process.stderr.write(k.red(`Error: Fallback model cannot be the same as the main model. Please specify a different model for --fallback-model.
795
- `)),process.exit(1);let X9=X.systemPrompt;if(X.systemPromptFile){if(X.systemPrompt)process.stderr.write(k.red(`Error: Cannot use both --system-prompt and --system-prompt-file. Please use only one.
796
- `)),process.exit(1);try{let $=S9(X.systemPromptFile);X9=XZ($,"utf8")}catch($){if(Sq($)==="ENOENT")process.stderr.write(k.red(`Error: System prompt file not found: ${S9(X.systemPromptFile)}
797
- `)),process.exit(1);process.stderr.write(k.red(`Error reading system prompt file: ${m($)}
798
- `)),process.exit(1)}}let t=X.appendSystemPrompt;if(X.appendSystemPromptFile){if(X.appendSystemPrompt)process.stderr.write(k.red(`Error: Cannot use both --append-system-prompt and --append-system-prompt-file. Please use only one.
799
- `)),process.exit(1);try{let $=S9(X.appendSystemPromptFile);t=XZ($,"utf8")}catch($){if(Sq($)==="ENOENT")process.stderr.write(k.red(`Error: Append system prompt file not found: ${S9(X.appendSystemPromptFile)}
800
- `)),process.exit(1);process.stderr.write(k.red(`Error reading append system prompt file: ${m($)}
801
- `)),process.exit(1)}}if(F9()&&T0?.agentId&&T0?.agentName&&T0?.teamName){let $=rX().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;t=t?`${t}
802
-
803
- ${$}`:$}let{mode:g0,notification:kZ}=Q5({permissionModeCli:_0,dangerouslySkipPermissions:C});if(l6(g0==="bypassPermissions"),X.enableAutoMode||_0==="auto"||g0==="auto"||!_0&&z5())tX?.setAutoModeFlagCli(!0);let y0={};if(k0&&k0.length>0){let $=k0.map((y)=>y.trim()).filter((y)=>y.length>0),V={},P=[];for(let y of $){let I=null,w=[],c=w1(y);if(c){let A=$3({configObject:c,filePath:"command line",expandVars:!0,scope:"dynamic"});if(A.config)I=A.config.mcpServers;else w=A.errors}else{let A=S9(y),_=B3({filePath:A,expandVars:!0,scope:"dynamic"});if(_.config)I=_.config.mcpServers;else w=_.errors}if(w.length>0)P.push(...w);else if(I)V={...V,...I}}if(P.length>0){let y=P.map((I)=>`${I.path?I.path+": ":""}${I.message}`).join(`
804
- `);N(`--mcp-config validation failed (${P.length} errors): ${y}`,{level:"error"}),process.stderr.write(`Error: Invalid MCP configuration:
805
- ${y}
806
- `),process.exit(1)}if(Object.keys(V).length>0){let y=Object.entries(V).filter(([,_])=>_.type!=="sdk").map(([_])=>_),I=null;if(y.some(Q3))I=`Invalid MCP configuration: "${J3}" is a reserved MCP name.`;if(I)process.stderr.write(`Error: ${I}
807
- `),process.exit(1);let w=g2(V,(_)=>({..._,scope:"dynamic"})),{allowed:c,blocked:A}=iq(w);if(A.length>0)process.stderr.write(`Warning: MCP ${b9(A.length,"server")} blocked by enterprise policy: ${A.join(", ")}
808
- `);y0={...y0,...c}}}let AZ=X;p6(AZ.chrome);let v1=F5(AZ.chrome)&&C2(),T7=!v1&&V9();if(v1){let $=Y1();try{F("tengu_claude_in_chrome_setup",{platform:$});let{mcpConfig:V,allowedTools:P,systemPrompt:y}=JZ();if(y0={...y0,...V},Y0.push(...P),y)t=t?`${y}
809
-
810
- ${t}`:y}catch(V){F("tengu_claude_in_chrome_setup_failed",{platform:$}),N(`[Claude in Chrome] Error: ${V}`),p(V),console.error("Error: Failed to run with Claude in Chrome."),process.exit(1)}}else if(T7)try{let{mcpConfig:$}=JZ();y0={...y0,...$};let V=l3;t=t?`${t}
811
-
812
- ${V}`:V}catch($){N(`[Claude in Chrome] Error (auto-enable): ${$}`)}let p9=X.strictMcpConfig||!1;if(aq()){if(p9)process.stderr.write(k.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(y0&&!K3(y0))process.stderr.write(k.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}n6(P0);let y7,xZ=await Y5({allowedToolsCli:Y0,disallowedToolsCli:b0,baseToolsCli:L0,permissionMode:g0,allowDangerouslySkipPermissions:v,addDirs:P0}),x0=xZ.toolPermissionContext,{warnings:w7,dangerousPermissions:I7,overlyBroadBashPermissions:u1}=xZ;if(I7.length>0)x0=J5(x0);w7.forEach(($)=>{console.error($)}),k3();let OZ=K0&&!p9&&!aq()&&!S0()?Y3().then(($)=>{let{allowed:V,blocked:P}=iq($);if(P.length>0)process.stderr.write(`Warning: claude.ai MCP ${b9(P.length,"server")} blocked by enterprise policy: ${P.join(", ")}
813
- `);return V}):Promise.resolve({});N("[STARTUP] Loading MCP configs...");let j7=Date.now(),D7,k7=(p9||S0()?Promise.resolve({servers:{}}):z3(y0)).then(($)=>{return D7=Date.now()-j7,$});if(N0&&N0!=="text"&&N0!=="stream-json")console.error(`Error: Invalid input format "${N0}".`),process.exit(1);if(N0==="stream-json"&&A0!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(d9){if(N0!=="stream-json"||A0!=="stream-json")console.error("Error: --sdk-url requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(X.replayUserMessages){if(N0!=="stream-json"||A0!=="stream-json")console.error("Error: --replay-user-messages requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(IZ){if(!K0||A0!=="stream-json")bq("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(X.sessionPersistence===!1&&!K0)bq("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);let F0=await zW(W||"",N0??"text");L("action_after_input_prompt"),F1(X);let _9=p3(x0);if(a(process.env.CLAUDE_CODE_COORDINATOR_MODE)){let{applyCoordinatorToolFilter:$}=await import("./toolPool-0.1.9-6b4938vh.mjs");_9=$(_9)}L("action_tools_loaded");let W9;if(e2({isNonInteractiveSession:K0})&&X.jsonSchema)W9=q2(X.jsonSchema);if(W9){let $=q3(W9);if("tool"in $)_9=[..._9,$.tool],F("tengu_structured_output_enabled",{schema_property_count:Object.keys(W9.properties||{}).length,has_required_fields:Boolean(W9.required)});else F("tengu_structured_output_failure",{error:"Invalid JSON schema"})}L("action_before_setup"),N("[STARTUP] Running setup()...");let A7=Date.now(),{setup:x7}=await import("./setup-0.1.9-jc5w6v5s.mjs"),O7=void 0,l9=h9();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")ZQ(),uQ();let C7=x7(l9,g0,v,Q9,g9,wZ,L9?P1(L9):void 0,yZ,O7),CZ=Q9?null:QZ(l9),SZ=Q9?null:pq(l9);CZ?.catch(()=>{}),SZ?.catch(()=>{}),await C7,N(`[STARTUP] setup() completed in ${Date.now()-A7}ms`),L("action_after_setup");let S7=!!X.replayUserMessages;if(a0())h0(),M9(),BZ(),P2();let i9=X.name?.trim();if(i9)P5(i9);let b7=X.model==="default"?f9():X.model,E7=U9==="default"?f9():U9,c1=Q9?h9():l9;N("[STARTUP] Loading commands and agents...");let f7=Date.now(),[a9,bZ]=await Promise.all([CZ??QZ(c1),SZ??pq(c1)]);N(`[STARTUP] Commands and agents loaded in ${Date.now()-f7}ms`),L("action_commands_loaded");let m1=[];if(_Z)try{let $=w1(_Z);if($)m1=a2($,"flagSettings")}catch($){p($)}let EZ=[...bZ.allAgents,...m1],H9={...bZ,allAgents:EZ,activeAgents:i2(EZ)},s9=C1??q9().agent,O;if(s9){if(O=H9.activeAgents.find(($)=>$.agentType===s9),!O)N(`Warning: agent "${s9}" not found. Available agents: ${H9.activeAgents.map(($)=>$.agentType).join(", ")}. Using default behavior.`)}if(s6(O?.agentType),O)F("tengu_agent_flag",{agentType:dq(O)?O.agentType:"custom",...C1&&{source:"cli"}});if(O?.agentType)_5(O.agentType);if(K0&&O&&!X9&&!dq(O)){let $=O.getSystemPrompt();if($)X9=$}if(O?.initialPrompt){if(typeof F0==="string")F0=F0?`${O.initialPrompt}
814
-
815
- ${F0}`:O.initialPrompt;else if(!F0)F0=O.initialPrompt}let P9=b7;if(!P9&&O?.model&&O.model!=="inherit")P9=c0(O.model);R1(P9),b6(y2()||null);let fZ=zZ(),N9=c0(fZ??f9()),d0;if(N1()){let $=T1()?X.advisor:void 0;if($){if(N(`[AdvisorTool] --advisor ${$}`),!G3(N9))process.stderr.write(k.red(`Error: The model "${N9}" does not support the advisor tool.
816
- `)),process.exit(1);let V=w2(c0($));if(!R3(V))process.stderr.write(k.red(`Error: The model "${$}" cannot be used as an advisor.
817
- `)),process.exit(1)}if(d0=T1()?$??V3():$,d0)N(`[AdvisorTool] Advisor model: ${d0}`)}if(F9()&&T0?.agentId&&T0?.agentName&&T0?.teamName&&T0?.agentType){let $=H9.activeAgents.find((V)=>V.agentType===T0.agentType);if($){let V;if($.source==="built-in")N(`[teammate] Built-in agent ${T0.agentType} - skipping custom prompt (not supported)`);else V=$.getSystemPrompt();if($.memory)F("tengu_agent_memory_loaded",{scope:$.memory,source:"teammate"});if(V){let P=`
818
- # Custom Agent Instructions
819
- ${V}`;t=t?`${t}
820
-
821
- ${P}`:P}}else N(`[teammate] Custom agent ${T0.agentType} not found in available agents`)}M1(X);let h,z9,$9;if(!K0){let $=f5(!1);z9=$.getFpsMetrics,$9=$.stats;let{createRoot:V}=await import("./ink-0.1.9-4n2nvw5p.mjs");h=await V($.renderOptions),F("tengu_timer",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let P=Date.now(),y=await E5(h,g0,v,a9,v1,y7);if(y&&W?.trim().toLowerCase()==="/login")W="";if(y)I3(),T3(),D3(),t6(),import("./trustedDevice-0.1.9-xqxt3kmz.mjs").then((w)=>{return w.clearTrustedDeviceToken(),w.enrollTrustedDevice()});try{let{getActiveProviderProfile:w,getProviderProfiles:c}=await import("./providerProfiles-0.1.9-myc8zcfy.mjs");if(!(c().length>0||Boolean(w()))&&!y){let{showSetupDialog:_}=await import("./interactiveHelpers-0.1.9-21a8r4rv.mjs"),{ProviderManager:D}=await import("./ProviderManager-0.1.9-kj6t8003.mjs");await _(h,(o)=>h5.jsxDEV(D,{mode:"first-run",onDone:()=>o()},void 0,!1,void 0,this))}}catch(w){N(`[provider-wizard] auto-wizard failed: ${w instanceof Error?w.message:String(w)}`)}try{let{isFullscreenEnvEnabled:w}=await import("./fullscreen-0.1.9-xy9bnpe3.mjs"),{tryGetActiveProvider:c}=await import("./activeProvider-0.1.9-kbwwatt3.mjs");if(!w()&&c()){let{printStartupScreen:A}=await import("./StartupScreen-0.1.9-jgk08xvj.mjs"),{eagerParseCliFlag:_}=await import("./cliArgs-0.1.9-kckasx4h.mjs");A(_("--model"))}}catch(w){N(`[startup-banner] deferred print failed: ${w instanceof Error?w.message:String(w)}`)}let I=await vq();if(!I.valid)await D0(h,I.message)}if(process.exitCode!==void 0){N("Graceful shutdown initiated, skipping further initialization");return}if(v3())u3();if(!K0){let{errors:$}=U2(),V=$.filter((y)=>!y.mcpErrorMetadata),P=w0()?.transport;if(V.length>0&&P!=="openai_compat"&&P!=="codex_responses"&&P!=="github_copilot")await tJ(h,{settingsErrors:V,onExit:()=>v0(1)})}let g1=U1("tengu_cicada_nap_ms",0),r9=E().startupPrefetchedAt??0,h7=S0()||g1>0&&Date.now()-r9<g1;if(B5(),!h7){let $=r9>0?` last ran ${Math.round((Date.now()-r9)/1000)}s ago`:"";if(N(`Starting background startup prefetches${$}`),s2().catch((V)=>p(V)),M5(),V5(),!U1("tengu_miraculo_the_bard",!1))T2();else hq();if(g1>0)f((V)=>({...V,startupPrefetchedAt:Date.now()}))}else N(`Skipping startup prefetches, last ran ${Math.round((Date.now()-r9)/1000)}s ago`),hq();if(!K0)D5();let{servers:v7}=await k7,hZ={...v7,...y0},vZ={},B9={};for(let[$,V]of Object.entries(hZ)){let P=V;if(P.type==="sdk")vZ[$]=P;else B9[$]=P}L("action_mcp_configs_loaded");let u7=K0?Promise.resolve({clients:[],tools:[],commands:[]}):qZ(B9),c7=K0?Promise.resolve({clients:[],tools:[],commands:[]}):OZ.then(($)=>Object.keys($).length>0?qZ($):{clients:[],tools:[],commands:[]}),m7=Promise.all([u7,c7]).then(([$,V])=>({clients:[...$.clients,...V.clients],tools:E9([...$.tools,...V.tools],"name"),commands:E9([...$.commands,...V.commands],"name")})),uZ=S1||NZ||TZ||K0||X.continue||X.resume?null:y1("startup",{agentType:O?.agentType,model:N9}),n9=[];m7.catch(()=>{});let cZ=[],mZ=[],gZ=[],K9=l2(),E0=K9!==!1?{type:"adaptive"}:{type:"disabled"};if(X.thinking==="adaptive"||X.thinking==="enabled")K9=!0,E0={type:"adaptive"};else if(X.thinking==="disabled")K9=!1,E0={type:"disabled"};else{let $=process.env.MAX_THINKING_TOKENS?parseInt(process.env.MAX_THINKING_TOKENS,10):X.maxThinkingTokens;if($!==void 0){if($>0)K9=!0,E0={type:"enabled",budgetTokens:$};else if($===0)K9=!1,E0={type:"disabled"}}}if(H0("info","started",{version:"99.0.0",is_native_binary:G2()}),w9(async()=>{H0("info","exited")}),BW({hasInitialPrompt:Boolean(W),hasStdin:Boolean(F0),verbose:m9,debug:U,debugToStderr:j,print:PZ??!1,outputFormat:A0??"text",inputFormat:N0??"text",numAllowedTools:Y0.length,numDisallowedTools:b0.length,mcpClientCount:Object.keys(hZ).length,worktreeEnabled:Q9,skipWebFetchPreflight:q9().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:C??!1,permissionMode:g0,modeIsBypass:g0==="bypassPermissions",allowDangerouslySkipPermissionsPassed:v,systemPromptFlag:X9?X.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:t?X.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:E0,assistantActivationPath:void 0}),Z5(B9,x0),oX(),m3().then(($)=>{if(!$)return;if(i9)g3(i9);d3().then((V)=>{if(V>=2)F("tengu_concurrent_sessions",{num_sessions:V})})}),S0());else if(K0)await oq(),L("action_after_plugins_init"),tq().then(()=>rq());else oq().then(async()=>{L("action_after_plugins_init"),await tq(),rq()});let dZ=S1||NZ?"init":TZ?"maintenance":null;if(S1){h0(),await x3("init",{forceSyncExecution:!0}),await y1("startup",{forceSyncExecution:!0}),v0(0);return}if(K0){if(A0==="stream-json"||A0==="json")X2(!0);h0(),q1();let $=X.continue||X.resume||B0||dZ?void 0:y1("startup");$?.catch(()=>{}),L("before_validateForceLoginOrg");let V=await vq();if(!V.valid)process.stderr.write(V.message+`
822
- `),process.exit(1);let P=b1?[]:a9.filter((x)=>x.type==="prompt"&&!x.disableNonInteractive||x.type==="local"&&x.supportsNonInteractive),y=o2(),I={...y,mcp:{...y.mcp,clients:cZ,commands:gZ,tools:mZ},toolPermissionContext:x0,effortValue:mq(X.effort)??gq(),...N2()&&{fastMode:fq(P9??null)},...N1()&&d0&&{advisorModel:d0},...{}},w=v2(I,u9);if(x0.mode==="bypassPermissions"||v)H5(x0);if(X5(x0,w.getState().fastMode).then(({updateContext:x})=>{w.setState((X0)=>{let g=x(X0.toolPermissionContext);if(g===X0.toolPermissionContext)return X0;return{...X0,toolPermissionContext:g}})}),X.sessionPersistence===!1)i6(!0);f6(D2(MZ));let c=(x,X0)=>{if(Object.keys(x).length===0)return Promise.resolve();return w.setState((g)=>({...g,mcp:{...g.mcp,clients:[...g.mcp.clients,...Object.entries(x).map(([W0,n])=>({name:W0,type:"pending",config:n}))]}})),e3(({client:g,tools:W0,commands:n})=>{w.setState((b)=>({...b,mcp:{...b.mcp,clients:b.mcp.clients.some((e)=>e.name===g.name)?b.mcp.clients.map((e)=>e.name===g.name?g:e):[...b.mcp.clients,g],tools:E9([...b.mcp.tools,...W0],"name"),commands:E9([...b.mcp.commands,...n],"name")}}))},x).catch((g)=>N(`[MCP] ${X0} connect error: ${g}`))};L("before_connectMcp"),await c(B9,"regular"),L("after_connectMcp");let A=5000,_=OZ.then((x)=>{if(Object.keys(x).length>0){let W0=new Set;for(let b of Object.values(x)){let e=lq(b);if(e)W0.add(e)}let n=new Set;for(let[b,e]of Object.entries(B9)){if(!b.startsWith("plugin:"))continue;let f0=lq(e);if(f0&&W0.has(f0))n.add(b)}if(n.size>0){N(`[MCP] Lazy dedup: suppressing ${n.size} plugin server(s) that duplicate claude.ai connectors: ${[...n].join(", ")}`);for(let b of w.getState().mcp.clients){if(!n.has(b.name)||b.type!=="connected")continue;b.client.onclose=void 0,o3(b.name,b.config).catch(()=>{})}w.setState((b)=>{let{clients:e,tools:f0,commands:y9,resources:G9}=b.mcp;e=e.filter((p0)=>!n.has(p0.name)),f0=f0.filter((p0)=>!p0.mcpInfo||!n.has(p0.mcpInfo.serverName));for(let p0 of n)y9=X3(y9,p0),G9=W3(G9,p0);return{...b,mcp:{...b.mcp,clients:e,tools:f0,commands:y9,resources:G9}}})}}let X0=A6(B9,(W0,n)=>!n.startsWith("plugin:")),{servers:g}=H3(x,X0);return c(g,"claudeai")}),D,o=await Promise.race([_.then(()=>!1),new Promise((x)=>{D=setTimeout((X0)=>X0(!0),A,x)})]);if(D)clearTimeout(D);if(o)N(`[MCP] claude.ai connectors not ready after ${A}ms — proceeding; background connection continues`);if(L("after_connectMcp_claudeai"),!S0())KZ(),import("./backgroundHousekeeping-0.1.9-jjbqckpm.mjs").then((x)=>x.startBackgroundHousekeeping());k6(),L("before_print_import");let{runHeadless:l}=await import("./print-0.1.9-z151tvas.mjs");L("after_print_import"),l(F0,()=>w.getState(),w.setState,P,_9,vZ,H9.activeAgents,{continue:X.continue,resume:X.resume,verbose:m9,outputFormat:A0,jsonSchema:W9,permissionPromptToolName:X.permissionPromptTool,allowedTools:Y0,thinkingConfig:E0,maxTurns:X.maxTurns,maxBudgetUsd:X.maxBudgetUsd,taskBudget:X.taskBudget?{total:X.taskBudget}:void 0,systemPrompt:X9,appendSystemPrompt:t,userSpecifiedModel:P9,fallbackModel:E7,teleport:B0,sdkUrl:d9,replayUserMessages:S7,includePartialMessages:IZ,forkSession:X.forkSession||!1,resumeSessionAt:X.resumeSessionAt||void 0,rewindFiles:X.rewindFiles,enableAuthStatus:X.enableAuthStatus,agent:C1,workload:X.workload,setupTrigger:dZ??void 0,sessionStartHooksPromise:$});return}F("tengu_startup_manual_model_config",{cli_flag:X.model,env_var:w0()?.model,settings_file:(q9()||{}).model,subscriptionType:S2(),agent:s9});let pZ=C5(N9),t9=[];if(kZ)t9.push({key:"permission-mode-notification",text:kZ,priority:"high"});if(pZ)t9.push({key:"model-deprecation-warning",text:pZ,color:"warning",priority:"high"});if(u1.length>0){let $=Eq(u1.map((I)=>I.ruleDisplay)),V=$.join(", "),P=Eq(u1.map((I)=>I.sourceDisplay)).join(", "),y=$.length;t9.push({key:"overly-broad-bash-notification",text:`${V} allow ${b9(y,"rule")} from ${P} ${b9(y,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let g7={...x0,mode:F9()&&D6().isPlanModeRequired()?"plan":x0.mode},d7=!1,p7=DZ||L2()||G,lZ=!1,T9={settings:q9(),tasks:{},agentNameRegistry:new Map,verbose:m9??E().verbose??!1,mainLoopModel:fZ,mainLoopModelForSession:null,isBriefOnly:d7,expandedView:E().showSpinnerTree?"teammates":E().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:F9()?!1:void 0,selectedIPAgentIndex:-1,coordinatorTaskIndex:-1,viewSelectionMode:"none",footerSelection:null,toolPermissionContext:g7,agent:O?.agentType,agentDefinitions:H9,mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:0},plugins:{enabled:[],disabled:[],commands:[],errors:[],installationStatus:{marketplaces:[],plugins:[]},needsRefresh:!1},statusLineText:void 0,kairosEnabled:G,remoteSessionUrl:void 0,remoteConnectionStatus:"connecting",remoteBackgroundTaskCount:0,replBridgeEnabled:p7||lZ,replBridgeExplicit:DZ,replBridgeOutboundOnly:lZ,replBridgeConnected:!1,replBridgeSessionActive:!1,replBridgeReconnecting:!1,replBridgeConnectUrl:void 0,replBridgeSessionUrl:void 0,replBridgeEnvironmentId:void 0,replBridgeSessionId:void 0,replBridgeError:void 0,replBridgeInitialName:N7,showRemoteCallout:!1,notifications:{current:null,queue:t9},elicitation:{queue:[]},todos:{},remoteAgentTaskSuggestions:[],fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},attribution:n2(),thinkingEnabled:K9,promptSuggestionEnabled:r2(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:t2,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:F0?{message:eq({content:String(F0)})}:null,effortValue:mq(X.effort)??gq(),activeOverlays:new Set,fastMode:fq(N9),...N1()&&d0&&{advisorModel:d0},teamContext:A5?.()};if(F0)$5(String(F0));let l7=mZ;f(($)=>({...$,numStartups:($.numStartups??0)+1})),setImmediate(()=>{ZW(),k6()});let iZ=null,o9={debug:U||j,commands:[...a9,...gZ],initialTools:l7,mcpClients:cZ,autoConnectIdeFlag:x1,mainThreadAgentDefinition:O,disableSlashCommands:b1,dynamicMcpConfig:y0,strictMcpConfig:p9,systemPrompt:X9,appendSystemPrompt:t,taskListId:P7,thinkingConfig:E0,...iZ&&{onTurnComplete:($)=>{iZ.then((V)=>V?.($))}}},aZ={modeApi:WZ,mainThreadAgentDefinition:O,agentDefinitions:H9,currentCwd:c1,cliAgents:m1,initialState:T9};if(X.continue){let $=!1;try{let V=performance.now(),{clearSessionCaches:P}=await import("./caches-0.1.9-d6cndrra.mjs");P();let y=await sq(void 0,void 0);if(!y)return F("tengu_continue",{success:!1}),await D0(h,"No conversation found to continue");let I=await YZ(y,{forkSession:!!X.forkSession,includeAttribution:!0,transcriptPath:y.fullPath},aZ);if(I.restoredAgentDef)O=I.restoredAgentDef;F1(X),M1(X),F("tengu_continue",{success:!0,resume_duration_ms:Math.round(performance.now()-V)}),$=!0,await D9(h,{getFpsMetrics:z9,stats:$9,initialState:I.initialState},{...o9,mainThreadAgentDefinition:I.restoredAgentDef??O,initialMessages:I.messages,initialFileHistorySnapshots:I.fileHistorySnapshots,initialContentReplacements:I.contentReplacements,initialAgentName:I.agentName,initialAgentColor:I.agentColor},t0)}catch(V){if(!$)F("tengu_continue",{success:!1});return p(V),await D0(h,m(V),()=>U0(1))}}else if(X.resume||X.fromPr||B0||Y9!==null){let{clearSessionCaches:$}=await import("./caches-0.1.9-d6cndrra.mjs");$();let V=null,P=void 0,y=P1(X.resume),I=void 0,w=null,c=void 0;if(X.fromPr){if(X.fromPr===!0)c=!0;else if(typeof X.fromPr==="string")c=X.fromPr}if(X.resume&&typeof X.resume==="string"&&!y){let _=X.resume.trim();if(_){let D=await y5(_,{exact:!0});if(D.length===1)w=D[0],y=T5(w)??null;else I=_}}if(Y9!==null||B0){if(await _3(),!P3("allow_remote_sessions"))return await D0(h,"Error: Remote sessions are disabled by your organization's policy.",()=>U0(1))}if(Y9!==null){let _=Y9.length>0,D=U1("tengu_remote_backend",!1);if(!D&&!_)return await D0(h,`Error: --remote requires a description.
823
- Usage: claude --remote "your task description"`,()=>U0(1));F("tengu_remote_create_session",{has_initial_prompt:String(_)});let o=await W2(),l=await h3(h,_?Y9:null,new AbortController().signal,o||void 0);if(!l)return F("tengu_remote_create_session_error",{error:"unable_to_create_session"}),await D0(h,"Error: Unable to create remote session",()=>U0(1));if(F("tengu_remote_create_session_success",{session_id:l.id}),!D)process.stdout.write(`Created remote session: ${l.title}
824
- `),process.stdout.write(`View: ${cq(l.id)}?m=0
825
- `),process.stdout.write(`Resume with: claude --teleport ${l.id}
826
- `),await U0(0),process.exit(0);r6(!0),O6(Z3(l.id));let x;try{x=await F3()}catch(G9){return p(e6(G9)),await D0(h,`Error: ${m(G9)||"Failed to authenticate"}`,()=>U0(1))}let{getClaudeAIOAuthTokens:X0}=await import("./auth-0.1.9-rqfx3vqa.mjs"),g=()=>X0()?.accessToken??x.accessToken,W0=k5(l.id,g,x.orgUUID,_),n=`${cq(l.id)}?m=0`,b=n3(`/remote-control is active. Code in CLI or at ${n}`,"info"),e=_?eq({content:Y9}):null,f0={...T9,remoteSessionUrl:n},y9=U5(a9);await D9(h,{getFpsMetrics:z9,stats:$9,initialState:f0},{debug:U||j,commands:y9,initialTools:[],initialMessages:e?[b,e]:[b],mcpClients:[],autoConnectIdeFlag:x1,mainThreadAgentDefinition:O,disableSlashCommands:b1,remoteSessionConfig:W0,thinkingConfig:E0},t0);return}else if(B0){if(B0===!0||B0===""){F("tengu_teleport_interactive_mode",{}),N("selectAndResumeTeleportTask: Starting teleport flow...");let _=await oJ(h);if(!_)await U0(0),process.exit(0);let{branchError:D}=await E3(_.branch);V=b3(_.log,D)}else if(typeof B0==="string"){F("tengu_teleport_resume_session",{mode:"direct"});try{let _=await M3(B0),D=await f3(_);if(D.status==="mismatch"||D.status==="not_in_repo"){let x=D.sessionRepo;if(x){let X0=S5(x),g=await b5(X0);if(g.length>0){let W0=await eJ(h,{targetRepo:x,initialPaths:g});if(W0)process.chdir(W0),c3(W0),S6(W0);else await U0(0)}else throw new L1(`You must run claude --teleport ${B0} from a checkout of ${x}.`,k.red(`You must run claude --teleport ${B0} from a checkout of ${k.bold(x)}.
827
- `))}}else if(D.status==="error")throw new L1(D.errorMessage||"Failed to validate session",k.red(`Error: ${D.errorMessage||"Failed to validate session"}
828
- `));await S3();let{teleportWithProgress:o}=await import("./TeleportProgress-0.1.9-pnqkmgap.mjs"),l=await o(h,B0);a6({sessionId:B0}),V=l.messages}catch(_){if(_ instanceof L1)process.stderr.write(_.formattedMessage+`
829
- `);else p(_),process.stderr.write(k.red(`Error: ${m(_)}
830
- `));await U0(1)}}}if(y){let _=y;try{let D=performance.now(),o=await sq(w??_,void 0);if(!o)return F("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),await D0(h,`No conversation found with session ID: ${_}`);let l=w?.fullPath??o.fullPath;if(P=await YZ(o,{forkSession:!!X.forkSession,sessionIdOverride:_,transcriptPath:l},aZ),P.restoredAgentDef)O=P.restoredAgentDef;F("tengu_session_resumed",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-D)})}catch(D){F("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),p(D),await D0(h,m(D))}}if(O1)try{let _=await O1,D=z2(_,(o)=>!o.success);if(D>0)process.stderr.write(k.yellow(`Warning: ${D}/${_.length} file(s) failed to download.
831
- `))}catch(_){return await D0(h,`Error downloading files: ${m(_)}`)}let A=P??(Array.isArray(V)?{messages:V,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:O,initialState:T9,contentReplacements:void 0}:void 0);if(A)F1(X),M1(X),await D9(h,{getFpsMetrics:z9,stats:$9,initialState:A.initialState},{...o9,mainThreadAgentDefinition:A.restoredAgentDef??O,initialMessages:A.messages,initialFileHistorySnapshots:A.fileHistorySnapshots,initialContentReplacements:A.contentReplacements,initialAgentName:A.agentName,initialAgentColor:A.agentColor},t0);else await qQ(h,{getFpsMetrics:z9,stats:$9,initialState:T9},G5(C6()),{...o9,initialSearchQuery:I,forkSession:X.forkSession,filterByPr:c})}else{let $=uZ&&n9.length===0?uZ:void 0;L("action_after_hooks"),F1(X),M1(X),N5(WZ?.isCoordinatorMode()?"coordinator":"normal");let V=null,P=V?[V,...n9]:n9.length>0?n9:void 0;await D9(h,{getFpsMetrics:z9,stats:$9,initialState:T9},{...o9,initialMessages:P,pendingHookMessages:$},t0)}}).version("0.1.9 (Claudio)","-v, --version","Output the version number"),Z.option("-w, --worktree [name]","Create a new git worktree for this session (optionally specify a name)"),Z.option("--tmux","Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux."),T1())Z.addOption(new T("--advisor <model>","Enable the server-side advisor tool with the specified model (alias or full ID).").hideHelp());Z.addOption(new T("--enable-auto-mode","Opt in to auto mode").hideHelp()),Z.addOption(new T("--agent-id <id>","Teammate agent ID").hideHelp()),Z.addOption(new T("--agent-name <name>","Teammate display name").hideHelp()),Z.addOption(new T("--team-name <name>","Team name for swarm coordination").hideHelp()),Z.addOption(new T("--agent-color <color>","Teammate UI color").hideHelp()),Z.addOption(new T("--plan-mode-required","Require plan mode before implementation").hideHelp()),Z.addOption(new T("--parent-session-id <id>","Parent session ID for analytics correlation").hideHelp()),Z.addOption(new T("--teammate-mode <mode>",'How to spawn teammates: "tmux", "in-process", or "auto"').choices(["auto","tmux","in-process"]).hideHelp()),Z.addOption(new T("--agent-type <type>","Custom agent type for this teammate").hideHelp()),Z.addOption(new T("--sdk-url <url>","Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)").hideHelp()),Z.addOption(new T("--teleport [session]","Resume a teleport session, optionally specify session ID").hideHelp()),Z.addOption(new T("--remote [description]","Create a remote session with the given description").hideHelp()),L("run_main_options_built");let J=process.argv.includes("-p")||process.argv.includes("--print"),Q=process.argv.some((W)=>W.startsWith("cc://")||W.startsWith("cc+unix://"));if(J&&!Q)return L("run_before_parse"),await Z.parseAsync(process.argv),L("run_after_parse"),Z;let Y=Z.command("mcp").description("Configure and manage MCP servers").configureHelp(q()).enablePositionalOptions();if(Y.command("serve").description("Start the Claude Code MCP server").option("-d, --debug","Enable debug mode",()=>!0).option("--verbose","Override verbose mode setting from config",()=>!0).action(async({debug:W,verbose:X})=>{let{mcpServeHandler:G}=await import("./mcp-0.1.9-14beee71.mjs");await G({debug:W,verbose:X})}),tQ(Y),oQ(Y),x9())J6(Y);Y.command("remove <name>").description("Remove an MCP server").option("-s, --scope <scope>","Configuration scope (local, user, or project) - if not specified, removes from whichever scope it exists in").action(async(W,X)=>{let{mcpRemoveHandler:G}=await import("./mcp-0.1.9-14beee71.mjs");await G(W,X)}),Y.command("list").description("List configured MCP servers. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async()=>{let{mcpListHandler:W}=await import("./mcp-0.1.9-14beee71.mjs");await W()}),Y.command("get <name>").description("Get details about an MCP server. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async(W)=>{let{mcpGetHandler:X}=await import("./mcp-0.1.9-14beee71.mjs");await X(W)}),Y.command("add-json <name> <json>").description("Add an MCP server (stdio or SSE) with a JSON string").option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").option("--client-secret","Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").action(async(W,X,G)=>{let{mcpAddJsonHandler:M}=await import("./mcp-0.1.9-14beee71.mjs");await M(W,X,G)}),Y.command("add-from-claude-desktop").description("Import MCP servers from Claude Desktop (Mac and WSL only)").option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").action(async(W)=>{let{mcpAddFromDesktopHandler:X}=await import("./mcp-0.1.9-14beee71.mjs");await X(W)}),Y.command("reset-project-choices").description("Reset all approved and rejected project-scoped (.mcp.json) servers within this project").action(async()=>{let{mcpResetChoicesHandler:W}=await import("./mcp-0.1.9-14beee71.mjs");await W()});let H=Z.command("auth").description("Manage authentication").configureHelp(q());H.command("login").description("Sign in to your Anthropic account").option("--email <email>","Pre-populate email address on the login page").option("--sso","Force SSO login flow").option("--console","Use Anthropic Console (API usage billing) instead of Claude subscription").option("--claudeai","Use Claude subscription (default)").action(async({email:W,sso:X,console:G,claudeai:M})=>{let{authLogin:U}=await import("./auth-0.1.9-1c12xrxs.mjs");await U({email:W,sso:X,console:G,claudeai:M})}),H.command("status").description("Show authentication status").option("--json","Output as JSON (default)").option("--text","Output as human-readable text").action(async(W)=>{let{authStatus:X}=await import("./auth-0.1.9-1c12xrxs.mjs");await X(W)}),H.command("logout").description("Log out from your Anthropic account").action(async()=>{let{authLogout:W}=await import("./auth-0.1.9-1c12xrxs.mjs");await W()});let B=()=>new T("--cowork","Use cowork_plugins directory").hideHelp(),z=Z.command("plugin").alias("plugins").description("Manage Claude Code plugins").configureHelp(q());z.command("validate <path>").description("Validate a plugin or marketplace manifest").addOption(B()).action(async(W,X)=>{let{pluginValidateHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),z.command("list").description("List installed plugins").option("--json","Output as JSON").option("--available","Include available plugins from marketplaces (requires --json)").addOption(B()).action(async(W)=>{let{pluginListHandler:X}=await import("./plugins-0.1.9-grc1bgmj.mjs");await X(W)});let K=z.command("marketplace").description("Manage Claude Code marketplaces").configureHelp(q());if(K.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").addOption(B()).option("--sparse <paths...>","Limit checkout to specific directories via git sparse-checkout (for monorepos). Example: --sparse .claude-plugin plugins").option("--scope <scope>","Where to declare the marketplace: user (default), project, or local").action(async(W,X)=>{let{marketplaceAddHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),K.command("list").description("List all configured marketplaces").option("--json","Output as JSON").addOption(B()).action(async(W)=>{let{marketplaceListHandler:X}=await import("./plugins-0.1.9-grc1bgmj.mjs");await X(W)}),K.command("remove <name>").alias("rm").description("Remove a configured marketplace").addOption(B()).action(async(W,X)=>{let{marketplaceRemoveHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),K.command("update [name]").description("Update marketplace(s) from their source - updates all if no name specified").addOption(B()).action(async(W,X)=>{let{marketplaceUpdateHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),z.command("install <plugin>").alias("i").description("Install a plugin from available marketplaces (use plugin@marketplace for specific marketplace)").option("-s, --scope <scope>","Installation scope: user, project, or local","user").addOption(B()).action(async(W,X)=>{let{pluginInstallHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),z.command("uninstall <plugin>").alias("remove").alias("rm").description("Uninstall an installed plugin").option("-s, --scope <scope>","Uninstall from scope: user, project, or local","user").option("--keep-data","Preserve the plugin's persistent data directory (~/.claude/plugins/data/{id}/)").addOption(B()).action(async(W,X)=>{let{pluginUninstallHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),z.command("enable <plugin>").description("Enable a disabled plugin").option("-s, --scope <scope>",`Installation scope: ${ZZ.join(", ")} (default: auto-detect)`).addOption(B()).action(async(W,X)=>{let{pluginEnableHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),z.command("disable [plugin]").description("Disable an enabled plugin").option("-a, --all","Disable all enabled plugins").option("-s, --scope <scope>",`Installation scope: ${ZZ.join(", ")} (default: auto-detect)`).addOption(B()).action(async(W,X)=>{let{pluginDisableHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),z.command("update <plugin>").description("Update a plugin to the latest version (restart required to apply)").option("-s, --scope <scope>",`Installation scope: ${R5.join(", ")} (default: user)`).addOption(B()).action(async(W,X)=>{let{pluginUpdateHandler:G}=await import("./plugins-0.1.9-grc1bgmj.mjs");await G(W,X)}),Z.command("setup-token").description("Set up a long-lived authentication token (requires Claude subscription)").action(async()=>{let[{setupTokenHandler:W},{createRoot:X}]=await Promise.all([import("./util-0.1.9-kdhggd68.mjs"),import("./ink-0.1.9-4n2nvw5p.mjs")]),G=await X(v9(!1));await W(G)}),Z.command("agents").description("List configured agents").option("--setting-sources <sources>","Comma-separated list of setting sources to load (user, project, local).").action(async()=>{let{agentsHandler:W}=await import("./agents-0.1.9-yr85gwa8.mjs");await W(),process.exit(0)}),W5()!=="disabled"){let W=Z.command("auto-mode").description("Inspect auto mode classifier configuration");W.command("defaults").description("Print the default auto mode environment, allow, and deny rules as JSON").action(async()=>{let{autoModeDefaultsHandler:X}=await import("./autoMode-0.1.9-s92asycq.mjs");X(),process.exit(0)}),W.command("config").description("Print the effective auto mode config as JSON: your settings where set, defaults otherwise").action(async()=>{let{autoModeConfigHandler:X}=await import("./autoMode-0.1.9-s92asycq.mjs");X(),process.exit(0)}),W.command("critique").description("Get AI feedback on your custom auto mode rules").option("--model <model>","Override which model is used").action(async(X)=>{let{autoModeCritiqueHandler:G}=await import("./autoMode-0.1.9-s92asycq.mjs");await G(X),process.exit()})}return Z.command("doctor").description("Check the health of your Claude Code auto-updater. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async()=>{let[{doctorHandler:W},{createRoot:X}]=await Promise.all([import("./util-0.1.9-kdhggd68.mjs"),import("./ink-0.1.9-4n2nvw5p.mjs")]),G=await X(v9(!1));await W(G)}),Z.command("update").alias("upgrade").description("Check for updates and install if available").action(async()=>{let{update:W}=await import("./update-0.1.9-8dntd8kh.mjs");await W()}),Z.command("install [target]").description("Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version)").option("--force","Force installation even if already installed").action(async(W,X)=>{let{installHandler:G}=await import("./util-0.1.9-kdhggd68.mjs");await G(W,X)}),L("run_before_parse"),await Z.parseAsync(process.argv),L("run_after_parse"),L("main_after_run"),$2(),Z}async function BW({hasInitialPrompt:q,hasStdin:Z,verbose:J,debug:Q,debugToStderr:Y,print:H,outputFormat:B,inputFormat:z,numAllowedTools:K,numDisallowedTools:W,mcpClientCount:X,worktreeEnabled:G,skipWebFetchPreflight:M,githubActionInputs:U,dangerouslySkipPermissionsPassed:j,permissionMode:C,modeIsBypass:v,allowDangerouslySkipPermissionsPassed:L0,systemPromptFlag:Y0,appendSystemPromptFlag:b0,thinkingConfig:k0,assistantActivationPath:_0}){try{F("tengu_init",{entrypoint:"claude",hasInitialPrompt:q,hasStdin:Z,verbose:J,debug:Q,debugToStderr:Y,print:H,outputFormat:B,inputFormat:z,numAllowedTools:K,numDisallowedTools:W,mcpClientCount:X,worktree:G,skipWebFetchPreflight:M,...U&&{githubActionInputs:U},dangerouslySkipPermissionsPassed:j,permissionMode:C,modeIsBypass:v,inProtectedNamespace:o6(),allowDangerouslySkipPermissionsPassed:L0,thinkingType:k0.type,...Y0&&{systemPromptFlag:Y0},...b0&&{appendSystemPromptFlag:b0},is_simple:S0()||void 0,is_coordinator:WZ?.isCoordinatorMode()?!0:void 0,..._0&&{assistantActivationPath:_0},autoUpdatesChannel:q9().autoUpdatesChannel??"latest"})}catch(P0){p(P0)}}function F1(q){}function M1(q){return}function KW(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(f2)}function GW(q){if(typeof q!=="object"||q===null)return{};let Z=q,J=Z.teammateMode;return{agentId:typeof Z.agentId==="string"?Z.agentId:void 0,agentName:typeof Z.agentName==="string"?Z.agentName:void 0,teamName:typeof Z.teamName==="string"?Z.teamName:void 0,agentColor:typeof Z.agentColor==="string"?Z.agentColor:void 0,planModeRequired:typeof Z.planModeRequired==="boolean"?Z.planModeRequired:void 0,parentSessionId:typeof Z.parentSessionId==="string"?Z.parentSessionId:void 0,teammateMode:J==="auto"||J==="tmux"||J==="in-process"?J:void 0,agentType:typeof Z.agentType==="string"?Z.agentType:void 0}}$Z();d1();yW();Q0();q0();RW();m5();var d5=d(RZ(),1);u5();var c5=d(RZ(),1),GZ=d(Z0(),1);function D1(){let q=c5.c(1),Z;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Z=GZ.jsxDEV(j1,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",GZ.jsxDEV(v5,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),q[0]=Z;else Z=q[0];return Z}var k1=d(Z0(),1);function p5(q){let Z=d5.c(13),{serverName:J,onDone:Q}=q,Y;if(Z[0]!==Q||Z[1]!==J)Y=function(U){F("tengu_mcp_dialog_choice",{choice:U});q:switch(U){case"yes":case"yes_all":{let C=(m0()||{}).enabledMcpjsonServers||[];if(!C.includes(J))S("localSettings",{enabledMcpjsonServers:[...C,J]});if(U==="yes_all")S("localSettings",{enableAllProjectMcpServers:!0});Q();break q}case"no":{let C=(m0()||{}).disabledMcpjsonServers||[];if(!C.includes(J))S("localSettings",{disabledMcpjsonServers:[...C,J]});Q()}}},Z[0]=Q,Z[1]=J,Z[2]=Y;else Y=Z[2];let H=Y,B=`New MCP server found in .mcp.json: ${J}`,z;if(Z[3]!==H)z=()=>H("no"),Z[3]=H,Z[4]=z;else z=Z[4];let K;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))K=k1.jsxDEV(D1,{},void 0,!1,void 0,this),Z[5]=K;else K=Z[5];let W;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],Z[6]=W;else W=Z[6];let X;if(Z[7]!==H)X=k1.jsxDEV(g5,{options:W,onChange:(M)=>H(M),onCancel:()=>H("no")},void 0,!1,void 0,this),Z[7]=H,Z[8]=X;else X=Z[8];let G;if(Z[9]!==B||Z[10]!==z||Z[11]!==X)G=k1.jsxDEV(A1,{title:B,color:"warning",onCancel:z,children:[K,X]},void 0,!0,void 0,this),Z[9]=B,Z[10]=z,Z[11]=X,Z[12]=G;else G=Z[12];return G}LW();Q0();u5();q0();FW();UW();MW();m5();VW();var n5=d(RZ(),1);var V0=d(Z0(),1);function t5(q){let Z=n5.c(21),{serverNames:J,onDone:Q}=q,Y;if(Z[0]!==Q||Z[1]!==J)Y=function(v){let L0=m0()||{},Y0=L0.enabledMcpjsonServers||[],b0=L0.disabledMcpjsonServers||[],[k0,_0]=r5(J,(P0)=>v.includes(P0));if(F("tengu_mcp_multidialog_choice",{approved:k0.length,rejected:_0.length}),k0.length>0){let P0=[...new Set([...Y0,...k0])];S("localSettings",{enabledMcpjsonServers:P0})}if(_0.length>0){let P0=[...new Set([...b0,..._0])];S("localSettings",{disabledMcpjsonServers:P0})}Q()},Z[0]=Q,Z[1]=J,Z[2]=Y;else Y=Z[2];let H=Y,B;if(Z[3]!==Q||Z[4]!==J)B=()=>{let v=(m0()||{}).disabledMcpjsonServers||[],L0=[...new Set([...v,...J])];S("localSettings",{disabledMcpjsonServers:L0}),Q()},Z[3]=Q,Z[4]=J,Z[5]=B;else B=Z[5];let z=B,K=`${J.length} new MCP servers found in .mcp.json`,W;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))W=V0.jsxDEV(D1,{},void 0,!1,void 0,this),Z[6]=W;else W=Z[6];let X;if(Z[7]!==J)X=J.map(_W),Z[7]=J,Z[8]=X;else X=Z[8];let G;if(Z[9]!==z||Z[10]!==H||Z[11]!==J||Z[12]!==X)G=V0.jsxDEV(s5,{options:X,defaultValue:J,onSubmit:H,onCancel:z,hideIndexes:!0},void 0,!1,void 0,this),Z[9]=z,Z[10]=H,Z[11]=J,Z[12]=X,Z[13]=G;else G=Z[13];let M;if(Z[14]!==z||Z[15]!==K||Z[16]!==G)M=V0.jsxDEV(A1,{title:K,subtitle:"Select any you wish to enable.",color:"warning",onCancel:z,hideInputGuide:!0,children:[W,G]},void 0,!0,void 0,this),Z[14]=z,Z[15]=K,Z[16]=G,Z[17]=M;else M=Z[17];let U;if(Z[18]===Symbol.for("react.memo_cache_sentinel"))U=V0.jsxDEV(l5,{paddingX:1,children:V0.jsxDEV(j1,{dimColor:!0,italic:!0,children:V0.jsxDEV(a5,{children:[V0.jsxDEV(VZ,{shortcut:"Space",action:"select"},void 0,!1,void 0,this),V0.jsxDEV(VZ,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),V0.jsxDEV(i5,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[18]=U;else U=Z[18];let j;if(Z[19]!==M)j=V0.jsxDEV(V0.Fragment,{children:[M,U]},void 0,!0,void 0,this),Z[19]=M,Z[20]=j;else j=Z[20];return j}function _W(q){return{label:q,value:q}}Qq();q7();Mq();Fq();var J9=d(Z0(),1);async function Z7(q){let{servers:Z}=e5("project"),J=Object.keys(Z).filter((Q)=>o5(Q)==="pending");if(J.length===0)return;await new Promise((Q)=>{let Y=()=>void Q();if(J.length===1&&J[0]!==void 0){let H=J[0];q.render(J9.jsxDEV(c9,{children:J9.jsxDEV(n0,{children:J9.jsxDEV(p5,{serverName:H,onDone:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}else q.render(J9.jsxDEV(c9,{children:J9.jsxDEV(n0,{children:J9.jsxDEV(t5,{serverNames:J,onDone:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))})}q7();PW();TW();J0();IW();J0();i0();I9();class FZ{frameDurations=[];firstRenderTime;lastRenderTime;record(q){let Z=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=Z;this.lastRenderTime=Z,this.frameDurations.push(q)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let q=this.lastRenderTime-this.firstRenderTime;if(q<=0)return;let J=this.frameDurations.length/(q/1000),Q=this.frameDurations.slice().sort((z,K)=>K-z),Y=Math.max(0,Math.ceil(Q.length*0.01)-1),H=Q[Y],B=H>0?1000/H:0;return{averageFps:Math.round(J*100)/100,low1PctFps:Math.round(B*100)/100}}}l0();y3();wW();q0();var $0=d(Z0(),1);function DW(){f((q)=>({...q,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function kW(q,Z){return new Promise((J)=>{let Q=(Y)=>void J(Y);q.render(Z(Q))})}async function D0(q,Z,J){return AW(q,Z,{color:"error",beforeExit:J})}async function AW(q,Z,J){let{Text:Q}=await import("./ink-0.1.9-4n2nvw5p.mjs"),Y=J?.color,H=J?.exitCode??1;q.render(Y?$0.jsxDEV(Q,{color:Y,children:Z},void 0,!1,void 0,this):$0.jsxDEV(Q,{children:Z},void 0,!1,void 0,this)),q.unmount(),await J?.beforeExit?.(),process.exit(H)}function R0(q,Z,J){return kW(q,(Q)=>$0.jsxDEV(c9,{onChangeAppState:J?.onChangeAppState,children:$0.jsxDEV(n0,{children:Z(Q)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}async function t0(q,Z){q.render(Z),KZ(),await q.waitUntilExit(),await U0(0)}async function E5(q,Z,J,Q,Y,H){if(a(!1)||process.env.IS_DEMO)return!1;let B=$7(),z=!1;if(U7()){let{MigrationDialog:W}=await import("./MigrationDialog-0.1.9-56807wps.mjs");await R0(q,(X)=>$0.jsxDEV(W,{onDone:()=>void X()},void 0,!1,void 0,this))}let K=E();if(B&&(!K.theme||!K.hasCompletedOnboarding)){z=!0;let{Onboarding:W}=await import("./Onboarding-0.1.9-g5nqdh1r.mjs");await R0(q,(X)=>$0.jsxDEV(W,{onDone:()=>{DW(),X()}},void 0,!1,void 0,this),{onChangeAppState:u9})}if(!a(process.env.CLAUBBIT)){if(B&&!I1()){let{TrustDialog:W}=await import("./TrustDialog-0.1.9-dm2wppgy.mjs");await R0(q,(X)=>$0.jsxDEV(W,{commands:Q,onDone:X},void 0,!1,void 0,this))}if(Q7(!0),X7(),Y7(),M9(),B){let{errors:W}=M7();if(W.length===0)await Z7(q);if(await V7()){let X=R7(await G7(!0)),{ClaudeMdExternalIncludesDialog:G}=await import("./ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs");await R0(q,(M)=>$0.jsxDEV(G,{onDone:M,isStandaloneDialog:!0,externalIncludes:X},void 0,!1,void 0,this))}}}if(_7(),h0(),setImmediate(()=>q1()),await F7()){let{GroveDialog:W}=await import("./Grove-0.1.9-rbrf13rd.mjs");if(await R0(q,(G)=>$0.jsxDEV(W,{showIfAlreadyViewed:!1,location:z?"onboarding":"policy_update_modal",onDone:G},void 0,!1,void 0,this))==="escape")return F("tengu_grove_policy_exited",{}),v0(0),!1}{let W=w0(),X=W?.transport==="anthropic"?W.apiKey?.trim():void 0;if(X&&!W7()){let G=B7(X);if(z7(G)==="new"){let{ApproveApiKey:U}=await import("./ApproveApiKey-0.1.9-pz0jzna9.mjs");await R0(q,(j)=>$0.jsxDEV(U,{customApiKeyTruncated:G,onDone:j},void 0,!1,void 0,this),{onChangeAppState:u9})}}}if((Z==="bypassPermissions"||J)&&!G1()){let{BypassPermissionsModeDialog:W}=await import("./BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs");await R0(q,(X)=>$0.jsxDEV(W,{onAccept:X},void 0,!1,void 0,this))}if(Z==="auto"&&!H7()){let{AutoModeOptInDialog:W}=await import("./AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs");await R0(q,(X)=>$0.jsxDEV(W,{onAccept:X,onDecline:()=>v0(1),declineExits:!0},void 0,!1,void 0,this))}if(Y&&!E().hasCompletedClaudeInChromeOnboarding){let{ClaudeInChromeOnboarding:W}=await import("./ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs");await R0(q,(X)=>$0.jsxDEV(W,{onDone:X},void 0,!1,void 0,this))}return z}function f5(q){let Z=0,J=v9(q);if(J.stdin)F("tengu_stdin_interactive",{});let Q=new FZ,Y=L7();J7(Y);let H=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>Q.getMetrics(),stats:Y,renderOptions:{...J,onFrame:(B)=>{if(Q.record(B.durationMs),Y.observe("frame_duration_ms",B.durationMs),H&&B.phases){let z=JSON.stringify({total:B.durationMs,...B.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
832
- `;jW(H,z)}if(K7())return;for(let z of B.flickers){if(z.reason==="resize")continue;let K=Date.now();if(K-Z<1000)F("tengu_flicker",{desiredHeight:z.desiredHeight,actualHeight:z.availableHeight,reason:z.reason});Z=K}}}}}
833
- export{DW as a,kW as b,D0 as c,AW as d,R0 as e,t0 as f,E5 as g,f5 as h,KZ as i,SR as j};