@claudiolabs/claudio 0.1.11 → 0.1.12

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 (805) hide show
  1. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +1 -0
  2. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.1.12-x3zt5579.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +1 -0
  7. package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.1.12-tzjdg5ys.mjs +3 -0
  11. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +1 -0
  12. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +1 -0
  14. package/dist/chunks/InProcessTransport-0.1.12-xnrc78z1.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +1 -0
  20. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.1.12-f1byjres.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +1 -0
  30. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +1 -0
  31. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +3 -0
  32. package/dist/chunks/agents-0.1.12-vfwpnn0d.mjs +111 -0
  33. package/dist/chunks/api-0.1.12-e314x4g9.mjs +1 -0
  34. package/dist/chunks/asciicast-0.1.12-nwzfr5gz.mjs +1 -0
  35. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +1 -0
  36. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +1 -0
  37. package/dist/chunks/auth-0.1.12-vhdwtwhb.mjs +1 -0
  38. package/dist/chunks/autoMode-0.1.12-xjr5qd6q.mjs +48 -0
  39. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +1 -0
  40. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.1.12-vdj4j4ke.mjs +1 -0
  42. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +1 -0
  43. package/dist/chunks/buddy-0.1.12-4q50s2x4.mjs +3 -0
  44. package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.1.12-4s8cc2km.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.1.12-qqcw6b5n.mjs +4 -0
  47. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +1 -0
  48. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +1 -0
  49. package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +2 -0
  50. package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +1 -0
  51. package/dist/chunks/claudeDesktop-0.1.12-1yrkynq4.mjs +1 -0
  52. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +1 -0
  53. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +1 -0
  54. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +1 -0
  55. package/dist/chunks/cli-0.1.12-024a8zz7.mjs +2 -0
  56. package/dist/chunks/cli-0.1.12-04jw23rj.mjs +2 -0
  57. package/dist/chunks/cli-0.1.12-04v3yab2.mjs +3 -0
  58. package/dist/chunks/cli-0.1.12-0eznapyf.mjs +2 -0
  59. package/dist/chunks/cli-0.1.12-0kqx19vz.mjs +2 -0
  60. package/dist/chunks/cli-0.1.12-0vf5f6qn.mjs +2 -0
  61. package/dist/chunks/cli-0.1.12-0x3cd401.mjs +2 -0
  62. package/dist/chunks/cli-0.1.12-0xzdygm2.mjs +50 -0
  63. package/dist/chunks/cli-0.1.12-19as1myk.mjs +2 -0
  64. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +2 -0
  65. package/dist/chunks/cli-0.1.12-1hv04bp7.mjs +2 -0
  66. package/dist/chunks/cli-0.1.12-1x06khjr.mjs +2 -0
  67. package/dist/chunks/cli-0.1.12-238c85zt.mjs +2 -0
  68. package/dist/chunks/cli-0.1.12-242der7s.mjs +5036 -0
  69. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +2 -0
  70. package/dist/chunks/cli-0.1.12-2fajd44n.mjs +2 -0
  71. package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +2 -0
  72. package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +2 -0
  73. package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +2 -0
  74. package/dist/chunks/cli-0.1.12-2zqgfhrb.mjs +2 -0
  75. package/dist/chunks/cli-0.1.12-34gqc6yf.mjs +2 -0
  76. package/dist/chunks/cli-0.1.12-352pjhkh.mjs +2 -0
  77. package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +2 -0
  78. package/dist/chunks/cli-0.1.12-37ga9zc2.mjs +2 -0
  79. package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +2 -0
  80. package/dist/chunks/cli-0.1.12-3ywnr2v1.mjs +2 -0
  81. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +22 -0
  82. package/dist/chunks/cli-0.1.12-4qedbzt3.mjs +24 -0
  83. package/dist/chunks/cli-0.1.12-4sh0f4y1.mjs +3 -0
  84. package/dist/chunks/cli-0.1.12-4syxz3pe.mjs +12 -0
  85. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +2 -0
  86. package/dist/chunks/cli-0.1.12-4wwhk7dc.mjs +2 -0
  87. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +2 -0
  88. package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +4 -0
  89. package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +2 -0
  90. package/dist/chunks/cli-0.1.12-5exp787z.mjs +18 -0
  91. package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +2 -0
  92. package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +2 -0
  93. package/dist/chunks/cli-0.1.12-5pw10pf8.mjs +2 -0
  94. package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +2 -0
  95. package/dist/chunks/cli-0.1.12-5ye0t0xd.mjs +2 -0
  96. package/dist/chunks/cli-0.1.12-6238zg7k.mjs +2 -0
  97. package/dist/chunks/cli-0.1.12-6ddq5n4e.mjs +2 -0
  98. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +16 -0
  99. package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +2 -0
  100. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +2 -0
  101. package/dist/chunks/cli-0.1.12-6zryzryc.mjs +2 -0
  102. package/dist/chunks/cli-0.1.12-73k5qd97.mjs +13 -0
  103. package/dist/chunks/cli-0.1.12-74tt2500.mjs +2 -0
  104. package/dist/chunks/cli-0.1.12-756ngehz.mjs +4 -0
  105. package/dist/chunks/cli-0.1.12-7da43cy1.mjs +2 -0
  106. package/dist/chunks/cli-0.1.12-7ehqw1dk.mjs +2 -0
  107. package/dist/chunks/cli-0.1.12-7mjpbm22.mjs +2 -0
  108. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +2 -0
  109. package/dist/chunks/cli-0.1.12-7xsa2bcp.mjs +2 -0
  110. package/dist/chunks/cli-0.1.12-817sd5bc.mjs +6 -0
  111. package/dist/chunks/cli-0.1.12-830kqdpq.mjs +3 -0
  112. package/dist/chunks/cli-0.1.12-86nmrm6g.mjs +2 -0
  113. package/dist/chunks/cli-0.1.12-8qm558mj.mjs +2 -0
  114. package/dist/chunks/cli-0.1.12-8qvgy8xr.mjs +2 -0
  115. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +2 -0
  116. package/dist/chunks/cli-0.1.12-8znn9f50.mjs +2 -0
  117. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +2 -0
  118. package/dist/chunks/cli-0.1.12-9gs0g8yb.mjs +2 -0
  119. package/dist/chunks/cli-0.1.12-9pq0gse0.mjs +3 -0
  120. package/dist/chunks/cli-0.1.12-9v01t95v.mjs +2 -0
  121. package/dist/chunks/cli-0.1.12-a2frnpdd.mjs +2 -0
  122. package/dist/chunks/cli-0.1.12-a2qh6gjr.mjs +5 -0
  123. package/dist/chunks/cli-0.1.12-a5h71tt8.mjs +34 -0
  124. package/dist/chunks/cli-0.1.12-actnmgw5.mjs +2 -0
  125. package/dist/chunks/cli-0.1.12-ae3e3ffp.mjs +2 -0
  126. package/dist/chunks/cli-0.1.12-af1r644n.mjs +2 -0
  127. package/dist/chunks/cli-0.1.12-awb2yac7.mjs +3 -0
  128. package/dist/chunks/cli-0.1.12-b01yrner.mjs +2 -0
  129. package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +4 -0
  130. package/dist/chunks/cli-0.1.12-bddm1g1s.mjs +59 -0
  131. package/dist/chunks/cli-0.1.12-bh7jp3zk.mjs +2 -0
  132. package/dist/chunks/cli-0.1.12-bhxgr018.mjs +4 -0
  133. package/dist/chunks/cli-0.1.12-bjzb0sjt.mjs +132 -0
  134. package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +2 -0
  135. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +2 -0
  136. package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +833 -0
  137. package/dist/chunks/cli-0.1.12-c23pyffx.mjs +2 -0
  138. package/dist/chunks/cli-0.1.12-c28bme4j.mjs +2 -0
  139. package/dist/chunks/cli-0.1.12-c47ape20.mjs +7 -0
  140. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +2 -0
  141. package/dist/chunks/cli-0.1.12-cxn1ke77.mjs +2 -0
  142. package/dist/chunks/cli-0.1.12-d0es0fxd.mjs +2 -0
  143. package/dist/chunks/cli-0.1.12-d8m01qtm.mjs +2 -0
  144. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +2 -0
  145. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +2 -0
  146. package/dist/chunks/cli-0.1.12-ds2mn8zn.mjs +2 -0
  147. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +8 -0
  148. package/dist/chunks/cli-0.1.12-e262snmb.mjs +3 -0
  149. package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +2 -0
  150. package/dist/chunks/cli-0.1.12-erggrdth.mjs +9 -0
  151. package/dist/chunks/cli-0.1.12-f0x1y6nn.mjs +2 -0
  152. package/dist/chunks/cli-0.1.12-faa9mx3m.mjs +15 -0
  153. package/dist/chunks/cli-0.1.12-fqpxr3qb.mjs +2 -0
  154. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +2 -0
  155. package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +2 -0
  156. package/dist/chunks/cli-0.1.12-g2s9mjr6.mjs +2 -0
  157. package/dist/chunks/cli-0.1.12-g3ycbjxk.mjs +2 -0
  158. package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +2 -0
  159. package/dist/chunks/cli-0.1.12-g604mknq.mjs +2 -0
  160. package/dist/chunks/cli-0.1.12-g728hcdr.mjs +2 -0
  161. package/dist/chunks/cli-0.1.12-g8mny195.mjs +2 -0
  162. package/dist/chunks/cli-0.1.12-h0d833vg.mjs +24 -0
  163. package/dist/chunks/cli-0.1.12-h248m986.mjs +2 -0
  164. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +2 -0
  165. package/dist/chunks/cli-0.1.12-hsw67esw.mjs +2 -0
  166. package/dist/chunks/cli-0.1.12-j6gjfwh5.mjs +31 -0
  167. package/dist/chunks/cli-0.1.12-j6hwb68p.mjs +45 -0
  168. package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +2 -0
  169. package/dist/chunks/cli-0.1.12-jqrk975g.mjs +15 -0
  170. package/dist/chunks/cli-0.1.12-k2164g7e.mjs +2 -0
  171. package/dist/chunks/cli-0.1.12-kea0zcje.mjs +2 -0
  172. package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +2 -0
  173. package/dist/chunks/cli-0.1.12-ktpqrbjc.mjs +2 -0
  174. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +2 -0
  175. package/dist/chunks/cli-0.1.12-kys514qx.mjs +2 -0
  176. package/dist/chunks/cli-0.1.12-kzd4y6yq.mjs +3 -0
  177. package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +2 -0
  178. package/dist/chunks/cli-0.1.12-m6jeef2z.mjs +6 -0
  179. package/dist/chunks/cli-0.1.12-mevh0dza.mjs +2 -0
  180. package/dist/chunks/cli-0.1.12-mr41yjpw.mjs +2 -0
  181. package/dist/chunks/cli-0.1.12-mwp84gtr.mjs +2 -0
  182. package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +2 -0
  183. package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +2 -0
  184. package/dist/chunks/cli-0.1.12-nv2m8kgk.mjs +2 -0
  185. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +4 -0
  186. package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +2 -0
  187. package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +2 -0
  188. package/dist/chunks/cli-0.1.12-ps94e9y5.mjs +2 -0
  189. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +3 -0
  190. package/dist/chunks/cli-0.1.12-q63qrz06.mjs +2 -0
  191. package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +2 -0
  192. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +2 -0
  193. package/dist/chunks/cli-0.1.12-qn20n18h.mjs +12 -0
  194. package/dist/chunks/cli-0.1.12-qrx9nssg.mjs +21 -0
  195. package/dist/chunks/cli-0.1.12-qsh4sj4y.mjs +2 -0
  196. package/dist/chunks/cli-0.1.12-r6f9sy54.mjs +2 -0
  197. package/dist/chunks/cli-0.1.12-ra3sby5b.mjs +2 -0
  198. package/dist/chunks/cli-0.1.12-rqedb88a.mjs +10 -0
  199. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +4 -0
  200. package/dist/chunks/cli-0.1.12-rwhrpb6w.mjs +2 -0
  201. package/dist/chunks/cli-0.1.12-rwzav5h1.mjs +11 -0
  202. package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +2 -0
  203. package/dist/chunks/cli-0.1.12-rzpc0tr9.mjs +44 -0
  204. package/dist/chunks/cli-0.1.12-s0cwq66w.mjs +2 -0
  205. package/dist/chunks/cli-0.1.12-sd72y750.mjs +12 -0
  206. package/dist/chunks/cli-0.1.12-sgtpyf6y.mjs +11 -0
  207. package/dist/chunks/cli-0.1.12-strz382t.mjs +2 -0
  208. package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +2 -0
  209. package/dist/chunks/cli-0.1.12-t8712dbc.mjs +2 -0
  210. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +2 -0
  211. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +2 -0
  212. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +4 -0
  213. package/dist/chunks/cli-0.1.12-trdq9d6x.mjs +2 -0
  214. package/dist/chunks/cli-0.1.12-tyt09z73.mjs +2 -0
  215. package/dist/chunks/cli-0.1.12-v000x470.mjs +2 -0
  216. package/dist/chunks/cli-0.1.12-v0510w04.mjs +2 -0
  217. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +2 -0
  218. package/dist/chunks/cli-0.1.12-v8j9zstg.mjs +2 -0
  219. package/dist/chunks/cli-0.1.12-vgbc3g9x.mjs +2 -0
  220. package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +100 -0
  221. package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +2 -0
  222. package/dist/chunks/cli-0.1.12-vxej5jdm.mjs +2 -0
  223. package/dist/chunks/cli-0.1.12-vzga2are.mjs +192 -0
  224. package/dist/chunks/cli-0.1.12-w0qbr98a.mjs +2 -0
  225. package/dist/chunks/cli-0.1.12-wcdh3m4s.mjs +5 -0
  226. package/dist/chunks/cli-0.1.12-wdmxm11z.mjs +2 -0
  227. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +3 -0
  228. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +134 -0
  229. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +2 -0
  230. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +2 -0
  231. package/dist/chunks/cli-0.1.12-xekep4qg.mjs +58 -0
  232. package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +2 -0
  233. package/dist/chunks/cli-0.1.12-xj3mv67x.mjs +39 -0
  234. package/dist/chunks/cli-0.1.12-y04asmqh.mjs +2 -0
  235. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +2 -0
  236. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +16 -0
  237. package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +4 -0
  238. package/dist/chunks/cli-0.1.12-yk12dgnx.mjs +2 -0
  239. package/dist/chunks/cli-0.1.12-ytxphavm.mjs +2 -0
  240. package/dist/chunks/cli-0.1.12-z8eybrhz.mjs +2 -0
  241. package/dist/chunks/cli-0.1.12-zk49aaxv.mjs +2 -0
  242. package/dist/chunks/cli-0.1.12-zs5rpqmb.mjs +5 -0
  243. package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +2 -0
  244. package/dist/chunks/client-0.1.12-f54egbjx.mjs +1 -0
  245. package/dist/chunks/color-0.1.12-jss6svg8.mjs +1 -0
  246. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +3 -0
  247. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +1 -0
  248. package/dist/chunks/config-0.1.12-ryxz4stj.mjs +1 -0
  249. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +1 -0
  250. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +1 -0
  251. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +1 -0
  252. package/dist/chunks/copy-0.1.12-w6tabpy0.mjs +9 -0
  253. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +1 -0
  254. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +1 -0
  255. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +1 -0
  257. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +1 -0
  258. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +1 -0
  259. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +1 -0
  260. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +1 -0
  261. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +8 -0
  262. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +1 -0
  263. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +1 -0
  264. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +1 -0
  265. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +2 -0
  266. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +1 -0
  267. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +1 -0
  268. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +1 -0
  269. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +14 -0
  270. package/dist/chunks/firstPartyEventLogger-0.1.12-95kzm3md.mjs +1 -0
  271. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +1 -0
  272. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +1 -0
  273. package/dist/chunks/growthbook-0.1.12-4phnr6b3.mjs +1 -0
  274. package/dist/chunks/heapdump-0.1.12-m49qs4r7.mjs +6 -0
  275. package/dist/chunks/help-0.1.12-f02ce11x.mjs +1 -0
  276. package/dist/chunks/hookChains-0.1.12-brq8x7f7.mjs +3 -0
  277. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +1 -0
  278. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +79 -0
  279. package/dist/chunks/ide-0.1.12-553mazfs.mjs +3 -0
  280. package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +1 -0
  281. package/dist/chunks/index-0.1.12-218arkqe.mjs +9 -0
  282. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +1 -0
  283. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +1 -0
  284. package/dist/chunks/index-0.1.12-3nbh75ta.mjs +1 -0
  285. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +7 -0
  286. package/dist/chunks/index-0.1.12-77szwkm6.mjs +1 -0
  287. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +1 -0
  288. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +1 -0
  289. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +1 -0
  290. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +1 -0
  291. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +1 -0
  292. package/dist/chunks/index-0.1.12-m0e193t8.mjs +1 -0
  293. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +5 -0
  294. package/dist/chunks/index-0.1.12-r92p75vh.mjs +1 -0
  295. package/dist/chunks/index-0.1.12-rhj8dsvk.mjs +30 -0
  296. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +1 -0
  297. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +1 -0
  298. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +2 -0
  299. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +1 -0
  300. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +2 -0
  301. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +1 -0
  302. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +9 -0
  303. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +1 -0
  304. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +1 -0
  305. package/dist/chunks/insights-0.1.12-93mz1f1d.mjs +870 -0
  306. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +1 -0
  307. package/dist/chunks/install-github-app-0.1.12-qd8g81v4.mjs +149 -0
  308. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +1 -0
  309. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +12 -0
  310. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +1 -0
  311. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +2 -0
  312. package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +2 -0
  313. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +1 -0
  314. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +1 -0
  315. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +1 -0
  316. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +1 -0
  317. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +1 -0
  318. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +1 -0
  319. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +1 -0
  320. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +4 -0
  321. package/dist/chunks/mcp-0.1.12-vm3tpth6.mjs +17 -0
  322. package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +1 -0
  323. package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +1 -0
  324. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +3 -0
  325. package/dist/chunks/mobile-0.1.12-qdtxwz76.mjs +2 -0
  326. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +2 -0
  327. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +1 -0
  328. package/dist/chunks/oauth-0.1.12-3aky0v8n.mjs +1 -0
  329. package/dist/chunks/openaiShim-0.1.12-p458t1q6.mjs +14 -0
  330. package/dist/chunks/output-style-0.1.12-cahkbh9x.mjs +1 -0
  331. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +1 -0
  332. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +1 -0
  333. package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +1 -0
  334. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +3 -0
  335. package/dist/chunks/plan-0.1.12-waed49m8.mjs +1 -0
  336. package/dist/chunks/plist-0.1.12-65r770yt.mjs +1 -0
  337. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +29 -0
  338. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +1 -0
  339. package/dist/chunks/plugins-0.1.12-sm87b8fm.mjs +9 -0
  340. package/dist/chunks/print-0.1.12-8mgqmx4k.mjs +57 -0
  341. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +1 -0
  342. package/dist/chunks/process-0.1.12-t401v84c.mjs +1 -0
  343. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +1 -0
  344. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +9 -0
  345. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +1 -0
  346. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +1 -0
  347. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +1 -0
  348. package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +2 -0
  349. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +1 -0
  350. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +1 -0
  351. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +1 -0
  352. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +5 -0
  353. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +2 -0
  354. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +1 -0
  355. package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +1 -0
  356. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +1 -0
  357. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +1 -0
  358. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +1 -0
  359. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +2 -0
  360. package/dist/chunks/rewind-0.1.12-707se5pz.mjs +1 -0
  361. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +1 -0
  362. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +1 -0
  363. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +2 -0
  364. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +1 -0
  365. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +1 -0
  366. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +5 -0
  367. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +1 -0
  368. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +1 -0
  369. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +1 -0
  370. package/dist/chunks/state-0.1.12-e374v6h8.mjs +1 -0
  371. package/dist/chunks/stats-0.1.12-5pj1c6sr.mjs +6 -0
  372. package/dist/chunks/status-0.1.12-qphx08h4.mjs +1 -0
  373. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +1 -0
  374. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +1 -0
  375. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +1 -0
  376. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +1 -0
  377. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +1 -0
  378. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +1 -0
  379. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +1 -0
  380. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +1 -0
  381. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +1 -0
  382. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +1 -0
  383. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +1 -0
  384. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +1 -0
  385. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +1 -0
  386. package/dist/chunks/turndown.cjs-0.1.12-9525v010.mjs +69 -0
  387. package/dist/chunks/ultrareviewCommand-0.1.12-d5c4096k.mjs +4 -0
  388. package/dist/chunks/update-0.1.12-hwx0e6fq.mjs +94 -0
  389. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +1 -0
  390. package/dist/chunks/upstreamproxy-0.1.12-yhnqfcyb.mjs +14 -0
  391. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +1 -0
  392. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +1 -0
  393. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +1 -0
  394. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +1 -0
  395. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +1 -0
  396. package/dist/chunks/wiki-0.1.12-vecp82xq.mjs +132 -0
  397. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +1 -0
  398. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +1 -0
  399. package/dist/chunks/wrapper-0.1.12-bpewypaz.mjs +7 -0
  400. package/dist/claudio-vscode.vsix +0 -0
  401. package/dist/cli.mjs +3 -3
  402. package/package.json +4 -1
  403. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
  404. package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
  405. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
  406. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +0 -1
  407. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
  408. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
  409. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
  410. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
  411. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
  412. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
  413. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
  414. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
  415. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
  416. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +0 -1
  417. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
  418. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
  419. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
  420. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
  421. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
  422. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
  423. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
  424. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +0 -1
  425. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
  426. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
  427. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
  428. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
  429. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
  430. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
  431. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
  432. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
  433. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
  434. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
  435. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
  436. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +0 -1
  437. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
  438. package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
  439. package/dist/chunks/auth-0.1.11-p47wajra.mjs +0 -1
  440. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +0 -48
  441. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
  442. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
  443. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +0 -1
  444. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
  445. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +0 -3
  446. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +0 -1
  447. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +0 -21
  448. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +0 -4
  449. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
  450. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
  451. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +0 -2
  452. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +0 -1
  453. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +0 -1
  454. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
  455. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
  456. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
  457. package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
  458. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
  459. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +0 -2
  460. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
  461. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +0 -2
  462. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
  463. package/dist/chunks/cli-0.1.11-0tge574q.mjs +0 -2
  464. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
  465. package/dist/chunks/cli-0.1.11-16086k9e.mjs +0 -2
  466. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
  467. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
  468. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +0 -2
  469. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
  470. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
  471. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +0 -2
  472. package/dist/chunks/cli-0.1.11-21epc92q.mjs +0 -2
  473. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
  474. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +0 -2
  475. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
  476. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
  477. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +0 -2
  478. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +0 -2
  479. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +0 -4
  480. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
  481. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
  482. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +0 -2
  483. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
  484. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +0 -2
  485. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +0 -3
  486. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
  487. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +0 -2
  488. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +0 -2
  489. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +0 -2
  490. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +0 -2
  491. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
  492. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +0 -2
  493. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +0 -3
  494. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +0 -2
  495. package/dist/chunks/cli-0.1.11-70f778wy.mjs +0 -2
  496. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
  497. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
  498. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +0 -2
  499. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +0 -2
  500. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
  501. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +0 -2
  502. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +0 -58
  503. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +0 -2
  504. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
  505. package/dist/chunks/cli-0.1.11-852v06g0.mjs +0 -2
  506. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +0 -2
  507. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +0 -2
  508. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +0 -2
  509. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +0 -2
  510. package/dist/chunks/cli-0.1.11-anegs86e.mjs +0 -7
  511. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +0 -5
  512. package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
  513. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +0 -9
  514. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +0 -2
  515. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +0 -2
  516. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
  517. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +0 -4
  518. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
  519. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
  520. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
  521. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +0 -2
  522. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
  523. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +0 -2
  524. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
  525. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +0 -10
  526. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +0 -2
  527. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
  528. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
  529. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +0 -11
  530. package/dist/chunks/cli-0.1.11-d3exw047.mjs +0 -2
  531. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +0 -2
  532. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
  533. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +0 -24
  534. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +0 -2
  535. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +0 -2
  536. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
  537. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
  538. package/dist/chunks/cli-0.1.11-egck69w4.mjs +0 -2
  539. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
  540. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +0 -2
  541. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
  542. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
  543. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +0 -2
  544. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +0 -2
  545. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +0 -2
  546. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +0 -2
  547. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
  548. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
  549. package/dist/chunks/cli-0.1.11-g2202evh.mjs +0 -2
  550. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
  551. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
  552. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +0 -2
  553. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
  554. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
  555. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +0 -12
  556. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +0 -2
  557. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +0 -2
  558. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +0 -31
  559. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +0 -2
  560. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +0 -2
  561. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +0 -2
  562. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +0 -4
  563. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
  564. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
  565. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +0 -15
  566. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +0 -2
  567. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +0 -11
  568. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
  569. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +0 -3
  570. package/dist/chunks/cli-0.1.11-jye250b3.mjs +0 -2
  571. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +0 -6
  572. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
  573. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
  574. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
  575. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +0 -2
  576. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
  577. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
  578. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +0 -2
  579. package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
  580. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +0 -2
  581. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
  582. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +0 -2
  583. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
  584. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
  585. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
  586. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +0 -4
  587. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +0 -4
  588. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +0 -2
  589. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +0 -5
  590. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
  591. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +0 -3
  592. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +0 -2
  593. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
  594. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
  595. package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
  596. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +0 -15
  597. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +0 -2
  598. package/dist/chunks/cli-0.1.11-r990p54m.mjs +0 -100
  599. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +0 -2
  600. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +0 -2
  601. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
  602. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +0 -2
  603. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +0 -2
  604. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +0 -6
  605. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
  606. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +0 -2
  607. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +0 -132
  608. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +0 -2
  609. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +0 -2
  610. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
  611. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
  612. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +0 -2
  613. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
  614. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +0 -2
  615. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +0 -192
  616. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +0 -2
  617. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
  618. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
  619. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +0 -44
  620. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
  621. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +0 -39
  622. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +0 -21
  623. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
  624. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +0 -34
  625. package/dist/chunks/cli-0.1.11-weav8142.mjs +0 -2
  626. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
  627. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
  628. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
  629. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
  630. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
  631. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
  632. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +0 -2
  633. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +0 -2
  634. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
  635. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
  636. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +0 -2
  637. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +0 -2
  638. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
  639. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
  640. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +0 -2
  641. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +0 -2
  642. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +0 -13
  643. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
  644. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +0 -2
  645. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
  646. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
  647. package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
  648. package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
  649. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
  650. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +0 -1
  651. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
  652. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
  653. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
  654. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
  655. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
  656. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
  657. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
  658. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
  659. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
  660. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
  661. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
  662. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
  663. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
  664. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
  665. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
  666. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
  667. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
  668. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
  669. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
  670. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
  671. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
  672. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
  673. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +0 -1
  674. package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
  675. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
  676. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +0 -1
  677. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +0 -6
  678. package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
  679. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +0 -3
  680. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
  681. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
  682. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
  683. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +0 -1
  684. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
  685. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
  686. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
  687. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
  688. package/dist/chunks/index-0.1.11-b2q967nq.mjs +0 -30
  689. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
  690. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
  691. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
  692. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
  693. package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
  694. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
  695. package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
  696. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
  697. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
  698. package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
  699. package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
  700. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
  701. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
  702. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +0 -1
  703. package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
  704. package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
  705. package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
  706. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
  707. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
  708. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +0 -870
  709. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
  710. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
  711. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
  712. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
  713. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
  714. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
  715. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +0 -2
  716. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
  717. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
  718. package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
  719. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
  720. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
  721. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
  722. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
  723. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
  724. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
  725. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +0 -1
  726. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +0 -1
  727. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
  728. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
  729. package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
  730. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
  731. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +0 -1
  732. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +0 -14
  733. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +0 -1
  734. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
  735. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
  736. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
  737. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
  738. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
  739. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +0 -1
  740. package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
  741. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
  742. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +0 -9
  743. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +0 -57
  744. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
  745. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +0 -1
  746. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
  747. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
  748. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
  749. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
  750. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
  751. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
  752. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
  753. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
  754. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
  755. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
  756. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
  757. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
  758. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +0 -1
  759. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
  760. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
  761. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
  762. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
  763. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +0 -1
  764. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
  765. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
  766. package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
  767. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
  768. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
  769. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
  770. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
  771. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
  772. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
  773. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +0 -1
  774. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +0 -6
  775. package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
  776. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
  777. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
  778. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
  779. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
  780. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
  781. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
  782. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
  783. package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
  784. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
  785. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
  786. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
  787. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
  788. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
  789. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +0 -69
  790. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
  791. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +0 -94
  792. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
  793. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +0 -14
  794. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
  795. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
  796. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
  797. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
  798. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
  799. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +0 -132
  800. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
  801. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
  802. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +0 -7
  803. /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.12-41zq3gv6.mjs} +0 -0
  804. /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.12-ng34ay3g.mjs} +0 -0
  805. /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.12-tvawkeks.mjs} +0 -0
