@claudiolabs/claudin 0.6.7 → 0.6.8

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.8-1h6eg55x.mjs +1 -0
  2. package/dist/chunks/App-0.6.8-gf7z37d0.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.8-z559z4n4.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.8-a964szce.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.8-hmgphwsn.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.8-9vwjqk2g.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.8-bmx62ftg.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.8-6xg5m0rs.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.8-m77gpjht.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.8-h33wtqvb.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.8-g4rjbnb6.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.8-c6v8rps5.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.8-c6rr3der.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.8-rq8061vm.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.8-k3gjdk9q.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.8-fndbdavr.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.8-p9c1cvpj.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.8-rgwzy8mv.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.8-wz4ky583.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.8-0vytwym2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.8-j49mg943.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.8-1w0czdzd.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.8-3tb748qg.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.8-cchdkcj0.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.8-83basabp.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.8-vz9cakde.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.8-9xfzmsa4.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.8-z6bqkc89.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.8-maggp9sq.mjs +1 -0
  30. package/dist/chunks/agents-0.6.8-b17xcjhg.mjs +3 -0
  31. package/dist/chunks/agents-0.6.8-n3vcbv4n.mjs +110 -0
  32. package/dist/chunks/api-0.6.8-dx65vfgr.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.8-xdty46r6.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.8-48pyb11z.mjs +1 -0
  35. package/dist/chunks/auth-0.6.8-jzmpk916.mjs +1 -0
  36. package/dist/chunks/auth-0.6.8-v4ggd1x2.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.8-e3tpbf8n.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.8-kjwba4kd.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.8-ahc5b93c.mjs +1 -0
  40. package/dist/chunks/branch-0.6.8-bht94rzm.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.8-w3a5wvz5.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.8-tcqxv3wr.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.8-bbk61bwx.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.8-4gdvjwd9.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.8-y9zbj5sw.mjs +1 -0
  46. package/dist/chunks/btw-0.6.8-p8v9ccqj.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.8-cc9dgg1j.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.8-sa10tzqt.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.8-rb3gqp6p.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.8-ayfpcw3z.mjs +4 -0
  51. package/dist/chunks/caches-0.6.8-z51zt2q7.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.8-f2s8faxb.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.8-b32hs73z.mjs +1 -0
  54. package/dist/chunks/clear-0.6.8-wr581077.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.8-n1mdykjw.mjs +1 -0
  56. package/dist/chunks/cli-0.6.8-00w6vgmt.mjs +4 -0
  57. package/dist/chunks/cli-0.6.8-026meybw.mjs +2 -0
  58. package/dist/chunks/cli-0.6.8-070cxjdc.mjs +2 -0
  59. package/dist/chunks/cli-0.6.8-097dncsw.mjs +2 -0
  60. package/dist/chunks/cli-0.6.8-0dtwbbq2.mjs +10 -0
  61. package/dist/chunks/cli-0.6.8-0gpdjv55.mjs +34 -0
  62. package/dist/chunks/cli-0.6.8-0hn9sy42.mjs +2 -0
  63. package/dist/chunks/cli-0.6.8-0mb0d7wn.mjs +3 -0
  64. package/dist/chunks/cli-0.6.8-0mnxmayn.mjs +2 -0
  65. package/dist/chunks/cli-0.6.8-0rt710pa.mjs +2 -0
  66. package/dist/chunks/cli-0.6.8-0s41dm0j.mjs +2 -0
  67. package/dist/chunks/cli-0.6.8-0yz4b8v5.mjs +2 -0
  68. package/dist/chunks/cli-0.6.8-0zdwjw7h.mjs +17 -0
  69. package/dist/chunks/cli-0.6.8-1bmxpdky.mjs +2 -0
  70. package/dist/chunks/cli-0.6.8-1g5hjvgr.mjs +3 -0
  71. package/dist/chunks/cli-0.6.8-1k0se62h.mjs +2 -0
  72. package/dist/chunks/cli-0.6.8-1mnssvmz.mjs +8 -0
  73. package/dist/chunks/cli-0.6.8-1yx8jjck.mjs +2 -0
  74. package/dist/chunks/cli-0.6.8-21y1120z.mjs +2 -0
  75. package/dist/chunks/cli-0.6.8-239wrpj3.mjs +2 -0
  76. package/dist/chunks/cli-0.6.8-25he0rqv.mjs +2 -0
  77. package/dist/chunks/cli-0.6.8-2e9hw0b1.mjs +4 -0
  78. package/dist/chunks/cli-0.6.8-2f4081dz.mjs +2 -0
  79. package/dist/chunks/cli-0.6.8-2h6sve00.mjs +12 -0
  80. package/dist/chunks/cli-0.6.8-2nda5zxh.mjs +67 -0
  81. package/dist/chunks/cli-0.6.8-2p06hgb1.mjs +2 -0
  82. package/dist/chunks/cli-0.6.8-2pj7sdxd.mjs +2 -0
  83. package/dist/chunks/cli-0.6.8-2qb9g75m.mjs +2 -0
  84. package/dist/chunks/cli-0.6.8-34gwg749.mjs +2 -0
  85. package/dist/chunks/cli-0.6.8-3a510y9k.mjs +2 -0
  86. package/dist/chunks/cli-0.6.8-3ewbgezt.mjs +2 -0
  87. package/dist/chunks/cli-0.6.8-3phwrcqa.mjs +3 -0
  88. package/dist/chunks/cli-0.6.8-3z78waf8.mjs +4 -0
  89. package/dist/chunks/cli-0.6.8-416cqzak.mjs +2 -0
  90. package/dist/chunks/cli-0.6.8-4a0ebxtv.mjs +2 -0
  91. package/dist/chunks/cli-0.6.8-4avmxq80.mjs +6 -0
  92. package/dist/chunks/cli-0.6.8-4d57xs6b.mjs +2 -0
  93. package/dist/chunks/cli-0.6.8-4jh3r7br.mjs +2 -0
  94. package/dist/chunks/cli-0.6.8-4zdzrvfa.mjs +2 -0
  95. package/dist/chunks/cli-0.6.8-5enet6dq.mjs +2 -0
  96. package/dist/chunks/cli-0.6.8-5gstf2n7.mjs +2 -0
  97. package/dist/chunks/cli-0.6.8-5n9bwjf9.mjs +2 -0
  98. package/dist/chunks/cli-0.6.8-5sexbrs8.mjs +3 -0
  99. package/dist/chunks/cli-0.6.8-5y8n5kpk.mjs +2 -0
  100. package/dist/chunks/cli-0.6.8-6050y1gw.mjs +2 -0
  101. package/dist/chunks/cli-0.6.8-61qkxc3j.mjs +2 -0
  102. package/dist/chunks/cli-0.6.8-6495m72a.mjs +2 -0
  103. package/dist/chunks/cli-0.6.8-6ccg5qmp.mjs +2 -0
  104. package/dist/chunks/cli-0.6.8-6nasamhy.mjs +2 -0
  105. package/dist/chunks/cli-0.6.8-6pf3s7fk.mjs +6 -0
  106. package/dist/chunks/cli-0.6.8-6tgf3xa0.mjs +133 -0
  107. package/dist/chunks/cli-0.6.8-6v315rd0.mjs +2 -0
  108. package/dist/chunks/cli-0.6.8-6wdxaa6q.mjs +3 -0
  109. package/dist/chunks/cli-0.6.8-6z1655sa.mjs +2 -0
  110. package/dist/chunks/cli-0.6.8-72sec87k.mjs +3 -0
  111. package/dist/chunks/cli-0.6.8-77sjcesf.mjs +2 -0
  112. package/dist/chunks/cli-0.6.8-7g7k6yt9.mjs +2 -0
  113. package/dist/chunks/cli-0.6.8-7nqm28z4.mjs +2 -0
  114. package/dist/chunks/cli-0.6.8-7rznct58.mjs +2 -0
  115. package/dist/chunks/cli-0.6.8-7t0cwmv0.mjs +2 -0
  116. package/dist/chunks/cli-0.6.8-7t8gpbd2.mjs +6 -0
  117. package/dist/chunks/cli-0.6.8-82xanm26.mjs +3 -0
  118. package/dist/chunks/cli-0.6.8-883y3p0j.mjs +5348 -0
  119. package/dist/chunks/cli-0.6.8-8cptc9vb.mjs +4 -0
  120. package/dist/chunks/cli-0.6.8-8ezmkwsw.mjs +2 -0
  121. package/dist/chunks/cli-0.6.8-8h913n7t.mjs +2 -0
  122. package/dist/chunks/cli-0.6.8-8jkm4bym.mjs +2 -0
  123. package/dist/chunks/cli-0.6.8-8zc9gtx8.mjs +2 -0
  124. package/dist/chunks/cli-0.6.8-93hp2f5g.mjs +2 -0
  125. package/dist/chunks/cli-0.6.8-9cxxg2ax.mjs +2 -0
  126. package/dist/chunks/cli-0.6.8-9f5w9wre.mjs +2 -0
  127. package/dist/chunks/cli-0.6.8-9m65pb3r.mjs +18 -0
  128. package/dist/chunks/cli-0.6.8-9pkhxd6z.mjs +2 -0
  129. package/dist/chunks/cli-0.6.8-9xem54f8.mjs +2 -0
  130. package/dist/chunks/cli-0.6.8-a7nmnbm4.mjs +2 -0
  131. package/dist/chunks/cli-0.6.8-a8zm3cbn.mjs +5 -0
  132. package/dist/chunks/cli-0.6.8-abapkbf0.mjs +15 -0
  133. package/dist/chunks/cli-0.6.8-ag8hcaw0.mjs +2 -0
  134. package/dist/chunks/cli-0.6.8-atjt49c4.mjs +2 -0
  135. package/dist/chunks/cli-0.6.8-b280gnkv.mjs +1 -0
  136. package/dist/chunks/cli-0.6.8-b2zms4ec.mjs +2 -0
  137. package/dist/chunks/cli-0.6.8-b3v9vbq6.mjs +2 -0
  138. package/dist/chunks/cli-0.6.8-b6c3tmkx.mjs +2 -0
  139. package/dist/chunks/cli-0.6.8-b6f3e10d.mjs +2 -0
  140. package/dist/chunks/cli-0.6.8-bdhpc7zj.mjs +17 -0
  141. package/dist/chunks/cli-0.6.8-bh09cgap.mjs +6 -0
  142. package/dist/chunks/cli-0.6.8-bp3vvgaw.mjs +2 -0
  143. package/dist/chunks/cli-0.6.8-bsqfs15y.mjs +58 -0
  144. package/dist/chunks/cli-0.6.8-bxcjrmby.mjs +2 -0
  145. package/dist/chunks/cli-0.6.8-c838p5hk.mjs +3 -0
  146. package/dist/chunks/cli-0.6.8-cbvnsxaa.mjs +12 -0
  147. package/dist/chunks/cli-0.6.8-cctyv31j.mjs +4 -0
  148. package/dist/chunks/cli-0.6.8-cthp7gx1.mjs +2 -0
  149. package/dist/chunks/cli-0.6.8-cv73s4x5.mjs +4 -0
  150. package/dist/chunks/cli-0.6.8-dk4bw9mq.mjs +3 -0
  151. package/dist/chunks/cli-0.6.8-dpz3wm8v.mjs +2 -0
  152. package/dist/chunks/cli-0.6.8-dvkyrzw7.mjs +5 -0
  153. package/dist/chunks/cli-0.6.8-dwwx58n6.mjs +2 -0
  154. package/dist/chunks/cli-0.6.8-dxtyt1wg.mjs +2 -0
  155. package/dist/chunks/cli-0.6.8-ee7wzgsq.mjs +5 -0
  156. package/dist/chunks/cli-0.6.8-ee9mr0z2.mjs +2 -0
  157. package/dist/chunks/cli-0.6.8-efkksxch.mjs +2 -0
  158. package/dist/chunks/cli-0.6.8-efve08ng.mjs +2 -0
  159. package/dist/chunks/cli-0.6.8-ekkrzmjw.mjs +2 -0
  160. package/dist/chunks/cli-0.6.8-eyg1sq7b.mjs +2 -0
  161. package/dist/chunks/cli-0.6.8-eypwe6gz.mjs +15 -0
  162. package/dist/chunks/cli-0.6.8-fhedvbz1.mjs +15 -0
  163. package/dist/chunks/cli-0.6.8-fnet85r6.mjs +2 -0
  164. package/dist/chunks/cli-0.6.8-g3yp49rz.mjs +2 -0
  165. package/dist/chunks/cli-0.6.8-gcnabbk4.mjs +3 -0
  166. package/dist/chunks/cli-0.6.8-gfsf3tvy.mjs +2 -0
  167. package/dist/chunks/cli-0.6.8-gmzxyn2t.mjs +2 -0
  168. package/dist/chunks/cli-0.6.8-grdpt7ss.mjs +2 -0
  169. package/dist/chunks/cli-0.6.8-gscmwgeh.mjs +4 -0
  170. package/dist/chunks/cli-0.6.8-gtwt16bp.mjs +2 -0
  171. package/dist/chunks/cli-0.6.8-hj3j54vb.mjs +2 -0
  172. package/dist/chunks/cli-0.6.8-hvckc721.mjs +2 -0
  173. package/dist/chunks/cli-0.6.8-j22112y9.mjs +2 -0
  174. package/dist/chunks/cli-0.6.8-j5wfgenk.mjs +2 -0
  175. package/dist/chunks/cli-0.6.8-j81d3bq4.mjs +2 -0
  176. package/dist/chunks/cli-0.6.8-j8mdppyz.mjs +2 -0
  177. package/dist/chunks/cli-0.6.8-janhze0q.mjs +39 -0
  178. package/dist/chunks/cli-0.6.8-jea2s05x.mjs +2 -0
  179. package/dist/chunks/cli-0.6.8-jf4zbgy5.mjs +2 -0
  180. package/dist/chunks/cli-0.6.8-jp8gk6z3.mjs +2 -0
  181. package/dist/chunks/cli-0.6.8-jp9zzk35.mjs +2 -0
  182. package/dist/chunks/cli-0.6.8-jx1wvs6x.mjs +2 -0
  183. package/dist/chunks/cli-0.6.8-k533p6s5.mjs +2 -0
  184. package/dist/chunks/cli-0.6.8-kjfxmp31.mjs +2 -0
  185. package/dist/chunks/cli-0.6.8-kkh9paa3.mjs +2 -0
  186. package/dist/chunks/cli-0.6.8-kv1xtman.mjs +2 -0
  187. package/dist/chunks/cli-0.6.8-kxp0gfzq.mjs +4 -0
  188. package/dist/chunks/cli-0.6.8-m1r6z413.mjs +2 -0
  189. package/dist/chunks/cli-0.6.8-m2hw29ah.mjs +2 -0
  190. package/dist/chunks/cli-0.6.8-m2yf7dzs.mjs +2 -0
  191. package/dist/chunks/cli-0.6.8-ma2wastm.mjs +50 -0
  192. package/dist/chunks/cli-0.6.8-mecr32eb.mjs +24 -0
  193. package/dist/chunks/cli-0.6.8-mkfx6c2h.mjs +7 -0
  194. package/dist/chunks/cli-0.6.8-n3rhca7k.mjs +2 -0
  195. package/dist/chunks/cli-0.6.8-n4ecq63e.mjs +2 -0
  196. package/dist/chunks/cli-0.6.8-nmdsnavk.mjs +2 -0
  197. package/dist/chunks/cli-0.6.8-nwtmpseh.mjs +2 -0
  198. package/dist/chunks/cli-0.6.8-nz7pwsys.mjs +2 -0
  199. package/dist/chunks/cli-0.6.8-p6rhsdxf.mjs +2 -0
  200. package/dist/chunks/cli-0.6.8-pgcmgfht.mjs +2 -0
  201. package/dist/chunks/cli-0.6.8-pmpv80vx.mjs +2 -0
  202. package/dist/chunks/cli-0.6.8-pz3sbced.mjs +25 -0
  203. package/dist/chunks/cli-0.6.8-pzbspy3n.mjs +2 -0
  204. package/dist/chunks/cli-0.6.8-q027tb7b.mjs +2 -0
  205. package/dist/chunks/cli-0.6.8-q3txjpb9.mjs +2 -0
  206. package/dist/chunks/cli-0.6.8-qg557m5n.mjs +2 -0
  207. package/dist/chunks/cli-0.6.8-r1yjkwda.mjs +2 -0
  208. package/dist/chunks/cli-0.6.8-r42pr0w8.mjs +2 -0
  209. package/dist/chunks/cli-0.6.8-r9jgzx43.mjs +2 -0
  210. package/dist/chunks/cli-0.6.8-rewjhmpq.mjs +133 -0
  211. package/dist/chunks/cli-0.6.8-reyv7f1y.mjs +9 -0
  212. package/dist/chunks/cli-0.6.8-rftvcrp4.mjs +2 -0
  213. package/dist/chunks/cli-0.6.8-rw4y8s92.mjs +2 -0
  214. package/dist/chunks/cli-0.6.8-s0geqcvz.mjs +2 -0
  215. package/dist/chunks/cli-0.6.8-s0s7zs2a.mjs +24 -0
  216. package/dist/chunks/cli-0.6.8-s6yd5ybz.mjs +2 -0
  217. package/dist/chunks/cli-0.6.8-s98bd3q2.mjs +2 -0
  218. package/dist/chunks/cli-0.6.8-sn09eprm.mjs +2 -0
  219. package/dist/chunks/cli-0.6.8-sz1r1tvd.mjs +2 -0
  220. package/dist/chunks/cli-0.6.8-sznj03wy.mjs +3 -0
  221. package/dist/chunks/cli-0.6.8-t1kd2tg3.mjs +2 -0
  222. package/dist/chunks/cli-0.6.8-t3th9jjg.mjs +2 -0
  223. package/dist/chunks/cli-0.6.8-ta6qf4we.mjs +20 -0
  224. package/dist/chunks/cli-0.6.8-tb4rrntr.mjs +16 -0
  225. package/dist/chunks/cli-0.6.8-tewmm6rt.mjs +2 -0
  226. package/dist/chunks/cli-0.6.8-tnqnaqpx.mjs +3 -0
  227. package/dist/chunks/cli-0.6.8-tzmx6gz0.mjs +12 -0
  228. package/dist/chunks/cli-0.6.8-tztjt9fh.mjs +4 -0
  229. package/dist/chunks/cli-0.6.8-v582jfcn.mjs +4 -0
  230. package/dist/chunks/cli-0.6.8-v9wg3pvs.mjs +2 -0
  231. package/dist/chunks/cli-0.6.8-vcpys5fx.mjs +2 -0
  232. package/dist/chunks/cli-0.6.8-vf9cagcj.mjs +59 -0
  233. package/dist/chunks/cli-0.6.8-vpaw67v2.mjs +193 -0
  234. package/dist/chunks/cli-0.6.8-vqhtd9ay.mjs +2 -0
  235. package/dist/chunks/cli-0.6.8-vseqtday.mjs +21 -0
  236. package/dist/chunks/cli-0.6.8-vwhx9xjq.mjs +2 -0
  237. package/dist/chunks/cli-0.6.8-wdjsawer.mjs +3 -0
  238. package/dist/chunks/cli-0.6.8-wdq4r1nd.mjs +2 -0
  239. package/dist/chunks/cli-0.6.8-wfy4hqb2.mjs +2 -0
  240. package/dist/chunks/cli-0.6.8-wh069qak.mjs +2 -0
  241. package/dist/chunks/cli-0.6.8-wj4r5nwg.mjs +2 -0
  242. package/dist/chunks/cli-0.6.8-wnjmpcsm.mjs +2 -0
  243. package/dist/chunks/cli-0.6.8-x87v5pq1.mjs +45 -0
  244. package/dist/chunks/cli-0.6.8-xj1ptmgh.mjs +2 -0
  245. package/dist/chunks/cli-0.6.8-y0p6bqj6.mjs +2 -0
  246. package/dist/chunks/cli-0.6.8-y2c1w6bt.mjs +42 -0
  247. package/dist/chunks/cli-0.6.8-y3hnde8e.mjs +2 -0
  248. package/dist/chunks/cli-0.6.8-yvfgg1kg.mjs +2 -0
  249. package/dist/chunks/cli-0.6.8-yvt0y45m.mjs +28 -0
  250. package/dist/chunks/cli-0.6.8-yztx4k12.mjs +18 -0
  251. package/dist/chunks/cli-0.6.8-z4wpf0ah.mjs +2 -0
  252. package/dist/chunks/client-0.6.8-8kz2zw01.mjs +1 -0
  253. package/dist/chunks/color-0.6.8-jhpvc051.mjs +1 -0
  254. package/dist/chunks/compact-0.6.8-0gcf2ncc.mjs +3 -0
  255. package/dist/chunks/config-0.6.8-dxk5q3qr.mjs +1 -0
  256. package/dist/chunks/config-0.6.8-xdt0r55h.mjs +1 -0
  257. package/dist/chunks/constants-0.6.8-49aaqy22.mjs +1 -0
  258. package/dist/chunks/context-0.6.8-tavd1s8s.mjs +1 -0
  259. package/dist/chunks/context-noninteractive-0.6.8-6vagjsgf.mjs +1 -0
  260. package/dist/chunks/conversation-0.6.8-10fvebzj.mjs +1 -0
  261. package/dist/chunks/copilotHeaders-0.6.8-fqca0jf7.mjs +1 -0
  262. package/dist/chunks/copy-0.6.8-rhzw5vyv.mjs +9 -0
  263. package/dist/chunks/cost-0.6.8-w3qf0kpn.mjs +1 -0
  264. package/dist/chunks/createSSHSession-0.6.8-r7cw30nn.mjs +1 -0
  265. package/dist/chunks/createSession-0.6.8-vwbe80jv.mjs +1 -0
  266. package/dist/chunks/debug-0.6.8-pzm167m4.mjs +1 -0
  267. package/dist/chunks/defaultActionDeps-0.6.8-nnx5s7ws.mjs +1367 -0
  268. package/dist/chunks/desktop-0.6.8-ef8y3qjr.mjs +1 -0
  269. package/dist/chunks/detectRepository-0.6.8-3ayp37pd.mjs +1 -0
  270. package/dist/chunks/detection-0.6.8-pdrw5y2x.mjs +1 -0
  271. package/dist/chunks/diff-0.6.8-fxk9tzbd.mjs +1 -0
  272. package/dist/chunks/doctor-0.6.8-ajzrj1jx.mjs +1 -0
  273. package/dist/chunks/doctorDiagnostic-0.6.8-w72jdksp.mjs +1 -0
  274. package/dist/chunks/earlyInput-0.6.8-ca9mzfzf.mjs +1 -0
  275. package/dist/chunks/effort-0.6.8-e6xp1ycv.mjs +10 -0
  276. package/dist/chunks/envLessBridgeConfig-0.6.8-9vz6evg2.mjs +1 -0
  277. package/dist/chunks/envUtils-0.6.8-vq8np9fm.mjs +1 -0
  278. package/dist/chunks/environmentSelection-0.6.8-mf3acav0.mjs +1 -0
  279. package/dist/chunks/environments-0.6.8-k7rgvnpj.mjs +1 -0
  280. package/dist/chunks/errors-0.6.8-svsjkqng.mjs +1 -0
  281. package/dist/chunks/exampleCommands-0.6.8-7qjc7y64.mjs +1 -0
  282. package/dist/chunks/exit-0.6.8-507vwyf9.mjs +1 -0
  283. package/dist/chunks/explorer-0.6.8-25m08xd0.mjs +1 -0
  284. package/dist/chunks/export-0.6.8-w1yn5sa3.mjs +2 -0
  285. package/dist/chunks/extra-usage-0.6.8-sahj9pr6.mjs +1 -0
  286. package/dist/chunks/extra-usage-noninteractive-0.6.8-3r3nczjf.mjs +1 -0
  287. package/dist/chunks/fast-0.6.8-jpkz65vs.mjs +1 -0
  288. package/dist/chunks/feedback-0.6.8-5w9gvrc0.mjs +14 -0
  289. package/dist/chunks/firstPartyEventLogger-0.6.8-b2w3hkeb.mjs +1 -0
  290. package/dist/chunks/git-0.6.8-drry71tr.mjs +1 -0
  291. package/dist/chunks/githubModelsCredentials-0.6.8-4phd2tn9.mjs +1 -0
  292. package/dist/chunks/goal-0.6.8-vp972bd7.mjs +4 -0
  293. package/dist/chunks/grove-0.6.8-9dr81tf3.mjs +1 -0
  294. package/dist/chunks/growthbook-0.6.8-fcwcztdp.mjs +1 -0
  295. package/dist/chunks/headless-0.6.8-m2jzbvg9.mjs +2 -0
  296. package/dist/chunks/heapdump-0.6.8-awp81a34.mjs +6 -0
  297. package/dist/chunks/help-0.6.8-hbsb7av5.mjs +1 -0
  298. package/dist/chunks/hookChains-0.6.8-04mbkzxt.mjs +3 -0
  299. package/dist/chunks/hooks-0.6.8-6x1xc1rx.mjs +1 -0
  300. package/dist/chunks/hooks-0.6.8-80h8h076.mjs +79 -0
  301. package/dist/chunks/ide-0.6.8-7vbxnmby.mjs +3 -0
  302. package/dist/chunks/image-processor-napi-0.6.8-8m23kpm0.mjs +1 -0
  303. package/dist/chunks/inboundAttachments-0.6.8-wcyd47px.mjs +1 -0
  304. package/dist/chunks/index-0.6.8-1q3w68f1.mjs +1 -0
  305. package/dist/chunks/index-0.6.8-1w8hv7a8.mjs +1 -0
  306. package/dist/chunks/index-0.6.8-2sp7v8r9.mjs +2 -0
  307. package/dist/chunks/index-0.6.8-3782mjyy.mjs +1 -0
  308. package/dist/chunks/index-0.6.8-6eeqw069.mjs +1 -0
  309. package/dist/chunks/index-0.6.8-7dmsg46k.mjs +5 -0
  310. package/dist/chunks/index-0.6.8-7prxs8kr.mjs +1 -0
  311. package/dist/chunks/index-0.6.8-azcjsyp8.mjs +1 -0
  312. package/dist/chunks/index-0.6.8-ccq5xheq.mjs +2 -0
  313. package/dist/chunks/index-0.6.8-dkdk0g9j.mjs +1 -0
  314. package/dist/chunks/index-0.6.8-dv8qe20v.mjs +1 -0
  315. package/dist/chunks/index-0.6.8-fsfq8ekm.mjs +1 -0
  316. package/dist/chunks/index-0.6.8-k3r9pz8v.mjs +1 -0
  317. package/dist/chunks/index-0.6.8-ke45hjqk.mjs +1 -0
  318. package/dist/chunks/index-0.6.8-kvjzqm75.mjs +9 -0
  319. package/dist/chunks/index-0.6.8-m9y8nqmz.mjs +30 -0
  320. package/dist/chunks/index-0.6.8-mc1wvtc8.mjs +1 -0
  321. package/dist/chunks/index-0.6.8-svxnm6ph.mjs +1 -0
  322. package/dist/chunks/index-0.6.8-vvg8dg6z.mjs +9 -0
  323. package/dist/chunks/index-0.6.8-wec8yb9e.mjs +1 -0
  324. package/dist/chunks/index-0.6.8-y535r49s.mjs +1 -0
  325. package/dist/chunks/index-0.6.8-yf6035wh.mjs +1 -0
  326. package/dist/chunks/index-0.6.8-zcf4qg35.mjs +1 -0
  327. package/dist/chunks/init-0.6.8-brwjmnyg.mjs +1 -0
  328. package/dist/chunks/initReplBridge-0.6.8-5jcj5ax3.mjs +1 -0
  329. package/dist/chunks/ink-0.6.8-cts7p4b7.mjs +1 -0
  330. package/dist/chunks/insights-0.6.8-h5b5ve9h.mjs +870 -0
  331. package/dist/chunks/install-0.6.8-e3gdw6r9.mjs +1 -0
  332. package/dist/chunks/install-github-app-0.6.8-hh3mzyfs.mjs +149 -0
  333. package/dist/chunks/install-slack-app-0.6.8-n4pb88x6.mjs +1 -0
  334. package/dist/chunks/instrumentation-0.6.8-67ewcnwm.mjs +1 -0
  335. package/dist/chunks/interactiveHelpers-0.6.8-ryjx3tbw.mjs +1 -0
  336. package/dist/chunks/keybindings-0.6.8-8v6q91kq.mjs +2 -0
  337. package/dist/chunks/knowledge-0.6.8-dn40ytkg.mjs +2 -0
  338. package/dist/chunks/latestVersionCache-0.6.8-xx081act.mjs +1 -0
  339. package/dist/chunks/loadAgentsDir-0.6.8-vhh6hfk9.mjs +1 -0
  340. package/dist/chunks/loadPluginHooks-0.6.8-p15wjdk7.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.8-tjd9ekbf.mjs +1 -0
  342. package/dist/chunks/log-0.6.8-srvm2n7a.mjs +1 -0
  343. package/dist/chunks/main-0.6.8-5mcvdtte.mjs +1 -0
  344. package/dist/chunks/managedEnv-0.6.8-3m2x6zgp.mjs +1 -0
  345. package/dist/chunks/mcp-0.6.8-3dztd40j.mjs +17 -0
  346. package/dist/chunks/mcp-0.6.8-5msk2pvy.mjs +4 -0
  347. package/dist/chunks/mcp-0.6.8-nxyt74pa.mjs +1 -0
  348. package/dist/chunks/mcpb-0.6.8-v8q530w6.mjs +1 -0
  349. package/dist/chunks/memory-0.6.8-1pkjxmpb.mjs +3 -0
  350. package/dist/chunks/model-0.6.8-00wgempd.mjs +2 -0
  351. package/dist/chunks/model-0.6.8-99m80ayt.mjs +1 -0
  352. package/dist/chunks/node-0.6.8-b8rvxhkh.mjs +12 -0
  353. package/dist/chunks/oauth-0.6.8-c2r6j7j0.mjs +1 -0
  354. package/dist/chunks/openaiShim-0.6.8-z736wyft.mjs +14 -0
  355. package/dist/chunks/output-style-0.6.8-586m3zta.mjs +1 -0
  356. package/dist/chunks/package-FMOR3ELU-0.6.8-xe49mr3f.mjs +1 -0
  357. package/dist/chunks/parseConnectUrl-0.6.8-wawy5rxc.mjs +1 -0
  358. package/dist/chunks/parser-0.6.8-zjc9fwme.mjs +1 -0
  359. package/dist/chunks/passes-0.6.8-mn4rnfm9.mjs +1 -0
  360. package/dist/chunks/permissions-0.6.8-jdgt2sv8.mjs +1 -0
  361. package/dist/chunks/permissions-0.6.8-z6ybrhdp.mjs +3 -0
  362. package/dist/chunks/plan-0.6.8-9h16p6t0.mjs +1 -0
  363. package/dist/chunks/plist-0.6.8-ras7a7wc.mjs +1 -0
  364. package/dist/chunks/plugin-0.6.8-0p0a1k4b.mjs +29 -0
  365. package/dist/chunks/pluginStartupCheck-0.6.8-ff7hmaes.mjs +1 -0
  366. package/dist/chunks/plugins-0.6.8-fbp29vr3.mjs +9 -0
  367. package/dist/chunks/preActionHook-0.6.8-1qt932q1.mjs +2 -0
  368. package/dist/chunks/print-0.6.8-tm9918yr.mjs +57 -0
  369. package/dist/chunks/privacy-settings-0.6.8-5e2yd64z.mjs +1 -0
  370. package/dist/chunks/process-0.6.8-mqtgb3cx.mjs +1 -0
  371. package/dist/chunks/processBashCommand-0.6.8-xtx2v6da.mjs +1 -0
  372. package/dist/chunks/processSlashCommand-0.6.8-xgvzddwk.mjs +9 -0
  373. package/dist/chunks/prompt-0.6.8-57r1r589.mjs +1 -0
  374. package/dist/chunks/prompt-0.6.8-npwq825f.mjs +1 -0
  375. package/dist/chunks/prompts-0.6.8-ta5q8t8a.mjs +1 -0
  376. package/dist/chunks/protocolHandler-0.6.8-mf45pq35.mjs +13 -0
  377. package/dist/chunks/provider-0.6.8-pemvh2k5.mjs +2 -0
  378. package/dist/chunks/providerProfiles-0.6.8-t4rbsxrj.mjs +1 -0
  379. package/dist/chunks/providerValidation-0.6.8-jvfz53fe.mjs +6 -0
  380. package/dist/chunks/rate-limit-options-0.6.8-egm6fsa2.mjs +1 -0
  381. package/dist/chunks/registerSubcommands-0.6.8-c33k54ns.mjs +34 -0
  382. package/dist/chunks/registry-0.6.8-v7m02nk2.mjs +1 -0
  383. package/dist/chunks/release-notes-0.6.8-wwv5r86y.mjs +5 -0
  384. package/dist/chunks/reload-plugins-0.6.8-72v51g0k.mjs +2 -0
  385. package/dist/chunks/remote-env-0.6.8-gn37jake.mjs +1 -0
  386. package/dist/chunks/remoteBridgeCore-0.6.8-7cd0x0sw.mjs +1 -0
  387. package/dist/chunks/remoteSession-0.6.8-tr5ph176.mjs +1 -0
  388. package/dist/chunks/rename-0.6.8-8jb90c48.mjs +1 -0
  389. package/dist/chunks/replBridgeHandle-0.6.8-znyhk31n.mjs +1 -0
  390. package/dist/chunks/replLauncher-0.6.8-we5yqk5n.mjs +1 -0
  391. package/dist/chunks/resume-0.6.8-x8vd5cdx.mjs +2 -0
  392. package/dist/chunks/rewind-0.6.8-dg7aawme.mjs +1 -0
  393. package/dist/chunks/rootOptions-0.6.8-ezrfenmz.mjs +1 -0
  394. package/dist/chunks/sandbox-adapter-0.6.8-cfj9xd48.mjs +1 -0
  395. package/dist/chunks/sandbox-toggle-0.6.8-mffa8yr5.mjs +1 -0
  396. package/dist/chunks/session-0.6.8-6pyjb4jn.mjs +2 -0
  397. package/dist/chunks/sessionDiscovery-0.6.8-e3h9zvrp.mjs +1 -0
  398. package/dist/chunks/sessionFileAccessHooks-0.6.8-5q6x4jx9.mjs +1 -0
  399. package/dist/chunks/sessionStorage-0.6.8-3tvaj86g.mjs +1 -0
  400. package/dist/chunks/settings-0.6.8-m72ttv29.mjs +1 -0
  401. package/dist/chunks/setup-0.6.8-f3y64bte.mjs +5 -0
  402. package/dist/chunks/sinks-0.6.8-t8e55v3b.mjs +1 -0
  403. package/dist/chunks/skills-0.6.8-17ktqb7y.mjs +1 -0
  404. package/dist/chunks/startupProfiler-0.6.8-qj52vcw4.mjs +1 -0
  405. package/dist/chunks/startupUpdateCheck-0.6.8-51vrdbj6.mjs +1 -0
  406. package/dist/chunks/state-0.6.8-pwxe3dfk.mjs +1 -0
  407. package/dist/chunks/stats-0.6.8-fc152nhd.mjs +6 -0
  408. package/dist/chunks/status-0.6.8-bjgdnsz8.mjs +1 -0
  409. package/dist/chunks/stickers-0.6.8-dndn2kp3.mjs +1 -0
  410. package/dist/chunks/subprocessEnv-0.6.8-zzdkzkpq.mjs +1 -0
  411. package/dist/chunks/tasks-0.6.8-zjm7dnep.mjs +1 -0
  412. package/dist/chunks/teamHelpers-0.6.8-prrabxj1.mjs +1 -0
  413. package/dist/chunks/teammateModeSnapshot-0.6.8-21bj5sj0.mjs +1 -0
  414. package/dist/chunks/teleport-0.6.8-jvcjg7d7.mjs +1 -0
  415. package/dist/chunks/terminalSetup-0.6.8-9y4235w1.mjs +1 -0
  416. package/dist/chunks/theme-0.6.8-wvdhk95e.mjs +1 -0
  417. package/dist/chunks/thinkback-0.6.8-8dn71z5r.mjs +1 -0
  418. package/dist/chunks/thinkback-play-0.6.8-agrskwfn.mjs +1 -0
  419. package/dist/chunks/toolPool-0.6.8-90318hbv.mjs +1 -0
  420. package/dist/chunks/toolSearch-0.6.8-eyr73a52.mjs +1 -0
  421. package/dist/chunks/tools-0.6.8-mdjqydpm.mjs +1 -0
  422. package/dist/chunks/trustedDevice-0.6.8-b7fae7s5.mjs +1 -0
  423. package/dist/chunks/turndown.cjs-0.6.8-sgzhfavm.mjs +69 -0
  424. package/dist/chunks/types-0.6.8-4gf5x9jb.mjs +1 -0
  425. package/dist/chunks/ultrareviewCommand-0.6.8-5cdef89y.mjs +4 -0
  426. package/dist/chunks/update-0.6.8-hv3gahmz.mjs +86 -0
  427. package/dist/chunks/upgrade-0.6.8-w044cw9y.mjs +1 -0
  428. package/dist/chunks/upload-0.6.8-er3nq389.mjs +7 -0
  429. package/dist/chunks/upstreamproxy-0.6.8-zfg8pv8q.mjs +14 -0
  430. package/dist/chunks/url-handler-napi-0.6.8-1q2hrhb3.mjs +1 -0
  431. package/dist/chunks/usage-0.6.8-pc8gdf6b.mjs +1 -0
  432. package/dist/chunks/util-0.6.8-rt8y16fm.mjs +1 -0
  433. package/dist/chunks/utils-0.6.8-8nsbk9w4.mjs +1 -0
  434. package/dist/chunks/vim-0.6.8-y1wq10k6.mjs +1 -0
  435. package/dist/chunks/watcher-0.6.8-hq0y1y68.mjs +1 -0
  436. package/dist/chunks/wiki-0.6.8-jqbmvz1r.mjs +132 -0
  437. package/dist/chunks/worktree-0.6.8-hn8ac7q6.mjs +1 -0
  438. package/dist/chunks/worktreeModeEnabled-0.6.8-k0yys6b0.mjs +1 -0
  439. package/dist/chunks/wrapper-0.6.8-r1wx821t.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.7-f7t2mgqb.mjs +0 -1
  444. package/dist/chunks/App-0.6.7-9x70f9jb.mjs +0 -1
  445. package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +0 -1
  446. package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +0 -1
  447. package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +0 -1
  448. package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +0 -1
  449. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +0 -1
  450. package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +0 -1
  451. package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +0 -7
  452. package/dist/chunks/Doctor-0.6.7-smded214.mjs +0 -1
  453. package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +0 -6
  454. package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +0 -1
  455. package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +0 -1
  456. package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +0 -1
  457. package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +0 -1
  458. package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +0 -1
  459. package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +0 -1
  460. package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +0 -1
  461. package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +0 -1
  462. package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +0 -1
  463. package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +0 -1
  464. package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +0 -1
  465. package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +0 -1
  466. package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +0 -1
  467. package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +0 -9
  468. package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +0 -1
  469. package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +0 -1
  470. package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +0 -1
  471. package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +0 -1
  472. package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +0 -110
  473. package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +0 -3
  474. package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +0 -1
  475. package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +0 -1
  476. package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +0 -1
  477. package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +0 -1
  478. package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +0 -1
  479. package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +0 -48
  480. package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +0 -1
  481. package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +0 -1
  482. package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +0 -4
  483. package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +0 -2
  484. package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +0 -1
  485. package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +0 -1
  486. package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +0 -88
  487. package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +0 -1
  488. package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +0 -1
  489. package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +0 -3
  490. package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +0 -1
  491. package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +0 -21
  492. package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +0 -4
  493. package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +0 -1
  494. package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +0 -1
  495. package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +0 -1
  496. package/dist/chunks/clear-0.6.7-b2weanr6.mjs +0 -1
  497. package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +0 -1
  498. package/dist/chunks/cli-0.6.7-09aymh1b.mjs +0 -2
  499. package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +0 -28
  500. package/dist/chunks/cli-0.6.7-0a406bqw.mjs +0 -2
  501. package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +0 -2
  502. package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +0 -2
  503. package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +0 -2
  504. package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +0 -42
  505. package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +0 -2
  506. package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +0 -2
  507. package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +0 -2
  508. package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +0 -2
  509. package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +0 -1
  510. package/dist/chunks/cli-0.6.7-105zxdx5.mjs +0 -2
  511. package/dist/chunks/cli-0.6.7-11a89p5q.mjs +0 -2
  512. package/dist/chunks/cli-0.6.7-15mn3n46.mjs +0 -2
  513. package/dist/chunks/cli-0.6.7-17dafwxd.mjs +0 -2
  514. package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +0 -7
  515. package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +0 -2
  516. package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +0 -12
  517. package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +0 -2
  518. package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +0 -2
  519. package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +0 -2
  520. package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +0 -2
  521. package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +0 -2
  522. package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +0 -2
  523. package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +0 -133
  524. package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +0 -2
  525. package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +0 -5348
  526. package/dist/chunks/cli-0.6.7-30y87jp9.mjs +0 -3
  527. package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +0 -2
  528. package/dist/chunks/cli-0.6.7-37a1n221.mjs +0 -2
  529. package/dist/chunks/cli-0.6.7-393mf77x.mjs +0 -2
  530. package/dist/chunks/cli-0.6.7-3anc14y3.mjs +0 -2
  531. package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +0 -2
  532. package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +0 -2
  533. package/dist/chunks/cli-0.6.7-3w59rctc.mjs +0 -2
  534. package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +0 -2
  535. package/dist/chunks/cli-0.6.7-417g4eq7.mjs +0 -2
  536. package/dist/chunks/cli-0.6.7-4723xt8g.mjs +0 -4
  537. package/dist/chunks/cli-0.6.7-4qezg54y.mjs +0 -2
  538. package/dist/chunks/cli-0.6.7-4qv89taa.mjs +0 -2
  539. package/dist/chunks/cli-0.6.7-4r8s96as.mjs +0 -18
  540. package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +0 -2
  541. package/dist/chunks/cli-0.6.7-4y6eh566.mjs +0 -2
  542. package/dist/chunks/cli-0.6.7-568qkrtn.mjs +0 -2
  543. package/dist/chunks/cli-0.6.7-5jkermx7.mjs +0 -2
  544. package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +0 -2
  545. package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +0 -2
  546. package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +0 -67
  547. package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +0 -2
  548. package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +0 -17
  549. package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +0 -2
  550. package/dist/chunks/cli-0.6.7-7hqt2520.mjs +0 -2
  551. package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +0 -2
  552. package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +0 -4
  553. package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +0 -4
  554. package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +0 -5
  555. package/dist/chunks/cli-0.6.7-895afk0q.mjs +0 -39
  556. package/dist/chunks/cli-0.6.7-8hg68yde.mjs +0 -3
  557. package/dist/chunks/cli-0.6.7-8npy06pd.mjs +0 -2
  558. package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +0 -2
  559. package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +0 -2
  560. package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +0 -2
  561. package/dist/chunks/cli-0.6.7-986a2c9a.mjs +0 -20
  562. package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +0 -2
  563. package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +0 -59
  564. package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +0 -2
  565. package/dist/chunks/cli-0.6.7-a49h84jx.mjs +0 -2
  566. package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +0 -2
  567. package/dist/chunks/cli-0.6.7-ad305tsz.mjs +0 -2
  568. package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +0 -2
  569. package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +0 -4
  570. package/dist/chunks/cli-0.6.7-askr0gdn.mjs +0 -12
  571. package/dist/chunks/cli-0.6.7-axgab18a.mjs +0 -2
  572. package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +0 -50
  573. package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +0 -4
  574. package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +0 -2
  575. package/dist/chunks/cli-0.6.7-bvke740f.mjs +0 -58
  576. package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +0 -45
  577. package/dist/chunks/cli-0.6.7-c9drqby8.mjs +0 -5
  578. package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +0 -2
  579. package/dist/chunks/cli-0.6.7-csw6s95q.mjs +0 -2
  580. package/dist/chunks/cli-0.6.7-cykfmytk.mjs +0 -2
  581. package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +0 -2
  582. package/dist/chunks/cli-0.6.7-d513frqa.mjs +0 -2
  583. package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +0 -2
  584. package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +0 -2
  585. package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +0 -2
  586. package/dist/chunks/cli-0.6.7-e96htnt8.mjs +0 -2
  587. package/dist/chunks/cli-0.6.7-egf9dysz.mjs +0 -2
  588. package/dist/chunks/cli-0.6.7-ej85ys91.mjs +0 -133
  589. package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +0 -25
  590. package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +0 -6
  591. package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +0 -3
  592. package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +0 -2
  593. package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +0 -2
  594. package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +0 -12
  595. package/dist/chunks/cli-0.6.7-g4r471w6.mjs +0 -15
  596. package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +0 -21
  597. package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +0 -2
  598. package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +0 -2
  599. package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +0 -2
  600. package/dist/chunks/cli-0.6.7-hd512c6x.mjs +0 -2
  601. package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +0 -2
  602. package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +0 -2
  603. package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +0 -2
  604. package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +0 -2
  605. package/dist/chunks/cli-0.6.7-jayzyra3.mjs +0 -2
  606. package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +0 -18
  607. package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +0 -3
  608. package/dist/chunks/cli-0.6.7-jvyry09r.mjs +0 -3
  609. package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +0 -3
  610. package/dist/chunks/cli-0.6.7-k69edthm.mjs +0 -2
  611. package/dist/chunks/cli-0.6.7-k7qq705k.mjs +0 -2
  612. package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +0 -17
  613. package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +0 -24
  614. package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +0 -3
  615. package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +0 -2
  616. package/dist/chunks/cli-0.6.7-me667czz.mjs +0 -2
  617. package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +0 -2
  618. package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +0 -2
  619. package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +0 -2
  620. package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +0 -16
  621. package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +0 -34
  622. package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +0 -2
  623. package/dist/chunks/cli-0.6.7-msab4rsa.mjs +0 -3
  624. package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +0 -2
  625. package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +0 -2
  626. package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +0 -3
  627. package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +0 -2
  628. package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +0 -2
  629. package/dist/chunks/cli-0.6.7-nembqgq6.mjs +0 -4
  630. package/dist/chunks/cli-0.6.7-njtz9caz.mjs +0 -2
  631. package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +0 -3
  632. package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +0 -2
  633. package/dist/chunks/cli-0.6.7-nmasp64q.mjs +0 -2
  634. package/dist/chunks/cli-0.6.7-nsaek892.mjs +0 -2
  635. package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +0 -2
  636. package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +0 -3
  637. package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +0 -2
  638. package/dist/chunks/cli-0.6.7-p140ghs7.mjs +0 -4
  639. package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +0 -2
  640. package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +0 -193
  641. package/dist/chunks/cli-0.6.7-p77b3p80.mjs +0 -4
  642. package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +0 -10
  643. package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +0 -6
  644. package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +0 -2
  645. package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +0 -2
  646. package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +0 -2
  647. package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +0 -2
  648. package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +0 -2
  649. package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +0 -2
  650. package/dist/chunks/cli-0.6.7-qkzax44g.mjs +0 -2
  651. package/dist/chunks/cli-0.6.7-qnpad07x.mjs +0 -15
  652. package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +0 -2
  653. package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +0 -9
  654. package/dist/chunks/cli-0.6.7-r2phypw4.mjs +0 -2
  655. package/dist/chunks/cli-0.6.7-r4494gs0.mjs +0 -2
  656. package/dist/chunks/cli-0.6.7-r4njgjve.mjs +0 -2
  657. package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +0 -4
  658. package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +0 -2
  659. package/dist/chunks/cli-0.6.7-rgfh878z.mjs +0 -2
  660. package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +0 -2
  661. package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +0 -2
  662. package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +0 -2
  663. package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +0 -2
  664. package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +0 -2
  665. package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +0 -2
  666. package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +0 -2
  667. package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +0 -2
  668. package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +0 -2
  669. package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +0 -2
  670. package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +0 -2
  671. package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +0 -5
  672. package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +0 -8
  673. package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +0 -2
  674. package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +0 -2
  675. package/dist/chunks/cli-0.6.7-tthw17vc.mjs +0 -6
  676. package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +0 -4
  677. package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +0 -2
  678. package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +0 -6
  679. package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +0 -2
  680. package/dist/chunks/cli-0.6.7-vdks0afp.mjs +0 -3
  681. package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +0 -2
  682. package/dist/chunks/cli-0.6.7-vy64g49j.mjs +0 -2
  683. package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +0 -2
  684. package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +0 -15
  685. package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +0 -2
  686. package/dist/chunks/cli-0.6.7-wyped9p6.mjs +0 -2
  687. package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +0 -2
  688. package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +0 -3
  689. package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +0 -2
  690. package/dist/chunks/cli-0.6.7-ybk07j40.mjs +0 -2
  691. package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +0 -2
  692. package/dist/chunks/cli-0.6.7-z7jett9s.mjs +0 -2
  693. package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +0 -24
  694. package/dist/chunks/client-0.6.7-445v9987.mjs +0 -1
  695. package/dist/chunks/color-0.6.7-856m55kg.mjs +0 -1
  696. package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +0 -3
  697. package/dist/chunks/config-0.6.7-8cp9wg00.mjs +0 -1
  698. package/dist/chunks/config-0.6.7-h357gwre.mjs +0 -1
  699. package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +0 -1
  700. package/dist/chunks/context-0.6.7-52mqtjt5.mjs +0 -1
  701. package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +0 -1
  702. package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +0 -1
  703. package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +0 -1
  704. package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +0 -9
  705. package/dist/chunks/cost-0.6.7-mcmacwts.mjs +0 -1
  706. package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +0 -1
  707. package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +0 -1
  708. package/dist/chunks/debug-0.6.7-40mxhr43.mjs +0 -1
  709. package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +0 -1367
  710. package/dist/chunks/desktop-0.6.7-m8hceses.mjs +0 -1
  711. package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +0 -1
  712. package/dist/chunks/detection-0.6.7-796dd7my.mjs +0 -1
  713. package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +0 -1
  714. package/dist/chunks/doctor-0.6.7-69xecv72.mjs +0 -1
  715. package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +0 -1
  716. package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +0 -1
  717. package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +0 -10
  718. package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +0 -1
  719. package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +0 -1
  720. package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +0 -1
  721. package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +0 -1
  722. package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +0 -1
  723. package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +0 -1
  724. package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +0 -1
  725. package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +0 -1
  726. package/dist/chunks/export-0.6.7-nxr4yk69.mjs +0 -2
  727. package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +0 -1
  728. package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +0 -1
  729. package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +0 -1
  730. package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +0 -14
  731. package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +0 -1
  732. package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +0 -1
  733. package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +0 -1
  734. package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +0 -4
  735. package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +0 -1
  736. package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +0 -1
  737. package/dist/chunks/headless-0.6.7-35yksmzv.mjs +0 -2
  738. package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +0 -6
  739. package/dist/chunks/help-0.6.7-xe78z9ep.mjs +0 -1
  740. package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +0 -3
  741. package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +0 -79
  742. package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +0 -1
  743. package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +0 -3
  744. package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +0 -1
  745. package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +0 -1
  746. package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +0 -1
  747. package/dist/chunks/index-0.6.7-1ngjds1q.mjs +0 -30
  748. package/dist/chunks/index-0.6.7-269433vt.mjs +0 -2
  749. package/dist/chunks/index-0.6.7-299hd0kq.mjs +0 -1
  750. package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +0 -9
  751. package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +0 -1
  752. package/dist/chunks/index-0.6.7-938hete3.mjs +0 -1
  753. package/dist/chunks/index-0.6.7-9qxbggwj.mjs +0 -1
  754. package/dist/chunks/index-0.6.7-adw6e99t.mjs +0 -1
  755. package/dist/chunks/index-0.6.7-da5n32m6.mjs +0 -1
  756. package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +0 -1
  757. package/dist/chunks/index-0.6.7-fewh0t9g.mjs +0 -1
  758. package/dist/chunks/index-0.6.7-jyep217e.mjs +0 -1
  759. package/dist/chunks/index-0.6.7-mmh99nq4.mjs +0 -1
  760. package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +0 -2
  761. package/dist/chunks/index-0.6.7-pspakten.mjs +0 -1
  762. package/dist/chunks/index-0.6.7-qy50jasm.mjs +0 -5
  763. package/dist/chunks/index-0.6.7-r7sewgza.mjs +0 -1
  764. package/dist/chunks/index-0.6.7-tet87444.mjs +0 -1
  765. package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +0 -1
  766. package/dist/chunks/index-0.6.7-xhxjqdft.mjs +0 -1
  767. package/dist/chunks/index-0.6.7-yc13tnk8.mjs +0 -1
  768. package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +0 -9
  769. package/dist/chunks/init-0.6.7-9mxee8s9.mjs +0 -1
  770. package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +0 -1
  771. package/dist/chunks/ink-0.6.7-24swqw8m.mjs +0 -1
  772. package/dist/chunks/insights-0.6.7-wf368crb.mjs +0 -870
  773. package/dist/chunks/install-0.6.7-a9dezzjy.mjs +0 -1
  774. package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +0 -149
  775. package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +0 -1
  776. package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +0 -1
  777. package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +0 -1
  778. package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +0 -2
  779. package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +0 -2
  780. package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +0 -1
  781. package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +0 -1
  782. package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +0 -1
  783. package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +0 -1
  784. package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +0 -1
  785. package/dist/chunks/main-0.6.7-epme77xk.mjs +0 -1
  786. package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +0 -1
  787. package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +0 -17
  788. package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +0 -4
  789. package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +0 -1
  790. package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +0 -1
  791. package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +0 -3
  792. package/dist/chunks/model-0.6.7-bnf162h5.mjs +0 -2
  793. package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +0 -1
  794. package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +0 -12
  795. package/dist/chunks/oauth-0.6.7-ecry38es.mjs +0 -1
  796. package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +0 -14
  797. package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +0 -1
  798. package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +0 -1
  799. package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +0 -1
  800. package/dist/chunks/parser-0.6.7-dwxttek7.mjs +0 -1
  801. package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +0 -1
  802. package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +0 -3
  803. package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +0 -1
  804. package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +0 -1
  805. package/dist/chunks/plist-0.6.7-vcn459ke.mjs +0 -1
  806. package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +0 -29
  807. package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +0 -1
  808. package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +0 -9
  809. package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +0 -2
  810. package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +0 -57
  811. package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +0 -1
  812. package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +0 -1
  813. package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +0 -1
  814. package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +0 -9
  815. package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +0 -1
  816. package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +0 -1
  817. package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +0 -1
  818. package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +0 -13
  819. package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +0 -2
  820. package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +0 -1
  821. package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +0 -6
  822. package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +0 -1
  823. package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +0 -34
  824. package/dist/chunks/registry-0.6.7-vnf153w2.mjs +0 -1
  825. package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +0 -5
  826. package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +0 -2
  827. package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +0 -1
  828. package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +0 -1
  829. package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +0 -1
  830. package/dist/chunks/rename-0.6.7-9hky49hm.mjs +0 -1
  831. package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +0 -1
  832. package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +0 -1
  833. package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +0 -2
  834. package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +0 -1
  835. package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +0 -1
  836. package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +0 -1
  837. package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +0 -1
  838. package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +0 -2
  839. package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +0 -1
  840. package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +0 -1
  841. package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +0 -1
  842. package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +0 -1
  843. package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +0 -5
  844. package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +0 -1
  845. package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +0 -1
  846. package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +0 -1
  847. package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +0 -1
  848. package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +0 -1
  849. package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +0 -6
  850. package/dist/chunks/status-0.6.7-4dybregh.mjs +0 -1
  851. package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +0 -1
  852. package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +0 -1
  853. package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +0 -1
  854. package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +0 -1
  855. package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +0 -1
  856. package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +0 -1
  857. package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +0 -1
  858. package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +0 -1
  859. package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +0 -1
  860. package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +0 -1
  861. package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +0 -1
  862. package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +0 -1
  863. package/dist/chunks/tools-0.6.7-w23c68c1.mjs +0 -1
  864. package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +0 -1
  865. package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +0 -69
  866. package/dist/chunks/types-0.6.7-q8m8v654.mjs +0 -1
  867. package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +0 -4
  868. package/dist/chunks/update-0.6.7-gwfz54bh.mjs +0 -86
  869. package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +0 -1
  870. package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +0 -7
  871. package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +0 -14
  872. package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +0 -1
  873. package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +0 -1
  874. package/dist/chunks/util-0.6.7-3z6r92wt.mjs +0 -1
  875. package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +0 -1
  876. package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +0 -1
  877. package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +0 -1
  878. package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +0 -132
  879. package/dist/chunks/worktree-0.6.7-214cy52d.mjs +0 -1
  880. package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +0 -1
  881. package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +0 -7
  882. /package/dist/chunks/{cli-0.6.7-790sqdfy.mjs → cli-0.6.8-0fra5z78.mjs} +0 -0
  883. /package/dist/chunks/{cli-0.6.7-nzdwcqxv.mjs → cli-0.6.8-0s2z302k.mjs} +0 -0
  884. /package/dist/chunks/{cli-0.6.7-z26mhn5a.mjs → cli-0.6.8-259kprym.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.7-32sp32ph.mjs → cli-0.6.8-7cychtp8.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.7-7ggj90ge.mjs → cli-0.6.8-9bt8c69s.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.7-zwf5adf9.mjs → cli-0.6.8-aasxytdk.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.7-pgcg3w1c.mjs → cli-0.6.8-akzaeas1.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.7-04v8p8ay.mjs → cli-0.6.8-fe86xfp4.mjs} +0 -0
