@claudiolabs/claudio 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (652) hide show
  1. package/bin/claudio +7 -0
  2. package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +1 -0
  3. package/dist/chunks/App-0.1.13-45tpe56w.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +1 -0
  5. package/dist/chunks/{AssistantSessionChooser-0.1.11-kb5jvw8n.mjs → AssistantSessionChooser-0.1.13-tcg2ckh4.mjs} +1 -1
  6. package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.13-3a9b1b48.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +1 -0
  15. package/dist/chunks/{InProcessTransport-0.1.11-xecmx0sw.mjs → InProcessTransport-0.1.13-k5mkjvww.mjs} +1 -1
  16. package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +1 -0
  23. package/dist/chunks/{SnapshotUpdateDialog-0.1.11-h881m192.mjs → SnapshotUpdateDialog-0.1.13-has41zv0.mjs} +1 -1
  24. package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +1 -0
  32. package/dist/chunks/agents-0.1.13-a0aj4df9.mjs +111 -0
  33. package/dist/chunks/agents-0.1.13-phdd6357.mjs +3 -0
  34. package/dist/chunks/api-0.1.13-vmdan95h.mjs +1 -0
  35. package/dist/chunks/{asciicast-0.1.11-7mkaazy8.mjs → asciicast-0.1.13-d6ce2h4r.mjs} +1 -1
  36. package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +1 -0
  37. package/dist/chunks/{auth-0.1.11-p47wajra.mjs → auth-0.1.13-fwdmg15h.mjs} +1 -1
  38. package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +1 -0
  39. package/dist/chunks/{autoMode-0.1.11-nv8vsag0.mjs → autoMode-0.1.13-4xh49kt4.mjs} +1 -1
  40. package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +1 -0
  41. package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +4 -0
  42. package/dist/chunks/{bridgePointer-0.1.11-wr8dfs91.mjs → bridgePointer-0.1.13-s1qw0857.mjs} +1 -1
  43. package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +1 -0
  44. package/dist/chunks/{buddy-0.1.11-gsj76spy.mjs → buddy-0.1.13-2wvpbqx1.mjs} +1 -1
  45. package/dist/chunks/{cacache-0.1.11-wtz0ca19.mjs → cacache-0.1.13-sy5bqn6j.mjs} +1 -1
  46. package/dist/chunks/{cache-probe-0.1.11-pgsemwpr.mjs → cache-probe-0.1.13-ze8mf958.mjs} +1 -1
  47. package/dist/chunks/{cacheStats-0.1.11-1zqq6pm7.mjs → cacheStats-0.1.13-jtrw4rdj.mjs} +1 -1
  48. package/dist/chunks/caches-0.1.13-0swwryxr.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +1 -0
  50. package/dist/chunks/{chromeNativeHost-0.1.11-m5kskzjw.mjs → chromeNativeHost-0.1.13-96ex7t46.mjs} +1 -1
  51. package/dist/chunks/{claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs → claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs} +1 -1
  52. package/dist/chunks/{claudeDesktop-0.1.11-zpdtj6k8.mjs → claudeDesktop-0.1.13-fs8rre9b.mjs} +1 -1
  53. package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +1 -0
  54. package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +1 -0
  56. package/dist/chunks/cli-0.1.13-00qdyz6f.mjs +3 -0
  57. package/dist/chunks/cli-0.1.13-0b728dvh.mjs +2 -0
  58. package/dist/chunks/{cli-0.1.11-4ggr81tw.mjs → cli-0.1.13-0gfnmq08.mjs} +2 -2
  59. package/dist/chunks/cli-0.1.13-0gyt273r.mjs +2 -0
  60. package/dist/chunks/cli-0.1.13-0hyneh5t.mjs +9 -0
  61. package/dist/chunks/{cli-0.1.11-rj68n2kw.mjs → cli-0.1.13-0p3b9j40.mjs} +2 -2
  62. package/dist/chunks/{cli-0.1.11-50naxqgt.mjs → cli-0.1.13-0xy8k6yv.mjs} +2 -2
  63. package/dist/chunks/{cli-0.1.11-yv5pfq6n.mjs → cli-0.1.13-0zpmhn2j.mjs} +2 -2
  64. package/dist/chunks/{cli-0.1.11-wc9bay3d.mjs → cli-0.1.13-13fh0g36.mjs} +2 -2
  65. package/dist/chunks/{cli-0.1.11-vq5fvf9m.mjs → cli-0.1.13-144gn3fd.mjs} +3 -3
  66. package/dist/chunks/{cli-0.1.11-d3exw047.mjs → cli-0.1.13-1g6bgaa6.mjs} +2 -2
  67. package/dist/chunks/{cli-0.1.11-nhwmv5g6.mjs → cli-0.1.13-1gbn4dgj.mjs} +1 -1
  68. package/dist/chunks/{cli-0.1.11-rj9ea3zn.mjs → cli-0.1.13-1hw65avy.mjs} +2 -2
  69. package/dist/chunks/cli-0.1.13-1pxg82cx.mjs +2 -0
  70. package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +2 -0
  71. package/dist/chunks/{cli-0.1.11-852v06g0.mjs → cli-0.1.13-2c7g6rpx.mjs} +2 -2
  72. package/dist/chunks/{cli-0.1.11-h2hxx8ma.mjs → cli-0.1.13-2cdtdhek.mjs} +5 -5
  73. package/dist/chunks/{cli-0.1.11-t07hba0z.mjs → cli-0.1.13-2sx61wcx.mjs} +1 -1
  74. package/dist/chunks/{cli-0.1.11-16086k9e.mjs → cli-0.1.13-2vrh3n9y.mjs} +2 -2
  75. package/dist/chunks/{cli-0.1.11-70f778wy.mjs → cli-0.1.13-30j4h365.mjs} +2 -2
  76. package/dist/chunks/{cli-0.1.11-7tybqg56.mjs → cli-0.1.13-3k1n20ra.mjs} +1 -1
  77. package/dist/chunks/{cli-0.1.11-y909w8bb.mjs → cli-0.1.13-3pctg5zc.mjs} +1 -1
  78. package/dist/chunks/{cli-0.1.11-dpfxvfty.mjs → cli-0.1.13-3rr4fg79.mjs} +2 -2
  79. package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +2 -0
  80. package/dist/chunks/{cli-0.1.11-fstfs72j.mjs → cli-0.1.13-4prgqshq.mjs} +2 -2
  81. package/dist/chunks/{cli-0.1.11-5hs4xyjq.mjs → cli-0.1.13-5061js0h.mjs} +2 -2
  82. package/dist/chunks/{cli-0.1.11-rrnr3ab1.mjs → cli-0.1.13-52f40ba4.mjs} +2 -2
  83. package/dist/chunks/cli-0.1.13-579v6j6d.mjs +4 -0
  84. package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +2 -0
  85. package/dist/chunks/{cli-0.1.11-v6kwgrqc.mjs → cli-0.1.13-5c4fyghf.mjs} +2 -2
  86. package/dist/chunks/{cli-0.1.11-hmfevmz1.mjs → cli-0.1.13-5d4ke9a2.mjs} +2 -2
  87. package/dist/chunks/cli-0.1.13-5j5bg3t2.mjs +2 -0
  88. package/dist/chunks/{cli-0.1.11-p22bdjhv.mjs → cli-0.1.13-5krmz4nd.mjs} +2 -2
  89. package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +2 -0
  90. package/dist/chunks/{cli-0.1.11-r990p54m.mjs → cli-0.1.13-5s4m8qj9.mjs} +5 -5
  91. package/dist/chunks/{cli-0.1.11-b0jasw23.mjs → cli-0.1.13-5ydypzty.mjs} +3 -3
  92. package/dist/chunks/cli-0.1.13-6gmqjyv9.mjs +2 -0
  93. package/dist/chunks/cli-0.1.13-6p0jxfnp.mjs +2 -0
  94. package/dist/chunks/cli-0.1.13-6q3wa261.mjs +2 -0
  95. package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +3 -0
  96. package/dist/chunks/{cli-0.1.11-chnrb9xx.mjs → cli-0.1.13-73yztj5x.mjs} +1 -1
  97. package/dist/chunks/cli-0.1.13-79vtnprb.mjs +2 -0
  98. package/dist/chunks/cli-0.1.13-84tbx1nf.mjs +3 -0
  99. package/dist/chunks/{cli-0.1.11-21epc92q.mjs → cli-0.1.13-85w0nxy9.mjs} +2 -2
  100. package/dist/chunks/{cli-0.1.11-8qrhqvh5.mjs → cli-0.1.13-87xfe2f3.mjs} +2 -2
  101. package/dist/chunks/{cli-0.1.11-bwpemkht.mjs → cli-0.1.13-8gd1x101.mjs} +2 -2
  102. package/dist/chunks/{cli-0.1.11-e5ecf583.mjs → cli-0.1.13-8ppsn0an.mjs} +2 -2
  103. package/dist/chunks/{cli-0.1.11-ft47r1wq.mjs → cli-0.1.13-8pw4n94k.mjs} +2 -2
  104. package/dist/chunks/{cli-0.1.11-tvfkn5mh.mjs → cli-0.1.13-8snyqhjj.mjs} +2 -2
  105. package/dist/chunks/{cli-0.1.11-v8j5bkfs.mjs → cli-0.1.13-8sszxge2.mjs} +1 -1
  106. package/dist/chunks/cli-0.1.13-9043n2e8.mjs +2 -0
  107. package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +2 -0
  108. package/dist/chunks/{cli-0.1.11-mj78w4sp.mjs → cli-0.1.13-9a1hzdsv.mjs} +2 -2
  109. package/dist/chunks/cli-0.1.13-9jajvw4r.mjs +2 -0
  110. package/dist/chunks/cli-0.1.13-a4xga299.mjs +50 -0
  111. package/dist/chunks/cli-0.1.13-ajsw8n7h.mjs +5 -0
  112. package/dist/chunks/cli-0.1.13-apjxy5tn.mjs +2 -0
  113. package/dist/chunks/{cli-0.1.11-0tge574q.mjs → cli-0.1.13-asrdd8dh.mjs} +2 -2
  114. package/dist/chunks/cli-0.1.13-b24n1wvw.mjs +2 -0
  115. package/dist/chunks/{cli-0.1.11-2w8d5vqb.mjs → cli-0.1.13-b3xc1r3k.mjs} +2 -2
  116. package/dist/chunks/cli-0.1.13-b40skdsz.mjs +2 -0
  117. package/dist/chunks/{cli-0.1.11-yrfxpjhr.mjs → cli-0.1.13-bj67mp7n.mjs} +1 -1
  118. package/dist/chunks/{cli-0.1.11-dcswnc8x.mjs → cli-0.1.13-bkg3sva7.mjs} +2 -2
  119. package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +16 -0
  120. package/dist/chunks/{cli-0.1.11-qrq0sw0h.mjs → cli-0.1.13-c5b4ygdq.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.11-jj3s3dxd.mjs → cli-0.1.13-cjmpc9q5.mjs} +2 -2
  122. package/dist/chunks/cli-0.1.13-ck28msre.mjs +2 -0
  123. package/dist/chunks/cli-0.1.13-crcgrfse.mjs +2 -0
  124. package/dist/chunks/{cli-0.1.11-t7dc7fbj.mjs → cli-0.1.13-ct9m5223.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.11-ctjvkg5k.mjs → cli-0.1.13-ctjpk124.mjs} +2 -2
  126. package/dist/chunks/{cli-0.1.11-1xr9et85.mjs → cli-0.1.13-cyj5snev.mjs} +2 -2
  127. package/dist/chunks/{cli-0.1.11-5hrysrcd.mjs → cli-0.1.13-d66pryf3.mjs} +1 -1
  128. package/dist/chunks/{cli-0.1.11-h762f6hr.mjs → cli-0.1.13-d6tr2j76.mjs} +2 -2
  129. package/dist/chunks/cli-0.1.13-d85aba8r.mjs +2 -0
  130. package/dist/chunks/cli-0.1.13-d8wkcw90.mjs +25 -0
  131. package/dist/chunks/{cli-0.1.11-v7bwjqf0.mjs → cli-0.1.13-dag38tkx.mjs} +55 -55
  132. package/dist/chunks/{cli-0.1.11-jye250b3.mjs → cli-0.1.13-dak36ez8.mjs} +1 -1
  133. package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +2 -0
  134. package/dist/chunks/cli-0.1.13-dmgp48vg.mjs +2 -0
  135. package/dist/chunks/cli-0.1.13-e58n0k16.mjs +2 -0
  136. package/dist/chunks/cli-0.1.13-eh7dqeqt.mjs +2 -0
  137. package/dist/chunks/{cli-0.1.11-d4ahh3jz.mjs → cli-0.1.13-f6gfa426.mjs} +2 -2
  138. package/dist/chunks/{cli-0.1.11-pr9jdfxt.mjs → cli-0.1.13-fabrrwqa.mjs} +1 -1
  139. package/dist/chunks/cli-0.1.13-fh5dndvp.mjs +5043 -0
  140. package/dist/chunks/{cli-0.1.11-cezypfbt.mjs → cli-0.1.13-ft5k86va.mjs} +2 -2
  141. package/dist/chunks/{cli-0.1.11-hgsa4nnp.mjs → cli-0.1.13-fwd5b6q8.mjs} +1 -1
  142. package/dist/chunks/{cli-0.1.11-jkrt4znb.mjs → cli-0.1.13-fz5dm31h.mjs} +2 -2
  143. package/dist/chunks/cli-0.1.13-fzb4yx18.mjs +24 -0
  144. package/dist/chunks/{cli-0.1.11-g2202evh.mjs → cli-0.1.13-g2v4avcv.mjs} +1 -1
  145. package/dist/chunks/cli-0.1.13-g654740k.mjs +2 -0
  146. package/dist/chunks/{cli-0.1.11-w3trj52p.mjs → cli-0.1.13-ga4mmwbc.mjs} +2 -2
  147. package/dist/chunks/{cli-0.1.11-nx8a99hz.mjs → cli-0.1.13-gd3nndc7.mjs} +2 -2
  148. package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +2 -0
  149. package/dist/chunks/{cli-0.1.11-z4hb2mcd.mjs → cli-0.1.13-gvz2qezh.mjs} +2 -2
  150. package/dist/chunks/cli-0.1.13-h3vb5402.mjs +2 -0
  151. package/dist/chunks/{cli-0.1.11-qpzn4q17.mjs → cli-0.1.13-h7a36dnk.mjs} +2 -2
  152. package/dist/chunks/cli-0.1.13-hgkwnhwv.mjs +2 -0
  153. package/dist/chunks/cli-0.1.13-hjqn3n5a.mjs +59 -0
  154. package/dist/chunks/cli-0.1.13-hyvpn2ht.mjs +45 -0
  155. package/dist/chunks/{cli-0.1.11-jjgjkqqv.mjs → cli-0.1.13-hzdj03rn.mjs} +2 -2
  156. package/dist/chunks/{cli-0.1.11-91mf8dfr.mjs → cli-0.1.13-j7796v8f.mjs} +2 -2
  157. package/dist/chunks/{cli-0.1.11-z62s8qx1.mjs → cli-0.1.13-jakv6e7b.mjs} +1 -1
  158. package/dist/chunks/{cli-0.1.11-6r97rwda.mjs → cli-0.1.13-jeyjdb2m.mjs} +2 -2
  159. package/dist/chunks/{cli-0.1.11-h7e4rkwk.mjs → cli-0.1.13-jz57znb6.mjs} +2 -2
  160. package/dist/chunks/{cli-0.1.11-sma2xhvv.mjs → cli-0.1.13-ks4x4cct.mjs} +2 -2
  161. package/dist/chunks/cli-0.1.13-ky4z1s1h.mjs +20 -0
  162. package/dist/chunks/{cli-0.1.11-ek6mck0j.mjs → cli-0.1.13-kzn9sspk.mjs} +1 -1
  163. package/dist/chunks/{cli-0.1.11-fs3d0ajf.mjs → cli-0.1.13-m5aaczvd.mjs} +1 -1
  164. package/dist/chunks/{cli-0.1.11-p4eeg584.mjs → cli-0.1.13-m61dhxfs.mjs} +2 -2
  165. package/dist/chunks/{cli-0.1.11-7vz357wm.mjs → cli-0.1.13-mahtf0ay.mjs} +2 -2
  166. package/dist/chunks/cli-0.1.13-mezw1vk8.mjs +18 -0
  167. package/dist/chunks/{cli-0.1.11-egck69w4.mjs → cli-0.1.13-mkw72mxc.mjs} +2 -2
  168. package/dist/chunks/{cli-0.1.11-q58q9jqr.mjs → cli-0.1.13-myd004mr.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.13-mywk7e49.mjs +134 -0
  170. package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +2 -0
  171. package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +2 -0
  172. package/dist/chunks/cli-0.1.13-nc3ce357.mjs +2 -0
  173. package/dist/chunks/{cli-0.1.11-kghg51gb.mjs → cli-0.1.13-nc8ww3rn.mjs} +2 -2
  174. package/dist/chunks/{cli-0.1.11-rvk3t45h.mjs → cli-0.1.13-njvp7vtc.mjs} +2 -2
  175. package/dist/chunks/cli-0.1.13-nsbk0w3b.mjs +2 -0
  176. package/dist/chunks/{cli-0.1.11-jr50ahcv.mjs → cli-0.1.13-nwt2jc8b.mjs} +2 -2
  177. package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.11-56bdg2vw.mjs → cli-0.1.13-p2wyk6z7.mjs} +1 -1
  179. package/dist/chunks/{cli-0.1.11-h7phna9g.mjs → cli-0.1.13-p4nz8zmd.mjs} +1 -1
  180. package/dist/chunks/cli-0.1.13-p625yxtg.mjs +2 -0
  181. package/dist/chunks/{cli-0.1.11-96y2d09c.mjs → cli-0.1.13-p84ry3q5.mjs} +1 -1
  182. package/dist/chunks/{cli-0.1.11-1bryv90w.mjs → cli-0.1.13-pqk4c7m7.mjs} +2 -2
  183. package/dist/chunks/{cli-0.1.11-7qpnfx56.mjs → cli-0.1.13-pw5dks39.mjs} +2 -2
  184. package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +833 -0
  185. package/dist/chunks/{cli-0.1.11-y4c6y87y.mjs → cli-0.1.13-qdtwrf9z.mjs} +2 -2
  186. package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +2 -0
  187. package/dist/chunks/{cli-0.1.11-fptq9w4t.mjs → cli-0.1.13-r09724ac.mjs} +1 -1
  188. package/dist/chunks/{cli-0.1.11-5vqj6k7m.mjs → cli-0.1.13-rftgy1b8.mjs} +2 -2
  189. package/dist/chunks/cli-0.1.13-rjjyq9ej.mjs +2 -0
  190. package/dist/chunks/{cli-0.1.11-gdcvfp9f.mjs → cli-0.1.13-rkaxch5j.mjs} +2 -2
  191. package/dist/chunks/cli-0.1.13-s6w3ej6f.mjs +3 -0
  192. package/dist/chunks/cli-0.1.13-s90a26ca.mjs +2 -0
  193. package/dist/chunks/cli-0.1.13-s928gjab.mjs +5 -0
  194. package/dist/chunks/{cli-0.1.11-7mmhsc3x.mjs → cli-0.1.13-s9fgd2dx.mjs} +2 -2
  195. package/dist/chunks/{cli-0.1.11-3p2f194m.mjs → cli-0.1.13-saz6qetz.mjs} +2 -2
  196. package/dist/chunks/{cli-0.1.11-weav8142.mjs → cli-0.1.13-sgxk7d0h.mjs} +2 -2
  197. package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +2 -0
  198. package/dist/chunks/{cli-0.1.11-6vqzqsdj.mjs → cli-0.1.13-ss1k5gqk.mjs} +2 -2
  199. package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +4 -0
  200. package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +2 -0
  201. package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +2 -0
  202. package/dist/chunks/{cli-0.1.11-w3fp9par.mjs → cli-0.1.13-t5w452fj.mjs} +1 -1
  203. package/dist/chunks/cli-0.1.13-tknwgkgp.mjs +17 -0
  204. package/dist/chunks/{cli-0.1.11-hhs8ke9g.mjs → cli-0.1.13-tq3dqmem.mjs} +2 -2
  205. package/dist/chunks/{cli-0.1.11-h3jatwe1.mjs → cli-0.1.13-v1b9yhsy.mjs} +1 -1
  206. package/dist/chunks/{cli-0.1.11-mstxxz33.mjs → cli-0.1.13-v32xwe08.mjs} +2 -2
  207. package/dist/chunks/{cli-0.1.11-sqqzwx4h.mjs → cli-0.1.13-v467fj8c.mjs} +2 -2
  208. package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +2 -0
  209. package/dist/chunks/{cli-0.1.11-s6yfjcm5.mjs → cli-0.1.13-v6z41645.mjs} +2 -2
  210. package/dist/chunks/cli-0.1.13-vdz792pb.mjs +2 -0
  211. package/dist/chunks/{cli-0.1.11-anvzywg4.mjs → cli-0.1.13-vj532g9m.mjs} +1 -1
  212. package/dist/chunks/{cli-0.1.11-anegs86e.mjs → cli-0.1.13-vn7ckv16.mjs} +1 -1
  213. package/dist/chunks/cli-0.1.13-vwt4hc0t.mjs +2 -0
  214. package/dist/chunks/{cli-0.1.11-bbx2h4x9.mjs → cli-0.1.13-w08qr05m.mjs} +2 -2
  215. package/dist/chunks/cli-0.1.13-w8h6wdez.mjs +2 -0
  216. package/dist/chunks/{cli-0.1.11-d10nfa6g.mjs → cli-0.1.13-wh68ve92.mjs} +2 -2
  217. package/dist/chunks/{cli-0.1.11-bqpcwywz.mjs → cli-0.1.13-wpsqhe6v.mjs} +2 -2
  218. package/dist/chunks/{cli-0.1.11-424zgj5k.mjs → cli-0.1.13-wr0c9hyh.mjs} +2 -2
  219. package/dist/chunks/{cli-0.1.11-7xr2ermy.mjs → cli-0.1.13-wwnez3j0.mjs} +2 -2
  220. package/dist/chunks/{cli-0.1.11-6zkfmcxp.mjs → cli-0.1.13-wxdmc1dd.mjs} +2 -2
  221. package/dist/chunks/{cli-0.1.11-0n77qn68.mjs → cli-0.1.13-wz7v1tqx.mjs} +2 -2
  222. package/dist/chunks/{cli-0.1.11-n24p2y0p.mjs → cli-0.1.13-x3zt8q8r.mjs} +1 -1
  223. package/dist/chunks/{cli-0.1.11-05ngjm8p.mjs → cli-0.1.13-x461rxn2.mjs} +2 -2
  224. package/dist/chunks/cli-0.1.13-x4n4my99.mjs +2 -0
  225. package/dist/chunks/{cli-0.1.11-ktwtyqmp.mjs → cli-0.1.13-xde08pkt.mjs} +2 -2
  226. package/dist/chunks/{cli-0.1.11-5e45zda5.mjs → cli-0.1.13-xkdwvsg9.mjs} +2 -2
  227. package/dist/chunks/{cli-0.1.11-98zcwng9.mjs → cli-0.1.13-xv6wh44y.mjs} +2 -2
  228. package/dist/chunks/{cli-0.1.11-3tqzgd9f.mjs → cli-0.1.13-xvvtja1h.mjs} +2 -2
  229. package/dist/chunks/cli-0.1.13-xwkys72y.mjs +12 -0
  230. package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +4 -0
  231. package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +2 -0
  232. package/dist/chunks/{cli-0.1.11-be28ty4m.mjs → cli-0.1.13-y7aqqca1.mjs} +1 -1
  233. package/dist/chunks/{cli-0.1.11-zb2sa3e2.mjs → cli-0.1.13-yd536yw4.mjs} +7 -10
  234. package/dist/chunks/{cli-0.1.11-zfnmx1ny.mjs → cli-0.1.13-yeb03vme.mjs} +2 -2
  235. package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +2 -0
  236. package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +2 -0
  237. package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +2 -0
  238. package/dist/chunks/cli-0.1.13-z387wpj9.mjs +2 -0
  239. package/dist/chunks/cli-0.1.13-zgnanj3x.mjs +12 -0
  240. package/dist/chunks/cli-0.1.13-zm2zgw7m.mjs +3 -0
  241. package/dist/chunks/cli-0.1.13-zmft0mps.mjs +2 -0
  242. package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +1 -0
  243. package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +1 -0
  244. package/dist/chunks/compact-0.1.13-603r2t03.mjs +3 -0
  245. package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +1 -0
  246. package/dist/chunks/{config-0.1.11-cqy7fnab.mjs → config-0.1.13-q8fcew9w.mjs} +1 -1
  247. package/dist/chunks/context-0.1.13-5fz212w3.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +1 -0
  249. package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +1 -0
  250. package/dist/chunks/copy-0.1.13-03jy5tfn.mjs +9 -0
  251. package/dist/chunks/cost-0.1.13-zch21h6x.mjs +1 -0
  252. package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +1 -0
  253. package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +1 -0
  254. package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +1 -0
  255. package/dist/chunks/detection-0.1.13-k001d88v.mjs +1 -0
  256. package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +1 -0
  257. package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +1 -0
  258. package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +1 -0
  259. package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +8 -0
  260. package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +1 -0
  261. package/dist/chunks/environments-0.1.13-x1xw45es.mjs +1 -0
  262. package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +1 -0
  263. package/dist/chunks/export-0.1.13-sq3jk66f.mjs +2 -0
  264. package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +1 -0
  265. package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +1 -0
  266. package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +1 -0
  267. package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +14 -0
  268. package/dist/chunks/{firstPartyEventLogger-0.1.11-y7qkhdj6.mjs → firstPartyEventLogger-0.1.13-6m3fvkcj.mjs} +1 -1
  269. package/dist/chunks/git-0.1.13-2rp45xgd.mjs +1 -0
  270. package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +1 -0
  271. package/dist/chunks/{growthbook-0.1.11-2w2b1mzd.mjs → growthbook-0.1.13-sramqmzv.mjs} +1 -1
  272. package/dist/chunks/{heapdump-0.1.11-b216wzt7.mjs → heapdump-0.1.13-3n7hv372.mjs} +1 -1
  273. package/dist/chunks/help-0.1.13-knrgw1dq.mjs +1 -0
  274. package/dist/chunks/{hookChains-0.1.11-jp8f82q7.mjs → hookChains-0.1.13-te9q466p.mjs} +2 -2
  275. package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +1 -0
  276. package/dist/chunks/hooks-0.1.13-g6kx1mk3.mjs +79 -0
  277. package/dist/chunks/ide-0.1.13-ke3v5mb7.mjs +3 -0
  278. package/dist/chunks/{image-processor-napi-0.1.11-dpg3ygnw.mjs → image-processor-napi-0.1.13-h7fg935p.mjs} +1 -1
  279. package/dist/chunks/{index-0.1.11-b2q967nq.mjs → index-0.1.13-018yhz6j.mjs} +1 -1
  280. package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +1 -0
  281. package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +1 -0
  282. package/dist/chunks/{index-0.1.11-wbhj1ny7.mjs → index-0.1.13-3zjrdjrv.mjs} +1 -1
  283. package/dist/chunks/index-0.1.13-4cjfx282.mjs +1 -0
  284. package/dist/chunks/index-0.1.13-5g9shrc4.mjs +9 -0
  285. package/dist/chunks/index-0.1.13-7c5y7cbf.mjs +2 -0
  286. package/dist/chunks/index-0.1.13-7fm7tk25.mjs +1 -0
  287. package/dist/chunks/index-0.1.13-98j8cxkv.mjs +1 -0
  288. package/dist/chunks/index-0.1.13-9meb2pab.mjs +1 -0
  289. package/dist/chunks/index-0.1.13-a06q9ad9.mjs +2 -0
  290. package/dist/chunks/index-0.1.13-bc4sh2m1.mjs +1 -0
  291. package/dist/chunks/index-0.1.13-c29wq5dx.mjs +5 -0
  292. package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +1 -0
  293. package/dist/chunks/index-0.1.13-h4wytk4z.mjs +1 -0
  294. package/dist/chunks/index-0.1.13-j9c4bjzh.mjs +1 -0
  295. package/dist/chunks/index-0.1.13-m9m61529.mjs +1 -0
  296. package/dist/chunks/index-0.1.13-mc5ag4wj.mjs +1 -0
  297. package/dist/chunks/index-0.1.13-nm8pkj0f.mjs +9 -0
  298. package/dist/chunks/index-0.1.13-psynrf7p.mjs +10 -0
  299. package/dist/chunks/index-0.1.13-qjt3h799.mjs +1 -0
  300. package/dist/chunks/index-0.1.13-tvt8fxrq.mjs +1 -0
  301. package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +1 -0
  302. package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +1 -0
  303. package/dist/chunks/{insights-0.1.11-4yjg2bxs.mjs → insights-0.1.13-t81417ej.mjs} +3 -3
  304. package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +1 -0
  305. package/dist/chunks/install-github-app-0.1.13-yvnx16za.mjs +149 -0
  306. package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +1 -0
  307. package/dist/chunks/instrumentation-0.1.13-bvt39wrk.mjs +12 -0
  308. package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +1 -0
  309. package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +2 -0
  310. package/dist/chunks/{knowledge-0.1.11-wpjw8ybd.mjs → knowledge-0.1.13-9a2md3fm.mjs} +1 -1
  311. package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +1 -0
  312. package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +1 -0
  313. package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +1 -0
  314. package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +1 -0
  315. package/dist/chunks/main-0.1.13-e5tbkphz.mjs +1 -0
  316. package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +1 -0
  317. package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +4 -0
  318. package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +1 -0
  319. package/dist/chunks/mcp-0.1.13-x9twbpqk.mjs +17 -0
  320. package/dist/chunks/{mcpServer-0.1.11-czg51mvy.mjs → mcpServer-0.1.13-jf5dhyys.mjs} +1 -1
  321. package/dist/chunks/{mcpb-0.1.11-czkze48a.mjs → mcpb-0.1.13-e55321kr.mjs} +1 -1
  322. package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +3 -0
  323. package/dist/chunks/mobile-0.1.13-pzekbte3.mjs +2 -0
  324. package/dist/chunks/model-0.1.13-a42465ep.mjs +1 -0
  325. package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +2 -0
  326. package/dist/chunks/{oauth-0.1.11-jkkd9wzq.mjs → oauth-0.1.13-bk91rvfd.mjs} +1 -1
  327. package/dist/chunks/{openaiShim-0.1.11-b9yqnc9c.mjs → openaiShim-0.1.13-c9z5r4zj.mjs} +2 -2
  328. package/dist/chunks/{output-style-0.1.11-zwxn1knb.mjs → output-style-0.1.13-c4ah6hc0.mjs} +1 -1
  329. package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +1 -0
  330. package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +1 -0
  331. package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +1 -0
  332. package/dist/chunks/permissions-0.1.13-c03934ka.mjs +3 -0
  333. package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +1 -0
  334. package/dist/chunks/{plist-0.1.11-0sn6nqv3.mjs → plist-0.1.13-f3bfg2tf.mjs} +1 -1
  335. package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +29 -0
  336. package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +1 -0
  337. package/dist/chunks/{plugins-0.1.11-t3pgcpcj.mjs → plugins-0.1.13-1nvjxkbc.mjs} +2 -2
  338. package/dist/chunks/{print-0.1.11-y9vz77h9.mjs → print-0.1.13-g2dmfpmq.mjs} +10 -10
  339. package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +1 -0
  340. package/dist/chunks/{process-0.1.11-s6jnx5xw.mjs → process-0.1.13-ycxbd26n.mjs} +1 -1
  341. package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +1 -0
  342. package/dist/chunks/processSlashCommand-0.1.13-16gwwvqz.mjs +9 -0
  343. package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +1 -0
  344. package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +1 -0
  345. package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +1 -0
  346. package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +2 -0
  347. package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +1 -0
  348. package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +1 -0
  349. package/dist/chunks/registry-0.1.13-e33aasxk.mjs +1 -0
  350. package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +5 -0
  351. package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +2 -0
  352. package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +1 -0
  353. package/dist/chunks/{remoteBridgeCore-0.1.11-hn821p07.mjs → remoteBridgeCore-0.1.13-sq5rr5x0.mjs} +1 -1
  354. package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +1 -0
  355. package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +1 -0
  356. package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +1 -0
  357. package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +2 -0
  358. package/dist/chunks/{rewind-0.1.11-t4mfk815.mjs → rewind-0.1.13-zxcfrje2.mjs} +1 -1
  359. package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +1 -0
  360. package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +1 -0
  361. package/dist/chunks/session-0.1.13-cjn060z1.mjs +2 -0
  362. package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +1 -0
  363. package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +1 -0
  364. package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +5 -0
  365. package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +1 -0
  366. package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +1 -0
  367. package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +1 -0
  368. package/dist/chunks/{state-0.1.11-3fjxywyv.mjs → state-0.1.13-cv8jd04r.mjs} +1 -1
  369. package/dist/chunks/{stats-0.1.11-hxzms6gg.mjs → stats-0.1.13-yrtt99gr.mjs} +6 -6
  370. package/dist/chunks/status-0.1.13-4x7h3dec.mjs +1 -0
  371. package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +1 -0
  372. package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +1 -0
  373. package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +1 -0
  374. package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +1 -0
  375. package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +1 -0
  376. package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +1 -0
  377. package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +1 -0
  378. package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +1 -0
  379. package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +1 -0
  380. package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +1 -0
  381. package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +1 -0
  382. package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +1 -0
  383. package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +1 -0
  384. package/dist/chunks/{turndown.cjs-0.1.11-brwqmyse.mjs → turndown.cjs-0.1.13-2wbn8j6y.mjs} +1 -1
  385. package/dist/chunks/ultrareviewCommand-0.1.13-sj6asgpk.mjs +4 -0
  386. package/dist/chunks/{update-0.1.11-p33kxpg4.mjs → update-0.1.13-sx7hc0kj.mjs} +11 -11
  387. package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +1 -0
  388. package/dist/chunks/{upstreamproxy-0.1.11-vk16qw88.mjs → upstreamproxy-0.1.13-pwxv6kww.mjs} +1 -1
  389. package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +1 -0
  390. package/dist/chunks/util-0.1.13-ef9r7w41.mjs +1 -0
  391. package/dist/chunks/utils-0.1.13-03dvz81t.mjs +1 -0
  392. package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +1 -0
  393. package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +1 -0
  394. package/dist/chunks/{wiki-0.1.11-v0twhcnn.mjs → wiki-0.1.13-regg8ff2.mjs} +1 -1
  395. package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +1 -0
  396. package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +1 -0
  397. package/dist/chunks/{wrapper-0.1.11-rt9xsnjh.mjs → wrapper-0.1.13-8nsef109.mjs} +1 -1
  398. package/dist/claudio-vscode.vsix +0 -0
  399. package/dist/cli.mjs +3 -3
  400. package/package.json +5 -19
  401. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
  402. package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
  403. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
  404. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
  405. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
  406. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
  407. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
  408. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
  409. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
  410. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
  411. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
  412. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
  413. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
  414. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
  415. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
  416. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
  417. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
  418. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
  419. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
  420. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
  421. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
  422. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
  423. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
  424. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
  425. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
  426. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
  427. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
  428. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
  429. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
  430. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
  431. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
  432. package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
  433. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
  434. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
  435. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
  436. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
  437. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
  438. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
  439. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
  440. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
  441. package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
  442. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
  443. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
  444. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
  445. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
  446. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
  447. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
  448. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
  449. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
  450. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
  451. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
  452. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
  453. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
  454. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
  455. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
  456. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
  457. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
  458. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
  459. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
  460. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
  461. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
  462. package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
  463. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
  464. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
  465. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
  466. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
  467. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
  468. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
  469. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
  470. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
  471. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
  472. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
  473. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
  474. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
  475. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
  476. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
  477. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
  478. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
  479. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
  480. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
  481. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
  482. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
  483. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
  484. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
  485. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
  486. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
  487. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
  488. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
  489. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
  490. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
  491. package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
  492. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
  493. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
  494. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
  495. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
  496. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
  497. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
  498. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
  499. package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
  500. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
  501. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
  502. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
  503. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
  504. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
  505. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
  506. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
  507. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
  508. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
  509. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
  510. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
  511. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
  512. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
  513. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
  514. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
  515. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
  516. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
  517. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
  518. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
  519. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
  520. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
  521. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
  522. package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
  523. package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
  524. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
  525. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
  526. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
  527. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
  528. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
  529. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
  530. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
  531. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
  532. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
  533. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
  534. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
  535. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
  536. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
  537. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
  538. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
  539. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
  540. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
  541. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
  542. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
  543. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
  544. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
  545. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
  546. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
  547. package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
  548. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
  549. package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
  550. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
  551. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
  552. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
  553. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
  554. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
  555. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
  556. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
  557. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
  558. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
  559. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
  560. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
  561. package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
  562. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
  563. package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
  564. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
  565. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
  566. package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
  567. package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
  568. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
  569. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
  570. package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
  571. package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
  572. package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
  573. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
  574. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
  575. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
  576. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
  577. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
  578. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
  579. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
  580. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
  581. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
  582. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
  583. package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
  584. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
  585. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
  586. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
  587. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
  588. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
  589. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
  590. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
  591. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
  592. package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
  593. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
  594. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
  595. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
  596. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
  597. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
  598. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
  599. package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
  600. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
  601. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
  602. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
  603. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
  604. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
  605. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
  606. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
  607. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
  608. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
  609. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
  610. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
  611. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
  612. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
  613. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
  614. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
  615. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
  616. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
  617. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
  618. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
  619. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
  620. package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
  621. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
  622. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
  623. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
  624. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
  625. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
  626. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
  627. package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
  628. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
  629. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
  630. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
  631. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
  632. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
  633. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
  634. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
  635. package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
  636. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
  637. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
  638. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
  639. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
  640. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
  641. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
  642. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
  643. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
  644. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
  645. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
  646. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
  647. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
  648. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
  649. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
  650. /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.13-fdmvysv0.mjs} +0 -0
  651. /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.13-gs7rcvne.mjs} +0 -0
  652. /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.13-m5c2efjx.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Xna as q}from"./cli-0.1.13-bj67mp7n.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