@@ -0,0 +1,833 @@
1
+ import{I as r,J as A0}from"./cli-0.1.12-tvawkeks.mjs";import{K as U7,L as O5,M as C5}from"./cli-0.1.12-kg8gb6e3.mjs";import{Fa as A5,Ga as x5,Ha as qZ,wa as w5,ya as I5,za as j5}from"./cli-0.1.12-a2qh6gjr.mjs";import{Ia as k5,Oa as eq}from"./cli-0.1.12-v79j5ced.mjs";import{Ta as F7}from"./cli-0.1.12-5pw10pf8.mjs";import{Wa as h9}from"./cli-0.1.12-e4zeaahk.mjs";import{ob as G5,pb as B9,qb as tq,sb as Zq}from"./cli-0.1.12-rqedb88a.mjs";import{xb as R5,yb as iX}from"./cli-0.1.12-nfvtmt75.mjs";import{Jb as M7,Lb as wW}from"./cli-0.1.12-8qm558mj.mjs";import{Yb as a5,Zb as LW}from"./cli-0.1.12-kys514qx.mjs";import{Cc as nq,Dc as B5}from"./cli-0.1.12-p5w2kms9.mjs";import{De as $5,Ie as dX}from"./cli-0.1.12-e262snmb.mjs";import{sg as n3,ug as cX}from"./cli-0.1.12-c8d9vr4b.mjs";import{Bg as $Q,jh as X4}from"./cli-0.1.12-bmtahtv7.mjs";import{$G as a3,$l as cQ,$q as Bq,$r as _1,AB as pq,AI as t0,Aj as PQ,An as N6,Au as BX,Av as p1,Aw as R7,BI as Rq,Bj as NQ,Bn as qY,Bv as MJ,Bw as yW,CB as wX,CI as Mq,Cj as TQ,Cv as T3,DI as nQ,DM as U5,Dq as YX,Dv as D3,EI as A9,EM as L5,Ej as R4,Ek as U1,Eq as XX,Ev as FJ,FE as d3,FG as aq,FI as tQ,FJ as Z5,FM as _5,FO as T5,Fj as DQ,Fk as dY,Fl as MQ,Fv as y3,GI as Fq,GO as D5,Gl as z4,Gp as t2,Gv as w3,HE as EX,HI as $1,HM as P5,HO as y5,Hk as g2,Hl as JQ,Hn as i2,Hp as o2,Hr as L1,II as oQ,IJ as J5,In as tY,Ip as JX,Iq as J3,Iv as KX,JI as Gq,Jj as M4,Jl as t8,Jp as e2,Jr as zX,Ju as VJ,KG as fX,KJ as Q5,KM as N5,Ki as V7,Kl as vq,Ku as BJ,LG as i3,LK as z5,Lk as pY,Lp as QX,Lq as HX,Lu as U3,Lz as f3,MG as hX,MJ as Y5,ML as F5,Mm as E9,Mu as L3,Mz as DX,NK as gX,Nl as p2,Nm as sY,Nu as _3,Op as QQ,Ou as P3,PI as $q,Pp as o8,Pu as KJ,QC as g3,QI as Vq,QJ as F6,Ql as uq,Qq as Q3,RJ as X5,Rq as Y3,SC as CX,SI as r4,SO as sX,Sk as d2,Su as GJ,Sz as h3,Tk as lY,Tl as l2,Tu as f0,UK as V5,Ui as B7,Uj as m2,Uq as lQ,Uz as LJ,VJ as W5,VK as pX,Vj as gY,Vu as M0,Vv as I3,Vz as _J,WF as iq,WJ as H5,Wi as K7,Wl as aY,Wq as iQ,Wu as d1,XF as bX,XH as r3,Xq as aQ,Yo as K9,Yq as zq,Yx as RX,ZI as t3,ZJ as U6,Zi as TW,Zo as oY,Zq as n5,Zx as MX,_o as a2,_u as G7,aH as s3,aK as v9,aL as z0,aj as G9,al as fq,aq as YQ,ar as cq,as as P1,bH as vX,bL as n0,bi as f2,bj as WZ,bq as e8,br as X3,bs as V3,ci as hY,cj as v2,cl as hq,cr as mq,cs as B3,cv as DW,cw as GX,dC as IX,dj as u2,dp as eY,dr as z1,ds as K3,eC as jX,eJ as o3,eK as o5,ep as s2,eq as XQ,es as $X,ez as N1,fJ as rq,fj as uY,fp as qX,fq as q4,fr as t5,fz as k3,gI as uX,gN as aX,gm as s4,gp as r2,gz as _X,hJ as e3,hp as n2,hr as W3,ii as h2,ip as ZX,iz as dq,jJ as q5,jL as oq,ji as vY,jr as H3,jz as PX,kJ as mX,kr as z3,kz as A3,lr as gq,lz as x3,mL as mQ,ml as iY,mr as $3,mv as i5,mz as NX,nv as UW,nz as O3,ov as u5,oz as C3,pr as Kq,pz as E3,qC as kX,qL as M5,qv as GW,qz as S3,rC as AX,rN as PJ,sA as v3,sj as c2,sq as wQ,sz as b3,tA as yX,tH as sq,tN as NJ,tj as cY,tq as IQ,uq as Hq,vL as gQ,vn as Tq,vq as jQ,vv as s0,wN as q8,wj as bq,wn as Dq,wv as e1,xF as l3,xj as mY,xn as yq,xq as C4,xu as M3,xv as f9,xz as TX,yF as SX,yj as _Q,yn as wq,yv as N3,zI as k9,zj as G4,zn as P6,zu as F3,zv as RJ}from"./cli-0.1.12-242der7s.mjs";import{cP as j3,fP as LX}from"./cli-0.1.12-7mjpbm22.mjs";import{AP as UX,zP as FX}from"./cli-0.1.12-q8k1zvhb.mjs";import{DP as $Z,EP as RW,FP as p5,GP as MW,HP as l5,IP as FW,LP as I1,MP as v5,NP as HQ,QP as p3,RP as zQ}from"./cli-0.1.12-vpnp7x5c.mjs";import{MQ as lq,NQ as xX}from"./cli-0.1.12-xcxjv6qd.mjs";import{RQ as u3,SQ as c3,UQ as m3,VQ as OX}from"./cli-0.1.12-2zqgfhrb.mjs";import{pR as rY,qR as nY}from"./cli-0.1.12-6238zg7k.mjs";import{YR as K5,ZR as lX}from"./cli-0.1.12-19as1myk.mjs";import{$T as bY,QU as d5,SU as y1,WT as S2,WU as b5,aU as b2,bU as fY,eT as zZ,kU as $7,nU as NW,vV as f5}from"./cli-0.1.12-bddm1g1s.mjs";import{AV as E2,CV as SY,xV as C2}from"./cli-0.1.12-4sh0f4y1.mjs";import{$W as q3,dX as Z3,jX as WX}from"./cli-0.1.12-sxxpysy8.mjs";import{qX as g5,rX as T,sX as c0,tX as Z0}from"./cli-0.1.12-04jw23rj.mjs";import{IX as G3,LX as R3,PX as VX}from"./cli-0.1.12-trdq9d6x.mjs";import{aY as zJ,cY as t7,dY as $J,eY as o7,oY as UJ,pY as e7}from"./cli-0.1.12-q63qrz06.mjs";import{b0 as HJ,c0 as b0}from"./cli-0.1.12-g4sdgt8h.mjs";import{$4 as R6,A1 as U2,A3 as Uq,B1 as jY,B3 as T2,C3 as AY,E3 as D2,F3 as xY,G4 as k2,H4 as A2,K2 as Eq,L2 as _2,L3 as y2,M2 as kY,Q3 as OY,S4 as x2,T3 as w2,V1 as WJ,X1 as n7,Y4 as O2,Z4 as G6,a2 as z7,b2 as PW,b3 as P2,b4 as CY,b5 as K1,c4 as I2,d4 as j2,e4 as EY,i3 as H6,j3 as S9,j5 as Sq,l5 as Lq,p3 as z6,s2 as L2,t1 as R0,u1 as H7,u3 as v0,w3 as X6,x2 as Cq,y1 as p0,z3 as N2}from"./cli-0.1.12-y9598sy3.mjs";import{C5 as XJ,F5 as r7,t5 as YJ,u5 as s7}from"./cli-0.1.12-erggrdth.mjs";import{H5 as A,I5 as IY}from"./cli-0.1.12-m6jeef2z.mjs";import{m6 as eZ,r6 as i7}from"./cli-0.1.12-mr41yjpw.mjs";import{J6 as p8,s6 as gJ}from"./cli-0.1.12-rwzav5h1.mjs";import{$$ as C9,Cba as h,Daa as W1,Faa as i,Fba as f,Gba as M2,Haa as S,Hba as W7,I7 as p,Iaa as G2,Iba as JJ,J8 as Y2,Jaa as o0,Kaa as u0,Kba as J6,Lba as Q6,Maa as R2,Mba as F2,N7 as x9,Naa as V1,Paa as X7,Q8 as qq,Rba as QJ,S7 as hQ,S8 as w9,T7 as i4,Taa as q0,U8 as iJ,V8 as qJ,W_ as V2,Yba as J0,Z8 as a7,_9 as T1,b7 as I6,c7 as GY,d_ as _Y,dca as Pq,dda as T0,eca as Nq,f$ as TY,f8 as l4,gda as c1,haa as DY,j_ as H2,laa as CQ,n8 as vQ,n_ as PY,oca as e4,p8 as a4,paa as m4,r7 as H0,saa as B2,t7 as oZ,t8 as Q1,taa as yY,u_ as z2,uaa as K2,v_ as $2,w9 as X2,w_ as NY,x9 as Oq,y8 as Q2,y9 as LY,yba as D1,zaa as wY}from"./cli-0.1.12-vzga2are.mjs";import{$da as I9,Ada as OQ,Yda as s,_da as Jq,aea as UQ}from"./cli-0.1.12-j6gjfwh5.mjs";import{dea as b9,eea as MY}from"./cli-0.1.12-g3ycbjxk.mjs";import{Rea as t9,Sea as pZ}from"./cli-0.1.12-4wwhk7dc.mjs";import{Tea as Y1,Wea as ZQ}from"./cli-0.1.12-tae7cd7e.mjs";import{cfa as J7,efa as M1,jfa as s6,kfa as Q7,qfa as XZ}from"./cli-0.1.12-g8mny195.mjs";import{Gfa as GQ,Qfa as RQ,Vfa as L,Wfa as W2,_fa as ZJ}from"./cli-0.1.12-bhxgr018.mjs";import{gga as M,hga as Q0}from"./cli-0.1.12-6x2mnahn.mjs";import{Aga as tZ,Cga as F1,Fga as n6,Gga as g,Hga as Aq,Iga as H1,Mga as V9,Oga as y0,Pga as t6,Rga as o6,Sga as j9,Tga as e6,Wga as q2,_ga as FY,aha as BQ,cha as J2,eha as N,fha as KQ,hha as l0,kga as N9,mga as nZ}from"./cli-0.1.12-rzpc0tr9.mjs";import{kha as xq,mha as Z2,nha as UY}from"./cli-0.1.12-k2164g7e.mjs";import{Bha as T9,qha as kq,rha as a,tha as O0,uha as pQ,yha as Y7,zha as r6}from"./cli-0.1.12-ra3sby5b.mjs";import{Aka as sZ,Cka as rZ,Cla as u6,Ela as c6,Gla as m6,Gma as a6,Kla as g6,Mja as q7,Rla as Z7,Ska as i0,Tla as d6,Uka as S6,Wka as b6,Yia as QZ,Yma as a0,aja as RY,cla as f6,dja as j6,ela as h6,gja as k6,gla as jq,jja as A6,jla as v6,lja as x6,mma as p6,oka as B6,pka as YZ,qka as B1,rka as O6,ska as C6,tka as E6,xma as l6,zma as i6}from"./cli-0.1.12-pm5cwtxh.mjs";import{vna as aZ,wna as l7}from"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as q1,Rna as e0,Sna as h0,Tna as t4,Una as o4,Vna as G}from"./cli-0.1.12-1hv04bp7.mjs";var D9=h0((J8)=>{class l1 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 DJ extends l1{constructor(q){super(1,"commander.invalidArgument",q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}J8.CommanderError=l1;J8.InvalidArgumentError=DJ});var e9=h0((H8)=>{var{InvalidArgumentError:X8}=D9();class yJ{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 X8(`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 W8(q){let Z=q.name()+(q.variadic===!0?"...":"");return q.required?"<"+Z+">":"["+Z+"]"}H8.Argument=yJ;H8.humanReadableArgName=W8});var i1=h0((B8)=>{var{humanReadableArgName:V8}=e9();class wJ{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)=>V8(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 V(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 B=[`Usage: ${Z.commandUsage(q)}`,""],W=Z.commandDescription(q);if(W.length>0)B=B.concat([Z.wrap(W,Q,0),""]);let X=Z.visibleArguments(q).map((U)=>{return V(Z.argumentTerm(U),Z.argumentDescription(U))});if(X.length>0)B=B.concat(["Arguments:",z(X),""]);let K=Z.visibleOptions(q).map((U)=>{return V(Z.optionTerm(U),Z.optionDescription(U))});if(K.length>0)B=B.concat(["Options:",z(K),""]);if(this.showGlobalOptions){let U=Z.visibleGlobalOptions(q).map((j)=>{return V(Z.optionTerm(j),Z.optionDescription(j))});if(U.length>0)B=B.concat(["Global Options:",z(U),""])}let F=Z.visibleCommands(q).map((U)=>{return V(Z.subcommandTerm(U),Z.subcommandDescription(U))});if(F.length>0)B=B.concat(["Commands:",z(F),""]);return B.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 V=Z-J;if(V<Q)return q;let z=q.slice(0,J),B=q.slice(J).replace(`\r
4
+ `,`
5
+ `),W=" ".repeat(J),K=`\\s${"​"}`,F=new RegExp(`
6
+ |.{1,${V-1}}([${K}]|$)|[^${K}]+?([${K}]|$)`,"g"),U=B.match(F)||[];return z+U.map((j,C)=>{if(j===`
7
+ `)return"";return(C>0?W:"")+j.trimEnd()}).join(`
8
+ `)}}B8.Help=wJ});var a1=h0((F8)=>{var{InvalidArgumentError:G8}=D9();class IJ{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=M8(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 G8(`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 R8(this.name().replace(/^no-/,""))}is(q){return this.short===q||this.long===q}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class jJ{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 R8(q){return q.split("-").reduce((Z,J)=>{return Z+J[0].toUpperCase()+J.slice(1)})}function M8(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}}F8.Option=IJ;F8.DualOptions=jJ});var kJ=h0((N8)=>{function _8(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 P8(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((V)=>V.slice(2));let Q=[],Y=3,H=0.4;if(Z.forEach((V)=>{if(V.length<=1)return;let z=_8(q,V),B=Math.max(q.length,V.length);if((B-z)/B>H){if(z<Y)Y=z,Q=[V];else if(z===Y)Q.push(V)}}),Q.sort((V,z)=>V.localeCompare(z)),J)Q=Q.map((V)=>`--${V}`);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""}N8.suggestSimilar=P8});var CJ=h0((k8)=>{var D8=G("node:events").EventEmitter,s1=G("node:child_process"),x0=G("node:path"),r1=G("node:fs"),c=G("node:process"),{Argument:y8,humanReadableArgName:w8}=e9(),{CommanderError:n1}=D9(),{Help:I8}=i1(),{Option:AJ,DualOptions:j8}=a1(),{suggestSimilar:xJ}=kJ();class t1 extends D8{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)=>c.stdout.write(Z),writeErr:(Z)=>c.stderr.write(Z),getOutHelpWidth:()=>c.stdout.isTTY?c.stdout.columns:void 0,getErrHelpWidth:()=>c.stderr.isTTY?c.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,V]=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,V)z.arguments(V);if(this._registerCommand(z),z.parent=this,z.copyInheritedSettings(this),Q)return this;return z}createCommand(q){return new t1(q)}createHelp(){return Object.assign(new I8,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 y8(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 n1(q,Z,J));c.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 AJ(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,V)=>{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,V)};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 AJ)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 V=Q;Q=(z,B)=>{let W=V.exec(z);return W?W[0]:B},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(c.versions?.electron)Z.from="electron";let Q=c.execArgv??[];if(Q.includes("-e")||Q.includes("--eval")||Q.includes("-p")||Q.includes("--print"))Z.from="eval"}if(q===void 0)q=c.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(c.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 K=x0.resolve(W,X);if(r1.existsSync(K))return K;if(Q.includes(x0.extname(X)))return;let F=Q.find((U)=>r1.existsSync(`${K}${U}`));if(F)return`${K}${F}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let H=q._executableFile||`${this._name}-${q._name}`,V=this._executableDir||"";if(this._scriptPath){let W;try{W=r1.realpathSync(this._scriptPath)}catch(X){W=this._scriptPath}V=x0.resolve(x0.dirname(W),V)}if(V){let W=Y(V,H);if(!W&&!q._executableFile&&this._scriptPath){let X=x0.basename(this._scriptPath,x0.extname(this._scriptPath));if(X!==this._name)W=Y(V,`${X}-${q._name}`)}H=W||H}J=Q.includes(x0.extname(H));let z;if(c.platform!=="win32")if(J)Z.unshift(H),Z=OJ(c.execArgv).concat(Z),z=s1.spawn(c.argv[0],Z,{stdio:"inherit"});else z=s1.spawn(H,Z,{stdio:"inherit"});else Z.unshift(H),Z=OJ(c.execArgv).concat(Z),z=s1.spawn(c.execPath,Z,{stdio:"inherit"});if(!z.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((X)=>{c.on(X,()=>{if(z.killed===!1&&z.exitCode===null)z.kill(X)})});let B=this._exitCallback;z.on("close",(W)=>{if(W=W??1,!B)c.exit(W);else B(new n1(W,"commander.executeSubCommandAsync","(close)"))}),z.on("error",(W)=>{if(W.code==="ENOENT"){let X=V?`searched for local subcommand relative to directory '${V}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",K=`'${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(K)}else if(W.code==="EACCES")throw Error(`'${H}' not executable`);if(!B)c.exit(1);else{let X=new n1(1,"commander.executeSubCommandAsync","(error)");X.nestedError=W,B(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 V=`error: command-argument value '${Q}' is invalid for argument '${J.name()}'.`;H=this._callParseArg(J,Q,Y,V)}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,V)=>{return q(J,V,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 V=null;while(Y.length){let z=Y.shift();if(z==="--"){if(Q===J)Q.push(z);Q.push(...Y);break}if(V&&!H(z)){this.emit(`option:${V.name()}`,z);continue}if(V=null,H(z)){let B=this._findOption(z);if(B){if(B.required){let W=Y.shift();if(W===void 0)this.optionMissingArgument(B);this.emit(`option:${B.name()}`,W)}else if(B.optional){let W=null;if(Y.length>0&&!H(Y[0]))W=Y.shift();this.emit(`option:${B.name()}`,W)}else this.emit(`option:${B.name()}`);V=B.variadic?B:null;continue}}if(z.length>2&&z[0]==="-"&&z[1]!=="-"){let B=this._findOption(`-${z[1]}`);if(B){if(B.required||B.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${B.name()}`,z.slice(2));else this.emit(`option:${B.name()}`),Y.unshift(`-${z.slice(2)}`);continue}}if(/^--[^=]+=/.test(z)){let B=z.indexOf("="),W=this._findOption(z.slice(0,B));if(W&&(W.required||W.optional)){this.emit(`option:${W.name()}`,z.slice(B+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 c.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()}`,c.env[q.envVar]);else this.emit(`optionEnv:${q.name()}`)}})}_parseOptionsImplied(){let q=new j8(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 V=H.attributeName(),z=this.getOptionValue(V),B=this.options.find((X)=>X.negate&&V===X.attributeName()),W=this.options.find((X)=>!X.negate&&V===X.attributeName());if(B&&(B.presetArg===void 0&&z===!1||B.presetArg!==void 0&&z===B.presetArg))return B;return W||H},Q=(H)=>{let V=J(H),z=V.attributeName();if(this.getOptionValueSource(z)==="env")return`environment variable '${V.envVar}'`;return`option '${V.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((V)=>V.long).map((V)=>V.long);Q=Q.concat(H),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);Z=xJ(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=xJ(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 w8(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=x0.basename(q,x0.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=c.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 OJ(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})}k8.Command=t1});var fJ=h0((C8)=>{var{Argument:EJ}=e9(),{Command:o1}=CJ(),{CommanderError:x8,InvalidArgumentError:SJ}=D9(),{Help:O8}=i1(),{Option:bJ}=a1();C8.program=new o1;C8.createCommand=(q)=>new o1(q);C8.createOption=(q,Z)=>new bJ(q,Z);C8.createArgument=(q,Z)=>new EJ(q,Z);C8.Command=o1;C8.Option=bJ;C8.Argument=EJ;C8.Help=O8;C8.CommanderError=x8;C8.InvalidArgumentError=SJ;C8.InvalidOptionArgumentError=SJ});var vJ=h0((B0,hJ)=>{var D0=fJ();B0=hJ.exports={};B0.program=new D0.Command;B0.Argument=D0.Argument;B0.Command=D0.Command;B0.CommanderError=D0.CommanderError;B0.Help=D0.Help;B0.InvalidArgumentError=D0.InvalidArgumentError;B0.InvalidOptionArgumentError=D0.InvalidArgumentError;B0.Option=D0.Option;B0.createCommand=(q)=>new D0.Command(q);B0.createOption=(q,Z)=>new D0.Option(q,Z);B0.createArgument=(q,Z)=>new D0.Argument(q,Z)});var T6={};t4(T6,{runClaudioStartupMigrations:()=>BY});function HY(q){return WY.filter((Z)=>q[Z])}function zY(q){let Z=q.profile;switch(Z){case"gemini":{let J=q.env.GEMINI_BASE_URL??Tq,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??yq,model:q.env.MISTRAL_MODEL??wq,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:$Y(Z),baseUrl:J,model:Q,apiKey:q.env.OPENAI_API_KEY??""}}default:return null}}function $Y(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 VY(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()??Tq,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()??yq,model:q.MISTRAL_MODEL?.trim()??wq,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:ZY,model:JY,apiKey:"",extras:Z?{githubToken:Z}:void 0}}}if(q.CLAUDE_CODE_USE_BEDROCK){let Z=q.AWS_REGION?.trim()??q.AWS_DEFAULT_REGION?.trim()??QY;return{input:{provider:"bedrock",name:"AWS Bedrock (legacy env)",baseUrl:`https://bedrock-runtime.${Z}.amazonaws.com`,model:_q,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()??YY,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:_q,extras:Q}}}if(q.CLAUDE_CODE_USE_FOUNDRY)return{input:{provider:"foundry",name:"Azure AI Foundry (legacy env)",baseUrl:XY,model:_q},warning:"Profile created from CLAUDE_CODE_USE_FOUNDRY but azureResource missing — open /provider to complete"};return null}function BY(q){let Z=q?.processEnv??process.env,J=q?.log??KY,Q={legacyProfileMigrated:!1,envsIgnored:[],notices:[]},Y=P6();if(Y){let V=zY(Y);if(V&&!Pq()){if(Nq(V,{makeActive:!0})){Q.legacyProfileMigrated=!0;let B="migrated legacy .claudio-profile.json to providerProfiles[]";Q.notices.push(B),J(B)}}N6()}let H=HY(Z);if(H.length>0)if(!Pq()){let z=VY(Z);if(z){let B=Nq(z.input,{makeActive:!0});if(B){Q.rescueEnvAdoptedAs=B.name;let W=`migrated env-based config to /provider as "${B.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 KY(q){process.stderr.write(`\x1B[33m${q}\x1B[0m
23
+ `)}var ZY="https://models.github.ai/inference",JY="github:copilot",QY="us-east-1",YY="us-east5",_q="claude-sonnet-4-6",XY="https://YOUR-RESOURCE-NAME.services.ai.azure.com",WY;var D6=o4(()=>{qY();e4();WY=["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();d1();a0();import{appendFileSync as IW}from"fs";v2();ZJ();a0();J0();l7();a0();a0();_J();n7();KJ();FJ();pZ();c1();p0();var dZ=!1;function lZ(){if(dZ)return;if(dZ=!0,R0()!=="firstParty")return;let q=T0()?.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=T0(),J=(Z?.transport==="anthropic"?Z.baseUrl:void 0)||t9().BASE_API_URL;fetch(J,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}J0();l0();q0();function iZ(){if(process.env.NODE_EXTRA_CA_CERTS)return;let q=p7();if(q)process.env.NODE_EXTRA_CA_CERTS=q,N(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${q}`)}function p7(){try{let Z=f()?.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}}nZ();J0();l0();i7();oZ();t7();T9();V9();d1();s7();q8();r7();e7();o7();a7();var m1=!1,TJ=aZ(async()=>{let q=Date.now();H0("info","init_started"),L("init_function_start");try{let Z=Date.now();JJ(),H0("info","init_configs_enabled",{duration_ms:Date.now()-Z}),L("init_configs_enabled");let J=Date.now();if(HJ(),iZ(),H0("info","init_safe_env_vars_applied",{duration_ms:Date.now()-J}),L("init_safe_env_vars_applied"),GJ(),L("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-0.1.12-95kzm3md.mjs"),import("./growthbook-0.1.12-4phnr6b3.mjs")]).then(([H,V])=>{H.initialize1PEventLogging(),V.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),L("init_after_1p_event_logging"),WJ(),L("init_after_oauth_populate"),zJ(),L("init_after_jetbrains_detection"),eZ(),p1())RJ();if(BJ())VJ();L("init_after_remote_settings_check"),QJ();let Q=Date.now();N("[init] configureGlobalMTLS starting"),YJ(),H0("info","init_mtls_configured",{duration_ms:Date.now()-Q}),N("[init] configureGlobalMTLS complete");let Y=Date.now();if(N("[init] configureGlobalAgents starting"),XJ(),H0("info","init_proxy_configured",{duration_ms:Date.now()-Y}),N("[init] configureGlobalAgents complete"),L("init_network_configured"),lZ(),a(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:V}=await import("./upstreamproxy-0.1.12-yhnqfcyb.mjs"),{registerUpstreamProxyEnvFn:z}=await import("./subprocessEnv-0.1.12-sbpfvs29.mjs");z(V),await H()}catch(H){N(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(qJ(),N9(LJ),N9(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-0.1.12-3trvxmmz.mjs");await H()}),PJ()){let H=Date.now();await NJ(),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 tZ){if(i0()){process.stderr.write(`Configuration error in ${Z.filePath}: ${Z.message}
24
+ `),f0(1);return}return import("./InvalidConfigDialog-0.1.12-9w4z4d73.mjs").then((J)=>J.showInvalidConfigDialog({error:Z}))}else throw Z}});function o9(){if(p1()){if(i0()&&UJ())g1().catch((q)=>{N(`[3P telemetry] Eager telemetry init failed (beta tracing): ${g(q)}`,{level:"error"})});N("[3P telemetry] Waiting for remote managed settings before telemetry init"),MJ().then(async()=>{N("[3P telemetry] Remote managed settings loaded, initializing telemetry"),b0(),await g1()}).catch((q)=>{N(`[3P telemetry] Telemetry init failed (remote settings path): ${g(q)}`,{level:"error"})})}else g1().catch((q)=>{N(`[3P telemetry] Telemetry init failed: ${g(q)}`,{level:"error"})})}async function g1(){if(m1)return;m1=!0;try{await Z8()}catch(q){throw m1=!1,q}}async function Z8(){let{initializeTelemetry:q}=await import("./instrumentation-0.1.12-nqv5x6q8.mjs"),Z=await q();if(Z)sZ(Z,(Q,Y)=>{let H=Z?.createCounter(Q,Y);return{add(V,z={}){let W={...$J(),...z};H?.add(V,W)}}}),rZ()?.add(1)}NW();e1();ZJ();yY();EY();var uJ=q1(vJ(),1),{program:NH,createCommand:TH,createArgument:DH,createOption:yH,CommanderError:wH,InvalidArgumentError:cJ,InvalidOptionArgumentError:IH,Command:mJ,Argument:jH,Option:D,Help:kH}=uJ.default;IY();cY();GY();sY();pZ();mY();v2();import{readFileSync as ZZ}from"fs";EX();Z0();async function y9(q,Z,J,Q){let{App:Y}=await import("./App-0.1.12-t1g68ag4.mjs"),{REPL:H}=await import("./REPL-0.1.12-4750qvss.mjs");await Q(q,T(Y,{...Z,children:T(H,{...J})}))}XZ();iX();gX();xY();NX();lX();p8();l0();V9();p0();var l8=void 0;function i8(q){try{let Z=new URL(q);return Z.search="",Z.toString().replace(/\/$/,"")}catch{return}}async function dJ(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;if(R0()!=="firstParty")return;try{let q=await gJ.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=i8(Q.url);if(Y)Z.add(Y)}l8=Z,N(`[mcp-registry] Loaded ${Z.size} official MCP URLs`)}catch(q){N(`Failed to fetch MCP registry: ${g(q)}`,{level:"error"})}}KJ();FJ();JX();CX();$X();oY();LY();Lq();J0();SY();iY();kY();uX();iJ();N3();LX();vY();j9();Q0();l0();T9();iJ();import{posix as pJ,win32 as lJ}from"path";var a8=1000,Z1=new Map;function s8(){let q=process.argv[1]||"",Z=process.execPath||process.argv[0]||"";if(w9()==="windows")q=q.split(lJ.sep).join(pJ.sep),Z=Z.split(lJ.sep).join(pJ.sep);let J=[q,Z],Q=["/build-ant/","/build-external/","/build-external-native/","/build-ant-native/"];return J.some((Y)=>Q.some((H)=>Y.includes(H)))}var r8=[/MaxListenersExceededWarning.*AbortSignal/,/MaxListenersExceededWarning.*EventTarget/];function n8(q){let Z=`${q.name}: ${q.message}`;return r8.some((J)=>J.test(Z))}var J1=null;function aJ(){let q=process.listeners("warning");if(J1&&q.includes(J1))return;if(!s8())process.removeAllListeners("warning");J1=(J)=>{try{let Q=`${J.name}: ${J.message.slice(0,50)}`,Y=Z1.get(Q)||0;if(Z1.has(Q)||Z1.size<a8)Z1.set(Q,Y+1);let H=n8(J);if(M("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",J1)}xX();uY();XZ();Q0();cX();a0();gQ();import{resolve as O9}from"path";e1();Z0();async function sJ(q,Z){let{InvalidSettingsDialog:J}=await import("./InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs");return K0(q,(Q)=>T(J,{settingsErrors:Z.settingsErrors,onContinue:Q,onExit:Z.onExit}))}async function rJ(q){let{TeleportResumeWrapper:Z}=await import("./TeleportResumeWrapper-0.1.12-w2rds1kj.mjs");return K0(q,(J)=>T(Z,{onComplete:J,onCancel:()=>J(null),source:"cliArg"}))}async function nJ(q,Z){let{TeleportRepoMismatchDialog:J}=await import("./TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs");return K0(q,(Q)=>T(J,{targetRepo:Z.targetRepo,initialPaths:Z.initialPaths,onSelectPath:Q,onCancel:()=>Q(null)}))}async function tJ(q,Z,J,Q){let[Y,{ResumeConversation:H},{App:V}]=await Promise.all([J,import("./ResumeConversation-0.1.12-sn3hxnfq.mjs"),import("./App-0.1.12-t1g68ag4.mjs")]);await r0(q,T(V,{getFpsMetrics:Z.getFpsMetrics,stats:Z.stats,initialState:Z.initialState,children:T(s0,{children:T(H,{...Q,worktreePaths:Y})})}))}bY();function oJ(){}tY();e3();Zq();ZQ();e8();o8();t8();q4();qq();n0();var eJ=5,qQ=30,Z4=`After you finish implementing the change:
25
+ 1. **Simplify** — Invoke the \`${XQ}\` 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 J4(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 \`${QQ}\` 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 ${eJ}–${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 ${eJ}; 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 \`${YQ}\` 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 \`${JQ}\` 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 \`${Y1}\` 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
+ ${Z4}
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 Q4="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.",Y4=`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 WQ(){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:Y4}];if(!await Q1())return[{type:"text",text:Q4}];return[{type:"text",text:J4(Z)}]}})}X4();zQ();Zq();n0();var W4=$Q.map((q)=>`mcp__claude-in-chrome__${q.name}`),H4=`
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 VQ(){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:W4,userInvocable:!0,isEnabled:()=>B9(),async getPromptForCommand(q){let Z=`${HQ}
107
+ ${H4}`;if(q)Z+=`
108
+ ## Task
109
+
110
+ ${q}`;return[{type:"text",text:Z}]}})}z4();q0();l0();V9();RQ();n0();import{open as $4,stat as V4}from"fs/promises";var X1=20,B4=65536;function FQ(){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=BQ(),J=KQ(),Q;try{let V=await V4(J),z=Math.min(V.size,B4),B=V.size-z,W=await $4(J,"r");try{let{buffer:X,bytesRead:K}=await W.read({buffer:Buffer.alloc(z),position:B}),F=X.toString("utf-8",0,K).split(`
111
+ `).slice(-X1).join(`
112
+ `);Q=`Log size: ${GQ(V.size)}
113
+
114
+ ### Last ${X1} lines
115
+
116
+ \`\`\`
117
+ ${F}
118
+ \`\`\``}finally{await W.close()}}catch(V){Q=H1(V)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${X1} lines of debug log: ${g(V)}`}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 - ${W1("userSettings")}
144
+ * project - ${W1("projectSettings")}
145
+ * local - ${W1("localSettings")}
146
+
147
+ ## Instructions
148
+
149
+ 1. Review the user's issue description
150
+ 2. The last ${X1} 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 ${MQ} 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
+ `}]}})}G4();M4();R4();Jq();UQ();var Qq=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],LQ={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"},Yq=["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"],K4=I9(()=>s.object({context:s.enum(Qq).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(Yq),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")),Uz=I9(()=>s.object({$schema:s.string().optional().describe("JSON Schema URL for editor validation"),$docs:s.string().optional().describe("Documentation URL"),bindings:s.array(K4()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."));j9();n0();function F4(){return Xq(["Context","Description"],Qq.map((q)=>[`\`${q}\``,LQ[q]]))}function U4(){let q={};for(let Z of _Q)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 Xq(["Action","Default Key(s)","Context"],Yq.map((Z)=>{let J=q[Z],Q=J?J.keys.map((H)=>`\`${H}\``).join(", "):"(none)",Y=J?J.context:L4(Z);return[`\`${Z}\``,Q,Y]}))}function L4(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 _4(){let q=[];q.push("### Non-rebindable (errors)");for(let Z of PQ)q.push(`- \`${Z.key}\` — ${Z.reason}`);q.push(""),q.push("### Terminal reserved (errors/warnings)");for(let Z of NQ)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 TQ)q.push(`- \`${Z.key}\` — ${Z.reason}`);return q.join(`
155
+ `)}var P4={$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"}}]},N4={context:"Chat",bindings:{"ctrl+s":null}},T4={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},D4={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},y4=["# 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
+ `),w4=["## File Format","","```json",y0(P4,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
157
+ `),I4=["## 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
+ `),j4=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",y0(N4,null,2),"```"].join(`
159
+ `),k4=["## 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
+ `),A4=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",y0(T4,null,2),"```","","### Add a chord binding","```json",y0(D4,null,2),"```"].join(`
161
+ `),x4=["## 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
+ `),O4=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claude/keybindings.json`.',"","### Common Issues and Fixes","",Xq(["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 yQ(){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:DQ,async getPromptForCommand(q){let Z=F4(),J=U4(),Q=_4(),Y=[y4,w4,I4,j4,k4,A4,x4,O4,`## 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 Xq(q,Z){let J=q.map(()=>"---");return[`| ${q.join(" | ")} |`,`| ${J.join(" | ")} |`,...Z.map((Q)=>`| ${Q.join(" | ")} |`)].join(`
174
+ `)}C4();n0();var E4="1 minute",S4="1 hour",kQ=`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 b4(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 Wq(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=b4(Z[2]);if(!Q)return null;return`${J}${Q}`}function f4(q){let Z=q.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!Z)return null;let J=Wq(`${Z[2]}${Z[3]}`);if(!J)return null;return{prompt:Z[1].trim(),interval:J}}function h4(q){let Z=q.trim();if(!Z)return{mode:"dynamic-maintenance"};let J=Wq(Z);if(J)return{mode:"fixed-maintenance",interval:J};let[Q,...Y]=Z.split(/\s+/),H=Wq(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 V=f4(Z);if(V){if(!V.prompt)return{mode:"fixed-maintenance",interval:V.interval};return{mode:"fixed-prompt",interval:V.interval,prompt:V.prompt}}return{mode:"dynamic-prompt",prompt:Z}}function v4(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
+ ${kQ}
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 ${Hq} 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 ${wQ} days, and that the user can cancel sooner with ${jQ} 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 u4(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
+ ${kQ}
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 ${E4} and ${S4}.
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 ${Hq}.
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 AQ(){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:IQ,async getPromptForCommand(q){let Z=h4(q);return[{type:"text",text:Z.mode==="fixed-prompt"||Z.mode==="fixed-maintenance"?v4(Z):u4(Z)}]}})}ZQ();n0();var c4=`# 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 ${Y1} 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 xQ(){z0({name:"simplify",description:"Review changed code for reuse, quality, and efficiency, then fix any issues found.",userInvocable:!0,async getPromptForCommand(q){let Z=c4;if(q)Z+=`
309
+
310
+ ## Additional Focus
311
+
312
+ ${q}`;return[{type:"text",text:Z}]}})}Jq();m4();j9();n0();function g4(){let q=OQ(CQ(),{io:"input"});return y0(q,null,2)}var d4=`## 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
+ `,EQ=`## 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
+ `,SQ=`## 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
+ `,p4=`# 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
+ ${d4}
666
+
667
+ ${EQ}
668
+
669
+ ${SQ}
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 bQ(){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=EQ+`
731
+
732
+ `+SQ;if(Q)Y+=`
733
+
734
+ ## Task
735
+
736
+ ${Q}`;return[{type:"text",text:Y}]}let Z=g4(),J=p4;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 fQ(){if(bQ(),yQ(),FQ(),xQ(),WQ(),AQ(),B9())VQ()}aY();GX();zQ();Zq();OY();PX();RQ();l4();qq();T9();c1();pX();qq();i4();a4();async function uQ(){if(!await vQ("gh"))return"not_installed";let{exitCode:Z}=await hQ("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return Z===0?"authenticated":"not_authenticated"}_Y();x9();Uq();jY();TY();U6();bX();fX();hX();wX();pY();gY();_X();aX();wY();q0();RY();BX();gQ();Q0();s4();async function dQ(q,Z){let J=await mQ(q),Q=cQ(Z);for(let Y of J){if(Y.type!=="prompt")continue;M("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();r4();Kq();Bq();Gq();T9();j9();function sQ(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 D("--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(!k9())).action(async(Z,J,Q,Y)=>{let H=J,V=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=iQ(Y.scope),B=aQ(Y.transport);if(Y.xaa&&!k9())r("Error: --xaa requires CLAUDE_CODE_ENABLE_XAA=1 in your environment");let W=Boolean(Y.xaa);if(W){let F=[];if(!Y.clientId)F.push("--client-id");if(!Y.clientSecret)F.push("--client-secret");if(!t0())F.push("'claude mcp xaa setup' (settings.xaaIdp not configured)");if(F.length)r(`Error: --xaa requires: ${F.join(", ")}`)}let X=Y.transport!==void 0,K=H.startsWith("http://")||H.startsWith("https://")||H.startsWith("localhost")||H.endsWith("/sse")||H.endsWith("/mcp");if(M("tengu_mcp_add",{type:B,scope:z,source:"command",transport:B,transportExplicit:X,looksLikeUrl:K}),B==="sse"){if(!H)r("Error: URL is required for SSE transport.");let F=Y.header?zq(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 $q():void 0,u={type:"sse",url:H,headers:F,oauth:j};if(await z1(Z,u,z),C)Vq(Z,u,C);if(process.stdout.write(`Added SSE MCP server ${Z} with URL: ${H} to ${z} config
762
+ `),F)process.stdout.write(`Headers: ${y0(F,null,2)}
763
+ `)}else if(B==="http"){if(!H)r("Error: URL is required for HTTP transport.");let F=Y.header?zq(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 $q():void 0,u={type:"http",url:H,headers:F,oauth:j};if(await z1(Z,u,z),C)Vq(Z,u,C);if(process.stdout.write(`Added HTTP MCP server ${Z} with URL: ${H} to ${z} config
764
+ `),F)process.stdout.write(`Headers: ${y0(F,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&&K)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 F=pQ(Y.env);await z1(Z,{type:"stdio",command:H,args:V,env:F},z),process.stdout.write(`Added stdio MCP server ${Z} with command: ${H} ${V.join(" ")} to ${z} config
771
+ `)}A0(`File modified: ${lQ(z)}`)}catch(z){r(z.message)}})}function rQ(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.12-vm3tpth6.mjs");await Q(Z,J)})}Gq();V9();q0();function eQ(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 V=t0(),z=V?.issuer,B=V?.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(Rq(z)!==Rq(J.issuer))A9(z),$1(z);else if(B!==J.clientId)A9(z),$1(z)}if(H){let{success:X,warning:K}=tQ(J.issuer,H);if(!X)return r(`Error: settings written but keychain save failed${K?` — ${K}`:""}. Re-run with --client-secret once keychain is available.`)}A0(`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=t0();if(!Q)return r("Error: no XAA IdP connection. Run 'claude mcp xaa setup' first.");if(J.idToken){let H=nQ(Q.issuer,J.idToken);return A0(`id_token cached for ${Q.issuer} (expires ${new Date(H).toISOString()})`)}if(J.force)A9(Q.issuer);if(Mq(Q.issuer)!==void 0)return A0(`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 oQ({idpIssuer:Q.issuer,idpClientId:Q.clientId,idpClientSecret:Fq(Q.issuer),callbackPort:Q.callbackPort,onAuthorizationUrl:(H)=>{process.stdout.write(`If the browser did not open, visit:
773
+ ${H}
774
+ `)}}),A0("Logged in. MCP servers with --xaa will now authenticate silently.")}catch(H){r(`IdP login failed: ${g(H)}`)}}),Z.command("show").description("Show the current IdP connection config").action(()=>{let J=t0();if(!J)return A0("No XAA IdP connection configured.");let Q=Fq(J.issuer)!==void 0,Y=Mq(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
+ `),A0()}),Z.command("clear").description("Clear the IdP connection config and cached id_token").action(()=>{let J=t0(),{error:Q}=S("userSettings",{xaaIdp:void 0});if(Q)return r(`Error writing settings: ${Q.message}`);if(J)A9(J.issuer),$1(J.issuer);A0("XAA IdP connection cleared")})}HX();e3();Kq();Bq();Gq();mX();WX();nZ();qX();OX();MY();l0();V9();FY();d1();SX();AY();UY();yX();PY();DY();a0();Q0();J0();x9();q0();function q6(){let q=f();if(q.autoUpdates!==!1||q.autoUpdatesProtectedForNative===!0)return;try{let Z=i("userSettings")||{};S("userSettings",{...Z,env:{...Z.env,DISABLE_AUTOUPDATER:"1"}}),M("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!Z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",h((J)=>{let{autoUpdates:Q,autoUpdatesProtectedForNative:Y,...H}=J;return H})}catch(Z){p(Error(`Failed to migrate auto-updates: ${Z}`)),M("tengu_migrate_autoupdates_error",{has_error:!0})}}Q0();J0();x9();q0();function Z6(){if(!f().bypassPermissionsModeAccepted)return;try{if(!V1())S("userSettings",{skipDangerousModePermissionPrompt:!0});M("tengu_migrate_bypass_permissions_accepted",{}),h((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();x9();q0();function Y6(){let q=J6(),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={},V=[];if(Z&&Y.enableAllProjectMcpServers===void 0)H.enableAllProjectMcpServers=q.enableAllProjectMcpServers,V.push("enableAllProjectMcpServers");else if(Z)V.push("enableAllProjectMcpServers");if(J&&q.enabledMcpjsonServers){let z=Y.enabledMcpjsonServers||[];H.enabledMcpjsonServers=[...new Set([...z,...q.enabledMcpjsonServers])],V.push("enabledMcpjsonServers")}if(Q&&q.disabledMcpjsonServers){let z=Y.disabledMcpjsonServers||[];H.disabledMcpjsonServers=[...new Set([...z,...q.disabledMcpjsonServers])],V.push("disabledMcpjsonServers")}if(Object.keys(H).length>0)S("localSettings",H);if(V.includes("enableAllProjectMcpServers")||V.includes("enabledMcpjsonServers")||V.includes("disabledMcpjsonServers"))Q6((z)=>{let{enableAllProjectMcpServers:B,enabledMcpjsonServers:W,disabledMcpjsonServers:X,...K}=z;return K});M("tengu_migrate_mcp_approval_fields_success",{migratedCount:V.length})}catch(Y){p(Y),M("tengu_migrate_mcp_approval_fields_error",{})}}Q0();J0();Uq();p0();q0();function W6(){if(R0()!=="firstParty")return;if(!X6())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"}),h((Z)=>({...Z,legacyOpusMigrationTimestamp:Date.now()})),M("tengu_legacy_opus_migration",{from_model:q})}Q0();Uq();q0();function $6(){if(!z6())return;if(i("userSettings")?.model!=="opus")return;let Z="opus[1m]",J=v0(Z)===v0(H6())?void 0:Z;S("userSettings",{model:J}),M("tengu_opus_to_opus1m_migration",{})}J0();function V6(){h((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})}a0();J0();p0();q0();function K6(){if(R0()!=="firstParty")return;if(f().sonnet1m45MigrationComplete)return;if(i("userSettings")?.model==="sonnet[1m]")S("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(B6()==="sonnet[1m]")B1("sonnet-4-5-20250929[1m]");h((Q)=>({...Q,sonnet1m45MigrationComplete:!0}))}Q0();Lq();J0();p0();q0();function M6(){if(R0()!=="firstParty")return;if(!K1()&&!G6()&&!R6())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"}),f().numStartups>1)h((Q)=>({...Q,sonnet45To46MigrationTimestamp:Date.now()}));M("tengu_sonnet45_to_46_migration",{from_model:q,has_1m:Z})}Q0();J0();x9();U6();q0();function L6(){if(f().hasResetAutoModeOptInForDefaultOffer)return;if(F6()!=="enabled")return;try{let Z=i("userSettings");if(Z?.skipAutoPermissionPrompt&&Z?.permissions?.defaultMode!=="auto")S("userSettings",{skipAutoPermissionPrompt:void 0}),M("tengu_migrate_reset_auto_opt_in_for_default_offer",{});h((J)=>{if(J.hasResetAutoModeOptInForDefaultOffer)return J;return{...J,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(Z){p(Error(`Failed to reset auto mode opt-in: ${Z}`))}}Q0();Lq();J0();p0();q0();function _6(){if(f().opusProMigrationComplete)return;if(R0()!=="firstParty"||!K1()){h((Q)=>({...Q,opusProMigrationComplete:!0})),M("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(u0()?.model===void 0){let Q=Date.now();h((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:Q})),M("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else h((Q)=>({...Q,opusProMigrationComplete:!0})),M("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}V9();j9();Jq();UQ();var n4=I9(()=>s.object({session_id:s.string(),ws_url:s.string(),work_dir:s.string().optional()}));_J();DX();eY();ZX();hY();QX();CY();NY();oZ();vX();dX();dY();VX();TX();lY();KX();sX();Z0();L("main_tsx_entry");B2();I2();var y6=()=>(nY(),e0(rY)),rX=()=>(MX(),e0(RX)),nX=()=>(UX(),e0(FX)),JZ=(XX(),e0(YX));var tX=(AX(),e0(kX));L("main_tsx_imports_loaded");function oX(){try{let q=i("policySettings");if(q){let Z=G2(q);M("tengu_managed_settings_loaded",{keyCount:Z.length,keys:Z.join(",")})}}catch{}}function eX(){let q=z2(),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 w6(){let q=v0(YZ()??S9());dQ(b9(),y2(q,C6())),a3().then(({enabled:Z,errors:J})=>{let Q=i3();M3(Z,Q,g2()),F3(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(kq("--use-system-ca"))q.has_use_system_ca=!0;if(kq("--use-openssl-ca"))q.has_use_openssl_ca=!0;return q}async function ZW(){if(u2())return;let[q,Z,J]=await Promise.all([Q1(),Y2(),uQ()]);M("tengu_startup_telemetry",{is_git:q,worktree_count:Z,gh_auth_status:J,sandbox_enabled:U1.isSandboxingEnabled(),are_unsandboxed_commands_allowed:U1.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:U1.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:F2(),prefers_reduced_motion:o0().prefersReducedMotion??!1,...qW()})}var Iq=11;function JW(){if(f().migrationVersion!==Iq)q6(),Z6(),Y6(),_6(),K6(),W6(),M6(),$6(),V6(),L6(),h((q)=>q.migrationVersion===Iq?q:{...q,migrationVersion:Iq});$5().catch(()=>{})}function QW(){if(i0()){H0("info","prefetch_system_context_non_interactive"),G9();return}if(D1())H0("info","prefetch_system_context_has_trust"),G9();else H0("info","prefetch_system_context_skipped_no_trust")}function HZ(){if(a(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||O0())return;y3(),WZ(),QW(),A5();let q=T0()?.transport;if(q==="bedrock"&&!a(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))A2();if(q==="vertex"&&!a(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))k2();if(m2(b9(),AbortSignal.timeout(3000),[]),n3(),dJ(),T2(),h2.initialize(),!O0())k5.initialize()}function YW(q){try{let Z=q.trim(),J=Z.startsWith("{")&&Z.endsWith("}"),Q;if(J){if(!T1(Z))process.stderr.write(A.red(`Error: Invalid JSON provided to --settings
780
+ `)),process.exit(1);Q=b2("claude-settings",".json",{contentHash:Z}),o6(Q,Z,"utf8")}else{let{resolvedPath:Y}=e6(q2(),q);try{ZZ(Y,"utf8")}catch(H){if(H1(H))process.stderr.write(A.red(`Error: Settings file not found: ${Y}
781
+ `)),process.exit(1);throw H}Q=Y}v6(Q),QZ()}catch(Z){if(Z instanceof Error)p(Z);process.stderr.write(A.red(`Error processing settings: ${g(Z)}
782
+ `)),process.exit(1)}}function XW(q){try{let Z=H2(q);u6(Z),QZ()}catch(Z){if(Z instanceof Error)p(Z);process.stderr.write(A.red(`Error processing --setting-sources: ${g(Z)}
783
+ `)),process.exit(1)}}function WW(){L("eagerLoadSettings_start");let q=qZ("--settings");if(q)YW(q);let Z=qZ("--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 hG(){L("main_function_start"),process.env.NoDefaultCurrentDirectoryInExePath="1",aJ(),process.on("exit",()=>{BW()}),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((B)=>B.startsWith("--sdk-url")),Y=Z||J||Q||!process.stdout.isTTY;if(Y)C2();S6(!Y),HW(Y);let V=(()=>{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 B=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN||process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(process.env.CLAUDE_CODE_ENTRYPOINT==="remote"||B)return"remote";return"cli"})();b6(V);let z=process.env.CLAUDE_CODE_QUESTION_PREVIEW_FORMAT;if(z==="markdown"||z==="html")jq(z);else if(!V.startsWith("sdk-")&&V!=="claude-desktop"&&V!=="local-agent"&&V!=="remote")jq("markdown");if(process.env.CLAUDE_CODE_ENVIRONMENT_KIND==="bridge")h6("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 Z2(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,K)=>W(X).localeCompare(W(K))})}let Z=new mJ().configureHelp(q()).enablePositionalOptions();if(L("run_commander_initialized"),Z.hook("preAction",async(W)=>{if(await Promise.all([K2(),j2()]),await TJ(),L("preAction_after_init"),!a(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE))process.title="claudio";let{initSinks:X}=await import("./sinks-0.1.12-qvx26vtt.mjs");X(),L("preAction_after_sinks");let K=W.getOptionValue("pluginDir");if(Array.isArray(K)&&K.length>0&&K.every((F)=>typeof F==="string"))c6(K),s3("preAction: --plugin-dir inline plugins");JW(),L("preAction_after_migrations");try{let{runClaudioStartupMigrations:F}=(D6(),e0(T6));F()}catch(F){N(`[startup-migrations] failed: ${F instanceof Error?F.message:String(F)}`)}L("preAction_after_claudio_migrations"),T3(),_3(),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 D("-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 D("--init","Run Setup hooks with init trigger, then continue").hideHelp()).addOption(new D("--init-only","Run Setup and SessionStart:startup hooks, then exit").hideHelp()).addOption(new D("--maintenance","Run Setup hooks with maintenance trigger, then continue").hideHelp()).addOption(new D("--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 D("--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 D("--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 D("--thinking <mode>","Thinking mode: enabled (equivalent to adaptive), disabled").choices(["enabled","adaptive","disabled"]).hideHelp()).addOption(new D("--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 D("--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 D("--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 D("--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 D("--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 D("--permission-prompt-tool <tool>","MCP tool to use for permission prompts (only works with --print)").argParser(String).hideHelp()).addOption(new D("--system-prompt <prompt>","System prompt to use for the session").argParser(String)).addOption(new D("--system-prompt-file <file>","Read system prompt from a file").argParser(String).hideHelp()).addOption(new D("--append-system-prompt <prompt>","Append a system prompt to the default system prompt").argParser(String)).addOption(new D("--append-system-prompt-file <file>","Read system prompt from a file and append to the default system prompt").argParser(String).hideHelp()).addOption(new D("--permission-mode <mode>","Permission mode to use for the session").argParser(String).choices(V2)).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 D("--prefill <text>","Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new D("--deep-link-origin","Signal that this session was launched from a deep link").hideHelp()).addOption(new D("--deep-link-repo <slug>","Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new D("--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 D("--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 D("--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 D("--effort <level>","Effort level for the current session (low, medium, high, max)").argParser((W)=>{let X=W.toLowerCase(),K=["low","medium","high","max"];if(!K.includes(X))throw new cJ(`It must be one of: ${K.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)").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")M("tengu_code_prompt_ignored",{}),console.warn(A.yellow("Tip: You can launch Claude Code with just `claude`")),W=void 0;if(W&&typeof W==="string"&&!/\s/.test(W)&&W.length>0)M("tengu_single_word_prompt",{length:W.length});let K=!1,F,{debug:U=!1,debugToStderr:j=!1,dangerouslySkipPermissions:C,allowDangerouslySkipPermissions:u=!1,tools:F0=[],allowedTools:Y0=[],disallowedTools:C0=[],mcpConfig:I0=[],permissionMode:U0,addDir:L0=[],fallbackModel:R9,betas:BZ=[],ide:j1=!1,sessionId:M9,includeHookEvents:KZ,includePartialMessages:GZ}=X;if(X.prefill)E2(X.prefill);let k1,RZ=X.agents,A1=X.agent,j0=X.outputFormat,_0=X.inputFormat,u9=X.verbose??f().verbose,MZ=X.print,FZ=X.init??!1,x1=X.initOnly??!1,UZ=X.maintenance??!1,O1=X.disableSlashCommands||!1,L7=void 0,C1=lq()?X.worktree:void 0,c9=typeof C1==="string"?C1:void 0,q9=C1!==void 0,LZ;if(c9){let $=T5(c9);if($!==null)LZ=$,c9=void 0}let _Z=lq()&&X.tmux===!0;if(_Z){if(!q9)process.stderr.write(A.red(`Error: --tmux requires --worktree
786
+ `)),process.exit(1);if(w9()==="windows")process.stderr.write(A.red(`Error: --tmux is not supported on Windows
787
+ `)),process.exit(1);if(!await D5())process.stderr.write(A.red(`Error: tmux is not installed.
788
+ ${y5()}
789
+ `)),process.exit(1)}let P0;if(K9()){let $=KW(X);P0=$;let R=$.agentId||$.agentName||$.teamName,P=$.agentId&&$.agentName&&$.teamName;if(R&&!P)process.stderr.write(A.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
790
+ `)),process.exit(1);if($.agentId&&$.agentName&&$.teamName)y6().setDynamicTeamContext?.({agentId:$.agentId,agentName:$.agentName,teamName:$.teamName,color:$.agentColor,planModeRequired:$.planModeRequired??!1,parentSessionId:$.parentSessionId});if($.teammateMode)nX().setCliTeammateModeOverride?.($.teammateMode)}let m9=X.sdkUrl??void 0,PZ=GZ||a(process.env.CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES);if(KZ||a(process.env.CLAUDE_CODE_REMOTE))l3(!0);if(m9){if(!_0)_0="stream-json";if(!j0)j0="stream-json";if(X.verbose===void 0)u9=!0;if(!X.print)MZ=!0}let $0=X.teleport??null,NZ=X.remote,Z9=NZ===!0?"":NZ??null,E1=X.remoteControl??X.rc,TZ=!1,_7=typeof E1==="string"&&E1.length>0?E1:void 0;if(M9){if((X.continue||X.resume)&&!X.forkSession)process.stderr.write(A.red(`Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
791
+ `)),process.exit(1);if(!m9){let $=L1(M9);if(!$)process.stderr.write(A.red(`Error: Invalid session ID. Must be a valid UUID.
792
+ `)),process.exit(1);if(F5($))process.stderr.write(A.red(`Error: Session ID ${$} is already in use.
793
+ `)),process.exit(1)}}let S1=X.file;if(S1&&S1.length>0){let $=j3();if(!$)process.stderr.write(A.red(`Error: Session token required for file downloads. CLAUDE_CODE_SESSION_ACCESS_TOKEN must be set.
794
+ `)),process.exit(1);let R=process.env.CLAUDE_CODE_REMOTE_SESSION_ID||j6(),P=x3(S1);if(P.length>0){let I={baseUrl:(T0()?.transport==="anthropic"?T0()?.baseUrl:void 0)||t9().BASE_API_URL,oauthToken:$,sessionId:R};k1=A3(P,I)}}let V0=i0();if(R9&&X.model&&R9===X.model)process.stderr.write(A.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 J9=X.systemPrompt;if(X.systemPromptFile){if(X.systemPrompt)process.stderr.write(A.red(`Error: Cannot use both --system-prompt and --system-prompt-file. Please use only one.
796
+ `)),process.exit(1);try{let $=O9(X.systemPromptFile);J9=ZZ($,"utf8")}catch($){if(Aq($)==="ENOENT")process.stderr.write(A.red(`Error: System prompt file not found: ${O9(X.systemPromptFile)}
797
+ `)),process.exit(1);process.stderr.write(A.red(`Error reading system prompt file: ${g($)}
798
+ `)),process.exit(1)}}let t=X.appendSystemPrompt;if(X.appendSystemPromptFile){if(X.appendSystemPrompt)process.stderr.write(A.red(`Error: Cannot use both --append-system-prompt and --append-system-prompt-file. Please use only one.
799
+ `)),process.exit(1);try{let $=O9(X.appendSystemPromptFile);t=ZZ($,"utf8")}catch($){if(Aq($)==="ENOENT")process.stderr.write(A.red(`Error: Append system prompt file not found: ${O9(X.appendSystemPromptFile)}
800
+ `)),process.exit(1);process.stderr.write(A.red(`Error reading append system prompt file: ${g($)}
801
+ `)),process.exit(1)}}if(K9()&&P0?.agentId&&P0?.agentName&&P0?.teamName){let $=rX().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;t=t?`${t}
802
+
803
+ ${$}`:$}let{mode:m0,notification:DZ}=J5({permissionModeCli:U0,dangerouslySkipPermissions:C});if(g6(m0==="bypassPermissions"),X.enableAutoMode||U0==="auto"||m0==="auto"||!U0&&H5())tX?.setAutoModeFlagCli(!0);let N0={};if(I0&&I0.length>0){let $=I0.map((y)=>y.trim()).filter((y)=>y.length>0),R={},P=[];for(let y of $){let I=null,w=[],m=T1(y);if(m){let E=H3({configObject:m,filePath:"command line",expandVars:!0,scope:"dynamic"});if(E.config)I=E.config.mcpServers;else w=E.errors}else{let E=O9(y),_=z3({filePath:E,expandVars:!0,scope:"dynamic"});if(_.config)I=_.config.mcpServers;else w=_.errors}if(w.length>0)P.push(...w);else if(I)R={...R,...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(R).length>0){let y=Object.entries(R).filter(([,_])=>_.type!=="sdk").map(([_])=>_),I=null;if(y.some(Z3))I=`Invalid MCP configuration: "${q3}" is a reserved MCP name.`;if(I)process.stderr.write(`Error: ${I}
807
+ `),process.exit(1);let w=c2(R,(_)=>({..._,scope:"dynamic"})),{allowed:m,blocked:E}=mq(w);if(E.length>0)process.stderr.write(`Warning: MCP ${C9(E.length,"server")} blocked by enterprise policy: ${E.join(", ")}
808
+ `);N0={...N0,...m}}}let yZ=X;m6(yZ.chrome);let b1=G5(yZ.chrome)&&x2(),P7=!b1&&B9();if(b1){let $=w9();try{M("tengu_claude_in_chrome_setup",{platform:$});let{mcpConfig:R,allowedTools:P,systemPrompt:y}=tq();if(N0={...N0,...R},Y0.push(...P),y)t=t?`${y}
809
+
810
+ ${t}`:y}catch(R){M("tengu_claude_in_chrome_setup_failed",{platform:$}),N(`[Claude in Chrome] Error: ${R}`),p(R),console.error("Error: Failed to run with Claude in Chrome."),process.exit(1)}}else if(P7)try{let{mcpConfig:$}=tq();N0={...N0,...$};let R=p3;t=t?`${t}
811
+
812
+ ${R}`:R}catch($){N(`[Claude in Chrome] Error (auto-enable): ${$}`)}let g9=X.strictMcpConfig||!1;if(gq()){if(g9)process.stderr.write(A.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(N0&&!$3(N0))process.stderr.write(A.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}a6(L0);let N7,wZ=await Q5({allowedToolsCli:Y0,disallowedToolsCli:C0,baseToolsCli:F0,permissionMode:m0,allowDangerouslySkipPermissions:u,addDirs:L0}),k0=wZ.toolPermissionContext,{warnings:T7,dangerousPermissions:D7,overlyBroadBashPermissions:f1}=wZ;if(D7.length>0)k0=Z5(k0);T7.forEach(($)=>{console.error($)}),I3();let IZ=V0&&!g9&&!gq()&&!O0()?J3().then(($)=>{let{allowed:R,blocked:P}=mq($);if(P.length>0)process.stderr.write(`Warning: claude.ai MCP ${C9(P.length,"server")} blocked by enterprise policy: ${P.join(", ")}
813
+ `);return R}):Promise.resolve({});N("[STARTUP] Loading MCP configs...");let y7=Date.now(),w7,I7=(g9||O0()?Promise.resolve({servers:{}}):W3(N0)).then(($)=>{return w7=Date.now()-y7,$});if(_0&&_0!=="text"&&_0!=="stream-json")console.error(`Error: Invalid input format "${_0}".`),process.exit(1);if(_0==="stream-json"&&j0!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(m9){if(_0!=="stream-json"||j0!=="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(_0!=="stream-json"||j0!=="stream-json")console.error("Error: --replay-user-messages requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(PZ){if(!V0||j0!=="stream-json")xq("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(X.sessionPersistence===!1&&!V0)xq("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);let G0=await zW(W||"",_0??"text");L("action_after_input_prompt"),G1(X);let F9=g3(k0);if(a(process.env.CLAUDE_CODE_COORDINATOR_MODE)){let{applyCoordinatorToolFilter:$}=await import("./toolPool-0.1.12-tyqns5jv.mjs");F9=$(F9)}L("action_tools_loaded");let Q9;if(t2({isNonInteractiveSession:V0})&&X.jsonSchema)Q9=t6(X.jsonSchema);if(Q9){let $=o2(Q9);if("tool"in $)F9=[...F9,$.tool],M("tengu_structured_output_enabled",{schema_property_count:Object.keys(Q9.properties||{}).length,has_required_fields:Boolean(Q9.required)});else M("tengu_structured_output_failure",{error:"Invalid JSON schema"})}L("action_before_setup"),N("[STARTUP] Running setup()...");let j7=Date.now(),{setup:k7}=await import("./setup-0.1.12-2kjx6mnf.mjs"),A7=void 0,d9=b9();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")oJ(),fQ();let x7=k7(d9,m0,u,q9,c9,_Z,M9?L1(M9):void 0,LZ,A7),jZ=q9?null:oq(d9),kZ=q9?null:uq(d9);jZ?.catch(()=>{}),kZ?.catch(()=>{}),await x7,N(`[STARTUP] setup() completed in ${Date.now()-j7}ms`),L("action_after_setup");let O7=!!X.replayUserMessages;if(i0())b0(),G9(),WZ(),U2();let p9=X.name?.trim();if(p9)L5(p9);let C7=X.model==="default"?S9():X.model,E7=R9==="default"?S9():R9,h1=q9?b9():d9;N("[STARTUP] Loading commands and agents...");let S7=Date.now(),[l9,AZ]=await Promise.all([jZ??oq(h1),kZ??uq(h1)]);N(`[STARTUP] Commands and agents loaded in ${Date.now()-S7}ms`),L("action_commands_loaded");let v1=[];if(RZ)try{let $=T1(RZ);if($)v1=l2($,"flagSettings")}catch($){p($)}let xZ=[...AZ.allAgents,...v1],Y9={...AZ,allAgents:xZ,activeAgents:p2(xZ)},i9=A1??o0().agent,O;if(i9){if(O=Y9.activeAgents.find(($)=>$.agentType===i9),!O)N(`Warning: agent "${i9}" not found. Available agents: ${Y9.activeAgents.map(($)=>$.agentType).join(", ")}. Using default behavior.`)}if(l6(O?.agentType),O)M("tengu_agent_flag",{agentType:vq(O)?O.agentType:"custom",...A1&&{source:"cli"}});if(O?.agentType)U5(O.agentType);if(V0&&O&&!J9&&!vq(O)){let $=O.getSystemPrompt();if($)J9=$}if(O?.initialPrompt){if(typeof G0==="string")G0=G0?`${O.initialPrompt}
814
+
815
+ ${G0}`:O.initialPrompt;else if(!G0)G0=O.initialPrompt}let U9=C7;if(!U9&&O?.model&&O.model!=="inherit")U9=v0(O.model);B1(U9),O6(P2()||null);let OZ=YZ(),L9=v0(OZ??S9()),g0;if(_1()){let $=P1()?X.advisor:void 0;if($){if(N(`[AdvisorTool] --advisor ${$}`),!V3(L9))process.stderr.write(A.red(`Error: The model "${L9}" does not support the advisor tool.
816
+ `)),process.exit(1);let R=N2(v0($));if(!B3(R))process.stderr.write(A.red(`Error: The model "${$}" cannot be used as an advisor.
817
+ `)),process.exit(1)}if(g0=P1()?$??K3():$,g0)N(`[AdvisorTool] Advisor model: ${g0}`)}if(K9()&&P0?.agentId&&P0?.agentName&&P0?.teamName&&P0?.agentType){let $=Y9.activeAgents.find((R)=>R.agentType===P0.agentType);if($){let R;if($.source==="built-in")N(`[teammate] Built-in agent ${P0.agentType} - skipping custom prompt (not supported)`);else R=$.getSystemPrompt();if($.memory)M("tengu_agent_memory_loaded",{scope:$.memory,source:"teammate"});if(R){let P=`
818
+ # Custom Agent Instructions
819
+ ${R}`;t=t?`${t}
820
+
821
+ ${P}`:P}}else N(`[teammate] Custom agent ${P0.agentType} not found in available agents`)}R1(X);let v,X9,W9;if(!V0){let $=S5(!1);X9=$.getFpsMetrics,W9=$.stats;let{createRoot:R}=await import("./ink-0.1.12-qdefs6hn.mjs");v=await R($.renderOptions),M("tengu_timer",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let P=Date.now(),y=await E5(v,m0,u,l9,b1,N7);if(y&&W?.trim().toLowerCase()==="/login")W="";if(y)D3(),P3(),w3(),s6(),import("./trustedDevice-0.1.12-w1scr51x.mjs").then((w)=>{return w.clearTrustedDeviceToken(),w.enrollTrustedDevice()});try{let{getActiveProviderProfile:w,getProviderProfiles:m}=await import("./providerProfiles-0.1.12-3fp9n85w.mjs");if(!(m().length>0||Boolean(w()))&&!y){let{showSetupDialog:_}=await import("./interactiveHelpers-0.1.12-c4xec7dn.mjs"),{ProviderManager:k}=await import("./ProviderManager-0.1.12-01epdnc3.mjs");await _(v,(o)=>T(k,{mode:"first-run",onDone:()=>o()}))}}catch(w){N(`[provider-wizard] auto-wizard failed: ${w instanceof Error?w.message:String(w)}`)}try{let{tryGetActiveProvider:w}=await import("./activeProvider-0.1.12-dnn18th9.mjs");if(w()&&process.stdout.isTTY&&process.env.CLAUDIO_NO_CLEAR_ON_START!=="1"){let{clearTerminal:m}=await import("./clearTerminal-0.1.12-pzt74jz3.mjs");process.stdout.write(m)}}catch(w){N(`[startup-clear] failed: ${w instanceof Error?w.message:String(w)}`)}let I=await Sq();if(!I.valid)await w0(v,I.message)}if(process.exitCode!==void 0){N("Graceful shutdown initiated, skipping further initialization");return}if(f3())h3();if(!V0){let{errors:$}=R2(),R=$.filter((y)=>!y.mcpErrorMetadata),P=T0()?.transport;if(R.length>0&&P!=="openai_compat"&&P!=="codex_responses"&&P!=="github_copilot")await sJ(v,{settingsErrors:R,onExit:()=>f0(1)})}let u1=M1("tengu_cicada_nap_ms",0),a9=f().startupPrefetchedAt??0,b7=O0()||u1>0&&Date.now()-a9<u1;if(z5(),D2(),!b7){let $=a9>0?` last ran ${Math.round((Date.now()-a9)/1000)}s ago`:"";if(N(`Starting background startup prefetches${$}`),i2().catch((R)=>p(R)),R5(),K5(),!M1("tengu_miraculo_the_bard",!1))_2();else Eq();if(u1>0)h((R)=>({...R,startupPrefetchedAt:Date.now()}))}else N(`Skipping startup prefetches, last ran ${Math.round((Date.now()-a9)/1000)}s ago`),Eq();if(!V0)w5();let{servers:f7}=await I7,CZ={...f7,...N0},EZ={},H9={};for(let[$,R]of Object.entries(CZ)){let P=R;if(P.type==="sdk")EZ[$]=P;else H9[$]=P}L("action_mcp_configs_loaded");let h7=V0?Promise.resolve({clients:[],tools:[],commands:[]}):rq(H9),v7=V0?Promise.resolve({clients:[],tools:[],commands:[]}):IZ.then(($)=>Object.keys($).length>0?rq($):{clients:[],tools:[],commands:[]}),u7=Promise.all([h7,v7]).then(([$,R])=>({clients:[...$.clients,...R.clients],tools:E9([...$.tools,...R.tools],"name"),commands:E9([...$.commands,...R.commands],"name")})),SZ=x1||FZ||UZ||V0||X.continue||X.resume?null:N1("startup",{agentType:O?.agentType,model:L9}),s9=[];u7.catch(()=>{});let bZ=[],fZ=[],hZ=[],z9=d2(),E0=z9!==!1?{type:"adaptive"}:{type:"disabled"};if(X.thinking==="adaptive"||X.thinking==="enabled")z9=!0,E0={type:"adaptive"};else if(X.thinking==="disabled")z9=!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)z9=!0,E0={type:"enabled",budgetTokens:$};else if($===0)z9=!1,E0={type:"disabled"}}}if(H0("info","started",{version:"99.0.0",is_native_binary:$2()}),N9(async()=>{H0("info","exited")}),VW({hasInitialPrompt:Boolean(W),hasStdin:Boolean(G0),verbose:u9,debug:U,debugToStderr:j,print:MZ??!1,outputFormat:j0??"text",inputFormat:_0??"text",numAllowedTools:Y0.length,numDisallowedTools:C0.length,mcpClientCount:Object.keys(CZ).length,worktreeEnabled:q9,skipWebFetchPreflight:o0().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:C??!1,permissionMode:m0,modeIsBypass:m0==="bypassPermissions",allowDangerouslySkipPermissionsPassed:u,systemPromptFlag:J9?X.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:t?X.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:E0,assistantActivationPath:void 0}),q5(H9,k0),oX(),u3().then(($)=>{if(!$)return;if(p9)c3(p9);m3().then((R)=>{if(R>=2)M("tengu_concurrent_sessions",{num_sessions:R})})}),O0());else if(V0)await aq(),L("action_after_plugins_init"),iq().then(()=>pq());else aq().then(async()=>{L("action_after_plugins_init"),await iq(),pq()});let vZ=x1||FZ?"init":UZ?"maintenance":null;if(x1){b0(),await k3("init",{forceSyncExecution:!0}),await N1("startup",{forceSyncExecution:!0}),f0(0);return}if(V0){if(j0==="stream-json"||j0==="json")J2(!0);b0(),o9();let $=X.continue||X.resume||$0||vZ?void 0:N1("startup");$?.catch(()=>{}),L("before_validateForceLoginOrg");let R=await Sq();if(!R.valid)process.stderr.write(R.message+`
822
+ `),process.exit(1);let P=O1?[]:l9.filter((x)=>x.type==="prompt"&&!x.disableNonInteractive||x.type==="local"&&x.supportsNonInteractive),y=n2(),I={...y,mcp:{...y.mcp,clients:bZ,commands:hZ,tools:fZ},toolPermissionContext:k0,effortValue:fq(X.effort)??hq(),...L2()&&{fastMode:Cq(U9??null)},..._1()&&g0&&{advisorModel:g0},...{}},w=f2(I,h9);if(k0.mode==="bypassPermissions"||u)W5(k0);if(Y5(k0,w.getState().fastMode).then(({updateContext:x})=>{w.setState((X0)=>{let d=x(X0.toolPermissionContext);if(d===X0.toolPermissionContext)return X0;return{...X0,toolPermissionContext:d}})}),X.sessionPersistence===!1)d6(!0);E6(w2(BZ));let m=(x,X0)=>{if(Object.keys(x).length===0)return Promise.resolve();return w.setState((d)=>({...d,mcp:{...d.mcp,clients:[...d.mcp.clients,...Object.entries(x).map(([W0,n])=>({name:W0,type:"pending",config:n}))]}})),o3(({client:d,tools:W0,commands:n})=>{w.setState((b)=>({...b,mcp:{...b.mcp,clients:b.mcp.clients.some((e)=>e.name===d.name)?b.mcp.clients.map((e)=>e.name===d.name?d:e):[...b.mcp.clients,d],tools:E9([...b.mcp.tools,...W0],"name"),commands:E9([...b.mcp.commands,...n],"name")}}))},x).catch((d)=>N(`[MCP] ${X0} connect error: ${d}`))};L("before_connectMcp"),await m(H9,"regular"),L("after_connectMcp");let E=5000,_=IZ.then((x)=>{if(Object.keys(x).length>0){let W0=new Set;for(let b of Object.values(x)){let e=cq(b);if(e)W0.add(e)}let n=new Set;for(let[b,e]of Object.entries(H9)){if(!b.startsWith("plugin:"))continue;let S0=cq(e);if(S0&&W0.has(S0))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,t3(b.name,b.config).catch(()=>{})}w.setState((b)=>{let{clients:e,tools:S0,commands:P9,resources:$9}=b.mcp;e=e.filter((d0)=>!n.has(d0.name)),S0=S0.filter((d0)=>!d0.mcpInfo||!n.has(d0.mcpInfo.serverName));for(let d0 of n)P9=Q3(P9,d0),$9=Y3($9,d0);return{...b,mcp:{...b.mcp,clients:e,tools:S0,commands:P9,resources:$9}}})}}let X0=I6(H9,(W0,n)=>!n.startsWith("plugin:")),{servers:d}=X3(x,X0);return m(d,"claudeai")}),k,o=await Promise.race([_.then(()=>!1),new Promise((x)=>{k=setTimeout((X0)=>X0(!0),E,x)})]);if(k)clearTimeout(k);if(o)N(`[MCP] claude.ai connectors not ready after ${E}ms — proceeding; background connection continues`);if(L("after_connectMcp_claudeai"),!O0())HZ(),import("./backgroundHousekeeping-0.1.12-z7jhyx9z.mjs").then((x)=>x.startBackgroundHousekeeping());w6(),L("before_print_import");let{runHeadless:l}=await import("./print-0.1.12-8mgqmx4k.mjs");L("after_print_import"),l(G0,()=>w.getState(),w.setState,P,F9,EZ,Y9.activeAgents,{continue:X.continue,resume:X.resume,verbose:u9,outputFormat:j0,jsonSchema:Q9,permissionPromptToolName:X.permissionPromptTool,allowedTools:Y0,thinkingConfig:E0,maxTurns:X.maxTurns,maxBudgetUsd:X.maxBudgetUsd,taskBudget:X.taskBudget?{total:X.taskBudget}:void 0,systemPrompt:J9,appendSystemPrompt:t,userSpecifiedModel:U9,fallbackModel:E7,teleport:$0,sdkUrl:m9,replayUserMessages:O7,includePartialMessages:PZ,forkSession:X.forkSession||!1,resumeSessionAt:X.resumeSessionAt||void 0,rewindFiles:X.rewindFiles,enableAuthStatus:X.enableAuthStatus,agent:A1,setupTrigger:vZ??void 0,sessionStartHooksPromise:$});return}M("tengu_startup_manual_model_config",{cli_flag:X.model,env_var:T0()?.model,settings_file:(o0()||{}).model,subscriptionType:O2(),agent:i9});let uZ=x5(L9),r9=[];if(DZ)r9.push({key:"permission-mode-notification",text:DZ,priority:"high"});if(uZ)r9.push({key:"model-deprecation-warning",text:uZ,color:"warning",priority:"high"});if(f1.length>0){let $=Oq(f1.map((I)=>I.ruleDisplay)),R=$.join(", "),P=Oq(f1.map((I)=>I.sourceDisplay)).join(", "),y=$.length;r9.push({key:"overly-broad-bash-notification",text:`${R} allow ${C9(y,"rule")} from ${P} ${C9(y,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let c7={...k0,mode:K9()&&y6().isPlanModeRequired()?"plan":k0.mode},m7=!1,g7=TZ||M2()||K,cZ=!1,_9={settings:o0(),tasks:{},agentNameRegistry:new Map,verbose:u9??f().verbose??!1,mainLoopModel:OZ,mainLoopModelForSession:null,isBriefOnly:m7,expandedView:f().showSpinnerTree?"teammates":f().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:K9()?!1:void 0,selectedIPAgentIndex:-1,coordinatorTaskIndex:-1,viewSelectionMode:"none",footerSelection:null,toolPermissionContext:c7,agent:O?.agentType,agentDefinitions:Y9,mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:0},plugins:{enabled:[],disabled:[],commands:[],errors:[],installationStatus:{marketplaces:[],plugins:[]},needsRefresh:!1},statusLineText:void 0,kairosEnabled:K,remoteSessionUrl:void 0,remoteConnectionStatus:"connecting",remoteBackgroundTaskCount:0,replBridgeEnabled:g7||cZ,replBridgeExplicit:TZ,replBridgeOutboundOnly:cZ,replBridgeConnected:!1,replBridgeSessionActive:!1,replBridgeReconnecting:!1,replBridgeConnectUrl:void 0,replBridgeSessionUrl:void 0,replBridgeEnvironmentId:void 0,replBridgeSessionId:void 0,replBridgeError:void 0,replBridgeInitialName:_7,showRemoteCallout:!1,notifications:{current:null,queue:r9},elicitation:{queue:[]},todos:{},remoteAgentTaskSuggestions:[],fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},attribution:s2(),thinkingEnabled:z9,promptSuggestionEnabled:a2(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:r2,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:G0?{message:sq({content:String(G0)})}:null,effortValue:fq(X.effort)??hq(),activeOverlays:new Set,fastMode:Cq(L9),..._1()&&g0&&{advisorModel:g0},teamContext:j5?.()};if(G0)d3(String(G0));let d7=fZ;h(($)=>({...$,numStartups:($.numStartups??0)+1})),setImmediate(()=>{ZW(),w6()});let mZ=null,n9={debug:U||j,commands:[...l9,...hZ],initialTools:d7,mcpClients:bZ,autoConnectIdeFlag:j1,mainThreadAgentDefinition:O,disableSlashCommands:O1,dynamicMcpConfig:N0,strictMcpConfig:g9,systemPrompt:J9,appendSystemPrompt:t,taskListId:L7,thinkingConfig:E0,...mZ&&{onTurnComplete:($)=>{mZ.then((R)=>R?.($))}}},gZ={modeApi:JZ,mainThreadAgentDefinition:O,agentDefinitions:Y9,currentCwd:h1,cliAgents:v1,initialState:_9};if(X.continue){let $=!1;try{let R=performance.now(),{clearSessionCaches:P}=await import("./caches-0.1.12-jvzzcs09.mjs");P();let y=await dq(void 0,void 0);if(!y)return M("tengu_continue",{success:!1}),await w0(v,"No conversation found to continue");let I=await eq(y,{forkSession:!!X.forkSession,includeAttribution:!0,transcriptPath:y.fullPath},gZ);if(I.restoredAgentDef)O=I.restoredAgentDef;G1(X),R1(X),M("tengu_continue",{success:!0,resume_duration_ms:Math.round(performance.now()-R)}),$=!0,await y9(v,{getFpsMetrics:X9,stats:W9,initialState:I.initialState},{...n9,mainThreadAgentDefinition:I.restoredAgentDef??O,initialMessages:I.messages,initialFileHistorySnapshots:I.fileHistorySnapshots,initialContentReplacements:I.contentReplacements,initialAgentName:I.agentName,initialAgentColor:I.agentColor},r0)}catch(R){if(!$)M("tengu_continue",{success:!1});return p(R),await w0(v,g(R),()=>M0(1))}}else if(X.resume||X.fromPr||$0||Z9!==null){let{clearSessionCaches:$}=await import("./caches-0.1.12-jvzzcs09.mjs");$();let R=null,P=void 0,y=L1(X.resume),I=void 0,w=null,m=void 0;if(X.fromPr){if(X.fromPr===!0)m=!0;else if(typeof X.fromPr==="string")m=X.fromPr}if(X.resume&&typeof X.resume==="string"&&!y){let _=X.resume.trim();if(_){let k=await N5(_,{exact:!0});if(k.length===1)w=k[0],y=P5(w)??null;else I=_}}if(Z9!==null||$0){if(await U3(),!L3("allow_remote_sessions"))return await w0(v,"Error: Remote sessions are disabled by your organization's policy.",()=>M0(1))}if(Z9!==null){let _=Z9.length>0,k=M1("tengu_remote_backend",!1);if(!k&&!_)return await w0(v,`Error: --remote requires a description.
823
+ Usage: claude --remote "your task description"`,()=>M0(1));M("tengu_remote_create_session",{has_initial_prompt:String(_)});let o=await Q2(),l=await b3(v,_?Z9:null,new AbortController().signal,o||void 0);if(!l)return M("tengu_remote_create_session_error",{error:"unable_to_create_session"}),await w0(v,"Error: Unable to create remote session",()=>M0(1));if(M("tengu_remote_create_session_success",{session_id:l.id}),!k)process.stdout.write(`Created remote session: ${l.title}
824
+ `),process.stdout.write(`View: ${bq(l.id)}?m=0
825
+ `),process.stdout.write(`Resume with: claude --teleport ${l.id}
826
+ `),await M0(0),process.exit(0);i6(!0),k6(e2(l.id));let x;try{x=await G3()}catch($9){return p(n6($9)),await w0(v,`Error: ${g($9)||"Failed to authenticate"}`,()=>M0(1))}let{getClaudeAIOAuthTokens:X0}=await import("./auth-0.1.12-vhdwtwhb.mjs"),d=()=>X0()?.accessToken??x.accessToken,W0=I5(l.id,d,x.orgUUID,_),n=`${bq(l.id)}?m=0`,b=r3(`/remote-control is active. Code in CLI or at ${n}`,"info"),e=_?sq({content:Z9}):null,S0={..._9,remoteSessionUrl:n},P9=M5(l9);await y9(v,{getFpsMetrics:X9,stats:W9,initialState:S0},{debug:U||j,commands:P9,initialTools:[],initialMessages:e?[b,e]:[b],mcpClients:[],autoConnectIdeFlag:j1,mainThreadAgentDefinition:O,disableSlashCommands:O1,remoteSessionConfig:W0,thinkingConfig:E0},r0);return}else if($0){if($0===!0||$0===""){M("tengu_teleport_interactive_mode",{}),N("selectAndResumeTeleportTask: Starting teleport flow...");let _=await rJ(v);if(!_)await M0(0),process.exit(0);let{branchError:k}=await E3(_.branch);R=C3(_.log,k)}else if(typeof $0==="string"){M("tengu_teleport_resume_session",{mode:"direct"});try{let _=await R3($0),k=await S3(_);if(k.status==="mismatch"||k.status==="not_in_repo"){let x=k.sessionRepo;if(x){let X0=O5(x),d=await C5(X0);if(d.length>0){let W0=await nJ(v,{targetRepo:x,initialPaths:d});if(W0)process.chdir(W0),v3(W0),x6(W0);else await M0(0)}else throw new F1(`You must run claude --teleport ${$0} from a checkout of ${x}.`,A.red(`You must run claude --teleport ${$0} from a checkout of ${A.bold(x)}.
827
+ `))}}else if(k.status==="error")throw new F1(k.errorMessage||"Failed to validate session",A.red(`Error: ${k.errorMessage||"Failed to validate session"}
828
+ `));await O3();let{teleportWithProgress:o}=await import("./TeleportProgress-0.1.12-p5spc4b6.mjs"),l=await o(v,$0);p6({sessionId:$0}),R=l.messages}catch(_){if(_ instanceof F1)process.stderr.write(_.formattedMessage+`
829
+ `);else p(_),process.stderr.write(A.red(`Error: ${g(_)}
830
+ `));await M0(1)}}}if(y){let _=y;try{let k=performance.now(),o=await dq(w??_,void 0);if(!o)return M("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),await w0(v,`No conversation found with session ID: ${_}`);let l=w?.fullPath??o.fullPath;if(P=await eq(o,{forkSession:!!X.forkSession,sessionIdOverride:_,transcriptPath:l},gZ),P.restoredAgentDef)O=P.restoredAgentDef;M("tengu_session_resumed",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-k)})}catch(k){M("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),p(k),await w0(v,g(k))}}if(k1)try{let _=await k1,k=X2(_,(o)=>!o.success);if(k>0)process.stderr.write(A.yellow(`Warning: ${k}/${_.length} file(s) failed to download.
831
+ `))}catch(_){return await w0(v,`Error downloading files: ${g(_)}`)}let E=P??(Array.isArray(R)?{messages:R,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:O,initialState:_9,contentReplacements:void 0}:void 0);if(E)G1(X),R1(X),await y9(v,{getFpsMetrics:X9,stats:W9,initialState:E.initialState},{...n9,mainThreadAgentDefinition:E.restoredAgentDef??O,initialMessages:E.messages,initialFileHistorySnapshots:E.fileHistorySnapshots,initialContentReplacements:E.contentReplacements,initialAgentName:E.agentName,initialAgentColor:E.agentColor},r0);else await tJ(v,{getFpsMetrics:X9,stats:W9,initialState:_9},V5(A6()),{...n9,initialSearchQuery:I,forkSession:X.forkSession,filterByPr:m})}else{let $=SZ&&s9.length===0?SZ:void 0;L("action_after_hooks"),G1(X),R1(X),_5(JZ?.isCoordinatorMode()?"coordinator":"normal");let R=null,P=R?[R,...s9]:s9.length>0?s9:void 0;await y9(v,{getFpsMetrics:X9,stats:W9,initialState:_9},{...n9,initialMessages:P,pendingHookMessages:$},r0)}}).version("0.1.12 (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."),P1())Z.addOption(new D("--advisor <model>","Enable the server-side advisor tool with the specified model (alias or full ID).").hideHelp());Z.addOption(new D("--enable-auto-mode","Opt in to auto mode").hideHelp()),Z.addOption(new D("--agent-id <id>","Teammate agent ID").hideHelp()),Z.addOption(new D("--agent-name <name>","Teammate display name").hideHelp()),Z.addOption(new D("--team-name <name>","Team name for swarm coordination").hideHelp()),Z.addOption(new D("--agent-color <color>","Teammate UI color").hideHelp()),Z.addOption(new D("--plan-mode-required","Require plan mode before implementation").hideHelp()),Z.addOption(new D("--parent-session-id <id>","Parent session ID for analytics correlation").hideHelp()),Z.addOption(new D("--teammate-mode <mode>",'How to spawn teammates: "tmux", "in-process", or "auto"').choices(["auto","tmux","in-process"]).hideHelp()),Z.addOption(new D("--agent-type <type>","Custom agent type for this teammate").hideHelp()),Z.addOption(new D("--sdk-url <url>","Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)").hideHelp()),Z.addOption(new D("--teleport [session]","Resume a teleport session, optionally specify session ID").hideHelp()),Z.addOption(new D("--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:K}=await import("./mcp-0.1.12-vm3tpth6.mjs");await K({debug:W,verbose:X})}),sQ(Y),rQ(Y),k9())eQ(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:K}=await import("./mcp-0.1.12-vm3tpth6.mjs");await K(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.12-vm3tpth6.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.12-vm3tpth6.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,K)=>{let{mcpAddJsonHandler:F}=await import("./mcp-0.1.12-vm3tpth6.mjs");await F(W,X,K)}),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.12-vm3tpth6.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.12-vm3tpth6.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:K,claudeai:F})=>{let{authLogin:U}=await import("./auth-0.1.12-9xrz11cs.mjs");await U({email:W,sso:X,console:K,claudeai:F})}),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.12-9xrz11cs.mjs");await X(W)}),H.command("logout").description("Log out from your Anthropic account").action(async()=>{let{authLogout:W}=await import("./auth-0.1.12-9xrz11cs.mjs");await W()});let V=()=>new D("--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(V()).action(async(W,X)=>{let{pluginValidateHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(W,X)}),z.command("list").description("List installed plugins").option("--json","Output as JSON").option("--available","Include available plugins from marketplaces (requires --json)").addOption(V()).action(async(W)=>{let{pluginListHandler:X}=await import("./plugins-0.1.12-sm87b8fm.mjs");await X(W)});let B=z.command("marketplace").description("Manage Claude Code marketplaces").configureHelp(q());if(B.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").addOption(V()).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:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(W,X)}),B.command("list").description("List all configured marketplaces").option("--json","Output as JSON").addOption(V()).action(async(W)=>{let{marketplaceListHandler:X}=await import("./plugins-0.1.12-sm87b8fm.mjs");await X(W)}),B.command("remove <name>").alias("rm").description("Remove a configured marketplace").addOption(V()).action(async(W,X)=>{let{marketplaceRemoveHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(W,X)}),B.command("update [name]").description("Update marketplace(s) from their source - updates all if no name specified").addOption(V()).action(async(W,X)=>{let{marketplaceUpdateHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(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(V()).action(async(W,X)=>{let{pluginInstallHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(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(V()).action(async(W,X)=>{let{pluginUninstallHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(W,X)}),z.command("enable <plugin>").description("Enable a disabled plugin").option("-s, --scope <scope>",`Installation scope: ${nq.join(", ")} (default: auto-detect)`).addOption(V()).action(async(W,X)=>{let{pluginEnableHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(W,X)}),z.command("disable [plugin]").description("Disable an enabled plugin").option("-a, --all","Disable all enabled plugins").option("-s, --scope <scope>",`Installation scope: ${nq.join(", ")} (default: auto-detect)`).addOption(V()).action(async(W,X)=>{let{pluginDisableHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(W,X)}),z.command("update <plugin>").description("Update a plugin to the latest version (restart required to apply)").option("-s, --scope <scope>",`Installation scope: ${B5.join(", ")} (default: user)`).addOption(V()).action(async(W,X)=>{let{pluginUpdateHandler:K}=await import("./plugins-0.1.12-sm87b8fm.mjs");await K(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.12-qdejkkj5.mjs"),import("./ink-0.1.12-qdefs6hn.mjs")]),K=await X(f9(!1));await W(K)}),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.12-1dz073e3.mjs");await W(),process.exit(0)}),X5()!=="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.12-xjr5qd6q.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.12-xjr5qd6q.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:K}=await import("./autoMode-0.1.12-xjr5qd6q.mjs");await K(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.12-qdejkkj5.mjs"),import("./ink-0.1.12-qdefs6hn.mjs")]),K=await X(f9(!1));await W(K)}),Z.command("update").alias("upgrade").description("Check for updates and install if available").action(async()=>{let{update:W}=await import("./update-0.1.12-hwx0e6fq.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:K}=await import("./util-0.1.12-qdejkkj5.mjs");await K(W,X)}),L("run_before_parse"),await Z.parseAsync(process.argv),L("run_after_parse"),L("main_after_run"),W2(),Z}async function VW({hasInitialPrompt:q,hasStdin:Z,verbose:J,debug:Q,debugToStderr:Y,print:H,outputFormat:V,inputFormat:z,numAllowedTools:B,numDisallowedTools:W,mcpClientCount:X,worktreeEnabled:K,skipWebFetchPreflight:F,githubActionInputs:U,dangerouslySkipPermissionsPassed:j,permissionMode:C,modeIsBypass:u,allowDangerouslySkipPermissionsPassed:F0,systemPromptFlag:Y0,appendSystemPromptFlag:C0,thinkingConfig:I0,assistantActivationPath:U0}){try{M("tengu_init",{entrypoint:"claude",hasInitialPrompt:q,hasStdin:Z,verbose:J,debug:Q,debugToStderr:Y,print:H,outputFormat:V,inputFormat:z,numAllowedTools:B,numDisallowedTools:W,mcpClientCount:X,worktree:K,skipWebFetchPreflight:F,...U&&{githubActionInputs:U},dangerouslySkipPermissionsPassed:j,permissionMode:C,modeIsBypass:u,inProtectedNamespace:r6(),allowDangerouslySkipPermissionsPassed:F0,thinkingType:I0.type,...Y0&&{systemPromptFlag:Y0},...C0&&{appendSystemPromptFlag:C0},is_simple:O0()||void 0,is_coordinator:JZ?.isCoordinatorMode()?!0:void 0,...U0&&{assistantActivationPath:U0},autoUpdatesChannel:o0().autoUpdatesChannel??"latest"})}catch(L0){p(L0)}}function G1(q){}function R1(q){return}function BW(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(S2)}function KW(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}}XZ();c1();DW();Q0();q0();GW();v5();var c5=q1(zZ(),1);f5();Z0();var h5=q1(zZ(),1);function w1(){let q=h5.c(1),Z;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Z=c0(y1,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",T(b5,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),q[0]=Z;else Z=q[0];return Z}Z0();function m5(q){let Z=c5.c(13),{serverName:J,onDone:Q}=q,Y;if(Z[0]!==Q||Z[1]!==J)Y=function(U){M("tengu_mcp_dialog_choice",{choice:U});q:switch(U){case"yes":case"yes_all":{let C=(u0()||{}).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=(u0()||{}).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,V=`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 B;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))B=T(w1,{}),Z[5]=B;else B=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=T(u5,{options:W,onChange:(F)=>H(F),onCancel:()=>H("no")}),Z[7]=H,Z[8]=X;else X=Z[8];let K;if(Z[9]!==V||Z[10]!==z||Z[11]!==X)K=c0(I1,{title:V,color:"warning",onCancel:z,children:[B,X]}),Z[9]=V,Z[10]=z,Z[11]=X,Z[12]=K;else K=Z[12];return K}LW();Q0();f5();q0();MW();UW();FW();v5();RW();var s5=q1(zZ(),1);Z0();function r5(q){let Z=s5.c(21),{serverNames:J,onDone:Q}=q,Y;if(Z[0]!==Q||Z[1]!==J)Y=function(u){let F0=u0()||{},Y0=F0.enabledMcpjsonServers||[],C0=F0.disabledMcpjsonServers||[],[I0,U0]=a5(J,(L0)=>u.includes(L0));if(M("tengu_mcp_multidialog_choice",{approved:I0.length,rejected:U0.length}),I0.length>0){let L0=[...new Set([...Y0,...I0])];S("localSettings",{enabledMcpjsonServers:L0})}if(U0.length>0){let L0=[...new Set([...C0,...U0])];S("localSettings",{disabledMcpjsonServers:L0})}Q()},Z[0]=Q,Z[1]=J,Z[2]=Y;else Y=Z[2];let H=Y,V;if(Z[3]!==Q||Z[4]!==J)V=()=>{let u=(u0()||{}).disabledMcpjsonServers||[],F0=[...new Set([...u,...J])];S("localSettings",{disabledMcpjsonServers:F0}),Q()},Z[3]=Q,Z[4]=J,Z[5]=V;else V=Z[5];let z=V,B=`${J.length} new MCP servers found in .mcp.json`,W;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))W=T(w1,{}),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 K;if(Z[9]!==z||Z[10]!==H||Z[11]!==J||Z[12]!==X)K=T(i5,{options:X,defaultValue:J,onSubmit:H,onCancel:z,hideIndexes:!0}),Z[9]=z,Z[10]=H,Z[11]=J,Z[12]=X,Z[13]=K;else K=Z[13];let F;if(Z[14]!==z||Z[15]!==B||Z[16]!==K)F=c0(I1,{title:B,subtitle:"Select any you wish to enable.",color:"warning",onCancel:z,hideInputGuide:!0,children:[W,K]}),Z[14]=z,Z[15]=B,Z[16]=K,Z[17]=F;else F=Z[17];let U;if(Z[18]===Symbol.for("react.memo_cache_sentinel"))U=T(d5,{paddingX:1,children:T(y1,{dimColor:!0,italic:!0,children:c0(l5,{children:[T($Z,{shortcut:"Space",action:"select"}),T($Z,{shortcut:"Enter",action:"confirm"}),T(p5,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),Z[18]=U;else U=Z[18];let j;if(Z[19]!==F)j=c0(g5,{children:[F,U]}),Z[19]=F,Z[20]=j;else j=Z[20];return j}function _W(q){return{label:q,value:q}}e1();o5();Kq();Bq();Z0();async function e5(q){let{servers:Z}=t5("project"),J=Object.keys(Z).filter((Q)=>n5(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(T(v9,{children:T(s0,{children:T(m5,{serverName:H,onDone:Y})})}))}else q.render(T(v9,{children:T(s0,{children:T(r5,{serverNames:J,onDone:Y})})}))})}o5();PW();TW();J0();wW();J0();l0();T9();class VZ{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,B)=>B-z),Y=Math.max(0,Math.ceil(Q.length*0.01)-1),H=Q[Y],V=H>0?1000/H:0;return{averageFps:Math.round(J*100)/100,low1PctFps:Math.round(V*100)/100}}}p0();N3();yW();q0();Z0();function jW(){h((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 w0(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.12-qdefs6hn.mjs"),Y=J?.color,H=J?.exitCode??1;q.render(Y?T(Q,{color:Y,children:Z}):T(Q,{children:Z})),q.unmount(),await J?.beforeExit?.(),process.exit(H)}function K0(q,Z,J){return kW(q,(Q)=>T(v9,{onChangeAppState:J?.onChangeAppState,children:T(s0,{children:Z(Q)})}))}async function r0(q,Z){q.render(Z),HZ(),await q.waitUntilExit(),await M0(0)}async function E5(q,Z,J,Q,Y,H){if(a(!1)||process.env.IS_DEMO)return!1;let V=H7(),z=!1;if(M7()){let{MigrationDialog:W}=await import("./MigrationDialog-0.1.12-n5zwn0kh.mjs");await K0(q,(X)=>T(W,{onDone:()=>void X()}))}let B=f();if(V&&(!B.theme||!B.hasCompletedOnboarding)){z=!0;let{Onboarding:W}=await import("./Onboarding-0.1.12-tc4trc3y.mjs");await K0(q,(X)=>T(W,{onDone:()=>{jW(),X()}}),{onChangeAppState:h9})}if(!a(process.env.CLAUBBIT)){if(V&&!D1()){let{TrustDialog:W}=await import("./TrustDialog-0.1.12-gr62n6f8.mjs");await K0(q,(X)=>T(W,{commands:Q,onDone:X}))}if(Z7(!0),Q7(),J7(),G9(),V){let{errors:W}=R7();if(W.length===0)await e5(q);if(await K7()){let X=B7(await V7(!0)),{ClaudeMdExternalIncludesDialog:K}=await import("./ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs");await K0(q,(F)=>T(K,{onDone:F,isStandaloneDialog:!0,externalIncludes:X}))}}}if(U7(),b0(),setImmediate(()=>o9()),await G7()){let{GroveDialog:W}=await import("./Grove-0.1.12-m9r696vw.mjs");if(await K0(q,(K)=>T(W,{showIfAlreadyViewed:!1,location:z?"onboarding":"policy_update_modal",onDone:K}))==="escape")return M("tengu_grove_policy_exited",{}),f0(0),!1}{let W=T0(),X=W?.transport==="anthropic"?W.apiKey?.trim():void 0;if(X&&!Y7()){let K=z7(X);if(W7(K)==="new"){let{ApproveApiKey:U}=await import("./ApproveApiKey-0.1.12-zpw36mzg.mjs");await K0(q,(j)=>T(U,{customApiKeyTruncated:K,onDone:j}),{onChangeAppState:h9})}}}if((Z==="bypassPermissions"||J)&&!V1()){let{BypassPermissionsModeDialog:W}=await import("./BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs");await K0(q,(X)=>T(W,{onAccept:X}))}if(Z==="auto"&&!X7()){let{AutoModeOptInDialog:W}=await import("./AutoModeOptInDialog-0.1.12-fgvj28kh.mjs");await K0(q,(X)=>T(W,{onAccept:X,onDecline:()=>f0(1),declineExits:!0}))}if(Y&&!f().hasCompletedClaudeInChromeOnboarding){let{ClaudeInChromeOnboarding:W}=await import("./ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs");await K0(q,(X)=>T(W,{onDone:X}))}return z}function S5(q){let Z=0,J=f9(q);if(J.stdin)M("tengu_stdin_interactive",{});let Q=new VZ,Y=F7();q7(Y);let H=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>Q.getMetrics(),stats:Y,renderOptions:{...J,onFrame:(V)=>{if(Q.record(V.durationMs),Y.observe("frame_duration_ms",V.durationMs),H&&V.phases){let z=JSON.stringify({total:V.durationMs,...V.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
832
+ `;IW(H,z)}if($7())return;for(let z of V.flickers){if(z.reason==="resize")continue;let B=Date.now();if(B-Z<1000)M("tengu_flicker",{desiredHeight:z.desiredHeight,actualHeight:z.availableHeight,reason:z.reason});Z=B}}}}}
833
+ export{jW as s,kW as t,w0 as u,AW as v,K0 as w,r0 as x,E5 as y,S5 as z,HZ as A,hG as B};