@@ -0,0 +1,7 @@
1
+ import{ub as d}from"./cli-0.6.8-qg557m5n.mjs";import{AU as y,BU as U,DU as f,EU as h,FU as c,KU as i}from"./cli-0.6.8-xj1ptmgh.mjs";import{T1 as O,V1 as b}from"./cli-0.6.8-239wrpj3.mjs";import{k5 as B,l5 as M}from"./cli-0.6.8-tb4rrntr.mjs";import{D6 as I,K6 as u}from"./cli-0.6.8-cbvnsxaa.mjs";import{j8 as V,l8 as v}from"./cli-0.6.8-vpaw67v2.mjs";import{Oha as G,Rha as D,rha as H,sha as m,wha as T}from"./cli-0.6.8-4avmxq80.mjs";import{gia as q,hia as S,nia as F}from"./cli-0.6.8-cv73s4x5.mjs";import{$oa as p,rpa as s}from"./cli-0.6.8-yvt0y45m.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
+
3
+ `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
+ `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
+ `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
+ `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
+ export{R as lb,k as mb,a as nb,YJ as ob};
@@ -0,0 +1,2 @@
1
+ import{ei as M,fi as w,gi as A}from"./cli-0.6.8-0yz4b8v5.mjs";import{Qfa as X,Sfa as N,Tfa as $,Ufa as O}from"./cli-0.6.8-2nda5zxh.mjs";import{Oha as R,Rha as C}from"./cli-0.6.8-4avmxq80.mjs";import{Dia as _,qia as L}from"./cli-0.6.8-4jh3r7br.mjs";import{eoa as T,hka as H}from"./cli-0.6.8-dwwx58n6.mjs";import{$oa as W,rpa as y}from"./cli-0.6.8-yvt0y45m.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
2
+ export{S as Db,f as Eb,l as Fb,s as Gb};
@@ -0,0 +1,2 @@
1
+ import{sc as l,tc as m,wc as u,xc as y}from"./cli-0.6.8-6050y1gw.mjs";import{lF as p,nF as b}from"./cli-0.6.8-883y3p0j.mjs";import{DZ as C,YY as s,_Y as e}from"./cli-0.6.8-vf9cagcj.mjs";import{J1 as i,K1 as r,L1 as g}from"./cli-0.6.8-jx1wvs6x.mjs";import{M1 as M}from"./cli-0.6.8-gmzxyn2t.mjs";import{Hpa as h,Lpa as f}from"./cli-0.6.8-259kprym.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
+ export{T as qc,w as rc};
@@ -0,0 +1,2 @@
1
+ import{C8 as Z,E8 as f,Qda as B,Tda as K,gda as $,hda as y}from"./cli-0.6.8-vpaw67v2.mjs";import{Dia as E,via as Y}from"./cli-0.6.8-4jh3r7br.mjs";import{Lpa as N,Mpa as x}from"./cli-0.6.8-259kprym.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
2
+ export{D as ni,s as oi,g as pi};
@@ -0,0 +1,2 @@
1
+ import{Lpa as r}from"./cli-0.6.8-259kprym.mjs";var i,a=(s,e)=>function(){try{return e||(0,s[i(s)[0]])((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},c;var p=r(()=>{i=Object.getOwnPropertyNames,c=a({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.28.1",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.6","axios@>=1.0.0 <1.16.0":"1.16.1","follow-redirects@<1.16.0":">=1.16.0 <2.0.0","form-data@>=4.0.0 <4.0.6":"4.0.6","@babel/core@>=7.0.0 <7.29.6":"7.29.7","esbuild@>=0.17.0 <0.28.1":"0.28.1"}}}}})});
2
+ export{c as ai,p as bi};
@@ -0,0 +1,2 @@
1
+ import{We as H,Ze as A}from"./cli-0.6.8-416cqzak.mjs";import{lf as L,of as P,qf as _}from"./cli-0.6.8-z4wpf0ah.mjs";import{$oa as U,rpa as F}from"./cli-0.6.8-yvt0y45m.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
2
+ export{j as ab,C as bb,y as cb,S as db,h as eb,f as fb};
@@ -0,0 +1,2 @@
1
+ import{Ph as j,Rh as l}from"./cli-0.6.8-bsqfs15y.mjs";import{$h as i,Vh as W}from"./cli-0.6.8-2e9hw0b1.mjs";import{$A as d,$M as o,BM as n,Di as Y,Ei as A,Hx as B,Mx as p,NN as x,Px as N,Qx as g,Vt as _,WB as L,Wt as D,XB as h,XN as s,ZR as G,_M as b,dB as E,eB as C,kS as r,lS as R,mS as f,mz as V,nS as F,oS as u,oz as S,pS as t,sy as U,ty as m,uw as $,xj as Z,yj as P,zM as M}from"./cli-0.6.8-883y3p0j.mjs";import{J7 as Q,P7 as k}from"./cli-0.6.8-7t0cwmv0.mjs";import{V9 as X,W9 as v,s8 as O,z8 as I}from"./cli-0.6.8-vpaw67v2.mjs";import{Hna as K,eoa as T,vna as J}from"./cli-0.6.8-dwwx58n6.mjs";import{Lpa as y,Mpa as w}from"./cli-0.6.8-259kprym.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),$(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),_(),j(),E(),import("./utils-0.6.8-8nsbk9w4.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-0.6.8-vz9cakde.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-0.6.8-vhh6hfk9.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-0.6.8-npwq825f.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
2
+ export{Mq as Hh,c as Ih};
@@ -0,0 +1,2 @@
1
+ import{C1 as y,G1 as V}from"./cli-0.6.8-9pkhxd6z.mjs";import{X_ as q,Z_ as Q,n8 as p,p8 as K}from"./cli-0.6.8-vpaw67v2.mjs";import{Lpa as J}from"./cli-0.6.8-259kprym.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
2
+ export{j as q1,D as r1,P as s1,w as t1,E as u1,Y as v1,F as w1,G as x1,Z as y1};
@@ -0,0 +1,2 @@
1
+ import{Lpa as o}from"./cli-0.6.8-259kprym.mjs";var t="https://api.githubcopilot.com",i=3,n=1,s=32,c="generativelanguage.googleapis.com",r,a="api.kimi.com",p,_,S,E;var e=o(()=>{r=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),_=new Set(["api.deepseek.com"]),S={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
+ export{t as P6,i as Q6,n as R6,s as S6,c as T6,r as U6,a as V6,p as W6,_ as X6,S as Y6,E as Z6,e as _6};
@@ -0,0 +1,25 @@
1
+ import{A7 as Jc,B7 as el,C7 as Hc,D7 as cr,E7 as Cc,F7 as Ts,G7 as gl,g7 as nt,h7 as hl,i7 as bl,j7 as ml,k7 as fn,l7 as $c,m7 as fu,n7 as Al,o7 as ys,p7 as El,q7 as st,r7 as hs,s7 as k,t7 as ur,u7 as Qc,v7 as Bc,w7 as ra,x7 as Xc,y7 as Yc,z7 as Zc}from"./cli-0.6.8-ta6qf4we.mjs";import{H7 as ie}from"./cli-0.6.8-tnqnaqpx.mjs";import{wpa as kc,xpa as Le}from"./cli-0.6.8-reyv7f1y.mjs";import{zpa as Vc}from"./cli-0.6.8-00w6vgmt.mjs";import{Bpa as Fe,Cpa as ve,Fpa as De,Gpa as ee}from"./cli-0.6.8-0zdwjw7h.mjs";import{Jpa as E,Mpa as Bs}from"./cli-0.6.8-259kprym.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
2
+ ${this.getCanonicalPath(e)}
3
+ ${er(e)}
4
+ ${n.map((s)=>`${s}:${t[s]}`).join(`
5
+ `)}
6
+
7
+ ${n.join(";")}
8
+ ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
9
+ ${e}
10
+ ${t}
11
+ ${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
12
+ `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
13
+ `+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
14
+ ${this.getCanonicalPath(e)}
15
+ ${Xr(e)}
16
+ ${n.map((s)=>`${s}:${t[s]}`).join(`
17
+ `)}
18
+
19
+ ${n.join(";")}
20
+ ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
21
+ ${e}
22
+ ${t}
23
+ ${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
24
+ `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
25
+ export{zl as f7};
@@ -0,0 +1,2 @@
1
+ import{Hca as y,mca as P}from"./cli-0.6.8-vpaw67v2.mjs";import{Lpa as U}from"./cli-0.6.8-259kprym.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ export{G as hV,M as iV,N as jV,Y as kV,C as lV,_ as mV,R as nV,f as oV,E as pV,I as qV,k as rV,A as sV,b as tV,h as uV,m as vV,p as wV,u as xV,T as yV,e as zV,W as AV,a as BV,s as CV,r as DV,g as EV};
@@ -0,0 +1,2 @@
1
+ import{T1 as N,U1 as V,V1 as D}from"./cli-0.6.8-239wrpj3.mjs";import{B2 as Y,G2 as _,S5 as J,U5 as $,X5 as B,q6 as x,r5 as Z}from"./cli-0.6.8-tb4rrntr.mjs";import{Ega as Q,Kga as P}from"./cli-0.6.8-5gstf2n7.mjs";import{$oa as X,rpa as R}from"./cli-0.6.8-yvt0y45m.mjs";import{Lpa as W}from"./cli-0.6.8-259kprym.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudin-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
2
+ export{E as N1,I as O1,w as P1,C as Q1,O as R1,H as S1};
@@ -0,0 +1,2 @@
1
+ import{Lpa as K}from"./cli-0.6.8-259kprym.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
+ export{M as Sha,N as Tha,Q as Uha,R as Vha,S as Wha,L as Xha};
@@ -0,0 +1,2 @@
1
+ import{j8 as B,l8 as p}from"./cli-0.6.8-vpaw67v2.mjs";import{Lga as C,Oga as y}from"./cli-0.6.8-dxtyt1wg.mjs";import{Oha as V,Rha as M,sha as T,wha as x}from"./cli-0.6.8-4avmxq80.mjs";import{gia as L,nia as c}from"./cli-0.6.8-cv73s4x5.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
+ export{E as ub,I as vb};
@@ -0,0 +1,2 @@
1
+ import{Cb as Y}from"./cli-0.6.8-aasxytdk.mjs";import{LU as N,MU as C}from"./cli-0.6.8-xj1ptmgh.mjs";import{$da as w,Zda as A}from"./cli-0.6.8-vpaw67v2.mjs";import{Lga as B,Oga as k}from"./cli-0.6.8-dxtyt1wg.mjs";import{Oha as W,Rha as j,sha as L,wha as E}from"./cli-0.6.8-4avmxq80.mjs";import{gia as G,nia as K}from"./cli-0.6.8-cv73s4x5.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as wb,q as xb,p as yb,g as zb,d as Ab,R as Bb};
@@ -0,0 +1,2 @@
1
+ import{Dia as V,tia as B,uia as H}from"./cli-0.6.8-4jh3r7br.mjs";import{Lpa as Q}from"./cli-0.6.8-259kprym.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
+ export{$ as yh,Y as zh};
@@ -0,0 +1,2 @@
1
+ import{PK as C,ZK as N,gL as $,hL as k,nL as V}from"./cli-0.6.8-883y3p0j.mjs";import{DX as P,DZ as D,YY as f,_Y as t,cZ as v}from"./cli-0.6.8-vf9cagcj.mjs";import{J1 as n,K1 as i,L1 as M}from"./cli-0.6.8-jx1wvs6x.mjs";import{Hpa as w,Lpa as L}from"./cli-0.6.8-259kprym.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
+ export{J as ng,z as og};