@claudiolabs/claudin 0.6.12 → 0.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (889) hide show
  1. package/dist/chunks/AgentTool-0.6.13-372t6jvm.mjs +1 -0
  2. package/dist/chunks/App-0.6.13-qvfyfba9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.13-61en5qve.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +1 -0
  30. package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +3 -0
  31. package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +110 -0
  32. package/dist/chunks/api-0.6.13-1s3mg09p.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +1 -0
  35. package/dist/chunks/auth-0.6.13-586trvnj.mjs +1 -0
  36. package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +1 -0
  40. package/dist/chunks/branch-0.6.13-nncg27cq.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +1 -0
  46. package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +4 -0
  51. package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +1 -0
  54. package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +1 -0
  56. package/dist/chunks/cli-0.6.13-004msxtb.mjs +2 -0
  57. package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +24 -0
  58. package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +2 -0
  59. package/dist/chunks/cli-0.6.13-0602v59h.mjs +2 -0
  60. package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +2 -0
  61. package/dist/chunks/cli-0.6.13-0k53jyws.mjs +2 -0
  62. package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +2 -0
  63. package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +3 -0
  64. package/dist/chunks/cli-0.6.13-15925v1q.mjs +2 -0
  65. package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +3 -0
  66. package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +24 -0
  67. package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +18 -0
  68. package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +2 -0
  69. package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +2 -0
  70. package/dist/chunks/cli-0.6.13-27ey3345.mjs +17 -0
  71. package/dist/chunks/cli-0.6.13-2999v1f0.mjs +5 -0
  72. package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +2 -0
  73. package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +2 -0
  74. package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +5420 -0
  75. package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +2 -0
  76. package/dist/chunks/cli-0.6.13-35rszksn.mjs +2 -0
  77. package/dist/chunks/cli-0.6.13-3812a7q8.mjs +34 -0
  78. package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +3 -0
  79. package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +2 -0
  80. package/dist/chunks/cli-0.6.13-45x35nyh.mjs +2 -0
  81. package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +2 -0
  82. package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +2 -0
  83. package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +2 -0
  84. package/dist/chunks/cli-0.6.13-56b3061c.mjs +18 -0
  85. package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +42 -0
  86. package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +4 -0
  87. package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +2 -0
  88. package/dist/chunks/cli-0.6.13-643zsnv9.mjs +2 -0
  89. package/dist/chunks/cli-0.6.13-667dsr1w.mjs +2 -0
  90. package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +2 -0
  91. package/dist/chunks/cli-0.6.13-79mne5jt.mjs +2 -0
  92. package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +2 -0
  93. package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +2 -0
  94. package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +3 -0
  95. package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +2 -0
  96. package/dist/chunks/cli-0.6.13-82datd4w.mjs +2 -0
  97. package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +2 -0
  98. package/dist/chunks/cli-0.6.13-881js45c.mjs +2 -0
  99. package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +2 -0
  100. package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +3 -0
  101. package/dist/chunks/cli-0.6.13-949racwr.mjs +7 -0
  102. package/dist/chunks/cli-0.6.13-94nwan0d.mjs +2 -0
  103. package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +2 -0
  104. package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +2 -0
  105. package/dist/chunks/cli-0.6.13-9wktvaax.mjs +50 -0
  106. package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +58 -0
  107. package/dist/chunks/cli-0.6.13-aekttw5a.mjs +2 -0
  108. package/dist/chunks/cli-0.6.13-ajc8203j.mjs +2 -0
  109. package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +2 -0
  110. package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +2 -0
  111. package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +16 -0
  112. package/dist/chunks/cli-0.6.13-b55baxv4.mjs +2 -0
  113. package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +2 -0
  114. package/dist/chunks/cli-0.6.13-c3452432.mjs +5 -0
  115. package/dist/chunks/cli-0.6.13-cc118njq.mjs +2 -0
  116. package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +2 -0
  117. package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +2 -0
  118. package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +2 -0
  119. package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +2 -0
  120. package/dist/chunks/cli-0.6.13-da6fhpes.mjs +133 -0
  121. package/dist/chunks/cli-0.6.13-dada1afp.mjs +6 -0
  122. package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +2 -0
  123. package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +2 -0
  124. package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +2 -0
  125. package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +2 -0
  126. package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +2 -0
  127. package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +2 -0
  128. package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +2 -0
  129. package/dist/chunks/cli-0.6.13-esv4y00y.mjs +2 -0
  130. package/dist/chunks/cli-0.6.13-etytm730.mjs +2 -0
  131. package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +4 -0
  132. package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +6 -0
  133. package/dist/chunks/cli-0.6.13-f67v536f.mjs +59 -0
  134. package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +2 -0
  135. package/dist/chunks/cli-0.6.13-fkaxh655.mjs +2 -0
  136. package/dist/chunks/cli-0.6.13-fspszw8w.mjs +2 -0
  137. package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +10 -0
  138. package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +2 -0
  139. package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +2 -0
  140. package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +4 -0
  141. package/dist/chunks/cli-0.6.13-g65dfg11.mjs +6 -0
  142. package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +2 -0
  143. package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +2 -0
  144. package/dist/chunks/cli-0.6.13-grrshx1z.mjs +2 -0
  145. package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +2 -0
  146. package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +2 -0
  147. package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +2 -0
  148. package/dist/chunks/cli-0.6.13-h5dej6se.mjs +3 -0
  149. package/dist/chunks/cli-0.6.13-hd0sd535.mjs +193 -0
  150. package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +12 -0
  151. package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +3 -0
  152. package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +2 -0
  153. package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +4 -0
  154. package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +133 -0
  155. package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +2 -0
  156. package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +2 -0
  157. package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +3 -0
  158. package/dist/chunks/cli-0.6.13-k0kyv254.mjs +2 -0
  159. package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +2 -0
  160. package/dist/chunks/cli-0.6.13-kdm4832x.mjs +2 -0
  161. package/dist/chunks/cli-0.6.13-kekrwb08.mjs +45 -0
  162. package/dist/chunks/cli-0.6.13-kmg491hy.mjs +2 -0
  163. package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +12 -0
  164. package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +3 -0
  165. package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +2 -0
  166. package/dist/chunks/cli-0.6.13-me17wefv.mjs +2 -0
  167. package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +2 -0
  168. package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +39 -0
  169. package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +2 -0
  170. package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +2 -0
  171. package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +15 -0
  172. package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +4 -0
  173. package/dist/chunks/cli-0.6.13-nqd696hv.mjs +2 -0
  174. package/dist/chunks/cli-0.6.13-nvcr131g.mjs +4 -0
  175. package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +8 -0
  176. package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +2 -0
  177. package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +3 -0
  178. package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +2 -0
  179. package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +3 -0
  180. package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +2 -0
  181. package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +2 -0
  182. package/dist/chunks/cli-0.6.13-prh9py3z.mjs +2 -0
  183. package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +2 -0
  184. package/dist/chunks/cli-0.6.13-q161snt1.mjs +2 -0
  185. package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +2 -0
  186. package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +2 -0
  187. package/dist/chunks/cli-0.6.13-q8qzja14.mjs +2 -0
  188. package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +2 -0
  189. package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +4 -0
  190. package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +2 -0
  191. package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +2 -0
  192. package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +2 -0
  193. package/dist/chunks/cli-0.6.13-qyd73z97.mjs +2 -0
  194. package/dist/chunks/cli-0.6.13-r043ksv1.mjs +1 -0
  195. package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +4 -0
  196. package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +2 -0
  197. package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +2 -0
  198. package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +2 -0
  199. package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +6 -0
  200. package/dist/chunks/cli-0.6.13-s2vxndky.mjs +2 -0
  201. package/dist/chunks/cli-0.6.13-s3r638fw.mjs +2 -0
  202. package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +4 -0
  203. package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +3 -0
  204. package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +2 -0
  205. package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +15 -0
  206. package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +2 -0
  207. package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +2 -0
  208. package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +2 -0
  209. package/dist/chunks/cli-0.6.13-tss2yk53.mjs +2 -0
  210. package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +2 -0
  211. package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +2 -0
  212. package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +17 -0
  213. package/dist/chunks/cli-0.6.13-v05nfcar.mjs +2 -0
  214. package/dist/chunks/cli-0.6.13-v160yjcc.mjs +2 -0
  215. package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +2 -0
  216. package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +2 -0
  217. package/dist/chunks/cli-0.6.13-v824ppa4.mjs +3 -0
  218. package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +2 -0
  219. package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +2 -0
  220. package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +2 -0
  221. package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +2 -0
  222. package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +2 -0
  223. package/dist/chunks/cli-0.6.13-w039mymy.mjs +2 -0
  224. package/dist/chunks/cli-0.6.13-w0qrn825.mjs +2 -0
  225. package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +2 -0
  226. package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +2 -0
  227. package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +5 -0
  228. package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +20 -0
  229. package/dist/chunks/cli-0.6.13-wtc8585b.mjs +2 -0
  230. package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +2 -0
  231. package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +2 -0
  232. package/dist/chunks/cli-0.6.13-xdedyafk.mjs +12 -0
  233. package/dist/chunks/cli-0.6.13-xf37gba3.mjs +21 -0
  234. package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +2 -0
  235. package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +2 -0
  236. package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +2 -0
  237. package/dist/chunks/cli-0.6.13-y20earfr.mjs +2 -0
  238. package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +2 -0
  239. package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +28 -0
  240. package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +2 -0
  241. package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +67 -0
  242. package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +2 -0
  243. package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +2 -0
  244. package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +2 -0
  245. package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +2 -0
  246. package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +9 -0
  247. package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +25 -0
  248. package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +15 -0
  249. package/dist/chunks/cli-0.6.13-ze0ah657.mjs +4 -0
  250. package/dist/chunks/cli-0.6.13-zktd03aq.mjs +2 -0
  251. package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +2 -0
  252. package/dist/chunks/client-0.6.13-apag8p3w.mjs +1 -0
  253. package/dist/chunks/color-0.6.13-m7e3xes9.mjs +1 -0
  254. package/dist/chunks/compact-0.6.13-064k380y.mjs +3 -0
  255. package/dist/chunks/config-0.6.13-2gskfa7r.mjs +1 -0
  256. package/dist/chunks/config-0.6.13-m7tbch3j.mjs +1 -0
  257. package/dist/chunks/constants-0.6.13-bq183whd.mjs +1 -0
  258. package/dist/chunks/context-0.6.13-4jm66js8.mjs +1 -0
  259. package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +1 -0
  260. package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +1 -0
  261. package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +1 -0
  262. package/dist/chunks/copy-0.6.13-11ksdws3.mjs +9 -0
  263. package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +1 -0
  264. package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +1 -0
  265. package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +1 -0
  266. package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +1 -0
  267. package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +1367 -0
  268. package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +1 -0
  269. package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +1 -0
  270. package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +1 -0
  271. package/dist/chunks/diff-0.6.13-3qr723e3.mjs +1 -0
  272. package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +1 -0
  273. package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +1 -0
  274. package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +1 -0
  275. package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +10 -0
  276. package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +1 -0
  277. package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +1 -0
  278. package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +1 -0
  279. package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +1 -0
  280. package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +1 -0
  281. package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +1 -0
  282. package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +1 -0
  283. package/dist/chunks/explorer-0.6.13-g670396m.mjs +1 -0
  284. package/dist/chunks/export-0.6.13-zytxcpn5.mjs +2 -0
  285. package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +1 -0
  286. package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +1 -0
  287. package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +1 -0
  288. package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +14 -0
  289. package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +1 -0
  290. package/dist/chunks/git-0.6.13-r45r70q4.mjs +1 -0
  291. package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +1 -0
  292. package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +4 -0
  293. package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +1 -0
  294. package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +1 -0
  295. package/dist/chunks/headless-0.6.13-gfageb5h.mjs +2 -0
  296. package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +6 -0
  297. package/dist/chunks/help-0.6.13-781b4zzf.mjs +1 -0
  298. package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +3 -0
  299. package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +1 -0
  300. package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +79 -0
  301. package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +3 -0
  302. package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +1 -0
  303. package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +1 -0
  304. package/dist/chunks/index-0.6.13-22g8yp33.mjs +1 -0
  305. package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +1 -0
  306. package/dist/chunks/index-0.6.13-3yrze12y.mjs +2 -0
  307. package/dist/chunks/index-0.6.13-4mx71hjt.mjs +2 -0
  308. package/dist/chunks/index-0.6.13-68g8rnf9.mjs +1 -0
  309. package/dist/chunks/index-0.6.13-6t8yz88d.mjs +1 -0
  310. package/dist/chunks/index-0.6.13-af1dgcmj.mjs +1 -0
  311. package/dist/chunks/index-0.6.13-afmvxwx2.mjs +1 -0
  312. package/dist/chunks/index-0.6.13-by0wfak3.mjs +9 -0
  313. package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +1 -0
  314. package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +1 -0
  315. package/dist/chunks/index-0.6.13-jte6phkv.mjs +1 -0
  316. package/dist/chunks/index-0.6.13-m632g3gy.mjs +1 -0
  317. package/dist/chunks/index-0.6.13-mwpm4arf.mjs +5 -0
  318. package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +30 -0
  319. package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +1 -0
  320. package/dist/chunks/index-0.6.13-ptnyngf8.mjs +1 -0
  321. package/dist/chunks/index-0.6.13-q3shbg14.mjs +1 -0
  322. package/dist/chunks/index-0.6.13-qbgadtxv.mjs +1 -0
  323. package/dist/chunks/index-0.6.13-sv4q66cp.mjs +1 -0
  324. package/dist/chunks/index-0.6.13-waxz0ekk.mjs +1 -0
  325. package/dist/chunks/index-0.6.13-why7ggz3.mjs +9 -0
  326. package/dist/chunks/index-0.6.13-y16k48ab.mjs +1 -0
  327. package/dist/chunks/init-0.6.13-4hnytb22.mjs +1 -0
  328. package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +1 -0
  329. package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +1 -0
  330. package/dist/chunks/insights-0.6.13-jydg844c.mjs +870 -0
  331. package/dist/chunks/install-0.6.13-n2sd9y79.mjs +1 -0
  332. package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +149 -0
  333. package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +1 -0
  334. package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +1 -0
  335. package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +1 -0
  336. package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +2 -0
  337. package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +2 -0
  338. package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +1 -0
  339. package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +1 -0
  340. package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +1 -0
  342. package/dist/chunks/log-0.6.13-k8w72xt1.mjs +1 -0
  343. package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +1 -0
  344. package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +1 -0
  345. package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +4 -0
  347. package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +17 -0
  348. package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +1 -0
  349. package/dist/chunks/memory-0.6.13-atsckryz.mjs +3 -0
  350. package/dist/chunks/model-0.6.13-0atttv57.mjs +1 -0
  351. package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +2 -0
  352. package/dist/chunks/node-0.6.13-x2bbeer9.mjs +12 -0
  353. package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +1 -0
  354. package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +14 -0
  355. package/dist/chunks/output-style-0.6.13-m28me769.mjs +1 -0
  356. package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +1 -0
  357. package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +1 -0
  358. package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +1 -0
  359. package/dist/chunks/passes-0.6.13-q60h610m.mjs +1 -0
  360. package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +3 -0
  361. package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +1 -0
  362. package/dist/chunks/plan-0.6.13-jnph14bx.mjs +1 -0
  363. package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +1 -0
  364. package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +29 -0
  365. package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +1 -0
  366. package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +9 -0
  367. package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +2 -0
  368. package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +57 -0
  369. package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +1 -0
  370. package/dist/chunks/process-0.6.13-38dsvzca.mjs +1 -0
  371. package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +1 -0
  372. package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +9 -0
  373. package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +1 -0
  374. package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +1 -0
  375. package/dist/chunks/prompts-0.6.13-702ak30b.mjs +1 -0
  376. package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +13 -0
  377. package/dist/chunks/provider-0.6.13-2sx115qq.mjs +2 -0
  378. package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +1 -0
  379. package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +6 -0
  380. package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +1 -0
  381. package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +34 -0
  382. package/dist/chunks/registry-0.6.13-pstf339a.mjs +1 -0
  383. package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +5 -0
  384. package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +2 -0
  385. package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +1 -0
  386. package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +1 -0
  387. package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +1 -0
  388. package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +1 -0
  389. package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +1 -0
  390. package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +1 -0
  391. package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +2 -0
  392. package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +1 -0
  393. package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +1 -0
  394. package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +1 -0
  395. package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +1 -0
  396. package/dist/chunks/session-0.6.13-83jr96cj.mjs +2 -0
  397. package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +1 -0
  398. package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +1 -0
  399. package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +1 -0
  400. package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +1 -0
  401. package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +5 -0
  402. package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +1 -0
  403. package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +1 -0
  404. package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +1 -0
  405. package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +1 -0
  406. package/dist/chunks/state-0.6.13-257cjw4h.mjs +1 -0
  407. package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +6 -0
  408. package/dist/chunks/status-0.6.13-cefspgtr.mjs +1 -0
  409. package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +1 -0
  410. package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +1 -0
  411. package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +1 -0
  412. package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +1 -0
  413. package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +1 -0
  414. package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +1 -0
  415. package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +1 -0
  416. package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +1 -0
  417. package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +1 -0
  418. package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +1 -0
  419. package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +1 -0
  420. package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +1 -0
  421. package/dist/chunks/tools-0.6.13-heefxcxe.mjs +1 -0
  422. package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +1 -0
  423. package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +69 -0
  424. package/dist/chunks/types-0.6.13-26eegce9.mjs +1 -0
  425. package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +4 -0
  426. package/dist/chunks/update-0.6.13-tj94pp6r.mjs +86 -0
  427. package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +1 -0
  428. package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +7 -0
  429. package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +14 -0
  430. package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +1 -0
  431. package/dist/chunks/usage-0.6.13-whrgny68.mjs +1 -0
  432. package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +1 -0
  433. package/dist/chunks/utils-0.6.13-jybbphy0.mjs +1 -0
  434. package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +1 -0
  435. package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +1 -0
  436. package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +132 -0
  437. package/dist/chunks/worktree-0.6.13-efnvp677.mjs +1 -0
  438. package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +1 -0
  439. package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +7 -0
  440. package/dist/claudin-vscode.vsix +0 -0
  441. package/dist/cli.mjs +2 -2
  442. package/package.json +1 -1
  443. package/dist/chunks/AgentTool-0.6.12-b2gfz5kv.mjs +0 -1
  444. package/dist/chunks/App-0.6.12-mh1ysgxg.mjs +0 -1
  445. package/dist/chunks/ApproveApiKey-0.6.12-r2wj56g6.mjs +0 -1
  446. package/dist/chunks/AssistantSessionChooser-0.6.12-vg6y5ha1.mjs +0 -1
  447. package/dist/chunks/AutoModeOptInDialog-0.6.12-dhx63scb.mjs +0 -1
  448. package/dist/chunks/BypassPermissionsModeDialog-0.6.12-rpt2b1wj.mjs +0 -1
  449. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.12-2arvz9mf.mjs +0 -1
  450. package/dist/chunks/ConsoleOAuthFlow-0.6.12-5htdzb3m.mjs +0 -1
  451. package/dist/chunks/DiffDialog-0.6.12-ta0sjcsf.mjs +0 -7
  452. package/dist/chunks/Doctor-0.6.12-mwbqw1rj.mjs +0 -1
  453. package/dist/chunks/ExplorerDialog-0.6.12-58rcsfy9.mjs +0 -6
  454. package/dist/chunks/Grove-0.6.12-tnpptv0x.mjs +0 -1
  455. package/dist/chunks/ITermBackend-0.6.12-ez4cgygb.mjs +0 -1
  456. package/dist/chunks/InvalidConfigDialog-0.6.12-d7dkg0t5.mjs +0 -1
  457. package/dist/chunks/InvalidSettingsDialog-0.6.12-f05fw15j.mjs +0 -1
  458. package/dist/chunks/MigrationDialog-0.6.12-rr1km3wx.mjs +0 -1
  459. package/dist/chunks/Onboarding-0.6.12-75ts37c4.mjs +0 -1
  460. package/dist/chunks/ProviderManager-0.6.12-ggazg3xb.mjs +0 -1
  461. package/dist/chunks/REPL-0.6.12-230gxwk3.mjs +0 -1
  462. package/dist/chunks/ResumeConversation-0.6.12-b6w9nxwe.mjs +0 -1
  463. package/dist/chunks/SnapshotUpdateDialog-0.6.12-1jqm9wpr.mjs +0 -1
  464. package/dist/chunks/TeleportProgress-0.6.12-5rky61kj.mjs +0 -1
  465. package/dist/chunks/TeleportRepoMismatchDialog-0.6.12-zep0xyc2.mjs +0 -1
  466. package/dist/chunks/TeleportResumeWrapper-0.6.12-wfr7mfew.mjs +0 -1
  467. package/dist/chunks/TmuxBackend-0.6.12-v453hg0b.mjs +0 -9
  468. package/dist/chunks/ToolSearchTool-0.6.12-p0s6m4y8.mjs +0 -1
  469. package/dist/chunks/TrustDialog-0.6.12-k76hznv2.mjs +0 -1
  470. package/dist/chunks/activeProvider-0.6.12-sv3z8anm.mjs +0 -1
  471. package/dist/chunks/add-dir-0.6.12-wnbxt7vy.mjs +0 -1
  472. package/dist/chunks/agents-0.6.12-b9dy00ag.mjs +0 -110
  473. package/dist/chunks/agents-0.6.12-ycqzf9j5.mjs +0 -3
  474. package/dist/chunks/api-0.6.12-14eqhy3z.mjs +0 -1
  475. package/dist/chunks/asciicast-0.6.12-vbsq9mgp.mjs +0 -1
  476. package/dist/chunks/assistant-0.6.12-5p1f9bbw.mjs +0 -1
  477. package/dist/chunks/auth-0.6.12-pa89ctgf.mjs +0 -1
  478. package/dist/chunks/auth-0.6.12-wk2y5d3t.mjs +0 -1
  479. package/dist/chunks/autoMode-0.6.12-y4rjrey5.mjs +0 -48
  480. package/dist/chunks/autoUpdater-0.6.12-shtexsmc.mjs +0 -1
  481. package/dist/chunks/backgroundHousekeeping-0.6.12-r98xwf4x.mjs +0 -1
  482. package/dist/chunks/branch-0.6.12-bwqzpwr3.mjs +0 -4
  483. package/dist/chunks/bridge-0.6.12-j1y5hhxp.mjs +0 -2
  484. package/dist/chunks/bridgeConfig-0.6.12-jedyxebh.mjs +0 -1
  485. package/dist/chunks/bridgeEnabled-0.6.12-15wd9gtx.mjs +0 -1
  486. package/dist/chunks/bridgeMain-0.6.12-02c465aw.mjs +0 -88
  487. package/dist/chunks/bridgePointer-0.6.12-nmffskv4.mjs +0 -1
  488. package/dist/chunks/btw-0.6.12-zvse57mq.mjs +0 -1
  489. package/dist/chunks/buddy-0.6.12-2qsbgdn6.mjs +0 -3
  490. package/dist/chunks/cacache-0.6.12-fhcd4wsf.mjs +0 -1
  491. package/dist/chunks/cache-probe-0.6.12-n2cm80z4.mjs +0 -21
  492. package/dist/chunks/cacheStats-0.6.12-h45pnvr7.mjs +0 -4
  493. package/dist/chunks/caches-0.6.12-cfaw7jb1.mjs +0 -1
  494. package/dist/chunks/claudeDesktop-0.6.12-6rnj0zw7.mjs +0 -1
  495. package/dist/chunks/claudemd-0.6.12-e90nb8vx.mjs +0 -1
  496. package/dist/chunks/clear-0.6.12-gadvgvp6.mjs +0 -1
  497. package/dist/chunks/clearTerminal-0.6.12-91ykpa58.mjs +0 -1
  498. package/dist/chunks/cli-0.6.12-0ghv260y.mjs +0 -2
  499. package/dist/chunks/cli-0.6.12-0hjd35q4.mjs +0 -12
  500. package/dist/chunks/cli-0.6.12-0t5tsk2y.mjs +0 -2
  501. package/dist/chunks/cli-0.6.12-0xpfj4aq.mjs +0 -4
  502. package/dist/chunks/cli-0.6.12-127pt3vk.mjs +0 -2
  503. package/dist/chunks/cli-0.6.12-14b2bpdj.mjs +0 -2
  504. package/dist/chunks/cli-0.6.12-175knjzx.mjs +0 -2
  505. package/dist/chunks/cli-0.6.12-1c92shz1.mjs +0 -2
  506. package/dist/chunks/cli-0.6.12-1f7vq52y.mjs +0 -2
  507. package/dist/chunks/cli-0.6.12-1qrp0zx7.mjs +0 -2
  508. package/dist/chunks/cli-0.6.12-1rc09wxd.mjs +0 -2
  509. package/dist/chunks/cli-0.6.12-21j45ejg.mjs +0 -59
  510. package/dist/chunks/cli-0.6.12-25h7f74n.mjs +0 -24
  511. package/dist/chunks/cli-0.6.12-263jrtsj.mjs +0 -58
  512. package/dist/chunks/cli-0.6.12-2g0n7jpe.mjs +0 -5
  513. package/dist/chunks/cli-0.6.12-2pyqs7x9.mjs +0 -2
  514. package/dist/chunks/cli-0.6.12-2stzmmb2.mjs +0 -4
  515. package/dist/chunks/cli-0.6.12-2vrk1saq.mjs +0 -2
  516. package/dist/chunks/cli-0.6.12-33ff6hv9.mjs +0 -4
  517. package/dist/chunks/cli-0.6.12-36dzac4h.mjs +0 -2
  518. package/dist/chunks/cli-0.6.12-3wqd066g.mjs +0 -2
  519. package/dist/chunks/cli-0.6.12-47h7weys.mjs +0 -2
  520. package/dist/chunks/cli-0.6.12-49tkzshk.mjs +0 -2
  521. package/dist/chunks/cli-0.6.12-4d51yvzh.mjs +0 -2
  522. package/dist/chunks/cli-0.6.12-4ty0ah2n.mjs +0 -2
  523. package/dist/chunks/cli-0.6.12-4x5vs5t2.mjs +0 -2
  524. package/dist/chunks/cli-0.6.12-5abky5z4.mjs +0 -50
  525. package/dist/chunks/cli-0.6.12-5kxkvnxa.mjs +0 -2
  526. package/dist/chunks/cli-0.6.12-5qypvh7v.mjs +0 -2
  527. package/dist/chunks/cli-0.6.12-5ybc0q7n.mjs +0 -2
  528. package/dist/chunks/cli-0.6.12-609r2xeh.mjs +0 -21
  529. package/dist/chunks/cli-0.6.12-63zpmh9f.mjs +0 -2
  530. package/dist/chunks/cli-0.6.12-679e9ptm.mjs +0 -2
  531. package/dist/chunks/cli-0.6.12-70c7xde0.mjs +0 -2
  532. package/dist/chunks/cli-0.6.12-741zt03r.mjs +0 -2
  533. package/dist/chunks/cli-0.6.12-74k7zjxx.mjs +0 -3
  534. package/dist/chunks/cli-0.6.12-75ddftht.mjs +0 -9
  535. package/dist/chunks/cli-0.6.12-78e7hkq9.mjs +0 -5
  536. package/dist/chunks/cli-0.6.12-7bg5rk6a.mjs +0 -3
  537. package/dist/chunks/cli-0.6.12-7eeaap1p.mjs +0 -4
  538. package/dist/chunks/cli-0.6.12-7g6v5zs9.mjs +0 -3
  539. package/dist/chunks/cli-0.6.12-7mz9jxfa.mjs +0 -2
  540. package/dist/chunks/cli-0.6.12-7nbe9chc.mjs +0 -3
  541. package/dist/chunks/cli-0.6.12-865yx2ff.mjs +0 -133
  542. package/dist/chunks/cli-0.6.12-8fpq2hqy.mjs +0 -2
  543. package/dist/chunks/cli-0.6.12-8k03anbf.mjs +0 -6
  544. package/dist/chunks/cli-0.6.12-8mb2h24g.mjs +0 -2
  545. package/dist/chunks/cli-0.6.12-8q4g5rxc.mjs +0 -133
  546. package/dist/chunks/cli-0.6.12-8sxh430a.mjs +0 -2
  547. package/dist/chunks/cli-0.6.12-90nvdzxq.mjs +0 -45
  548. package/dist/chunks/cli-0.6.12-967g034j.mjs +0 -2
  549. package/dist/chunks/cli-0.6.12-96crx44d.mjs +0 -2
  550. package/dist/chunks/cli-0.6.12-9jpps9qw.mjs +0 -2
  551. package/dist/chunks/cli-0.6.12-9prkktd2.mjs +0 -2
  552. package/dist/chunks/cli-0.6.12-9qh2mjjb.mjs +0 -3
  553. package/dist/chunks/cli-0.6.12-9wj4jg9w.mjs +0 -2
  554. package/dist/chunks/cli-0.6.12-ad7k9env.mjs +0 -2
  555. package/dist/chunks/cli-0.6.12-aj7y0fr6.mjs +0 -2
  556. package/dist/chunks/cli-0.6.12-b3ehvfjb.mjs +0 -3
  557. package/dist/chunks/cli-0.6.12-b6d9622b.mjs +0 -2
  558. package/dist/chunks/cli-0.6.12-babce7kt.mjs +0 -2
  559. package/dist/chunks/cli-0.6.12-bc05z2sq.mjs +0 -2
  560. package/dist/chunks/cli-0.6.12-bcqvraap.mjs +0 -2
  561. package/dist/chunks/cli-0.6.12-bgfgcewx.mjs +0 -2
  562. package/dist/chunks/cli-0.6.12-bpd9xvrz.mjs +0 -39
  563. package/dist/chunks/cli-0.6.12-bv0tm3x4.mjs +0 -2
  564. package/dist/chunks/cli-0.6.12-bvynx2vs.mjs +0 -2
  565. package/dist/chunks/cli-0.6.12-bxdnb5bn.mjs +0 -2
  566. package/dist/chunks/cli-0.6.12-byvhqye2.mjs +0 -67
  567. package/dist/chunks/cli-0.6.12-c3qdck87.mjs +0 -2
  568. package/dist/chunks/cli-0.6.12-c4ssk0t1.mjs +0 -17
  569. package/dist/chunks/cli-0.6.12-c6tjtcxh.mjs +0 -3
  570. package/dist/chunks/cli-0.6.12-c864w559.mjs +0 -2
  571. package/dist/chunks/cli-0.6.12-c8b2fkt8.mjs +0 -2
  572. package/dist/chunks/cli-0.6.12-cq322qyb.mjs +0 -2
  573. package/dist/chunks/cli-0.6.12-cwy83z24.mjs +0 -2
  574. package/dist/chunks/cli-0.6.12-d2b8dptv.mjs +0 -2
  575. package/dist/chunks/cli-0.6.12-dad03em9.mjs +0 -4
  576. package/dist/chunks/cli-0.6.12-dawxz0j1.mjs +0 -2
  577. package/dist/chunks/cli-0.6.12-dgfgahne.mjs +0 -4
  578. package/dist/chunks/cli-0.6.12-dhessv32.mjs +0 -2
  579. package/dist/chunks/cli-0.6.12-dj4f3bx0.mjs +0 -2
  580. package/dist/chunks/cli-0.6.12-dknasxzd.mjs +0 -2
  581. package/dist/chunks/cli-0.6.12-dqagenjb.mjs +0 -2
  582. package/dist/chunks/cli-0.6.12-dtv1qnk9.mjs +0 -2
  583. package/dist/chunks/cli-0.6.12-dywed27z.mjs +0 -2
  584. package/dist/chunks/cli-0.6.12-ecgg0rmc.mjs +0 -42
  585. package/dist/chunks/cli-0.6.12-ecm9vh62.mjs +0 -193
  586. package/dist/chunks/cli-0.6.12-eghq631e.mjs +0 -2
  587. package/dist/chunks/cli-0.6.12-er4p2njc.mjs +0 -2
  588. package/dist/chunks/cli-0.6.12-f62r5f5z.mjs +0 -2
  589. package/dist/chunks/cli-0.6.12-fdy5s675.mjs +0 -2
  590. package/dist/chunks/cli-0.6.12-fm6zkr7d.mjs +0 -4
  591. package/dist/chunks/cli-0.6.12-fmf3vjw6.mjs +0 -2
  592. package/dist/chunks/cli-0.6.12-fr0rb7xk.mjs +0 -2
  593. package/dist/chunks/cli-0.6.12-fwnpcanc.mjs +0 -2
  594. package/dist/chunks/cli-0.6.12-g971w5pv.mjs +0 -5420
  595. package/dist/chunks/cli-0.6.12-g9dxg935.mjs +0 -2
  596. package/dist/chunks/cli-0.6.12-gcedgh1v.mjs +0 -6
  597. package/dist/chunks/cli-0.6.12-ged5ahj0.mjs +0 -2
  598. package/dist/chunks/cli-0.6.12-gf7chq9d.mjs +0 -2
  599. package/dist/chunks/cli-0.6.12-gr3edfs9.mjs +0 -15
  600. package/dist/chunks/cli-0.6.12-gr4j664p.mjs +0 -10
  601. package/dist/chunks/cli-0.6.12-gxszq2d0.mjs +0 -15
  602. package/dist/chunks/cli-0.6.12-gxtrhp03.mjs +0 -2
  603. package/dist/chunks/cli-0.6.12-gzh08zb9.mjs +0 -2
  604. package/dist/chunks/cli-0.6.12-h48nkjwv.mjs +0 -2
  605. package/dist/chunks/cli-0.6.12-h9ajwy84.mjs +0 -2
  606. package/dist/chunks/cli-0.6.12-hzjwqj4g.mjs +0 -2
  607. package/dist/chunks/cli-0.6.12-k0skdwrx.mjs +0 -28
  608. package/dist/chunks/cli-0.6.12-k20w6gxz.mjs +0 -2
  609. package/dist/chunks/cli-0.6.12-k2x52jw2.mjs +0 -2
  610. package/dist/chunks/cli-0.6.12-k5wkfa00.mjs +0 -18
  611. package/dist/chunks/cli-0.6.12-kkjabccp.mjs +0 -2
  612. package/dist/chunks/cli-0.6.12-krgdc9xv.mjs +0 -2
  613. package/dist/chunks/cli-0.6.12-kt60hyrz.mjs +0 -2
  614. package/dist/chunks/cli-0.6.12-kxgn5260.mjs +0 -34
  615. package/dist/chunks/cli-0.6.12-m1rdexn7.mjs +0 -2
  616. package/dist/chunks/cli-0.6.12-m652pj3f.mjs +0 -2
  617. package/dist/chunks/cli-0.6.12-m8br9xce.mjs +0 -3
  618. package/dist/chunks/cli-0.6.12-mxrs3myx.mjs +0 -4
  619. package/dist/chunks/cli-0.6.12-myvzbb0a.mjs +0 -2
  620. package/dist/chunks/cli-0.6.12-myxkk9nw.mjs +0 -18
  621. package/dist/chunks/cli-0.6.12-n87dgp00.mjs +0 -2
  622. package/dist/chunks/cli-0.6.12-nb71rkte.mjs +0 -2
  623. package/dist/chunks/cli-0.6.12-ndg5saae.mjs +0 -17
  624. package/dist/chunks/cli-0.6.12-nqh7eeq7.mjs +0 -2
  625. package/dist/chunks/cli-0.6.12-nsthg20j.mjs +0 -24
  626. package/dist/chunks/cli-0.6.12-nwdx223d.mjs +0 -25
  627. package/dist/chunks/cli-0.6.12-p29k66pp.mjs +0 -2
  628. package/dist/chunks/cli-0.6.12-p86keq4d.mjs +0 -2
  629. package/dist/chunks/cli-0.6.12-pb83k360.mjs +0 -2
  630. package/dist/chunks/cli-0.6.12-pbhgk1s7.mjs +0 -2
  631. package/dist/chunks/cli-0.6.12-pf3jff0s.mjs +0 -15
  632. package/dist/chunks/cli-0.6.12-pgpcv7kg.mjs +0 -2
  633. package/dist/chunks/cli-0.6.12-ptm6c9k7.mjs +0 -2
  634. package/dist/chunks/cli-0.6.12-qmryt9rx.mjs +0 -2
  635. package/dist/chunks/cli-0.6.12-qwcckae9.mjs +0 -2
  636. package/dist/chunks/cli-0.6.12-qysrg51y.mjs +0 -12
  637. package/dist/chunks/cli-0.6.12-r5az487p.mjs +0 -2
  638. package/dist/chunks/cli-0.6.12-rgecbw6c.mjs +0 -3
  639. package/dist/chunks/cli-0.6.12-rhbff3mp.mjs +0 -2
  640. package/dist/chunks/cli-0.6.12-rkfcw3gr.mjs +0 -2
  641. package/dist/chunks/cli-0.6.12-rn39da8q.mjs +0 -2
  642. package/dist/chunks/cli-0.6.12-ry6292t5.mjs +0 -2
  643. package/dist/chunks/cli-0.6.12-s3nsyxya.mjs +0 -16
  644. package/dist/chunks/cli-0.6.12-s762dex9.mjs +0 -2
  645. package/dist/chunks/cli-0.6.12-sdb5bx5s.mjs +0 -2
  646. package/dist/chunks/cli-0.6.12-shnqhhm8.mjs +0 -2
  647. package/dist/chunks/cli-0.6.12-sp1yd4kb.mjs +0 -2
  648. package/dist/chunks/cli-0.6.12-ssk9wgyc.mjs +0 -2
  649. package/dist/chunks/cli-0.6.12-t6e17b69.mjs +0 -2
  650. package/dist/chunks/cli-0.6.12-tqh55964.mjs +0 -2
  651. package/dist/chunks/cli-0.6.12-v1k9yxjk.mjs +0 -2
  652. package/dist/chunks/cli-0.6.12-ve0yf7bb.mjs +0 -2
  653. package/dist/chunks/cli-0.6.12-vmm9x1sf.mjs +0 -6
  654. package/dist/chunks/cli-0.6.12-vtwd2qms.mjs +0 -2
  655. package/dist/chunks/cli-0.6.12-vvxje0rc.mjs +0 -2
  656. package/dist/chunks/cli-0.6.12-w58bx1s8.mjs +0 -2
  657. package/dist/chunks/cli-0.6.12-w7rsc2wy.mjs +0 -2
  658. package/dist/chunks/cli-0.6.12-w8a3jzmm.mjs +0 -2
  659. package/dist/chunks/cli-0.6.12-wbta805y.mjs +0 -2
  660. package/dist/chunks/cli-0.6.12-wdv94m1r.mjs +0 -2
  661. package/dist/chunks/cli-0.6.12-whhyvv1p.mjs +0 -6
  662. package/dist/chunks/cli-0.6.12-wj4xsk58.mjs +0 -4
  663. package/dist/chunks/cli-0.6.12-wq16rd87.mjs +0 -2
  664. package/dist/chunks/cli-0.6.12-wt1j42v1.mjs +0 -2
  665. package/dist/chunks/cli-0.6.12-wt28w88h.mjs +0 -3
  666. package/dist/chunks/cli-0.6.12-x4px6ebg.mjs +0 -2
  667. package/dist/chunks/cli-0.6.12-x60ha982.mjs +0 -2
  668. package/dist/chunks/cli-0.6.12-x94fe36b.mjs +0 -2
  669. package/dist/chunks/cli-0.6.12-xm6axcxk.mjs +0 -2
  670. package/dist/chunks/cli-0.6.12-xm90zy0d.mjs +0 -4
  671. package/dist/chunks/cli-0.6.12-xmnemm5p.mjs +0 -2
  672. package/dist/chunks/cli-0.6.12-xn7761gp.mjs +0 -12
  673. package/dist/chunks/cli-0.6.12-xtdnjw66.mjs +0 -5
  674. package/dist/chunks/cli-0.6.12-xwf1dh5d.mjs +0 -1
  675. package/dist/chunks/cli-0.6.12-xz3jwj4y.mjs +0 -2
  676. package/dist/chunks/cli-0.6.12-xzaf2m9a.mjs +0 -2
  677. package/dist/chunks/cli-0.6.12-y1tqcbp0.mjs +0 -3
  678. package/dist/chunks/cli-0.6.12-y22js5cj.mjs +0 -2
  679. package/dist/chunks/cli-0.6.12-y3jb5s3q.mjs +0 -2
  680. package/dist/chunks/cli-0.6.12-y8en6j6s.mjs +0 -7
  681. package/dist/chunks/cli-0.6.12-y972k2tw.mjs +0 -2
  682. package/dist/chunks/cli-0.6.12-ycr2zjz2.mjs +0 -3
  683. package/dist/chunks/cli-0.6.12-ydaqyt5e.mjs +0 -2
  684. package/dist/chunks/cli-0.6.12-yf87hj21.mjs +0 -2
  685. package/dist/chunks/cli-0.6.12-ygsvrmh6.mjs +0 -2
  686. package/dist/chunks/cli-0.6.12-yn5d7xfc.mjs +0 -3
  687. package/dist/chunks/cli-0.6.12-ythpt06e.mjs +0 -2
  688. package/dist/chunks/cli-0.6.12-ytv10xs6.mjs +0 -2
  689. package/dist/chunks/cli-0.6.12-yznryqep.mjs +0 -2
  690. package/dist/chunks/cli-0.6.12-z2t6eay6.mjs +0 -8
  691. package/dist/chunks/cli-0.6.12-z3mxk8qb.mjs +0 -2
  692. package/dist/chunks/cli-0.6.12-zqn1amfd.mjs +0 -2
  693. package/dist/chunks/cli-0.6.12-zys3gk6x.mjs +0 -20
  694. package/dist/chunks/client-0.6.12-phc6xwmp.mjs +0 -1
  695. package/dist/chunks/color-0.6.12-3bm7m3a7.mjs +0 -1
  696. package/dist/chunks/compact-0.6.12-5d6s9rmk.mjs +0 -3
  697. package/dist/chunks/config-0.6.12-3p83m4s1.mjs +0 -1
  698. package/dist/chunks/config-0.6.12-5mzt69kt.mjs +0 -1
  699. package/dist/chunks/constants-0.6.12-1a88z0wh.mjs +0 -1
  700. package/dist/chunks/context-0.6.12-ejp5j50g.mjs +0 -1
  701. package/dist/chunks/context-noninteractive-0.6.12-93sjsnbj.mjs +0 -1
  702. package/dist/chunks/conversation-0.6.12-zjm6wgxd.mjs +0 -1
  703. package/dist/chunks/copilotHeaders-0.6.12-ergymbrz.mjs +0 -1
  704. package/dist/chunks/copy-0.6.12-ae40pdpw.mjs +0 -9
  705. package/dist/chunks/cost-0.6.12-0zft9dxk.mjs +0 -1
  706. package/dist/chunks/createSSHSession-0.6.12-eawy0hjj.mjs +0 -1
  707. package/dist/chunks/createSession-0.6.12-k2ybhmnf.mjs +0 -1
  708. package/dist/chunks/debug-0.6.12-qwsc3zve.mjs +0 -1
  709. package/dist/chunks/defaultActionDeps-0.6.12-z3bbhkka.mjs +0 -1367
  710. package/dist/chunks/desktop-0.6.12-mbqzwz1w.mjs +0 -1
  711. package/dist/chunks/detectRepository-0.6.12-0c1bdxe1.mjs +0 -1
  712. package/dist/chunks/detection-0.6.12-fatrvr7b.mjs +0 -1
  713. package/dist/chunks/diff-0.6.12-jgkz8t70.mjs +0 -1
  714. package/dist/chunks/doctor-0.6.12-sgdd9y17.mjs +0 -1
  715. package/dist/chunks/doctorDiagnostic-0.6.12-262gvntg.mjs +0 -1
  716. package/dist/chunks/earlyInput-0.6.12-1hqzzwqc.mjs +0 -1
  717. package/dist/chunks/effort-0.6.12-td2qdqtd.mjs +0 -10
  718. package/dist/chunks/envLessBridgeConfig-0.6.12-yq8zz1ms.mjs +0 -1
  719. package/dist/chunks/envUtils-0.6.12-41m24c9y.mjs +0 -1
  720. package/dist/chunks/environmentSelection-0.6.12-96z66p9g.mjs +0 -1
  721. package/dist/chunks/environments-0.6.12-g4zawvgx.mjs +0 -1
  722. package/dist/chunks/errors-0.6.12-pwgn10xz.mjs +0 -1
  723. package/dist/chunks/exampleCommands-0.6.12-abwdmv10.mjs +0 -1
  724. package/dist/chunks/exit-0.6.12-1zstjg69.mjs +0 -1
  725. package/dist/chunks/explorer-0.6.12-ekq5bptv.mjs +0 -1
  726. package/dist/chunks/export-0.6.12-2g1y7yq2.mjs +0 -2
  727. package/dist/chunks/extra-usage-0.6.12-r3tx0z4q.mjs +0 -1
  728. package/dist/chunks/extra-usage-noninteractive-0.6.12-1b6v7jrh.mjs +0 -1
  729. package/dist/chunks/fast-0.6.12-8ycyb7jh.mjs +0 -1
  730. package/dist/chunks/feedback-0.6.12-6rmervrh.mjs +0 -14
  731. package/dist/chunks/firstPartyEventLogger-0.6.12-k7t19wv3.mjs +0 -1
  732. package/dist/chunks/git-0.6.12-wd8h5tre.mjs +0 -1
  733. package/dist/chunks/githubModelsCredentials-0.6.12-kew470a1.mjs +0 -1
  734. package/dist/chunks/goal-0.6.12-ax8sm39h.mjs +0 -4
  735. package/dist/chunks/grove-0.6.12-gnc0890q.mjs +0 -1
  736. package/dist/chunks/growthbook-0.6.12-bp7gexrs.mjs +0 -1
  737. package/dist/chunks/headless-0.6.12-cttcwev7.mjs +0 -2
  738. package/dist/chunks/heapdump-0.6.12-zmkxywxh.mjs +0 -6
  739. package/dist/chunks/help-0.6.12-j1xp96ch.mjs +0 -1
  740. package/dist/chunks/hookChains-0.6.12-anh2pzvv.mjs +0 -3
  741. package/dist/chunks/hooks-0.6.12-9hm2ddcn.mjs +0 -1
  742. package/dist/chunks/hooks-0.6.12-a0gr31xg.mjs +0 -79
  743. package/dist/chunks/ide-0.6.12-gt24sqed.mjs +0 -3
  744. package/dist/chunks/image-processor-napi-0.6.12-fd06htw3.mjs +0 -1
  745. package/dist/chunks/inboundAttachments-0.6.12-24vvap3x.mjs +0 -1
  746. package/dist/chunks/index-0.6.12-2qgg1wff.mjs +0 -1
  747. package/dist/chunks/index-0.6.12-41vfjsr6.mjs +0 -1
  748. package/dist/chunks/index-0.6.12-73amkcbt.mjs +0 -1
  749. package/dist/chunks/index-0.6.12-avj6qyfm.mjs +0 -1
  750. package/dist/chunks/index-0.6.12-b80wbjtw.mjs +0 -1
  751. package/dist/chunks/index-0.6.12-ctpn09qp.mjs +0 -1
  752. package/dist/chunks/index-0.6.12-g637f9fx.mjs +0 -5
  753. package/dist/chunks/index-0.6.12-g802mnr6.mjs +0 -1
  754. package/dist/chunks/index-0.6.12-nmadn3pq.mjs +0 -1
  755. package/dist/chunks/index-0.6.12-pd2j0wnb.mjs +0 -30
  756. package/dist/chunks/index-0.6.12-pger0v41.mjs +0 -1
  757. package/dist/chunks/index-0.6.12-phsd1x3s.mjs +0 -1
  758. package/dist/chunks/index-0.6.12-q59k8jj7.mjs +0 -1
  759. package/dist/chunks/index-0.6.12-rdmcmvt7.mjs +0 -1
  760. package/dist/chunks/index-0.6.12-rtthmj5w.mjs +0 -2
  761. package/dist/chunks/index-0.6.12-rtv5gkng.mjs +0 -1
  762. package/dist/chunks/index-0.6.12-sk1hsbbd.mjs +0 -1
  763. package/dist/chunks/index-0.6.12-w302e6b5.mjs +0 -2
  764. package/dist/chunks/index-0.6.12-wxr6k8p3.mjs +0 -1
  765. package/dist/chunks/index-0.6.12-ydb5e4ax.mjs +0 -9
  766. package/dist/chunks/index-0.6.12-z4mv30qj.mjs +0 -1
  767. package/dist/chunks/index-0.6.12-zn2sw41t.mjs +0 -1
  768. package/dist/chunks/index-0.6.12-zztf50tf.mjs +0 -9
  769. package/dist/chunks/init-0.6.12-hzpcvtax.mjs +0 -1
  770. package/dist/chunks/initReplBridge-0.6.12-19h8ek32.mjs +0 -1
  771. package/dist/chunks/ink-0.6.12-wntqc47k.mjs +0 -1
  772. package/dist/chunks/insights-0.6.12-ehv9w1sm.mjs +0 -870
  773. package/dist/chunks/install-0.6.12-ek5e219m.mjs +0 -1
  774. package/dist/chunks/install-github-app-0.6.12-f8ks7z1p.mjs +0 -149
  775. package/dist/chunks/install-slack-app-0.6.12-xy3ka7xx.mjs +0 -1
  776. package/dist/chunks/instrumentation-0.6.12-k5x3bf7b.mjs +0 -1
  777. package/dist/chunks/interactiveHelpers-0.6.12-8kc6febh.mjs +0 -1
  778. package/dist/chunks/keybindings-0.6.12-4nm3sthz.mjs +0 -2
  779. package/dist/chunks/knowledge-0.6.12-94kf7zkv.mjs +0 -2
  780. package/dist/chunks/latestVersionCache-0.6.12-4hzsqy8q.mjs +0 -1
  781. package/dist/chunks/loadAgentsDir-0.6.12-r6w36jvz.mjs +0 -1
  782. package/dist/chunks/loadPluginHooks-0.6.12-7jgfnzk9.mjs +0 -1
  783. package/dist/chunks/loadPluginHooks-0.6.12-g28czpqy.mjs +0 -1
  784. package/dist/chunks/log-0.6.12-n2qz9rqw.mjs +0 -1
  785. package/dist/chunks/main-0.6.12-z3w0x1v7.mjs +0 -1
  786. package/dist/chunks/managedEnv-0.6.12-96ytmrqz.mjs +0 -1
  787. package/dist/chunks/mcp-0.6.12-k6fx8h8x.mjs +0 -4
  788. package/dist/chunks/mcp-0.6.12-wzy270hy.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.12-y0dw59te.mjs +0 -17
  790. package/dist/chunks/mcpb-0.6.12-67ahhcye.mjs +0 -1
  791. package/dist/chunks/memory-0.6.12-gym7m96x.mjs +0 -3
  792. package/dist/chunks/model-0.6.12-5p83mwxc.mjs +0 -1
  793. package/dist/chunks/model-0.6.12-ez8h0awr.mjs +0 -2
  794. package/dist/chunks/node-0.6.12-m9nrbmtq.mjs +0 -12
  795. package/dist/chunks/oauth-0.6.12-bzsfe61y.mjs +0 -1
  796. package/dist/chunks/openaiShim-0.6.12-0wwtx5pq.mjs +0 -14
  797. package/dist/chunks/output-style-0.6.12-4z477r8f.mjs +0 -1
  798. package/dist/chunks/package-FMOR3ELU-0.6.12-8kng3f73.mjs +0 -1
  799. package/dist/chunks/parseConnectUrl-0.6.12-nfvmk4rg.mjs +0 -1
  800. package/dist/chunks/parser-0.6.12-d3k043gq.mjs +0 -1
  801. package/dist/chunks/passes-0.6.12-ne11kyby.mjs +0 -1
  802. package/dist/chunks/permissions-0.6.12-atkdd074.mjs +0 -3
  803. package/dist/chunks/permissions-0.6.12-gp1rkkw5.mjs +0 -1
  804. package/dist/chunks/plan-0.6.12-nps961gw.mjs +0 -1
  805. package/dist/chunks/plist-0.6.12-sn7z1bfm.mjs +0 -1
  806. package/dist/chunks/plugin-0.6.12-t8w4em2b.mjs +0 -29
  807. package/dist/chunks/pluginStartupCheck-0.6.12-detthxd9.mjs +0 -1
  808. package/dist/chunks/plugins-0.6.12-jsyfj14z.mjs +0 -9
  809. package/dist/chunks/preActionHook-0.6.12-5z3qaz2c.mjs +0 -2
  810. package/dist/chunks/print-0.6.12-7snrawae.mjs +0 -57
  811. package/dist/chunks/privacy-settings-0.6.12-67vpkknh.mjs +0 -1
  812. package/dist/chunks/process-0.6.12-9kdkqzvq.mjs +0 -1
  813. package/dist/chunks/processBashCommand-0.6.12-vq198s4m.mjs +0 -1
  814. package/dist/chunks/processSlashCommand-0.6.12-pqm77gwv.mjs +0 -9
  815. package/dist/chunks/prompt-0.6.12-q902mafh.mjs +0 -1
  816. package/dist/chunks/prompt-0.6.12-xd40dw3n.mjs +0 -1
  817. package/dist/chunks/prompts-0.6.12-wa0zakkp.mjs +0 -1
  818. package/dist/chunks/protocolHandler-0.6.12-s9g03fmy.mjs +0 -13
  819. package/dist/chunks/provider-0.6.12-0rkb5my1.mjs +0 -2
  820. package/dist/chunks/providerProfiles-0.6.12-c8560hh3.mjs +0 -1
  821. package/dist/chunks/providerValidation-0.6.12-p7a4pezy.mjs +0 -6
  822. package/dist/chunks/rate-limit-options-0.6.12-m4yzkb1s.mjs +0 -1
  823. package/dist/chunks/registerSubcommands-0.6.12-4ympw4qx.mjs +0 -34
  824. package/dist/chunks/registry-0.6.12-me5c4ees.mjs +0 -1
  825. package/dist/chunks/release-notes-0.6.12-c98aaef6.mjs +0 -5
  826. package/dist/chunks/reload-plugins-0.6.12-9bjvvf1t.mjs +0 -2
  827. package/dist/chunks/remote-env-0.6.12-ssv38t07.mjs +0 -1
  828. package/dist/chunks/remoteBridgeCore-0.6.12-499kczq5.mjs +0 -1
  829. package/dist/chunks/remoteSession-0.6.12-0z14sh5j.mjs +0 -1
  830. package/dist/chunks/rename-0.6.12-e27tv0xn.mjs +0 -1
  831. package/dist/chunks/replBridgeHandle-0.6.12-s8xm10k3.mjs +0 -1
  832. package/dist/chunks/replLauncher-0.6.12-b0tmf29d.mjs +0 -1
  833. package/dist/chunks/resume-0.6.12-m9xp6af3.mjs +0 -2
  834. package/dist/chunks/rewind-0.6.12-r48k3bke.mjs +0 -1
  835. package/dist/chunks/rootOptions-0.6.12-xg4e2npc.mjs +0 -1
  836. package/dist/chunks/sandbox-adapter-0.6.12-c0jg2mha.mjs +0 -1
  837. package/dist/chunks/sandbox-toggle-0.6.12-qngt56vd.mjs +0 -1
  838. package/dist/chunks/session-0.6.12-3kqbq47j.mjs +0 -2
  839. package/dist/chunks/sessionDiscovery-0.6.12-azdg6zpm.mjs +0 -1
  840. package/dist/chunks/sessionFileAccessHooks-0.6.12-smrf94x8.mjs +0 -1
  841. package/dist/chunks/sessionStorage-0.6.12-3s4xgk72.mjs +0 -1
  842. package/dist/chunks/settings-0.6.12-qgf2vk7t.mjs +0 -1
  843. package/dist/chunks/setup-0.6.12-rmgv0hja.mjs +0 -5
  844. package/dist/chunks/sinks-0.6.12-a76rjjna.mjs +0 -1
  845. package/dist/chunks/skills-0.6.12-97wwzbqg.mjs +0 -1
  846. package/dist/chunks/startupProfiler-0.6.12-n7dwbws3.mjs +0 -1
  847. package/dist/chunks/startupUpdateCheck-0.6.12-zz72ygxt.mjs +0 -1
  848. package/dist/chunks/state-0.6.12-k8svntgp.mjs +0 -1
  849. package/dist/chunks/stats-0.6.12-6eqvrdcf.mjs +0 -6
  850. package/dist/chunks/status-0.6.12-89m9h2d5.mjs +0 -1
  851. package/dist/chunks/stickers-0.6.12-nkgkxve6.mjs +0 -1
  852. package/dist/chunks/subprocessEnv-0.6.12-aeb0xfq8.mjs +0 -1
  853. package/dist/chunks/tasks-0.6.12-768gy8rf.mjs +0 -1
  854. package/dist/chunks/teamHelpers-0.6.12-p30ye095.mjs +0 -1
  855. package/dist/chunks/teammateModeSnapshot-0.6.12-9ckbra11.mjs +0 -1
  856. package/dist/chunks/teleport-0.6.12-a7phvh8w.mjs +0 -1
  857. package/dist/chunks/terminalSetup-0.6.12-v1mmftfk.mjs +0 -1
  858. package/dist/chunks/theme-0.6.12-pk44vevh.mjs +0 -1
  859. package/dist/chunks/thinkback-0.6.12-h129pk9c.mjs +0 -1
  860. package/dist/chunks/thinkback-play-0.6.12-0q1h69xk.mjs +0 -1
  861. package/dist/chunks/toolPool-0.6.12-6btnc350.mjs +0 -1
  862. package/dist/chunks/toolSearch-0.6.12-6w6c2d0k.mjs +0 -1
  863. package/dist/chunks/tools-0.6.12-payt8j1x.mjs +0 -1
  864. package/dist/chunks/trustedDevice-0.6.12-3cf6rrwr.mjs +0 -1
  865. package/dist/chunks/turndown.cjs-0.6.12-vpz9aqc1.mjs +0 -69
  866. package/dist/chunks/types-0.6.12-89db9fm7.mjs +0 -1
  867. package/dist/chunks/ultrareviewCommand-0.6.12-71j89ba5.mjs +0 -4
  868. package/dist/chunks/update-0.6.12-b1am0643.mjs +0 -86
  869. package/dist/chunks/upgrade-0.6.12-cnrv3v3c.mjs +0 -1
  870. package/dist/chunks/upload-0.6.12-sgdhvzs6.mjs +0 -7
  871. package/dist/chunks/upstreamproxy-0.6.12-jebzvamj.mjs +0 -14
  872. package/dist/chunks/url-handler-napi-0.6.12-qmbaskxk.mjs +0 -1
  873. package/dist/chunks/usage-0.6.12-4rpa911e.mjs +0 -1
  874. package/dist/chunks/util-0.6.12-p6wjnsvs.mjs +0 -1
  875. package/dist/chunks/utils-0.6.12-zg7kvysm.mjs +0 -1
  876. package/dist/chunks/vim-0.6.12-jp06y1w1.mjs +0 -1
  877. package/dist/chunks/watcher-0.6.12-46f463g8.mjs +0 -1
  878. package/dist/chunks/wiki-0.6.12-338ffyp8.mjs +0 -132
  879. package/dist/chunks/worktree-0.6.12-e32fmtrw.mjs +0 -1
  880. package/dist/chunks/worktreeModeEnabled-0.6.12-89pgcps3.mjs +0 -1
  881. package/dist/chunks/wrapper-0.6.12-h92v93hb.mjs +0 -7
  882. /package/dist/chunks/{cli-0.6.12-epgpn2nw.mjs → cli-0.6.13-1dwgndg5.mjs} +0 -0
  883. /package/dist/chunks/{cli-0.6.12-6bdrnprg.mjs → cli-0.6.13-5qvssn7h.mjs} +0 -0
  884. /package/dist/chunks/{cli-0.6.12-rcpf2m27.mjs → cli-0.6.13-e3h2z83b.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.12-k3a537sa.mjs → cli-0.6.13-h2yxttam.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.12-x7na0qcv.mjs → cli-0.6.13-p839x5sj.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.12-zgydst6p.mjs → cli-0.6.13-rmzzvjt2.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.12-femcgqwt.mjs → cli-0.6.13-s9yqkgwe.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.12-e3smy1wy.mjs → cli-0.6.13-tsz6mx5f.mjs} +0 -0