+ export{x as Wc,y as Xc,w as Yc};
@@ -1,6 +1,6 @@
1
- import{Rna as j}from"./cli-0.1.11-yrfxpjhr.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
1
+ import{Xna as j}from"./cli-0.1.13-bj67mp7n.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
2
  `:`
3
3
  `)+z,H=D+1,D=q.indexOf(`
4
4
  `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
5
  `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
- export{o as D5,O1 as E5,e as F5};
6
+ export{o as L5,O1 as M5,e as N5};
@@ -0,0 +1,2 @@
1
+ import{iK as C,lK as X}from"./cli-0.1.13-fh5dndvp.mjs";import{zX as W}from"./cli-0.1.13-79vtnprb.mjs";import{F3 as V,n3 as I,z3 as J}from"./cli-0.1.13-bzgpcgdt.mjs";import{Afa as T,ffa as H}from"./cli-0.1.13-rjjyq9ej.mjs";import{Tna as P,Xna as Q}from"./cli-0.1.13-bj67mp7n.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 _b,Y as $b};
@@ -1,4 +1,4 @@
1
- import{BE as S,HE as o,Pt as D,Tt as r,xE as F,yE as y}from"./cli-0.1.11-s8ygndzf.mjs";import{GU as z,HU as O,aU as A,bU as l}from"./cli-0.1.11-bvd2r7an.mjs";import{i8 as x,j8 as d,l8 as b,m8 as g}from"./cli-0.1.11-v7bwjqf0.mjs";import{Oga as k,Pga as p,Tga as L,Xga as c,bha as V,eha as I}from"./cli-0.1.11-vq5fvf9m.mjs";import{sna as T,tna as C}from"./cli-0.1.11-98zcwng9.mjs";import{Rna as w}from"./cli-0.1.11-yrfxpjhr.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
1
+ import{CE as F,DE as y,GE as S,ME as o,Ut as D,Yt as r}from"./cli-0.1.13-fh5dndvp.mjs";import{LU as z,MU as O,fU as A,gU as l}from"./cli-0.1.13-hjqn3n5a.mjs";import{v8 as x,w8 as d,y8 as b,z8 as g}from"./cli-0.1.13-dag38tkx.mjs";import{$ga as k,aha as p,eha as L,iha as c,oha as V,rha as I}from"./cli-0.1.13-144gn3fd.mjs";import{Fna as T,Gna as C}from"./cli-0.1.13-xv6wh44y.mjs";import{Xna as w}from"./cli-0.1.13-bj67mp7n.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
2
  `)&&!Q.endsWith(`
3
3
 
