@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
@@ -1,5 +0,0 @@
1
- import{hf as PJ,if as SQ}from"./cli-0.1.11-yvnhbsfn.mjs";import{uf as mJ,wf as tQ}from"./cli-0.1.11-vzet5m4y.mjs";import{Ch as CJ,Eh as vJ,Fh as iQ}from"./cli-0.1.11-n24p2y0p.mjs";import{As as QQ,Bi as dQ,Ct as fJ,Et as FJ,Gt as NJ,HG as cJ,Hv as JJ,Iv as ZQ,Jt as bJ,Jy as r,KG as sQ,Kj as O,Kt as DJ,Lj as cQ,Lt as _J,Nt as EJ,PL as gJ,Ry as nQ,Tt as lQ,Vk as TJ,el as hJ,gG as I,gN as JZ,hG as rQ,ml as uQ,ov as LJ,pG as dJ,pv as TQ,tq as SJ,tv as yJ,uv as hQ,xM as rJ,xq as mQ,yi as xJ,zG as oQ,zs as D}from"./cli-0.1.11-s8ygndzf.mjs";import{JQ as IQ,sQ as m,tQ as i}from"./cli-0.1.11-weav8142.mjs";import{UQ as pJ,VQ as gQ}from"./cli-0.1.11-sma2xhvv.mjs";import{eR as YJ,qR as OQ}from"./cli-0.1.11-852v06g0.mjs";import{TR as iJ,UR as lJ,VR as nJ,ZR as eQ}from"./cli-0.1.11-qrq0sw0h.mjs";import{hS as uJ,nS as aQ}from"./cli-0.1.11-wc9bay3d.mjs";import{OU as R,PU as pQ,QU as l,SU as kJ,eT as AQ,vV as xQ}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as WJ}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as wQ}from"./cli-0.1.11-x37jysc0.mjs";import{KX as BJ,MX as qQ}from"./cli-0.1.11-v6kwgrqc.mjs";import{$2 as AJ,R4 as f,_2 as wJ,i5 as EQ,q1 as oJ,v1 as KZ,x3 as _Q}from"./cli-0.1.11-qbcfg80y.mjs";import{C5 as RQ,o5 as c,r5 as VQ,w5 as XJ,x5 as HJ}from"./cli-0.1.11-b0jasw23.mjs";import{E5 as jJ,F5 as DQ}from"./cli-0.1.11-s6yfjcm5.mjs";import{A_ as t,Caa as IJ,Cba as Y,F7 as W,G8 as OJ,Gaa as F,Haa as g,Hba as E,Iba as e,K7 as x,N8 as a,P8 as $,Qaa as bQ,R8 as NQ,T7 as b,U7 as JQ,Vba as T,p8 as o,q8 as s,y_ as U,zba as M}from"./cli-0.1.11-v7bwjqf0.mjs";import{aea as N,bea as eJ}from"./cli-0.1.11-7xr2ermy.mjs";import{Oea as KJ,Pea as UQ}from"./cli-0.1.11-7qpnfx56.mjs";import{bfa as y,mfa as UJ,nfa as VJ}from"./cli-0.1.11-fag2wtke.mjs";import{dga as RJ,ega as jQ}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as zJ,Jga as YQ,Lga as d,Mga as GJ,Pga as WQ,bha as K,eha as h}from"./cli-0.1.11-vq5fvf9m.mjs";import{sna as _,tna as tJ}from"./cli-0.1.11-98zcwng9.mjs";import{Nna as S,Sna as BQ}from"./cli-0.1.11-yrfxpjhr.mjs";tJ();QQ();eJ();T();t();JQ();a();x();ZQ();var zQ=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function GQ(Q){return!zQ.some((J)=>J.test(Q))}function KQ(Q,J){let Z=[],z=new Set,X=new Map;for(let G=1;Z.length<J&&G<=J;G++)for(let H of Q){if(Z.length>=J)break;if(!GQ(H))continue;let B=Math.max(H.lastIndexOf("/"),H.lastIndexOf("\\")),V=B>=0?H.slice(B+1):H;if(!V||z.has(V))continue;let k=B>=0?H.slice(0,B):".";if((X.get(k)??0)>=G)continue;Z.push(V),z.add(V),X.set(k,(X.get(k)??0)+1)}return Z.length>=J?Z:[]}async function XQ(){if(U.platform==="win32")return[];if(!await s())return[];try{let Q=await JJ(),J=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],Z=new Map,z=(G)=>{for(let H of G.split(`
2
- `)){let B=H.trim();if(B)Z.set(B,(Z.get(B)??0)+1)}};if(Q){let{stdout:G}=await b("git",[...J,`--author=${Q}`],{cwd:N()});z(G)}if(Z.size<10){let{stdout:G}=await b(o(),J,{cwd:N()});z(G)}let X=Array.from(Z.entries()).sort((G,H)=>H[1]-G[1]).map(([G])=>G);return KQ(X,5)}catch(Q){return W(Q),[]}}var HQ=604800000,PZ=_(()=>{let Q=E(),J=Q.exampleFiles?.length?D(Q.exampleFiles):"<filepath>",Z=["fix lint errors","fix typecheck errors",`how does ${J} work?`,`refactor ${J}`,"how do I log an error?",`edit ${J} to...`,`write a test for ${J}`,"create a util logging.py that..."];return`Try "${D(Z)}"`}),qZ=_(async()=>{let Q=E(),J=Date.now(),Z=Q.exampleFilesGeneratedAt??0;if(J-Z>HQ)Q.exampleFiles=[];if(!Q.exampleFiles?.length)XQ().then((z)=>{if(z.length)e((X)=>({...X,exampleFiles:z,exampleFilesGeneratedAt:Date.now()}))})});h();x();qQ();UQ();h();YQ();x();VQ();RQ();WQ();import{randomUUID as kQ}from"crypto";var QJ=2000,ZJ=5,LQ=30000,p=3,yQ=new Set([4003]);function PQ(Q){if(typeof Q!=="object"||Q===null||!("type"in Q))return!1;return typeof Q.type==="string"}class u{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(Q,J,Z,z){this.sessionId=Q;this.orgUuid=J;this.getAccessToken=Z;this.callbacks=z}async connect(){if(this.state==="connecting"){K("[SessionsWebSocket] Already connecting");return}this.state="connecting";let J=`${KJ().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;K(`[SessionsWebSocket] Connecting to ${J}`);let z={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let X=new globalThis.WebSocket(J,{headers:z,proxy:HJ(J),tls:c()||void 0});this.ws=X,X.addEventListener("open",()=>{K("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),X.addEventListener("message",(G)=>{let H=typeof G.data==="string"?G.data:String(G.data);this.handleMessage(H)}),X.addEventListener("error",()=>{let G=Error("[SessionsWebSocket] WebSocket error");W(G),this.callbacks.onError?.(G)}),X.addEventListener("close",(G)=>{K(`[SessionsWebSocket] Closed: code=${G.code} reason=${G.reason}`),this.handleClose(G.code)}),X.addEventListener("pong",()=>{K("[SessionsWebSocket] Pong received")})}else{let{default:X}=await import("./wrapper-0.1.11-rt9xsnjh.mjs"),G=new X(J,{headers:z,agent:XJ(J),...c()});this.ws=G,G.on("open",()=>{K("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),G.on("message",(H)=>{this.handleMessage(H.toString())}),G.on("error",(H)=>{W(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),G.on("close",(H,B)=>{K(`[SessionsWebSocket] Closed: code=${H} reason=${B.toString()}`),this.handleClose(H)}),G.on("pong",()=>{K("[SessionsWebSocket] Pong received")})}}handleMessage(Q){try{let J=GJ(Q);if(PQ(J))this.callbacks.onMessage(J);else K(`[SessionsWebSocket] Ignoring message type: ${typeof J==="object"&&J!==null&&"type"in J?String(J.type):"unknown"}`)}catch(J){W(Error(`[SessionsWebSocket] Failed to parse message: ${zJ(J)}`))}}handleClose(Q){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let J=this.state;if(this.state="closed",yQ.has(Q)){K(`[SessionsWebSocket] Permanent close code ${Q}, not reconnecting`),this.callbacks.onClose?.();return}if(Q===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>p){K(`[SessionsWebSocket] 4001 retry budget exhausted (${p}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(QJ*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${p}`);return}if(J==="connected"&&this.reconnectAttempts<ZJ)this.reconnectAttempts++,this.scheduleReconnect(QJ,`attempt ${this.reconnectAttempts}/${ZJ}`);else K("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(Q,J){this.callbacks.onReconnecting?.(),K(`[SessionsWebSocket] Scheduling reconnect (${J}) in ${Q}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Q)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},LQ)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(Q){if(!this.ws||this.state!=="connected"){W(Error("[SessionsWebSocket] Cannot send: not connected"));return}K("[SessionsWebSocket] Sending control response"),this.ws.send(d(Q))}sendControlRequest(Q){if(!this.ws||this.state!=="connected"){W(Error("[SessionsWebSocket] Cannot send: not connected"));return}let J={type:"control_request",request_id:kQ(),request:Q};K(`[SessionsWebSocket] Sending control request: ${Q.subtype}`),this.ws.send(d(J))}isConnected(){return this.state==="connected"}close(){if(K("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){K("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function MQ(Q){return Q.type!=="control_request"&&Q.type!=="control_response"&&Q.type!=="control_cancel_request"}class $Q{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(Q,J){this.config=Q;this.callbacks=J}connect(){K(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let Q={onMessage:(J)=>this.handleMessage(J),onConnected:()=>{K("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{K("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{K("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(J)=>{W(J),this.callbacks.onError?.(J)}};this.websocket=new u(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,Q),this.websocket.connect()}handleMessage(Q){if(Q.type==="control_request"){this.handleControlRequest(Q);return}if(Q.type==="control_cancel_request"){let{request_id:J}=Q,Z=this.pendingPermissionRequests.get(J);K(`[RemoteSessionManager] Permission request cancelled: ${J}`),this.pendingPermissionRequests.delete(J),this.callbacks.onPermissionCancelled?.(J,Z?.tool_use_id);return}if(Q.type==="control_response"){K("[RemoteSessionManager] Received control response");return}if(MQ(Q))this.callbacks.onMessage(Q)}handleControlRequest(Q){let{request_id:J,request:Z}=Q;if(Z.subtype==="can_use_tool")K(`[RemoteSessionManager] Permission request for tool: ${Z.tool_name}`),this.pendingPermissionRequests.set(J,Z),this.callbacks.onPermissionRequest(Z,J);else{K(`[RemoteSessionManager] Unsupported control request subtype: ${Z.subtype}`);let z={type:"control_response",response:{subtype:"error",request_id:J,error:`Unsupported control request subtype: ${Z.subtype}`}};this.websocket?.sendControlResponse(z)}}async sendMessage(Q,J){K(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Z=await BJ(this.config.sessionId,Q,J);if(!Z)W(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Z}respondToPermissionRequest(Q,J){if(!this.pendingPermissionRequests.get(Q)){W(Error(`[RemoteSessionManager] No pending permission request with ID: ${Q}`));return}this.pendingPermissionRequests.delete(Q);let z={type:"control_response",response:{subtype:"success",request_id:Q,response:{behavior:J.behavior,...J.behavior==="allow"?{updatedInput:J.updatedInput}:{message:J.message}}}};K(`[RemoteSessionManager] Sending permission response: ${J.behavior}`),this.websocket?.sendControlResponse(z)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){K("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){K("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){K("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function FZ(Q,J,Z,z=!1,X=!1){return{sessionId:Q,getAccessToken:J,orgUuid:Z,hasInitialPrompt:z,viewerOnly:X}}h();x();OQ();IQ();function pZ(){let Q=YJ();if(!Q?.teamName||!Q?.agentName){K("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:J,agentId:Z,agentName:z}=Q,X=i(J);if(!X){W(Error(`[computeInitialTeamContext] Could not read team file for ${J}`));return}let G=m(J),H=!Z;return K(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${z}`} in team ${J}`),{teamName:J,teamFilePath:G,leadAgentId:X.leadAgentId,selfAgentId:Z,selfAgentName:z,isLeader:H,teammates:{}}}function dZ(Q,J,Z){let z=i(J);if(!z){W(Error(`[initializeTeammateContextFromSession] Could not read team file for ${J} (agent: ${Z})`));return}let X=z.members.find((B)=>B.name===Z);if(!X)K(`[Reconnection] Member ${Z} not found in team ${J} - may have been removed`);let G=X?.agentId,H=m(J);Q((B)=>({...B,teamContext:{teamName:J,teamFilePath:H,leadAgentId:z.leadAgentId,selfAgentId:G,selfAgentName:Z,isLeader:!1,teammates:{}}})),K(`[Reconnection] Initialized agent context from session for ${Z} in team ${J}`)}xQ();VJ();jQ();T();TQ();SQ();hQ();var qJ=S(AQ(),1),C=S(wQ(),1),L=S(WJ(),1),CQ={enable_shortcut_tip:!1,enable_startup_dialog:!1};function n(){return UJ("tengu_desktop_upsell",CQ)}function vQ(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function oZ(){if(!vQ())return!1;if(!n().enable_startup_dialog)return!1;let Q=Y();if(Q.desktopUpsellDismissed)return!1;if((Q.desktopUpsellSeenCount??0)>=3)return!1;return!0}function sZ(Q){let J=qJ.c(14),{onDone:Z}=Q,[z,X]=C.useState(!1),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=[],J[0]=G;else G=J[0];if(C.useEffect(FQ,G),z){let q;if(J[1]!==Z)q=L.jsxDEV(PJ,{onDone:()=>Z()},void 0,!1,void 0,this),J[1]=Z,J[2]=q;else q=J[2];return q}let H;if(J[3]!==Z)H=function(aJ){switch(aJ){case"try":{X(!0);return}case"never":{M(fQ),Z();return}case"not-now":{Z();return}}},J[3]=Z,J[4]=H;else H=J[4];let B=H,V;if(J[5]===Symbol.for("react.memo_cache_sentinel"))V={label:"Open in Claude Code Desktop",value:"try"},J[5]=V;else V=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k={label:"Not now",value:"not-now"},J[6]=k;else k=J[6];let j;if(J[7]===Symbol.for("react.memo_cache_sentinel"))j=[V,k,{label:"Don't ask again",value:"never"}],J[7]=j;else j=J[7];let sJ=j,w;if(J[8]===Symbol.for("react.memo_cache_sentinel"))w=L.jsxDEV(l,{marginBottom:1,children:L.jsxDEV(kJ,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."},void 0,!1,void 0,this)},void 0,!1,void 0,this),J[8]=w;else w=J[8];let P;if(J[9]!==B)P=()=>B("not-now"),J[9]=B,J[10]=P;else P=J[10];let A;if(J[11]!==B||J[12]!==P)A=L.jsxDEV(yJ,{title:"Try Claude Code Desktop",children:L.jsxDEV(l,{flexDirection:"column",paddingX:2,paddingY:1,children:[w,L.jsxDEV(LJ,{options:sJ,onChange:B,onCancel:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[11]=B,J[12]=P,J[13]=A;else A=J[13];return A}function fQ(Q){if(Q.desktopUpsellDismissed)return Q;return{...Q,desktopUpsellDismissed:!0}}function FQ(){let Q=(Y().desktopUpsellSeenCount??0)+1;M((J)=>{if((J.desktopUpsellSeenCount??0)>=Q)return J;return{...J,desktopUpsellSeenCount:Q}}),RJ("tengu_desktop_upsell_shown",{seen_count:Q})}DQ();h();nQ();bQ();aQ();pQ();tQ();cQ();mQ();EQ();gQ();T();uQ();t();dQ();a();lQ();_Q();NQ();sQ();oQ();rQ();JZ();VJ();iQ();eQ();T();function eZ(Q){let J=Y().numStartups;M((Z)=>{let z=Z.tipsHistory??{};if(z[Q]===J)return Z;return{...Z,tipsHistory:{...z,[Q]:J}}})}function MJ(Q){let J=Y(),Z=J.tipsHistory?.[Q];if(!Z)return 1/0;return J.numStartups-Z}var v;async function QZ(){if(v!==void 0)return v;let Q=await dJ();return v=I in Q,v}async function $J(Q,J,Z){if(!await QZ())return!1;if(cJ(`${Q}@${I}`))return!1;let{bashTools:z}=J??{};if(Z.cli&&z?.size){if(Z.cli.some((X)=>z.has(X)))return!0}if(Z.filePath&&J?.readFileState){if(xJ(J.readFileState).some((G)=>Z.filePath.test(G)))return!0}return!1}var ZZ=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return Y().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${O("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let Q=Y();return(Q.lastPlanModeUse?(Date.now()-Q.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let Q=Y(),J=g(),Z=Boolean(Q.lastPlanModeUse),z=Boolean(J?.permissions?.defaultMode);return Z&&!z}catch(Q){return K(`Failed to check default-permission-mode-config tip relevance: ${Q}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claude sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let Q=Y();return await OJ()<=1&&Q.numStartups>50}catch(Q){return!1}}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(rJ())return!1;return await pJ()>=2}},{id:"terminal-setup",content:async()=>U.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let Q=Y();if(U.terminal==="Apple_Terminal")return!Q.optionAsMetaKeyInstalled;return!Q.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>U.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let Q=Y();return Boolean((U.terminal==="Apple_Terminal"?Q.optionAsMetaKeyInstalled:Q.shiftEnterKeyBindingInstalled)&&Q.numStartups>3)}},{id:"shift-enter-setup",content:async()=>U.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!uJ())return!1;let Q=Y();return!(U.terminal==="Apple_Terminal"?Q.optionAsMetaKeyInstalled:Q.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claude memory",cooldownSessions:15,async isRelevant(){return Y().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&jJ.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>$()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>g().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claude is working.",cooldownSessions:5,async isRelevant(){return Y().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claude while it works to steer Claude in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claude to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${U.terminal==="vscode"?"code":U.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!fJ())return!1;if($()!=="macos")return!1;switch(U.terminal){case"vscode":return!await _J();case"cursor":return!await bJ();case"windsurf":return!await DJ();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claude to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(FJ())return!1;if((await NJ()).length!==0)return!1;return(await EJ()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!Y().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!Y().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return Y().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!U.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claude Code using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>$()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!r()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>r()},{id:"continue",content:async()=>"Run claude --continue or claude --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>gJ()&&Y().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claude/skills/ in your project or ~/.claude/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return Y().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${O("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${O("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>$()!=="linux"},{id:"desktop-shortcut",content:async(Q)=>{return`Continue your session in Claude Code Desktop with ${R("suggestion",Q.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!n().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${O("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let Q=Y(),Z=wJ()==="opusplan",z=Q.lastPlanModeUse?(Date.now()-Q.lastPlanModeUse)/86400000:1/0;return Z&&z>3}},{id:"frontend-design-plugin",content:async(Q)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
3
- ${R("suggestion",Q.theme)(`/plugin install frontend-design@${I}`)}`},cooldownSessions:3,isRelevant:async(Q)=>$J("frontend-design",Q,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(Q)=>{return`Working with Vercel? Install the vercel plugin:
4
- ${R("suggestion",Q.theme)(`/plugin install vercel@${I}`)}`},cooldownSessions:3,isRelevant:async(Q)=>$J("vercel",Q,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(Q)=>{let Z=R("suggestion",Q.theme)("/effort high");return y("tengu_tide_elm","off")==="copy_b"?`Use ${Z} for better one-shot answers. Claude thinks it through first.`:`Working on something tricky? ${Z} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;if(!TJ(AJ()))return!1;if(IJ("policySettings")?.effortLevel!==void 0)return!1;if(hJ()!==void 0)return!1;let Q=F().effortLevel;if(Q==="high"||Q==="max")return!1;return y("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(Q)=>{let J=R("suggestion",Q.theme);return y("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claude to ${J("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${J('"fan out subagents"')} and Claude sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;return y("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(Q)=>{let J=R("suggestion",Q.theme);return y("tengu_timber_lark","off")==="copy_b"?`Use ${J("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${J("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;if(!SJ())return!1;return y("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(Q)=>{let J=R("claude",Q.theme),Z=nJ();return Z?`Share Claude Code and earn ${J(lJ(Z))} of extra usage · ${J("/passes")}`:`You have free guest passes to share · ${J("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(Y().hasVisitedPasses)return!1;let{eligible:J}=iJ();return J}},{id:"overage-credit",content:async(Q)=>{let J=R("claude",Q.theme),Z=CJ(),z=Z?vJ(Z):null;if(!z)return"";return`${J(`${z} in extra usage, on us`)} · third-party apps · ${J("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>mJ()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}}],zZ=[];function GZ(){let J=F().spinnerTipsOverride;if(!J?.tips?.length)return[];return J.tips.map((Z,z)=>({id:`custom-tip-${z}`,content:async()=>Z,cooldownSessions:0,isRelevant:async()=>!0}))}async function S0(Q){let Z=F().spinnerTipsOverride,z=GZ();if(Z?.excludeDefault&&z.length>0)return z;let X=[...ZZ,...zZ],G=await Promise.all(X.map((B)=>B.isRelevant(Q)));return[...X.filter((B,V)=>G[V]).filter((B)=>MJ(B.id)>=B.cooldownSessions),...z]}KZ();var XZ={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function HZ(Q){let J=Q.toLowerCase(),Z=oJ();for(let[z,X]of Object.entries(XZ)){let G=X.retirementDates[Z];if(!J.includes(z)||!G)continue;return{isDeprecated:!0,modelName:X.modelName,retirementDate:G}}return{isDeprecated:!1}}function f0(Q){if(!Q)return null;let J=HZ(Q);if(!J.isDeprecated)return null;return`⚠ ${J.modelName} will be retired on ${J.retirementDate}. Consider switching to a newer model.`}function N0(Q,J=process.argv){for(let Z=0;Z<J.length;Z++){let z=J[Z];if(z?.startsWith(`${Q}=`))return z.slice(Q.length+1);if(z===Q&&Z+1<J.length)return J[Z+1]}return}
5
- export{PZ as va,qZ as wa,$Q as xa,FZ as ya,pZ as za,dZ as Aa,eZ as Ba,MJ as Ca,oZ as Da,sZ as Ea,S0 as Fa,f0 as Ga,N0 as Ha};
@@ -1,2 +0,0 @@
1
- import{bK as C,eK as X}from"./cli-0.1.11-s8ygndzf.mjs";import{rX as W}from"./cli-0.1.11-x37jysc0.mjs";import{f3 as I,r3 as J,x3 as V}from"./cli-0.1.11-qbcfg80y.mjs";import{Uea as H,nfa as T}from"./cli-0.1.11-fag2wtke.mjs";import{Nna as P,Rna as Q}from"./cli-0.1.11-yrfxpjhr.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as bc,Y as cc};
@@ -1,2 +0,0 @@
1
- import{eT as f}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as o}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as M}from"./cli-0.1.11-x37jysc0.mjs";import{Nna as r}from"./cli-0.1.11-yrfxpjhr.mjs";var p=r(f(),1),s=r(M(),1),d=r(o(),1),n=s.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:i,children:c}=F,t;if(e[0]!==c||e[1]!==i)t=d.jsxDEV(n.Provider,{value:i,children:c},void 0,!1,void 0,this),e[0]=c,e[1]=i,e[2]=t;else t=e[2];return t}function l(){return s.useContext(n)}
2
- export{a as Xa,l as Ya};
@@ -1,2 +0,0 @@
1
- import{sd as M,td as x}from"./cli-0.1.11-cwptjaf7.mjs";import{Vf as B,Xf as P}from"./cli-0.1.11-84j34n0s.mjs";import{Hj as _,Jj as E,aK as T,eK as A}from"./cli-0.1.11-s8ygndzf.mjs";import{QS as $,TS as V}from"./cli-0.1.11-h02tyg8p.mjs";import{qX as Z}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as D}from"./cli-0.1.11-x37jysc0.mjs";import{tfa as Q,ufa as K}from"./cli-0.1.11-nx8a99hz.mjs";import{Nna as O,Rna as C}from"./cli-0.1.11-yrfxpjhr.mjs";function y({children:q}){let{bindings:F}=_(),H=N.useRef(null),G=N.useRef(new Map),I=N.useRef(new Set).current;return J.jsxDEV($,{bindings:F,pendingChordRef:H,pendingChord:null,setPendingChord:()=>{},activeContexts:I,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:G,children:q},void 0,!1,void 0,this)}function b(q){if(!("message"in q))return 1;let F=q.message.content;return Array.isArray(F)?F.length:1}async function v(q,F,H,{columns:G,verbose:I=!1,chunkSize:L=40,onProgress:U}={}){let W=(w)=>B(J.jsxDEV(T,{children:J.jsxDEV(y,{children:J.jsxDEV(M,{messages:q,tools:F,commands:[],verbose:I,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),G),X=L;for(let w of q)X+=b(w);for(let w=0;w<X;w+=L){let Y=await W([w,w+L]);if(Q(Y).trim()==="")break;await H(Y),U?.(w+L)}}async function l(q,F=[],H){let G=[];return await v(q,F,(I)=>void G.push(Q(I)),{columns:H}),G.join("")}var N,J;var j=C(()=>{K();x();V();E();A();P();N=O(D(),1),J=O(Z(),1)});
2
- export{l as vb,j as wb};
@@ -1,2 +0,0 @@
1
- import{BU as k,CU as BQ,QU as p,SU as $,YU as HQ,eT as C,kV as h,vV as y}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as j}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as m}from"./cli-0.1.11-x37jysc0.mjs";import{vfa as qQ,wfa as wQ}from"./cli-0.1.11-nx8a99hz.mjs";import{Nna as z,Rna as E}from"./cli-0.1.11-yrfxpjhr.mjs";function d(){let Y=c.useContext(k);if(!Y)throw Error("useTerminalSize must be used within an Ink App component");return Y}var c;var a=E(()=>{BQ();c=z(m(),1)});function o(Y,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(Y.length===1)return Y.toLowerCase();return null}var s=()=>{};function r(Y){let Q=Y.split("+"),X={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let J of Q){let Z=J.toLowerCase();switch(Z){case"ctrl":case"control":X.ctrl=!0;break;case"alt":case"opt":case"option":X.alt=!0;break;case"shift":X.shift=!0;break;case"meta":X.meta=!0;break;case"cmd":case"command":case"super":case"win":X.super=!0;break;case"esc":X.key="escape";break;case"return":X.key="enter";break;case"space":X.key=" ";break;case"↑":X.key="up";break;case"↓":X.key="down";break;case"←":X.key="left";break;case"→":X.key="right";break;default:X.key=Z;break}}return X}function VQ(Y){if(Y===" ")return[r("space")];return Y.trim().split(/\s+/).map(r)}function zQ(Y){let Q=[];if(Y.ctrl)Q.push("ctrl");if(Y.alt)Q.push("alt");if(Y.shift)Q.push("shift");if(Y.meta)Q.push("meta");if(Y.super)Q.push("cmd");let X=NQ(Y.key);return Q.push(X),Q.join("+")}function NQ(Y){switch(Y){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return Y}}function b(Y){return Y.map(zQ).join(" ")}function DQ(Y){let Q=[];for(let X of Y)for(let[J,Z]of Object.entries(X.bindings))Q.push({chord:VQ(J),action:Z,context:X.context});return Q}var i=()=>{};function n(Y,Q,X){let J=X.findLast((Z)=>Z.action===Y&&Z.context===Q);return J?b(J.chord):void 0}function SQ(Y,Q){let X=o(Y,Q);if(!X)return null;let J=Q.escape?!1:Q.meta;return{key:X,ctrl:Q.ctrl,alt:J,shift:Q.shift,meta:J,super:Q.super}}function t(Y,Q){return Y.key===Q.key&&Y.ctrl===Q.ctrl&&Y.shift===Q.shift&&(Y.alt||Y.meta)===(Q.alt||Q.meta)&&Y.super===Q.super}function _Q(Y,Q){if(Y.length>=Q.chord.length)return!1;for(let X=0;X<Y.length;X++){let J=Y[X],Z=Q.chord[X];if(!J||!Z)return!1;if(!t(J,Z))return!1}return!0}function PQ(Y,Q){if(Y.length!==Q.chord.length)return!1;for(let X=0;X<Y.length;X++){let J=Y[X],Z=Q.chord[X];if(!J||!Z)return!1;if(!t(J,Z))return!1}return!0}function e(Y,Q,X,J,Z){if(Q.escape&&Z!==null)return{type:"chord_cancelled"};let G=SQ(Y,Q);if(!G){if(Z!==null)return{type:"chord_cancelled"};return{type:"none"}}let U=Z?[...Z,G]:[G],H=new Set(X),B=J.filter((q)=>H.has(q.context)),I=new Map;for(let q of B)if(q.chord.length>U.length&&_Q(U,q))I.set(b(q.chord),q.action);let V=!1;for(let q of I.values())if(q!==null){V=!0;break}if(V)return{type:"chord_started",pending:U};let L;for(let q of B)if(PQ(U,q))L=q;if(L){if(L.action===null)return{type:"unbound"};return{type:"match",action:L.action}}if(Z!==null)return{type:"chord_cancelled"};return{type:"none"}}var QQ=E(()=>{s();i()});function pQ(Y){let Q=x.c(24),{bindings:X,pendingChordRef:J,pendingChord:Z,setPendingChord:G,activeContexts:U,registerActiveContext:H,unregisterActiveContext:B,handlerRegistryRef:I,children:V}=Y,L;if(Q[0]!==X)L=(O,F)=>n(O,F,X),Q[0]=X,Q[1]=L;else L=Q[1];let q=L,P;if(Q[2]!==I)P=(O)=>{let F=I.current;if(!F)return RQ;if(!F.has(O.action))F.set(O.action,new Set);return F.get(O.action).add(O),()=>{let R=F.get(O.action);if(R){if(R.delete(O),R.size===0)F.delete(O.action)}}},Q[2]=I,Q[3]=P;else P=Q[3];let K=P,A;if(Q[4]!==U||Q[5]!==I)A=(O)=>{let F=I.current;if(!F)return!1;let R=F.get(O);if(!R||R.size===0)return!1;for(let g of R)if(U.has(g.context))return g.handler(),!0;return!1},Q[4]=U,Q[5]=I,Q[6]=A;else A=Q[6];let w=A,S;if(Q[7]!==X||Q[8]!==J)S=(O,F,R)=>e(O,F,R,X,J.current),Q[7]=X,Q[8]=J,Q[9]=S;else S=Q[9];let W;if(Q[10]!==U||Q[11]!==X||Q[12]!==q||Q[13]!==w||Q[14]!==Z||Q[15]!==H||Q[16]!==K||Q[17]!==G||Q[18]!==S||Q[19]!==B)W={resolve:S,setPendingChord:G,getDisplayText:q,bindings:X,pendingChord:Z,activeContexts:U,registerActiveContext:H,unregisterActiveContext:B,registerHandler:K,invokeAction:w},Q[10]=U,Q[11]=X,Q[12]=q,Q[13]=w,Q[14]=Z,Q[15]=H,Q[16]=K,Q[17]=G,Q[18]=S,Q[19]=B,Q[20]=W;else W=Q[20];let _=W,N;if(Q[21]!==V||Q[22]!==_)N=YQ.jsxDEV(XQ.Provider,{value:_,children:V},void 0,!1,void 0,this),Q[21]=V,Q[22]=_,Q[23]=N;else N=Q[23];return N}function RQ(){}function u(){return T.useContext(XQ)}function bQ(Y,Q){let X=x.c(5),J=Q===void 0?!0:Q,Z=u(),G,U;if(X[0]!==Y||X[1]!==J||X[2]!==Z)G=()=>{if(!Z||!J)return;return Z.registerActiveContext(Y),()=>{Z.unregisterActiveContext(Y)}},U=[Y,Z,J],X[0]=Y,X[1]=J,X[2]=Z,X[3]=G,X[4]=U;else G=X[3],U=X[4];T.useLayoutEffect(G,U)}var x,T,YQ,XQ;var ZQ=E(()=>{QQ();x=z(C(),1),T=z(m(),1),YQ=z(j(),1),XQ=T.createContext(null)});function lQ(Y,Q,X={}){let{context:J="Global",isActive:Z=!0}=X,G=u();D.useEffect(()=>{if(!G||!Z)return;return G.registerHandler({action:Y,context:J,handler:Q})},[Y,J,Q,G,Z]);let U=D.useCallback((H,B,I)=>{if(!G)return;let V=[...G.activeContexts,J,"Global"],L=[...new Set(V)],q=G.resolve(H,B,L);switch(q.type){case"match":if(G.setPendingChord(null),q.action===Y){if(Q()!==!1)I.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),I.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),I.stopImmediatePropagation();break;case"none":break}},[Y,J,Q,G]);h(U,{isActive:Z})}function gQ(Y,Q={}){let{context:X="Global",isActive:J=!0}=Q,Z=u();D.useEffect(()=>{if(!Z||!J)return;let U=[];for(let[H,B]of Object.entries(Y))U.push(Z.registerHandler({action:H,context:X,handler:B}));return()=>{for(let H of U)H()}},[X,Y,Z,J]);let G=D.useCallback((U,H,B)=>{if(!Z)return;let I=[...Z.activeContexts,X,"Global"],V=[...new Set(I)],L=Z.resolve(U,H,V);switch(L.type){case"match":if(Z.setPendingChord(null),L.action in Y){let q=Y[L.action];if(q&&q()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Z.setPendingChord(L.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Z.setPendingChord(null);break;case"unbound":Z.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[X,Y,Z]);h(G,{isActive:J})}var D;var EQ=E(()=>{y();ZQ();D=z(m(),1)});function GQ(){return M.useContext(l)!==null}function cQ(Y){let Q=JQ.c(3),X=M.useContext(l),J;if(Q[0]!==X||Q[1]!==Y)J=X?{rows:X.rows,columns:X.columns}:Y,Q[0]=X,Q[1]=Y,Q[2]=J;else J=Q[2];return J}function dQ(){return M.useContext(l)?.scrollRef??null}var JQ,M,l;var UQ=E(()=>{JQ=z(C(),1),M=z(m(),1),l=M.createContext(null)});function OQ(Y){let Q=LQ.c(21),{width:X,color:J,char:Z,padding:G,title:U}=Y,H=Z===void 0?"─":Z,B=G===void 0?0:G,{columns:I}=d(),V=Math.max(0,(X??I)-B);if(U){let K=qQ(U)+2,A=Math.max(0,V-K),w=Math.floor(A/2),S=A-w,W=!J,_;if(Q[0]!==H||Q[1]!==w)_=H.repeat(w),Q[0]=H,Q[1]=w,Q[2]=_;else _=Q[2];let N;if(Q[3]!==U)N=f.jsxDEV($,{dimColor:!0,children:f.jsxDEV(HQ,{children:U},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q[3]=U,Q[4]=N;else N=Q[4];let O;if(Q[5]!==H||Q[6]!==S)O=H.repeat(S),Q[5]=H,Q[6]=S,Q[7]=O;else O=Q[7];let F;if(Q[8]!==J||Q[9]!==W||Q[10]!==_||Q[11]!==N||Q[12]!==O)F=f.jsxDEV($,{color:J,dimColor:W,children:[_," ",N," ",O]},void 0,!0,void 0,this),Q[8]=J,Q[9]=W,Q[10]=_,Q[11]=N,Q[12]=O,Q[13]=F;else F=Q[13];return F}let L=!J,q;if(Q[14]!==H||Q[15]!==V)q=H.repeat(V),Q[14]=H,Q[15]=V,Q[16]=q;else q=Q[16];let P;if(Q[17]!==J||Q[18]!==L||Q[19]!==q)P=f.jsxDEV($,{color:J,dimColor:L,children:q},void 0,!1,void 0,this),Q[17]=J,Q[18]=L,Q[19]=q,Q[20]=P;else P=Q[20];return P}var LQ,f;var FQ=E(()=>{a();wQ();y();LQ=z(C(),1),f=z(j(),1)});function QX(Y){let Q=IQ.c(9),{children:X,color:J}=Y;if(GQ()){let H;if(Q[0]!==X)H=v.jsxDEV(p,{flexDirection:"column",paddingX:1,flexShrink:0,children:X},void 0,!1,void 0,this),Q[0]=X,Q[1]=H;else H=Q[1];return H}let Z;if(Q[2]!==J)Z=v.jsxDEV(OQ,{color:J},void 0,!1,void 0,this),Q[2]=J,Q[3]=Z;else Z=Q[3];let G;if(Q[4]!==X)G=v.jsxDEV(p,{flexDirection:"column",paddingX:2,children:X},void 0,!1,void 0,this),Q[4]=X,Q[5]=G;else G=Q[5];let U;if(Q[6]!==Z||Q[7]!==G)U=v.jsxDEV(p,{flexDirection:"column",paddingTop:1,children:[Z,G]},void 0,!0,void 0,this),Q[6]=Z,Q[7]=G,Q[8]=U;else U=Q[8];return U}var IQ,v;var WQ=E(()=>{UQ();y();FQ();IQ=z(C(),1),v=z(j(),1)});
2
- export{d as GS,a as HS,r as IS,VQ as JS,b as KS,DQ as LS,i as MS,n as NS,e as OS,QQ as PS,pQ as QS,u as RS,bQ as SS,ZQ as TS,lQ as US,gQ as VS,EQ as WS,l as XS,GQ as YS,cQ as ZS,dQ as _S,UQ as $S,OQ as aT,FQ as bT,QX as cT,WQ as dT};
@@ -1,2 +0,0 @@
1
- import{ve as O0,we as I0,ye as FP}from"./cli-0.1.11-jne21ka1.mjs";import{$q as D0,Ay as J0,By as YP,DK as KP,EK as jP,KI as ZP,LI as V0,Mq as MP,NI as qP,Oq as U0,Pq as C0,Qq as p0,Rq as $0,SI as VP,Uq as b0,ZI as E0,bK as Q0,cK as WP,eK as x0,gr as zP,hJ as EP,ov as L0,pr as uP,qv as v0}from"./cli-0.1.11-s8ygndzf.mjs";import{DP as p,EP as u0,FP as j,GP as y0,HP as e,IP as z0,LP as A0,MP as HP}from"./cli-0.1.11-r990p54m.mjs";import{aS as B0,bS as XP}from"./cli-0.1.11-d4ahh3jz.mjs";import{GS as QP,HS as pP,US as w0,WS as $P}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as E,QU as Q,SU as L,WU as k0,eT as h0,eU as JP,jU as CP,kV as LP,nT as N0,vV as K0}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as l}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as i0}from"./cli-0.1.11-x37jysc0.mjs";import{OX as c0,PX as cP}from"./cli-0.1.11-16086k9e.mjs";import{S4 as GP,i5 as dP}from"./cli-0.1.11-qbcfg80y.mjs";import{I7 as e0,J$ as S0,K$ as g0,K7 as hP,L$ as fP,L7 as T,M7 as PP,X$ as R0,Y$ as wP,eaa as j0}from"./cli-0.1.11-v7bwjqf0.mjs";import{Oea as d0,Pea as mP}from"./cli-0.1.11-7qpnfx56.mjs";import{dga as V,ega as TP}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as M0,Jga as r0}from"./cli-0.1.11-vq5fvf9m.mjs";import{Nna as B,Rna as G0}from"./cli-0.1.11-yrfxpjhr.mjs";function f0(G){let P=s0.c(9),{serverToolsCount:X,serverPromptsCount:k,serverResourcesCount:Z}=G,w;if(P[0]!==k||P[1]!==Z||P[2]!==X){if(w=[],X>0)w.push("tools");if(Z>0)w.push("resources");if(k>0)w.push("prompts");P[0]=k,P[1]=Z,P[2]=X,P[3]=w}else w=P[3];let M;if(P[4]===Symbol.for("react.memo_cache_sentinel"))M=W0.jsxDEV(L,{bold:!0,children:"Capabilities: "},void 0,!1,void 0,this),P[4]=M;else M=P[4];let K;if(P[5]!==w)K=w.length>0?W0.jsxDEV(e,{children:w},void 0,!1,void 0,this):"none",P[5]=w,P[6]=K;else K=P[6];let R;if(P[7]!==K)R=W0.jsxDEV(Q,{children:[M,W0.jsxDEV(L,{color:"text",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[7]=K,P[8]=R;else R=P[8];return R}var s0,W0;var T0=G0(()=>{K0();z0();s0=B(h0(),1),W0=B(l(),1)});function H0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function F0(G,P){let X=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${X}`}var m0=()=>{};function IG({server:G,serverToolsCount:P,onViewTools:X,onCancel:k,onComplete:Z,borderless:w=!1}){let[M]=N0(),K=B0(),{columns:R}=QP(),[g,O]=z.default.useState(!1),[i,I]=z.default.useState(null),m=Q0((q)=>q.mcp),b=WP(),[_,F]=z.default.useState(null),[W,N]=z.useState(!1),y=z.useRef(null),[d,u]=z.useState(!1),[D,$]=z.useState(null),[C,S]=z.useState(!1),[v,x]=z.useState(null),[o,a]=z.useState(!1),[t,P0]=z.useState(!1),n=z.useRef(void 0),A=z.useRef(!1),[n0,X0]=z.useState(""),[NP,UP]=z.useState(0),[l0,o0]=z.useState(null);z.useEffect(()=>()=>{if(A.current=!0,y.current?.abort(),n.current!==void 0)clearTimeout(n.current)},[]);let Y0=G.isAuthenticated||G.client.type==="connected"&&P>0,Z0=O0(),bP=z.default.useCallback(async()=>{u(!1),$(null),N(!0);try{let q=await Z0(G.name),H=q.client.type==="connected";if(V("tengu_claudeai_mcp_auth_completed",{success:H}),H)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){V("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(F0(q,G.name))}finally{N(!1)}},[Z0,G.name,Z]),yP=z.default.useCallback(async()=>{await E0(G.name,{...G.config,scope:G.scope}),b((q)=>{let H=q.mcp.clients.map((s)=>s.name===G.name?{...s,type:"needs-auth"}:s),U=C0(q.mcp.tools,G.name),c=p0(q.mcp.commands,G.name),q0=$0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:H,tools:U,commands:c,resources:q0}}}),V("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),S(!1),x(null),a(!1)},[G.name,G.config,G.scope,b,Z]);w0("confirm:no",()=>{y.current?.abort(),y.current=null,O(!1),F(null)},{context:"Confirmation",isActive:g}),w0("confirm:no",()=>{u(!1),$(null)},{context:"Confirmation",isActive:d}),w0("confirm:no",()=>{S(!1),x(null),a(!1)},{context:"Confirmation",isActive:C}),LP((q,H)=>{if(H.return&&d)bP();if(H.return&&C)if(o)yP();else{let U=`${d0().CLAUDE_AI_ORIGIN}/settings/connectors`;x(U),a(!0),c0(U)}if(q==="c"&&!t){let U=_||D||v;if(U)JP(U).then((c)=>{if(A.current)return;if(c)process.stdout.write(c);if(P0(!0),n.current!==void 0)clearTimeout(n.current);n.current=setTimeout(P0,2000,!1)})}});let BP=R0(String(G.name)),OP=U0(m.commands,G.name).length,t0=I0(),IP=z.default.useCallback(async()=>{let q=d0().CLAUDE_AI_ORIGIN,U=GP()?.organizationUuid,c;if(U&&G.config.type==="claudeai-proxy"&&G.config.id){let q0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,s=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");c=`${q}/api/organizations/${U}/mcp/start-auth/${q0}?product_surface=${s}`}else c=`${q}/settings/connectors`;$(c),u(!0),V("tengu_claudeai_mcp_auth_started",{}),await c0(c)},[G.config]),_P=z.default.useCallback(()=>{S(!0),V("tengu_claudeai_mcp_clear_auth_started",{})},[]),SP=z.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await t0(G.name),G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});k()}catch(H){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${M0(H)}`)}},[G.client.type,G.config.type,G.name,t0,k,Z]),gP=z.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;O(!0),I(null);let q=new AbortController;y.current=q;try{if(G.isAuthenticated&&G.config)await V0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,F,q.signal,{onWaitingForCallback:(U)=>{o0(()=>U)}}),V("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let H=await Z0(G.name);if(H.client.type==="connected"){let U=Y0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(U)}else if(H.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else e0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof ZP))I(H.message)}finally{O(!1),y.current=null,o0(null),X0("")}},[G.isAuthenticated,G.config,G.name,Z,Z0,Y0]),AP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await V0(G.name,G.config),V("tengu_mcp_auth_config_clear",{}),await E0(G.name,{...G.config,scope:G.scope}),b((q)=>{let H=q.mcp.clients.map((s)=>s.name===G.name?{...s,type:"failed"}:s),U=C0(q.mcp.tools,G.name),c=p0(q.mcp.commands,G.name),q0=$0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:H,tools:U,commands:c,resources:q0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(g){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Authenticating with ",G.name,"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&_&&l0&&J.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[J.jsxDEV(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"},void 0,!1,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["URL ",">"," "]},void 0,!0,void 0,this),J.jsxDEV(KP,{value:n0,onChange:X0,onSubmit:(H)=>{l0(H.trim()),X0("")},cursorOffset:NP,onChangeCursorOffset:UP,columns:R-8},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,children:J.jsxDEV(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(d)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Authenticating with ",G.name,"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:" A browser window will open for authentication"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:D},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," after authenticating in your browser."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(C)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Clear authentication for ",G.name]},void 0,!0,void 0,this),o?J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{children:'Find the MCP server in the browser and click "Disconnect".'},void 0,!1,void 0,this),v&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," when done."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'},void 0,!1,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," to open the browser."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(W)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"text",children:["Connecting to ",J.jsxDEV(L,{bold:!0,children:G.name},void 0,!1,void 0,this),"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:" Establishing connection to MCP server"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,children:"This may take a few moments."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let h=[];if(G.client.type==="disabled")h.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)h.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")h.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")h.push({label:"Authenticate",value:"claudeai-auth"})}else{if(Y0)h.push({label:"Re-authenticate",value:"reauth"}),h.push({label:"Clear authentication",value:"clear-auth"});if(!Y0)h.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")h.push({label:"Reconnect",value:"reconnectMcpServer"});h.push({label:"Disable",value:"toggle-enabled"})}if(h.length===0)h.push({label:"Back",value:"back"});return J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{flexDirection:"column",paddingX:1,borderStyle:w?void 0:"round",children:[J.jsxDEV(Q,{marginBottom:1,children:J.jsxDEV(L,{bold:!0,children:[BP," MCP Server"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Q,{flexDirection:"column",gap:0,children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Status: "},void 0,!1,void 0,this),G.client.type==="disabled"?J.jsxDEV(L,{children:[E("inactive",M)(T.radioOff)," disabled"]},void 0,!0,void 0,this):G.client.type==="connected"?J.jsxDEV(L,{children:[E("success",M)(T.tick)," connected"]},void 0,!0,void 0,this):G.client.type==="pending"?J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{dimColor:!0,children:T.radioOff},void 0,!1,void 0,this),J.jsxDEV(L,{children:" connecting…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):G.client.type==="needs-auth"?J.jsxDEV(L,{children:[E("warning",M)(T.triangleUpOutline)," needs authentication"]},void 0,!0,void 0,this):J.jsxDEV(L,{children:[E("error",M)(T.cross)," failed"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.transport!=="claudeai-proxy"&&J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Auth: "},void 0,!1,void 0,this),Y0?J.jsxDEV(L,{children:[E("success",M)(T.tick)," authenticated"]},void 0,!0,void 0,this):J.jsxDEV(L,{children:[E("error",M)(T.cross)," not authenticated"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"URL: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:G.config.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Config location: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:b0(G.scope)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.client.type==="connected"&&J.jsxDEV(f0,{serverToolsCount:P,serverPromptsCount:OP,serverResourcesCount:m.resources[G.name]?.length||0},void 0,!1,void 0,this),G.client.type==="connected"&&P>0&&J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Tools: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:[P," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i&&J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L,{color:"error",children:["Error: ",i]},void 0,!0,void 0,this)},void 0,!1,void 0,this),h.length>0&&J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L0,{options:h,onChange:async(q)=>{switch(q){case"tools":X();break;case"auth":case"reauth":await gP();break;case"clear-auth":await AP();break;case"claudeai-auth":await IP();break;case"claudeai-clear-auth":_P();break;case"reconnectMcpServer":N(!0);try{let H=await Z0(G.name);if(G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_reconnect",{success:H.client.type==="connected"});let{message:U}=H0(H,G.name);Z?.(U)}catch(H){if(G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(F0(H,G.name))}finally{N(!1)}break;case"toggle-enabled":await SP();break;case"back":k();break}},onCancel:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L,{dimColor:!0,italic:!0,children:K.pending?J.jsxDEV(J.Fragment,{children:["Press ",K.keyName," again to exit"]},void 0,!0,void 0,this):J.jsxDEV(e,{children:[J.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),J.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var z,J;var iP=G0(()=>{PP();TP();mP();XP();pP();CP();K0();$P();VP();EP();FP();D0();x0();dP();cP();r0();hP();j0();y0();v0();z0();u0();YP();jP();T0();m0();z=B(i0(),1),J=B(l(),1)});function DG({server:G,serverToolsCount:P,onViewTools:X,onCancel:k,onComplete:Z,borderless:w=!1}){let[M]=N0(),K=B0(),R=Q0((W)=>W.mcp),g=O0(),O=I0(),[i,I]=_0.useState(!1),m=_0.default.useCallback(async()=>{let W=G.client.type!=="disabled";try{await O(G.name),k()}catch(N){Z(`Failed to ${W?"disable":"enable"} MCP server '${G.name}': ${M0(N)}`)}},[G.client.type,G.name,O,k,Z]),b=R0(String(G.name)),_=U0(R.commands,G.name).length,F=[];if(G.client.type!=="disabled"&&P>0)F.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")F.push({label:"Reconnect",value:"reconnectMcpServer"});if(F.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),F.length===0)F.push({label:"Back",value:"back"});if(i)return Y.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[Y.jsxDEV(L,{color:"text",children:["Reconnecting to ",Y.jsxDEV(L,{bold:!0,children:G.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(J0,{},void 0,!1,void 0,this),Y.jsxDEV(L,{children:" Restarting MCP server process"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:"This may take a few moments."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Y.jsxDEV(Q,{flexDirection:"column",children:[Y.jsxDEV(Q,{flexDirection:"column",paddingX:1,borderStyle:w?void 0:"round",children:[Y.jsxDEV(Q,{marginBottom:1,children:Y.jsxDEV(L,{bold:!0,children:[b," MCP Server"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Q,{flexDirection:"column",gap:0,children:[Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Status: "},void 0,!1,void 0,this),G.client.type==="disabled"?Y.jsxDEV(L,{children:[E("inactive",M)(T.radioOff)," disabled"]},void 0,!0,void 0,this):G.client.type==="connected"?Y.jsxDEV(L,{children:[E("success",M)(T.tick)," connected"]},void 0,!0,void 0,this):G.client.type==="pending"?Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV(L,{dimColor:!0,children:T.radioOff},void 0,!1,void 0,this),Y.jsxDEV(L,{children:" connecting…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Y.jsxDEV(L,{children:[E("error",M)(T.cross)," failed"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Command: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:G.config.command},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.config.args&&G.config.args.length>0&&Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Args: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:G.config.args.join(" ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Config location: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:b0(zP(G.name)?.scope??"dynamic")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.client.type==="connected"&&Y.jsxDEV(f0,{serverToolsCount:P,serverPromptsCount:_,serverResourcesCount:R.resources[G.name]?.length||0},void 0,!1,void 0,this),G.client.type==="connected"&&P>0&&Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Tools: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:[P," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.length>0&&Y.jsxDEV(Q,{marginTop:1,children:Y.jsxDEV(L0,{options:F,onChange:async(W)=>{if(W==="tools")X();else if(W==="reconnectMcpServer"){I(!0);try{let N=await g(G.name),{message:y}=H0(N,G.name);Z?.(y)}catch(N){Z?.(F0(N,G.name))}finally{I(!1)}}else if(W==="toggle-enabled")await m();else if(W==="back")k()},onCancel:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{marginTop:1,children:Y.jsxDEV(L,{dimColor:!0,italic:!0,children:K.pending?Y.jsxDEV(Y.Fragment,{children:["Press ",K.keyName," again to exit"]},void 0,!0,void 0,this):Y.jsxDEV(e,{children:[Y.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),Y.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),Y.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _0,Y;var DP=G0(()=>{PP();XP();K0();uP();FP();D0();x0();r0();j0();y0();v0();z0();u0();YP();T0();m0();_0=B(i0(),1),Y=B(l(),1)});function oG(G){let P=kP.c(44),{tool:X,server:k,onBack:Z}=G,[w,M]=a0.default.useState(""),K,R;if(P[0]!==k.name||P[1]!==X){R=S0(X.name,k.name);let P0=X.userFacingName?X.userFacingName({}):R;K=g0(P0),P[0]=k.name,P[1]=X,P[2]=K,P[3]=R}else K=P[2],R=P[3];let g=K,O;if(P[4]!==X)O=X.isReadOnly?.({})??!1,P[4]=X,P[5]=O;else O=P[5];let i=O,I;if(P[6]!==X)I=X.isDestructive?.({})??!1,P[6]=X,P[7]=I;else I=P[7];let m=I,b;if(P[8]!==X)b=X.isOpenWorld?.({})??!1,P[8]=X,P[9]=b;else b=P[9];let _=b,F,W;if(P[10]!==X)F=()=>{(async function(){try{let A=await X.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});M(A)}catch{M("Failed to load description")}})()},W=[X],P[10]=X,P[11]=F,P[12]=W;else F=P[11],W=P[12];a0.default.useEffect(F,W);let N;if(P[13]!==i)N=i&&f.jsxDEV(L,{color:"success",children:" [read-only]"},void 0,!1,void 0,this),P[13]=i,P[14]=N;else N=P[14];let y;if(P[15]!==m)y=m&&f.jsxDEV(L,{color:"error",children:" [destructive]"},void 0,!1,void 0,this),P[15]=m,P[16]=y;else y=P[16];let d;if(P[17]!==_)d=_&&f.jsxDEV(L,{dimColor:!0,children:" [open-world]"},void 0,!1,void 0,this),P[17]=_,P[18]=d;else d=P[18];let u;if(P[19]!==g||P[20]!==N||P[21]!==y||P[22]!==d)u=f.jsxDEV(f.Fragment,{children:[g,N,y,d]},void 0,!0,void 0,this),P[19]=g,P[20]=N,P[21]=y,P[22]=d,P[23]=u;else u=P[23];let D=u,$;if(P[24]===Symbol.for("react.memo_cache_sentinel"))$=f.jsxDEV(L,{bold:!0,children:"Tool name: "},void 0,!1,void 0,this),P[24]=$;else $=P[24];let C;if(P[25]!==R)C=f.jsxDEV(Q,{children:[$,f.jsxDEV(L,{dimColor:!0,children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[25]=R,P[26]=C;else C=P[26];let S;if(P[27]===Symbol.for("react.memo_cache_sentinel"))S=f.jsxDEV(L,{bold:!0,children:"Full name: "},void 0,!1,void 0,this),P[27]=S;else S=P[27];let v;if(P[28]!==X.name)v=f.jsxDEV(Q,{children:[S,f.jsxDEV(L,{dimColor:!0,children:X.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[28]=X.name,P[29]=v;else v=P[29];let x;if(P[30]!==w)x=w&&f.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[f.jsxDEV(L,{bold:!0,children:"Description:"},void 0,!1,void 0,this),f.jsxDEV(L,{wrap:"wrap",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[30]=w,P[31]=x;else x=P[31];let o;if(P[32]!==X.inputJSONSchema)o=X.inputJSONSchema&&X.inputJSONSchema.properties&&Object.keys(X.inputJSONSchema.properties).length>0&&f.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[f.jsxDEV(L,{bold:!0,children:"Parameters:"},void 0,!1,void 0,this),f.jsxDEV(Q,{marginLeft:2,flexDirection:"column",children:Object.entries(X.inputJSONSchema.properties).map((P0)=>{let[n,A]=P0,X0=X.inputJSONSchema?.required?.includes(n);return f.jsxDEV(L,{children:["• ",n,X0&&f.jsxDEV(L,{dimColor:!0,children:" (required)"},void 0,!1,void 0,this),":"," ",f.jsxDEV(L,{dimColor:!0,children:typeof A==="object"&&A&&"type"in A?String(A.type):"unknown"},void 0,!1,void 0,this),typeof A==="object"&&A&&"description"in A&&f.jsxDEV(L,{dimColor:!0,children:[" - ",String(A.description)]},void 0,!0,void 0,this)]},n,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[32]=X.inputJSONSchema,P[33]=o;else o=P[33];let a;if(P[34]!==C||P[35]!==v||P[36]!==x||P[37]!==o)a=f.jsxDEV(Q,{flexDirection:"column",children:[C,v,x,o]},void 0,!0,void 0,this),P[34]=C,P[35]=v,P[36]=x,P[37]=o,P[38]=a;else a=P[38];let t;if(P[39]!==Z||P[40]!==k.name||P[41]!==a||P[42]!==D)t=f.jsxDEV(A0,{title:D,subtitle:k.name,onCancel:Z,inputGuide:vP,children:a},void 0,!1,void 0,this),P[39]=Z,P[40]=k.name,P[41]=a,P[42]=D,P[43]=t;else t=P[43];return t}function vP(G){return G.pending?f.jsxDEV(L,{children:["Press ",G.keyName," again to exit"]},void 0,!0,void 0,this):f.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"},void 0,!1,void 0,this)}var kP,a0,f;var xP=G0(()=>{K0();fP();y0();HP();kP=B(h0(),1),a0=B(i0(),1),f=B(l(),1)});function ZJ(G){let P=RP.c(21),{server:X,onSelectTool:k,onBack:Z}=G,w=Q0(nP),M;P:{if(X.client.type!=="connected"){let W;if(P[0]===Symbol.for("react.memo_cache_sentinel"))W=[],P[0]=W;else W=P[0];M=W;break P}let F;if(P[1]!==w||P[2]!==X.name)F=MP(w,X.name),P[1]=w,P[2]=X.name,P[3]=F;else F=P[3];M=F}let K=M,R;if(P[4]!==X.name||P[5]!==K){let F;if(P[7]!==X.name)F=(W,N)=>{let y=S0(W.name,X.name),d=W.userFacingName?W.userFacingName({}):y,u=g0(d),D=W.isReadOnly?.({})??!1,$=W.isDestructive?.({})??!1,C=W.isOpenWorld?.({})??!1,S=[];if(D)S.push("read-only");if($)S.push("destructive");if(C)S.push("open-world");return{label:u,value:N.toString(),description:S.length>0?S.join(", "):void 0,descriptionColor:$?"error":D?"success":void 0}},P[7]=X.name,P[8]=F;else F=P[8];R=K.map(F),P[4]=X.name,P[5]=K,P[6]=R}else R=P[6];let g=R,O=`Tools for ${X.name}`,i=K.length,I;if(P[9]!==K.length)I=wP(K.length,"tool"),P[9]=K.length,P[10]=I;else I=P[10];let m=`${i} ${I}`,b;if(P[11]!==Z||P[12]!==k||P[13]!==K||P[14]!==g)b=K.length===0?r.jsxDEV(L,{dimColor:!0,children:"No tools available"},void 0,!1,void 0,this):r.jsxDEV(L0,{options:g,onChange:(F)=>{let W=parseInt(F),N=K[W];if(N)k(N,W)},onCancel:Z},void 0,!1,void 0,this),P[11]=Z,P[12]=k,P[13]=K,P[14]=g,P[15]=b;else b=P[15];let _;if(P[16]!==Z||P[17]!==O||P[18]!==m||P[19]!==b)_=r.jsxDEV(A0,{title:O,subtitle:m,onCancel:Z,inputGuide:aP,children:b},void 0,!1,void 0,this),P[16]=Z,P[17]=O,P[18]=m,P[19]=b,P[20]=_;else _=P[20];return _}function aP(G){return G.pending?r.jsxDEV(L,{children:["Press ",G.keyName," again to exit"]},void 0,!0,void 0,this):r.jsxDEV(e,{children:[r.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),r.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),r.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nP(G){return G.mcp.tools}var RP,r;var lP=G0(()=>{K0();fP();D0();x0();j0();y0();v0();z0();HP();u0();RP=B(h0(),1),r=B(l(),1)});
2
- export{IG as me,iP as ne,DG as oe,DP as pe,oG as qe,xP as re,ZJ as se,lP as te};
@@ -1,2 +0,0 @@
1
- import{MT as U,NT as _,OT as E,QT as $,RT as V,wU as v,xU as g,yU as B}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as Y}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as p}from"./cli-0.1.11-x37jysc0.mjs";import{Vma as I,gka as Z}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as T,Rna as H}from"./cli-0.1.11-yrfxpjhr.mjs";function M({children:w,ref:A,stickyScroll:C,...L}){let G=K.useRef(null),[,F]=K.useState(0),N=K.useRef(new Set),O=K.useRef(!1),X=()=>{for(let q of N.current)q()};function P(q){if(Z(),U(q),$(),X(),O.current)return;O.current=!0,queueMicrotask(()=>{O.current=!1,_(q)})}return K.useImperativeHandle(A,()=>({scrollTo(q){let z=G.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),P(z)},scrollToElement(q,z=0){let J=G.current;if(!J)return;J.stickyScroll=!1,J.pendingScrollDelta=void 0,J.scrollAnchor={el:q,offset:z},P(J)},scrollBy(q){let z=G.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),P(z)},scrollToBottom(){let q=G.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,U(q),X(),F((z)=>z+1)},getScrollTop(){return G.current?.scrollTop??0},getPendingDelta(){return G.current?.pendingScrollDelta??0},getScrollHeight(){return G.current?.scrollHeight??0},getFreshScrollHeight(){return G.current?.childNodes[0]?.yogaNode?.getComputedHeight()??G.current?.scrollHeight??0},getViewportHeight(){return G.current?.scrollViewportHeight??0},getViewportTop(){return G.current?.scrollViewportTop??0},isSticky(){let q=G.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return N.current.add(q),()=>N.current.delete(q)},setClampBounds(q,z){let J=G.current;if(!J)return;J.scrollClampMin=q,J.scrollClampMax=z}}),[]),W.jsxDEV("ink-box",{ref:(q)=>{if(G.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:L.flexDirection??"row",flexGrow:L.flexGrow??0,flexShrink:L.flexShrink??1,...L,overflowX:"scroll",overflowY:"scroll"},...C?{stickyScroll:!0}:{},children:W.jsxDEV(g,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var K,W,u;var Q=H(()=>{I();E();V();v();B();K=T(p(),1),W=T(Y(),1);u=M});
2
- export{u as lg,Q as mg};
@@ -1,2 +0,0 @@
1
- import{Ae as rG,Ge as iG,ze as bG}from"./cli-0.1.11-hmfevmz1.mjs";import{$I as u,$q as mG,Iq as HG,Jq as KG,Lq as dG,Nq as LG,Sq as VG,TI as DG,WI as aG,ZI as v,aJ as c,bJ as r,bK as n,br as WG,cK as _G,cr as qG,dJ as d,dK as UG,eJ as i,eK as sG,fK as $G,gK as cG,go as uG,hJ as oG,hr as a,lr as kG,nr as R,or as o,pr as pG,xI as s,yI as lG}from"./cli-0.1.11-s8ygndzf.mjs";import{eT as JJ}from"./cli-0.1.11-bvd2r7an.mjs";import{MW as vG,qW as FG,tW as OG,yW as jG}from"./cli-0.1.11-424zgj5k.mjs";import{qX as PG}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as BG}from"./cli-0.1.11-x37jysc0.mjs";import{G$ as YG,H7 as E,I7 as D,K7 as CG,L$ as fG}from"./cli-0.1.11-v7bwjqf0.mjs";import{nfa as NG}from"./cli-0.1.11-fag2wtke.mjs";import{dga as x,ega as gG}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as w,Jga as MG,Pga as TG,bha as zG,eha as SG}from"./cli-0.1.11-vq5fvf9m.mjs";import{Vma as ZG,aja as XG}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as M,Rna as l}from"./cli-0.1.11-yrfxpjhr.mjs";var GG=l(()=>{TG();NG()});function JG(F){let B="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${B}`}function QG(F,B){if(B.length===0)return;F((k)=>{let h=new Set(k.plugins.errors.map((K)=>JG(K))),P=B.filter((K)=>!h.has(JG(K)));if(P.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...P]}}})}function IG(F,B=!1){let k=UG(),h=n((G)=>G.authVersion),P=n((G)=>G.mcp.pluginReconnectKey),K=_G(),L=q.useRef(new Map),N=q.useRef(new Set),C=q.useRef(null);q.useEffect(()=>{},[K]);let{addNotification:T}=$G(),RG=16,m=q.useRef([]),y=q.useRef(null),g=q.useCallback(()=>{y.current=null;let G=m.current;if(G.length===0)return;m.current=[],K((Y)=>{let z=Y.mcp;for(let V of G){let{tools:Q,commands:O,resources:W,...J}=V,j=J.type==="disabled"||J.type==="failed"?Q??[]:Q,X=J.type==="disabled"||J.type==="failed"?O??[]:O,Z=J.type==="disabled"||J.type==="failed"?W??[]:W,H=YG(J.name),f=z.clients.findIndex((I)=>I.name===J.name)===-1?[...z.clients,J]:z.clients.map((I)=>I.name===J.name?J:I),b=j===void 0?z.tools:[...s(z.tools,(I)=>I.name?.startsWith(H)),...j],p=X===void 0?z.commands:[...s(z.commands,(I)=>LG(I,J.name)),...X],hG=Z===void 0?z.resources:{...z.resources,...Z.length>0?{[J.name]:Z}:bG(z.resources,J.name)};z={...z,clients:f,tools:b,commands:p,resources:hG}}return{...Y,mcp:z}})},[K]),_=q.useCallback((G)=>{if(m.current.push(G),y.current===null)y.current=setTimeout(g,RG)},[g]),U=q.useCallback(({client:G,tools:Y,commands:z,resources:V})=>{switch(_({...G,tools:Y,commands:z,resources:V}),G.type){case"connected":{if(DG(G.client,G.name,K),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(v(G.name,G.config).catch(()=>{zG(`Failed to invalidate the server cache: ${G.name}`)}),R(G.name)){D(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let O=GJ(Q);D(G.name,`${O} transport closed/disconnected, attempting automatic reconnection`);let W=L.current.get(G.name);if(W)clearTimeout(W),L.current.delete(G.name);(async()=>{for(let j=1;j<=A;j++){if(R(G.name)){D(G.name,"Server disabled during reconnection, stopping retry"),L.current.delete(G.name);return}_({...G,type:"pending",reconnectAttempt:j,maxReconnectAttempts:A});let X=Date.now();try{let H=await d(G.name,G.config),$=Date.now()-X;if(H.client.type==="connected"){D(G.name,`${O} reconnection successful after ${$}ms (attempt ${j})`),L.current.delete(G.name),U(H);return}if(D(G.name,`${O} reconnection attempt ${j} completed with status: ${H.client.type}`),j===A){D(G.name,`Max reconnection attempts (${A}) reached, giving up`),L.current.delete(G.name),U(H);return}}catch(H){let $=Date.now()-X;if(E(G.name,`${O} reconnection attempt ${j} failed after ${$}ms: ${H}`),j===A){D(G.name,`Max reconnection attempts (${A}) reached, giving up`),L.current.delete(G.name),_({...G,type:"failed"});return}}let Z=Math.min(tG*Math.pow(2,j-1),eG);D(G.name,`Scheduling reconnection attempt ${j+1} in ${Z}ms`),await new Promise((H)=>{let $=setTimeout(H,Z);L.current.set(G.name,$)})}})()}else _({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(jG,async()=>{D(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=u.cache.get(G.name);u.cache.delete(G.name);let O=await u(G),W=O.length;if(Q)Q.then((J)=>{x("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:W})},()=>{x("tengu_mcp_list_changed",{type:"tools",newCount:W})});else x("tengu_mcp_list_changed",{type:"tools",newCount:W});_({...G,tools:O})}catch(Q){E(G.name,`Failed to refresh tools after list_changed notification: ${w(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{D(G.name,"Received prompts/list_changed notification, refreshing prompts"),x("tengu_mcp_list_changed",{type:"prompts"});try{r.cache.delete(G.name);let[Q,O]=await Promise.all([r(G),Promise.resolve([])]);_({...G,commands:[...Q,...O]}),nG?.()}catch(Q){E(G.name,`Failed to refresh prompts after list_changed notification: ${w(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{D(G.name,"Received resources/list_changed notification, refreshing resources"),x("tengu_mcp_list_changed",{type:"resources"});try{c.cache.delete(G.name);{let Q=await c(G);_({...G,resources:Q})}}catch(Q){E(G.name,`Failed to refresh resources after list_changed notification: ${w(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[_]),e=XG();q.useEffect(()=>{async function G(){let{servers:Y,errors:z}=B?{servers:{},errors:[]}:await a(F),V={...Y,...F};QG(K,z),K((Q)=>{let{stale:O,...W}=VG(Q.mcp,V);for(let X of O){let Z=L.current.get(X.name);if(Z)clearTimeout(Z),L.current.delete(X.name);if(X.type==="connected")X.client.onclose=void 0,v(X.name,X.config).catch(()=>{})}let J=new Set(W.clients.map((X)=>X.name)),j=Object.entries(V).filter(([X])=>!J.has(X)).map(([X,Z])=>({name:X,type:R(X)?"disabled":"pending",config:Z}));if(j.length===0&&O.length===0)return Q;return{...Q,mcp:{...Q.mcp,...W,clients:[...W.clients,...j]}}})}G().catch((Y)=>{E("useManageMCPConnections",`Failed to initialize servers as pending: ${w(Y)}`)})},[B,F,K,e,P]),q.useEffect(()=>{let G=!1;async function Y(){let z;if(B||kG())z=Promise.resolve({});else KG(),z=HG();let{servers:V,errors:Q}=B?{servers:{},errors:[]}:await a(F,z);if(G)return;QG(K,Q);let O={...V,...F},W=Object.fromEntries(Object.entries(O).filter(([Z])=>!R(Z)));i(U,W).catch((Z)=>{E("useManageMcpConnections",`Failed to get MCP resources: ${w(Z)}`)});let J={};if(!B){if(J=qG(await z).allowed,G)return;if(Object.keys(J).length>0){let{servers:Z}=WG(J,O);J=Z}if(Object.keys(J).length>0){K((H)=>{let $=new Set(H.mcp.clients.map((b)=>b.name)),f=Object.entries(J).filter(([b])=>!$.has(b)).map(([b,p])=>({name:b,type:R(b)?"disabled":"pending",config:p}));if(f.length===0)return H;return{...H,mcp:{...H.mcp,clients:[...H.mcp.clients,...f]}}});let Z=Object.fromEntries(Object.entries(J).filter(([H])=>!R(H)));i(U,Z).catch((H)=>{E("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${w(H)}`)})}}let j={...O,...J},X={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(j))if(Z.scope==="enterprise")X.enterprise++;else if(Z.scope==="user")X.global++;else if(Z.scope==="project")X.project++;else if(Z.scope==="local")X.user++;else if(Z.scope==="dynamic")X.plugin++;else if(Z.scope==="claudeai")X.claudeai++;x("tengu_mcp_servers",{...X})}return Y(),()=>{G=!0}},[B,F,U,K,h,e,P]),q.useEffect(()=>{let G=L.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),y.current!==null)clearTimeout(y.current),y.current=null,g()}},[g]);let yG=q.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((Q)=>Q.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let z=L.current.get(G);if(z)clearTimeout(z),L.current.delete(G);let V=await d(G,Y.config);return U(V),V},[k,U]),AG=q.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((V)=>V.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let V=L.current.get(G);if(V)clearTimeout(V),L.current.delete(G);if(o(G,!1),Y.type==="connected")await v(G,Y.config);_({name:G,type:"disabled",config:Y.config})}else{o(G,!0),_({name:G,type:"pending",config:Y.config});let V=await d(G,Y.config);U(V)}},[k,_,U]);return{reconnectMcpServer:yG,toggleMcpServer:AG}}function GJ(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,nG=null,A=5,tG=1000,eG=30000;var EG=l(()=>{ZG();oG();vG();rG();lG();gG();pG();SG();ZG();cG();sG();MG();CG();uG();iG();GG();dG();aG();fG();mG();q=M(BG(),1)});function mJ(){let F=S.useContext(t);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function pJ(){let F=S.useContext(t);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function lJ(F){let B=wG.c(6),{children:k,dynamicMcpConfig:h,isStrictMcpConfig:P}=F,{reconnectMcpServer:K,toggleMcpServer:L}=IG(h,P),N;if(B[0]!==K||B[1]!==L)N={reconnectMcpServer:K,toggleMcpServer:L},B[0]=K,B[1]=L,B[2]=N;else N=B[2];let C=N,T;if(B[3]!==k||B[4]!==C)T=xG.jsxDEV(t.Provider,{value:C,children:k},void 0,!1,void 0,this),B[3]=k,B[4]=C,B[5]=T;else T=B[5];return T}var wG,S,xG,t;var QJ=l(()=>{EG();wG=M(JJ(),1),S=M(BG(),1),xG=M(PG(),1),t=S.createContext(null)});
2
- export{GG as ue,mJ as ve,pJ as we,lJ as xe,QJ as ye};
@@ -1,7 +0,0 @@
1
- import{rX as y}from"./cli-0.1.11-x37jysc0.mjs";import{Nna as o,Pna as c}from"./cli-0.1.11-yrfxpjhr.mjs";var i=c((n)=>{var G=o(y());(function(){function I(q){if(q==null)return null;if(typeof q==="function")return q.$$typeof===s?null:q.displayName||q.name||null;if(typeof q==="string")return q;switch(q){case L:return"Fragment";case k:return"Profiler";case C:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList";case l:return"Activity"}if(typeof q==="object")switch(typeof q.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case K:return"Portal";case f:return q.displayName||"Context";case S:return(q._context.displayName||"Context")+".Consumer";case b:var v=q.render;return q=q.displayName,q||(q=v.displayName||v.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case m:return v=q.displayName||null,v!==null?v:I(q.type)||"Memo";case M:v=q._payload,q=q._init;try{return I(q(v))}catch(x){}}return null}function U(q){return""+q}function V(q){try{U(q);var v=!1}catch(D){v=!0}if(v){v=console;var x=v.error,B=typeof Symbol==="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return x.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),U(q)}}function W(q){if(q===L)return"<>";if(typeof q==="object"&&q!==null&&q.$$typeof===M)return"<...>";try{var v=I(q);return v?"<"+v+">":"<...>"}catch(x){return"<...>"}}function _(){var q=F.A;return q===null?null:q.getOwner()}function X(){return Error("react-stack-top-frame")}function w(q){if(J.call(q,"key")){var v=Object.getOwnPropertyDescriptor(q,"key").get;if(v&&v.isReactWarning)return!1}return q.key!==void 0}function A(q,v){function x(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",v))}x.isReactWarning=!0,Object.defineProperty(q,"key",{get:x,configurable:!0})}function j(){var q=I(this.type);return $[q]||($[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function u(q,v,x,B,D,Q){var z=x.ref;return q={$$typeof:E,type:q,key:v,props:x,_owner:B},(z!==void 0?z:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:j}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function N(q,v,x,B,D,Q){var z=v.children;if(z!==void 0)if(B)if(d(z)){for(B=0;B<z.length;B++)Y(z[B]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Y(z);if(J.call(v,"key")){z=I(q);var H=Object.keys(v).filter(function(p){return p!=="key"});B=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",T[z+B]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,B,z,H,z),T[z+B]=!0)}if(z=null,x!==void 0&&(V(x),z=""+x),w(v)&&(V(v.key),z=""+v.key),"key"in v){x={};for(var R in v)R!=="key"&&(x[R]=v[R])}else x=v;return z&&A(x,typeof q==="function"?q.displayName||q.name||"Unknown":q),u(q,z,x,_(),D,Q)}function Y(q){Z(q)?q._store&&(q._store.validated=1):typeof q==="object"&&q!==null&&q.$$typeof===M&&(q._payload.status==="fulfilled"?Z(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function Z(q){return typeof q==="object"&&q!==null&&q.$$typeof===E}var E=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),f=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),l=Symbol.for("react.activity"),s=Symbol.for("react.client.reference"),F=G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,d=Array.isArray,O=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(q){return q()}};var P,$={},a=G.react_stack_bottom_frame.bind(G,X)(),r=O(W(X)),T={};n.Fragment=L,n.jsxDEV=function(q,v,x,B){var D=1e4>F.recentlyCreatedOwnerStacks++;return N(q,v,x,B,D?Error("react-stack-top-frame"):a,D?O(W(q)):r)}})()});
7
- export{i as qX};
@@ -1,2 +0,0 @@
1
- import{ov as E,qv as G}from"./cli-0.1.11-s8ygndzf.mjs";import{LP as A,MP as W}from"./cli-0.1.11-r990p54m.mjs";import{QU as M,SU as i,WU as v,eT as N,vV as U}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as w}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as D}from"./cli-0.1.11-x37jysc0.mjs";import{Iba as S,Vba as P}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as h,ega as L}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as _,Rna as B}from"./cli-0.1.11-yrfxpjhr.mjs";function Q(l){let e=T.c(18),{onDone:g,isStandaloneDialog:b,externalIncludes:a}=l,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect($,s);let d;if(e[1]!==g)d=(I)=>{if(I==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),S(Y);else h("tengu_claude_md_external_includes_dialog_accepted",{}),S(R);g()},e[1]=g,e[2]=d;else d=e[2];let o=d,c;if(e[3]!==o)c=()=>{o("no")},e[3]=o,e[4]=c;else c=e[4];let y=c,C=!b,x=!b,u;if(e[5]===Symbol.for("react.memo_cache_sentinel"))u=t.jsxDEV(i,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."},void 0,!1,void 0,this),e[5]=u;else u=e[5];let n;if(e[6]!==a)n=a&&a.length>0&&t.jsxDEV(M,{flexDirection:"column",children:[t.jsxDEV(i,{dimColor:!0,children:"External imports:"},void 0,!1,void 0,this),a.map(O)]},void 0,!0,void 0,this),e[6]=a,e[7]=n;else n=e[7];let m;if(e[8]===Symbol.for("react.memo_cache_sentinel"))m=t.jsxDEV(i,{dimColor:!0,children:["Important: Only use Claude Code with files you trust. Accessing untrusted files may pose security risks"," ",t.jsxDEV(v,{url:"https://code.claude.com/docs/en/security"},void 0,!1,void 0,this)," "]},void 0,!0,void 0,this),e[8]=m;else m=e[8];let p;if(e[9]===Symbol.for("react.memo_cache_sentinel"))p=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=p;else p=e[9];let r;if(e[10]!==o)r=t.jsxDEV(E,{options:p,onChange:(I)=>o(I)},void 0,!1,void 0,this),e[10]=o,e[11]=r;else r=e[11];let f;if(e[12]!==y||e[13]!==r||e[14]!==C||e[15]!==x||e[16]!==n)f=t.jsxDEV(A,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[u,n,m,r]},void 0,!0,void 0,this),e[12]=y,e[13]=r,e[14]=C,e[15]=x,e[16]=n,e[17]=f;else f=e[17];return f}function O(l,e){return t.jsxDEV(i,{dimColor:!0,children:[" ",l.path]},e,!0,void 0,this)}function R(l){return{...l,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function Y(l){return{...l,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function $(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k,t;var q=B(()=>{L();U();P();G();W();T=_(N(),1),k=_(D(),1),t=_(w(),1)});
2
- export{Q as xf,q as yf};
@@ -1,24 +0,0 @@
1
- import{ua as VY}from"./cli-0.1.11-4px8nt5r.mjs";import{bb as zY}from"./cli-0.1.11-7tybqg56.mjs";import{Ih as Q9,Jh as CW}from"./cli-0.1.11-7mmhsc3x.mjs";import{$t as IW,Ay as D0,By as d9,CJ as HY,DH as SZ,DN as NY,EJ as cQ,EN as gQ,FF as X9,GF as K9,HF as fW,Hs as k0,Is as kZ,Js as x0,Jy as M0,Ks as p0,Ls as u0,MD as JY,Mk as w9,Ms as m0,My as E0,ND as mQ,Nk as mW,Ns as xZ,Ny as CZ,OH as b0,Os as pZ,Po as UZ,Ps as c0,Qs as g0,RD as a,Rs as d0,Ry as l9,SN as z9,So as yZ,Ss as l0,TD as TW,To as f0,Ts as a0,Us as n0,VH as G9,Vs as i0,Ws as r0,XH as J9,Xm as eZ,Xs as o0,Ym as K0,Ys as KQ,Yt as Y9,Zm as DZ,_m as G0,bI as H9,bK as I0,cH as dY,cO as V9,eK as a9,fH as PW,gI as wZ,gL as N9,gq as bY,hq as LW,io as GY,iq as IY,jO as BY,jo as uQ,jp as Z9,jq as CY,kq as FZ,lp as bW,lq as iZ,mG as O9,mq as TY,nq as YZ,oG as U9,oq as rZ,ov as F0,pH as fZ,pL as B9,pq as RY,pv as g9,qq as fY,rL as L9,rq as vY,sG as y9,tH as r,tx as S0,uF as W9,ux as QQ,vF as RW,vL as SW,wO as LY,zG as cW,zH as QZ}from"./cli-0.1.11-s8ygndzf.mjs";import{aS as $0,bS as m9}from"./cli-0.1.11-d4ahh3jz.mjs";import{GS as U0,HS as p9,US as y0,VS as P0,WS as u9,aT as j0,bT as c9}from"./cli-0.1.11-h02tyg8p.mjs";import{QU as x,SU as M,eT as k9,vV as x9}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as J0}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as h9}from"./cli-0.1.11-x37jysc0.mjs";import{CY as MW,cY as rY,dY as oY,eY as DW,pY as sY}from"./cli-0.1.11-bwpemkht.mjs";import{DY as UY,HY as KW}from"./cli-0.1.11-dcswnc8x.mjs";import{F2 as cY,J2 as UW,i5 as yW,l4 as gY}from"./cli-0.1.11-qbcfg80y.mjs";import{C$ as uW,F7 as s,Haa as mY,K7 as _0,L7 as qZ,M7 as R9,N8 as xW,Qaa as OW,U9 as pW,X9 as OY,a_ as XW,o7 as KY,o8 as v9,q7 as pQ,t9 as IZ,v$ as _9,v9 as f9,w7 as A0,y9 as A9,z7 as T9}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as Y,Wda as h,Xda as KZ,Yda as v,Zda as OZ}from"./cli-0.1.11-h7e4rkwk.mjs";import{Fea as C9,aea as xY,bea as _W,dea as bZ,gea as N0,hea as B0,iea as L0,jea as z0,mea as V0,nea as q0,zea as v0}from"./cli-0.1.11-7xr2ermy.mjs";import{Qea as pY,Rea as uY,Tea as wW}from"./cli-0.1.11-vch8cn95.mjs";import{cfa as qY,nfa as oQ}from"./cli-0.1.11-fag2wtke.mjs";import{Bfa as w0,Jfa as O0,Nfa as S9}from"./cli-0.1.11-nx8a99hz.mjs";import{dga as g,ega as _Z}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as q9,Ega as lZ,Jga as cZ,Lga as t,Mga as WY,Pga as $Z,bha as E,eha as XZ,hga as wY,jga as WW,vga as QY}from"./cli-0.1.11-vq5fvf9m.mjs";import{uha as XY,yha as xQ}from"./cli-0.1.11-e5ecf583.mjs";import{Jla as DY,Kla as LZ,Lla as MY,Nla as EY,Sma as iY,Vma as NZ,aja as HZ,gja as Z0,hja as _Y,pka as kY}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as vZ,Qna as RZ,Rna as AZ,Sna as oZ}from"./cli-0.1.11-yrfxpjhr.mjs";var ZQ={};RZ(ZQ,{selectableUserMessagesFilter:()=>R0,messagesAfterAreOnlySynthetic:()=>e9,MessageSelector:()=>i9});import{randomUUID as n9}from"crypto";import*as ZZ from"path";function C0(Q){return Q.type==="text"}function TZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function i9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:K,onClose:H,preselectedMessage:G}){let N=I0((P)=>P.fileHistory),[z,q]=b.useState(void 0),J=M0(),V=b.useMemo(n9,[]),U=b.useMemo(()=>[...Q.filter(R0),{...r({content:""}),uuid:V}],[Q,V]),[_,O]=b.useState(U.length-1),j=Math.max(0,Math.min(_-Math.floor(EZ/2),U.length-EZ)),I=U.length>1,[A,F]=b.useState(G),[$,C]=b.useState(void 0);b.useEffect(()=>{if(!G||!J)return;let P=!1;return CZ(N,G.uuid).then((R)=>{if(!P)C(R)}),()=>{P=!0}},[G,J,N]);let[y,D]=b.useState(!1),[d,l]=b.useState(null),[f,u]=b.useState("both"),[c,k]=b.useState(""),[w,L]=b.useState("");function T(P){let R=P?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],p={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...p,onChange:k}),R.push({value:"nevermind",label:"Never mind"}),R}b.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function S(P){Z(),D(!0);try{await W(P),D(!1),H()}catch(R){s(R),D(!1),q(`Failed to restore the conversation:
2
- ${R}`)}}async function n(P){let R=Q.indexOf(P),p=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:p,message_type:P.type,is_current_prompt:!1}),!Q.includes(P)){H();return}if(!J){await S(P);return}let m=await CZ(N,P.uuid);F(P),C(m)}async function o(P){if(g("tengu_message_selector_restore_option_selected",{option:P}),!A){q("Message not found.");return}if(P==="nevermind"){if(G)H();else F(void 0);return}if(TZ(P)){Z(),D(!0),l(P),q(void 0);try{let m=P==="summarize_up_to"?"up_to":"from",e=(m==="up_to"?w:c).trim()||void 0;await K(A,e,m),D(!1),l(null),F(void 0),H()}catch(m){s(m),D(!1),l(null),F(void 0),q(`Failed to summarize:
3
- ${m}`)}return}Z(),D(!0),q(void 0);let R=null,p=null;if(P==="code"||P==="both")try{await X(A)}catch(m){R=m,s(R)}if(P==="conversation"||P==="both")try{await W(A)}catch(m){p=m,s(p)}if(D(!1),F(void 0),p&&R)q(`Failed to restore the conversation and code:
4
- ${p}
5
- ${R}`);else if(p)q(`Failed to restore the conversation:
6
- ${p}`);else if(R)q(`Failed to restore the code:
7
- ${R}`);else H()}let Y0=$0(),$9=b.useCallback(()=>{if(A&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,A,G]),j9=b.useCallback(()=>O((P)=>Math.max(0,P-1)),[]),F9=b.useCallback(()=>O((P)=>Math.min(U.length-1,P+1)),[U.length]),D9=b.useCallback(()=>O(0),[]),M9=b.useCallback(()=>O(U.length-1),[U.length]),E9=b.useCallback(()=>{let P=U[_];if(P)n(P)},[U,_,n]);y0("confirm:no",$9,{context:"Confirmation",isActive:!A}),P0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":D9,"messageSelector:bottom":M9,"messageSelector:select":E9},{context:"MessageSelector",isActive:!y&&!z&&!A&&I});let[Q0,W0]=b.useState({});b.useEffect(()=>{async function P(){if(!J)return;Promise.all(U.map(async(R,p)=>{if(R.uuid!==V){let m=E0(N,R.uuid),e=U.at(p+1),VZ=m?t9(Q,R.uuid,e?.uuid!==V?e?.uuid:void 0):void 0;if(VZ!==void 0)W0((i)=>({...i,[p]:VZ}));else W0((i)=>({...i,[p]:void 0}))}}))}P()},[U,Q,V,N,J]);let zZ=J&&$?.filesChanged&&$.filesChanged.length>0,b9=!z&&!A&&!G&&I;return B.jsxDEV(x,{flexDirection:"column",width:"100%",children:[B.jsxDEV(j0,{color:"suggestion"},void 0,!1,void 0,this),B.jsxDEV(x,{flexDirection:"column",marginX:1,gap:1,children:[B.jsxDEV(M,{bold:!0,color:"suggestion",children:"Rewind"},void 0,!1,void 0,this),z&&B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{color:"error",children:["Error: ",z]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!I&&B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{children:"Nothing to rewind to yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),!z&&A&&I&&B.jsxDEV(B.Fragment,{children:[B.jsxDEV(M,{children:["Confirm you want to restore"," ",!$&&"the conversation ","to the point before you sent this message:"]},void 0,!0,void 0,this),B.jsxDEV(x,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[B.jsxDEV(H0,{userMessage:A,color:"text",isCurrent:!1},void 0,!1,void 0,this),B.jsxDEV(M,{dimColor:!0,children:["(",O0(new Date(A.timestamp)),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.jsxDEV(o9,{selectedRestoreOption:f,canRestoreCode:!!zZ,diffStatsForRestore:$},void 0,!1,void 0,this),y&&TZ(d)?B.jsxDEV(x,{flexDirection:"row",gap:1,children:[B.jsxDEV(D0,{},void 0,!1,void 0,this),B.jsxDEV(M,{children:"Summarizing…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B.jsxDEV(F0,{isDisabled:y,options:T(!!zZ),defaultFocusValue:zZ?"both":"conversation",onFocus:(P)=>u(P),onChange:(P)=>o(P),onCancel:()=>G?H():F(void 0)},void 0,!1,void 0,this),zZ&&B.jsxDEV(x,{marginBottom:1,children:B.jsxDEV(M,{dimColor:!0,children:[qZ.warning," Rewinding does not affect files edited manually or via bash."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b9&&B.jsxDEV(B.Fragment,{children:[J?B.jsxDEV(M,{children:"Restore the code and/or conversation to the point before…"},void 0,!1,void 0,this):B.jsxDEV(M,{children:"Restore and fork the conversation to the point before…"},void 0,!1,void 0,this),B.jsxDEV(x,{width:"100%",flexDirection:"column",children:U.slice(j,j+EZ).map((P,R)=>{let p=j+R,m=p===_,e=P.uuid===V,VZ=p in Q0,i=Q0[p],MZ=i?.filesChanged&&i.filesChanged.length;return B.jsxDEV(x,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[B.jsxDEV(x,{width:2,minWidth:2,children:m?B.jsxDEV(M,{color:"permission",bold:!0,children:[qZ.pointer," "]},void 0,!0,void 0,this):B.jsxDEV(M,{children:" "},void 0,!1,void 0,this)},void 0,!1,void 0,this),B.jsxDEV(x,{flexDirection:"column",children:[B.jsxDEV(x,{flexShrink:1,height:1,overflow:"hidden",children:B.jsxDEV(H0,{userMessage:P,color:m?"suggestion":void 0,isCurrent:e,paddingRight:10},void 0,!1,void 0,this)},void 0,!1,void 0,this),J&&VZ&&B.jsxDEV(x,{height:1,flexDirection:"row",children:i?B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{dimColor:!m,color:"inactive",children:MZ?B.jsxDEV(B.Fragment,{children:[MZ===1&&i.filesChanged[0]?`${ZZ.basename(i.filesChanged[0])} `:`${MZ} files changed `,B.jsxDEV(T0,{diffStats:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B.jsxDEV(B.Fragment,{children:"No code changes"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):B.jsxDEV(M,{dimColor:!0,color:"warning",children:[qZ.warning," No code restore"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},P.uuid,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!A&&B.jsxDEV(M,{dimColor:!0,italic:!0,children:Y0.pending?B.jsxDEV(B.Fragment,{children:["Press ",Y0.keyName," again to exit"]},void 0,!0,void 0,this):B.jsxDEV(B.Fragment,{children:[!z&&I&&"Enter to continue · ","Esc to exit"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function r9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function o9(Q){let Z=WZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:K}=Q,H=X&&(W==="both"||W==="code"),G;if(Z[0]!==W)G=r9(W),Z[0]=W,Z[1]=G;else G=Z[1];let N;if(Z[2]!==G)N=B.jsxDEV(M,{dimColor:!0,children:G},void 0,!1,void 0,this),Z[2]=G,Z[3]=N;else N=Z[3];let z;if(Z[4]!==K||Z[5]!==W||Z[6]!==H)z=!TZ(W)&&(H?B.jsxDEV(s9,{diffStatsForRestore:K},void 0,!1,void 0,this):B.jsxDEV(M,{dimColor:!0,children:"The code will be unchanged."},void 0,!1,void 0,this)),Z[4]=K,Z[5]=W,Z[6]=H,Z[7]=z;else z=Z[7];let q;if(Z[8]!==N||Z[9]!==z)q=B.jsxDEV(x,{flexDirection:"column",children:[N,z]},void 0,!0,void 0,this),Z[8]=N,Z[9]=z,Z[10]=q;else q=Z[10];return q}function s9(Q){let Z=WZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=B.jsxDEV(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."},void 0,!1,void 0,this),Z[0]=N;else N=Z[0];return N}let X=W.filesChanged.length,K;if(X===1){let N;if(Z[1]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=N;else N=Z[2];K=N}else if(X===2){let N;if(Z[3]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=N;else N=Z[4];let z=N,q;if(Z[5]!==W.filesChanged[1])q=ZZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=q;else q=Z[6];K=`${z} and ${q}`}else{let N;if(Z[7]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=N;else N=Z[8];K=`${N} and ${W.filesChanged.length-1} other files`}let H;if(Z[9]!==W)H=B.jsxDEV(T0,{diffStats:W},void 0,!1,void 0,this),Z[9]=W,Z[10]=H;else H=Z[10];let G;if(Z[11]!==K||Z[12]!==H)G=B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",K,"."]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z[11]=K,Z[12]=H,Z[13]=G;else G=Z[13];return G}function T0(Q){let Z=WZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=B.jsxDEV(M,{color:"diffAddedWord",children:["+",W.insertions," "]},void 0,!0,void 0,this),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let K;if(Z[2]!==W.deletions)K=B.jsxDEV(M,{color:"diffRemovedWord",children:["-",W.deletions]},void 0,!0,void 0,this),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let H;if(Z[4]!==X||Z[5]!==K)H=B.jsxDEV(B.Fragment,{children:[X,K]},void 0,!0,void 0,this),Z[4]=X,Z[5]=K,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=WZ.c(31),{userMessage:W,color:X,dimColor:K,isCurrent:H,paddingRight:G}=Q,{columns:N}=U0();if(H){let C;if(Z[0]!==X||Z[1]!==K)C=B.jsxDEV(x,{width:"100%",children:B.jsxDEV(M,{italic:!0,color:X,dimColor:K,children:"(current)"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[0]=X,Z[1]=K,Z[2]=C;else C=Z[2];return C}let z=W.message.content,q=typeof z==="string"?null:z[z.length-1],J,V,U,_,O,j,I,A;if(Z[3]!==X||Z[4]!==N||Z[5]!==z||Z[6]!==K||Z[7]!==q||Z[8]!==G){A=Symbol.for("react.early_return_sentinel");Z:{let C=typeof z==="string"?z.trim():q&&C0(q)?q.text.trim():"(no prompt)",y=A0(C);if(b0(y)){let D;if(Z[17]!==X||Z[18]!==K)D=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{italic:!0,color:X,dimColor:K,children:"((empty message))"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[17]=X,Z[18]=K,Z[19]=D;else D=Z[19];A=D;break Z}if(y.includes("<bash-input>")){let D=QZ(y,"bash-input");if(D){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=B.jsxDEV(M,{color:"bashBorder",children:"!"},void 0,!1,void 0,this),Z[20]=d;else d=Z[20];A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:[d,B.jsxDEV(M,{color:X,dimColor:K,children:[" ",D]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);break Z}}if(y.includes(`<${bZ}>`)){let D=QZ(y,bZ),d=QZ(y,"command-args"),l=QZ(y,"skill-format")==="true";if(D)if(l){A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{color:X,dimColor:K,children:["Skill(",D,")"]},void 0,!0,void 0,this)},void 0,!1,void 0,this);break Z}else{A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{color:X,dimColor:K,children:["/",D," ",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this);break Z}}V=x,j="row",I="100%",J=M,U=X,_=K,O=G?w0(y,N-G,!0):y.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=X,Z[4]=N,Z[5]=z,Z[6]=K,Z[7]=q,Z[8]=G,Z[9]=J,Z[10]=V,Z[11]=U,Z[12]=_,Z[13]=O,Z[14]=j,Z[15]=I,Z[16]=A}else J=Z[9],V=Z[10],U=Z[11],_=Z[12],O=Z[13],j=Z[14],I=Z[15],A=Z[16];if(A!==Symbol.for("react.early_return_sentinel"))return A;let F;if(Z[21]!==J||Z[22]!==U||Z[23]!==_||Z[24]!==O)F=B.jsxDEV(J,{color:U,dimColor:_,children:O},void 0,!1,void 0,this),Z[21]=J,Z[22]=U,Z[23]=_,Z[24]=O,Z[25]=F;else F=Z[25];let $;if(Z[26]!==V||Z[27]!==j||Z[28]!==I||Z[29]!==F)$=B.jsxDEV(V,{flexDirection:j,width:I,children:F},void 0,!1,void 0,this),Z[26]=V,Z[27]=j,Z[28]=I,Z[29]=F,Z[30]=$;else $=Z[30];return $}function t9(Q,Z,W){let X=Q.findIndex((z)=>z.uuid===Z);if(X===-1)return;let K=W?Q.findIndex((z)=>z.uuid===W):Q.length;if(K===-1)K=Q.length;let H=[],G=0,N=0;for(let z=X+1;z<K;z++){let q=Q[z];if(!q||!SZ(q))continue;let J=q.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let V of J.structuredPatch){let U=IZ(V.lines,(O)=>O.startsWith("+")),_=IZ(V.lines,(O)=>O.startsWith("-"));G+=U,N+=_}}catch{continue}}return{filesChanged:H,insertions:G,deletions:N}}function R0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(fZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&C0(W)?W.text.trim():"";if(X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${N0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${V0}>`)!==-1||X.indexOf(`<${v0}`)!==-1)return!1;return!0}function e9(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(fZ(X))continue;if(SZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let K=X.message.content;if(Array.isArray(K)){if(K.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var WZ,b,B,EZ=7;var YQ=AZ(()=>{R9();_Z();a9();l9();_0();m9();x9();u9();T9();wZ();g9();d9();p9();C9();f9();S9();c9();WZ=vZ(k9(),1),b=vZ(h9(),1),B=vZ(J0(),1)});var YW={};RZ(YW,{getCronJitterConfig:()=>ZW});function ZW(){let Q=qY("tengu_kairos_cron_config",YZ,sQ),Z=eQ().safeParse(Q);return Z.success?Z.data:YZ}var sQ=60000,gZ=1800000,tQ=2592000000,eQ;var QW=AZ(()=>{KZ();oQ();vY();OZ();eQ=v(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(gZ),oneShotMaxMs:Y.number().int().min(0).max(gZ),oneShotFloorMs:Y.number().int().min(0).max(gZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(tQ).default(YZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as GW,readFile as JW,unlink as yY,writeFile as aZ}from"fs/promises";import{dirname as HW,join as PY}from"path";function JZ(Q){return PY(Q??_Y(),NW)}async function $Y(Q){let Z;try{Z=await JW(JZ(Q),"utf8")}catch{return}let W=BW().safeParse(OY(Z,!1));return W.success?W.data:void 0}async function AY(Q,Z){let W=JZ(Z),X=t(Q);try{return await aZ(W,X,{flag:"wx"}),!0}catch(K){let H=lZ(K);if(H==="EEXIST")return!1;if(H==="ENOENT"){await GW(HW(W),{recursive:!0});try{return await aZ(W,X,{flag:"wx"}),!0}catch(G){if(lZ(G)==="EEXIST")return!1;throw G}}throw K}}function dZ(Q){jZ?.(),jZ=wY(async()=>{await BZ(Q)})}async function nZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??HZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await AY(X,Z))return GZ=void 0,dZ(Q),E(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await $Y(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await aZ(JZ(Z),t(X)),dZ(Q);return!0}if(K&&UY(K.pid)){if(GZ!==K.sessionId)GZ=K.sessionId,E(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)E(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await yY(JZ(Z)).catch(()=>{}),await AY(X,Z))return GZ=void 0,dZ(Q),!0;return!1}async function BZ(Q){jZ?.(),jZ=void 0,GZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??HZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(JZ(Z)),E("[ScheduledTasks] released scheduler lock")}catch{}}var NW,BW,jZ,GZ;var jY=AZ(()=>{KZ();NZ();WW();XZ();cZ();KW();XW();OZ();$Z();NW=PY(".claude","scheduled_tasks.lock"),BW=v(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var vW={};RZ(vW,{isRecurringTaskAged:()=>SY,createCronScheduler:()=>qW,buildMissedTaskNotification:()=>hY});function SY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function qW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:K,onMissed:H,dir:G,lockIdentity:N,getJitterConfig:z,isKilled:q,filter:J}=Q,V=G||N?{dir:G,lockIdentity:N}:void 0,U=[],_=new Map,O=new Set,j=new Set,I=null,A=null,F=null,$=null,C=!1,y=!1;async function D(f){let u=await CY(G);if(C)return;if(U=u,!f)return;let c=Date.now(),k=fY(u,c).filter((w)=>!w.recurring&&!O.has(w.id)&&(!J||J(w)));if(k.length>0){for(let w of k)O.add(w.id),_.set(w.id,1/0);if(g("tengu_scheduled_task_missed",{count:k.length,taskIds:k.map((w)=>w.id).join(",")}),H)H(k);else Z(hY(k));iZ(k.map((w)=>w.id),G).catch((w)=>E(`[ScheduledTasks] failed to remove missed tasks: ${w}`)),E(`[ScheduledTasks] surfaced ${k.length} missed one-shot task(s)`)}}function d(){if(q?.())return;if(W()&&!X)return;let f=Date.now(),u=new Set,c=[],k=z?.()??YZ;function w(L,T){if(J&&!J(L))return;if(u.add(L.id),j.has(L.id))return;let S=_.get(L.id);if(S===void 0)S=L.recurring?rZ(L.cron,L.lastFiredAt??L.createdAt,L.id,k)??1/0:RY(L.cron,L.createdAt,L.id,k)??1/0,_.set(L.id,S),E(`[ScheduledTasks] scheduled ${L.id} for ${S===1/0?"never":new Date(S).toISOString()}`);if(f<S)return;if(E(`[ScheduledTasks] firing ${L.id}${L.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:L.recurring??!1,taskId:L.id}),K)K(L);else Z(L.prompt);let n=SY(L,f,k.recurringMaxAgeMs);if(n){let o=Math.floor((f-L.createdAt)/1000/60/60);E(`[ScheduledTasks] recurring task ${L.id} aged out (${o}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:L.id,ageHours:o})}if(L.recurring&&!n){let o=rZ(L.cron,f,L.id,k)??1/0;if(_.set(L.id,o),!T)c.push(L.id)}else if(T)EY([L.id]),_.delete(L.id);else j.add(L.id),iZ([L.id],G).catch((o)=>E(`[ScheduledTasks] failed to remove task ${L.id}: ${o}`)).finally(()=>j.delete(L.id)),_.delete(L.id)}if(y){for(let L of U)w(L,!1);if(c.length>0){for(let L of c)j.add(L);TY(c,f,G).catch((L)=>E(`[ScheduledTasks] failed to persist lastFiredAt: ${L}`)).finally(()=>{for(let L of c)j.delete(L)})}}if(G===void 0)for(let L of MY())w(L,!0);if(u.size===0){_.clear();return}for(let L of _.keys())if(!u.has(L))_.delete(L)}async function l(){if(C)return;if(I)clearInterval(I),I=null;let{default:f}=await import("./index-0.1.11-p0j3w83p.mjs");if(C)return;if(y=await nZ(V).catch(()=>!1),C){if(y)y=!1,BZ(V);return}if(!y)F=setInterval(()=>{nZ(V).then((c)=>{if(C){if(c)BZ(V);return}if(c){if(y=!0,F)clearInterval(F),F=null}}).catch((c)=>E(String(c),{level:"error"}))},VW),F.unref?.();D(!0);let u=IY(G);$=f.watch(u,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:zW},ignorePermissionErrors:!0}),$.on("add",()=>void D(!1)),$.on("change",()=>void D(!1)),$.on("unlink",()=>{if(!C)U=[],_.clear()}),A=setInterval(d,FY),A.unref?.()}return{start(){if(C=!1,G!==void 0){E(`[ScheduledTasks] scheduler start() — dir=${G}, hasTasks=${FZ(G)}`),l();return}if(E(`[ScheduledTasks] scheduler start() — enabled=${LZ()}, hasTasks=${FZ()}`),!LZ()&&(X||FZ()))DY(!0);if(LZ()){l();return}I=setInterval((f)=>{if(LZ())f()},FY,l),I.unref?.()},stop(){if(C=!0,I)clearInterval(I),I=null;if(A)clearInterval(A),A=null;if(F)clearInterval(F),F=null;if($?.close(),$=null,y)y=!1,BZ(V)},getNextFireTime(){let f=1/0;for(let u of _.values())if(u<f)f=u;return f===1/0?null:f}}}function hY(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claude/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((K)=>{let H=`[${bY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,G=(K.prompt.match(/`+/g)??[]).reduce((z,q)=>Math.max(z,q.length),0),N="`".repeat(Math.max(3,G+1));return`${H}
12
- ${N}
13
- ${K.prompt}
14
- ${N}`});return`${W}
15
-
16
- ${X.join(`
17
-
18
- `)}`}var FY=1000,zW=300,VW=5000;var AW=AZ(()=>{NZ();_Z();LW();vY();jY();XZ()});G0();function nW(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?I9(Z):Z,uuid:W}}function I9(Q){if(!Q.some(X0))return Q;return Q.map((Z)=>{if(!X0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:K0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function X0(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}KZ();XZ();OZ();f0();QQ();var w6=v(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),h0=v(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),WQ=v(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(S0()).optional().catch((Q)=>{E(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:h0()})),XQ=v(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:h0()})),hZ=v(()=>h.union([WQ(),XQ()]));function PZ(Q,Z,W,X){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)X.setAppState((N)=>({...N,toolPermissionContext:UZ(N.toolPermissionContext,H)})),yZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:W;return{...Q,updatedInput:G,decisionReason:K}}else if(Q.behavior==="deny"&&Q.interrupt)E(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),X.abortController.abort();return{...Q,decisionReason:K}}import{randomUUID as mZ}from"crypto";KZ();OZ();KQ();var GQ=v(()=>Y.unknown()),JQ=v(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),HQ=v(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(JQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),d0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),$6=v(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:g0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:o0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),NQ=v(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),BQ=v(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(x0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),LQ=v(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:p0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),zQ=v(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),VQ=v(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),qQ=v(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),j6=v(()=>Y.object({mcpServers:Y.array(kZ())}).describe("Response containing the current status of all MCP server connections.")),vQ=v(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),AQ=v(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),_Q=v(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),F6=v(()=>Y.object({categories:Y.array(AQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(_Q())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),wQ=v(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),D6=v(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),OQ=v(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),M6=v(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),UQ=v(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=v(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:m0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),PQ=v(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:GQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),$Q=v(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),k0())}).describe("Replaces the set of dynamically managed MCP servers.")),E6=v(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),jQ=v(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),b6=v(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(kZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=v(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),DQ=v(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),MQ=v(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),EQ=v(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),bQ=v(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),I6=v(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),IQ=v(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),s0=v(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),CQ=v(()=>Y.union([NQ(),BQ(),HQ(),LQ(),zQ(),VQ(),qQ(),vQ(),yQ(),PQ(),wQ(),OQ(),UQ(),$Q(),jQ(),FQ(),DQ(),MQ(),EQ(),bQ(),IQ()])),uZ=v(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:CQ()})),TQ=v(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),RQ=v(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>uZ())).optional()})),t0=v(()=>Y.object({type:Y.literal("control_response"),response:Y.union([TQ(),RQ()])})),fQ=v(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),e0=v(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),SQ=v(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),C6=v(()=>Y.union([r0(),a0(),n0(),i0(),t0(),uZ(),fQ(),e0()])),T6=v(()=>Y.union([l0(),uZ(),t0(),e0(),SQ()]));gQ();XZ();pQ();cZ();cQ();xQ();$Z();KZ();uQ();LY();f0();$Z();mQ();$Z();var hQ=/\u2028|\u2029/g;function kQ(Q){return Q.replace(hQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function ZY(Q){return kQ(t(Q))}var dQ="SandboxNetworkAccess";function lQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function aQ(Q,Z,W,X){let K;try{K=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{K=Q.name}return{tool_name:Q.name,action_description:K,tool_use_id:W,request_id:X,input:Z}}var nQ=1000;class iQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new JY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>nQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(t({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let W=Q.indexOf(`
20
- `);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let K=await this.processLine(X);if(K)KY("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=VY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,K]of Object.entries(Z.variables))process.env[X]=K;E(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)GY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){E(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let K=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(K))}catch(H){X.reject(H)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){E(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)YY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")YY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){XY(ZY(Q)+`
21
- `)}async sendRequest(Q,Z,W,X=mZ()){let K={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let G=this.pendingRequests.get(X);if(G)this.trackResolvedToolUseId(G.request),G.reject(new QY)};if(W)W.addEventListener("abort",H,{once:!0});try{return await new Promise((G,N)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(z)=>{G(z)},reject:N,schema:Z})})}finally{if(W)W.removeEventListener("abort",H);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,K,H,G)=>{let N=G??await HY(Z,W,X,K,H);if(N.behavior==="allow"||N.behavior==="deny")return N;let z=new AbortController,q=X.abortController.signal,J=()=>z.abort();q.addEventListener("abort",J,{once:!0});try{let V=rQ(Z.name,H,W,X,N.suggestions).then((j)=>({source:"hook",decision:j})),U=mZ();Q?.(aQ(Z,W,H,U));let _=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:N.suggestions,blocked_path:N.blockedPath,decision_reason:lQ(N.decisionReason),tool_use_id:H,agent_id:X.agentId},hZ(),z.signal,U).then((j)=>({source:"sdk",result:j})),O=await Promise.race([V,_]);if(O.source==="hook"){if(O.decision)return _.catch(()=>{}),z.abort(),O.decision;let j=await _;return PZ(j.result,Z,W,X)}return PZ(O.result,Z,W,X)}catch(V){return PZ({behavior:"deny",message:`Tool permission request failed: ${V}`,toolUseID:H},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)zY("running");q.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},NY(),K)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,W,X,K,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:K,url:H,elicitation_id:G,requested_schema:W},s0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:dQ,input:{host:Q.host},tool_use_id:mZ(),description:`Allow network connection to ${Q.host}?`},hZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function YY(Q){console.error(Q),process.exit(1)}async function rQ(Q,Z,W,X,K){let G=X.getAppState().toolPermissionContext.mode,N=BY(Q,Z,W,X,G,K,X.abortController.signal);for await(let z of N)if(z.permissionRequestResult&&(z.permissionRequestResult.behavior==="allow"||z.permissionRequestResult.behavior==="deny")){let q=z.permissionRequestResult;if(q.behavior==="allow"){let J=q.updatedInput||W,V=q.updatedPermissions??[];if(V.length>0){yZ(V);let U=X.getAppState(),_=UZ(U.toolPermissionContext,V);X.setAppState((O)=>{if(O.toolPermissionContext===_)return O;return{...O,toolPermissionContext:_}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:q.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}NZ();PW();wW();yW();_W();UW();OW();import{randomUUID as $W}from"crypto";function jW(Q){return Q===pY?uY:Q}function TX(Q){let W=mY()?.outputStyle??dY,X={type:"system",subtype:"init",cwd:xY(),session_id:HZ(),tools:Q.tools.map((K)=>jW(K.name)),mcp_servers:Q.mcpClients.map((K)=>({name:K.name,status:K.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),apiKeySource:gY().source,betas:kY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((K)=>K.agentType),skills:Q.skills.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),plugins:Q.plugins.map((K)=>({name:K.name,path:K.path,source:K.source})),uuid:$W()};return X.fast_mode_state=cY(Q.model,Q.fastMode),X}var lY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function FW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],K=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let V=Q[J];if(K){if(K==="["&&V==="["){H=J;continue}if(V!==lY[K])continue;if(K==="'"&&G(Q[J+1]))continue;X.push({start:H,end:J+1}),K=null}else if(V==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||V==="'"&&!G(Q[J-1])||V!=="<"&&V!=="'"&&V in lY)K=V,H=J}let N=[],z=new RegExp(`\\b${Z}\\b`,"gi"),q=Q.matchAll(z);for(let J of q){if(J.index===void 0)continue;let V=J.index,U=V+J[0].length;if(X.some((j)=>V>=j.start&&V<j.end))continue;let _=Q[V-1],O=Q[U];if(_==="/"||_==="\\"||_==="-")continue;if(O==="/"||O==="\\"||O==="-"||O==="?")continue;if(O==="."&&G(Q[U+1]))continue;N.push({word:J[0],start:V,end:U})}return N}function fX(Q){return FW(Q,"ultrareview")}_Z();wZ();SW();RW();fW();bW();LY();G0();IW();wZ();TW();CW();import{randomUUID as hW}from"crypto";NZ();_Z();wZ();DW();MW();import{randomUUID as EW}from"crypto";function aY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function nY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function tY(Q,Z,W,X,K,H,G){let N=EW();iY(N);let z=typeof Q==="string"?Q:Q.find((_)=>_.type==="text")?.text||"";sY(z);let q=typeof Q==="string"?Q:Q.findLast((_)=>_.type==="text")?.text||"";if(q)oY("user_prompt",{prompt_length:String(q.length),prompt:rY(q),"prompt.id":N});let J=aY(z),V=nY(z);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:V}),Z.length>0){let _=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[r({content:[..._,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:H,isMeta:G||void 0}),...X],shouldQuery:!0}}return{messages:[r({content:Q,uuid:K,permissionMode:H,isMeta:G||void 0}),...X],shouldQuery:!0}}async function H7({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:K,pastedContents:H,ideSelection:G,messages:N,setUserInputOnProcessing:z,uuid:q,isAlreadyProcessing:J,querySource:V,canUseTool:U,skipSlashCommands:_,bridgeOrigin:O,isMeta:j,skipAttachments:I}){let A=typeof Q==="string"?Q:null;if(W==="prompt"&&A!==null&&!j)z?.(A);a("query_process_user_input_base_start");let F=K.getAppState(),$=await kW(Q,W,X,K,H,G,N,q,J,V,U,F.toolPermissionContext.mode,_,O,j,I,Z);if(a("query_process_user_input_base_end"),!$.shouldQuery)return $;a("query_hooks_start");let C=G9(Q)||"";for await(let y of V9(C,F.toolPermissionContext.mode,K,K.requestPrompt)){if(y.message?.type==="progress")continue;if(y.blockingError){let D=z9(y.blockingError);return{messages:[J9(`${D}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:$.allowedTools}}if(y.preventContinuation){let D=y.stopReason?`Operation stopped by hook: ${y.stopReason}`:"Operation stopped by hook";return $.messages.push(r({content:D})),$.shouldQuery=!1,$}if(y.additionalContexts&&y.additionalContexts.length>0)$.messages.push(K9({type:"hook_additional_context",content:y.additionalContexts.map(eY),hookName:"UserPromptSubmit",toolUseID:`hook-${hW()}`,hookEvent:"UserPromptSubmit"}));if(y.message)switch(y.message.attachment.type){case"hook_success":if(!y.message.attachment.content)break;$.messages.push({...y.message,attachment:{...y.message.attachment,content:eY(y.message.attachment.content)}});break;default:$.messages.push(y.message);break}}return a("query_hooks_end"),$}var sZ=1e4;function eY(Q){if(Q.length>sZ)return`${Q.substring(0,sZ)}… [output truncated - exceeded ${sZ} characters]`;return Q}async function kW(Q,Z,W,X,K,H,G,N,z,q,J,V,U,_,O,j,I){let A=null,F=[],$=[],C=Q;if(typeof Q==="string")A=Q;else if(Q.length>0){a("query_image_processing_start");let w=[];for(let T of Q)if(T.type==="image"){let S=await eZ(T);if(S.dimensions){let n=DZ(S.dimensions);if(n)$.push(n)}w.push(S.block)}else w.push(T);C=w,a("query_image_processing_end");let L=w[w.length-1];if(L?.type==="text")A=L.text,F=w.slice(0,-1);else F=w}if(A===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let y=K?Object.values(K).filter(W9):[],D=y.map((w)=>w.id),d=K?await Y9(K):new Map;a("query_pasted_image_processing_start");let l=await Promise.all(y.map(async(w)=>{let L={type:"image",source:{type:"base64",media_type:w.mediaType||"image/png",data:w.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:w.content.length}),{resized:await eZ(L),originalDimensions:w.dimensions,sourcePath:w.sourcePath??d.get(w.id)}})),f=[];for(let{resized:w,originalDimensions:L,sourcePath:T}of l){if(w.dimensions){let S=DZ(w.dimensions,T);if(S)$.push(S)}else if(L){let S=DZ(L,T);if(S)$.push(S)}else if(T)$.push(`[Image source: ${T}]`);f.push(w.block)}a("query_pasted_image_processing_end");let u=U;if(_&&A!==null&&A.startsWith("/")){let w=Q9(A),L=w?L9(w.commandName,X.options.commands):void 0;if(L)if(B9(L))u=!1;else{let T=`/${N9(L)} isn't available over Remote Control.`;return{messages:[r({content:A,uuid:N}),H9(`<local-command-stdout>${T}</local-command-stdout>`)],shouldQuery:!1,resultText:T}}}let c=!j&&A!==null&&(Z!=="prompt"||u||!A.startsWith("/"));a("query_attachment_loading_start");let k=c?await Z9(X9(A,X,H??null,[],G,q)):[];if(a("query_attachment_loading_end"),A!==null&&Z==="bash"){let{processBashCommand:w}=await import("./processBashCommand-0.1.11-txp79ekj.mjs");return tZ(await w(A,F,k,X,W),$)}if(A!==null&&!u&&A.startsWith("/")){let{processSlashCommand:w}=await import("./processSlashCommand-0.1.11-fdvs7etd.mjs"),L=await w(A,F,f,k,X,W,N,z,J);return tZ(L,$)}if(A!==null&&Z==="prompt"){let w=A.trim(),L=k.find((T)=>T.attachment.type==="agent_mention");if(L){let T=`@agent-${L.attachment.agentType}`,S=w===T,n=w.startsWith(T)&&!S;g("tengu_subagent_at_mention",{is_subagent_only:S,is_prefix:n})}}return tZ(tY(C,f,D,k,N,V,O),$)}function tZ(Q,Z){if(Z.length>0)Q.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}mW();NZ();XZ();cZ();pW();xW();_0();cW();uW();import{isAbsolute as gW,resolve as dW}from"path";function lW(Q,Z,W){let X=[],K=[],H=[];for(let[G,N]of Object.entries(Q)){let z=Z[G],q=P9(N.source,W?.projectRoot);if(!z)X.push(G);else if(N.sourceIsFallback)H.push(G);else if(!w9(q,z.source))K.push({name:G,declaredSource:q,materializedSource:z.source});else H.push(G)}return{missing:X,sourceChanged:K,upToDate:H}}async function U7(Q){let Z=O9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await U9()}catch(J){s(J),W={}}let X=lW(Z,W,{projectRoot:Z0()}),K=[...X.missing.map((J)=>({name:J,source:P9(Z[J].source),action:"install"})),...X.sourceChanged.map(({name:J,declaredSource:V})=>({name:J,source:V,action:"update"}))],H=[],G=[];for(let J of K){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&_9(J.source)&&!await A9(J.source.path)){E(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:H};E(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let N=[],z=[],q=[];for(let J=0;J<G.length;J++){let{name:V,source:U,action:_}=G[J];Q?.onProgress?.({type:"installing",name:V,action:_,index:J+1,total:G.length});try{let O=await y9(U);if(_==="install")N.push(V);else z.push(V);Q?.onProgress?.({type:"installed",name:V,alreadyMaterialized:O.alreadyMaterialized})}catch(O){let j=q9(O);q.push({name:V,error:j}),Q?.onProgress?.({type:"failed",name:V,error:j}),s(O)}}return{installed:N,updated:z,failed:q,upToDate:X.upToDate,skipped:H}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!gW(Q.path)){let W=Z??Z0(),X=v9(W);return{...Q,path:dW(X??W,Q.path)}}return Q}
24
- export{nW as Z,jW as _,TX as $,i9 as aa,R0 as ba,e9 as ca,ZQ as da,YQ as ea,fX as fa,H7 as ga,hZ as ha,PZ as ia,ZY as ja,iQ as ka,lW as la,U7 as ma,ZW as na,YW as oa,QW as pa,qW as qa,vW as ra,AW as sa};
@@ -1,4 +0,0 @@
1
- import{Pna as k,Sna as L}from"./cli-0.1.11-yrfxpjhr.mjs";var Q=k((Te)=>{Te.HttpAuthLocation=void 0;(function(e){e.HEADER="header",e.QUERY="query"})(Te.HttpAuthLocation||(Te.HttpAuthLocation={}));Te.HttpApiKeyAuthLocation=void 0;(function(e){e.HEADER="header",e.QUERY="query"})(Te.HttpApiKeyAuthLocation||(Te.HttpApiKeyAuthLocation={}));Te.EndpointURLScheme=void 0;(function(e){e.HTTP="http",e.HTTPS="https"})(Te.EndpointURLScheme||(Te.EndpointURLScheme={}));Te.AlgorithmId=void 0;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Te.AlgorithmId||(Te.AlgorithmId={}));var de=(e)=>{let t=[];if(e.sha256!==void 0)t.push({algorithmId:()=>Te.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256});if(e.md5!=null)t.push({algorithmId:()=>Te.AlgorithmId.MD5,checksumConstructor:()=>e.md5});return{addChecksumAlgorithm(n){t.push(n)},checksumAlgorithms(){return t}}},le=(e)=>{let t={};return e.checksumAlgorithms().forEach((n)=>{t[n.algorithmId()]=n.checksumConstructor()}),t},me=(e)=>{return de(e)},ge=(e)=>{return le(e)};Te.FieldPosition=void 0;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(Te.FieldPosition||(Te.FieldPosition={}));var Ee="__smithy_context";Te.IniSectionType=void 0;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(Te.IniSectionType||(Te.IniSectionType={}));Te.RequestHandlerProtocol=void 0;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(Te.RequestHandlerProtocol||(Te.RequestHandlerProtocol={}));Te.SMITHY_CONTEXT_KEY=Ee;Te.getDefaultClientConfiguration=me;Te.resolveDefaultRuntimeConfig=ge});var X=k((Re)=>{var Ae=Q(),xe=(e)=>{return{setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}},Ce=(e)=>{return{httpHandler:e.httpHandler()}};class Y{name;kind;values;constructor({name:e,kind:t=Ae.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=t,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t)=>t!==e)}toString(){return this.values.map((e)=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}class V{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t)=>t.kind===e)}}class P{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let t=new P({...e,headers:{...e.headers}});if(t.query)t.query=Se(t.query);return t}static isInstance(e){if(!e)return!1;let t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query==="object"&&typeof t.headers==="object"}clone(){return P.clone(this)}}function Se(e){return Object.keys(e).reduce((t,n)=>{let o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}},{})}class z{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function be(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Re.Field=Y;Re.Fields=V;Re.HttpRequest=P;Re.HttpResponse=z;Re.getHttpHandlerExtensionConfiguration=xe;Re.isValidHostname=be;Re.resolveHttpHandlerRuntimeConfig=Ce});var G=k((Ie)=>{var J=(e)=>encodeURIComponent(e).replace(/[!'()*]/g,Le),Le=(e)=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,$e=(e)=>e.split("/").map(J).join("/");Ie.escapeUri=J;Ie.escapeUriPath=$e});var Z=k((je)=>{var N=G();function Be(e){let t=[];for(let n of Object.keys(e).sort()){let o=e[n];if(n=N.escapeUri(n),Array.isArray(o))for(let r=0,s=o.length;r<s;r++)t.push(`${n}=${N.escapeUri(o[r])}`);else{let r=n;if(o||typeof o==="string")r+=`=${N.escapeUri(o)}`;t.push(r)}}return t.join("&")}je.buildQueryString=Be});var rt=k((qe)=>{var oe=X(),re=Z(),_=L("node:https"),se=L("node:stream"),W=L("node:http2");function D(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let r=Error("Request aborted");return r.name="AbortError",r.cause=t,r}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var We=["ECONNRESET","EPIPE","ETIMEDOUT"],ie=(e)=>{let t={};for(let n of Object.keys(e)){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},l={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},q=1000,Fe=(e,t,n=0)=>{if(!n)return-1;let o=(r)=>{let s=l.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-r),i=(a)=>{if(a?.connecting)a.on("connect",()=>{l.clearTimeout(s)});else l.clearTimeout(s)};if(e.socket)i(e.socket);else e.on("socket",i)};if(n<2000)return o(0),0;return l.setTimeout(o.bind(null,q),q)},Ke=(e,t,n=0,o,r)=>{if(n)return l.setTimeout(()=>{let s=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let i=Object.assign(Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(i),t(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",r?.warn?.(s)},n);return-1},Qe=3000,Ye=(e,{keepAlive:t,keepAliveMsecs:n},o=Qe)=>{if(t!==!0)return-1;let r=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(s)=>{s.setKeepAlive(t,n||0)})};if(o===0)return r(),0;return l.setTimeout(r,o)},ee=3000,Ve=(e,t,n=0)=>{let o=(r)=>{let s=n-r,i=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(s,i),e.on("close",()=>e.socket?.removeListener("timeout",i));else e.setTimeout(s,i)};if(0<n&&n<6000)return o(0),0;return l.setTimeout(o.bind(null,n===0?0:ee),ee)},te=6000;async function ce(e,t,n=te,o=!1){let r=t.headers??{},s=r.Expect||r.expect,i=-1,a=!0;if(!o&&s==="100-continue")a=await Promise.race([new Promise((c)=>{i=Number(l.setTimeout(()=>c(!0),Math.max(te,n)))}),new Promise((c)=>{e.on("continue",()=>{l.clearTimeout(i),c(!0)}),e.on("response",()=>{l.clearTimeout(i),c(!1)}),e.on("error",()=>{l.clearTimeout(i),c(!1)})})]);if(a)ze(e,t.body)}function ze(e,t){if(t instanceof se.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let r=t;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}var Xe=0,U=void 0,ne=void 0;class H{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new H(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:r,maxSockets:s}=e;if(typeof s!=="number"||s===1/0)return t;let i=15000;if(Date.now()-i<t)return t;if(o&&r)for(let a in o){let c=o[a]?.length??0,E=r[a]?.length??0;if(c>=s&&E>=2*s)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${c} and ${E} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,r=e.protocol==="https:";if(!r&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((s,i)=>{let a=void 0,c=[],E=async(u)=>{await a,c.forEach(l.clearTimeout),s(u)},m=async(u)=>{await a,c.forEach(l.clearTimeout),i(u)};if(t?.aborted){let u=D(t);m(u);return}let p=e.headers??{},A=(p.Expect??p.expect)==="100-continue",x=r?o.httpsAgent:o.httpAgent;if(A&&!this.externalAgent)x=new(r?_.Agent:U)({keepAlive:!1,maxSockets:1/0});c.push(l.setTimeout(()=>{this.socketWarningTimestamp=H.checkSocketUsage(x,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000)));let C=re.buildQueryString(e.query||{}),v=void 0;if(e.username!=null||e.password!=null){let u=e.username??"",f=e.password??"";v=`${u}:${f}`}let S=e.path;if(C)S+=`?${C}`;if(e.fragment)S+=`#${e.fragment}`;let y=e.hostname??"";if(y[0]==="["&&y.endsWith("]"))y=e.hostname.slice(1,-1);else y=e.hostname;let b={headers:e.headers,host:y,method:e.method,path:S,port:e.port,agent:x,auth:v},d=(r?_.request:ne)(b,(u)=>{let f=new oe.HttpResponse({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:ie(u.headers),body:u});E({response:f})});if(d.on("error",(u)=>{if(We.includes(u.code))m(Object.assign(u,{name:"TimeoutError"}));else m(u)}),t){let u=()=>{d.destroy();let f=D(t);m(f)};if(typeof t.addEventListener==="function"){let f=t;f.addEventListener("abort",u,{once:!0}),d.once("close",()=>f.removeEventListener("abort",u))}else t.onabort=u}let T=n??o.requestTimeout;c.push(Fe(d,m,o.connectionTimeout)),c.push(Ke(d,m,T,o.throwOnRequestTimeout,o.logger??console)),c.push(Ve(d,m,o.socketTimeout));let w=b.agent;if(typeof w==="object"&&"keepAlive"in w)c.push(Ye(d,{keepAlive:w.keepAlive,keepAliveMsecs:w.keepAliveMsecs}));a=ce(d,e,T,this.externalAgent).catch((u)=>{return c.forEach(l.clearTimeout),i(u)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:r,httpAgent:s,httpsAgent:i,throwOnRequestTimeout:a,logger:c}=e||{},E=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:r,throwOnRequestTimeout:a,httpAgentProvider:async()=>{let{Agent:p,request:A}=await import("node:http");if(ne=A,U=p,s instanceof U||typeof s?.destroy==="function")return this.externalAgent=!0,s;return new U({keepAlive:!0,maxSockets:50,...s})},httpsAgent:(()=>{if(i instanceof _.Agent||typeof i?.destroy==="function")return this.externalAgent=!0,i;return new _.Agent({keepAlive:!0,maxSockets:50,...i})})(),logger:c}}}class ae{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t)=>t!==e)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(let t of this.sessions)if(t===e){if(!t.destroyed)t.destroy()}}}class ue{constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}config;sessionCache=new Map;lease(e,t){let n=this.getUrlString(e),o=this.sessionCache.get(n);if(o){let a=o.poll();if(a&&!this.config.disableConcurrency)return a}let r=W.connect(n);if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(a)=>{if(a)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});r.unref();let s=()=>{r.destroy(),this.deleteSession(n,r)};if(r.on("goaway",s),r.on("error",s),r.on("frameError",s),r.on("close",()=>this.deleteSession(n,r)),t.requestTimeout)r.setTimeout(t.requestTimeout,s);let i=this.sessionCache.get(n)||new ae;return i.offerLast(r),this.sessionCache.set(n,i),r}deleteSession(e,t){let n=this.sessionCache.get(e);if(!n)return;if(!n.contains(t))return;n.remove(t),this.sessionCache.set(e,n)}release(e,t){let n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(let[e,t]of this.sessionCache){for(let n of t){if(!n.destroyed)n.destroy();t.remove(n)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class F{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new ue({});static create(e){if(typeof e?.handle==="function")return e;return new F(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}let{requestTimeout:o,disableConcurrentStreams:r}=this.config,s=n??o;return new Promise((i,a)=>{let c=!1,E=void 0,m=async(h)=>{await E,i(h)},p=async(h)=>{await E,a(h)};if(t?.aborted){c=!0;let h=D(t);p(h);return}let{hostname:A,method:x,port:C,protocol:v,query:S}=e,y="";if(e.username!=null||e.password!=null){let h=e.username??"",g=e.password??"";y=`${h}:${g}@`}let b=`${v}//${y}${A}${C?`:${C}`:""}`,K={destination:new URL(b)},d=this.connectionManager.lease(K,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:r||!1}),T=(h)=>{if(r)this.destroySession(d);c=!0,p(h)},w=re.buildQueryString(S||{}),u=e.path;if(w)u+=`?${w}`;if(e.fragment)u+=`#${e.fragment}`;let f=d.request({...e.headers,[W.constants.HTTP2_HEADER_PATH]:u,[W.constants.HTTP2_HEADER_METHOD]:x});if(d.ref(),f.on("response",(h)=>{let g=new oe.HttpResponse({statusCode:h[":status"]||-1,headers:ie(h),body:f});if(c=!0,m({response:g}),r)d.close(),this.connectionManager.deleteSession(b,d)}),s)f.setTimeout(s,()=>{f.close();let h=Error(`Stream timed out because of no activity for ${s} ms`);h.name="TimeoutError",T(h)});if(t){let h=()=>{f.close();let g=D(t);T(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",h,{once:!0}),f.once("close",()=>g.removeEventListener("abort",h))}else t.onabort=h}f.on("frameError",(h,g,he)=>{T(Error(`Frame type id ${h} in stream id ${he} has failed with code ${g}.`))}),f.on("error",T),f.on("aborted",()=>{T(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${f.rstCode}.`))}),f.on("close",()=>{if(d.unref(),r)d.destroy();if(!c)T(Error("Unexpected error: http2 request did not get a response"))}),E=ce(f,e,s)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed)e.destroy()}}class fe extends se.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var Je=(e)=>{if(Ge(e))return Ze(e);return new Promise((t,n)=>{let o=new fe;e.pipe(o),e.on("error",(r)=>{o.end(),n(r)}),o.on("error",n),o.on("finish",function(){let r=new Uint8Array(Buffer.concat(this.bufferedBytes));t(r)})})},Ge=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function Ze(e){let t=[],n=e.getReader(),o=!1,r=0;while(!o){let{done:a,value:c}=await n.read();if(c)t.push(c),r+=c.length;o=a}let s=new Uint8Array(r),i=0;for(let a of t)s.set(a,i),i+=a.length;return s}qe.DEFAULT_REQUEST_TIMEOUT=Xe;qe.NodeHttp2Handler=F;qe.NodeHttpHandler=H;qe.streamCollector=Je});
4
- export{Z as Ina,rt as Jna};
@@ -1,2 +0,0 @@
1
- import{bK as S,cK as Zf,eK as Vf}from"./cli-0.1.11-s8ygndzf.mjs";import{LP as Xf,MP as _f}from"./cli-0.1.11-r990p54m.mjs";import{VS as Wf,WS as Uf}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as x,PU as cf,QU as y,SU as q,WU as Qf,eT as s,kT as n,lT as If,vV as a}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as _}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as Tf}from"./cli-0.1.11-x37jysc0.mjs";import{A2 as zf,I2 as Jf,J2 as hf,N2 as M,Q2 as p,R2 as Rf,p2 as Nf,r2 as D,s2 as j,t2 as Hf,v2 as A,y2 as qf}from"./cli-0.1.11-qbcfg80y.mjs";import{E5 as l,F5 as Pf}from"./cli-0.1.11-s6yfjcm5.mjs";import{Cba as i,Eaa as Gf,G_ as Y,Qaa as Cf,S_ as yf,Vba as Bf}from"./cli-0.1.11-v7bwjqf0.mjs";import{Ffa as mf,Nfa as Of}from"./cli-0.1.11-nx8a99hz.mjs";import{dga as u,ega as Lf}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as k,Rna as o}from"./cli-0.1.11-yrfxpjhr.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=g.jsxDEV(q,{color:"promptBorder",dimColor:!0,children:Y},void 0,!1,void 0,this),f[0]=z;else z=f[0];return z}let H;if(f[1]===Symbol.for("react.memo_cache_sentinel"))H=g.jsxDEV(q,{color:"fastMode",children:Y},void 0,!1,void 0,this),f[1]=H;else H=f[1];return H}function V(m=!0,f=!1){if(!m)return Y;let G=n(i().theme);if(f)return l.dim(x("promptBorder",G)(Y));return x("fastMode",G)(Y)}var t,g;var ff=o(()=>{Pf();yf();a();Bf();If();cf();t=k(s(),1),g=k(_(),1)});function b(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let H=!A(G.mainLoopModel);return{...G,...H?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function jf(m){let f=kf.c(30),{onDone:G,unavailableReason:H}=m,z=S(vf),W=S(Ef),X=Zf(),[J,wf]=Kf.useState(W??!1),B;if(f[0]===Symbol.for("react.memo_cache_sentinel"))B=qf(),f[0]=B;else B=f[0];let P=B,$=P.status==="cooldown",Q=H!==null,I;if(f[1]===Symbol.for("react.memo_cache_sentinel"))I=p(M(!0)),f[1]=I;else I=f[1];let d=I,c;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==X)c=function(){if(Q)return;if(b(J,X),u("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let F=V(J),rf=!A(z)?` · model set to ${j}`:"";G(`${F} Fast mode ON${rf} · ${d}`)}else X(Af),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=X,f[7]=c;else c=f[7];let E=c,L;if(f[8]!==W||f[9]!==Q||f[10]!==G||f[11]!==X)L=function(){if(Q){if(W)b(!1,X);G("Fast mode OFF",{display:"system"});return}let F=W?`${V()} Kept Fast mode ON`:"Kept Fast mode OFF";G(F,{display:"system"})},f[8]=W,f[9]=Q,f[10]=G,f[11]=X,f[12]=L;else L=f[12];let v=L,O;if(f[13]!==Q)O=function(){if(Q)return;wf(uf)},f[13]=Q,f[14]=O;else O=f[14];let Z=O,C;if(f[15]!==E||f[16]!==Z)C={"confirm:yes":E,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=E,f[16]=Z,f[17]=C;else C=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h={context:"Confirmation"},f[18]=h;else h=f[18];Wf(C,h);let R;if(f[19]===Symbol.for("react.memo_cache_sentinel"))R=N.jsxDEV(q,{children:[N.jsxDEV(e,{cooldown:$},void 0,!1,void 0,this)," Fast mode (research preview)"]},void 0,!0,void 0,this),f[19]=R;else R=f[19];let Yf=R,K;if(f[20]!==Q)K=(r)=>r.pending?N.jsxDEV(q,{children:["Press ",r.keyName," again to exit"]},void 0,!0,void 0,this):Q?N.jsxDEV(q,{children:"Esc to cancel"},void 0,!1,void 0,this):N.jsxDEV(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"},void 0,!1,void 0,this),f[20]=Q,f[21]=K;else K=f[21];let w;if(f[22]!==J||f[23]!==H)w=H?N.jsxDEV(y,{marginLeft:2,children:N.jsxDEV(q,{color:"error",children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this):N.jsxDEV(N.Fragment,{children:[N.jsxDEV(y,{flexDirection:"column",gap:0,marginLeft:2,children:N.jsxDEV(y,{flexDirection:"row",gap:2,children:[N.jsxDEV(q,{bold:!0,children:"Fast mode"},void 0,!1,void 0,this),N.jsxDEV(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"},void 0,!1,void 0,this),N.jsxDEV(q,{dimColor:!0,children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$&&P.status==="cooldown"&&N.jsxDEV(y,{marginLeft:2,children:N.jsxDEV(q,{color:"warning",children:[P.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(P.resetAt-Date.now(),{hideTrailingZeros:!0})]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[22]=J,f[23]=H,f[24]=w;else w=f[24];let T;if(f[25]===Symbol.for("react.memo_cache_sentinel"))T=N.jsxDEV(q,{dimColor:!0,children:["Learn more:"," ",N.jsxDEV(Qf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[25]=T;else T=f[25];let U;if(f[26]!==v||f[27]!==w||f[28]!==K)U=N.jsxDEV(Xf,{title:Yf,subtitle:`High-speed mode for ${j}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:v,color:"fastMode",inputGuide:K,children:[w,T]},void 0,!0,void 0,this),f[26]=v,f[27]=w,f[28]=K,f[29]=U;else U=f[29];return U}function uf(m){return!m}function Af(m){return{...m,fastMode:!1}}function Ef(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let H=D();if(H)return`Fast mode unavailable: ${H}`;let{mainLoopModel:z}=f();if(b(m,G),u("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let W=V(!0),X=!A(z)?` · model set to ${j}`:"",J=p(M(!0));return`${W} Fast mode ON${X} · ${J}`}else return"Fast mode OFF"}async function G0(m,f,G){if(!Nf())return null;await Jf();let H=G?.trim().toLowerCase();if(H==="on"||H==="off"){let W=await Ff(H==="on",f.getAppState,f.setAppState);return m(W),null}let z=D();return u("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),N.jsxDEV(jf,{onDone:m,unavailableReason:z},void 0,!1,void 0,this)}var kf,Kf,N;var xf=o(()=>{_f();ff();a();Uf();Lf();Vf();hf();Of();Rf();Cf();kf=k(s(),1),Kf=k(Tf(),1),N=k(_(),1)});
2
- export{V as ad,ff as bd,jf as cd,G0 as dd,xf as ed};
@@ -1,2 +0,0 @@
1
- import{Mc as zq,Qc as Tq}from"./cli-0.1.11-cw0ss3jw.mjs";import{Xc as qq,Yc as bq}from"./cli-0.1.11-21epc92q.mjs";import{Ay as k,By as fq,HG as e,KG as Fq,UF as A,XF as Nq,_G as p,bH as Cq,gG as s,hG as _q,lG as r,oG as a,ov as n,pv as Gq,sG as l,xG as t,zG as Rq}from"./cli-0.1.11-s8ygndzf.mjs";import{LP as i,MP as yq}from"./cli-0.1.11-r990p54m.mjs";import{GU as o,HU as Bq,QU as F,SU as C,eT as Lq,vV as Oq}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as E}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as vq}from"./cli-0.1.11-x37jysc0.mjs";import{F7 as m,K7 as Zq,P7 as D,P8 as $,Q7 as Xq,R8 as wq,S7 as g,U7 as Hq,U9 as Kq,y9 as x}from"./cli-0.1.11-v7bwjqf0.mjs";import{Cga as P,Fga as u,Jga as Wq,bha as O,eha as Yq}from"./cli-0.1.11-vq5fvf9m.mjs";import{Nna as I,Rna as Uq}from"./cli-0.1.11-yrfxpjhr.mjs";import{readFile as d}from"fs/promises";import{join as S}from"path";function Jq(){return s}function Mq(){return Vq}function Qq(){return`thinkback@${Jq()}`}async function Sq(){let{enabled:K}=await p(),q=K.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Qq()));if(!q)return null;let J=S(q.path,"skills",Aq);if(await x(J))return J;return null}async function jq(K){let q=S(K,"year_in_review.js"),J=S(K,"player.js");try{await d(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await d(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=o.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await D("node",[J],{stdio:"inherit",cwd:K,reject:!1})}catch{}finally{U.exitAlternateScreen()}let y=S(K,"year_in_review.html");if(await x(y)){let z=$();g(z==="macos"?"open":z==="windows"?"start":"xdg-open",[y])}return{success:!0,message:"Year in review animation complete!"}}function Iq({onReady:K,onError:q}){let[J,U]=L.useState({phase:"checking"}),[y,z]=L.useState("");if(L.useEffect(()=>{async function H(){try{let G=await a(),X=Jq(),f=Mq(),w=Qq(),R=X in G,B=e(w);if(!R)U({phase:"installing-marketplace"}),O(`Installing marketplace ${f}`),await l({source:"github",repo:f},(W)=>{z(W)}),A(),O(`Marketplace ${X} installed`);else if(!B)U({phase:"installing-marketplace"}),z("Updating marketplace…"),O(`Refreshing marketplace ${X}`),await t(X,(W)=>{z(W)}),r(),A(),O(`Marketplace ${X} refreshed`);if(!B){U({phase:"installing-plugin"}),O(`Installing plugin ${w}`);let W=await qq([w]);if(W.failed.length>0){let v=W.failed.map((Z)=>`${Z.name}: ${Z.error}`).join(", ");throw Error(`Failed to install plugin: ${v}`)}A(),O(`Plugin ${w} installed`)}else{let{disabled:W}=await p();if(W.some((Z)=>Z.name==="thinkback"||Z.source?.includes(w))){U({phase:"enabling-plugin"}),O(`Enabling plugin ${w}`);let Z=await zq(w);if(!Z.success)throw Error(`Failed to enable plugin: ${Z.message}`);A(),O(`Plugin ${w} enabled`)}}U({phase:"ready"}),K()}catch(G){let X=P(G);m(X),U({phase:"error",message:X.message}),q(X.message)}}H()},[K,q]),J.phase==="error")return Y.jsxDEV(F,{flexDirection:"column",children:Y.jsxDEV(C,{color:"error",children:["Error: ",J.message]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return Y.jsxDEV(F,{flexDirection:"column",children:Y.jsxDEV(F,{children:[Y.jsxDEV(k,{},void 0,!1,void 0,this),Y.jsxDEV(C,{children:y||T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Pq(K){let q=c.c(19),{onDone:J,onAction:U,skillDir:y,hasGenerated:z}=K,[T,H]=L.useState(!1),G;if(q[0]!==z)G=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=G;else G=q[1];let X=G,f;if(q[2]!==U||q[3]!==J||q[4]!==y)f=function(b){if(H(!0),b==="play")jq(y).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=y,q[5]=f;else f=q[5];let w=f,R;if(q[6]!==J)R=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=R;else R=q[7];let B=R;if(T)return null;let W;if(q[8]!==z)W=!z&&Y.jsxDEV(F,{flexDirection:"column",children:[Y.jsxDEV(C,{children:"Relive your year of coding with Claude."},void 0,!1,void 0,this),Y.jsxDEV(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[8]=z,q[9]=W;else W=q[9];let v;if(q[10]!==w||q[11]!==X)v=Y.jsxDEV(n,{options:X,onChange:w,visibleOptionCount:5},void 0,!1,void 0,this),q[10]=w,q[11]=X,q[12]=v;else v=q[12];let Z;if(q[13]!==W||q[14]!==v)Z=Y.jsxDEV(F,{flexDirection:"column",gap:1,children:[W,v]},void 0,!0,void 0,this),q[13]=W,q[14]=v,q[15]=Z;else Z=q[15];let N;if(q[16]!==B||q[17]!==Z)N=Y.jsxDEV(i,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:B,color:"claude",children:Z},void 0,!1,void 0,this),q[16]=B,q[17]=Z,q[18]=N;else N=q[18];return N}function uq(K){let q=c.c(27),{onDone:J}=K,[U,y]=L.useState(!1),[z,T]=L.useState(null),[H,G]=L.useState(null),[X,f]=L.useState(null),w;if(q[0]===Symbol.for("react.memo_cache_sentinel"))w=function(){y(!0)},q[0]=w;else w=q[0];let R=w,B;if(q[1]!==J)B=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=B;else B=q[2];let W=B,v,Z;if(q[3]!==W||q[4]!==U||q[5]!==z||q[6]!==H)v=()=>{if(U&&!H&&!z)Sq().then((Q)=>{if(Q)O(`Thinkback skill directory: ${Q}`),G(Q);else W("Could not find thinkback skill directory")})},Z=[U,H,z,W],q[3]=W,q[4]=U,q[5]=z,q[6]=H,q[7]=v,q[8]=Z;else v=q[7],Z=q[8];L.useEffect(v,Z);let N,V;if(q[9]!==H)N=()=>{if(!H)return;let Q=S(H,"year_in_review.js");x(Q).then((_)=>{O(`Checking for ${Q}: ${_?"found":"not found"}`),f(_)})},V=[H],q[9]=H,q[10]=N,q[11]=V;else N=q[10],V=q[11];L.useEffect(N,V);let b;if(q[12]!==J)b=function(_){J({edit:mq,fix:xq,regenerate:hq}[_],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let h=b;if(z){let Q;if(q[14]!==z)Q=Y.jsxDEV(C,{color:"error",children:["Error: ",z]},void 0,!0,void 0,this),q[14]=z,q[15]=Q;else Q=q[15];let _;if(q[16]===Symbol.for("react.memo_cache_sentinel"))_=Y.jsxDEV(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."},void 0,!1,void 0,this),q[16]=_;else _=q[16];let M;if(q[17]!==Q)M=Y.jsxDEV(F,{flexDirection:"column",children:[Q,_]},void 0,!0,void 0,this),q[17]=Q,q[18]=M;else M=q[18];return M}if(!U){let Q;if(q[19]!==W)Q=Y.jsxDEV(Iq,{onReady:R,onError:W},void 0,!1,void 0,this),q[19]=W,q[20]=Q;else Q=q[20];return Q}if(!H||X===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=Y.jsxDEV(F,{children:[Y.jsxDEV(k,{},void 0,!1,void 0,this),Y.jsxDEV(C,{children:"Loading thinkback skill…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[21]=Q;else Q=q[21];return Q}let j;if(q[22]!==h||q[23]!==X||q[24]!==J||q[25]!==H)j=Y.jsxDEV(Pq,{onDone:J,onAction:h,skillDir:H,hasGenerated:X},void 0,!1,void 0,this),q[22]=h,q[23]=X,q[24]=J,q[25]=H,q[26]=j;else j=q[26];return j}async function Yz(K){return Y.jsxDEV(uq,{onDone:K},void 0,!1,void 0,this)}var c,L,Y,Vq="anthropics/claude-plugins-official",Aq="thinkback",mq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',xq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var kq=Uq(()=>{Xq();Gq();yq();fq();Bq();Oq();Tq();Yq();Wq();Hq();Kq();Zq();wq();Nq();Fq();Rq();_q();Cq();bq();c=I(Lq(),1),L=I(vq(),1),Y=I(E(),1)});
2
- export{jq as Cc,Yz as Dc,kq as Ec};
@@ -1,2 +0,0 @@
1
- import{Pna as y}from"./cli-0.1.11-yrfxpjhr.mjs";var v=y((x)=>{class s extends Error{name="ProviderError";tryNextLink;constructor(r,t=!0){let n,e=!0;if(typeof t==="boolean")n=void 0,e=t;else if(t!=null&&typeof t==="object")n=t.logger,e=t.tryNextLink??!0;super(r);this.tryNextLink=e,Object.setPrototypeOf(this,s.prototype),n?.debug?.(`@smithy/property-provider ${e?"->":"(!)"} ${r}`)}static from(r,t=!0){return Object.assign(new this(r.message,t),r)}}class f extends s{name="CredentialsProviderError";constructor(r,t=!0){super(r,t);Object.setPrototypeOf(this,f.prototype)}}class l extends s{name="TokenProviderError";constructor(r,t=!0){super(r,t);Object.setPrototypeOf(this,l.prototype)}}var p=(...r)=>async()=>{if(r.length===0)throw new s("No providers in chain");let t;for(let n of r)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t},d=(r)=>()=>Promise.resolve(r),h=(r,t,n)=>{let e,o,i,c=!1,a=async()=>{if(!o)o=r();try{e=await o,i=!0,c=!1}finally{o=void 0}return e};if(t===void 0)return async(u)=>{if(!i||u?.forceRefresh)e=await a();return e};return async(u)=>{if(!i||u?.forceRefresh)e=await a();if(c)return e;if(n&&!n(e))return c=!0,e;if(t(e))return await a(),e;return e}};x.CredentialsProviderError=f;x.ProviderError=s;x.TokenProviderError=l;x.chain=p;x.fromStatic=d;x.memoize=h});
2
- export{v as Lna};
@@ -1,2 +0,0 @@
1
- import{bg as s,eg as fq}from"./cli-0.1.11-egck69w4.mjs";import{fg as e,hg as Hq}from"./cli-0.1.11-5zqfr92n.mjs";import{$h as u,DK as o,EK as Oq,_h as c,ai as Xq,ov as n,pv as Mq}from"./cli-0.1.11-s8ygndzf.mjs";import{DP as S,EP as Zq,FP as $,GP as Wq,HP as i,IP as Yq,LP as r,MP as kq}from"./cli-0.1.11-r990p54m.mjs";import{US as g,WS as Nq}from"./cli-0.1.11-h02tyg8p.mjs";import{QU as O,SU as T,eT as Lq,iV as d,jV as Qq,vV as Uq}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as l}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as Jq}from"./cli-0.1.11-x37jysc0.mjs";import{L7 as a,M7 as Gq}from"./cli-0.1.11-v7bwjqf0.mjs";import{Nna as x,Rna as zq}from"./cli-0.1.11-yrfxpjhr.mjs";function t(){let Z=B.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=z.jsxDEV(T,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."},void 0,!1,void 0,this),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=B.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=z.jsxDEV(T,{color:"permission",children:X},void 0,!1,void 0,this),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=z.jsxDEV(t,{},void 0,!1,void 0,this),q[2]=N;else N=q[2];let L;if(q[3]!==Q)L=z.jsxDEV(O,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]},void 0,!0,void 0,this),q[3]=Q,q[4]=L;else L=q[4];return L}function Kq(Z){let q=B.c(14),{value:X,onChange:Q,onSubmit:N,error:L,suggestions:W,selectedSuggestion:w}=Z,M;if(q[0]===Symbol.for("react.memo_cache_sentinel"))M=z.jsxDEV(T,{children:"Enter the path to the directory:"},void 0,!1,void 0,this),q[0]=M;else M=q[0];let k;if(q[1]!==Q||q[2]!==N||q[3]!==X)k=z.jsxDEV(O,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:z.jsxDEV(o,{showCursor:!0,placeholder:`Directory path${a.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[1]=Q,q[2]=N,q[3]=X,q[4]=k;else k=q[4];let Y;if(q[5]!==w||q[6]!==W)Y=W.length>0&&z.jsxDEV(O,{marginBottom:1,children:z.jsxDEV(e,{suggestions:W,selectedSuggestion:w},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[5]=w,q[6]=W,q[7]=Y;else Y=q[7];let U;if(q[8]!==L)U=L&&z.jsxDEV(T,{color:"error",children:L},void 0,!1,void 0,this),q[8]=L,q[9]=U;else U=q[9];let f;if(q[10]!==k||q[11]!==Y||q[12]!==U)f=z.jsxDEV(O,{flexDirection:"column",children:[M,k,Y,U]},void 0,!0,void 0,this),q[10]=k,q[11]=Y,q[12]=U,q[13]=f;else f=q[13];return f}function Aq(){}function Sq(Z){let q=B.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:L}=Z,[W,w]=R.useState(""),[M,k]=R.useState(null),Y;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Y=[],q[0]=Y;else Y=q[0];let[U,f]=R.useState(Y),[H,v]=R.useState(0),I;if(q[1]===Symbol.for("react.memo_cache_sentinel"))I=async(G)=>{if(!G){f([]),v(0);return}let J=await s(G);f(J),v(0)},q[1]=I;else I=q[1];let C=d(I,100),P,m;if(q[2]!==C||q[3]!==W)P=()=>{C(W)},m=[W,C],q[2]=C,q[3]=W,q[4]=P,q[5]=m;else P=q[4],m=q[5];R.useEffect(P,m);let _;if(q[6]===Symbol.for("react.memo_cache_sentinel"))_=(G)=>{let J=G.id+"/";w(J),k(null)},q[6]=_;else _=q[6];let qq=_,b;if(q[7]!==X||q[8]!==N)b=async(G)=>{let J=await c(G,N);if(J.resultType==="success")X(J.absolutePath,!1);else k(u(J))},q[7]=X,q[8]=N,q[9]=b;else b=q[9];let K=b,V;if(q[10]===Symbol.for("react.memo_cache_sentinel"))V={context:"Settings"},q[10]=V;else V=q[10];g("confirm:no",Q,V);let j;if(q[11]!==K||q[12]!==H||q[13]!==U)j=(G)=>{if(U.length>0){if(G.key==="tab"){G.preventDefault();let J=U[H];if(J)qq(J);return}if(G.key==="return"){G.preventDefault();let J=U[H];if(J)K(J.id+"/");return}if(G.key==="up"||G.ctrl&&G.key==="p"){G.preventDefault(),v((J)=>J<=0?U.length-1:J-1);return}if(G.key==="down"||G.ctrl&&G.key==="n"){G.preventDefault(),v((J)=>J>=U.length-1?0:J+1);return}}},q[11]=K,q[12]=H,q[13]=U,q[14]=j;else j=q[14];let p=j,E;if(q[15]!==L||q[16]!==X||q[17]!==Q)E=(G)=>{if(!L)return;let J=G;q:switch(J){case"yes-session":{X(L,!1);break q}case"yes-remember":{X(L,!0);break q}case"no":Q()}},q[15]=L,q[16]=X,q[17]=Q,q[18]=E;else E=q[18];let y=E,D=L?void 0:Fq,A;if(q[19]!==W||q[20]!==L||q[21]!==M||q[22]!==y||q[23]!==K||q[24]!==H||q[25]!==U)A=L?z.jsxDEV(O,{flexDirection:"column",gap:1,children:[z.jsxDEV(wq,{path:L},void 0,!1,void 0,this),z.jsxDEV(n,{options:Rq,onChange:y,onCancel:()=>y("no")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV(O,{flexDirection:"column",gap:1,marginX:2,children:[z.jsxDEV(t,{},void 0,!1,void 0,this),z.jsxDEV(Kq,{value:W,onChange:w,onSubmit:K,error:M,suggestions:U,selectedSuggestion:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[19]=W,q[20]=L,q[21]=M,q[22]=y,q[23]=K,q[24]=H,q[25]=U,q[26]=A;else A=q[26];let F;if(q[27]!==Q||q[28]!==D||q[29]!==A)F=z.jsxDEV(r,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:D,children:A},void 0,!1,void 0,this),q[27]=Q,q[28]=D,q[29]=A,q[30]=F;else F=q[30];let h;if(q[31]!==p||q[32]!==F)h=z.jsxDEV(O,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:p,children:F},void 0,!1,void 0,this),q[31]=p,q[32]=F,q[33]=h;else h=q[33];return h}function Fq(Z){return Z.pending?z.jsxDEV(T,{children:["Press ",Z.keyName," again to exit"]},void 0,!0,void 0,this):z.jsxDEV(i,{children:[z.jsxDEV(S,{shortcut:"Tab",action:"complete"},void 0,!1,void 0,this),z.jsxDEV(S,{shortcut:"Enter",action:"add"},void 0,!1,void 0,this),z.jsxDEV($,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var B,R,z,Rq;var Tq=zq(()=>{Gq();Qq();Xq();Oq();Uq();Nq();fq();Wq();Mq();Yq();kq();Zq();Hq();B=x(Lq(),1),R=x(Jq(),1),z=x(l(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
2
- export{Sq as $f,Tq as ag};
@@ -1,2 +0,0 @@
1
- import{yh as a,zh as c}from"./cli-0.1.11-trcf78n1.mjs";import{Ah as m,Bh as g}from"./cli-0.1.11-fs3d0ajf.mjs";import{qX as e}from"./cli-0.1.11-kk0qqs5v.mjs";import{Nna as n,Rna as l}from"./cli-0.1.11-yrfxpjhr.mjs";async function C(o,i){let t=await m();if(t.type==="message")return o(t.value),null;return r.jsxDEV(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(s)=>{i.onChangeAPIKey(),o(s?"Login successful":"Login interrupted")}},void 0,!1,void 0,this)}var r;var u=l(()=>{c();g();r=n(e(),1)});
2
- export{C as wh,u as xh};
@@ -1,2 +0,0 @@
1
- import{vX as K,xX as Z}from"./cli-0.1.11-h762f6hr.mjs";import{AX as Y,yX as J}from"./cli-0.1.11-50naxqgt.mjs";import{K4 as D,P1 as B,P4 as F,Q4 as G,U1 as W,i5 as X}from"./cli-0.1.11-qbcfg80y.mjs";import{G6 as V,p6 as z}from"./cli-0.1.11-d10nfa6g.mjs";import{Oea as y,Pea as Q}from"./cli-0.1.11-7qpnfx56.mjs";import{Rna as N}from"./cli-0.1.11-yrfxpjhr.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
- export{P as Gh,_ as Hh};
@@ -1,2 +0,0 @@
1
- import{Hna as p}from"./cli-0.1.11-10nmrfsz.mjs";import{Lna as a}from"./cli-0.1.11-n23d2wej.mjs";import{Pna as i}from"./cli-0.1.11-yrfxpjhr.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
- export{u as H5};
@@ -1,2 +0,0 @@
1
- import{nK as U,oK as S,pK as j,qK as Q,rK as D,sK as x,tK as l,xK as i,yK as u}from"./cli-0.1.11-s8ygndzf.mjs";import{GS as K,HS as n}from"./cli-0.1.11-h02tyg8p.mjs";import{DU as p,EU as o,QU as w,SU as Z,eT as d1,kV as V,vV as k}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as c}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as C}from"./cli-0.1.11-x37jysc0.mjs";import{Nna as _,Rna as q}from"./cli-0.1.11-yrfxpjhr.mjs";function t(M){if(M.ctrl&&(M.key==="k"||M.key==="u"||M.key==="w"))return!0;if(M.meta&&M.key==="backspace")return!0;return!1}function r(M){return(M.ctrl||M.meta)&&M.key==="y"}function $1({isActive:M,onExit:b,onCancel:$,onExitUp:g,columns:H,passthroughCtrlKeys:P=[],initialQuery:L="",backspaceExitsOnEmpty:z=!0}){let{columns:v}=K(),A=H??v,[J,G]=Y.useState(L),[m,B]=Y.useState(L.length),R=Y.useCallback((d)=>{G(d),B(d.length)},[]),I=(d)=>{if(!M)return;let F=i.fromText(J,A,m);if(d.ctrl&&P.includes(d.key.toLowerCase()))return;if(!t(d))j();if(!r(d))l();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),g)g();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(J.length>0)G(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:W}=F.deleteWordBefore();U(W,"prepend"),G(X.text),B(X.offset);return}if(J.length===0){if(z)($??b)();return}let T=F.backspace();G(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();G(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(J.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(J.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(J.length===0){($??b)();return}let T=F.del();G(T.text),B(T.offset);return}case"h":{if(J.length===0){if(z)($??b)();return}let T=F.backspace();G(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();U(X,"append"),G(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();U(X,"prepend"),G(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();U(X,"prepend"),G(T.text),B(T.offset);return}case"y":{let T=S();if(T.length>0){let X=F.offset,W=F.insert(T);Q(X,T.length),G(W.text),B(W.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();G(T.text),B(T.offset);return}case"y":{let T=D();if(T){let{text:X,start:W,length:N}=T,y=J.slice(0,W),E=J.slice(W+N),f=y+X+E,a=W+X.length;x(X.length),G(f),B(a)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!s.has(d.key)){d.preventDefault();let T=F.insert(d.key);G(T.text),B(T.offset)}};return V((d,F,T)=>{I(new p(T.keypress))},{isActive:M}),{query:J,setQuery:R,cursorOffset:m,handleKeyDown:I}}var Y,s;var e=q(()=>{o();k();u();n();Y=_(C(),1);s=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});function J1(M){let b=O.c(17),{query:$,placeholder:g,isFocused:H,isTerminalFocused:P,prefix:L,width:z,cursorOffset:v,borderless:A}=M,J=g===void 0?"Search…":g,G=L===void 0?"⌕":L,m=A===void 0?!1:A,B=v??$.length,R=m?void 0:"round",I=H?"suggestion":void 0,d=!H,F=m?0:1,T=!H,X;if(b[0]!==H||b[1]!==P||b[2]!==B||b[3]!==J||b[4]!==$)X=H?h.jsxDEV(h.Fragment,{children:$?P?h.jsxDEV(h.Fragment,{children:[h.jsxDEV(Z,{children:$.slice(0,B)},void 0,!1,void 0,this),h.jsxDEV(Z,{inverse:!0,children:B<$.length?$[B]:" "},void 0,!1,void 0,this),B<$.length&&h.jsxDEV(Z,{children:$.slice(B+1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):h.jsxDEV(Z,{children:$},void 0,!1,void 0,this):P?h.jsxDEV(h.Fragment,{children:[h.jsxDEV(Z,{inverse:!0,children:J.charAt(0)},void 0,!1,void 0,this),h.jsxDEV(Z,{dimColor:!0,children:J.slice(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):h.jsxDEV(Z,{dimColor:!0,children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this):$?h.jsxDEV(Z,{children:$},void 0,!1,void 0,this):h.jsxDEV(Z,{children:J},void 0,!1,void 0,this),b[0]=H,b[1]=P,b[2]=B,b[3]=J,b[4]=$,b[5]=X;else X=b[5];let W;if(b[6]!==G||b[7]!==T||b[8]!==X)W=h.jsxDEV(Z,{dimColor:T,children:[G," ",X]},void 0,!0,void 0,this),b[6]=G,b[7]=T,b[8]=X,b[9]=W;else W=b[9];let N;if(b[10]!==W||b[11]!==R||b[12]!==I||b[13]!==d||b[14]!==F||b[15]!==z)N=h.jsxDEV(w,{flexShrink:0,borderStyle:R,borderColor:I,borderDimColor:d,paddingX:F,width:z,children:W},void 0,!1,void 0,this),b[10]=W,b[11]=R,b[12]=I,b[13]=d,b[14]=F,b[15]=z,b[16]=N;else N=b[16];return N}var O,h;var T1=q(()=>{k();O=_(d1(),1),h=_(c(),1)});
2
- export{J1 as Kf,T1 as Lf,$1 as Mf,e as Nf};