@@ -1 +0,0 @@
1
- import{o7 as S}from"./cli-0.6.12-nwdx223d.mjs";import"./cli-0.6.12-zys3gk6x.mjs";import"./cli-0.6.12-7g6v5zs9.mjs";import{R7 as A}from"./cli-0.6.12-y22js5cj.mjs";import{Hpa as I,Ipa as h}from"./cli-0.6.12-75ddftht.mjs";import"./cli-0.6.12-mxrs3myx.mjs";import"./cli-0.6.12-ndg5saae.mjs";import{Tpa as p,Wpa as F}from"./cli-0.6.12-6bdrnprg.mjs";var d=p((n)=>{var w=n&&n.__createBinding||(Object.create?function(e,r,o,t){if(t===void 0)t=o;var _=Object.getOwnPropertyDescriptor(r,o);if(!_||("get"in _?!r.__esModule:_.writable||_.configurable))_={enumerable:!0,get:function(){return r[o]}};Object.defineProperty(e,t,_)}:function(e,r,o,t){if(t===void 0)t=o;e[t]=r[o]}),v=n&&n.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),j=n&&n.__importStar||function(){var e=function(r){return e=Object.getOwnPropertyNames||function(o){var t=[];for(var _ in o)if(Object.prototype.hasOwnProperty.call(o,_))t[t.length]=_;return t},e(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null){for(var t=e(r),_=0;_<t.length;_++)if(t[_]!=="default")w(o,r,t[_])}return v(o,r),o}}();Object.defineProperty(n,"__esModule",{value:!0});n.fromWebToken=void 0;var m=(e)=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:t,webIdentityToken:_,providerId:s,policyArns:y,policy:b,durationSeconds:T}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:N}=await Promise.resolve().then(()=>j(S()));l=N({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...r?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:_,ProviderId:s,PolicyArns:y,Policy:b,DurationSeconds:T})};n.fromWebToken=m});var u=p((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.fromTokenFile=void 0;var P=I(),g=h(),k=A(),R=F("node:fs"),q=d(),O="AWS_WEB_IDENTITY_TOKEN_FILE",L="AWS_ROLE_ARN",W="AWS_ROLE_SESSION_NAME",V=(e={})=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[O],t=e?.roleArn??process.env[L],_=e?.roleSessionName??process.env[W];if(!o||!t)throw new g.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let s=await(0,q.fromWebToken)({...e,webIdentityToken:k.externalDataInterceptor?.getTokenRecord?.()[o]??(0,R.readFileSync)(o,{encoding:"ascii"}),roleArn:t,roleSessionName:_})(r);if(o===process.env[O])(0,P.setCredentialFeature)(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};E.fromTokenFile=V});var x=p((c)=>{var i=u(),a=d();Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:i.__proto__});Object.keys(i).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=i[e]});Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:a.__proto__});Object.keys(a).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=a[e]})});export default x();
@@ -1 +0,0 @@
1
- import{R7 as P}from"./cli-0.6.12-y22js5cj.mjs";import{Hpa as p,Ipa as w}from"./cli-0.6.12-75ddftht.mjs";import"./cli-0.6.12-ndg5saae.mjs";import{Vpa as u,Wpa as a}from"./cli-0.6.12-6bdrnprg.mjs";var d,t,f,E,_,v=(r,e,s)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let i=new Date;if(new Date(e.Expiration)<i)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let o=e.AccountId;if(!o&&s?.[r]?.aws_account_id)o=s[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...o&&{accountId:o}};return _.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},x=async(r,e,s)=>{let o=e[r];if(e[r]){let n=o.credential_process;if(n!==void 0){let i=E.promisify(d.externalDataInterceptor?.getTokenRecord?.().exec??f.exec);try{let{stdout:c}=await i(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return v(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:s})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})},h=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await d.parseKnownFiles(r);return x(d.getProfileName({profile:r.profile??e?.profile}),s,r.logger)},y;var S=u(()=>{d=P(),t=w(),f=a("node:child_process"),E=a("node:util"),_=p();y=h});S();export{y as fromProcess};export default {get fromProcess(){return y}};
@@ -1 +0,0 @@
1
- import{Vpa as cH}from"./cli-0.6.12-6bdrnprg.mjs";import{createRequire as lH}from"module";function NC(H,C){if(typeof H=="function")C=H,H={};return this.ondata=C,H}function HJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC],function(K){return YC(cC(K.data[0],K.data[1]))},0,J)}function cC(H,C){return RC(H,C||{},0,0)}function rH(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC],function(K){return YC(vC(K.data[0],YH(K.data[1])))},1,J)}function vC(H,C){return zC(H,{i:2},C&&C.out,C&&C.dictionary)}function EJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC,vH,function(){return[LH]}],function(K){return YC(LH(K.data[0],K.data[1]))},2,J)}function LH(H,C){if(!C)C={};var J=TC(),K=H.length;J.p(H);var Q=RC(H,C,NH(C),8),V=Q.length;return $H(Q,C),g(Q,V-8,J.d()),g(Q,V-4,K),Q}function KJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,kH,function(){return[JH]}],function(K){return YC(JH(K.data[0],K.data[1]))},3,J)}function JH(H,C){var J=RH(H);if(J+8>H.length)B(6,"invalid gzip data");return zC(H.subarray(J,-8),{i:2},C&&C.out||new Z(mH(H)),C&&C.dictionary)}function BJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC,hH,function(){return[PH]}],function(K){return YC(PH(K.data[0],K.data[1]))},4,J)}function PH(H,C){if(!C)C={};var J=aC();J.p(H);var K=RC(H,C,C.dictionary?6:2,4);return EH(K,C),g(K,K.length-4,J.d()),K}function VJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,_H,function(){return[QH]}],function(K){return YC(QH(K.data[0],YH(K.data[1])))},5,J)}function QH(H,C){return zC(H.subarray(WH(H,C&&C.dictionary),-4),{i:2},C&&C.out,C&&C.dictionary)}function qJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return H[0]==31&&H[1]==139&&H[2]==8?KJ(H,C,J):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?rH(H,C,J):VJ(H,C,J)}function OJ(H,C){return H[0]==31&&H[1]==139&&H[2]==8?JH(H,C):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?vC(H,C):QH(H,C)}function $C(H,C){if(C){var J=new Z(H.length);for(var K=0;K<H.length;++K)J[K]=H.charCodeAt(K);return J}if(GH)return GH.encode(H);var Q=H.length,V=new Z(H.length+(H.length>>1)),X=0,Y=function(R){V[X++]=R};for(var K=0;K<Q;++K){if(X+5>V.length){var E=new Z(X+8+(Q-K<<1));E.set(V),V=E}var $=H.charCodeAt(K);if($<128||C)Y($);else if($<2048)Y(192|$>>6),Y(128|$&63);else if($>55295&&$<57344)$=65536+($&1047552)|H.charCodeAt(++K)&1023,Y(240|$>>18),Y(128|$>>12&63),Y(128|$>>6&63),Y(128|$&63);else Y(224|$>>12),Y(128|$>>6&63),Y(128|$&63)}return d(V,0,X)}function nH(H,C){if(C){var J="";for(var K=0;K<H.length;K+=16384)J+=String.fromCharCode.apply(null,H.subarray(K,K+16384));return J}else if(VH)return VH.decode(H);else{var Q=oH(H),V=Q.s,J=Q.r;if(J.length)B(8);return V}}function TJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K={};BH(H,"",K,C);var Q=Object.keys(K),V=Q.length,X=0,Y=0,E=V,$=Array(V),R=[],N=function(){for(var F=0;F<R.length;++F)R[F]()},W=function(F,P){eC(function(){J(F,P)})};eC(function(){W=J});var T=function(){var F=new Z(Y+22),P=X,U=Y-X;Y=0;for(var j=0;j<E;++j){var O=$[j];try{var x=O.c.length;MC(F,Y,O,O.f,O.u,x);var z=30+O.f.length+XC(O.extra),A=Y+z;F.set(O.c,A),MC(F,X,O,O.f,O.u,x,Y,O.m),X+=16+z+(O.m?O.m.length:0),Y=A+x}catch(L){return W(L,null)}}FH(F,X,$.length,U,P),W(null,F)};if(!V)T();var M=function(F){var P=Q[F],U=K[P],j=U[0],O=U[1],x=TC(),z=j.length;x.p(j);var A=$C(P),L=A.length,q=O.comment,y=q&&$C(q),S=y&&y.length,v=XC(O.extra),r=O.level==0?0:8,h=function(m,w){if(m)N(),W(m,null);else{var D=w.length;if($[F]=yC(O,{size:z,crc:x.d(),c:w,f:A,m:y,u:L!=P.length||y&&q.length!=S,compression:r}),X+=30+L+v+D,Y+=76+2*(L+v)+(S||0)+D,!--V)T()}};if(L>65535)h(B(11,0,1),null);if(!r)h(null,j);else if(z<160000)try{h(null,cC(j,O))}catch(m){h(m,null)}else R.push(HJ(j,O,h))};for(var G=0;G<E;++G)M(G);return N}function ZJ(H,C){if(!C)C={};var J={},K=[];BH(H,"",J,C);var Q=0,V=0;for(var X in J){var Y=J[X],E=Y[0],$=Y[1],R=$.level==0?0:8,N=$C(X),W=N.length,T=$.comment,M=T&&$C(T),G=M&&M.length,F=XC($.extra);if(W>65535)B(11);var P=R?cC(E,$):E,U=P.length,j=TC();j.p(E),K.push(yC($,{size:E.length,crc:j.d(),c:P,f:N,m:M,u:W!=X.length||M&&T.length!=G,o:Q,compression:R})),Q+=30+W+F+U,V+=76+2*(W+F)+(G||0)+U}var O=new Z(V+22),x=Q,z=V-Q;for(var A=0;A<K.length;++A){var N=K[A];MC(O,N.o,N,N.f,N.u,N.c.length);var L=30+N.f.length+XC(N.extra);O.set(N.c,N.o+L),MC(O,Q,N,N.f,N.u,N.c.length,N.o,N.m),Q+=16+L+(N.m?N.m.length:0)}return FH(O,Q,K.length,z,x),O}function DJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K=[],Q=function(){for(var F=0;F<K.length;++F)K[F]()},V={},X=function(F,P){eC(function(){J(F,P)})};eC(function(){X=J});var Y=H.length-22;for(;k(H,Y)!=101010256;--Y)if(!Y||H.length-Y>65558)return X(B(13,0,1),null),Q;var E=b(H,Y+8);if(E){var $=E,R=k(H,Y+16),N=k(H,Y-20)==117853008;if(N){var W=k(H,Y-12);if(N=k(H,W)==101075792,N)$=E=k(H,W+32),R=k(H,W+48)}var T=C&&C.filter,M=function(F){var P=fH(H,R,N),U=P[0],j=P[1],O=P[2],x=P[3],z=P[4],A=P[5],L=eH(H,A);R=z;var q=function(S,v){if(S)Q(),X(S,null);else{if(v)V[x]=v;if(!--E)X(null,V)}};if(!T||T({name:x,size:j,originalSize:O,compression:U}))if(!U)q(null,d(H,L,L+j));else if(U==8){var y=H.subarray(L,L+j);if(O<524288||j>0.8*O)try{q(null,vC(y,{out:new Z(O)}))}catch(S){q(S,null)}else K.push(rH(y,{size:O},q))}else q(B(14,"unknown compression type "+U,1),null);else q(null,null)};for(var G=0;G<$;++G)M(G)}else X(null,{});return Q}function SJ(H,C){var J={},K=H.length-22;for(;k(H,K)!=101010256;--K)if(!K||H.length-K>65558)B(13);var Q=b(H,K+8);if(!Q)return{};var V=k(H,K+16),X=k(H,K-20)==117853008;if(X){var Y=k(H,K-12);if(X=k(H,Y)==101075792,X)Q=k(H,Y+32),V=k(H,Y+48)}var E=C&&C.filter;for(var $=0;$<Q;++$){var R=fH(H,V,X),N=R[0],W=R[1],T=R[2],M=R[3],G=R[4],F=R[5],P=eH(H,F);if(V=G,!E||E({name:M,size:W,originalSize:T,compression:N}))if(!N)J[M]=d(H,P,P+W);else if(N==8)J[M]=vC(H.subarray(P,P+W),{out:new Z(T)});else B(14,"unknown compression type "+N)}return J}var dH,OC,mC,iC,iH=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",sH,Z,e,wC,PC,jC,gC,TH=function(H,C){var J=new e(31);for(var K=0;K<31;++K)J[K]=C+=1<<H[K-1];var Q=new wC(J[30]);for(var K=1;K<30;++K)for(var V=J[K];V<J[K+1];++V)Q[V]=V-J[K]<<5|K;return{b:J,r:Q}},OC,XH,oC,ZH,IH,sC,xC,HC,I,l=function(H,C,J){var K=H.length,Q=0,V=new e(C);for(;Q<K;++Q)if(H[Q])++V[H[Q]-1];var X=new e(C);for(Q=1;Q<C;++Q)X[Q]=X[Q-1]+V[Q-1]<<1;var Y;if(J){Y=new e(1<<C);var E=15-C;for(Q=0;Q<K;++Q)if(H[Q]){var $=Q<<4|H[Q],R=C-H[Q],N=X[H[Q]-1]++<<R;for(var W=N|(1<<R)-1;N<=W;++N)Y[xC[N]>>E]=$}}else{Y=new e(K);for(Q=0;Q<K;++Q)if(H[Q])Y[Q]=xC[X[H[Q]-1]++]>>15-H[Q]}return Y},QC,I,I,I,I,LC,I,UH,AH,DH,SH,uC=function(H){var C=H[0];for(var J=1;J<H.length;++J)if(H[J]>C)C=H[J];return C},c=function(H,C,J){var K=C/8|0;return(H[K]|H[K+1]<<8)>>(C&7)&J},rC=function(H,C){var J=C/8|0;return(H[J]|H[J+1]<<8|H[J+2]<<16)>>(C&7)},GC=function(H){return(H+7)/8|0},d=function(H,C,J){if(C==null||C<0)C=0;if(J==null||J>H.length)J=H.length;return new Z(H.subarray(C,J))},RJ,gH,B=function(H,C,J){var K=Error(C||gH[H]);if(K.code=H,Error.captureStackTrace)Error.captureStackTrace(K,B);if(!J)throw K;return K},zC=function(H,C,J,K){var Q=H.length,V=K?K.length:0;if(!Q||C.f&&!C.l)return J||new Z(0);var X=!J,Y=X||C.i!=2,E=C.i;if(X)J=new Z(Q*3);var $=function(DC){var SC=J.length;if(DC>SC){var BC=new Z(Math.max(SC*2,DC));BC.set(J),J=BC}},R=C.f||0,N=C.p||0,W=C.b||0,T=C.l,M=C.d,G=C.m,F=C.n,P=Q*8;do{if(!T){R=c(H,N,1);var U=c(H,N+1,3);if(N+=3,!U){var j=GC(N)+4,O=H[j-4]|H[j-3]<<8,x=j+O;if(x>Q){if(E)B(0);break}if(Y)$(W+O);J.set(H.subarray(j,x),W),C.b=W+=O,C.p=N=x*8,C.f=R;continue}else if(U==1)T=AH,M=SH,G=9,F=5;else if(U==2){var z=c(H,N,31)+257,A=c(H,N+10,15)+4,L=z+c(H,N+5,31)+1;N+=14;var q=new Z(L),y=new Z(19);for(var S=0;S<A;++S)y[gC[S]]=c(H,N+S*3,7);N+=A*3;var v=uC(y),r=(1<<v)-1,h=l(y,v,1);for(var S=0;S<L;){var m=h[c(H,N,r)];N+=m&15;var j=m>>4;if(j<16)q[S++]=j;else{var w=0,D=0;if(j==16)D=3+c(H,N,3),N+=2,w=q[S-1];else if(j==17)D=3+c(H,N,7),N+=3;else if(j==18)D=11+c(H,N,127),N+=7;while(D--)q[S++]=w}}var p=q.subarray(0,z),u=q.subarray(z);G=uC(p),F=uC(u),T=l(p,G,1),M=l(u,F,1)}else B(1);if(N>P){if(E)B(0);break}}if(Y)$(W+131072);var VC=(1<<G)-1,f=(1<<F)-1,s=N;for(;;s=N){var w=T[rC(H,N)&VC],o=w>>4;if(N+=w&15,N>P){if(E)B(0);break}if(!w)B(2);if(o<256)J[W++]=o;else if(o==256){s=N,T=null;break}else{var n=o-254;if(o>264){var S=o-257,_=PC[S];n=c(H,N,(1<<_)-1)+XH[S],N+=_}var CC=M[rC(H,N)&f],EC=CC>>4;if(!CC)B(3);N+=CC&15;var u=IH[EC];if(EC>3){var _=jC[EC];u+=rC(H,N)&(1<<_)-1,N+=_}if(N>P){if(E)B(0);break}if(Y)$(W+131072);var WC=W+n;if(W<u){var kC=V-u,hC=Math.min(u,WC);if(kC+W<0)B(3);for(;W<hC;++W)J[W]=K[kC+W]}for(;W<WC;++W)J[W]=J[W-u]}}if(C.l=T,C.p=s,C.b=W,C.f=R,T)R=1,C.m=G,C.d=M,C.n=F}while(!R);return W!=J.length&&X?d(J,0,W):J.subarray(0,W)},JC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8},FC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8,H[K+2]|=J>>16},pC=function(H,C){var J=[];for(var K=0;K<H.length;++K)if(H[K])J.push({s:K,f:H[K]});var Q=J.length,V=J.slice();if(!Q)return{t:KC,l:0};if(Q==1){var X=new Z(J[0].s+1);return X[J[0].s]=1,{t:X,l:1}}J.sort(function(x,z){return x.f-z.f}),J.push({s:-1,f:25001});var Y=J[0],E=J[1],$=0,R=1,N=2;J[0]={s:-1,f:Y.f+E.f,l:Y,r:E};while(R!=Q-1)Y=J[J[$].f<J[N].f?$++:N++],E=J[$!=R&&J[$].f<J[N].f?$++:N++],J[R++]={s:-1,f:Y.f+E.f,l:Y,r:E};var W=V[0].s;for(var K=1;K<Q;++K)if(V[K].s>W)W=V[K].s;var T=new e(W+1),M=nC(J[R-1],T,0);if(M>C){var K=0,G=0,F=M-C,P=1<<F;V.sort(function(z,A){return T[A.s]-T[z.s]||z.f-A.f});for(;K<Q;++K){var U=V[K].s;if(T[U]>C)G+=P-(1<<M-T[U]),T[U]=C;else break}G>>=F;while(G>0){var j=V[K].s;if(T[j]<C)G-=1<<C-T[j]++-1;else++K}for(;K>=0&&G;--K){var O=V[K].s;if(T[O]==C)--T[O],++G}M=C}return{t:new Z(T),l:M}},nC=function(H,C,J){return H.s==-1?Math.max(nC(H.l,C,J+1),nC(H.r,C,J+1)):C[H.s]=J},tC=function(H){var C=H.length;while(C&&!H[--C]);var J=new e(++C),K=0,Q=H[0],V=1,X=function(E){J[K++]=E};for(var Y=1;Y<=C;++Y)if(H[Y]==Q&&Y!=C)++V;else{if(!Q&&V>2){for(;V>138;V-=138)X(32754);if(V>2)X(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){X(Q),--V;for(;V>6;V-=6)X(8304);if(V>2)X(V-3<<5|8208),V=0}while(V--)X(Q);V=1,Q=H[Y]}return{c:J.subarray(0,K),n:C}},qC=function(H,C){var J=0;for(var K=0;K<C.length;++K)J+=H[K]*C[K];return J},fC=function(H,C,J){var K=J.length,Q=GC(C+2);H[Q]=K&255,H[Q+1]=K>>8,H[Q+2]=H[Q]^255,H[Q+3]=H[Q+1]^255;for(var V=0;V<K;++V)H[Q+V+4]=J[V];return(Q+4+K)*8},CH=function(H,C,J,K,Q,V,X,Y,E,$,R){JC(C,R++,J),++Q[256];var N=pC(Q,15),W=N.t,T=N.l,M=pC(V,15),G=M.t,F=M.l,P=tC(W),U=P.c,j=P.n,O=tC(G),x=O.c,z=O.n,A=new e(19);for(var L=0;L<U.length;++L)++A[U[L]&31];for(var L=0;L<x.length;++L)++A[x[L]&31];var q=pC(A,7),y=q.t,S=q.l,v=19;for(;v>4&&!y[gC[v-1]];--v);var r=$+5<<3,h=qC(Q,QC)+qC(V,LC)+X,m=qC(Q,W)+qC(V,G)+X+14+3*v+qC(A,y)+2*A[16]+3*A[17]+7*A[18];if(E>=0&&r<=h&&r<=m)return fC(C,R,H.subarray(E,E+$));var w,D,p,u;if(JC(C,R,1+(m<h)),R+=2,m<h){w=l(W,T,0),D=W,p=l(G,F,0),u=G;var VC=l(y,S,0);JC(C,R,j-257),JC(C,R+5,z-1),JC(C,R+10,v-4),R+=14;for(var L=0;L<v;++L)JC(C,R+3*L,y[gC[L]]);R+=3*v;var f=[U,x];for(var s=0;s<2;++s){var o=f[s];for(var L=0;L<o.length;++L){var n=o[L]&31;if(JC(C,R,VC[n]),R+=y[n],n>15)JC(C,R,o[L]>>5&127),R+=o[L]>>12}}}else w=UH,D=QC,p=DH,u=LC;for(var L=0;L<Y;++L){var _=K[L];if(_>255){var n=_>>18&31;if(FC(C,R,w[n+257]),R+=D[n+257],n>7)JC(C,R,_>>23&31),R+=PC[n];var CC=_&31;if(FC(C,R,p[CC]),R+=u[CC],CC>3)FC(C,R,_>>5&8191),R+=jC[CC]}else FC(C,R,w[_]),R+=D[_]}return FC(C,R,w[256]),R+D[256]},xH,KC,wH=function(H,C,J,K,Q,V){var X=V.z||H.length,Y=new Z(K+X+5*(1+Math.ceil(X/7000))+Q),E=Y.subarray(K,Y.length-Q),$=V.l,R=(V.r||0)&7;if(C){if(R)E[0]=V.r>>3;var N=xH[C-1],W=N>>13,T=N&8191,M=(1<<J)-1,G=V.p||new e(32768),F=V.h||new e(M+1),P=Math.ceil(J/3),U=2*P,j=function(lC){return(H[lC]^H[lC+1]<<P^H[lC+2]<<U)&M},O=new wC(25000),x=new e(288),z=new e(32),A=0,L=0,q=V.i||0,y=0,S=V.w||0,v=0;for(;q+2<X;++q){var r=j(q),h=q&32767,m=F[r];if(G[h]=m,F[r]=h,S<=q){var w=X-q;if((A>7000||y>24576)&&(w>423||!$)){R=CH(H,E,0,O,x,z,L,y,v,q-v,R),y=A=L=0,v=q;for(var D=0;D<286;++D)x[D]=0;for(var D=0;D<30;++D)z[D]=0}var p=2,u=0,VC=T,f=h-m&32767;if(w>2&&r==j(q-f)){var s=Math.min(W,w)-1,o=Math.min(32767,q),n=Math.min(258,w);while(f<=o&&--VC&&h!=m){if(H[q+p]==H[q+p-f]){var _=0;for(;_<n&&H[q+_]==H[q+_-f];++_);if(_>p){if(p=_,u=f,_>s)break;var CC=Math.min(f,_-2),EC=0;for(var D=0;D<CC;++D){var WC=q-f+D&32767,kC=G[WC],hC=WC-kC&32767;if(hC>EC)EC=hC,m=WC}}}h=m,m=G[h],f+=h-m&32767}}if(u){O[y++]=268435456|oC[p]<<18|sC[u];var DC=oC[p]&31,SC=sC[u]&31;L+=PC[DC]+jC[SC],++x[257+DC],++z[SC],S=q+p,++A}else O[y++]=H[q],++x[H[q]]}}for(q=Math.max(q,S);q<X;++q)O[y++]=H[q],++x[H[q]];if(R=CH(H,E,$,O,x,z,L,y,v,q-v,R),!$)V.r=R&7|E[R/8|0]<<3,R-=7,V.h=F,V.p=G,V.i=q,V.w=S}else{for(var q=V.w||0;q<X+$;q+=65535){var BC=q+65535;if(BC>=X)E[R/8|0]=$,BC=X;R=fC(E,R+1,H.subarray(q,BC))}V.i=X}return d(Y,0,K+GC(R)+Q)},zH,TC=function(){var H=-1;return{p:function(C){var J=H;for(var K=0;K<C.length;++K)J=zH[J&255^C[K]]^J>>>8;H=J},d:function(){return~H}}},aC=function(){var H=1,C=0;return{p:function(J){var K=H,Q=C,V=J.length|0;for(var X=0;X!=V;){var Y=Math.min(X+2655,V);for(;X<Y;++X)Q+=K+=J[X];K=(K&65535)+15*(K>>16),Q=(Q&65535)+15*(Q>>16)}H=K,C=Q},d:function(){return H%=65521,C%=65521,(H&255)<<24|(H&65280)<<8|(C&255)<<8|C>>8}}},RC=function(H,C,J,K,Q){if(!Q){if(Q={l:1},C.dictionary){var V=C.dictionary.subarray(-32768),X=new Z(V.length+H.length);X.set(V),X.set(H,V.length),H=X,Q.w=V.length}}return wH(H,C.level==null?6:C.level,C.mem==null?Q.l?Math.ceil(Math.max(8,Math.min(13,Math.log(H.length)))*1.5):20:12+C.mem,J,K,Q)},yC=function(H,C){var J={};for(var K in H)J[K]=H[K];for(var K in C)J[K]=C[K];return J},qH=function(H,C,J){var K=H(),Q=H.toString(),V=Q.slice(Q.indexOf("[")+1,Q.lastIndexOf("]")).replace(/\s+/g,"").split(",");for(var X=0;X<K.length;++X){var Y=K[X],E=V[X];if(typeof Y=="function"){C+=";"+E+"=";var $=Y.toString();if(Y.prototype)if($.indexOf("[native code]")!=-1){var R=$.indexOf(" ",8)+1;C+=$.slice(R,$.indexOf("(",R))}else{C+=$;for(var N in Y.prototype)C+=";"+E+".prototype."+N+"="+Y.prototype[N].toString()}else C+=$}else J[E]=Y}return C},_C,tH=function(H){var C=[];for(var J in H)if(H[J].buffer)C.push((H[J]=new H[J].constructor(H[J])).buffer);return C},yH=function(H,C,J,K){if(!_C[J]){var Q="",V={},X=H.length-1;for(var Y=0;Y<X;++Y)Q=qH(H[Y],Q,V);_C[J]={c:qH(H[X],Q,V),e:V}}var E=yC({},_C[J].e);return sH(_C[J].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+C.toString()+"}",J,E,tH(E),K)},ZC=function(){return[Z,e,wC,PC,jC,gC,XH,IH,AH,SH,xC,gH,l,uC,c,rC,GC,d,B,zC,vC,YC,YH]},IC=function(){return[Z,e,wC,PC,jC,gC,oC,sC,UH,QC,DH,LC,xC,xH,KC,l,JC,FC,pC,nC,tC,qC,fC,CH,GC,d,wH,RC,cC,YC]},vH=function(){return[$H,NH,g,TC,zH]},kH=function(){return[RH,mH]},hH=function(){return[EH,g,aC]},_H=function(){return[WH]},YC=function(H){return postMessage(H,[H.buffer])},YH=function(H){return H&&{out:H.size&&new Z(H.size),dictionary:H.dictionary}},UC=function(H,C,J,K,Q,V){var X=yH(J,K,Q,function(Y,E){X.terminate(),V(Y,E)});return X.postMessage([H,C],C.consume?[H.buffer]:[]),function(){X.terminate()}},i=function(H){return H.ondata=function(C,J){return postMessage([C,J],[C.buffer])},function(C){if(C.data[0])H.push(C.data[0],C.data[1]),postMessage([C.data[0].length]);else H.flush(C.data[1])}},AC=function(H,C,J,K,Q,V,X){var Y,E=yH(H,K,Q,function($,R){if($)E.terminate(),C.ondata.call(C,$);else if(!Array.isArray(R))X(R);else if(R.length==1){if(C.queuedSize-=R[0],C.ondrain)C.ondrain(R[0])}else{if(R[1])E.terminate();C.ondata.call(C,$,R[0],R[1])}});if(E.postMessage(J),C.queuedSize=0,C.push=function($,R){if(!C.ondata)B(5);if(Y)C.ondata(B(4,0,1),null,!!R);C.queuedSize+=$.length,E.postMessage([$,Y=R],$.buffer instanceof ArrayBuffer?[$.buffer]:[])},C.terminate=function(){E.terminate()},V)C.flush=function($){E.postMessage([0,$])}},b=function(H,C){return H[C]|H[C+1]<<8},k=function(H,C){return(H[C]|H[C+1]<<8|H[C+2]<<16|H[C+3]<<24)>>>0},dC=function(H,C){return k(H,C)+k(H,C+4)*4294967296},g=function(H,C,J){for(;J;++C)H[C]=J,J>>>=8},$H=function(H,C){var J=C.filename;if(H[0]=31,H[1]=139,H[2]=8,H[8]=C.level<2?4:C.level==9?2:0,H[9]=3,C.mtime!=0)g(H,4,Math.floor(new Date(C.mtime||Date.now())/1000));if(J){H[3]=8;for(var K=0;K<=J.length;++K)H[K+10]=J.charCodeAt(K)}},RH=function(H){if(H[0]!=31||H[1]!=139||H[2]!=8)B(6,"invalid gzip data");var C=H[3],J=10;if(C&4)J+=(H[10]|H[11]<<8)+2;for(var K=(C>>3&1)+(C>>4&1);K>0;K-=!H[J++]);return J+(C&2)},mH=function(H){var C=H.length;return(H[C-4]|H[C-3]<<8|H[C-2]<<16|H[C-1]<<24)>>>0},NH=function(H){return 10+(H.filename?H.filename.length+1:0)},EH=function(H,C){var J=C.level,K=J==0?0:J<6?1:J==9?3:2;if(H[0]=120,H[1]=K<<6|(C.dictionary&&32),H[1]|=31-(H[0]<<8|H[1])%31,C.dictionary){var Q=aC();Q.p(C.dictionary),g(H,2,Q.d())}},WH=function(H,C){if((H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31)B(6,"invalid zlib data");if((H[1]>>5&1)==+!C)B(6,"invalid zlib data: "+(H[1]&32?"need":"unexpected")+" dictionary");return(H[1]>>3&4)+2},t,CJ,a,uH,OH,NJ,HH,JJ,MH,WJ,KH,QJ,jH,FJ,BH=function(H,C,J,K){for(var Q in H){var V=H[Q],X=C+Q,Y=K;if(Array.isArray(V))Y=yC(K,V[1]),V=V[0];if(ArrayBuffer.isView(V))J[X]=[V,Y];else J[X+="/"]=[new Z(0),Y],BH(V,X,J,K)}},GH,VH,pH=0,oH=function(H){for(var C="",J=0;;){var K=H[J++],Q=(K>127)+(K>223)+(K>239);if(J+Q>H.length)return{s:C,r:d(H,J-1)};if(!Q)C+=String.fromCharCode(K);else if(Q==3)K=((K&15)<<18|(H[J++]&63)<<12|(H[J++]&63)<<6|H[J++]&63)-65536,C+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Q&1)C+=String.fromCharCode((K&31)<<6|H[J++]&63);else C+=String.fromCharCode((K&15)<<12|(H[J++]&63)<<6|H[J++]&63)}},LJ,MJ,bH=function(H){return H==1?3:H<6?2:H==9?1:0},eH=function(H,C){return C+30+b(H,C+26)+b(H,C+28)},fH=function(H,C,J){var K=b(H,C+28),Q=b(H,C+30),V=nH(H.subarray(C+46,C+46+K),!(b(H,C+8)&2048)),X=C+46+K,Y=aH(H,X,Q,J,k(H,C+20),k(H,C+24),k(H,C+42)),E=Y[0],$=Y[1],R=Y[2];return[b(H,C+10),E,$,V,X+Q+b(H,C+32),R]},aH=function(H,C,J,K,Q,V,X){var Y=Q==4294967295,E=V==4294967295,$=X==4294967295,R=C+J,N=Y+E+$;if(K&&N){for(;C+4<R;C+=4+b(H,C+2))if(b(H,C)==1)return[Y?dC(H,C+4+8*E):Q,E?dC(H,C+4):V,$?dC(H,C+4+8*(E+Y)):X,1];if(K<2)B(13)}return[Q,V,X,0]},XC=function(H){var C=0;if(H)for(var J in H){var K=H[J].length;if(K>65535)B(9);C+=K+4}return C},MC=function(H,C,J,K,Q,V,X,Y){var E=K.length,$=J.extra,R=Y&&Y.length,N=XC($);if(g(H,C,X!=null?33639248:67324752),C+=4,X!=null)H[C++]=20,H[C++]=J.os;H[C]=20,C+=2,H[C++]=J.flag<<1|(V<0&&8),H[C++]=Q&&8,H[C++]=J.compression&255,H[C++]=J.compression>>8;var W=new Date(J.mtime==null?Date.now():J.mtime),T=W.getFullYear()-1980;if(T<0||T>119)B(10);if(g(H,C,T<<25|W.getMonth()+1<<21|W.getDate()<<16|W.getHours()<<11|W.getMinutes()<<5|W.getSeconds()>>1),C+=4,V!=-1)g(H,C,J.crc),g(H,C+4,V<0?-V-2:V),g(H,C+8,J.size);if(g(H,C+12,E),g(H,C+14,N),C+=16,X!=null)g(H,C,R),g(H,C+6,J.attrs),g(H,C+10,X),C+=14;if(H.set(K,C),C+=E,N)for(var M in $){var G=$[M],F=G.length;g(H,C,+M),g(H,C+2,F),H.set(G,C+4),C+=4+F}if(R)H.set(Y,C),C+=R;return C},FH=function(H,C,J,K,Q){g(H,C,101010256),g(H,C+8,J),g(H,C+10,J),g(H,C+12,K),g(H,C+16,Q)},bC,PJ,jJ,GJ,XJ,IJ,UJ,AJ,eC;var YJ=cH(()=>{dH=lH("/");try{OC=dH("worker_threads"),mC=OC.Worker,iC=OC.isMarkedAsUntransferable}catch(H){}sH=mC?function(H,C,J,K,Q){var V=!1,X=new mC(H+iH,{eval:!0}).on("error",function(Y){return Q(Y,null)}).on("message",function(Y){return Q(null,Y)}).on("exit",function(Y){if(Y&&!V)Q(Error("exited with code "+Y),null)});if(iC)K=K.filter(function(Y){return!iC(Y)});return X.postMessage(J,K),X.terminate=function(){return V=!0,mC.prototype.terminate.call(X)},X}:function(H,C,J,K,Q){setImmediate(function(){return Q(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var V=function(){};return{terminate:V,postMessage:V}},Z=Uint8Array,e=Uint16Array,wC=Int32Array,PC=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jC=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gC=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),OC=TH(PC,2),XH=OC.b,oC=OC.r;XH[28]=258,oC[258]=28;ZH=TH(jC,0),IH=ZH.b,sC=ZH.r,xC=new e(32768);for(I=0;I<32768;++I)HC=(I&43690)>>1|(I&21845)<<1,HC=(HC&52428)>>2|(HC&13107)<<2,HC=(HC&61680)>>4|(HC&3855)<<4,xC[I]=((HC&65280)>>8|(HC&255)<<8)>>1;QC=new Z(288);for(I=0;I<144;++I)QC[I]=8;for(I=144;I<256;++I)QC[I]=9;for(I=256;I<280;++I)QC[I]=7;for(I=280;I<288;++I)QC[I]=8;LC=new Z(32);for(I=0;I<32;++I)LC[I]=5;UH=l(QC,9,0),AH=l(QC,9,1),DH=l(LC,5,0),SH=l(LC,5,1),RJ={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},gH=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],xH=new wC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),KC=new Z(0),zH=function(){var H=new Int32Array(256);for(var C=0;C<256;++C){var J=C,K=9;while(--K)J=(J&1&&-306674912)^J>>>1;H[C]=J}return H}(),_C=[];t=function(){function H(C,J){if(typeof C=="function")J=C,C={};if(this.ondata=J,this.o=C||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Z(98304),this.o.dictionary){var K=this.o.dictionary.subarray(-32768);this.b.set(K,32768-K.length),this.s.i=32768-K.length}}return H.prototype.p=function(C,J){this.ondata(RC(C,this.o,0,0,this.s),J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.s.l)B(4);var K=C.length+this.s.z;if(K>this.b.length){if(K>2*this.b.length-32768){var Q=new Z(K&-32768);Q.set(this.b.subarray(0,this.s.z)),this.b=Q}var V=this.b.length-this.s.z;this.b.set(C.subarray(0,V),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(C.subarray(V),32768),this.s.z=C.length-V+32768,this.s.i=32766,this.s.w=32768}else this.b.set(C,this.s.z),this.s.z+=C.length;if(this.s.l=J&1,this.s.z>this.s.w+8191||J)this.p(this.b,J||!1),this.s.w=this.s.i,this.s.i-=2;if(J)this.s=this.o={},this.b=KC},H.prototype.flush=function(C){if(!this.ondata)B(5);if(this.s.l)B(4);if(this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,C){var J=new Z(6);J[0]=this.s.r>>3;var K=fC(J,this.s.r,KC);this.s.r=0,this.ondata(J.subarray(0,K>>3),!1)}},H}(),CJ=function(){function H(C,J){AC([IC,function(){return[i,t]}],this,NC.call(this,C,J),function(K){var Q=new t(K.data);onmessage=i(Q)},6,1)}return H}();a=function(){function H(C,J){if(typeof C=="function")J=C,C={};this.ondata=J;var K=C&&C.dictionary&&C.dictionary.subarray(-32768);if(this.s={i:0,b:K?K.length:0},this.o=new Z(32768),this.p=new Z(0),K)this.o.set(K)}return H.prototype.e=function(C){if(!this.ondata)B(5);if(this.d)B(4);if(!this.p.length)this.p=C;else if(C.length){var J=new Z(this.p.length+C.length);J.set(this.p),J.set(C,this.p.length),this.p=J}},H.prototype.c=function(C){this.s.i=+(this.d=C||!1);var J=this.s.b,K=zC(this.p,this.s,this.o);this.ondata(d(K,J,this.s.b),this.d),this.o=d(K,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},H.prototype.push=function(C,J){this.e(C),this.c(J)},H}(),uH=function(){function H(C,J){AC([ZC,function(){return[i,a]}],this,NC.call(this,C,J),function(K){var Q=new a(K.data);onmessage=i(Q)},7,0)}return H}();OH=function(){function H(C,J){this.c=TC(),this.l=0,this.v=1,t.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),this.l+=C.length,t.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&NH(this.o),J&&8,this.s);if(this.v)$H(K,this.o),this.v=0;if(J)g(K,K.length-8,this.c.d()),g(K,K.length-4,this.l);this.ondata(K,J)},H.prototype.flush=function(C){t.prototype.flush.call(this,C)},H}(),NJ=function(){function H(C,J){AC([IC,vH,function(){return[i,t,OH]}],this,NC.call(this,C,J),function(K){var Q=new OH(K.data);onmessage=i(Q)},8,1)}return H}();HH=function(){function H(C,J){this.v=1,this.r=0,a.call(this,C,J)}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.r+=C.length,this.v){var K=this.p.subarray(this.v-1),Q=K.length>3?RH(K):4;if(Q>K.length){if(!J)return}else if(this.v>1&&this.onmember)this.onmember(this.r-K.length);this.p=K.subarray(Q),this.v=0}if(a.prototype.c.call(this,0),this.s.f&&!this.s.l)this.v=GC(this.s.p)+9,this.s={i:0},this.o=new Z(0),this.push(new Z(0),J);else if(J)a.prototype.c.call(this,J)},H}(),JJ=function(){function H(C,J){var K=this;AC([ZC,kH,function(){return[i,a,HH]}],this,NC.call(this,C,J),function(Q){var V=new HH(Q.data);V.onmember=function(X){return postMessage(X)},onmessage=i(V)},9,0,function(Q){return K.onmember&&K.onmember(Q)})}return H}();MH=function(){function H(C,J){this.c=aC(),this.v=1,t.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),t.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&(this.o.dictionary?6:2),J&&4,this.s);if(this.v)EH(K,this.o),this.v=0;if(J)g(K,K.length-4,this.c.d());this.ondata(K,J)},H.prototype.flush=function(C){t.prototype.flush.call(this,C)},H}(),WJ=function(){function H(C,J){AC([IC,hH,function(){return[i,t,MH]}],this,NC.call(this,C,J),function(K){var Q=new MH(K.data);onmessage=i(Q)},10,1)}return H}();KH=function(){function H(C,J){a.call(this,C,J),this.v=C&&C.dictionary?2:1}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.v){if(this.p.length<6&&!J)return;this.p=this.p.subarray(WH(this.p,this.v-1)),this.v=0}if(J){if(this.p.length<4)B(6,"invalid zlib data");this.p=this.p.subarray(0,-4)}a.prototype.c.call(this,J)},H}(),QJ=function(){function H(C,J){AC([ZC,_H,function(){return[i,a,KH]}],this,NC.call(this,C,J),function(K){var Q=new KH(K.data);onmessage=i(Q)},11,0)}return H}();jH=function(){function H(C,J){this.o=NC.call(this,C,J)||{},this.G=HH,this.I=a,this.Z=KH}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K){C.ondata(J,K)}},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(!this.s){if(this.p&&this.p.length){var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length)}else this.p=C;if(this.p.length>2)this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,J),this.p=null}else this.s.push(C,J)},H}(),FJ=function(){function H(C,J){jH.call(this,C,J),this.queuedSize=0,this.G=JJ,this.I=uH,this.Z=QJ}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K,Q){C.ondata(J,K,Q)},this.s.ondrain=function(J){if(C.queuedSize-=J,C.ondrain)C.ondrain(J)}},H.prototype.push=function(C,J){this.queuedSize+=C.length,jH.prototype.push.call(this,C,J)},H}();GH=typeof TextEncoder<"u"&&new TextEncoder,VH=typeof TextDecoder<"u"&&new TextDecoder;try{VH.decode(KC,{stream:!0}),pH=1}catch(H){}LJ=function(){function H(C){if(this.ondata=C,pH)this.t=new TextDecoder;else this.p=KC}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(J=!!J,this.t){if(this.ondata(this.t.decode(C,{stream:!0}),J),J){if(this.t.decode().length)B(8);this.t=null}return}if(!this.p)B(4);var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length);var Q=oH(K),V=Q.s,X=Q.r;if(J){if(X.length)B(8);this.p=null}else this.p=X;this.ondata(V,J)},H}(),MJ=function(){function H(C){this.ondata=C}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.d)B(4);this.ondata($C(C),this.d=J||!1)},H}();bC=function(){function H(C){this.filename=C,this.c=TC(),this.size=0,this.compression=0}return H.prototype.process=function(C,J){this.ondata(null,C,J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.c.p(C),this.size+=C.length,J)this.crc=this.c.d();this.process(C,J||!1)},H}(),PJ=function(){function H(C,J){var K=this;if(!J)J={};bC.call(this,C),this.d=new t(J,function(Q,V){K.ondata(null,Q,V)}),this.compression=8,this.flag=bH(J.level)}return H.prototype.process=function(C,J){try{this.d.push(C,J)}catch(K){this.ondata(K,null,J)}},H.prototype.push=function(C,J){bC.prototype.push.call(this,C,J)},H}(),jJ=function(){function H(C,J){var K=this;if(!J)J={};bC.call(this,C),this.d=new CJ(J,function(Q,V,X){K.ondata(Q,V,X)}),this.compression=8,this.flag=bH(J.level),this.terminate=this.d.terminate}return H.prototype.process=function(C,J){this.d.push(C,J)},H.prototype.push=function(C,J){bC.prototype.push.call(this,C,J)},H}(),GJ=function(){function H(C){this.ondata=C,this.u=[],this.d=1}return H.prototype.add=function(C){var J=this;if(!this.ondata)B(5);if(this.d&2)this.ondata(B(4+(this.d&1)*8,0,1),null,!1);else{var K=$C(C.filename),Q=K.length,V=C.comment,X=V&&$C(V),Y=Q!=C.filename.length||X&&V.length!=X.length,E=Q+XC(C.extra)+30;if(Q>65535)this.ondata(B(11,0,1),null,!1);var $=new Z(E);MC($,0,C,K,Y,-1);var R=[$],N=function(){for(var F=0,P=R;F<P.length;F++){var U=P[F];J.ondata(null,U,!1)}R=[]},W=this.d;this.d=0;var T=this.u.length,M=yC(C,{f:K,u:Y,o:X,t:function(){if(C.terminate)C.terminate()},r:function(){if(N(),W){var F=J.u[T+1];if(F)F.r();else J.d=1}W=1}}),G=0;C.ondata=function(F,P,U){if(F)J.ondata(F,P,U),J.terminate();else if(G+=P.length,R.push(P),U){var j=new Z(16);if(g(j,0,134695760),g(j,4,C.crc),g(j,8,G),g(j,12,C.size),R.push(j),M.c=G,M.b=E+G+16,M.crc=C.crc,M.size=C.size,W)M.r();W=1}else if(W)N()},this.u.push(M)}},H.prototype.end=function(){var C=this;if(this.d&2){this.ondata(B(4+(this.d&1)*8,0,1),null,!0);return}if(this.d)this.e();else this.u.push({r:function(){if(!(C.d&1))return;C.u.splice(-1,1),C.e()},t:function(){}});this.d=3},H.prototype.e=function(){var C=0,J=0,K=0;for(var Q=0,V=this.u;Q<V.length;Q++){var X=V[Q];K+=46+X.f.length+XC(X.extra)+(X.o?X.o.length:0)}var Y=new Z(K+22);for(var E=0,$=this.u;E<$.length;E++){var X=$[E];MC(Y,C,X,X.f,X.u,-X.c-2,J,X.o),C+=46+X.f.length+XC(X.extra)+(X.o?X.o.length:0),J+=X.b}FH(Y,C,this.u.length,K,J),this.ondata(null,Y,!0),this.d=2},H.prototype.terminate=function(){for(var C=0,J=this.u;C<J.length;C++){var K=J[C];K.t()}this.d=2},H}();XJ=function(){function H(){}return H.prototype.push=function(C,J){this.ondata(null,C,J)},H.compression=0,H}(),IJ=function(){function H(){var C=this;this.i=new a(function(J,K){C.ondata(null,J,K)})}return H.prototype.push=function(C,J){try{this.i.push(C,J)}catch(K){this.ondata(K,null,J)}},H.compression=8,H}(),UJ=function(){function H(C,J){var K=this;if(J<320000)this.i=new a(function(Q,V){K.ondata(null,Q,V)});else this.i=new uH(function(Q,V,X){K.ondata(Q,V,X)}),this.terminate=this.i.terminate}return H.prototype.push=function(C,J){if(this.i.terminate)C=d(C,0);this.i.push(C,J)},H.compression=8,H}(),AJ=function(){function H(C){this.onfile=C,this.k=[],this.o={0:XJ},this.p=KC}return H.prototype.push=function(C,J){var K=this;if(!this.onfile)B(5);if(!this.p)B(4);if(this.c>0){var Q=Math.min(this.c,C.length),V=C.subarray(0,Q);if(this.c-=Q,this.d)this.d.push(V,!this.c);else this.k[0].push(V);if(C=C.subarray(Q),C.length)return this.push(C,J)}else{var X=0,Y=0,E=void 0,$=void 0;if(!this.p.length)$=C;else if(!C.length)$=this.p;else $=new Z(this.p.length+C.length),$.set(this.p),$.set(C,this.p.length);var R=$.length,N=this.c,W=N&&this.d,T=function(){var P=k($,Y);if(P==67324752){X=1,E=Y,M.d=null,M.c=0;var U=b($,Y+6),j=b($,Y+8),O=U&2048,x=U&8,z=b($,Y+26),A=b($,Y+28);if(R>Y+30+z+A){var L=[];M.k.unshift(L),X=2;var q=k($,Y+18),y=k($,Y+22),S=nH($.subarray(Y+30,Y+=30+z),!O),v=aH($,Y,A,2,q,y,0),r=v[0],h=v[1],m=v[3];if(x)r=-1-m;Y+=A,M.c=r;var w,D={name:S,compression:j,start:function(){if(!D.ondata)B(5);if(!r)D.ondata(null,KC,!0);else{var p=K.o[j];if(!p)D.ondata(B(14,"unknown compression type "+j,1),null,!1);w=r<0?new p(S):new p(S,r,h),w.ondata=function(s,o,n){D.ondata(s,o,n)};for(var u=0,VC=L;u<VC.length;u++){var f=VC[u];w.push(f,!1)}if(K.k[0]==L&&K.c)K.d=w;else w.push(KC,!0)}},terminate:function(){if(w&&w.terminate)w.terminate()}};if(r>=0)D.size=r,D.originalSize=h;M.onfile(D)}return"break"}else if(N){if(P==134695760)return E=Y+=12+(N==-2&&8),X=3,M.c=0,"break";else if(P==33639248)return E=Y-=4,X=3,M.c=0,"break"}},M=this;for(;Y<R-4;++Y){var G=T();if(G==="break")break}if(this.p=KC,N<0){var F=X?$.subarray(0,E-12-(N==-2&&8)-(k($,E-16)==134695760&&4)):$.subarray(0,Y);if(W)W.push(F,!!X);else this.k[+(X==2)].push(F)}if(X&2)return this.push($.subarray(Y),J);this.p=$.subarray(Y)}if(J){if(this.c)B(13);this.p=null}},H.prototype.register=function(C){this.o[C.compression]=C},H}(),eC=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(H){H()}});YJ();export{PH as zlibSync,BJ as zlib,ZJ as zipSync,TJ as zip,QH as unzlibSync,VJ as unzlib,SJ as unzipSync,DJ as unzip,$C as strToU8,nH as strFromU8,vC as inflateSync,rH as inflate,LH as gzipSync,EJ as gzip,JH as gunzipSync,KJ as gunzip,cC as deflateSync,HJ as deflate,OJ as decompressSync,qJ as decompress,LH as compressSync,EJ as compress,MH as Zlib,bC as ZipPassThrough,PJ as ZipDeflate,GJ as Zip,KH as Unzlib,XJ as UnzipPassThrough,IJ as UnzipInflate,AJ as Unzip,a as Inflate,OH as Gzip,HH as Gunzip,RJ as FlateErrorCode,MJ as EncodeUTF8,t as Deflate,jH as Decompress,LJ as DecodeUTF8,OH as Compress,WJ as AsyncZlib,jJ as AsyncZipDeflate,QJ as AsyncUnzlib,UJ as AsyncUnzipInflate,uH as AsyncInflate,NJ as AsyncGzip,JJ as AsyncGunzip,CJ as AsyncDeflate,FJ as AsyncDecompress,NJ as AsyncCompress};
@@ -1 +0,0 @@
1
- import{a7 as a}from"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-6bdrnprg.mjs";export default a();
@@ -1,2 +0,0 @@
1
- import{A7 as hs,B7 as G,C7 as tt,D7 as pr,E7 as _r,G7 as Er,H7 as Sr,I7 as Rr,J7 as xr,K7 as vr,L7 as Kt,M7 as kt,N7 as er,O7 as Ur,P7 as Mr,p7 as F,q7 as Nr,r7 as Dr,s7 as br,t7 as Ge,u7 as Zt,v7 as Et,w7 as $r,x7 as Is,y7 as Ar,z7 as Fr}from"./cli-0.6.12-zys3gk6x.mjs";import{Q7 as ps}from"./cli-0.6.12-7g6v5zs9.mjs";import{R7 as we}from"./cli-0.6.12-y22js5cj.mjs";import{Gpa as dr,Hpa as Z,Ipa as Ce}from"./cli-0.6.12-75ddftht.mjs";import{Jpa as ir}from"./cli-0.6.12-mxrs3myx.mjs";import{Lpa as Xe}from"./cli-0.6.12-ndg5saae.mjs";import{Rpa as ge,Tpa as S,Vpa as no,Wpa as X}from"./cli-0.6.12-6bdrnprg.mjs";var De=S((Zs)=>{var Ls=Z(),Ts=F(),p=Ce(),w=we(),zs=X("node:fs"),Hs=({logger:e,signingName:s}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!s)throw new p.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let t=Ts.getBearerTokenEnvKey(s);if(!(t in process.env))throw new p.TokenProviderError(`Token not present in '${t}' environment variable`,{logger:e});let o={token:process.env[t]};return Ls.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},Vs=300000,K="To refresh this SSO session run 'aws sso login' with the corresponding profile.",Bs=async(e,s={},t)=>{let{SSOOIDCClient:o}=await import("./index-0.6.12-ctpn09qp.mjs").then((m)=>ge(m.default)),r=(c)=>s.clientConfig?.[c]??s.parentClientConfig?.[c]??t?.[c];return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:r("logger"),userAgentAppId:r("userAgentAppId")}))},Ys=async(e,s,t={},o)=>{let{CreateTokenCommand:r}=await import("./index-0.6.12-ctpn09qp.mjs").then((m)=>ge(m.default));return(await Bs(s,t,o)).send(new r({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},Pe=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new p.TokenProviderError(`Token is expired. ${K}`,!1)},h=(e,s,t=!1)=>{if(typeof s>"u")throw new p.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${K}`,!1)},{writeFile:Qs}=zs.promises,Js=(e,s)=>{let t=w.getSSOTokenFilepath(e),o=JSON.stringify(s,null,2);return Qs(t,o)},ye=new Date(0),Ne=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let t=await w.parseKnownFiles(e),o=w.getProfileName({profile:e.profile??s?.profile}),r=t[o];if(!r)throw new p.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new p.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`);let n=r.sso_session,_=(await w.loadSsoSessionData(e))[n];if(!_)throw new p.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let a of["sso_start_url","sso_region"])if(!_[a])throw new p.TokenProviderError(`Sso session '${n}' is missing required property '${a}'.`,!1);_.sso_start_url;let d=_.sso_region,l;try{l=await w.getSSOTokenFromFile(n)}catch(a){throw new p.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${K}`,!1)}h("accessToken",l.accessToken),h("expiresAt",l.expiresAt);let{accessToken:u,expiresAt:C}=l,x={token:u,expiration:new Date(C)};if(x.expiration.getTime()-Date.now()>Vs)return x;if(Date.now()-ye.getTime()<30000)return Pe(x),x;h("clientId",l.clientId,!0),h("clientSecret",l.clientSecret,!0),h("refreshToken",l.refreshToken,!0);try{ye.setTime(Date.now());let a=await Ys(l,d,e,s);h("accessToken",a.accessToken),h("expiresIn",a.expiresIn);let v=new Date(Date.now()+a.expiresIn*1000);try{await Js(n,{...l,accessToken:a.accessToken,expiresAt:v.toISOString(),refreshToken:a.refreshToken})}catch(J){}return{token:a.accessToken,expiration:v}}catch(a){return Pe(x),x}},Ws=({token:e,logger:s})=>async()=>{if(s?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new p.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},Xs=(e={})=>p.memoize(p.chain(Ne(e),async()=>{throw new p.TokenProviderError("Could not load token from any providers",!1)}),(s)=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<300000,(s)=>s.expiration!==void 0);Zs.fromEnvSigningName=Hs;Zs.fromSso=Ne;Zs.fromStatic=Ws;Zs.nodeProvider=Xs});var ee=S((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.resolveHttpAuthSchemeConfig=be.defaultSSOHttpAuthSchemeProvider=be.defaultSSOHttpAuthSchemeParametersProvider=void 0;var rt=F(),k=tt(),ot=async(e,s,t)=>{return{operation:(0,k.getSmithyContext)(s).operation,region:await(0,k.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};be.defaultSSOHttpAuthSchemeParametersProvider=ot;function nt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}}function at(e){return{schemeId:"smithy.api#noAuth"}}var ct=(e)=>{let s=[];switch(e.operation){case"GetRoleCredentials":{s.push(at(e));break}default:s.push(nt(e))}return s};be.defaultSSOHttpAuthSchemeProvider=ct;var lt=(e)=>{let s=(0,rt.resolveAwsSdkSigV4Config)(e);return Object.assign(s,{authSchemePreference:(0,k.normalizeProvider)(e.authSchemePreference??[])})};be.resolveHttpAuthSchemeConfig=lt});var Te=S((je)=>{Object.defineProperty(je,"__esModule",{value:!0});je.bdd=void 0;var dt=Ge(),N="ref",f=-1,U=!0,Ae="isSet",me="PartitionResult",M="booleanEquals",se="getAttr",Fe={[N]:"Endpoint"},te={[N]:me},g={},Ue=[{[N]:"Region"}],Me={conditions:[[Ae,[Fe]],[Ae,Ue],["aws.partition",Ue,me],[M,[{[N]:"UseFIPS"},U]],[M,[{[N]:"UseDualStack"},U]],[M,[{fn:se,argv:[te,"supportsDualStack"]},U]],[M,[{fn:se,argv:[te,"supportsFIPS"]},U]],["stringEquals",[{fn:se,argv:[te,"name"]},"aws-us-gov"]]],results:[[f],[f,"Invalid Configuration: FIPS and custom endpoint are not supported"],[f,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Fe,g],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",g],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",g],[f,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",g],[f,"Invalid Configuration: Missing Region"]]},pt=2,i=1e8,_t=new Int32Array([-1,1,-1,0,13,3,1,4,i+12,2,5,i+12,3,8,6,4,7,i+11,5,i+9,i+10,4,11,9,6,10,i+8,7,i+6,i+7,5,12,i+5,6,i+4,i+5,3,i+1,14,4,i+2,i+3]);je.bdd=dt.BinaryDecisionDiagram.from(_t,pt,Me.conditions,Me.results)});var Ve=S((ze)=>{Object.defineProperty(ze,"__esModule",{value:!0});ze.defaultEndpointResolver=void 0;var St=Et(),re=Ge(),Rt=Te(),xt=new re.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vt=(e,s={})=>{return xt.get(e,()=>(0,re.decideEndpoint)(Rt.bdd,{endpointParams:e,logger:s.logger}))};ze.defaultEndpointResolver=vt;re.customEndpointFunctions.aws=St.awsEndpointFunctions});var m=S((ne)=>{Object.defineProperty(ne,"__esModule",{value:!0});ne.SSOServiceException=ne.__ServiceException=void 0;var Be=G();Object.defineProperty(ne,"__ServiceException",{enumerable:!0,get:function(){return Be.ServiceException}});class oe extends Be.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,oe.prototype)}}ne.SSOServiceException=oe});var ie=S((Qe)=>{Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UnauthorizedException=Qe.TooManyRequestsException=Qe.ResourceNotFoundException=Qe.InvalidRequestException=void 0;var j=m();class ae extends j.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,ae.prototype)}}Qe.InvalidRequestException=ae;class ce extends j.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ce.prototype)}}Qe.ResourceNotFoundException=ce;class le extends j.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}Qe.TooManyRequestsException=le;class ue extends j.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}Qe.UnauthorizedException=ue});var de=S((es)=>{Object.defineProperty(es,"__esModule",{value:!0});es.GetRoleCredentials$=es.RoleCredentials$=es.GetRoleCredentialsResponse$=es.GetRoleCredentialsRequest$=es.errorTypeRegistries=es.UnauthorizedException$=es.TooManyRequestsException$=es.ResourceNotFoundException$=es.InvalidRequestException$=es.SSOServiceException$=void 0;var ft="AccessTokenType",qt="GetRoleCredentials",Pt="GetRoleCredentialsRequest",yt="GetRoleCredentialsResponse",gt="InvalidRequestException",Ct="RoleCredentials",wt="ResourceNotFoundException",Nt="SecretAccessKeyType",Dt="SessionTokenType",bt="TooManyRequestsException",$t="UnauthorizedException",At="accountId",Ft="accessKeyId",Ut="accessToken",Mt="account_id",L="client",T="error",Gt="expiration",mt="http",z="httpError",jt="httpHeader",We="httpQuery",H="message",Lt="roleCredentials",Tt="roleName",zt="role_name",Ze="smithy.ts.sdk.synthetic.com.amazonaws.sso",Ht="secretAccessKey",Vt="sessionToken",Bt="x-amz-sso_bearer_token",E="com.amazonaws.sso",Ke=Xe(),V=ie(),Yt=m(),ke=Ke.TypeRegistry.for(Ze);es.SSOServiceException$=[-3,Ze,"SSOServiceException",0,[],[]];ke.registerError(es.SSOServiceException$,Yt.SSOServiceException);var D=Ke.TypeRegistry.for(E);es.InvalidRequestException$=[-3,E,gt,{[T]:L,[z]:400},[H],[0]];D.registerError(es.InvalidRequestException$,V.InvalidRequestException);es.ResourceNotFoundException$=[-3,E,wt,{[T]:L,[z]:404},[H],[0]];D.registerError(es.ResourceNotFoundException$,V.ResourceNotFoundException);es.TooManyRequestsException$=[-3,E,bt,{[T]:L,[z]:429},[H],[0]];D.registerError(es.TooManyRequestsException$,V.TooManyRequestsException);es.UnauthorizedException$=[-3,E,$t,{[T]:L,[z]:401},[H],[0]];D.registerError(es.UnauthorizedException$,V.UnauthorizedException);es.errorTypeRegistries=[ke,D];var Qt=[0,E,ft,8,0],Jt=[0,E,Nt,8,0],Wt=[0,E,Dt,8,0];es.GetRoleCredentialsRequest$=[3,E,Pt,0,[Tt,At,Ut],[[0,{[We]:zt}],[0,{[We]:Mt}],[()=>Qt,{[jt]:Bt}]],3];es.GetRoleCredentialsResponse$=[3,E,yt,0,[Lt],[[()=>es.RoleCredentials$,0]]];es.RoleCredentials$=[3,E,Ct,0,[Ft,Ht,Vt,Gt],[0,[()=>Jt,0],[()=>Wt,0],1]];es.GetRoleCredentials$=[9,E,qt,{[mt]:["GET","/federation/credentials",200]},()=>es.GetRoleCredentialsRequest$,()=>es.GetRoleCredentialsResponse$]});var Ss=S((_s)=>{Object.defineProperty(_s,"__esModule",{value:!0});_s.getRuntimeConfig=void 0;var sr=F(),tr=kt(),rr=ps(),or=G(),nr=Zt(),is=er(),ds=Kt(),ar=ee(),cr=Ve(),lr=de(),ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??is.fromBase64,base64Encoder:e?.base64Encoder??is.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??cr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ar.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new sr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new rr.NoAuthSigner}],logger:e?.logger??new or.NoOpLogger,protocol:e?.protocol??tr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:lr.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??nr.parseUrl,utf8Decoder:e?.utf8Decoder??ds.fromUtf8,utf8Encoder:e?.utf8Encoder??ds.toUtf8}};_s.getRuntimeConfig=ur});var Ps=S((fs)=>{Object.defineProperty(fs,"__esModule",{value:!0});fs.getRuntimeConfig=void 0;var Or=pr(),Ir=Or.__importDefault(_r()),hr=Z(),fr=F(),Rs=Er(),B=Is(),qr=Sr(),xs=hs(),q=Rr(),vs=ir(),Os=G(),Pr=xr(),yr=vr(),gr=dr(),Cr=Ss(),wr=(e)=>{(0,Os.emitWarningIfUnsupportedVersion)(process.version);let s=(0,yr.resolveDefaultsModeConfig)(e),t=()=>s().then(Os.loadConfigsForDefaultMode),o=(0,Cr.getRuntimeConfig)(e);(0,hr.emitWarningIfUnsupportedVersion)(process.version);let r={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:s,authSchemePreference:e?.authSchemePreference??(0,q.loadConfig)(fr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,r),bodyLengthChecker:e?.bodyLengthChecker??Pr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Rs.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:Ir.default.version}),maxAttempts:e?.maxAttempts??(0,q.loadConfig)(xs.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,q.loadConfig)(B.NODE_REGION_CONFIG_OPTIONS,{...B.NODE_REGION_CONFIG_FILE_OPTIONS,...r}),requestHandler:vs.NodeHttpHandler.create(e?.requestHandler??t),retryMode:e?.retryMode??(0,q.loadConfig)({...xs.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||gr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??qr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??vs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,q.loadConfig)(B.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,r),useFipsEndpoint:e?.useFipsEndpoint??(0,q.loadConfig)(B.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,r),userAgentAppId:e?.userAgentAppId??(0,q.loadConfig)(Rs.NODE_APP_ID_CONFIG_OPTIONS,r)}};fs.getRuntimeConfig=wr});var $s=S((O)=>{var ys=Nr(),Gr=Dr(),mr=br(),gs=$r(),jr=Is(),pe=ps(),Lr=Xe(),Tr=Ar(),bs=Fr(),Cs=hs(),P=G(),ws=ee(),zr=Ps(),Ns=Ur(),Ds=Mr(),b=de(),Y=ie(),Hr=m(),Vr=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Br={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Yr=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:t,credentials:o}=e;return{setHttpAuthScheme(r){let n=s.findIndex((c)=>c.schemeId===r.schemeId);if(n===-1)s.push(r);else s.splice(n,1,r)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){o=r},credentials(){return o}}},Qr=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},Jr=(e,s)=>{let t=Object.assign(Ns.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),Ds.getHttpHandlerExtensionConfiguration(e),Yr(e));return s.forEach((o)=>o.configure(t)),Object.assign(e,Ns.resolveAwsRegionExtensionConfiguration(t),P.resolveDefaultRuntimeConfig(t),Ds.resolveHttpHandlerRuntimeConfig(t),Qr(t))};class _e extends P.Client{config;constructor(...[e]){let s=zr.getRuntimeConfig(e||{});super(s);this.initConfig=s;let t=Vr(s),o=gs.resolveUserAgentConfig(t),r=Cs.resolveRetryConfig(o),n=jr.resolveRegionConfig(r),c=ys.resolveHostHeaderConfig(n),_=bs.resolveEndpointConfig(c),d=ws.resolveHttpAuthSchemeConfig(_),l=Jr(d,e?.extensions||[]);this.config=l,this.middlewareStack.use(Lr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(gs.getUserAgentPlugin(this.config)),this.middlewareStack.use(Cs.getRetryPlugin(this.config)),this.middlewareStack.use(Tr.getContentLengthPlugin(this.config)),this.middlewareStack.use(ys.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Gr.getLoggerPlugin(this.config)),this.middlewareStack.use(mr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(pe.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ws.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(u)=>new pe.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(pe.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Ee extends P.Command.classBuilder().ep(Br).m(function(e,s,t,o){return[bs.getEndpointPlugin(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(b.GetRoleCredentials$).build(){}var Wr={GetRoleCredentialsCommand:Ee};class Se extends _e{}P.createAggregatedClient(Wr,Se);O.$Command=P.Command;O.__Client=P.Client;O.SSOServiceException=Hr.SSOServiceException;O.GetRoleCredentialsCommand=Ee;O.SSO=Se;O.SSOClient=_e;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=b[e]});Object.prototype.hasOwnProperty.call(Y,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:Y.__proto__});Object.keys(Y).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=Y[e]})});var Fs=S((to)=>{var As=$s();to.GetRoleCredentialsCommand=As.GetRoleCredentialsCommand;to.SSOClient=As.SSOClient});var R,Q,Us,ao,Gs=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),$=!1,Ms=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:t,ssoRegion:o,ssoRoleName:r,ssoClient:n,clientConfig:c,parentClientConfig:_,callerClientConfig:d,profile:l,filepath:u,configFilepath:C,ignoreCache:x,logger:a})=>{let v,J="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let I=await ao.fromSso({profile:l,filepath:u,configFilepath:C,ignoreCache:x})();v={accessToken:I.token,expiresAt:new Date(I.expiration).toISOString()}}catch(I){throw new R.CredentialsProviderError(I.message,{tryNextLink:$,logger:a})}else try{v=await Q.getSSOTokenFromFile(e)}catch(I){throw new R.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a})}if(new Date(v.expiresAt).getTime()-Date.now()<=0)throw new R.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a});let{accessToken:Re}=v,{SSOClient:y,GetRoleCredentialsCommand:A}=await Promise.resolve().then(function(){return Fs()}),js=n||new y(Object.assign({},c??{},{logger:c?.logger??d?.logger??_?.logger,region:c?.region??o,userAgentAppId:c?.userAgentAppId??d?.userAgentAppId??_?.userAgentAppId})),xe;try{xe=await js.send(new A({accountId:t,roleName:r,accessToken:Re}))}catch(I){throw new R.CredentialsProviderError(I,{tryNextLink:$,logger:a})}let{roleCredentials:{accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:he,credentialScope:fe,accountId:qe}={}}=xe;if(!ve||!Oe||!Ie||!he)throw new R.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:$,logger:a});let W={accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:new Date(he),...fe&&{credentialScope:fe},...qe&&{accountId:qe}};if(s)Us.setCredentialFeature(W,"CREDENTIALS_SSO","s");else Us.setCredentialFeature(W,"CREDENTIALS_SSO_LEGACY","u");return W},ms=(e,s)=>{let{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:n}=e;if(!t||!o||!r||!n)throw new R.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e},co=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:t,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoSession:c}=e,{ssoClient:_}=e,d=Q.getProfileName({profile:e.profile??s?.profile});if(!t&&!o&&!r&&!n&&!c){let u=(await Q.parseKnownFiles(e))[d];if(!u)throw new R.CredentialsProviderError(`Profile ${d} was not found.`,{logger:e.logger});if(!Gs(u))throw new R.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`,{logger:e.logger});if(u?.sso_session){let y=(await Q.loadSsoSessionData(e))[u.sso_session],A=` configurations in profile ${d} and sso-session ${u.sso_session}`;if(r&&r!==y.sso_region)throw new R.CredentialsProviderError("Conflicting SSO region"+A,{tryNextLink:!1,logger:e.logger});if(t&&t!==y.sso_start_url)throw new R.CredentialsProviderError("Conflicting SSO start_url"+A,{tryNextLink:!1,logger:e.logger});u.sso_region=y.sso_region,u.sso_start_url=y.sso_start_url}let{sso_start_url:C,sso_account_id:x,sso_region:a,sso_role_name:v,sso_session:J}=ms(u,e.logger);return Ms({ssoStartUrl:C,ssoSession:J,ssoAccountId:x,ssoRegion:a,ssoRoleName:v,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!t||!o||!r||!n)throw new R.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return Ms({ssoStartUrl:t,ssoSession:c,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},lo,uo,io;var po=no(()=>{R=Ce(),Q=we(),Us=Z(),ao=De();lo=co,uo=Gs,io=ms});po();export{io as validateSsoProfile,uo as isSsoProfile,lo as fromSSO};export default {get validateSsoProfile(){return io},get isSsoProfile(){return uo},get fromSSO(){return lo}};
@@ -1 +0,0 @@
1
- import{R7 as G}from"./cli-0.6.12-y22js5cj.mjs";import{Hpa as _,Ipa as U}from"./cli-0.6.12-75ddftht.mjs";import{Qpa as X}from"./cli-0.6.12-ndg5saae.mjs";import{Rpa as K,Tpa as B,Vpa as l,Wpa as E}from"./cli-0.6.12-6bdrnprg.mjs";var v=B((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.resolveHttpHandlerRuntimeConfig=k.getHttpHandlerExtensionConfiguration=k.isValidHostname=k.HttpResponse=k.HttpRequest=k.Fields=k.Field=void 0;var H=X();Object.defineProperty(k,"Field",{enumerable:!0,get:function(){return H.Field}});Object.defineProperty(k,"Fields",{enumerable:!0,get:function(){return H.Fields}});Object.defineProperty(k,"HttpRequest",{enumerable:!0,get:function(){return H.HttpRequest}});Object.defineProperty(k,"HttpResponse",{enumerable:!0,get:function(){return H.HttpResponse}});Object.defineProperty(k,"isValidHostname",{enumerable:!0,get:function(){return H.isValidHostname}});Object.defineProperty(k,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return H.getHttpHandlerExtensionConfiguration}});Object.defineProperty(k,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return H.resolveHttpHandlerRuntimeConfig}})});var J=B((C)=>{var Q=_(),T=U(),P=G(),W=v(),F=E("node:crypto"),q=E("node:fs"),Z=E("node:os"),A=E("node:path");class ${profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,n,t){this.profileData=e,this.init=n,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new T.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=e.accessToken,t=Date.now();if(new Date(n.expiresAt).getTime()-t<=$.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:n,CreateOAuth2TokenCommand:t}=await import("./index-0.6.12-avj6qyfm.mjs").then((m)=>K(m.default)),{logger:s,userAgentAppId:c}=this.callerClientConfig??{},r=((h)=>{return h?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,a=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,i=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:a,requestHandler:r,logger:s,userAgentAppId:c,...this.init?.clientConfig});this.createDPoPInterceptor(i.middlewareStack);let x={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let h=await i.send(new t(x)),{accessKeyId:y,secretAccessKey:d,sessionToken:I}=h.tokenOutput?.accessToken??{},{refreshToken:S,expiresIn:m}=h.tokenOutput??{};if(!y||!d||!I||!S)throw new T.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(m??900)*1000,b=new Date(Date.now()+R),j={...e,accessToken:{...e.accessToken,accessKeyId:y,secretAccessKey:d,sessionToken:I,expiresAt:b.toISOString()},refreshToken:S};await this.saveToken(j);let o=j.accessToken;return{accessKeyId:o.accessKeyId,secretAccessKey:o.secretAccessKey,sessionToken:o.sessionToken,accountId:o.accountId,expiration:b}}catch(h){if(h.name==="AccessDeniedException"){let y=h.error,d;switch(y){case"TOKEN_EXPIRED":d="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":d="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":d="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:d=`Failed to refresh token: ${String(h)}. Please re-authenticate using \`aws login\``}throw new T.CredentialsProviderError(d,{logger:this.logger,tryNextLink:!1})}throw new T.CredentialsProviderError(`Failed to refresh token: ${String(h)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let n;try{n=await P.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{n=await q.promises.readFile(e,"utf8")}let t=JSON.parse(n),s=["accessToken","clientId","refreshToken","dpopKey"].filter((c)=>!t[c]);if(!t.accessToken?.accountId)s.push("accountId");if(s.length>0)throw new T.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(n){throw new T.CredentialsProviderError(`Failed to load token from ${e}: ${String(n)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let n=this.getTokenFilePath(),t=A.dirname(n);try{await q.promises.mkdir(t,{recursive:!0})}catch(s){}await q.promises.writeFile(n,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A.join(Z.homedir(),".aws","login","cache"),n=Buffer.from(this.loginSession,"utf8"),t=F.createHash("sha256").update(n).digest("hex");return A.join(e,`${t}.json`)}derToRawSignature(e){let n=2;if(e[n]!==2)throw Error("Invalid DER signature");n++;let t=e[n++],s=e.subarray(n,n+t);if(n+=t,e[n]!==2)throw Error("Invalid DER signature");n++;let c=e[n++],u=e.subarray(n,n+c);s=s[0]===0?s.subarray(1):s,u=u[0]===0?u.subarray(1):u;let r=Buffer.concat([Buffer.alloc(32-s.length),s]),a=Buffer.concat([Buffer.alloc(32-u.length),u]);return Buffer.concat([r,a])}createDPoPInterceptor(e){e.add((n)=>async(t)=>{if(W.HttpRequest.isInstance(t.request)){let s=t.request,c=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,u=await this.generateDpop(s.method,c);s.headers={...s.headers,DPoP:u}}return n(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",n){let t=await this.loadToken();try{let s=F.createPrivateKey({key:t.dpopKey,format:"pem",type:"sec1"}),u=F.createPublicKey(s).export({format:"der",type:"spki"}),r=-1;for(let b=0;b<u.length;b++)if(u[b]===4){r=b;break}let a=u.slice(r+1,r+33),i=u.slice(r+33,r+65),x={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:a.toString("base64url"),y:i.toString("base64url")}},h={jti:crypto.randomUUID(),htm:e,htu:n,iat:Math.floor(Date.now()/1000)},y=Buffer.from(JSON.stringify(x)).toString("base64url"),d=Buffer.from(JSON.stringify(h)).toString("base64url"),I=`${y}.${d}`,S=F.sign("sha256",Buffer.from(I),s),R=this.derToRawSignature(S).toString("base64url");return`${I}.${R}`}catch(s){throw new T.CredentialsProviderError(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}}var N=(e)=>async({callerClientConfig:n}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P.parseKnownFiles(e||{}),s=P.getProfileName({profile:e?.profile??n?.profile}),c=t[s];if(!c?.login_session)throw new T.CredentialsProviderError(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let r=await new $(c,e,n).loadCredentials();return Q.setCredentialFeature(r,"CREDENTIALS_LOGIN","AD")};C.fromLoginCredentials=N});var L,O,w,p,ee=(e,n,t)=>{let s={EcsContainer:async(c)=>{let{fromHttp:u}=await import("./index-0.6.12-g637f9fx.mjs").then((m)=>K(m.default,1)),{fromContainerMetadata:r}=await import("./index-0.6.12-w302e6b5.mjs");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>O.chain(u(c??{}),r(c))().then(D)},Ec2InstanceMetadata:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:u}=await import("./index-0.6.12-w302e6b5.mjs");return async()=>u(c)().then(D)},Environment:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:u}=await import("./index-0.6.12-zn2sw41t.mjs");return async()=>u(c)().then(D)}};if(e in s)return s[e];else throw new O.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},D=(e)=>w.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),te=(e,{profile:n="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(ne(e,{profile:n,logger:t})||se(e,{profile:n,logger:t}))},ne=(e,{profile:n,logger:t})=>{let s=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(s)t?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return s},se=(e,{profile:n,logger:t})=>{let s=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(s)t?.debug?.(` ${n} isCredentialSourceProfile credential_source=${e.credential_source}`);return s},re=async(e,n,t,s,c={},u)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let r=n[e],{source_profile:a,region:i}=r;if(!t.roleAssumer){let{getDefaultRoleAssumer:h}=await import("./index-0.6.12-g802mnr6.mjs").then((m)=>K(m.default,1));t.roleAssumer=h({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...s,...t?.parentClientConfig,region:i??t?.parentClientConfig?.region??s?.region}},t.clientPlugins)}if(a&&a in c)throw new O.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${L.getProfileName(t)}. Profiles visited: `+Object.keys(c).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${e}]`}`);let x=a?u(a,n,t,s,{...c,[a]:!0},V(n[a]??{})):(await ee(r.credential_source,e,t.logger)(t))();if(V(r))return x.then((h)=>w.setCredentialFeature(h,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let h={RoleArn:r.role_arn,RoleSessionName:r.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:r.external_id,DurationSeconds:parseInt(r.duration_seconds||"3600",10)},{mfa_serial:y}=r;if(y){if(!t.mfaCodeProvider)throw new O.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});h.SerialNumber=y,h.TokenCode=await t.mfaCodeProvider(y)}let d=await x;return t.roleAssumer(d,h).then((I)=>w.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},V=(e)=>{return!e.role_arn&&!!e.credential_source},ce=(e)=>{return Boolean(e&&e.login_session)},ue=async(e,n,t)=>{let s=await p.fromLoginCredentials({...n,profile:e})({callerClientConfig:t});return w.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")},he=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",ae=async(e,n)=>import("./index-0.6.12-phsd1x3s.mjs").then(({fromProcess:t})=>t({...e,profile:n})().then((s)=>w.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v"))),de=async(e,n,t={},s)=>{let{fromSSO:c}=await import("./index-0.6.12-rtthmj5w.mjs");return c({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:s}).then((u)=>{if(n.sso_session)return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO","r");else return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},ye=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),Y=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,g=async(e,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return w.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")},ke=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,we=async(e,n,t)=>import("./index-0.6.12-pger0v41.mjs").then((m)=>K(m.default,1)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:t}).then((c)=>w.setCredentialFeature(c,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),z=async(e,n,t,s,c={},u=!1)=>{let r=n[e];if(Object.keys(c).length>0&&Y(r))return g(r,t);if(u||te(r,{profile:e,logger:t.logger}))return re(e,n,t,s,c,z);if(Y(r))return g(r,t);if(ke(r))return we(r,t,s);if(he(r))return ae(t,e);if(ye(r))return await de(e,r,t,s);if(ce(r))return ue(e,t,s);throw new O.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})},Te=(e={})=>async({callerClientConfig:n}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await L.parseKnownFiles(e);return z(L.getProfileName({profile:e.profile??n?.profile}),t,e,n)},Ee;var Ie=l(()=>{L=G(),O=U(),w=_(),p=J();Ee=Te});Ie();export{Ee as fromIni};export default {get fromIni(){return Ee}};
@@ -1 +0,0 @@
1
- import{Q7 as a}from"./cli-0.6.12-7g6v5zs9.mjs";import"./cli-0.6.12-ndg5saae.mjs";import"./cli-0.6.12-6bdrnprg.mjs";export default a();
@@ -1,2 +0,0 @@
1
- import{Npa as u,Qpa as k}from"./cli-0.6.12-ndg5saae.mjs";import{Vpa as f,Wpa as y}from"./cli-0.6.12-6bdrnprg.mjs";function j(z){return new Promise((G,U)=>{let K=g.request({method:"GET",...z,hostname:z.hostname?.replace(/^\[(.+)\]$/,"$1")});K.on("error",(Q)=>{U(Object.assign(new X.ProviderError("Unable to connect to instance metadata service"),Q)),K.destroy()}),K.on("timeout",()=>{U(new X.ProviderError("TimeoutError from instance metadata service")),K.destroy()}),K.on("response",(Q)=>{let{statusCode:Z=400}=Q;if(Z<200||300<=Z)U(Object.assign(new X.ProviderError("Error response received from instance metadata service"),{statusCode:Z})),K.destroy();let w=[];Q.on("data",($)=>{w.push($)}),Q.on("end",()=>{G(Buffer.concat(w)),K.destroy()})}),K.end()})}var m,X,g,c,C=(z)=>Boolean(z)&&typeof z==="object"&&typeof z.AccessKeyId==="string"&&typeof z.SecretAccessKey==="string"&&typeof z.Token==="string"&&typeof z.Expiration==="string",T=(z)=>({accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:new Date(z.Expiration),...z.AccountId&&{accountId:z.AccountId}}),b=1000,F=0,M=({maxRetries:z=F,timeout:G=b})=>({maxRetries:z,timeout:G}),N=(z,G)=>{let U=z();for(let K=0;K<G;K++)U=U.catch(z);return U},L="AWS_CONTAINER_CREDENTIALS_FULL_URI",_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",P="AWS_CONTAINER_AUTHORIZATION_TOKEN",p=(z={})=>{let{timeout:G,maxRetries:U}=M(z);return()=>N(async()=>{let K=await n({logger:z.logger}),Q=JSON.parse(await d(G,K));if(!C(Q))throw new X.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return T(Q)},U)},d=async(z,G)=>{if(process.env[P])G.headers={...G.headers,Authorization:process.env[P]};return(await j({...G,timeout:z})).toString()},l="169.254.170.2",a,s,n=async({logger:z})=>{if(process.env[_])return{hostname:l,path:process.env[_]};if(process.env[L]){let G=m.parse(process.env[L]);if(!G.hostname||!(G.hostname in a))throw new X.CredentialsProviderError(`${G.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:z});if(!G.protocol||!(G.protocol in s))throw new X.CredentialsProviderError(`${G.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:z});return{...G,port:G.port?parseInt(G.port,10):void 0}}throw new X.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_} or ${L} environment variable is set`,{tryNextLink:!1,logger:z})},V,S=void 0,o="AWS_EC2_METADATA_SERVICE_ENDPOINT",t="ec2_metadata_service_endpoint",i,A,r="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",e="ec2_metadata_service_endpoint_mode",zz,v=async()=>c.parseUrl(await Gz()||await Kz()),Gz=async()=>X.loadConfig(i)(),Kz=async()=>{let z=await X.loadConfig(zz)();switch(z){case A.IPv4:return S.IPv4;case A.IPv6:return S.IPv6;default:throw Error(`Unsupported endpoint mode: ${z}. Select from ${Object.values(A)}`)}},Qz=300,Uz=300,Xz="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",h=(z,G)=>{let U=Qz+Math.floor(Math.random()*Uz),K=new Date(Date.now()+U*1000);G.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(K)}.
2
- For more information, please visit: `+Xz);let Q=z.originalExpiration??z.expiration;return{...z,...Q?{originalExpiration:Q}:{},expiration:K}},Zz=(z,G={})=>{let U=G?.logger||console,K;return async()=>{let Q;try{if(Q=await z(),Q.expiration&&Q.expiration.getTime()<Date.now())Q=h(Q,U)}catch(Z){if(K)U.warn("Credential renew failed: ",Z),Q=h(K,U);else throw Z}return K=Q,Q}},x="/latest/meta-data/iam/security-credentials/",$z="/latest/api/token",B="AWS_EC2_METADATA_V1_DISABLED",q="ec2_metadata_v1_disabled",I="x-aws-ec2-metadata-token",Hz=(z={})=>Zz(Jz(z),{logger:z.logger}),Jz=(z={})=>{let G=!1,{logger:U,profile:K}=z,{timeout:Q,maxRetries:Z}=M(z),w=async($,D)=>{if(G||D.headers?.[I]==null){let H=!1,J=!1,R=await X.loadConfig({environmentVariableSelector:(Y)=>{let W=Y[B];if(J=!!W&&W!=="false",W===void 0)throw new X.CredentialsProviderError(`${B} not set in env, checking config file next.`,{logger:z.logger});return J},configFileSelector:(Y)=>{let W=Y[q];return H=!!W&&W!=="false",H},default:!1},{profile:K})();if(z.ec2MetadataV1Disabled||R){let Y=[];if(z.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(H)Y.push(`config file profile (${q})`);if(J)Y.push(`process environment variable (${B})`);throw new V(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let E=(await N(async()=>{let H;try{H=await wz(D)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)).trim();return N(async()=>{let H;try{H=await Dz(E,D,z)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)};return async()=>{let $=await v();if(G)return U?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),w(Z,{...$,timeout:Q});else{let D;try{D=(await Yz({...$,timeout:Q})).toString()}catch(O){if(O?.statusCode===400)throw Object.assign(O,{message:"EC2 Metadata token request returned error"});else if(O.message==="TimeoutError"||[403,404,405].includes(O.statusCode))G=!0;return U?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),w(Z,{...$,timeout:Q})}return w(Z,{...$,headers:{[I]:D},timeout:Q})}}},Yz=async(z)=>j({...z,path:$z,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),wz=async(z)=>(await j({...z,path:x})).toString(),Dz=async(z,G,U)=>{let K=JSON.parse((await j({...G,path:x+z})).toString());if(!C(K))throw new X.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:U.logger});return T(K)},Wz,Az,Oz,Sz,jz,Lz,_z,Bz,Nz,Pz;var Mz=f(()=>{m=y("node:url"),X=u(),g=y("node:http"),c=k();a={localhost:!0,"127.0.0.1":!0},s={"http:":!0,"https:":!0};V=class V extends X.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(z,G=!0){super(z,G);this.tryNextLink=G,Object.setPrototypeOf(this,V.prototype)}};(function(z){z.IPv4="http://169.254.169.254",z.IPv6="http://[fd00:ec2::254]"})(S||(S={}));i={environmentVariableSelector:(z)=>z[o],configFileSelector:(z)=>z[t],default:void 0};(function(z){z.IPv4="IPv4",z.IPv6="IPv6"})(A||(A={}));zz={environmentVariableSelector:(z)=>z[r],configFileSelector:(z)=>z[e],default:A.IPv4};Wz=F,Az=b,Oz=P,Sz=L,jz=_,Lz=p,_z=Hz,Bz=v,Nz=j,Pz=M});Mz();export{Pz as providerConfigFromInit,Nz as httpRequest,Bz as getInstanceMetadataEndpoint,_z as fromInstanceMetadata,Lz as fromContainerMetadata,S as Endpoint,jz as ENV_CMDS_RELATIVE_URI,Sz as ENV_CMDS_FULL_URI,Oz as ENV_CMDS_AUTH_TOKEN,Az as DEFAULT_TIMEOUT,Wz as DEFAULT_MAX_RETRIES};export default {get providerConfigFromInit(){return Pz},get httpRequest(){return Nz},get getInstanceMetadataEndpoint(){return Bz},get fromInstanceMetadata(){return _z},get fromContainerMetadata(){return Lz},get Endpoint(){return S},get ENV_CMDS_RELATIVE_URI(){return jz},get ENV_CMDS_FULL_URI(){return Sz},get ENV_CMDS_AUTH_TOKEN(){return Oz},get DEFAULT_TIMEOUT(){return Az},get DEFAULT_MAX_RETRIES(){return Wz}};
@@ -1 +0,0 @@
1
- import{Apa as r,Bpa as s,jpa as a,kpa as b,lpa as c,mpa as d,npa as e,opa as f,ppa as g,qpa as h,rpa as i,spa as j,tpa as k,upa as l,vpa as m,wpa as n,xpa as o,ypa as p,zpa as q}from"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import"./cli-0.6.12-6bdrnprg.mjs";s();export{l as toFormData,k as spread,q as mergeConfig,e as isCancel,j as isAxiosError,p as getAdapter,o as formToJSON,a as default,r as create,h as all,g as VERSION,n as HttpStatusCode,d as CanceledError,f as CancelToken,i as Cancel,m as AxiosHeaders,c as AxiosError,b as Axios};
@@ -1,9 +0,0 @@
1
- import{n7 as V}from"./cli-0.6.12-fr0rb7xk.mjs";import{R7 as W}from"./cli-0.6.12-y22js5cj.mjs";import{Ipa as g}from"./cli-0.6.12-75ddftht.mjs";import"./cli-0.6.12-ndg5saae.mjs";import{Rpa as H,Vpa as F,Wpa as O}from"./cli-0.6.12-6bdrnprg.mjs";function M(b,q){let j=N(b),B,G,z,Q=async(J)=>{if(J?.forceRefresh)return await j(J);if(z?.expiration){if(z?.expiration?.getTime()<Date.now())z=void 0}if(B)await B;else if(!z||q?.(z))if(z){if(!G)G=j(J).then((X)=>{z=X}).finally(()=>{G=void 0})}else return B=j(J).then((X)=>{z=X}).finally(()=>{B=void 0}),Q(J);return z};return Q}var Y,K,h,Z="AWS_EC2_METADATA_DISABLED",x=async(b)=>{let{ENV_CMDS_FULL_URI:q,ENV_CMDS_RELATIVE_URI:j,fromContainerMetadata:B,fromInstanceMetadata:G}=await import("./index-0.6.12-w302e6b5.mjs");if(process.env[j]||process.env[q]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:z}=await import("./index-0.6.12-g637f9fx.mjs").then((m)=>H(m.default,1));return K.chain(z(b),B(b))}if(process.env[Z]&&process.env[Z]!=="false")return async()=>{throw new K.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),G(b)},N=(b)=>async(q)=>{let j;for(let B of b)try{return await B(q)}catch(G){if(j=G,G?.tryNextLink)continue;throw G}throw j},$=!1,T=(b={})=>M([async()=>{if(b.profile??process.env[h.ENV_PROFILE]){if(process.env[Y.ENV_KEY]&&process.env[Y.ENV_SECRET]){if(!$)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn.bind(b.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
2
- Multiple credential sources detected:
3
- Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
4
- This SDK will proceed with the AWS_PROFILE value.
5
-
6
- However, a future version may change this behavior to prefer the ENV static credentials.
7
- Please ensure that your environment only sets either the AWS_PROFILE or the
8
- AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
9
- `),$=!0}throw new K.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:b.logger,tryNextLink:!0})}return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Y.fromEnv(b)()},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:j,ssoAccountId:B,ssoRegion:G,ssoRoleName:z,ssoSession:Q}=b;if(!j&&!B&&!G&&!z&&!Q)throw new K.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:b.logger});let{fromSSO:J}=await import("./index-0.6.12-rtthmj5w.mjs");return J(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:j}=await import("./index-0.6.12-rtv5gkng.mjs");return j(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:j}=await import("./index-0.6.12-phsd1x3s.mjs");return j(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:j}=await import("./index-0.6.12-pger0v41.mjs").then((m)=>H(m.default,1));return j(b)(q)},async()=>{return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await x(b))()},async()=>{throw new K.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:b.logger})}],D),U=(b)=>b?.expiration!==void 0,D=(b)=>b?.expiration!==void 0&&b.expiration.getTime()-Date.now()<300000,C,u,A;var R=F(()=>{Y=V(),K=g(),h=W();C=D,u=U,A=T});R();export{A as defaultProvider,u as credentialsWillNeedRefresh,C as credentialsTreatedAsExpired};export default {get defaultProvider(){return A},get credentialsWillNeedRefresh(){return u},get credentialsTreatedAsExpired(){return C}};
@@ -1 +0,0 @@
1
- import{ai as l,bi as $X}from"./cli-0.6.12-1rc09wxd.mjs";import{u1 as m,v1 as YX}from"./cli-0.6.12-gcedgh1v.mjs";import{Bpa as u,jpa as B,lpa as F}from"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Vpa as r,Wpa as XX}from"./cli-0.6.12-6bdrnprg.mjs";import{EventEmitter as $Y}from"events";function d(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return l()?.version||"3.x.x"}catch{return"3.x.x"}}function R(Y){if(!Y||typeof Y!=="object")return!1;let X=Y,$="_def"in X&&(typeof X.safeParse==="function"||typeof X.parse==="function"),G="_zod"in X&&typeof X._zod==="object";return $||G}function _X(Y){if(!Y||typeof Y!=="object")return!1;return"_zod"in Y&&typeof Y._zod==="object"}function NX(Y){if(!_X(Y))return null;try{let X=Y.constructor?.prototype?.constructor;if(X&&typeof X.toJSONSchema==="function")return X.toJSONSchema(Y)}catch{}return null}function U(Y){if(!R(Y))return Y;let X=NX(Y);if(X)return X;try{return m(Y)}catch{return Y}}function S(Y){if(!Y||typeof Y!=="object"||Array.isArray(Y))return!1;let X=Object.values(Y);if(X.length===0)return!1;return X.some(($)=>$&&typeof $==="object"&&$._def&&typeof $.safeParse==="function")}function HX(Y){if(!Y)return;for(let X of Y){if(typeof X==="string"){if(X==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");continue}if(X.type==="json"){let $=X;if(!$.prompt&&!$.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let G=$.schema;if(R(G))$.schema=U(G);else if(S(G))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(X.type==="changeTracking"){let $=X,G=$.schema;if(R(G))$.schema=U(G);else if(S(G))throw Error("changeTracking format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(X.type==="question"){let $=X;if(typeof $.question!=="string"||$.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(X.type==="highlights"){let $=X;if(typeof $.query!=="string"||$.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(X.type==="query"){let $=X;if(typeof $.prompt!=="string"||$.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if($.mode!=null&&$.mode!=="freeform"&&$.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'");continue}if(X.type==="screenshot"){let $=X;if($.quality!=null&&(typeof $.quality!=="number"||$.quality<0))throw Error("screenshot.quality must be a non-negative number")}}}function f(Y){if(!Y)return;if(Y.timeout!=null&&Y.timeout<=0)throw Error("timeout must be positive");if(Y.waitFor!=null&&Y.waitFor<0)throw Error("waitFor must be non-negative");HX(Y.formats)}function QX(Y){if(!Y)return;for(let X of Y){if(typeof X==="string"){if(X==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");if(X==="screenshot")throw Error("parse does not support screenshot format");if(X==="changeTracking")throw Error("parse does not support changeTracking format");if(X==="branding")throw Error("parse does not support branding format");if(X==="audio"||X==="video")throw Error(`parse does not support ${X} format`);continue}let $=X.type;if($==="changeTracking")throw Error("parse does not support changeTracking format");if($==="screenshot")throw Error("parse does not support screenshot format");if($==="branding")throw Error("parse does not support branding format");if($==="audio"||$==="video")throw Error(`parse does not support ${$} format`);if(X.type==="json"){let G=X;if(!G.prompt&&!G.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let _=G.schema;if(R(_))G.schema=U(_);else if(S(_))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(X.type==="question"){let G=X;if(typeof G.question!=="string"||G.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(X.type==="highlights"){let G=X;if(typeof G.query!=="string"||G.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(X.type==="query"){let G=X;if(typeof G.prompt!=="string"||G.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if(G.mode!=null&&G.mode!=="freeform"&&G.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'")}}}function ZX(Y){if(!Y)return;if(Y.timeout!=null&&Y.timeout<=0)throw Error("timeout must be positive");let X=Y;if(X.waitFor!==void 0)throw Error("parse does not support waitFor");if(X.actions!==void 0)throw Error("parse does not support actions");if(X.location!==void 0)throw Error("parse does not support location overrides");if(X.mobile!==void 0)throw Error("parse does not support mobile rendering");if(X.maxAge!==void 0||X.minAge!==void 0||X.storeInCache!==void 0||X.lockdown!==void 0)throw Error("parse does not support cache/index options");if(X.proxy!==void 0&&X.proxy!=="basic"&&X.proxy!=="auto")throw Error("parse only supports proxy values of 'basic' or 'auto'");QX(Y.formats)}function J(Y,X){let $=Y.status,G=Y.data||{},_=G?.error||G?.message||`Request failed (${$}) while trying to ${X}`;throw new K(_,$,void 0,G?.details)}function W(Y,X){let $=Y.response?.status,G=Y.response?.data,_=G?.error||Y.message||`Request failed${$?` (${$})`:""} while trying to ${X}`,N=G?.code||Y.code;throw new K(_,$,N,G?.details??G)}function i(Y){if(Y instanceof w)return!1;if(Y instanceof K||Y&&typeof Y==="object"&&"status"in Y){let X=Y.status;if(X&&X>=400&&X<500)return!1;if(X&&X>=500)return!0}if(Y?.isAxiosError&&!Y.response)return!0;if(Y?.code==="ECONNABORTED"||Y?.message?.includes("timeout"))return!0;return!0}async function VX(Y,X,$){if(!X||!X.trim())throw Error("URL cannot be empty");if($)f($);let G={url:X.trim()};if($)Object.assign(G,$);try{let _=await Y.post("/v2/scrape",G,typeof $?.timeout==="number"?{timeoutMs:$.timeout+5000}:{});if(_.status!==200||!_.data?.success)J(_,"scrape");return _.data.data||{}}catch(_){if(_?.isAxiosError)return W(_,"scrape");throw _}}async function OX(Y,X,$){if(!X||!X.trim())throw Error("Job ID cannot be empty");let G=$?.code&&$.code.trim(),_=$?.prompt&&$.prompt.trim();if(!G&&!_)throw Error("Either 'code' or 'prompt' must be provided");let N={};if(G)N.code=$.code;if(_)N.prompt=$.prompt;if(N.language=$.language??"node",$.timeout!=null)N.timeout=$.timeout;if($.origin)N.origin=$.origin;try{let Q=await Y.post(`/v2/scrape/${X}/interact`,N,$.timeout!=null?{timeoutMs:$.timeout*1000+5000}:{});if(Q.status!==200)J(Q,"interact with scrape browser");return Q.data}catch(Q){if(Q?.isAxiosError)return W(Q,"interact with scrape browser");throw Q}}async function WX(Y,X){if(!X||!X.trim())throw Error("Job ID cannot be empty");try{let $=await Y.delete(`/v2/scrape/${X}/interact`);if($.status!==200)J($,"stop interaction");return $.data}catch($){if($?.isAxiosError)return W($,"stop interaction");throw $}}function h(Y,X){if(typeof Blob<"u"&&Y instanceof Blob){if(X&&Y.type!==X)return new Blob([Y],{type:X});return Y}if(typeof Buffer<"u"&&Buffer.isBuffer(Y))return new Blob([Y],{type:X});if(Y instanceof ArrayBuffer)return new Blob([Y],{type:X});if(ArrayBuffer.isView(Y))return new Blob([Y],{type:X});if(typeof Y==="string")return new Blob([Y],{type:X??"text/plain; charset=utf-8"});throw Error("Unsupported parse file data type")}async function JX(Y,X,$){if(!X||!X.filename||!X.filename.trim())throw Error("filename cannot be empty");if(X.data==null)throw Error("file data cannot be empty");if(h(X.data,X.contentType).size===0)throw Error("file data cannot be empty");if($)ZX($);let _=d(),N={...$??{},origin:typeof $?.origin==="string"&&$.origin.includes("mcp")?$.origin:$?.origin??`js-sdk@${_}`},Q=new FormData;Q.append("options",JSON.stringify(N)),Q.append("file",h(X.data,X.contentType),X.filename.trim());try{let H=await Y.postMultipart("/v2/parse",Q,typeof N.timeout==="number"?{timeoutMs:N.timeout+5000}:{});if(H.status!==200||!H.data?.success)J(H,"parse");return H.data.data||{}}catch(H){if(H?.isAxiosError)return W(H,"parse");throw H}}function MX(Y){if(!Y.query||!Y.query.trim())throw Error("Query cannot be empty");if(Y.limit!=null&&Y.limit<=0)throw Error("limit must be positive");if(Y.timeout!=null&&Y.timeout<=0)throw Error("timeout must be positive");if(Y.includeDomains?.length&&Y.excludeDomains?.length)throw Error("includeDomains and excludeDomains cannot both be specified");let X={query:Y.query};if(Y.sources)X.sources=Y.sources;if(Y.categories)X.categories=Y.categories;if(Y.includeDomains)X.includeDomains=Y.includeDomains;if(Y.excludeDomains)X.excludeDomains=Y.excludeDomains;if(Y.limit!=null)X.limit=Y.limit;if(Y.tbs!=null)X.tbs=Y.tbs;if(Y.location!=null)X.location=Y.location;if(Y.ignoreInvalidURLs!=null)X.ignoreInvalidURLs=Y.ignoreInvalidURLs;if(Y.timeout!=null)X.timeout=Y.timeout;if(Y.integration&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.scrapeOptions)f(Y.scrapeOptions),X.scrapeOptions=Y.scrapeOptions;return X}function v(Y){let X=[];for(let $ of Y)if($&&typeof $==="object")if("markdown"in $||"html"in $||"rawHtml"in $||"links"in $||"screenshot"in $||"changeTracking"in $||"summary"in $||"json"in $)X.push($);else X.push($);else X.push({url:$});return X}async function LX(Y,X){let $=MX(X);try{let G=await Y.post("/v2/search",$,typeof X.timeout==="number"?{timeoutMs:X.timeout+5000}:{});if(G.status!==200||!G.data?.success)J(G,"search");let _=G.data.data||{},N={};if(_.web)N.web=v(_.web);if(_.news)N.news=v(_.news);if(_.images)N.images=v(_.images);return Object.defineProperty(N,"data",{get(){let Q=[];if(N.web?.length)Q.push(`.web (${N.web.length} results)`);if(N.news?.length)Q.push(`.news (${N.news.length} results)`);if(N.images?.length)Q.push(`.images (${N.images.length} results)`);let H=Q.length?Q.join(", "):".web, .news, or .images";throw Error(`SearchData has no '.data'. Results are grouped by source: ${H}`)},enumerable:!1,configurable:!0}),N}catch(G){if(G?.isAxiosError)return W(G,"search");throw G}}function PX(Y,X){if(!Y||!Y.trim())throw Error("URL cannot be empty");let $={url:Y.trim()};if(X){if(X.sitemap!=null)$.sitemap=X.sitemap;if(X.search!=null)$.search=X.search;if(X.includeSubdomains!=null)$.includeSubdomains=X.includeSubdomains;if(X.ignoreQueryParameters!=null)$.ignoreQueryParameters=X.ignoreQueryParameters;if(X.limit!=null)$.limit=X.limit;if(X.timeout!=null)$.timeout=X.timeout;if(X.integration!=null&&X.integration.trim())$.integration=X.integration.trim();if(X.origin)$.origin=X.origin;if(X.location!=null)$.location=X.location}return $}async function UX(Y,X,$){let G=PX(X,$);try{let _=await Y.post("/v2/map",G,typeof $?.timeout==="number"?{timeoutMs:$.timeout+5000}:{});if(_.status!==200||!_.data?.success)J(_,"map");let N=_.data.links||[],Q=[];for(let H of N)if(typeof H==="string")Q.push({url:H});else if(H&&typeof H==="object")Q.push({url:H.url,title:H.title,description:H.description});return{id:_.data.id,links:Q}}catch(_){if(_?.isAxiosError)return W(_,"map");throw _}}function n(Y){if(!["good","partial","bad"].includes(Y))throw Error("rating must be one of: good, partial, bad")}async function KX(Y,X){if(!X.endpoint)throw Error("endpoint is required");if(!X.jobId)throw Error("jobId is required");n(X.rating);try{let $=await Y.post("/v2/feedback",X);if($.status!==200||!$.data?.success)J($,"feedback");return $.data}catch($){if($?.isAxiosError)return W($,"feedback");throw $}}async function CX(Y,X,$){if(!X)throw Error("jobId is required");n($.rating);try{let G=await Y.post(`/v2/search/${encodeURIComponent(X)}/feedback`,$);if(G.status!==200||!G.data?.success)J(G,"searchFeedback");return G.data}catch(G){if(G?.isAxiosError)return W(G,"searchFeedback");throw G}}async function q(Y,X,$,G){let _=$.slice(),N=X,Q=0,H=G?.maxPages??void 0,V=G?.maxResults??void 0,O=G?.maxWaitTime??void 0,L=Date.now();while(N){if(H!=null&&Q>=H)break;if(O!=null&&(Date.now()-L)/1000>O)break;let M=null;try{M=(await Y.get(N)).data}catch{break}if(!M?.success)break;let T=Array.isArray(M.data)?M.data:M.data?.pages||[];for(let C of T){if(V!=null&&_.length>=V)break;_.push(C)}if(V!=null&&_.length>=V)break;N=M.next??(Array.isArray(M.data)?null:M.data?.next)??null,Q+=1}return _}function TX(Y){if(!Y.url||!Y.url.trim())throw Error("URL cannot be empty");let X={url:Y.url.trim()};if(Y.prompt)X.prompt=Y.prompt;if(Y.excludePaths)X.excludePaths=Y.excludePaths;if(Y.includePaths)X.includePaths=Y.includePaths;if(Y.maxDiscoveryDepth!=null)X.maxDiscoveryDepth=Y.maxDiscoveryDepth;if(Y.sitemap!=null)X.sitemap=Y.sitemap;if(Y.robotsUserAgent!=null)X.robotsUserAgent=Y.robotsUserAgent;if(Y.ignoreQueryParameters!=null)X.ignoreQueryParameters=Y.ignoreQueryParameters;if(Y.deduplicateSimilarURLs!=null)X.deduplicateSimilarURLs=Y.deduplicateSimilarURLs;if(Y.limit!=null)X.limit=Y.limit;if(Y.crawlEntireDomain!=null)X.crawlEntireDomain=Y.crawlEntireDomain;if(Y.allowExternalLinks!=null)X.allowExternalLinks=Y.allowExternalLinks;if(Y.allowSubdomains!=null)X.allowSubdomains=Y.allowSubdomains;if(Y.delay!=null)X.delay=Y.delay;if(Y.maxConcurrency!=null)X.maxConcurrency=Y.maxConcurrency;if(Y.regexOnFullURL!=null)X.regexOnFullURL=Y.regexOnFullURL;if(Y.webhook!=null)X.webhook=Y.webhook;if(Y.integration!=null&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.scrapeOptions)f(Y.scrapeOptions),X.scrapeOptions=Y.scrapeOptions;if(Y.zeroDataRetention!=null)X.zeroDataRetention=Y.zeroDataRetention;return X}async function p(Y,X){let $=TX(X);try{let G=await Y.post("/v2/crawl",$);if(G.status!==200||!G.data?.success)J(G,"start crawl");return{id:G.data.id,url:G.data.url}}catch(G){if(G?.isAxiosError)return W(G,"start crawl");throw G}}async function b(Y,X,$){try{let G=await Y.get(`/v2/crawl/${X}`);if(G.status!==200||!G.data?.success)J(G,"get crawl status");let _=G.data,N=_.data||[];if(!($?.autoPaginate??!0)||!_.next)return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:_.next??null,data:N};let H=await q(Y,_.next,N,$);return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:null,data:H}}catch(G){if(G?.isAxiosError)return W(G,"get crawl status");throw G}}async function BX(Y,X){try{let $=await Y.delete(`/v2/crawl/${X}`);if($.status!==200)J($,"cancel crawl");return $.data?.status==="cancelled"}catch($){if($?.isAxiosError)return W($,"cancel crawl");throw $}}async function zX(Y,X,$=2,G){let _=Date.now();while(!0){try{let N=await b(Y,X);if(["completed","failed","cancelled"].includes(N.status))return N}catch(N){if(!i(N)){if(N instanceof K)throw new K(N.message,N.status,N.code,N.details,X);throw N}}if(G!=null&&Date.now()-_>G*1000)throw new w(X,G,"crawl");await new Promise((N)=>setTimeout(N,Math.max(1000,$*1000)))}}async function kX(Y,X,$=2,G){let _=await p(Y,X);return zX(Y,_.id,$,G)}async function RX(Y,X){try{let $=await Y.get(`/v2/crawl/${X}/errors`);if($.status!==200)J($,"get crawl errors");let G=$.data?.data??$.data;return{errors:G.errors||[],robotsBlocked:G.robotsBlocked||[]}}catch($){if($?.isAxiosError)return W($,"get crawl errors");throw $}}async function fX(Y){try{let X=await Y.get("/v2/crawl/active");if(X.status!==200||!X.data?.success)J(X,"get active crawls");return{success:!0,crawls:(X.data?.crawls||[]).map((_)=>({id:_.id,teamId:_.teamId??_.team_id,url:_.url,options:_.options??null}))}}catch(X){if(X?.isAxiosError)return W(X,"get active crawls");throw X}}async function AX(Y,X,$){if(!X||!X.trim())throw Error("URL cannot be empty");if(!$||!$.trim())throw Error("Prompt cannot be empty");try{let G=await Y.post("/v2/crawl/params-preview",{url:X.trim(),prompt:$});if(G.status!==200||!G.data?.success)J(G,"crawl params preview");let _=G.data.data||{};if(G.data.warning)_.warning=G.data.warning;return _}catch(G){if(G?.isAxiosError)return W(G,"crawl params preview");throw G}}async function t(Y,X,{options:$,webhook:G,appendToId:_,ignoreInvalidURLs:N,maxConcurrency:Q,zeroDataRetention:H,idempotencyKey:V,integration:O,origin:L}={}){if(!Array.isArray(X)||X.length===0)throw Error("URLs list cannot be empty");let M={urls:X};if($)f($),Object.assign(M,$);if(G!=null)M.webhook=G;if(_!=null)M.appendToId=_;if(N!=null)M.ignoreInvalidURLs=N;if(Q!=null)M.maxConcurrency=Q;if(H!=null)M.zeroDataRetention=H;if(O!=null&&O.trim())M.integration=O.trim();if(L)M.origin=L;try{let T=Y.prepareHeaders(V),C=await Y.post("/v2/batch/scrape",M,{headers:T});if(C.status!==200||!C.data?.success)J(C,"start batch scrape");return{id:C.data.id,url:C.data.url,invalidURLs:C.data.invalidURLs||void 0}}catch(T){if(T?.isAxiosError)return W(T,"start batch scrape");throw T}}async function y(Y,X,$){try{let G=await Y.get(`/v2/batch/scrape/${X}`);if(G.status!==200||!G.data?.success)J(G,"get batch scrape status");let _=G.data,N=_.data||[];if(!($?.autoPaginate??!0)||!_.next)return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:_.next??null,data:N};let H=await q(Y,_.next,N,$);return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:null,data:H}}catch(G){if(G?.isAxiosError)return W(G,"get batch scrape status");throw G}}async function xX(Y,X){try{let $=await Y.delete(`/v2/batch/scrape/${X}`);if($.status!==200)J($,"cancel batch scrape");return $.data?.status==="cancelled"}catch($){if($?.isAxiosError)return W($,"cancel batch scrape");throw $}}async function DX(Y,X){try{let $=await Y.get(`/v2/batch/scrape/${X}/errors`);if($.status!==200)J($,"get batch scrape errors");let G=$.data?.data??$.data;return{errors:G.errors||[],robotsBlocked:G.robotsBlocked||[]}}catch($){if($?.isAxiosError)return W($,"get batch scrape errors");throw $}}async function FX(Y,X,$=2,G){let _=Date.now();while(!0){try{let N=await y(Y,X);if(["completed","failed","cancelled"].includes(N.status))return N}catch(N){if(!i(N)){if(N instanceof K)throw new K(N.message,N.status,N.code,N.details,X);throw N}}if(G!=null&&Date.now()-_>G*1000)throw new w(X,G,"batch");await new Promise((N)=>setTimeout(N,Math.max(1000,$*1000)))}}async function vX(Y,X,$={}){let G=await t(Y,X,$);return FX(Y,G.id,$.pollInterval??2,$.timeout)}function EX(Y){let X={};if(Y.urls)X.urls=Y.urls;if(Y.prompt!=null)X.prompt=Y.prompt;if(Y.schema!=null)X.schema=R(Y.schema)?U(Y.schema):Y.schema;if(Y.systemPrompt!=null)X.systemPrompt=Y.systemPrompt;if(Y.allowExternalLinks!=null)X.allowExternalLinks=Y.allowExternalLinks;if(Y.enableWebSearch!=null)X.enableWebSearch=Y.enableWebSearch;if(Y.showSources!=null)X.showSources=Y.showSources;if(Y.ignoreInvalidURLs!=null)X.ignoreInvalidURLs=Y.ignoreInvalidURLs;if(Y.integration&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.agent)X.agent=Y.agent;if(Y.scrapeOptions)f(Y.scrapeOptions),X.scrapeOptions=Y.scrapeOptions;return X}async function a(Y,X){let $=EX(X);try{let G=await Y.post("/v2/extract",$);if(G.status!==200)J(G,"extract");return G.data}catch(G){if(G?.isAxiosError)return W(G,"extract");throw G}}async function o(Y,X){try{let $=await Y.get(`/v2/extract/${X}`);if($.status!==200)J($,"extract status");return $.data}catch($){if($?.isAxiosError)return W($,"extract status");throw $}}async function SX(Y,X,$=2,G){let _=Date.now();while(!0){let N=await o(Y,X);if(["completed","failed","cancelled"].includes(N.status||""))return N;if(G!=null&&Date.now()-_>G*1000)return N;await new Promise((Q)=>setTimeout(Q,Math.max(1000,$*1000)))}}async function jX(Y,X){let $=await a(Y,X),G=$.id;if(!G)return $;return SX(Y,G,X.pollInterval??2,X.timeout)}function IX(Y){let X={};if(Y.urls)X.urls=Y.urls;if(X.prompt=Y.prompt,Y.schema!=null)X.schema=R(Y.schema)?U(Y.schema):Y.schema;if(Y.integration&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.maxCredits!==null&&Y.maxCredits!==void 0)X.maxCredits=Y.maxCredits;if(Y.strictConstrainToURLs!==null&&Y.strictConstrainToURLs!==void 0)X.strictConstrainToURLs=Y.strictConstrainToURLs;if(Y.model!==null&&Y.model!==void 0)X.model=Y.model;if(Y.webhook!=null)X.webhook=Y.webhook;return X}async function s(Y,X){let $=IX(X);try{let G=await Y.post("/v2/agent",$);if(G.status!==200)J(G,"agent");return G.data}catch(G){if(G?.isAxiosError)return W(G,"agent");throw G}}async function e(Y,X){try{let $=await Y.get(`/v2/agent/${X}`);if($.status!==200)J($,"agent status");return $.data}catch($){if($?.isAxiosError)return W($,"agent status");throw $}}async function wX(Y,X,$=2,G){let _=Date.now();while(!0){let N=await e(Y,X);if(["completed","failed","cancelled"].includes(N.status||""))return N;if(G!=null&&Date.now()-_>G*1000)return N;await new Promise((Q)=>setTimeout(Q,Math.max(1000,$*1000)))}}async function qX(Y,X){let $=await s(Y,X),G=$.id;if(!G)return $;return wX(Y,G,X.pollInterval??2,X.timeout)}async function bX(Y,X){try{let $=await Y.delete(`/v2/agent/${X}`);if($.status!==200)J($,"cancel agent");return $.data?.success===!0}catch($){if($?.isAxiosError)return W($,"cancel agent");throw $}}async function yX(Y,X={}){let $={};if(X.ttl!=null)$.ttl=X.ttl;if(X.activityTtl!=null)$.activityTtl=X.activityTtl;if(X.streamWebView!=null)$.streamWebView=X.streamWebView;if(X.profile!=null)$.profile=X.profile;if(X.integration!=null)$.integration=X.integration;if(X.origin)$.origin=X.origin;try{let G=await Y.post("/v2/browser",$);if(G.status!==200)J(G,"create browser session");return G.data}catch(G){if(G?.isAxiosError)return W(G,"create browser session");throw G}}async function gX(Y,X,$){let G={code:$.code,language:$.language??"bash"};if($.timeout!=null)G.timeout=$.timeout;try{let _=await Y.post(`/v2/browser/${X}/execute`,G,$.timeout!=null?{timeoutMs:$.timeout*1000+5000}:{});if(_.status!==200)J(_,"execute browser code");return _.data}catch(_){if(_?.isAxiosError)return W(_,"execute browser code");throw _}}async function hX(Y,X){try{let $=await Y.delete(`/v2/browser/${X}`);if($.status!==200)J($,"delete browser session");return $.data}catch($){if($?.isAxiosError)return W($,"delete browser session");throw $}}async function cX(Y,X={}){let $="/v2/browser";if(X.status)$+=`?status=${X.status}`;try{let G=await Y.get($);if(G.status!==200)J(G,"list browser sessions");return G.data}catch(G){if(G?.isAxiosError)return W(G,"list browser sessions");throw G}}async function uX(Y){try{let X=await Y.get("/v2/concurrency-check");if(X.status!==200||!X.data?.success)J(X,"get concurrency");let $=X.data.data||X.data;return{concurrency:$.concurrency,maxConcurrency:$.maxConcurrency??$.max_concurrency}}catch(X){if(X?.isAxiosError)return W(X,"get concurrency");throw X}}async function mX(Y){try{let X=await Y.get("/v2/team/credit-usage");if(X.status!==200||!X.data?.success)J(X,"get credit usage");let $=X.data.data||X.data;return{remainingCredits:$.remainingCredits??$.remaining_credits??0,planCredits:$.planCredits??$.plan_credits,billingPeriodStart:$.billingPeriodStart??$.billing_period_start??null,billingPeriodEnd:$.billingPeriodEnd??$.billing_period_end??null}}catch(X){if(X?.isAxiosError)return W(X,"get credit usage");throw X}}async function lX(Y){try{let X=await Y.get("/v2/team/token-usage");if(X.status!==200||!X.data?.success)J(X,"get token usage");let $=X.data.data||X.data;return{remainingTokens:$.remainingTokens??$.remaining_tokens??0,planTokens:$.planTokens??$.plan_tokens,billingPeriodStart:$.billingPeriodStart??$.billing_period_start??null,billingPeriodEnd:$.billingPeriodEnd??$.billing_period_end??null}}catch(X){if(X?.isAxiosError)return W(X,"get token usage");throw X}}async function dX(Y){try{let X=await Y.get("/v2/team/queue-status");if(X.status!==200||!X.data?.success)J(X,"get queue status");return X.data}catch(X){if(X?.isAxiosError)return W(X,"get queue status");throw X}}async function iX(Y,X){try{let $=X?"?byApiKey=true":"",G=await Y.get(`/v2/team/credit-usage/historical${$}`);if(G.status!==200||!G.data?.success)J(G,"get credit usage historical");return G.data}catch($){if($?.isAxiosError)return W($,"get credit usage historical");throw $}}async function nX(Y,X){try{let $=X?"?byApiKey=true":"",G=await Y.get(`/v2/team/token-usage/historical${$}`);if(G.status!==200||!G.data?.success)J(G,"get token usage historical");return G.data}catch($){if($?.isAxiosError)return W($,"get token usage historical");throw $}}function P(Y,X,$){if($==null)return;if(Array.isArray($)){for(let G of $)if(G!=null&&String(G).length>0)Y.append(X,String(G))}else Y.append(X,String($))}function x(Y,X){let $=X.toString();return $?`${Y}?${$}`:Y}function D(Y,X){if(Y?.isAxiosError){let $=Y.response?.status,G=Y.response?.data;if(G&&(G.detail||G.title)){let _=G.detail||G.title;throw new K(_,$,G.type,G)}throw new K(Y.message||`Request failed while trying to ${X}`,$,Y.code,G)}throw Y}function g(Y){if(!Y)return"";let X=new URLSearchParams;for(let[G,_]of Object.entries(Y))if(_!==void 0&&_!==null)X.set(G,String(_));let $=X.toString();return $?`?${$}`:""}function z(Y,X){if(Y.status!==200||!Y.data?.success||Y.data.data==null)J(Y,X);return Y.data.data}async function tX(Y,X){try{let $=await Y.post("/v2/monitor",X);return z($,"create monitor")}catch($){if($?.isAxiosError)return W($,"create monitor");throw $}}async function aX(Y,X){try{let $=await Y.get(`/v2/monitor${g(X)}`);return z($,"list monitors")}catch($){if($?.isAxiosError)return W($,"list monitors");throw $}}async function oX(Y,X){try{let $=await Y.get(`/v2/monitor/${X}`);return z($,"get monitor")}catch($){if($?.isAxiosError)return W($,"get monitor");throw $}}async function sX(Y,X,$){try{let G=await Y.patch(`/v2/monitor/${X}`,$);return z(G,"update monitor")}catch(G){if(G?.isAxiosError)return W(G,"update monitor");throw G}}async function eX(Y,X){try{let $=await Y.delete(`/v2/monitor/${X}`);if($.status!==200||!$.data?.success)J($,"delete monitor");return!0}catch($){if($?.isAxiosError)return W($,"delete monitor");throw $}}async function rX(Y,X){try{let $=await Y.post(`/v2/monitor/${X}/run`,{});return z($,"run monitor")}catch($){if($?.isAxiosError)return W($,"run monitor");throw $}}async function XY(Y,X,$){try{let G=await Y.get(`/v2/monitor/${X}/checks${g($)}`);return z(G,"list monitor checks")}catch(G){if(G?.isAxiosError)return W(G,"list monitor checks");throw G}}async function YY(Y,X,$,G){try{let{autoPaginate:_,maxPages:N,maxResults:Q,maxWaitTime:H,...V}=G??{},O=await Y.get(`/v2/monitor/${X}/checks/${$}${g(V)}`),L=z(O,"get monitor check"),M=O.data?.next??L.next??null;if(!(G?.autoPaginate??!0)||!M)return{...L,next:M};return{...L,pages:await q(Y,M,L.pages||[],G),next:null}}catch(_){if(_?.isAxiosError)return W(_,"get monitor check");throw _}}var GX=class{instance;apiKey;apiUrl;maxRetries;backoffFactor;constructor(Y){this.apiKey=Y.apiKey,this.apiUrl=Y.apiUrl.replace(/\/$/,""),this.maxRetries=Y.maxRetries??3,this.backoffFactor=Y.backoffFactor??0.5,this.instance=B.create({baseURL:this.apiUrl,timeout:Y.timeoutMs??300000,headers:{...this.apiKey?{Authorization:`Bearer ${this.apiKey}`}:{}},transitional:{clarifyTimeoutError:!0}})}getApiUrl(){return this.apiUrl}getApiKey(){return this.apiKey}async request(Y){let X=d();Y.headers={...Y.headers||{}};let $;for(let G=0;G<this.maxRetries;G++)try{let _={...Y},N=typeof FormData<"u"&&_.data instanceof FormData;if(!N&&_.data!=null&&typeof _.data==="object"&&!Array.isArray(_.data)&&_.method&&["post","put","patch"].includes(_.method.toLowerCase())){let V=_.data??{};_.data={...V,origin:typeof V.origin==="string"&&V.origin.includes("mcp")?V.origin:`js-sdk@${X}`}}if(N)_.headers={..._.headers||{}},delete _.headers["Content-Type"],delete _.headers["content-type"];let H=await this.instance.request(_);if(H.status===502&&G<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,G));continue}return H}catch(_){if($=_,_?.response?.status===502&&G<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,G));continue}throw _}throw $??Error("Unexpected HTTP client error")}sleep(Y){return new Promise((X)=>setTimeout(X,Y*1000))}post(Y,X,$){return this.request({method:"post",url:Y,data:X,headers:$?.headers,timeout:$?.timeoutMs})}postMultipart(Y,X,$){return this.request({method:"post",url:Y,data:X,headers:$?.headers,timeout:$?.timeoutMs})}get(Y,X){return this.request({method:"get",url:Y,headers:X})}delete(Y,X){return this.request({method:"delete",url:Y,headers:X})}patch(Y,X,$){return this.request({method:"patch",url:Y,data:X,headers:$?.headers,timeout:$?.timeoutMs})}prepareHeaders(Y){let X={};if(Y)X["x-idempotency-key"]=Y;return X}},K,w,A="/v2/search/research",pX=class{constructor(Y){this.http=Y}http;async searchPapers(Y,X={}){if(!Y||!Y.trim())throw Error("query cannot be empty");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;P($,"query",Y),P($,"k",X.k),P($,"authors",X.authors),P($,"categories",X.categories),P($,"from",X.from),P($,"to",X.to);try{let G=await this.http.get(x(`${A}/papers`,$));if(G.status!==200)J(G,"search papers");return G.data}catch(G){return D(G,"search papers")}}async getPaper(Y,X={}){if(!Y||!Y.trim())throw Error("id cannot be empty");if(X.k!=null&&X.query==null)throw Error("k is only valid together with query");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;P($,"query",X.query),P($,"k",X.k);try{let G=await this.http.get(x(`${A}/papers/${encodeURIComponent(Y)}`,$));if(G.status!==200)J(G,"get paper");return G.data}catch(G){return D(G,"get paper")}}async similarPapers(Y,X){if(!Y||!Y.trim())throw Error("id cannot be empty");if(!X?.intent||!X.intent.trim())throw Error("intent cannot be empty");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;if(P($,"intent",X.intent),P($,"mode",X.mode),P($,"k",X.k),X.rerank!=null)P($,"rerank",X.rerank);P($,"anchor",X.anchor);try{let G=await this.http.get(x(`${A}/papers/${encodeURIComponent(Y)}/similar`,$));if(G.status!==200)J(G,"find similar papers");return G.data}catch(G){return D(G,"find similar papers")}}async searchGithub(Y,X={}){if(!Y||!Y.trim())throw Error("query cannot be empty");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;P($,"query",Y),P($,"k",X.k);try{let G=await this.http.get(x(`${A}/github`,$));if(G.status!==200)J(G,"search github");return G.data}catch(G){return D(G,"search github")}}},GY=()=>{if(typeof globalThis>"u")return;let Y=globalThis.WebSocket;return typeof Y==="function"?Y:void 0},_Y=()=>typeof process<"u"&&!!process.versions?.node,k,E,NY=async()=>{if(!_Y())return;try{let Y=await import("./index-0.6.12-rdmcmvt7.mjs"),X=Y.WebSocket??Y.default?.WebSocket;return typeof X==="function"?X:void 0}catch{return}},HY=async()=>{if(k)return k;let Y=GY();if(Y)return k=Y,k;if(!E)E=NY();return k=await E,k},QY,ZY=(Y)=>{if(typeof Y==="string")return Y;if(typeof Buffer<"u"&&Buffer.isBuffer(Y))return Y.toString("utf8");let X=($)=>{if(typeof Buffer<"u")return Buffer.from($.buffer,$.byteOffset,$.byteLength).toString("utf8");return QY?.decode($)};if(ArrayBuffer.isView(Y))return X(Y);if(Y instanceof ArrayBuffer)return X(new Uint8Array(Y));return},VY,j=class{http;_research;isCloudService(Y){return Y.includes("api.firecrawl.dev")}constructor(Y={}){let X=typeof Y==="string"?{apiKey:Y}:Y,$=(X.apiKey??process.env.FIRECRAWL_API_KEY??"").trim(),G=(X.apiUrl??process.env.FIRECRAWL_API_URL??"https://api.firecrawl.dev").replace(/\/$/,"");this.http=new GX({apiKey:$,apiUrl:G,timeoutMs:X.timeoutMs,maxRetries:X.maxRetries,backoffFactor:X.backoffFactor})}async scrape(Y,X){return VX(this.http,Y,X)}async interact(Y,X){return OX(this.http,Y,X)}async stopInteraction(Y){return WX(this.http,Y)}async scrapeExecute(Y,X){return this.interact(Y,X)}async stopInteractiveBrowser(Y){return this.stopInteraction(Y)}async deleteScrapeBrowser(Y){return this.stopInteraction(Y)}async parse(Y,X){return JX(this.http,Y,X)}async search(Y,X={}){return LX(this.http,{query:Y,...X})}async feedback(Y){return KX(this.http,Y)}async searchFeedback(Y,X){return CX(this.http,Y,X)}get research(){if(!this._research)this._research=new pX(this.http);return this._research}async map(Y,X){return UX(this.http,Y,X)}async startCrawl(Y,X={}){return p(this.http,{url:Y,...X})}async getCrawlStatus(Y,X){return b(this.http,Y,X)}async cancelCrawl(Y){return BX(this.http,Y)}async crawl(Y,X={}){return kX(this.http,{url:Y,...X},X.pollInterval,X.timeout)}async getCrawlErrors(Y){return RX(this.http,Y)}async getActiveCrawls(){return fX(this.http)}async crawlParamsPreview(Y,X){return AX(this.http,Y,X)}async createMonitor(Y){return tX(this.http,Y)}async listMonitors(Y){return aX(this.http,Y)}async getMonitor(Y){return oX(this.http,Y)}async updateMonitor(Y,X){return sX(this.http,Y,X)}async deleteMonitor(Y){return eX(this.http,Y)}async runMonitor(Y){return rX(this.http,Y)}async listMonitorChecks(Y,X){return XY(this.http,Y,X)}async getMonitorCheck(Y,X,$){return YY(this.http,Y,X,$)}async startBatchScrape(Y,X){return t(this.http,Y,X)}async getBatchScrapeStatus(Y,X){return y(this.http,Y,X)}async getBatchScrapeErrors(Y){return DX(this.http,Y)}async cancelBatchScrape(Y){return xX(this.http,Y)}async batchScrape(Y,X){return vX(this.http,Y,X)}async startExtract(Y){return a(this.http,Y)}async getExtractStatus(Y){return o(this.http,Y)}async extract(Y){return jX(this.http,Y)}async startAgent(Y){return s(this.http,Y)}async getAgentStatus(Y){return e(this.http,Y)}async agent(Y){return qX(this.http,Y)}async cancelAgent(Y){return bX(this.http,Y)}async browser(Y={}){return yX(this.http,Y)}async browserExecute(Y,X){return gX(this.http,Y,X)}async deleteBrowser(Y){return hX(this.http,Y)}async listBrowsers(Y={}){return cX(this.http,Y)}async getConcurrency(){return uX(this.http)}async getCreditUsage(){return mX(this.http)}async getTokenUsage(){return lX(this.http)}async getCreditUsageHistorical(Y){return iX(this.http,Y)}async getTokenUsageHistorical(Y){return nX(this.http,Y)}async getQueueStatus(){return dX(this.http)}watcher(Y,X={}){return new VY(this.http,Y,X)}async scrapeUrl(Y,X){return this.scrape(Y,X)}async crawlUrl(Y,X={}){return this.crawl(Y,X)}async asyncCrawlUrl(Y,X={}){return this.startCrawl(Y,X)}async checkCrawlStatus(Y,X){return this.getCrawlStatus(Y,X)}async checkCrawlErrors(Y){return this.getCrawlErrors(Y)}async mapUrl(Y,X){return this.map(Y,X)}async batchScrapeUrls(Y,X){return this.batchScrape(Y,X)}async asyncBatchScrapeUrls(Y,X){return this.startBatchScrape(Y,X)}async checkBatchScrapeStatus(Y,X){return this.getBatchScrapeStatus(Y,X)}async checkBatchScrapeErrors(Y){return this.getBatchScrapeErrors(Y)}},OY,Z,WY=class{apiKey;apiUrl;version="1.25.1";isCloudService(Y){return Y.includes("api.firecrawl.dev")}async getVersion(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return(await import("./package-FMOR3ELU-0.6.12-8kng3f73.mjs")).default.version}catch(Y){if(!(typeof process<"u"&&(process.env.JEST_WORKER_ID!=null||!1)))console.error("Error getting version:",Y);return"1.25.1"}}async init(){this.version=await this.getVersion()}constructor({apiKey:Y=null,apiUrl:X=null}){let $=X||"https://api.firecrawl.dev";if(this.isCloudService($)&&typeof Y!=="string")throw new Z("No API key provided",401);this.apiKey=Y||"",this.apiUrl=$,this.init()}async scrapeUrl(Y,X){let $={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},G={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};if(G?.extract?.schema)G={...G,extract:{...G.extract,schema:U(G.extract.schema)}};if(G?.jsonOptions?.schema)G={...G,jsonOptions:{...G.jsonOptions,schema:U(G.jsonOptions.schema)}};try{let _=await B.post(this.apiUrl+"/v1/scrape",G,{headers:$,timeout:X?.timeout!==void 0?X.timeout+5000:void 0});if(_.status===200){let N=_.data;if(N.success)return{success:!0,warning:N.warning,error:N.error,...N.data};else throw new Z(`Failed to scrape URL. Error: ${N.error}`,_.status)}else this.handleError(_,"scrape URL")}catch(_){this.handleError(_.response,"scrape URL")}return{success:!1,error:"Internal server error."}}async search(Y,X){let $={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},G={query:Y,limit:X?.limit??5,tbs:X?.tbs,filter:X?.filter,lang:X?.lang??"en",country:X?.country??"us",location:X?.location,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`,timeout:X?.timeout??60000,scrapeOptions:X?.scrapeOptions??{formats:[]}};if(G?.scrapeOptions?.extract?.schema)G={...G,scrapeOptions:{...G.scrapeOptions,extract:{...G.scrapeOptions.extract,schema:U(G.scrapeOptions.extract.schema)}}};try{let _=await this.postRequest(this.apiUrl+"/v1/search",G,$);if(_.status===200){let N=_.data;if(N.success)return{success:!0,data:N.data,warning:N.warning};else throw new Z(`Failed to search. Error: ${N.error}`,_.status)}else this.handleError(_,"search")}catch(_){if(_.response?.data?.error)throw new Z(`Request failed with status code ${_.response.status}. Error: ${_.response.data.error} ${_.response.data.details?` - ${JSON.stringify(_.response.data.details)}`:""}`,_.response.status);else throw new Z(_.message,500)}return{success:!1,error:"Internal server error.",data:[]}}async crawlUrl(Y,X,$=2,G){let _=this.prepareHeaders(G),N={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let Q=await this.postRequest(this.apiUrl+"/v1/crawl",N,_);if(Q.status===200){let H=Q.data.id;return this.monitorJobStatus(H,_,$)}else this.handleError(Q,"start crawl job")}catch(Q){if(Q.response?.data?.error)throw new Z(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new Z(Q.message,500)}return{success:!1,error:"Internal server error."}}async asyncCrawlUrl(Y,X,$){let G=this.prepareHeaders($),_={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let N=await this.postRequest(this.apiUrl+"/v1/crawl",_,G);if(N.status===200)return N.data;else this.handleError(N,"start crawl job")}catch(N){if(N.response?.data?.error)throw new Z(`Request failed with status code ${N.response.status}. Error: ${N.response.data.error} ${N.response.data.details?` - ${JSON.stringify(N.response.data.details)}`:""}`,N.response.status);else throw new Z(N.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlStatus(Y,X=!1,$,G,_){if(!Y)throw new Z("No crawl ID provided",400);let N=this.prepareHeaders(),Q=new URL($??`${this.apiUrl}/v1/crawl/${Y}`);if(G!==void 0)Q.searchParams.set("skip",G.toString());if(_!==void 0)Q.searchParams.set("limit",_.toString());try{let H=await this.getRequest(Q.href,N);if(H.status===200){let V=H.data.data;if(X&&H.data.status==="completed"){let L=H.data;if("data"in L){let M=L.data;while(typeof L==="object"&&"next"in L){if(M.length===0)break;L=(await this.getRequest(L.next,N)).data,M=M.concat(L.data)}V=M}}let O={success:H.data.success,status:H.data.status,total:H.data.total,completed:H.data.completed,creditsUsed:H.data.creditsUsed,next:X?void 0:H.data.next,expiresAt:new Date(H.data.expiresAt),data:V};if(!H.data.success&&H.data.error)O={...O,success:!1,error:H.data.error};if(H.data.next)O.next=H.data.next;return O}else this.handleError(H,"check crawl status")}catch(H){throw new Z(H.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlErrors(Y){let X=this.prepareHeaders();try{let $=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${Y}/errors`,X);if($.status===200)return $.data;else this.handleError($,"check crawl errors")}catch($){throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async cancelCrawl(Y){let X=this.prepareHeaders();try{let $=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${Y}`,X);if($.status===200)return $.data;else this.handleError($,"cancel crawl job")}catch($){throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async crawlUrlAndWatch(Y,X,$){let G=await this.asyncCrawlUrl(Y,X,$);if(G.success&&G.id){let _=G.id;return new c(_,this)}throw new Z("Crawl job failed to start",400)}async mapUrl(Y,X){let $=this.prepareHeaders(),G={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let _=await this.postRequest(this.apiUrl+"/v1/map",G,$);if(_.status===200)return _.data;else this.handleError(_,"map")}catch(_){throw new Z(_.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrls(Y,X,$=2,G,_,N,Q){let H=this.prepareHeaders(G),V={urls:Y,webhook:_,ignoreInvalidURLs:N,maxConcurrency:Q,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};if(V?.extract?.schema)V={...V,extract:{...V.extract,schema:U(V.extract.schema)}};if(V?.jsonOptions?.schema)V={...V,jsonOptions:{...V.jsonOptions,schema:U(V.jsonOptions.schema)}};try{let O=await this.postRequest(this.apiUrl+"/v1/batch/scrape",V,H);if(O.status===200){let L=O.data.id;return this.monitorJobStatus(L,H,$)}else this.handleError(O,"start batch scrape job")}catch(O){if(O.response?.data?.error)throw new Z(`Request failed with status code ${O.response.status}. Error: ${O.response.data.error} ${O.response.data.details?` - ${JSON.stringify(O.response.data.details)}`:""}`,O.response.status);else throw new Z(O.message,500)}return{success:!1,error:"Internal server error."}}async asyncBatchScrapeUrls(Y,X,$,G,_){let N=this.prepareHeaders($),Q={urls:Y,webhook:G,ignoreInvalidURLs:_,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let H=await this.postRequest(this.apiUrl+"/v1/batch/scrape",Q,N);if(H.status===200)return H.data;else this.handleError(H,"start batch scrape job")}catch(H){if(H.response?.data?.error)throw new Z(`Request failed with status code ${H.response.status}. Error: ${H.response.data.error} ${H.response.data.details?` - ${JSON.stringify(H.response.data.details)}`:""}`,H.response.status);else throw new Z(H.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrlsAndWatch(Y,X,$,G,_){let N=await this.asyncBatchScrapeUrls(Y,X,$,G,_);if(N.success&&N.id){let Q=N.id;return new c(Q,this)}throw new Z("Batch scrape job failed to start",400)}async checkBatchScrapeStatus(Y,X=!1,$,G,_){if(!Y)throw new Z("No batch scrape ID provided",400);let N=this.prepareHeaders(),Q=new URL($??`${this.apiUrl}/v1/batch/scrape/${Y}`);if(G!==void 0)Q.searchParams.set("skip",G.toString());if(_!==void 0)Q.searchParams.set("limit",_.toString());try{let H=await this.getRequest(Q.href,N);if(H.status===200){let V=H.data.data;if(X&&H.data.status==="completed"){let L=H.data;if("data"in L){let M=L.data;while(typeof L==="object"&&"next"in L){if(M.length===0)break;L=(await this.getRequest(L.next,N)).data,M=M.concat(L.data)}V=M}}let O={success:H.data.success,status:H.data.status,total:H.data.total,completed:H.data.completed,creditsUsed:H.data.creditsUsed,next:X?void 0:H.data.next,expiresAt:new Date(H.data.expiresAt),data:V};if(!H.data.success&&H.data.error)O={...O,success:!1,error:H.data.error};if(H.data.next)O.next=H.data.next;return O}else this.handleError(H,"check batch scrape status")}catch(H){throw new Z(H.message,500)}return{success:!1,error:"Internal server error."}}async checkBatchScrapeErrors(Y){let X=this.prepareHeaders();try{let $=await this.deleteRequest(`${this.apiUrl}/v1/batch/scrape/${Y}/errors`,X);if($.status===200)return $.data;else this.handleError($,"check batch scrape errors")}catch($){throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async extract(Y,X){let $=this.prepareHeaders(),G={urls:Y,...X},_=X?.schema?U(X.schema):void 0;try{let N=await this.postRequest(this.apiUrl+"/v1/extract",{...G,schema:_,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`},$);if(N.status===200){let Q=N.data.id,H;do{let V=await this.getRequest(`${this.apiUrl}/v1/extract/${Q}`,$);if(H=V.data,H.status==="completed")if(H.success)return{success:!0,data:H.data,warning:H.warning,error:H.error,sources:H?.sources||void 0};else throw new Z(`Failed to extract data. Error: ${H.error}`,V.status);else if(H.status==="failed"||H.status==="cancelled")throw new Z(`Extract job ${H.status}. Error: ${H.error}`,V.status);await new Promise((O)=>setTimeout(O,1000))}while(H.status!=="completed")}else this.handleError(N,"extract")}catch(N){throw new Z(N.message,500,N.response?.data?.details)}return{success:!1,error:"Internal server error."}}async asyncExtract(Y,X,$){let G=this.prepareHeaders($),_={urls:Y,...X},N=X?.schema?U(X.schema):void 0;try{let Q=await this.postRequest(this.apiUrl+"/v1/extract",{..._,schema:N,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`},G);if(Q.status===200)return Q.data;else this.handleError(Q,"start extract job")}catch(Q){throw new Z(Q.message,500,Q.response?.data?.details)}return{success:!1,error:"Internal server error."}}async getExtractStatus(Y){try{let X=await this.getRequest(`${this.apiUrl}/v1/extract/${Y}`,this.prepareHeaders());if(X.status===200)return X.data;else this.handleError(X,"get extract status")}catch(X){throw new Z(X.message,500)}}prepareHeaders(Y){return{"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`,...Y?{"x-idempotency-key":Y}:{}}}postRequest(Y,X,$){return B.post(Y,X,{headers:$,timeout:X?.timeout?X.timeout+5000:void 0})}async getRequest(Y,X){try{return await B.get(Y,{headers:X})}catch($){if($ instanceof F&&$.response)return $.response;else throw $}}async deleteRequest(Y,X){try{return await B.delete(Y,{headers:X})}catch($){if($ instanceof F&&$.response)return $.response;else throw $}}async monitorJobStatus(Y,X,$){let G=0,_=0,N=3;while(!0)try{let Q=await this.getRequest(`${this.apiUrl}/v1/crawl/${Y}`,X);if(Q.status===200){G=0,_=0;let H=Q.data;if(H.status==="completed")if("data"in H){let V=H.data;while(typeof H==="object"&&"next"in H){if(V.length===0)break;Q=await this.getRequest(H.next,X),H=Q.data,V=V.concat(H.data)}return H.data=V,H}else throw new Z("Crawl job completed but no data was returned",500);else if(["active","paused","pending","queued","waiting","scraping"].includes(H.status))$=Math.max($,2),await new Promise((V)=>setTimeout(V,$*1000));else throw new Z(`Crawl job failed or was stopped. Status: ${H.status}`,500)}else if(G++,G>=3)this.handleError(Q,"check crawl status")}catch(Q){if(this.isRetryableError(Q)&&_<N){_++;let H=Math.min(1000*Math.pow(2,_-1),1e4);await new Promise((V)=>setTimeout(V,H));continue}throw new Z(Q,500)}}isRetryableError(Y){if(Y instanceof F){if(!Y.response){let X=Y.code,$=Y.message?.toLowerCase()||"";return X==="ECONNRESET"||X==="ETIMEDOUT"||X==="ENOTFOUND"||X==="ECONNREFUSED"||$.includes("socket hang up")||$.includes("network error")||$.includes("timeout")}if(Y.response?.status===408||Y.response?.status===504)return!0}if(Y&&typeof Y==="object"){let X=Y.code,$=Y.message?.toLowerCase()||"";if(X==="ECONNRESET"||X==="ETIMEDOUT"||X==="ENOTFOUND"||X==="ECONNREFUSED"||$.includes("socket hang up")||$.includes("network error")||$.includes("timeout"))return!0;if(Y.response?.status===408||Y.response?.status===504)return!0}return!1}handleError(Y,X){if(!Y)throw new Z(`No response received while trying to ${X}. This may be a network error or the server is unreachable.`,0);if([400,402,403,408,409,500].includes(Y.status)){let $=Y.data.error||"Unknown error occurred",G=Y.data.details?` - ${JSON.stringify(Y.data.details)}`:"";throw new Z(`Failed to ${X}. Status code: ${Y.status}. Error: ${$}${G}`,Y.status,Y?.data?.details)}else throw new Z(`Unexpected error occurred while trying to ${X}. Status code: ${Y.status}`,Y.status)}async deepResearch(Y,X,$,G){try{let _=await this.asyncDeepResearch(Y,X);if(!_.success||"error"in _)return{success:!1,error:"error"in _?_.error:"Unknown error"};if(!_.id)throw new Z("Failed to start research. No job ID returned.",500);let N=_.id,Q,H=0,V=0;while(!0){if(Q=await this.checkDeepResearchStatus(N),"error"in Q&&!Q.success)return Q;if($&&Q.activities){let O=Q.activities.slice(H);for(let L of O)$(L);H=Q.activities.length}if(G&&Q.sources){let O=Q.sources.slice(V);for(let L of O)G(L);V=Q.sources.length}if(Q.status==="completed")return Q;if(Q.status==="failed")throw new Z(`Research job ${Q.status}. Error: ${Q.error}`,500);if(Q.status!=="processing")break;await new Promise((O)=>setTimeout(O,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(_){throw new Z(_.message,500,_.response?.data?.details)}}async asyncDeepResearch(Y,X){let $=this.prepareHeaders(),G={query:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};if(G?.jsonOptions?.schema)G={...G,jsonOptions:{...G.jsonOptions,schema:U(G.jsonOptions.schema)}};try{let _=await this.postRequest(`${this.apiUrl}/v1/deep-research`,G,$);if(_.status===200)return _.data;else this.handleError(_,"start deep research")}catch(_){if(_.response?.data?.error)throw new Z(`Request failed with status code ${_.response.status}. Error: ${_.response.data.error} ${_.response.data.details?` - ${JSON.stringify(_.response.data.details)}`:""}`,_.response.status);else throw new Z(_.message,500)}return{success:!1,error:"Internal server error."}}async checkDeepResearchStatus(Y){let X=this.prepareHeaders();try{let $=await this.getRequest(`${this.apiUrl}/v1/deep-research/${Y}`,X);if($.status===200)return $.data;else if($.status===404)throw new Z("Deep research job not found",404);else this.handleError($,"check deep research status")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async __deepResearch(Y,X,$){try{let G=await this.__asyncDeepResearch(Y,X);if(!G.success||"error"in G)return{success:!1,error:"error"in G?G.error:"Unknown error"};if(!G.id)throw new Z("Failed to start research. No job ID returned.",500);let _=G.id,N,Q=0;while(!0){if(N=await this.__checkDeepResearchStatus(_),"error"in N&&!N.success)return N;if($&&N.activities){let H=N.activities.slice(Q);for(let V of H)$(V);Q=N.activities.length}if(N.status==="completed")return N;if(N.status==="failed")throw new Z(`Research job ${N.status}. Error: ${N.error}`,500);if(N.status!=="processing")break;await new Promise((H)=>setTimeout(H,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(G){throw new Z(G.message,500,G.response?.data?.details)}}async __asyncDeepResearch(Y,X){let $=this.prepareHeaders();try{let G={topic:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`},_=await this.postRequest(`${this.apiUrl}/v1/deep-research`,G,$);if(_.status===200)return _.data;else this.handleError(_,"start deep research")}catch(G){if(G.response?.data?.error)throw new Z(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new Z(G.message,500)}return{success:!1,error:"Internal server error."}}async __checkDeepResearchStatus(Y){let X=this.prepareHeaders();try{let $=await this.getRequest(`${this.apiUrl}/v1/deep-research/${Y}`,X);if($.status===200)return $.data;else if($.status===404)throw new Z("Deep research job not found",404);else this.handleError($,"check deep research status")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async generateLLMsText(Y,X){try{let $=await this.asyncGenerateLLMsText(Y,X);if(!$.success||"error"in $)return{success:!1,error:"error"in $?$.error:"Unknown error"};if(!$.id)throw new Z("Failed to start LLMs.txt generation. No job ID returned.",500);let G=$.id,_;while(!0){if(_=await this.checkGenerateLLMsTextStatus(G),"error"in _&&!_.success)return _;if(_.status==="completed")return _;if(_.status==="failed")throw new Z(`LLMs.txt generation job ${_.status}. Error: ${_.error}`,500);if(_.status!=="processing")break;await new Promise((N)=>setTimeout(N,2000))}return{success:!1,error:"LLMs.txt generation job terminated unexpectedly"}}catch($){throw new Z($.message,500,$.response?.data?.details)}}async asyncGenerateLLMsText(Y,X){let $=this.prepareHeaders(),G={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let _=await this.postRequest(`${this.apiUrl}/v1/llmstxt`,G,$);if(_.status===200)return _.data;else this.handleError(_,"start LLMs.txt generation")}catch(_){if(_.response?.data?.error)throw new Z(`Request failed with status code ${_.response.status}. Error: ${_.response.data.error} ${_.response.data.details?` - ${JSON.stringify(_.response.data.details)}`:""}`,_.response.status);else throw new Z(_.message,500)}return{success:!1,error:"Internal server error."}}async checkGenerateLLMsTextStatus(Y){let X=this.prepareHeaders();try{let $=await this.getRequest(`${this.apiUrl}/v1/llmstxt/${Y}`,X);if($.status===200)return $.data;else if($.status===404)throw new Z("LLMs.txt generation job not found",404);else this.handleError($,"check LLMs.txt generation status")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async getQueueStatus(){let Y=this.prepareHeaders();try{let X=await this.getRequest(`${this.apiUrl}/v1/team/queue-status`,Y);if(X.status===200)return X.data;else this.handleError(X,"get queue status")}catch(X){if(X.response?.data?.error)throw new Z(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new Z(X.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsage(){let Y=this.prepareHeaders();try{let X=await this.getRequest(`${this.apiUrl}/v1/team/credit-usage`,Y);if(X.status===200)return X.data;else this.handleError(X,"get credit usage")}catch(X){if(X.response?.data?.error)throw new Z(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new Z(X.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsage(){let Y=this.prepareHeaders();try{let X=await this.getRequest(`${this.apiUrl}/v1/team/token-usage`,Y);if(X.status===200)return X.data;else this.handleError(X,"get token usage")}catch(X){if(X.response?.data?.error)throw new Z(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new Z(X.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsageHistorical(Y){let X=this.prepareHeaders();try{let $=`${this.apiUrl}/v1/team/credit-usage/historical${Y?"?byApiKey=true":""}`,G=await this.getRequest($,X);if(G.status===200)return G.data;else this.handleError(G,"get credit usage historical")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsageHistorical(Y){let X=this.prepareHeaders();try{let $=`${this.apiUrl}/v1/team/token-usage/historical${Y?"?byApiKey=true":""}`,G=await this.getRequest($,X);if(G.status===200)return G.data;else this.handleError(G,"get token usage historical")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}},c,I,CY;var JY=r(()=>{$X();u();YX();u();K=class extends Error{status;code;details;jobId;constructor(Y,X,$,G,_){super(Y);this.name="FirecrawlSdkError",this.status=X,this.code=$,this.details=G,this.jobId=_}},w=class extends K{timeoutSeconds;constructor(Y,X,$="batch"){let G=$==="batch"?"batch scrape":"crawl";super(`${G.charAt(0).toUpperCase()+G.slice(1)} job ${Y} did not complete within ${X} seconds`,void 0,"JOB_TIMEOUT",void 0,Y);this.name="JobTimeoutError",this.timeoutSeconds=X}};QY=typeof TextDecoder<"u"?new TextDecoder:void 0,VY=class extends $Y{http;jobId;kind;pollInterval;timeout;ws;closed=!1;emittedDocumentKeys=new Set;constructor(Y,X,$={}){super();this.http=Y,this.jobId=X,this.kind=$.kind??"crawl",this.pollInterval=$.pollInterval??2,this.timeout=$.timeout}buildWsUrl(){let X=this.http.getApiUrl().replace(/^http/,"ws"),$=this.kind==="crawl"?`/v2/crawl/${this.jobId}`:`/v2/batch/scrape/${this.jobId}`;return`${X}${$}`}async start(){return new Promise((Y,X)=>{let $=()=>{_(),Y()},G=(N)=>{_(),Y()},_=()=>{this.removeListener("done",$),this.removeListener("error",G)};this.on("done",$),this.on("error",G),(async()=>{try{let N=this.buildWsUrl(),Q=await HY();if(!Q){this.pollLoop();return}if(this.ws=new Q(N,this.http.getApiKey()),this.ws&&"binaryType"in this.ws)this.ws.binaryType="arraybuffer";if(this.ws)this.attachWsHandlers(this.ws)}catch(N){this.pollLoop()}})()})}attachWsHandlers(Y){let X=Date.now(),$=this.timeout?this.timeout*1000:void 0;Y.onmessage=(G)=>{try{let _=ZY(G.data);if(!_)return;let N=JSON.parse(_),Q=N.type;if(Q==="error"){this.emit("error",{status:"failed",data:[],error:N.error,id:this.jobId});return}if(Q==="catchup"){let V=N.data||{};this.emitDocuments(V.data||[]),this.emitSnapshot(V);return}if(Q==="document"){let V=N.data;if(V)this.emitDocuments([V]);return}if(Q==="done"){let V=N.data||N,O=V.data||[];if(O.length)this.emitDocuments(O);this.emit("done",{status:"completed",data:O,id:this.jobId,total:V.total,completed:V.completed,creditsUsed:V.creditsUsed}),this.close();return}let H=N.data||N;if(H&&H.status)this.emitSnapshot(H)}catch{}if($&&Date.now()-X>$)this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close()},Y.onerror=()=>{this.emit("error",{status:"failed",data:[],error:"WebSocket error",id:this.jobId}),this.close()},Y.onclose=()=>{if(!this.closed)this.pollLoop()}}documentKey(Y){if(Y&&typeof Y==="object"){let X=Y.id??Y.docId??Y.url;if(typeof X==="string"&&X.length)return X}try{return JSON.stringify(Y)}catch{return`${Date.now()}-${Math.random()}`}}emitDocuments(Y){for(let X of Y){if(!X)continue;let $=this.documentKey(X);if(this.emittedDocumentKeys.has($))continue;this.emittedDocumentKeys.add($),this.emit("document",{...X,id:this.jobId})}}emitSnapshot(Y){let X=Y.status,$=Y.data||[],G=this.kind==="crawl"?{id:this.jobId,status:X,completed:Y.completed??0,total:Y.total??0,creditsUsed:Y.creditsUsed,expiresAt:Y.expiresAt,next:Y.next??null,data:$}:{id:this.jobId,status:X,completed:Y.completed??0,total:Y.total??0,creditsUsed:Y.creditsUsed,expiresAt:Y.expiresAt,next:Y.next??null,data:$};if(this.emit("snapshot",G),["completed","failed","cancelled"].includes(X))this.emit("done",{status:X,data:$,id:this.jobId,total:Y.total??0,completed:Y.completed??0,creditsUsed:Y.creditsUsed}),this.close()}async pollLoop(){let Y=Date.now(),X=this.timeout?this.timeout*1000:void 0;while(!this.closed){try{let $=this.kind==="crawl"?await b(this.http,this.jobId):await y(this.http,this.jobId);if(this.emitDocuments($.data||[]),this.emit("snapshot",$),["completed","failed","cancelled"].includes($.status)){this.emit("done",{status:$.status,data:$.data,id:this.jobId,total:$.total??0,completed:$.completed??0,creditsUsed:$.creditsUsed}),this.close();break}}catch{}if(X&&Date.now()-Y>X){this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close();break}await new Promise(($)=>setTimeout($,Math.max(1000,this.pollInterval*1000)))}}close(){if(this.closed=!0,this.ws&&this.ws.close)this.ws.close()}},OY=class extends EventTarget{dispatchTypedEvent(Y,X){return super.dispatchEvent(X)}},Z=class extends Error{statusCode;details;constructor(Y,X,$){super(Y);this.statusCode=X,this.details=$}},c=class extends OY{ws;data;status;id;constructor(Y,X){super();this.id=Y;let $=X.apiUrl.replace(/^http/,"ws");this.ws=new WebSocket(`${$}/v1/crawl/${Y}`,X.apiKey),this.status="scraping",this.data=[];let G=(_)=>{if(_.type==="done")this.status="completed",this.dispatchTypedEvent("done",new CustomEvent("done",{detail:{status:this.status,data:this.data,id:this.id}}));else if(_.type==="error")this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:_.error,id:this.id}}));else if(_.type==="catchup"){this.status=_.data.status,this.data.push(..._.data.data??[]);for(let N of this.data)this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{...N,id:this.id}}))}else if(_.type==="document")this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{..._.data,id:this.id}}))};this.ws.onmessage=((_)=>{if(typeof _.data!=="string"){this.ws.close();return}try{let N=JSON.parse(_.data);G(N)}catch(N){console.error("Error on message",N)}}).bind(this),this.ws.onclose=((_)=>{try{let N=JSON.parse(_.reason);G(N)}catch(N){console.error("Error on close",N)}}).bind(this),this.ws.onerror=((_)=>{this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:"WebSocket error",id:this.id}}))}).bind(this)}close(){this.ws.close()}},I=class extends j{_v1;_v1Opts;constructor(Y={}){let X=typeof Y==="string"?{apiKey:Y}:Y;super(X);this._v1Opts={apiKey:X.apiKey,apiUrl:X.apiUrl}}get v1(){if(!this._v1)this._v1=new WY(this._v1Opts);return this._v1}};(function(){for(let X of Object.getOwnPropertyNames(j.prototype)){if(X==="constructor")continue;if(Object.prototype.hasOwnProperty.call(I.prototype,X))continue;let $=Object.getOwnPropertyDescriptor(j.prototype,X);if($)Object.defineProperty(I.prototype,X,$)}})();CY=I});JY();export{CY as default,VY as Watcher,K as SdkError,pX as ResearchClient,w as JobTimeoutError,j as FirecrawlClient,WY as FirecrawlAppV1,I as Firecrawl};
@@ -1 +0,0 @@
1
- import{n7 as a}from"./cli-0.6.12-fr0rb7xk.mjs";import"./cli-0.6.12-75ddftht.mjs";import"./cli-0.6.12-ndg5saae.mjs";import"./cli-0.6.12-6bdrnprg.mjs";export default a();