4
4
  `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
@@ -1,4 +1,4 @@
1
- import{cP as a,dP as E,fP as r,gP as o,hP as s,mP as GQ}from"./cli-0.1.11-1bryv90w.mjs";import{AX as t,yX as N}from"./cli-0.1.11-50naxqgt.mjs";import{c4 as U,d4 as I}from"./cli-0.1.11-qbcfg80y.mjs";import{C5 as KQ,v5 as n}from"./cli-0.1.11-b0jasw23.mjs";import{G6 as jQ,p6 as e}from"./cli-0.1.11-d10nfa6g.mjs";import{o7 as Y,q7 as h}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as u,ega as ZQ}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as H,Ega as i,Jga as F,Lga as k,Mga as R,Pga as y,bha as K,eha as b}from"./cli-0.1.11-vq5fvf9m.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();r();I();t();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=a(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}jQ();b();h();F();r();I();y();t();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
1
+ import{hP as a,iP as E,kP as r,lP as o,mP as s,rP as GQ}from"./cli-0.1.13-pqk4c7m7.mjs";import{GX as N,IX as t}from"./cli-0.1.13-0xy8k6yv.mjs";import{k4 as U,l4 as I}from"./cli-0.1.13-bzgpcgdt.mjs";import{D5 as n,K5 as KQ}from"./cli-0.1.13-5ydypzty.mjs";import{C6 as e,T6 as jQ}from"./cli-0.1.13-wh68ve92.mjs";import{B7 as Y,D7 as h}from"./cli-0.1.13-dag38tkx.mjs";import{qga as u,rga as ZQ}from"./cli-0.1.13-45hjhcbc.mjs";import{Qga as H,Rga as i,Wga as F,Yga as k,Zga as R,aha as y,oha as K,rha as b}from"./cli-0.1.13-144gn3fd.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();r();I();t();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=a(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}jQ();b();h();F();r();I();y();t();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
2
2
 
3
3
  `,Z))!==-1){let $=Q.slice(Z,z);if(Z=z+2,!$.trim())continue;let J={},G=!1;for(let X of $.split(`
4
4
  `)){if(X.startsWith(":")){G=!0;continue}let q=X.indexOf(":");if(q===-1)continue;let L=X.slice(0,q),O=X[q+1]===" "?X.slice(q+2):X.slice(q+1);switch(L){case"event":J.event=O;break;case"id":J.id=O;break;case"data":J.data=J.data?J.data+`
@@ -0,0 +1,2 @@
1
+ import{jT as O}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as X,yX as Q}from"./cli-0.1.13-ck28msre.mjs";import{zX as b}from"./cli-0.1.13-79vtnprb.mjs";import{Vba as W,gca as P}from"./cli-0.1.13-dag38tkx.mjs";import{Tna as U}from"./cli-0.1.13-bj67mp7n.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
+ export{V as Ta,C as Ua};
@@ -1,2 +1,2 @@
1
- import{Cba as L,Uba as G,Vba as h,Zba as v,_ba as P,bca as k,lca as f,zba as M}from"./cli-0.1.11-v7bwjqf0.mjs";import{Gea as E,Pea as x}from"./cli-0.1.11-7qpnfx56.mjs";import{fha as T,sha as u}from"./cli-0.1.11-d3exw047.mjs";import{Rna as C}from"./cli-0.1.11-yrfxpjhr.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudioMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudioMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudioMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
- export{Vj as Jb,Wj as Kb,e as Lb,Xj as Mb,Yj as Nb,jj as Ob};
1
+ import{Mba as M,Pba as L,fca as G,gca as h,kca as v,lca as P,oca as k,yca as f}from"./cli-0.1.13-dag38tkx.mjs";import{Tea as E,afa as x}from"./cli-0.1.13-pw5dks39.mjs";import{Lha as u,yha as T}from"./cli-0.1.13-1g6bgaa6.mjs";import{Xna as C}from"./cli-0.1.13-bj67mp7n.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudioMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudioMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudioMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as Gb,Wj as Hb,e as Ib,Xj as Jb,Yj as Kb,jj as Lb};
@@ -0,0 +1,2 @@
1
+ import{AV as k,XU as K,jT as Z}from"./cli-0.1.13-hjqn3n5a.mjs";import{xX as J,yX as H}from"./cli-0.1.13-ck28msre.mjs";import{Y7 as v,Z7 as Y}from"./cli-0.1.13-dag38tkx.mjs";import{Tna as V,Xna as X}from"./cli-0.1.13-bj67mp7n.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
+ export{N as Tf,C as Uf};
@@ -1,4 +1,4 @@
1
- import{H6 as F5,I6 as t4,J6 as G6,L6 as z6}from"./cli-0.1.11-h2hxx8ma.mjs";import{Nna as o1,Qna as T5,Rna as H}from"./cli-0.1.11-yrfxpjhr.mjs";function D0($,W){return function(){return $.apply(W,arguments)}}var Z1=()=>{};function R0($){return $!==null&&!F0($)&&$.constructor!==null&&!F0($.constructor)&&d($.constructor.isBuffer)&&$.constructor.isBuffer($)}function y2($){let W;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)W=ArrayBuffer.isView($);else W=$&&$.buffer&&n1($.buffer);return W}function c2(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function T0($,W,{allOwnKeys:G=!1}={}){if($===null||typeof $>"u")return;let Y,z;if(typeof $!=="object")$=[$];if(U0($))for(Y=0,z=$.length;Y<z;Y++)W.call(null,$[Y],Y,$);else{if(R0($))return;let Z=G?Object.getOwnPropertyNames($):Object.keys($),Q=Z.length,N;for(Y=0;Y<Q;Y++)N=Z[Y],W.call(null,$[N],N,$)}}function t1($,W){if(R0($))return null;W=W.toLowerCase();let G=Object.keys($),Y=G.length,z;while(Y-- >0)if(z=G[Y],W===z.toLowerCase())return z;return null}function N1(){let{caseless:$,skipUndefined:W}=a1(this)&&this||{},G={},Y=(z,Z)=>{if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return;let Q=$&&t1(G,Z)||Z;if(u0(G[Q])&&u0(z))G[Q]=N1(G[Q],z);else if(u0(z))G[Q]=N1({},z);else if(U0(z))G[Q]=z.slice();else if(!W||!F0(z))G[Q]=z};for(let z=0,Z=arguments.length;z<Z;z++)arguments[z]&&T0(arguments[z],Y);return G}function B5($){return!!($&&d($.append)&&$[p1]==="FormData"&&$[g0])}var k2,J1,g0,p1,d0,t=($)=>{return $=$.toLowerCase(),(W)=>d0(W)===$},c0=($)=>(W)=>typeof W===$,U0,F0,n1,x2,d,i1,O0=($)=>$!==null&&typeof $==="object",b2=($)=>$===!0||$===!1,u0=($)=>{if(d0($)!=="object")return!1;let W=J1($);return(W===null||W===Object.prototype||Object.getPrototypeOf(W)===null)&&!(p1 in $)&&!(g0 in $)},j2=($)=>{if(!O0($)||R0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(W){return!1}},m2,v2,h2=($)=>{return!!($&&typeof $.uri<"u")},f2=($)=>$&&typeof $.getParts<"u",u2,g2,d2=($)=>O0($)&&d($.pipe),d1,c1,l2=($)=>{let W;return $&&(c1&&$ instanceof c1||d($.append)&&((W=d0($))==="formdata"||W==="object"&&d($.toString)&&$.toString()==="[object FormData]"))},p2,n2,i2,t2,a2,s2=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},K0,a1=($)=>!F0($)&&$!==K0,r2=($,W,G,{allOwnKeys:Y}={})=>{return T0(W,(z,Z)=>{if(G&&d(z))Object.defineProperty($,Z,{value:D0(z,G),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,Z,{value:z,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Y}),$},o2=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},e2=($,W,G,Y)=>{$.prototype=Object.create(W.prototype,Y),Object.defineProperty($.prototype,"constructor",{value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{value:W.prototype}),G&&Object.assign($.prototype,G)},$5=($,W,G,Y)=>{let z,Z,Q,N={};if(W=W||{},$==null)return W;do{z=Object.getOwnPropertyNames($),Z=z.length;while(Z-- >0)if(Q=z[Z],(!Y||Y(Q,$,W))&&!N[Q])W[Q]=$[Q],N[Q]=!0;$=G!==!1&&J1($)}while($&&(!G||G($,W))&&$!==Object.prototype);return W},W5=($,W,G)=>{if($=String($),G===void 0||G>$.length)G=$.length;G-=W.length;let Y=$.indexOf(W,G);return Y!==-1&&Y===G},Y5=($)=>{if(!$)return null;if(U0($))return $;let W=$.length;if(!i1(W))return null;let G=Array(W);while(W-- >0)G[W]=$[W];return G},G5,z5=($,W)=>{let Y=($&&$[g0]).call($),z;while((z=Y.next())&&!z.done){let Z=z.value;W.call($,Z[0],Z[1])}},Q5=($,W)=>{let G,Y=[];while((G=$.exec(W))!==null)Y.push(G);return Y},X5,Z5=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(G,Y,z){return Y.toUpperCase()+z})},l1,N5,s1=($,W)=>{let G=Object.getOwnPropertyDescriptors($),Y={};T0(G,(z,Z)=>{let Q;if((Q=W(z,Z,$))!==!1)Y[Z]=Q||z}),Object.defineProperties($,Y)},J5=($)=>{s1($,(W,G)=>{if(d($)&&["arguments","caller","callee"].indexOf(G)!==-1)return!1;let Y=$[G];if(!d(Y))return;if(W.enumerable=!1,"writable"in W){W.writable=!1;return}if(!W.set)W.set=()=>{throw Error("Can not rewrite read-only method '"+G+"'")}})},M5=($,W)=>{let G={},Y=(z)=>{z.forEach((Z)=>{G[Z]=!0})};return U0($)?Y($):Y(String($).split(W)),G},K5=()=>{},I5=($,W)=>{return $!=null&&Number.isFinite($=+$)?$:W},L5=($)=>{let W=[,,,,,,,,,,],G=(Y,z)=>{if(O0(Y)){if(W.indexOf(Y)>=0)return;if(R0(Y))return Y;if(!("toJSON"in Y)){W[z]=Y;let Z=U0(Y)?[]:{};return T0(Y,(Q,N)=>{let I=G(Q,z+1);!F0(I)&&(Z[N]=I)}),W[z]=void 0,Z}}return Y};return G($,0)},V5,P5=($)=>$&&(O0($)||d($))&&d($.then)&&d($.catch),r1,w5,H5=($)=>$!=null&&d($[g0]),X;var O=H(()=>{Z1();({toString:k2}=Object.prototype),{getPrototypeOf:J1}=Object,{iterator:g0,toStringTag:p1}=Symbol,d0=(($)=>(W)=>{let G=k2.call(W);return $[G]||($[G]=G.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:U0}=Array,F0=c0("undefined");n1=t("ArrayBuffer");x2=c0("string"),d=c0("function"),i1=c0("number"),m2=t("Date"),v2=t("File"),u2=t("Blob"),g2=t("FileList");d1=c2(),c1=typeof d1.FormData<"u"?d1.FormData:void 0,p2=t("URLSearchParams"),[n2,i2,t2,a2]=["ReadableStream","Request","Response","Headers"].map(t);K0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();G5=(($)=>{return(W)=>{return $&&W instanceof $}})(typeof Uint8Array<"u"&&J1(Uint8Array)),X5=t("HTMLFormElement"),l1=(({hasOwnProperty:$})=>(W,G)=>$.call(W,G))(Object.prototype),N5=t("RegExp");V5=t("AsyncFunction"),r1=(($,W)=>{if($)return setImmediate;return W?((G,Y)=>{return K0.addEventListener("message",({source:z,data:Z})=>{if(z===K0&&Z===G)Y.length&&Y.shift()()},!1),(z)=>{Y.push(z),K0.postMessage(G,"*")}})(`axios@${Math.random()}`,[]):(G)=>setTimeout(G)})(typeof setImmediate==="function",d(K0.postMessage)),w5=typeof queueMicrotask<"u"?queueMicrotask.bind(K0):typeof process<"u"&&process.nextTick||r1,X={isArray:U0,isArrayBuffer:n1,isBuffer:R0,isFormData:l2,isArrayBufferView:y2,isString:x2,isNumber:i1,isBoolean:b2,isObject:O0,isPlainObject:u0,isEmptyObject:j2,isReadableStream:n2,isRequest:i2,isResponse:t2,isHeaders:a2,isUndefined:F0,isDate:m2,isFile:v2,isReactNativeBlob:h2,isReactNative:f2,isBlob:u2,isRegExp:N5,isFunction:d,isStream:d2,isURLSearchParams:p2,isTypedArray:G5,isFileList:g2,forEach:T0,merge:N1,extend:r2,trim:s2,stripBOM:o2,inherits:e2,toFlatObject:$5,kindOf:d0,kindOfTest:t,endsWith:W5,toArray:Y5,forEachEntry:z5,matchAll:Q5,isHTMLForm:X5,hasOwnProperty:l1,hasOwnProp:l1,reduceDescriptors:s1,freezeMethods:J5,toObjectSet:M5,toCamelCase:Z5,noop:K5,toFiniteNumber:I5,findKey:t1,global:K0,isContextDefined:a1,isSpecCompliantForm:B5,toJSONObject:L5,isAsyncFn:V5,isThenable:P5,setImmediate:r1,asap:w5,isIterable:H5}});var h,L;var l=H(()=>{O();h=class h extends Error{static from($,W,G,Y,z,Z){let Q=new h($.message,W||$.code,G,Y,z);if(Q.cause=$,Q.name=$.name,$.status!=null&&Q.status==null)Q.status=$.status;return Z&&Object.assign(Q,Z),Q}constructor($,W,G,Y,z){super($);if(Object.defineProperty(this,"message",{value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,W&&(this.code=W),G&&(this.config=G),Y&&(this.request=Y),z)this.response=z,this.status=z.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";L=h});var e1,l0;var M1=H(()=>{e1=o1(F5(),1),l0=e1.default});function I1($){return X.isPlainObject($)||X.isArray($)}function $4($){return X.endsWith($,"[]")?$.slice(0,-2):$}function K1($,W,G){if(!$)return W;return $.concat(W).map(function(z,Z){return z=$4(z),!G&&Z?"["+z+"]":z}).join(G?".":"")}function U5($){return X.isArray($)&&!$.some(I1)}function S5($,W,G){if(!X.isObject($))throw TypeError("target must be an object");W=W||new(l0||FormData),G=X.toFlatObject(G,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,B){return!X.isUndefined(B[U])});let Y=G.metaTokens,z=G.visitor||M,Z=G.dots,Q=G.indexes,I=(G.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(W);if(!X.isFunction(z))throw TypeError("visitor must be a function");function J(K){if(K===null)return"";if(X.isDate(K))return K.toISOString();if(X.isBoolean(K))return K.toString();if(!I&&X.isBlob(K))throw new L("Blob is not supported. Use a Buffer instead.");if(X.isArrayBuffer(K)||X.isTypedArray(K))return I&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function M(K,U,B){let D=K;if(X.isReactNative(W)&&X.isReactNativeBlob(K))return W.append(K1(B,U,Z),J(K)),!1;if(K&&!B&&typeof K==="object"){if(X.endsWith(U,"{}"))U=Y?U:U.slice(0,-2),K=JSON.stringify(K);else if(X.isArray(K)&&U5(K)||(X.isFileList(K)||X.endsWith(U,"[]"))&&(D=X.toArray(K)))return U=$4(U),D.forEach(function(C,y){!(X.isUndefined(C)||C===null)&&W.append(Q===!0?K1([U],y,Z):Q===null?U:U+"[]",J(C))}),!1}if(I1(K))return!0;return W.append(K1(B,U,Z),J(K)),!1}let V=[],P=Object.assign(_5,{defaultVisitor:M,convertValue:J,isVisitable:I1});function w(K,U){if(X.isUndefined(K))return;if(V.indexOf(K)!==-1)throw Error("Circular reference detected in "+U.join("."));V.push(K),X.forEach(K,function(D,q){if((!(X.isUndefined(D)||D===null)&&z.call(W,D,X.isString(q)?q.trim():q,U,P))===!0)w(D,U?U.concat(q):[q])}),V.pop()}if(!X.isObject($))throw TypeError("data must be an object");return w($),W}var _5,X0;var q0=H(()=>{O();l();M1();_5=X.toFlatObject(X,{},null,function(W){return/^is[A-Z]/.test(W)});X0=S5});function W4($){let W={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(Y){return W[Y]})}function Y4($,W){this._pairs=[],$&&X0($,this,W)}var G4,z4;var Q4=H(()=>{q0();G4=Y4.prototype;G4.append=function(W,G){this._pairs.push([W,G])};G4.toString=function(W){let G=W?function(Y){return W.call(this,Y,W4)}:W4;return this._pairs.map(function(z){return G(z[0])+"="+G(z[1])},"").join("&")};z4=Y4});function C5($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function I0($,W,G){if(!W)return $;let Y=G&&G.encode||C5,z=X.isFunction(G)?{serialize:G}:G,Z=z&&z.serialize,Q;if(Z)Q=Z(W,z);else Q=X.isURLSearchParams(W)?W.toString():new z4(W,z).toString(Y);if(Q){let N=$.indexOf("#");if(N!==-1)$=$.slice(0,N);$+=($.indexOf("?")===-1?"?":"&")+Q}return $}var p0=H(()=>{O();Q4()});class X4{constructor(){this.handlers=[]}use($,W,G){return this.handlers.push({fulfilled:$,rejected:W,synchronous:G?G.synchronous:!1,runWhen:G?G.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){X.forEach(this.handlers,function(G){if(G!==null)$(G)})}}var B1;var Z4=H(()=>{O();B1=X4});var Z0;var E0=H(()=>{Z0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0}});import D5 from"url";var N4;var J4=H(()=>{N4=D5.URLSearchParams});import R5 from"crypto";var L1="abcdefghijklmnopqrstuvwxyz",M4="0123456789",K4,O5=($=16,W=K4.ALPHA_DIGIT)=>{let G="",{length:Y}=W,z=new Uint32Array($);R5.randomFillSync(z);for(let Z=0;Z<$;Z++)G+=W[z[Z]%Y];return G},I4;var B4=H(()=>{J4();M1();K4={DIGIT:M4,ALPHA:L1,ALPHA_DIGIT:L1+L1.toUpperCase()+M4},I4={isNode:!0,classes:{URLSearchParams:N4,FormData:l0,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:K4,generateString:O5,protocols:["http","https","file","data"]}});var w1={};T5(w1,{origin:()=>A5,navigator:()=>V1,hasStandardBrowserWebWorkerEnv:()=>E5,hasStandardBrowserEnv:()=>q5,hasBrowserEnv:()=>P1});var P1,V1,q5,E5,A5;var L4=H(()=>{P1=typeof window<"u"&&typeof document<"u",V1=typeof navigator==="object"&&navigator||void 0,q5=P1&&(!V1||["ReactNative","NativeScript","NS"].indexOf(V1.product)<0),E5=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),A5=P1&&window.location.href||"http://localhost"});var S;var a=H(()=>{B4();L4();S={...w1,...I4}});function H1($,W){return X0($,new S.classes.URLSearchParams,{visitor:function(G,Y,z,Z){if(S.isNode&&X.isBuffer(G))return this.append(Y,G.toString("base64")),!1;return Z.defaultVisitor.apply(this,arguments)},...W})}var V4=H(()=>{O();q0();a()});function k5($){return X.matchAll(/\w+|\[(\w*)]/g,$).map((W)=>{return W[0]==="[]"?"":W[1]||W[0]})}function y5($){let W={},G=Object.keys($),Y,z=G.length,Z;for(Y=0;Y<z;Y++)Z=G[Y],W[Z]=$[Z];return W}function x5($){function W(G,Y,z,Z){let Q=G[Z++];if(Q==="__proto__")return!0;let N=Number.isFinite(+Q),I=Z>=G.length;if(Q=!Q&&X.isArray(z)?z.length:Q,I){if(X.hasOwnProp(z,Q))z[Q]=[z[Q],Y];else z[Q]=Y;return!N}if(!z[Q]||!X.isObject(z[Q]))z[Q]=[];if(W(G,Y,z[Q],Z)&&X.isArray(z[Q]))z[Q]=y5(z[Q]);return!N}if(X.isFormData($)&&X.isFunction($.entries)){let G={};return X.forEachEntry($,(Y,z)=>{W(k5(Y),z,G,0)}),G}return null}var n0;var F1=H(()=>{O();n0=x5});function b5($,W,G){if(X.isString($))try{return(W||JSON.parse)($),X.trim($)}catch(Y){if(Y.name!=="SyntaxError")throw Y}return(G||JSON.stringify)($)}var U1,_0;var i0=H(()=>{O();l();E0();q0();V4();a();F1();U1={transitional:Z0,adapter:["xhr","http","fetch"],transformRequest:[function(W,G){let Y=G.getContentType()||"",z=Y.indexOf("application/json")>-1,Z=X.isObject(W);if(Z&&X.isHTMLForm(W))W=new FormData(W);if(X.isFormData(W))return z?JSON.stringify(n0(W)):W;if(X.isArrayBuffer(W)||X.isBuffer(W)||X.isStream(W)||X.isFile(W)||X.isBlob(W)||X.isReadableStream(W))return W;if(X.isArrayBufferView(W))return W.buffer;if(X.isURLSearchParams(W))return G.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),W.toString();let N;if(Z){if(Y.indexOf("application/x-www-form-urlencoded")>-1)return H1(W,this.formSerializer).toString();if((N=X.isFileList(W))||Y.indexOf("multipart/form-data")>-1){let I=this.env&&this.env.FormData;return X0(N?{"files[]":W}:W,I&&new I,this.formSerializer)}}if(Z||z)return G.setContentType("application/json",!1),b5(W);return W}],transformResponse:[function(W){let G=this.transitional||U1.transitional,Y=G&&G.forcedJSONParsing,z=this.responseType==="json";if(X.isResponse(W)||X.isReadableStream(W))return W;if(W&&X.isString(W)&&(Y&&!this.responseType||z)){let Q=!(G&&G.silentJSONParsing)&&z;try{return JSON.parse(W,this.parseReviver)}catch(N){if(Q){if(N.name==="SyntaxError")throw L.from(N,L.ERR_BAD_RESPONSE,this,null,this.response);throw N}}}return W}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(W){return W>=200&&W<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],($)=>{U1.headers[$]={}});_0=U1});var j5,P4=($)=>{let W={},G,Y,z;return $&&$.split(`
1
+ import{U6 as F5,V6 as t4,W6 as G6,Y6 as z6}from"./cli-0.1.13-2cdtdhek.mjs";import{Tna as o1,Wna as T5,Xna as H}from"./cli-0.1.13-bj67mp7n.mjs";function D0($,W){return function(){return $.apply(W,arguments)}}var Z1=()=>{};function R0($){return $!==null&&!F0($)&&$.constructor!==null&&!F0($.constructor)&&d($.constructor.isBuffer)&&$.constructor.isBuffer($)}function y2($){let W;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)W=ArrayBuffer.isView($);else W=$&&$.buffer&&n1($.buffer);return W}function c2(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function T0($,W,{allOwnKeys:G=!1}={}){if($===null||typeof $>"u")return;let Y,z;if(typeof $!=="object")$=[$];if(U0($))for(Y=0,z=$.length;Y<z;Y++)W.call(null,$[Y],Y,$);else{if(R0($))return;let Z=G?Object.getOwnPropertyNames($):Object.keys($),Q=Z.length,N;for(Y=0;Y<Q;Y++)N=Z[Y],W.call(null,$[N],N,$)}}function t1($,W){if(R0($))return null;W=W.toLowerCase();let G=Object.keys($),Y=G.length,z;while(Y-- >0)if(z=G[Y],W===z.toLowerCase())return z;return null}function N1(){let{caseless:$,skipUndefined:W}=a1(this)&&this||{},G={},Y=(z,Z)=>{if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return;let Q=$&&t1(G,Z)||Z;if(u0(G[Q])&&u0(z))G[Q]=N1(G[Q],z);else if(u0(z))G[Q]=N1({},z);else if(U0(z))G[Q]=z.slice();else if(!W||!F0(z))G[Q]=z};for(let z=0,Z=arguments.length;z<Z;z++)arguments[z]&&T0(arguments[z],Y);return G}function B5($){return!!($&&d($.append)&&$[p1]==="FormData"&&$[g0])}var k2,J1,g0,p1,d0,t=($)=>{return $=$.toLowerCase(),(W)=>d0(W)===$},c0=($)=>(W)=>typeof W===$,U0,F0,n1,x2,d,i1,O0=($)=>$!==null&&typeof $==="object",b2=($)=>$===!0||$===!1,u0=($)=>{if(d0($)!=="object")return!1;let W=J1($);return(W===null||W===Object.prototype||Object.getPrototypeOf(W)===null)&&!(p1 in $)&&!(g0 in $)},j2=($)=>{if(!O0($)||R0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(W){return!1}},m2,v2,h2=($)=>{return!!($&&typeof $.uri<"u")},f2=($)=>$&&typeof $.getParts<"u",u2,g2,d2=($)=>O0($)&&d($.pipe),d1,c1,l2=($)=>{let W;return $&&(c1&&$ instanceof c1||d($.append)&&((W=d0($))==="formdata"||W==="object"&&d($.toString)&&$.toString()==="[object FormData]"))},p2,n2,i2,t2,a2,s2=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},K0,a1=($)=>!F0($)&&$!==K0,r2=($,W,G,{allOwnKeys:Y}={})=>{return T0(W,(z,Z)=>{if(G&&d(z))Object.defineProperty($,Z,{value:D0(z,G),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,Z,{value:z,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Y}),$},o2=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},e2=($,W,G,Y)=>{$.prototype=Object.create(W.prototype,Y),Object.defineProperty($.prototype,"constructor",{value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{value:W.prototype}),G&&Object.assign($.prototype,G)},$5=($,W,G,Y)=>{let z,Z,Q,N={};if(W=W||{},$==null)return W;do{z=Object.getOwnPropertyNames($),Z=z.length;while(Z-- >0)if(Q=z[Z],(!Y||Y(Q,$,W))&&!N[Q])W[Q]=$[Q],N[Q]=!0;$=G!==!1&&J1($)}while($&&(!G||G($,W))&&$!==Object.prototype);return W},W5=($,W,G)=>{if($=String($),G===void 0||G>$.length)G=$.length;G-=W.length;let Y=$.indexOf(W,G);return Y!==-1&&Y===G},Y5=($)=>{if(!$)return null;if(U0($))return $;let W=$.length;if(!i1(W))return null;let G=Array(W);while(W-- >0)G[W]=$[W];return G},G5,z5=($,W)=>{let Y=($&&$[g0]).call($),z;while((z=Y.next())&&!z.done){let Z=z.value;W.call($,Z[0],Z[1])}},Q5=($,W)=>{let G,Y=[];while((G=$.exec(W))!==null)Y.push(G);return Y},X5,Z5=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(G,Y,z){return Y.toUpperCase()+z})},l1,N5,s1=($,W)=>{let G=Object.getOwnPropertyDescriptors($),Y={};T0(G,(z,Z)=>{let Q;if((Q=W(z,Z,$))!==!1)Y[Z]=Q||z}),Object.defineProperties($,Y)},J5=($)=>{s1($,(W,G)=>{if(d($)&&["arguments","caller","callee"].indexOf(G)!==-1)return!1;let Y=$[G];if(!d(Y))return;if(W.enumerable=!1,"writable"in W){W.writable=!1;return}if(!W.set)W.set=()=>{throw Error("Can not rewrite read-only method '"+G+"'")}})},M5=($,W)=>{let G={},Y=(z)=>{z.forEach((Z)=>{G[Z]=!0})};return U0($)?Y($):Y(String($).split(W)),G},K5=()=>{},I5=($,W)=>{return $!=null&&Number.isFinite($=+$)?$:W},L5=($)=>{let W=[,,,,,,,,,,],G=(Y,z)=>{if(O0(Y)){if(W.indexOf(Y)>=0)return;if(R0(Y))return Y;if(!("toJSON"in Y)){W[z]=Y;let Z=U0(Y)?[]:{};return T0(Y,(Q,N)=>{let I=G(Q,z+1);!F0(I)&&(Z[N]=I)}),W[z]=void 0,Z}}return Y};return G($,0)},V5,P5=($)=>$&&(O0($)||d($))&&d($.then)&&d($.catch),r1,w5,H5=($)=>$!=null&&d($[g0]),X;var O=H(()=>{Z1();({toString:k2}=Object.prototype),{getPrototypeOf:J1}=Object,{iterator:g0,toStringTag:p1}=Symbol,d0=(($)=>(W)=>{let G=k2.call(W);return $[G]||($[G]=G.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:U0}=Array,F0=c0("undefined");n1=t("ArrayBuffer");x2=c0("string"),d=c0("function"),i1=c0("number"),m2=t("Date"),v2=t("File"),u2=t("Blob"),g2=t("FileList");d1=c2(),c1=typeof d1.FormData<"u"?d1.FormData:void 0,p2=t("URLSearchParams"),[n2,i2,t2,a2]=["ReadableStream","Request","Response","Headers"].map(t);K0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();G5=(($)=>{return(W)=>{return $&&W instanceof $}})(typeof Uint8Array<"u"&&J1(Uint8Array)),X5=t("HTMLFormElement"),l1=(({hasOwnProperty:$})=>(W,G)=>$.call(W,G))(Object.prototype),N5=t("RegExp");V5=t("AsyncFunction"),r1=(($,W)=>{if($)return setImmediate;return W?((G,Y)=>{return K0.addEventListener("message",({source:z,data:Z})=>{if(z===K0&&Z===G)Y.length&&Y.shift()()},!1),(z)=>{Y.push(z),K0.postMessage(G,"*")}})(`axios@${Math.random()}`,[]):(G)=>setTimeout(G)})(typeof setImmediate==="function",d(K0.postMessage)),w5=typeof queueMicrotask<"u"?queueMicrotask.bind(K0):typeof process<"u"&&process.nextTick||r1,X={isArray:U0,isArrayBuffer:n1,isBuffer:R0,isFormData:l2,isArrayBufferView:y2,isString:x2,isNumber:i1,isBoolean:b2,isObject:O0,isPlainObject:u0,isEmptyObject:j2,isReadableStream:n2,isRequest:i2,isResponse:t2,isHeaders:a2,isUndefined:F0,isDate:m2,isFile:v2,isReactNativeBlob:h2,isReactNative:f2,isBlob:u2,isRegExp:N5,isFunction:d,isStream:d2,isURLSearchParams:p2,isTypedArray:G5,isFileList:g2,forEach:T0,merge:N1,extend:r2,trim:s2,stripBOM:o2,inherits:e2,toFlatObject:$5,kindOf:d0,kindOfTest:t,endsWith:W5,toArray:Y5,forEachEntry:z5,matchAll:Q5,isHTMLForm:X5,hasOwnProperty:l1,hasOwnProp:l1,reduceDescriptors:s1,freezeMethods:J5,toObjectSet:M5,toCamelCase:Z5,noop:K5,toFiniteNumber:I5,findKey:t1,global:K0,isContextDefined:a1,isSpecCompliantForm:B5,toJSONObject:L5,isAsyncFn:V5,isThenable:P5,setImmediate:r1,asap:w5,isIterable:H5}});var h,L;var l=H(()=>{O();h=class h extends Error{static from($,W,G,Y,z,Z){let Q=new h($.message,W||$.code,G,Y,z);if(Q.cause=$,Q.name=$.name,$.status!=null&&Q.status==null)Q.status=$.status;return Z&&Object.assign(Q,Z),Q}constructor($,W,G,Y,z){super($);if(Object.defineProperty(this,"message",{value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,W&&(this.code=W),G&&(this.config=G),Y&&(this.request=Y),z)this.response=z,this.status=z.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";L=h});var e1,l0;var M1=H(()=>{e1=o1(F5(),1),l0=e1.default});function I1($){return X.isPlainObject($)||X.isArray($)}function $4($){return X.endsWith($,"[]")?$.slice(0,-2):$}function K1($,W,G){if(!$)return W;return $.concat(W).map(function(z,Z){return z=$4(z),!G&&Z?"["+z+"]":z}).join(G?".":"")}function U5($){return X.isArray($)&&!$.some(I1)}function S5($,W,G){if(!X.isObject($))throw TypeError("target must be an object");W=W||new(l0||FormData),G=X.toFlatObject(G,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,B){return!X.isUndefined(B[U])});let Y=G.metaTokens,z=G.visitor||M,Z=G.dots,Q=G.indexes,I=(G.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(W);if(!X.isFunction(z))throw TypeError("visitor must be a function");function J(K){if(K===null)return"";if(X.isDate(K))return K.toISOString();if(X.isBoolean(K))return K.toString();if(!I&&X.isBlob(K))throw new L("Blob is not supported. Use a Buffer instead.");if(X.isArrayBuffer(K)||X.isTypedArray(K))return I&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function M(K,U,B){let D=K;if(X.isReactNative(W)&&X.isReactNativeBlob(K))return W.append(K1(B,U,Z),J(K)),!1;if(K&&!B&&typeof K==="object"){if(X.endsWith(U,"{}"))U=Y?U:U.slice(0,-2),K=JSON.stringify(K);else if(X.isArray(K)&&U5(K)||(X.isFileList(K)||X.endsWith(U,"[]"))&&(D=X.toArray(K)))return U=$4(U),D.forEach(function(C,y){!(X.isUndefined(C)||C===null)&&W.append(Q===!0?K1([U],y,Z):Q===null?U:U+"[]",J(C))}),!1}if(I1(K))return!0;return W.append(K1(B,U,Z),J(K)),!1}let V=[],P=Object.assign(_5,{defaultVisitor:M,convertValue:J,isVisitable:I1});function w(K,U){if(X.isUndefined(K))return;if(V.indexOf(K)!==-1)throw Error("Circular reference detected in "+U.join("."));V.push(K),X.forEach(K,function(D,q){if((!(X.isUndefined(D)||D===null)&&z.call(W,D,X.isString(q)?q.trim():q,U,P))===!0)w(D,U?U.concat(q):[q])}),V.pop()}if(!X.isObject($))throw TypeError("data must be an object");return w($),W}var _5,X0;var q0=H(()=>{O();l();M1();_5=X.toFlatObject(X,{},null,function(W){return/^is[A-Z]/.test(W)});X0=S5});function W4($){let W={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(Y){return W[Y]})}function Y4($,W){this._pairs=[],$&&X0($,this,W)}var G4,z4;var Q4=H(()=>{q0();G4=Y4.prototype;G4.append=function(W,G){this._pairs.push([W,G])};G4.toString=function(W){let G=W?function(Y){return W.call(this,Y,W4)}:W4;return this._pairs.map(function(z){return G(z[0])+"="+G(z[1])},"").join("&")};z4=Y4});function C5($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function I0($,W,G){if(!W)return $;let Y=G&&G.encode||C5,z=X.isFunction(G)?{serialize:G}:G,Z=z&&z.serialize,Q;if(Z)Q=Z(W,z);else Q=X.isURLSearchParams(W)?W.toString():new z4(W,z).toString(Y);if(Q){let N=$.indexOf("#");if(N!==-1)$=$.slice(0,N);$+=($.indexOf("?")===-1?"?":"&")+Q}return $}var p0=H(()=>{O();Q4()});class X4{constructor(){this.handlers=[]}use($,W,G){return this.handlers.push({fulfilled:$,rejected:W,synchronous:G?G.synchronous:!1,runWhen:G?G.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){X.forEach(this.handlers,function(G){if(G!==null)$(G)})}}var B1;var Z4=H(()=>{O();B1=X4});var Z0;var E0=H(()=>{Z0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0}});import D5 from"url";var N4;var J4=H(()=>{N4=D5.URLSearchParams});import R5 from"crypto";var L1="abcdefghijklmnopqrstuvwxyz",M4="0123456789",K4,O5=($=16,W=K4.ALPHA_DIGIT)=>{let G="",{length:Y}=W,z=new Uint32Array($);R5.randomFillSync(z);for(let Z=0;Z<$;Z++)G+=W[z[Z]%Y];return G},I4;var B4=H(()=>{J4();M1();K4={DIGIT:M4,ALPHA:L1,ALPHA_DIGIT:L1+L1.toUpperCase()+M4},I4={isNode:!0,classes:{URLSearchParams:N4,FormData:l0,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:K4,generateString:O5,protocols:["http","https","file","data"]}});var w1={};T5(w1,{origin:()=>A5,navigator:()=>V1,hasStandardBrowserWebWorkerEnv:()=>E5,hasStandardBrowserEnv:()=>q5,hasBrowserEnv:()=>P1});var P1,V1,q5,E5,A5;var L4=H(()=>{P1=typeof window<"u"&&typeof document<"u",V1=typeof navigator==="object"&&navigator||void 0,q5=P1&&(!V1||["ReactNative","NativeScript","NS"].indexOf(V1.product)<0),E5=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),A5=P1&&window.location.href||"http://localhost"});var S;var a=H(()=>{B4();L4();S={...w1,...I4}});function H1($,W){return X0($,new S.classes.URLSearchParams,{visitor:function(G,Y,z,Z){if(S.isNode&&X.isBuffer(G))return this.append(Y,G.toString("base64")),!1;return Z.defaultVisitor.apply(this,arguments)},...W})}var V4=H(()=>{O();q0();a()});function k5($){return X.matchAll(/\w+|\[(\w*)]/g,$).map((W)=>{return W[0]==="[]"?"":W[1]||W[0]})}function y5($){let W={},G=Object.keys($),Y,z=G.length,Z;for(Y=0;Y<z;Y++)Z=G[Y],W[Z]=$[Z];return W}function x5($){function W(G,Y,z,Z){let Q=G[Z++];if(Q==="__proto__")return!0;let N=Number.isFinite(+Q),I=Z>=G.length;if(Q=!Q&&X.isArray(z)?z.length:Q,I){if(X.hasOwnProp(z,Q))z[Q]=[z[Q],Y];else z[Q]=Y;return!N}if(!z[Q]||!X.isObject(z[Q]))z[Q]=[];if(W(G,Y,z[Q],Z)&&X.isArray(z[Q]))z[Q]=y5(z[Q]);return!N}if(X.isFormData($)&&X.isFunction($.entries)){let G={};return X.forEachEntry($,(Y,z)=>{W(k5(Y),z,G,0)}),G}return null}var n0;var F1=H(()=>{O();n0=x5});function b5($,W,G){if(X.isString($))try{return(W||JSON.parse)($),X.trim($)}catch(Y){if(Y.name!=="SyntaxError")throw Y}return(G||JSON.stringify)($)}var U1,_0;var i0=H(()=>{O();l();E0();q0();V4();a();F1();U1={transitional:Z0,adapter:["xhr","http","fetch"],transformRequest:[function(W,G){let Y=G.getContentType()||"",z=Y.indexOf("application/json")>-1,Z=X.isObject(W);if(Z&&X.isHTMLForm(W))W=new FormData(W);if(X.isFormData(W))return z?JSON.stringify(n0(W)):W;if(X.isArrayBuffer(W)||X.isBuffer(W)||X.isStream(W)||X.isFile(W)||X.isBlob(W)||X.isReadableStream(W))return W;if(X.isArrayBufferView(W))return W.buffer;if(X.isURLSearchParams(W))return G.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),W.toString();let N;if(Z){if(Y.indexOf("application/x-www-form-urlencoded")>-1)return H1(W,this.formSerializer).toString();if((N=X.isFileList(W))||Y.indexOf("multipart/form-data")>-1){let I=this.env&&this.env.FormData;return X0(N?{"files[]":W}:W,I&&new I,this.formSerializer)}}if(Z||z)return G.setContentType("application/json",!1),b5(W);return W}],transformResponse:[function(W){let G=this.transitional||U1.transitional,Y=G&&G.forcedJSONParsing,z=this.responseType==="json";if(X.isResponse(W)||X.isReadableStream(W))return W;if(W&&X.isString(W)&&(Y&&!this.responseType||z)){let Q=!(G&&G.silentJSONParsing)&&z;try{return JSON.parse(W,this.parseReviver)}catch(N){if(Q){if(N.name==="SyntaxError")throw L.from(N,L.ERR_BAD_RESPONSE,this,null,this.response);throw N}}}return W}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(W){return W>=200&&W<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],($)=>{U1.headers[$]={}});_0=U1});var j5,P4=($)=>{let W={},G,Y,z;return $&&$.split(`
2
2
  `).forEach(function(Q){if(z=Q.indexOf(":"),G=Q.substring(0,z).trim().toLowerCase(),Y=Q.substring(z+1).trim(),!G||W[G]&&j5[G])return;if(G==="set-cookie")if(W[G])W[G].push(Y);else W[G]=[Y];else W[G]=W[G]?W[G]+", "+Y:Y}),W};var w4=H(()=>{O();j5=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"])});function F4($,W){if($===!1||$==null)return;if(X.isArray($)){$.forEach((G)=>F4(G,W));return}if(!m5(String($)))throw Error(`Invalid character in header content ["${W}"]`)}function A0($){return $&&String($).trim().toLowerCase()}function v5($){let W=$.length;while(W>0){let G=$.charCodeAt(W-1);if(G!==10&&G!==13)break;W-=1}return W===$.length?$:$.slice(0,W)}function t0($){if($===!1||$==null)return $;return X.isArray($)?$.map(t0):v5(String($))}function h5($){let W=Object.create(null),G=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Y;while(Y=G.exec($))W[Y[1]]=Y[2];return W}function _1($,W,G,Y,z){if(X.isFunction(Y))return Y.call(this,W,G);if(z)W=G;if(!X.isString(W))return;if(X.isString(Y))return W.indexOf(Y)!==-1;if(X.isRegExp(Y))return Y.test(W)}function u5($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(W,G,Y)=>{return G.toUpperCase()+Y})}function g5($,W){let G=X.toCamelCase(" "+W);["get","set","has"].forEach((Y)=>{Object.defineProperty($,Y+G,{value:function(z,Z,Q){return this[Y].call(this,W,z,Z,Q)},configurable:!0})})}var H4,m5=($)=>!/[\r\n]/.test($),f5=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim()),k0,T;var o=H(()=>{O();w4();H4=Symbol("internals");k0=class k0{constructor($){$&&this.set($)}set($,W,G){let Y=this;function z(Q,N,I){let J=A0(N);if(!J)throw Error("header name must be a non-empty string");let M=X.findKey(Y,J);if(!M||Y[M]===void 0||I===!0||I===void 0&&Y[M]!==!1)F4(Q,N),Y[M||N]=t0(Q)}let Z=(Q,N)=>X.forEach(Q,(I,J)=>z(I,J,N));if(X.isPlainObject($)||$ instanceof this.constructor)Z($,W);else if(X.isString($)&&($=$.trim())&&!f5($))Z(P4($),W);else if(X.isObject($)&&X.isIterable($)){let Q={},N,I;for(let J of $){if(!X.isArray(J))throw TypeError("Object iterator must return a key-value pair");Q[I=J[0]]=(N=Q[I])?X.isArray(N)?[...N,J[1]]:[N,J[1]]:J[1]}Z(Q,W)}else $!=null&&z(W,$,G);return this}get($,W){if($=A0($),$){let G=X.findKey(this,$);if(G){let Y=this[G];if(!W)return Y;if(W===!0)return h5(Y);if(X.isFunction(W))return W.call(this,Y,G);if(X.isRegExp(W))return W.exec(Y);throw TypeError("parser must be boolean|regexp|function")}}}has($,W){if($=A0($),$){let G=X.findKey(this,$);return!!(G&&this[G]!==void 0&&(!W||_1(this,this[G],G,W)))}return!1}delete($,W){let G=this,Y=!1;function z(Z){if(Z=A0(Z),Z){let Q=X.findKey(G,Z);if(Q&&(!W||_1(G,G[Q],Q,W)))delete G[Q],Y=!0}}if(X.isArray($))$.forEach(z);else z($);return Y}clear($){let W=Object.keys(this),G=W.length,Y=!1;while(G--){let z=W[G];if(!$||_1(this,this[z],z,$,!0))delete this[z],Y=!0}return Y}normalize($){let W=this,G={};return X.forEach(this,(Y,z)=>{let Z=X.findKey(G,z);if(Z){W[Z]=t0(Y),delete W[z];return}let Q=$?u5(z):String(z).trim();if(Q!==z)delete W[z];W[Q]=t0(Y),G[Q]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let W=Object.create(null);return X.forEach(this,(G,Y)=>{G!=null&&G!==!1&&(W[Y]=$&&X.isArray(G)?G.join(", "):G)}),W}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,W])=>$+": "+W).join(`
3
3
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...W){let G=new this($);return W.forEach((Y)=>G.set(Y)),G}static accessor($){let G=(this[H4]=this[H4]={accessors:{}}).accessors,Y=this.prototype;function z(Z){let Q=A0(Z);if(!G[Q])g5(Y,Z),G[Q]=!0}return X.isArray($)?$.forEach(z):z($),this}};k0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(k0.prototype,({value:$},W)=>{let G=W[0].toUpperCase()+W.slice(1);return{get:()=>$,set(Y){this[G]=Y}}});X.freezeMethods(k0);T=k0});function y0($,W){let G=this||_0,Y=W||G,z=T.from(Y.headers),Z=Y.data;return X.forEach($,function(N){Z=N.call(G,Z,z.normalize(),W?W.status:void 0)}),z.normalize(),Z}var U4=H(()=>{O();i0();o()});function x0($){return!!($&&$.__CANCEL__)}var S1=()=>{};var _4,p;var B0=H(()=>{l();_4=class _4 extends L{constructor($,W,G){super($==null?"canceled":$,L.ERR_CANCELED,W,G);this.name="CanceledError",this.__CANCEL__=!0}};p=_4});function e($,W,G){let Y=G.config.validateStatus;if(!G.status||!Y||Y(G.status))$(G);else W(new L("Request failed with status code "+G.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(G.status/100)-4],G.config,G.request,G))}var a0=H(()=>{l()});function C1($){if(typeof $!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}var S4=()=>{};function D1($,W){return W?$.replace(/\/?\/$/,"")+"/"+W.replace(/^\/+/,""):$}var C4=()=>{};function L0($,W,G){let Y=!C1(W);if($&&(Y||G==!1))return D1($,W);return W}var s0=H(()=>{S4();C4()});var V0="1.15.0";var r0=()=>{};function b0($){let W=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return W&&W[1]||""}var R1=()=>{};function O1($,W,G){let Y=G&&G.Blob||S.classes.Blob,z=b0($);if(W===void 0&&Y)W=!0;if(z==="data"){$=z.length?$.slice(z.length+1):$;let Z=d5.exec($);if(!Z)throw new L("Invalid URL",L.ERR_INVALID_URL);let Q=Z[1],N=Z[2],I=Z[3],J=Buffer.from(decodeURIComponent(I),N?"base64":"utf8");if(W){if(!Y)throw new L("Blob is not supported",L.ERR_NOT_SUPPORT);return new Y([J],{type:Q})}return J}throw new L("Unsupported protocol "+z,L.ERR_NOT_SUPPORT)}var d5;var D4=H(()=>{l();R1();a();d5=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/});import c5 from"stream";var T1,R4,q1;var O4=H(()=>{O();T1=Symbol("internals");R4=class R4 extends c5.Transform{constructor($){$=X.toFlatObject($,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(G,Y)=>{return!X.isUndefined(Y[G])});super({readableHighWaterMark:$.chunkSize});let W=this[T1]={timeWindow:$.timeWindow,chunkSize:$.chunkSize,maxRate:$.maxRate,minChunkSize:$.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(G)=>{if(G==="progress"){if(!W.isCaptured)W.isCaptured=!0}})}_read($){let W=this[T1];if(W.onReadCallback)W.onReadCallback();return super._read($)}_transform($,W,G){let Y=this[T1],z=Y.maxRate,Z=this.readableHighWaterMark,Q=Y.timeWindow,N=1000/Q,I=z/N,J=Y.minChunkSize!==!1?Math.max(Y.minChunkSize,I*0.01):0,M=(P,w)=>{let K=Buffer.byteLength(P);if(Y.bytesSeen+=K,Y.bytes+=K,Y.isCaptured&&this.emit("progress",Y.bytesSeen),this.push(P))process.nextTick(w);else Y.onReadCallback=()=>{Y.onReadCallback=null,process.nextTick(w)}},V=(P,w)=>{let K=Buffer.byteLength(P),U=null,B=Z,D,q=0;if(z){let C=Date.now();if(!Y.ts||(q=C-Y.ts)>=Q)Y.ts=C,D=I-Y.bytes,Y.bytes=D<0?-D:0,q=0;D=I-Y.bytes}if(z){if(D<=0)return setTimeout(()=>{w(null,P)},Q-q);if(D<B)B=D}if(B&&K>B&&K-B>J)U=P.subarray(B),P=P.subarray(0,B);M(P,U?()=>{process.nextTick(w,null,U)}:w)};V($,function P(w,K){if(w)return G(w);if(K)V(K,P);else G(null)})}};q1=R4});var T4,l5=async function*($){if($.stream)yield*$.stream();else if($.arrayBuffer)yield await $.arrayBuffer();else if($[T4])yield*$[T4]();else yield $},o0;var E1=H(()=>{({asyncIterator:T4}=Symbol),o0=l5});import p5 from"util";import{Readable as n5}from"stream";class q4{constructor($,W){let{escapeName:G}=this.constructor,Y=X.isString(W),z=`Content-Disposition: form-data; name="${G($)}"${!Y&&W.name?`; filename="${G(W.name)}"`:""}${P0}`;if(Y)W=j0.encode(String(W).replace(/\r?\n|\r\n?/g,P0));else z+=`Content-Type: ${W.type||"application/octet-stream"}${P0}`;this.headers=j0.encode(z+P0),this.contentLength=Y?W.byteLength:W.size,this.size=this.headers.byteLength+this.contentLength+a5,this.name=$,this.value=W}async*encode(){yield this.headers;let{value:$}=this;if(X.isTypedArray($))yield $;else yield*o0($);yield t5}static escapeName($){return String($).replace(/[\r\n"]/g,(W)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[W])}}var i5,j0,P0=`\r
4
4
  `,t5,a5=2,s5=($,W,G)=>{let{tag:Y="form-data-boundary",size:z=25,boundary:Z=Y+"-"+S.generateString(z,i5)}=G||{};if(!X.isFormData($))throw TypeError("FormData instance required");if(Z.length<1||Z.length>70)throw Error("boundary must be 10-70 characters long");let Q=j0.encode("--"+Z+P0),N=j0.encode("--"+Z+"--"+P0),I=N.byteLength,J=Array.from($.entries()).map(([V,P])=>{let w=new q4(V,P);return I+=w.size,w});I+=Q.byteLength*J.length,I=X.toFiniteNumber(I);let M={"Content-Type":`multipart/form-data; boundary=${Z}`};if(Number.isFinite(I))M["Content-Length"]=I;return W&&W(M),n5.from(async function*(){for(let V of J)yield Q,yield*V.encode();yield N}())},E4;var A4=H(()=>{O();E1();a();i5=S.ALPHABET.ALPHA_DIGIT+"-_",j0=typeof TextEncoder==="function"?new TextEncoder:new p5.TextEncoder,t5=j0.encode(P0);E4=s5});import r5 from"stream";var k4,y4;var x4=H(()=>{k4=class k4 extends r5.Transform{__transform($,W,G){this.push($),G()}_transform($,W,G){if($.length!==0){if(this._transform=this.__transform,$[0]!==120){let Y=Buffer.alloc(2);Y[0]=120,Y[1]=156,this.push(Y,W)}}this.__transform($,W,G)}};y4=k4});var o5=($,W)=>{return X.isAsyncFn($)?function(...G){let Y=G.pop();$.apply(this,G).then((z)=>{try{W?Y(null,...W(z)):Y(null,z)}catch(Z){Y(Z)}},Y)}:$},b4;var j4=H(()=>{O();b4=o5});function A1($){let W;try{W=new URL($)}catch(Z){return!1}let G=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!G)return!1;if(G==="*")return!0;let Y=Number.parseInt(W.port,10)||e5[W.protocol.split(":",1)[0]]||0,z=m4(W.hostname.toLowerCase());return G.split(/[\s,]+/).some((Z)=>{if(!Z)return!1;let[Q,N]=$6(Z);if(Q=m4(Q),!Q)return!1;if(N&&N!==Y)return!1;if(Q.charAt(0)==="*")Q=Q.slice(1);if(Q.charAt(0)===".")return z.endsWith(Q);return z===Q})}var e5,$6=($)=>{let W=$,G=0;if(W.charAt(0)==="["){let Z=W.indexOf("]");if(Z!==-1){let Q=W.slice(1,Z),N=W.slice(Z+1);if(N.charAt(0)===":"&&/^\d+$/.test(N.slice(1)))G=Number.parseInt(N.slice(1),10);return[Q,G]}}let Y=W.indexOf(":"),z=W.lastIndexOf(":");if(Y!==-1&&Y===z&&/^\d+$/.test(W.slice(z+1)))G=Number.parseInt(W.slice(z+1),10),W=W.slice(0,z);return[W,G]},m4=($)=>{if(!$)return $;if($.charAt(0)==="["&&$.charAt($.length-1)==="]")$=$.slice(1,-1);return $.replace(/\.+$/,"")};var v4=H(()=>{e5={http:80,https:443,ws:80,wss:443,ftp:21}});function W6($,W){$=$||10;let G=Array($),Y=Array($),z=0,Z=0,Q;return W=W!==void 0?W:1000,function(I){let J=Date.now(),M=Y[Z];if(!Q)Q=J;G[z]=I,Y[z]=J;let V=Z,P=0;while(V!==z)P+=G[V++],V=V%$;if(z=(z+1)%$,z===Z)Z=(Z+1)%$;if(J-Q<W)return;let w=M&&J-M;return w?Math.round(P*1000/w):void 0}}var h4;var f4=H(()=>{h4=W6});function Y6($,W){let G=0,Y=1000/W,z,Z,Q=(J,M=Date.now())=>{if(G=M,z=null,Z)clearTimeout(Z),Z=null;$(...J)};return[(...J)=>{let M=Date.now(),V=M-G;if(V>=Y)Q(J,M);else if(z=J,!Z)Z=setTimeout(()=>{Z=null,Q(z)},Y-V)},()=>z&&Q(z)]}var u4;var g4=H(()=>{u4=Y6});var Y0=($,W,G=3)=>{let Y=0,z=h4(50,250);return u4((Z)=>{let Q=Z.loaded,N=Z.lengthComputable?Z.total:void 0,I=Q-Y,J=z(I),M=Q<=N;Y=Q;let V={loaded:Q,total:N,progress:N?Q/N:void 0,bytes:I,rate:J?J:void 0,estimated:J&&N&&M?(N-Q)/J:void 0,event:Z,lengthComputable:N!=null,[W?"download":"upload"]:!0};$(V)},G)},S0=($,W)=>{let G=$!=null;return[(Y)=>W[0]({lengthComputable:G,total:$,loaded:Y}),W[1]]},C0=($)=>(...W)=>X.asap(()=>$(...W));var e0=H(()=>{f4();g4();O()});function k1($){if(!$||typeof $!=="string")return 0;if(!$.startsWith("data:"))return 0;let W=$.indexOf(",");if(W<0)return 0;let G=$.slice(5,W),Y=$.slice(W+1);if(/;base64/i.test(G)){let{length:Z,length:Q}=Y;for(let P=0;P<Q;P++)if(Y.charCodeAt(P)===37&&P+2<Q){let w=Y.charCodeAt(P+1),K=Y.charCodeAt(P+2);if((w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102)&&(K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102))Z-=2,P+=2}let N=0,I=Q-1,J=(P)=>P>=2&&Y.charCodeAt(P-2)===37&&Y.charCodeAt(P-1)===51&&(Y.charCodeAt(P)===68||Y.charCodeAt(P)===100);if(I>=0){if(Y.charCodeAt(I)===61)N++,I--;else if(J(I))N++,I-=3}if(N===1&&I>=0){if(Y.charCodeAt(I)===61)N++;else if(J(I))N++}let V=Math.floor(Z/4)*3-(N||0);return V>0?V:0}return Buffer.byteLength(Y,"utf8")}var d4=()=>{};import Q6 from"http";import X6 from"https";import a4 from"http2";import s4 from"util";import J0 from"zlib";import N0 from"stream";import{EventEmitter as Z6}from"events";class o4{constructor(){this.sessions=Object.create(null)}getSession($,W){W=Object.assign({sessionTimeout:1000},W);let G=this.sessions[$];if(G){let J=G.length;for(let M=0;M<J;M++){let[V,P]=G[M];if(!V.destroyed&&!V.closed&&s4.isDeepStrictEqual(P,W))return V}}let Y=a4.connect($,W),z,Z=()=>{if(z)return;z=!0;let J=G,M=J.length,V=M;while(V--)if(J[V][0]===Y){if(M===1)delete this.sessions[$];else J.splice(V,1);if(!Y.closed)Y.close();return}},Q=Y.request,{sessionTimeout:N}=W;if(N!=null){let J,M=0;Y.request=function(){let V=Q.apply(this,arguments);if(M++,J)clearTimeout(J),J=null;return V.once("close",()=>{if(!--M)J=setTimeout(()=>{J=null,Z()},N)}),V}}Y.once("close",Z);let I=[Y,W];return G?G.push(I):G=this.sessions[$]=[I],Y}}function B6($,W){if($.beforeRedirects.proxy)$.beforeRedirects.proxy($);if($.beforeRedirects.config)$.beforeRedirects.config($,W)}function e4($,W,G){let Y=W;if(!Y&&Y!==!1){let z=t4(G);if(z){if(!A1(G))Y=new URL(z)}}if(Y){if(Y.username)Y.auth=(Y.username||"")+":"+(Y.password||"");if(Y.auth){if(Boolean(Y.auth.username||Y.auth.password))Y.auth=(Y.auth.username||"")+":"+(Y.auth.password||"");else if(typeof Y.auth==="object")throw new L("Invalid proxy authorization",L.ERR_BAD_OPTION,{proxy:Y});let Q=Buffer.from(Y.auth,"utf8").toString("base64");$.headers["Proxy-Authorization"]="Basic "+Q}$.headers.host=$.hostname+($.port?":"+$.port:"");let z=Y.hostname||Y.host;if($.hostname=z,$.host=z,$.port=Y.port,$.path=G,Y.protocol)$.protocol=Y.protocol.includes(":")?Y.protocol:`${Y.protocol}:`}$.beforeRedirects.proxy=function(Z){e4(Z,W,Z.href)}}var r4,c4,N6,l4,J6,M6,K6,p4,n4=($,[W,G])=>{return $.on("end",G).on("error",G),W},I6,L6,V6=($)=>{return new Promise((W,G)=>{let Y,z,Z=(I,J)=>{if(z)return;z=!0,Y&&Y(I,J)},Q=(I)=>{Z(I),W(I)},N=(I)=>{Z(I,!0),G(I)};$(Q,N,(I)=>Y=I).catch(N)})},P6=({address:$,family:W})=>{if(!X.isString($))throw TypeError("address must be a string");return{address:$,family:W||($.indexOf(".")<0?6:4)}},i4=($,W)=>P6(X.isObject($)?$:{address:$,family:W}),w6,$2;var W2=H(()=>{O();a0();s0();p0();G6();r0();E0();l();B0();a();D4();o();O4();A4();E1();x4();j4();v4();e0();d4();r4=o1(z6(),1),c4={flush:J0.constants.Z_SYNC_FLUSH,finishFlush:J0.constants.Z_SYNC_FLUSH},N6={flush:J0.constants.BROTLI_OPERATION_FLUSH,finishFlush:J0.constants.BROTLI_OPERATION_FLUSH},l4=X.isFunction(J0.createBrotliDecompress),{http:J6,https:M6}=r4.default,K6=/https:?/,p4=S.protocols.map(($)=>{return $+":"});I6=new o4;L6=typeof process<"u"&&X.kindOf(process)==="process",w6={request($,W){let G=$.protocol+"//"+$.hostname+":"+($.port||($.protocol==="https:"?443:80)),{http2Options:Y,headers:z}=$,Z=I6.getSession(G,Y),{HTTP2_HEADER_SCHEME:Q,HTTP2_HEADER_METHOD:N,HTTP2_HEADER_PATH:I,HTTP2_HEADER_STATUS:J}=a4.constants,M={[Q]:$.protocol.replace(":",""),[N]:$.method,[I]:$.path};X.forEach(z,(P,w)=>{w.charAt(0)!==":"&&(M[w]=P)});let V=Z.request(M);return V.once("response",(P)=>{let w=V;P=Object.assign({},P);let K=P[J];delete P[J],w.headers=P,w.statusCode=+K,W(w)}),V}},$2=L6&&function(W){return V6(async function(Y,z,Z){let{data:Q,lookup:N,family:I,httpVersion:J=1,http2Options:M}=W,{responseType:V,responseEncoding:P}=W,w=W.method.toUpperCase(),K,U=!1,B;if(J=+J,Number.isNaN(J))throw TypeError(`Invalid protocol version: '${W.httpVersion}' is not a number`);if(J!==1&&J!==2)throw TypeError(`Unsupported protocol version '${J}'`);let D=J===2;if(N){let _=b4(N,(F)=>X.isArray(F)?F:[F]);N=(F,R,c)=>{_(F,R,(A,i,Q0)=>{if(A)return c(A);let g=X.isArray(i)?i.map((f0)=>i4(f0)):[i4(i,Q0)];R.all?c(A,g):c(A,g[0].address,g[0].family)})}}let q=new Z6;function C(_){try{q.emit("abort",!_||_.type?new p(null,W,B):_)}catch(F){console.warn("emit error",F)}}q.once("abort",z);let y=()=>{if(W.cancelToken)W.cancelToken.unsubscribe(C);if(W.signal)W.signal.removeEventListener("abort",C);q.removeAllListeners()};if(W.cancelToken||W.signal){if(W.cancelToken&&W.cancelToken.subscribe(C),W.signal)W.signal.aborted?C():W.signal.addEventListener("abort",C)}Z((_,F)=>{if(K=!0,F){U=!0,y();return}let{data:R}=_;if(R instanceof N0.Readable||R instanceof N0.Duplex){let c=N0.finished(R,()=>{c(),y()})}else y()});let f=L0(W.baseURL,W.url,W.allowAbsoluteUrls),E=new URL(f,S.hasBrowserEnv?S.origin:void 0),x=E.protocol||p4[0];if(x==="data:"){if(W.maxContentLength>-1){let F=String(W.url||f||"");if(k1(F)>W.maxContentLength)return z(new L("maxContentLength size of "+W.maxContentLength+" exceeded",L.ERR_BAD_RESPONSE,W))}let _;if(w!=="GET")return e(Y,z,{status:405,statusText:"method not allowed",headers:{},config:W});try{_=O1(W.url,V==="blob",{Blob:W.env&&W.env.Blob})}catch(F){throw L.from(F,L.ERR_BAD_REQUEST,W)}if(V==="text"){if(_=_.toString(P),!P||P==="utf8")_=X.stripBOM(_)}else if(V==="stream")_=N0.Readable.from(_);return e(Y,z,{data:_,status:200,statusText:"OK",headers:new T,config:W})}if(p4.indexOf(x)===-1)return z(new L("Unsupported protocol "+x,L.ERR_BAD_REQUEST,W));let b=T.from(W.headers).normalize();b.set("User-Agent","axios/"+V0,!1);let{onUploadProgress:G0,onDownloadProgress:w0}=W,M0=W.maxRate,$0=void 0,r=void 0;if(X.isSpecCompliantForm(Q)){let _=b.getContentType(/boundary=([-_\w\d]{10,70})/i);Q=E4(Q,(F)=>{b.set(F)},{tag:`axios-${V0}-boundary`,boundary:_&&_[1]||void 0})}else if(X.isFormData(Q)&&X.isFunction(Q.getHeaders)){if(b.set(Q.getHeaders()),!b.hasContentLength())try{let _=await s4.promisify(Q.getLength).call(Q);Number.isFinite(_)&&_>=0&&b.setContentLength(_)}catch(_){}}else if(X.isBlob(Q)||X.isFile(Q))Q.size&&b.setContentType(Q.type||"application/octet-stream"),b.setContentLength(Q.size||0),Q=N0.Readable.from(o0(Q));else if(Q&&!X.isStream(Q)){if(Buffer.isBuffer(Q));else if(X.isArrayBuffer(Q))Q=Buffer.from(new Uint8Array(Q));else if(X.isString(Q))Q=Buffer.from(Q,"utf-8");else return z(new L("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",L.ERR_BAD_REQUEST,W));if(b.setContentLength(Q.length,!1),W.maxBodyLength>-1&&Q.length>W.maxBodyLength)return z(new L("Request body larger than maxBodyLength limit",L.ERR_BAD_REQUEST,W))}let W0=X.toFiniteNumber(b.getContentLength());if(X.isArray(M0))$0=M0[0],r=M0[1];else $0=r=M0;if(Q&&(G0||$0)){if(!X.isStream(Q))Q=N0.Readable.from(Q,{objectMode:!1});Q=N0.pipeline([Q,new q1({maxRate:X.toFiniteNumber($0)})],X.noop),G0&&Q.on("progress",n4(Q,S0(W0,Y0(C0(G0),!1,3))))}let z0=void 0;if(W.auth){let _=W.auth.username||"",F=W.auth.password||"";z0=_+":"+F}if(!z0&&E.username){let{username:_,password:F}=E;z0=_+":"+F}z0&&b.delete("authorization");let j;try{j=I0(E.pathname+E.search,W.params,W.paramsSerializer).replace(/^\?/,"")}catch(_){let F=Error(_.message);return F.config=W,F.url=W.url,F.exists=!0,z(F)}b.set("Accept-Encoding","gzip, compress, deflate"+(l4?", br":""),!1);let m={path:j,method:w,headers:b.toJSON(),agents:{http:W.httpAgent,https:W.httpsAgent},auth:z0,protocol:x,family:I,beforeRedirect:B6,beforeRedirects:{},http2Options:M};if(!X.isUndefined(N)&&(m.lookup=N),W.socketPath)m.socketPath=W.socketPath;else m.hostname=E.hostname.startsWith("[")?E.hostname.slice(1,-1):E.hostname,m.port=E.port,e4(m,W.proxy,x+"//"+E.hostname+(E.port?":"+E.port:"")+m.path);let u,H0=K6.test(m.protocol);if(m.agent=H0?W.httpsAgent:W.httpAgent,D)u=w6;else if(W.transport)u=W.transport;else if(W.maxRedirects===0)u=H0?X6:Q6;else{if(W.maxRedirects)m.maxRedirects=W.maxRedirects;if(W.beforeRedirect)m.beforeRedirects.config=W.beforeRedirect;u=H0?M6:J6}if(W.maxBodyLength>-1)m.maxBodyLength=W.maxBodyLength;else m.maxBodyLength=1/0;if(W.insecureHTTPParser)m.insecureHTTPParser=W.insecureHTTPParser;if(B=u.request(m,function(F){if(B.destroyed)return;let R=[F],c=X.toFiniteNumber(F.headers["content-length"]);if(w0||r){let g=new q1({maxRate:X.toFiniteNumber(r)});w0&&g.on("progress",n4(g,S0(c,Y0(C0(w0),!0,3)))),R.push(g)}let A=F,i=F.req||B;if(W.decompress!==!1&&F.headers["content-encoding"]){if(w==="HEAD"||F.statusCode===204)delete F.headers["content-encoding"];switch((F.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":R.push(J0.createUnzip(c4)),delete F.headers["content-encoding"];break;case"deflate":R.push(new y4),R.push(J0.createUnzip(c4)),delete F.headers["content-encoding"];break;case"br":if(l4)R.push(J0.createBrotliDecompress(N6)),delete F.headers["content-encoding"]}}A=R.length>1?N0.pipeline(R,X.noop):R[0];let Q0={status:F.statusCode,statusText:F.statusMessage,headers:new T(F.headers),config:W,request:i};if(V==="stream")Q0.data=A,e(Y,z,Q0);else{let g=[],f0=0;A.on("data",function(v){if(g.push(v),f0+=v.length,W.maxContentLength>-1&&f0>W.maxContentLength)U=!0,A.destroy(),C(new L("maxContentLength size of "+W.maxContentLength+" exceeded",L.ERR_BAD_RESPONSE,W,i))}),A.on("aborted",function(){if(U)return;let v=new L("stream has been aborted",L.ERR_BAD_RESPONSE,W,i);A.destroy(v),z(v)}),A.on("error",function(v){if(B.destroyed)return;z(L.from(v,null,W,i))}),A.on("end",function(){try{let v=g.length===1?g[0]:Buffer.concat(g);if(V!=="arraybuffer"){if(v=v.toString(P),!P||P==="utf8")v=X.stripBOM(v)}Q0.data=v}catch(v){return z(L.from(v,null,W,Q0.request,Q0))}e(Y,z,Q0)})}q.once("abort",(g)=>{if(!A.destroyed)A.emit("error",g),A.destroy()})}),q.once("abort",(_)=>{if(B.close)B.close();else B.destroy(_)}),B.on("error",function(F){z(L.from(F,null,W,B))}),B.on("socket",function(F){F.setKeepAlive(!0,60000)}),W.timeout){let _=parseInt(W.timeout,10);if(Number.isNaN(_)){C(new L("error trying to parse `config.timeout` to int",L.ERR_BAD_OPTION_VALUE,W,B));return}B.setTimeout(_,function(){if(K)return;let R=W.timeout?"timeout of "+W.timeout+"ms exceeded":"timeout exceeded",c=W.transitional||Z0;if(W.timeoutErrorMessage)R=W.timeoutErrorMessage;C(new L(R,c.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,W,B))})}else B.setTimeout(0);if(X.isStream(Q)){let _=!1,F=!1;Q.on("end",()=>{_=!0}),Q.once("error",(R)=>{F=!0,B.destroy(R)}),Q.on("close",()=>{if(!_&&!F)C(new p("Request stream has been aborted",W,B))}),Q.pipe(B)}else Q&&B.write(Q),B.end()})}});var Y2;var G2=H(()=>{a();Y2=S.hasStandardBrowserEnv?(($,W)=>(G)=>{return G=new URL(G,S.origin),$.protocol===G.protocol&&$.host===G.host&&(W||$.port===G.port)})(new URL(S.origin),S.navigator&&/(msie|trident)/i.test(S.navigator.userAgent)):()=>!0});var z2;var Q2=H(()=>{O();a();z2=S.hasStandardBrowserEnv?{write($,W,G,Y,z,Z,Q){if(typeof document>"u")return;let N=[`${$}=${encodeURIComponent(W)}`];if(X.isNumber(G))N.push(`expires=${new Date(G).toUTCString()}`);if(X.isString(Y))N.push(`path=${Y}`);if(X.isString(z))N.push(`domain=${z}`);if(Z===!0)N.push("secure");if(X.isString(Q))N.push(`SameSite=${Q}`);document.cookie=N.join("; ")},read($){if(typeof document>"u")return null;let W=document.cookie.match(new RegExp("(?:^|; )"+$+"=([^;]*)"));return W?decodeURIComponent(W[1]):null},remove($){this.write($,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}}});function s($,W){W=W||{};let G={};function Y(J,M,V,P){if(X.isPlainObject(J)&&X.isPlainObject(M))return X.merge.call({caseless:P},J,M);else if(X.isPlainObject(M))return X.merge({},M);else if(X.isArray(M))return M.slice();return M}function z(J,M,V,P){if(!X.isUndefined(M))return Y(J,M,V,P);else if(!X.isUndefined(J))return Y(void 0,J,V,P)}function Z(J,M){if(!X.isUndefined(M))return Y(void 0,M)}function Q(J,M){if(!X.isUndefined(M))return Y(void 0,M);else if(!X.isUndefined(J))return Y(void 0,J)}function N(J,M,V){if(V in W)return Y(J,M);else if(V in $)return Y(void 0,J)}let I={url:Z,method:Z,data:Z,baseURL:Q,transformRequest:Q,transformResponse:Q,paramsSerializer:Q,timeout:Q,timeoutMessage:Q,withCredentials:Q,withXSRFToken:Q,adapter:Q,responseType:Q,xsrfCookieName:Q,xsrfHeaderName:Q,onUploadProgress:Q,onDownloadProgress:Q,decompress:Q,maxContentLength:Q,maxBodyLength:Q,beforeRedirect:Q,transport:Q,httpAgent:Q,httpsAgent:Q,cancelToken:Q,socketPath:Q,responseEncoding:Q,validateStatus:N,headers:(J,M,V)=>z(X2(J),X2(M),V,!0)};return X.forEach(Object.keys({...$,...W}),function(M){if(M==="__proto__"||M==="constructor"||M==="prototype")return;let V=X.hasOwnProp(I,M)?I[M]:z,P=V($[M],W[M],M);X.isUndefined(P)&&V!==N||(G[M]=P)}),G}var X2=($)=>$ instanceof T?{...$}:$;var $1=H(()=>{O();o()});var W1=($)=>{let W=s({},$),{data:G,withXSRFToken:Y,xsrfHeaderName:z,xsrfCookieName:Z,headers:Q,auth:N}=W;if(W.headers=Q=T.from(Q),W.url=I0(L0(W.baseURL,W.url,W.allowAbsoluteUrls),$.params,$.paramsSerializer),N)Q.set("Authorization","Basic "+btoa((N.username||"")+":"+(N.password?unescape(encodeURIComponent(N.password)):"")));if(X.isFormData(G)){if(S.hasStandardBrowserEnv||S.hasStandardBrowserWebWorkerEnv)Q.setContentType(void 0);else if(X.isFunction(G.getHeaders)){let I=G.getHeaders(),J=["content-type","content-length"];Object.entries(I).forEach(([M,V])=>{if(J.includes(M.toLowerCase()))Q.set(M,V)})}}if(S.hasStandardBrowserEnv){if(Y&&X.isFunction(Y)&&(Y=Y(W)),Y||Y!==!1&&Y2(W.url)){let I=z&&Z&&z2.read(Z);if(I)Q.set(z,I)}}return W};var y1=H(()=>{a();O();G2();Q2();s0();$1();o();p0()});var H6,Z2;var N2=H(()=>{O();a0();E0();l();B0();R1();a();o();e0();y1();H6=typeof XMLHttpRequest<"u",Z2=H6&&function($){return new Promise(function(G,Y){let z=W1($),Z=z.data,Q=T.from(z.headers).normalize(),{responseType:N,onUploadProgress:I,onDownloadProgress:J}=z,M,V,P,w,K;function U(){w&&w(),K&&K(),z.cancelToken&&z.cancelToken.unsubscribe(M),z.signal&&z.signal.removeEventListener("abort",M)}let B=new XMLHttpRequest;B.open(z.method.toUpperCase(),z.url,!0),B.timeout=z.timeout;function D(){if(!B)return;let C=T.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),f={data:!N||N==="text"||N==="json"?B.responseText:B.response,status:B.status,statusText:B.statusText,headers:C,config:$,request:B};e(function(x){G(x),U()},function(x){Y(x),U()},f),B=null}if("onloadend"in B)B.onloadend=D;else B.onreadystatechange=function(){if(!B||B.readyState!==4)return;if(B.status===0&&!(B.responseURL&&B.responseURL.indexOf("file:")===0))return;setTimeout(D)};if(B.onabort=function(){if(!B)return;Y(new L("Request aborted",L.ECONNABORTED,$,B)),B=null},B.onerror=function(y){let f=y&&y.message?y.message:"Network Error",E=new L(f,L.ERR_NETWORK,$,B);E.event=y||null,Y(E),B=null},B.ontimeout=function(){let y=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded",f=z.transitional||Z0;if(z.timeoutErrorMessage)y=z.timeoutErrorMessage;Y(new L(y,f.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,$,B)),B=null},Z===void 0&&Q.setContentType(null),"setRequestHeader"in B)X.forEach(Q.toJSON(),function(y,f){B.setRequestHeader(f,y)});if(!X.isUndefined(z.withCredentials))B.withCredentials=!!z.withCredentials;if(N&&N!=="json")B.responseType=z.responseType;if(J)[P,K]=Y0(J,!0),B.addEventListener("progress",P);if(I&&B.upload)[V,w]=Y0(I),B.upload.addEventListener("progress",V),B.upload.addEventListener("loadend",w);if(z.cancelToken||z.signal){if(M=(C)=>{if(!B)return;Y(!C||C.type?new p(null,$,B):C),B.abort(),B=null},z.cancelToken&&z.cancelToken.subscribe(M),z.signal)z.signal.aborted?M():z.signal.addEventListener("abort",M)}let q=b0(z.url);if(q&&S.protocols.indexOf(q)===-1){Y(new L("Unsupported protocol "+q+":",L.ERR_BAD_REQUEST,$));return}B.send(Z||null)})}});var F6=($,W)=>{let{length:G}=$=$?$.filter(Boolean):[];if(W||G){let Y=new AbortController,z,Z=function(J){if(!z){z=!0,N();let M=J instanceof Error?J:this.reason;Y.abort(M instanceof L?M:new p(M instanceof Error?M.message:M))}},Q=W&&setTimeout(()=>{Q=null,Z(new L(`timeout of ${W}ms exceeded`,L.ETIMEDOUT))},W),N=()=>{if($)Q&&clearTimeout(Q),Q=null,$.forEach((J)=>{J.unsubscribe?J.unsubscribe(Z):J.removeEventListener("abort",Z)}),$=null};$.forEach((J)=>J.addEventListener("abort",Z));let{signal:I}=Y;return I.unsubscribe=()=>X.asap(N),I}},J2;var M2=H(()=>{B0();l();O();J2=F6});var U6=function*($,W){let G=$.byteLength;if(!W||G<W){yield $;return}let Y=0,z;while(Y<G)z=Y+W,yield $.slice(Y,z),Y=z},_6=async function*($,W){for await(let G of S6($))yield*U6(G,W)},S6=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let W=$.getReader();try{for(;;){let{done:G,value:Y}=await W.read();if(G)break;yield Y}}finally{await W.cancel()}},x1=($,W,G,Y)=>{let z=_6($,W),Z=0,Q,N=(I)=>{if(!Q)Q=!0,Y&&Y(I)};return new ReadableStream({async pull(I){try{let{done:J,value:M}=await z.next();if(J){N(),I.close();return}let V=M.byteLength;if(G){let P=Z+=V;G(P)}I.enqueue(new Uint8Array(M))}catch(J){throw N(J),J}},cancel(I){return N(I),z.return()}},{highWaterMark:2})};var K2=()=>{};var I2=65536,Y1,C6,B2,L2,V2=($,...W)=>{try{return!!$(...W)}catch(G){return!1}},D6=($)=>{$=X.merge.call({skipUndefined:!0},C6,$);let{fetch:W,Request:G,Response:Y}=$,z=W?Y1(W):typeof fetch==="function",Z=Y1(G),Q=Y1(Y);if(!z)return!1;let N=z&&Y1(B2),I=z&&(typeof L2==="function"?((K)=>(U)=>K.encode(U))(new L2):async(K)=>new Uint8Array(await new G(K).arrayBuffer())),J=Z&&N&&V2(()=>{let K=!1,U=new B2,B=new G(S.origin,{body:U,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return U.cancel(),K&&!B}),M=Q&&N&&V2(()=>X.isReadableStream(new Y("").body)),V={stream:M&&((K)=>K.body)};z&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!V[K]&&(V[K]=(U,B)=>{let D=U&&U[K];if(D)return D.call(U);throw new L(`Response type '${K}' is not supported`,L.ERR_NOT_SUPPORT,B)})})})();let P=async(K)=>{if(K==null)return 0;if(X.isBlob(K))return K.size;if(X.isSpecCompliantForm(K))return(await new G(S.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(X.isArrayBufferView(K)||X.isArrayBuffer(K))return K.byteLength;if(X.isURLSearchParams(K))K=K+"";if(X.isString(K))return(await I(K)).byteLength},w=async(K,U)=>{let B=X.toFiniteNumber(K.getContentLength());return B==null?P(U):B};return async(K)=>{let{url:U,method:B,data:D,signal:q,cancelToken:C,timeout:y,onDownloadProgress:f,onUploadProgress:E,responseType:x,headers:b,withCredentials:G0="same-origin",fetchOptions:w0}=W1(K),M0=W||fetch;x=x?(x+"").toLowerCase():"text";let $0=J2([q,C&&C.toAbortSignal()],y),r=null,W0=$0&&$0.unsubscribe&&(()=>{$0.unsubscribe()}),z0;try{if(E&&J&&B!=="get"&&B!=="head"&&(z0=await w(b,D))!==0){let F=new G(U,{method:"POST",body:D,duplex:"half"}),R;if(X.isFormData(D)&&(R=F.headers.get("content-type")))b.setContentType(R);if(F.body){let[c,A]=S0(z0,Y0(C0(E)));D=x1(F.body,I2,c,A)}}if(!X.isString(G0))G0=G0?"include":"omit";let j=Z&&"credentials"in G.prototype,m={...w0,signal:$0,method:B.toUpperCase(),headers:b.normalize().toJSON(),body:D,duplex:"half",credentials:j?G0:void 0};r=Z&&new G(U,m);let u=await(Z?M0(r,w0):M0(U,m)),H0=M&&(x==="stream"||x==="response");if(M&&(f||H0&&W0)){let F={};["status","statusText","headers"].forEach((i)=>{F[i]=u[i]});let R=X.toFiniteNumber(u.headers.get("content-length")),[c,A]=f&&S0(R,Y0(C0(f),!0))||[];u=new Y(x1(u.body,I2,c,()=>{A&&A(),W0&&W0()}),F)}x=x||"text";let _=await V[X.findKey(V,x)||"text"](u,K);return!H0&&W0&&W0(),await new Promise((F,R)=>{e(F,R,{data:_,headers:T.from(u.headers),status:u.status,statusText:u.statusText,config:K,request:r})})}catch(j){if(W0&&W0(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message))throw Object.assign(new L("Network Error",L.ERR_NETWORK,K,r,j&&j.response),{cause:j.cause||j});throw L.from(j,j&&j.code,K,r,j&&j.response)}}},R6,b1=($)=>{let W=$&&$.env||{},{fetch:G,Request:Y,Response:z}=W,Z=[Y,z,G],Q=Z.length,N=Q,I,J,M=R6;while(N--)I=Z[N],J=M.get(I),J===void 0&&M.set(I,J=N?new Map:D6(W)),M=J;return J},O8;var P2=H(()=>{a();O();l();M2();K2();o();e0();y1();a0();({isFunction:Y1}=X),C6=(({Request:$,Response:W})=>({Request:$,Response:W}))(X.global),{ReadableStream:B2,TextEncoder:L2}=X.global,R6=new Map,O8=b1()});function q6($,W){$=X.isArray($)?$:[$];let{length:G}=$,Y,z,Z={};for(let Q=0;Q<G;Q++){Y=$[Q];let N;if(z=Y,!T6(Y)){if(z=j1[(N=String(Y)).toLowerCase()],z===void 0)throw new L(`Unknown adapter '${N}'`)}if(z&&(X.isFunction(z)||(z=z.get(W))))break;Z[N||"#"+Q]=z}if(!z){let Q=Object.entries(Z).map(([I,J])=>`adapter ${I} `+(J===!1?"is not supported by the environment":"is not available in the build")),N=G?Q.length>1?`since :
@@ -8,4 +8,4 @@ import{H6 as F5,I6 as t4,J6 as G6,L6 as z6}from"./cli-0.1.11-h2hxx8ma.mjs";impor
8
8
  `),Q=Z===-1?-1:z.indexOf(`
9
9
  `,Z+1),N=Q===-1?"":z.slice(Q+1);if(!String(G.stack).endsWith(N))G.stack+=`
10
10
  `+z}}catch(Z){}}throw G}}_request($,W){if(typeof $==="string")W=W||{},W.url=$;else W=$||{};W=s(this.defaults,W);let{transitional:G,paramsSerializer:Y,headers:z}=W;if(G!==void 0)m0.assertOptions(G,{silentJSONParsing:n.transitional(n.boolean),forcedJSONParsing:n.transitional(n.boolean),clarifyTimeoutError:n.transitional(n.boolean),legacyInterceptorReqResOrdering:n.transitional(n.boolean)},!1);if(Y!=null)if(X.isFunction(Y))W.paramsSerializer={serialize:Y};else m0.assertOptions(Y,{encode:n.function,serialize:n.function},!0);if(W.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)W.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else W.allowAbsoluteUrls=!0;m0.assertOptions(W,{baseUrl:n.spelling("baseURL"),withXsrfToken:n.spelling("withXSRFToken")},!0),W.method=(W.method||this.defaults.method||"get").toLowerCase();let Z=z&&X.merge(z.common,z[W.method]);z&&X.forEach(["delete","get","head","post","put","patch","common"],(w)=>{delete z[w]}),W.headers=T.concat(Z,z);let Q=[],N=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(W)===!1)return;N=N&&K.synchronous;let U=W.transitional||Z0;if(U&&U.legacyInterceptorReqResOrdering)Q.unshift(K.fulfilled,K.rejected);else Q.push(K.fulfilled,K.rejected)});let I=[];this.interceptors.response.forEach(function(K){I.push(K.fulfilled,K.rejected)});let J,M=0,V;if(!N){let w=[z1.bind(this),void 0];w.unshift(...Q),w.push(...I),V=w.length,J=Promise.resolve(W);while(M<V)J=J.then(w[M++],w[M++]);return J}V=Q.length;let P=W;while(M<V){let w=Q[M++],K=Q[M++];try{P=w(P)}catch(U){K.call(this,U);break}}try{J=z1.call(this,P)}catch(w){return Promise.reject(w)}M=0,V=I.length;while(M<V)J=J.then(I[M++],I[M++]);return J}getUri($){$=s(this.defaults,$);let W=L0($.baseURL,$.url,$.allowAbsoluteUrls);return I0(W,$.params,$.paramsSerializer)}}var n,h0;var _2=H(()=>{O();p0();Z4();H2();$1();s0();U2();o();E0();n=m0.validators;X.forEach(["delete","get","head","options"],function(W){v0.prototype[W]=function(G,Y){return this.request(s(Y||{},{method:W,url:G,data:(Y||{}).data}))}});X.forEach(["post","put","patch"],function(W){function G(Y){return function(Z,Q,N){return this.request(s(N||{},{method:W,headers:Y?{"Content-Type":"multipart/form-data"}:{},url:Z,data:Q}))}}v0.prototype[W]=G(),v0.prototype[W+"Form"]=G(!0)});h0=v0});class h1{constructor($){if(typeof $!=="function")throw TypeError("executor must be a function.");let W;this.promise=new Promise(function(z){W=z});let G=this;this.promise.then((Y)=>{if(!G._listeners)return;let z=G._listeners.length;while(z-- >0)G._listeners[z](Y);G._listeners=null}),this.promise.then=(Y)=>{let z,Z=new Promise((Q)=>{G.subscribe(Q),z=Q}).then(Y);return Z.cancel=function(){G.unsubscribe(z)},Z},$(function(z,Z,Q){if(G.reason)return;G.reason=new p(z,Z,Q),W(G.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;let W=this._listeners.indexOf($);if(W!==-1)this._listeners.splice(W,1)}toAbortSignal(){let $=new AbortController,W=(G)=>{$.abort(G)};return this.subscribe(W),$.signal.unsubscribe=()=>this.unsubscribe(W),$.signal}static source(){let $;return{token:new h1(function(Y){$=Y}),cancel:$}}}var S2;var C2=H(()=>{B0();S2=h1});function f1($){return function(G){return $.apply(null,G)}}var D2=()=>{};function u1($){return X.isObject($)&&$.isAxiosError===!0}var R2=H(()=>{O()});var g1,O2;var T2=H(()=>{g1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(g1).forEach(([$,W])=>{g1[W]=$});O2=g1});function q2($){let W=new h0($),G=D0(h0.prototype.request,W);return X.extend(G,h0.prototype,W,{allOwnKeys:!0}),X.extend(G,W,null,{allOwnKeys:!0}),G.create=function(z){return q2(s($,z))},G}var k,E2;var A2=H(()=>{O();Z1();_2();$1();i0();F1();B0();C2();S1();r0();q0();l();D2();R2();o();m1();T2();k=q2(_0);k.Axios=h0;k.CanceledError=p;k.CancelToken=S2;k.isCancel=x0;k.VERSION=V0;k.toFormData=X0;k.AxiosError=L;k.Cancel=k.CanceledError;k.all=function(W){return Promise.all(W)};k.spread=f1;k.isAxiosError=u1;k.mergeConfig=s;k.AxiosHeaders=T;k.formToJSON=($)=>n0(X.isHTMLForm($)?new FormData($):$);k.getAdapter=G1.getAdapter;k.HttpStatusCode=O2;k.default=k;E2=k});var CW,DW,RW,OW,TW,qW,EW,AW,kW,yW,xW,bW,jW,mW,vW,hW;var A6=H(()=>{A2();({Axios:CW,AxiosError:DW,CanceledError:RW,isCancel:OW,CancelToken:TW,VERSION:qW,all:EW,Cancel:AW,isAxiosError:kW,spread:yW,toFormData:xW,AxiosHeaders:bW,HttpStatusCode:jW,formToJSON:mW,getAdapter:vW,mergeConfig:hW}=E2)});
11
- export{E2 as p6,CW as q6,DW as r6,RW as s6,OW as t6,TW as u6,qW as v6,EW as w6,AW as x6,kW as y6,yW as z6,xW as A6,bW as B6,jW as C6,mW as D6,vW as E6,hW as F6,A6 as G6};
11
+ export{E2 as C6,CW as D6,DW as E6,RW as F6,OW as G6,TW as H6,qW as I6,EW as J6,AW as K6,kW as L6,yW as M6,xW as N6,bW as O6,jW as P6,mW as Q6,vW as R6,hW as S6,A6 as T6};
@@ -1,4 +1,4 @@
1
- import{$j as pJ,Kh as dJ,LN as TJ,Tj as DJ,Vj as cJ,Zj as IJ,_j as BJ,sO as jJ,wO as ZV}from"./cli-0.1.11-s8ygndzf.mjs";import{$8 as mJ,Cba as NJ,F7 as L,Gaa as WJ,K7 as kJ,N8 as fJ,Qaa as uJ,T7 as c,U7 as PJ,Vba as hJ,X8 as qJ,n8 as VJ,p8 as p}from"./cli-0.1.11-v7bwjqf0.mjs";import{aea as j,bea as zJ}from"./cli-0.1.11-7xr2ermy.mjs";import{dga as f,ega as gJ}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as e,Jga as SJ,Tga as JJ,Xga as bJ,bha as Q,eha as yJ}from"./cli-0.1.11-vq5fvf9m.mjs";import{$ia as wJ,_ia as AJ}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as LJ,Rna as XJ}from"./cli-0.1.11-yrfxpjhr.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await y(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let H=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,H)W(),H=!1;await y(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let H=W.charCodeAt(Y);if(H>=97&&H<=122)V|=1<<H-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),H=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);H[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,X=[],N=-1/0,{paths:D,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?D[M]:q[M],E=B.indexOf(H[0]);if(E===-1)continue;b[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(H[A],u+1),E===-1)continue J;b[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(X.length===W&&_+g-R<=N)continue;let S=D[M],UJ=U[M],T=Y*16+g-R;T+=HJ(S,b[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,b[A],!1);if(T+=Math.max(0,32-(UJ>>2)),X.length<W){if(X.push({path:S,fuzzScore:T}),X.length===W)X.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=X[0].fuzzScore}else if(T>N){let A=0,F=X.length;while(A<F){let h=A+F>>1;if(X[h].fuzzScore<T)A=h+1;else F=h}X.splice(A,0,{path:S,fuzzScore:T}),X.shift(),N=X[0].fuzzScore}}X.sort((M,B)=>B.fuzzScore-M.fuzzScore);let I=X.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let B=X[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function y(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let H=Y.length;for(let _=0;_<Y.length;_++){let X=Y.charCodeAt(_);if(X===47||X===92){H=_;break}}let $=Y.slice(0,H);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,H)=>{let $=Y.length-H.length;if($!==0)return $;return Y<H?-1:Y>H?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,b;var QJ=XJ(()=>{b=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let H=J[Y];for(let $=0;$<H.length;$++)V=(V^H.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let H=0;H<Y.length;H++)V=(V^Y.charCodeAt(H))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],H=[...new Set([J,W])],$=KJ.default(),_=!1,X=H.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(X.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${X[q]}`)}let D=_?$:null;return n=D,s=Z,D}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),H=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-H}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
1
+ import{BO as ZV,Ph as dJ,QN as TJ,Yj as DJ,_j as cJ,ck as IJ,dk as BJ,ek as pJ,xO as jJ}from"./cli-0.1.13-fh5dndvp.mjs";import{A8 as VJ,C8 as p,Pba as NJ,S7 as L,Taa as WJ,X7 as kJ,_8 as fJ,bba as uJ,e8 as c,f8 as PJ,gca as hJ,i9 as qJ,m9 as mJ}from"./cli-0.1.13-dag38tkx.mjs";import{nea as j,oea as zJ}from"./cli-0.1.13-wwnez3j0.mjs";import{qga as f,rga as gJ}from"./cli-0.1.13-45hjhcbc.mjs";import{Qga as e,Wga as SJ,eha as JJ,iha as bJ,oha as Q,rha as yJ}from"./cli-0.1.13-144gn3fd.mjs";import{lja as AJ,mja as wJ}from"./cli-0.1.13-52f40ba4.mjs";import{Tna as LJ,Xna as XJ}from"./cli-0.1.13-bj67mp7n.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await y(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let H=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,H)W(),H=!1;await y(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let H=W.charCodeAt(Y);if(H>=97&&H<=122)V|=1<<H-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),H=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);H[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,X=[],N=-1/0,{paths:D,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?D[M]:q[M],E=B.indexOf(H[0]);if(E===-1)continue;b[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(H[A],u+1),E===-1)continue J;b[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(X.length===W&&_+g-R<=N)continue;let S=D[M],UJ=U[M],T=Y*16+g-R;T+=HJ(S,b[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,b[A],!1);if(T+=Math.max(0,32-(UJ>>2)),X.length<W){if(X.push({path:S,fuzzScore:T}),X.length===W)X.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=X[0].fuzzScore}else if(T>N){let A=0,F=X.length;while(A<F){let h=A+F>>1;if(X[h].fuzzScore<T)A=h+1;else F=h}X.splice(A,0,{path:S,fuzzScore:T}),X.shift(),N=X[0].fuzzScore}}X.sort((M,B)=>B.fuzzScore-M.fuzzScore);let I=X.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let B=X[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function y(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let H=Y.length;for(let _=0;_<Y.length;_++){let X=Y.charCodeAt(_);if(X===47||X===92){H=_;break}}let $=Y.slice(0,H);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,H)=>{let $=Y.length-H.length;if($!==0)return $;return Y<H?-1:Y>H?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,b;var QJ=XJ(()=>{b=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let H=J[Y];for(let $=0;$<H.length;$++)V=(V^H.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let H=0;H<Y.length;H++)V=(V^Y.charCodeAt(H))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],H=[...new Set([J,W])],$=KJ.default(),_=!1,X=H.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(X.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${X[q]}`)}let D=_?$:null;return n=D,s=Z,D}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),H=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-H}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
2
  `).filter(Boolean),X=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=X.length;X=N.filter(X),Q(`[FileIndex] applied ignore patterns: ${q} -> ${X.length} files`)}C=X;let D=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${X.length} tracked files in ${D}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:X.length,tracked_count:X.length,untracked_count:0,duration_ms:D}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
3
3
  `).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),sJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return X}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await y(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let H=O.dirname(J[Y]);while(H!=="."&&!V.has(H)){let $=O.dirname(H);if($===H)break;V.add(H),H=$}}}async function iJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await DJ(Y,".",J)).map((X)=>O.relative(j(),X)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,H=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(H)]);ZJ=_;let X=[...$,..._],N=await FJ(X);$J=N;let D=[...N,...X],q=xJ(D);if(q!==i)await W.loadFromFileListAsync(D).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function vV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{return(await J.readdir(W)).map((V)=>{let Y=O.join(W,V.name),H=O.relative(W,Y);return V.isDirectory()?H+O.sep:H})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,H="."+O.sep;if(J.startsWith(H))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,H){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let X=V+$.length;H(X)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=15,VV=5000;var YV=XJ(()=>{pJ();QJ();gJ();hJ();zJ();yJ();SJ();PJ();bJ();fJ();ZV();kJ();mJ();cJ();uJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
4
- export{jV as rg,UV as sg,vV as tg,EJ as ug,GV as vg,RV as wg,YV as xg};
4
+ export{jV as ig,UV as jg,vV as kg,EJ as lg,GV as mg,RV as ng,YV as og};
@@ -1,4 +1,4 @@
1
- import{Ada as f,Cda as z,Dda as Q,Eda as l,Gda as I,Hda as x,Ida as w,Jda as X,Kda as G,Lda as h,Mda as q,Nda as B,Oda as Y,Pda as D,Qda as H,Rda as a,Sda as S,Xda as Of,zda as d}from"./cli-0.1.11-h7e4rkwk.mjs";import{Rna as R}from"./cli-0.1.11-yrfxpjhr.mjs";var Pf="2025-11-25",Fy,Tf="io.modelcontextprotocol/related-task",M="2.0",K,o,r,by,kf,Uf,g,Z,J,jy=(y)=>J.safeParse(y).success,V,_,$,W,p,e,Jy=(y)=>e.safeParse(y).success,ff,Ny=(y)=>ff.safeParse(y).success,n,Oy=(y)=>n.safeParse(y).success,U,m,Py=(y)=>m.safeParse(y).success,wf,Ty,yf,Lf,Df,Mf,N,F,xf,pf,Rf,hf,qf,Sf,gf,nf,mf,cf,zf,ky=(y)=>zf.safeParse(y).success,Bf,vf,tf,Gf,Ef,O,P,Cf,T,Hf,uf,If,Kf,Qf,Vf,Uy,Wf,Xf,Yf,Ly,Zf,_f,c,$f,k,b,Af,sf,df,lf,af,of,i,rf,ef,fw,ww,yw,Dw,xw,zw,Bw,Gw,Hw,Iw,Kw,Qw,Vw,Ww,v,t,E,Xw,Yw,Zw,C,_w,$w,Aw,Fw,bw,Ff,jw,Jw,bf,My,Nw,Ow,Pw,py,jf,Tw,kw,Uw,Lw,Mw,pw,Rw,hw,qw,L,Sw,gw,nw,mw,cw,iw,vw,tw,Ew,Cw,uw,sw,dw,lw,aw,ow,rw,ew,fy,wy,yy,Dy,xy,zy,By,Gy,Hy,Iy,Ky,Qy,Vy,Wy,Xy,Ry,hy,qy,Sy,gy,ny,u,Jf;var Nf=R(()=>{Of();Fy=[Pf,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],K=a((y)=>y!==null&&(typeof y==="object"||typeof y==="function")),o=G([f(),z().int()]),r=f(),by=X({ttl:z().optional(),pollInterval:z().optional()}),kf=w({ttl:z().optional()}),Uf=w({taskId:f()}),g=X({progressToken:o.optional(),[Tf]:Uf.optional()}),Z=w({_meta:g.optional()}),J=Z.extend({task:kf.optional()}),V=w({method:f(),params:Z.loose().optional()}),_=w({_meta:g.optional()}),$=w({method:f(),params:_.loose().optional()}),W=X({_meta:g.optional()}),p=G([f(),z().int()]),e=w({jsonrpc:D(M),id:p,...V.shape}).strict(),ff=w({jsonrpc:D(M),...$.shape}).strict(),n=w({jsonrpc:D(M),id:p,result:W}).strict();(function(y){y[y.ConnectionClosed=-32000]="ConnectionClosed",y[y.RequestTimeout=-32001]="RequestTimeout",y[y.ParseError=-32700]="ParseError",y[y.InvalidRequest=-32600]="InvalidRequest",y[y.MethodNotFound=-32601]="MethodNotFound",y[y.InvalidParams=-32602]="InvalidParams",y[y.InternalError=-32603]="InternalError",y[y.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(U||(U={}));m=w({jsonrpc:D(M),id:p.optional(),error:w({code:z().int(),message:f(),data:I().optional()})}).strict(),wf=G([e,ff,n,m]),Ty=G([n,m]),yf=W.strict(),Lf=_.extend({requestId:p.optional(),reason:f().optional()}),Df=$.extend({method:D("notifications/cancelled"),params:Lf}),Mf=w({src:f(),mimeType:f().optional(),sizes:x(f()).optional(),theme:Y(["light","dark"]).optional()}),N=w({icons:x(Mf).optional()}),F=w({name:f(),title:f().optional()}),xf=F.extend({...F.shape,...N.shape,version:f(),websiteUrl:f().optional(),description:f().optional()}),pf=q(w({applyDefaults:Q().optional()}),B(f(),I())),Rf=S((y)=>{if(y&&typeof y==="object"&&!Array.isArray(y)){if(Object.keys(y).length===0)return{form:{}}}return y},q(w({form:pf.optional(),url:K.optional()}),B(f(),I()).optional())),hf=X({list:K.optional(),cancel:K.optional(),requests:X({sampling:X({createMessage:K.optional()}).optional(),elicitation:X({create:K.optional()}).optional()}).optional()}),qf=X({list:K.optional(),cancel:K.optional(),requests:X({tools:X({call:K.optional()}).optional()}).optional()}),Sf=w({experimental:B(f(),K).optional(),sampling:w({context:K.optional(),tools:K.optional()}).optional(),elicitation:Rf.optional(),roots:w({listChanged:Q().optional()}).optional(),tasks:hf.optional(),extensions:B(f(),K).optional()}),gf=Z.extend({protocolVersion:f(),capabilities:Sf,clientInfo:xf}),nf=V.extend({method:D("initialize"),params:gf}),mf=w({experimental:B(f(),K).optional(),logging:K.optional(),completions:K.optional(),prompts:w({listChanged:Q().optional()}).optional(),resources:w({subscribe:Q().optional(),listChanged:Q().optional()}).optional(),tools:w({listChanged:Q().optional()}).optional(),tasks:qf.optional(),extensions:B(f(),K).optional()}),cf=W.extend({protocolVersion:f(),capabilities:mf,serverInfo:xf,instructions:f().optional()}),zf=$.extend({method:D("notifications/initialized"),params:_.optional()}),Bf=V.extend({method:D("ping"),params:Z.optional()}),vf=w({progress:z(),total:H(z()),message:H(f())}),tf=w({..._.shape,...vf.shape,progressToken:o}),Gf=$.extend({method:D("notifications/progress"),params:tf}),Ef=Z.extend({cursor:r.optional()}),O=V.extend({params:Ef.optional()}),P=W.extend({nextCursor:r.optional()}),Cf=Y(["working","input_required","completed","failed","cancelled"]),T=w({taskId:f(),status:Cf,ttl:G([z(),l()]),createdAt:f(),lastUpdatedAt:f(),pollInterval:H(z()),statusMessage:H(f())}),Hf=W.extend({task:T}),uf=_.merge(T),If=$.extend({method:D("notifications/tasks/status"),params:uf}),Kf=V.extend({method:D("tasks/get"),params:Z.extend({taskId:f()})}),Qf=W.merge(T),Vf=V.extend({method:D("tasks/result"),params:Z.extend({taskId:f()})}),Uy=W.loose(),Wf=O.extend({method:D("tasks/list")}),Xf=P.extend({tasks:x(T)}),Yf=V.extend({method:D("tasks/cancel"),params:Z.extend({taskId:f()})}),Ly=W.merge(T),Zf=w({uri:f(),mimeType:H(f()),_meta:B(f(),I()).optional()}),_f=Zf.extend({text:f()}),c=f().refine((y)=>{try{return atob(y),!0}catch{return!1}},{message:"Invalid Base64 string"}),$f=Zf.extend({blob:c}),k=Y(["user","assistant"]),b=w({audience:x(k).optional(),priority:z().min(0).max(1).optional(),lastModified:d.datetime({offset:!0}).optional()}),Af=w({...F.shape,...N.shape,uri:f(),description:H(f()),mimeType:H(f()),size:H(z()),annotations:b.optional(),_meta:H(X({}))}),sf=w({...F.shape,...N.shape,uriTemplate:f(),description:H(f()),mimeType:H(f()),annotations:b.optional(),_meta:H(X({}))}),df=O.extend({method:D("resources/list")}),lf=P.extend({resources:x(Af)}),af=O.extend({method:D("resources/templates/list")}),of=P.extend({resourceTemplates:x(sf)}),i=Z.extend({uri:f()}),rf=i,ef=V.extend({method:D("resources/read"),params:rf}),fw=W.extend({contents:x(G([_f,$f]))}),ww=$.extend({method:D("notifications/resources/list_changed"),params:_.optional()}),yw=i,Dw=V.extend({method:D("resources/subscribe"),params:yw}),xw=i,zw=V.extend({method:D("resources/unsubscribe"),params:xw}),Bw=_.extend({uri:f()}),Gw=$.extend({method:D("notifications/resources/updated"),params:Bw}),Hw=w({name:f(),description:H(f()),required:H(Q())}),Iw=w({...F.shape,...N.shape,description:H(f()),arguments:H(x(Hw)),_meta:H(X({}))}),Kw=O.extend({method:D("prompts/list")}),Qw=P.extend({prompts:x(Iw)}),Vw=Z.extend({name:f(),arguments:B(f(),f()).optional()}),Ww=V.extend({method:D("prompts/get"),params:Vw}),v=w({type:D("text"),text:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),t=w({type:D("image"),data:c,mimeType:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),E=w({type:D("audio"),data:c,mimeType:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),Xw=w({type:D("tool_use"),name:f(),id:f(),input:B(f(),I()),_meta:B(f(),I()).optional()}),Yw=w({type:D("resource"),resource:G([_f,$f]),annotations:b.optional(),_meta:B(f(),I()).optional()}),Zw=Af.extend({type:D("resource_link")}),C=G([v,t,E,Zw,Yw]),_w=w({role:k,content:C}),$w=W.extend({description:f().optional(),messages:x(_w)}),Aw=$.extend({method:D("notifications/prompts/list_changed"),params:_.optional()}),Fw=w({title:f().optional(),readOnlyHint:Q().optional(),destructiveHint:Q().optional(),idempotentHint:Q().optional(),openWorldHint:Q().optional()}),bw=w({taskSupport:Y(["required","optional","forbidden"]).optional()}),Ff=w({...F.shape,...N.shape,description:f().optional(),inputSchema:w({type:D("object"),properties:B(f(),K).optional(),required:x(f()).optional()}).catchall(I()),outputSchema:w({type:D("object"),properties:B(f(),K).optional(),required:x(f()).optional()}).catchall(I()).optional(),annotations:Fw.optional(),execution:bw.optional(),_meta:B(f(),I()).optional()}),jw=O.extend({method:D("tools/list")}),Jw=P.extend({tools:x(Ff)}),bf=W.extend({content:x(C).default([]),structuredContent:B(f(),I()).optional(),isError:Q().optional()}),My=bf.or(W.extend({toolResult:I()})),Nw=J.extend({name:f(),arguments:B(f(),I()).optional()}),Ow=V.extend({method:D("tools/call"),params:Nw}),Pw=$.extend({method:D("notifications/tools/list_changed"),params:_.optional()}),py=w({autoRefresh:Q().default(!0),debounceMs:z().int().nonnegative().default(300)}),jf=Y(["debug","info","notice","warning","error","critical","alert","emergency"]),Tw=Z.extend({level:jf}),kw=V.extend({method:D("logging/setLevel"),params:Tw}),Uw=_.extend({level:jf,logger:f().optional(),data:I()}),Lw=$.extend({method:D("notifications/message"),params:Uw}),Mw=w({name:f().optional()}),pw=w({hints:x(Mw).optional(),costPriority:z().min(0).max(1).optional(),speedPriority:z().min(0).max(1).optional(),intelligencePriority:z().min(0).max(1).optional()}),Rw=w({mode:Y(["auto","required","none"]).optional()}),hw=w({type:D("tool_result"),toolUseId:f().describe("The unique identifier for the corresponding tool call."),content:x(C).default([]),structuredContent:w({}).loose().optional(),isError:Q().optional(),_meta:B(f(),I()).optional()}),qw=h("type",[v,t,E]),L=h("type",[v,t,E,Xw,hw]),Sw=w({role:k,content:G([L,x(L)]),_meta:B(f(),I()).optional()}),gw=J.extend({messages:x(Sw),modelPreferences:pw.optional(),systemPrompt:f().optional(),includeContext:Y(["none","thisServer","allServers"]).optional(),temperature:z().optional(),maxTokens:z().int(),stopSequences:x(f()).optional(),metadata:K.optional(),tools:x(Ff).optional(),toolChoice:Rw.optional()}),nw=V.extend({method:D("sampling/createMessage"),params:gw}),mw=W.extend({model:f(),stopReason:H(Y(["endTurn","stopSequence","maxTokens"]).or(f())),role:k,content:qw}),cw=W.extend({model:f(),stopReason:H(Y(["endTurn","stopSequence","maxTokens","toolUse"]).or(f())),role:k,content:G([L,x(L)])}),iw=w({type:D("boolean"),title:f().optional(),description:f().optional(),default:Q().optional()}),vw=w({type:D("string"),title:f().optional(),description:f().optional(),minLength:z().optional(),maxLength:z().optional(),format:Y(["email","uri","date","date-time"]).optional(),default:f().optional()}),tw=w({type:Y(["number","integer"]),title:f().optional(),description:f().optional(),minimum:z().optional(),maximum:z().optional(),default:z().optional()}),Ew=w({type:D("string"),title:f().optional(),description:f().optional(),enum:x(f()),default:f().optional()}),Cw=w({type:D("string"),title:f().optional(),description:f().optional(),oneOf:x(w({const:f(),title:f()})),default:f().optional()}),uw=w({type:D("string"),title:f().optional(),description:f().optional(),enum:x(f()),enumNames:x(f()).optional(),default:f().optional()}),sw=G([Ew,Cw]),dw=w({type:D("array"),title:f().optional(),description:f().optional(),minItems:z().optional(),maxItems:z().optional(),items:w({type:D("string"),enum:x(f())}),default:x(f()).optional()}),lw=w({type:D("array"),title:f().optional(),description:f().optional(),minItems:z().optional(),maxItems:z().optional(),items:w({anyOf:x(w({const:f(),title:f()}))}),default:x(f()).optional()}),aw=G([dw,lw]),ow=G([uw,sw,aw]),rw=G([ow,iw,vw,tw]),ew=J.extend({mode:D("form").optional(),message:f(),requestedSchema:w({type:D("object"),properties:B(f(),rw),required:x(f()).optional()})}),fy=J.extend({mode:D("url"),message:f(),elicitationId:f(),url:f().url()}),wy=G([ew,fy]),yy=V.extend({method:D("elicitation/create"),params:wy}),Dy=_.extend({elicitationId:f()}),xy=$.extend({method:D("notifications/elicitation/complete"),params:Dy}),zy=W.extend({action:Y(["accept","decline","cancel"]),content:S((y)=>y===null?void 0:y,B(f(),G([f(),z(),Q(),x(f())])).optional())}),By=w({type:D("ref/resource"),uri:f()}),Gy=w({type:D("ref/prompt"),name:f()}),Hy=Z.extend({ref:G([Gy,By]),argument:w({name:f(),value:f()}),context:w({arguments:B(f(),f()).optional()}).optional()}),Iy=V.extend({method:D("completion/complete"),params:Hy}),Ky=W.extend({completion:X({values:x(f()).max(100),total:H(z().int()),hasMore:H(Q())})}),Qy=w({uri:f().startsWith("file://"),name:f().optional(),_meta:B(f(),I()).optional()}),Vy=V.extend({method:D("roots/list"),params:Z.optional()}),Wy=W.extend({roots:x(Qy)}),Xy=$.extend({method:D("notifications/roots/list_changed"),params:_.optional()}),Ry=G([Bf,nf,Iy,kw,Ww,Kw,df,af,ef,Dw,zw,Ow,jw,Kf,Vf,Wf,Yf]),hy=G([Df,Gf,zf,Xy,If]),qy=G([yf,mw,cw,zy,Wy,Qf,Xf,Hf]),Sy=G([Bf,nw,yy,Vy,Kf,Vf,Wf,Yf]),gy=G([Df,Gf,Lw,Gw,ww,Pw,Aw,If,xy]),ny=G([yf,cf,Ky,$w,Qw,lf,of,fw,bf,Jw,Qf,Xf,Hf]);u=class u extends Error{constructor(y,A,j){super(`MCP error ${y}: ${A}`);this.code=y,this.data=j,this.name="McpError"}static fromError(y,A,j){if(y===U.UrlElicitationRequired&&j){let s=j;if(s.elicitations)return new Jf(s.elicitations,A)}return new u(y,A,j)}};Jf=class Jf extends u{constructor(y,A=`URL elicitation${y.length>1?"s":""} required`){super(U.UrlElicitationRequired,A,{elicitations:y})}get elicitations(){return this.data?.elicitations??[]}}});async function cy(){}var Yy=()=>{};class Zy{append(y){this._buffer=this._buffer?Buffer.concat([this._buffer,y]):y}readMessage(){if(!this._buffer)return null;let y=this._buffer.indexOf(`
1
+ import{$da as Y,Mda as d,Nda as f,Pda as z,Qda as Q,Rda as l,Tda as I,Uda as x,Vda as w,Wda as X,Xda as G,Yda as h,Zda as q,_da as B,aea as D,bea as H,cea as a,dea as S,iea as Of}from"./cli-0.1.13-jz57znb6.mjs";import{Xna as R}from"./cli-0.1.13-bj67mp7n.mjs";var Pf="2025-11-25",Fy,Tf="io.modelcontextprotocol/related-task",M="2.0",K,o,r,by,kf,Uf,g,Z,J,jy=(y)=>J.safeParse(y).success,V,_,$,W,p,e,Jy=(y)=>e.safeParse(y).success,ff,Ny=(y)=>ff.safeParse(y).success,n,Oy=(y)=>n.safeParse(y).success,U,m,Py=(y)=>m.safeParse(y).success,wf,Ty,yf,Lf,Df,Mf,N,F,xf,pf,Rf,hf,qf,Sf,gf,nf,mf,cf,zf,ky=(y)=>zf.safeParse(y).success,Bf,vf,tf,Gf,Ef,O,P,Cf,T,Hf,uf,If,Kf,Qf,Vf,Uy,Wf,Xf,Yf,Ly,Zf,_f,c,$f,k,b,Af,sf,df,lf,af,of,i,rf,ef,fw,ww,yw,Dw,xw,zw,Bw,Gw,Hw,Iw,Kw,Qw,Vw,Ww,v,t,E,Xw,Yw,Zw,C,_w,$w,Aw,Fw,bw,Ff,jw,Jw,bf,My,Nw,Ow,Pw,py,jf,Tw,kw,Uw,Lw,Mw,pw,Rw,hw,qw,L,Sw,gw,nw,mw,cw,iw,vw,tw,Ew,Cw,uw,sw,dw,lw,aw,ow,rw,ew,fy,wy,yy,Dy,xy,zy,By,Gy,Hy,Iy,Ky,Qy,Vy,Wy,Xy,Ry,hy,qy,Sy,gy,ny,u,Jf;var Nf=R(()=>{Of();Fy=[Pf,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],K=a((y)=>y!==null&&(typeof y==="object"||typeof y==="function")),o=G([f(),z().int()]),r=f(),by=X({ttl:z().optional(),pollInterval:z().optional()}),kf=w({ttl:z().optional()}),Uf=w({taskId:f()}),g=X({progressToken:o.optional(),[Tf]:Uf.optional()}),Z=w({_meta:g.optional()}),J=Z.extend({task:kf.optional()}),V=w({method:f(),params:Z.loose().optional()}),_=w({_meta:g.optional()}),$=w({method:f(),params:_.loose().optional()}),W=X({_meta:g.optional()}),p=G([f(),z().int()]),e=w({jsonrpc:D(M),id:p,...V.shape}).strict(),ff=w({jsonrpc:D(M),...$.shape}).strict(),n=w({jsonrpc:D(M),id:p,result:W}).strict();(function(y){y[y.ConnectionClosed=-32000]="ConnectionClosed",y[y.RequestTimeout=-32001]="RequestTimeout",y[y.ParseError=-32700]="ParseError",y[y.InvalidRequest=-32600]="InvalidRequest",y[y.MethodNotFound=-32601]="MethodNotFound",y[y.InvalidParams=-32602]="InvalidParams",y[y.InternalError=-32603]="InternalError",y[y.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(U||(U={}));m=w({jsonrpc:D(M),id:p.optional(),error:w({code:z().int(),message:f(),data:I().optional()})}).strict(),wf=G([e,ff,n,m]),Ty=G([n,m]),yf=W.strict(),Lf=_.extend({requestId:p.optional(),reason:f().optional()}),Df=$.extend({method:D("notifications/cancelled"),params:Lf}),Mf=w({src:f(),mimeType:f().optional(),sizes:x(f()).optional(),theme:Y(["light","dark"]).optional()}),N=w({icons:x(Mf).optional()}),F=w({name:f(),title:f().optional()}),xf=F.extend({...F.shape,...N.shape,version:f(),websiteUrl:f().optional(),description:f().optional()}),pf=q(w({applyDefaults:Q().optional()}),B(f(),I())),Rf=S((y)=>{if(y&&typeof y==="object"&&!Array.isArray(y)){if(Object.keys(y).length===0)return{form:{}}}return y},q(w({form:pf.optional(),url:K.optional()}),B(f(),I()).optional())),hf=X({list:K.optional(),cancel:K.optional(),requests:X({sampling:X({createMessage:K.optional()}).optional(),elicitation:X({create:K.optional()}).optional()}).optional()}),qf=X({list:K.optional(),cancel:K.optional(),requests:X({tools:X({call:K.optional()}).optional()}).optional()}),Sf=w({experimental:B(f(),K).optional(),sampling:w({context:K.optional(),tools:K.optional()}).optional(),elicitation:Rf.optional(),roots:w({listChanged:Q().optional()}).optional(),tasks:hf.optional(),extensions:B(f(),K).optional()}),gf=Z.extend({protocolVersion:f(),capabilities:Sf,clientInfo:xf}),nf=V.extend({method:D("initialize"),params:gf}),mf=w({experimental:B(f(),K).optional(),logging:K.optional(),completions:K.optional(),prompts:w({listChanged:Q().optional()}).optional(),resources:w({subscribe:Q().optional(),listChanged:Q().optional()}).optional(),tools:w({listChanged:Q().optional()}).optional(),tasks:qf.optional(),extensions:B(f(),K).optional()}),cf=W.extend({protocolVersion:f(),capabilities:mf,serverInfo:xf,instructions:f().optional()}),zf=$.extend({method:D("notifications/initialized"),params:_.optional()}),Bf=V.extend({method:D("ping"),params:Z.optional()}),vf=w({progress:z(),total:H(z()),message:H(f())}),tf=w({..._.shape,...vf.shape,progressToken:o}),Gf=$.extend({method:D("notifications/progress"),params:tf}),Ef=Z.extend({cursor:r.optional()}),O=V.extend({params:Ef.optional()}),P=W.extend({nextCursor:r.optional()}),Cf=Y(["working","input_required","completed","failed","cancelled"]),T=w({taskId:f(),status:Cf,ttl:G([z(),l()]),createdAt:f(),lastUpdatedAt:f(),pollInterval:H(z()),statusMessage:H(f())}),Hf=W.extend({task:T}),uf=_.merge(T),If=$.extend({method:D("notifications/tasks/status"),params:uf}),Kf=V.extend({method:D("tasks/get"),params:Z.extend({taskId:f()})}),Qf=W.merge(T),Vf=V.extend({method:D("tasks/result"),params:Z.extend({taskId:f()})}),Uy=W.loose(),Wf=O.extend({method:D("tasks/list")}),Xf=P.extend({tasks:x(T)}),Yf=V.extend({method:D("tasks/cancel"),params:Z.extend({taskId:f()})}),Ly=W.merge(T),Zf=w({uri:f(),mimeType:H(f()),_meta:B(f(),I()).optional()}),_f=Zf.extend({text:f()}),c=f().refine((y)=>{try{return atob(y),!0}catch{return!1}},{message:"Invalid Base64 string"}),$f=Zf.extend({blob:c}),k=Y(["user","assistant"]),b=w({audience:x(k).optional(),priority:z().min(0).max(1).optional(),lastModified:d.datetime({offset:!0}).optional()}),Af=w({...F.shape,...N.shape,uri:f(),description:H(f()),mimeType:H(f()),size:H(z()),annotations:b.optional(),_meta:H(X({}))}),sf=w({...F.shape,...N.shape,uriTemplate:f(),description:H(f()),mimeType:H(f()),annotations:b.optional(),_meta:H(X({}))}),df=O.extend({method:D("resources/list")}),lf=P.extend({resources:x(Af)}),af=O.extend({method:D("resources/templates/list")}),of=P.extend({resourceTemplates:x(sf)}),i=Z.extend({uri:f()}),rf=i,ef=V.extend({method:D("resources/read"),params:rf}),fw=W.extend({contents:x(G([_f,$f]))}),ww=$.extend({method:D("notifications/resources/list_changed"),params:_.optional()}),yw=i,Dw=V.extend({method:D("resources/subscribe"),params:yw}),xw=i,zw=V.extend({method:D("resources/unsubscribe"),params:xw}),Bw=_.extend({uri:f()}),Gw=$.extend({method:D("notifications/resources/updated"),params:Bw}),Hw=w({name:f(),description:H(f()),required:H(Q())}),Iw=w({...F.shape,...N.shape,description:H(f()),arguments:H(x(Hw)),_meta:H(X({}))}),Kw=O.extend({method:D("prompts/list")}),Qw=P.extend({prompts:x(Iw)}),Vw=Z.extend({name:f(),arguments:B(f(),f()).optional()}),Ww=V.extend({method:D("prompts/get"),params:Vw}),v=w({type:D("text"),text:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),t=w({type:D("image"),data:c,mimeType:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),E=w({type:D("audio"),data:c,mimeType:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),Xw=w({type:D("tool_use"),name:f(),id:f(),input:B(f(),I()),_meta:B(f(),I()).optional()}),Yw=w({type:D("resource"),resource:G([_f,$f]),annotations:b.optional(),_meta:B(f(),I()).optional()}),Zw=Af.extend({type:D("resource_link")}),C=G([v,t,E,Zw,Yw]),_w=w({role:k,content:C}),$w=W.extend({description:f().optional(),messages:x(_w)}),Aw=$.extend({method:D("notifications/prompts/list_changed"),params:_.optional()}),Fw=w({title:f().optional(),readOnlyHint:Q().optional(),destructiveHint:Q().optional(),idempotentHint:Q().optional(),openWorldHint:Q().optional()}),bw=w({taskSupport:Y(["required","optional","forbidden"]).optional()}),Ff=w({...F.shape,...N.shape,description:f().optional(),inputSchema:w({type:D("object"),properties:B(f(),K).optional(),required:x(f()).optional()}).catchall(I()),outputSchema:w({type:D("object"),properties:B(f(),K).optional(),required:x(f()).optional()}).catchall(I()).optional(),annotations:Fw.optional(),execution:bw.optional(),_meta:B(f(),I()).optional()}),jw=O.extend({method:D("tools/list")}),Jw=P.extend({tools:x(Ff)}),bf=W.extend({content:x(C).default([]),structuredContent:B(f(),I()).optional(),isError:Q().optional()}),My=bf.or(W.extend({toolResult:I()})),Nw=J.extend({name:f(),arguments:B(f(),I()).optional()}),Ow=V.extend({method:D("tools/call"),params:Nw}),Pw=$.extend({method:D("notifications/tools/list_changed"),params:_.optional()}),py=w({autoRefresh:Q().default(!0),debounceMs:z().int().nonnegative().default(300)}),jf=Y(["debug","info","notice","warning","error","critical","alert","emergency"]),Tw=Z.extend({level:jf}),kw=V.extend({method:D("logging/setLevel"),params:Tw}),Uw=_.extend({level:jf,logger:f().optional(),data:I()}),Lw=$.extend({method:D("notifications/message"),params:Uw}),Mw=w({name:f().optional()}),pw=w({hints:x(Mw).optional(),costPriority:z().min(0).max(1).optional(),speedPriority:z().min(0).max(1).optional(),intelligencePriority:z().min(0).max(1).optional()}),Rw=w({mode:Y(["auto","required","none"]).optional()}),hw=w({type:D("tool_result"),toolUseId:f().describe("The unique identifier for the corresponding tool call."),content:x(C).default([]),structuredContent:w({}).loose().optional(),isError:Q().optional(),_meta:B(f(),I()).optional()}),qw=h("type",[v,t,E]),L=h("type",[v,t,E,Xw,hw]),Sw=w({role:k,content:G([L,x(L)]),_meta:B(f(),I()).optional()}),gw=J.extend({messages:x(Sw),modelPreferences:pw.optional(),systemPrompt:f().optional(),includeContext:Y(["none","thisServer","allServers"]).optional(),temperature:z().optional(),maxTokens:z().int(),stopSequences:x(f()).optional(),metadata:K.optional(),tools:x(Ff).optional(),toolChoice:Rw.optional()}),nw=V.extend({method:D("sampling/createMessage"),params:gw}),mw=W.extend({model:f(),stopReason:H(Y(["endTurn","stopSequence","maxTokens"]).or(f())),role:k,content:qw}),cw=W.extend({model:f(),stopReason:H(Y(["endTurn","stopSequence","maxTokens","toolUse"]).or(f())),role:k,content:G([L,x(L)])}),iw=w({type:D("boolean"),title:f().optional(),description:f().optional(),default:Q().optional()}),vw=w({type:D("string"),title:f().optional(),description:f().optional(),minLength:z().optional(),maxLength:z().optional(),format:Y(["email","uri","date","date-time"]).optional(),default:f().optional()}),tw=w({type:Y(["number","integer"]),title:f().optional(),description:f().optional(),minimum:z().optional(),maximum:z().optional(),default:z().optional()}),Ew=w({type:D("string"),title:f().optional(),description:f().optional(),enum:x(f()),default:f().optional()}),Cw=w({type:D("string"),title:f().optional(),description:f().optional(),oneOf:x(w({const:f(),title:f()})),default:f().optional()}),uw=w({type:D("string"),title:f().optional(),description:f().optional(),enum:x(f()),enumNames:x(f()).optional(),default:f().optional()}),sw=G([Ew,Cw]),dw=w({type:D("array"),title:f().optional(),description:f().optional(),minItems:z().optional(),maxItems:z().optional(),items:w({type:D("string"),enum:x(f())}),default:x(f()).optional()}),lw=w({type:D("array"),title:f().optional(),description:f().optional(),minItems:z().optional(),maxItems:z().optional(),items:w({anyOf:x(w({const:f(),title:f()}))}),default:x(f()).optional()}),aw=G([dw,lw]),ow=G([uw,sw,aw]),rw=G([ow,iw,vw,tw]),ew=J.extend({mode:D("form").optional(),message:f(),requestedSchema:w({type:D("object"),properties:B(f(),rw),required:x(f()).optional()})}),fy=J.extend({mode:D("url"),message:f(),elicitationId:f(),url:f().url()}),wy=G([ew,fy]),yy=V.extend({method:D("elicitation/create"),params:wy}),Dy=_.extend({elicitationId:f()}),xy=$.extend({method:D("notifications/elicitation/complete"),params:Dy}),zy=W.extend({action:Y(["accept","decline","cancel"]),content:S((y)=>y===null?void 0:y,B(f(),G([f(),z(),Q(),x(f())])).optional())}),By=w({type:D("ref/resource"),uri:f()}),Gy=w({type:D("ref/prompt"),name:f()}),Hy=Z.extend({ref:G([Gy,By]),argument:w({name:f(),value:f()}),context:w({arguments:B(f(),f()).optional()}).optional()}),Iy=V.extend({method:D("completion/complete"),params:Hy}),Ky=W.extend({completion:X({values:x(f()).max(100),total:H(z().int()),hasMore:H(Q())})}),Qy=w({uri:f().startsWith("file://"),name:f().optional(),_meta:B(f(),I()).optional()}),Vy=V.extend({method:D("roots/list"),params:Z.optional()}),Wy=W.extend({roots:x(Qy)}),Xy=$.extend({method:D("notifications/roots/list_changed"),params:_.optional()}),Ry=G([Bf,nf,Iy,kw,Ww,Kw,df,af,ef,Dw,zw,Ow,jw,Kf,Vf,Wf,Yf]),hy=G([Df,Gf,zf,Xy,If]),qy=G([yf,mw,cw,zy,Wy,Qf,Xf,Hf]),Sy=G([Bf,nw,yy,Vy,Kf,Vf,Wf,Yf]),gy=G([Df,Gf,Lw,Gw,ww,Pw,Aw,If,xy]),ny=G([yf,cf,Ky,$w,Qw,lf,of,fw,bf,Jw,Qf,Xf,Hf]);u=class u extends Error{constructor(y,A,j){super(`MCP error ${y}: ${A}`);this.code=y,this.data=j,this.name="McpError"}static fromError(y,A,j){if(y===U.UrlElicitationRequired&&j){let s=j;if(s.elicitations)return new Jf(s.elicitations,A)}return new u(y,A,j)}};Jf=class Jf extends u{constructor(y,A=`URL elicitation${y.length>1?"s":""} required`){super(U.UrlElicitationRequired,A,{elicitations:y})}get elicitations(){return this.data?.elicitations??[]}}});async function cy(){}var Yy=()=>{};class Zy{append(y){this._buffer=this._buffer?Buffer.concat([this._buffer,y]):y}readMessage(){if(!this._buffer)return null;let y=this._buffer.indexOf(`
2
2
  `);if(y===-1)return null;let A=this._buffer.toString("utf8",0,y).replace(/\r$/,"");return this._buffer=this._buffer.subarray(y+1),_y(A)}clear(){this._buffer=void 0}}function _y(y){return wf.parse(JSON.parse(y))}function ty(y){return JSON.stringify(y)+`
3
3
  `}var $y=R(()=>{Nf()});
4
- export{Pf as OV,Fy as PV,Tf as QV,jy as RV,Jy as SV,Ny as TV,Oy as UV,U as VV,Py as WV,wf as XV,yf as YV,Df as ZV,nf as _V,cf as $V,zf as aW,ky as bW,Bf as cW,Gf as dW,Hf as eW,If as fW,Kf as gW,Qf as hW,Vf as iW,Wf as jW,Xf as kW,Yf as lW,Ly as mW,lf as nW,of as oW,fw as pW,ww as qW,Qw as rW,$w as sW,Aw as tW,jw as uW,Jw as vW,bf as wW,Ow as xW,Pw as yW,py as zW,jf as AW,kw as BW,nw as CW,mw as DW,cw as EW,yy as FW,xy as GW,zy as HW,Ky as IW,Vy as JW,Wy as KW,u as LW,Nf as MW,Zy as NW,ty as OW,$y as PW,cy as QW,Yy as RW};
4
+ export{Pf as TV,Fy as UV,Tf as VV,jy as WV,Jy as XV,Ny as YV,Oy as ZV,U as _V,Py as $V,wf as aW,yf as bW,Df as cW,nf as dW,cf as eW,zf as fW,ky as gW,Bf as hW,Gf as iW,Hf as jW,If as kW,Kf as lW,Qf as mW,Vf as nW,Wf as oW,Xf as pW,Yf as qW,Ly as rW,lf as sW,of as tW,fw as uW,ww as vW,Qw as wW,$w as xW,Aw as yW,jw as zW,Jw as AW,bf as BW,Ow as CW,Pw as DW,py as EW,jf as FW,kw as GW,nw as HW,mw as IW,cw as JW,yy as KW,xy as LW,zy as MW,Ky as NW,Vy as OW,Wy as PW,u as QW,Nf as RW,Zy as SW,ty as TW,$y as UW,cy as VW,Yy as WW};
@@ -1,2 +1,2 @@
1
- import{Vma as H,gja as z,kja as B}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as x}from"./cli-0.1.11-yrfxpjhr.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
- export{Q as _da,J as $da,R as aea,K as bea,U as cea,V as dea,W as eea,X as fea,Y as gea,Z as hea,$ as iea,j as jea,q as kea,A as lea,G as mea,L as nea,_ as oea,b as pea,k as qea,p as rea,v as sea,C as tea,O as uea,y as vea,S as wea,f as xea,m as yea,u as zea,h as Aea,l as Bea,w as Cea,g as Dea,d as Eea,M as Fea};
1
+ import{gna as H,tja as z,xja as B}from"./cli-0.1.13-52f40ba4.mjs";import{Xna as x}from"./cli-0.1.13-bj67mp7n.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{Q as lea,J as mea,R as nea,K as oea,U as pea,V as qea,W as rea,X as sea,Y as tea,Z as uea,$ as vea,j as wea,q as xea,A as yea,G as zea,L as Aea,_ as Bea,b as Cea,k as Dea,p as Eea,v as Fea,C as Gea,O as Hea,y as Iea,S as Jea,f as Kea,m as Lea,u as Mea,h as Nea,l as Oea,w as Pea,g as Qea,d as Rea,M as Sea};