@claudiolabs/claudin 0.7.1 → 0.7.4

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 (905) hide show
  1. package/LICENSE +23 -200
  2. package/README.md +25 -89
  3. package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
  4. package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
  5. package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
  6. package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
  7. package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
  12. package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
  13. package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
  14. package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
  15. package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
  21. package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
  31. package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
  32. package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
  33. package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
  34. package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
  35. package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
  36. package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
  37. package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
  38. package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
  39. package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
  40. package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
  41. package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
  42. package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
  43. package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
  44. package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
  45. package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
  46. package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
  47. package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
  48. package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
  49. package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
  50. package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
  51. package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
  52. package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
  53. package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
  54. package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
  55. package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
  56. package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
  57. package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
  58. package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
  59. package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
  60. package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
  61. package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
  62. package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
  63. package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
  64. package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
  65. package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
  66. package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
  67. package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
  68. package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
  69. package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
  70. package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
  71. package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
  72. package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
  73. package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
  74. package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
  75. package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
  76. package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
  77. package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
  78. package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
  79. package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
  80. package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
  81. package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
  82. package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
  83. package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
  84. package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
  85. package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
  86. package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
  87. package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
  88. package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
  89. package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
  90. package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
  91. package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
  92. package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
  93. package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
  94. package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
  95. package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
  96. package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
  97. package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
  98. package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
  99. package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
  100. package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
  102. package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
  103. package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
  104. package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
  105. package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
  106. package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
  107. package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
  108. package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
  109. package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
  111. package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
  112. package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
  113. package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
  114. package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
  115. package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
  116. package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
  117. package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
  118. package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
  119. package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
  120. package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
  121. package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
  122. package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
  123. package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
  124. package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
  125. package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
  126. package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
  127. package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
  128. package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
  129. package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
  130. package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
  131. package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
  132. package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
  133. package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
  134. package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
  135. package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
  136. package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
  137. package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
  138. package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
  139. package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
  140. package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
  141. package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
  142. package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
  143. package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
  144. package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
  145. package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
  146. package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
  147. package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
  148. package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
  149. package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
  150. package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
  151. package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
  152. package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
  153. package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
  154. package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
  155. package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
  156. package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
  157. package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
  158. package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
  159. package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
  160. package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
  161. package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
  162. package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
  163. package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
  164. package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
  165. package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
  166. package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
  167. package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
  168. package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
  169. package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
  170. package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
  171. package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
  172. package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
  173. package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
  174. package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
  175. package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
  176. package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
  177. package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
  178. package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
  179. package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
  180. package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
  181. package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
  182. package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
  183. package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
  184. package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
  185. package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
  186. package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
  187. package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
  188. package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
  189. package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
  190. package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
  191. package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
  192. package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
  193. package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
  194. package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
  195. package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
  196. package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
  197. package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
  198. package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
  199. package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
  200. package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
  201. package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
  202. package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
  203. package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
  204. package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
  205. package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
  206. package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
  207. package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
  208. package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
  209. package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
  210. package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
  211. package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
  212. package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
  213. package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
  214. package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
  215. package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
  216. package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
  217. package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
  218. package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
  219. package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
  220. package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
  221. package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
  222. package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
  223. package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
  224. package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
  225. package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
  226. package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
  227. package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
  228. package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
  229. package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
  230. package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
  231. package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
  232. package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
  233. package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
  234. package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
  235. package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
  236. package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
  237. package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
  238. package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
  239. package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
  240. package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
  241. package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
  242. package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
  243. package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
  244. package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
  245. package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
  246. package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
  247. package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
  248. package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
  249. package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
  250. package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
  251. package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
  252. package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
  253. package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
  254. package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
  255. package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
  256. package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
  257. package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
  258. package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
  259. package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
  260. package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
  261. package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
  262. package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
  263. package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
  264. package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
  265. package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
  266. package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
  267. package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
  268. package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
  269. package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
  270. package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
  271. package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
  273. package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
  275. package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
  276. package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
  277. package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
  278. package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
  279. package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
  281. package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
  282. package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
  283. package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
  284. package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
  285. package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
  287. package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
  288. package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
  289. package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
  291. package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
  292. package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
  293. package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
  294. package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
  295. package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
  296. package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
  297. package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
  298. package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
  299. package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
  301. package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
  302. package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
  304. package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
  306. package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
  307. package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
  308. package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
  309. package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
  310. package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
  311. package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
  312. package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
  313. package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
  314. package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
  315. package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
  318. package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
  319. package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
  320. package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
  321. package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
  322. package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
  323. package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
  324. package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
  325. package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
  326. package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
  327. package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
  328. package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
  329. package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
  330. package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
  331. package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
  332. package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
  333. package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
  334. package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
  335. package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
  336. package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
  337. package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
  338. package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
  339. package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
  340. package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
  341. package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
  342. package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
  343. package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
  344. package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
  345. package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
  346. package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
  347. package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
  348. package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
  350. package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
  351. package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
  355. package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
  356. package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
  357. package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
  358. package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
  359. package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
  360. package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
  361. package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
  362. package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
  363. package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
  364. package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
  365. package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
  366. package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
  367. package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
  368. package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
  369. package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
  370. package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
  372. package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
  373. package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
  374. package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
  375. package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
  376. package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
  377. package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
  378. package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
  380. package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
  381. package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
  382. package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
  383. package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
  384. package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
  385. package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
  387. package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
  388. package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
  389. package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
  390. package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
  391. package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
  392. package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
  393. package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
  396. package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
  397. package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
  398. package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
  399. package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
  401. package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
  402. package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
  404. package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
  405. package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
  406. package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
  407. package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
  408. package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
  410. package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
  413. package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
  414. package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
  415. package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
  416. package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
  417. package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
  418. package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
  420. package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
  421. package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
  422. package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
  423. package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
  425. package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
  426. package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
  428. package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
  429. package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
  430. package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
  431. package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
  432. package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
  433. package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
  434. package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
  435. package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
  436. package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
  438. package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
  440. package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
  441. package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
  442. package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
  445. package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
  446. package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
  447. package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
  448. package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
  449. package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
  450. package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
  451. package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
  452. package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
  454. package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
  455. package/dist/claudin-vscode.vsix +0 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +20 -2
  458. package/dist/chunks/AgentTool-0.7.1-d5a04rhw.mjs +0 -1
  459. package/dist/chunks/App-0.7.1-qe37xdwh.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-0.7.1-hcwrem4g.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-0.7.1-ed3kh69n.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-0.7.1-9dhakyk3.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-0.7.1-zqdx4k6r.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.1-ja900v6h.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-0.7.1-p5f8b85c.mjs +0 -1
  466. package/dist/chunks/DiffDialog-0.7.1-frcnb58g.mjs +0 -7
  467. package/dist/chunks/Doctor-0.7.1-5a5bqzar.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-0.7.1-sp9zfyb5.mjs +0 -6
  469. package/dist/chunks/Grove-0.7.1-9ats64c9.mjs +0 -1
  470. package/dist/chunks/ITermBackend-0.7.1-160z9025.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-0.7.1-dm3mnxja.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-0.7.1-94m5wc8k.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-0.7.1-2sy3633s.mjs +0 -1
  474. package/dist/chunks/Onboarding-0.7.1-4ryf7vkp.mjs +0 -1
  475. package/dist/chunks/ProviderManager-0.7.1-m863v53f.mjs +0 -1
  476. package/dist/chunks/REPL-0.7.1-a1pdjtms.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-0.7.1-39h2xh04.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-0.7.1-zwedgae2.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-0.7.1-9anv6ssa.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-0.7.1-2awpvnbb.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-0.7.1-nd5kypwz.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-0.7.1-7cyfxvj8.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-0.7.1-9kyy73xn.mjs +0 -1
  484. package/dist/chunks/TrustDialog-0.7.1-k2dez79x.mjs +0 -1
  485. package/dist/chunks/activeProvider-0.7.1-vv0d3v6j.mjs +0 -1
  486. package/dist/chunks/add-dir-0.7.1-4mzgm2te.mjs +0 -1
  487. package/dist/chunks/agents-0.7.1-atjgpzds.mjs +0 -3
  488. package/dist/chunks/agents-0.7.1-fyqad9rz.mjs +0 -110
  489. package/dist/chunks/api-0.7.1-fsw86vpr.mjs +0 -1
  490. package/dist/chunks/asciicast-0.7.1-2wj656v8.mjs +0 -1
  491. package/dist/chunks/assistant-0.7.1-91m5tfq4.mjs +0 -1
  492. package/dist/chunks/auth-0.7.1-b9ybay2b.mjs +0 -1
  493. package/dist/chunks/auth-0.7.1-tbd13raw.mjs +0 -1
  494. package/dist/chunks/autoMode-0.7.1-jwnj54pb.mjs +0 -48
  495. package/dist/chunks/autoUpdater-0.7.1-e4v9zzkn.mjs +0 -1
  496. package/dist/chunks/backgroundHousekeeping-0.7.1-jxebk27x.mjs +0 -1
  497. package/dist/chunks/branch-0.7.1-qr35xar0.mjs +0 -4
  498. package/dist/chunks/bridge-0.7.1-8qbgc2e9.mjs +0 -2
  499. package/dist/chunks/bridgeConfig-0.7.1-5dz9y1gn.mjs +0 -1
  500. package/dist/chunks/bridgeEnabled-0.7.1-fqgbq6ry.mjs +0 -1
  501. package/dist/chunks/bridgeMain-0.7.1-hd9vv35g.mjs +0 -88
  502. package/dist/chunks/bridgePointer-0.7.1-rxxjfj3q.mjs +0 -1
  503. package/dist/chunks/btw-0.7.1-86yem67j.mjs +0 -1
  504. package/dist/chunks/buddy-0.7.1-kdmsha6s.mjs +0 -3
  505. package/dist/chunks/cacache-0.7.1-ahmz5znn.mjs +0 -1
  506. package/dist/chunks/cache-probe-0.7.1-jkjqgvf0.mjs +0 -21
  507. package/dist/chunks/cacheStats-0.7.1-wt820qhe.mjs +0 -4
  508. package/dist/chunks/caches-0.7.1-xjaktk6r.mjs +0 -1
  509. package/dist/chunks/claudeDesktop-0.7.1-pxv7ev3t.mjs +0 -1
  510. package/dist/chunks/claudemd-0.7.1-dzm84q1p.mjs +0 -1
  511. package/dist/chunks/clear-0.7.1-gx38nydx.mjs +0 -1
  512. package/dist/chunks/clearTerminal-0.7.1-5htkde19.mjs +0 -1
  513. package/dist/chunks/cli-0.7.1-01af799v.mjs +0 -2
  514. package/dist/chunks/cli-0.7.1-0ef7xs1s.mjs +0 -2
  515. package/dist/chunks/cli-0.7.1-0qwnf6wz.mjs +0 -16
  516. package/dist/chunks/cli-0.7.1-0sacamdc.mjs +0 -2
  517. package/dist/chunks/cli-0.7.1-0y31txhk.mjs +0 -2
  518. package/dist/chunks/cli-0.7.1-1188jq4p.mjs +0 -2
  519. package/dist/chunks/cli-0.7.1-1gbsnea3.mjs +0 -2
  520. package/dist/chunks/cli-0.7.1-1ts20eyt.mjs +0 -3
  521. package/dist/chunks/cli-0.7.1-21s047ay.mjs +0 -2
  522. package/dist/chunks/cli-0.7.1-24da357x.mjs +0 -3
  523. package/dist/chunks/cli-0.7.1-28433yep.mjs +0 -2
  524. package/dist/chunks/cli-0.7.1-2e97a1f7.mjs +0 -2
  525. package/dist/chunks/cli-0.7.1-2g1mhmsb.mjs +0 -2
  526. package/dist/chunks/cli-0.7.1-2q24e8yf.mjs +0 -6
  527. package/dist/chunks/cli-0.7.1-30b9rs2y.mjs +0 -2
  528. package/dist/chunks/cli-0.7.1-356bj7gh.mjs +0 -2
  529. package/dist/chunks/cli-0.7.1-37e4777p.mjs +0 -2
  530. package/dist/chunks/cli-0.7.1-3bfhg1sc.mjs +0 -2
  531. package/dist/chunks/cli-0.7.1-3cp4zkfv.mjs +0 -2
  532. package/dist/chunks/cli-0.7.1-3ehkpebq.mjs +0 -2
  533. package/dist/chunks/cli-0.7.1-3eywakdr.mjs +0 -15
  534. package/dist/chunks/cli-0.7.1-3m0mytg6.mjs +0 -2
  535. package/dist/chunks/cli-0.7.1-3q21cp2p.mjs +0 -26
  536. package/dist/chunks/cli-0.7.1-3s79d0ky.mjs +0 -2
  537. package/dist/chunks/cli-0.7.1-3y886h54.mjs +0 -2
  538. package/dist/chunks/cli-0.7.1-46gjthdy.mjs +0 -2
  539. package/dist/chunks/cli-0.7.1-497wkpjf.mjs +0 -2
  540. package/dist/chunks/cli-0.7.1-4ft7hrdc.mjs +0 -3
  541. package/dist/chunks/cli-0.7.1-4gvkgkvn.mjs +0 -4
  542. package/dist/chunks/cli-0.7.1-4hhqjvy4.mjs +0 -2
  543. package/dist/chunks/cli-0.7.1-4pp5s9hy.mjs +0 -2
  544. package/dist/chunks/cli-0.7.1-4t6v1n3h.mjs +0 -2
  545. package/dist/chunks/cli-0.7.1-57x4wzc4.mjs +0 -2
  546. package/dist/chunks/cli-0.7.1-5bbbwn2g.mjs +0 -2
  547. package/dist/chunks/cli-0.7.1-5fsqggqk.mjs +0 -3
  548. package/dist/chunks/cli-0.7.1-5pp47rx1.mjs +0 -18
  549. package/dist/chunks/cli-0.7.1-65bm304r.mjs +0 -133
  550. package/dist/chunks/cli-0.7.1-6d8y1qn4.mjs +0 -4
  551. package/dist/chunks/cli-0.7.1-6q9k674b.mjs +0 -2
  552. package/dist/chunks/cli-0.7.1-6rrxtyy0.mjs +0 -2
  553. package/dist/chunks/cli-0.7.1-6ta56xg1.mjs +0 -12
  554. package/dist/chunks/cli-0.7.1-6zk672en.mjs +0 -2
  555. package/dist/chunks/cli-0.7.1-71g0e9ze.mjs +0 -6
  556. package/dist/chunks/cli-0.7.1-7mmdptp2.mjs +0 -15
  557. package/dist/chunks/cli-0.7.1-7vnqyd9e.mjs +0 -6
  558. package/dist/chunks/cli-0.7.1-825msf79.mjs +0 -2
  559. package/dist/chunks/cli-0.7.1-84yhx3q1.mjs +0 -12
  560. package/dist/chunks/cli-0.7.1-88kwyk7r.mjs +0 -17
  561. package/dist/chunks/cli-0.7.1-8m2w4jnj.mjs +0 -2
  562. package/dist/chunks/cli-0.7.1-8vpv5q4z.mjs +0 -2
  563. package/dist/chunks/cli-0.7.1-90skq72m.mjs +0 -5
  564. package/dist/chunks/cli-0.7.1-9e4dha4t.mjs +0 -2
  565. package/dist/chunks/cli-0.7.1-9errxa1g.mjs +0 -2
  566. package/dist/chunks/cli-0.7.1-9fk02985.mjs +0 -2
  567. package/dist/chunks/cli-0.7.1-9jzbjqh3.mjs +0 -2
  568. package/dist/chunks/cli-0.7.1-9pspqj1n.mjs +0 -2
  569. package/dist/chunks/cli-0.7.1-9sy5d7re.mjs +0 -2
  570. package/dist/chunks/cli-0.7.1-a24fwkdp.mjs +0 -2
  571. package/dist/chunks/cli-0.7.1-a4x1wq4z.mjs +0 -2
  572. package/dist/chunks/cli-0.7.1-a4zjaz57.mjs +0 -2
  573. package/dist/chunks/cli-0.7.1-a680vzj5.mjs +0 -2
  574. package/dist/chunks/cli-0.7.1-aawgfrph.mjs +0 -3
  575. package/dist/chunks/cli-0.7.1-b1q31fh8.mjs +0 -50
  576. package/dist/chunks/cli-0.7.1-b8rrjfjb.mjs +0 -2
  577. package/dist/chunks/cli-0.7.1-bkp0aqdj.mjs +0 -2
  578. package/dist/chunks/cli-0.7.1-bmqpkffh.mjs +0 -2
  579. package/dist/chunks/cli-0.7.1-bnwqh4sh.mjs +0 -21
  580. package/dist/chunks/cli-0.7.1-bvd99qhf.mjs +0 -2
  581. package/dist/chunks/cli-0.7.1-bzk0abt1.mjs +0 -6
  582. package/dist/chunks/cli-0.7.1-c0ndrc74.mjs +0 -2
  583. package/dist/chunks/cli-0.7.1-c2g89e99.mjs +0 -2
  584. package/dist/chunks/cli-0.7.1-c5513023.mjs +0 -2
  585. package/dist/chunks/cli-0.7.1-c9fnmbwv.mjs +0 -12
  586. package/dist/chunks/cli-0.7.1-cekfrrmq.mjs +0 -8
  587. package/dist/chunks/cli-0.7.1-cf5wjthv.mjs +0 -2
  588. package/dist/chunks/cli-0.7.1-cgnzp3xh.mjs +0 -10
  589. package/dist/chunks/cli-0.7.1-cj9e468m.mjs +0 -2
  590. package/dist/chunks/cli-0.7.1-cjg6h2ca.mjs +0 -2
  591. package/dist/chunks/cli-0.7.1-cxscssf3.mjs +0 -4
  592. package/dist/chunks/cli-0.7.1-cxtqva68.mjs +0 -2
  593. package/dist/chunks/cli-0.7.1-d32m4pzb.mjs +0 -2
  594. package/dist/chunks/cli-0.7.1-d566f9dm.mjs +0 -2
  595. package/dist/chunks/cli-0.7.1-dfhpzav5.mjs +0 -2
  596. package/dist/chunks/cli-0.7.1-dmk3nmr9.mjs +0 -4
  597. package/dist/chunks/cli-0.7.1-dnmrbd43.mjs +0 -2
  598. package/dist/chunks/cli-0.7.1-dr27dym5.mjs +0 -2
  599. package/dist/chunks/cli-0.7.1-dsh8dcz2.mjs +0 -2
  600. package/dist/chunks/cli-0.7.1-dw2af4d2.mjs +0 -3
  601. package/dist/chunks/cli-0.7.1-dwrmbzjk.mjs +0 -2
  602. package/dist/chunks/cli-0.7.1-dx2b4mwt.mjs +0 -2
  603. package/dist/chunks/cli-0.7.1-dxxszxaa.mjs +0 -2
  604. package/dist/chunks/cli-0.7.1-dyf7seqv.mjs +0 -4
  605. package/dist/chunks/cli-0.7.1-e59h3jkz.mjs +0 -2
  606. package/dist/chunks/cli-0.7.1-eaqxfq5j.mjs +0 -2
  607. package/dist/chunks/cli-0.7.1-ebdykdv4.mjs +0 -4
  608. package/dist/chunks/cli-0.7.1-ebkzwe4v.mjs +0 -2
  609. package/dist/chunks/cli-0.7.1-eda0jmy0.mjs +0 -3
  610. package/dist/chunks/cli-0.7.1-ef7vcnec.mjs +0 -2
  611. package/dist/chunks/cli-0.7.1-ehc0edr2.mjs +0 -2
  612. package/dist/chunks/cli-0.7.1-ehgqjz41.mjs +0 -2
  613. package/dist/chunks/cli-0.7.1-eqdjtwya.mjs +0 -2
  614. package/dist/chunks/cli-0.7.1-espp6s0y.mjs +0 -2
  615. package/dist/chunks/cli-0.7.1-ez0dpq8d.mjs +0 -2
  616. package/dist/chunks/cli-0.7.1-f6nk5cs1.mjs +0 -2
  617. package/dist/chunks/cli-0.7.1-fgtztd75.mjs +0 -2
  618. package/dist/chunks/cli-0.7.1-fs00krs3.mjs +0 -2
  619. package/dist/chunks/cli-0.7.1-fzf4j9hh.mjs +0 -2
  620. package/dist/chunks/cli-0.7.1-g2n9j9vd.mjs +0 -2
  621. package/dist/chunks/cli-0.7.1-gaqzbbr4.mjs +0 -133
  622. package/dist/chunks/cli-0.7.1-gc8m2z4s.mjs +0 -3
  623. package/dist/chunks/cli-0.7.1-gpj27qg9.mjs +0 -9
  624. package/dist/chunks/cli-0.7.1-hdhwyta7.mjs +0 -2
  625. package/dist/chunks/cli-0.7.1-hh3seyqe.mjs +0 -2
  626. package/dist/chunks/cli-0.7.1-hkjqfdbm.mjs +0 -2
  627. package/dist/chunks/cli-0.7.1-hx5avz23.mjs +0 -3
  628. package/dist/chunks/cli-0.7.1-hxqwphz3.mjs +0 -2
  629. package/dist/chunks/cli-0.7.1-j21wk954.mjs +0 -17
  630. package/dist/chunks/cli-0.7.1-j69yv5wv.mjs +0 -2
  631. package/dist/chunks/cli-0.7.1-j71sx09z.mjs +0 -2
  632. package/dist/chunks/cli-0.7.1-jdjhwj9r.mjs +0 -2
  633. package/dist/chunks/cli-0.7.1-jgx9y8hd.mjs +0 -2
  634. package/dist/chunks/cli-0.7.1-jpemgywy.mjs +0 -193
  635. package/dist/chunks/cli-0.7.1-k2r0wewv.mjs +0 -34
  636. package/dist/chunks/cli-0.7.1-k3wrch69.mjs +0 -5422
  637. package/dist/chunks/cli-0.7.1-k62svwx3.mjs +0 -2
  638. package/dist/chunks/cli-0.7.1-k9w4ggkt.mjs +0 -2
  639. package/dist/chunks/cli-0.7.1-kbyy07ta.mjs +0 -42
  640. package/dist/chunks/cli-0.7.1-kes4v4he.mjs +0 -39
  641. package/dist/chunks/cli-0.7.1-knxxgaxv.mjs +0 -58
  642. package/dist/chunks/cli-0.7.1-kwrsgjrs.mjs +0 -2
  643. package/dist/chunks/cli-0.7.1-m00xwwcc.mjs +0 -4
  644. package/dist/chunks/cli-0.7.1-m42mhk67.mjs +0 -2
  645. package/dist/chunks/cli-0.7.1-m4gfza1p.mjs +0 -2
  646. package/dist/chunks/cli-0.7.1-m5pd7m3r.mjs +0 -2
  647. package/dist/chunks/cli-0.7.1-m9xmxtwa.mjs +0 -2
  648. package/dist/chunks/cli-0.7.1-mcb9z58y.mjs +0 -2
  649. package/dist/chunks/cli-0.7.1-md6r4s60.mjs +0 -24
  650. package/dist/chunks/cli-0.7.1-mevd6vax.mjs +0 -2
  651. package/dist/chunks/cli-0.7.1-mky7mf90.mjs +0 -2
  652. package/dist/chunks/cli-0.7.1-mr2e3dyv.mjs +0 -12
  653. package/dist/chunks/cli-0.7.1-mt57tnps.mjs +0 -2
  654. package/dist/chunks/cli-0.7.1-mvq52b0y.mjs +0 -18
  655. package/dist/chunks/cli-0.7.1-mxjp359f.mjs +0 -2
  656. package/dist/chunks/cli-0.7.1-mzdb4t95.mjs +0 -2
  657. package/dist/chunks/cli-0.7.1-n7r3qbr7.mjs +0 -2
  658. package/dist/chunks/cli-0.7.1-n90a1d1a.mjs +0 -3
  659. package/dist/chunks/cli-0.7.1-nm9xqd0t.mjs +0 -4
  660. package/dist/chunks/cli-0.7.1-ns2p247a.mjs +0 -20
  661. package/dist/chunks/cli-0.7.1-nyy6gydm.mjs +0 -2
  662. package/dist/chunks/cli-0.7.1-p0fy9hz7.mjs +0 -2
  663. package/dist/chunks/cli-0.7.1-pfb1t2vv.mjs +0 -2
  664. package/dist/chunks/cli-0.7.1-pj2bwget.mjs +0 -2
  665. package/dist/chunks/cli-0.7.1-pzmph1bb.mjs +0 -5
  666. package/dist/chunks/cli-0.7.1-q22d0nn7.mjs +0 -2
  667. package/dist/chunks/cli-0.7.1-q27rb9ya.mjs +0 -2
  668. package/dist/chunks/cli-0.7.1-q32097ec.mjs +0 -2
  669. package/dist/chunks/cli-0.7.1-q4v2wwpa.mjs +0 -2
  670. package/dist/chunks/cli-0.7.1-qbg9kspq.mjs +0 -2
  671. package/dist/chunks/cli-0.7.1-qkcd1qhy.mjs +0 -2
  672. package/dist/chunks/cli-0.7.1-qmd1fgae.mjs +0 -2
  673. package/dist/chunks/cli-0.7.1-qydxc982.mjs +0 -2
  674. package/dist/chunks/cli-0.7.1-r3ykfxwq.mjs +0 -24
  675. package/dist/chunks/cli-0.7.1-rbby6bd5.mjs +0 -2
  676. package/dist/chunks/cli-0.7.1-rd1z70bz.mjs +0 -2
  677. package/dist/chunks/cli-0.7.1-rmj9pcnx.mjs +0 -15
  678. package/dist/chunks/cli-0.7.1-rmw8587w.mjs +0 -4
  679. package/dist/chunks/cli-0.7.1-rn9q2rxz.mjs +0 -2
  680. package/dist/chunks/cli-0.7.1-rrje9ahd.mjs +0 -2
  681. package/dist/chunks/cli-0.7.1-rt9yw2nh.mjs +0 -67
  682. package/dist/chunks/cli-0.7.1-rtpvm7nh.mjs +0 -2
  683. package/dist/chunks/cli-0.7.1-rz6n3grv.mjs +0 -2
  684. package/dist/chunks/cli-0.7.1-s2eya8px.mjs +0 -2
  685. package/dist/chunks/cli-0.7.1-seanve4t.mjs +0 -2
  686. package/dist/chunks/cli-0.7.1-sz0krng6.mjs +0 -5
  687. package/dist/chunks/cli-0.7.1-thfkavh1.mjs +0 -3
  688. package/dist/chunks/cli-0.7.1-tyzsanrm.mjs +0 -2
  689. package/dist/chunks/cli-0.7.1-va9tcjyz.mjs +0 -2
  690. package/dist/chunks/cli-0.7.1-vc1w3czg.mjs +0 -59
  691. package/dist/chunks/cli-0.7.1-vfekmem4.mjs +0 -3
  692. package/dist/chunks/cli-0.7.1-vfqcqg6s.mjs +0 -2
  693. package/dist/chunks/cli-0.7.1-vtqvv81d.mjs +0 -7
  694. package/dist/chunks/cli-0.7.1-w2rmty6t.mjs +0 -2
  695. package/dist/chunks/cli-0.7.1-w6mgjapm.mjs +0 -2
  696. package/dist/chunks/cli-0.7.1-wg6vf0hy.mjs +0 -2
  697. package/dist/chunks/cli-0.7.1-wjw73a3c.mjs +0 -3
  698. package/dist/chunks/cli-0.7.1-wp2jn3c0.mjs +0 -2
  699. package/dist/chunks/cli-0.7.1-wqk4b4mn.mjs +0 -2
  700. package/dist/chunks/cli-0.7.1-wzqmjfjs.mjs +0 -2
  701. package/dist/chunks/cli-0.7.1-xhtmjm5c.mjs +0 -2
  702. package/dist/chunks/cli-0.7.1-xjaebq17.mjs +0 -1
  703. package/dist/chunks/cli-0.7.1-xmj6ck32.mjs +0 -18
  704. package/dist/chunks/cli-0.7.1-xn7c84qw.mjs +0 -2
  705. package/dist/chunks/cli-0.7.1-xqxh1d0k.mjs +0 -45
  706. package/dist/chunks/cli-0.7.1-xrxje264.mjs +0 -2
  707. package/dist/chunks/cli-0.7.1-xvhh6hs3.mjs +0 -25
  708. package/dist/chunks/cli-0.7.1-xvp3ptcj.mjs +0 -2
  709. package/dist/chunks/cli-0.7.1-yevrh4dk.mjs +0 -2
  710. package/dist/chunks/cli-0.7.1-ygdm4xdq.mjs +0 -2
  711. package/dist/chunks/cli-0.7.1-yhn13w5s.mjs +0 -2
  712. package/dist/chunks/cli-0.7.1-ykypfrhj.mjs +0 -2
  713. package/dist/chunks/cli-0.7.1-zjw3v1mx.mjs +0 -4
  714. package/dist/chunks/cli-0.7.1-zrz7jgv0.mjs +0 -2
  715. package/dist/chunks/cli-0.7.1-zswdgbrk.mjs +0 -2
  716. package/dist/chunks/cli-0.7.1-zt8sj5mh.mjs +0 -2
  717. package/dist/chunks/client-0.7.1-5bbqygzn.mjs +0 -1
  718. package/dist/chunks/color-0.7.1-d97h4n6v.mjs +0 -1
  719. package/dist/chunks/compact-0.7.1-kq7n7064.mjs +0 -3
  720. package/dist/chunks/config-0.7.1-qw14rnwb.mjs +0 -1
  721. package/dist/chunks/config-0.7.1-vsbb5ybm.mjs +0 -1
  722. package/dist/chunks/constants-0.7.1-j99wnd0t.mjs +0 -1
  723. package/dist/chunks/context-0.7.1-nfbvwjm3.mjs +0 -1
  724. package/dist/chunks/context-noninteractive-0.7.1-w90a8b4k.mjs +0 -1
  725. package/dist/chunks/conversation-0.7.1-cabvk10y.mjs +0 -1
  726. package/dist/chunks/copilotHeaders-0.7.1-576y551e.mjs +0 -1
  727. package/dist/chunks/copy-0.7.1-zjy3ybzx.mjs +0 -9
  728. package/dist/chunks/cost-0.7.1-2sw1r4y9.mjs +0 -1
  729. package/dist/chunks/createSSHSession-0.7.1-ajjsgkcr.mjs +0 -1
  730. package/dist/chunks/createSession-0.7.1-hm73txww.mjs +0 -1
  731. package/dist/chunks/debug-0.7.1-qaj25ne7.mjs +0 -1
  732. package/dist/chunks/defaultActionDeps-0.7.1-xqmrxq95.mjs +0 -1422
  733. package/dist/chunks/desktop-0.7.1-sbjm4tw6.mjs +0 -1
  734. package/dist/chunks/detectRepository-0.7.1-ksy35c3e.mjs +0 -1
  735. package/dist/chunks/detection-0.7.1-h9q77x0f.mjs +0 -1
  736. package/dist/chunks/diff-0.7.1-65vdjrpz.mjs +0 -1
  737. package/dist/chunks/doctor-0.7.1-qpwe5hs1.mjs +0 -1
  738. package/dist/chunks/doctorDiagnostic-0.7.1-n9ez8jjp.mjs +0 -1
  739. package/dist/chunks/earlyInput-0.7.1-evw5t8gb.mjs +0 -1
  740. package/dist/chunks/effort-0.7.1-1gx253x4.mjs +0 -10
  741. package/dist/chunks/envLessBridgeConfig-0.7.1-e9nd930z.mjs +0 -1
  742. package/dist/chunks/envUtils-0.7.1-ymk55nnf.mjs +0 -1
  743. package/dist/chunks/environmentSelection-0.7.1-487w47dh.mjs +0 -1
  744. package/dist/chunks/environments-0.7.1-rafrq9ry.mjs +0 -1
  745. package/dist/chunks/errors-0.7.1-gehaqna3.mjs +0 -1
  746. package/dist/chunks/exampleCommands-0.7.1-nq55tbjv.mjs +0 -1
  747. package/dist/chunks/exit-0.7.1-680hz28c.mjs +0 -1
  748. package/dist/chunks/explorer-0.7.1-z0967d6r.mjs +0 -1
  749. package/dist/chunks/export-0.7.1-g9bdjstd.mjs +0 -2
  750. package/dist/chunks/extra-usage-0.7.1-xdwym2xk.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-0.7.1-rnf1yy0q.mjs +0 -1
  752. package/dist/chunks/fast-0.7.1-315rzkyy.mjs +0 -1
  753. package/dist/chunks/feedback-0.7.1-p8r4xr11.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-0.7.1-h0ny1a03.mjs +0 -1
  755. package/dist/chunks/git-0.7.1-q9en18yj.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-0.7.1-1ew0h3ve.mjs +0 -1
  757. package/dist/chunks/goal-0.7.1-qjzjey3j.mjs +0 -4
  758. package/dist/chunks/grove-0.7.1-4t3w9441.mjs +0 -1
  759. package/dist/chunks/growthbook-0.7.1-h7xxtrvf.mjs +0 -1
  760. package/dist/chunks/headless-0.7.1-6ae94wmy.mjs +0 -2
  761. package/dist/chunks/heapdump-0.7.1-srg8ym4e.mjs +0 -6
  762. package/dist/chunks/help-0.7.1-g1s4amj9.mjs +0 -1
  763. package/dist/chunks/hookChains-0.7.1-nvzpemqb.mjs +0 -3
  764. package/dist/chunks/hooks-0.7.1-19rxqk3m.mjs +0 -79
  765. package/dist/chunks/hooks-0.7.1-918zv23z.mjs +0 -1
  766. package/dist/chunks/ide-0.7.1-29f4xm8h.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-0.7.1-21880z56.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-0.7.1-vj4mtwgs.mjs +0 -1
  769. package/dist/chunks/index-0.7.1-05ga11b5.mjs +0 -1
  770. package/dist/chunks/index-0.7.1-08cj1sdf.mjs +0 -1
  771. package/dist/chunks/index-0.7.1-13drp9nj.mjs +0 -1
  772. package/dist/chunks/index-0.7.1-4xrmd4xj.mjs +0 -30
  773. package/dist/chunks/index-0.7.1-6m7fqnxf.mjs +0 -1
  774. package/dist/chunks/index-0.7.1-6w21gjac.mjs +0 -1
  775. package/dist/chunks/index-0.7.1-7pweww0b.mjs +0 -1
  776. package/dist/chunks/index-0.7.1-8753b2ed.mjs +0 -1
  777. package/dist/chunks/index-0.7.1-8yjbpdj3.mjs +0 -1
  778. package/dist/chunks/index-0.7.1-bcgceyp2.mjs +0 -2
  779. package/dist/chunks/index-0.7.1-bjckst5c.mjs +0 -1
  780. package/dist/chunks/index-0.7.1-drps39aq.mjs +0 -5
  781. package/dist/chunks/index-0.7.1-gfr5qm3n.mjs +0 -1
  782. package/dist/chunks/index-0.7.1-k15r2adh.mjs +0 -9
  783. package/dist/chunks/index-0.7.1-mhbm4m18.mjs +0 -1
  784. package/dist/chunks/index-0.7.1-mshav77m.mjs +0 -9
  785. package/dist/chunks/index-0.7.1-pcnfdjxe.mjs +0 -1
  786. package/dist/chunks/index-0.7.1-pcwfft21.mjs +0 -1
  787. package/dist/chunks/index-0.7.1-th8gnyjv.mjs +0 -1
  788. package/dist/chunks/index-0.7.1-tj6byrkd.mjs +0 -2
  789. package/dist/chunks/index-0.7.1-vezza4mb.mjs +0 -17
  790. package/dist/chunks/index-0.7.1-w0rz5trr.mjs +0 -1
  791. package/dist/chunks/index-0.7.1-wpzgm03y.mjs +0 -1
  792. package/dist/chunks/init-0.7.1-saq601q7.mjs +0 -1
  793. package/dist/chunks/initReplBridge-0.7.1-aqvbm3dc.mjs +0 -1
  794. package/dist/chunks/ink-0.7.1-8q2edv8t.mjs +0 -1
  795. package/dist/chunks/insights-0.7.1-2t65g57h.mjs +0 -870
  796. package/dist/chunks/install-0.7.1-ecee3epk.mjs +0 -1
  797. package/dist/chunks/install-github-app-0.7.1-yz6sr0n1.mjs +0 -149
  798. package/dist/chunks/install-slack-app-0.7.1-z2n7dzqn.mjs +0 -1
  799. package/dist/chunks/instrumentation-0.7.1-ejkfct84.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-0.7.1-3pgg93hb.mjs +0 -1
  801. package/dist/chunks/keybindings-0.7.1-zstbszpg.mjs +0 -2
  802. package/dist/chunks/knowledge-0.7.1-b5nd9y2x.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-0.7.1-6bpfy1b6.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-0.7.1-p8rq7yzm.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-0.7.1-d63pgpzs.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-0.7.1-gjb8jztz.mjs +0 -1
  807. package/dist/chunks/log-0.7.1-fxt088jb.mjs +0 -1
  808. package/dist/chunks/main-0.7.1-0vqgtt6k.mjs +0 -1
  809. package/dist/chunks/managedEnv-0.7.1-hmbbthb1.mjs +0 -1
  810. package/dist/chunks/mcp-0.7.1-79bgprwt.mjs +0 -17
  811. package/dist/chunks/mcp-0.7.1-fah2dpxt.mjs +0 -1
  812. package/dist/chunks/mcp-0.7.1-y1qkvnjg.mjs +0 -4
  813. package/dist/chunks/mcpb-0.7.1-2dapw2hx.mjs +0 -1
  814. package/dist/chunks/memory-0.7.1-ebb517bx.mjs +0 -3
  815. package/dist/chunks/model-0.7.1-3arjsbnf.mjs +0 -2
  816. package/dist/chunks/model-0.7.1-k3apa82z.mjs +0 -1
  817. package/dist/chunks/node-0.7.1-cdt9e3gn.mjs +0 -12
  818. package/dist/chunks/oauth-0.7.1-x8bhb9nz.mjs +0 -1
  819. package/dist/chunks/openaiShim-0.7.1-z2g9xzcq.mjs +0 -14
  820. package/dist/chunks/output-style-0.7.1-6pse3vv2.mjs +0 -1
  821. package/dist/chunks/package-GCDC7LJR-0.7.1-gy8kt96r.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-0.7.1-gg6kkfk2.mjs +0 -1
  823. package/dist/chunks/parser-0.7.1-5tt8chsn.mjs +0 -1
  824. package/dist/chunks/passes-0.7.1-b7rbrgkm.mjs +0 -1
  825. package/dist/chunks/permissions-0.7.1-nenep4c2.mjs +0 -1
  826. package/dist/chunks/permissions-0.7.1-zrdsqk21.mjs +0 -3
  827. package/dist/chunks/plan-0.7.1-85aa5f5y.mjs +0 -1
  828. package/dist/chunks/plist-0.7.1-qp82sdff.mjs +0 -1
  829. package/dist/chunks/plugin-0.7.1-je74p85s.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-0.7.1-mvcejqcq.mjs +0 -1
  831. package/dist/chunks/plugins-0.7.1-m3wj9r06.mjs +0 -9
  832. package/dist/chunks/preActionHook-0.7.1-r7jz8sy6.mjs +0 -2
  833. package/dist/chunks/print-0.7.1-gsrx6f37.mjs +0 -57
  834. package/dist/chunks/privacy-settings-0.7.1-7kr3zzrk.mjs +0 -1
  835. package/dist/chunks/process-0.7.1-2776jpyn.mjs +0 -1
  836. package/dist/chunks/processBashCommand-0.7.1-5x2898xr.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-0.7.1-dr876jz7.mjs +0 -9
  838. package/dist/chunks/prompt-0.7.1-7af9fgbe.mjs +0 -1
  839. package/dist/chunks/prompt-0.7.1-dw1fgpwq.mjs +0 -1
  840. package/dist/chunks/prompts-0.7.1-nbx9nyb5.mjs +0 -1
  841. package/dist/chunks/protocolHandler-0.7.1-qy15fxqj.mjs +0 -13
  842. package/dist/chunks/provider-0.7.1-0m9xffbf.mjs +0 -2
  843. package/dist/chunks/providerProfiles-0.7.1-9cc9sgnd.mjs +0 -1
  844. package/dist/chunks/providerValidation-0.7.1-jfy1rksg.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-0.7.1-pxbxm170.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-0.7.1-jwn9g5j8.mjs +0 -34
  847. package/dist/chunks/registry-0.7.1-gkweb7m4.mjs +0 -1
  848. package/dist/chunks/release-notes-0.7.1-h92ctc9v.mjs +0 -5
  849. package/dist/chunks/reload-plugins-0.7.1-ke9qvkbd.mjs +0 -2
  850. package/dist/chunks/remote-env-0.7.1-36s0b9x3.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-0.7.1-fz71fhjn.mjs +0 -1
  852. package/dist/chunks/remoteSession-0.7.1-syy16saz.mjs +0 -1
  853. package/dist/chunks/rename-0.7.1-pp0vxpxy.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-0.7.1-ym42egv0.mjs +0 -1
  855. package/dist/chunks/replLauncher-0.7.1-jk6m635f.mjs +0 -1
  856. package/dist/chunks/resume-0.7.1-2q37w3de.mjs +0 -2
  857. package/dist/chunks/rewind-0.7.1-3t95cz8k.mjs +0 -1
  858. package/dist/chunks/rootOptions-0.7.1-4veg3eep.mjs +0 -1
  859. package/dist/chunks/sandbox-adapter-0.7.1-jy6rr7mq.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-0.7.1-aqpewqqh.mjs +0 -1
  861. package/dist/chunks/session-0.7.1-y1xwe626.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-0.7.1-nvdbjq60.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-0.7.1-bbx6cg5g.mjs +0 -1
  864. package/dist/chunks/sessionStorage-0.7.1-n4dhbzem.mjs +0 -1
  865. package/dist/chunks/settings-0.7.1-pecm5dv1.mjs +0 -1
  866. package/dist/chunks/setup-0.7.1-gqpnyen6.mjs +0 -5
  867. package/dist/chunks/sinks-0.7.1-cq5f40zp.mjs +0 -1
  868. package/dist/chunks/skills-0.7.1-5qchbh6n.mjs +0 -1
  869. package/dist/chunks/startupProfiler-0.7.1-q1mwtr5f.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-0.7.1-ncttf1vf.mjs +0 -1
  871. package/dist/chunks/state-0.7.1-34txp9ap.mjs +0 -1
  872. package/dist/chunks/stats-0.7.1-v8hnv2t1.mjs +0 -6
  873. package/dist/chunks/status-0.7.1-g7ngz48p.mjs +0 -1
  874. package/dist/chunks/stickers-0.7.1-y53mmmdh.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-0.7.1-1t25wkzh.mjs +0 -1
  876. package/dist/chunks/tasks-0.7.1-2yky7fwg.mjs +0 -1
  877. package/dist/chunks/teamHelpers-0.7.1-0wyvqbjp.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-0.7.1-cgf3g4j9.mjs +0 -1
  879. package/dist/chunks/teleport-0.7.1-353z35fj.mjs +0 -1
  880. package/dist/chunks/terminalSetup-0.7.1-nw69mcxs.mjs +0 -1
  881. package/dist/chunks/theme-0.7.1-nzx60j7s.mjs +0 -1
  882. package/dist/chunks/thinkback-0.7.1-9jvy533f.mjs +0 -1
  883. package/dist/chunks/thinkback-play-0.7.1-m2kx6nfn.mjs +0 -1
  884. package/dist/chunks/toolPool-0.7.1-qywync64.mjs +0 -1
  885. package/dist/chunks/toolSearch-0.7.1-snw68bwv.mjs +0 -1
  886. package/dist/chunks/tools-0.7.1-5btn07a6.mjs +0 -1
  887. package/dist/chunks/trustedDevice-0.7.1-hma4k1vw.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-0.7.1-k8n9qvhg.mjs +0 -69
  889. package/dist/chunks/types-0.7.1-9mrce42m.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-0.7.1-h5k5xdws.mjs +0 -4
  891. package/dist/chunks/update-0.7.1-tqtsan40.mjs +0 -86
  892. package/dist/chunks/upgrade-0.7.1-b5ktjkp0.mjs +0 -1
  893. package/dist/chunks/upload-0.7.1-5910sy8s.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-0.7.1-5fyja3cf.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-0.7.1-paf3bx7g.mjs +0 -1
  896. package/dist/chunks/usage-0.7.1-2j0rqtzd.mjs +0 -1
  897. package/dist/chunks/util-0.7.1-62f399jk.mjs +0 -1
  898. package/dist/chunks/utils-0.7.1-vdqtwham.mjs +0 -1
  899. package/dist/chunks/vim-0.7.1-ry9xqmcy.mjs +0 -1
  900. package/dist/chunks/watcher-0.7.1-wdz2r62h.mjs +0 -1
  901. package/dist/chunks/wiki-0.7.1-sdq9xgrk.mjs +0 -132
  902. package/dist/chunks/worktree-0.7.1-e7sx150a.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-0.7.1-s0gwv1pz.mjs +0 -1
  904. package/dist/chunks/wrapper-0.7.1-3xjvgc6e.mjs +0 -7
  905. /package/dist/chunks/{cli-0.7.1-75dek4k4.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{hV as W,mV as p}from"./cli-0.7.1-thfkavh1.mjs";import{M0 as H,O0 as P}from"./cli-0.7.1-qkcd1qhy.mjs";import{Hfa as Z,ufa as M}from"./cli-0.7.1-bmqpkffh.mjs";import{_fa as q,aga as $,bga as Q,cga as k}from"./cli-0.7.1-rt9yw2nh.mjs";import{Zpa as Y}from"./cli-0.7.1-f6nk5cs1.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
3
- export{K as Zb,X as _b,V as $b,b as ac,O as bc};
@@ -1,2 +0,0 @@
1
- import{vv as C,yv as X}from"./cli-0.7.1-k3wrch69.mjs";import{_1 as W}from"./cli-0.7.1-a4zjaz57.mjs";import{E4 as I,Q4 as J,X4 as V}from"./cli-0.7.1-0qwnf6wz.mjs";import{Hfa as T,mfa as H}from"./cli-0.7.1-bmqpkffh.mjs";import{Vpa as P,Zpa as Q}from"./cli-0.7.1-f6nk5cs1.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as $c,Y as ad};
@@ -1,7 +0,0 @@
1
- import{ub as d}from"./cli-0.7.1-k62svwx3.mjs";import{OU as y,PU as U,RU as f,SU as h,TU as c,YU as i}from"./cli-0.7.1-pfb1t2vv.mjs";import{f2 as O,h2 as b}from"./cli-0.7.1-qbg9kspq.mjs";import{y5 as B,z5 as M}from"./cli-0.7.1-0qwnf6wz.mjs";import{R6 as I,Y6 as u}from"./cli-0.7.1-mr2e3dyv.mjs";import{s8 as V,u8 as v}from"./cli-0.7.1-jpemgywy.mjs";import{$ha as D,Bha as H,Cha as m,Gha as T,Yha as G}from"./cli-0.7.1-7vnqyd9e.mjs";import{qia as q,ria as S,xia as F}from"./cli-0.7.1-6d8y1qn4.mjs";import{Apa as s,ipa as p}from"./cli-0.7.1-xmj6ck32.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=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 k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}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)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}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(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),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()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
-
3
- `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
- `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
- `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{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(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
- `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
- export{R as lb,k as mb,a as nb,YJ as ob};
@@ -1,2 +0,0 @@
1
- import{Zpa as q}from"./cli-0.7.1-f6nk5cs1.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
- export{x as Xd,y as Yd,w as Zd};
@@ -1,2 +0,0 @@
1
- import{HS as N,IS as p,JS as F,LS as U,MS as A}from"./cli-0.7.1-2g1mhmsb.mjs";import{F6 as L,G6 as P,J6 as O,L6 as V,V6 as x,X6 as H,Y6 as k}from"./cli-0.7.1-mr2e3dyv.mjs";import{Gba as K,R_ as I,Rca as M,T_ as D,rba as X,wca as Z,xba as Y}from"./cli-0.7.1-jpemgywy.mjs";import{Dia as $,Nia as b}from"./cli-0.7.1-mxjp359f.mjs";import{Zpa as G}from"./cli-0.7.1-f6nk5cs1.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
2
- export{r as Cc,g as Dc,j as Ec};
@@ -1,2 +0,0 @@
1
- import{Zc as K,_c as Y}from"./cli-0.7.1-9sy5d7re.mjs";import{dl as G,el as B,il as U,jl as V,np as H,op as W,rL as J,zL as X}from"./cli-0.7.1-k3wrch69.mjs";import{Wpa as q,Zpa as v}from"./cli-0.7.1-f6nk5cs1.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
- export{P as Vc,C as Wc,A as Xc,D as Yc};
@@ -1,3 +0,0 @@
1
- import{w as A}from"./cli-0.7.1-3y886h54.mjs";import{eea as $,fea as F,lea as z,mea as H,vea as P}from"./cli-0.7.1-jpemgywy.mjs";import{$ga as B,$ha as E,Bha as O,Gha as w,Kha as V,Oha as C,Yha as X,Zga as _,_ga as N,bha as W}from"./cli-0.7.1-7vnqyd9e.mjs";import{ooa as L,rka as Z}from"./cli-0.7.1-356bj7gh.mjs";import{Apa as y,ipa as q}from"./cli-0.7.1-xmj6ck32.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
2
- `)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
3
- export{e as u};
@@ -1,2 +0,0 @@
1
- import{$o as _,DK as m,EK as h,IK as c,Wo as L,Xo as D,Yo as O,ap as S,jK as R,nK as b,qK as w,wK as M,yK as P}from"./cli-0.7.1-k3wrch69.mjs";import{Gba as E,faa as x,naa as T,nea as N,rba as B,tba as A,vea as j,wba as C}from"./cli-0.7.1-jpemgywy.mjs";import{fga as U,gga as v}from"./cli-0.7.1-zswdgbrk.mjs";import{$ha as F,Yha as G}from"./cli-0.7.1-7vnqyd9e.mjs";import{Zpa as y}from"./cli-0.7.1-f6nk5cs1.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
2
- export{qq as Pd,zq as Qd,Jq as Rd,Kq as Sd,p as Td,Qq as Ud,Vq as Vd,a as Wd};
@@ -1,2 +0,0 @@
1
- import{Zpa as H}from"./cli-0.7.1-f6nk5cs1.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
- export{F as bfa,K as cfa,M as dfa,N as efa,O as ffa,P as gfa,J as hfa};
@@ -1,2 +0,0 @@
1
- import{_d as _,ae as v}from"./cli-0.7.1-dnmrbd43.mjs";import{Be as Z,Ce as P}from"./cli-0.7.1-84yhx3q1.mjs";import{Vu as X,Xu as K,uv as Y,yv as A}from"./cli-0.7.1-k3wrch69.mjs";import{LW as V,OW as C}from"./cli-0.7.1-825msf79.mjs";import{X1 as H,Z1 as Q}from"./cli-0.7.1-1188jq4p.mjs";import{_1 as W}from"./cli-0.7.1-a4zjaz57.mjs";import{yea as L,zea as U}from"./cli-0.7.1-ebdykdv4.mjs";import{Vpa as B,Zpa as M}from"./cli-0.7.1-f6nk5cs1.mjs";function x({children:q}){let{bindings:D}=X(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function y(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function b(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let T=(w)=>_(H(Y,{children:H(x,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=y(w);for(let w=0;w<N;w+=I){let O=await T([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await b(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var j=M(()=>{U();P();C();K();A();v();Q();J=B(W(),1)});
2
- export{l as ec,j as fc};
@@ -1,2 +0,0 @@
1
- import{RX as s,RZ as f,mZ as t}from"./cli-0.7.1-vc1w3czg.mjs";import{X1 as n,Y1 as c,Z1 as r}from"./cli-0.7.1-1188jq4p.mjs";import{Vpa as m,Zpa as l}from"./cli-0.7.1-f6nk5cs1.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
- export{T as eg,p as fg};
@@ -1 +0,0 @@
1
- import{_fa as q,aga as A,bga as x,cga as B}from"./cli-0.7.1-rt9yw2nh.mjs";import{Gha as J}from"./cli-0.7.1-7vnqyd9e.mjs";import{xia as G}from"./cli-0.7.1-6d8y1qn4.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -1,18 +0,0 @@
1
- import{Bpa as r$,Cpa as N6,Dpa as XQ,Epa as M1,Fpa as KQ}from"./cli-0.7.1-6ta56xg1.mjs";import{Vpa as n4,Xpa as J4,Ypa as Z8,Zpa as T,_pa as K4}from"./cli-0.7.1-f6nk5cs1.mjs";function t0($,Q){return function(){return $.apply(Q,arguments)}}var c4=()=>{};function f0($){return $!==null&&!m0($)&&$.constructor!==null&&!m0($.constructor)&&o($.constructor.isBuffer)&&$.constructor.isBuffer($)}function r6($){let Q;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Q=ArrayBuffer.isView($);else Q=$&&$.buffer&&h1($.buffer);return Q}function K$(){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 e0($,Q,{allOwnKeys:Y=!1}={}){if($===null||typeof $>"u")return;let W,G;if(typeof $!=="object")$=[$];if(P0($))for(W=0,G=$.length;W<G;W++)Q.call(null,$[W],W,$);else{if(f0($))return;let J=Y?Object.getOwnPropertyNames($):Object.keys($),Z=J.length,z;for(W=0;W<Z;W++)z=J[W],Q.call(null,$[z],z,$)}}function u1($,Q){if(f0($))return null;Q=Q.toLowerCase();let Y=Object.keys($),W=Y.length,G;while(W-- >0)if(G=Y[W],Q===G.toLowerCase())return G;return null}function d4(...$){let{caseless:Q,skipUndefined:Y}=c1(this)&&this||{},W={},G=(J,Z)=>{if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return;let z=Q&&typeof Z==="string"&&u1(W,Z)||Z,K=T4(W,z)?W[z]:void 0;if(_4(K)&&_4(J))W[z]=d4(K,J);else if(_4(J))W[z]=d4({},J);else if(P0(J))W[z]=J.slice();else if(!Y||!m0(J))W[z]=J};for(let J=0,Z=$.length;J<Z;J++){let z=$[J];if(!z||f0(z))continue;if(e0(z,G),typeof z!=="object"||P0(z))continue;let K=Object.getOwnPropertySymbols(z);for(let N=0;N<K.length;N++){let M=K[N];if(O$.call(z,M))G(z[M],M)}}return W}function b$($){return!!($&&o($.append)&&$[f1]==="FormData"&&$[o0])}var s6,y0,o0,f1,T4,r0=($,Q)=>{let Y=$,W=[];while(Y!=null&&Y!==Object.prototype){if(W.indexOf(Y)!==-1)return!1;if(W.push(Y),T4(Y,Q))return!0;Y=y0(Y)}return!1},t6=($,Q)=>$!=null&&r0($,Q)?$[Q]:void 0,l4,W0=($)=>{return $=$.toLowerCase(),(Q)=>l4(Q)===$},R4=($)=>(Q)=>typeof Q===$,P0,m0,h1,o6,o,g1,h0=($)=>$!==null&&typeof $==="object",e6=($)=>$===!0||$===!1,_4=($)=>{if(!h0($))return!1;let Q=y0($);return(Q===null||Q===Object.prototype||y0(Q)===null)&&!r0($,f1)&&!r0($,o0)},$$=($)=>{if(!h0($)||f0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(Q){return!1}},Q$,Y$,W$=($)=>{return!!($&&typeof $.uri<"u")},G$=($)=>$&&typeof $.getParts<"u",Z$,J$,X$=($)=>h0($)&&o($.pipe),y1,m1,z$=($)=>{if(!$)return!1;if(m1&&$ instanceof m1)return!0;let Q=y0($);if(!Q||Q===Object.prototype)return!1;if(!o($.append))return!1;let Y=l4($);return Y==="formdata"||Y==="object"&&o($.toString)&&$.toString()==="[object FormData]"},N$,M$,B$,V$,I$,F$=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},q0,c1=($)=>!m0($)&&$!==q0,U$=($,Q,Y,{allOwnKeys:W}={})=>{return e0(Q,(G,J)=>{if(Y&&o(G))Object.defineProperty($,J,{__proto__:null,value:t0(G,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,J,{__proto__:null,value:G,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:W}),$},L$=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},w$=($,Q,Y,W)=>{$.prototype=Object.create(Q.prototype,W),Object.defineProperty($.prototype,"constructor",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{__proto__:null,value:Q.prototype}),Y&&Object.assign($.prototype,Y)},S$=($,Q,Y,W)=>{let G,J,Z,z={};if(Q=Q||{},$==null)return Q;do{G=Object.getOwnPropertyNames($),J=G.length;while(J-- >0)if(Z=G[J],(!W||W(Z,$,Q))&&!z[Z])Q[Z]=$[Z],z[Z]=!0;$=Y!==!1&&y0($)}while($&&(!Y||Y($,Q))&&$!==Object.prototype);return Q},D$=($,Q,Y)=>{if($=String($),Y===void 0||Y>$.length)Y=$.length;Y-=Q.length;let W=$.indexOf(Q,Y);return W!==-1&&W===Y},_$=($)=>{if(!$)return null;if(P0($))return $;let Q=$.length;if(!g1(Q))return null;let Y=Array(Q);while(Q-- >0)Y[Q]=$[Q];return Y},T$,R$=($,Q)=>{let W=($&&$[o0]).call($),G;while((G=W.next())&&!G.done){let J=G.value;Q.call($,J[0],J[1])}},q$=($,Q)=>{let Y,W=[];while((Y=$.exec(Q))!==null)W.push(Y);return W},P$,C$=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,W,G){return W.toUpperCase()+G})},O$,H$,d1=($,Q)=>{let Y=Object.getOwnPropertyDescriptors($),W={};e0(Y,(G,J)=>{let Z;if((Z=Q(G,J,$))!==!1)W[J]=Z||G}),Object.defineProperties($,W)},E$=($)=>{d1($,(Q,Y)=>{if(o($)&&["arguments","caller","callee"].includes(Y))return!1;let W=$[Y];if(!o(W))return;if(Q.enumerable=!1,"writable"in Q){Q.writable=!1;return}if(!Q.set)Q.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},A$=($,Q)=>{let Y={},W=(G)=>{G.forEach((J)=>{Y[J]=!0})};return P0($)?W($):W(String($).split(Q)),Y},j$=()=>{},k$=($,Q)=>{return $!=null&&Number.isFinite($=+$)?$:Q},x$=($)=>{let Q=new WeakSet,Y=(W)=>{if(h0(W)){if(Q.has(W))return;if(f0(W))return W;if(!("toJSON"in W)){Q.add(W);let G=P0(W)?[]:{};return e0(W,(J,Z)=>{let z=Y(J);!m0(z)&&(G[Z]=z)}),Q.delete(W),G}}return W};return Y($)},v$,y$=($)=>$&&(h0($)||o($))&&o($.then)&&o($.catch),l1,m$,p1=($)=>$!=null&&o($[o0]),f$=($)=>$!=null&&r0($,o0)&&p1($),X;var x=T(()=>{c4();({toString:s6}=Object.prototype),{getPrototypeOf:y0}=Object,{iterator:o0,toStringTag:f1}=Symbol,T4=(({hasOwnProperty:$})=>(Q,Y)=>$.call(Q,Y))(Object.prototype),l4=(($)=>(Q)=>{let Y=s6.call(Q);return $[Y]||($[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:P0}=Array,m0=R4("undefined");h1=W0("ArrayBuffer");o6=R4("string"),o=R4("function"),g1=R4("number"),Q$=W0("Date"),Y$=W0("File"),Z$=W0("Blob"),J$=W0("FileList");y1=K$(),m1=typeof y1.FormData<"u"?y1.FormData:void 0,N$=W0("URLSearchParams"),[M$,B$,V$,I$]=["ReadableStream","Request","Response","Headers"].map(W0);q0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();T$=(($)=>{return(Q)=>{return $&&Q instanceof $}})(typeof Uint8Array<"u"&&y0(Uint8Array)),P$=W0("HTMLFormElement"),{propertyIsEnumerable:O$}=Object.prototype,H$=W0("RegExp");v$=W0("AsyncFunction"),l1=(($,Q)=>{if($)return setImmediate;return Q?((Y,W)=>{return q0.addEventListener("message",({source:G,data:J})=>{if(G===q0&&J===Y)W.length&&W.shift()()},!1),(G)=>{W.push(G),q0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",o(q0.postMessage)),m$=typeof queueMicrotask<"u"?queueMicrotask.bind(q0):typeof process<"u"&&process.nextTick||l1,X={isArray:P0,isArrayBuffer:h1,isBuffer:f0,isFormData:z$,isArrayBufferView:r6,isString:o6,isNumber:g1,isBoolean:e6,isObject:h0,isPlainObject:_4,isEmptyObject:$$,isReadableStream:M$,isRequest:B$,isResponse:V$,isHeaders:I$,isUndefined:m0,isDate:Q$,isFile:Y$,isReactNativeBlob:W$,isReactNative:G$,isBlob:Z$,isRegExp:H$,isFunction:o,isStream:X$,isURLSearchParams:N$,isTypedArray:T$,isFileList:J$,forEach:e0,merge:d4,extend:U$,trim:F$,stripBOM:L$,inherits:w$,toFlatObject:S$,kindOf:l4,kindOfTest:W0,endsWith:D$,toArray:_$,forEachEntry:R$,matchAll:q$,isHTMLForm:P$,hasOwnProperty:T4,hasOwnProp:T4,hasOwnInPrototypeChain:r0,getSafeProp:t6,reduceDescriptors:d1,freezeMethods:E$,toObjectSet:A$,toCamelCase:C$,noop:j$,toFiniteNumber:k$,findKey:u1,global:q0,isContextDefined:c1,isSpecCompliantForm:b$,toJSONObject:x$,isAsyncFn:v$,isThenable:y$,setImmediate:l1,asap:m$,isIterable:p1,isSafeIterable:f$}});var h$,i1=($)=>{let Q={},Y,W,G;return $&&$.split(`
2
- `).forEach(function(Z){if(G=Z.indexOf(":"),Y=Z.substring(0,G).trim().toLowerCase(),W=Z.substring(G+1).trim(),!Y||Q[Y]&&h$[Y])return;if(Y==="set-cookie")if(Q[Y])Q[Y].push(W);else Q[Y]=[W];else Q[Y]=Q[Y]?Q[Y]+", "+W:W}),Q};var n1=T(()=>{x();h$=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 g$($){let Q=0,Y=$.length;while(Q<Y){let W=$.charCodeAt(Q);if(W!==9&&W!==32)break;Q+=1}while(Y>Q){let W=$.charCodeAt(Y-1);if(W!==9&&W!==32)break;Y-=1}return Q===0&&Y===$.length?$:$.slice(Q,Y)}function p4($,Q){if(X.isArray($))return $.map((Y)=>p4(Y,Q));return g$(String($).replace(Q,""))}function g0($){let Q=Object.create(null);return X.forEach($.toJSON(),(Y,W)=>{Q[W]=d$(Y)}),Q}var u$,c$,a1=($)=>p4($,u$),d$=($)=>p4($,c$);var $4=T(()=>{x();u$=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),c$=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g")});function Q4($){return $&&String($).trim().toLowerCase()}function q4($){if($===!1||$==null)return $;return X.isArray($)?$.map(q4):a1(String($))}function l$($){let Q=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,W;while(W=Y.exec($))Q[W[1]]=W[2];return Q}function i4($,Q,Y,W,G){if(X.isFunction(W))return W.call(this,Q,Y);if(G)Q=Y;if(!X.isString(Q))return;if(X.isString(W))return Q.indexOf(W)!==-1;if(X.isRegExp(W))return W.test(Q)}function i$($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Q,Y,W)=>{return Y.toUpperCase()+W})}function n$($,Q){let Y=X.toCamelCase(" "+Q);["get","set","has"].forEach((W)=>{Object.defineProperty($,W+Y,{__proto__:null,value:function(G,J,Z){return this[W].call(this,Q,G,J,Z)},configurable:!0})})}var s1,p$=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim()),Y4,y;var G0=T(()=>{x();n1();$4();s1=Symbol("internals");Y4=class Y4{constructor($){$&&this.set($)}set($,Q,Y){let W=this;function G(Z,z,K){let N=Q4(z);if(!N)return;let M=X.findKey(W,N);if(!M||W[M]===void 0||K===!0||K===void 0&&W[M]!==!1)W[M||z]=q4(Z)}let J=(Z,z)=>X.forEach(Z,(K,N)=>G(K,N,z));if(X.isPlainObject($)||$ instanceof this.constructor)J($,Q);else if(X.isString($)&&($=$.trim())&&!p$($))J(i1($),Q);else if(X.isObject($)&&X.isSafeIterable($)){let Z=Object.create(null),z,K;for(let N of $){if(!X.isArray(N))throw TypeError("Object iterator must return a key-value pair");if(K=N[0],X.hasOwnProp(Z,K))z=Z[K],Z[K]=X.isArray(z)?[...z,N[1]]:[z,N[1]];else Z[K]=N[1]}J(Z,Q)}else $!=null&&G(Q,$,Y);return this}get($,Q){if($=Q4($),$){let Y=X.findKey(this,$);if(Y){let W=this[Y];if(!Q)return W;if(Q===!0)return l$(W);if(X.isFunction(Q))return Q.call(this,W,Y);if(X.isRegExp(Q))return Q.exec(W);throw TypeError("parser must be boolean|regexp|function")}}}has($,Q){if($=Q4($),$){let Y=X.findKey(this,$);return!!(Y&&this[Y]!==void 0&&(!Q||i4(this,this[Y],Y,Q)))}return!1}delete($,Q){let Y=this,W=!1;function G(J){if(J=Q4(J),J){let Z=X.findKey(Y,J);if(Z&&(!Q||i4(Y,Y[Z],Z,Q)))delete Y[Z],W=!0}}if(X.isArray($))$.forEach(G);else G($);return W}clear($){let Q=Object.keys(this),Y=Q.length,W=!1;while(Y--){let G=Q[Y];if(!$||i4(this,this[G],G,$,!0))delete this[G],W=!0}return W}normalize($){let Q=this,Y={};return X.forEach(this,(W,G)=>{let J=X.findKey(Y,G);if(J){Q[J]=q4(W),delete Q[G];return}let Z=$?i$(G):String(G).trim();if(Z!==G)delete Q[G];Q[Z]=q4(W),Y[Z]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let Q=Object.create(null);return X.forEach(this,(Y,W)=>{Y!=null&&Y!==!1&&(Q[W]=$&&X.isArray(Y)?Y.join(", "):Y)}),Q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,Q])=>$+": "+Q).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...Q){let Y=new this($);return Q.forEach((W)=>Y.set(W)),Y}static accessor($){let Y=(this[s1]=this[s1]={accessors:{}}).accessors,W=this.prototype;function G(J){let Z=Q4(J);if(!Y[Z])n$(W,J),Y[Z]=!0}return X.isArray($)?$.forEach(G):G($),this}};Y4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(Y4.prototype,({value:$},Q)=>{let Y=Q[0].toUpperCase()+Q.slice(1);return{get:()=>$,set(W){this[Y]=W}}});X.freezeMethods(Y4);y=Y4});function s$($){if(X.hasOwnProp($,"toJSON"))return!0;let Q=Object.getPrototypeOf($);while(Q&&Q!==Object.prototype){if(X.hasOwnProp(Q,"toJSON"))return!0;Q=Object.getPrototypeOf(Q)}return!1}function t$($,Q){let Y=new Set(Q.map((J)=>String(J).toLowerCase())),W=[],G=(J)=>{if(J===null||typeof J!=="object")return J;if(X.isBuffer(J))return J;if(W.indexOf(J)!==-1)return;if(J instanceof y)J=J.toJSON();W.push(J);let Z;if(X.isArray(J))Z=[],J.forEach((z,K)=>{let N=G(z);if(!X.isUndefined(N))Z[K]=N});else{if(!X.isPlainObject(J)&&s$(J))return W.pop(),J;Z=Object.create(null);for(let[z,K]of Object.entries(J)){let N=Y.has(z.toLowerCase())?a$:G(K);if(!X.isUndefined(N))Z[z]=N}}return W.pop(),Z};return G($)}var a$="[REDACTED ****]",a,V;var t=T(()=>{x();G0();a=class a extends Error{static from($,Q,Y,W,G,J){let Z=new a($.message,Q||$.code,Y,W,G);if(Object.defineProperty(Z,"cause",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Z.name=$.name,$.status!=null&&Z.status==null)Z.status=$.status;return J&&Object.assign(Z,J),Z}constructor($,Q,Y,W,G){super($);if(Object.defineProperty(this,"message",{__proto__:null,value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Q&&(this.code=Q),Y&&(this.config=Y),W&&(this.request=W),G)this.response=G,this.status=G.status}toJSON(){let $=this.config,Q=$&&X.hasOwnProp($,"redact")?$.redact:void 0,Y=X.isArray(Q)&&Q.length>0?t$($,Q):X.toJSONObject($);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:Y,code:this.code,status:this.status}}};a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ECONNREFUSED="ECONNREFUSED";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";a.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";V=a});var t1,P4;var a4=T(()=>{t1=n4(r$(),1),P4=t1.default});function t4($){return X.isPlainObject($)||X.isArray($)}function r1($){return X.endsWith($,"[]")?$.slice(0,-2):$}function s4($,Q,Y){if(!$)return Q;return $.concat(Q).map(function(G,J){return G=r1(G),!Y&&J?"["+G+"]":G}).join(Y?".":"")}function o$($){return X.isArray($)&&!$.some(t4)}function $8($,Q,Y){if(!X.isObject($))throw TypeError("target must be an object");Q=Q||new(P4||FormData),Y=X.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,R){return!X.isUndefined(R[_])});let W=Y.metaTokens,G=Y.visitor||S,J=Y.dots,Z=Y.indexes,z=Y.Blob||typeof Blob<"u"&&Blob,K=Y.maxDepth===void 0?r4:Y.maxDepth,N=z&&X.isSpecCompliantForm(Q),M=[];if(!X.isFunction(G))throw TypeError("visitor must be a function");function B(F){if(F===null)return"";if(X.isDate(F))return F.toISOString();if(X.isBoolean(F))return F.toString();if(!N&&X.isBlob(F))throw new V("Blob is not supported. Use a Buffer instead.");if(X.isArrayBuffer(F)||X.isTypedArray(F)){if(N&&typeof z==="function")return new z([F]);if(typeof Buffer<"u")return Buffer.from(F);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return F}function I(F){if(F>K)throw new V("Object is too deeply nested ("+F+" levels). Max depth: "+K,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function U(F,_){if(K===1/0)return JSON.stringify(F);let R=[];return JSON.stringify(F,function(v,k){if(!X.isObject(k))return k;while(R.length&&R[R.length-1]!==this)R.pop();return R.push(k),I(_+R.length-1),k})}function S(F,_,R){let O=F;if(X.isReactNative(Q)&&X.isReactNativeBlob(F))return Q.append(s4(R,_,J),B(F)),!1;if(F&&!R&&typeof F==="object"){if(X.endsWith(_,"{}"))_=W?_:_.slice(0,-2),F=U(F,1);else if(X.isArray(F)&&o$(F)||(X.isFileList(F)||X.endsWith(_,"[]"))&&(O=X.toArray(F)))return _=r1(_),O.forEach(function(k,K0){!(X.isUndefined(k)||k===null)&&Q.append(Z===!0?s4([_],K0,J):Z===null?_:_+"[]",B(k))}),!1}if(t4(F))return!0;return Q.append(s4(R,_,J),B(F)),!1}let q=Object.assign(e$,{defaultVisitor:S,convertValue:B,isVisitable:t4});function L(F,_,R=0){if(X.isUndefined(F))return;if(I(R),M.indexOf(F)!==-1)throw Error("Circular reference detected in "+_.join("."));M.push(F),X.forEach(F,function(v,k){if((!(X.isUndefined(v)||v===null)&&G.call(Q,v,X.isString(k)?k.trim():k,_,q))===!0)L(v,_?_.concat(k):[k],R+1)}),M.pop()}if(!X.isObject($))throw TypeError("data must be an object");return L($),Q}var r4=100,e$,S0;var u0=T(()=>{x();t();a4();e$=X.toFlatObject(X,{},null,function(Q){return/^is[A-Z]/.test(Q)});S0=$8});function o1($){let Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent($).replace(/[!'()~]|%20/g,function(W){return Q[W]})}function e1($,Q){this._pairs=[],$&&S0($,this,Q)}var $5,Q5;var Y5=T(()=>{u0();$5=e1.prototype;$5.append=function(Q,Y){this._pairs.push([Q,Y])};$5.toString=function(Q){let Y=Q?(W)=>Q.call(this,W,o1):o1;return this._pairs.map(function(G){return Y(G[0])+"="+Y(G[1])},"").join("&")};Q5=e1});function Q8($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function C0($,Q,Y){if(!Q)return $;$=$||"";let W=X.isFunction(Y)?{serialize:Y}:Y,G=X.getSafeProp(W,"encode")||Q8,J=X.getSafeProp(W,"serialize"),Z;if(J)Z=J(Q,W);else Z=X.isURLSearchParams(Q)?Q.toString():new Q5(Q,W).toString(G);if(Z){let z=$.indexOf("#");if(z!==-1)$=$.slice(0,z);$+=($.indexOf("?")===-1?"?":"&")+Z}return $}var C4=T(()=>{x();Y5()});class W5{constructor(){this.handlers=[]}use($,Q,Y){return this.handlers.push({fulfilled:$,rejected:Q,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.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(Y){if(Y!==null)$(Y)})}}var o4;var G5=T(()=>{x();o4=W5});var D0;var W4=T(()=>{D0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0}});import Y8 from"url";var Z5;var J5=T(()=>{Z5=Y8.URLSearchParams});import W8 from"crypto";var e4="abcdefghijklmnopqrstuvwxyz",X5="0123456789",K5,G8=($=16,Q=K5.ALPHA_DIGIT)=>{let Y="",{length:W}=Q,G=new Uint32Array($);W8.randomFillSync(G);for(let J=0;J<$;J++)Y+=Q[G[J]%W];return Y},z5;var N5=T(()=>{J5();a4();K5={DIGIT:X5,ALPHA:e4,ALPHA_DIGIT:e4+e4.toUpperCase()+X5},z5={isNode:!0,classes:{URLSearchParams:Z5,FormData:P4,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:K5,generateString:G8,protocols:["http","https","file","data"]}});var Y1={};Z8(Y1,{origin:()=>K8,navigator:()=>$1,hasStandardBrowserWebWorkerEnv:()=>X8,hasStandardBrowserEnv:()=>J8,hasBrowserEnv:()=>Q1});var Q1,$1,J8,X8,K8;var M5=T(()=>{Q1=typeof window<"u"&&typeof document<"u",$1=typeof navigator==="object"&&navigator||void 0,J8=Q1&&(!$1||["ReactNative","NativeScript","NS"].indexOf($1.product)<0),X8=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),K8=Q1&&window.location.href||"http://localhost"});var j;var Z0=T(()=>{N5();M5();j={...Y1,...z5}});function W1($,Q){return S0($,new j.classes.URLSearchParams,{visitor:function(Y,W,G,J){if(j.isNode&&X.isBuffer(Y))return this.append(W,Y.toString("base64")),!1;return J.defaultVisitor.apply(this,arguments)},...Q})}var B5=T(()=>{x();u0();Z0()});function I5($){if($>V5)throw new V("FormData field is too deeply nested ("+$+" levels). Max depth: "+V5,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function z8($){let Q=[],Y=/\w+|\[(\w*)]/g,W;while((W=Y.exec($))!==null)I5(Q.length),Q.push(W[0]==="[]"?"":W[1]||W[0]);return Q}function N8($){let Q={},Y=Object.keys($),W,G=Y.length,J;for(W=0;W<G;W++)J=Y[W],Q[J]=$[J];return Q}function M8($){function Q(Y,W,G,J){I5(J);let Z=Y[J++];if(Z==="__proto__")return!0;let z=Number.isFinite(+Z),K=J>=Y.length;if(Z=!Z&&X.isArray(G)?G.length:Z,K){if(X.hasOwnProp(G,Z))G[Z]=X.isArray(G[Z])?G[Z].concat(W):[G[Z],W];else G[Z]=W;return!z}if(!X.hasOwnProp(G,Z)||!X.isObject(G[Z]))G[Z]=[];if(Q(Y,W,G[Z],J)&&X.isArray(G[Z]))G[Z]=N8(G[Z]);return!z}if(X.isFormData($)&&X.isFunction($.entries)){let Y={};return X.forEachEntry($,(W,G)=>{Q(z8(W),G,Y,0)}),Y}return null}var V5,O4;var G1=T(()=>{x();t();u0();V5=r4;O4=M8});function B8($,Q,Y){if(X.isString($))try{return(Q||JSON.parse)($),X.trim($)}catch(W){if(W.name!=="SyntaxError")throw W}return(Y||JSON.stringify)($)}var c0=($,Q)=>$!=null&&X.hasOwnProp($,Q)?$[Q]:void 0,Z1,d0;var H4=T(()=>{x();t();W4();u0();B5();Z0();G1();Z1={transitional:D0,adapter:["xhr","http","fetch"],transformRequest:[function(Q,Y){let W=Y.getContentType()||"",G=W.indexOf("application/json")>-1,J=X.isObject(Q);if(J&&X.isHTMLForm(Q))Q=new FormData(Q);if(X.isFormData(Q))return G?JSON.stringify(O4(Q)):Q;if(X.isArrayBuffer(Q)||X.isBuffer(Q)||X.isStream(Q)||X.isFile(Q)||X.isBlob(Q)||X.isReadableStream(Q))return Q;if(X.isArrayBufferView(Q))return Q.buffer;if(X.isURLSearchParams(Q))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Q.toString();let z;if(J){let K=c0(this,"formSerializer");if(W.indexOf("application/x-www-form-urlencoded")>-1)return W1(Q,K).toString();if((z=X.isFileList(Q))||W.indexOf("multipart/form-data")>-1){let N=c0(this,"env"),M=N&&N.FormData;return S0(z?{"files[]":Q}:Q,M&&new M,K)}}if(J||G)return Y.setContentType("application/json",!1),B8(Q);return Q}],transformResponse:[function(Q){let Y=c0(this,"transitional")||Z1.transitional,W=Y&&Y.forcedJSONParsing,G=c0(this,"responseType"),J=G==="json";if(X.isResponse(Q)||X.isReadableStream(Q))return Q;if(Q&&X.isString(Q)&&(W&&!G||J)){let z=!(Y&&Y.silentJSONParsing)&&J;try{return JSON.parse(Q,c0(this,"parseReviver"))}catch(K){if(z){if(K.name==="SyntaxError")throw V.from(K,V.ERR_BAD_RESPONSE,this,null,c0(this,"response"));throw K}}}return Q}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(Q){return Q>=200&&Q<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch","query"],($)=>{Z1.headers[$]={}});d0=Z1});function G4($,Q){let Y=this||d0,W=Q||Y,G=y.from(W.headers),J=W.data;return X.forEach($,function(z){J=z.call(Y,J,G.normalize(),Q?Q.status:void 0)}),G.normalize(),J}var F5=T(()=>{x();H4();G0()});function Z4($){return!!($&&$.__CANCEL__)}var J1=()=>{};var U5,$0;var O0=T(()=>{t();U5=class U5 extends V{constructor($,Q,Y){super($==null?"canceled":$,V.ERR_CANCELED,Q,Y);this.name="CanceledError",this.__CANCEL__=!0}};$0=U5});function M0($,Q,Y){let W=Y.config.validateStatus;if(!Y.status||!W||W(Y.status))$(Y);else Q(new V("Request failed with status code "+Y.status,Y.status>=400&&Y.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,Y.config,Y.request,Y))}var E4=T(()=>{t()});function X1($){if(typeof $!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}var L5=()=>{};function K1($,Q){return Q?$.replace(/\/?\/$/,"")+"/"+Q.replace(/^\/+/,""):$}var w5=()=>{};function F8($){let Q=0;while(Q<$.length&&$.charCodeAt(Q)<=32)Q++;return $.slice(Q)}function U8($){return F8($).replace(I8,"")}function S5($,Q){if(typeof $==="string"&&V8.test(U8($)))throw new V('Invalid URL: missing "//" after protocol',V.ERR_INVALID_URL,Q)}function H0($,Q,Y,W){S5(Q,W);let G=!X1(Q);if($&&(G||Y===!1))return S5($,W),K1($,Q);return Q}var V8,I8;var A4=T(()=>{t();L5();w5();V8=/^https?:(?!\/\/)/i,I8=/[\t\n\r]/g});var _5=J4((D5)=>{Object.defineProperty(D5,"__esModule",{value:!0});function L8($){return function(Q,Y){return new Promise((W,G)=>{$.call(this,Q,Y,(J,Z)=>{if(J)G(J);else W(Z)})})}}D5.default=L8});var q5=J4((N1,R5)=>{var T5=N1&&N1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},S8=K4("events"),D8=T5(M1()),_8=T5(_5()),X4=D8.default("agent-base");function T8($){return Boolean($)&&typeof $.addRequest==="function"}function z1(){let{stack:$}=Error();if(typeof $!=="string")return!1;return $.split(`
4
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}function j4($,Q){return new j4.Agent($,Q)}(function($){class Q extends S8.EventEmitter{constructor(Y,W){super();let G=W;if(typeof Y==="function")this.callback=Y;else if(Y)G=Y;if(this.timeout=null,G&&typeof G.timeout==="number")this.timeout=G.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return z1()?443:80}set defaultPort(Y){this.explicitDefaultPort=Y}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return z1()?"https:":"http:"}set protocol(Y){this.explicitProtocol=Y}callback(Y,W,G){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(Y,W){let G=Object.assign({},W);if(typeof G.secureEndpoint!=="boolean")G.secureEndpoint=z1();if(G.host==null)G.host="localhost";if(G.port==null)G.port=G.secureEndpoint?443:80;if(G.protocol==null)G.protocol=G.secureEndpoint?"https:":"http:";if(G.host&&G.path)delete G.path;delete G.agent,delete G.hostname,delete G._defaultAgent,delete G.defaultPort,delete G.createConnection,Y._last=!0,Y.shouldKeepAlive=!1;let J=!1,Z=null,z=G.timeout||this.timeout,K=(I)=>{if(Y._hadError)return;Y.emit("error",I),Y._hadError=!0},N=()=>{Z=null,J=!0;let I=Error(`A "socket" was not created for HTTP request before ${z}ms`);I.code="ETIMEOUT",K(I)},M=(I)=>{if(J)return;if(Z!==null)clearTimeout(Z),Z=null;K(I)},B=(I)=>{if(J)return;if(Z!=null)clearTimeout(Z),Z=null;if(T8(I)){X4("Callback returned another Agent instance %o",I.constructor.name),I.addRequest(Y,G);return}if(I){I.once("free",()=>{this.freeSocket(I,G)}),Y.onSocket(I);return}let U=Error(`no Duplex stream was returned to agent-base for \`${Y.method} ${Y.path}\``);K(U)};if(typeof this.callback!=="function"){K(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)X4("Converting legacy callback function to promise"),this.promisifiedCallback=_8.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof z==="number"&&z>0)Z=setTimeout(N,z);if("port"in G&&typeof G.port!=="number")G.port=Number(G.port);try{X4("Resolving socket for %o request: %o",G.protocol,`${Y.method} ${Y.path}`),Promise.resolve(this.promisifiedCallback(Y,G)).then(B,M)}catch(I){Promise.reject(I).catch(M)}}freeSocket(Y,W){X4("Freeing socket %o %o",Y.constructor.name,W),Y.destroy()}destroy(){X4("Destroying agent %o",this.constructor.name)}}$.Agent=Q,$.prototype=$.Agent.prototype})(j4||(j4={}));R5.exports=j4});var P5=J4((N4)=>{var R8=N4&&N4.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(N4,"__esModule",{value:!0});var q8=R8(M1()),z4=q8.default("https-proxy-agent:parse-proxy-response");function P8($){return new Promise((Q,Y)=>{let W=0,G=[];function J(){let B=$.read();if(B)M(B);else $.once("readable",J)}function Z(){$.removeListener("end",K),$.removeListener("error",N),$.removeListener("close",z),$.removeListener("readable",J)}function z(B){z4("onclose had error %o",B)}function K(){z4("onend")}function N(B){Z(),z4("onerror %o",B),Y(B)}function M(B){G.push(B),W+=B.length;let I=Buffer.concat(G,W);if(I.indexOf(`\r
5
- \r
6
- `)===-1){z4("have not received end of HTTP headers yet..."),J();return}let S=I.toString("ascii",0,I.indexOf(`\r
7
- `)),q=+S.split(" ")[1];z4("got proxy server response: %o",S),Q({statusCode:q,buffered:I})}$.on("error",N),$.on("close",z),$.on("end",K),J()})}N4.default=P8});var E5=J4((E0)=>{var C8=E0&&E0.__awaiter||function($,Q,Y,W){function G(J){return J instanceof Y?J:new Y(function(Z){Z(J)})}return new(Y||(Y=Promise))(function(J,Z){function z(M){try{N(W.next(M))}catch(B){Z(B)}}function K(M){try{N(W.throw(M))}catch(B){Z(B)}}function N(M){M.done?J(M.value):G(M.value).then(z,K)}N((W=W.apply($,Q||[])).next())})},l0=E0&&E0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(E0,"__esModule",{value:!0});var C5=l0(K4("net")),O5=l0(K4("tls")),O8=l0(K4("url")),H8=l0(K4("assert")),E8=l0(M1()),A8=q5(),j8=l0(P5()),M4=E8.default("https-proxy-agent:agent");class H5 extends A8.Agent{constructor($){let Q;if(typeof $==="string")Q=O8.default.parse($);else Q=$;if(!Q)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");M4("creating new HttpsProxyAgent instance: %o",Q);super(Q);let Y=Object.assign({},Q);if(this.secureProxy=Q.secureProxy||x8(Y.protocol),Y.host=Y.hostname||Y.host,typeof Y.port==="string")Y.port=parseInt(Y.port,10);if(!Y.port&&Y.host)Y.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in Y))Y.ALPNProtocols=["http 1.1"];if(Y.host&&Y.path)delete Y.path,delete Y.pathname;this.proxy=Y}callback($,Q){return C8(this,void 0,void 0,function*(){let{proxy:Y,secureProxy:W}=this,G;if(W)M4("Creating `tls.Socket`: %o",Y),G=O5.default.connect(Y);else M4("Creating `net.Socket`: %o",Y),G=C5.default.connect(Y);let J=Object.assign({},Y.headers),z=`CONNECT ${`${Q.host}:${Q.port}`} HTTP/1.1\r
8
- `;if(Y.auth)J["Proxy-Authorization"]=`Basic ${Buffer.from(Y.auth).toString("base64")}`;let{host:K,port:N,secureEndpoint:M}=Q;if(!b8(N,M))K+=`:${N}`;J.Host=K,J.Connection="close";for(let q of Object.keys(J))z+=`${q}: ${J[q]}\r
9
- `;let B=j8.default(G);G.write(`${z}\r
10
- `);let{statusCode:I,buffered:U}=yield B;if(I===200){if($.once("socket",k8),Q.secureEndpoint){M4("Upgrading socket connection to TLS");let q=Q.servername||Q.host;return O5.default.connect(Object.assign(Object.assign({},v8(Q,"host","hostname","path","port")),{socket:G,servername:q}))}return G}G.destroy();let S=new C5.default.Socket({writable:!1});return S.readable=!0,$.once("socket",(q)=>{M4("replaying proxy buffer for failed request"),H8.default(q.listenerCount("data")>0),q.push(U),q.push(null)}),S})}}E0.default=H5;function k8($){$.resume()}function b8($,Q){return Boolean(!Q&&$===80||Q&&$===443)}function x8($){return typeof $==="string"?/^https:?$/i.test($):!1}function v8($,...Q){let Y={},W;for(W in $)if(!Q.includes(W))Y[W]=$[W];return Y}});var j5=J4((I1,A5)=>{var y8=I1&&I1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},B1=y8(E5());function V1($){return new B1.default($)}(function($){$.HttpsProxyAgent=B1.default,$.prototype=B1.default.prototype})(V1||(V1={}));A5.exports=V1});var I0="1.18.1";var B4=()=>{};function V4($){let Q=/^([-+\w]{1,25}):(?:\/\/)?/.exec($);return Q&&Q[1]||""}var F1=()=>{};function U1($,Q,Y){let W=Y&&Y.Blob||j.classes.Blob,G=V4($);if(Q===void 0&&W)Q=!0;if(G==="data"){$=G.length?$.slice(G.length+1):$;let J=m8.exec($);if(!J)throw new V("Invalid URL",V.ERR_INVALID_URL);let Z=J[1],z=J[2],K=J[3]?"base64":"utf8",N=J[4],M="";if(Z)M=z?Z+z:Z;else if(z)M="text/plain"+z;let B=K==="base64"?Buffer.from(N,"base64"):Buffer.from(decodeURIComponent(N),K);if(Q){if(!W)throw new V("Blob is not supported",V.ERR_NOT_SUPPORT);return new W([B],{type:M})}return B}throw new V("Unsupported protocol "+G,V.ERR_NOT_SUPPORT)}var m8;var k5=T(()=>{t();F1();Z0();m8=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/});import f8 from"stream";var L1,b5,w1;var x5=T(()=>{x();L1=Symbol("internals");b5=class b5 extends f8.Transform{constructor($){$=X.toFlatObject($,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(Y,W)=>{return!X.isUndefined(W[Y])});super({readableHighWaterMark:$.chunkSize});let Q=this[L1]={timeWindow:$.timeWindow,chunkSize:$.chunkSize,maxRate:$.maxRate,minChunkSize:$.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(Y)=>{if(Y==="progress"){if(!Q.isCaptured)Q.isCaptured=!0}})}_read($){let Q=this[L1];if(Q.onReadCallback)Q.onReadCallback();return super._read($)}_transform($,Q,Y){let W=this[L1],G=W.maxRate,J=this.readableHighWaterMark,Z=W.timeWindow,z=1000/Z,K=G/z,N=W.minChunkSize!==!1?Math.max(W.minChunkSize,K*0.01):0,M=(I,U)=>{let S=Buffer.byteLength(I);if(W.bytesSeen+=S,W.bytes+=S,W.isCaptured&&this.emit("progress",W.bytesSeen),this.push(I))process.nextTick(U);else W.onReadCallback=()=>{W.onReadCallback=null,process.nextTick(U)}},B=(I,U)=>{let S=Buffer.byteLength(I),q=null,L=J,F,_=0;if(G){let R=Date.now();if(!W.ts||(_=R-W.ts)>=Z)W.ts=R,F=K-W.bytes,W.bytes=F<0?-F:0,_=0;F=K-W.bytes}if(G){if(F<=0)return setTimeout(()=>{U(null,I)},Z-_);if(F<L)L=F}if(L&&S>L&&S-L>N)q=I.subarray(L),I=I.subarray(0,L);M(I,q?()=>{process.nextTick(U,null,q)}:U)};B($,function I(U,S){if(U)return Y(U);if(S)B(S,I);else Y(null)})}};w1=b5});var v5,h8=async function*($){if($.stream)yield*$.stream();else if($.arrayBuffer)yield await $.arrayBuffer();else if($[v5])yield*$[v5]();else yield $},k4;var S1=T(()=>{({asyncIterator:v5}=Symbol),k4=h8});import g8 from"util";import{Readable as u8}from"stream";class y5{constructor($,Q){let{escapeName:Y}=this.constructor,W=X.isString(Q),G=`Content-Disposition: form-data; name="${Y($)}"${!W&&Q.name?`; filename="${Y(Q.name)}"`:""}${A0}`;if(W)Q=I4.encode(String(Q).replace(/\r?\n|\r\n?/g,A0));else{let J=String(Q.type||"application/octet-stream").replace(/[\r\n]/g,"");G+=`Content-Type: ${J}${A0}`}this.headers=I4.encode(G+A0),this.contentLength=W?Q.byteLength:Q.size,this.size=this.headers.byteLength+this.contentLength+l8,this.name=$,this.value=Q}async*encode(){yield this.headers;let{value:$}=this;if(X.isTypedArray($))yield $;else yield*k4($);yield d8}static escapeName($){return String($).replace(/[\r\n"]/g,(Q)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Q])}}var c8,I4,A0=`\r
11
- `,d8,l8=2,p8=($,Q,Y)=>{let{tag:W="form-data-boundary",size:G=25,boundary:J=W+"-"+j.generateString(G,c8)}=Y||{};if(!X.isFormData($))throw TypeError("FormData instance required");if(J.length<1||J.length>70)throw Error("boundary must be 1-70 characters long");let Z=I4.encode("--"+J+A0),z=I4.encode("--"+J+"--"+A0),K=z.byteLength,N=Array.from($.entries()).map(([B,I])=>{let U=new y5(B,I);return K+=U.size,U});K+=Z.byteLength*N.length,K=X.toFiniteNumber(K);let M={"Content-Type":`multipart/form-data; boundary=${J}`};if(Number.isFinite(K))M["Content-Length"]=K;return Q&&Q(M),u8.from(async function*(){for(let B of N)yield Z,yield*B.encode();yield z}())},m5;var f5=T(()=>{x();S1();Z0();c8=j.ALPHABET.ALPHA_DIGIT+"-_",I4=typeof TextEncoder==="function"?new TextEncoder:new g8.TextEncoder,d8=I4.encode(A0);m5=p8});import i8 from"stream";var h5,g5;var u5=T(()=>{h5=class h5 extends i8.Transform{__transform($,Q,Y){this.push($),Y()}_transform($,Q,Y){if($.length!==0){if(this._transform=this.__transform,$[0]!==120){let W=Buffer.alloc(2);W[0]=120,W[1]=156,this.push(W,Q)}}this.__transform($,Q,Y)}};g5=h5});import n8 from"http2";import a8 from"util";class c5{constructor(){this.sessions=Object.create(null)}getSession($,Q){Q=Object.assign({sessionTimeout:1000},Q);let Y=this.sessions[$];if(Y){let M=Y.length;for(let B=0;B<M;B++){let[I,U]=Y[B];if(!I.destroyed&&!I.closed&&a8.isDeepStrictEqual(U,Q))return I}}let W=n8.connect($,Q),G,J,Z=()=>{if(G)return;if(G=!0,J)clearTimeout(J),J=null;let M=Y,B=M.length,I=B;while(I--)if(M[I][0]===W){if(B===1)delete this.sessions[$];else M.splice(I,1);if(!W.closed)W.close();return}},z=W.request,{sessionTimeout:K}=Q;if(K!=null){let M=0;W.request=function(){let B=z.apply(this,arguments);if(M++,J)clearTimeout(J),J=null;return B.once("close",()=>{if(!--M)J=setTimeout(()=>{J=null,Z()},K)}),B}}W.once("close",Z);let N=[W,Q];return Y?Y.push(N):Y=this.sessions[$]=[N],W}}var d5;var l5=T(()=>{d5=c5});var s8=($,Q)=>{return X.isAsyncFn($)?function(...Y){let W=Y.pop();$.apply(this,Y).then((G)=>{try{Q?W(null,...Q(G)):W(null,G)}catch(J){W(J)}},W)}:$},p5;var i5=T(()=>{x();p5=s8});function _1($){let Q;try{Q=new URL($)}catch(J){return!1}let Y=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!Y)return!1;if(Y==="*")return!0;let W=Number.parseInt(Q.port,10)||e8[Q.protocol.split(":",1)[0]]||0,G=a5(Q.hostname.toLowerCase());return Y.split(/[\s,]+/).some((J)=>{if(!J)return!1;let[Z,z]=$Q(J);if(Z=a5(Z),!Z)return!1;if(z&&z!==W)return!1;if(Z.charAt(0)==="*")Z=Z.slice(1);if(Z.charAt(0)===".")return G.endsWith(Z);return G===Z||n5(G)&&n5(Z)})}var t8,s5=($)=>{let Q=$.split(".");if(Q.length!==4)return!1;if(Q[0]!=="127")return!1;return Q.every((Y)=>/^\d+$/.test(Y)&&Number(Y)>=0&&Number(Y)<=255)},D1=($)=>/^0{1,4}$/.test($),r8=($)=>{if($==="::")return!0;let Q=$.indexOf("::");if(Q!==-1){if(Q!==$.lastIndexOf("::"))return!1;let W=$.slice(0,Q),G=$.slice(Q+2),J=W?W.split(":"):[],Z=G?G.split(":"):[];return J.length+Z.length<8&&J.every(D1)&&Z.every(D1)}let Y=$.split(":");return Y.length===8&&Y.every(D1)},o8=($)=>{if($==="::1")return!0;let Q=$.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Q)return s5(Q[1]);let Y=$.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(Y){let G=parseInt(Y[1],16);return G>=32512&&G<=32767}let W=$.split(":");if(W.length===8){for(let G=0;G<7;G++)if(!/^0+$/.test(W[G]))return!1;return/^0*1$/.test(W[7])}return!1},n5=($)=>{if(!$)return!1;if(t8.has($))return!0;if(s5($))return!0;if(r8($))return!0;return o8($)},e8,$Q=($)=>{let Q=$,Y=0;if(Q.charAt(0)==="["){let J=Q.indexOf("]");if(J!==-1){let Z=Q.slice(1,J),z=Q.slice(J+1);if(z.charAt(0)===":"&&/^\d+$/.test(z.slice(1)))Y=Number.parseInt(z.slice(1),10);return[Z,Y]}}let W=Q.indexOf(":"),G=Q.lastIndexOf(":");if(W!==-1&&W===G&&/^\d+$/.test(Q.slice(G+1)))Y=Number.parseInt(Q.slice(G+1),10),Q=Q.slice(0,G);return[Q,Y]},QQ,YQ,WQ=($)=>{if(typeof $!=="string"||$.indexOf(":")===-1)return $;let Q=$.match(QQ);if(Q)return Q[1];let Y=$.match(YQ);if(Y){let W=parseInt(Y[1],16),G=parseInt(Y[2],16);return`${W>>8}.${W&255}.${G>>8}.${G&255}`}return $},a5=($)=>{if(!$)return $;if($.charAt(0)==="["&&$.charAt($.length-1)==="]")$=$.slice(1,-1);return WQ($.replace(/\.+$/,""))};var t5=T(()=>{t8=new Set(["localhost","0.0.0.0"]),e8={http:80,https:443,ws:80,wss:443,ftp:21},QQ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,YQ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i});function GQ($,Q){$=$||10;let Y=Array($),W=Array($),G=0,J=0,Z;return Q=Q!==void 0?Q:1000,function(K){let N=Date.now(),M=W[J];if(!Z)Z=N;Y[G]=K,W[G]=N;let B=J,I=0;while(B!==G)I+=Y[B++],B=B%$;if(G=(G+1)%$,G===J)J=(J+1)%$;if(N-Z<Q)return;let U=M&&N-M;return U?Math.round(I*1000/U):void 0}}var r5;var o5=T(()=>{r5=GQ});function ZQ($,Q){let Y=0,W=1000/Q,G,J,Z=(N,M=Date.now())=>{if(Y=M,G=null,J)clearTimeout(J),J=null;$(...N)};return[(...N)=>{let M=Date.now(),B=M-Y;if(B>=W)Z(N,M);else if(G=N,!J)J=setTimeout(()=>{J=null,Z(G)},W-B)},()=>G&&Z(G)]}var e5;var $6=T(()=>{e5=ZQ});var F0=($,Q,Y=3)=>{let W=0,G=r5(50,250);return e5((J)=>{if(!J||typeof J.loaded!=="number")return;let Z=J.loaded,z=J.lengthComputable?J.total:void 0,K=z!=null?Math.min(Z,z):Z,N=Math.max(0,K-W),M=G(N);W=Math.max(W,K);let B={loaded:K,total:z,progress:z?K/z:void 0,bytes:N,rate:M?M:void 0,estimated:M&&z?(z-K)/M:void 0,event:J,lengthComputable:z!=null,[Q?"download":"upload"]:!0};$(B)},Y)},p0=($,Q)=>{let Y=$!=null;return[(W)=>Q[0]({lengthComputable:Y,total:$,loaded:W}),Q[1]]},i0=($)=>(...Q)=>X.asap(()=>$(...Q));var b4=T(()=>{o5();$6();x()});function F4($){if(!$||typeof $!=="string")return 0;if(!$.startsWith("data:"))return 0;let Q=$.indexOf(",");if(Q<0)return 0;let Y=$.slice(5,Q),W=$.slice(Q+1);if(/;base64/i.test(Y)){let{length:Z,length:z}=W;for(let U=0;U<z;U++)if(W.charCodeAt(U)===37&&U+2<z){let S=W.charCodeAt(U+1),q=W.charCodeAt(U+2);if(x4(S)&&x4(q))Z-=2,U+=2}let K=0,N=z-1,M=(U)=>U>=2&&W.charCodeAt(U-2)===37&&W.charCodeAt(U-1)===51&&(W.charCodeAt(U)===68||W.charCodeAt(U)===100);if(N>=0){if(W.charCodeAt(N)===61)K++,N--;else if(M(N))K++,N-=3}if(K===1&&N>=0){if(W.charCodeAt(N)===61)K++;else if(M(N))K++}let I=Math.floor(Z/4)*3-(K||0);return I>0?I:0}let J=0;for(let Z=0,z=W.length;Z<z;Z++){let K=W.charCodeAt(Z);if(K===37&&JQ(W,Z,z))J+=1,Z+=2;else if(K<128)J+=1;else if(K<2048)J+=2;else if(K>=55296&&K<=56319&&Z+1<z){let N=W.charCodeAt(Z+1);if(N>=56320&&N<=57343)J+=4,Z++;else J+=3}else J+=3}return J}var x4=($)=>$>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102,JQ=($,Q,Y)=>Q+2<Y&&x4($.charCodeAt(Q+1))&&x4($.charCodeAt(Q+2));var T1=()=>{};import M6 from"http";import B6 from"https";import zQ from"http2";import NQ from"util";import{resolve as Q6}from"path";import Y0 from"zlib";import J0 from"stream";import{EventEmitter as MQ}from"events";function wQ($,Q,Y){if(Y!=="content-only"){$.set(Q);return}Object.entries(Q).forEach(([W,G])=>{if(LQ.includes(W.toLowerCase()))$.set(W,G)})}function DQ($=process.versions&&process.versions.node){if(!$)return!1;let[Q,Y]=$.split(".").map((W)=>Number(W));if(!Number.isInteger(Q)||!Number.isInteger(Y))return!1;if(Q>24)return!0;return Z6[Q]!=null&&Y>=Z6[Q]}function _Q($,Q=process.versions&&process.versions.node){if(!DQ(Q))return!1;let Y=$&&$.options;return Boolean(Y&&X.hasOwnProp(Y,"proxyEnv")&&Y.proxyEnv!=null)}function TQ($,Q,Y){return q1.test($.protocol)?Y||B6.globalAgent:Q||M6.globalAgent}function RQ($,Q){let Y=$.protocol+"//"+$.hostname+":"+($.port||"")+"#"+($.auth||""),W=Q?G6.get(Q)||G6.set(Q,new Map).get(Q):SQ,G=W.get(Y);if(G)return G;let J=Q&&Q.options?{...Q.options,...$}:$;if(G=new R1.default(J),Q&&Q.options){let Z={...Q.options},z=G.callback;G.callback=function(N,M){return z.call(this,N,{...Z,...M})}}return G[L6]=!0,W.set(Y,G),G}function PQ($,Q,Y){if($.beforeRedirects.proxy)$.beforeRedirects.proxy($);if($.beforeRedirects.auth)$.beforeRedirects.auth($);if($.beforeRedirects.sensitiveHeaders)$.beforeRedirects.sensitiveHeaders($,Y);if($.beforeRedirects.config)$.beforeRedirects.config($,Q,Y)}function CQ($,Q){if(!$)return;Object.keys($).forEach((Y)=>{if(Q.has(Y.toLowerCase()))delete $[Y]})}function OQ($,Q){if(!Q)return!1;try{return new URL(Q.url).origin===new URL($.href).origin}catch(Y){return!1}}function w6($,Q,Y,W,G,J){let Z=Q,z=TQ($,J,G);if(!Z&&Z!==!1&&!_Q(z)){let K=N6(Y);if(K){if(!_1(Y))Z=new URL(K)}}if(W&&$.headers){for(let K of Object.keys($.headers))if(K.toLowerCase()==="proxy-authorization")delete $.headers[K]}if(W&&$.agent&&$.agent[L6])$.agent=void 0;if(Z){let K=Z instanceof URL,N=(S)=>K||X.hasOwnProp(Z,S)?Z[S]:void 0,M=N("username"),B=N("password"),I=X.hasOwnProp(Z,"auth")?Z.auth:void 0;if(M)I=(M||"")+":"+(B||"");if(I){let S=typeof I==="object",q=S&&X.hasOwnProp(I,"username")?I.username:void 0,L=S&&X.hasOwnProp(I,"password")?I.password:void 0;if(Boolean(q||L))I=(q||"")+":"+(L||"");else if(S)throw new V("Invalid proxy authorization",V.ERR_BAD_OPTION,{proxy:Z})}if(q1.test($.protocol)){if(!(G instanceof R1.default)){let S=N("hostname")||N("host"),q=N("port"),L=N("protocol"),F=L?L.includes(":")?L:`${L}:`:"http:",_=S&&S.includes(":")&&!S.startsWith("[")?`[${S}]`:S,R=new URL(`${F}//${_}${q?":"+q:""}`),O={protocol:R.protocol,hostname:R.hostname.replace(/^\[|\]$/g,""),port:R.port,auth:I&&typeof I==="string"?I:void 0};if(R.protocol==="https:")O.ALPNProtocols=["http/1.1"];let v=RQ(O,G);if($.agent=v,$.agents)$.agents.https=v}}else{if(I){let F=Buffer.from(I,"utf8").toString("base64");$.headers["Proxy-Authorization"]="Basic "+F}let S=!1;for(let F of Object.keys($.headers))if(F.toLowerCase()==="host"){S=!0;break}if(!S)$.headers.host=$.hostname+($.port?":"+$.port:"");let q=N("hostname")||N("host");$.hostname=q,$.host=q,$.port=N("port"),$.path=Y;let L=N("protocol");if(L)$.protocol=L.includes(":")?L:`${L}:`}}$.beforeRedirects.proxy=function(N){w6(N,Q,N.href,!0,G,J)}}var R1,V6,Y6,BQ,VQ,I6,F6,U6,IQ,FQ,UQ,q1,LQ,W6,v4,L6,SQ,G6,Z6,J6,X6=($)=>{if(!X.isString($))return $;try{return decodeURIComponent($)}catch(Q){return $}},K6=($,[Q,Y])=>{return $.on("end",Y).on("error",Y),Q},qQ,HQ,EQ=($)=>{return new Promise((Q,Y)=>{let W,G,J=(K,N)=>{if(G)return;G=!0,W&&W(K,N)},Z=(K)=>{J(K),Q(K)},z=(K)=>{J(K,!0),Y(K)};$(Z,z,(K)=>W=K).catch(z)})},AQ=({address:$,family:Q})=>{if(!X.isString($))throw TypeError("address must be a string");return{address:$,family:Q||($.indexOf(".")<0?6:4)}},z6=($,Q)=>AQ(X.isObject($)?$:{address:$,family:Q}),jQ,S6;var D6=T(()=>{x();E4();A4();C4();XQ();B4();W4();t();O0();Z0();k5();G0();x5();f5();S1();u5();l5();i5();t5();$4();b4();T1();R1=n4(j5(),1),V6=n4(KQ(),1),Y6={flush:Y0.constants.Z_SYNC_FLUSH,finishFlush:Y0.constants.Z_SYNC_FLUSH},BQ={flush:Y0.constants.BROTLI_OPERATION_FLUSH,finishFlush:Y0.constants.BROTLI_OPERATION_FLUSH},VQ={flush:Y0.constants.ZSTD_e_flush,finishFlush:Y0.constants.ZSTD_e_flush},I6=X.isFunction(Y0.createBrotliDecompress),F6=X.isFunction(Y0.createZstdDecompress),U6="gzip, compress, deflate"+(I6?", br":""),IQ=U6+(F6?", zstd":""),{http:FQ,https:UQ}=V6.default,q1=/https:?/,LQ=["content-type","content-length"];W6=Symbol("axios.http.socketListener"),v4=Symbol("axios.http.currentReq"),L6=Symbol("axios.http.installedTunnel"),SQ=new Map,G6=new WeakMap,Z6={22:21,24:5};J6=j.protocols.map(($)=>{return $+":"}),qQ=new d5;HQ=typeof process<"u"&&X.kindOf(process)==="process",jQ={request($,Q){let Y=$.protocol+"//"+$.hostname+":"+($.port||($.protocol==="https:"?443:80)),{http2Options:W,headers:G}=$,J=qQ.getSession(Y,W),{HTTP2_HEADER_SCHEME:Z,HTTP2_HEADER_METHOD:z,HTTP2_HEADER_PATH:K,HTTP2_HEADER_STATUS:N}=zQ.constants,M={[Z]:$.protocol.replace(":",""),[z]:$.method,[K]:$.path};X.forEach(G,(I,U)=>{U.charAt(0)!==":"&&(M[U]=I)});let B=J.request(M);return B.once("response",(I)=>{let U=B;I=Object.assign({},I);let S=I[N];delete I[N],U.headers=I,U.statusCode=+S,Q(U)}),B}},S6=HQ&&function(Q){return EQ(async function(W,G,J){let Z=(D)=>X.getSafeProp(Q,D),z=Z("transitional")||D0,K=Z("data"),N=Z("lookup"),M=Z("family"),B=Z("httpVersion");if(B===void 0)B=1;let I=Z("http2Options"),U=Z("httpAgent"),S=Z("httpsAgent"),q=Z("proxy"),L=Z("responseType"),F=Z("responseEncoding"),_=Z("socketPath"),R=Z("method").toUpperCase(),O=Z("maxRedirects"),v=Z("maxBodyLength"),k=Z("maxContentLength"),K0=Z("decompress"),j0,U0=!1,E,e;if(B=+B,Number.isNaN(B))throw TypeError(`Invalid protocol version: '${Q.httpVersion}' is not a number`);if(B!==1&&B!==2)throw TypeError(`Unsupported protocol version '${B}'`);let k0=B===2;if(N){let D=p5(N,(w)=>X.isArray(w)?w:[w]);N=(w,H,h)=>{D(w,H,(C,l,s)=>{if(C)return h(C);let u=X.isArray(l)?l.map((v0)=>z6(v0)):[z6(l,s)];H.all?h(C,u):h(C,u[0].address,u[0].family)})}}let L0=new MQ;function c(D){try{L0.emit("abort",!D||D.type?new $0(null,Q,E):D)}catch(w){}}function B0(){if(e)clearTimeout(e),e=null}function _0(){let D=Z("timeout"),w=D?"timeout of "+D+"ms exceeded":"timeout exceeded",H=Z("timeoutErrorMessage");if(H)w=H;return new V(w,z.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,Q,E)}L0.once("abort",G);let T0=()=>{if(B0(),Q.cancelToken)Q.cancelToken.unsubscribe(c);if(Q.signal)Q.signal.removeEventListener("abort",c);L0.removeAllListeners()};if(Q.cancelToken||Q.signal){if(Q.cancelToken&&Q.cancelToken.subscribe(c),Q.signal)Q.signal.aborted?c():Q.signal.addEventListener("abort",c)}J((D,w)=>{if(j0=!0,B0(),w){U0=!0,T0();return}let{data:H}=D;if(H instanceof J0.Readable||H instanceof J0.Duplex){let h=J0.finished(H,()=>{h(),T0()})}else T0()});let S4=H0(Z("baseURL"),Z("url"),Z("allowAbsoluteUrls"),Q),D4=_?"http://localhost":j.hasBrowserEnv?j.origin:void 0,m=new URL(S4,D4),f=m.protocol||J6[0];if(f==="data:"){if(k>-1){let w=String(Z("url")||S4||"");if(F4(w)>k)return G(new V("maxContentLength size of "+k+" exceeded",V.ERR_BAD_RESPONSE,Q))}let D;if(R!=="GET")return M0(W,G,{status:405,statusText:"method not allowed",headers:{},config:Q});try{D=U1(Z("url"),L==="blob",{Blob:Q.env&&Q.env.Blob})}catch(w){throw V.from(w,V.ERR_BAD_REQUEST,Q)}if(L==="text"){if(D=D.toString(F),!F||F==="utf8")D=X.stripBOM(D)}else if(L==="stream")D=J0.Readable.from(D);return M0(W,G,{data:D,status:200,statusText:"OK",headers:new y,config:Q})}if(J6.indexOf(f)===-1)return G(new V("Unsupported protocol "+f,V.ERR_BAD_REQUEST,Q));let g=y.from(Q.headers).normalize();g.set("User-Agent","axios/"+I0,!1);let{onUploadProgress:z0,onDownloadProgress:V0}=Q,R0=Q.maxRate,A=void 0,i=void 0;if(X.isSpecCompliantForm(K)){let D=g.getContentType(/boundary=([-_\w\d]{10,70})/i);K=m5(K,(w)=>{g.set(w)},{tag:`axios-${I0}-boundary`,boundary:D&&D[1]||void 0})}else if(X.isFormData(K)&&X.isFunction(K.getHeaders)&&K.getHeaders!==Object.prototype.getHeaders){if(wQ(g,K.getHeaders(),Z("formDataHeaderPolicy")),!g.hasContentLength())try{let D=await NQ.promisify(K.getLength).call(K);Number.isFinite(D)&&D>=0&&g.setContentLength(D)}catch(D){}}else if(X.isBlob(K)||X.isFile(K))K.size&&g.setContentType(K.type||"application/octet-stream"),g.setContentLength(K.size||0),K=J0.Readable.from(k4(K));else if(K&&!X.isStream(K)){if(Buffer.isBuffer(K));else if(X.isArrayBuffer(K))K=Buffer.from(new Uint8Array(K));else if(X.isString(K))K=Buffer.from(K,"utf-8");else return G(new V("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",V.ERR_BAD_REQUEST,Q));if(g.setContentLength(K.length,!1),v>-1&&K.length>v)return G(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,Q))}let b0=X.toFiniteNumber(g.getContentLength());if(X.isArray(R0))A=R0[0],i=R0[1];else A=i=R0;if(K&&(z0||A)){if(!X.isStream(K))K=J0.Readable.from(K,{objectMode:!1});K=J0.pipeline([K,new w1({maxRate:X.toFiniteNumber(A)})],X.noop),z0&&K.on("progress",K6(K,p0(b0,F0(i0(z0),!1,3))))}let N0=void 0,n0=Z("auth");if(n0){let D=X.getSafeProp(n0,"username")||"",w=X.getSafeProp(n0,"password")||"";N0=D+":"+w}if(!N0&&(m.username||m.password)){let D=X6(m.username),w=X6(m.password);N0=D+":"+w}N0&&g.delete("authorization");let a0;try{a0=C0(m.pathname+m.search,Z("params"),Z("paramsSerializer")).replace(/^\?/,"")}catch(D){return G(V.from(D,V.ERR_BAD_REQUEST,Q,null,null,{url:Z("url"),exists:!0}))}g.set("Accept-Encoding",X.hasOwnProp(z,"advertiseZstdAcceptEncoding")&&z.advertiseZstdAcceptEncoding===!0?IQ:U6,!1);let b=Object.assign(Object.create(null),{path:a0,method:R,headers:g0(g),agents:{http:U,https:S},auth:N0,protocol:f,family:M,beforeRedirect:PQ,beforeRedirects:Object.create(null),http2Options:I});if(!X.isUndefined(N)&&(b.lookup=N),_){if(typeof _!=="string")return G(new V("socketPath must be a string",V.ERR_BAD_OPTION_VALUE,Q));let D=Z("allowedSocketPaths");if(D!=null){let w=Array.isArray(D)?D:[D],H=Q6(_);if(!w.some((C)=>typeof C==="string"&&Q6(C)===H))return G(new V(`socketPath "${_}" is not permitted by allowedSocketPaths`,V.ERR_BAD_OPTION_VALUE,Q))}b.socketPath=_}else b.hostname=m.hostname.startsWith("[")?m.hostname.slice(1,-1):m.hostname,b.port=m.port,w6(b,q,f+"//"+m.hostname+(m.port?":"+m.port:"")+b.path,!1,S,U);let w0,x0=!1,Q0=!1,P=q1.test(b.protocol);if(b.agent==null)b.agent=P?S:U;if(k0)w0=jQ;else{let D=Z("transport");if(D)w0=D;else if(O===0)w0=P?B6:M6,x0=!0;else{if(Q0=!0,b.sensitiveHeaders=[],O)b.maxRedirects=O;let w=Z("beforeRedirect");if(w)b.beforeRedirects.config=w;if(N0){let h=m.origin,C=N0;b.beforeRedirects.auth=function(s){try{if(new URL(s.href).origin===h)s.auth=C}catch(u){}}}let H=Z("sensitiveHeaders");if(H!=null){if(!X.isArray(H))return G(new V("sensitiveHeaders must be an array of strings",V.ERR_BAD_OPTION_VALUE,Q));let h=new Set;for(let C of H){if(!X.isString(C))return G(new V("sensitiveHeaders must be an array of strings",V.ERR_BAD_OPTION_VALUE,Q));h.add(C.toLowerCase())}if(h.size)b.sensitiveHeaders=Array.from(h),b.beforeRedirects.sensitiveHeaders=function(l,s){if(!OQ(l,s))CQ(l.headers,h)}}w0=P?UQ:FQ}}if(v>-1)b.maxBodyLength=v;else b.maxBodyLength=1/0;b.insecureHTTPParser=Boolean(Z("insecureHTTPParser")),E=w0.request(b,function(w){if(B0(),E.destroyed)return;let H=[w],h=X.toFiniteNumber(w.headers["content-length"]);if(V0||i){let u=new w1({maxRate:X.toFiniteNumber(i)});V0&&u.on("progress",K6(u,p0(h,F0(i0(V0),!0,3)))),H.push(u)}let C=w,l=w.req||E;if(K0!==!1&&w.headers["content-encoding"]){if(R==="HEAD"||w.statusCode===204)delete w.headers["content-encoding"];switch((w.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":H.push(Y0.createUnzip(Y6)),delete w.headers["content-encoding"];break;case"deflate":H.push(new g5),H.push(Y0.createUnzip(Y6)),delete w.headers["content-encoding"];break;case"br":if(I6)H.push(Y0.createBrotliDecompress(BQ)),delete w.headers["content-encoding"];break;case"zstd":if(F6)H.push(Y0.createZstdDecompress(VQ)),delete w.headers["content-encoding"];break}}C=H.length>1?J0.pipeline(H,X.noop):H[0];let s={status:w.statusCode,statusText:w.statusMessage,headers:new y(w.headers),config:Q,request:l};if(L==="stream"){if(k>-1){let u=k,v0=C;async function*s0(){let p=0;for await(let v1 of v0){if(p+=v1.length,p>u)throw new V("maxContentLength size of "+u+" exceeded",V.ERR_BAD_RESPONSE,Q,l);yield v1}}C=J0.Readable.from(s0(),{objectMode:!1})}s.data=C,M0(W,G,s)}else{let u=[],v0=0;C.on("data",function(p){if(u.push(p),v0+=p.length,k>-1&&v0>k)U0=!0,C.destroy(),c(new V("maxContentLength size of "+k+" exceeded",V.ERR_BAD_RESPONSE,Q,l))}),C.on("aborted",function(){if(U0)return;let p=new V("stream has been aborted",V.ERR_BAD_RESPONSE,Q,l,s);C.destroy(p),G(p)}),C.on("error",function(p){if(U0)return;G(V.from(p,null,Q,l,s))}),C.on("end",function(){try{let p=u.length===1?u[0]:Buffer.concat(u);if(L!=="arraybuffer"){if(p=p.toString(F),!F||F==="utf8")p=X.stripBOM(p)}s.data=p}catch(p){return G(V.from(p,null,Q,s.request,s))}M0(W,G,s)})}L0.once("abort",(u)=>{if(!C.destroyed)C.emit("error",u),C.destroy()})}),L0.once("abort",(D)=>{if(E.close)E.close();else E.destroy(D)}),E.on("error",function(w){G(V.from(w,null,Q,E))});let n=new Set;if(E.on("socket",function(w){if(typeof w.setKeepAlive==="function")w.setKeepAlive(!0,60000);if(!w[W6])w.on("error",function(h){let C=w[v4];if(C&&!C.destroyed)C.destroy(h)}),w[W6]=!0;w[v4]=E,n.add(w)}),E.once("close",function(){B0();for(let w of n)if(w[v4]===E)w[v4]=null;n.clear()}),Z("timeout")){let D=parseInt(Z("timeout"),10);if(Number.isNaN(D)){c(new V("error trying to parse `config.timeout` to int",V.ERR_BAD_OPTION_VALUE,Q,E));return}let w=function(){if(j0)return;c(_0())};if(x0&&D>0)e=setTimeout(w,D);E.setTimeout(D,w)}else E.setTimeout(0);if(X.isStream(K)){let D=!1,w=!1;K.on("end",()=>{D=!0}),K.once("error",(h)=>{w=!0,E.destroy(h)}),K.on("close",()=>{if(!D&&!w)c(new $0("Request stream has been aborted",Q,E))});let H=K;if(v>-1&&!Q0){let h=v,C=0;H=J0.pipeline([K,new J0.Transform({transform(l,s,u){if(C+=l.length,C>h)return u(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,Q,E));u(null,l)}})],X.noop),H.on("error",(l)=>{if(!E.destroyed)E.destroy(l)})}H.pipe(E)}else K&&E.write(K),E.end()})}});var _6;var T6=T(()=>{Z0();_6=j.hasStandardBrowserEnv?(($,Q)=>(Y)=>{return Y=new URL(Y,j.origin),$.protocol===Y.protocol&&$.host===Y.host&&(Q||$.port===Y.port)})(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0});var R6;var q6=T(()=>{x();Z0();R6=j.hasStandardBrowserEnv?{write($,Q,Y,W,G,J,Z){if(typeof document>"u")return;let z=[`${$}=${encodeURIComponent(Q)}`];if(X.isNumber(Y))z.push(`expires=${new Date(Y).toUTCString()}`);if(X.isString(W))z.push(`path=${W}`);if(X.isString(G))z.push(`domain=${G}`);if(J===!0)z.push("secure");if(X.isString(Z))z.push(`SameSite=${Z}`);document.cookie=z.join("; ")},read($){if(typeof document>"u")return null;let Q=document.cookie.split(";");for(let Y=0;Y<Q.length;Y++){let W=Q[Y].replace(/^\s+/,""),G=W.indexOf("=");if(G!==-1&&W.slice(0,G)===$)try{return decodeURIComponent(W.slice(G+1))}catch(J){return W.slice(G+1)}}return null},remove($){this.write($,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}}});function X0($,Q){$=$||{},Q=Q||{};let Y=Object.create(null);Object.defineProperty(Y,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function W(M,B,I,U){if(X.isPlainObject(M)&&X.isPlainObject(B))return X.merge.call({caseless:U},M,B);else if(X.isPlainObject(B))return X.merge({},B);else if(X.isArray(B))return B.slice();return B}function G(M,B,I,U){if(!X.isUndefined(B))return W(M,B,I,U);else if(!X.isUndefined(M))return W(void 0,M,I,U)}function J(M,B){if(!X.isUndefined(B))return W(void 0,B)}function Z(M,B){if(!X.isUndefined(B))return W(void 0,B);else if(!X.isUndefined(M))return W(void 0,M)}function z(M){let B=X.hasOwnProp(Q,"transitional")?Q.transitional:void 0;if(!X.isUndefined(B))if(X.isPlainObject(B)){if(X.hasOwnProp(B,M))return B[M]}else return;let I=X.hasOwnProp($,"transitional")?$.transitional:void 0;if(X.isPlainObject(I)&&X.hasOwnProp(I,M))return I[M];return}function K(M,B,I){if(X.hasOwnProp(Q,I))return W(M,B);else if(X.hasOwnProp($,I))return W(void 0,M)}let N={url:J,method:J,data:J,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,withXSRFToken:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,allowedSocketPaths:Z,responseEncoding:Z,validateStatus:K,headers:(M,B,I)=>G(P6(M),P6(B),I,!0)};if(X.forEach(Object.keys({...$,...Q}),function(B){if(B==="__proto__"||B==="constructor"||B==="prototype")return;let I=X.hasOwnProp(N,B)?N[B]:G,U=X.hasOwnProp($,B)?$[B]:void 0,S=X.hasOwnProp(Q,B)?Q[B]:void 0,q=I(U,S,B);X.isUndefined(q)&&I!==K||(Y[B]=q)}),X.hasOwnProp(Q,"validateStatus")&&X.isUndefined(Q.validateStatus)&&z("validateStatusUndefinedResolves")===!1)if(X.hasOwnProp($,"validateStatus"))Y.validateStatus=W(void 0,$.validateStatus);else delete Y.validateStatus;return Y}var P6=($)=>$ instanceof y?{...$}:$;var y4=T(()=>{x();G0()});function bQ($,Q,Y){if(Y!=="content-only"){$.set(Q);return}Object.entries(Q||{}).forEach(([W,G])=>{if(kQ.includes(W.toLowerCase()))$.set(W,G)})}function vQ($){let Q=X0({},$),Y=(I)=>X.hasOwnProp(Q,I)?Q[I]:void 0,W=Y("data"),G=Y("withXSRFToken"),J=Y("xsrfHeaderName"),Z=Y("xsrfCookieName"),z=Y("headers"),K=Y("auth"),N=Y("baseURL"),M=Y("allowAbsoluteUrls"),B=Y("url");if(Q.headers=z=y.from(z),Q.url=C0(H0(N,B,M,Q),Y("params"),Y("paramsSerializer")),K){let I=X.getSafeProp(K,"username")||"",U=X.getSafeProp(K,"password")||"";try{z.set("Authorization","Basic "+btoa(I+":"+(U?xQ(U):"")))}catch(S){throw V.from(S,V.ERR_BAD_OPTION_VALUE,$)}}if(X.isFormData(W)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv||X.isReactNative(W))z.setContentType(void 0);else if(X.isFunction(W.getHeaders))bQ(z,W.getHeaders(),Y("formDataHeaderPolicy"))}if(j.hasStandardBrowserEnv){if(X.isFunction(G))G=G(Q);if(G===!0||G==null&&_6(Q.url)){let U=J&&Z&&R6.read(Z);if(U)z.set(J,U)}}return Q}var kQ,xQ=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Q,Y)=>String.fromCharCode(parseInt(Y,16))),m4;var P1=T(()=>{Z0();x();t();T6();q6();A4();y4();G0();C4();kQ=["content-type","content-length"];m4=vQ});var yQ,C6;var O6=T(()=>{x();E4();W4();t();O0();F1();Z0();G0();b4();P1();$4();yQ=typeof XMLHttpRequest<"u",C6=yQ&&function($){return new Promise(function(Y,W){let G=m4($),J=G.data,Z=y.from(G.headers).normalize(),{responseType:z,onUploadProgress:K,onDownloadProgress:N}=G,M,B,I,U,S;function q(){U&&U(),S&&S(),G.cancelToken&&G.cancelToken.unsubscribe(M),G.signal&&G.signal.removeEventListener("abort",M)}let L=new XMLHttpRequest;L.open(G.method.toUpperCase(),G.url,!0),L.timeout=G.timeout;function F(){if(!L)return;let R=y.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),v={data:!z||z==="text"||z==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:R,config:$,request:L};M0(function(K0){Y(K0),q()},function(K0){W(K0),q()},v),L=null}if("onloadend"in L)L.onloadend=F;else L.onreadystatechange=function(){if(!L||L.readyState!==4)return;if(L.status===0&&!(L.responseURL&&L.responseURL.startsWith("file:")))return;setTimeout(F)};if(L.onabort=function(){if(!L)return;W(new V("Request aborted",V.ECONNABORTED,$,L)),q(),L=null},L.onerror=function(O){let v=O&&O.message?O.message:"Network Error",k=new V(v,V.ERR_NETWORK,$,L);k.event=O||null,W(k),q(),L=null},L.ontimeout=function(){let O=G.timeout?"timeout of "+G.timeout+"ms exceeded":"timeout exceeded",v=G.transitional||D0;if(G.timeoutErrorMessage)O=G.timeoutErrorMessage;W(new V(O,v.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,$,L)),q(),L=null},J===void 0&&Z.setContentType(null),"setRequestHeader"in L)X.forEach(g0(Z),function(O,v){L.setRequestHeader(v,O)});if(!X.isUndefined(G.withCredentials))L.withCredentials=!!G.withCredentials;if(z&&z!=="json")L.responseType=G.responseType;if(N)[I,S]=F0(N,!0),L.addEventListener("progress",I);if(K&&L.upload)[B,U]=F0(K),L.upload.addEventListener("progress",B),L.upload.addEventListener("loadend",U);if(G.cancelToken||G.signal){if(M=(R)=>{if(!L)return;W(!R||R.type?new $0(null,$,L):R),L.abort(),q(),L=null},G.cancelToken&&G.cancelToken.subscribe(M),G.signal)G.signal.aborted?M():G.signal.addEventListener("abort",M)}let _=V4(G.url);if(_&&!j.protocols.includes(_)){W(new V("Unsupported protocol "+_+":",V.ERR_BAD_REQUEST,$)),q();return}L.send(J||null)})}});var mQ=($,Q)=>{if($=$?$.filter(Boolean):[],!Q&&!$.length)return;let Y=new AbortController,W=!1,G=function(K){if(!W){W=!0,Z();let N=K instanceof Error?K:this.reason;Y.abort(N instanceof V?N:new $0(N instanceof Error?N.message:N))}},J=Q&&setTimeout(()=>{J=null,G(new V(`timeout of ${Q}ms exceeded`,V.ETIMEDOUT))},Q),Z=()=>{if(!$)return;J&&clearTimeout(J),J=null,$.forEach((K)=>{K.unsubscribe?K.unsubscribe(G):K.removeEventListener("abort",G)}),$=null};$.forEach((K)=>K.addEventListener("abort",G,{once:!0}));let{signal:z}=Y;return z.unsubscribe=()=>X.asap(Z),z},H6;var E6=T(()=>{O0();t();x();H6=mQ});var fQ=function*($,Q){let Y=$.byteLength;if(!Q||Y<Q){yield $;return}let W=0,G;while(W<Y)G=W+Q,yield $.slice(W,G),W=G},hQ=async function*($,Q){for await(let Y of gQ($))yield*fQ(Y,Q)},gQ=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let Q=$.getReader();try{for(;;){let{done:Y,value:W}=await Q.read();if(Y)break;yield W}}finally{await Q.cancel()}},C1=($,Q,Y,W)=>{let G=hQ($,Q),J=0,Z,z=(K)=>{if(!Z)Z=!0,W&&W(K)};return new ReadableStream({async pull(K){try{let{done:N,value:M}=await G.next();if(N){z(),K.close();return}let B=M.byteLength;if(Y){let I=J+=B;Y(I)}K.enqueue(new Uint8Array(M))}catch(N){throw z(N),N}},cancel(K){return z(K),G.return()}},{highWaterMark:2})};var A6=()=>{};var j6=65536,f4,uQ=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Q,Y)=>String.fromCharCode(parseInt(Y,16))),k6=($)=>{if(!X.isString($))return $;try{return decodeURIComponent($)}catch(Q){return $}},b6=($,...Q)=>{try{return!!$(...Q)}catch(Y){return!1}},cQ=($)=>{let Q=$.indexOf("://"),Y=$;if(Q!==-1)Y=Y.slice(Q+3);return Y.includes("@")||Y.includes(":")},dQ=($)=>{let Q=X.global!==void 0&&X.global!==null?X.global:globalThis,{ReadableStream:Y,TextEncoder:W}=Q;$=X.merge.call({skipUndefined:!0},{Request:Q.Request,Response:Q.Response},$);let{fetch:G,Request:J,Response:Z}=$,z=G?f4(G):typeof fetch==="function",K=f4(J),N=f4(Z);if(!z)return!1;let M=z&&f4(Y),B=z&&(typeof W==="function"?((F)=>(_)=>F.encode(_))(new W):async(F)=>new Uint8Array(await new J(F).arrayBuffer())),I=K&&M&&b6(()=>{let F=!1,_=new J(j.origin,{body:new Y,method:"POST",get duplex(){return F=!0,"half"}}),R=_.headers.has("Content-Type");if(_.body!=null)_.body.cancel();return F&&!R}),U=N&&M&&b6(()=>X.isReadableStream(new Z("").body)),S={stream:U&&((F)=>F.body)};z&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((F)=>{!S[F]&&(S[F]=(_,R)=>{let O=_&&_[F];if(O)return O.call(_);throw new V(`Response type '${F}' is not supported`,V.ERR_NOT_SUPPORT,R)})})})();let q=async(F)=>{if(F==null)return 0;if(X.isBlob(F))return F.size;if(X.isSpecCompliantForm(F))return(await new J(j.origin,{method:"POST",body:F}).arrayBuffer()).byteLength;if(X.isArrayBufferView(F)||X.isArrayBuffer(F))return F.byteLength;if(X.isURLSearchParams(F))F=F+"";if(X.isString(F))return(await B(F)).byteLength},L=async(F,_)=>{let R=X.toFiniteNumber(F.getContentLength());return R==null?q(_):R};return async(F)=>{let{url:_,method:R,data:O,signal:v,cancelToken:k,timeout:K0,onDownloadProgress:j0,onUploadProgress:U0,responseType:E,headers:e,withCredentials:k0="same-origin",fetchOptions:L0,maxContentLength:c,maxBodyLength:B0}=m4(F),_0=X.isNumber(c)&&c>-1,T0=X.isNumber(B0)&&B0>-1,S4=(A)=>X.hasOwnProp(F,A)?F[A]:void 0,D4=G||fetch;E=E?(E+"").toLowerCase():"text";let m=H6([v,k&&k.toAbortSignal()],K0),f=null,g=m&&m.unsubscribe&&(()=>{m.unsubscribe()}),z0,V0=null,R0=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,F,f);try{let A=void 0,i=S4("auth");if(i){let P=X.getSafeProp(i,"username")||"",n=X.getSafeProp(i,"password")||"";A={username:P,password:n}}if(cQ(_)){let P=new URL(_,j.origin);if(!A&&(P.username||P.password)){let n=k6(P.username),D=k6(P.password);A={username:n,password:D}}if(P.username||P.password)P.username="",P.password="",_=P.href}if(A)e.delete("authorization"),e.set("Authorization","Basic "+btoa(uQ((A.username||"")+":"+(A.password||""))));if(_0&&typeof _==="string"&&_.startsWith("data:")){if(F4(_)>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}if(T0&&R!=="get"&&R!=="head"){let P=await q(O);if(typeof P==="number"&&isFinite(P)){if(z0=P,P>B0)throw R0()}}let b0=T0&&(X.isReadableStream(O)||X.isStream(O)),N0=(P,n,D)=>C1(P,j6,(w)=>{if(T0&&w>B0)throw V0=R0();n&&n(w)},D);if(I&&R!=="get"&&R!=="head"&&(U0||b0)){if(z0=z0==null?await L(e,O):z0,z0!==0||b0){let P=new J(_,{method:"POST",body:O,duplex:"half"}),n;if(X.isFormData(O)&&(n=P.headers.get("content-type")))e.setContentType(n);if(P.body){let[D,w]=U0&&p0(z0,F0(i0(U0)))||[];O=N0(P.body,D,w)}}}else if(b0&&!K&&M&&R!=="get"&&R!=="head")O=N0(O);else if(b0&&K&&!I&&R!=="get"&&R!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,F,f);if(!X.isString(k0))k0=k0?"include":"omit";let n0=K&&"credentials"in J.prototype;if(X.isFormData(O)){let P=e.getContentType();if(P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P))e.delete("content-type")}e.set("User-Agent","axios/"+I0,!1);let a0={...L0,signal:m,method:R.toUpperCase(),headers:g0(e.normalize()),body:O,duplex:"half",credentials:n0?k0:void 0};f=K&&new J(_,a0);let b=await(K?D4(f,L0):D4(_,a0)),w0=y.from(b.headers);if(_0){let P=X.toFiniteNumber(w0.getContentLength());if(P!=null&&P>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}let x0=U&&(E==="stream"||E==="response");if(U&&b.body&&(j0||_0||x0&&g)){let P={};["status","statusText","headers"].forEach((C)=>{P[C]=b[C]});let n=X.toFiniteNumber(w0.getContentLength()),[D,w]=j0&&p0(n,F0(i0(j0),!0))||[],H=0,h=(C)=>{if(_0){if(H=C,H>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}D&&D(C)};b=new Z(C1(b.body,j6,h,()=>{w&&w(),g&&g()}),P)}E=E||"text";let Q0=await S[X.findKey(S,E)||"text"](b,F);if(_0&&!U&&!x0){let P;if(Q0!=null){if(typeof Q0.byteLength==="number")P=Q0.byteLength;else if(typeof Q0.size==="number")P=Q0.size;else if(typeof Q0==="string")P=typeof W==="function"?new W().encode(Q0).byteLength:Q0.length}if(typeof P==="number"&&P>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}return!x0&&g&&g(),await new Promise((P,n)=>{M0(P,n,{data:Q0,headers:y.from(b.headers),status:b.status,statusText:b.statusText,config:F,request:f})})}catch(A){if(g&&g(),m&&m.aborted&&m.reason instanceof V){let i=m.reason;if(i.config=F,f&&(i.request=f),A!==i)Object.defineProperty(i,"cause",{__proto__:null,value:A,writable:!0,enumerable:!1,configurable:!0});throw i}if(V0)throw f&&!V0.request&&(V0.request=f),V0;if(A instanceof V)throw f&&!A.request&&(A.request=f),A;if(A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)){let i=new V("Network Error",V.ERR_NETWORK,F,f,A&&A.response);throw Object.defineProperty(i,"cause",{__proto__:null,value:A.cause||A,writable:!0,enumerable:!1,configurable:!0}),i}throw V.from(A,A&&A.code,F,f,A&&A.response)}}},lQ,O1=($)=>{let Q=$&&$.env||{},{fetch:Y,Request:W,Response:G}=Q,J=[W,G,Y],Z=J.length,z=Z,K,N,M=lQ;while(z--)K=J[z],N=M.get(K),N===void 0&&M.set(K,N=z?new Map:dQ(Q)),M=N;return N},B9;var x6=T(()=>{Z0();x();t();E6();A6();G0();b4();P1();E4();T1();B4();$4();({isFunction:f4}=X),lQ=new Map,B9=O1()});function nQ($,Q){$=X.isArray($)?$:[$];let{length:Y}=$,W,G,J={};for(let Z=0;Z<Y;Z++){W=$[Z];let z;if(G=W,!iQ(W)){if(G=H1[(z=String(W)).toLowerCase()],G===void 0)throw new V(`Unknown adapter '${z}'`)}if(G&&(X.isFunction(G)||(G=G.get(Q))))break;J[z||"#"+Z]=G}if(!G){let Z=Object.entries(J).map(([K,N])=>`adapter ${K} `+(N===!1?"is not supported by the environment":"is not available in the build")),z=Y?Z.length>1?`since :
12
- `+Z.map(v6).join(`
13
- `):" "+v6(Z[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+z,V.ERR_NOT_SUPPORT)}return G}var H1,v6=($)=>`- ${$}`,iQ=($)=>X.isFunction($)||$===null||$===!1,h4;var E1=T(()=>{x();D6();O6();x6();t();H1={http:S6,xhr:C6,fetch:{get:O1}};X.forEach(H1,($,Q)=>{if($){try{Object.defineProperty($,"name",{__proto__:null,value:Q})}catch(Y){}Object.defineProperty($,"adapterName",{__proto__:null,value:Q})}});h4={getAdapter:nQ,adapters:H1}});function A1($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new $0(null,$)}function g4($){if(A1($),$.headers=y.from($.headers),$.data=G4.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return h4.getAdapter($.adapter||d0.adapter,$)($).then(function(W){A1($),$.response=W;try{W.data=G4.call($,$.transformResponse,W)}finally{delete $.response}return W.headers=y.from(W.headers),W},function(W){if(!Z4(W)){if(A1($),W&&W.response){$.response=W.response;try{W.response.data=G4.call($,$.transformResponse,W.response)}finally{delete $.response}W.response.headers=y.from(W.response.headers)}}return Promise.reject(W)})}var y6=T(()=>{F5();J1();H4();O0();G0();E1()});function aQ($,Q,Y){if(typeof $!=="object"||$===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);let W=Object.keys($),G=W.length;while(G-- >0){let J=W[G],Z=Object.prototype.hasOwnProperty.call(Q,J)?Q[J]:void 0;if(Z){let z=$[J],K=z===void 0||Z(z,J,$);if(K!==!0)throw new V("option "+J+" must be "+K,V.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new V("Unknown option "+J,V.ERR_BAD_OPTION)}}var u4,m6,U4;var f6=T(()=>{B4();t();u4={};["object","boolean","number","function","string","symbol"].forEach(($,Q)=>{u4[$]=function(W){return typeof W===$||"a"+(Q<1?"n ":" ")+$}});m6={};u4.transitional=function(Q,Y,W){function G(J,Z){return"[Axios v"+I0+"] Transitional option '"+J+"'"+Z+(W?". "+W:"")}return(J,Z,z)=>{if(Q===!1)throw new V(G(Z," has been removed"+(Y?" in "+Y:"")),V.ERR_DEPRECATED);if(Y&&!m6[Z])m6[Z]=!0,console.warn(G(Z," has been deprecated since v"+Y+" and will be removed in the near future"));return Q?Q(J,Z,z):!0}};u4.spelling=function(Q){return(Y,W)=>{return console.warn(`${W} is likely a misspelling of ${Q}`),!0}};U4={assertOptions:aQ,validators:u4}});class L4{constructor($){this.defaults=$||{},this.interceptors={request:new o4,response:new o4}}async request($,Q){try{return await this._request($,Q)}catch(Y){if(Y instanceof Error){let W={};Error.captureStackTrace?Error.captureStackTrace(W):W=Error();let G=(()=>{if(!W.stack)return"";let J=W.stack.indexOf(`
14
- `);return J===-1?"":W.stack.slice(J+1)})();try{if(!Y.stack)Y.stack=G;else if(G){let J=G.indexOf(`
15
- `),Z=J===-1?-1:G.indexOf(`
16
- `,J+1),z=Z===-1?"":G.slice(Z+1);if(!String(Y.stack).endsWith(z))Y.stack+=`
17
- `+G}}catch(J){}}throw Y}}_request($,Q){if(typeof $==="string")Q=Q||{},Q.url=$;else Q=$||{};Q=X0(this.defaults,Q);let{transitional:Y,paramsSerializer:W,headers:G}=Q;if(Y!==void 0)U4.assertOptions(Y,{silentJSONParsing:r.transitional(r.boolean),forcedJSONParsing:r.transitional(r.boolean),clarifyTimeoutError:r.transitional(r.boolean),legacyInterceptorReqResOrdering:r.transitional(r.boolean),advertiseZstdAcceptEncoding:r.transitional(r.boolean),validateStatusUndefinedResolves:r.transitional(r.boolean)},!1);if(W!=null)if(X.isFunction(W))Q.paramsSerializer={serialize:W};else U4.assertOptions(W,{encode:r.function,serialize:r.function},!0);if(Q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Q.allowAbsoluteUrls=!0;U4.assertOptions(Q,{baseUrl:r.spelling("baseURL"),withXsrfToken:r.spelling("withXSRFToken")},!0),Q.method=(Q.method||this.defaults.method||"get").toLowerCase();let J=G&&X.merge(G.common,G[Q.method]);G&&X.forEach(["delete","get","head","post","put","patch","query","common"],(U)=>{delete G[U]}),Q.headers=y.concat(J,G);let Z=[],z=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen==="function"&&S.runWhen(Q)===!1)return;z=z&&S.synchronous;let q=Q.transitional||D0;if(q&&q.legacyInterceptorReqResOrdering)Z.unshift(S.fulfilled,S.rejected);else Z.push(S.fulfilled,S.rejected)});let K=[];this.interceptors.response.forEach(function(S){K.push(S.fulfilled,S.rejected)});let N,M=0,B;if(!z){let U=[g4.bind(this),void 0];U.unshift(...Z),U.push(...K),B=U.length,N=Promise.resolve(Q);while(M<B)N=N.then(U[M++],U[M++]);return N}B=Z.length;let I=Q;while(M<B){let U=Z[M++],S=Z[M++];try{I=U(I)}catch(q){S.call(this,q);break}}try{N=g4.call(this,I)}catch(U){return Promise.reject(U)}M=0,B=K.length;while(M<B)N=N.then(K[M++],K[M++]);return N}getUri($){$=X0(this.defaults,$);let Q=H0($.baseURL,$.url,$.allowAbsoluteUrls,$);return C0(Q,$.params,$.paramsSerializer)}}var r,w4;var h6=T(()=>{x();C4();G5();y6();y4();A4();f6();G0();W4();r=U4.validators;X.forEach(["delete","get","head","options"],function(Q){L4.prototype[Q]=function(Y,W){return this.request(X0(W||{},{method:Q,url:Y,data:W&&X.hasOwnProp(W,"data")?W.data:void 0}))}});X.forEach(["post","put","patch","query"],function(Q){function Y(W){return function(J,Z,z){return this.request(X0(z||{},{method:Q,headers:W?{"Content-Type":"multipart/form-data"}:{},url:J,data:Z}))}}if(L4.prototype[Q]=Y(),Q!=="query")L4.prototype[Q+"Form"]=Y(!0)});w4=L4});class j1{constructor($){if(typeof $!=="function")throw TypeError("executor must be a function.");let Q;this.promise=new Promise(function(G){Q=G});let Y=this;this.promise.then((W)=>{if(!Y._listeners)return;let G=Y._listeners.length;while(G-- >0)Y._listeners[G](W);Y._listeners=null}),this.promise.then=(W)=>{let G,J=new Promise((Z)=>{Y.subscribe(Z),G=Z}).then(W);return J.cancel=function(){Y.unsubscribe(G)},J},$(function(G,J,Z){if(Y.reason)return;Y.reason=new $0(G,J,Z),Q(Y.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 Q=this._listeners.indexOf($);if(Q!==-1)this._listeners.splice(Q,1)}toAbortSignal(){let $=new AbortController,Q=(Y)=>{$.abort(Y)};return this.subscribe(Q),$.signal.unsubscribe=()=>this.unsubscribe(Q),$.signal}static source(){let $;return{token:new j1(function(W){$=W}),cancel:$}}}var g6;var u6=T(()=>{O0();g6=j1});function k1($){return function(Y){return $.apply(null,Y)}}var c6=()=>{};function b1($){return X.isObject($)&&$.isAxiosError===!0}var d6=T(()=>{x()});var x1,l6;var p6=T(()=>{x1={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(x1).forEach(([$,Q])=>{x1[Q]=$});l6=x1});function i6($){let Q=new w4($),Y=t0(w4.prototype.request,Q);return X.extend(Y,w4.prototype,Q,{allOwnKeys:!0}),X.extend(Y,Q,null,{allOwnKeys:!0}),Y.create=function(G){return i6(X0($,G))},Y}var d,n6;var a6=T(()=>{x();c4();h6();y4();H4();G1();O0();u6();J1();B4();u0();t();c6();d6();G0();E1();p6();d=i6(d0);d.Axios=w4;d.CanceledError=$0;d.CancelToken=g6;d.isCancel=Z4;d.VERSION=I0;d.toFormData=S0;d.AxiosError=V;d.Cancel=d.CanceledError;d.all=function(Q){return Promise.all(Q)};d.spread=k1;d.isAxiosError=b1;d.mergeConfig=X0;d.AxiosHeaders=y;d.formToJSON=($)=>O4(X.isHTMLForm($)?new FormData($):$);d.getAdapter=h4.getAdapter;d.HttpStatusCode=l6;d.default=d;n6=d});var z2,N2,M2,B2,V2,I2,F2,U2,L2,w2,S2,D2,_2,T2,R2,q2,P2;var sQ=T(()=>{a6();({Axios:z2,AxiosError:N2,CanceledError:M2,isCancel:B2,CancelToken:V2,VERSION:I2,all:F2,Cancel:U2,isAxiosError:L2,spread:w2,toFormData:S2,AxiosHeaders:D2,HttpStatusCode:_2,formToJSON:T2,getAdapter:R2,mergeConfig:q2,create:P2}=n6)});
18
- export{n6 as ipa,z2 as jpa,N2 as kpa,M2 as lpa,B2 as mpa,V2 as npa,I2 as opa,F2 as ppa,U2 as qpa,L2 as rpa,w2 as spa,S2 as tpa,D2 as upa,_2 as vpa,T2 as wpa,R2 as xpa,q2 as ypa,P2 as zpa,sQ as Apa};
@@ -1,2 +0,0 @@
1
- import{E6 as d,e6 as f,o3 as j,r3 as I,y5 as b,z5 as c}from"./cli-0.7.1-0qwnf6wz.mjs";import{X7 as F,Y7 as D}from"./cli-0.7.1-hkjqfdbm.mjs";import{nea as y,vea as T}from"./cli-0.7.1-jpemgywy.mjs";import{$fa as $,aga as R,bga as _,cga as E}from"./cli-0.7.1-rt9yw2nh.mjs";import{Tga as q,Uga as m}from"./cli-0.7.1-4pp5s9hy.mjs";import{$ha as z,Bha as M,Gha as U,Yha as W}from"./cli-0.7.1-7vnqyd9e.mjs";import{pia as k,qia as Y,xia as O}from"./cli-0.7.1-6d8y1qn4.mjs";import{Apa as h,ipa as X}from"./cli-0.7.1-xmj6ck32.mjs";import{Zpa as A}from"./cli-0.7.1-f6nk5cs1.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function NJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=F(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function WJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function GJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function vJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J="ccr-byoc-2025-07-29",BJ;var g=A(()=>{h();m();I();R();d();z();D();O();E();T();c();U();S=[2000,4000,8000,16000],x=S.length;BJ=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
2
- export{$J as i2,p as j2,u as k2,BJ as l2,C as m2,NJ as n2,L as o2,WJ as p2,GJ as q2,vJ as r2,XJ as s2,g as t2};
@@ -1,45 +0,0 @@
1
- import{Be as BY,Ce as Bz}from"./cli-0.7.1-84yhx3q1.mjs";import{xg as qY,yg as qz}from"./cli-0.7.1-zt8sj5mh.mjs";import{$g as cY,Zg as $Y,_g as yz,ah as mz}from"./cli-0.7.1-0y31txhk.mjs";import{BQ as lY,Bn as UJ,Cn as UY,Dn as AJ,En as XY,Fn as NJ,GN as gY,Gn as VY,HN as Lz,JR as nY,MR as XJ,Mq as Zz,NR as GZ,Nq as KK,OR as X0,RI as GY,WI as Gz,cS as V0,lR as dY,mH as hY,nF as uY,nH as Tz,oF as wz,tt as eY,ut as JK,xF as B0,yF as MY}from"./cli-0.7.1-k3wrch69.mjs";import{$W as pY,BW as _Y,CW as Az,PW as $J,RW as KY,UW as SY,VW as jz,aX as Fz}from"./cli-0.7.1-825msf79.mjs";import{GZ as xY,QY as bY,RX as f0,RZ as U0,_X as LY,eY as IY,fY as Rz,fZ as fY,hZ as Ez,kZ as b,mZ as N}from"./cli-0.7.1-vc1w3czg.mjs";import{X1 as U,Y1 as m,Z1 as bJ}from"./cli-0.7.1-1188jq4p.mjs";import{_1 as b0}from"./cli-0.7.1-a4zjaz57.mjs";import{X4 as ez,v4 as tY}from"./cli-0.7.1-0qwnf6wz.mjs";import{$6 as Cz,_6 as $0}from"./cli-0.7.1-2q24e8yf.mjs";import{$9 as r0,b_ as tz,c9 as yY,kea as fJ,nea as l0,u9 as Mz,vea as mY}from"./cli-0.7.1-jpemgywy.mjs";import{Aea as S0,Bea as Hz,Dea as G0,Oea as zY,Pea as c0,Sea as I0}from"./cli-0.7.1-ebdykdv4.mjs";import{Vga as $,Yga as Nz}from"./cli-0.7.1-q4v2wwpa.mjs";import{$ha as oz,Cha as oY,Gha as sz,Yha as CJ}from"./cli-0.7.1-7vnqyd9e.mjs";import{ooa as TY,rka as wY,xka as H0}from"./cli-0.7.1-356bj7gh.mjs";import{Vpa as UZ,Zpa as XZ}from"./cli-0.7.1-f6nk5cs1.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=nY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
- ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
- ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
- ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=rY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
- ${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await dY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(lY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var iY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();jz();mz();Az();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();AY();bJ();iY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
- ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
- `)}
8
-
9
- Search query: "${Z}"
10
-
11
- Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
-
13
- You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
-
15
- Each session may include:
16
- - Title (display name or custom title)
17
- - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
- - Branch (git branch name, shown as [branch: name])
19
- - Summary (AI-generated summary)
20
- - First message (beginning of the conversation)
21
- - Transcript (excerpt of conversation content)
22
-
23
- IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
-
25
- For each session, consider (in order of priority):
26
- 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
- 2. Partial tag matches or tag-related terms
28
- 3. Title matches (custom titles or first message content)
29
- 4. Branch name matches
30
- 5. Summary and transcript content matches
31
- 6. Semantic similarity and related concepts
32
-
33
- CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
- - Contain the query term anywhere in any field
35
- - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
- - Discuss topics that could be related to the query
37
- - Have transcripts that mention the concept even in passing
38
-
39
- When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
-
41
- Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
-
43
- Respond with ONLY the JSON object, no markdown formatting:
44
- {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
- export{YU as le,az as me,QU as ne,zK as oe,WU as pe,UK as qe};
@@ -1,2 +0,0 @@
1
- import{$K as C,jL as N,sL as $,tL as k,zL as V}from"./cli-0.7.1-k3wrch69.mjs";import{RX as P,RZ as D,kZ as f,mZ as t,qZ as v}from"./cli-0.7.1-vc1w3czg.mjs";import{X1 as n,Y1 as i,Z1 as M}from"./cli-0.7.1-1188jq4p.mjs";import{Vpa as w,Zpa as L}from"./cli-0.7.1-f6nk5cs1.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
- export{J as ng,z as og};