@claudiolabs/claudio 0.1.12 → 0.1.14

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 (642) hide show
  1. package/bin/claudio +7 -0
  2. package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +1 -0
  3. package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +1 -0
  5. package/dist/chunks/{AssistantSessionChooser-0.1.12-x3zt5579.mjs → AssistantSessionChooser-0.1.14-tf848k8v.mjs} +1 -1
  6. package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +1 -0
  10. package/dist/chunks/{DiffDialog-0.1.12-tzjdg5ys.mjs → DiffDialog-0.1.14-wtx2wmbs.mjs} +1 -1
  11. package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +1 -0
  12. package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.1.14-xtdr5bmp.mjs +1 -0
  14. package/dist/chunks/{InProcessTransport-0.1.12-xnrc78z1.mjs → InProcessTransport-0.1.14-wdqgcpb4.mjs} +1 -1
  15. package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.1.14-1rddgg2b.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +1 -0
  20. package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.1.14-79hg5s2w.mjs +1 -0
  22. package/dist/chunks/{SnapshotUpdateDialog-0.1.12-f1byjres.mjs → SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs} +1 -1
  23. package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.1.14-8wfa8twy.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.1.14-175xkeyy.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.1.14-zvmfmtg5.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +1 -0
  30. package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +1 -0
  31. package/dist/chunks/agents-0.1.14-nm4k11re.mjs +3 -0
  32. package/dist/chunks/{agents-0.1.12-vfwpnn0d.mjs → agents-0.1.14-pjr42t23.mjs} +2 -2
  33. package/dist/chunks/api-0.1.14-v09922m9.mjs +1 -0
  34. package/dist/chunks/{asciicast-0.1.12-nwzfr5gz.mjs → asciicast-0.1.14-kgp9j4z6.mjs} +1 -1
  35. package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +1 -0
  36. package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +1 -0
  37. package/dist/chunks/{auth-0.1.12-vhdwtwhb.mjs → auth-0.1.14-vj6095mm.mjs} +1 -1
  38. package/dist/chunks/{autoMode-0.1.12-xjr5qd6q.mjs → autoMode-0.1.14-jxse6h16.mjs} +1 -1
  39. package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +1 -0
  40. package/dist/chunks/branch-0.1.14-r5tt7cec.mjs +4 -0
  41. package/dist/chunks/{bridgePointer-0.1.12-vdj4j4ke.mjs → bridgePointer-0.1.14-2w1wvxgt.mjs} +1 -1
  42. package/dist/chunks/btw-0.1.14-j1cexrtn.mjs +1 -0
  43. package/dist/chunks/{buddy-0.1.12-4q50s2x4.mjs → buddy-0.1.14-r4nmfbke.mjs} +1 -1
  44. package/dist/chunks/cacache-0.1.14-3vw5qkqs.mjs +1 -0
  45. package/dist/chunks/{cache-probe-0.1.12-4s8cc2km.mjs → cache-probe-0.1.14-zfb6aw4f.mjs} +1 -1
  46. package/dist/chunks/{cacheStats-0.1.12-qqcw6b5n.mjs → cacheStats-0.1.14-15eahew3.mjs} +1 -1
  47. package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +1 -0
  48. package/dist/chunks/{claudeDesktop-0.1.12-1yrkynq4.mjs → claudeDesktop-0.1.14-0df0z4v6.mjs} +1 -1
  49. package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +1 -0
  50. package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +1 -0
  52. package/dist/chunks/cli-0.1.14-08ambmnj.mjs +2 -0
  53. package/dist/chunks/cli-0.1.14-0a8ckx07.mjs +2 -0
  54. package/dist/chunks/cli-0.1.14-0ctjta81.mjs +5 -0
  55. package/dist/chunks/{cli-0.1.12-faa9mx3m.mjs → cli-0.1.14-0kzzfe41.mjs} +2 -2
  56. package/dist/chunks/cli-0.1.14-0nhaxy76.mjs +4 -0
  57. package/dist/chunks/{cli-0.1.12-q63qrz06.mjs → cli-0.1.14-0x3m90bk.mjs} +2 -2
  58. package/dist/chunks/{cli-0.1.12-v000x470.mjs → cli-0.1.14-16jrehc2.mjs} +2 -2
  59. package/dist/chunks/{cli-0.1.12-352pjhkh.mjs → cli-0.1.14-1g5jq0j8.mjs} +2 -2
  60. package/dist/chunks/cli-0.1.14-1shkmy81.mjs +2 -0
  61. package/dist/chunks/{cli-0.1.12-trdq9d6x.mjs → cli-0.1.14-1xkst5wv.mjs} +2 -2
  62. package/dist/chunks/{cli-0.1.12-rwhrpb6w.mjs → cli-0.1.14-244fknyr.mjs} +2 -2
  63. package/dist/chunks/{cli-0.1.12-1x06khjr.mjs → cli-0.1.14-25ta9abj.mjs} +2 -2
  64. package/dist/chunks/{cli-0.1.12-0vf5f6qn.mjs → cli-0.1.14-28exj8zm.mjs} +2 -2
  65. package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +2 -0
  66. package/dist/chunks/{cli-0.1.12-vzga2are.mjs → cli-0.1.14-2f7s5xbd.mjs} +6 -6
  67. package/dist/chunks/{cli-0.1.12-rzpc0tr9.mjs → cli-0.1.14-2mzb5ath.mjs} +2 -2
  68. package/dist/chunks/cli-0.1.14-373staaj.mjs +2 -0
  69. package/dist/chunks/cli-0.1.14-39y8qfj7.mjs +2 -0
  70. package/dist/chunks/cli-0.1.14-3m63hy2a.mjs +3 -0
  71. package/dist/chunks/cli-0.1.14-3scecgzx.mjs +6 -0
  72. package/dist/chunks/{cli-0.1.12-g2s9mjr6.mjs → cli-0.1.14-3w7fbjhy.mjs} +2 -2
  73. package/dist/chunks/{cli-0.1.12-9pq0gse0.mjs → cli-0.1.14-3xj419mp.mjs} +2 -2
  74. package/dist/chunks/{cli-0.1.12-yk12dgnx.mjs → cli-0.1.14-3yj4dkmn.mjs} +2 -2
  75. package/dist/chunks/cli-0.1.14-3zj4s594.mjs +2 -0
  76. package/dist/chunks/{cli-0.1.12-ae3e3ffp.mjs → cli-0.1.14-42sm5vzr.mjs} +2 -2
  77. package/dist/chunks/cli-0.1.14-442a367x.mjs +2 -0
  78. package/dist/chunks/{cli-0.1.12-jqrk975g.mjs → cli-0.1.14-473sgexj.mjs} +2 -2
  79. package/dist/chunks/{cli-0.1.12-6238zg7k.mjs → cli-0.1.14-4mde8z7h.mjs} +2 -2
  80. package/dist/chunks/{cli-0.1.12-9v01t95v.mjs → cli-0.1.14-4tmbgg29.mjs} +2 -2
  81. package/dist/chunks/cli-0.1.14-4wdh3k7y.mjs +2 -0
  82. package/dist/chunks/{cli-0.1.12-vxej5jdm.mjs → cli-0.1.14-59axynr8.mjs} +2 -2
  83. package/dist/chunks/{cli-0.1.12-qsh4sj4y.mjs → cli-0.1.14-5brvxst8.mjs} +2 -2
  84. package/dist/chunks/cli-0.1.14-5e5kkjam.mjs +2 -0
  85. package/dist/chunks/cli-0.1.14-5rp4y3q2.mjs +2 -0
  86. package/dist/chunks/{cli-0.1.12-0eznapyf.mjs → cli-0.1.14-5te1nbdc.mjs} +2 -2
  87. package/dist/chunks/cli-0.1.14-68wbwy40.mjs +4 -0
  88. package/dist/chunks/cli-0.1.14-6cjjzttb.mjs +3 -0
  89. package/dist/chunks/{cli-0.1.12-v8j9zstg.mjs → cli-0.1.14-71m91842.mjs} +2 -2
  90. package/dist/chunks/{cli-0.1.12-0kqx19vz.mjs → cli-0.1.14-71sp86jb.mjs} +2 -2
  91. package/dist/chunks/{cli-0.1.12-d0es0fxd.mjs → cli-0.1.14-77ha4n58.mjs} +2 -2
  92. package/dist/chunks/{cli-0.1.12-a2qh6gjr.mjs → cli-0.1.14-7zjhrz42.mjs} +3 -3
  93. package/dist/chunks/{cli-0.1.12-r6f9sy54.mjs → cli-0.1.14-7zz7abpc.mjs} +2 -2
  94. package/dist/chunks/cli-0.1.14-86gckvrm.mjs +2 -0
  95. package/dist/chunks/cli-0.1.14-893g12wf.mjs +2 -0
  96. package/dist/chunks/cli-0.1.14-8fr10t94.mjs +17 -0
  97. package/dist/chunks/{cli-0.1.12-3ywnr2v1.mjs → cli-0.1.14-90zkq8jm.mjs} +2 -2
  98. package/dist/chunks/cli-0.1.14-9b8kspnd.mjs +2 -0
  99. package/dist/chunks/cli-0.1.14-9evp0ewn.mjs +2 -0
  100. package/dist/chunks/cli-0.1.14-9gem156t.mjs +2 -0
  101. package/dist/chunks/{cli-0.1.12-hsw67esw.mjs → cli-0.1.14-9kxzs20h.mjs} +2 -2
  102. package/dist/chunks/{cli-0.1.12-4wwhk7dc.mjs → cli-0.1.14-9vc52dnj.mjs} +2 -2
  103. package/dist/chunks/cli-0.1.14-a15xdexp.mjs +12 -0
  104. package/dist/chunks/cli-0.1.14-a6kwmqhz.mjs +16 -0
  105. package/dist/chunks/{cli-0.1.12-37ga9zc2.mjs → cli-0.1.14-a9ytrehs.mjs} +2 -2
  106. package/dist/chunks/{cli-0.1.12-7ehqw1dk.mjs → cli-0.1.14-ab0rxxvk.mjs} +2 -2
  107. package/dist/chunks/{cli-0.1.12-mr41yjpw.mjs → cli-0.1.14-adz0gnzy.mjs} +2 -2
  108. package/dist/chunks/{cli-0.1.12-ktpqrbjc.mjs → cli-0.1.14-aky5tegx.mjs} +2 -2
  109. package/dist/chunks/{cli-0.1.12-vgbc3g9x.mjs → cli-0.1.14-akz49g5v.mjs} +2 -2
  110. package/dist/chunks/{cli-0.1.12-sgtpyf6y.mjs → cli-0.1.14-as1s0b0t.mjs} +2 -2
  111. package/dist/chunks/cli-0.1.14-as9nq99n.mjs +2 -0
  112. package/dist/chunks/{cli-0.1.12-5exp787z.mjs → cli-0.1.14-ba919tmj.mjs} +2 -2
  113. package/dist/chunks/cli-0.1.14-bat0c779.mjs +2 -0
  114. package/dist/chunks/{cli-0.1.12-v0510w04.mjs → cli-0.1.14-bgqm4vsk.mjs} +2 -2
  115. package/dist/chunks/{cli-0.1.12-756ngehz.mjs → cli-0.1.14-c0bv9eha.mjs} +2 -2
  116. package/dist/chunks/{cli-0.1.12-f0x1y6nn.mjs → cli-0.1.14-c4v2kfdn.mjs} +2 -2
  117. package/dist/chunks/{cli-0.1.12-xekep4qg.mjs → cli-0.1.14-canpypsb.mjs} +2 -2
  118. package/dist/chunks/{cli-0.1.12-g3ycbjxk.mjs → cli-0.1.14-cdby401e.mjs} +2 -2
  119. package/dist/chunks/cli-0.1.14-ch9c9c38.mjs +2 -0
  120. package/dist/chunks/{cli-0.1.12-nv2m8kgk.mjs → cli-0.1.14-ckjcet41.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.12-c23pyffx.mjs → cli-0.1.14-cp2pada5.mjs} +2 -2
  122. package/dist/chunks/cli-0.1.14-d1edbjh4.mjs +25 -0
  123. package/dist/chunks/{cli-0.1.12-z8eybrhz.mjs → cli-0.1.14-d483gd53.mjs} +2 -2
  124. package/dist/chunks/{cli-0.1.12-d8m01qtm.mjs → cli-0.1.14-d4zkffre.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.12-ps94e9y5.mjs → cli-0.1.14-dcgxqsyp.mjs} +2 -2
  126. package/dist/chunks/cli-0.1.14-dntkrp1j.mjs +134 -0
  127. package/dist/chunks/cli-0.1.14-dq7jkw1n.mjs +2 -0
  128. package/dist/chunks/cli-0.1.14-dqads3y3.mjs +2 -0
  129. package/dist/chunks/{cli-0.1.12-8znn9f50.mjs → cli-0.1.14-dt11hwkv.mjs} +2 -2
  130. package/dist/chunks/{cli-0.1.12-kys514qx.mjs → cli-0.1.14-dw74ppax.mjs} +2 -2
  131. package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +2 -0
  132. package/dist/chunks/cli-0.1.14-e40hm9sd.mjs +2 -0
  133. package/dist/chunks/{cli-0.1.12-2zqgfhrb.mjs → cli-0.1.14-edjtfw4q.mjs} +2 -2
  134. package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +2 -0
  135. package/dist/chunks/cli-0.1.14-eq0gbnpg.mjs +2 -0
  136. package/dist/chunks/cli-0.1.14-et8yewbf.mjs +2 -0
  137. package/dist/chunks/cli-0.1.14-fdpfr31f.mjs +2 -0
  138. package/dist/chunks/{cli-0.1.12-mwp84gtr.mjs → cli-0.1.14-fhfj87ej.mjs} +2 -2
  139. package/dist/chunks/{cli-0.1.12-zs5rpqmb.mjs → cli-0.1.14-fmgz6tx2.mjs} +3 -3
  140. package/dist/chunks/{cli-0.1.12-ds2mn8zn.mjs → cli-0.1.14-fmmxw3gj.mjs} +2 -2
  141. package/dist/chunks/{cli-0.1.12-5ye0t0xd.mjs → cli-0.1.14-fspxpmh7.mjs} +2 -2
  142. package/dist/chunks/{cli-0.1.12-h0d833vg.mjs → cli-0.1.14-ftjxb57b.mjs} +4 -4
  143. package/dist/chunks/{cli-0.1.12-wdmxm11z.mjs → cli-0.1.14-g5q2xqp3.mjs} +2 -2
  144. package/dist/chunks/cli-0.1.14-gdm27acz.mjs +2 -0
  145. package/dist/chunks/{cli-0.1.12-ytxphavm.mjs → cli-0.1.14-harz1d9d.mjs} +2 -2
  146. package/dist/chunks/{cli-0.1.12-qn20n18h.mjs → cli-0.1.14-heevc19y.mjs} +5 -5
  147. package/dist/chunks/{cli-0.1.12-04jw23rj.mjs → cli-0.1.14-hjktwgtk.mjs} +2 -2
  148. package/dist/chunks/cli-0.1.14-hkaqyhx1.mjs +2 -0
  149. package/dist/chunks/{cli-0.1.12-4syxz3pe.mjs → cli-0.1.14-hvfg45y0.mjs} +2 -2
  150. package/dist/chunks/{cli-0.1.12-04v3yab2.mjs → cli-0.1.14-hxvzvfr2.mjs} +3 -3
  151. package/dist/chunks/cli-0.1.14-j5sbzwhy.mjs +5045 -0
  152. package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +2 -0
  153. package/dist/chunks/{cli-0.1.12-m6jeef2z.mjs → cli-0.1.14-jbn4ywda.mjs} +2 -2
  154. package/dist/chunks/{cli-0.1.12-7xsa2bcp.mjs → cli-0.1.14-jf8019sb.mjs} +2 -2
  155. package/dist/chunks/cli-0.1.14-jnfs73kb.mjs +2 -0
  156. package/dist/chunks/{cli-0.1.12-4qedbzt3.mjs → cli-0.1.14-jpe9sxch.mjs} +2 -2
  157. package/dist/chunks/{cli-0.1.12-7mjpbm22.mjs → cli-0.1.14-k8nwm06m.mjs} +2 -2
  158. package/dist/chunks/{cli-0.1.12-j6hwb68p.mjs → cli-0.1.14-k9jcmxtd.mjs} +2 -2
  159. package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +2 -0
  160. package/dist/chunks/cli-0.1.14-kcrsww4s.mjs +2 -0
  161. package/dist/chunks/{cli-0.1.12-bh7jp3zk.mjs → cli-0.1.14-khtq9cgy.mjs} +2 -2
  162. package/dist/chunks/{cli-0.1.12-j6gjfwh5.mjs → cli-0.1.14-kmsvd61a.mjs} +2 -2
  163. package/dist/chunks/{cli-0.1.12-zk49aaxv.mjs → cli-0.1.14-kn1f2x94.mjs} +2 -2
  164. package/dist/chunks/cli-0.1.14-kpsh76mj.mjs +2 -0
  165. package/dist/chunks/{cli-0.1.12-34gqc6yf.mjs → cli-0.1.14-kt6sq4nr.mjs} +2 -2
  166. package/dist/chunks/{cli-0.1.12-w0qbr98a.mjs → cli-0.1.14-ktz3cgwa.mjs} +2 -2
  167. package/dist/chunks/{cli-0.1.12-y04asmqh.mjs → cli-0.1.14-kv650aha.mjs} +2 -2
  168. package/dist/chunks/{cli-0.1.12-024a8zz7.mjs → cli-0.1.14-m75ce5ve.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.14-m7khgn2k.mjs +2 -0
  170. package/dist/chunks/{cli-0.1.12-fqpxr3qb.mjs → cli-0.1.14-m7xchegb.mjs} +2 -2
  171. package/dist/chunks/{cli-0.1.12-bhxgr018.mjs → cli-0.1.14-mgcmwvcn.mjs} +2 -2
  172. package/dist/chunks/{cli-0.1.12-238c85zt.mjs → cli-0.1.14-mngn74ga.mjs} +2 -2
  173. package/dist/chunks/cli-0.1.14-mx9yse7m.mjs +2 -0
  174. package/dist/chunks/{cli-0.1.12-ng34ay3g.mjs → cli-0.1.14-nbvvdkk2.mjs} +1 -1
  175. package/dist/chunks/{cli-0.1.12-830kqdpq.mjs → cli-0.1.14-nkza93de.mjs} +2 -2
  176. package/dist/chunks/cli-0.1.14-nmmtd1d6.mjs +2 -0
  177. package/dist/chunks/cli-0.1.14-nnr43nyg.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.12-xj3mv67x.mjs → cli-0.1.14-nprcbhwn.mjs} +2 -2
  179. package/dist/chunks/{cli-0.1.12-86nmrm6g.mjs → cli-0.1.14-ntq8w1ss.mjs} +2 -2
  180. package/dist/chunks/{cli-0.1.12-73k5qd97.mjs → cli-0.1.14-nxphqjb4.mjs} +7 -10
  181. package/dist/chunks/{cli-0.1.12-8qvgy8xr.mjs → cli-0.1.14-nzsj259d.mjs} +2 -2
  182. package/dist/chunks/cli-0.1.14-qe5zyvfh.mjs +2 -0
  183. package/dist/chunks/{cli-0.1.12-1hv04bp7.mjs → cli-0.1.14-qn4ftczz.mjs} +1 -1
  184. package/dist/chunks/{cli-0.1.12-4sh0f4y1.mjs → cli-0.1.14-qyx55m6c.mjs} +2 -2
  185. package/dist/chunks/cli-0.1.14-qzcceap6.mjs +20 -0
  186. package/dist/chunks/{cli-0.1.12-s0cwq66w.mjs → cli-0.1.14-r00mjm41.mjs} +2 -2
  187. package/dist/chunks/cli-0.1.14-r46jh9af.mjs +2 -0
  188. package/dist/chunks/{cli-0.1.12-c28bme4j.mjs → cli-0.1.14-r5qyt63x.mjs} +2 -2
  189. package/dist/chunks/{cli-0.1.12-erggrdth.mjs → cli-0.1.14-rc5yd94n.mjs} +3 -3
  190. package/dist/chunks/{cli-0.1.12-cxn1ke77.mjs → cli-0.1.14-rtstk94r.mjs} +2 -2
  191. package/dist/chunks/{cli-0.1.12-ra3sby5b.mjs → cli-0.1.14-s9m1y93w.mjs} +2 -2
  192. package/dist/chunks/cli-0.1.14-sb7dm65b.mjs +2 -0
  193. package/dist/chunks/{cli-0.1.12-bddm1g1s.mjs → cli-0.1.14-seq2fm2d.mjs} +2 -2
  194. package/dist/chunks/cli-0.1.14-sn1rf71y.mjs +2 -0
  195. package/dist/chunks/{cli-0.1.12-rwzav5h1.mjs → cli-0.1.14-stv1d0q3.mjs} +2 -2
  196. package/dist/chunks/cli-0.1.14-svqkx41a.mjs +2 -0
  197. package/dist/chunks/cli-0.1.14-t3fga5je.mjs +2 -0
  198. package/dist/chunks/{cli-0.1.12-a5h71tt8.mjs → cli-0.1.14-ta3w93yb.mjs} +2 -2
  199. package/dist/chunks/{cli-0.1.12-t8712dbc.mjs → cli-0.1.14-tkb5t0xv.mjs} +2 -2
  200. package/dist/chunks/{cli-0.1.12-7da43cy1.mjs → cli-0.1.14-tqexnkmz.mjs} +2 -2
  201. package/dist/chunks/{cli-0.1.12-41zq3gv6.mjs → cli-0.1.14-tsth8deg.mjs} +1 -1
  202. package/dist/chunks/cli-0.1.14-tyv29sz9.mjs +2 -0
  203. package/dist/chunks/cli-0.1.14-v2acyy7r.mjs +4 -0
  204. package/dist/chunks/{cli-0.1.12-9gs0g8yb.mjs → cli-0.1.14-v9q1cxjy.mjs} +2 -2
  205. package/dist/chunks/{cli-0.1.12-c47ape20.mjs → cli-0.1.14-vp1kn532.mjs} +2 -2
  206. package/dist/chunks/cli-0.1.14-w3rwfr1d.mjs +2 -0
  207. package/dist/chunks/{cli-0.1.12-tyt09z73.mjs → cli-0.1.14-w6nzk5dc.mjs} +2 -2
  208. package/dist/chunks/cli-0.1.14-w8efvbh6.mjs +2 -0
  209. package/dist/chunks/{cli-0.1.12-awb2yac7.mjs → cli-0.1.14-we6s7jfg.mjs} +2 -2
  210. package/dist/chunks/{cli-0.1.12-bjzb0sjt.mjs → cli-0.1.14-wgatq2fj.mjs} +2 -2
  211. package/dist/chunks/{cli-0.1.12-k2164g7e.mjs → cli-0.1.14-whe4bxfr.mjs} +2 -2
  212. package/dist/chunks/cli-0.1.14-wwehdfwx.mjs +9 -0
  213. package/dist/chunks/{cli-0.1.12-0xzdygm2.mjs → cli-0.1.14-wymtdw5f.mjs} +2 -2
  214. package/dist/chunks/{cli-0.1.12-actnmgw5.mjs → cli-0.1.14-wz5yr49j.mjs} +2 -2
  215. package/dist/chunks/{cli-0.1.12-a2frnpdd.mjs → cli-0.1.14-x88ypr2r.mjs} +2 -2
  216. package/dist/chunks/cli-0.1.14-xp6rc33g.mjs +2 -0
  217. package/dist/chunks/{cli-0.1.12-6ddq5n4e.mjs → cli-0.1.14-y2wxptpk.mjs} +2 -2
  218. package/dist/chunks/cli-0.1.14-y55hrwdp.mjs +3 -0
  219. package/dist/chunks/{cli-0.1.12-wcdh3m4s.mjs → cli-0.1.14-y56629hj.mjs} +2 -2
  220. package/dist/chunks/{cli-0.1.12-g728hcdr.mjs → cli-0.1.14-yagh75p5.mjs} +2 -2
  221. package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +2 -0
  222. package/dist/chunks/cli-0.1.14-yfc7weqn.mjs +821 -0
  223. package/dist/chunks/{cli-0.1.12-qrx9nssg.mjs → cli-0.1.14-yphht6rx.mjs} +2 -2
  224. package/dist/chunks/{cli-0.1.12-kzd4y6yq.mjs → cli-0.1.14-yxce1bdc.mjs} +2 -2
  225. package/dist/chunks/cli-0.1.14-yxq1tr3a.mjs +2 -0
  226. package/dist/chunks/{cli-0.1.12-5pw10pf8.mjs → cli-0.1.14-z0ckw2hb.mjs} +2 -2
  227. package/dist/chunks/cli-0.1.14-z8j2n955.mjs +2 -0
  228. package/dist/chunks/{cli-0.1.12-2fajd44n.mjs → cli-0.1.14-zjqt3r89.mjs} +2 -2
  229. package/dist/chunks/{cli-0.1.12-af1r644n.mjs → cli-0.1.14-zq66y0mv.mjs} +2 -2
  230. package/dist/chunks/cli-0.1.14-zrmretjp.mjs +4 -0
  231. package/dist/chunks/cli-0.1.14-zs4vmj7z.mjs +4 -0
  232. package/dist/chunks/client-0.1.14-3t6sfwha.mjs +1 -0
  233. package/dist/chunks/color-0.1.14-65rf0ap9.mjs +1 -0
  234. package/dist/chunks/compact-0.1.14-mx9ng433.mjs +3 -0
  235. package/dist/chunks/config-0.1.14-1v5v86ax.mjs +1 -0
  236. package/dist/chunks/config-0.1.14-76vavy7t.mjs +1 -0
  237. package/dist/chunks/context-0.1.14-hyykwj83.mjs +1 -0
  238. package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +1 -0
  239. package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +1 -0
  240. package/dist/chunks/{copy-0.1.12-w6tabpy0.mjs → copy-0.1.14-kp76nh7r.mjs} +1 -1
  241. package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +1 -0
  242. package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +1 -0
  243. package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +1 -0
  244. package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +1 -0
  245. package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +1 -0
  246. package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +1 -0
  247. package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +1 -0
  248. package/dist/chunks/earlyInput-0.1.14-997vtdw4.mjs +1 -0
  249. package/dist/chunks/effort-0.1.14-d9xmff2t.mjs +8 -0
  250. package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +1 -0
  251. package/dist/chunks/environments-0.1.14-7napbg6g.mjs +1 -0
  252. package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +1 -0
  253. package/dist/chunks/export-0.1.14-qpt72paa.mjs +2 -0
  254. package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +1 -0
  255. package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +1 -0
  256. package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +1 -0
  257. package/dist/chunks/feedback-0.1.14-qhk5ek0b.mjs +14 -0
  258. package/dist/chunks/{firstPartyEventLogger-0.1.12-95kzm3md.mjs → firstPartyEventLogger-0.1.14-78y09nr6.mjs} +1 -1
  259. package/dist/chunks/git-0.1.14-zvsa13gk.mjs +1 -0
  260. package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +1 -0
  261. package/dist/chunks/{growthbook-0.1.12-4phnr6b3.mjs → growthbook-0.1.14-dcdeqgyq.mjs} +1 -1
  262. package/dist/chunks/{heapdump-0.1.12-m49qs4r7.mjs → heapdump-0.1.14-tj7w79dt.mjs} +1 -1
  263. package/dist/chunks/help-0.1.14-gk9s0stg.mjs +1 -0
  264. package/dist/chunks/{hookChains-0.1.12-brq8x7f7.mjs → hookChains-0.1.14-wng6tzfd.mjs} +2 -2
  265. package/dist/chunks/hooks-0.1.14-jy9bt7s6.mjs +79 -0
  266. package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +1 -0
  267. package/dist/chunks/{ide-0.1.12-553mazfs.mjs → ide-0.1.14-0ar60k4r.mjs} +1 -1
  268. package/dist/chunks/image-processor-napi-0.1.14-p1r3vkb0.mjs +1 -0
  269. package/dist/chunks/index-0.1.14-071xy8v4.mjs +1 -0
  270. package/dist/chunks/index-0.1.14-1mttyja2.mjs +2 -0
  271. package/dist/chunks/index-0.1.14-272zxs9n.mjs +1 -0
  272. package/dist/chunks/index-0.1.14-2v6wa4p4.mjs +1 -0
  273. package/dist/chunks/{index-0.1.12-3nbh75ta.mjs → index-0.1.14-2x59va64.mjs} +1 -1
  274. package/dist/chunks/index-0.1.14-3m7vrt91.mjs +1 -0
  275. package/dist/chunks/index-0.1.14-4hv4f8g9.mjs +1 -0
  276. package/dist/chunks/index-0.1.14-8v5xwttx.mjs +10 -0
  277. package/dist/chunks/index-0.1.14-ac13h1t1.mjs +1 -0
  278. package/dist/chunks/index-0.1.14-dmbjzapt.mjs +2 -0
  279. package/dist/chunks/index-0.1.14-g5kkm9ng.mjs +1 -0
  280. package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +1 -0
  281. package/dist/chunks/index-0.1.14-hqphn8m5.mjs +5 -0
  282. package/dist/chunks/index-0.1.14-ksa4vdak.mjs +9 -0
  283. package/dist/chunks/index-0.1.14-mzhk0gvs.mjs +1 -0
  284. package/dist/chunks/index-0.1.14-qrykb444.mjs +9 -0
  285. package/dist/chunks/index-0.1.14-qvap58wt.mjs +1 -0
  286. package/dist/chunks/index-0.1.14-vygpnv88.mjs +1 -0
  287. package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +1 -0
  288. package/dist/chunks/{index-0.1.12-rhj8dsvk.mjs → index-0.1.14-y3aj57xa.mjs} +1 -1
  289. package/dist/chunks/index-0.1.14-yjw9017n.mjs +1 -0
  290. package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +1 -0
  291. package/dist/chunks/initReplBridge-0.1.14-qe820gff.mjs +1 -0
  292. package/dist/chunks/ink-0.1.14-kxs7ygns.mjs +1 -0
  293. package/dist/chunks/{insights-0.1.12-93mz1f1d.mjs → insights-0.1.14-9n58d9t8.mjs} +3 -3
  294. package/dist/chunks/install-0.1.14-1zyjez10.mjs +1 -0
  295. package/dist/chunks/{install-github-app-0.1.12-qd8g81v4.mjs → install-github-app-0.1.14-kmetkgdq.mjs} +1 -1
  296. package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +1 -0
  297. package/dist/chunks/instrumentation-0.1.14-fsgk97cp.mjs +12 -0
  298. package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +1 -0
  299. package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +2 -0
  300. package/dist/chunks/knowledge-0.1.14-f7w4damb.mjs +2 -0
  301. package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +1 -0
  302. package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +1 -0
  303. package/dist/chunks/lsp-0.1.14-cks4jevz.mjs +1 -0
  304. package/dist/chunks/main-0.1.14-94wst05h.mjs +1 -0
  305. package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +1 -0
  306. package/dist/chunks/mcp-0.1.14-3tzc0agq.mjs +1 -0
  307. package/dist/chunks/{mcp-0.1.12-vm3tpth6.mjs → mcp-0.1.14-dmtc9tjr.mjs} +3 -3
  308. package/dist/chunks/mcp-0.1.14-tepbr987.mjs +4 -0
  309. package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +1 -0
  310. package/dist/chunks/mcpb-0.1.14-ffa57420.mjs +1 -0
  311. package/dist/chunks/memory-0.1.14-cgx518q9.mjs +3 -0
  312. package/dist/chunks/{mobile-0.1.12-qdtxwz76.mjs → mobile-0.1.14-bwjnmpy0.mjs} +1 -1
  313. package/dist/chunks/model-0.1.14-rq2dkze7.mjs +2 -0
  314. package/dist/chunks/model-0.1.14-zg566cz0.mjs +1 -0
  315. package/dist/chunks/{oauth-0.1.12-3aky0v8n.mjs → oauth-0.1.14-gftadks2.mjs} +1 -1
  316. package/dist/chunks/{openaiShim-0.1.12-p458t1q6.mjs → openaiShim-0.1.14-jv6416m8.mjs} +2 -2
  317. package/dist/chunks/{output-style-0.1.12-cahkbh9x.mjs → output-style-0.1.14-v41ce6t5.mjs} +1 -1
  318. package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +1 -0
  319. package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +1 -0
  320. package/dist/chunks/passes-0.1.14-0jjh5wg5.mjs +1 -0
  321. package/dist/chunks/permissions-0.1.14-hh0d709r.mjs +3 -0
  322. package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +1 -0
  323. package/dist/chunks/plist-0.1.14-ssqtjjq9.mjs +1 -0
  324. package/dist/chunks/plugin-0.1.14-01jhhdd3.mjs +29 -0
  325. package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +1 -0
  326. package/dist/chunks/{plugins-0.1.12-sm87b8fm.mjs → plugins-0.1.14-4tggkexv.mjs} +2 -2
  327. package/dist/chunks/{print-0.1.12-8mgqmx4k.mjs → print-0.1.14-m719w2yp.mjs} +10 -10
  328. package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +1 -0
  329. package/dist/chunks/{process-0.1.12-t401v84c.mjs → process-0.1.14-vgdgd7sq.mjs} +1 -1
  330. package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +1 -0
  331. package/dist/chunks/processSlashCommand-0.1.14-7w1v93bg.mjs +9 -0
  332. package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +1 -0
  333. package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +1 -0
  334. package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +1 -0
  335. package/dist/chunks/provider-0.1.14-xs34vy3w.mjs +2 -0
  336. package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +1 -0
  337. package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +1 -0
  338. package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +1 -0
  339. package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +5 -0
  340. package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +2 -0
  341. package/dist/chunks/remote-env-0.1.14-jyc0gkhb.mjs +1 -0
  342. package/dist/chunks/remoteBridgeCore-0.1.14-8kt4ffzy.mjs +1 -0
  343. package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +1 -0
  344. package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +1 -0
  345. package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +1 -0
  346. package/dist/chunks/resume-0.1.14-7sda36n0.mjs +2 -0
  347. package/dist/chunks/{rewind-0.1.12-707se5pz.mjs → rewind-0.1.14-zba66at0.mjs} +1 -1
  348. package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +1 -0
  349. package/dist/chunks/sandbox-toggle-0.1.14-jz6x02qp.mjs +1 -0
  350. package/dist/chunks/session-0.1.14-5qsfxmey.mjs +2 -0
  351. package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +1 -0
  352. package/dist/chunks/sessionStorage-0.1.14-sz2medpp.mjs +1 -0
  353. package/dist/chunks/setup-0.1.14-f13rnmdg.mjs +5 -0
  354. package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +1 -0
  355. package/dist/chunks/skills-0.1.14-1vvr60ph.mjs +1 -0
  356. package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +1 -0
  357. package/dist/chunks/state-0.1.14-rj00ry6n.mjs +1 -0
  358. package/dist/chunks/{stats-0.1.12-5pj1c6sr.mjs → stats-0.1.14-rr3tpwqw.mjs} +1 -1
  359. package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +1 -0
  360. package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +1 -0
  361. package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +1 -0
  362. package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +1 -0
  363. package/dist/chunks/teamHelpers-0.1.14-zv908fgk.mjs +1 -0
  364. package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +1 -0
  365. package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +1 -0
  366. package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +1 -0
  367. package/dist/chunks/theme-0.1.14-202es8wd.mjs +1 -0
  368. package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +1 -0
  369. package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +1 -0
  370. package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +1 -0
  371. package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +1 -0
  372. package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +1 -0
  373. package/dist/chunks/{turndown.cjs-0.1.12-9525v010.mjs → turndown.cjs-0.1.14-nw2rtcyd.mjs} +1 -1
  374. package/dist/chunks/{ultrareviewCommand-0.1.12-d5c4096k.mjs → ultrareviewCommand-0.1.14-9twnt5bp.mjs} +1 -1
  375. package/dist/chunks/{update-0.1.12-hwx0e6fq.mjs → update-0.1.14-9dhep94r.mjs} +11 -11
  376. package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +1 -0
  377. package/dist/chunks/{upstreamproxy-0.1.12-yhnqfcyb.mjs → upstreamproxy-0.1.14-sc0x4n7b.mjs} +1 -1
  378. package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +1 -0
  379. package/dist/chunks/util-0.1.14-vfg50acy.mjs +1 -0
  380. package/dist/chunks/utils-0.1.14-heqqycdx.mjs +1 -0
  381. package/dist/chunks/vim-0.1.14-z71303w7.mjs +1 -0
  382. package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +1 -0
  383. package/dist/chunks/{wiki-0.1.12-vecp82xq.mjs → wiki-0.1.14-s3exyf45.mjs} +1 -1
  384. package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +1 -0
  385. package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +1 -0
  386. package/dist/chunks/{wrapper-0.1.12-bpewypaz.mjs → wrapper-0.1.14-a4mesaeh.mjs} +1 -1
  387. package/dist/claudio-vscode.vsix +0 -0
  388. package/dist/cli.mjs +5 -5
  389. package/package.json +2 -19
  390. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +0 -1
  391. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +0 -1
  392. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +0 -1
  393. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +0 -1
  394. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +0 -1
  395. package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +0 -1
  396. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +0 -1
  397. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +0 -1
  398. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +0 -1
  399. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +0 -1
  400. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +0 -1
  401. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +0 -1
  402. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +0 -1
  403. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +0 -1
  404. package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +0 -1
  405. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +0 -1
  406. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +0 -1
  407. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +0 -1
  408. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +0 -1
  409. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +0 -1
  410. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +0 -1
  411. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +0 -9
  412. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +0 -1
  413. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +0 -1
  414. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +0 -1
  415. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +0 -1
  416. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +0 -3
  417. package/dist/chunks/api-0.1.12-e314x4g9.mjs +0 -1
  418. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +0 -1
  419. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +0 -1
  420. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +0 -1
  421. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +0 -4
  422. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +0 -1
  423. package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +0 -1
  424. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +0 -1
  425. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +0 -1
  426. package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +0 -2
  427. package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +0 -1
  428. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +0 -1
  429. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +0 -1
  430. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +0 -1
  431. package/dist/chunks/cli-0.1.12-0x3cd401.mjs +0 -2
  432. package/dist/chunks/cli-0.1.12-19as1myk.mjs +0 -2
  433. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +0 -2
  434. package/dist/chunks/cli-0.1.12-242der7s.mjs +0 -5036
  435. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +0 -2
  436. package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +0 -2
  437. package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +0 -2
  438. package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +0 -2
  439. package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +0 -2
  440. package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +0 -2
  441. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +0 -22
  442. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +0 -2
  443. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +0 -2
  444. package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +0 -4
  445. package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +0 -2
  446. package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +0 -2
  447. package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +0 -2
  448. package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +0 -2
  449. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +0 -16
  450. package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +0 -2
  451. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +0 -2
  452. package/dist/chunks/cli-0.1.12-6zryzryc.mjs +0 -2
  453. package/dist/chunks/cli-0.1.12-74tt2500.mjs +0 -2
  454. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +0 -2
  455. package/dist/chunks/cli-0.1.12-817sd5bc.mjs +0 -6
  456. package/dist/chunks/cli-0.1.12-8qm558mj.mjs +0 -2
  457. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +0 -2
  458. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +0 -2
  459. package/dist/chunks/cli-0.1.12-b01yrner.mjs +0 -2
  460. package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +0 -4
  461. package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +0 -2
  462. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +0 -2
  463. package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +0 -833
  464. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +0 -2
  465. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +0 -2
  466. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +0 -2
  467. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +0 -8
  468. package/dist/chunks/cli-0.1.12-e262snmb.mjs +0 -3
  469. package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +0 -2
  470. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +0 -2
  471. package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +0 -2
  472. package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +0 -2
  473. package/dist/chunks/cli-0.1.12-g604mknq.mjs +0 -2
  474. package/dist/chunks/cli-0.1.12-g8mny195.mjs +0 -2
  475. package/dist/chunks/cli-0.1.12-h248m986.mjs +0 -2
  476. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +0 -2
  477. package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +0 -2
  478. package/dist/chunks/cli-0.1.12-kea0zcje.mjs +0 -2
  479. package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +0 -2
  480. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +0 -2
  481. package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +0 -2
  482. package/dist/chunks/cli-0.1.12-mevh0dza.mjs +0 -2
  483. package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +0 -2
  484. package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +0 -2
  485. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +0 -4
  486. package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +0 -2
  487. package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +0 -2
  488. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +0 -3
  489. package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +0 -2
  490. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +0 -2
  491. package/dist/chunks/cli-0.1.12-rqedb88a.mjs +0 -10
  492. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +0 -4
  493. package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +0 -2
  494. package/dist/chunks/cli-0.1.12-sd72y750.mjs +0 -12
  495. package/dist/chunks/cli-0.1.12-strz382t.mjs +0 -2
  496. package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +0 -2
  497. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +0 -2
  498. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +0 -2
  499. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +0 -4
  500. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +0 -2
  501. package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +0 -100
  502. package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +0 -2
  503. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +0 -3
  504. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +0 -134
  505. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +0 -2
  506. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +0 -2
  507. package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +0 -2
  508. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +0 -2
  509. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +0 -16
  510. package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +0 -4
  511. package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +0 -2
  512. package/dist/chunks/client-0.1.12-f54egbjx.mjs +0 -1
  513. package/dist/chunks/color-0.1.12-jss6svg8.mjs +0 -1
  514. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +0 -3
  515. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +0 -1
  516. package/dist/chunks/config-0.1.12-ryxz4stj.mjs +0 -1
  517. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +0 -1
  518. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +0 -1
  519. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +0 -1
  520. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +0 -1
  521. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +0 -1
  522. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +0 -1
  523. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +0 -1
  524. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +0 -1
  525. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +0 -1
  526. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +0 -1
  527. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +0 -1
  528. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +0 -8
  529. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +0 -1
  530. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +0 -1
  531. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +0 -1
  532. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +0 -2
  533. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +0 -1
  534. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +0 -1
  535. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +0 -1
  536. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +0 -14
  537. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +0 -1
  538. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +0 -1
  539. package/dist/chunks/help-0.1.12-f02ce11x.mjs +0 -1
  540. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +0 -1
  541. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +0 -79
  542. package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +0 -1
  543. package/dist/chunks/index-0.1.12-218arkqe.mjs +0 -9
  544. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +0 -1
  545. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +0 -1
  546. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +0 -7
  547. package/dist/chunks/index-0.1.12-77szwkm6.mjs +0 -1
  548. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +0 -1
  549. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +0 -1
  550. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +0 -1
  551. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +0 -1
  552. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +0 -1
  553. package/dist/chunks/index-0.1.12-m0e193t8.mjs +0 -1
  554. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +0 -5
  555. package/dist/chunks/index-0.1.12-r92p75vh.mjs +0 -1
  556. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +0 -1
  557. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +0 -1
  558. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +0 -2
  559. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +0 -1
  560. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +0 -2
  561. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +0 -1
  562. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +0 -9
  563. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +0 -1
  564. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +0 -1
  565. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +0 -1
  566. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +0 -1
  567. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +0 -12
  568. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +0 -1
  569. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +0 -2
  570. package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +0 -2
  571. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +0 -1
  572. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +0 -1
  573. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +0 -1
  574. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +0 -1
  575. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +0 -1
  576. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +0 -1
  577. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +0 -1
  578. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +0 -4
  579. package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +0 -1
  580. package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +0 -1
  581. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +0 -3
  582. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +0 -2
  583. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +0 -1
  584. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +0 -1
  585. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +0 -1
  586. package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +0 -1
  587. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +0 -3
  588. package/dist/chunks/plan-0.1.12-waed49m8.mjs +0 -1
  589. package/dist/chunks/plist-0.1.12-65r770yt.mjs +0 -1
  590. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +0 -29
  591. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +0 -1
  592. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +0 -1
  593. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +0 -1
  594. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +0 -9
  595. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +0 -1
  596. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +0 -1
  597. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +0 -1
  598. package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +0 -2
  599. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +0 -1
  600. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +0 -1
  601. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +0 -1
  602. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +0 -5
  603. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +0 -2
  604. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +0 -1
  605. package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +0 -1
  606. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +0 -1
  607. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +0 -1
  608. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +0 -1
  609. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +0 -2
  610. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +0 -1
  611. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +0 -1
  612. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +0 -2
  613. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +0 -1
  614. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +0 -1
  615. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +0 -5
  616. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +0 -1
  617. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +0 -1
  618. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +0 -1
  619. package/dist/chunks/state-0.1.12-e374v6h8.mjs +0 -1
  620. package/dist/chunks/status-0.1.12-qphx08h4.mjs +0 -1
  621. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +0 -1
  622. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +0 -1
  623. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +0 -1
  624. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +0 -1
  625. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +0 -1
  626. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +0 -1
  627. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +0 -1
  628. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +0 -1
  629. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +0 -1
  630. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +0 -1
  631. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +0 -1
  632. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +0 -1
  633. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +0 -1
  634. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +0 -1
  635. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +0 -1
  636. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +0 -1
  637. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +0 -1
  638. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +0 -1
  639. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +0 -1
  640. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +0 -1
  641. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +0 -1
  642. /package/dist/chunks/{cli-0.1.12-tvawkeks.mjs → cli-0.1.14-cahvg3jq.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import{K6 as F5,L6 as t4,M6 as G6,O6 as z6}from"./cli-0.1.12-qn20n18h.mjs";import{Qna as o1,Tna as T5,Una as H}from"./cli-0.1.12-1hv04bp7.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{a5 as F5,b5 as t4,c5 as G6,e5 as z6}from"./cli-0.1.14-heevc19y.mjs";import{Zla as o1,ama as T5,bma as H}from"./cli-0.1.14-qn4ftczz.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{K6 as F5,L6 as t4,M6 as G6,O6 as z6}from"./cli-0.1.12-qn20n18h.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 s6,CW as t6,DW as u6,RW as v6,OW as w6,TW as x6,qW as y6,EW as z6,AW as A6,kW as B6,yW as C6,xW as D6,bW as E6,jW as F6,mW as G6,vW as H6,hW as I6,A6 as J6};
11
+ export{E2 as K4,CW as L4,DW as M4,RW as N4,OW as O4,TW as P4,qW as Q4,EW as R4,AW as S4,kW as T4,yW as U4,xW as V4,bW as W4,jW as X4,mW as Y4,vW as Z4,hW as _4,A6 as $4};
@@ -0,0 +1,2 @@
1
+ import{Dg as a,Eg as l}from"./cli-0.1.14-ja2ctrem.mjs";import{Fg as m,Gg as c}from"./cli-0.1.14-5rp4y3q2.mjs";import{EV as e,GV as n}from"./cli-0.1.14-hjktwgtk.mjs";import{bma as s}from"./cli-0.1.14-qn4ftczz.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
2
+ export{f as Bg,g as Cg};
@@ -0,0 +1,2 @@
1
+ import{bma as t}from"./cli-0.1.14-qn4ftczz.mjs";function o(){}var n=()=>{};
2
+ export{o as yea,n as zea};
@@ -1,4 +1,4 @@
1
- import{OU as X,UU as JT,VU as ST,vV as IT}from"./cli-0.1.12-bddm1g1s.mjs";import{H5 as K,I5 as UT}from"./cli-0.1.12-m6jeef2z.mjs";import{$9 as FT,B_ as Q,Cba as z,D_ as OT,Fba as V,I7 as H,Kba as l,Lba as d,N7 as o,R9 as s,S8 as BT,U8 as VT,V7 as Y,X7 as n,X9 as XT,Yba as D,c_ as qT,d_ as _T,gba as f,iba as YT}from"./cli-0.1.12-vzga2are.mjs";import{dea as E,eea as KT}from"./cli-0.1.12-g3ycbjxk.mjs";import{Kga as u,Mga as LT,Oga as GT,Pga as $T,Sga as zT,Wga as P,_ga as QT}from"./cli-0.1.12-rzpc0tr9.mjs";import{vna as r,wna as ZT}from"./cli-0.1.12-vgbc3g9x.mjs";import{Una as I}from"./cli-0.1.12-1hv04bp7.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{KT();XT();QT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();n();o()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
1
+ import{EU as JT,FU as ST,fV as IT,yU as X}from"./cli-0.1.14-seq2fm2d.mjs";import{U3 as K,V3 as UT}from"./cli-0.1.14-jbn4ywda.mjs";import{A$ as YT,T8 as Q,U$ as z,V8 as OT,X$ as V,_5 as H,aaa as l,baa as d,d6 as o,h8 as s,i7 as BT,k7 as VT,l6 as Y,n6 as n,n8 as XT,oaa as D,r8 as FT,u8 as qT,v8 as _T,y$ as f}from"./cli-0.1.14-2f7s5xbd.mjs";import{vca as E,wca as KT}from"./cli-0.1.14-cdby401e.mjs";import{afa as u,cfa as LT,efa as GT,ffa as $T,ifa as zT,mfa as P,qfa as QT}from"./cli-0.1.14-2mzb5ath.mjs";import{Lla as r,Mla as ZT}from"./cli-0.1.14-akz49g5v.mjs";import{bma as I}from"./cli-0.1.14-qn4ftczz.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{KT();XT();QT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();n();o()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
2
2
 
3
3
  No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
4
4
  `;else if(B==="windows")J=` • Windows: Windows Terminal
@@ -31,4 +31,4 @@ chars = "\\u001B\\r"
31
31
  `,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
32
32
  `,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
33
33
  `,j;var bT=I(()=>{UT();ST();IT();h();TT();D();OT();LT();n();_T();o();VT();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
34
- export{a as cS,h as dS,e as eS,TT as fS,Ww as gS,uT as hS,ET as iS,Lw as jS,zw as kS,Vw as lS,_w as mS,bT as nS};
34
+ export{a as OR,h as PR,e as QR,TT as RR,Ww as SR,uT as TR,ET as UR,Lw as VR,zw as WR,Vw as XR,_w as YR,bT as ZR};
@@ -1,2 +1,2 @@
1
- import{Gb as l,Hb as m,Kb as u,Lb as y}from"./cli-0.1.12-8qm558mj.mjs";import{ov as p,qv as b}from"./cli-0.1.12-242der7s.mjs";import{QU as s,SU as e,vV as C}from"./cli-0.1.12-bddm1g1s.mjs";import{rX as i,sX as r,tX as g}from"./cli-0.1.12-04jw23rj.mjs";import{uX as M}from"./cli-0.1.12-ytxphavm.mjs";import{Qna as h,Una as f}from"./cli-0.1.12-1hv04bp7.mjs";function T({enabled:c,onDismiss:a}){let[n,o]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudio/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",t=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:t}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudio/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),o({kind:"hidden"}),a?.("skipped");return}o({kind:"running"}),(async()=>{let t=await l();o({kind:t.errors.length===0?"success":"error",report:t}),a?.("migrated")})()},onCancel:()=>{o({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
- export{T as Eb,w as Fb};
1
+ import{Bc as l,Cc as m,Fc as u,Gc as y}from"./cli-0.1.14-gdm27acz.mjs";import{iv as p,kv as b}from"./cli-0.1.14-j5sbzwhy.mjs";import{AU as s,CU as e,fV as C}from"./cli-0.1.14-seq2fm2d.mjs";import{EV as i,FV as r,GV as g}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as M}from"./cli-0.1.14-harz1d9d.mjs";import{Zla as h,bma as f}from"./cli-0.1.14-qn4ftczz.mjs";function T({enabled:c,onDismiss:a}){let[n,o]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudio/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",t=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:t}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudio/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),o({kind:"hidden"}),a?.("skipped");return}o({kind:"running"}),(async()=>{let t=await l();o({kind:t.errors.length===0?"success":"error",report:t}),a?.("migrated")})()},onCancel:()=>{o({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
+ export{T as zc,w as Ac};
@@ -1,2 +1,2 @@
1
- import{Una as t}from"./cli-0.1.12-1hv04bp7.mjs";var r,i=(s,e)=>function(){return e||(0,s[r(s)[0]])((e={exports:{}}).exports,e),e.exports},n;var a=t(()=>{r=Object.getOwnPropertyNames,n=i({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.18.1",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.14.0",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^9.0.1"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.5","axios@>=1.14.1 <1.15.0":"1.14.0","axios@>=0.30.4 <0.31.0":"0.30.3"}}}}})});
2
- export{n as uh,a as vh};
1
+ import{bma as t}from"./cli-0.1.14-qn4ftczz.mjs";var r,i=(s,e)=>function(){return e||(0,s[r(s)[0]])((e={exports:{}}).exports,e),e.exports},n;var a=t(()=>{r=Object.getOwnPropertyNames,n=i({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.22.2",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.15.2",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^9.0.1"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.5","axios@<1.15.2":"1.15.2","follow-redirects@<1.16.0":">=1.16.0 <2.0.0"}}}}})});
2
+ export{n as zg,a as Ag};
@@ -1,2 +1,2 @@
1
1
  function t(s){if(s===null||typeof s!=="object")return s;let e=s;if("requestId"in e&&!("request_id"in e))e.request_id=e.requestId,delete e.requestId;if("response"in e&&e.response!==null&&typeof e.response==="object"){let n=e.response;if("requestId"in n&&!("request_id"in n))n.request_id=n.requestId,delete n.requestId}return s}
2
- export{t as ua};
2
+ export{t as Qa};
@@ -0,0 +1,2 @@
1
+ import{le as N0,me as U0,oe as VP}from"./cli-0.1.14-5e5kkjam.mjs";import{$I as CP,Aq as D0,Bq as A0,CI as XP,Cq as h0,DI as m0,Dq as T0,FI as YP,Fr as p,Gq as w0,Gr as M0,Hr as r,Ir as W0,KI as mP,Nq as j0,RI as C0,Uq as WP,XJ as L0,YJ as ZP,_J as u0,br as cP,iv as J0,kv as i0,rt as O0,st as EP,sy as G0,ty as QP,wj as h,xK as qP,xj as c0,yK as pP,yq as fP}from"./cli-0.1.14-j5sbzwhy.mjs";import{ER as R0,FR as LP}from"./cli-0.1.14-dqads3y3.mjs";import{ES as z0,GS as TP,qS as JP,rS as hP}from"./cli-0.1.14-w6nzk5dc.mjs";import{AU as X,CU as L,GU as F0,QS as I0,QT as PP,VT as AP,WU as GP,ZS as k0,fV as q0,yU as C}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as n,EV as J,FV as Q,GV as a}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as $0}from"./cli-0.1.14-harz1d9d.mjs";import{cW as d0,dW as dP}from"./cli-0.1.14-cp2pada5.mjs";import{g3 as e0,y3 as gP}from"./cli-0.1.14-a6kwmqhz.mjs";import{b6 as r0,c_ as y0,d6 as IP,d_ as B0,e6 as _,e_ as KP,f6 as s0,q_ as H0,r_ as zP,z_ as p0}from"./cli-0.1.14-2f7s5xbd.mjs";import{hda as g0,ida as SP}from"./cli-0.1.14-9vc52dnj.mjs";import{yea as m,zea as _P}from"./cli-0.1.14-t3fga5je.mjs";import{Yea as f0,cfa as t0}from"./cli-0.1.14-2mzb5ath.mjs";import{Zla as e,bma as P0}from"./cli-0.1.14-qn4ftczz.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=R0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=L0((q)=>q.mcp),M=ZP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=A0(q.mcp.tools,G.name),d=h0(q.mcp.commands,G.name),Z0=T0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),d0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=D0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await d0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await YP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else r0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof XP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=A0(q.mcp.tools,G.name),d=h0(q.mcp.commands,G.name),Z0=T0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(qP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:w0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(J0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{s0();_P();SP();LP();hP();AP();q0();TP();mP();CP();VP();j0();u0();gP();dP();t0();IP();p0();M0();i0();W0();c0();QP();pP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=R0(),k=L0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=D0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:w0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(J0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{s0();LP();q0();cP();VP();j0();u0();t0();p0();M0();i0();W0();c0();QP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();M0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=L0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(J0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();j0();u0();p0();M0();i0();W0();EP();c0();a();HP=e(I0(),1)});
2
+ export{bG as ce,$P as de,uG as ee,jP as fe,tG as ge,uP as he,VJ as ie,aP as je};
@@ -0,0 +1,4 @@
1
+ import{Ie as LJ,Je as WQ}from"./cli-0.1.14-we6s7jfg.mjs";import{Ke as PJ,Le as hQ}from"./cli-0.1.14-bgqm4vsk.mjs";import{Me as hJ,Ne as RQ}from"./cli-0.1.14-r00mjm41.mjs";import{Oe as nq,Pe as xJ}from"./cli-0.1.14-ab0rxxvk.mjs";import{Qe as wq,Re as eq,Se as rJ}from"./cli-0.1.14-4tmbgg29.mjs";import{Te as WJ,Ue as HQ}from"./cli-0.1.14-5te1nbdc.mjs";import{$B as FQ,Oj as YJ,Pj as YQ,Qh as Fq,Qv as KJ,SE as oq,Sv as VJ,UE as $J,Uh as aq,Uv as VQ,XJ as g,Xh as iq,ZB as HJ,_B as RJ,_J as wQ,aw as vq,bw as XQ,cA as UJ,cw as XJ,dA as BQ,dw as yQ,eA as FJ,ew as yJ,fA as wJ,fw as NJ,gA as UQ,gF as Aq,gw as BJ,hi as lJ,hw as NQ,jF as gJ,nj as uq,oj as mq,qj as pq,qk as P,rj as fJ,rk as Tq}from"./cli-0.1.14-j5sbzwhy.mjs";import{ER as GJ,FR as GQ}from"./cli-0.1.14-dqads3y3.mjs";import{FS as zJ,GS as zQ,OS as Mq,PS as KQ}from"./cli-0.1.14-w6nzk5dc.mjs";import{AU as y,CU as Q,QS as Pq,fV as Oq}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as h,EV as Y,FV as Z,GV as c}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as ZQ}from"./cli-0.1.14-harz1d9d.mjs";import{$1 as ZJ,N1 as cJ,b2 as QQ,p1 as rq}from"./cli-0.1.14-a6kwmqhz.mjs";import{$_ as QJ,T7 as Iq,e6 as $,f6 as tJ,j$ as JQ,n8 as qQ,n_ as gq,o_ as dJ,r_ as xq,z_ as TJ}from"./cli-0.1.14-2f7s5xbd.mjs";import{Afa as JJ,Nfa as sJ}from"./cli-0.1.14-s9m1y93w.mjs";import{Bha as qJ,mla as eJ}from"./cli-0.1.14-r46jh9af.mjs";import{Zla as Bq,bma as Uq}from"./cli-0.1.14-qn4ftczz.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function aJ(){let J=iq(await aq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${Fq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${Fq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:Fq}}async function iJ(J){if(!J)return null;let q=eq(J);if(q<=wq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${wq.toLocaleString()})`,details:G,currentValue:q,threshold:wq}}async function oJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await oq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function nJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=nq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function sq(J,q,V){let[G,K,X,B]=await Promise.all([aJ(),iJ(q),oJ(J,V,q),nJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var tq=Uq(()=>{gJ();$J();lJ();cJ();dJ();xJ();Tq();rJ();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);GJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:wJ,upperLimit:FJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-7")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudio","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await sq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),yJ()){let Lq=bq(XJ(),"claude","locks"),DJ=BJ(Lq),SJ=NJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
+ `)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
3
+ `)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",YJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=UJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?VJ:KJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();KQ();RQ();$q();WQ();hQ();GQ();Oq();zQ();wQ();YQ();VQ();tq();XQ();BQ();qQ();NQ();JQ();UQ();FQ();yQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
4
+ export{pZ as Ge,cQ as He};
@@ -1,2 +1,2 @@
1
- import{eT as f,fV as W,tV as X,vV as k}from"./cli-0.1.12-bddm1g1s.mjs";import{qX as V,rX as J,tX as K}from"./cli-0.1.12-04jw23rj.mjs";import{uX as P}from"./cli-0.1.12-ytxphavm.mjs";import{wfa as U,xfa as O}from"./cli-0.1.12-bhxgr018.mjs";import{Qna as Q,Una as L}from"./cli-0.1.12-1hv04bp7.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as Vf,N as Wf,j as Xf};
1
+ import{QS as f,RU as W,dV as X,fV as k}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as V,EV as J,GV as K}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as P}from"./cli-0.1.14-harz1d9d.mjs";import{Oda as U,Pda as O}from"./cli-0.1.14-mgcmwvcn.mjs";import{Zla as Q,bma as L}from"./cli-0.1.14-qn4ftczz.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
+ export{g as Sf,N as Tf,j as Uf};
@@ -1,7 +1,7 @@
1
- import{cP as a,dP as E,fP as r,gP as o,hP as s,mP as GQ}from"./cli-0.1.12-7mjpbm22.mjs";import{BX as N,DX as t}from"./cli-0.1.12-d8m01qtm.mjs";import{f4 as U,g4 as I}from"./cli-0.1.12-y9598sy3.mjs";import{F5 as KQ,y5 as n}from"./cli-0.1.12-erggrdth.mjs";import{J6 as jQ,s6 as e}from"./cli-0.1.12-rwzav5h1.mjs";import{r7 as Y,t7 as h}from"./cli-0.1.12-vzga2are.mjs";import{gga as u,hga as ZQ}from"./cli-0.1.12-6x2mnahn.mjs";import{Gga as H,Hga as i,Mga as F,Oga as k,Pga as R,Sga as y,eha as K,hha as b}from"./cli-0.1.12-rzpc0tr9.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{$O as s,WO as a,XO as E,ZO as r,_O as o,eP as GQ}from"./cli-0.1.14-k8nwm06m.mjs";import{OV as N,QV as t}from"./cli-0.1.14-d4zkffre.mjs";import{s2 as U,t2 as I}from"./cli-0.1.14-a6kwmqhz.mjs";import{L3 as n,S3 as KQ}from"./cli-0.1.14-rc5yd94n.mjs";import{$4 as jQ,K4 as e}from"./cli-0.1.14-stv1d0q3.mjs";import{J5 as Y,L5 as h}from"./cli-0.1.14-2f7s5xbd.mjs";import{yea as u,zea as ZQ}from"./cli-0.1.14-t3fga5je.mjs";import{Yea as H,Zea as i,cfa as F,efa as k,ffa as R,ifa as y,wfa as K,zfa as b}from"./cli-0.1.14-2mzb5ath.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+`
5
5
  `+O:O;break}}if(J.data||G)W.push(J)}return{frames:W,remaining:Q.slice(Z)}}class _Q{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(Q,W={},Z,z,$,J){this.url=Q;if(this.headers=W,this.sessionId=Z,this.refreshHeaders=z,this.getAuthHeaders=J??E,this.postUrl=RQ(Q),$!==void 0&&$>0)this.lastSequenceNum=$;K(`SSETransport: SSE URL = ${Q.href}`),K(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){K(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let Q=Date.now(),W=new URL(this.url.href);if(this.lastSequenceNum>0)W.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Z=this.getAuthHeaders(),z={...this.headers,...Z,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":N()};if(Z.Cookie)delete z.Authorization;if(this.lastSequenceNum>0)z["Last-Event-ID"]=String(this.lastSequenceNum);K(`SSETransport: Opening ${W.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(W.href,{headers:z,signal:this.abortController.signal});if(!$.ok){let G=PQ.has($.status);if(K(`SSETransport: HTTP ${$.status}${G?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:$.status}),G){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){K("SSETransport: No response body"),this.handleConnectionError();return}let J=Date.now()-Q;K("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:J}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Connection error: ${H($)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(Q){let W=Q.getReader(),Z=new TextDecoder,z="";try{while(!0){let{done:$,value:J}=await W.read();if($)break;z+=Z.decode(J,kQ);let{frames:G,remaining:X}=AQ(z);z=X;for(let q of G){if(this.resetLivenessTimer(),q.id){let L=parseInt(q.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))K(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let O=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<O)this.seenSequenceNums.delete(_)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(q.event&&q.data)this.handleSSEFrame(q.event,q.data);else if(q.data)K("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{W.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")K("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(Q,W){if(Q!=="client_event"){K(`SSETransport: Unexpected SSE event type '${Q}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:Q});return}let Z;try{Z=R(W)}catch($){K(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let z=Z.payload;if(z&&typeof z==="object"&&"type"in z){let $=this.sessionId?` session=${this.sessionId}`:"";K(`SSETransport: Event seq=${Z.sequence_num} event_id=${Z.event_id} event_type=${Z.event_type} payload_type=${String(z.type)}${$}`),Y("info","cli_sse_message_received"),this.onData?.(k(z)+`
6
6
  `)}else K(`SSETransport: Ignoring client_event with no type in payload: event_id=${Z.event_id}`);this.onEventCallback?.(Z)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;let W=Q-this.reconnectStartTime;if(W<UQ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),K("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Z=Math.min(BQ*Math.pow(2,this.reconnectAttempts-1),HQ),z=Math.max(0,Z+Z*0.25*(2*Math.random()-1));K(`SSETransport: Reconnecting in ${Math.round(z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(W/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},z)}else K(`SSETransport: Reconnection time budget exhausted after ${Math.round(W/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:W}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,K("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,CQ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0){K("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Z={...W,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()};K(`SSETransport: POST body keys=${Object.keys(Q).join(",")}`);for(let z=1;z<=A;z++){try{let J=await e.post(this.postUrl,Q,{headers:Z,validateStatus:xQ});if(J.status===200||J.status===201){K(`SSETransport: POST success type=${Q.type}`);return}if(K(`SSETransport: POST ${J.status} body=${k(J.data).slice(0,200)}`),J.status>=400&&J.status<500&&J.status!==429){K(`SSETransport: POST returned ${J.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:J.status});return}K(`SSETransport: POST returned ${J.status}, attempt ${z}/${A}`),Y("warn","cli_sse_post_retryable_error",{status:J.status,attempt:z})}catch(J){K(`SSETransport: POST error: ${J.message}, attempt ${z}/${A}`),Y("warn","cli_sse_post_network_error",{attempt:z})}if(z===A){K(`SSETransport: POST failed after ${A} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(TQ*Math.pow(2,z-1),NQ);await U($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(Q){this.onData=Q}setOnClose(Q){this.onCloseCallback=Q}setOnEvent(Q){this.onEventCallback=Q}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function RQ(Q){let W=Q.pathname;if(W.endsWith("/stream"))W=W.slice(0,-7);return`${Q.protocol}//${Q.host}${W}`}
7
- export{FQ as n,x as o,M as p,OQ as q,_Q as r};
7
+ export{FQ as D,x as E,M as F,OQ as G,_Q as H};
@@ -0,0 +1,2 @@
1
+ import{X$ as P,oaa as y}from"./cli-0.1.14-2f7s5xbd.mjs";import{bma as U}from"./cli-0.1.14-qn4ftczz.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ export{G as EQ,M as FQ,N as GQ,Y as HQ,C as IQ,_ as JQ,R as KQ,f as LQ,E as MQ,I as NQ,k as OQ,A as PQ,b as QQ,h as RQ,m as SQ,p as TQ,u as UQ,T as VQ,e as WQ,W as XQ,a as YQ,s as ZQ,r as _Q,g as $Q};