@claudiolabs/claudio 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (814) hide show
  1. package/bin/claudio +50 -1
  2. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +1 -0
  3. package/dist/chunks/App-0.1.11-z60c27dk.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +1 -0
  15. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +1 -0
  32. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +3 -0
  33. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +111 -0
  34. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +1 -0
  35. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +1 -0
  36. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +1 -0
  37. package/dist/chunks/auth-0.1.11-2363mst5.mjs +1 -0
  38. package/dist/chunks/auth-0.1.11-p47wajra.mjs +1 -0
  39. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +48 -0
  40. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +1 -0
  41. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +4 -0
  42. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +1 -0
  43. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +1 -0
  44. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +3 -0
  45. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +1 -0
  46. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +21 -0
  47. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +4 -0
  48. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +1 -0
  50. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +2 -0
  51. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +1 -0
  53. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +1 -0
  54. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +1 -0
  56. package/dist/chunks/cli-0.1.11-036me3yr.mjs +2 -0
  57. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +2 -0
  58. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +2 -0
  59. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +2 -0
  60. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +2 -0
  61. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +2 -0
  62. package/dist/chunks/cli-0.1.11-0tge574q.mjs +2 -0
  63. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +8 -0
  64. package/dist/chunks/cli-0.1.11-16086k9e.mjs +2 -0
  65. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +2 -0
  66. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +2 -0
  67. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +2 -0
  68. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +833 -0
  69. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +3 -0
  70. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +2 -0
  71. package/dist/chunks/cli-0.1.11-21epc92q.mjs +2 -0
  72. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +2 -0
  73. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +2 -0
  74. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +45 -0
  75. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +2 -0
  76. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +2 -0
  77. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +2 -0
  78. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +4 -0
  79. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +2 -0
  80. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +3 -0
  81. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +2 -0
  82. package/dist/chunks/cli-0.1.11-4px8nt5r.mjs +2 -0
  83. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +2 -0
  84. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +2 -0
  85. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +3 -0
  86. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +2 -0
  87. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +2 -0
  88. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +2 -0
  89. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +2 -0
  90. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +2 -0
  91. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +2 -0
  92. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +2 -0
  93. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +3 -0
  94. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +2 -0
  95. package/dist/chunks/cli-0.1.11-70f778wy.mjs +2 -0
  96. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +50 -0
  97. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +2 -0
  98. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +2 -0
  99. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +2 -0
  100. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +3 -0
  101. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +2 -0
  102. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +58 -0
  103. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +2 -0
  104. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +2 -0
  105. package/dist/chunks/cli-0.1.11-852v06g0.mjs +2 -0
  106. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +2 -0
  107. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +2 -0
  108. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +2 -0
  109. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +2 -0
  110. package/dist/chunks/cli-0.1.11-anegs86e.mjs +7 -0
  111. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +5 -0
  112. package/dist/chunks/cli-0.1.11-at3c85af.mjs +2 -0
  113. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +9 -0
  114. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +2 -0
  115. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +2 -0
  116. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +2 -0
  117. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +4 -0
  118. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +2 -0
  119. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +252 -0
  120. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +2 -0
  121. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +2 -0
  122. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +2 -0
  123. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +2 -0
  124. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +134 -0
  125. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +10 -0
  126. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +2 -0
  127. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +4 -0
  128. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +12 -0
  129. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +11 -0
  130. package/dist/chunks/cli-0.1.11-d3exw047.mjs +2 -0
  131. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +2 -0
  132. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +2 -0
  133. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +24 -0
  134. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +2 -0
  135. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +2 -0
  136. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +4 -0
  137. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +16 -0
  138. package/dist/chunks/cli-0.1.11-egck69w4.mjs +2 -0
  139. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +18 -0
  140. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +2 -0
  141. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +3 -0
  142. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +2 -0
  143. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +2 -0
  144. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +2 -0
  145. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +2 -0
  146. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +2 -0
  147. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +22 -0
  148. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +5 -0
  149. package/dist/chunks/cli-0.1.11-g2202evh.mjs +2 -0
  150. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +2 -0
  151. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +2 -0
  152. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +2 -0
  153. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +2 -0
  154. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +2 -0
  155. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +12 -0
  156. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +2 -0
  157. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +2 -0
  158. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +31 -0
  159. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +2 -0
  160. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +2 -0
  161. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +2 -0
  162. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +4 -0
  163. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +2 -0
  164. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +2 -0
  165. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +15 -0
  166. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +2 -0
  167. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +11 -0
  168. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +2 -0
  169. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +3 -0
  170. package/dist/chunks/cli-0.1.11-jye250b3.mjs +2 -0
  171. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +6 -0
  172. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +7 -0
  173. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +2 -0
  174. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +24 -0
  175. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +2 -0
  176. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +4 -0
  177. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +2 -0
  178. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +2 -0
  179. package/dist/chunks/cli-0.1.11-mr356stf.mjs +2 -0
  180. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +2 -0
  181. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +2 -0
  182. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +2 -0
  183. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +2 -0
  184. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +2 -0
  185. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +2 -0
  186. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +4 -0
  187. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +4 -0
  188. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +2 -0
  189. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +5 -0
  190. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +2 -0
  191. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +3 -0
  192. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +2 -0
  193. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +2 -0
  194. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +16 -0
  195. package/dist/chunks/cli-0.1.11-qheffjft.mjs +2 -0
  196. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +15 -0
  197. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +2 -0
  198. package/dist/chunks/cli-0.1.11-r990p54m.mjs +100 -0
  199. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +2 -0
  200. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +2 -0
  201. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +2 -0
  202. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +2 -0
  203. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +2 -0
  204. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +6 -0
  205. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +5036 -0
  206. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +2 -0
  207. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +132 -0
  208. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +2 -0
  209. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +2 -0
  210. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +2 -0
  211. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +2 -0
  212. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +2 -0
  213. package/dist/chunks/cli-0.1.11-tyh8gms9.mjs +2 -0
  214. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +12 -0
  215. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +2 -0
  216. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +192 -0
  217. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +2 -0
  218. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +2 -0
  219. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +2 -0
  220. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +44 -0
  221. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +2 -0
  222. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +39 -0
  223. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +21 -0
  224. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +2 -0
  225. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +34 -0
  226. package/dist/chunks/cli-0.1.11-weav8142.mjs +2 -0
  227. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +2 -0
  228. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +14 -0
  229. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +2 -0
  230. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +2 -0
  231. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +2 -0
  232. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +2 -0
  233. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +2 -0
  234. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +2 -0
  235. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +2 -0
  236. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +2 -0
  237. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +2 -0
  238. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +2 -0
  239. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +3 -0
  240. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +2 -0
  241. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +2 -0
  242. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +2 -0
  243. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +13 -0
  244. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +2 -0
  245. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +2 -0
  246. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +2 -0
  247. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +1 -0
  248. package/dist/chunks/color-0.1.11-b7favzc8.mjs +1 -0
  249. package/dist/chunks/compact-0.1.11-damm234b.mjs +3 -0
  250. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +1 -0
  251. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +1 -0
  252. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +1 -0
  254. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +1 -0
  255. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +9 -0
  256. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +1 -0
  257. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +1 -0
  258. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +1 -0
  259. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +1 -0
  260. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +1 -0
  261. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +1 -0
  262. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +1 -0
  263. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +1 -0
  264. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +1 -0
  265. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +8 -0
  266. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +1 -0
  267. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +1 -0
  268. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +1 -0
  269. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +1 -0
  272. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +1 -0
  273. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +1 -0
  275. package/dist/chunks/git-0.1.11-g77ppr52.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +1 -0
  277. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +1 -0
  278. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +6 -0
  279. package/dist/chunks/help-0.1.11-byp88gen.mjs +1 -0
  280. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +3 -0
  281. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +1 -0
  282. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +79 -0
  283. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +3 -0
  284. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +1 -0
  285. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +1 -0
  286. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +9 -0
  287. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +1 -0
  288. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +1 -0
  289. package/dist/chunks/index-0.1.11-b2q967nq.mjs +30 -0
  290. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +1 -0
  291. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +1 -0
  292. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +1 -0
  293. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +5 -0
  294. package/dist/chunks/index-0.1.11-gb3saayk.mjs +2 -0
  295. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +1 -0
  296. package/dist/chunks/index-0.1.11-n564rmwy.mjs +1 -0
  297. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +1 -0
  298. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +1 -0
  299. package/dist/chunks/index-0.1.11-pmkgntay.mjs +7 -0
  300. package/dist/chunks/index-0.1.11-qspcw49p.mjs +1 -0
  301. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +1 -0
  302. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +9 -0
  303. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +1 -0
  304. package/dist/chunks/index-0.1.11-wze82293.mjs +1 -0
  305. package/dist/chunks/index-0.1.11-xs4mng75.mjs +1 -0
  306. package/dist/chunks/index-0.1.11-yej3awws.mjs +2 -0
  307. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +1 -0
  308. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +1 -0
  309. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +870 -0
  310. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +1 -0
  311. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +149 -0
  312. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +1 -0
  313. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +12 -0
  314. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +1 -0
  315. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +2 -0
  316. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +2 -0
  317. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +1 -0
  318. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +1 -0
  319. package/dist/chunks/logout-0.1.11-48ynp610.mjs +1 -0
  320. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +1 -0
  321. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +1 -0
  322. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +1 -0
  323. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +17 -0
  324. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +4 -0
  325. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +1 -0
  326. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +1 -0
  327. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +1 -0
  328. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +3 -0
  329. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +2 -0
  330. package/dist/chunks/model-0.1.11-4v166f98.mjs +2 -0
  331. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +1 -0
  332. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +1 -0
  333. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +14 -0
  334. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +1 -0
  335. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +1 -0
  336. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +1 -0
  337. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +1 -0
  338. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +3 -0
  339. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +1 -0
  340. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +1 -0
  341. package/dist/chunks/plugin-0.1.11-menj210d.mjs +29 -0
  342. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +1 -0
  343. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +9 -0
  344. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +57 -0
  345. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +1 -0
  346. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +1 -0
  347. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +1 -0
  348. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +9 -0
  349. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +1 -0
  350. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +1 -0
  351. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +1 -0
  352. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +2 -0
  353. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +1 -0
  354. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +1 -0
  355. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +1 -0
  356. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +5 -0
  357. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +2 -0
  358. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +1 -0
  359. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +1 -0
  360. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +1 -0
  361. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +1 -0
  362. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +1 -0
  363. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +2 -0
  364. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +1 -0
  365. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +1 -0
  366. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +1 -0
  367. package/dist/chunks/session-0.1.11-2z972raf.mjs +2 -0
  368. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +1 -0
  369. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +1 -0
  370. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +5 -0
  371. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +1 -0
  372. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +1 -0
  373. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +1 -0
  374. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +1 -0
  375. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +6 -0
  376. package/dist/chunks/status-0.1.11-drvp15n8.mjs +1 -0
  377. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +1 -0
  378. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +1 -0
  379. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +1 -0
  380. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +1 -0
  381. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +1 -0
  382. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +1 -0
  383. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +1 -0
  384. package/dist/chunks/theme-0.1.11-p447kczd.mjs +1 -0
  385. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +1 -0
  386. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +1 -0
  387. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +1 -0
  388. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +1 -0
  389. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +1 -0
  390. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +69 -0
  391. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +4 -0
  392. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +94 -0
  393. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +1 -0
  394. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +14 -0
  395. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +1 -0
  396. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +1 -0
  397. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +1 -0
  398. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +1 -0
  399. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +1 -0
  400. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +132 -0
  401. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +1 -0
  402. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +1 -0
  403. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +7 -0
  404. package/dist/claudio-vscode.vsix +0 -0
  405. package/dist/cli.mjs +6 -6
  406. package/package.json +1 -1
  407. package/dist/chunks/AgentTool-0.1.9-e26h2f7z.mjs +0 -1
  408. package/dist/chunks/App-0.1.9-7ttp2eny.mjs +0 -1
  409. package/dist/chunks/ApproveApiKey-0.1.9-pz0jzna9.mjs +0 -1
  410. package/dist/chunks/AssistantSessionChooser-0.1.9-r5wg1yfv.mjs +0 -1
  411. package/dist/chunks/AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs +0 -1
  412. package/dist/chunks/BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs +0 -1
  413. package/dist/chunks/ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs +0 -1
  414. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs +0 -1
  415. package/dist/chunks/ConsoleOAuthFlow-0.1.9-zb1h6dvy.mjs +0 -1
  416. package/dist/chunks/DiffDialog-0.1.9-09s28v8e.mjs +0 -3
  417. package/dist/chunks/Doctor-0.1.9-9ak6wqtr.mjs +0 -1
  418. package/dist/chunks/Grove-0.1.9-rbrf13rd.mjs +0 -1
  419. package/dist/chunks/ITermBackend-0.1.9-8dgw249h.mjs +0 -1
  420. package/dist/chunks/InProcessTransport-0.1.9-5cp1e7x7.mjs +0 -1
  421. package/dist/chunks/InvalidConfigDialog-0.1.9-6mv9wgt8.mjs +0 -1
  422. package/dist/chunks/InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs +0 -1
  423. package/dist/chunks/MigrationDialog-0.1.9-56807wps.mjs +0 -1
  424. package/dist/chunks/Onboarding-0.1.9-g5nqdh1r.mjs +0 -1
  425. package/dist/chunks/ProviderManager-0.1.9-kj6t8003.mjs +0 -1
  426. package/dist/chunks/REPL-0.1.9-3h2fc9z7.mjs +0 -1
  427. package/dist/chunks/ResumeConversation-0.1.9-k4gv6dx4.mjs +0 -1
  428. package/dist/chunks/SnapshotUpdateDialog-0.1.9-v3h7drc0.mjs +0 -1
  429. package/dist/chunks/StartupScreen-0.1.9-jgk08xvj.mjs +0 -1
  430. package/dist/chunks/TeleportProgress-0.1.9-pnqkmgap.mjs +0 -1
  431. package/dist/chunks/TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs +0 -1
  432. package/dist/chunks/TeleportResumeWrapper-0.1.9-vhnyx04e.mjs +0 -1
  433. package/dist/chunks/TmuxBackend-0.1.9-nb2ks1np.mjs +0 -9
  434. package/dist/chunks/ToolSearchTool-0.1.9-n40whaty.mjs +0 -1
  435. package/dist/chunks/TrustDialog-0.1.9-dm2wppgy.mjs +0 -1
  436. package/dist/chunks/activeProvider-0.1.9-kbwwatt3.mjs +0 -1
  437. package/dist/chunks/add-dir-0.1.9-ed53zp9j.mjs +0 -1
  438. package/dist/chunks/agents-0.1.9-4gwb1qtc.mjs +0 -111
  439. package/dist/chunks/agents-0.1.9-yr85gwa8.mjs +0 -3
  440. package/dist/chunks/api-0.1.9-kqwfw6wj.mjs +0 -1
  441. package/dist/chunks/asciicast-0.1.9-ekvsjx76.mjs +0 -1
  442. package/dist/chunks/assistant-0.1.9-h4rgf0xq.mjs +0 -1
  443. package/dist/chunks/auth-0.1.9-1c12xrxs.mjs +0 -1
  444. package/dist/chunks/auth-0.1.9-rqfx3vqa.mjs +0 -1
  445. package/dist/chunks/autoMode-0.1.9-s92asycq.mjs +0 -48
  446. package/dist/chunks/backgroundHousekeeping-0.1.9-jjbqckpm.mjs +0 -1
  447. package/dist/chunks/branch-0.1.9-m7j2aerq.mjs +0 -4
  448. package/dist/chunks/bridgePointer-0.1.9-rv3aq23v.mjs +0 -1
  449. package/dist/chunks/btw-0.1.9-g55x31zp.mjs +0 -1
  450. package/dist/chunks/buddy-0.1.9-fqmk7e4y.mjs +0 -3
  451. package/dist/chunks/cacache-0.1.9-dr1vt8s1.mjs +0 -1
  452. package/dist/chunks/cache-probe-0.1.9-ydmjrch4.mjs +0 -21
  453. package/dist/chunks/cacheStats-0.1.9-pkarrnw9.mjs +0 -4
  454. package/dist/chunks/caches-0.1.9-d6cndrra.mjs +0 -1
  455. package/dist/chunks/chrome-0.1.9-bvwzw157.mjs +0 -1
  456. package/dist/chunks/chromeNativeHost-0.1.9-8a20nscz.mjs +0 -2
  457. package/dist/chunks/claude-for-chrome-mcp-0.1.9-ndknjd3g.mjs +0 -1
  458. package/dist/chunks/claudeDesktop-0.1.9-7xprztbk.mjs +0 -1
  459. package/dist/chunks/claudemd-0.1.9-dqyhgy2v.mjs +0 -1
  460. package/dist/chunks/clear-0.1.9-tb8x7676.mjs +0 -1
  461. package/dist/chunks/cli-0.1.9-001s9kxw.mjs +0 -24
  462. package/dist/chunks/cli-0.1.9-03e1d9dw.mjs +0 -39
  463. package/dist/chunks/cli-0.1.9-04ez73f7.mjs +0 -5084
  464. package/dist/chunks/cli-0.1.9-0dtdhejj.mjs +0 -31
  465. package/dist/chunks/cli-0.1.9-0e6nsh68.mjs +0 -3
  466. package/dist/chunks/cli-0.1.9-0j8n671q.mjs +0 -2
  467. package/dist/chunks/cli-0.1.9-15y0qt1z.mjs +0 -2
  468. package/dist/chunks/cli-0.1.9-1c3qpbdh.mjs +0 -2
  469. package/dist/chunks/cli-0.1.9-1f5gmndb.mjs +0 -2
  470. package/dist/chunks/cli-0.1.9-1ghbcafn.mjs +0 -2
  471. package/dist/chunks/cli-0.1.9-1kaj4v6k.mjs +0 -2
  472. package/dist/chunks/cli-0.1.9-1xmdqqzd.mjs +0 -3
  473. package/dist/chunks/cli-0.1.9-263y2rkc.mjs +0 -3
  474. package/dist/chunks/cli-0.1.9-2dd7h0hn.mjs +0 -15
  475. package/dist/chunks/cli-0.1.9-2prq7peb.mjs +0 -2
  476. package/dist/chunks/cli-0.1.9-2tc83tsz.mjs +0 -2
  477. package/dist/chunks/cli-0.1.9-2thp2z73.mjs +0 -2
  478. package/dist/chunks/cli-0.1.9-2v0y90vz.mjs +0 -2
  479. package/dist/chunks/cli-0.1.9-2v4s8yf9.mjs +0 -7
  480. package/dist/chunks/cli-0.1.9-2x18rhq6.mjs +0 -6
  481. package/dist/chunks/cli-0.1.9-38zb09vp.mjs +0 -2
  482. package/dist/chunks/cli-0.1.9-3g3er8j1.mjs +0 -15
  483. package/dist/chunks/cli-0.1.9-3h4serkj.mjs +0 -58
  484. package/dist/chunks/cli-0.1.9-3rhe87kw.mjs +0 -2
  485. package/dist/chunks/cli-0.1.9-3vfq7jja.mjs +0 -34
  486. package/dist/chunks/cli-0.1.9-3wmbdmrp.mjs +0 -2
  487. package/dist/chunks/cli-0.1.9-3y36913h.mjs +0 -10
  488. package/dist/chunks/cli-0.1.9-3yscrq86.mjs +0 -833
  489. package/dist/chunks/cli-0.1.9-45ggwszg.mjs +0 -2
  490. package/dist/chunks/cli-0.1.9-4a9qwf11.mjs +0 -2
  491. package/dist/chunks/cli-0.1.9-4bg6jxs8.mjs +0 -2
  492. package/dist/chunks/cli-0.1.9-4kk9fmg2.mjs +0 -2
  493. package/dist/chunks/cli-0.1.9-4n4dqg6k.mjs +0 -2
  494. package/dist/chunks/cli-0.1.9-4sqfjw8t.mjs +0 -16
  495. package/dist/chunks/cli-0.1.9-4vmbyj20.mjs +0 -2
  496. package/dist/chunks/cli-0.1.9-4vt296k0.mjs +0 -18
  497. package/dist/chunks/cli-0.1.9-5ryrgdzg.mjs +0 -2
  498. package/dist/chunks/cli-0.1.9-5vgk7wf7.mjs +0 -2
  499. package/dist/chunks/cli-0.1.9-5ygmjsje.mjs +0 -2
  500. package/dist/chunks/cli-0.1.9-5ypg3t0t.mjs +0 -2
  501. package/dist/chunks/cli-0.1.9-5zhhyq4q.mjs +0 -2
  502. package/dist/chunks/cli-0.1.9-61ywjha3.mjs +0 -2
  503. package/dist/chunks/cli-0.1.9-68vwvmkw.mjs +0 -2
  504. package/dist/chunks/cli-0.1.9-6c7qrr4p.mjs +0 -16
  505. package/dist/chunks/cli-0.1.9-6gk46nr9.mjs +0 -2
  506. package/dist/chunks/cli-0.1.9-6j5gxw5r.mjs +0 -5
  507. package/dist/chunks/cli-0.1.9-6ne451jc.mjs +0 -2
  508. package/dist/chunks/cli-0.1.9-6p67vwxh.mjs +0 -2
  509. package/dist/chunks/cli-0.1.9-6pcahrj9.mjs +0 -2
  510. package/dist/chunks/cli-0.1.9-7047sjwh.mjs +0 -2
  511. package/dist/chunks/cli-0.1.9-7bakxr5q.mjs +0 -3
  512. package/dist/chunks/cli-0.1.9-7bthhhpf.mjs +0 -2
  513. package/dist/chunks/cli-0.1.9-7fp0smtp.mjs +0 -2
  514. package/dist/chunks/cli-0.1.9-7ftnjyps.mjs +0 -2
  515. package/dist/chunks/cli-0.1.9-7h5my4fb.mjs +0 -2
  516. package/dist/chunks/cli-0.1.9-7kcaaxvq.mjs +0 -12
  517. package/dist/chunks/cli-0.1.9-7q9461ka.mjs +0 -2
  518. package/dist/chunks/cli-0.1.9-7qhatm3v.mjs +0 -2
  519. package/dist/chunks/cli-0.1.9-86kws2c7.mjs +0 -192
  520. package/dist/chunks/cli-0.1.9-8egwvs85.mjs +0 -2
  521. package/dist/chunks/cli-0.1.9-90h21nv5.mjs +0 -2
  522. package/dist/chunks/cli-0.1.9-9d4sp76k.mjs +0 -2
  523. package/dist/chunks/cli-0.1.9-9hc8gyb7.mjs +0 -2
  524. package/dist/chunks/cli-0.1.9-9nhh15bp.mjs +0 -2
  525. package/dist/chunks/cli-0.1.9-9vab0er5.mjs +0 -2
  526. package/dist/chunks/cli-0.1.9-9vn4ys3c.mjs +0 -22
  527. package/dist/chunks/cli-0.1.9-a1gtww1d.mjs +0 -2
  528. package/dist/chunks/cli-0.1.9-a7zy4vqn.mjs +0 -134
  529. package/dist/chunks/cli-0.1.9-a95nqhbd.mjs +0 -4
  530. package/dist/chunks/cli-0.1.9-ag6a8kqj.mjs +0 -2
  531. package/dist/chunks/cli-0.1.9-ak0b9xfs.mjs +0 -100
  532. package/dist/chunks/cli-0.1.9-aqd7czgr.mjs +0 -3
  533. package/dist/chunks/cli-0.1.9-axg1kbe4.mjs +0 -2
  534. package/dist/chunks/cli-0.1.9-aype6q4y.mjs +0 -2
  535. package/dist/chunks/cli-0.1.9-b3031hmy.mjs +0 -2
  536. package/dist/chunks/cli-0.1.9-b6zp931m.mjs +0 -11
  537. package/dist/chunks/cli-0.1.9-b73n8vzm.mjs +0 -2
  538. package/dist/chunks/cli-0.1.9-b9kbpf6n.mjs +0 -2
  539. package/dist/chunks/cli-0.1.9-bg9xvmav.mjs +0 -2
  540. package/dist/chunks/cli-0.1.9-bn43vpc0.mjs +0 -2
  541. package/dist/chunks/cli-0.1.9-br9jzagb.mjs +0 -2
  542. package/dist/chunks/cli-0.1.9-c2fjeq7k.mjs +0 -2
  543. package/dist/chunks/cli-0.1.9-c38eyh49.mjs +0 -2
  544. package/dist/chunks/cli-0.1.9-cfzmq9k6.mjs +0 -2
  545. package/dist/chunks/cli-0.1.9-cvnkghgh.mjs +0 -3
  546. package/dist/chunks/cli-0.1.9-dmcbsmj4.mjs +0 -2
  547. package/dist/chunks/cli-0.1.9-dsx18zt1.mjs +0 -2
  548. package/dist/chunks/cli-0.1.9-dt31fs16.mjs +0 -2
  549. package/dist/chunks/cli-0.1.9-dzz1me99.mjs +0 -2
  550. package/dist/chunks/cli-0.1.9-e7ewtpew.mjs +0 -2
  551. package/dist/chunks/cli-0.1.9-e96x59hw.mjs +0 -2
  552. package/dist/chunks/cli-0.1.9-ehhkqhbv.mjs +0 -2
  553. package/dist/chunks/cli-0.1.9-eqxc9zxm.mjs +0 -12
  554. package/dist/chunks/cli-0.1.9-ewq9k9mr.mjs +0 -2
  555. package/dist/chunks/cli-0.1.9-ewwxqbvt.mjs +0 -2
  556. package/dist/chunks/cli-0.1.9-f4v4pahc.mjs +0 -4
  557. package/dist/chunks/cli-0.1.9-f643fvt4.mjs +0 -2
  558. package/dist/chunks/cli-0.1.9-f8ga1n8r.mjs +0 -6
  559. package/dist/chunks/cli-0.1.9-fcf313e7.mjs +0 -2
  560. package/dist/chunks/cli-0.1.9-fh5enjw8.mjs +0 -5
  561. package/dist/chunks/cli-0.1.9-fm2yycpj.mjs +0 -2
  562. package/dist/chunks/cli-0.1.9-fwqwgjwb.mjs +0 -2
  563. package/dist/chunks/cli-0.1.9-gandxpzf.mjs +0 -2
  564. package/dist/chunks/cli-0.1.9-gasw7sr9.mjs +0 -2
  565. package/dist/chunks/cli-0.1.9-gdymcvby.mjs +0 -2
  566. package/dist/chunks/cli-0.1.9-gpd1bhnf.mjs +0 -2
  567. package/dist/chunks/cli-0.1.9-gsc0t4gy.mjs +0 -2
  568. package/dist/chunks/cli-0.1.9-gvrtqwe3.mjs +0 -2
  569. package/dist/chunks/cli-0.1.9-h8xne7z8.mjs +0 -2
  570. package/dist/chunks/cli-0.1.9-hjcv9wr7.mjs +0 -50
  571. package/dist/chunks/cli-0.1.9-hva25eg3.mjs +0 -4
  572. package/dist/chunks/cli-0.1.9-hy4peemf.mjs +0 -3
  573. package/dist/chunks/cli-0.1.9-hy9s1fnj.mjs +0 -14
  574. package/dist/chunks/cli-0.1.9-hz8rssz0.mjs +0 -2
  575. package/dist/chunks/cli-0.1.9-j5zz6gbq.mjs +0 -4
  576. package/dist/chunks/cli-0.1.9-jb6af8n8.mjs +0 -2
  577. package/dist/chunks/cli-0.1.9-jchn9hyn.mjs +0 -2
  578. package/dist/chunks/cli-0.1.9-jdpz959j.mjs +0 -2
  579. package/dist/chunks/cli-0.1.9-jv2z42gk.mjs +0 -2
  580. package/dist/chunks/cli-0.1.9-kbrf27z8.mjs +0 -2
  581. package/dist/chunks/cli-0.1.9-krv35v3v.mjs +0 -2
  582. package/dist/chunks/cli-0.1.9-ksv4ntar.mjs +0 -2
  583. package/dist/chunks/cli-0.1.9-kt9xw7bn.mjs +0 -2
  584. package/dist/chunks/cli-0.1.9-m7shtst2.mjs +0 -2
  585. package/dist/chunks/cli-0.1.9-mfyd9h50.mjs +0 -2
  586. package/dist/chunks/cli-0.1.9-mj88t3jf.mjs +0 -2
  587. package/dist/chunks/cli-0.1.9-mjkhzp2c.mjs +0 -3
  588. package/dist/chunks/cli-0.1.9-mkfnnvz7.mjs +0 -4
  589. package/dist/chunks/cli-0.1.9-mme2x7fq.mjs +0 -2
  590. package/dist/chunks/cli-0.1.9-mnegaqr7.mjs +0 -2
  591. package/dist/chunks/cli-0.1.9-mx4ekht0.mjs +0 -2
  592. package/dist/chunks/cli-0.1.9-mz3mbxwb.mjs +0 -12
  593. package/dist/chunks/cli-0.1.9-n445yk6z.mjs +0 -2
  594. package/dist/chunks/cli-0.1.9-n54k4qt3.mjs +0 -2
  595. package/dist/chunks/cli-0.1.9-n8tc0gpm.mjs +0 -2
  596. package/dist/chunks/cli-0.1.9-nsgdz4rd.mjs +0 -2
  597. package/dist/chunks/cli-0.1.9-nw3rpxdd.mjs +0 -252
  598. package/dist/chunks/cli-0.1.9-nz8phj17.mjs +0 -2
  599. package/dist/chunks/cli-0.1.9-p1kdk178.mjs +0 -2
  600. package/dist/chunks/cli-0.1.9-p58rgwkr.mjs +0 -4
  601. package/dist/chunks/cli-0.1.9-p5scdysw.mjs +0 -2
  602. package/dist/chunks/cli-0.1.9-pdbfg3vh.mjs +0 -2
  603. package/dist/chunks/cli-0.1.9-pgwsmwz1.mjs +0 -2
  604. package/dist/chunks/cli-0.1.9-ph3w8t78.mjs +0 -2
  605. package/dist/chunks/cli-0.1.9-psx0e36a.mjs +0 -2
  606. package/dist/chunks/cli-0.1.9-q3e2h88a.mjs +0 -2
  607. package/dist/chunks/cli-0.1.9-q7hve442.mjs +0 -2
  608. package/dist/chunks/cli-0.1.9-qqjp7mpj.mjs +0 -2
  609. package/dist/chunks/cli-0.1.9-qydwhycw.mjs +0 -2
  610. package/dist/chunks/cli-0.1.9-r3ha1332.mjs +0 -7
  611. package/dist/chunks/cli-0.1.9-r7rcv2wm.mjs +0 -8
  612. package/dist/chunks/cli-0.1.9-rd0jctgk.mjs +0 -21
  613. package/dist/chunks/cli-0.1.9-rerthk1j.mjs +0 -2
  614. package/dist/chunks/cli-0.1.9-rft22htm.mjs +0 -2
  615. package/dist/chunks/cli-0.1.9-rp31nc37.mjs +0 -2
  616. package/dist/chunks/cli-0.1.9-rw09xkh7.mjs +0 -2
  617. package/dist/chunks/cli-0.1.9-s0w3y07w.mjs +0 -2
  618. package/dist/chunks/cli-0.1.9-s45y2ndk.mjs +0 -2
  619. package/dist/chunks/cli-0.1.9-s6bk4fbn.mjs +0 -2
  620. package/dist/chunks/cli-0.1.9-scpj6tps.mjs +0 -3
  621. package/dist/chunks/cli-0.1.9-sqja68fn.mjs +0 -2
  622. package/dist/chunks/cli-0.1.9-sv3awdsv.mjs +0 -2
  623. package/dist/chunks/cli-0.1.9-t24n24mw.mjs +0 -2
  624. package/dist/chunks/cli-0.1.9-teaymnrz.mjs +0 -2
  625. package/dist/chunks/cli-0.1.9-tq9z3reg.mjs +0 -2
  626. package/dist/chunks/cli-0.1.9-v32f99vc.mjs +0 -11
  627. package/dist/chunks/cli-0.1.9-v6x9pr1t.mjs +0 -2
  628. package/dist/chunks/cli-0.1.9-v7ajk1nz.mjs +0 -2
  629. package/dist/chunks/cli-0.1.9-vdw09f8y.mjs +0 -44
  630. package/dist/chunks/cli-0.1.9-vm7cggd9.mjs +0 -45
  631. package/dist/chunks/cli-0.1.9-vp3dtntc.mjs +0 -2
  632. package/dist/chunks/cli-0.1.9-vwv31syx.mjs +0 -2
  633. package/dist/chunks/cli-0.1.9-w692zn5c.mjs +0 -2
  634. package/dist/chunks/cli-0.1.9-wn39cz20.mjs +0 -2
  635. package/dist/chunks/cli-0.1.9-wpvrabrk.mjs +0 -2
  636. package/dist/chunks/cli-0.1.9-x0xxr5dh.mjs +0 -13
  637. package/dist/chunks/cli-0.1.9-x13p19zq.mjs +0 -2
  638. package/dist/chunks/cli-0.1.9-x257hapj.mjs +0 -9
  639. package/dist/chunks/cli-0.1.9-x7qrvj9f.mjs +0 -2
  640. package/dist/chunks/cli-0.1.9-xvn37fkk.mjs +0 -2
  641. package/dist/chunks/cli-0.1.9-xvvq2rcd.mjs +0 -4
  642. package/dist/chunks/cli-0.1.9-xws3mhz4.mjs +0 -2
  643. package/dist/chunks/cli-0.1.9-y8n4w5nn.mjs +0 -5
  644. package/dist/chunks/cli-0.1.9-ycvkz1gf.mjs +0 -4
  645. package/dist/chunks/cli-0.1.9-yddanjg2.mjs +0 -132
  646. package/dist/chunks/cli-0.1.9-ymsq31jx.mjs +0 -2
  647. package/dist/chunks/cli-0.1.9-ywf6743k.mjs +0 -2
  648. package/dist/chunks/cli-0.1.9-z5mm21jw.mjs +0 -24
  649. package/dist/chunks/cli-0.1.9-zae1me3j.mjs +0 -2
  650. package/dist/chunks/cli-0.1.9-zck4s4sh.mjs +0 -2
  651. package/dist/chunks/cli-0.1.9-zehsa1kq.mjs +0 -2
  652. package/dist/chunks/cli-0.1.9-zqyxbf50.mjs +0 -2
  653. package/dist/chunks/cli-0.1.9-zstpbdrf.mjs +0 -2
  654. package/dist/chunks/cli-0.1.9-zzp8m503.mjs +0 -3
  655. package/dist/chunks/cliArgs-0.1.9-kckasx4h.mjs +0 -1
  656. package/dist/chunks/client-0.1.9-ys52xz2v.mjs +0 -1
  657. package/dist/chunks/color-0.1.9-nmnytefc.mjs +0 -1
  658. package/dist/chunks/compact-0.1.9-qw915ckh.mjs +0 -3
  659. package/dist/chunks/config-0.1.9-1m69edch.mjs +0 -1
  660. package/dist/chunks/config-0.1.9-6knxc8a2.mjs +0 -1
  661. package/dist/chunks/context-0.1.9-47a3xmqq.mjs +0 -1
  662. package/dist/chunks/context-noninteractive-0.1.9-6s9bm74v.mjs +0 -1
  663. package/dist/chunks/conversation-0.1.9-vebter8y.mjs +0 -1
  664. package/dist/chunks/copy-0.1.9-ae06p3e2.mjs +0 -9
  665. package/dist/chunks/cost-0.1.9-x5zee0z9.mjs +0 -1
  666. package/dist/chunks/createSession-0.1.9-djn7xdsv.mjs +0 -1
  667. package/dist/chunks/desktop-0.1.9-xaecrssd.mjs +0 -1
  668. package/dist/chunks/detectRepository-0.1.9-qqzcce45.mjs +0 -1
  669. package/dist/chunks/detection-0.1.9-ry1q2ym2.mjs +0 -1
  670. package/dist/chunks/devtools-0.1.9-kzs9wq2w.mjs +0 -1
  671. package/dist/chunks/diff-0.1.9-af5n5bzh.mjs +0 -1
  672. package/dist/chunks/doctor-0.1.9-9f6fz2h0.mjs +0 -1
  673. package/dist/chunks/earlyInput-0.1.9-h7yskwvf.mjs +0 -1
  674. package/dist/chunks/effort-0.1.9-spz96zzr.mjs +0 -8
  675. package/dist/chunks/environmentSelection-0.1.9-0va5g53h.mjs +0 -1
  676. package/dist/chunks/environments-0.1.9-2hka6k26.mjs +0 -1
  677. package/dist/chunks/exit-0.1.9-rvk04qa2.mjs +0 -1
  678. package/dist/chunks/export-0.1.9-c3pqjktx.mjs +0 -2
  679. package/dist/chunks/extra-usage-0.1.9-92jjke47.mjs +0 -1
  680. package/dist/chunks/extra-usage-noninteractive-0.1.9-27zjp5q7.mjs +0 -1
  681. package/dist/chunks/fast-0.1.9-60sqqvgd.mjs +0 -1
  682. package/dist/chunks/feedback-0.1.9-anraj53n.mjs +0 -14
  683. package/dist/chunks/firstPartyEventLogger-0.1.9-y55fqx1x.mjs +0 -1
  684. package/dist/chunks/fullscreen-0.1.9-xy9bnpe3.mjs +0 -1
  685. package/dist/chunks/git-0.1.9-09pdaxwd.mjs +0 -1
  686. package/dist/chunks/githubModelsCredentials-0.1.9-bzx6c3bd.mjs +0 -1
  687. package/dist/chunks/growthbook-0.1.9-rqhcy76z.mjs +0 -1
  688. package/dist/chunks/heapdump-0.1.9-qrfce4dp.mjs +0 -6
  689. package/dist/chunks/help-0.1.9-sfn2ed9n.mjs +0 -1
  690. package/dist/chunks/hookChains-0.1.9-5t2mrtyc.mjs +0 -3
  691. package/dist/chunks/hooks-0.1.9-4cebdztn.mjs +0 -1
  692. package/dist/chunks/hooks-0.1.9-y0vtx23k.mjs +0 -79
  693. package/dist/chunks/ide-0.1.9-yxzacgd5.mjs +0 -3
  694. package/dist/chunks/image-processor-napi-0.1.9-fwc1ge47.mjs +0 -1
  695. package/dist/chunks/index-0.1.9-2gv7a7tq.mjs +0 -2
  696. package/dist/chunks/index-0.1.9-31vnb803.mjs +0 -1
  697. package/dist/chunks/index-0.1.9-68aa3hmw.mjs +0 -1
  698. package/dist/chunks/index-0.1.9-7ktx5gez.mjs +0 -1
  699. package/dist/chunks/index-0.1.9-8feamw1f.mjs +0 -1
  700. package/dist/chunks/index-0.1.9-8hzceckr.mjs +0 -5
  701. package/dist/chunks/index-0.1.9-96thm65j.mjs +0 -1
  702. package/dist/chunks/index-0.1.9-c7sexk3f.mjs +0 -2
  703. package/dist/chunks/index-0.1.9-fvtq6thw.mjs +0 -1
  704. package/dist/chunks/index-0.1.9-g2ngvhaf.mjs +0 -1
  705. package/dist/chunks/index-0.1.9-gtn0qcv2.mjs +0 -7
  706. package/dist/chunks/index-0.1.9-h548q4km.mjs +0 -1
  707. package/dist/chunks/index-0.1.9-j6ac60hq.mjs +0 -1
  708. package/dist/chunks/index-0.1.9-jxdymwv4.mjs +0 -1
  709. package/dist/chunks/index-0.1.9-kgdkzpmr.mjs +0 -1
  710. package/dist/chunks/index-0.1.9-mt2y3wyw.mjs +0 -9
  711. package/dist/chunks/index-0.1.9-smem7egb.mjs +0 -30
  712. package/dist/chunks/index-0.1.9-snmdvw2f.mjs +0 -1
  713. package/dist/chunks/index-0.1.9-vwevfx80.mjs +0 -1
  714. package/dist/chunks/index-0.1.9-w21jc8bp.mjs +0 -1
  715. package/dist/chunks/index-0.1.9-wpqaqk4y.mjs +0 -1
  716. package/dist/chunks/index-0.1.9-yjp28h60.mjs +0 -9
  717. package/dist/chunks/initReplBridge-0.1.9-dag95hyf.mjs +0 -1
  718. package/dist/chunks/ink-0.1.9-4n2nvw5p.mjs +0 -1
  719. package/dist/chunks/insights-0.1.9-9hr8tshw.mjs +0 -870
  720. package/dist/chunks/install-0.1.9-km91vvgf.mjs +0 -1
  721. package/dist/chunks/install-github-app-0.1.9-874a2dgj.mjs +0 -149
  722. package/dist/chunks/install-slack-app-0.1.9-q5yyb8vs.mjs +0 -1
  723. package/dist/chunks/instrumentation-0.1.9-raz129aj.mjs +0 -12
  724. package/dist/chunks/interactiveHelpers-0.1.9-21a8r4rv.mjs +0 -1
  725. package/dist/chunks/keybindings-0.1.9-nm8s4x8m.mjs +0 -2
  726. package/dist/chunks/knowledge-0.1.9-zhr6zq80.mjs +0 -2
  727. package/dist/chunks/loadAgentsDir-0.1.9-3m0mzw84.mjs +0 -1
  728. package/dist/chunks/loadPluginHooks-0.1.9-y46g5zj0.mjs +0 -1
  729. package/dist/chunks/logout-0.1.9-hb89bxj8.mjs +0 -1
  730. package/dist/chunks/lsp-0.1.9-2j3y8eqc.mjs +0 -1
  731. package/dist/chunks/main-0.1.9-7cnyr288.mjs +0 -1
  732. package/dist/chunks/managedEnv-0.1.9-y8wax2wz.mjs +0 -1
  733. package/dist/chunks/mcp-0.1.9-14beee71.mjs +0 -17
  734. package/dist/chunks/mcp-0.1.9-qw1n3pzx.mjs +0 -4
  735. package/dist/chunks/mcp-0.1.9-zd92e41j.mjs +0 -1
  736. package/dist/chunks/mcpServer-0.1.9-5p48a2y0.mjs +0 -1
  737. package/dist/chunks/mcpb-0.1.9-t8x1bjwv.mjs +0 -1
  738. package/dist/chunks/memory-0.1.9-mxz6vgsy.mjs +0 -3
  739. package/dist/chunks/mobile-0.1.9-144nwr03.mjs +0 -2
  740. package/dist/chunks/model-0.1.9-ghswdzx2.mjs +0 -1
  741. package/dist/chunks/model-0.1.9-j4vhm4vm.mjs +0 -2
  742. package/dist/chunks/oauth-0.1.9-a7p9ezjx.mjs +0 -1
  743. package/dist/chunks/openaiShim-0.1.9-5bn57rv6.mjs +0 -14
  744. package/dist/chunks/output-style-0.1.9-y8t5c5v3.mjs +0 -1
  745. package/dist/chunks/package-HMBVQOZ4-0.1.9-mbvqe0av.mjs +0 -1
  746. package/dist/chunks/parser-0.1.9-d7vc9q1w.mjs +0 -1
  747. package/dist/chunks/passes-0.1.9-84vsp058.mjs +0 -1
  748. package/dist/chunks/permissions-0.1.9-h0a2312z.mjs +0 -3
  749. package/dist/chunks/plan-0.1.9-k9dx9nwc.mjs +0 -1
  750. package/dist/chunks/plist-0.1.9-f3c6hvca.mjs +0 -1
  751. package/dist/chunks/plugin-0.1.9-z3nwra38.mjs +0 -29
  752. package/dist/chunks/pluginStartupCheck-0.1.9-p68xwmv4.mjs +0 -1
  753. package/dist/chunks/plugins-0.1.9-grc1bgmj.mjs +0 -9
  754. package/dist/chunks/print-0.1.9-z151tvas.mjs +0 -57
  755. package/dist/chunks/privacy-settings-0.1.9-m7xpxtd8.mjs +0 -1
  756. package/dist/chunks/process-0.1.9-anx0dq1a.mjs +0 -1
  757. package/dist/chunks/processBashCommand-0.1.9-bchtybqh.mjs +0 -1
  758. package/dist/chunks/processSlashCommand-0.1.9-ebvc859m.mjs +0 -9
  759. package/dist/chunks/prompt-0.1.9-08fnpwfx.mjs +0 -1
  760. package/dist/chunks/prompt-0.1.9-whqkx3td.mjs +0 -1
  761. package/dist/chunks/prompts-0.1.9-psek69yr.mjs +0 -1
  762. package/dist/chunks/provider-0.1.9-xwmdqr38.mjs +0 -2
  763. package/dist/chunks/providerProfiles-0.1.9-myc8zcfy.mjs +0 -1
  764. package/dist/chunks/rate-limit-options-0.1.9-06twart5.mjs +0 -1
  765. package/dist/chunks/registry-0.1.9-xxrsbce3.mjs +0 -1
  766. package/dist/chunks/release-notes-0.1.9-4r396x7z.mjs +0 -5
  767. package/dist/chunks/reload-plugins-0.1.9-hm09ekrf.mjs +0 -2
  768. package/dist/chunks/remote-env-0.1.9-0peng4np.mjs +0 -1
  769. package/dist/chunks/remoteBridgeCore-0.1.9-4eg0bkck.mjs +0 -1
  770. package/dist/chunks/remoteSession-0.1.9-7jagnaes.mjs +0 -1
  771. package/dist/chunks/rename-0.1.9-3r8bqa1y.mjs +0 -1
  772. package/dist/chunks/replBridgeHandle-0.1.9-1y32h5jq.mjs +0 -1
  773. package/dist/chunks/resume-0.1.9-gayv56qp.mjs +0 -2
  774. package/dist/chunks/rewind-0.1.9-krxjbzeg.mjs +0 -1
  775. package/dist/chunks/sandbox-adapter-0.1.9-b4ze2ex2.mjs +0 -1
  776. package/dist/chunks/sandbox-toggle-0.1.9-6vctxbed.mjs +0 -1
  777. package/dist/chunks/session-0.1.9-jtrr3jje.mjs +0 -2
  778. package/dist/chunks/sessionFileAccessHooks-0.1.9-wpgdva8t.mjs +0 -1
  779. package/dist/chunks/sessionStorage-0.1.9-1v6wyqzw.mjs +0 -1
  780. package/dist/chunks/setup-0.1.9-jc5w6v5s.mjs +0 -5
  781. package/dist/chunks/sinks-0.1.9-49ereb4y.mjs +0 -1
  782. package/dist/chunks/skills-0.1.9-d63w5m27.mjs +0 -1
  783. package/dist/chunks/startupProfiler-0.1.9-gmke65dk.mjs +0 -1
  784. package/dist/chunks/state-0.1.9-m8x0v07d.mjs +0 -1
  785. package/dist/chunks/stats-0.1.9-yvya6xg6.mjs +0 -6
  786. package/dist/chunks/status-0.1.9-sapnwz4b.mjs +0 -1
  787. package/dist/chunks/stickers-0.1.9-ewdagtd4.mjs +0 -1
  788. package/dist/chunks/subprocessEnv-0.1.9-2dqzh55d.mjs +0 -1
  789. package/dist/chunks/tasks-0.1.9-qgqwhse9.mjs +0 -1
  790. package/dist/chunks/teamHelpers-0.1.9-r474ar76.mjs +0 -1
  791. package/dist/chunks/teammateModeSnapshot-0.1.9-nwc11b9m.mjs +0 -1
  792. package/dist/chunks/teleport-0.1.9-xaj204my.mjs +0 -1
  793. package/dist/chunks/terminalSetup-0.1.9-xd5rhh32.mjs +0 -1
  794. package/dist/chunks/theme-0.1.9-f6jzdysz.mjs +0 -1
  795. package/dist/chunks/thinkback-0.1.9-8j25tex7.mjs +0 -1
  796. package/dist/chunks/thinkback-play-0.1.9-tzs2w3mj.mjs +0 -1
  797. package/dist/chunks/toolPool-0.1.9-6b4938vh.mjs +0 -1
  798. package/dist/chunks/toolSearch-0.1.9-7ych6nv7.mjs +0 -1
  799. package/dist/chunks/trustedDevice-0.1.9-xqxt3kmz.mjs +0 -1
  800. package/dist/chunks/turndown.cjs-0.1.9-m1wesrr4.mjs +0 -69
  801. package/dist/chunks/ultrareviewCommand-0.1.9-x09n5pvc.mjs +0 -4
  802. package/dist/chunks/update-0.1.9-8dntd8kh.mjs +0 -94
  803. package/dist/chunks/upgrade-0.1.9-eja31dgt.mjs +0 -1
  804. package/dist/chunks/upstreamproxy-0.1.9-pv2yqh11.mjs +0 -14
  805. package/dist/chunks/usage-0.1.9-neje6dea.mjs +0 -1
  806. package/dist/chunks/util-0.1.9-kdhggd68.mjs +0 -1
  807. package/dist/chunks/utils-0.1.9-bqw30f8b.mjs +0 -1
  808. package/dist/chunks/vim-0.1.9-w4d1qz6f.mjs +0 -1
  809. package/dist/chunks/watcher-0.1.9-ty2r0yxd.mjs +0 -1
  810. package/dist/chunks/wiki-0.1.9-ah646x2k.mjs +0 -132
  811. package/dist/chunks/worktree-0.1.9-d3fbxjwd.mjs +0 -1
  812. package/dist/chunks/worktreeModeEnabled-0.1.9-qbn6b5fs.mjs +0 -1
  813. package/dist/chunks/wrapper-0.1.9-eh46qafm.mjs +0 -7
  814. /package/dist/chunks/{cli-0.1.9-zrdz7st3.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
@@ -0,0 +1 @@
1
+ import{Tf as L,Uf as D}from"./cli-0.1.11-1bmswdg3.mjs";import{sw as b,tw as B,xw as f,yw as p,zw as l}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import{QU as J,SU as C,eT as i,tV as $,vV as u}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import{qX as W}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as j}from"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{A_ as E,Eaa as d,Gaa as M,Qaa as V,y_ as I}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as _,ega as c}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as h,Jga as T,bha as H,eha as m}from"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as A}from"./cli-0.1.11-yrfxpjhr.mjs";c();D();u();m();E();T();l();V();var F=A(i(),1),k=A(j(),1),q=A(W(),1);import{homedir as x}from"node:os";import{join as n}from"node:path";function r(){let R=I.platform==="win32",z=x();if(R)return n(z,".local","bin","claudio.exe").replace(/\//g,"\\");return"~/.local/bin/claudio"}function v(R){let z=F.c(5),{messages:G}=R;if(G.length===0)return null;let y;if(z[0]===Symbol.for("react.memo_cache_sentinel"))y=q.jsxDEV(J,{children:q.jsxDEV(C,{color:"warning",children:[q.jsxDEV(L,{status:"warning",withSpace:!0},void 0,!1,void 0,this),"Setup notes:"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),z[0]=y;else y=z[0];let K;if(z[1]!==G)K=G.map(a),z[1]=G,z[2]=K;else K=z[2];let X;if(z[3]!==K)X=q.jsxDEV(J,{flexDirection:"column",gap:0,marginBottom:1,children:[y,K]},void 0,!0,void 0,this),z[3]=K,z[4]=X;else X=z[4];return X}function a(R,z){return q.jsxDEV(J,{marginLeft:2,children:q.jsxDEV(C,{dimColor:!0,children:["• ",R]},void 0,!0,void 0,this)},z,!1,void 0,this)}function o({onDone:R,force:z,target:G}){let[y,K]=k.useState({type:"checking"});return k.useEffect(()=>{async function X(){try{H(`Install: Starting installation process (force=${z}, target=${G})`);let Y=G||M()?.autoUpdatesChannel||"latest";K({type:"installing",version:Y}),H(`Install: Calling installLatest(channelOrVersion=${Y}, forceReinstall=${z})`);let Q=await B(Y,z);if(H(`Install: installLatest returned version=${Q.latestVersion}, wasUpdated=${Q.wasUpdated}, lockFailed=${Q.lockFailed}`),Q.lockFailed)throw Error("Could not install - another process is currently installing Claude. Please try again in a moment.");if(!Q.latestVersion)H("Install: Failed to retrieve version information during install",{level:"error"});if(!Q.wasUpdated)H("Install: Already up to date");K({type:"setting-up"});let Z=await b(!0);if(H(`Install: Setup launcher completed with ${Z.length} messages`),Z.length>0)Z.forEach((U)=>H(`Install: Setup message: ${U.message}`));H("Install: Cleaning up npm installations after successful install");let{removed:N,errors:O,warnings:S}=await p();if(N>0)H(`Cleaned up ${N} npm installation(s)`);if(O.length>0)H(`Cleanup errors: ${O.join(", ")}`);let P=await f();if(P.length>0)H(`Shell alias cleanup: ${P.map((U)=>U.message).join("; ")}`);if(_("tengu_claude_install_command",{has_version:Q.latestVersion?1:0,forced:z?1:0}),G==="latest"||G==="stable")d("userSettings",{autoUpdatesChannel:G}),H(`Install: Saved autoUpdatesChannel=${G} to user settings`);let w=[...S,...P.map((U)=>U.message)];if(Z.length>0)K({type:"set-up",messages:Z.map((U)=>U.message)}),setTimeout(K,2000,{type:"success",version:Q.latestVersion||"current",setupMessages:[...Z.map((U)=>U.message),...w]});else H("Install: Shell PATH already configured"),K({type:"success",version:Q.latestVersion||"current",setupMessages:w.length>0?w:void 0})}catch(Y){H(`Install command failed: ${Y}`,{level:"error"}),K({type:"error",message:h(Y)})}}X()},[z,G]),k.useEffect(()=>{if(y.type==="success")setTimeout(R,2000,"Claude Code installation completed successfully",{display:"system"});else if(y.type==="error")setTimeout(R,3000,"Claude Code installation failed",{display:"system"})},[y,R]),q.jsxDEV(J,{flexDirection:"column",marginTop:1,children:[y.type==="checking"&&q.jsxDEV(C,{color:"claude",children:"Checking installation status..."},void 0,!1,void 0,this),y.type==="cleaning-npm"&&q.jsxDEV(C,{color:"warning",children:"Cleaning up old npm installations..."},void 0,!1,void 0,this),y.type==="installing"&&q.jsxDEV(C,{color:"claude",children:["Installing Claude Code native build ",y.version,"..."]},void 0,!0,void 0,this),y.type==="setting-up"&&q.jsxDEV(C,{color:"claude",children:"Setting up launcher and shell integration..."},void 0,!1,void 0,this),y.type==="set-up"&&q.jsxDEV(v,{messages:y.messages},void 0,!1,void 0,this),y.type==="success"&&q.jsxDEV(J,{flexDirection:"column",gap:1,children:[q.jsxDEV(J,{children:[q.jsxDEV(L,{status:"success",withSpace:!0},void 0,!1,void 0,this),q.jsxDEV(C,{color:"success",bold:!0,children:"Claude Code successfully installed!"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(J,{marginLeft:2,flexDirection:"column",gap:1,children:[y.version!=="current"&&q.jsxDEV(J,{children:[q.jsxDEV(C,{dimColor:!0,children:"Version: "},void 0,!1,void 0,this),q.jsxDEV(C,{color:"claude",children:y.version},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(J,{children:[q.jsxDEV(C,{dimColor:!0,children:"Location: "},void 0,!1,void 0,this),q.jsxDEV(C,{color:"text",children:r()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(J,{marginLeft:2,flexDirection:"column",gap:1,children:q.jsxDEV(J,{marginTop:1,children:[q.jsxDEV(C,{dimColor:!0,children:"Next: Run "},void 0,!1,void 0,this),q.jsxDEV(C,{color:"claude",bold:!0,children:"claude --help"},void 0,!1,void 0,this),q.jsxDEV(C,{dimColor:!0,children:" to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y.setupMessages&&q.jsxDEV(v,{messages:y.setupMessages},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.type==="error"&&q.jsxDEV(J,{flexDirection:"column",gap:1,children:[q.jsxDEV(J,{children:[q.jsxDEV(L,{status:"error",withSpace:!0},void 0,!1,void 0,this),q.jsxDEV(C,{color:"error",children:"Installation failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV(C,{color:"error",children:y.message},void 0,!1,void 0,this),q.jsxDEV(J,{marginTop:1,children:q.jsxDEV(C,{dimColor:!0,children:"Try running with --force to override checks"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Kq={type:"local-jsx",name:"install",description:"Install Claude Code native build",argumentHint:"[options]",async call(R,z,G){let y=G.includes("--force"),X=G.filter((Q)=>!Q.startsWith("--"))[0],{unmount:Y}=await $(q.jsxDEV(o,{onDone:(Q,Z)=>{Y(),R(Q,Z)},force:y,target:X},void 0,!1,void 0,this))}};export{Kq as install,r as getInstallationPath};
@@ -0,0 +1,149 @@
1
+ import{Ay as c0,By as Yq,DK as I0,EK as w0,Tv as Rf,Uv as qq,mv as T0,nv as rf,ov as Mf,qv as tf}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import{DP as M0,EP as O0,FP as v0,GP as nf,HP as l0,IP as Ef,LP as _0,MP as af}from"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import{aS as Sf,bS as Gq}from"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import{GS as L0,HS as P0,US as U0,VS as Z0,WS as b0}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as d0,QU as Q,SU as X,WU as m0,eT as Y0,eU as cf,jU as fq,nT as y0,vV as s}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import{qX as O}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as z0}from"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import{OX as R0,PX as _f}from"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import{J4 as Bf,h4 as k0,i5 as Uf,j4 as of}from"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{F7 as W0,J8 as uf,K7 as wf,L7 as B0,M7 as Wf,N8 as Iq,P7 as g0,Q7 as Lq,S7 as e,U7 as vf,Vba as Xq,Y$ as jf,eaa as dq,zba as lf}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as K,ega as A0}from"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as w,Rna as n}from"./cli-0.1.11-yrfxpjhr.mjs";function xf(W){if(W.pending)return a.jsxDEV(X,{children:["Press ",W.keyName," again to exit"]},void 0,!0,void 0,this);return a.jsxDEV(l0,{children:[a.jsxDEV(M0,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),a.jsxDEV(M0,{shortcut:"Space",action:"toggle"},void 0,!1,void 0,this),a.jsxDEV(M0,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),a.jsxDEV(v0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function p0(W){let f=i0.c(14),{onSubmit:q,defaultSelections:Y}=W,[I,M]=h0.useState(!1),G;if(f[0]!==q)G=(_)=>{if(_.length===0){M(!0);return}M(!1),q(_)},f[0]=q,f[1]=G;else G=f[1];let L=G,z;if(f[2]===Symbol.for("react.memo_cache_sentinel"))z=()=>{M(!1)},f[2]=z;else z=f[2];let H=z,Z;if(f[3]===Symbol.for("react.memo_cache_sentinel"))Z=()=>{M(!0)},f[3]=Z;else Z=f[3];let F=Z,y;if(f[4]===Symbol.for("react.memo_cache_sentinel"))y=a.jsxDEV(Q,{children:a.jsxDEV(X,{dimColor:!0,children:["More workflow examples (issue triage, CI fixes, etc.) at:"," ",a.jsxDEV(m0,{url:"https://github.com/anthropics/claude-code-action/blob/main/examples/",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[4]=y;else y=f[4];let m;if(f[5]===Symbol.for("react.memo_cache_sentinel"))m=$f.map(sf),f[5]=m;else m=f[5];let b;if(f[6]!==Y||f[7]!==L)b=a.jsxDEV(T0,{options:m,defaultValue:Y,onSubmit:L,onChange:H,onCancel:F,hideIndexes:!0},void 0,!1,void 0,this),f[6]=Y,f[7]=L,f[8]=b;else b=f[8];let P;if(f[9]!==I)P=I&&a.jsxDEV(Q,{children:a.jsxDEV(X,{color:"error",children:"You must select at least one workflow to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[9]=I,f[10]=P;else P=f[10];let A;if(f[11]!==b||f[12]!==P)A=a.jsxDEV(_0,{title:"Select GitHub workflows to install",subtitle:"We'll create a workflow file in your repository for each one you select.",onCancel:F,inputGuide:xf,children:[y,b,P]},void 0,!0,void 0,this),f[11]=b,f[12]=P,f[13]=A;else A=f[13];return A}function sf(W){return{label:W.label,value:W.value}}var i0,h0,a,$f;var D0=n(()=>{s();nf();rf();Ef();af();O0();i0=w(Y0(),1),h0=w(z0(),1),a=w(O(),1),$f=[{value:"claude",label:"@Claude Code - Tag @claude in issues and PR comments"},{value:"claude-review",label:"Claude Code Review - Automated code review on new PRs"}]});var V0="Add Claude Code GitHub Workflow",J0="https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md",u0=`name: Claude Code
2
+
3
+ on:
4
+ issue_comment:
5
+ types: [created]
6
+ pull_request_review_comment:
7
+ types: [created]
8
+ issues:
9
+ types: [opened, assigned]
10
+ pull_request_review:
11
+ types: [submitted]
12
+
13
+ jobs:
14
+ claude:
15
+ if: |
16
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
17
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
18
+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19
+ (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
20
+ runs-on: ubuntu-latest
21
+ permissions:
22
+ contents: read
23
+ pull-requests: read
24
+ issues: read
25
+ id-token: write
26
+ actions: read # Required for Claude to read CI results on PRs
27
+ steps:
28
+ - name: Checkout repository
29
+ uses: actions/checkout@v4
30
+ with:
31
+ fetch-depth: 1
32
+
33
+ - name: Run Claude Code
34
+ id: claude
35
+ uses: anthropics/claude-code-action@v1
36
+ with:
37
+ anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
38
+
39
+ # This is an optional setting that allows Claude to read CI results on PRs
40
+ additional_permissions: |
41
+ actions: read
42
+
43
+ # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
44
+ # prompt: 'Update the pull request description to include a summary of changes.'
45
+
46
+ # Optional: Add claude_args to customize behavior and configuration
47
+ # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48
+ # or https://code.claude.com/docs/en/cli-reference for available options
49
+ # claude_args: '--allowed-tools Bash(gh pr:*)'
50
+
51
+ `,j0=`## \uD83E\uDD16 Installing Claude Code GitHub App
52
+
53
+ This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.
54
+
55
+ ### What is Claude Code?
56
+
57
+ [Claude Code](https://claude.com/claude-code) is an AI coding agent that can help with:
58
+ - Bug fixes and improvements
59
+ - Documentation updates
60
+ - Implementing new features
61
+ - Code reviews and suggestions
62
+ - Writing tests
63
+ - And more!
64
+
65
+ ### How it works
66
+
67
+ Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
68
+ Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.
69
+
70
+ ### Important Notes
71
+
72
+ - **This workflow won't take effect until this PR is merged**
73
+ - **@claude mentions won't work until after the merge is complete**
74
+ - The workflow runs automatically whenever Claude is mentioned in PR or issue comments
75
+ - Claude gets access to the entire PR or issue context including files, diffs, and previous comments
76
+
77
+ ### Security
78
+
79
+ - Our Anthropic API key is securely stored as a GitHub Actions secret
80
+ - Only users with write access to the repository can trigger the workflow
81
+ - All Claude runs are stored in the GitHub Actions run history
82
+ - Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
83
+ - We can add more allowed tools by adding them to the workflow file like:
84
+
85
+ \`\`\`
86
+ allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)
87
+ \`\`\`
88
+
89
+ There's more information in the [Claude Code action repo](https://github.com/anthropics/claude-code-action).
90
+
91
+ After merging this PR, let's try mentioning @claude in a comment on any PR to get started!`,o0=`name: Claude Code Review
92
+
93
+ on:
94
+ pull_request:
95
+ types: [opened, synchronize, ready_for_review, reopened]
96
+ # Optional: Only run on specific file changes
97
+ # paths:
98
+ # - "src/**/*.ts"
99
+ # - "src/**/*.tsx"
100
+ # - "src/**/*.js"
101
+ # - "src/**/*.jsx"
102
+
103
+ jobs:
104
+ claude-review:
105
+ # Optional: Filter by PR author
106
+ # if: |
107
+ # github.event.pull_request.user.login == 'external-contributor' ||
108
+ # github.event.pull_request.user.login == 'new-developer' ||
109
+ # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
110
+
111
+ runs-on: ubuntu-latest
112
+ permissions:
113
+ contents: read
114
+ pull-requests: read
115
+ issues: read
116
+ id-token: write
117
+
118
+ steps:
119
+ - name: Checkout repository
120
+ uses: actions/checkout@v4
121
+ with:
122
+ fetch-depth: 1
123
+
124
+ - name: Run Claude Code Review
125
+ id: claude-review
126
+ uses: anthropics/claude-code-action@v1
127
+ with:
128
+ anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
129
+ plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
130
+ plugins: 'code-review@claude-code-plugins'
131
+ prompt: '/code-review:code-review \${{ github.repository }}/pull/\${{ github.event.pull_request.number }}'
132
+ # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
133
+ # or https://code.claude.com/docs/en/cli-reference for available options
134
+
135
+ `;var H0=()=>{};function E0(W){let f=S0.c(55),{existingApiKey:q,apiKeyOrOAuthToken:Y,onApiKeyChange:I,onSubmit:M,onToggleUseExistingKey:G,onCreateOAuthToken:L,selectedOption:z,onSelectOption:H}=W,Z=z===void 0?q?"existing":L?"oauth":"new":z,[F,y]=n0.useState(0),m=L0(),[b]=y0(),P;if(f[0]!==q||f[1]!==L||f[2]!==H||f[3]!==G||f[4]!==Z)P=()=>{if(Z==="new"&&L)H?.("oauth");else if(Z==="oauth"&&q)H?.("existing"),G(!0)},f[0]=q,f[1]=L,f[2]=H,f[3]=G,f[4]=Z,f[5]=P;else P=f[5];let A=P,_;if(f[6]!==L||f[7]!==H||f[8]!==G||f[9]!==Z)_=()=>{if(Z==="existing")H?.(L?"oauth":"new"),G(!1);else if(Z==="oauth")H?.("new")},f[6]=L,f[7]=H,f[8]=G,f[9]=Z,f[10]=_;else _=f[10];let T=_,p;if(f[11]!==L||f[12]!==M||f[13]!==Z)p=()=>{if(Z==="oauth"&&L)L();else M()},f[11]=L,f[12]=M,f[13]=Z,f[14]=p;else p=f[14];let D=p,U=Z==="new",g;if(f[15]!==D||f[16]!==T||f[17]!==A)g={"confirm:previous":A,"confirm:next":T,"confirm:yes":D},f[15]=D,f[16]=T,f[17]=A,f[18]=g;else g=f[18];let J=!U,d;if(f[19]!==J)d={context:"Confirmation",isActive:J},f[19]=J,f[20]=d;else d=f[20];Z0(g,d);let B;if(f[21]!==T||f[22]!==A)B={"confirm:previous":A,"confirm:next":T},f[21]=T,f[22]=A,f[23]=B;else B=f[23];let R;if(f[24]!==U)R={context:"Confirmation",isActive:U},f[24]=U,f[25]=R;else R=f[25];Z0(B,R);let C;if(f[26]===Symbol.for("react.memo_cache_sentinel"))C=o.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[o.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),o.jsxDEV(X,{dimColor:!0,children:"Choose API key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[26]=C;else C=f[26];let v;if(f[27]!==q||f[28]!==Z||f[29]!==b)v=q&&o.jsxDEV(Q,{marginBottom:1,children:o.jsxDEV(X,{children:[Z==="existing"?d0("success",b)("> "):" ","Use your existing Claude Code API key"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[27]=q,f[28]=Z,f[29]=b,f[30]=v;else v=f[30];let N;if(f[31]!==L||f[32]!==Z||f[33]!==b)N=L&&o.jsxDEV(Q,{marginBottom:1,children:o.jsxDEV(X,{children:[Z==="oauth"?d0("success",b)("> "):" ","Create a long-lived token with your Claude subscription"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[31]=L,f[32]=Z,f[33]=b,f[34]=N;else N=f[34];let V;if(f[35]!==Z||f[36]!==b)V=Z==="new"?d0("success",b)("> "):" ",f[35]=Z,f[36]=b,f[37]=V;else V=f[37];let X0;if(f[38]!==V)X0=o.jsxDEV(Q,{marginBottom:1,children:o.jsxDEV(X,{children:[V,"Enter a new API key"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[38]=V,f[39]=X0;else X0=f[39];let $;if(f[40]!==Y||f[41]!==F||f[42]!==I||f[43]!==M||f[44]!==Z||f[45]!==m)$=Z==="new"&&o.jsxDEV(I0,{value:Y,onChange:I,onSubmit:M,onPaste:I,focus:!0,placeholder:"sk-ant… (Create a new key at https://platform.claude.com/settings/keys)",mask:"*",columns:m.columns,cursorOffset:F,onChangeCursorOffset:y,showCursor:!0},void 0,!1,void 0,this),f[40]=Y,f[41]=F,f[42]=I,f[43]=M,f[44]=Z,f[45]=m,f[46]=$;else $=f[46];let x;if(f[47]!==v||f[48]!==N||f[49]!==X0||f[50]!==$)x=o.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[C,v,N,X0,$]},void 0,!0,void 0,this),f[47]=v,f[48]=N,f[49]=X0,f[50]=$,f[51]=x;else x=f[51];let f0;if(f[52]===Symbol.for("react.memo_cache_sentinel"))f0=o.jsxDEV(Q,{marginLeft:3,children:o.jsxDEV(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[52]=f0;else f0=f[52];let q0;if(f[53]!==x)q0=o.jsxDEV(o.Fragment,{children:[x,f0]},void 0,!0,void 0,this),f[53]=x,f[54]=q0;else q0=f[54];return q0}var S0,n0,o;var a0=n(()=>{w0();P0();s();b0();S0=w(Y0(),1),n0=w(z0(),1),o=w(O(),1)});function x0(W){let f=r0.c(42),{useExistingSecret:q,secretName:Y,onToggleUseExistingSecret:I,onSecretNameChange:M,onSubmit:G}=W,[L,z]=$0.useState(0),H=L0(),[Z]=y0(),F;if(f[0]!==I)F=()=>I(!0),f[0]=I,f[1]=F;else F=f[1];let y=F,m;if(f[2]!==I)m=()=>I(!1),f[2]=I,f[3]=m;else m=f[3];let b=m,P;if(f[4]!==b||f[5]!==y||f[6]!==G)P={"confirm:previous":y,"confirm:next":b,"confirm:yes":G},f[4]=b,f[5]=y,f[6]=G,f[7]=P;else P=f[7];let A;if(f[8]!==q)A={context:"Confirmation",isActive:q},f[8]=q,f[9]=A;else A=f[9];Z0(P,A);let _;if(f[10]!==b||f[11]!==y)_={"confirm:previous":y,"confirm:next":b},f[10]=b,f[11]=y,f[12]=_;else _=f[12];let T=!q,p;if(f[13]!==T)p={context:"Confirmation",isActive:T},f[13]=T,f[14]=p;else p=f[14];Z0(_,p);let D;if(f[15]===Symbol.for("react.memo_cache_sentinel"))D=l.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[l.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),l.jsxDEV(X,{dimColor:!0,children:"Setup API key secret"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[15]=D;else D=f[15];let U;if(f[16]===Symbol.for("react.memo_cache_sentinel"))U=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{color:"warning",children:"ANTHROPIC_API_KEY already exists in repository secrets!"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[16]=U;else U=f[16];let g;if(f[17]===Symbol.for("react.memo_cache_sentinel"))g=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:"Would you like to:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[17]=g;else g=f[17];let J;if(f[18]!==Z||f[19]!==q)J=q?d0("success",Z)("> "):" ",f[18]=Z,f[19]=q,f[20]=J;else J=f[20];let d;if(f[21]!==J)d=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:[J,"Use the existing API key"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[21]=J,f[22]=d;else d=f[22];let B;if(f[23]!==Z||f[24]!==q)B=!q?d0("success",Z)("> "):" ",f[23]=Z,f[24]=q,f[25]=B;else B=f[25];let R;if(f[26]!==B)R=l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:[B,"Create a new secret with a different name"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[26]=B,f[27]=R;else R=f[27];let C;if(f[28]!==L||f[29]!==M||f[30]!==G||f[31]!==Y||f[32]!==H||f[33]!==q)C=!q&&l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Q,{marginBottom:1,children:l.jsxDEV(X,{children:"Enter new secret name (alphanumeric with underscores):"},void 0,!1,void 0,this)},void 0,!1,void 0,this),l.jsxDEV(I0,{value:Y,onChange:M,onSubmit:G,focus:!0,placeholder:"e.g., CLAUDE_API_KEY",columns:H.columns,cursorOffset:L,onChangeCursorOffset:z,showCursor:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[28]=L,f[29]=M,f[30]=G,f[31]=Y,f[32]=H,f[33]=q,f[34]=C;else C=f[34];let v;if(f[35]!==d||f[36]!==R||f[37]!==C)v=l.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[D,U,g,d,R,C]},void 0,!0,void 0,this),f[35]=d,f[36]=R,f[37]=C,f[38]=v;else v=f[38];let N;if(f[39]===Symbol.for("react.memo_cache_sentinel"))N=l.jsxDEV(Q,{marginLeft:3,children:l.jsxDEV(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[39]=N;else N=f[39];let V;if(f[40]!==v)V=l.jsxDEV(l.Fragment,{children:[v,N]},void 0,!0,void 0,this),f[40]=v,f[41]=V;else V=f[41];return V}var r0,$0,l;var s0=n(()=>{w0();P0();s();b0();r0=w(Y0(),1),$0=w(z0(),1),l=w(O(),1)});function t0(){let W=e0.c(1),f;if(W[0]===Symbol.for("react.memo_cache_sentinel"))f=ff.jsxDEV(X,{children:"Checking GitHub CLI installation…"},void 0,!1,void 0,this),W[0]=f;else f=W[0];return f}var e0,ff;var qf=n(()=>{s();e0=w(Y0(),1),ff=w(O(),1)});function Xf(W){let f=Yf.c(49),{currentRepo:q,useCurrentRepo:Y,repoUrl:I,onRepoUrlChange:M,onSubmit:G,onToggleUseCurrentRepo:L}=W,[z,H]=K0.useState(0),[Z,F]=K0.useState(!1),m=L0().columns,b;if(f[0]!==q||f[1]!==G||f[2]!==I||f[3]!==Y)b=()=>{if(!(Y?q:I)?.trim()){F(!0);return}G()},f[0]=q,f[1]=G,f[2]=I,f[3]=Y,f[4]=b;else b=f[4];let P=b,A=!Y||!q,_;if(f[5]!==L)_=()=>{L(!0),F(!1)},f[5]=L,f[6]=_;else _=f[6];let T=_,p;if(f[7]!==L)p=()=>{L(!1),F(!1)},f[7]=L,f[8]=p;else p=f[8];let D=p,U;if(f[9]!==D||f[10]!==T||f[11]!==P)U={"confirm:previous":T,"confirm:next":D,"confirm:yes":P},f[9]=D,f[10]=T,f[11]=P,f[12]=U;else U=f[12];let g=!A,J;if(f[13]!==g)J={context:"Confirmation",isActive:g},f[13]=g,f[14]=J;else J=f[14];Z0(U,J);let d;if(f[15]!==D||f[16]!==T)d={"confirm:previous":T,"confirm:next":D},f[15]=D,f[16]=T,f[17]=d;else d=f[17];let B;if(f[18]!==A)B={context:"Confirmation",isActive:A},f[18]=A,f[19]=B;else B=f[19];Z0(d,B);let R;if(f[20]===Symbol.for("react.memo_cache_sentinel"))R=u.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[u.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),u.jsxDEV(X,{dimColor:!0,children:"Select GitHub repository"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[20]=R;else R=f[20];let C;if(f[21]!==q||f[22]!==Y)C=q&&u.jsxDEV(Q,{marginBottom:1,children:u.jsxDEV(X,{bold:Y,color:Y?"permission":void 0,children:[Y?"> ":" ","Use current repository: ",q]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[21]=q,f[22]=Y,f[23]=C;else C=f[23];let v=!Y||!q,N=!Y||!q?"permission":void 0,V=!Y||!q?"> ":" ",X0=q?"Enter a different repository":"Enter repository",$;if(f[24]!==v||f[25]!==N||f[26]!==V||f[27]!==X0)$=u.jsxDEV(Q,{marginBottom:1,children:u.jsxDEV(X,{bold:v,color:N,children:[V,X0]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[24]=v,f[25]=N,f[26]=V,f[27]=X0,f[28]=$;else $=f[28];let x;if(f[29]!==q||f[30]!==z||f[31]!==P||f[32]!==M||f[33]!==I||f[34]!==m||f[35]!==Y)x=(!Y||!q)&&u.jsxDEV(Q,{marginLeft:2,marginBottom:1,children:u.jsxDEV(I0,{value:I,onChange:(N0)=>{M(N0),F(!1)},onSubmit:P,focus:!0,placeholder:"Enter a repo as owner/repo or https://github.com/owner/repo…",columns:m,cursorOffset:z,onChangeCursorOffset:H,showCursor:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[29]=q,f[30]=z,f[31]=P,f[32]=M,f[33]=I,f[34]=m,f[35]=Y,f[36]=x;else x=f[36];let f0;if(f[37]!==C||f[38]!==$||f[39]!==x)f0=u.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[R,C,$,x]},void 0,!0,void 0,this),f[37]=C,f[38]=$,f[39]=x,f[40]=f0;else f0=f[40];let q0;if(f[41]!==Z)q0=Z&&u.jsxDEV(Q,{marginLeft:3,marginBottom:1,children:u.jsxDEV(X,{color:"error",children:"Please enter a repository name to continue"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[41]=Z,f[42]=q0;else q0=f[42];let C0=q?"↑/↓ to select · ":"",G0;if(f[43]!==C0)G0=u.jsxDEV(Q,{marginLeft:3,children:u.jsxDEV(X,{dimColor:!0,children:[C0,"Enter to continue"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[43]=C0,f[44]=G0;else G0=f[44];let F0;if(f[45]!==f0||f[46]!==q0||f[47]!==G0)F0=u.jsxDEV(u.Fragment,{children:[f0,q0,G0]},void 0,!0,void 0,this),f[45]=f0,f[46]=q0,f[47]=G0,f[48]=F0;else F0=f[48];return F0}var Yf,K0,u;var Jf=n(()=>{w0();P0();s();b0();Yf=w(Y0(),1),K0=w(z0(),1),u=w(O(),1)});function Zf(W){let f=Qf.c(10),{currentWorkflowInstallStep:q,secretExists:Y,useExistingSecret:I,secretName:M,skipWorkflow:G,selectedWorkflows:L}=W,z=G===void 0?!1:G,H;if(f[0]!==Y||f[1]!==M||f[2]!==L||f[3]!==z||f[4]!==I)H=z?["Getting repository information",Y&&I?"Using existing API key secret":`Setting up ${M} secret`]:["Getting repository information","Creating branch",L.length>1?"Creating workflow files":"Creating workflow file",Y&&I?"Using existing API key secret":`Setting up ${M} secret`,"Opening pull request page"],f[0]=Y,f[1]=M,f[2]=L,f[3]=z,f[4]=I,f[5]=H;else H=f[5];let Z=H,F;if(f[6]===Symbol.for("react.memo_cache_sentinel"))F=Q0.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[Q0.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),Q0.jsxDEV(X,{dimColor:!0,children:"Create GitHub Actions workflow"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[6]=F;else F=f[6];let y;if(f[7]!==q||f[8]!==Z)y=Q0.jsxDEV(Q0.Fragment,{children:Q0.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[F,Z.map((m,b)=>{let P="pending";if(b<q)P="completed";else if(b===q)P="in-progress";return Q0.jsxDEV(Q,{children:Q0.jsxDEV(X,{color:P==="completed"?"success":P==="in-progress"?"warning":void 0,children:[P==="completed"?"✓ ":"",m,P==="in-progress"?"…":""]},void 0,!0,void 0,this)},b,!1,void 0,this)})]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[7]=q,f[8]=Z,f[9]=y;else y=f[9];return y}var Qf,Q0;var Lf=n(()=>{s();Qf=w(Y0(),1),Q0=w(O(),1)});function df(W){let f=If.c(15),{error:q,errorReason:Y,errorInstructions:I}=W,M;if(f[0]===Symbol.for("react.memo_cache_sentinel"))M=i.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:i.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[0]=M;else M=f[0];let G;if(f[1]!==q)G=i.jsxDEV(X,{color:"error",children:["Error: ",q]},void 0,!0,void 0,this),f[1]=q,f[2]=G;else G=f[2];let L;if(f[3]!==Y)L=Y&&i.jsxDEV(Q,{marginTop:1,children:i.jsxDEV(X,{dimColor:!0,children:["Reason: ",Y]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[3]=Y,f[4]=L;else L=f[4];let z;if(f[5]!==I)z=I&&I.length>0&&i.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[i.jsxDEV(X,{dimColor:!0,children:"How to fix:"},void 0,!1,void 0,this),I.map(ef)]},void 0,!0,void 0,this),f[5]=I,f[6]=z;else z=f[6];let H;if(f[7]===Symbol.for("react.memo_cache_sentinel"))H=i.jsxDEV(Q,{marginTop:1,children:i.jsxDEV(X,{dimColor:!0,children:["For manual setup instructions, see:"," ",i.jsxDEV(X,{color:"claude",children:J0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[7]=H;else H=f[7];let Z;if(f[8]!==G||f[9]!==L||f[10]!==z)Z=i.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[M,G,L,z,H]},void 0,!0,void 0,this),f[8]=G,f[9]=L,f[10]=z,f[11]=Z;else Z=f[11];let F;if(f[12]===Symbol.for("react.memo_cache_sentinel"))F=i.jsxDEV(Q,{marginLeft:3,children:i.jsxDEV(X,{dimColor:!0,children:"Press any key to exit"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[12]=F;else F=f[12];let y;if(f[13]!==Z)y=i.jsxDEV(i.Fragment,{children:[Z,F]},void 0,!0,void 0,this),f[13]=Z,f[14]=y;else y=f[14];return y}function ef(W,f){return i.jsxDEV(Q,{marginLeft:2,children:[i.jsxDEV(X,{dimColor:!0,children:"• "},void 0,!1,void 0,this),i.jsxDEV(X,{children:W},void 0,!1,void 0,this)]},f,!0,void 0,this)}var If,i;var Gf=n(()=>{H0();s();If=w(Y0(),1),i=w(O(),1)});function Hf(W){let f=zf.c(16),{repoName:q,onSelectAction:Y}=W,I;if(f[0]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Update workflow file with latest version",value:"update"},{label:"Skip workflow update (configure secrets only)",value:"skip"},{label:"Exit without making changes",value:"exit"}],f[0]=I;else I=f[0];let M=I,G;if(f[1]!==Y)G=(A)=>{Y(A)},f[1]=Y,f[2]=G;else G=f[2];let L=G,z;if(f[3]!==Y)z=()=>{Y("exit")},f[3]=Y,f[4]=z;else z=f[4];let H=z,Z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Z=r.jsxDEV(X,{bold:!0,children:"Existing Workflow Found"},void 0,!1,void 0,this),f[5]=Z;else Z=f[5];let F;if(f[6]!==q)F=r.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[Z,r.jsxDEV(X,{dimColor:!0,children:["Repository: ",q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f[6]=q,f[7]=F;else F=f[7];let y;if(f[8]===Symbol.for("react.memo_cache_sentinel"))y=r.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[r.jsxDEV(X,{children:["A Claude workflow file already exists at"," ",r.jsxDEV(X,{color:"claude",children:".github/workflows/claude.yml"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV(X,{dimColor:!0,children:"What would you like to do?"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[8]=y;else y=f[8];let m;if(f[9]!==H||f[10]!==L)m=r.jsxDEV(Q,{flexDirection:"column",children:r.jsxDEV(Mf,{options:M,onChange:L,onCancel:H},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[9]=H,f[10]=L,f[11]=m;else m=f[11];let b;if(f[12]===Symbol.for("react.memo_cache_sentinel"))b=r.jsxDEV(Q,{marginTop:1,children:r.jsxDEV(X,{dimColor:!0,children:["View the latest workflow template at:"," ",r.jsxDEV(X,{color:"claude",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[12]=b;else b=f[12];let P;if(f[13]!==F||f[14]!==m)P=r.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[F,y,m,b]},void 0,!0,void 0,this),f[13]=F,f[14]=m,f[15]=P;else P=f[15];return P}var zf,r;var bf=n(()=>{tf();s();zf=w(Y0(),1),r=w(O(),1)});function mf(W){let f=Ff.c(12),{repoUrl:q,onSubmit:Y}=W,I;if(f[0]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},f[0]=I;else I=f[0];U0("confirm:yes",Y,I);let M;if(f[1]===Symbol.for("react.memo_cache_sentinel"))M=h.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:h.jsxDEV(X,{bold:!0,children:"Install the Claude GitHub App"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[1]=M;else M=f[1];let G;if(f[2]===Symbol.for("react.memo_cache_sentinel"))G=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{children:"Opening browser to install the Claude GitHub App…"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[2]=G;else G=f[2];let L;if(f[3]===Symbol.for("react.memo_cache_sentinel"))L=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{children:"If your browser doesn't open automatically, visit:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[3]=L;else L=f[3];let z;if(f[4]===Symbol.for("react.memo_cache_sentinel"))z=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{underline:!0,children:"https://github.com/apps/claude"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[4]=z;else z=f[4];let H;if(f[5]!==q)H=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{children:["Please install the app for repository: ",h.jsxDEV(X,{bold:!0,children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[5]=q,f[6]=H;else H=f[6];let Z;if(f[7]===Symbol.for("react.memo_cache_sentinel"))Z=h.jsxDEV(Q,{marginBottom:1,children:h.jsxDEV(X,{dimColor:!0,children:"Important: Make sure to grant access to this specific repository"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[7]=Z;else Z=f[7];let F;if(f[8]===Symbol.for("react.memo_cache_sentinel"))F=h.jsxDEV(Q,{children:h.jsxDEV(X,{bold:!0,color:"permission",children:["Press Enter once you've installed the app",B0.ellipsis]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[8]=F;else F=f[8];let y;if(f[9]===Symbol.for("react.memo_cache_sentinel"))y=h.jsxDEV(Q,{marginTop:1,children:h.jsxDEV(X,{dimColor:!0,children:["Having trouble? See manual setup instructions at:"," ",h.jsxDEV(X,{color:"claude",children:J0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[9]=y;else y=f[9];let m;if(f[10]!==H)m=h.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[M,G,L,z,H,Z,F,y]},void 0,!0,void 0,this),f[10]=H,f[11]=m;else m=f[11];return m}var Ff,h;var yf=n(()=>{Wf();H0();s();b0();Ff=w(Y0(),1),h=w(O(),1)});function Cf({onSuccess:W,onCancel:f}){let[q,Y]=S.useState({state:"starting"}),[I]=S.useState(()=>new Rf),[M,G]=S.useState(""),[L,z]=S.useState(0),[H,Z]=S.useState(!1),[F,y]=S.useState(!1),m=S.useRef(new Set),b=S.useRef(void 0),P=L0(),A=Math.max(50,P.columns-Pf.length-4);function _(U){if(q.state!=="error")return;if(U.preventDefault(),U.key==="return"&&q.toRetry)G(""),z(0),Y({state:"about_to_retry",nextState:q.toRetry});else f()}async function T(U,g){try{let[J,d]=U.split("#");if(!J||!d){Y({state:"error",message:"Invalid code. Please make sure the full code was copied",toRetry:{state:"waiting_for_login",url:g}});return}K("tengu_oauth_manual_entry",{}),I.handleManualAuthCodeInput({authorizationCode:J,state:d})}catch(J){W0(J),Y({state:"error",message:J.message,toRetry:{state:"waiting_for_login",url:g}})}}let p=S.useCallback(async()=>{m.current.forEach((U)=>clearTimeout(U)),m.current.clear();try{let U=await I.startOAuthFlow(async(J)=>{Y({state:"waiting_for_login",url:J});let d=setTimeout(Z,3000,!0);m.current.add(d)},{loginWithClaudeAi:!0,inferenceOnly:!0,expiresIn:31536000});Y({state:"processing"}),Bf(U);let g=setTimeout((J,d,B,R)=>{J({state:"success",token:d});let C=setTimeout(B,1000,d);R.current.add(C)},100,Y,U.accessToken,W,m);m.current.add(g)}catch(U){let g=U.message;Y({state:"error",message:g,toRetry:{state:"starting"}}),W0(U),K("tengu_oauth_error",{error:g})}},[I,W]);S.useEffect(()=>{if(q.state==="starting")p()},[q.state,p]),S.useEffect(()=>{if(q.state==="about_to_retry"){let U=setTimeout((g,J,d)=>{J(g.state==="waiting_for_login"),d(g)},500,q.nextState,Z,Y);m.current.add(U)}},[q]),S.useEffect(()=>{if(M==="c"&&q.state==="waiting_for_login"&&H&&!F)cf(q.url).then((U)=>{if(U)process.stdout.write(U);y(!0),clearTimeout(b.current),b.current=setTimeout(y,2000,!1)}),G("")},[M,q,H,F]),S.useEffect(()=>{let U=m.current;return()=>{I.cleanup(),U.forEach((g)=>clearTimeout(g)),U.clear(),clearTimeout(b.current)}},[I]);function D(){switch(q.state){case"starting":return c.jsxDEV(Q,{children:[c.jsxDEV(c0,{},void 0,!1,void 0,this),c.jsxDEV(X,{children:"Starting authentication…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"waiting_for_login":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:[!H&&c.jsxDEV(Q,{children:[c.jsxDEV(c0,{},void 0,!1,void 0,this),c.jsxDEV(X,{children:"Opening browser to sign in with your Claude account…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&c.jsxDEV(Q,{children:[c.jsxDEV(X,{children:Pf},void 0,!1,void 0,this),c.jsxDEV(I0,{value:M,onChange:G,onSubmit:(U)=>T(U,q.url),cursorOffset:L,onChangeCursorOffset:z,columns:A},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);case"processing":return c.jsxDEV(Q,{children:[c.jsxDEV(c0,{},void 0,!1,void 0,this),c.jsxDEV(X,{children:"Processing authentication…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"success":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:[c.jsxDEV(X,{color:"success",children:"✓ Authentication token created successfully!"},void 0,!1,void 0,this),c.jsxDEV(X,{dimColor:!0,children:"Using token for GitHub Actions setup…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"error":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:[c.jsxDEV(X,{color:"error",children:["OAuth error: ",q.message]},void 0,!0,void 0,this),q.toRetry?c.jsxDEV(X,{dimColor:!0,children:"Press Enter to try again, or any other key to cancel"},void 0,!1,void 0,this):c.jsxDEV(X,{dimColor:!0,children:"Press any key to return to API key selection"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);case"about_to_retry":return c.jsxDEV(Q,{flexDirection:"column",gap:1,children:c.jsxDEV(X,{color:"permission",children:"Retrying…"},void 0,!1,void 0,this)},void 0,!1,void 0,this);default:return null}}return c.jsxDEV(Q,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:_,children:[q.state==="starting"&&c.jsxDEV(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[c.jsxDEV(X,{bold:!0,children:"Create Authentication Token"},void 0,!1,void 0,this),c.jsxDEV(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.state!=="success"&&q.state!=="starting"&&q.state!=="processing"&&c.jsxDEV(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[c.jsxDEV(X,{bold:!0,children:"Create Authentication Token"},void 0,!1,void 0,this),c.jsxDEV(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"},void 0,!1,void 0,this)]},"header",!0,void 0,this),q.state==="waiting_for_login"&&H&&c.jsxDEV(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[c.jsxDEV(Q,{paddingX:1,children:[c.jsxDEV(X,{dimColor:!0,children:["Browser didn't open? Use the url below to sign in"," "]},void 0,!0,void 0,this),F?c.jsxDEV(X,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):c.jsxDEV(X,{dimColor:!0,children:c.jsxDEV(M0,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV(m0,{url:q.url,children:c.jsxDEV(X,{dimColor:!0,children:q.url},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},"urlToCopy",!0,void 0,this),c.jsxDEV(Q,{paddingLeft:1,flexDirection:"column",gap:1,children:D()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var S,c,Pf="Paste code here if prompted > ";var Kf=n(()=>{A0();O0();Yq();w0();P0();fq();s();qq();Uf();wf();S=w(z0(),1),c=w(O(),1)});function Af(W){let f=W.trim(),q=f.match(/^(?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(q?.groups?.owner&&q.groups.repo)return`${q.groups.owner}/${q.groups.repo}`.replace(/\.git$/i,"");let Y=f.match(/^(?:https?:\/\/)?(?:www\.)?github\.com\/(?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(Y?.groups?.owner&&Y.groups.repo)return`${Y.groups.owner}/${Y.groups.repo}`.replace(/\.git$/i,"");let I=f.match(/^(?:git@|ssh:\/\/git@)(?:www\.)?github\.com[:/](?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(I?.groups?.owner&&I.groups.repo)return`${I.groups.owner}/${I.groups.repo}`;if(/^[a-z][a-z0-9+.-]*:\/\//i.test(f))return null;try{let M=new URL(f),G=M.hostname.toLowerCase();if(G!=="github.com"&&G!=="www.github.com")return null;let L=M.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(L.length<2)return null;return`${L[0]}/${L[1]}`.replace(/\.git$/i,"")}catch{return null}}var gf=()=>{};function Nf(W){let f=kf.c(21),{secretExists:q,useExistingSecret:Y,secretName:I,skipWorkflow:M}=W,G=M===void 0?!1:M,L;if(f[0]===Symbol.for("react.memo_cache_sentinel"))L=k.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[k.jsxDEV(X,{bold:!0,children:"Install GitHub App"},void 0,!1,void 0,this),k.jsxDEV(X,{dimColor:!0,children:"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[0]=L;else L=f[0];let z;if(f[1]!==G)z=!G&&k.jsxDEV(X,{color:"success",children:"✓ GitHub Actions workflow created!"},void 0,!1,void 0,this),f[1]=G,f[2]=z;else z=f[2];let H;if(f[3]!==q||f[4]!==Y)H=q&&Y&&k.jsxDEV(Q,{marginTop:1,children:k.jsxDEV(X,{color:"success",children:"✓ Using existing ANTHROPIC_API_KEY secret"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[3]=q,f[4]=Y,f[5]=H;else H=f[5];let Z;if(f[6]!==q||f[7]!==I||f[8]!==Y)Z=(!q||!Y)&&k.jsxDEV(Q,{marginTop:1,children:k.jsxDEV(X,{color:"success",children:["✓ API key saved as ",I," secret"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[6]=q,f[7]=I,f[8]=Y,f[9]=Z;else Z=f[9];let F;if(f[10]===Symbol.for("react.memo_cache_sentinel"))F=k.jsxDEV(Q,{marginTop:1,children:k.jsxDEV(X,{children:"Next steps:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[10]=F;else F=f[10];let y;if(f[11]!==G)y=G?k.jsxDEV(k.Fragment,{children:[k.jsxDEV(X,{children:"1. Install the Claude GitHub App if you haven't already"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"2. Your workflow file was kept unchanged"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"3. API key is configured and ready to use"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):k.jsxDEV(k.Fragment,{children:[k.jsxDEV(X,{children:"1. A pre-filled PR page has been created"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"2. Install the Claude GitHub App if you haven't already"},void 0,!1,void 0,this),k.jsxDEV(X,{children:"3. Merge the PR to enable Claude PR assistance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[11]=G,f[12]=y;else y=f[12];let m;if(f[13]!==z||f[14]!==H||f[15]!==Z||f[16]!==y)m=k.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[L,z,H,Z,F,y]},void 0,!0,void 0,this),f[13]=z,f[14]=H,f[15]=Z,f[16]=y,f[17]=m;else m=f[17];let b;if(f[18]===Symbol.for("react.memo_cache_sentinel"))b=k.jsxDEV(Q,{marginLeft:3,children:k.jsxDEV(X,{dimColor:!0,children:"Press any key to exit"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[18]=b;else b=f[18];let P;if(f[19]!==m)P=k.jsxDEV(k.Fragment,{children:[m,b]},void 0,!0,void 0,this),f[19]=m,f[20]=P;else P=f[20];return P}var kf,k;var Of=n(()=>{s();kf=w(Y0(),1),k=w(O(),1)});async function Jq(W,f,q,Y,I,M,G){let L=await e("gh",["api",`repos/${W}/contents/${q}`,"--jq",".sha"]),z=null;if(L.code===0)z=L.stdout.trim();let H=Y;if(I==="CLAUDE_CODE_OAUTH_TOKEN")H=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,"claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}");else if(I!=="ANTHROPIC_API_KEY")H=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,`anthropic_api_key: \${{ secrets.${I} }}`);let Z=Buffer.from(H).toString("base64"),F=["api","--method","PUT",`repos/${W}/contents/${q}`,"-f",`message=${z?`"Update ${M}"`:`"${M}"`}`,"-f",`content=${Z}`,"-f",`branch=${f}`];if(z)F.push("-f",`sha=${z}`);let y=await e("gh",F);if(y.code!==0){if(y.stderr.includes("422")&&y.stderr.includes("sha"))throw K("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...G}),Error(`Failed to create workflow file ${q}: A Claude workflow file already exists in this repository. Please remove it first or update it manually.`);K("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...G});let m=`
136
+
137
+ Need help? Common issues:
138
+ `+`· Permission denied → Run: gh auth refresh -h github.com -s repo,workflow
139
+ `+`· Not authorized → Ensure you have admin access to the repository
140
+ `+"· For manual setup → Visit: https://github.com/anthropics/claude-code-action";throw Error(`Failed to create workflow file ${q}: ${y.stderr}${m}`)}}async function Tf(W,f,q,Y,I=!1,M,G,L){try{K("tengu_setup_github_actions_started",{skip_workflow:I,has_api_key:!!f,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:M.includes("claude"),selected_claude_review_workflow:M.includes("claude-review"),...L});let z=await e("gh",["api",`repos/${W}`,"--jq",".id"]);if(z.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"repo_not_found",exit_code:z.code,...L}),Error(`Failed to access repository ${W}: ${z.stderr}`);let H=await e("gh",["api",`repos/${W}`,"--jq",".default_branch"]);if(H.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"failed_to_get_default_branch",exit_code:H.code,...L}),Error(`Failed to get default branch: ${H.stderr}`);let Z=H.stdout.trim(),F=await e("gh",["api",`repos/${W}/git/ref/heads/${Z}`,"--jq",".object.sha"]);if(F.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"failed_to_get_branch_sha",exit_code:F.code,...L}),Error(`Failed to get branch SHA: ${F.stderr}`);let y=F.stdout.trim(),m=null;if(!I){Y(),m=`add-claude-github-actions-${Date.now()}`;let b=await e("gh",["api","--method","POST",`repos/${W}/git/refs`,"-f",`ref=refs/heads/${m}`,"-f",`sha=${y}`]);if(b.code!==0)throw K("tengu_setup_github_actions_failed",{reason:"failed_to_create_branch",exit_code:b.code,...L}),Error(`Failed to create branch: ${b.stderr}`);Y();let P=[];if(M.includes("claude"))P.push({path:".github/workflows/claude.yml",content:u0,message:"Claude PR Assistant workflow"});if(M.includes("claude-review"))P.push({path:".github/workflows/claude-code-review.yml",content:o0,message:"Claude Code Review workflow"});for(let A of P)await Jq(W,m,A.path,A.content,q,A.message,L)}if(Y(),f){let b=await e("gh",["secret","set",q,"--body",f,"--repo",W]);if(b.code!==0){K("tengu_setup_github_actions_failed",{reason:"failed_to_set_api_key_secret",exit_code:b.code,...L});let P=`
141
+
142
+ Need help? Common issues:
143
+ `+`· Permission denied → Run: gh auth refresh -h github.com -s repo
144
+ `+`· Not authorized → Ensure you have admin access to the repository
145
+ `+"· For manual setup → Visit: https://github.com/anthropics/claude-code-action";throw Error(`Failed to set API key secret: ${b.stderr||"Unknown error"}${P}`)}}if(!I&&m){Y();let b=`https://github.com/${W}/compare/${Z}...${m}?quick_pull=1&title=${encodeURIComponent(V0)}&body=${encodeURIComponent(j0)}`;await R0(b)}K("tengu_setup_github_actions_completed",{skip_workflow:I,has_api_key:!!f,auth_type:G,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:M.includes("claude"),selected_claude_review_workflow:M.includes("claude-review"),...L}),lf((b)=>({...b,githubActionSetupCount:(b.githubActionSetupCount??0)+1}))}catch(z){if(!z||!(z instanceof Error)||!z.message.includes("Failed to"))K("tengu_setup_github_actions_failed",{reason:"unexpected_error",...L});if(z instanceof Error)W0(z);throw z}}var hf=n(()=>{A0();Xq();H0();_f();vf();wf()});function Df(W){let f=pf.c(8),{warnings:q,onContinue:Y}=W,I;if(f[0]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},f[0]=I;else I=f[0];U0("confirm:yes",Y,I);let M;if(f[1]===Symbol.for("react.memo_cache_sentinel"))M=j.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[j.jsxDEV(X,{bold:!0,children:[B0.warning," Setup Warnings"]},void 0,!0,void 0,this),j.jsxDEV(X,{dimColor:!0,children:"We found some potential issues, but you can continue anyway"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[1]=M;else M=f[1];let G;if(f[2]!==q)G=q.map(Qq),f[2]=q,f[3]=G;else G=f[3];let L;if(f[4]===Symbol.for("react.memo_cache_sentinel"))L=j.jsxDEV(Q,{marginTop:1,children:j.jsxDEV(X,{bold:!0,color:"permission",children:"Press Enter to continue anyway, or Ctrl+C to exit and fix issues"},void 0,!1,void 0,this)},void 0,!1,void 0,this),f[4]=L;else L=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=j.jsxDEV(Q,{marginTop:1,children:j.jsxDEV(X,{dimColor:!0,children:["You can also try the manual setup steps if needed:"," ",j.jsxDEV(X,{color:"claude",children:J0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[5]=z;else z=f[5];let H;if(f[6]!==G)H=j.jsxDEV(j.Fragment,{children:j.jsxDEV(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[M,G,L,z]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f[6]=G,f[7]=H;else H=f[7];return H}function Qq(W,f){return j.jsxDEV(Q,{flexDirection:"column",marginBottom:1,children:[j.jsxDEV(X,{color:"warning",bold:!0,children:W.title},void 0,!1,void 0,this),j.jsxDEV(X,{children:W.message},void 0,!1,void 0,this),W.instructions.length>0&&j.jsxDEV(Q,{flexDirection:"column",marginLeft:2,marginTop:1,children:W.instructions.map(Zq)},void 0,!1,void 0,this)]},f,!0,void 0,this)}function Zq(W,f){return j.jsxDEV(X,{dimColor:!0,children:["• ",W]},f,!0,void 0,this)}var pf,j;var Vf=n(()=>{Wf();H0();s();b0();pf=w(Y0(),1),j=w(O(),1)});function zq(W){let[f]=t.useState(()=>of()),[q,Y]=t.useState({...Mq,useExistingKey:!!f,selectedApiKeyOption:f?"existing":k0()?"oauth":"new"});Sf(),t.default.useEffect(()=>{K("tengu_install_github_app_started",{})},[]);let I=t.useCallback(async()=>{let J=[];if((await g0("gh --version",{shell:!0,reject:!1})).exitCode!==0)J.push({title:"GitHub CLI not found",message:"GitHub CLI (gh) does not appear to be installed or accessible.",instructions:["Install GitHub CLI from https://cli.github.com/","macOS: brew install gh","Windows: winget install --id GitHub.cli","Linux: See installation instructions at https://github.com/cli/cli#installation"]});let B=await g0("gh auth status -a",{shell:!0,reject:!1});if(B.exitCode!==0)J.push({title:"GitHub CLI not authenticated",message:"GitHub CLI does not appear to be authenticated.",instructions:["Run: gh auth login","Follow the prompts to authenticate with GitHub","Or set up authentication using environment variables or other methods"]});else{let C=B.stdout.match(/Token scopes:.*$/m);if(C){let v=C[0],N=[];if(!v.includes("repo"))N.push("repo");if(!v.includes("workflow"))N.push("workflow");if(N.length>0){Y((V)=>({...V,step:"error",error:`GitHub CLI is missing required permissions: ${N.join(", ")}.`,errorReason:"Missing required scopes",errorInstructions:[`Your GitHub CLI authentication is missing the "${N.join('" and "')}" ${jf(N.length,"scope")} needed to manage GitHub Actions and secrets.`,"","To fix this, run:"," gh auth refresh -h github.com -s repo,workflow","","This will add the necessary permissions to manage workflows and secrets."]}));return}}}let R=await uf()??"";K("tengu_install_github_app_step_completed",{step:"check-gh"}),Y((C)=>({...C,warnings:J,currentRepo:R,selectedRepoName:R,useCurrentRepo:!!R,step:J.length>0?"warnings":"choose-repo"}))},[]);t.default.useEffect(()=>{if(q.step==="check-gh")I()},[q.step,I]);let M=t.useCallback(async(J,d)=>{Y((B)=>({...B,step:"creating",currentWorkflowInstallStep:0}));try{await Tf(q.selectedRepoName,J,d,()=>{Y((B)=>({...B,currentWorkflowInstallStep:B.currentWorkflowInstallStep+1}))},q.workflowAction==="skip",q.selectedWorkflows,q.authType,{useCurrentRepo:q.useCurrentRepo,workflowExists:q.workflowExists,secretExists:q.secretExists}),K("tengu_install_github_app_step_completed",{step:"creating"}),Y((B)=>({...B,step:"success"}))}catch(B){let R=B instanceof Error?B.message:"Failed to set up GitHub Actions";if(R.includes("workflow file already exists"))K("tengu_install_github_app_error",{reason:"workflow_file_exists"}),Y((C)=>({...C,step:"error",error:"A Claude workflow file already exists in this repository.",errorReason:"Workflow file conflict",errorInstructions:["The file .github/workflows/claude.yml already exists","You can either:"," 1. Delete the existing file and run this command again"," 2. Update the existing file manually using the template from:",` ${J0}`]}));else K("tengu_install_github_app_error",{reason:"setup_github_actions_failed"}),Y((C)=>({...C,step:"error",error:R,errorReason:"GitHub Actions setup failed",errorInstructions:[]}))}},[q.selectedRepoName,q.workflowAction,q.selectedWorkflows,q.useCurrentRepo,q.workflowExists,q.secretExists,q.authType]);async function G(){await R0("https://github.com/apps/claude")}async function L(J){try{let d=await e("gh",["api",`repos/${J}`,"--jq",".permissions.admin"]);if(d.code===0)return{hasAccess:d.stdout.trim()==="true"};if(d.stderr.includes("404")||d.stderr.includes("Not Found"))return{hasAccess:!1,error:"repository_not_found"};return{hasAccess:!1}}catch{return{hasAccess:!1}}}async function z(J){return(await e("gh",["api",`repos/${J}/contents/.github/workflows/claude.yml`,"--jq",".sha"])).code===0}async function H(){let J=await e("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(J.code===0)if(J.stdout.split(`
146
+ `).some((R)=>{return/^ANTHROPIC_API_KEY\s+/.test(R)}))Y((R)=>({...R,secretExists:!0,step:"check-existing-secret"}));else if(f)Y((R)=>({...R,apiKeyOrOAuthToken:f,useExistingKey:!0})),await M(f,q.secretName);else Y((R)=>({...R,step:"api-key"}));else if(f)Y((d)=>({...d,apiKeyOrOAuthToken:f,useExistingKey:!0})),await M(f,q.secretName);else Y((d)=>({...d,step:"api-key"}))}let Z=async()=>{if(q.step==="warnings")K("tengu_install_github_app_step_completed",{step:"warnings"}),Y((J)=>({...J,step:"install-app"})),setTimeout(G,0);else if(q.step==="choose-repo"){let J=q.useCurrentRepo?q.currentRepo:q.selectedRepoName;if(!J.trim())return;let d=[],B=Af(J),R=/^[a-z][a-z0-9+.-]*:\/\//i.test(J)||J.startsWith("www.");if(B)J=B;else if(R)d.push({title:"Invalid GitHub URL format",message:"The repository URL format appears to be invalid.",instructions:["Use format: owner/repo or https://github.com/owner/repo","Example: anthropics/claude-cli"]});if(!J.includes("/"))d.push({title:"Repository format warning",message:'Repository should be in format "owner/repo"',instructions:["Use format: owner/repo","Example: anthropics/claude-cli"]});let C=await L(J);if(C.error==="repository_not_found")d.push({title:"Repository not found",message:`Repository ${J} was not found or you don't have access.`,instructions:[`Check that the repository name is correct: ${J}`,"Ensure you have access to this repository",'For private repositories, make sure your GitHub token has the "repo" scope',"You can add the repo scope with: gh auth refresh -h github.com -s repo,workflow"]});else if(!C.hasAccess)d.push({title:"Admin permissions required",message:`You might need admin permissions on ${J} to set up GitHub Actions.`,instructions:["Repository admins can install GitHub Apps and set secrets","Ask a repository admin to run this command if setup fails","Alternatively, you can use the manual setup instructions"]});let v=await z(J);if(d.length>0){let N=[...q.warnings,...d];Y((V)=>({...V,selectedRepoName:J,workflowExists:v,warnings:N,step:"warnings"}))}else K("tengu_install_github_app_step_completed",{step:"choose-repo"}),Y((N)=>({...N,selectedRepoName:J,workflowExists:v,step:"install-app"})),setTimeout(G,0)}else if(q.step==="install-app")if(K("tengu_install_github_app_step_completed",{step:"install-app"}),q.workflowExists)Y((J)=>({...J,step:"check-existing-workflow"}));else Y((J)=>({...J,step:"select-workflows"}));else if(q.step==="check-existing-workflow")return;else if(q.step==="select-workflows")return;else if(q.step==="check-existing-secret")if(K("tengu_install_github_app_step_completed",{step:"check-existing-secret"}),q.useExistingSecret)await M(null,q.secretName);else await M(q.apiKeyOrOAuthToken,q.secretName);else if(q.step==="api-key"){if(q.selectedApiKeyOption==="oauth")return;let J=q.selectedApiKeyOption==="existing"?f:q.apiKeyOrOAuthToken;if(!J){K("tengu_install_github_app_error",{reason:"api_key_missing"}),Y((B)=>({...B,step:"error",error:"API key is required"}));return}Y((B)=>({...B,apiKeyOrOAuthToken:J,useExistingKey:q.selectedApiKeyOption==="existing"}));let d=await e("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(d.code===0)if(d.stdout.split(`
147
+ `).some((C)=>{return/^ANTHROPIC_API_KEY\s+/.test(C)}))K("tengu_install_github_app_step_completed",{step:"api-key"}),Y((C)=>({...C,secretExists:!0,step:"check-existing-secret"}));else K("tengu_install_github_app_step_completed",{step:"api-key"}),await M(J,q.secretName);else K("tengu_install_github_app_step_completed",{step:"api-key"}),await M(J,q.secretName)}},F=(J)=>{Y((d)=>({...d,selectedRepoName:J}))},y=(J)=>{Y((d)=>({...d,apiKeyOrOAuthToken:J}))},m=(J)=>{Y((d)=>({...d,selectedApiKeyOption:J}))},b=t.useCallback(()=>{K("tengu_install_github_app_step_completed",{step:"api-key"}),Y((J)=>({...J,step:"oauth-flow"}))},[]),P=t.useCallback((J)=>{K("tengu_install_github_app_step_completed",{step:"oauth-flow"}),Y((d)=>({...d,apiKeyOrOAuthToken:J,useExistingKey:!1,secretName:"CLAUDE_CODE_OAUTH_TOKEN",authType:"oauth_token"})),M(J,"CLAUDE_CODE_OAUTH_TOKEN")},[M]),A=t.useCallback(()=>{Y((J)=>({...J,step:"api-key"}))},[]),_=(J)=>{if(J&&!/^[a-zA-Z0-9_]+$/.test(J))return;Y((d)=>({...d,secretName:J}))},T=(J)=>{Y((d)=>({...d,useCurrentRepo:J,selectedRepoName:J?d.currentRepo:""}))},p=(J)=>{Y((d)=>({...d,useExistingKey:J}))},D=(J)=>{Y((d)=>({...d,useExistingSecret:J,secretName:J?"ANTHROPIC_API_KEY":""}))},U=async(J)=>{if(J==="exit"){W.onDone("Installation cancelled by user");return}if(K("tengu_install_github_app_step_completed",{step:"check-existing-workflow"}),Y((d)=>({...d,workflowAction:J})),J==="skip"||J==="update")if(f)await H();else Y((d)=>({...d,step:"api-key"}))};function g(J){if(J.preventDefault(),q.step==="success")K("tengu_install_github_app_completed",{});W.onDone(q.step==="success"?"GitHub Actions setup complete!":q.error?`Couldn't install GitHub App: ${q.error}
148
+ For manual setup instructions, see: ${J0}`:`GitHub App installation failed
149
+ For manual setup instructions, see: ${J0}`)}switch(q.step){case"check-gh":return E.jsxDEV(t0,{},void 0,!1,void 0,this);case"warnings":return E.jsxDEV(Df,{warnings:q.warnings,onContinue:Z},void 0,!1,void 0,this);case"choose-repo":return E.jsxDEV(Xf,{currentRepo:q.currentRepo,useCurrentRepo:q.useCurrentRepo,repoUrl:q.selectedRepoName,onRepoUrlChange:F,onToggleUseCurrentRepo:T,onSubmit:Z},void 0,!1,void 0,this);case"install-app":return E.jsxDEV(mf,{repoUrl:q.selectedRepoName,onSubmit:Z},void 0,!1,void 0,this);case"check-existing-workflow":return E.jsxDEV(Hf,{repoName:q.selectedRepoName,onSelectAction:U},void 0,!1,void 0,this);case"check-existing-secret":return E.jsxDEV(x0,{useExistingSecret:q.useExistingSecret,secretName:q.secretName,onToggleUseExistingSecret:D,onSecretNameChange:_,onSubmit:Z},void 0,!1,void 0,this);case"api-key":return E.jsxDEV(E0,{existingApiKey:f,useExistingKey:q.useExistingKey,apiKeyOrOAuthToken:q.apiKeyOrOAuthToken,onApiKeyChange:y,onToggleUseExistingKey:p,onSubmit:Z,onCreateOAuthToken:k0()?b:void 0,selectedOption:q.selectedApiKeyOption,onSelectOption:m},void 0,!1,void 0,this);case"creating":return E.jsxDEV(Zf,{currentWorkflowInstallStep:q.currentWorkflowInstallStep,secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip",selectedWorkflows:q.selectedWorkflows},void 0,!1,void 0,this);case"success":return E.jsxDEV(Q,{tabIndex:0,autoFocus:!0,onKeyDown:g,children:E.jsxDEV(Nf,{secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip"},void 0,!1,void 0,this)},void 0,!1,void 0,this);case"error":return E.jsxDEV(Q,{tabIndex:0,autoFocus:!0,onKeyDown:g,children:E.jsxDEV(df,{error:q.error,errorReason:q.errorReason,errorInstructions:q.errorInstructions},void 0,!1,void 0,this)},void 0,!1,void 0,this);case"select-workflows":return E.jsxDEV(p0,{defaultSelections:q.selectedWorkflows,onSubmit:(J)=>{if(K("tengu_install_github_app_step_completed",{step:"select-workflows"}),Y((d)=>({...d,selectedWorkflows:J})),f)H();else Y((d)=>({...d,step:"api-key"}))}},void 0,!1,void 0,this);case"oauth-flow":return E.jsxDEV(Cf,{onSuccess:P,onCancel:A},void 0,!1,void 0,this)}}async function XX(W){return E.jsxDEV(zq,{onDone:W},void 0,!1,void 0,this)}var t,E,Mq;var Hq=n(()=>{Lq();A0();D0();H0();Gq();s();Uf();_f();vf();Iq();dq();a0();s0();qf();Jf();Lf();Gf();bf();yf();Kf();gf();Of();hf();Vf();t=w(z0(),1),E=w(O(),1),Mq={step:"check-gh",selectedRepoName:"",currentRepo:"",useCurrentRepo:!1,apiKeyOrOAuthToken:"",useExistingKey:!0,currentWorkflowInstallStep:0,warnings:[],secretExists:!1,secretName:"ANTHROPIC_API_KEY",useExistingSecret:!0,workflowExists:!1,selectedWorkflows:["claude","claude-review"],selectedApiKeyOption:"new",authType:"api_key"}});Hq();export{XX as call};
@@ -0,0 +1 @@
1
+ import{OX as z,PX as I}from"./cli-0.1.11-16086k9e.mjs";import{Vba as H,zba as q}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as m,ega as F}from"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Rna as D}from"./cli-0.1.11-yrfxpjhr.mjs";async function T(){if(m("tengu_install_slack_app_clicked",{}),q((h)=>({...h,slackAppInstallCount:(h.slackAppInstallCount??0)+1})),await z(k))return{type:"text",value:"Opening Slack app installation page in browser…"};else return{type:"text",value:`Couldn't open browser. Visit: ${k}`}}var k="https://slack.com/marketplace/A08SF47R6P4-claude";var J=D(()=>{F();I();H()});J();export{T as call};
@@ -0,0 +1,12 @@
1
+ import{CY as nw,fY as Kw,jY as Cw,lY as Ww,mY as yw,oY as Yw,qY as u}from"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import{P4 as zw,R4 as Dw,V4 as Gw,d5 as Jw,i5 as uw}from"./cli-0.1.11-qbcfg80y.mjs";import{C5 as hw,j5 as Ow,k5 as h,m5 as fw,n5 as ww,r5 as Lw,t5 as $w,u5 as Qw}from"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{F7 as M,Haa as e,K7 as jw,P8 as t,Q8 as o,Qaa as Rw,R8 as bw}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import{Sfa as r,Xfa as Mw}from"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as p,Jga as Sw,Lga as T,Pga as Aw,aha as s,bha as Y,eha as d,hga as L,jga as Uw}from"./cli-0.1.11-vq5fvf9m.mjs";import{iha as i,sha as Hw}from"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import{Hka as I,Ika as n,Kka as E,Lka as c,Mka as f,Nka as N,Oka as m,Vma as Iw}from"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as Vw,Rna as A,Sna as q}from"./cli-0.1.11-yrfxpjhr.mjs";class b{constructor(){}async export($,w){w({code:0})}async shutdown(){}async forceFlush(){}selectAggregationTemporality(){return 0}}var g=()=>{};class R{error($,...w){M(Error($)),Y(`[3P telemetry] OTEL diag error: ${$}`,{level:"error"})}warn($,...w){M(Error($)),Y(`[3P telemetry] OTEL diag warn: ${$}`,{level:"warn"})}info($,...w){return}debug($,...w){return}verbose($,...w){return}}var P=A(()=>{d();jw()});import{DiagLogLevel as Ew,diag as mw,trace as Zw}from"@opentelemetry/api";import{logs as H}from"@opentelemetry/api-logs";import{envDetector as Tw,hostDetector as vw,osDetector as lw,resourceFromAttributes as V}from"@opentelemetry/resources";import{BatchLogRecordProcessor as _w,ConsoleLogRecordExporter as aw,LoggerProvider as qw}from"@opentelemetry/sdk-logs";import{ConsoleMetricExporter as gw,MeterProvider as x,PeriodicExportingMetricReader as Bw}from"@opentelemetry/sdk-metrics";import{BasicTracerProvider as Fw,BatchSpanProcessor as kw,ConsoleSpanExporter as dw}from"@opentelemetry/sdk-trace-base";import{ATTR_SERVICE_NAME as Pw,ATTR_SERVICE_VERSION as xw,SEMRESATTRS_HOST_ARCH as O}from"@opentelemetry/semantic-conventions";function y($,w){return new Promise((D,Q)=>{setTimeout((z,J)=>z(new v(J)),$,Q,w).unref()})}function iw(){if(!process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE)process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE="delta"}function l($){return($||"").trim().split(",").filter(Boolean).map((w)=>w.trim()).filter((w)=>w!=="none")}async function pw(){let $=l(process.env.OTEL_METRICS_EXPORTER),w=parseInt(process.env.OTEL_METRIC_EXPORT_INTERVAL||cw.toString()),D=[];for(let Q of $)if(Q==="console"){let z=new gw,J=z.export.bind(z);z.export=(G,k)=>{if(G.resource&&G.resource.attributes)Y(`
2
+ === Resource Attributes ===`),Y(T(G.resource.attributes)),Y(`===========================
3
+ `);return J(G,k)},D.push(z)}else if(Q==="otlp"){let z=process.env.OTEL_EXPORTER_OTLP_METRICS_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),J=a();switch(z){case"grpc":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-grpc");D.push(new G);break}case"http/json":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-http");D.push(new G(J));break}case"http/protobuf":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-proto");D.push(new G(J));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${z}`)}}else if(Q==="prometheus"){let{PrometheusExporter:z}=await import("@opentelemetry/exporter-prometheus");D.push(new z)}else throw Error(`Unknown exporter type set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${Q}`);return D.map((Q)=>{if("export"in Q)return new Bw({exporter:Q,exportIntervalMillis:w});return Q})}async function sw(){let $=l(process.env.OTEL_LOGS_EXPORTER),w=process.env.OTEL_EXPORTER_OTLP_LOGS_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),D=process.env.OTEL_EXPORTER_OTLP_ENDPOINT;Y(`[3P telemetry] getOtlpLogExporters: types=${T($)}, protocol=${w}, endpoint=${D}`);let Q=[];for(let z of $)if(z==="console")Q.push(new aw);else if(z==="otlp"){let J=a();switch(w){case"grpc":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-grpc");Q.push(new G);break}case"http/json":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-http");Q.push(new G(J));break}case"http/protobuf":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-proto");Q.push(new G(J));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_LOGS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${w}`)}}else throw Error(`Unknown exporter type set in OTEL_LOGS_EXPORTER env var: ${z}`);return Q}async function tw(){let $=l(process.env.OTEL_TRACES_EXPORTER),w=[];for(let D of $)if(D==="console")w.push(new dw);else if(D==="otlp"){let Q=process.env.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),z=a();switch(Q){case"grpc":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-grpc");w.push(new J);break}case"http/json":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-http");w.push(new J(z));break}case"http/protobuf":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-proto");w.push(new J(z));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_TRACES_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${Q}`)}}else throw Error(`Unknown exporter type set in OTEL_TRACES_EXPORTER env var: ${D}`);return w}function ow(){return i(process.env.CLAUDE_CODE_ENABLE_TELEMETRY)}function rw(){let $=new b;return new Bw({exporter:$,exportIntervalMillis:300000})}function ew(){let $=Gw(),w=zw()&&($==="enterprise"||$==="team");return Dw()||w}async function w0($){let w=process.env.BETA_TRACING_ENDPOINT;if(!w)return;let[{OTLPTraceExporter:D},{OTLPLogExporter:Q}]=await Promise.all([import("@opentelemetry/exporter-trace-otlp-http"),import("@opentelemetry/exporter-logs-otlp-http")]),z={url:`${w}/v1/traces`},J={url:`${w}/v1/logs`},G=new D(z),k=new kw(G,{scheduledDelayMillis:Xw}),_=new Fw({resource:$,spanProcessors:[k]});Zw.setGlobalTracerProvider(_),m(_);let j=new Q(J),F=new qw({resource:$,processors:[new _w(j,{scheduledDelayMillis:Nw})]});H.setGlobalLoggerProvider(F),n(F);let X=H.getLogger("com.anthropic.claude_code.events","99.0.0");E(X),process.on("beforeExit",async()=>{await F?.forceFlush(),await _?.forceFlush()}),process.on("exit",()=>{F?.forceFlush(),_?.forceFlush()})}async function C0(){if(r("telemetry_init_start"),iw(),s())for(let K of["OTEL_METRICS_EXPORTER","OTEL_LOGS_EXPORTER","OTEL_TRACES_EXPORTER"]){let W=process.env[K];if(W?.includes("console"))process.env[K]=W.split(",").map((Z)=>Z.trim()).filter((Z)=>Z!=="console").join(",")}mw.setLogger(new R,Ew.ERROR),Kw();let $=[],w=ow();if(Y(`[3P telemetry] isTelemetryEnabled=${w} (CLAUDE_CODE_ENABLE_TELEMETRY=${process.env.CLAUDE_CODE_ENABLE_TELEMETRY})`),w)$.push(...await pw());if(ew())$.push(rw());let D=t(),Q={[Pw]:"claude-code",[xw]:"99.0.0"};if(D==="wsl"){let K=o();if(K)Q["wsl.version"]=K}let z=V(Q),J=V(lw.detect().attributes||{}),G=vw.detect(),k=G.attributes?.[O]?{[O]:G.attributes[O]}:{},_=V(k),j=V(Tw.detect().attributes||{}),F=z.merge(J).merge(_).merge(j);if(Ww()){w0(F).catch((Z)=>Y(`Beta tracing init failed: ${Z}`,{level:"error"}));let K=new x({resource:F,views:[],readers:$});return f(K),L(async()=>{let Z=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let B=I(),U=N(),S=[K.shutdown()];if(B)S.push(B.forceFlush().then(()=>B.shutdown()));if(U)S.push(U.forceFlush().then(()=>U.shutdown()));await Promise.race([Promise.all(S),y(Z,"OpenTelemetry shutdown timeout")])}catch{}}),K.getMeter("com.anthropic.claude_code","99.0.0")}let X=new x({resource:F,views:[],readers:$});if(f(X),w){let K=await sw();if(Y(`[3P telemetry] Created ${K.length} log exporter(s)`),K.length>0){let W=new qw({resource:F,processors:K.map((B)=>new _w(B,{scheduledDelayMillis:parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL||Nw.toString())}))});H.setGlobalLoggerProvider(W),n(W);let Z=H.getLogger("com.anthropic.claude_code.events","99.0.0");E(Z),Y("[3P telemetry] Event logger set successfully"),process.on("beforeExit",async()=>{await W?.forceFlush(),await N()?.forceFlush()}),process.on("exit",()=>{W?.forceFlush(),N()?.forceFlush()})}}if(w&&Yw()){let K=await tw();if(K.length>0){let W=K.map((B)=>new kw(B,{scheduledDelayMillis:parseInt(process.env.OTEL_TRACES_EXPORT_INTERVAL||Xw.toString())})),Z=new Fw({resource:F,spanProcessors:W});Zw.setGlobalTracerProvider(Z),m(Z)}}return L(async()=>{let K=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let W=[X.shutdown()],Z=I();if(Z)W.push(Z.shutdown());let B=N();if(B)W.push(B.shutdown());await Promise.race([Promise.all(W),y(K,"OpenTelemetry shutdown timeout")])}catch(W){if(W instanceof Error&&W.message.includes("timeout"))Y(`
4
+ OpenTelemetry telemetry flush timed out after ${K}ms
5
+
6
+ To resolve this issue, you can:
7
+ 1. Increase the timeout by setting CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS env var (e.g., 5000 for 5 seconds)
8
+ 2. Check if your OpenTelemetry backend is experiencing scalability issues
9
+ 3. Disable OpenTelemetry by unsetting CLAUDE_CODE_ENABLE_TELEMETRY env var
10
+
11
+ Current timeout: ${K}ms
12
+ `,{level:"error"});throw W}}),X.getMeter("com.anthropic.claude_code","99.0.0")}async function y0(){let $=c();if(!$)return;let w=parseInt(process.env.CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS||"5000");try{let D=[$.forceFlush()],Q=I();if(Q)D.push(Q.forceFlush());let z=N();if(z)D.push(z.forceFlush());await Promise.race([Promise.all(D),y(w,"OpenTelemetry flush timeout")]),Y("Telemetry flushed successfully")}catch(D){if(D instanceof v)Y(`Telemetry flush timed out after ${w}ms. Some metrics may not be exported.`,{level:"warn"});else Y(`Telemetry flush failed: ${p(D)}`,{level:"error"})}}function $0(){let $={},w=process.env.OTEL_EXPORTER_OTLP_HEADERS;if(w)for(let D of w.split(",")){let[Q,...z]=D.split("=");if(Q&&z.length>0)$[Q.trim()]=z.join("=").trim()}return $}function a(){let $=$w(),w=ww(),D=e(),Q={},z=$0();if(D?.otelHeadersHelper)Q.headers=async()=>{let _=Jw();return{...z,..._}};else if(Object.keys(z).length>0)Q.headers=async()=>z;let J=process.env.OTEL_EXPORTER_OTLP_ENDPOINT;if(!$||J&&Qw(J)){let _=h();if(w||_)Q.httpAgentOptions={...w,..._&&{ca:_}};return Q}let G=h(),k=(_)=>{return w||G?new C.HttpsProxyAgent($,{...w&&{cert:w.cert,key:w.key,passphrase:w.passphrase},...G&&{ca:G}}):new C.HttpsProxyAgent($)};return Q.httpAgentOptions=k,Q}var C,cw=60000,Nw=5000,Xw=5000,v;var Q0=A(()=>{Iw();uw();bw();fw();Uw();d();Hw();Sw();Lw();hw();Rw();Aw();Mw();yw();g();P();Cw();nw();C=Vw(Ow(),1);v=class v extends Error{}});Q0();export{l as parseExporterTypes,ow as isTelemetryEnabled,C0 as initializeTelemetry,y0 as flushTelemetry,iw as bootstrapTelemetry};
@@ -0,0 +1 @@
1
+ import{s as a,t as b,u as c,v as d,w as e,x as f,y as g,z as h}from"./cli-0.1.11-1bxwxewq.mjs";import"./cli-0.1.11-nhwmv5g6.mjs";import"./cli-0.1.11-x3q39kf7.mjs";import"./cli-0.1.11-t07hba0z.mjs";import"./cli-0.1.11-fx6ztxrs.mjs";import"./cli-0.1.11-3f5dv6mt.mjs";import"./cli-0.1.11-yd6f29v2.mjs";import"./cli-0.1.11-fptq9w4t.mjs";import"./cli-0.1.11-7tybqg56.mjs";import"./cli-0.1.11-tyh8gms9.mjs";import"./cli-0.1.11-chnrb9xx.mjs";import"./cli-0.1.11-z62s8qx1.mjs";import"./cli-0.1.11-bbx2h4x9.mjs";import"./cli-0.1.11-3tqzgd9f.mjs";import"./cli-0.1.11-cw0ss3jw.mjs";import"./cli-0.1.11-21epc92q.mjs";import"./cli-0.1.11-6vqzqsdj.mjs";import"./cli-0.1.11-yvnhbsfn.mjs";import"./cli-0.1.11-yhk2y3c0.mjs";import"./cli-0.1.11-vzet5m4y.mjs";import"./cli-0.1.11-rmyvg4yw.mjs";import"./cli-0.1.11-cezypfbt.mjs";import"./cli-0.1.11-bwn9ehxv.mjs";import"./cli-0.1.11-n24p2y0p.mjs";import"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-zfnmx1ny.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";export{g as showSetupScreens,e as showSetupDialog,b as showDialog,f as renderAndRun,h as getRenderContext,d as exitWithMessage,c as exitWithError,a as completeOnboarding};
@@ -0,0 +1,2 @@
1
+ import{ef as O,gf as D}from"./cli-0.1.11-anvzywg4.mjs";import{Aj as Z,Dj as Q,Ej as v,Fj as A,Gj as L,Jj as z,yj as Y,zj as _}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import{Ega as U,Jga as x,Lga as X,Pga as T}from"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Rna as W}from"./cli-0.1.11-yrfxpjhr.mjs";function w(q){let J=new Set(Z.map((H)=>Q(H.key)));return q.map((H)=>{let M={};for(let[V,R]of Object.entries(H.bindings))if(!J.has(Q(V)))M[V]=R;return{context:H.context,bindings:M}}).filter((H)=>Object.keys(H.bindings).length>0)}function $(){let J={$schema:"https://www.schemastore.org/claude-code-keybindings.json",$docs:"https://code.claude.com/docs/en/keybindings",bindings:w(Y)};return X(J,null,2)+`
2
+ `}var G=W(()=>{T();_();v()});import{mkdir as C,writeFile as I}from"fs/promises";import{dirname as S}from"path";async function E(){if(!A())return{type:"text",value:"Keybinding customization is not enabled. This feature is currently in preview."};let q=L(),J=!1;await C(S(q),{recursive:!0});try{await I(q,$(),{encoding:"utf-8",flag:"wx"})}catch(M){if(U(M)==="EEXIST")J=!0;else throw M}let H=await O(q);if(H.error)return{type:"text",value:`${J?"Opened":"Created"} ${q}. Could not open in editor: ${H.error}`};return{type:"text",value:J?`Opened ${q} in your editor.`:`Created ${q} with template. Opened in your editor.`}}var j=W(()=>{z();G();x();D()});j();export{E as call};
@@ -0,0 +1,2 @@
1
+ import{E5 as B,F5 as _}from"./cli-0.1.11-s6yfjcm5.mjs";import{Cba as Q,Vba as Z,zba as J}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Rna as U}from"./cli-0.1.11-yrfxpjhr.mjs";function V(){return D={id:`arc_${Date.now()}`,goals:[],decisions:[],milestones:[],knowledgeGraph:{entities:{},relations:[]},currentPhase:"init",startTime:Date.now(),lastUpdateTime:Date.now()},D}function G(){if(!D)return V();return D}function X(){let l=G();if(!l||Object.keys(l.knowledgeGraph.entities).length===0)return"";let C="\\nKnowledge Graph:\\n";for(let w of Object.values(l.knowledgeGraph.entities)){C+=`- [${w.type}] ${w.name}`;let b=Object.entries(w.attributes);if(b.length>0)C+=` (${b.map(([f,$])=>`${f}: ${$}`).join(", ")})`;C+="\\n"}for(let w of l.knowledgeGraph.relations){let b=l.knowledgeGraph.entities[w.sourceId]?.name,f=l.knowledgeGraph.entities[w.targetId]?.name;if(b&&f)C+=`- ${b} --(${w.type})--> ${f}\\n`}return C}function N(){let l=G();if(!l)return"No conversation arc";let C=l.goals.filter((f)=>f.status==="active"||f.status==="pending"),w=l.goals.filter((f)=>f.status==="completed"),b=`Phase: ${l.currentPhase}\\n`;if(b+=`Goals: ${w.length}/${l.goals.length} completed\\n`,C.length>0)b+=`Active: ${C[0].description.slice(0,50)}...\\n`;if(l.decisions.length>0)b+=`Decisions: ${l.decisions.length}\\n`;if(l.milestones.length>0)b+=`Latest milestone: ${l.milestones[l.milestones.length-1].description.slice(0,40)}`;return b+=X(),b}function q(){D=null}function x(){let l=G();if(!l)return null;return{phase:l.currentPhase,goalCount:l.goals.length,completedGoals:l.goals.filter((C)=>C.status==="completed").length,decisionCount:l.decisions.length,milestoneCount:l.milestones.length,durationMs:l.lastUpdateTime-l.startTime}}var D=null;var H=()=>{};var E=async(l,C)=>{let b=(l?String(l):"").trim().toLowerCase().split(/\s+/).filter(Boolean),f=b[0];if(!f||f==="status"){let $=Q(),L=x(),j=G(),S=Object.keys(j?.knowledgeGraph.entities||{}).length,T=$.knowledgeGraphEnabled!==!1?B.green("ENABLED"):B.red("DISABLED"),K=`${B.bold("Knowledge Graph Engine")}: ${T}
2
+ `;if(L)K+=`• Stats: ${L.goalCount} goals, ${L.milestoneCount} milestones, ${S} technical facts learned`;return{type:"text",value:K}}if(f==="enable"){let $=b[1],L=$==="yes"||$==="true";if(!L&&!($==="no"||$==="false"))return{type:"text",value:"Usage: /knowledge enable <yes|no>"};return J((S)=>({...S,knowledgeGraphEnabled:L})),{type:"text",value:`✨ Knowledge Graph engine ${L?B.green("enabled"):B.red("disabled")}.`}}if(f==="clear")return q(),{type:"text",value:"\uD83D\uDDD1️ Knowledge graph memory has been cleared for this session."};if(f==="list")return{type:"text",value:N()};return{type:"text",value:`Unknown subcommand: ${f}. Available: enable, clear, status, list`}};var z=U(()=>{H();Z();_()});z();export{E as call};
@@ -0,0 +1 @@
1
+ import{Kl as a,Ll as b,Ml as c,Nl as d,Ol as e,Pl as f,Ql as g,Rl as h,Sl as i,Tl as j,Ul as k,Wl as l}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";l();export{j as parseAgentsFromJson,k as parseAgentFromMarkdown,i as parseAgentFromJson,c as isPluginAgent,b as isCustomAgent,a as isBuiltInAgent,e as hasRequiredMcpServers,g as getAgentDefinitionsWithOverrides,d as getActiveAgentsFromList,f as filterAgentsByMcpRequirements,h as clearAgentDefinitionsCache};
@@ -0,0 +1 @@
1
+ import{$y as d,Yy as a,Zy as b,_y as c,az as e,bz as f,cz as g}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";g();export{f as setupPluginHookHotReload,d as resetHotReloadState,c as pruneRemovedPluginHooks,a as loadPluginHooks,e as getPluginAffectingSettingsSnapshot,b as clearPluginHookCache};
@@ -0,0 +1 @@
1
+ import{Jv as a,Kv as b,Lv as c,Mv as d}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";d();export{a as performLogout,b as clearAuthRelatedCaches,c as call};
@@ -0,0 +1 @@
1
+ import{Lz as C,Mz as r,Nz as Nq,Oz as $q,Pz as Qq,Tz as Wq,Vz as hq,ov as Jq,qv as Cq}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import{DP as G,EP as n,HP as f,IP as o,LP as t,MP as Lq}from"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import{VS as l,WS as Oq}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as L,QU as Z,SU as N,nT as a,vV as i}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import{qX as P}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as S}from"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{Eaa as w,L7 as K,M7 as Iq,Qaa as x,Y$ as u,eaa as Pq}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import{fha as qq,sha as fq}from"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as M,Rna as R}from"./cli-0.1.11-yrfxpjhr.mjs";function Tq(q){switch(q){case"✓ detected":return"detected";case"✗ missing":return"missing";case"⏳ installing":return"installing";case"⊘ disabled":return"disabled"}}function yq(q,W){switch(q){case"✓ detected":return{icon:L("success",W)(K.tick),label:"detected"};case"✗ missing":return{icon:L("error",W)(K.cross),label:"missing"};case"⏳ installing":return{icon:L("warning",W)(K.triangleUpOutline),label:"installing"};case"⊘ disabled":return{icon:L("inactive",W)(K.radioOff),label:"disabled"}}}function wq(q){if(q.status!=="✗ missing")return null;if(q.installer==="manual (SDK)")return q.name==="dart"?"install via Dart SDK":"install manually";return`install via ${q.installer}`}function Rq(q){let W={detected:[],missing:[],installing:[],disabled:[]};for(let z of q)W[Tq(z.status)].push(z);for(let z of m)W[z].sort((Y,A)=>Y.name.localeCompare(A.name));return W}function s({rows:q,onSelectServer:W,onComplete:z}){let[Y]=a(),[A,U]=B.useState(0),[F,H]=B.useState(()=>C()),I=Rq(q),_=[{type:"master"}];for(let Q of m)for(let $ of I[Q])_.push({type:"server",server:$});let k=B.useRef(_);k.current=_;let y=B.useRef(A);y.current=A;let D=B.useRef(F);D.current=F;let g=()=>{let Q=!D.current;H(Q),w("userSettings",{lsp:{enabled:Q?void 0:!1}})};l({"confirm:previous":()=>{let Q=k.current.length;U(($)=>$===0?Q-1:$-1)},"confirm:next":()=>{let Q=k.current.length;U(($)=>$===Q-1?0:$+1)},"confirm:toggle":()=>{if(k.current[y.current]?.type==="master")g()},"confirm:yes":()=>{let Q=k.current[y.current];if(!Q)return;if(Q.type==="master"){g();return}W(Q.server)}},{context:"Confirmation"});let c=q.length,_q=I.detected.length,Mq=I.missing.length,j=I.installing.length,p=I.disabled.length,h=[`${c} ${u(c,"server")}`,`${_q} detected`,`${Mq} missing`];if(j>0)h.push(`${j} installing`);if(p>0)h.push(`${p} disabled`);let Uq=h.join(" · "),E=()=>{let $=A===0,O=F?L("success",Y)(K.tick):L("inactive",Y)(K.radioOff),b=F?"enabled":"disabled";return J.jsxDEV(Z,{flexDirection:"column",marginBottom:1,children:[J.jsxDEV(Z,{paddingLeft:2,children:J.jsxDEV(N,{bold:!0,children:"Global"},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Z,{children:[J.jsxDEV(N,{color:$?"suggestion":void 0,children:$?`${K.pointer} `:" "},void 0,!1,void 0,this),J.jsxDEV(N,{color:$?"suggestion":void 0,children:"LSP"},void 0,!1,void 0,this),J.jsxDEV(N,{dimColor:!$,children:[" · ",O," "]},void 0,!0,void 0,this),J.jsxDEV(N,{dimColor:!$,children:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!F&&J.jsxDEV(Z,{paddingLeft:2,marginTop:1,children:J.jsxDEV(N,{color:"warning",children:"LSP is disabled. No servers connect, the LSP tool is hidden, and diagnostics are not injected."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},kq=(Q)=>{let O=_.findIndex((v)=>v.type==="server"&&v.server===Q)===A,{icon:b,label:Hq}=yq(Q.status,Y),d=wq(Q);return J.jsxDEV(Z,{children:[J.jsxDEV(N,{color:O?"suggestion":void 0,children:O?`${K.pointer} `:" "},void 0,!1,void 0,this),J.jsxDEV(N,{color:O?"suggestion":void 0,children:Q.name},void 0,!1,void 0,this),J.jsxDEV(N,{dimColor:!O,children:[" · ",b," "]},void 0,!0,void 0,this),J.jsxDEV(N,{dimColor:!O,children:Hq},void 0,!1,void 0,this),d&&J.jsxDEV(N,{dimColor:!0,children:[" · ",d]},void 0,!0,void 0,this)]},Q.name,!0,void 0,this)},Kq=(Q)=>{let $=I[Q];if($.length===0)return null;return J.jsxDEV(Z,{flexDirection:"column",marginBottom:1,children:[J.jsxDEV(Z,{paddingLeft:2,children:[J.jsxDEV(N,{bold:!0,children:Bq[Q]},void 0,!1,void 0,this),J.jsxDEV(N,{dimColor:!0,children:[" (",$.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.map(kq)]},Q,!0,void 0,this)},Gq=q.length===0?J.jsxDEV(Z,{flexDirection:"column",children:[E(),J.jsxDEV(N,{dimColor:!0,children:"Loading..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):J.jsxDEV(Z,{flexDirection:"column",children:[E(),m.map(Kq)]},void 0,!0,void 0,this);return J.jsxDEV(Z,{flexDirection:"column",children:[J.jsxDEV(t,{title:"LSP servers",subtitle:Uq,onCancel:()=>z(),hideInputGuide:!0,children:Gq},void 0,!1,void 0,this),J.jsxDEV(Z,{paddingX:1,children:J.jsxDEV(N,{dimColor:!0,italic:!0,children:J.jsxDEV(f,{children:[J.jsxDEV(G,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),J.jsxDEV(G,{shortcut:"Space",action:"toggle LSP"},void 0,!1,void 0,this),J.jsxDEV(G,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),J.jsxDEV(G,{shortcut:"Esc",action:"close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var B,J,m,Bq;var e=R(()=>{Iq();i();Oq();r();x();Pq();o();Lq();n();B=M(S(),1),J=M(P(),1),m=["detected","missing","installing","disabled"],Bq={detected:"Detected",missing:"Missing",installing:"Installing",disabled:"Disabled"}});import{rm as bq}from"node:fs/promises";import{join as mq}from"node:path";function Sq(q){let W=Math.floor(q/5),z=20-W;return`[${"█".repeat(W)}${"░".repeat(z)}] ${q}%`}function Yq({server:q,onCancel:W,onComplete:z}){let[Y,A]=Xq.useState(null),U=q.installer!=="manual (SDK)"&&q.installer!=="—",F=C(),H=[];if(U&&!q.found&&F)H.push({label:"Install",value:"install"});if(U&&q.managed)H.push({label:"Uninstall",value:"uninstall"});if(!q.disabled)H.push({label:"Disable",value:"disable"});else H.push({label:"Enable",value:"enable"});H.push({label:"Back",value:"back"});let I=async(_)=>{if(_==="back"){W();return}if(_==="install"){if(A({phase:"download",pct:0}),await Nq(q.name,(y)=>A(y)))z(`✓ ${q.name} installed`);else z(`✗ failed to install ${q.name}`);return}if(_==="uninstall"){let k=mq(qq(),"lsp",q.name);await bq(k,{recursive:!0,force:!0}),Wq(),W();return}if(_==="disable"){w("userSettings",{lsp:{[q.name]:{disabled:!0}}}),W();return}if(_==="enable"){w("userSettings",{lsp:{[q.name]:{disabled:void 0}}}),W();return}};if(Y!==null){let _=Y.phase==="download"?Y.pct:Y.phase==="extract"?99:Y.phase==="done"?100:0,k=Y.phase==="download"?`Downloading ${q.name}...`:Y.phase==="extract"?`Extracting ${q.name}...`:Y.phase==="done"?`Installed ${q.name}`:`Failed to install ${q.name}`;return X.jsxDEV(Z,{flexDirection:"column",paddingX:1,children:[X.jsxDEV(N,{children:[Y.phase==="failed"?"Failed to install ":"Installing ",X.jsxDEV(N,{bold:!0,children:q.name},void 0,!1,void 0,this),Y.phase==="failed"?"":"..."]},void 0,!0,void 0,this),Y.phase!=="failed"&&X.jsxDEV(N,{color:"yellow",children:Sq(_)},void 0,!1,void 0,this),X.jsxDEV(N,{dimColor:!0,children:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return X.jsxDEV(Z,{flexDirection:"column",children:[X.jsxDEV(Z,{flexDirection:"column",paddingX:1,borderStyle:"round",children:[X.jsxDEV(Z,{marginBottom:1,children:[X.jsxDEV(N,{bold:!0,children:q.name},void 0,!1,void 0,this),X.jsxDEV(N,{dimColor:!0,children:[" ",q.status," ",q.installer!=="—"?`installer: ${q.installer}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!F&&X.jsxDEV(Z,{marginBottom:1,children:X.jsxDEV(N,{color:"yellow",children:"LSP is globally disabled. Enable LSP from the dashboard to install servers."},void 0,!1,void 0,this)},void 0,!1,void 0,this),X.jsxDEV(Jq,{options:H,onChange:I,onCancel:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.jsxDEV(Z,{marginTop:1,children:X.jsxDEV(N,{dimColor:!0,italic:!0,children:X.jsxDEV(f,{children:[X.jsxDEV(G,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),X.jsxDEV(G,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),X.jsxDEV(G,{shortcut:"Esc",action:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Xq,X;var Zq=R(()=>{i();Qq();hq();r();x();Cq();o();n();fq();Xq=M(S(),1),X=M(P(),1)});function zq({onComplete:q}){let[W,z]=T.useState({type:"list"}),[Y,A]=T.useState([]),U=T.useCallback(()=>{$q().then(A).catch(()=>A([]))},[]);if(T.useEffect(()=>{U()},[U]),W.type==="server-menu")return V.jsxDEV(Yq,{server:W.server,onCancel:()=>{U(),z({type:"list"})},onComplete:(F)=>{U(),q(F)}},void 0,!1,void 0,this);return V.jsxDEV(s,{rows:Y,onSelectServer:(F)=>z({type:"server-menu",server:F}),onComplete:q},void 0,!1,void 0,this)}var T,V;var Aq=R(()=>{Qq();e();Zq();T=M(S(),1),V=M(P(),1)});async function $J(q,W,z){return Fq.jsxDEV(zq,{onComplete:q},void 0,!1,void 0,this)}var Fq;var Vq=R(()=>{Aq();Fq=M(P(),1)});Vq();export{$J as call};
@@ -0,0 +1 @@
1
+ import{A as a,B as b}from"./cli-0.1.11-1bxwxewq.mjs";import"./cli-0.1.11-nhwmv5g6.mjs";import"./cli-0.1.11-x3q39kf7.mjs";import"./cli-0.1.11-t07hba0z.mjs";import"./cli-0.1.11-fx6ztxrs.mjs";import"./cli-0.1.11-3f5dv6mt.mjs";import"./cli-0.1.11-yd6f29v2.mjs";import"./cli-0.1.11-fptq9w4t.mjs";import"./cli-0.1.11-7tybqg56.mjs";import"./cli-0.1.11-tyh8gms9.mjs";import"./cli-0.1.11-chnrb9xx.mjs";import"./cli-0.1.11-z62s8qx1.mjs";import"./cli-0.1.11-bbx2h4x9.mjs";import"./cli-0.1.11-3tqzgd9f.mjs";import"./cli-0.1.11-cw0ss3jw.mjs";import"./cli-0.1.11-21epc92q.mjs";import"./cli-0.1.11-6vqzqsdj.mjs";import"./cli-0.1.11-yvnhbsfn.mjs";import"./cli-0.1.11-yhk2y3c0.mjs";import"./cli-0.1.11-vzet5m4y.mjs";import"./cli-0.1.11-rmyvg4yw.mjs";import"./cli-0.1.11-cezypfbt.mjs";import"./cli-0.1.11-bwn9ehxv.mjs";import"./cli-0.1.11-n24p2y0p.mjs";import"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-zfnmx1ny.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";export{a as startDeferredPrefetches,b as main};
@@ -0,0 +1 @@
1
+ import{$Z as b,_Z as a}from"./cli-0.1.11-zfnmx1ny.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";export{a as applySafeConfigEnvironmentVariables,b as applyConfigEnvironmentVariables};
@@ -0,0 +1,17 @@
1
+ import{I as w,J as b}from"./cli-0.1.11-x3q39kf7.mjs";import{$q as Rq,MI as aq,PI as tq,QI as rq,RI as oq,SI as Nz,Uq as E,Vq as Xq,Vu as F,Wq as h,Wu as Mq,XI as sq,YI as t,ZI as Nq,Zq as kq,aK as iq,dr as c,eK as xz,er as Wq,fr as a,gr as Yq,hJ as xq,ir as y,mv as Bq,nr as Jq,nv as Yz,pr as Iq,uj as dq,vj as Rz,vv as pq,wv as Jz}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import{DP as Gq,EP as Qz,FP as wq,GP as Uz,HP as Aq,IP as Wz,LP as Tq,MP as Xz}from"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import{OU as Pq,QU as Hq,SU as f,eT as Iz,nT as Lq,tV as cq,vV as Oq}from"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import"./cli-0.1.11-fstfs72j.mjs";import{qX as v}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as Gz}from"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{Cba as mq,Hba as fq,Iba as vq,P8 as gq,R8 as _z,Vba as kz,X9 as lq,Y$ as zq,a_ as jz,eaa as zz}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import{dga as A,ega as Vz}from"./cli-0.1.11-xwj7cmkj.mjs";import{Hga as uq,Jga as Bz}from"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import{uha as qq,yha as qz}from"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import{Nna as x,Sna as Uq}from"./cli-0.1.11-yrfxpjhr.mjs";Rz();import{stat as yz}from"fs/promises";import{cwd as Ez}from"process";Mq();qz();Oq();Iq();zz();Uz();Yz();Wz();Xz();Qz();var _q=x(Iz(),1),d=x(Gz(),1),L=x(v(),1);function Vq(z){let q=_q.c(36),{servers:Q,scope:G,onDone:I}=z,U;if(q[0]!==Q)U=Object.keys(Q),q[0]=Q,q[1]=U;else U=q[1];let W=U,Z;if(q[2]===Symbol.for("react.memo_cache_sentinel"))Z={},q[2]=Z;else Z=q[2];let[X,Y]=d.useState(Z),H,_;if(q[3]===Symbol.for("react.memo_cache_sentinel"))H=()=>{y().then((K)=>{let{servers:i}=K;return Y(i)})},_=[],q[3]=H,q[4]=_;else H=q[3],_=q[4];d.useEffect(H,_);let T;if(q[5]!==X||q[6]!==W)T=W.filter((K)=>X[K]!==void 0),q[5]=X,q[6]=W,q[7]=T;else T=q[7];let O=T,M=async function(i){let Zq=0;for(let m of i){let Kq=Q[m];if(Kq){let n=m;if(X[n]!==void 0){let e=1;while(X[`${m}_${e}`]!==void 0)e++;n=`${m}_${e}`}await c(n,Kq,G),Zq++}}D(Zq)},[o]=Lq(),S;if(q[8]!==I||q[9]!==G||q[10]!==o)S=(K)=>{if(K>0)qq(`
2
+ ${Pq("success",o)(`Successfully imported ${K} MCP ${zq(K,"server")} to ${G} config.`)}
3
+ `);else qq(`
4
+ No servers were imported.`);I(),F()},q[8]=I,q[9]=G,q[10]=o,q[11]=S;else S=q[11];let D=S,$;if(q[12]!==D)$=()=>{D(0)},q[12]=D,q[13]=$;else $=q[13];let V=$,eq=W.length,C;if(q[14]!==W.length)C=zq(W.length,"server"),q[14]=W.length,q[15]=C;else C=q[15];let s=`Found ${eq} MCP ${C} in Claude Desktop.`,j;if(q[16]!==O.length)j=O.length>0&&L.jsxDEV(f,{color:"warning",children:"Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix."},void 0,!1,void 0,this),q[16]=O.length,q[17]=j;else j=q[17];let u;if(q[18]===Symbol.for("react.memo_cache_sentinel"))u=L.jsxDEV(f,{children:"Please select the servers you want to import:"},void 0,!1,void 0,this),q[18]=u;else u=q[18];let k,R;if(q[19]!==O||q[20]!==W)k=W.map((K)=>({label:`${K}${O.includes(K)?" (already exists)":""}`,value:K})),R=W.filter((K)=>!O.includes(K)),q[19]=O,q[20]=W,q[21]=k,q[22]=R;else k=q[21],R=q[22];let J;if(q[23]!==V||q[24]!==M||q[25]!==k||q[26]!==R)J=L.jsxDEV(Bq,{options:k,defaultValue:R,onSubmit:M,onCancel:V,hideIndexes:!0},void 0,!1,void 0,this),q[23]=V,q[24]=M,q[25]=k,q[26]=R,q[27]=J;else J=q[27];let N;if(q[28]!==V||q[29]!==s||q[30]!==j||q[31]!==J)N=L.jsxDEV(Tq,{title:"Import MCP Servers from Claude Desktop",subtitle:s,color:"success",onCancel:V,hideInputGuide:!0,children:[j,u,J]},void 0,!0,void 0,this),q[28]=V,q[29]=s,q[30]=j,q[31]=J,q[32]=N;else N=q[32];let g;if(q[33]===Symbol.for("react.memo_cache_sentinel"))g=L.jsxDEV(Hq,{paddingX:1,children:L.jsxDEV(f,{dimColor:!0,italic:!0,children:L.jsxDEV(Aq,{children:[L.jsxDEV(Gq,{shortcut:"Space",action:"select"},void 0,!1,void 0,this),L.jsxDEV(Gq,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),L.jsxDEV(wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[33]=g;else g=q[33];let l;if(q[34]!==N)l=L.jsxDEV(L.Fragment,{children:[N,g]},void 0,!0,void 0,this),q[34]=N,q[35]=l;else l=q[35];return l}Oq();Jz();Vz();Nz();xq();Iq();Rq();var yq={getAllMcpConfigs:y,getMcpConfigsByScope:a,getProjectMcpServerStatus:kq,isMcpServerDisabled:Jq,describeMcpConfigFilePath:E,connectToServer:t,clearServerCache:Nq};function Eq(z){return{generatedAt:new Date().toISOString(),targetName:z.targetName,scopeFilter:z.scopeFilter,configOnly:z.configOnly,summary:{totalReports:0,healthy:0,warnings:0,blocking:0},findings:[],servers:[]}}function Zz(z){if(z.message==="MCP config is not a valid JSON")return"config.invalid_json";if(z.message.startsWith("Missing environment variables:"))return"config.missing_env_vars";if(z.message.includes("Windows requires 'cmd /c' wrapper to execute npx"))return"config.windows_npx_wrapper_required";if(z.message==="Does not adhere to MCP server configuration schema")return"config.invalid_schema";return"config.validation_error"}function Kz(z){let q=z.mcpErrorMetadata?.severity;if(q==="fatal")return"error";if(q==="warning")return"warn";return"warn"}function bq(z){return z.map((q)=>{let Q=Kz(q);return{blocking:Q==="error",code:Zz(q),message:q.message,remediation:q.suggestion,scope:q.mcpErrorMetadata?.scope,serverName:q.mcpErrorMetadata?.serverName,severity:Q,sourcePath:q.file}})}function Dq(z){let q=[],Q=new Map;for(let G of z){if(!G.serverName){q.push(G);continue}let I=Q.get(G.serverName)??[];I.push(G),Q.set(G.serverName,I)}return{globalFindings:q,serverFindingsByName:Q}}function B(z){if(z.scope==="claudeai")return"claudeai";if(z.scope==="dynamic")return z.pluginSource?"plugin":"dynamic";if(z.scope==="managed")return"managed";return z.scope}function Qq(z){return z.type??"stdio"}function jq(z){switch(z.type){case"sse":case"http":case"ws":case"claudeai-proxy":return`${z.scope}:${z.type}:${z.url}`;case"sdk":return`${z.scope}:${z.type}:${z.name}`;default:return`${z.scope}:${z.type??"stdio"}:${z.command}:${JSON.stringify(z.args??[])}`}}function Lz(z,q){if(!q)return!1;return B(z)===B(q)&&jq(z)===jq(q)}function p(z,q,Q,G,I){let U=Q[z];if(!U)return[];let W=q==="project"?I.getProjectMcpServerStatus(z)==="pending":!1,Z=I.isMcpServerDisabled(z),X=!Z&&Lz(U,G);return[{name:z,sourceType:B(U),sourcePath:I.describeMcpConfigFilePath(q),transport:Qq(U),runtimeVisible:X,runtimeActive:X,pendingApproval:W,disabled:Z}]}function P(z,q){if(!q)return z==="enterprise"||z==="local"||z==="project"||z==="user";return z===q}function Fq(z,q){return[...P("enterprise",q)?z.enterprise.errors:[],...P("local",q)?z.local.errors:[],...P("project",q)?z.project.errors:[],...P("user",q)?z.user.errors:[]]}function Pz(z,q,Q){return{name:z,sourceType:B(q),sourcePath:B(q)==="plugin"?`plugin:${q.pluginSource??"unknown"}`:B(q)==="claudeai"?"claude.ai":q.scope,transport:Qq(q),runtimeVisible:Q?.runtimeVisible??!0,runtimeActive:Q?.runtimeActive??!0,disabled:Q?.disabled??!1}}function Hz(z,q,Q){let G=B(q),I=G==="plugin"?`plugin:${q.pluginSource??"unknown"}`:G==="claudeai"?"claude.ai":Q.describeMcpConfigFilePath(q.scope);return z.some((U)=>U.sourceType===G&&U.sourcePath===I&&U.transport===Qq(q))}function Oz(z){let q=z.filter((G)=>G.sourceType==="local"||G.sourceType==="project"||G.sourceType==="user"||G.sourceType==="enterprise");if(q.length<=1)return[];let Q=q.find((G)=>G.runtimeActive)??q[0];return[{blocking:!1,code:"duplicate.same_name_multiple_scopes",message:`Server is defined in multiple config scopes; active source is ${Q.sourceType}`,remediation:"Remove or rename one of the duplicate definitions to avoid confusion.",serverName:Q.name,severity:"warn"},{blocking:!1,code:"scope.shadowed",message:`${Q.name} has shadowed definitions in lower-precedence config scopes.`,remediation:"Inspect the other definitions and remove the ones you no longer want to keep.",serverName:Q.name,severity:"warn"}]}function wz(z){let q=[];for(let Q of z){if(Q.pendingApproval)q.push({blocking:!1,code:"state.pending_project_approval",message:`${Q.name} is declared in project config but pending project approval.`,remediation:"Approve the server in the project MCP approval flow before expecting it to become active.",scope:"project",serverName:Q.name,severity:"warn",sourcePath:Q.sourcePath});if(Q.disabled)q.push({blocking:!1,code:"state.disabled",message:`${Q.name} is currently disabled.`,remediation:"Re-enable the server before expecting it to be available at runtime.",serverName:Q.name,severity:"warn",sourcePath:Q.sourcePath})}return q}function hq(z){let q=[...z.findings,...z.servers.flatMap((U)=>U.findings)],Q=q.filter((U)=>U.blocking).length,G=q.filter((U)=>U.severity==="warn").length,I=z.servers.filter((U)=>U.liveCheck.result==="connected"&&U.findings.every((W)=>!W.blocking&&W.severity!=="warn")).length;return{...z,summary:{totalReports:z.servers.length,healthy:I,warnings:G,blocking:Q}}}async function Az(z,q,Q,G,I){if(Q)return{attempted:!1,result:"skipped"};if(!q){if(G.some((X)=>X.pendingApproval))return{attempted:!1,result:"pending"};if(G.some((X)=>X.disabled))return{attempted:!1,result:"disabled"};return{attempted:!1,result:"skipped"}}let U=Date.now(),W=await I.connectToServer(z,q),Z=Date.now()-U;try{switch(W.type){case"connected":return{attempted:!0,result:"connected",durationMs:Z};case"needs-auth":return{attempted:!0,result:"needs-auth",durationMs:Z};case"disabled":return{attempted:!0,result:"disabled",durationMs:Z};case"pending":return{attempted:!0,result:"pending",durationMs:Z};case"failed":return{attempted:!0,result:"failed",durationMs:Z,error:W.error}}}finally{await I.clearServerCache(z,q).catch(()=>{})}}function Tz(z,q,Q){let G=q.find((I)=>I.runtimeActive);if(Q.result==="needs-auth")return[{blocking:!1,code:"auth.needs_auth",message:`${z} requires authentication before it can be used.`,remediation:"Authenticate the server and then rerun the doctor command.",serverName:z,severity:"warn",sourcePath:G?.sourcePath}];if(Q.result==="failed"){let I=G?.transport==="stdio"&&typeof Q.error==="string"&&Q.error.toLowerCase().includes("not found");return[{blocking:!0,code:I?"stdio.command_not_found":"health.failed",message:Q.error?`${z} failed its live health check: ${Q.error}`:`${z} failed its live health check.`,remediation:I?"Verify the configured executable exists on PATH or use a full executable path.":"Inspect the server configuration and retry the connection once the underlying problem is fixed.",serverName:z,severity:"error",sourcePath:G?.sourcePath}]}return[]}async function Sq(z,q,Q,G){let I={enterprise:G.getMcpConfigsByScope("enterprise"),local:G.getMcpConfigsByScope("local"),project:G.getMcpConfigsByScope("project"),user:G.getMcpConfigsByScope("user")},{servers:U}=await G.getAllMcpConfigs(),W=G.isMcpServerDisabled(z),Z=U[z]??void 0,X=W?void 0:Z,Y=[...P("enterprise",q.scopeFilter)?p(z,"enterprise",I.enterprise.servers,X,G):[],...P("local",q.scopeFilter)?p(z,"local",I.local.servers,X,G):[],...P("project",q.scopeFilter)?p(z,"project",I.project.servers,X,G):[],...P("user",q.scopeFilter)?p(z,"user",I.user.servers,X,G):[]],H=!!Z&&!Hz(Y,Z,G)&&(Y.length===0&&!q.scopeFilter||Y.length>0&&Y.every((M)=>!M.runtimeActive));if(Z&&H)Y.push(Pz(z,Z,{disabled:W,runtimeActive:!W,runtimeVisible:!W}));let _=Y.some((M)=>M.runtimeActive)||H?X:void 0,T=[...Q.get(z)??[],...Oz(Y),...wz(Y)];if(Y.length===0&&!H)T.push({blocking:!0,code:"state.not_found",message:`${z} was not found in the selected MCP configuration sources.`,remediation:"Check the server name and scope, or add the MCP server before retrying.",serverName:z,severity:"error"});let O=await Az(z,_,q.configOnly,Y,G);return T.push(...Tz(z,Y,O)),{serverName:z,requestedByUser:q.requestedByUser,definitions:Y,liveCheck:O,findings:T}}function Mz(z,q,Q){let G=new Set(Q?Object.keys(q):[]);for(let I of z)for(let U of Object.keys(I))G.add(U);return[...G].sort()}async function $q(z={configOnly:!1},q=yq){let Q=Eq(z),G={enterprise:q.getMcpConfigsByScope("enterprise"),local:q.getMcpConfigsByScope("local"),project:q.getMcpConfigsByScope("project"),user:q.getMcpConfigsByScope("user")},I=bq(Fq(G,z.scopeFilter)),{globalFindings:U,serverFindingsByName:W}=Dq(I),{servers:Z}=await q.getAllMcpConfigs(),X=Mz([...P("enterprise",z.scopeFilter)?[G.enterprise.servers]:[],...P("local",z.scopeFilter)?[G.local.servers]:[],...P("project",z.scopeFilter)?[G.project.servers]:[],...P("user",z.scopeFilter)?[G.user.servers]:[]],Z,!z.scopeFilter),Y=await Promise.all(X.map((H)=>Sq(H,{configOnly:z.configOnly,requestedByUser:!1,scopeFilter:z.scopeFilter},W,q)));return Q.servers=Y,Q.findings=U,hq(Q)}async function Cq(z,q,Q=yq){let G=Eq({...q,targetName:z}),I={enterprise:Q.getMcpConfigsByScope("enterprise"),local:Q.getMcpConfigsByScope("local"),project:Q.getMcpConfigsByScope("project"),user:Q.getMcpConfigsByScope("user")},U=bq(Fq(I,q.scopeFilter)),{globalFindings:W,serverFindingsByName:Z}=Dq(U),X=await Sq(z,{configOnly:q.configOnly,requestedByUser:!0,scopeFilter:q.scopeFilter},Z,Q);return G.servers=[X],G.findings=W,hq(G)}xq();Iq();Rq();xz();kz();Bz();Mq();jz();_z();var r=x(v(),1);function bz(z){let q=[];if(q.push("MCP Doctor"),q.push(""),q.push("Summary"),q.push(`- ${z.summary.totalReports} server reports generated`),q.push(`- ${z.summary.healthy} healthy`),q.push(`- ${z.summary.warnings} warnings`),q.push(`- ${z.summary.blocking} blocking issues`),z.targetName)q.push(`- target: ${z.targetName}`);for(let Q of z.servers){q.push(""),q.push(Q.serverName);let G=Q.definitions.find((I)=>I.runtimeActive);if(G)q.push(`- Active source: ${G.sourceType}`),q.push(`- Transport: ${G.transport??"unknown"}`);if(Q.definitions.length>1){let I=Q.definitions.filter((U)=>!U.runtimeActive).map((U)=>U.sourceType);if(I.length>0)q.push(`- Additional definitions: ${I.join(", ")}`)}if(Q.liveCheck.result){let U=new Set(["disabled","pending","skipped"]).has(Q.liveCheck.result)?"State":"Live check";q.push(`- ${U}: ${Q.liveCheck.result}`)}if(Q.liveCheck.error)q.push(`- Error: ${Q.liveCheck.error}`);for(let I of Q.findings)if(q.push(`- ${I.message}`),I.remediation)q.push(`- Fix: ${I.remediation}`)}if(z.findings.length>0){q.push(""),q.push("Global findings");for(let Q of z.findings)if(q.push(`- ${Q.message}`),Q.remediation)q.push(`- Fix: ${Q.remediation}`)}return q.join(`
5
+ `)}async function HG(z,q){try{let Q=q.scope?h(q.scope):void 0,G=!!q.configOnly,I=z?await Cq(z,{configOnly:G,scopeFilter:Q}):await $q({configOnly:G,scopeFilter:Q});if(q.json)process.stdout.write(`${JSON.stringify(I,null,2)}
6
+ `);else process.stdout.write(`${bz(I)}
7
+ `);await new Promise((U)=>setTimeout(U,50)),process.exit(I.summary.blocking>0?1:0);return}catch(Q){w(Q.message)}}async function nq(z,q){try{let Q=await t(z,q);if(Q.type==="connected")return"✓ Connected";else if(Q.type==="needs-auth")return"! Needs authentication";else return"✗ Failed to connect"}catch(Q){return"✗ Connection error"}}async function OG({debug:z,verbose:q}){let Q=Ez();A("tengu_mcp_start",{});try{await yz(Q)}catch(G){if(uq(G))w(`Error: Directory ${Q} does not exist`);throw G}try{let{setup:G}=await import("./setup-0.1.11-epmpszzf.mjs");await G(Q,"default",!1,!1,void 0,!1);let{startMCPServer:I}=await import("./mcp-0.1.11-zf74a6am.mjs");await I(Q,z??!1,q??!1)}catch(G){w(`Error: Failed to start MCP server: ${G}`)}}async function wG(z,q){let Q=Yq(z),G=()=>{if(Q&&(Q.type==="sse"||Q.type==="http"))aq(z,Q),oq(z,Q)};try{if(q.scope){let Y=h(q.scope);A("tengu_mcp_delete",{name:z,scope:Y}),await Wq(z,Y),G(),process.stdout.write(`Removed MCP server ${z} from ${Y} config
8
+ `),b(`File modified: ${E(Y)}`)}let I=fq(),U=mq(),{servers:W}=a("project"),Z=!!W[z],X=[];if(I.mcpServers?.[z])X.push("local");if(Z)X.push("project");if(U.mcpServers?.[z])X.push("user");if(X.length===0)w(`No MCP server found with name: "${z}"`);else if(X.length===1){let Y=X[0];A("tengu_mcp_delete",{name:z,scope:Y}),await Wq(z,Y),G(),process.stdout.write(`Removed MCP server "${z}" from ${Y} config
9
+ `),b(`File modified: ${E(Y)}`)}else process.stderr.write(`MCP server "${z}" exists in multiple scopes:
10
+ `),X.forEach((Y)=>{process.stderr.write(` - ${Xq(Y)} (${E(Y)})
11
+ `)}),process.stderr.write(`
12
+ To remove from a specific scope, use:
13
+ `),X.forEach((Y)=>{process.stderr.write(` claude mcp remove "${z}" -s ${Y}
14
+ `)}),w()}catch(I){w(I.message)}}async function AG(){A("tengu_mcp_list",{});let{servers:z}=await y();if(Object.keys(z).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
15
+ `);let q=Object.entries(z),Q=await dq(q,async([G,I])=>({name:G,server:I,status:await nq(G,I)}),{concurrency:sq()});for(let{name:G,server:I,status:U}of Q)if(I.type==="sse")console.log(`${G}: ${I.url} (SSE) - ${U}`);else if(I.type==="http")console.log(`${G}: ${I.url} (HTTP) - ${U}`);else if(I.type==="claudeai-proxy")console.log(`${G}: ${I.url} - ${U}`);else if(!I.type||I.type==="stdio"){let W=Array.isArray(I.args)?I.args:[];console.log(`${G}: ${I.command} ${W.join(" ")} - ${U}`)}}await F(0)}async function TG(z){A("tengu_mcp_get",{name:z});let q=Yq(z);if(!q)w(`No MCP server found with name: ${z}`);console.log(`${z}:`),console.log(` Scope: ${Xq(q.scope)}`);let Q=await nq(z,q);if(console.log(` Status: ${Q}`),q.type==="sse"){if(console.log(" Type: sse"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,I]of Object.entries(q.headers))console.log(` ${G}: ${I}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="http"){if(console.log(" Type: http"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,I]of Object.entries(q.headers))console.log(` ${G}: ${I}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="stdio"){console.log(" Type: stdio"),console.log(` Command: ${q.command}`);let G=Array.isArray(q.args)?q.args:[];if(console.log(` Args: ${G.join(" ")}`),q.env){console.log(" Environment:");for(let[I,U]of Object.entries(q.env))console.log(` ${I}=${U}`)}}console.log(`
16
+ To remove this server, run: claude mcp remove "${z}" -s ${q.scope}`),await F(0)}async function MG(z,q,Q){try{let G=h(Q.scope),I=lq(q),W=Q.clientSecret&&I&&typeof I==="object"&&"type"in I&&(I.type==="sse"||I.type==="http")&&"url"in I&&typeof I.url==="string"&&"oauth"in I&&I.oauth&&typeof I.oauth==="object"&&"clientId"in I.oauth?await tq():void 0;await c(z,I,G);let Z=I&&typeof I==="object"&&"type"in I?String(I.type||"stdio"):"stdio";if(W&&I&&typeof I==="object"&&"type"in I&&(I.type==="sse"||I.type==="http")&&"url"in I&&typeof I.url==="string")rq(z,{type:I.type,url:I.url},W);A("tengu_mcp_add",{scope:G,source:"json",type:Z}),b(`Added ${Z} MCP server ${z} to ${G} config`)}catch(G){w(G.message)}}async function BG(z){try{let q=h(z.scope),Q=gq();A("tengu_mcp_add",{scope:q,platform:Q,source:"desktop"});let{readClaudeDesktopMcpServers:G}=await import("./claudeDesktop-0.1.11-zpdtj6k8.mjs"),I=await G();if(Object.keys(I).length===0)b("No MCP servers found in Claude Desktop configuration or configuration file does not exist.");let{unmount:U}=await cq(r.jsxDEV(iq,{children:r.jsxDEV(pq,{children:r.jsxDEV(Vq,{servers:I,scope:q,onDone:()=>{U()}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),{exitOnCtrlC:!0})}catch(q){w(q.message)}}async function _G(){A("tengu_mcp_reset_mcpjson_choices",{}),vq((z)=>({...z,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),b(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
17
+ You will be prompted for approval next time you start Claude Code.`)}export{OG as mcpServeHandler,_G as mcpResetChoicesHandler,wG as mcpRemoveHandler,AG as mcpListHandler,TG as mcpGetHandler,HG as mcpDoctorHandler,MG as mcpAddJsonHandler,BG as mcpAddFromDesktopHandler};
@@ -0,0 +1,4 @@
1
+ import{Bg as BG,Cg as bG}from"./cli-0.1.11-dpfxvfty.mjs";import{th as xG}from"./cli-0.1.11-bwn9ehxv.mjs";import{Bi as LG,CJ as WG,EJ as TG,OD as OG,PD as IG,QC as T,SC as PG,YK as JG,ZK as CG,bF as C,cF as MG,eJ as FG,gI as kG,gj as R,hJ as qG,hj as V,hp as DG,ij as g,ip as VG,jj as NG,kj as l,lj as r,mj as jG,nj as t,oi as q,oj as wG,pj as a,qi as KG,qj as o,ri as yG,rj as zG,sA as HG,sH as ZG,so as $G,tA as fG,to as UG,xi as QG}from"./cli-0.1.11-s8ygndzf.mjs";import"./cli-0.1.11-1bryv90w.mjs";import"./cli-0.1.11-5e45zda5.mjs";import"./cli-0.1.11-jjgjkqqv.mjs";import"./cli-0.1.11-r990p54m.mjs";import"./cli-0.1.11-70f778wy.mjs";import"./cli-0.1.11-weav8142.mjs";import"./cli-0.1.11-t7dc7fbj.mjs";import"./cli-0.1.11-vb5f7c3a.mjs";import"./cli-0.1.11-sma2xhvv.mjs";import"./cli-0.1.11-852v06g0.mjs";import"./cli-0.1.11-z4hb2mcd.mjs";import"./cli-0.1.11-mj78w4sp.mjs";import"./cli-0.1.11-qrq0sw0h.mjs";import"./cli-0.1.11-d4ahh3jz.mjs";import"./cli-0.1.11-wc9bay3d.mjs";import"./cli-0.1.11-rvk3t45h.mjs";import"./cli-0.1.11-0n77qn68.mjs";import"./cli-0.1.11-h02tyg8p.mjs";import"./cli-0.1.11-bvd2r7an.mjs";import"./cli-0.1.11-jr50ahcv.mjs";import"./cli-0.1.11-6zkfmcxp.mjs";import"./cli-0.1.11-jkrt4znb.mjs";import{AW as M,BW as n,DW as U,EW as i,HW as E,KW as m,LW as z,MW as P,OV as S,PV as v,VV as _,YV as h,_V as u,aW as c,eW as d,uW as YG,wW as p,xW as f}from"./cli-0.1.11-424zgj5k.mjs";import"./cli-0.1.11-rj9ea3zn.mjs";import"./cli-0.1.11-mstxxz33.mjs";import"./cli-0.1.11-kghg51gb.mjs";import{mX as XG}from"./cli-0.1.11-fstfs72j.mjs";import"./cli-0.1.11-kk0qqs5v.mjs";import"./cli-0.1.11-x37jysc0.mjs";import"./cli-0.1.11-h762f6hr.mjs";import"./cli-0.1.11-50naxqgt.mjs";import"./cli-0.1.11-v6kwgrqc.mjs";import"./cli-0.1.11-16086k9e.mjs";import"./cli-0.1.11-bwpemkht.mjs";import"./cli-0.1.11-dcswnc8x.mjs";import"./cli-0.1.11-p22bdjhv.mjs";import"./cli-0.1.11-y4c6y87y.mjs";import"./cli-0.1.11-q58q9jqr.mjs";import"./cli-0.1.11-zb2sa3e2.mjs";import"./cli-0.1.11-3p2f194m.mjs";import"./cli-0.1.11-05ngjm8p.mjs";import"./cli-0.1.11-yv5pfq6n.mjs";import{$2 as GG,x3 as EG}from"./cli-0.1.11-qbcfg80y.mjs";import"./cli-0.1.11-b0jasw23.mjs";import"./cli-0.1.11-s6yfjcm5.mjs";import"./cli-0.1.11-sqqzwx4h.mjs";import"./cli-0.1.11-2w8d5vqb.mjs";import"./cli-0.1.11-d10nfa6g.mjs";import"./cli-0.1.11-h2hxx8ma.mjs";import"./cli-0.1.11-1xr9et85.mjs";import{F7 as e,K7 as AG}from"./cli-0.1.11-v7bwjqf0.mjs";import"./cli-0.1.11-h7e4rkwk.mjs";import"./cli-0.1.11-7xr2ermy.mjs";import"./cli-0.1.11-7qpnfx56.mjs";import"./cli-0.1.11-vch8cn95.mjs";import"./cli-0.1.11-fag2wtke.mjs";import"./cli-0.1.11-nx8a99hz.mjs";import"./cli-0.1.11-ktwtyqmp.mjs";import"./cli-0.1.11-xwj7cmkj.mjs";import{Lga as b,Pga as _G}from"./cli-0.1.11-vq5fvf9m.mjs";import"./cli-0.1.11-d3exw047.mjs";import"./cli-0.1.11-e5ecf583.mjs";import"./cli-0.1.11-rrnr3ab1.mjs";import"./cli-0.1.11-98zcwng9.mjs";import"./cli-0.1.11-yrfxpjhr.mjs";jG();P();wG();NG();P();class I{constructor(G){this._server=G}requestStream(G,K,X){return this._server.requestStream(G,K,X)}createMessageStream(G,K){let X=this._server.getClientCapabilities();if((G.tools||G.toolChoice)&&!X?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if(G.messages.length>0){let Q=G.messages[G.messages.length-1],$=Array.isArray(Q.content)?Q.content:[Q.content],Z=$.some((Y)=>Y.type==="tool_result"),D=G.messages.length>1?G.messages[G.messages.length-2]:void 0,W=D?Array.isArray(D.content)?D.content:[D.content]:[],F=W.some((Y)=>Y.type==="tool_use");if(Z){if($.some((Y)=>Y.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!F)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(F){let Y=new Set(W.filter((H)=>H.type==="tool_use").map((H)=>H.id)),B=new Set($.filter((H)=>H.type==="tool_result").map((H)=>H.toolUseId));if(Y.size!==B.size||![...Y].every((H)=>B.has(H)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:G},U,K)}elicitInputStream(G,K){let X=this._server.getClientCapabilities(),Q=G.mode??"form";switch(Q){case"url":{if(!X?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!X?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let $=Q==="form"&&G.mode===void 0?{...G,mode:"form"}:G;return this.requestStream({method:"elicitation/create",params:$},E,K)}async getTask(G,K){return this._server.getTask({taskId:G},K)}async getTaskResult(G,K,X){return this._server.getTaskResult({taskId:G},K,X)}async listTasks(G,K){return this._server.listTasks(G?{cursor:G}:void 0,K)}async cancelTask(G,K){return this._server.cancelTask({taskId:G},K)}}zG();class k extends l{constructor(G,K){super(K);if(this._serverInfo=G,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(M.options.map((X,Q)=>[X,Q])),this.isMessageIgnored=(X,Q)=>{let $=this._loggingLevels.get(Q);return $?this.LOG_LEVEL_SEVERITY.get(X)<this.LOG_LEVEL_SEVERITY.get($):!1},this._capabilities=K?.capabilities??{},this._instructions=K?.instructions,this._jsonSchemaValidator=K?.jsonSchemaValidator??new t,this.setRequestHandler(u,(X)=>this._oninitialize(X)),this.setNotificationHandler(c,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(n,async(X,Q)=>{let $=Q.sessionId||Q.requestInfo?.headers["mcp-session-id"]||void 0,{level:Z}=X.params,D=M.safeParse(Z);if(D.success)this._loggingLevels.set($,D.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new I(this)};return this._experimental}registerCapabilities(G){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=r(this._capabilities,G)}setRequestHandler(G,K){let Q=g(G)?.method;if(!Q)throw Error("Schema is missing a method literal");let $;if(R(Q)){let D=Q;$=D._zod?.def?.value??D.value}else{let D=Q;$=D._def?.value??D.value}if(typeof $!=="string")throw Error("Schema method literal must be a string");if($==="tools/call"){let D=async(W,F)=>{let Y=V(f,W);if(!Y.success){let O=Y.error instanceof Error?Y.error.message:String(Y.error);throw new z(_.InvalidParams,`Invalid tools/call request: ${O}`)}let{params:B}=Y.data,H=await Promise.resolve(K(W,F));if(B.task){let O=V(d,H);if(!O.success){let y=O.error instanceof Error?O.error.message:String(O.error);throw new z(_.InvalidParams,`Invalid task creation result: ${y}`)}return O.data}let J=V(p,H);if(!J.success){let O=J.error instanceof Error?J.error.message:String(J.error);throw new z(_.InvalidParams,`Invalid tools/call result: ${O}`)}return J.data};return super.setRequestHandler(G,D)}return super.setRequestHandler(G,K)}assertCapabilityForMethod(G){switch(G){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${G})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${G})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${G})`);break;case"ping":break}}assertNotificationCapability(G){switch(G){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${G})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${G})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${G})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${G})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${G})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(G){if(!this._capabilities)return;switch(G){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${G})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${G})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${G})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${G})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${G})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${G})`);break;case"ping":case"initialize":break}}assertTaskCapability(G){o(this._clientCapabilities?.tasks?.requests,G,"Client")}assertTaskHandlerCapability(G){if(!this._capabilities)return;a(this._capabilities.tasks?.requests,G,"Server")}async _oninitialize(G){let K=G.params.protocolVersion;return this._clientCapabilities=G.params.capabilities,this._clientVersion=G.params.clientInfo,{protocolVersion:v.includes(K)?K:S,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},h)}async createMessage(G,K){if(G.tools||G.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if(G.messages.length>0){let X=G.messages[G.messages.length-1],Q=Array.isArray(X.content)?X.content:[X.content],$=Q.some((F)=>F.type==="tool_result"),Z=G.messages.length>1?G.messages[G.messages.length-2]:void 0,D=Z?Array.isArray(Z.content)?Z.content:[Z.content]:[],W=D.some((F)=>F.type==="tool_use");if($){if(Q.some((F)=>F.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!W)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(W){let F=new Set(D.filter((B)=>B.type==="tool_use").map((B)=>B.id)),Y=new Set(Q.filter((B)=>B.type==="tool_result").map((B)=>B.toolUseId));if(F.size!==Y.size||![...F].every((B)=>Y.has(B)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if(G.tools)return this.request({method:"sampling/createMessage",params:G},i,K);return this.request({method:"sampling/createMessage",params:G},U,K)}async elicitInput(G,K){switch(G.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Q=G;return this.request({method:"elicitation/create",params:Q},E,K)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Q=G.mode==="form"?G:{...G,mode:"form"},$=await this.request({method:"elicitation/create",params:Q},E,K);if($.action==="accept"&&$.content&&Q.requestedSchema)try{let D=this._jsonSchemaValidator.getValidator(Q.requestedSchema)($.content);if(!D.valid)throw new z(_.InvalidParams,`Elicitation response content does not match requested schema: ${D.errorMessage}`)}catch(Z){if(Z instanceof z)throw Z;throw new z(_.InternalError,`Error validating elicitation response: ${Z instanceof Error?Z.message:String(Z)}`)}return $}}}createElicitationCompletionNotifier(G,K){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:G}},K)}async listRoots(G,K){return this.request({method:"roots/list",params:G},m,K)}async sendLoggingMessage(G,K){if(this._capabilities.logging){if(!this.isMessageIgnored(G.level,K))return this.notification({method:"notifications/message",params:G})}}async sendResourceUpdated(G){return this.notification({method:"notifications/resources/updated",params:G})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}bG();xG();P();VG();CG();qG();yG();PG();UG();LG();AG();kG();EG();TG();fG();_G();IG();MG();process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS??="true";var RG=[JG];function s(G,K){let X=new Set(K.map(($)=>$.name)),Q=G.filter(($)=>!X.has($.name));return[...K,...Q]}async function gG(){let G=[],K=[];return await FG(({client:X,tools:Q})=>{G.push(X),K.push(...Q)}),{mcpClients:G,mcpTools:K}}async function FK(G,K,X){let $=QG(100);HG(G);let Z=new k({name:"claude/tengu",version:"99.0.0"},{capabilities:{tools:{}}}),{mcpClients:D,mcpTools:W}=await gG();Z.setRequestHandler(YG,async()=>{let Y=q(),B=s(T(Y),W);return{tools:await Promise.all(B.map(async(H)=>{let J;if(H.outputSchema){let O=C(H.outputSchema);if(typeof O==="object"&&O!==null&&"type"in O&&O.type==="object")J=O}return{...H,description:await H.prompt({getToolPermissionContext:async()=>Y,tools:B,agents:[]}),inputSchema:H.inputJSONSchema??C(H.inputSchema),outputSchema:J}}))}}),Z.setRequestHandler(f,async({params:{name:Y,arguments:B}})=>{let H=q(),J=s(T(H),W),O=KG(J,Y);if(!O)throw Error(`Tool ${Y} not found`);let y={abortController:$G(),options:{commands:RG,tools:J,mainLoopModel:GG(),thinkingConfig:{type:"disabled"},mcpClients:D,mcpResources:{},isNonInteractiveSession:!0,debug:K,verbose:X,agentDefinitions:{activeAgents:[],allAgents:[]}},getAppState:()=>DG(),setAppState:()=>{},messages:[],readFileState:$,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};try{if(!O.isEnabled())throw Error(`Tool ${Y} is not enabled`);let N=O.inputSchema.parse(B??{}),L=await O.validateInput?.(N??{},y);if(L&&!L.result)throw Error(`Tool ${Y} input is invalid: ${L.message}`);let x=await O.call(N??{},y,WG,ZG({content:[]})),w,A=x.data;if(typeof A==="string")w=[{type:"text",text:A}];else if(Array.isArray(A))w=A.map((j)=>{if(j.type==="text")return{type:"text",text:j.text||""};else if(j.type==="image"&&j.source)return{type:"image",data:j.source.data,mimeType:j.source.media_type};else return console.warn(`Unmapped content block type from tool ${Y}: ${j.type||"unknown"}`),{type:"text",text:b(j)}});else w=[{type:"text",text:b(A)}];return{content:w,isError:!!x.isError}}catch(N){if(e(N),N instanceof XG)return{isError:!0,content:[{type:"text",text:`Tool ${Y} input is invalid:
2
+ ${N.errors.map((w)=>`- ${w.path.join(".")}: ${w.message}`).join(`
3
+ `)}`}]};return{isError:!0,content:[{type:"text",text:(N instanceof Error?OG(N):[String(N)]).filter(Boolean).join(`
4
+ `).trim()||"Error"}]}}});async function F(){let Y=new BG;await Z.connect(Y)}return await F()}export{FK as startMCPServer,gG as loadReexposedMcpTools,s as getCombinedTools};