@claudiolabs/claudio 0.1.11 → 0.1.13

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 (652) hide show
  1. package/bin/claudio +7 -0
  2. package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +1 -0
  3. package/dist/chunks/App-0.1.13-45tpe56w.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +1 -0
  5. package/dist/chunks/{AssistantSessionChooser-0.1.11-kb5jvw8n.mjs → AssistantSessionChooser-0.1.13-tcg2ckh4.mjs} +1 -1
  6. package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.13-3a9b1b48.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +1 -0
  15. package/dist/chunks/{InProcessTransport-0.1.11-xecmx0sw.mjs → InProcessTransport-0.1.13-k5mkjvww.mjs} +1 -1
  16. package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +1 -0
  23. package/dist/chunks/{SnapshotUpdateDialog-0.1.11-h881m192.mjs → SnapshotUpdateDialog-0.1.13-has41zv0.mjs} +1 -1
  24. package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +1 -0
  32. package/dist/chunks/agents-0.1.13-a0aj4df9.mjs +111 -0
  33. package/dist/chunks/agents-0.1.13-phdd6357.mjs +3 -0
  34. package/dist/chunks/api-0.1.13-vmdan95h.mjs +1 -0
  35. package/dist/chunks/{asciicast-0.1.11-7mkaazy8.mjs → asciicast-0.1.13-d6ce2h4r.mjs} +1 -1
  36. package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +1 -0
  37. package/dist/chunks/{auth-0.1.11-p47wajra.mjs → auth-0.1.13-fwdmg15h.mjs} +1 -1
  38. package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +1 -0
  39. package/dist/chunks/{autoMode-0.1.11-nv8vsag0.mjs → autoMode-0.1.13-4xh49kt4.mjs} +1 -1
  40. package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +1 -0
  41. package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +4 -0
  42. package/dist/chunks/{bridgePointer-0.1.11-wr8dfs91.mjs → bridgePointer-0.1.13-s1qw0857.mjs} +1 -1
  43. package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +1 -0
  44. package/dist/chunks/{buddy-0.1.11-gsj76spy.mjs → buddy-0.1.13-2wvpbqx1.mjs} +1 -1
  45. package/dist/chunks/{cacache-0.1.11-wtz0ca19.mjs → cacache-0.1.13-sy5bqn6j.mjs} +1 -1
  46. package/dist/chunks/{cache-probe-0.1.11-pgsemwpr.mjs → cache-probe-0.1.13-ze8mf958.mjs} +1 -1
  47. package/dist/chunks/{cacheStats-0.1.11-1zqq6pm7.mjs → cacheStats-0.1.13-jtrw4rdj.mjs} +1 -1
  48. package/dist/chunks/caches-0.1.13-0swwryxr.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +1 -0
  50. package/dist/chunks/{chromeNativeHost-0.1.11-m5kskzjw.mjs → chromeNativeHost-0.1.13-96ex7t46.mjs} +1 -1
  51. package/dist/chunks/{claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs → claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs} +1 -1
  52. package/dist/chunks/{claudeDesktop-0.1.11-zpdtj6k8.mjs → claudeDesktop-0.1.13-fs8rre9b.mjs} +1 -1
  53. package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +1 -0
  54. package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +1 -0
  56. package/dist/chunks/cli-0.1.13-00qdyz6f.mjs +3 -0
  57. package/dist/chunks/cli-0.1.13-0b728dvh.mjs +2 -0
  58. package/dist/chunks/{cli-0.1.11-4ggr81tw.mjs → cli-0.1.13-0gfnmq08.mjs} +2 -2
  59. package/dist/chunks/cli-0.1.13-0gyt273r.mjs +2 -0
  60. package/dist/chunks/cli-0.1.13-0hyneh5t.mjs +9 -0
  61. package/dist/chunks/{cli-0.1.11-rj68n2kw.mjs → cli-0.1.13-0p3b9j40.mjs} +2 -2
  62. package/dist/chunks/{cli-0.1.11-50naxqgt.mjs → cli-0.1.13-0xy8k6yv.mjs} +2 -2
  63. package/dist/chunks/{cli-0.1.11-yv5pfq6n.mjs → cli-0.1.13-0zpmhn2j.mjs} +2 -2
  64. package/dist/chunks/{cli-0.1.11-wc9bay3d.mjs → cli-0.1.13-13fh0g36.mjs} +2 -2
  65. package/dist/chunks/{cli-0.1.11-vq5fvf9m.mjs → cli-0.1.13-144gn3fd.mjs} +3 -3
  66. package/dist/chunks/{cli-0.1.11-d3exw047.mjs → cli-0.1.13-1g6bgaa6.mjs} +2 -2
  67. package/dist/chunks/{cli-0.1.11-nhwmv5g6.mjs → cli-0.1.13-1gbn4dgj.mjs} +1 -1
  68. package/dist/chunks/{cli-0.1.11-rj9ea3zn.mjs → cli-0.1.13-1hw65avy.mjs} +2 -2
  69. package/dist/chunks/cli-0.1.13-1pxg82cx.mjs +2 -0
  70. package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +2 -0
  71. package/dist/chunks/{cli-0.1.11-852v06g0.mjs → cli-0.1.13-2c7g6rpx.mjs} +2 -2
  72. package/dist/chunks/{cli-0.1.11-h2hxx8ma.mjs → cli-0.1.13-2cdtdhek.mjs} +5 -5
  73. package/dist/chunks/{cli-0.1.11-t07hba0z.mjs → cli-0.1.13-2sx61wcx.mjs} +1 -1
  74. package/dist/chunks/{cli-0.1.11-16086k9e.mjs → cli-0.1.13-2vrh3n9y.mjs} +2 -2
  75. package/dist/chunks/{cli-0.1.11-70f778wy.mjs → cli-0.1.13-30j4h365.mjs} +2 -2
  76. package/dist/chunks/{cli-0.1.11-7tybqg56.mjs → cli-0.1.13-3k1n20ra.mjs} +1 -1
  77. package/dist/chunks/{cli-0.1.11-y909w8bb.mjs → cli-0.1.13-3pctg5zc.mjs} +1 -1
  78. package/dist/chunks/{cli-0.1.11-dpfxvfty.mjs → cli-0.1.13-3rr4fg79.mjs} +2 -2
  79. package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +2 -0
  80. package/dist/chunks/{cli-0.1.11-fstfs72j.mjs → cli-0.1.13-4prgqshq.mjs} +2 -2
  81. package/dist/chunks/{cli-0.1.11-5hs4xyjq.mjs → cli-0.1.13-5061js0h.mjs} +2 -2
  82. package/dist/chunks/{cli-0.1.11-rrnr3ab1.mjs → cli-0.1.13-52f40ba4.mjs} +2 -2
  83. package/dist/chunks/cli-0.1.13-579v6j6d.mjs +4 -0
  84. package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +2 -0
  85. package/dist/chunks/{cli-0.1.11-v6kwgrqc.mjs → cli-0.1.13-5c4fyghf.mjs} +2 -2
  86. package/dist/chunks/{cli-0.1.11-hmfevmz1.mjs → cli-0.1.13-5d4ke9a2.mjs} +2 -2
  87. package/dist/chunks/cli-0.1.13-5j5bg3t2.mjs +2 -0
  88. package/dist/chunks/{cli-0.1.11-p22bdjhv.mjs → cli-0.1.13-5krmz4nd.mjs} +2 -2
  89. package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +2 -0
  90. package/dist/chunks/{cli-0.1.11-r990p54m.mjs → cli-0.1.13-5s4m8qj9.mjs} +5 -5
  91. package/dist/chunks/{cli-0.1.11-b0jasw23.mjs → cli-0.1.13-5ydypzty.mjs} +3 -3
  92. package/dist/chunks/cli-0.1.13-6gmqjyv9.mjs +2 -0
  93. package/dist/chunks/cli-0.1.13-6p0jxfnp.mjs +2 -0
  94. package/dist/chunks/cli-0.1.13-6q3wa261.mjs +2 -0
  95. package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +3 -0
  96. package/dist/chunks/{cli-0.1.11-chnrb9xx.mjs → cli-0.1.13-73yztj5x.mjs} +1 -1
  97. package/dist/chunks/cli-0.1.13-79vtnprb.mjs +2 -0
  98. package/dist/chunks/cli-0.1.13-84tbx1nf.mjs +3 -0
  99. package/dist/chunks/{cli-0.1.11-21epc92q.mjs → cli-0.1.13-85w0nxy9.mjs} +2 -2
  100. package/dist/chunks/{cli-0.1.11-8qrhqvh5.mjs → cli-0.1.13-87xfe2f3.mjs} +2 -2
  101. package/dist/chunks/{cli-0.1.11-bwpemkht.mjs → cli-0.1.13-8gd1x101.mjs} +2 -2
  102. package/dist/chunks/{cli-0.1.11-e5ecf583.mjs → cli-0.1.13-8ppsn0an.mjs} +2 -2
  103. package/dist/chunks/{cli-0.1.11-ft47r1wq.mjs → cli-0.1.13-8pw4n94k.mjs} +2 -2
  104. package/dist/chunks/{cli-0.1.11-tvfkn5mh.mjs → cli-0.1.13-8snyqhjj.mjs} +2 -2
  105. package/dist/chunks/{cli-0.1.11-v8j5bkfs.mjs → cli-0.1.13-8sszxge2.mjs} +1 -1
  106. package/dist/chunks/cli-0.1.13-9043n2e8.mjs +2 -0
  107. package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +2 -0
  108. package/dist/chunks/{cli-0.1.11-mj78w4sp.mjs → cli-0.1.13-9a1hzdsv.mjs} +2 -2
  109. package/dist/chunks/cli-0.1.13-9jajvw4r.mjs +2 -0
  110. package/dist/chunks/cli-0.1.13-a4xga299.mjs +50 -0
  111. package/dist/chunks/cli-0.1.13-ajsw8n7h.mjs +5 -0
  112. package/dist/chunks/cli-0.1.13-apjxy5tn.mjs +2 -0
  113. package/dist/chunks/{cli-0.1.11-0tge574q.mjs → cli-0.1.13-asrdd8dh.mjs} +2 -2
  114. package/dist/chunks/cli-0.1.13-b24n1wvw.mjs +2 -0
  115. package/dist/chunks/{cli-0.1.11-2w8d5vqb.mjs → cli-0.1.13-b3xc1r3k.mjs} +2 -2
  116. package/dist/chunks/cli-0.1.13-b40skdsz.mjs +2 -0
  117. package/dist/chunks/{cli-0.1.11-yrfxpjhr.mjs → cli-0.1.13-bj67mp7n.mjs} +1 -1
  118. package/dist/chunks/{cli-0.1.11-dcswnc8x.mjs → cli-0.1.13-bkg3sva7.mjs} +2 -2
  119. package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +16 -0
  120. package/dist/chunks/{cli-0.1.11-qrq0sw0h.mjs → cli-0.1.13-c5b4ygdq.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.11-jj3s3dxd.mjs → cli-0.1.13-cjmpc9q5.mjs} +2 -2
  122. package/dist/chunks/cli-0.1.13-ck28msre.mjs +2 -0
  123. package/dist/chunks/cli-0.1.13-crcgrfse.mjs +2 -0
  124. package/dist/chunks/{cli-0.1.11-t7dc7fbj.mjs → cli-0.1.13-ct9m5223.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.11-ctjvkg5k.mjs → cli-0.1.13-ctjpk124.mjs} +2 -2
  126. package/dist/chunks/{cli-0.1.11-1xr9et85.mjs → cli-0.1.13-cyj5snev.mjs} +2 -2
  127. package/dist/chunks/{cli-0.1.11-5hrysrcd.mjs → cli-0.1.13-d66pryf3.mjs} +1 -1
  128. package/dist/chunks/{cli-0.1.11-h762f6hr.mjs → cli-0.1.13-d6tr2j76.mjs} +2 -2
  129. package/dist/chunks/cli-0.1.13-d85aba8r.mjs +2 -0
  130. package/dist/chunks/cli-0.1.13-d8wkcw90.mjs +25 -0
  131. package/dist/chunks/{cli-0.1.11-v7bwjqf0.mjs → cli-0.1.13-dag38tkx.mjs} +55 -55
  132. package/dist/chunks/{cli-0.1.11-jye250b3.mjs → cli-0.1.13-dak36ez8.mjs} +1 -1
  133. package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +2 -0
  134. package/dist/chunks/cli-0.1.13-dmgp48vg.mjs +2 -0
  135. package/dist/chunks/cli-0.1.13-e58n0k16.mjs +2 -0
  136. package/dist/chunks/cli-0.1.13-eh7dqeqt.mjs +2 -0
  137. package/dist/chunks/{cli-0.1.11-d4ahh3jz.mjs → cli-0.1.13-f6gfa426.mjs} +2 -2
  138. package/dist/chunks/{cli-0.1.11-pr9jdfxt.mjs → cli-0.1.13-fabrrwqa.mjs} +1 -1
  139. package/dist/chunks/cli-0.1.13-fh5dndvp.mjs +5043 -0
  140. package/dist/chunks/{cli-0.1.11-cezypfbt.mjs → cli-0.1.13-ft5k86va.mjs} +2 -2
  141. package/dist/chunks/{cli-0.1.11-hgsa4nnp.mjs → cli-0.1.13-fwd5b6q8.mjs} +1 -1
  142. package/dist/chunks/{cli-0.1.11-jkrt4znb.mjs → cli-0.1.13-fz5dm31h.mjs} +2 -2
  143. package/dist/chunks/cli-0.1.13-fzb4yx18.mjs +24 -0
  144. package/dist/chunks/{cli-0.1.11-g2202evh.mjs → cli-0.1.13-g2v4avcv.mjs} +1 -1
  145. package/dist/chunks/cli-0.1.13-g654740k.mjs +2 -0
  146. package/dist/chunks/{cli-0.1.11-w3trj52p.mjs → cli-0.1.13-ga4mmwbc.mjs} +2 -2
  147. package/dist/chunks/{cli-0.1.11-nx8a99hz.mjs → cli-0.1.13-gd3nndc7.mjs} +2 -2
  148. package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +2 -0
  149. package/dist/chunks/{cli-0.1.11-z4hb2mcd.mjs → cli-0.1.13-gvz2qezh.mjs} +2 -2
  150. package/dist/chunks/cli-0.1.13-h3vb5402.mjs +2 -0
  151. package/dist/chunks/{cli-0.1.11-qpzn4q17.mjs → cli-0.1.13-h7a36dnk.mjs} +2 -2
  152. package/dist/chunks/cli-0.1.13-hgkwnhwv.mjs +2 -0
  153. package/dist/chunks/cli-0.1.13-hjqn3n5a.mjs +59 -0
  154. package/dist/chunks/cli-0.1.13-hyvpn2ht.mjs +45 -0
  155. package/dist/chunks/{cli-0.1.11-jjgjkqqv.mjs → cli-0.1.13-hzdj03rn.mjs} +2 -2
  156. package/dist/chunks/{cli-0.1.11-91mf8dfr.mjs → cli-0.1.13-j7796v8f.mjs} +2 -2
  157. package/dist/chunks/{cli-0.1.11-z62s8qx1.mjs → cli-0.1.13-jakv6e7b.mjs} +1 -1
  158. package/dist/chunks/{cli-0.1.11-6r97rwda.mjs → cli-0.1.13-jeyjdb2m.mjs} +2 -2
  159. package/dist/chunks/{cli-0.1.11-h7e4rkwk.mjs → cli-0.1.13-jz57znb6.mjs} +2 -2
  160. package/dist/chunks/{cli-0.1.11-sma2xhvv.mjs → cli-0.1.13-ks4x4cct.mjs} +2 -2
  161. package/dist/chunks/cli-0.1.13-ky4z1s1h.mjs +20 -0
  162. package/dist/chunks/{cli-0.1.11-ek6mck0j.mjs → cli-0.1.13-kzn9sspk.mjs} +1 -1
  163. package/dist/chunks/{cli-0.1.11-fs3d0ajf.mjs → cli-0.1.13-m5aaczvd.mjs} +1 -1
  164. package/dist/chunks/{cli-0.1.11-p4eeg584.mjs → cli-0.1.13-m61dhxfs.mjs} +2 -2
  165. package/dist/chunks/{cli-0.1.11-7vz357wm.mjs → cli-0.1.13-mahtf0ay.mjs} +2 -2
  166. package/dist/chunks/cli-0.1.13-mezw1vk8.mjs +18 -0
  167. package/dist/chunks/{cli-0.1.11-egck69w4.mjs → cli-0.1.13-mkw72mxc.mjs} +2 -2
  168. package/dist/chunks/{cli-0.1.11-q58q9jqr.mjs → cli-0.1.13-myd004mr.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.13-mywk7e49.mjs +134 -0
  170. package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +2 -0
  171. package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +2 -0
  172. package/dist/chunks/cli-0.1.13-nc3ce357.mjs +2 -0
  173. package/dist/chunks/{cli-0.1.11-kghg51gb.mjs → cli-0.1.13-nc8ww3rn.mjs} +2 -2
  174. package/dist/chunks/{cli-0.1.11-rvk3t45h.mjs → cli-0.1.13-njvp7vtc.mjs} +2 -2
  175. package/dist/chunks/cli-0.1.13-nsbk0w3b.mjs +2 -0
  176. package/dist/chunks/{cli-0.1.11-jr50ahcv.mjs → cli-0.1.13-nwt2jc8b.mjs} +2 -2
  177. package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.11-56bdg2vw.mjs → cli-0.1.13-p2wyk6z7.mjs} +1 -1
  179. package/dist/chunks/{cli-0.1.11-h7phna9g.mjs → cli-0.1.13-p4nz8zmd.mjs} +1 -1
  180. package/dist/chunks/cli-0.1.13-p625yxtg.mjs +2 -0
  181. package/dist/chunks/{cli-0.1.11-96y2d09c.mjs → cli-0.1.13-p84ry3q5.mjs} +1 -1
  182. package/dist/chunks/{cli-0.1.11-1bryv90w.mjs → cli-0.1.13-pqk4c7m7.mjs} +2 -2
  183. package/dist/chunks/{cli-0.1.11-7qpnfx56.mjs → cli-0.1.13-pw5dks39.mjs} +2 -2
  184. package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +833 -0
  185. package/dist/chunks/{cli-0.1.11-y4c6y87y.mjs → cli-0.1.13-qdtwrf9z.mjs} +2 -2
  186. package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +2 -0
  187. package/dist/chunks/{cli-0.1.11-fptq9w4t.mjs → cli-0.1.13-r09724ac.mjs} +1 -1
  188. package/dist/chunks/{cli-0.1.11-5vqj6k7m.mjs → cli-0.1.13-rftgy1b8.mjs} +2 -2
  189. package/dist/chunks/cli-0.1.13-rjjyq9ej.mjs +2 -0
  190. package/dist/chunks/{cli-0.1.11-gdcvfp9f.mjs → cli-0.1.13-rkaxch5j.mjs} +2 -2
  191. package/dist/chunks/cli-0.1.13-s6w3ej6f.mjs +3 -0
  192. package/dist/chunks/cli-0.1.13-s90a26ca.mjs +2 -0
  193. package/dist/chunks/cli-0.1.13-s928gjab.mjs +5 -0
  194. package/dist/chunks/{cli-0.1.11-7mmhsc3x.mjs → cli-0.1.13-s9fgd2dx.mjs} +2 -2
  195. package/dist/chunks/{cli-0.1.11-3p2f194m.mjs → cli-0.1.13-saz6qetz.mjs} +2 -2
  196. package/dist/chunks/{cli-0.1.11-weav8142.mjs → cli-0.1.13-sgxk7d0h.mjs} +2 -2
  197. package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +2 -0
  198. package/dist/chunks/{cli-0.1.11-6vqzqsdj.mjs → cli-0.1.13-ss1k5gqk.mjs} +2 -2
  199. package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +4 -0
  200. package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +2 -0
  201. package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +2 -0
  202. package/dist/chunks/{cli-0.1.11-w3fp9par.mjs → cli-0.1.13-t5w452fj.mjs} +1 -1
  203. package/dist/chunks/cli-0.1.13-tknwgkgp.mjs +17 -0
  204. package/dist/chunks/{cli-0.1.11-hhs8ke9g.mjs → cli-0.1.13-tq3dqmem.mjs} +2 -2
  205. package/dist/chunks/{cli-0.1.11-h3jatwe1.mjs → cli-0.1.13-v1b9yhsy.mjs} +1 -1
  206. package/dist/chunks/{cli-0.1.11-mstxxz33.mjs → cli-0.1.13-v32xwe08.mjs} +2 -2
  207. package/dist/chunks/{cli-0.1.11-sqqzwx4h.mjs → cli-0.1.13-v467fj8c.mjs} +2 -2
  208. package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +2 -0
  209. package/dist/chunks/{cli-0.1.11-s6yfjcm5.mjs → cli-0.1.13-v6z41645.mjs} +2 -2
  210. package/dist/chunks/cli-0.1.13-vdz792pb.mjs +2 -0
  211. package/dist/chunks/{cli-0.1.11-anvzywg4.mjs → cli-0.1.13-vj532g9m.mjs} +1 -1
  212. package/dist/chunks/{cli-0.1.11-anegs86e.mjs → cli-0.1.13-vn7ckv16.mjs} +1 -1
  213. package/dist/chunks/cli-0.1.13-vwt4hc0t.mjs +2 -0
  214. package/dist/chunks/{cli-0.1.11-bbx2h4x9.mjs → cli-0.1.13-w08qr05m.mjs} +2 -2
  215. package/dist/chunks/cli-0.1.13-w8h6wdez.mjs +2 -0
  216. package/dist/chunks/{cli-0.1.11-d10nfa6g.mjs → cli-0.1.13-wh68ve92.mjs} +2 -2
  217. package/dist/chunks/{cli-0.1.11-bqpcwywz.mjs → cli-0.1.13-wpsqhe6v.mjs} +2 -2
  218. package/dist/chunks/{cli-0.1.11-424zgj5k.mjs → cli-0.1.13-wr0c9hyh.mjs} +2 -2
  219. package/dist/chunks/{cli-0.1.11-7xr2ermy.mjs → cli-0.1.13-wwnez3j0.mjs} +2 -2
  220. package/dist/chunks/{cli-0.1.11-6zkfmcxp.mjs → cli-0.1.13-wxdmc1dd.mjs} +2 -2
  221. package/dist/chunks/{cli-0.1.11-0n77qn68.mjs → cli-0.1.13-wz7v1tqx.mjs} +2 -2
  222. package/dist/chunks/{cli-0.1.11-n24p2y0p.mjs → cli-0.1.13-x3zt8q8r.mjs} +1 -1
  223. package/dist/chunks/{cli-0.1.11-05ngjm8p.mjs → cli-0.1.13-x461rxn2.mjs} +2 -2
  224. package/dist/chunks/cli-0.1.13-x4n4my99.mjs +2 -0
  225. package/dist/chunks/{cli-0.1.11-ktwtyqmp.mjs → cli-0.1.13-xde08pkt.mjs} +2 -2
  226. package/dist/chunks/{cli-0.1.11-5e45zda5.mjs → cli-0.1.13-xkdwvsg9.mjs} +2 -2
  227. package/dist/chunks/{cli-0.1.11-98zcwng9.mjs → cli-0.1.13-xv6wh44y.mjs} +2 -2
  228. package/dist/chunks/{cli-0.1.11-3tqzgd9f.mjs → cli-0.1.13-xvvtja1h.mjs} +2 -2
  229. package/dist/chunks/cli-0.1.13-xwkys72y.mjs +12 -0
  230. package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +4 -0
  231. package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +2 -0
  232. package/dist/chunks/{cli-0.1.11-be28ty4m.mjs → cli-0.1.13-y7aqqca1.mjs} +1 -1
  233. package/dist/chunks/{cli-0.1.11-zb2sa3e2.mjs → cli-0.1.13-yd536yw4.mjs} +7 -10
  234. package/dist/chunks/{cli-0.1.11-zfnmx1ny.mjs → cli-0.1.13-yeb03vme.mjs} +2 -2
  235. package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +2 -0
  236. package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +2 -0
  237. package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +2 -0
  238. package/dist/chunks/cli-0.1.13-z387wpj9.mjs +2 -0
  239. package/dist/chunks/cli-0.1.13-zgnanj3x.mjs +12 -0
  240. package/dist/chunks/cli-0.1.13-zm2zgw7m.mjs +3 -0
  241. package/dist/chunks/cli-0.1.13-zmft0mps.mjs +2 -0
  242. package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +1 -0
  243. package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +1 -0
  244. package/dist/chunks/compact-0.1.13-603r2t03.mjs +3 -0
  245. package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +1 -0
  246. package/dist/chunks/{config-0.1.11-cqy7fnab.mjs → config-0.1.13-q8fcew9w.mjs} +1 -1
  247. package/dist/chunks/context-0.1.13-5fz212w3.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +1 -0
  249. package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +1 -0
  250. package/dist/chunks/copy-0.1.13-03jy5tfn.mjs +9 -0
  251. package/dist/chunks/cost-0.1.13-zch21h6x.mjs +1 -0
  252. package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +1 -0
  253. package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +1 -0
  254. package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +1 -0
  255. package/dist/chunks/detection-0.1.13-k001d88v.mjs +1 -0
  256. package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +1 -0
  257. package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +1 -0
  258. package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +1 -0
  259. package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +8 -0
  260. package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +1 -0
  261. package/dist/chunks/environments-0.1.13-x1xw45es.mjs +1 -0
  262. package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +1 -0
  263. package/dist/chunks/export-0.1.13-sq3jk66f.mjs +2 -0
  264. package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +1 -0
  265. package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +1 -0
  266. package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +1 -0
  267. package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +14 -0
  268. package/dist/chunks/{firstPartyEventLogger-0.1.11-y7qkhdj6.mjs → firstPartyEventLogger-0.1.13-6m3fvkcj.mjs} +1 -1
  269. package/dist/chunks/git-0.1.13-2rp45xgd.mjs +1 -0
  270. package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +1 -0
  271. package/dist/chunks/{growthbook-0.1.11-2w2b1mzd.mjs → growthbook-0.1.13-sramqmzv.mjs} +1 -1
  272. package/dist/chunks/{heapdump-0.1.11-b216wzt7.mjs → heapdump-0.1.13-3n7hv372.mjs} +1 -1
  273. package/dist/chunks/help-0.1.13-knrgw1dq.mjs +1 -0
  274. package/dist/chunks/{hookChains-0.1.11-jp8f82q7.mjs → hookChains-0.1.13-te9q466p.mjs} +2 -2
  275. package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +1 -0
  276. package/dist/chunks/hooks-0.1.13-g6kx1mk3.mjs +79 -0
  277. package/dist/chunks/ide-0.1.13-ke3v5mb7.mjs +3 -0
  278. package/dist/chunks/{image-processor-napi-0.1.11-dpg3ygnw.mjs → image-processor-napi-0.1.13-h7fg935p.mjs} +1 -1
  279. package/dist/chunks/{index-0.1.11-b2q967nq.mjs → index-0.1.13-018yhz6j.mjs} +1 -1
  280. package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +1 -0
  281. package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +1 -0
  282. package/dist/chunks/{index-0.1.11-wbhj1ny7.mjs → index-0.1.13-3zjrdjrv.mjs} +1 -1
  283. package/dist/chunks/index-0.1.13-4cjfx282.mjs +1 -0
  284. package/dist/chunks/index-0.1.13-5g9shrc4.mjs +9 -0
  285. package/dist/chunks/index-0.1.13-7c5y7cbf.mjs +2 -0
  286. package/dist/chunks/index-0.1.13-7fm7tk25.mjs +1 -0
  287. package/dist/chunks/index-0.1.13-98j8cxkv.mjs +1 -0
  288. package/dist/chunks/index-0.1.13-9meb2pab.mjs +1 -0
  289. package/dist/chunks/index-0.1.13-a06q9ad9.mjs +2 -0
  290. package/dist/chunks/index-0.1.13-bc4sh2m1.mjs +1 -0
  291. package/dist/chunks/index-0.1.13-c29wq5dx.mjs +5 -0
  292. package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +1 -0
  293. package/dist/chunks/index-0.1.13-h4wytk4z.mjs +1 -0
  294. package/dist/chunks/index-0.1.13-j9c4bjzh.mjs +1 -0
  295. package/dist/chunks/index-0.1.13-m9m61529.mjs +1 -0
  296. package/dist/chunks/index-0.1.13-mc5ag4wj.mjs +1 -0
  297. package/dist/chunks/index-0.1.13-nm8pkj0f.mjs +9 -0
  298. package/dist/chunks/index-0.1.13-psynrf7p.mjs +10 -0
  299. package/dist/chunks/index-0.1.13-qjt3h799.mjs +1 -0
  300. package/dist/chunks/index-0.1.13-tvt8fxrq.mjs +1 -0
  301. package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +1 -0
  302. package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +1 -0
  303. package/dist/chunks/{insights-0.1.11-4yjg2bxs.mjs → insights-0.1.13-t81417ej.mjs} +3 -3
  304. package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +1 -0
  305. package/dist/chunks/install-github-app-0.1.13-yvnx16za.mjs +149 -0
  306. package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +1 -0
  307. package/dist/chunks/instrumentation-0.1.13-bvt39wrk.mjs +12 -0
  308. package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +1 -0
  309. package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +2 -0
  310. package/dist/chunks/{knowledge-0.1.11-wpjw8ybd.mjs → knowledge-0.1.13-9a2md3fm.mjs} +1 -1
  311. package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +1 -0
  312. package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +1 -0
  313. package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +1 -0
  314. package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +1 -0
  315. package/dist/chunks/main-0.1.13-e5tbkphz.mjs +1 -0
  316. package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +1 -0
  317. package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +4 -0
  318. package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +1 -0
  319. package/dist/chunks/mcp-0.1.13-x9twbpqk.mjs +17 -0
  320. package/dist/chunks/{mcpServer-0.1.11-czg51mvy.mjs → mcpServer-0.1.13-jf5dhyys.mjs} +1 -1
  321. package/dist/chunks/{mcpb-0.1.11-czkze48a.mjs → mcpb-0.1.13-e55321kr.mjs} +1 -1
  322. package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +3 -0
  323. package/dist/chunks/mobile-0.1.13-pzekbte3.mjs +2 -0
  324. package/dist/chunks/model-0.1.13-a42465ep.mjs +1 -0
  325. package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +2 -0
  326. package/dist/chunks/{oauth-0.1.11-jkkd9wzq.mjs → oauth-0.1.13-bk91rvfd.mjs} +1 -1
  327. package/dist/chunks/{openaiShim-0.1.11-b9yqnc9c.mjs → openaiShim-0.1.13-c9z5r4zj.mjs} +2 -2
  328. package/dist/chunks/{output-style-0.1.11-zwxn1knb.mjs → output-style-0.1.13-c4ah6hc0.mjs} +1 -1
  329. package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +1 -0
  330. package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +1 -0
  331. package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +1 -0
  332. package/dist/chunks/permissions-0.1.13-c03934ka.mjs +3 -0
  333. package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +1 -0
  334. package/dist/chunks/{plist-0.1.11-0sn6nqv3.mjs → plist-0.1.13-f3bfg2tf.mjs} +1 -1
  335. package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +29 -0
  336. package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +1 -0
  337. package/dist/chunks/{plugins-0.1.11-t3pgcpcj.mjs → plugins-0.1.13-1nvjxkbc.mjs} +2 -2
  338. package/dist/chunks/{print-0.1.11-y9vz77h9.mjs → print-0.1.13-g2dmfpmq.mjs} +10 -10
  339. package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +1 -0
  340. package/dist/chunks/{process-0.1.11-s6jnx5xw.mjs → process-0.1.13-ycxbd26n.mjs} +1 -1
  341. package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +1 -0
  342. package/dist/chunks/processSlashCommand-0.1.13-16gwwvqz.mjs +9 -0
  343. package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +1 -0
  344. package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +1 -0
  345. package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +1 -0
  346. package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +2 -0
  347. package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +1 -0
  348. package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +1 -0
  349. package/dist/chunks/registry-0.1.13-e33aasxk.mjs +1 -0
  350. package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +5 -0
  351. package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +2 -0
  352. package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +1 -0
  353. package/dist/chunks/{remoteBridgeCore-0.1.11-hn821p07.mjs → remoteBridgeCore-0.1.13-sq5rr5x0.mjs} +1 -1
  354. package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +1 -0
  355. package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +1 -0
  356. package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +1 -0
  357. package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +2 -0
  358. package/dist/chunks/{rewind-0.1.11-t4mfk815.mjs → rewind-0.1.13-zxcfrje2.mjs} +1 -1
  359. package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +1 -0
  360. package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +1 -0
  361. package/dist/chunks/session-0.1.13-cjn060z1.mjs +2 -0
  362. package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +1 -0
  363. package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +1 -0
  364. package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +5 -0
  365. package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +1 -0
  366. package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +1 -0
  367. package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +1 -0
  368. package/dist/chunks/{state-0.1.11-3fjxywyv.mjs → state-0.1.13-cv8jd04r.mjs} +1 -1
  369. package/dist/chunks/{stats-0.1.11-hxzms6gg.mjs → stats-0.1.13-yrtt99gr.mjs} +6 -6
  370. package/dist/chunks/status-0.1.13-4x7h3dec.mjs +1 -0
  371. package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +1 -0
  372. package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +1 -0
  373. package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +1 -0
  374. package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +1 -0
  375. package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +1 -0
  376. package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +1 -0
  377. package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +1 -0
  378. package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +1 -0
  379. package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +1 -0
  380. package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +1 -0
  381. package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +1 -0
  382. package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +1 -0
  383. package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +1 -0
  384. package/dist/chunks/{turndown.cjs-0.1.11-brwqmyse.mjs → turndown.cjs-0.1.13-2wbn8j6y.mjs} +1 -1
  385. package/dist/chunks/ultrareviewCommand-0.1.13-sj6asgpk.mjs +4 -0
  386. package/dist/chunks/{update-0.1.11-p33kxpg4.mjs → update-0.1.13-sx7hc0kj.mjs} +11 -11
  387. package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +1 -0
  388. package/dist/chunks/{upstreamproxy-0.1.11-vk16qw88.mjs → upstreamproxy-0.1.13-pwxv6kww.mjs} +1 -1
  389. package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +1 -0
  390. package/dist/chunks/util-0.1.13-ef9r7w41.mjs +1 -0
  391. package/dist/chunks/utils-0.1.13-03dvz81t.mjs +1 -0
  392. package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +1 -0
  393. package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +1 -0
  394. package/dist/chunks/{wiki-0.1.11-v0twhcnn.mjs → wiki-0.1.13-regg8ff2.mjs} +1 -1
  395. package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +1 -0
  396. package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +1 -0
  397. package/dist/chunks/{wrapper-0.1.11-rt9xsnjh.mjs → wrapper-0.1.13-8nsef109.mjs} +1 -1
  398. package/dist/claudio-vscode.vsix +0 -0
  399. package/dist/cli.mjs +3 -3
  400. package/package.json +5 -19
  401. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
  402. package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
  403. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
  404. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
  405. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
  406. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
  407. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
  408. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
  409. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
  410. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
  411. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
  412. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
  413. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
  414. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
  415. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
  416. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
  417. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
  418. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
  419. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
  420. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
  421. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
  422. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
  423. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
  424. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
  425. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
  426. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
  427. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
  428. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
  429. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
  430. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
  431. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
  432. package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
  433. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
  434. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
  435. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
  436. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
  437. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
  438. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
  439. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
  440. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
  441. package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
  442. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
  443. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
  444. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
  445. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
  446. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
  447. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
  448. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
  449. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
  450. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
  451. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
  452. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
  453. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
  454. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
  455. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
  456. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
  457. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
  458. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
  459. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
  460. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
  461. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
  462. package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
  463. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
  464. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
  465. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
  466. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
  467. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
  468. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
  469. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
  470. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
  471. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
  472. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
  473. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
  474. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
  475. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
  476. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
  477. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
  478. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
  479. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
  480. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
  481. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
  482. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
  483. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
  484. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
  485. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
  486. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
  487. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
  488. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
  489. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
  490. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
  491. package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
  492. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
  493. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
  494. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
  495. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
  496. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
  497. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
  498. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
  499. package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
  500. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
  501. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
  502. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
  503. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
  504. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
  505. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
  506. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
  507. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
  508. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
  509. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
  510. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
  511. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
  512. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
  513. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
  514. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
  515. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
  516. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
  517. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
  518. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
  519. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
  520. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
  521. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
  522. package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
  523. package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
  524. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
  525. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
  526. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
  527. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
  528. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
  529. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
  530. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
  531. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
  532. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
  533. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
  534. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
  535. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
  536. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
  537. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
  538. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
  539. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
  540. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
  541. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
  542. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
  543. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
  544. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
  545. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
  546. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
  547. package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
  548. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
  549. package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
  550. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
  551. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
  552. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
  553. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
  554. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
  555. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
  556. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
  557. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
  558. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
  559. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
  560. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
  561. package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
  562. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
  563. package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
  564. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
  565. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
  566. package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
  567. package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
  568. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
  569. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
  570. package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
  571. package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
  572. package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
  573. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
  574. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
  575. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
  576. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
  577. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
  578. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
  579. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
  580. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
  581. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
  582. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
  583. package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
  584. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
  585. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
  586. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
  587. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
  588. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
  589. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
  590. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
  591. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
  592. package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
  593. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
  594. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
  595. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
  596. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
  597. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
  598. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
  599. package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
  600. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
  601. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
  602. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
  603. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
  604. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
  605. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
  606. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
  607. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
  608. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
  609. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
  610. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
  611. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
  612. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
  613. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
  614. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
  615. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
  616. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
  617. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
  618. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
  619. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
  620. package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
  621. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
  622. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
  623. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
  624. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
  625. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
  626. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
  627. package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
  628. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
  629. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
  630. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
  631. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
  632. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
  633. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
  634. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
  635. package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
  636. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
  637. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
  638. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
  639. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
  640. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
  641. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
  642. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
  643. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
  644. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
  645. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
  646. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
  647. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
  648. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
  649. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
  650. /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.13-fdmvysv0.mjs} +0 -0
  651. /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.13-gs7rcvne.mjs} +0 -0
  652. /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.13-m5c2efjx.mjs} +0 -0
@@ -0,0 +1,149 @@
1
+ import{Fy as H0,Gy as nf,KK as t,LK as G0,Yv as Hf,Zv as Sf,rv as R0,sv as _f,tv as qf,vv as jf}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import{IP as d0,JP as w0,KP as B0,LP as vf,MP as U0,NP as Of,QP as c0,RP as lf}from"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import{fS as Ef,gS as fq}from"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import{$S as J0,LS as e,MS as D0,ZS as z0,_S as s}from"./cli-0.1.13-g654740k.mjs";import{$U as L0,AV as j,TU as f0,VU as Q,XU as X,jT as r,jU as zf,oU as of,sT as I0}from"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import{vX as T,wX as d,xX as I,yX as g}from"./cli-0.1.13-ck28msre.mjs";import{zX as Y0}from"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import{WX as V0,XX as Uf}from"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import{R4 as Gf,p4 as y0,q5 as Mf,r4 as Nf}from"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import{Mba as Bf,S7 as Q0,W8 as gf,X7 as Df,Y7 as M0,Z7 as Jf,_8 as ef,a8 as m0,b8 as sf,d8 as o,f8 as wf,gca as af,jaa as kf,raa as tf}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import{qga as R,rga as F0}from"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Tna as _,Xna as h}from"./cli-0.1.13-bj67mp7n.mjs";function hf(W){if(W.pending)return I(X,{children:["Press ",W.keyName," again to exit"]});return I(U0,{children:[d(d0,{shortcut:"↑↓",action:"navigate"}),d(d0,{shortcut:"Space",action:"toggle"}),d(d0,{shortcut:"Enter",action:"confirm"}),d(B0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}function A0(W){let f=C0.c(14),{onSubmit:q,defaultSelections:Y}=W,[D,z]=K0.useState(!1),M;if(f[0]!==q)M=(N)=>{if(N.length===0){z(!0);return}z(!1),q(N)},f[0]=q,f[1]=M;else M=f[1];let L=M,H;if(f[2]===Symbol.for("react.memo_cache_sentinel"))H=()=>{z(!1)},f[2]=H;else H=f[2];let V=H,Z;if(f[3]===Symbol.for("react.memo_cache_sentinel"))Z=()=>{z(!0)},f[3]=Z;else Z=f[3];let F=Z,y;if(f[4]===Symbol.for("react.memo_cache_sentinel"))y=d(Q,{children:I(X,{dimColor:!0,children:["More workflow examples (issue triage, CI fixes, etc.) at:"," ",d(L0,{url:"https://github.com/anthropics/claude-code-action/blob/main/examples/",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/"})]})}),f[4]=y;else y=f[4];let m;if(f[5]===Symbol.for("react.memo_cache_sentinel"))m=Tf.map(pf),f[5]=m;else m=f[5];let b;if(f[6]!==Y||f[7]!==L)b=d(R0,{options:m,defaultValue:Y,onSubmit:L,onChange:V,onCancel:F,hideIndexes:!0}),f[6]=Y,f[7]=L,f[8]=b;else b=f[8];let P;if(f[9]!==D)P=D&&d(Q,{children:d(X,{color:"error",children:"You must select at least one workflow to continue"})}),f[9]=D,f[10]=P;else P=f[10];let C;if(f[11]!==b||f[12]!==P)C=I(c0,{title:"Select GitHub workflows to install",subtitle:"We'll create a workflow file in your repository for each one you select.",onCancel:F,inputGuide:hf,children:[y,b,P]}),f[11]=b,f[12]=P,f[13]=C;else C=f[13];return C}function pf(W){return{label:W.label,value:W.value}}var C0,K0,Tf;var g0=h(()=>{j();vf();_f();Of();lf();w0();g();C0=_(r(),1),K0=_(Y0(),1),Tf=[{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 k0="Add Claude Code GitHub Workflow",x="https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md",N0=`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
+ `,E0=`## \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!`,v0=`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 X0=()=>{};function _0(W){let f=O0.c(55),{existingApiKey:q,apiKeyOrOAuthToken:Y,onApiKeyChange:D,onSubmit:z,onToggleUseExistingKey:M,onCreateOAuthToken:L,selectedOption:H,onSelectOption:V}=W,Z=H===void 0?q?"existing":L?"oauth":"new":H,[F,y]=l0.useState(0),m=e(),[b]=I0(),P;if(f[0]!==q||f[1]!==L||f[2]!==V||f[3]!==M||f[4]!==Z)P=()=>{if(Z==="new"&&L)V?.("oauth");else if(Z==="oauth"&&q)V?.("existing"),M(!0)},f[0]=q,f[1]=L,f[2]=V,f[3]=M,f[4]=Z,f[5]=P;else P=f[5];let C=P,N;if(f[6]!==L||f[7]!==V||f[8]!==M||f[9]!==Z)N=()=>{if(Z==="existing")V?.(L?"oauth":"new"),M(!1);else if(Z==="oauth")V?.("new")},f[6]=L,f[7]=V,f[8]=M,f[9]=Z,f[10]=N;else N=f[10];let E=N,v;if(f[11]!==L||f[12]!==z||f[13]!==Z)v=()=>{if(Z==="oauth"&&L)L();else z()},f[11]=L,f[12]=z,f[13]=Z,f[14]=v;else v=f[14];let O=v,B=Z==="new",K;if(f[15]!==O||f[16]!==E||f[17]!==C)K={"confirm:previous":C,"confirm:next":E,"confirm:yes":O},f[15]=O,f[16]=E,f[17]=C,f[18]=K;else K=f[18];let J=!B,G;if(f[19]!==J)G={context:"Confirmation",isActive:J},f[19]=J,f[20]=G;else G=f[20];s(K,G);let w;if(f[21]!==E||f[22]!==C)w={"confirm:previous":C,"confirm:next":E},f[21]=E,f[22]=C,f[23]=w;else w=f[23];let U;if(f[24]!==B)U={context:"Confirmation",isActive:B},f[24]=B,f[25]=U;else U=f[25];s(w,U);let c;if(f[26]===Symbol.for("react.memo_cache_sentinel"))c=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Choose API key"})]}),f[26]=c;else c=f[26];let k;if(f[27]!==q||f[28]!==Z||f[29]!==b)k=q&&d(Q,{marginBottom:1,children:I(X,{children:[Z==="existing"?f0("success",b)("> "):" ","Use your existing Claude Code API key"]})}),f[27]=q,f[28]=Z,f[29]=b,f[30]=k;else k=f[30];let A;if(f[31]!==L||f[32]!==Z||f[33]!==b)A=L&&d(Q,{marginBottom:1,children:I(X,{children:[Z==="oauth"?f0("success",b)("> "):" ","Create a long-lived token with your Claude subscription"]})}),f[31]=L,f[32]=Z,f[33]=b,f[34]=A;else A=f[34];let l;if(f[35]!==Z||f[36]!==b)l=Z==="new"?f0("success",b)("> "):" ",f[35]=Z,f[36]=b,f[37]=l;else l=f[37];let $;if(f[38]!==l)$=d(Q,{marginBottom:1,children:I(X,{children:[l,"Enter a new API key"]})}),f[38]=l,f[39]=$;else $=f[39];let p;if(f[40]!==Y||f[41]!==F||f[42]!==D||f[43]!==z||f[44]!==Z||f[45]!==m)p=Z==="new"&&d(t,{value:Y,onChange:D,onSubmit:z,onPaste:D,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}),f[40]=Y,f[41]=F,f[42]=D,f[43]=z,f[44]=Z,f[45]=m,f[46]=p;else p=f[46];let u;if(f[47]!==k||f[48]!==A||f[49]!==$||f[50]!==p)u=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[c,k,A,$,p]}),f[47]=k,f[48]=A,f[49]=$,f[50]=p,f[51]=u;else u=f[51];let n;if(f[52]===Symbol.for("react.memo_cache_sentinel"))n=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"})}),f[52]=n;else n=f[52];let a;if(f[53]!==u)a=I(T,{children:[u,n]}),f[53]=u,f[54]=a;else a=f[54];return a}var O0,l0;var T0=h(()=>{G0();D0();j();J0();g();O0=_(r(),1),l0=_(Y0(),1)});function p0(W){let f=i0.c(42),{useExistingSecret:q,secretName:Y,onToggleUseExistingSecret:D,onSecretNameChange:z,onSubmit:M}=W,[L,H]=h0.useState(0),V=e(),[Z]=I0(),F;if(f[0]!==D)F=()=>D(!0),f[0]=D,f[1]=F;else F=f[1];let y=F,m;if(f[2]!==D)m=()=>D(!1),f[2]=D,f[3]=m;else m=f[3];let b=m,P;if(f[4]!==b||f[5]!==y||f[6]!==M)P={"confirm:previous":y,"confirm:next":b,"confirm:yes":M},f[4]=b,f[5]=y,f[6]=M,f[7]=P;else P=f[7];let C;if(f[8]!==q)C={context:"Confirmation",isActive:q},f[8]=q,f[9]=C;else C=f[9];s(P,C);let N;if(f[10]!==b||f[11]!==y)N={"confirm:previous":y,"confirm:next":b},f[10]=b,f[11]=y,f[12]=N;else N=f[12];let E=!q,v;if(f[13]!==E)v={context:"Confirmation",isActive:E},f[13]=E,f[14]=v;else v=f[14];s(N,v);let O;if(f[15]===Symbol.for("react.memo_cache_sentinel"))O=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Setup API key secret"})]}),f[15]=O;else O=f[15];let B;if(f[16]===Symbol.for("react.memo_cache_sentinel"))B=d(Q,{marginBottom:1,children:d(X,{color:"warning",children:"ANTHROPIC_API_KEY already exists in repository secrets!"})}),f[16]=B;else B=f[16];let K;if(f[17]===Symbol.for("react.memo_cache_sentinel"))K=d(Q,{marginBottom:1,children:d(X,{children:"Would you like to:"})}),f[17]=K;else K=f[17];let J;if(f[18]!==Z||f[19]!==q)J=q?f0("success",Z)("> "):" ",f[18]=Z,f[19]=q,f[20]=J;else J=f[20];let G;if(f[21]!==J)G=d(Q,{marginBottom:1,children:I(X,{children:[J,"Use the existing API key"]})}),f[21]=J,f[22]=G;else G=f[22];let w;if(f[23]!==Z||f[24]!==q)w=!q?f0("success",Z)("> "):" ",f[23]=Z,f[24]=q,f[25]=w;else w=f[25];let U;if(f[26]!==w)U=d(Q,{marginBottom:1,children:I(X,{children:[w,"Create a new secret with a different name"]})}),f[26]=w,f[27]=U;else U=f[27];let c;if(f[28]!==L||f[29]!==z||f[30]!==M||f[31]!==Y||f[32]!==V||f[33]!==q)c=!q&&I(T,{children:[d(Q,{marginBottom:1,children:d(X,{children:"Enter new secret name (alphanumeric with underscores):"})}),d(t,{value:Y,onChange:z,onSubmit:M,focus:!0,placeholder:"e.g., CLAUDE_API_KEY",columns:V.columns,cursorOffset:L,onChangeCursorOffset:H,showCursor:!0})]}),f[28]=L,f[29]=z,f[30]=M,f[31]=Y,f[32]=V,f[33]=q,f[34]=c;else c=f[34];let k;if(f[35]!==G||f[36]!==U||f[37]!==c)k=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[O,B,K,G,U,c]}),f[35]=G,f[36]=U,f[37]=c,f[38]=k;else k=f[38];let A;if(f[39]===Symbol.for("react.memo_cache_sentinel"))A=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"})}),f[39]=A;else A=f[39];let l;if(f[40]!==k)l=I(T,{children:[k,A]}),f[40]=k,f[41]=l;else l=f[41];return l}var i0,h0;var u0=h(()=>{G0();D0();j();J0();g();i0=_(r(),1),h0=_(Y0(),1)});function o0(){let W=j0.c(1),f;if(W[0]===Symbol.for("react.memo_cache_sentinel"))f=d(X,{children:"Checking GitHub CLI installation…"}),W[0]=f;else f=W[0];return f}var j0;var S0=h(()=>{j();g();j0=_(r(),1)});function a0(W){let f=n0.c(49),{currentRepo:q,useCurrentRepo:Y,repoUrl:D,onRepoUrlChange:z,onSubmit:M,onToggleUseCurrentRepo:L}=W,[H,V]=W0.useState(0),[Z,F]=W0.useState(!1),m=e().columns,b;if(f[0]!==q||f[1]!==M||f[2]!==D||f[3]!==Y)b=()=>{if(!(Y?q:D)?.trim()){F(!0);return}M()},f[0]=q,f[1]=M,f[2]=D,f[3]=Y,f[4]=b;else b=f[4];let P=b,C=!Y||!q,N;if(f[5]!==L)N=()=>{L(!0),F(!1)},f[5]=L,f[6]=N;else N=f[6];let E=N,v;if(f[7]!==L)v=()=>{L(!1),F(!1)},f[7]=L,f[8]=v;else v=f[8];let O=v,B;if(f[9]!==O||f[10]!==E||f[11]!==P)B={"confirm:previous":E,"confirm:next":O,"confirm:yes":P},f[9]=O,f[10]=E,f[11]=P,f[12]=B;else B=f[12];let K=!C,J;if(f[13]!==K)J={context:"Confirmation",isActive:K},f[13]=K,f[14]=J;else J=f[14];s(B,J);let G;if(f[15]!==O||f[16]!==E)G={"confirm:previous":E,"confirm:next":O},f[15]=O,f[16]=E,f[17]=G;else G=f[17];let w;if(f[18]!==C)w={context:"Confirmation",isActive:C},f[18]=C,f[19]=w;else w=f[19];s(G,w);let U;if(f[20]===Symbol.for("react.memo_cache_sentinel"))U=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Select GitHub repository"})]}),f[20]=U;else U=f[20];let c;if(f[21]!==q||f[22]!==Y)c=q&&d(Q,{marginBottom:1,children:I(X,{bold:Y,color:Y?"permission":void 0,children:[Y?"> ":" ","Use current repository: ",q]})}),f[21]=q,f[22]=Y,f[23]=c;else c=f[23];let k=!Y||!q,A=!Y||!q?"permission":void 0,l=!Y||!q?"> ":" ",$=q?"Enter a different repository":"Enter repository",p;if(f[24]!==k||f[25]!==A||f[26]!==l||f[27]!==$)p=d(Q,{marginBottom:1,children:I(X,{bold:k,color:A,children:[l,$]})}),f[24]=k,f[25]=A,f[26]=l,f[27]=$,f[28]=p;else p=f[28];let u;if(f[29]!==q||f[30]!==H||f[31]!==P||f[32]!==z||f[33]!==D||f[34]!==m||f[35]!==Y)u=(!Y||!q)&&d(Q,{marginLeft:2,marginBottom:1,children:d(t,{value:D,onChange:(P0)=>{z(P0),F(!1)},onSubmit:P,focus:!0,placeholder:"Enter a repo as owner/repo or https://github.com/owner/repo…",columns:m,cursorOffset:H,onChangeCursorOffset:V,showCursor:!0})}),f[29]=q,f[30]=H,f[31]=P,f[32]=z,f[33]=D,f[34]=m,f[35]=Y,f[36]=u;else u=f[36];let n;if(f[37]!==c||f[38]!==p||f[39]!==u)n=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[U,c,p,u]}),f[37]=c,f[38]=p,f[39]=u,f[40]=n;else n=f[40];let a;if(f[41]!==Z)a=Z&&d(Q,{marginLeft:3,marginBottom:1,children:d(X,{color:"error",children:"Please enter a repository name to continue"})}),f[41]=Z,f[42]=a;else a=f[42];let b0=q?"↑/↓ to select · ":"",q0;if(f[43]!==b0)q0=d(Q,{marginLeft:3,children:I(X,{dimColor:!0,children:[b0,"Enter to continue"]})}),f[43]=b0,f[44]=q0;else q0=f[44];let Z0;if(f[45]!==n||f[46]!==a||f[47]!==q0)Z0=I(T,{children:[n,a,q0]}),f[45]=n,f[46]=a,f[47]=q0,f[48]=Z0;else Z0=f[48];return Z0}var n0,W0;var r0=h(()=>{G0();D0();j();J0();g();n0=_(r(),1),W0=_(Y0(),1)});function x0(W){let f=$0.c(10),{currentWorkflowInstallStep:q,secretExists:Y,useExistingSecret:D,secretName:z,skipWorkflow:M,selectedWorkflows:L}=W,H=M===void 0?!1:M,V;if(f[0]!==Y||f[1]!==z||f[2]!==L||f[3]!==H||f[4]!==D)V=H?["Getting repository information",Y&&D?"Using existing API key secret":`Setting up ${z} secret`]:["Getting repository information","Creating branch",L.length>1?"Creating workflow files":"Creating workflow file",Y&&D?"Using existing API key secret":`Setting up ${z} secret`,"Opening pull request page"],f[0]=Y,f[1]=z,f[2]=L,f[3]=H,f[4]=D,f[5]=V;else V=f[5];let Z=V,F;if(f[6]===Symbol.for("react.memo_cache_sentinel"))F=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Create GitHub Actions workflow"})]}),f[6]=F;else F=f[6];let y;if(f[7]!==q||f[8]!==Z)y=d(T,{children:I(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 d(Q,{children:I(X,{color:P==="completed"?"success":P==="in-progress"?"warning":void 0,children:[P==="completed"?"✓ ":"",m,P==="in-progress"?"…":""]})},b)})]})}),f[7]=q,f[8]=Z,f[9]=y;else y=f[9];return y}var $0;var s0=h(()=>{j();g();$0=_(r(),1)});function t0(W){let f=e0.c(15),{error:q,errorReason:Y,errorInstructions:D}=W,z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=d(Q,{flexDirection:"column",marginBottom:1,children:d(X,{bold:!0,children:"Install GitHub App"})}),f[0]=z;else z=f[0];let M;if(f[1]!==q)M=I(X,{color:"error",children:["Error: ",q]}),f[1]=q,f[2]=M;else M=f[2];let L;if(f[3]!==Y)L=Y&&d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["Reason: ",Y]})}),f[3]=Y,f[4]=L;else L=f[4];let H;if(f[5]!==D)H=D&&D.length>0&&I(Q,{flexDirection:"column",marginTop:1,children:[d(X,{dimColor:!0,children:"How to fix:"}),D.map(uf)]}),f[5]=D,f[6]=H;else H=f[6];let V;if(f[7]===Symbol.for("react.memo_cache_sentinel"))V=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["For manual setup instructions, see:"," ",d(X,{color:"claude",children:x})]})}),f[7]=V;else V=f[7];let Z;if(f[8]!==M||f[9]!==L||f[10]!==H)Z=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[z,M,L,H,V]}),f[8]=M,f[9]=L,f[10]=H,f[11]=Z;else Z=f[11];let F;if(f[12]===Symbol.for("react.memo_cache_sentinel"))F=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"Press any key to exit"})}),f[12]=F;else F=f[12];let y;if(f[13]!==Z)y=I(T,{children:[Z,F]}),f[13]=Z,f[14]=y;else y=f[14];return y}function uf(W,f){return I(Q,{marginLeft:2,children:[d(X,{dimColor:!0,children:"• "}),d(X,{children:W})]},f)}var e0;var ff=h(()=>{X0();j();g();e0=_(r(),1)});function Yf(W){let f=df.c(16),{repoName:q,onSelectAction:Y}=W,D;if(f[0]===Symbol.for("react.memo_cache_sentinel"))D=[{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]=D;else D=f[0];let z=D,M;if(f[1]!==Y)M=(C)=>{Y(C)},f[1]=Y,f[2]=M;else M=f[2];let L=M,H;if(f[3]!==Y)H=()=>{Y("exit")},f[3]=Y,f[4]=H;else H=f[4];let V=H,Z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Z=d(X,{bold:!0,children:"Existing Workflow Found"}),f[5]=Z;else Z=f[5];let F;if(f[6]!==q)F=I(Q,{flexDirection:"column",marginBottom:1,children:[Z,I(X,{dimColor:!0,children:["Repository: ",q]})]}),f[6]=q,f[7]=F;else F=f[7];let y;if(f[8]===Symbol.for("react.memo_cache_sentinel"))y=I(Q,{flexDirection:"column",marginBottom:1,children:[I(X,{children:["A Claude workflow file already exists at"," ",d(X,{color:"claude",children:".github/workflows/claude.yml"})]}),d(X,{dimColor:!0,children:"What would you like to do?"})]}),f[8]=y;else y=f[8];let m;if(f[9]!==V||f[10]!==L)m=d(Q,{flexDirection:"column",children:d(qf,{options:z,onChange:L,onCancel:V})}),f[9]=V,f[10]=L,f[11]=m;else m=f[11];let b;if(f[12]===Symbol.for("react.memo_cache_sentinel"))b=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["View the latest workflow template at:"," ",d(X,{color:"claude",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml"})]})}),f[12]=b;else b=f[12];let P;if(f[13]!==F||f[14]!==m)P=I(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[F,y,m,b]}),f[13]=F,f[14]=m,f[15]=P;else P=f[15];return P}var df;var Xf=h(()=>{jf();j();g();df=_(r(),1)});function Zf(W){let f=Qf.c(12),{repoUrl:q,onSubmit:Y}=W,D;if(f[0]===Symbol.for("react.memo_cache_sentinel"))D={context:"Confirmation"},f[0]=D;else D=f[0];z0("confirm:yes",Y,D);let z;if(f[1]===Symbol.for("react.memo_cache_sentinel"))z=d(Q,{flexDirection:"column",marginBottom:1,children:d(X,{bold:!0,children:"Install the Claude GitHub App"})}),f[1]=z;else z=f[1];let M;if(f[2]===Symbol.for("react.memo_cache_sentinel"))M=d(Q,{marginBottom:1,children:d(X,{children:"Opening browser to install the Claude GitHub App…"})}),f[2]=M;else M=f[2];let L;if(f[3]===Symbol.for("react.memo_cache_sentinel"))L=d(Q,{marginBottom:1,children:d(X,{children:"If your browser doesn't open automatically, visit:"})}),f[3]=L;else L=f[3];let H;if(f[4]===Symbol.for("react.memo_cache_sentinel"))H=d(Q,{marginBottom:1,children:d(X,{underline:!0,children:"https://github.com/apps/claude"})}),f[4]=H;else H=f[4];let V;if(f[5]!==q)V=d(Q,{marginBottom:1,children:I(X,{children:["Please install the app for repository: ",d(X,{bold:!0,children:q})]})}),f[5]=q,f[6]=V;else V=f[6];let Z;if(f[7]===Symbol.for("react.memo_cache_sentinel"))Z=d(Q,{marginBottom:1,children:d(X,{dimColor:!0,children:"Important: Make sure to grant access to this specific repository"})}),f[7]=Z;else Z=f[7];let F;if(f[8]===Symbol.for("react.memo_cache_sentinel"))F=d(Q,{children:I(X,{bold:!0,color:"permission",children:["Press Enter once you've installed the app",M0.ellipsis]})}),f[8]=F;else F=f[8];let y;if(f[9]===Symbol.for("react.memo_cache_sentinel"))y=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["Having trouble? See manual setup instructions at:"," ",d(X,{color:"claude",children:x})]})}),f[9]=y;else y=f[9];let m;if(f[10]!==V)m=I(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[z,M,L,H,V,Z,F,y]}),f[10]=V,f[11]=m;else m=f[11];return m}var Qf;var Lf=h(()=>{Jf();X0();j();J0();g();Qf=_(r(),1)});function Vf({onSuccess:W,onCancel:f}){let[q,Y]=i.useState({state:"starting"}),[D]=i.useState(()=>new Hf),[z,M]=i.useState(""),[L,H]=i.useState(0),[V,Z]=i.useState(!1),[F,y]=i.useState(!1),m=i.useRef(new Set),b=i.useRef(void 0),P=e(),C=Math.max(50,P.columns-If.length-4);function N(B){if(q.state!=="error")return;if(B.preventDefault(),B.key==="return"&&q.toRetry)M(""),H(0),Y({state:"about_to_retry",nextState:q.toRetry});else f()}async function E(B,K){try{let[J,G]=B.split("#");if(!J||!G){Y({state:"error",message:"Invalid code. Please make sure the full code was copied",toRetry:{state:"waiting_for_login",url:K}});return}R("tengu_oauth_manual_entry",{}),D.handleManualAuthCodeInput({authorizationCode:J,state:G})}catch(J){Q0(J),Y({state:"error",message:J.message,toRetry:{state:"waiting_for_login",url:K}})}}let v=i.useCallback(async()=>{m.current.forEach((B)=>clearTimeout(B)),m.current.clear();try{let B=await D.startOAuthFlow(async(J)=>{Y({state:"waiting_for_login",url:J});let G=setTimeout(Z,3000,!0);m.current.add(G)},{loginWithClaudeAi:!0,inferenceOnly:!0,expiresIn:31536000});Y({state:"processing"}),Gf(B);let K=setTimeout((J,G,w,U)=>{J({state:"success",token:G});let c=setTimeout(w,1000,G);U.current.add(c)},100,Y,B.accessToken,W,m);m.current.add(K)}catch(B){let K=B.message;Y({state:"error",message:K,toRetry:{state:"starting"}}),Q0(B),R("tengu_oauth_error",{error:K})}},[D,W]);i.useEffect(()=>{if(q.state==="starting")v()},[q.state,v]),i.useEffect(()=>{if(q.state==="about_to_retry"){let B=setTimeout((K,J,G)=>{J(K.state==="waiting_for_login"),G(K)},500,q.nextState,Z,Y);m.current.add(B)}},[q]),i.useEffect(()=>{if(z==="c"&&q.state==="waiting_for_login"&&V&&!F)zf(q.url).then((B)=>{if(B)process.stdout.write(B);y(!0),clearTimeout(b.current),b.current=setTimeout(y,2000,!1)}),M("")},[z,q,V,F]),i.useEffect(()=>{let B=m.current;return()=>{D.cleanup(),B.forEach((K)=>clearTimeout(K)),B.clear(),clearTimeout(b.current)}},[D]);function O(){switch(q.state){case"starting":return I(Q,{children:[d(H0,{}),d(X,{children:"Starting authentication…"})]});case"waiting_for_login":return I(Q,{flexDirection:"column",gap:1,children:[!V&&I(Q,{children:[d(H0,{}),d(X,{children:"Opening browser to sign in with your Claude account…"})]}),V&&I(Q,{children:[d(X,{children:If}),d(t,{value:z,onChange:M,onSubmit:(B)=>E(B,q.url),cursorOffset:L,onChangeCursorOffset:H,columns:C})]})]});case"processing":return I(Q,{children:[d(H0,{}),d(X,{children:"Processing authentication…"})]});case"success":return I(Q,{flexDirection:"column",gap:1,children:[d(X,{color:"success",children:"✓ Authentication token created successfully!"}),d(X,{dimColor:!0,children:"Using token for GitHub Actions setup…"})]});case"error":return I(Q,{flexDirection:"column",gap:1,children:[I(X,{color:"error",children:["OAuth error: ",q.message]}),q.toRetry?d(X,{dimColor:!0,children:"Press Enter to try again, or any other key to cancel"}):d(X,{dimColor:!0,children:"Press any key to return to API key selection"})]});case"about_to_retry":return d(Q,{flexDirection:"column",gap:1,children:d(X,{color:"permission",children:"Retrying…"})});default:return null}}return I(Q,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:N,children:[q.state==="starting"&&I(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[d(X,{bold:!0,children:"Create Authentication Token"}),d(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"})]}),q.state!=="success"&&q.state!=="starting"&&q.state!=="processing"&&I(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[d(X,{bold:!0,children:"Create Authentication Token"}),d(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"})]},"header"),q.state==="waiting_for_login"&&V&&I(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[I(Q,{paddingX:1,children:[I(X,{dimColor:!0,children:["Browser didn't open? Use the url below to sign in"," "]}),F?d(X,{color:"success",children:"(Copied!)"}):d(X,{dimColor:!0,children:d(d0,{shortcut:"c",action:"copy",parens:!0})})]}),d(L0,{url:q.url,children:d(X,{dimColor:!0,children:q.url})})]},"urlToCopy"),d(Q,{paddingLeft:1,flexDirection:"column",gap:1,children:O()})]})}var i,If="Paste code here if prompted > ";var bf=h(()=>{F0();w0();nf();G0();D0();of();j();Sf();Mf();Df();g();i=_(Y0(),1)});function Wf(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 D=f.match(/^(?:git@|ssh:\/\/git@)(?:www\.)?github\.com[:/](?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(D?.groups?.owner&&D.groups.repo)return`${D.groups.owner}/${D.groups.repo}`;if(/^[a-z][a-z0-9+.-]*:\/\//i.test(f))return null;try{let z=new URL(f),M=z.hostname.toLowerCase();if(M!=="github.com"&&M!=="www.github.com")return null;let L=z.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(L.length<2)return null;return`${L[0]}/${L[1]}`.replace(/\.git$/i,"")}catch{return null}}var Ff=()=>{};function yf(W){let f=mf.c(21),{secretExists:q,useExistingSecret:Y,secretName:D,skipWorkflow:z}=W,M=z===void 0?!1:z,L;if(f[0]===Symbol.for("react.memo_cache_sentinel"))L=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Success"})]}),f[0]=L;else L=f[0];let H;if(f[1]!==M)H=!M&&d(X,{color:"success",children:"✓ GitHub Actions workflow created!"}),f[1]=M,f[2]=H;else H=f[2];let V;if(f[3]!==q||f[4]!==Y)V=q&&Y&&d(Q,{marginTop:1,children:d(X,{color:"success",children:"✓ Using existing ANTHROPIC_API_KEY secret"})}),f[3]=q,f[4]=Y,f[5]=V;else V=f[5];let Z;if(f[6]!==q||f[7]!==D||f[8]!==Y)Z=(!q||!Y)&&d(Q,{marginTop:1,children:I(X,{color:"success",children:["✓ API key saved as ",D," secret"]})}),f[6]=q,f[7]=D,f[8]=Y,f[9]=Z;else Z=f[9];let F;if(f[10]===Symbol.for("react.memo_cache_sentinel"))F=d(Q,{marginTop:1,children:d(X,{children:"Next steps:"})}),f[10]=F;else F=f[10];let y;if(f[11]!==M)y=M?I(T,{children:[d(X,{children:"1. Install the Claude GitHub App if you haven't already"}),d(X,{children:"2. Your workflow file was kept unchanged"}),d(X,{children:"3. API key is configured and ready to use"})]}):I(T,{children:[d(X,{children:"1. A pre-filled PR page has been created"}),d(X,{children:"2. Install the Claude GitHub App if you haven't already"}),d(X,{children:"3. Merge the PR to enable Claude PR assistance"})]}),f[11]=M,f[12]=y;else y=f[12];let m;if(f[13]!==H||f[14]!==V||f[15]!==Z||f[16]!==y)m=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[L,H,V,Z,F,y]}),f[13]=H,f[14]=V,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=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"Press any key to exit"})}),f[18]=b;else b=f[18];let P;if(f[19]!==m)P=I(T,{children:[m,b]}),f[19]=m,f[20]=P;else P=f[20];return P}var mf;var Pf=h(()=>{j();g();mf=_(r(),1)});async function rf(W,f,q,Y,D,z,M){let L=await o("gh",["api",`repos/${W}/contents/${q}`,"--jq",".sha"]),H=null;if(L.code===0)H=L.stdout.trim();let V=Y;if(D==="CLAUDE_CODE_OAUTH_TOKEN")V=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,"claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}");else if(D!=="ANTHROPIC_API_KEY")V=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,`anthropic_api_key: \${{ secrets.${D} }}`);let Z=Buffer.from(V).toString("base64"),F=["api","--method","PUT",`repos/${W}/contents/${q}`,"-f",`message=${H?`"Update ${z}"`:`"${z}"`}`,"-f",`content=${Z}`,"-f",`branch=${f}`];if(H)F.push("-f",`sha=${H}`);let y=await o("gh",F);if(y.code!==0){if(y.stderr.includes("422")&&y.stderr.includes("sha"))throw R("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...M}),Error(`Failed to create workflow file ${q}: A Claude workflow file already exists in this repository. Please remove it first or update it manually.`);R("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...M});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 cf(W,f,q,Y,D=!1,z,M,L){try{R("tengu_setup_github_actions_started",{skip_workflow:D,has_api_key:!!f,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:z.includes("claude"),selected_claude_review_workflow:z.includes("claude-review"),...L});let H=await o("gh",["api",`repos/${W}`,"--jq",".id"]);if(H.code!==0)throw R("tengu_setup_github_actions_failed",{reason:"repo_not_found",exit_code:H.code,...L}),Error(`Failed to access repository ${W}: ${H.stderr}`);let V=await o("gh",["api",`repos/${W}`,"--jq",".default_branch"]);if(V.code!==0)throw R("tengu_setup_github_actions_failed",{reason:"failed_to_get_default_branch",exit_code:V.code,...L}),Error(`Failed to get default branch: ${V.stderr}`);let Z=V.stdout.trim(),F=await o("gh",["api",`repos/${W}/git/ref/heads/${Z}`,"--jq",".object.sha"]);if(F.code!==0)throw R("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(!D){Y(),m=`add-claude-github-actions-${Date.now()}`;let b=await o("gh",["api","--method","POST",`repos/${W}/git/refs`,"-f",`ref=refs/heads/${m}`,"-f",`sha=${y}`]);if(b.code!==0)throw R("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(z.includes("claude"))P.push({path:".github/workflows/claude.yml",content:N0,message:"Claude PR Assistant workflow"});if(z.includes("claude-review"))P.push({path:".github/workflows/claude-code-review.yml",content:v0,message:"Claude Code Review workflow"});for(let C of P)await rf(W,m,C.path,C.content,q,C.message,L)}if(Y(),f){let b=await o("gh",["secret","set",q,"--body",f,"--repo",W]);if(b.code!==0){R("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(!D&&m){Y();let b=`https://github.com/${W}/compare/${Z}...${m}?quick_pull=1&title=${encodeURIComponent(k0)}&body=${encodeURIComponent(E0)}`;await V0(b)}R("tengu_setup_github_actions_completed",{skip_workflow:D,has_api_key:!!f,auth_type:M,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:z.includes("claude"),selected_claude_review_workflow:z.includes("claude-review"),...L}),Bf((b)=>({...b,githubActionSetupCount:(b.githubActionSetupCount??0)+1}))}catch(H){if(!H||!(H instanceof Error)||!H.message.includes("Failed to"))R("tengu_setup_github_actions_failed",{reason:"unexpected_error",...L});if(H instanceof Error)Q0(H);throw H}}var Rf=h(()=>{F0();af();X0();Uf();wf();Df()});function Kf(W){let f=Cf.c(8),{warnings:q,onContinue:Y}=W,D;if(f[0]===Symbol.for("react.memo_cache_sentinel"))D={context:"Confirmation"},f[0]=D;else D=f[0];z0("confirm:yes",Y,D);let z;if(f[1]===Symbol.for("react.memo_cache_sentinel"))z=I(Q,{flexDirection:"column",marginBottom:1,children:[I(X,{bold:!0,children:[M0.warning," Setup Warnings"]}),d(X,{dimColor:!0,children:"We found some potential issues, but you can continue anyway"})]}),f[1]=z;else z=f[1];let M;if(f[2]!==q)M=q.map($f),f[2]=q,f[3]=M;else M=f[3];let L;if(f[4]===Symbol.for("react.memo_cache_sentinel"))L=d(Q,{marginTop:1,children:d(X,{bold:!0,color:"permission",children:"Press Enter to continue anyway, or Ctrl+C to exit and fix issues"})}),f[4]=L;else L=f[4];let H;if(f[5]===Symbol.for("react.memo_cache_sentinel"))H=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["You can also try the manual setup steps if needed:"," ",d(X,{color:"claude",children:x})]})}),f[5]=H;else H=f[5];let V;if(f[6]!==M)V=d(T,{children:I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[z,M,L,H]})}),f[6]=M,f[7]=V;else V=f[7];return V}function $f(W,f){return I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{color:"warning",bold:!0,children:W.title}),d(X,{children:W.message}),W.instructions.length>0&&d(Q,{flexDirection:"column",marginLeft:2,marginTop:1,children:W.instructions.map(xf)})]},f)}function xf(W,f){return I(X,{dimColor:!0,children:["• ",W]},f)}var Cf;var Af=h(()=>{Jf();X0();j();J0();g();Cf=_(r(),1)});function dq(W){let[f]=S.useState(()=>Nf()),[q,Y]=S.useState({...qq,useExistingKey:!!f,selectedApiKeyOption:f?"existing":y0()?"oauth":"new"});Ef(),S.default.useEffect(()=>{R("tengu_install_github_app_started",{})},[]);let D=S.useCallback(async()=>{let J=[];if((await m0("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 w=await m0("gh auth status -a",{shell:!0,reject:!1});if(w.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=w.stdout.match(/Token scopes:.*$/m);if(c){let k=c[0],A=[];if(!k.includes("repo"))A.push("repo");if(!k.includes("workflow"))A.push("workflow");if(A.length>0){Y((l)=>({...l,step:"error",error:`GitHub CLI is missing required permissions: ${A.join(", ")}.`,errorReason:"Missing required scopes",errorInstructions:[`Your GitHub CLI authentication is missing the "${A.join('" and "')}" ${kf(A.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 U=await gf()??"";R("tengu_install_github_app_step_completed",{step:"check-gh"}),Y((c)=>({...c,warnings:J,currentRepo:U,selectedRepoName:U,useCurrentRepo:!!U,step:J.length>0?"warnings":"choose-repo"}))},[]);S.default.useEffect(()=>{if(q.step==="check-gh")D()},[q.step,D]);let z=S.useCallback(async(J,G)=>{Y((w)=>({...w,step:"creating",currentWorkflowInstallStep:0}));try{await cf(q.selectedRepoName,J,G,()=>{Y((w)=>({...w,currentWorkflowInstallStep:w.currentWorkflowInstallStep+1}))},q.workflowAction==="skip",q.selectedWorkflows,q.authType,{useCurrentRepo:q.useCurrentRepo,workflowExists:q.workflowExists,secretExists:q.secretExists}),R("tengu_install_github_app_step_completed",{step:"creating"}),Y((w)=>({...w,step:"success"}))}catch(w){let U=w instanceof Error?w.message:"Failed to set up GitHub Actions";if(U.includes("workflow file already exists"))R("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:",` ${x}`]}));else R("tengu_install_github_app_error",{reason:"setup_github_actions_failed"}),Y((c)=>({...c,step:"error",error:U,errorReason:"GitHub Actions setup failed",errorInstructions:[]}))}},[q.selectedRepoName,q.workflowAction,q.selectedWorkflows,q.useCurrentRepo,q.workflowExists,q.secretExists,q.authType]);async function M(){await V0("https://github.com/apps/claude")}async function L(J){try{let G=await o("gh",["api",`repos/${J}`,"--jq",".permissions.admin"]);if(G.code===0)return{hasAccess:G.stdout.trim()==="true"};if(G.stderr.includes("404")||G.stderr.includes("Not Found"))return{hasAccess:!1,error:"repository_not_found"};return{hasAccess:!1}}catch{return{hasAccess:!1}}}async function H(J){return(await o("gh",["api",`repos/${J}/contents/.github/workflows/claude.yml`,"--jq",".sha"])).code===0}async function V(){let J=await o("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(J.code===0)if(J.stdout.split(`
146
+ `).some((U)=>{return/^ANTHROPIC_API_KEY\s+/.test(U)}))Y((U)=>({...U,secretExists:!0,step:"check-existing-secret"}));else if(f)Y((U)=>({...U,apiKeyOrOAuthToken:f,useExistingKey:!0})),await z(f,q.secretName);else Y((U)=>({...U,step:"api-key"}));else if(f)Y((G)=>({...G,apiKeyOrOAuthToken:f,useExistingKey:!0})),await z(f,q.secretName);else Y((G)=>({...G,step:"api-key"}))}let Z=async()=>{if(q.step==="warnings")R("tengu_install_github_app_step_completed",{step:"warnings"}),Y((J)=>({...J,step:"install-app"})),setTimeout(M,0);else if(q.step==="choose-repo"){let J=q.useCurrentRepo?q.currentRepo:q.selectedRepoName;if(!J.trim())return;let G=[],w=Wf(J),U=/^[a-z][a-z0-9+.-]*:\/\//i.test(J)||J.startsWith("www.");if(w)J=w;else if(U)G.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("/"))G.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")G.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)G.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 k=await H(J);if(G.length>0){let A=[...q.warnings,...G];Y((l)=>({...l,selectedRepoName:J,workflowExists:k,warnings:A,step:"warnings"}))}else R("tengu_install_github_app_step_completed",{step:"choose-repo"}),Y((A)=>({...A,selectedRepoName:J,workflowExists:k,step:"install-app"})),setTimeout(M,0)}else if(q.step==="install-app")if(R("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(R("tengu_install_github_app_step_completed",{step:"check-existing-secret"}),q.useExistingSecret)await z(null,q.secretName);else await z(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){R("tengu_install_github_app_error",{reason:"api_key_missing"}),Y((w)=>({...w,step:"error",error:"API key is required"}));return}Y((w)=>({...w,apiKeyOrOAuthToken:J,useExistingKey:q.selectedApiKeyOption==="existing"}));let G=await o("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(G.code===0)if(G.stdout.split(`
147
+ `).some((c)=>{return/^ANTHROPIC_API_KEY\s+/.test(c)}))R("tengu_install_github_app_step_completed",{step:"api-key"}),Y((c)=>({...c,secretExists:!0,step:"check-existing-secret"}));else R("tengu_install_github_app_step_completed",{step:"api-key"}),await z(J,q.secretName);else R("tengu_install_github_app_step_completed",{step:"api-key"}),await z(J,q.secretName)}},F=(J)=>{Y((G)=>({...G,selectedRepoName:J}))},y=(J)=>{Y((G)=>({...G,apiKeyOrOAuthToken:J}))},m=(J)=>{Y((G)=>({...G,selectedApiKeyOption:J}))},b=S.useCallback(()=>{R("tengu_install_github_app_step_completed",{step:"api-key"}),Y((J)=>({...J,step:"oauth-flow"}))},[]),P=S.useCallback((J)=>{R("tengu_install_github_app_step_completed",{step:"oauth-flow"}),Y((G)=>({...G,apiKeyOrOAuthToken:J,useExistingKey:!1,secretName:"CLAUDE_CODE_OAUTH_TOKEN",authType:"oauth_token"})),z(J,"CLAUDE_CODE_OAUTH_TOKEN")},[z]),C=S.useCallback(()=>{Y((J)=>({...J,step:"api-key"}))},[]),N=(J)=>{if(J&&!/^[a-zA-Z0-9_]+$/.test(J))return;Y((G)=>({...G,secretName:J}))},E=(J)=>{Y((G)=>({...G,useCurrentRepo:J,selectedRepoName:J?G.currentRepo:""}))},v=(J)=>{Y((G)=>({...G,useExistingKey:J}))},O=(J)=>{Y((G)=>({...G,useExistingSecret:J,secretName:J?"ANTHROPIC_API_KEY":""}))},B=async(J)=>{if(J==="exit"){W.onDone("Installation cancelled by user");return}if(R("tengu_install_github_app_step_completed",{step:"check-existing-workflow"}),Y((G)=>({...G,workflowAction:J})),J==="skip"||J==="update")if(f)await V();else Y((G)=>({...G,step:"api-key"}))};function K(J){if(J.preventDefault(),q.step==="success")R("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: ${x}`:`GitHub App installation failed
149
+ For manual setup instructions, see: ${x}`)}switch(q.step){case"check-gh":return d(o0,{});case"warnings":return d(Kf,{warnings:q.warnings,onContinue:Z});case"choose-repo":return d(a0,{currentRepo:q.currentRepo,useCurrentRepo:q.useCurrentRepo,repoUrl:q.selectedRepoName,onRepoUrlChange:F,onToggleUseCurrentRepo:E,onSubmit:Z});case"install-app":return d(Zf,{repoUrl:q.selectedRepoName,onSubmit:Z});case"check-existing-workflow":return d(Yf,{repoName:q.selectedRepoName,onSelectAction:B});case"check-existing-secret":return d(p0,{useExistingSecret:q.useExistingSecret,secretName:q.secretName,onToggleUseExistingSecret:O,onSecretNameChange:N,onSubmit:Z});case"api-key":return d(_0,{existingApiKey:f,useExistingKey:q.useExistingKey,apiKeyOrOAuthToken:q.apiKeyOrOAuthToken,onApiKeyChange:y,onToggleUseExistingKey:v,onSubmit:Z,onCreateOAuthToken:y0()?b:void 0,selectedOption:q.selectedApiKeyOption,onSelectOption:m});case"creating":return d(x0,{currentWorkflowInstallStep:q.currentWorkflowInstallStep,secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip",selectedWorkflows:q.selectedWorkflows});case"success":return d(Q,{tabIndex:0,autoFocus:!0,onKeyDown:K,children:d(yf,{secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip"})});case"error":return d(Q,{tabIndex:0,autoFocus:!0,onKeyDown:K,children:d(t0,{error:q.error,errorReason:q.errorReason,errorInstructions:q.errorInstructions})});case"select-workflows":return d(A0,{defaultSelections:q.selectedWorkflows,onSubmit:(J)=>{if(R("tengu_install_github_app_step_completed",{step:"select-workflows"}),Y((G)=>({...G,selectedWorkflows:J})),f)V();else Y((G)=>({...G,step:"api-key"}))}});case"oauth-flow":return d(Vf,{onSuccess:P,onCancel:C})}}async function JY(W){return d(dq,{onDone:W})}var S,qq;var Yq=h(()=>{sf();F0();g0();X0();fq();j();Mf();Uf();wf();ef();tf();T0();u0();S0();r0();s0();ff();Xf();Lf();bf();Ff();Pf();Rf();Af();g();S=_(Y0(),1),qq={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"}});Yq();export{JY as call};
@@ -0,0 +1 @@
1
+ import{WX as z,XX as I}from"./cli-0.1.13-2vrh3n9y.mjs";import{Mba as q,gca as H}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import{qga as m,rga as F}from"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Xna as D}from"./cli-0.1.13-bj67mp7n.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{KY as Ew,nY as Kw,rY as Cw,tY as Ww,uY as yw,wY as Yw,yY as u}from"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import{X4 as zw,Z4 as Dw,b5 as Gw,l5 as Jw,q5 as uw}from"./cli-0.1.13-bzgpcgdt.mjs";import{B5 as $w,C5 as Qw,K5 as hw,r5 as Rw,s5 as h,u5 as Lw,v5 as ww,z5 as fw}from"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import{S7 as b,Uaa as e,X7 as jw,a9 as t,b9 as o,bba as Ow,c9 as Mw}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import{dga as r,iga as bw}from"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import{Qga as p,Wga as Sw,Yga as T,aha as Aw,nha as s,oha as Y,rha as x,uga as f,wga as Uw}from"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import{Bha as i,Lha as Hw}from"./cli-0.1.13-1g6bgaa6.mjs";import{$ka as m,Uka as I,Vka as E,Xka as n,Yka as c,Zka as L,_ka as N,gna as Iw}from"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Tna as Vw,Xna as A,Yna as F}from"./cli-0.1.13-bj67mp7n.mjs";class M{constructor(){}async export($,w){w({code:0})}async shutdown(){}async forceFlush(){}selectAggregationTemporality(){return 0}}var g=()=>{};class O{error($,...w){b(Error($)),Y(`[3P telemetry] OTEL diag error: ${$}`,{level:"error"})}warn($,...w){b(Error($)),Y(`[3P telemetry] OTEL diag warn: ${$}`,{level:"warn"})}info($,...w){return}debug($,...w){return}verbose($,...w){return}}var P=A(()=>{x();jw()});import{DiagLogLevel as nw,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 d,PeriodicExportingMetricReader as Bw}from"@opentelemetry/sdk-metrics";import{BasicTracerProvider as Fw,BatchSpanProcessor as kw,ConsoleSpanExporter as xw}from"@opentelemetry/sdk-trace-base";import{ATTR_SERVICE_NAME as Pw,ATTR_SERVICE_VERSION as dw,SEMRESATTRS_HOST_ARCH as R}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"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"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 xw);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"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 M;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),B=new qw({resource:$,processors:[new _w(j,{scheduledDelayMillis:Nw})]});H.setGlobalLoggerProvider(B),E(B);let X=H.getLogger("com.anthropic.claude_code.events","99.0.0");n(X),process.on("beforeExit",async()=>{await B?.forceFlush(),await _?.forceFlush()}),process.on("exit",()=>{B?.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 O,nw.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",[dw]:"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?.[R]?{[R]:G.attributes[R]}:{},_=V(k),j=V(Tw.detect().attributes||{}),B=z.merge(J).merge(_).merge(j);if(Ww()){w0(B).catch((Z)=>Y(`Beta tracing init failed: ${Z}`,{level:"error"}));let K=new d({resource:B,views:[],readers:$});return L(K),f(async()=>{let Z=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let q=I(),U=N(),S=[K.shutdown()];if(q)S.push(q.forceFlush().then(()=>q.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 d({resource:B,views:[],readers:$});if(L(X),w){let K=await sw();if(Y(`[3P telemetry] Created ${K.length} log exporter(s)`),K.length>0){let W=new qw({resource:B,processors:K.map((q)=>new _w(q,{scheduledDelayMillis:parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL||Nw.toString())}))});H.setGlobalLoggerProvider(W),E(W);let Z=H.getLogger("com.anthropic.claude_code.events","99.0.0");n(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((q)=>new kw(q,{scheduledDelayMillis:parseInt(process.env.OTEL_TRACES_EXPORT_INTERVAL||Xw.toString())})),Z=new Fw({resource:B,spanProcessors:W});Zw.setGlobalTracerProvider(Z),m(Z)}}return f(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 q=N();if(q)W.push(q.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();Mw();Lw();Uw();x();Hw();Sw();fw();hw();Ow();Aw();bw();yw();g();P();Cw();Ew();C=Vw(Rw(),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.13-q93vqpjh.mjs";import"./cli-0.1.13-1gbn4dgj.mjs";import"./cli-0.1.13-gs7rcvne.mjs";import"./cli-0.1.13-2sx61wcx.mjs";import"./cli-0.1.13-s928gjab.mjs";import"./cli-0.1.13-hgkwnhwv.mjs";import"./cli-0.1.13-vwt4hc0t.mjs";import"./cli-0.1.13-r09724ac.mjs";import"./cli-0.1.13-3k1n20ra.mjs";import"./cli-0.1.13-m5c2efjx.mjs";import"./cli-0.1.13-73yztj5x.mjs";import"./cli-0.1.13-jakv6e7b.mjs";import"./cli-0.1.13-w08qr05m.mjs";import"./cli-0.1.13-xvvtja1h.mjs";import"./cli-0.1.13-ssgwnxc5.mjs";import"./cli-0.1.13-85w0nxy9.mjs";import"./cli-0.1.13-ss1k5gqk.mjs";import"./cli-0.1.13-zm2zgw7m.mjs";import"./cli-0.1.13-s90a26ca.mjs";import"./cli-0.1.13-1y21vq1h.mjs";import"./cli-0.1.13-yhe2a0cx.mjs";import"./cli-0.1.13-ft5k86va.mjs";import"./cli-0.1.13-gtgqh4bn.mjs";import"./cli-0.1.13-x3zt8q8r.mjs";import"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-yeb03vme.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.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.13-vj532g9m.mjs";import{Dj as Y,Ej as _,Fj as Z,Ij as Q,Jj as v,Kj as A,Lj as L,Oj as z}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import{Rga as U,Wga as x,Yga as X,aha as T}from"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Xna as W}from"./cli-0.1.13-bj67mp7n.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};
@@ -1,2 +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}
1
+ import{M5 as B,N5 as _}from"./cli-0.1.13-v6z41645.mjs";import{Mba as J,Pba as Q,gca as Z}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Xna as U}from"./cli-0.1.13-bj67mp7n.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
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{$l as l,Pl as a,Ql as b,Rl as c,Sl as d,Tl as e,Ul as f,Vl as g,Wl as h,Xl as i,Yl as j,Zl as k}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.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{bz as a,cz as b,dz as c,ez as d,fz as e,gz as f,hz as g}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.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{Ov as a,Pv as b,Qv as c,Rv as d}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.mjs";d();export{a as performLogout,b as clearAuthRelatedCaches,c as call};
@@ -0,0 +1 @@
1
+ import{Qz as y,Rz as t,Sz as Jq,Tz as Zq,Uz as Nq,Yz as Qq,_z as yq,tv as qq,vv as Tq}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import{IP as D,JP as i,MP as T,NP as l,QP as o,RP as Hq}from"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import{$S as Gq,_S as n}from"./cli-0.1.13-g654740k.mjs";import{AV as a,TU as I,VU as Z,XU as N,sT as x}from"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import{wX as J,xX as X,yX as G}from"./cli-0.1.13-ck28msre.mjs";import{zX as h}from"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import{Raa as E,Y7 as U,Z7 as kq,bba as u,jaa as v,raa as Kq}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import{Lha as Bq,yha as e}from"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Tna as C,Xna as B}from"./cli-0.1.13-bj67mp7n.mjs";function Pq(q){switch(q){case"✓ detected":return"detected";case"✗ missing":return"missing";case"⏳ installing":return"installing";case"⊘ disabled":return"disabled"}}function Oq(q,W){switch(q){case"✓ detected":return{icon:I("success",W)(U.tick),label:"detected"};case"✗ missing":return{icon:I("error",W)(U.cross),label:"missing"};case"⏳ installing":return{icon:I("warning",W)(U.triangleUpOutline),label:"installing"};case"⊘ disabled":return{icon:I("inactive",W)(U.radioOff),label:"disabled"}}}function Lq(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 Eq(q){let W={detected:[],missing:[],installing:[],disabled:[]};for(let z of q)W[Pq(z.status)].push(z);for(let z of f)W[z].sort((Y,A)=>Y.name.localeCompare(A.name));return W}function r({rows:q,onSelectServer:W,onComplete:z}){let[Y]=x(),[A,_]=P.useState(0),[V,k]=P.useState(()=>y()),K=Eq(q),F=[{type:"master"}];for(let Q of f)for(let $ of K[Q])F.push({type:"server",server:$});let M=P.useRef(F);M.current=F;let L=P.useRef(A);L.current=A;let b=P.useRef(V);b.current=V;let m=()=>{let Q=!b.current;k(Q),E("userSettings",{lsp:{enabled:Q?void 0:!1}})};n({"confirm:previous":()=>{let Q=M.current.length;_(($)=>$===0?Q-1:$-1)},"confirm:next":()=>{let Q=M.current.length;_(($)=>$===Q-1?0:$+1)},"confirm:toggle":()=>{if(M.current[L.current]?.type==="master")m()},"confirm:yes":()=>{let Q=M.current[L.current];if(!Q)return;if(Q.type==="master"){m();return}W(Q.server)}},{context:"Confirmation"});let S=q.length,Aq=K.detected.length,Vq=K.missing.length,g=K.installing.length,c=K.disabled.length,w=[`${S} ${v(S,"server")}`,`${Aq} detected`,`${Vq} missing`];if(g>0)w.push(`${g} installing`);if(c>0)w.push(`${c} disabled`);let Fq=w.join(" · "),j=()=>{let $=A===0,H=V?I("success",Y)(U.tick):I("inactive",Y)(U.radioOff),R=V?"enabled":"disabled";return X(Z,{flexDirection:"column",marginBottom:1,children:[J(Z,{paddingLeft:2,children:J(N,{bold:!0,children:"Global"})}),X(Z,{children:[J(N,{color:$?"suggestion":void 0,children:$?`${U.pointer} `:" "}),J(N,{color:$?"suggestion":void 0,children:"LSP"}),X(N,{dimColor:!$,children:[" · ",H," "]}),J(N,{dimColor:!$,children:R})]}),!V&&J(Z,{paddingLeft:2,marginTop:1,children:J(N,{color:"warning",children:"LSP is disabled. No servers connect, the LSP tool is hidden, and diagnostics are not injected."})})]})},_q=(Q)=>{let H=F.findIndex((d)=>d.type==="server"&&d.server===Q)===A,{icon:R,label:Dq}=Oq(Q.status,Y),p=Lq(Q);return X(Z,{children:[J(N,{color:H?"suggestion":void 0,children:H?`${U.pointer} `:" "}),J(N,{color:H?"suggestion":void 0,children:Q.name}),X(N,{dimColor:!H,children:[" · ",R," "]}),J(N,{dimColor:!H,children:Dq}),p&&X(N,{dimColor:!0,children:[" · ",p]})]},Q.name)},Mq=(Q)=>{let $=K[Q];if($.length===0)return null;return X(Z,{flexDirection:"column",marginBottom:1,children:[X(Z,{paddingLeft:2,children:[J(N,{bold:!0,children:Iq[Q]}),X(N,{dimColor:!0,children:[" (",$.length,")"]})]}),$.map(_q)]},Q)},Uq=q.length===0?X(Z,{flexDirection:"column",children:[j(),J(N,{dimColor:!0,children:"Loading..."})]}):X(Z,{flexDirection:"column",children:[j(),f.map(Mq)]});return X(Z,{flexDirection:"column",children:[J(o,{title:"LSP servers",subtitle:Fq,onCancel:()=>z(),hideInputGuide:!0,children:Uq}),J(Z,{paddingX:1,children:J(N,{dimColor:!0,italic:!0,children:X(T,{children:[J(D,{shortcut:"↑↓",action:"navigate"}),J(D,{shortcut:"Space",action:"toggle LSP"}),J(D,{shortcut:"Enter",action:"select"}),J(D,{shortcut:"Esc",action:"close"})]})})})]})}var P,f,Iq;var s=B(()=>{kq();a();Gq();t();u();Kq();l();Hq();i();G();P=C(h(),1),f=["detected","missing","installing","disabled"],Iq={detected:"Detected",missing:"Missing",installing:"Installing",disabled:"Disabled"}});import{rm as wq}from"node:fs/promises";import{join as Rq}from"node:path";function fq(q){let W=Math.floor(q/5),z=20-W;return`[${"█".repeat(W)}${"░".repeat(z)}] ${q}%`}function Xq({server:q,onCancel:W,onComplete:z}){let[Y,A]=Wq.useState(null),_=q.installer!=="manual (SDK)"&&q.installer!=="—",V=y(),k=[];if(_&&!q.found&&V)k.push({label:"Install",value:"install"});if(_&&q.managed)k.push({label:"Uninstall",value:"uninstall"});if(!q.disabled)k.push({label:"Disable",value:"disable"});else k.push({label:"Enable",value:"enable"});k.push({label:"Back",value:"back"});let K=async(F)=>{if(F==="back"){W();return}if(F==="install"){if(A({phase:"download",pct:0}),await Jq(q.name,(L)=>A(L)))z(`✓ ${q.name} installed`);else z(`✗ failed to install ${q.name}`);return}if(F==="uninstall"){let M=Rq(e(),"lsp",q.name);await wq(M,{recursive:!0,force:!0}),Qq(),W();return}if(F==="disable"){E("userSettings",{lsp:{[q.name]:{disabled:!0}}}),W();return}if(F==="enable"){E("userSettings",{lsp:{[q.name]:{disabled:void 0}}}),W();return}};if(Y!==null){let F=Y.phase==="download"?Y.pct:Y.phase==="extract"?99:Y.phase==="done"?100:0,M=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(Z,{flexDirection:"column",paddingX:1,children:[X(N,{children:[Y.phase==="failed"?"Failed to install ":"Installing ",J(N,{bold:!0,children:q.name}),Y.phase==="failed"?"":"..."]}),Y.phase!=="failed"&&J(N,{color:"yellow",children:fq(F)}),J(N,{dimColor:!0,children:M})]})}return X(Z,{flexDirection:"column",children:[X(Z,{flexDirection:"column",paddingX:1,borderStyle:"round",children:[X(Z,{marginBottom:1,children:[J(N,{bold:!0,children:q.name}),X(N,{dimColor:!0,children:[" ",q.status," ",q.installer!=="—"?`installer: ${q.installer}`:""]})]}),!V&&J(Z,{marginBottom:1,children:J(N,{color:"yellow",children:"LSP is globally disabled. Enable LSP from the dashboard to install servers."})}),J(qq,{options:k,onChange:K,onCancel:W})]}),J(Z,{marginTop:1,children:J(N,{dimColor:!0,italic:!0,children:X(T,{children:[J(D,{shortcut:"↑↓",action:"navigate"}),J(D,{shortcut:"Enter",action:"select"}),J(D,{shortcut:"Esc",action:"back"})]})})})]})}var Wq;var Yq=B(()=>{a();Nq();yq();t();u();Tq();l();i();Bq();G();Wq=C(h(),1)});function $q({onComplete:q}){let[W,z]=O.useState({type:"list"}),[Y,A]=O.useState([]),_=O.useCallback(()=>{Zq().then(A).catch(()=>A([]))},[]);if(O.useEffect(()=>{_()},[_]),W.type==="server-menu")return J(Xq,{server:W.server,onCancel:()=>{_(),z({type:"list"})},onComplete:(V)=>{_(),q(V)}});return J(r,{rows:Y,onSelectServer:(V)=>z({type:"server-menu",server:V}),onComplete:q})}var O;var zq=B(()=>{Nq();s();Yq();G();O=C(h(),1)});async function zJ(q,W,z){return J($q,{onComplete:q})}var Cq=B(()=>{zq();G()});Cq();export{zJ as call};
@@ -0,0 +1 @@
1
+ import{A as a,B as b}from"./cli-0.1.13-q93vqpjh.mjs";import"./cli-0.1.13-1gbn4dgj.mjs";import"./cli-0.1.13-gs7rcvne.mjs";import"./cli-0.1.13-2sx61wcx.mjs";import"./cli-0.1.13-s928gjab.mjs";import"./cli-0.1.13-hgkwnhwv.mjs";import"./cli-0.1.13-vwt4hc0t.mjs";import"./cli-0.1.13-r09724ac.mjs";import"./cli-0.1.13-3k1n20ra.mjs";import"./cli-0.1.13-m5c2efjx.mjs";import"./cli-0.1.13-73yztj5x.mjs";import"./cli-0.1.13-jakv6e7b.mjs";import"./cli-0.1.13-w08qr05m.mjs";import"./cli-0.1.13-xvvtja1h.mjs";import"./cli-0.1.13-ssgwnxc5.mjs";import"./cli-0.1.13-85w0nxy9.mjs";import"./cli-0.1.13-ss1k5gqk.mjs";import"./cli-0.1.13-zm2zgw7m.mjs";import"./cli-0.1.13-s90a26ca.mjs";import"./cli-0.1.13-1y21vq1h.mjs";import"./cli-0.1.13-yhe2a0cx.mjs";import"./cli-0.1.13-ft5k86va.mjs";import"./cli-0.1.13-gtgqh4bn.mjs";import"./cli-0.1.13-x3zt8q8r.mjs";import"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-yeb03vme.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.mjs";export{a as startDeferredPrefetches,b as main};
@@ -0,0 +1 @@
1
+ import{g0 as a,h0 as b}from"./cli-0.1.13-yeb03vme.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.mjs";export{a as applySafeConfigEnvironmentVariables,b as applyConfigEnvironmentVariables};
@@ -0,0 +1,4 @@
1
+ import{vg as BG,wg as bG}from"./cli-0.1.13-3rr4fg79.mjs";import{th as xG}from"./cli-0.1.13-gtgqh4bn.mjs";import{Ci as QG,Gi as LG,JJ as WG,LJ as TG,TD as OG,UD as IG,VC as T,XC as PG,dL as JG,eL as CG,gF as C,hF as MG,jJ as FG,lI as kG,lj as R,mJ as qG,mj as V,mp as DG,nj as g,np as VG,oj as NG,pj as l,qj as r,rj as jG,sj as t,ti as q,tj as wG,uj as a,vi as KG,vj as o,wi as yG,wj as zG,xA as HG,xH as ZG,xo as $G,yA as fG,yo as UG}from"./cli-0.1.13-fh5dndvp.mjs";import"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import"./cli-0.1.13-g654740k.mjs";import"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import{BW as p,CW as f,FW as M,GW as n,IW as U,JW as i,MW as E,PW as m,QW as z,RW as P,TV as S,UV as v,_V as _,bW as h,dW as u,fW as c,jW as d,zW as YG}from"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import{rX as XG}from"./cli-0.1.13-4prgqshq.mjs";import"./cli-0.1.13-ck28msre.mjs";import"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import{F3 as EG,h3 as GG}from"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import{S7 as e,X7 as AG}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import{Yga as b,aha as _G}from"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import"./cli-0.1.13-bj67mp7n.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};
@@ -0,0 +1 @@
1
+ import{fe as vq,ge as MG,he as lq,ie as BG,je as cq,ke as fG,le as iq,me as AG}from"./cli-0.1.13-0b728dvh.mjs";import{oe as DG,pe as hG,re as PG}from"./cli-0.1.13-crcgrfse.mjs";import"./cli-0.1.13-5d4ke9a2.mjs";import{We as KG,Xe as dG}from"./cli-0.1.13-9jajvw4r.mjs";import{Fy as Bq,Gy as QG,PI as XG,Rq as wq,SI as YG,TI as yG,XI as ZG,Zq as fq,dr as NG,er as FG,iK as zq,kK as HG,lK as gq,tv as JG,vv as jG}from"./cli-0.1.13-fh5dndvp.mjs";import{hP as RG,kP as lG}from"./cli-0.1.13-pqk4c7m7.mjs";import"./cli-0.1.13-xkdwvsg9.mjs";import"./cli-0.1.13-hzdj03rn.mjs";import{IP as Jq,JP as sq,KP as Wq,LP as eq,MP as yq,NP as qG,QP as Mq,RP as GG}from"./cli-0.1.13-5s4m8qj9.mjs";import"./cli-0.1.13-sgxk7d0h.mjs";import"./cli-0.1.13-ct9m5223.mjs";import"./cli-0.1.13-h3vb5402.mjs";import"./cli-0.1.13-30j4h365.mjs";import"./cli-0.1.13-ks4x4cct.mjs";import"./cli-0.1.13-2c7g6rpx.mjs";import"./cli-0.1.13-gvz2qezh.mjs";import"./cli-0.1.13-9a1hzdsv.mjs";import"./cli-0.1.13-c5b4ygdq.mjs";import"./cli-0.1.13-f6gfa426.mjs";import"./cli-0.1.13-13fh0g36.mjs";import"./cli-0.1.13-njvp7vtc.mjs";import"./cli-0.1.13-wz7v1tqx.mjs";import{$S as tq,ZS as rq,_S as LG}from"./cli-0.1.13-g654740k.mjs";import{$U as Rq,AV as uq,TU as j,VU as O,XU as U,jT as Aq,sT as Xq}from"./cli-0.1.13-hjqn3n5a.mjs";import"./cli-0.1.13-nwt2jc8b.mjs";import"./cli-0.1.13-wxdmc1dd.mjs";import"./cli-0.1.13-fz5dm31h.mjs";import"./cli-0.1.13-wr0c9hyh.mjs";import"./cli-0.1.13-v32xwe08.mjs";import"./cli-0.1.13-1hw65avy.mjs";import"./cli-0.1.13-nc8ww3rn.mjs";import"./cli-0.1.13-4prgqshq.mjs";import{wX as J,xX as W,yX as p}from"./cli-0.1.13-ck28msre.mjs";import{zX as Uq}from"./cli-0.1.13-79vtnprb.mjs";import"./cli-0.1.13-d6tr2j76.mjs";import"./cli-0.1.13-0xy8k6yv.mjs";import"./cli-0.1.13-5c4fyghf.mjs";import"./cli-0.1.13-2vrh3n9y.mjs";import"./cli-0.1.13-8gd1x101.mjs";import"./cli-0.1.13-bkg3sva7.mjs";import"./cli-0.1.13-5krmz4nd.mjs";import"./cli-0.1.13-qdtwrf9z.mjs";import"./cli-0.1.13-myd004mr.mjs";import"./cli-0.1.13-ajsw8n7h.mjs";import"./cli-0.1.13-saz6qetz.mjs";import"./cli-0.1.13-x461rxn2.mjs";import"./cli-0.1.13-d85aba8r.mjs";import"./cli-0.1.13-0zpmhn2j.mjs";import"./cli-0.1.13-bzgpcgdt.mjs";import"./cli-0.1.13-5ydypzty.mjs";import"./cli-0.1.13-v6z41645.mjs";import"./cli-0.1.13-v467fj8c.mjs";import"./cli-0.1.13-b3xc1r3k.mjs";import"./cli-0.1.13-wh68ve92.mjs";import"./cli-0.1.13-2cdtdhek.mjs";import"./cli-0.1.13-cyj5snev.mjs";import{Y7 as b,Z7 as jq,iaa as aq,jaa as zG,raa as nq}from"./cli-0.1.13-dag38tkx.mjs";import"./cli-0.1.13-jz57znb6.mjs";import"./cli-0.1.13-wwnez3j0.mjs";import"./cli-0.1.13-pw5dks39.mjs";import"./cli-0.1.13-t1zx7s60.mjs";import"./cli-0.1.13-rjjyq9ej.mjs";import"./cli-0.1.13-gd3nndc7.mjs";import"./cli-0.1.13-xde08pkt.mjs";import"./cli-0.1.13-45hjhcbc.mjs";import{jha as kG,rha as uG}from"./cli-0.1.13-144gn3fd.mjs";import"./cli-0.1.13-8ppsn0an.mjs";import"./cli-0.1.13-1g6bgaa6.mjs";import"./cli-0.1.13-52f40ba4.mjs";import"./cli-0.1.13-xv6wh44y.mjs";import{Tna as v,Xna as Qq}from"./cli-0.1.13-bj67mp7n.mjs";function dq({agentServer:G,onCancel:q,onComplete:Q}){let[X]=Xq(),[y,B]=u.useState(!1),[f,Y]=u.useState(null),[V,P]=u.useState(null),H=u.useRef(null);u.useEffect(()=>()=>H.current?.abort(),[]);let T=u.useCallback(()=>{if(y)H.current?.abort(),H.current=null,B(!1),P(null)},[y]);rq("confirm:no",T,{context:"Confirmation",isActive:y});let w=u.useCallback(async()=>{if(!G.needsAuth||!G.url)return;B(!0),Y(null);let L=new AbortController;H.current=L;try{let E={type:G.transport,url:G.url};await YG(G.name,E,P,L.signal),Q?.(`Authentication successful for ${G.name}. The server will connect when the agent runs.`)}catch(E){if(E instanceof Error&&!(E instanceof XG))Y(E.message)}finally{B(!1),H.current=null}},[G,Q]),k=aq(String(G.name));if(y)return W(O,{flexDirection:"column",gap:1,padding:1,children:[W(U,{color:"claude",children:["Authenticating with ",G.name,"…"]}),W(O,{children:[J(Bq,{}),J(U,{children:" A browser window will open for authentication"})]}),V&&W(O,{flexDirection:"column",children:[J(U,{dimColor:!0,children:"If your browser doesn't open automatically, copy this URL manually:"}),J(Rq,{url:V})]}),J(O,{marginLeft:3,children:W(U,{dimColor:!0,children:["Return here after authenticating in your browser."," ",J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]})})]});let R=[];if(G.needsAuth)R.push({label:G.isAuthenticated?"Re-authenticate":"Authenticate",value:"auth"});return R.push({label:"Back",value:"back"}),W(Mq,{title:`${k} MCP Server`,subtitle:"agent-only",onCancel:q,inputGuide:(L)=>L.pending?W(U,{children:["Press ",L.keyName," again to exit"]}):W(yq,{children:[J(Jq,{shortcut:"↑↓",action:"navigate"}),J(Jq,{shortcut:"Enter",action:"confirm"}),J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),children:[W(O,{flexDirection:"column",gap:0,children:[W(O,{children:[J(U,{bold:!0,children:"Type: "}),J(U,{dimColor:!0,children:G.transport})]}),G.url&&W(O,{children:[J(U,{bold:!0,children:"URL: "}),J(U,{dimColor:!0,children:G.url})]}),G.command&&W(O,{children:[J(U,{bold:!0,children:"Command: "}),J(U,{dimColor:!0,children:G.command})]}),W(O,{children:[J(U,{bold:!0,children:"Used by: "}),J(U,{dimColor:!0,children:G.sourceAgents.join(", ")})]}),W(O,{marginTop:1,children:[J(U,{bold:!0,children:"Status: "}),W(U,{children:[j("inactive",X)(b.radioOff)," not connected (agent-only)"]})]}),G.needsAuth&&W(O,{children:[J(U,{bold:!0,children:"Auth: "}),G.isAuthenticated?W(U,{children:[j("success",X)(b.tick)," authenticated"]}):W(U,{children:[j("warning",X)(b.triangleUpOutline)," may need authentication"]})]})]}),J(O,{children:J(U,{dimColor:!0,children:"This server connects only when running the agent."})}),f&&J(O,{children:W(U,{color:"error",children:["Error: ",f]})}),J(O,{children:J(JG,{options:R,onChange:async(L)=>{switch(L){case"auth":await w();break;case"back":q();break}},onCancel:q})})]})}var u;var pq=Qq(()=>{jq();uq();tq();ZG();nq();eq();jG();qG();GG();sq();QG();p();u=v(Uq(),1)});function UG(G){switch(G){case"project":return{label:"Project MCPs",path:fq(G)};case"user":return{label:"User MCPs",path:fq(G)};case"local":return{label:"Local MCPs",path:fq(G)};case"enterprise":return{label:"Enterprise MCPs"};case"dynamic":return{label:"Built-in MCPs",path:"always available"};default:return{label:G}}}function pG(G){let q=new Map;for(let Q of G){let X=Q.scope;if(!q.has(X))q.set(X,[]);q.get(X).push(Q)}for(let[,Q]of q)Q.sort((X,y)=>X.name.localeCompare(y.name));return q}function mq(G){let q=OG.c(78),{servers:Q,agentServers:X,onSelectServer:y,onSelectAgentServer:B,onComplete:f}=G,Y;if(q[0]!==X)Y=X===void 0?[]:X,q[0]=X,q[1]=Y;else Y=q[1];let V=Y,[P]=Xq(),[H,T]=VG.useState(0),w;if(q[2]!==Q){let Z=Q.filter(vG);w=pG(Z),q[2]=Q,q[3]=w}else w=q[3];let k=w,R;if(q[4]!==Q)R=Q.filter(SG).sort(xG),q[4]=Q,q[5]=R;else R=q[5];let L=R,E;if(q[6]!==k)E=(k.get("dynamic")??[]).sort(gG),q[6]=k,q[7]=E;else E=q[7];let M=E,C;if(q[8]===Symbol.for("react.memo_cache_sentinel"))C=UG("dynamic"),q[8]=C;else C=q[8];let l=C,K;if(q[9]!==V||q[10]!==L||q[11]!==M||q[12]!==k){K=[];for(let Z of WG){let A=k.get(Z)??[];for(let I of A)K.push({type:"server",server:I})}for(let Z of L)K.push({type:"server",server:Z});for(let Z of V)K.push({type:"agent-server",agentServer:Z});for(let Z of M)K.push({type:"server",server:Z});q[9]=V,q[10]=L,q[11]=M,q[12]=k,q[13]=K}else K=q[13];let F=K,N;if(q[14]!==f)N=()=>{f("MCP dialog dismissed",{display:"system"})},q[14]=f,q[15]=N;else N=q[15];let D=N,z;if(q[16]!==B||q[17]!==y||q[18]!==F||q[19]!==H)z=()=>{let Z=F[H];if(!Z)return;if(Z.type==="server")y(Z.server);else if(Z.type==="agent-server"&&B)B(Z.agentServer)},q[16]=B,q[17]=y,q[18]=F,q[19]=H,q[20]=z;else z=q[20];let h=z,m,_;if(q[21]!==F)_=()=>T((Z)=>Z===0?F.length-1:Z-1),m=()=>T((Z)=>Z===F.length-1?0:Z+1),q[21]=F,q[22]=m,q[23]=_;else m=q[22],_=q[23];let i;if(q[24]!==D||q[25]!==h||q[26]!==m||q[27]!==_)i={"confirm:previous":_,"confirm:next":m,"confirm:yes":h,"confirm:no":D},q[24]=D,q[25]=h,q[26]=m,q[27]=_,q[28]=i;else i=q[28];let c;if(q[29]===Symbol.for("react.memo_cache_sentinel"))c={context:"Confirmation"},q[29]=c;else c=q[29];LG(i,c);let g;if(q[30]!==F)g=(Z)=>F.findIndex((A)=>A.type==="server"&&A.server===Z),q[30]=F,q[31]=g;else g=q[31];let Lq=g,o;if(q[32]!==F)o=(Z)=>F.findIndex((A)=>A.type==="agent-server"&&A.agentServer===Z),q[32]=F,q[33]=o;else o=q[33];let Zq=o,$;if(q[34]===Symbol.for("react.memo_cache_sentinel"))$=kG(),q[34]=$;else $=q[34];let CG=$,Fq;if(q[35]!==Q)Fq=Q.some(_G),q[35]=Q,q[36]=Fq;else Fq=q[36];let hq=Fq;if(Q.length===0&&V.length===0)return null;let Kq;if(q[37]!==Lq||q[38]!==H||q[39]!==P)Kq=(Z)=>{let A=Lq(Z),I=H===A,d,S;if(Z.client.type==="disabled")d=j("inactive",P)(b.radioOff),S="disabled";else if(Z.client.type==="connected")d=j("success",P)(b.tick),S="connected";else if(Z.client.type==="pending"){d=j("inactive",P)(b.radioOff);let{reconnectAttempt:oq,maxReconnectAttempts:$q}=Z.client;if(oq&&$q)S=`reconnecting (${oq}/${$q})…`;else S="connecting…"}else if(Z.client.type==="needs-auth")d=j("warning",P)(b.triangleUpOutline),S="needs authentication";else d=j("error",P)(b.cross),S="failed";return W(O,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${b.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",d," "]}),J(U,{dimColor:!I,children:S})]},`${Z.name}-${A}`)},q[37]=Lq,q[38]=H,q[39]=P,q[40]=Kq;else Kq=q[40];let x=Kq,Oq;if(q[41]!==Zq||q[42]!==H||q[43]!==P)Oq=(Z)=>{let A=Zq(Z),I=H===A,d=Z.needsAuth?j("warning",P)(b.triangleUpOutline):j("inactive",P)(b.radioOff),S=Z.needsAuth?"may need auth":"agent-only";return W(O,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${b.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",d," "]}),J(U,{dimColor:!I,children:S})]},`agent-${Z.name}-${A}`)},q[41]=Zq,q[42]=H,q[43]=P,q[44]=Oq;else Oq=q[44];let Tq=Oq,Vq=Q.length+V.length,Hq;if(q[45]===Symbol.for("react.memo_cache_sentinel"))Hq=J(KG,{}),q[45]=Hq;else Hq=q[45];let Dq;if(q[46]!==Vq)Dq=zG(Vq,"server"),q[46]=Vq,q[47]=Dq;else Dq=q[47];let Cq=`${Vq} ${Dq}`,a;if(q[48]!==x||q[49]!==k)a=WG.map((Z)=>{let A=k.get(Z);if(!A||A.length===0)return null;let I=UG(Z);return W(O,{flexDirection:"column",marginBottom:1,children:[W(O,{paddingLeft:2,children:[J(U,{bold:!0,children:I.label}),I.path&&W(U,{dimColor:!0,children:[" (",I.path,")"]})]}),A.map((d)=>x(d))]},Z)}),q[48]=x,q[49]=k,q[50]=a;else a=q[50];let n;if(q[51]!==L||q[52]!==x)n=L.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[J(O,{paddingLeft:2,children:J(U,{bold:!0,children:"claude.ai"})}),L.map((Z)=>x(Z))]}),q[51]=L,q[52]=x,q[53]=n;else n=q[53];let s;if(q[54]!==V||q[55]!==Tq)s=V.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[J(O,{paddingLeft:2,children:J(U,{bold:!0,children:"Agent MCPs"})}),[...new Set(V.flatMap(mG))].map((Z)=>W(O,{flexDirection:"column",marginTop:1,children:[J(O,{paddingLeft:2,children:W(U,{dimColor:!0,children:["@",Z]})}),V.filter((A)=>A.sourceAgents.includes(Z)).map((A)=>Tq(A))]},Z))]}),q[54]=V,q[55]=Tq,q[56]=s;else s=q[56];let r;if(q[57]!==M||q[58]!==x)r=M.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[W(O,{paddingLeft:2,children:[J(U,{bold:!0,children:l.label}),l.path&&W(U,{dimColor:!0,children:[" (",l.path,")"]})]}),M.map((Z)=>x(Z))]}),q[57]=M,q[58]=x,q[59]=r;else r=q[59];let t;if(q[60]!==hq)t=hq&&J(U,{dimColor:!0,children:CG?"※ Error logs shown inline with --debug":"※ Run claude --debug to see error logs"}),q[60]=hq,q[61]=t;else t=q[61];let Pq;if(q[62]===Symbol.for("react.memo_cache_sentinel"))Pq=W(U,{dimColor:!0,children:[J(Rq,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})," ","for help"]}),q[62]=Pq;else Pq=q[62];let e;if(q[63]!==t)e=W(O,{flexDirection:"column",children:[t,Pq]}),q[63]=t,q[64]=e;else e=q[64];let qq;if(q[65]!==a||q[66]!==n||q[67]!==s||q[68]!==r||q[69]!==e)qq=W(O,{flexDirection:"column",children:[a,n,s,r,e]}),q[65]=a,q[66]=n,q[67]=s,q[68]=r,q[69]=e,q[70]=qq;else qq=q[70];let Gq;if(q[71]!==D||q[72]!==Cq||q[73]!==qq)Gq=J(Mq,{title:"Manage MCP servers",subtitle:Cq,onCancel:D,hideInputGuide:!0,children:qq}),q[71]=D,q[72]=Cq,q[73]=qq,q[74]=Gq;else Gq=q[74];let Eq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))Eq=J(O,{paddingX:1,children:J(U,{dimColor:!0,italic:!0,children:W(yq,{children:[J(Jq,{shortcut:"↑↓",action:"navigate"}),J(Jq,{shortcut:"Enter",action:"confirm"}),J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[75]=Eq;else Eq=q[75];let Nq;if(q[76]!==Gq)Nq=W(O,{flexDirection:"column",children:[Hq,Gq,Eq]}),q[76]=Gq,q[77]=Nq;else Nq=q[77];return Nq}function mG(G){return G.sourceAgents}function _G(G){return G.client.type==="failed"}function gG(G,q){return G.name.localeCompare(q.name)}function xG(G,q){return G.name.localeCompare(q.name)}function SG(G){return G.client.config.type==="claudeai-proxy"}function vG(G){return G.client.config.type!=="claudeai-proxy"}var OG,VG,WG;var _q=Qq(()=>{jq();uq();tq();FG();uG();nq();eq();qG();GG();sq();dG();p();OG=v(Aq(),1),VG=v(Uq(),1),WG=["project","local","user","enterprise"]});function xq(G){let q=EG.c(25),{serverName:Q,onComplete:X}=G,[y]=Xq(),B=HG(),f=DG(),[Y,V]=kq.useState(!0),[P,H]=kq.useState(null),T,w;if(q[0]!==X||q[1]!==f||q[2]!==Q||q[3]!==B)T=()=>{(async function(){try{if(!B.getState().mcp.clients.find((M)=>M.name===Q)){H(`MCP server "${Q}" not found`),V(!1),X(`MCP server "${Q}" not found`);return}let E=await f(Q);q:switch(E.client.type){case"connected":{V(!1),X(`Successfully reconnected to ${Q}`);break q}case"needs-auth":{H(`${Q} requires authentication`),V(!1),X(`${Q} requires authentication. Use /mcp to authenticate.`);break q}case"pending":case"failed":case"disabled":H(`Failed to reconnect to ${Q}`),V(!1),X(`Failed to reconnect to ${Q}`)}}catch(L){let E=L,M=E instanceof Error?E.message:String(E);H(M),V(!1),X(`Error: ${M}`)}})()},w=[Q,f,B,X],q[0]=X,q[1]=f,q[2]=Q,q[3]=B,q[4]=T,q[5]=w;else T=q[4],w=q[5];if(kq.useEffect(T,w),Y){let k;if(q[6]!==Q)k=W(U,{color:"text",children:["Reconnecting to ",J(U,{bold:!0,children:Q})]}),q[6]=Q,q[7]=k;else k=q[7];let R;if(q[8]===Symbol.for("react.memo_cache_sentinel"))R=W(O,{children:[J(Bq,{}),J(U,{children:" Establishing connection to MCP server"})]}),q[8]=R;else R=q[8];let L;if(q[9]!==k)L=W(O,{flexDirection:"column",gap:1,padding:1,children:[k,R]}),q[9]=k,q[10]=L;else L=q[10];return L}if(P){let k;if(q[11]!==y)k=j("error",y)(b.cross),q[11]=y,q[12]=k;else k=q[12];let R;if(q[13]!==k)R=W(U,{children:[k," "]}),q[13]=k,q[14]=R;else R=q[14];let L;if(q[15]!==Q)L=W(U,{color:"error",children:["Failed to reconnect to ",Q]}),q[15]=Q,q[16]=L;else L=q[16];let E;if(q[17]!==R||q[18]!==L)E=W(O,{children:[R,L]}),q[17]=R,q[18]=L,q[19]=E;else E=q[19];let M;if(q[20]!==P)M=W(U,{dimColor:!0,children:["Error: ",P]}),q[20]=P,q[21]=M;else M=q[21];let C;if(q[22]!==E||q[23]!==M)C=W(O,{flexDirection:"column",gap:1,padding:1,children:[E,M]}),q[22]=E,q[23]=M,q[24]=C;else C=q[24];return C}return null}var EG,kq;var Sq=Qq(()=>{jq();uq();PG();gq();QG();p();EG=v(Aq(),1),kq=v(Uq(),1)});function Iq(G){let q=wG.c(66),{onComplete:Q}=G,X=zq($G),y=zq(oG),B=X.clients,f;if(q[0]===Symbol.for("react.memo_cache_sentinel"))f={type:"list"},q[0]=f;else f=q[0];let[Y,V]=Yq.default.useState(f),P;if(q[1]===Symbol.for("react.memo_cache_sentinel"))P=[],q[1]=P;else P=q[1];let[H,T]=Yq.default.useState(P),w;if(q[2]!==y.allAgents)w=NG(y.allAgents),q[2]=y.allAgents,q[3]=w;else w=q[3];let k=w,R;if(q[4]!==B)R=B.filter(iG).sort(cG),q[4]=B,q[5]=R;else R=q[5];let L=R,E,M;if(q[6]!==L||q[7]!==X.tools)E=()=>{let K=!1;return async function(){let D=await Promise.all(L.map(async(z)=>{let h=z.config.scope,m=z.config.type==="sse",_=z.config.type==="http",i=z.config.type==="claudeai-proxy",c=void 0;if(m||_){let o=await new yG(z.name,z.config).tokens(),Zq=RG()!==null&&z.type==="connected",$=z.type==="connected"&&wq(X.tools,z.name).length>0;c=Boolean(o)||Zq||$}let g={name:z.name,client:z,scope:h};if(i)return{...g,transport:"claudeai-proxy",isAuthenticated:!1,config:z.config};else if(m)return{...g,transport:"sse",isAuthenticated:c,config:z.config};else if(_)return{...g,transport:"http",isAuthenticated:c,config:z.config};else return{...g,transport:"stdio",config:z.config}}));if(K)return;T(D)}(),()=>{K=!0}},M=[L,X.tools],q[6]=L,q[7]=X.tools,q[8]=E,q[9]=M;else E=q[8],M=q[9];Yq.default.useEffect(E,M);let C,l;if(q[10]!==k.length||q[11]!==L.length||q[12]!==Q||q[13]!==H.length)C=()=>{if(H.length===0&&L.length>0)return;if(H.length===0&&k.length===0)Q("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},l=[H.length,L.length,k.length,Q],q[10]=k.length,q[11]=L.length,q[12]=Q,q[13]=H.length,q[14]=C,q[15]=l;else C=q[14],l=q[15];switch(Yq.useEffect(C,l),Y.type){case"list":{let K,F;if(q[16]===Symbol.for("react.memo_cache_sentinel"))F=(D)=>V({type:"server-menu",server:D}),K=(D)=>V({type:"agent-server-menu",agentServer:D}),q[16]=K,q[17]=F;else K=q[16],F=q[17];let N;if(q[18]!==k||q[19]!==Q||q[20]!==H||q[21]!==Y.defaultTab)N=J(mq,{servers:H,agentServers:k,onSelectServer:F,onSelectAgentServer:K,onComplete:Q,defaultTab:Y.defaultTab}),q[18]=k,q[19]=Q,q[20]=H,q[21]=Y.defaultTab,q[22]=N;else N=q[22];return N}case"server-menu":{let K;if(q[23]!==X.tools||q[24]!==Y.server.name)K=wq(X.tools,Y.server.name),q[23]=X.tools,q[24]=Y.server.name,q[25]=K;else K=q[25];let F=K,N=Y.server.transport==="claudeai-proxy"?"claude.ai":"Claude Code";if(Y.server.transport==="stdio"){let D;if(q[26]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[26]=Y.server,q[27]=D;else D=q[27];let z;if(q[28]!==N)z=()=>V({type:"list",defaultTab:N}),q[28]=N,q[29]=z;else z=q[29];let h;if(q[30]!==Q||q[31]!==F.length||q[32]!==D||q[33]!==z||q[34]!==Y.server)h=J(lq,{server:Y.server,serverToolsCount:F.length,onViewTools:D,onCancel:z,onComplete:Q}),q[30]=Q,q[31]=F.length,q[32]=D,q[33]=z,q[34]=Y.server,q[35]=h;else h=q[35];return h}else{let D;if(q[36]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[36]=Y.server,q[37]=D;else D=q[37];let z;if(q[38]!==N)z=()=>V({type:"list",defaultTab:N}),q[38]=N,q[39]=z;else z=q[39];let h;if(q[40]!==Q||q[41]!==F.length||q[42]!==D||q[43]!==z||q[44]!==Y.server)h=J(vq,{server:Y.server,serverToolsCount:F.length,onViewTools:D,onCancel:z,onComplete:Q}),q[40]=Q,q[41]=F.length,q[42]=D,q[43]=z,q[44]=Y.server,q[45]=h;else h=q[45];return h}}case"server-tools":{let K,F;if(q[46]!==Y.server)F=(D,z)=>V({type:"server-tool-detail",server:Y.server,toolIndex:z}),K=()=>V({type:"server-menu",server:Y.server}),q[46]=Y.server,q[47]=K,q[48]=F;else K=q[47],F=q[48];let N;if(q[49]!==K||q[50]!==F||q[51]!==Y.server)N=J(iq,{server:Y.server,onSelectTool:F,onBack:K}),q[49]=K,q[50]=F,q[51]=Y.server,q[52]=N;else N=q[52];return N}case"server-tool-detail":{let K;if(q[53]!==X.tools||q[54]!==Y.server.name)K=wq(X.tools,Y.server.name),q[53]=X.tools,q[54]=Y.server.name,q[55]=K;else K=q[55];let N=K[Y.toolIndex];if(!N)return V({type:"server-tools",server:Y.server}),null;let D;if(q[56]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[56]=Y.server,q[57]=D;else D=q[57];let z;if(q[58]!==D||q[59]!==N||q[60]!==Y.server)z=J(cq,{tool:N,server:Y.server,onBack:D}),q[58]=D,q[59]=N,q[60]=Y.server,q[61]=z;else z=q[61];return z}case"agent-server-menu":{let K;if(q[62]===Symbol.for("react.memo_cache_sentinel"))K=()=>V({type:"list",defaultTab:"Agents"}),q[62]=K;else K=q[62];let F;if(q[63]!==Q||q[64]!==Y.agentServer)F=J(dq,{agentServer:Y.agentServer,onCancel:K,onComplete:Q}),q[63]=Q,q[64]=Y.agentServer,q[65]=F;else F=q[65];return F}}}function cG(G,q){return G.name.localeCompare(q.name)}function iG(G){return G.name!=="ide"}function oG(G){return G.agentDefinitions}function $G(G){return G.mcp}var wG,Yq;var IG=Qq(()=>{ZG();FG();gq();lG();pq();_q();MG();BG();fG();AG();p();wG=v(Aq(),1),Yq=v(Uq(),1)});var bG=Qq(()=>{pq();_q();Sq();MG();IG();BG();fG();AG()});function aG(G){let q=TG.c(7),{action:Q,target:X,onComplete:y}=G,B=zq(sG),f=hG(),Y=bq.useRef(!1),V,P;if(q[0]!==Q||q[1]!==B||q[2]!==y||q[3]!==X||q[4]!==f)V=()=>{if(Y.current)return;Y.current=!0;let H=Q==="enable",T=B.filter(nG),w=X==="all"?T.filter((k)=>H?k.type==="disabled":k.type!=="disabled"):T.filter((k)=>k.name===X);if(w.length===0){y(X==="all"?`All MCP servers are already ${H?"enabled":"disabled"}`:`MCP server "${X}" not found`);return}for(let k of w)f(k.name);y(X==="all"?`${H?"Enabled":"Disabled"} ${w.length} MCP server(s)`:`MCP server "${X}" ${H?"enabled":"disabled"}`)},P=[Q,X,B,f,y],q[0]=Q,q[1]=B,q[2]=y,q[3]=X,q[4]=f,q[5]=V,q[6]=P;else V=q[5],P=q[6];return bq.useEffect(V,P),null}function nG(G){return G.name!=="ide"}function sG(G){return G.mcp.clients}async function UQ(G,q,Q){if(Q){let X=Q.trim().split(/\s+/);if(X[0]==="no-redirect")return J(Iq,{onComplete:G});if(X[0]==="reconnect"&&X[1])return J(xq,{serverName:X.slice(1).join(" "),onComplete:G});if(X[0]==="enable"||X[0]==="disable")return J(aG,{action:X[0],target:X.length>1?X.slice(1).join(" "):"all",onComplete:G})}return J(Iq,{onComplete:G})}var TG,bq;var rG=Qq(()=>{bG();Sq();PG();gq();p();TG=v(Aq(),1),bq=v(Uq(),1)});rG();export{UQ as call};