@claudiolabs/claudin 0.5.12 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (844) hide show
  1. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +1 -0
  2. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
  29. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
  30. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
  31. package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
  34. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
  35. package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
  39. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
  41. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
  46. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
  49. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
  51. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
  52. package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
  53. package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
  54. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
  55. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
  56. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
  57. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
  58. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
  59. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
  60. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
  61. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
  62. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
  63. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
  64. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
  65. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
  66. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
  67. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
  68. package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
  69. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
  70. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
  71. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
  72. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
  73. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
  74. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
  75. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
  76. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
  77. package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
  78. package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
  79. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
  80. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
  81. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
  82. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
  83. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
  84. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
  85. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
  86. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
  87. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
  88. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
  89. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
  90. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
  91. package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
  92. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
  93. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
  94. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
  95. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
  96. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
  97. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
  98. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
  99. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
  100. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
  101. package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
  102. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
  103. package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
  104. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
  105. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
  106. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
  107. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
  108. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
  109. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
  110. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
  111. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
  112. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
  113. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
  114. package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
  115. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
  116. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
  117. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
  119. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
  120. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
  121. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
  122. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
  123. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
  124. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
  125. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
  126. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
  127. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
  128. package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
  129. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
  130. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
  131. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
  132. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
  133. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
  134. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
  135. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
  136. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
  137. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
  138. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
  139. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
  140. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
  141. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
  142. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
  143. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
  144. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
  145. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
  146. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
  147. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
  148. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
  149. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
  150. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
  151. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
  152. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
  153. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
  154. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
  155. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
  156. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
  157. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
  158. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
  159. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
  160. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
  161. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
  162. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
  163. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
  164. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
  165. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
  166. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
  167. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
  168. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
  169. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
  170. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
  171. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
  172. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
  173. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
  174. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
  175. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
  176. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
  177. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
  178. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
  179. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
  180. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
  181. package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
  182. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
  183. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
  184. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
  185. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
  186. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
  187. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
  188. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
  189. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
  190. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
  191. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
  192. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
  193. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
  194. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
  195. package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
  196. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
  197. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
  198. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
  199. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
  200. package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
  201. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
  202. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
  203. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
  204. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
  205. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
  206. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
  207. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
  208. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
  209. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
  210. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
  211. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
  212. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
  213. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
  214. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
  215. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
  216. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
  217. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
  219. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
  220. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
  221. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
  222. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
  223. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
  224. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
  225. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
  226. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
  227. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
  228. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
  229. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
  230. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
  231. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
  232. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
  233. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
  234. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
  235. package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
  236. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
  237. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
  238. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
  239. package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
  240. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
  241. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
  242. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
  243. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
  244. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
  245. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
  246. package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
  247. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
  248. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
  249. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
  250. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
  252. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
  253. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
  255. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
  257. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
  258. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
  259. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
  262. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
  263. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
  265. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
  266. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
  268. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
  269. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
  272. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
  273. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
  275. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
  277. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
  278. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
  279. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
  280. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
  281. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
  282. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
  283. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
  284. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
  285. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
  286. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
  287. package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
  288. package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
  289. package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
  290. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
  291. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
  292. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
  293. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
  294. package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
  295. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
  296. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
  297. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
  298. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
  299. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
  300. package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
  301. package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
  302. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
  303. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
  304. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
  305. package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
  306. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
  307. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
  308. package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
  309. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
  310. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
  311. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
  312. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
  313. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
  314. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
  315. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
  316. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
  317. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
  318. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
  319. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
  320. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
  321. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
  322. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
  324. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
  325. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
  326. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
  327. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
  328. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
  329. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
  330. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
  331. package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
  332. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
  333. package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
  334. package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
  335. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
  336. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
  337. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
  338. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
  339. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
  340. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
  341. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
  342. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
  343. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
  344. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
  345. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
  346. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
  347. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
  348. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
  349. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
  350. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
  351. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
  352. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
  353. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
  355. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
  356. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
  357. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
  358. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
  359. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
  360. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
  361. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
  362. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
  363. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
  364. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
  365. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
  366. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
  367. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
  368. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
  369. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
  370. package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
  371. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
  372. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
  373. package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
  374. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
  375. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
  376. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
  377. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
  378. package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
  379. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
  380. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
  381. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
  382. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
  383. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
  384. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
  385. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
  386. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
  387. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
  388. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
  389. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
  390. package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
  391. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
  392. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
  393. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
  394. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
  395. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
  396. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
  397. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
  398. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
  399. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
  400. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
  401. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
  402. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
  403. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
  404. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
  405. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
  406. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
  407. package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
  408. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
  409. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
  410. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
  411. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
  412. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
  413. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
  414. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
  415. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
  416. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
  417. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
  418. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
  419. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
  420. package/dist/claudin-vscode.vsix +0 -0
  421. package/dist/cli.mjs +2 -2
  422. package/package.json +1 -1
  423. package/dist/chunks/AgentTool-0.5.12-smdrq819.mjs +0 -1
  424. package/dist/chunks/App-0.5.12-r5wjd7s8.mjs +0 -1
  425. package/dist/chunks/ApproveApiKey-0.5.12-ne9g2ryd.mjs +0 -1
  426. package/dist/chunks/AssistantSessionChooser-0.5.12-xsd6p7kt.mjs +0 -1
  427. package/dist/chunks/AutoModeOptInDialog-0.5.12-ssrkfkmd.mjs +0 -1
  428. package/dist/chunks/BypassPermissionsModeDialog-0.5.12-q6qcrrj2.mjs +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.12-gfcmcgxz.mjs +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-0.5.12-e1f2czf7.mjs +0 -1
  431. package/dist/chunks/DiffDialog-0.5.12-vnm4mz9c.mjs +0 -3
  432. package/dist/chunks/Doctor-0.5.12-rtbvt5mw.mjs +0 -1
  433. package/dist/chunks/Grove-0.5.12-qv18jfe4.mjs +0 -1
  434. package/dist/chunks/ITermBackend-0.5.12-tp63kb2y.mjs +0 -1
  435. package/dist/chunks/InvalidConfigDialog-0.5.12-q3wspzrk.mjs +0 -1
  436. package/dist/chunks/InvalidSettingsDialog-0.5.12-ksv56j0p.mjs +0 -1
  437. package/dist/chunks/MigrationDialog-0.5.12-ekgs1jgb.mjs +0 -1
  438. package/dist/chunks/Onboarding-0.5.12-sjtsxgzz.mjs +0 -1
  439. package/dist/chunks/ProviderManager-0.5.12-sjdymhw7.mjs +0 -1
  440. package/dist/chunks/REPL-0.5.12-8h9bmdjx.mjs +0 -1
  441. package/dist/chunks/ResumeConversation-0.5.12-wpm4mfaa.mjs +0 -1
  442. package/dist/chunks/SnapshotUpdateDialog-0.5.12-n8kyqhdr.mjs +0 -1
  443. package/dist/chunks/TeleportProgress-0.5.12-30xn93y9.mjs +0 -1
  444. package/dist/chunks/TeleportRepoMismatchDialog-0.5.12-e3fg3amd.mjs +0 -1
  445. package/dist/chunks/TeleportResumeWrapper-0.5.12-hk2rzdh9.mjs +0 -1
  446. package/dist/chunks/TmuxBackend-0.5.12-jevh3zhx.mjs +0 -9
  447. package/dist/chunks/ToolSearchTool-0.5.12-9ggdsbtq.mjs +0 -1
  448. package/dist/chunks/TrustDialog-0.5.12-h0w01e8v.mjs +0 -1
  449. package/dist/chunks/activeProvider-0.5.12-gs3tp52z.mjs +0 -1
  450. package/dist/chunks/add-dir-0.5.12-20s2bbpb.mjs +0 -1
  451. package/dist/chunks/agents-0.5.12-3hsbstfa.mjs +0 -3
  452. package/dist/chunks/agents-0.5.12-s6qbjsne.mjs +0 -110
  453. package/dist/chunks/api-0.5.12-0wrh71sa.mjs +0 -1
  454. package/dist/chunks/asciicast-0.5.12-rjjtzjz5.mjs +0 -1
  455. package/dist/chunks/assistant-0.5.12-wv5tm7qb.mjs +0 -1
  456. package/dist/chunks/auth-0.5.12-1jvg770t.mjs +0 -1
  457. package/dist/chunks/auth-0.5.12-s2b8vrty.mjs +0 -1
  458. package/dist/chunks/autoMode-0.5.12-ka6ppwmf.mjs +0 -48
  459. package/dist/chunks/autoUpdater-0.5.12-gdprekp5.mjs +0 -1
  460. package/dist/chunks/backgroundHousekeeping-0.5.12-1yfjbpvk.mjs +0 -1
  461. package/dist/chunks/branch-0.5.12-j64r58dd.mjs +0 -4
  462. package/dist/chunks/bridgePointer-0.5.12-x983by3j.mjs +0 -1
  463. package/dist/chunks/btw-0.5.12-kgz89wa7.mjs +0 -1
  464. package/dist/chunks/buddy-0.5.12-r9nysssz.mjs +0 -3
  465. package/dist/chunks/cacache-0.5.12-4170vfc6.mjs +0 -1
  466. package/dist/chunks/cache-probe-0.5.12-5nr9y8e3.mjs +0 -21
  467. package/dist/chunks/cacheStats-0.5.12-bgxk3p2h.mjs +0 -4
  468. package/dist/chunks/caches-0.5.12-95zf6qzv.mjs +0 -1
  469. package/dist/chunks/claudeDesktop-0.5.12-23kdtzwn.mjs +0 -1
  470. package/dist/chunks/claudemd-0.5.12-nyakrtyn.mjs +0 -1
  471. package/dist/chunks/clear-0.5.12-tngfq6r4.mjs +0 -1
  472. package/dist/chunks/clearTerminal-0.5.12-g53rj1ba.mjs +0 -1
  473. package/dist/chunks/cli-0.5.12-02t9z38y.mjs +0 -2
  474. package/dist/chunks/cli-0.5.12-02yr8j71.mjs +0 -3
  475. package/dist/chunks/cli-0.5.12-057c2cp2.mjs +0 -5
  476. package/dist/chunks/cli-0.5.12-07kx3k7b.mjs +0 -2
  477. package/dist/chunks/cli-0.5.12-097tmfjr.mjs +0 -2
  478. package/dist/chunks/cli-0.5.12-0qasc0ef.mjs +0 -2
  479. package/dist/chunks/cli-0.5.12-11b979hs.mjs +0 -2
  480. package/dist/chunks/cli-0.5.12-15jvdvek.mjs +0 -3
  481. package/dist/chunks/cli-0.5.12-1fs9t3y1.mjs +0 -2
  482. package/dist/chunks/cli-0.5.12-1vyz0tt9.mjs +0 -2
  483. package/dist/chunks/cli-0.5.12-27ngaysm.mjs +0 -2
  484. package/dist/chunks/cli-0.5.12-2fqmc1dw.mjs +0 -17
  485. package/dist/chunks/cli-0.5.12-2jxq8gnm.mjs +0 -2
  486. package/dist/chunks/cli-0.5.12-2thv7xjf.mjs +0 -133
  487. package/dist/chunks/cli-0.5.12-2tqpkne4.mjs +0 -3
  488. package/dist/chunks/cli-0.5.12-2wf629mh.mjs +0 -2
  489. package/dist/chunks/cli-0.5.12-2zcpj03a.mjs +0 -2
  490. package/dist/chunks/cli-0.5.12-30h4rkq5.mjs +0 -4
  491. package/dist/chunks/cli-0.5.12-34cd39ve.mjs +0 -2
  492. package/dist/chunks/cli-0.5.12-36swspqa.mjs +0 -2
  493. package/dist/chunks/cli-0.5.12-3t06hwwh.mjs +0 -2
  494. package/dist/chunks/cli-0.5.12-3v7zr435.mjs +0 -2
  495. package/dist/chunks/cli-0.5.12-3vz2jvfs.mjs +0 -2
  496. package/dist/chunks/cli-0.5.12-3zwt5bt4.mjs +0 -2
  497. package/dist/chunks/cli-0.5.12-41eae9ef.mjs +0 -2
  498. package/dist/chunks/cli-0.5.12-47dbnsz1.mjs +0 -2
  499. package/dist/chunks/cli-0.5.12-495d826j.mjs +0 -18
  500. package/dist/chunks/cli-0.5.12-4dn79vqp.mjs +0 -2
  501. package/dist/chunks/cli-0.5.12-4dxe3951.mjs +0 -2
  502. package/dist/chunks/cli-0.5.12-4h4yvgep.mjs +0 -4
  503. package/dist/chunks/cli-0.5.12-5d3qcvf5.mjs +0 -2
  504. package/dist/chunks/cli-0.5.12-5qad6x1n.mjs +0 -2
  505. package/dist/chunks/cli-0.5.12-60w1a0bs.mjs +0 -2
  506. package/dist/chunks/cli-0.5.12-62bfegwf.mjs +0 -3
  507. package/dist/chunks/cli-0.5.12-63mc4ryd.mjs +0 -2
  508. package/dist/chunks/cli-0.5.12-6h1z8rhs.mjs +0 -2
  509. package/dist/chunks/cli-0.5.12-7bxdfxh2.mjs +0 -7
  510. package/dist/chunks/cli-0.5.12-7c345wdv.mjs +0 -15
  511. package/dist/chunks/cli-0.5.12-7cn41yy7.mjs +0 -6
  512. package/dist/chunks/cli-0.5.12-7dj55dt9.mjs +0 -2
  513. package/dist/chunks/cli-0.5.12-7j2hryxc.mjs +0 -3
  514. package/dist/chunks/cli-0.5.12-7p67dbr2.mjs +0 -2
  515. package/dist/chunks/cli-0.5.12-7repzgzv.mjs +0 -2
  516. package/dist/chunks/cli-0.5.12-7vxpqr5a.mjs +0 -67
  517. package/dist/chunks/cli-0.5.12-7zb3ptxb.mjs +0 -2
  518. package/dist/chunks/cli-0.5.12-8j9p82ea.mjs +0 -2
  519. package/dist/chunks/cli-0.5.12-8v5w8znc.mjs +0 -9
  520. package/dist/chunks/cli-0.5.12-8vg9yqcp.mjs +0 -3
  521. package/dist/chunks/cli-0.5.12-8wzyrrzj.mjs +0 -10
  522. package/dist/chunks/cli-0.5.12-96ne669g.mjs +0 -25
  523. package/dist/chunks/cli-0.5.12-9mq24qzr.mjs +0 -2
  524. package/dist/chunks/cli-0.5.12-9q9g02p5.mjs +0 -2
  525. package/dist/chunks/cli-0.5.12-9qdgpa04.mjs +0 -2
  526. package/dist/chunks/cli-0.5.12-9zz4wk90.mjs +0 -2
  527. package/dist/chunks/cli-0.5.12-afky60yh.mjs +0 -2
  528. package/dist/chunks/cli-0.5.12-ajgk4ksj.mjs +0 -2
  529. package/dist/chunks/cli-0.5.12-am3j4jcx.mjs +0 -12
  530. package/dist/chunks/cli-0.5.12-aqgqkjt4.mjs +0 -2
  531. package/dist/chunks/cli-0.5.12-asbn3d19.mjs +0 -2
  532. package/dist/chunks/cli-0.5.12-b2d3jjn3.mjs +0 -2
  533. package/dist/chunks/cli-0.5.12-b73xqvce.mjs +0 -2
  534. package/dist/chunks/cli-0.5.12-brdpkyjd.mjs +0 -4
  535. package/dist/chunks/cli-0.5.12-bw549ry1.mjs +0 -2
  536. package/dist/chunks/cli-0.5.12-bx2t76qp.mjs +0 -3
  537. package/dist/chunks/cli-0.5.12-bxsvvg0q.mjs +0 -2
  538. package/dist/chunks/cli-0.5.12-bzab36pn.mjs +0 -15
  539. package/dist/chunks/cli-0.5.12-c2yq69h9.mjs +0 -17
  540. package/dist/chunks/cli-0.5.12-c40vvkn4.mjs +0 -2
  541. package/dist/chunks/cli-0.5.12-c6whkxmz.mjs +0 -2
  542. package/dist/chunks/cli-0.5.12-c8f4daey.mjs +0 -2
  543. package/dist/chunks/cli-0.5.12-caz6gx12.mjs +0 -2
  544. package/dist/chunks/cli-0.5.12-cbevkwg4.mjs +0 -3
  545. package/dist/chunks/cli-0.5.12-cqv7z22w.mjs +0 -2
  546. package/dist/chunks/cli-0.5.12-ctqkj6ve.mjs +0 -6
  547. package/dist/chunks/cli-0.5.12-cw1qs4bg.mjs +0 -24
  548. package/dist/chunks/cli-0.5.12-cwbm4b6n.mjs +0 -2
  549. package/dist/chunks/cli-0.5.12-d158qgn4.mjs +0 -2
  550. package/dist/chunks/cli-0.5.12-dda4jky0.mjs +0 -2
  551. package/dist/chunks/cli-0.5.12-dpm51wzp.mjs +0 -2
  552. package/dist/chunks/cli-0.5.12-eb1c0sqs.mjs +0 -2
  553. package/dist/chunks/cli-0.5.12-ecgx5n54.mjs +0 -2
  554. package/dist/chunks/cli-0.5.12-f141d2qa.mjs +0 -2
  555. package/dist/chunks/cli-0.5.12-f15xspgt.mjs +0 -18
  556. package/dist/chunks/cli-0.5.12-f5pfjvdk.mjs +0 -2
  557. package/dist/chunks/cli-0.5.12-f8850v2j.mjs +0 -42
  558. package/dist/chunks/cli-0.5.12-f99c5512.mjs +0 -24
  559. package/dist/chunks/cli-0.5.12-fqp5s15p.mjs +0 -59
  560. package/dist/chunks/cli-0.5.12-g4ffbdep.mjs +0 -2
  561. package/dist/chunks/cli-0.5.12-g4wb8mj2.mjs +0 -193
  562. package/dist/chunks/cli-0.5.12-gfm1s8a2.mjs +0 -4
  563. package/dist/chunks/cli-0.5.12-ghtxkxqx.mjs +0 -2
  564. package/dist/chunks/cli-0.5.12-gt83ysr0.mjs +0 -9
  565. package/dist/chunks/cli-0.5.12-gwg1e43k.mjs +0 -34
  566. package/dist/chunks/cli-0.5.12-had5m07e.mjs +0 -2
  567. package/dist/chunks/cli-0.5.12-hp0508v9.mjs +0 -2
  568. package/dist/chunks/cli-0.5.12-hvtcdcev.mjs +0 -2
  569. package/dist/chunks/cli-0.5.12-j3j0qej1.mjs +0 -2
  570. package/dist/chunks/cli-0.5.12-j75ba781.mjs +0 -2
  571. package/dist/chunks/cli-0.5.12-jp1r2jw2.mjs +0 -1
  572. package/dist/chunks/cli-0.5.12-jy79msaa.mjs +0 -2
  573. package/dist/chunks/cli-0.5.12-k1crwtdc.mjs +0 -2
  574. package/dist/chunks/cli-0.5.12-k976aej3.mjs +0 -2
  575. package/dist/chunks/cli-0.5.12-kez9r81a.mjs +0 -2
  576. package/dist/chunks/cli-0.5.12-khvy67r3.mjs +0 -2
  577. package/dist/chunks/cli-0.5.12-kkfzbxw6.mjs +0 -2
  578. package/dist/chunks/cli-0.5.12-kr31tdde.mjs +0 -2
  579. package/dist/chunks/cli-0.5.12-ktv3envc.mjs +0 -2
  580. package/dist/chunks/cli-0.5.12-m22yxpb9.mjs +0 -2
  581. package/dist/chunks/cli-0.5.12-m2gh4ewc.mjs +0 -2
  582. package/dist/chunks/cli-0.5.12-mgke70yz.mjs +0 -39
  583. package/dist/chunks/cli-0.5.12-n1ax8ehf.mjs +0 -2
  584. package/dist/chunks/cli-0.5.12-n1wc50h4.mjs +0 -2
  585. package/dist/chunks/cli-0.5.12-n4bfatc5.mjs +0 -2
  586. package/dist/chunks/cli-0.5.12-nb3q4dfs.mjs +0 -4
  587. package/dist/chunks/cli-0.5.12-nbcjwzzn.mjs +0 -2
  588. package/dist/chunks/cli-0.5.12-ne0f51vh.mjs +0 -2
  589. package/dist/chunks/cli-0.5.12-nf7cvq82.mjs +0 -2
  590. package/dist/chunks/cli-0.5.12-nj5yya0e.mjs +0 -2
  591. package/dist/chunks/cli-0.5.12-nytegfxk.mjs +0 -4
  592. package/dist/chunks/cli-0.5.12-p4mf644w.mjs +0 -2
  593. package/dist/chunks/cli-0.5.12-p5ps8gf0.mjs +0 -6
  594. package/dist/chunks/cli-0.5.12-p7shsask.mjs +0 -2
  595. package/dist/chunks/cli-0.5.12-pdqnfqg3.mjs +0 -2
  596. package/dist/chunks/cli-0.5.12-pp1549k7.mjs +0 -2
  597. package/dist/chunks/cli-0.5.12-pp1f55mm.mjs +0 -2
  598. package/dist/chunks/cli-0.5.12-pq058s0e.mjs +0 -2
  599. package/dist/chunks/cli-0.5.12-pwee4pmy.mjs +0 -2
  600. package/dist/chunks/cli-0.5.12-pycnjaeg.mjs +0 -16
  601. package/dist/chunks/cli-0.5.12-pzvv2jfe.mjs +0 -2
  602. package/dist/chunks/cli-0.5.12-qafa6js8.mjs +0 -2
  603. package/dist/chunks/cli-0.5.12-qdhvs7zg.mjs +0 -5
  604. package/dist/chunks/cli-0.5.12-qew4mzgp.mjs +0 -2
  605. package/dist/chunks/cli-0.5.12-qffnerrz.mjs +0 -2
  606. package/dist/chunks/cli-0.5.12-qt5dmgd4.mjs +0 -58
  607. package/dist/chunks/cli-0.5.12-qvbpbpwc.mjs +0 -2
  608. package/dist/chunks/cli-0.5.12-r1nnkaek.mjs +0 -3
  609. package/dist/chunks/cli-0.5.12-r1p7bcf8.mjs +0 -2
  610. package/dist/chunks/cli-0.5.12-r6bpk4tm.mjs +0 -50
  611. package/dist/chunks/cli-0.5.12-rb8we522.mjs +0 -2
  612. package/dist/chunks/cli-0.5.12-rc1p9wk6.mjs +0 -3
  613. package/dist/chunks/cli-0.5.12-rt0k97yj.mjs +0 -12
  614. package/dist/chunks/cli-0.5.12-rw2tcb8a.mjs +0 -21
  615. package/dist/chunks/cli-0.5.12-s0h788we.mjs +0 -2
  616. package/dist/chunks/cli-0.5.12-sb5ec9ms.mjs +0 -2
  617. package/dist/chunks/cli-0.5.12-sd5469b2.mjs +0 -3
  618. package/dist/chunks/cli-0.5.12-senanaj4.mjs +0 -15
  619. package/dist/chunks/cli-0.5.12-ssw8vd5p.mjs +0 -45
  620. package/dist/chunks/cli-0.5.12-tczcdzf3.mjs +0 -2
  621. package/dist/chunks/cli-0.5.12-tfdwzg37.mjs +0 -4
  622. package/dist/chunks/cli-0.5.12-tnk4m7zs.mjs +0 -8
  623. package/dist/chunks/cli-0.5.12-tnq5ajv3.mjs +0 -2
  624. package/dist/chunks/cli-0.5.12-va0ce6hc.mjs +0 -2
  625. package/dist/chunks/cli-0.5.12-vkgwh6kg.mjs +0 -2
  626. package/dist/chunks/cli-0.5.12-vp5smcs1.mjs +0 -4
  627. package/dist/chunks/cli-0.5.12-vrbqnjp6.mjs +0 -2
  628. package/dist/chunks/cli-0.5.12-vs30tjk8.mjs +0 -2
  629. package/dist/chunks/cli-0.5.12-vw8gp4d2.mjs +0 -2
  630. package/dist/chunks/cli-0.5.12-vwd5aqnh.mjs +0 -20
  631. package/dist/chunks/cli-0.5.12-w00qj83e.mjs +0 -133
  632. package/dist/chunks/cli-0.5.12-w02bmj5v.mjs +0 -2
  633. package/dist/chunks/cli-0.5.12-w3hy6c60.mjs +0 -2
  634. package/dist/chunks/cli-0.5.12-w7m7knvf.mjs +0 -4
  635. package/dist/chunks/cli-0.5.12-wgqarp3j.mjs +0 -2
  636. package/dist/chunks/cli-0.5.12-wgqshyyq.mjs +0 -2
  637. package/dist/chunks/cli-0.5.12-whfz3xsx.mjs +0 -2
  638. package/dist/chunks/cli-0.5.12-wqg58esg.mjs +0 -2
  639. package/dist/chunks/cli-0.5.12-wqn70xss.mjs +0 -2
  640. package/dist/chunks/cli-0.5.12-x3r8qtwj.mjs +0 -12
  641. package/dist/chunks/cli-0.5.12-x479axrj.mjs +0 -2
  642. package/dist/chunks/cli-0.5.12-xdrtyw81.mjs +0 -2
  643. package/dist/chunks/cli-0.5.12-xdx5bcxv.mjs +0 -5
  644. package/dist/chunks/cli-0.5.12-xg7a0dy4.mjs +0 -2
  645. package/dist/chunks/cli-0.5.12-xhf4y2sm.mjs +0 -2
  646. package/dist/chunks/cli-0.5.12-xsyxpmwt.mjs +0 -2
  647. package/dist/chunks/cli-0.5.12-xyf8b9hh.mjs +0 -4
  648. package/dist/chunks/cli-0.5.12-xysz4vte.mjs +0 -2
  649. package/dist/chunks/cli-0.5.12-xzeb7mtb.mjs +0 -2
  650. package/dist/chunks/cli-0.5.12-y2kq7fe8.mjs +0 -2
  651. package/dist/chunks/cli-0.5.12-y66stscm.mjs +0 -2
  652. package/dist/chunks/cli-0.5.12-yq8ds97a.mjs +0 -2
  653. package/dist/chunks/cli-0.5.12-ysy6e9rz.mjs +0 -2
  654. package/dist/chunks/cli-0.5.12-yxvbh81c.mjs +0 -2
  655. package/dist/chunks/cli-0.5.12-z100r543.mjs +0 -2
  656. package/dist/chunks/cli-0.5.12-z2yzdy27.mjs +0 -2
  657. package/dist/chunks/cli-0.5.12-z6vekb4d.mjs +0 -2
  658. package/dist/chunks/cli-0.5.12-zbcr8cbk.mjs +0 -2
  659. package/dist/chunks/cli-0.5.12-zc0qwdy2.mjs +0 -5268
  660. package/dist/chunks/cli-0.5.12-zd5fps7m.mjs +0 -3
  661. package/dist/chunks/cli-0.5.12-zf4k1ja2.mjs +0 -2
  662. package/dist/chunks/cli-0.5.12-zsjs6asf.mjs +0 -2
  663. package/dist/chunks/client-0.5.12-25cxceb6.mjs +0 -1
  664. package/dist/chunks/color-0.5.12-7ag99jgh.mjs +0 -1
  665. package/dist/chunks/compact-0.5.12-tkdapr9z.mjs +0 -3
  666. package/dist/chunks/config-0.5.12-0c9spewv.mjs +0 -1
  667. package/dist/chunks/config-0.5.12-vc9je2fj.mjs +0 -1
  668. package/dist/chunks/context-0.5.12-rznd55j3.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.5.12-fm064xkc.mjs +0 -1
  670. package/dist/chunks/conversation-0.5.12-rstja52a.mjs +0 -1
  671. package/dist/chunks/copy-0.5.12-wfyfcx1t.mjs +0 -9
  672. package/dist/chunks/cost-0.5.12-5t5ppkhd.mjs +0 -1
  673. package/dist/chunks/createSSHSession-0.5.12-n4gfgvy0.mjs +0 -1
  674. package/dist/chunks/createSession-0.5.12-vberyedq.mjs +0 -1
  675. package/dist/chunks/debug-0.5.12-6tk66dq2.mjs +0 -1
  676. package/dist/chunks/defaultActionDeps-0.5.12-cd6kj7vb.mjs +0 -1177
  677. package/dist/chunks/desktop-0.5.12-t4zetpqs.mjs +0 -1
  678. package/dist/chunks/detectRepository-0.5.12-4rer36ef.mjs +0 -1
  679. package/dist/chunks/detection-0.5.12-kc620t5m.mjs +0 -1
  680. package/dist/chunks/diff-0.5.12-t1nwyr97.mjs +0 -1
  681. package/dist/chunks/doctor-0.5.12-6ehwnc02.mjs +0 -1
  682. package/dist/chunks/doctorDiagnostic-0.5.12-715ngvgm.mjs +0 -1
  683. package/dist/chunks/earlyInput-0.5.12-9c0k1b2s.mjs +0 -1
  684. package/dist/chunks/effort-0.5.12-tge1ba18.mjs +0 -10
  685. package/dist/chunks/envUtils-0.5.12-4210d9jh.mjs +0 -1
  686. package/dist/chunks/environmentSelection-0.5.12-fpz6s66f.mjs +0 -1
  687. package/dist/chunks/environments-0.5.12-yjkrj1h3.mjs +0 -1
  688. package/dist/chunks/errors-0.5.12-hx01gb7f.mjs +0 -1
  689. package/dist/chunks/exampleCommands-0.5.12-228rhbph.mjs +0 -1
  690. package/dist/chunks/exit-0.5.12-x0w90ajb.mjs +0 -1
  691. package/dist/chunks/export-0.5.12-cdv2fqe2.mjs +0 -2
  692. package/dist/chunks/extra-usage-0.5.12-d0ypcf8h.mjs +0 -1
  693. package/dist/chunks/extra-usage-noninteractive-0.5.12-1xmkn7xb.mjs +0 -1
  694. package/dist/chunks/fast-0.5.12-pm7p7cea.mjs +0 -1
  695. package/dist/chunks/feedback-0.5.12-k7w5ac6x.mjs +0 -14
  696. package/dist/chunks/firstPartyEventLogger-0.5.12-jbg4z87y.mjs +0 -1
  697. package/dist/chunks/git-0.5.12-rpqpwk1g.mjs +0 -1
  698. package/dist/chunks/githubModelsCredentials-0.5.12-gc6bcfrs.mjs +0 -1
  699. package/dist/chunks/grove-0.5.12-g5c6bca9.mjs +0 -1
  700. package/dist/chunks/growthbook-0.5.12-d3dr2a5b.mjs +0 -1
  701. package/dist/chunks/headless-0.5.12-4en0ynj2.mjs +0 -2
  702. package/dist/chunks/heapdump-0.5.12-bwv2jy65.mjs +0 -6
  703. package/dist/chunks/help-0.5.12-m0n3bja4.mjs +0 -1
  704. package/dist/chunks/hookChains-0.5.12-ybpwc19k.mjs +0 -3
  705. package/dist/chunks/hooks-0.5.12-gd1zgq76.mjs +0 -1
  706. package/dist/chunks/hooks-0.5.12-kmtv873b.mjs +0 -79
  707. package/dist/chunks/ide-0.5.12-kh015qjb.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-0.5.12-gskzpn6n.mjs +0 -1
  709. package/dist/chunks/index-0.5.12-0qdxjc4v.mjs +0 -30
  710. package/dist/chunks/index-0.5.12-1ms14gcb.mjs +0 -1
  711. package/dist/chunks/index-0.5.12-23xwq3mj.mjs +0 -1
  712. package/dist/chunks/index-0.5.12-3k0mgkby.mjs +0 -5
  713. package/dist/chunks/index-0.5.12-3qxmsrhf.mjs +0 -1
  714. package/dist/chunks/index-0.5.12-5nwrep7m.mjs +0 -1
  715. package/dist/chunks/index-0.5.12-5zp8ghw8.mjs +0 -2
  716. package/dist/chunks/index-0.5.12-6t3ctwhj.mjs +0 -1
  717. package/dist/chunks/index-0.5.12-bb0dxhht.mjs +0 -1
  718. package/dist/chunks/index-0.5.12-cdvaqvrt.mjs +0 -1
  719. package/dist/chunks/index-0.5.12-e3g06gch.mjs +0 -2
  720. package/dist/chunks/index-0.5.12-g0waf7b4.mjs +0 -1
  721. package/dist/chunks/index-0.5.12-k2yx7rgg.mjs +0 -1
  722. package/dist/chunks/index-0.5.12-pqbbvhvf.mjs +0 -17
  723. package/dist/chunks/index-0.5.12-v34jg9ty.mjs +0 -1
  724. package/dist/chunks/index-0.5.12-vd2ps0yn.mjs +0 -1
  725. package/dist/chunks/index-0.5.12-vk2f44v8.mjs +0 -9
  726. package/dist/chunks/index-0.5.12-vqmfkmk5.mjs +0 -1
  727. package/dist/chunks/index-0.5.12-vxrpnsbd.mjs +0 -1
  728. package/dist/chunks/index-0.5.12-w00wq0mv.mjs +0 -1
  729. package/dist/chunks/index-0.5.12-wq1ac3z9.mjs +0 -1
  730. package/dist/chunks/index-0.5.12-z05jb67f.mjs +0 -9
  731. package/dist/chunks/init-0.5.12-dek8tx6c.mjs +0 -1
  732. package/dist/chunks/initReplBridge-0.5.12-tzmcc68e.mjs +0 -1
  733. package/dist/chunks/ink-0.5.12-pa331vem.mjs +0 -1
  734. package/dist/chunks/insights-0.5.12-5vdjmpbj.mjs +0 -870
  735. package/dist/chunks/install-0.5.12-vegjn29b.mjs +0 -1
  736. package/dist/chunks/install-github-app-0.5.12-x1q07njz.mjs +0 -149
  737. package/dist/chunks/install-slack-app-0.5.12-xdebh0fz.mjs +0 -1
  738. package/dist/chunks/instrumentation-0.5.12-t5wdqnhp.mjs +0 -1
  739. package/dist/chunks/interactiveHelpers-0.5.12-fs831eqt.mjs +0 -1
  740. package/dist/chunks/keybindings-0.5.12-c5ptskwf.mjs +0 -2
  741. package/dist/chunks/knowledge-0.5.12-vqnz3rhj.mjs +0 -2
  742. package/dist/chunks/latestVersionCache-0.5.12-6ea56sj8.mjs +0 -1
  743. package/dist/chunks/loadAgentsDir-0.5.12-q3cab4jf.mjs +0 -1
  744. package/dist/chunks/loadPluginHooks-0.5.12-teg232ka.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-0.5.12-zqfepr29.mjs +0 -1
  746. package/dist/chunks/log-0.5.12-hb77k1c6.mjs +0 -1
  747. package/dist/chunks/main-0.5.12-a5ye3nrk.mjs +0 -1
  748. package/dist/chunks/managedEnv-0.5.12-9m0enspy.mjs +0 -1
  749. package/dist/chunks/mcp-0.5.12-0g4by910.mjs +0 -1
  750. package/dist/chunks/mcp-0.5.12-kmsa1db8.mjs +0 -17
  751. package/dist/chunks/mcp-0.5.12-tpprk6qh.mjs +0 -4
  752. package/dist/chunks/mcpb-0.5.12-40x6rp03.mjs +0 -1
  753. package/dist/chunks/memory-0.5.12-31smeswe.mjs +0 -3
  754. package/dist/chunks/mobile-0.5.12-trtv6cx8.mjs +0 -2
  755. package/dist/chunks/model-0.5.12-dwyagyf8.mjs +0 -2
  756. package/dist/chunks/model-0.5.12-ncsht9ca.mjs +0 -1
  757. package/dist/chunks/node-0.5.12-n3y2efbq.mjs +0 -12
  758. package/dist/chunks/oauth-0.5.12-vz32m3f2.mjs +0 -1
  759. package/dist/chunks/openaiShim-0.5.12-5vwewpct.mjs +0 -14
  760. package/dist/chunks/output-style-0.5.12-j7kzxe0j.mjs +0 -1
  761. package/dist/chunks/package-D6422PQU-0.5.12-pcrvwm89.mjs +0 -1
  762. package/dist/chunks/parseConnectUrl-0.5.12-k9xxsfd1.mjs +0 -1
  763. package/dist/chunks/parser-0.5.12-dztg8ppe.mjs +0 -1
  764. package/dist/chunks/passes-0.5.12-5z8tw34t.mjs +0 -1
  765. package/dist/chunks/permissions-0.5.12-rww5yb80.mjs +0 -3
  766. package/dist/chunks/plan-0.5.12-69ntjye7.mjs +0 -1
  767. package/dist/chunks/plist-0.5.12-3ab3ry0j.mjs +0 -1
  768. package/dist/chunks/plugin-0.5.12-k1c1ggj8.mjs +0 -29
  769. package/dist/chunks/pluginStartupCheck-0.5.12-4nzjv877.mjs +0 -1
  770. package/dist/chunks/plugins-0.5.12-gjxv18dm.mjs +0 -9
  771. package/dist/chunks/preActionHook-0.5.12-z0z4xe2p.mjs +0 -2
  772. package/dist/chunks/print-0.5.12-9y9vvttb.mjs +0 -57
  773. package/dist/chunks/privacy-settings-0.5.12-w3hpvv24.mjs +0 -1
  774. package/dist/chunks/process-0.5.12-esywnb4j.mjs +0 -1
  775. package/dist/chunks/processBashCommand-0.5.12-24r2r258.mjs +0 -1
  776. package/dist/chunks/processSlashCommand-0.5.12-pt79vh2t.mjs +0 -9
  777. package/dist/chunks/prompt-0.5.12-hc11zacw.mjs +0 -1
  778. package/dist/chunks/prompt-0.5.12-txnbkzk6.mjs +0 -1
  779. package/dist/chunks/prompts-0.5.12-r29ww1bz.mjs +0 -1
  780. package/dist/chunks/protocolHandler-0.5.12-sg2pjg74.mjs +0 -13
  781. package/dist/chunks/provider-0.5.12-kdvewq5e.mjs +0 -2
  782. package/dist/chunks/providerProfiles-0.5.12-z3pct3be.mjs +0 -1
  783. package/dist/chunks/providerValidation-0.5.12-637xxs9q.mjs +0 -6
  784. package/dist/chunks/rate-limit-options-0.5.12-e7czq7ff.mjs +0 -1
  785. package/dist/chunks/registerSubcommands-0.5.12-5jq9w7c4.mjs +0 -34
  786. package/dist/chunks/registry-0.5.12-dcz74t85.mjs +0 -1
  787. package/dist/chunks/release-notes-0.5.12-acaycqgr.mjs +0 -5
  788. package/dist/chunks/reload-plugins-0.5.12-07m62xd2.mjs +0 -2
  789. package/dist/chunks/remote-env-0.5.12-8ffhqnh9.mjs +0 -1
  790. package/dist/chunks/remoteBridgeCore-0.5.12-qes76y4j.mjs +0 -1
  791. package/dist/chunks/remoteSession-0.5.12-wqh0sh5p.mjs +0 -1
  792. package/dist/chunks/rename-0.5.12-pefg421m.mjs +0 -1
  793. package/dist/chunks/replBridgeHandle-0.5.12-mrx144v7.mjs +0 -1
  794. package/dist/chunks/replLauncher-0.5.12-xyajjb89.mjs +0 -1
  795. package/dist/chunks/resume-0.5.12-yz9ysprz.mjs +0 -2
  796. package/dist/chunks/rewind-0.5.12-7n5x67g8.mjs +0 -1
  797. package/dist/chunks/rootOptions-0.5.12-mn1xh15m.mjs +0 -1
  798. package/dist/chunks/sandbox-adapter-0.5.12-g1r9b0p8.mjs +0 -1
  799. package/dist/chunks/sandbox-toggle-0.5.12-w1rx9eck.mjs +0 -1
  800. package/dist/chunks/session-0.5.12-t3cd84ep.mjs +0 -2
  801. package/dist/chunks/sessionDiscovery-0.5.12-905y94g7.mjs +0 -1
  802. package/dist/chunks/sessionFileAccessHooks-0.5.12-9f5qb84p.mjs +0 -1
  803. package/dist/chunks/sessionStorage-0.5.12-b88eps8r.mjs +0 -1
  804. package/dist/chunks/settings-0.5.12-ascz750g.mjs +0 -1
  805. package/dist/chunks/setup-0.5.12-k4bb1v5t.mjs +0 -5
  806. package/dist/chunks/sinks-0.5.12-wra2rxct.mjs +0 -1
  807. package/dist/chunks/skills-0.5.12-tzetjssj.mjs +0 -1
  808. package/dist/chunks/startupProfiler-0.5.12-4mesbnz6.mjs +0 -1
  809. package/dist/chunks/startupUpdateCheck-0.5.12-j9pvbhww.mjs +0 -1
  810. package/dist/chunks/state-0.5.12-fmbxq91j.mjs +0 -1
  811. package/dist/chunks/stats-0.5.12-6dftg0mb.mjs +0 -6
  812. package/dist/chunks/status-0.5.12-prhem3mn.mjs +0 -1
  813. package/dist/chunks/stickers-0.5.12-t4kmsdfn.mjs +0 -1
  814. package/dist/chunks/subprocessEnv-0.5.12-bbjh5kcq.mjs +0 -1
  815. package/dist/chunks/tasks-0.5.12-5zkvc91z.mjs +0 -1
  816. package/dist/chunks/teamHelpers-0.5.12-4993s40p.mjs +0 -1
  817. package/dist/chunks/teammateModeSnapshot-0.5.12-003j14d2.mjs +0 -1
  818. package/dist/chunks/teleport-0.5.12-qc9n0e99.mjs +0 -1
  819. package/dist/chunks/terminalSetup-0.5.12-e0q1ppyp.mjs +0 -1
  820. package/dist/chunks/theme-0.5.12-j3m1w193.mjs +0 -1
  821. package/dist/chunks/thinkback-0.5.12-q0g2nxf8.mjs +0 -1
  822. package/dist/chunks/thinkback-play-0.5.12-q3xptm32.mjs +0 -1
  823. package/dist/chunks/toolPool-0.5.12-99zz2z7m.mjs +0 -1
  824. package/dist/chunks/toolSearch-0.5.12-msyjmzw4.mjs +0 -1
  825. package/dist/chunks/tools-0.5.12-rfpyvm5z.mjs +0 -1
  826. package/dist/chunks/trustedDevice-0.5.12-x17za0q6.mjs +0 -1
  827. package/dist/chunks/turndown.cjs-0.5.12-pe30j67r.mjs +0 -69
  828. package/dist/chunks/ultrareviewCommand-0.5.12-3ns0qpr7.mjs +0 -4
  829. package/dist/chunks/update-0.5.12-4hgf7mr4.mjs +0 -86
  830. package/dist/chunks/upgrade-0.5.12-7gs6mxyh.mjs +0 -1
  831. package/dist/chunks/upstreamproxy-0.5.12-1v1wp95x.mjs +0 -14
  832. package/dist/chunks/url-handler-napi-0.5.12-2w5y94ch.mjs +0 -1
  833. package/dist/chunks/usage-0.5.12-e4h5kk04.mjs +0 -1
  834. package/dist/chunks/util-0.5.12-2p0n6pkd.mjs +0 -1
  835. package/dist/chunks/utils-0.5.12-6hw9zr7a.mjs +0 -1
  836. package/dist/chunks/vim-0.5.12-f95wabwk.mjs +0 -1
  837. package/dist/chunks/watcher-0.5.12-0qy95ccm.mjs +0 -1
  838. package/dist/chunks/wiki-0.5.12-1h2k88h1.mjs +0 -132
  839. package/dist/chunks/worktree-0.5.12-0svdfkzh.mjs +0 -1
  840. package/dist/chunks/worktreeModeEnabled-0.5.12-qxdddvwv.mjs +0 -1
  841. package/dist/chunks/wrapper-0.5.12-553s8689.mjs +0 -7
  842. /package/dist/chunks/{cli-0.5.12-9ghkvy4m.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
  843. /package/dist/chunks/{cli-0.5.12-r4t180q2.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.12-paj8nhxk.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
@@ -1,25 +0,0 @@
1
- import{$5 as Yc,J5 as nt,K5 as hl,L5 as bl,M5 as ml,N5 as fn,O5 as $c,P5 as fu,Q5 as Al,R5 as ys,S5 as El,T5 as st,U5 as hs,V5 as k,W5 as ur,X5 as Qc,Y5 as Bc,Z5 as ra,_5 as Xc,a6 as Zc,b6 as Jc,c6 as el,d6 as Hc,e6 as cr,f6 as Cc,g6 as Ts,h6 as gl}from"./cli-0.5.12-vwd5aqnh.mjs";import{i6 as ie}from"./cli-0.5.12-8vg9yqcp.mjs";import{Nna as kc,Ona as Le}from"./cli-0.5.12-gt83ysr0.mjs";import{Qna as Vc}from"./cli-0.5.12-xyf8b9hh.mjs";import{Sna as Fe,Tna as ve,Wna as De,Xna as ee}from"./cli-0.5.12-2fqmc1dw.mjs";import{_na as E,boa as Bs}from"./cli-0.5.12-xzeb7mtb.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 I5};
@@ -1,2 +0,0 @@
1
- import{N3 as Z,Q3 as T,W3 as f,d4 as WB}from"./cli-0.5.12-pycnjaeg.mjs";import{E6 as O,F6 as BB,Maa as A,Yaa as v,eba as QB,w9 as _,x9 as KB}from"./cli-0.5.12-g4wb8mj2.mjs";import{pea as w,qea as JB}from"./cli-0.5.12-asbn3d19.mjs";import{Mga as F,Wga as e}from"./cli-0.5.12-60w1a0bs.mjs";import{Aia as R,Nha as I,Oha as c,Zha as M,_ha as m,hha as S,iha as s,rma as a}from"./cli-0.5.12-c8f4daey.mjs";import{Qma as q,Rma as t}from"./cli-0.5.12-0qasc0ef.mjs";import{aoa as K}from"./cli-0.5.12-xzeb7mtb.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
2
- export{kB as yR,r as zR,vB as AR,TB as BR,g as CR,ZB as DR};
@@ -1,2 +0,0 @@
1
- import{af as bG,bf as iG,hf as nG}from"./cli-0.5.12-nytegfxk.mjs";import{$I as lG,$p as uG,DK as rG,FJ as oG,Fl as vG,NC as KG,OC as pG,PJ as s,QJ as sG,Qt as l,Rt as jG,St as HG,Tt as mG,YI as LG,ZI as WG,bJ as qG,cJ as DG,hJ as a,lJ as kG,lK as $G,nJ as R,oJ as o,oK as cG,pJ as aG,ql as FG,rJ as _G,rl as OG,sK as f,tK as c,uK as r,vK as v,vl as VG,wJ as UG,wK as i,yq as dG,zK as u}from"./cli-0.5.12-zc0qwdy2.mjs";import{_V as QJ}from"./cli-0.5.12-fqp5s15p.mjs";import{BZ as wG,DZ as PG}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as BG}from"./cli-0.5.12-w3hy6c60.mjs";import{Fca as I,Gca as k,I_ as YG,Jca as fG,N_ as gG}from"./cli-0.5.12-g4wb8mj2.mjs";import{mea as TG}from"./cli-0.5.12-hvtcdcev.mjs";import{dfa as w,ffa as MG}from"./cli-0.5.12-2jxq8gnm.mjs";import{Pfa as NG,fga as zG,iga as CG}from"./cli-0.5.12-p5ps8gf0.mjs";import{Gga as SG,zga as x}from"./cli-0.5.12-tfdwzg37.mjs";import{Aia as XG,rma as ZG}from"./cli-0.5.12-c8f4daey.mjs";import{Yna as n,aoa as p}from"./cli-0.5.12-xzeb7mtb.mjs";var GG=p(()=>{NG();TG()});function JG(F){let B="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${B}`}function QG(F,B){if(B.length===0)return;F((D)=>{let h=new Set(D.plugins.errors.map((H)=>JG(H))),P=B.filter((H)=>!h.has(JG(H)));if(P.length===0)return D;return{...D,plugins:{...D.plugins,errors:[...D.plugins.errors,...P]}}})}function EG(F,B=!1){let D=HG(),h=l((G)=>G.authVersion),P=l((G)=>G.mcp.pluginReconnectKey),H=jG(),K=q.useRef(new Map),N=q.useRef(new Set),S=q.useRef(null);q.useEffect(()=>{},[H]);let{addNotification:T}=KG(),RG=16,d=q.useRef([]),y=q.useRef(null),C=q.useCallback(()=>{y.current=null;let G=d.current;if(G.length===0)return;d.current=[],H((Y)=>{let z=Y.mcp;for(let L of G){let{tools:Q,commands:O,resources:W,...J}=L,V=J.type==="disabled"||J.type==="failed"?Q??[]:Q,X=J.type==="disabled"||J.type==="failed"?O??[]:O,Z=J.type==="disabled"||J.type==="failed"?W??[]:W,j=YG(J.name),g=z.clients.findIndex((E)=>E.name===J.name)===-1?[...z.clients,J]:z.clients.map((E)=>E.name===J.name?J:E),b=V===void 0?z.tools:[...s(z.tools,(E)=>E.name?.startsWith(j)),...V],m=X===void 0?z.commands:[...s(z.commands,(E)=>_G(E,J.name)),...X],hG=Z===void 0?z.resources:{...z.resources,...Z.length>0?{[J.name]:Z}:bG(z.resources,J.name)};z={...z,clients:g,tools:b,commands:m,resources:hG}}return{...Y,mcp:z}})},[H]),_=q.useCallback((G)=>{if(d.current.push(G),y.current===null)y.current=setTimeout(C,RG)},[C]),U=q.useCallback(({client:G,tools:Y,commands:z,resources:L})=>{switch(_({...G,tools:Y,commands:z,resources:L}),G.type){case"connected":{if($G(G.client,G.name,H),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{zG(`Failed to invalidate the server cache: ${G.name}`)}),R(G.name)){k(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let O=JJ(Q);k(G.name,`${O} transport closed/disconnected, attempting automatic reconnection`);let W=K.current.get(G.name);if(W)clearTimeout(W),K.current.delete(G.name);(async()=>{for(let V=1;V<=A;V++){if(R(G.name)){k(G.name,"Server disabled during reconnection, stopping retry"),K.current.delete(G.name);return}_({...G,type:"pending",reconnectAttempt:V,maxReconnectAttempts:A});let X=Date.now();try{let j=await v(G.name,G.config),$=Date.now()-X;if(j.client.type==="connected"){k(G.name,`${O} reconnection successful after ${$}ms (attempt ${V})`),K.current.delete(G.name),U(j);return}if(k(G.name,`${O} reconnection attempt ${V} completed with status: ${j.client.type}`),V===A){k(G.name,`Max reconnection attempts (${A}) reached, giving up`),K.current.delete(G.name),U(j);return}}catch(j){let $=Date.now()-X;if(I(G.name,`${O} reconnection attempt ${V} failed after ${$}ms: ${j}`),V===A){k(G.name,`Max reconnection attempts (${A}) reached, giving up`),K.current.delete(G.name),_({...G,type:"failed"});return}}let Z=Math.min(eG*Math.pow(2,V-1),GJ);k(G.name,`Scheduling reconnection attempt ${V+1} in ${Z}ms`),await new Promise((j)=>{let $=setTimeout(j,Z);K.current.set(G.name,$)})}})()}else _({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{k(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=f.cache.get(G.name);f.cache.delete(G.name);let O=await f(G),W=O.length;if(Q)Q.then((J)=>{w("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:W})},()=>{w("tengu_mcp_list_changed",{type:"tools",newCount:W})});else w("tengu_mcp_list_changed",{type:"tools",newCount:W});_({...G,tools:O})}catch(Q){I(G.name,`Failed to refresh tools after list_changed notification: ${x(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{k(G.name,"Received prompts/list_changed notification, refreshing prompts"),w("tengu_mcp_list_changed",{type:"prompts"});try{r.cache.delete(G.name);let[Q,O]=await Promise.all([r(G),Promise.resolve([])]);_({...G,commands:[...Q,...O]}),tG?.()}catch(Q){I(G.name,`Failed to refresh prompts after list_changed notification: ${x(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{k(G.name,"Received resources/list_changed notification, refreshing resources"),w("tengu_mcp_list_changed",{type:"resources"});try{c.cache.delete(G.name);{let Q=await c(G);_({...G,resources:Q})}}catch(Q){I(G.name,`Failed to refresh resources after list_changed notification: ${x(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[_]),e=XG();q.useEffect(()=>{async function G(){let{servers:Y,errors:z}=B?{servers:{},errors:[]}:await a(F),L={...Y,...F};QG(H,z),H((Q)=>{let{stale:O,...W}=UG(Q.mcp,L);for(let X of O){let Z=K.current.get(X.name);if(Z)clearTimeout(Z),K.current.delete(X.name);if(X.type==="connected")X.client.onclose=void 0,u(X.name,X.config).catch(()=>{})}let J=new Set(W.clients.map((X)=>X.name)),V=Object.entries(L).filter(([X])=>!J.has(X)).map(([X,Z])=>({name:X,type:R(X)?"disabled":"pending",config:Z}));if(V.length===0&&O.length===0)return Q;return{...Q,mcp:{...Q.mcp,...W,clients:[...W.clients,...V]}}})}G().catch((Y)=>{I("useManageMCPConnections",`Failed to initialize servers as pending: ${x(Y)}`)})},[B,F,H,e,P]),q.useEffect(()=>{let G=!1;async function Y(){let z;if(B||kG())z=Promise.resolve({});else WG(),z=LG();let{servers:L,errors:Q}=B?{servers:{},errors:[]}:await a(F,z);if(G)return;QG(H,Q);let O={...L,...F},W=Object.fromEntries(Object.entries(O).filter(([Z])=>!R(Z)));i(U,W).catch((Z)=>{I("useManageMcpConnections",`Failed to get MCP resources: ${x(Z)}`)});let J={};if(!B){if(J=DG(await z).allowed,G)return;if(Object.keys(J).length>0){let{servers:Z}=qG(J,O);J=Z}if(Object.keys(J).length>0){H((j)=>{let $=new Set(j.mcp.clients.map((b)=>b.name)),g=Object.entries(J).filter(([b])=>!$.has(b)).map(([b,m])=>({name:b,type:R(b)?"disabled":"pending",config:m}));if(g.length===0)return j;return{...j,mcp:{...j.mcp,clients:[...j.mcp.clients,...g]}}});let Z=Object.fromEntries(Object.entries(J).filter(([j])=>!R(j)));i(U,Z).catch((j)=>{I("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${x(j)}`)})}}let V={...O,...J},X={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(V))if(Z.scope==="enterprise")X.enterprise++;else if(Z.scope==="user")X.global++;else if(Z.scope==="project")X.project++;else if(Z.scope==="local")X.user++;else if(Z.scope==="dynamic")X.plugin++;else if(Z.scope==="claudeai")X.claudeai++;w("tengu_mcp_servers",{...X})}return Y(),()=>{G=!0}},[B,F,U,H,h,e,P]),q.useEffect(()=>{let G=K.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),y.current!==null)clearTimeout(y.current),y.current=null,C()}},[C]);let yG=q.useCallback(async(G)=>{let Y=D.getState().mcp.clients.find((Q)=>Q.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let z=K.current.get(G);if(z)clearTimeout(z),K.current.delete(G);let L=await v(G,Y.config);return U(L),L},[D,U]),AG=q.useCallback(async(G)=>{let Y=D.getState().mcp.clients.find((L)=>L.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let L=K.current.get(G);if(L)clearTimeout(L),K.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);_({name:G,type:"disabled",config:Y.config})}else{o(G,!0),_({name:G,type:"pending",config:Y.config});let L=await v(G,Y.config);U(L)}},[D,_,U]);return{reconnectMcpServer:yG,toggleMcpServer:AG}}function JJ(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,tG=null,A=5,eG=1000,GJ=30000;var IG=p(()=>{ZG();rG();vG();iG();sG();MG();aG();CG();ZG();pG();mG();SG();fG();dG();nG();GG();lG();cG();gG();oG();uG();q=n(BG(),1)});function aJ(){let F=M.useContext(t);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function oJ(){let F=M.useContext(t);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function sJ(F){let B=xG.c(6),{children:D,dynamicMcpConfig:h,isStrictMcpConfig:P}=F,{reconnectMcpServer:H,toggleMcpServer:K}=EG(h,P),N;if(B[0]!==H||B[1]!==K)N={reconnectMcpServer:H,toggleMcpServer:K},B[0]=H,B[1]=K,B[2]=N;else N=B[2];let S=N,T;if(B[3]!==D||B[4]!==S)T=wG(t.Provider,{value:S,children:D}),B[3]=D,B[4]=S,B[5]=T;else T=B[5];return T}var xG,M,t;var XJ=p(()=>{IG();PG();xG=n(QJ(),1),M=n(BG(),1),t=M.createContext(null)});
2
- export{GG as Xe,aJ as Ye,oJ as Ze,sJ as _e,XJ as $e};
@@ -1,2 +0,0 @@
1
- import{F3 as q,d4 as D}from"./cli-0.5.12-pycnjaeg.mjs";import{bfa as m,cfa as z}from"./cli-0.5.12-k1crwtdc.mjs";import{aoa as x}from"./cli-0.5.12-xzeb7mtb.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
2
- export{E as qe,F as re,K as se,M as te,G as ue};
@@ -1,2 +0,0 @@
1
- import{aoa as b}from"./cli-0.5.12-xzeb7mtb.mjs";var j="Remote Control is only available with claude.ai subscriptions. Please use `/login` to sign in with your claude.ai account.",k="Remote Control disconnected.";var g=()=>{};
2
- export{j as Ad,k as Bd,g as Cd};
@@ -1,2 +0,0 @@
1
- import{Una as n}from"./cli-0.5.12-2fqmc1dw.mjs";import{_na as r}from"./cli-0.5.12-xzeb7mtb.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
- export{i as j6};
@@ -1,2 +0,0 @@
1
- import{gV as y,hV as O}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as H,rX as h,tX as T}from"./cli-0.5.12-fqp5s15p.mjs";import{BZ as s,DZ as I}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as z}from"./cli-0.5.12-w3hy6c60.mjs";import{A6 as V,z6 as R}from"./cli-0.5.12-g4wb8mj2.mjs";import{Oca as i,Pca as A,Qca as E,Rca as p,eda as U}from"./cli-0.5.12-vp5smcs1.mjs";import{Yna as X,aoa as q}from"./cli-0.5.12-xzeb7mtb.mjs";function J(o){if(o.startsWith("file-"))return"+";if(o.startsWith("mcp-resource-"))return"◇";if(o.startsWith("agent-"))return"*";return"+"}function K(o){return o.startsWith("file-")||o.startsWith("mcp-resource-")||o.startsWith("agent-")}function Z({suggestions:o,selectedSuggestion:t,maxColumnWidth:m,overlay:e}){let{rows:a}=y(),r=e?Y:Math.min(14,Math.max(1,a-2));if(o.length===0)return null;let u=m??Math.max(...o.map((n)=>i(n.displayText)))+5,l=Math.max(0,Math.min(t-Math.floor(r/2),o.length-r)),f=Math.min(l+r,o.length),d=o.slice(l,f);return s(h,{flexDirection:"column",justifyContent:e?void 0:"flex-end",children:d.map((n)=>s(Q,{item:n,maxColumnWidth:u,isSelected:n.id===o[t]?.id},`${n.id}:${n.id===o[t]?.id?"selected":"idle"}`))})}var C,Y=10,k,G=" ",W,Q,at;var j=q(()=>{V();O();A();H();U();I();C=X(z(),1),k=`${R.pointer} `,W=i(k);Q=C.memo(function({item:t,maxColumnWidth:m,isSelected:e}){let a=y().columns,r=e?k:G,u=e?"suggestion":void 0,l=e?"inverseText":void 0;if(K(t.id)){let $=J(t.id),F=!e,N=t.id.startsWith("file-"),_=t.id.startsWith("mcp-resource-"),tt=2,ot=4,b=t.description?3:0,c;if(N){let x=t.description?Math.min(20,i(t.description)):0,L=a-W-2-4-b-x;c=E(t.displayText,L)}else if(_)c=p(t.displayText,30);else c=t.displayText;let v=a-W-2-i(c)-b-4,g;if(t.description){let x=p(t.description.replace(/\s+/g," "),Math.max(0,v));g=`${r}${$} ${c} - ${x}`}else g=`${r}${$} ${c}`;return s(h,{width:"100%",opaque:!0,backgroundColor:u,children:s(T,{color:l,dimColor:F,bold:e,wrap:"truncate",children:g})})}let f=Math.floor(a*0.4),d=Math.min(m??i(t.displayText)+5,f),n=t.displayText;if(i(n)>d-2)n=p(n,d-2);let w=r+n+" ".repeat(Math.max(0,d-i(n))),M=t.tag?`[${t.tag}] `:"",P=i(M),D=Math.max(0,a-W-d-P-4),S=t.description?p(t.description.replace(/\s+/g," "),D):"",B=`${w}${M}${S}`;return s(h,{width:"100%",opaque:!0,backgroundColor:u,children:s(T,{color:l,dimColor:!e,bold:e,wrap:"truncate",children:B})})});at=C.memo(Z)});
2
- export{Z as _g,at as $g,j as ah};
@@ -1,12 +0,0 @@
1
- import{vg as _Z,wg as SZ,xg as vz}from"./cli-0.5.12-had5m07e.mjs";import{$g as ZJ,ah as oQ}from"./cli-0.5.12-ajgk4ksj.mjs";import{eh as JJ,fh as tQ}from"./cli-0.5.12-g4ffbdep.mjs";import{$i as xZ,$x as IQ,AN as RQ,Cm as aJ,Dt as FQ,EN as xQ,Ei as UJ,Et as KQ,FN as $Q,Fi as jJ,Gm as Cz,HN as $Z,IN as fQ,KN as d0,LN as uQ,Mi as SJ,NN as gJ,ON as mJ,PN as pQ,QN as dQ,Qq as qJ,Qt as _Q,SN as FZ,Tt as qX,Ul as lJ,Uq as Bz,Vl as bz,Xx as EZ,Yx as CZ,Zx as bZ,_x as kJ,aj as JX,am as bQ,ay as IJ,bm as zX,fQ as sJ,gy as o0,hy as TJ,iy as hJ,jN as hQ,jQ as XQ,jy as RJ,kx as SQ,ky as wz,lx as YX,mQ as kZ,qm as rJ,sm as yZ,sx as kQ,tx as VX,vi as UZ,wi as MQ,wt as GQ,xt as LQ,yQ as eJ,yt as vQ,zt as yQ}from"./cli-0.5.12-zc0qwdy2.mjs";import{QR as CQ,ZR as WX}from"./cli-0.5.12-c2yq69h9.mjs";import{BV as rQ,CV as OZ,DV as XX,gV as BZ,hV as oZ,xV as tZ}from"./cli-0.5.12-f5pfjvdk.mjs";import{QV as aZ,RV as lQ,YX as f0,_V as x0,kX as EQ,lX as QX,rX as C,sX as HQ,tX as g,uW as p0,uX as gz,yW as PZ}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as $0,BZ as B,CZ as $,DZ as L0}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as R0}from"./cli-0.5.12-w3hy6c60.mjs";import{A3 as nJ,K3 as iJ,Z2 as BQ,_2 as cz,d3 as s0,d4 as Ez,g3 as e0}from"./cli-0.5.12-pycnjaeg.mjs";import{A4 as ez,z4 as RZ}from"./cli-0.5.12-ctqkj6ve.mjs";import{B4 as sZ,C4 as eZ,D4 as aQ}from"./cli-0.5.12-cbevkwg4.mjs";import{A6 as lZ,Maa as wZ,S9 as ZX,c$ as VZ,eba as ZQ,k$ as rZ,y9 as jQ,z6 as v0}from"./cli-0.5.12-g4wb8mj2.mjs";import{Oca as NZ,Pca as MJ,Zca as t0,eda as jz}from"./cli-0.5.12-vp5smcs1.mjs";import{Cea as HZ,Hea as GZ,Iea as LZ,Uea as Vz,pea as vZ,qea as Mz}from"./cli-0.5.12-asbn3d19.mjs";import{fga as c0,iga as dz}from"./cli-0.5.12-p5ps8gf0.mjs";import{Mga as UQ,Wga as sz}from"./cli-0.5.12-60w1a0bs.mjs";import{Tla as DQ,rma as tz}from"./cli-0.5.12-c8f4daey.mjs";import{Yna as A0,aoa as N0}from"./cli-0.5.12-xzeb7mtb.mjs";function cZ(J){let Z=qZ.c(6),{children:Q}=J,[z,X]=F0.useState(null),[W,q]=F0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(pZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(uZ.Provider,{value:X,children:B(dZ.Provider,{value:q,children:B(fZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function gZ(){return F0.useContext(fZ)}function mZ(){return F0.useContext(pZ)}function DX(J){let Z=qZ.c(8),Q=F0.useContext(uZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}function UX(J){let Z=qZ.c(8),Q=F0.useContext(dZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}var qZ,F0,fZ,uZ,pZ,dZ;var nZ=N0(()=>{L0();qZ=A0(x0(),1),F0=A0(R0(),1),fZ=F0.createContext(null),uZ=F0.createContext(null),pZ=F0.createContext(null),dZ=F0.createContext(null)});function YZ(J){return J.type==="attachment"&&iQ.has(J.attachment.type)}var nQ,iQ;var AZ=N0(()=>{nQ=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],iQ=new Set(nQ)});import{fileURLToPath as sQ}from"url";function pX(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function eQ(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Zz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Zz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function dX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||YZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=eQ(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function cX(J){let Z=i0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:b}=BZ(),[_,N]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:N},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??zz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,S;if(Z[3]!==K||Z[4]!==Y)S=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=S;else S=Z[5];let H0=q0.useSyncExternalStore(E,S),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Jz,Y0),p0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Wz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let w0=Q0?0:1,T;if(Z[9]!==Q)T=B(DZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==w0)i=$(JJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:w0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=w0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Xz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(C,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let k;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)k=$(C,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=k;else k=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(qz,{}),w=B(Yz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=$(C,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(C,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==b||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(tZ,{value:{rows:O-iZ-1,columns:b-4,scrollRef:V??null},children:$(C,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-iZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(C,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(b)})}),B(C,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=b,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==k||Z[39]!==U||Z[40]!==R)s=$(cZ,{children:[k,U,R]}),Z[38]=k,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$($0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Jz(){if(!p0())return;let J=aZ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Qz,()=>{J.onHyperlinkClick=void 0}}function Qz(J){if(J.startsWith("file:"))try{sZ(sQ(J))}catch{}else eZ(J)}function zz(){}function Xz(J){let Z=i0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${VZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(C,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(C,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Wz(J){let Z=i0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(C,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function qz(){let J=i0.c(4),Z=gZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(ZJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Yz(){let J=i0.c(2),Z=mZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var i0,q0,iZ=2,DZ;var QJ=N0(()=>{lZ();rQ();nZ();oZ();tQ();lQ();f0();aQ();PZ();rZ();AZ();oQ();L0();i0=A0(x0(),1),q0=A0(R0(),1),DZ=q0.createContext({setStickyPrompt:()=>{}})});function zJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var XJ=()=>{};function WJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${HZ}`))return!1;if(UZ(Z.text,GZ)!=="completed")return!1;return UZ(Z.text,LZ)?.startsWith(qJ)??!1}function YJ(J,Z){if(!p0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(WJ(X)){let W=0;while(z<J.length&&WJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${HZ}><${GZ}>completed</${GZ}><${LZ}>${W} background commands completed</${LZ}></${HZ}>`}]}})}else Q.push(X),z++}return Q}var VJ=N0(()=>{Vz();Bz();PZ();FZ()});function BJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function HJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(BJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!BJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var GJ=()=>{};function LJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function FJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(LJ(z)){let X=0;while(Q<J.length&&LJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var KJ=()=>{};function Hz(J){let Z=NJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),NJ.set(J,Z);return Z}function jZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function wJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Hz(Z),X=new Map;for(let F of J){let P=jZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=jZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=jZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let b=O.message.content[0].id,_=V.get(b);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var NJ;var OJ=N0(()=>{NJ=new WeakMap});function KZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Gz(J).toLowerCase();return DJ.set(J,Q),Q}function Gz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=PJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!PJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Fz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Lz(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(AJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+AJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Lz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function Fz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var AJ="</system-reminder>",PJ,DJ;var MZ=N0(()=>{FZ();PJ=new Set([UJ,jJ]),DJ=new WeakMap});function bJ(J){let Z=EJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Kz)))return null;let W=NZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(C,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Kz(J){return J.type==="text"}var EJ;var CJ=N0(()=>{MJ();f0();L0();EJ=A0(x0(),1)});function yJ(J){let Z=vJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(Nz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=C,V=NZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function Nz(J){return J.type==="text"}var vJ;var _J=N0(()=>{MJ();f0();L0();vJ=A0(x0(),1)});function fJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(EZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(EZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function Oz(J){let Z=xJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,b=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)D=N&&(bZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?kJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,S;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)S=_||N?[]:mJ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=S;else S=Z[14];let H0=S,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let k=_||N?SJ:gJ(Q,O);Y0=dJ(Q,K,Y,k,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let k;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let U=w.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];k=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=k}else k=Z[25];h=k}else if(N){let k;if(Z[28]!==Y||Z[29]!==Q)k=bZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=k;else k=Z[30];h=k}else{let k;if(Z[31]!==Y||Z[32]!==Q){let W0=d0(Q);k=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=k}else k=Z[33];h=k}let z0;if(Z[34]!==E||Z[35]!==b)z0=b&&E.type==="assistant"&&E.message.content.some(Az)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=b,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,w0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==b||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==w0||Z[52]!==W||Z[53]!==V)T=B(RJ,{message:Q,lookups:O,addMargin:X0,containerWidth:w0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:b,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=b,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=w0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let k;if(Z[55]!==i)k=B(o0,{children:i}),Z[55]=i,Z[56]=k;else k=Z[56];return k}let o;if(Z[57]!==E||Z[58]!==b)o=$(C,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(yJ,{message:E,isTranscriptMode:b}),B(bJ,{message:E,isTranscriptMode:b})]}),Z[57]=E,Z[58]=b,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(o0,{children:$(C,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function Az(J){return J.type==="text"}function Pz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).some((X)=>Z.has(X));let Q=d0(J);return!!Q&&Z.has(Q)}function Dz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=d0(J);return!Q||Z.has(Q)}function Uz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&hJ(Z.message))return!1;let X=Pz(J.message,J.streamingToolUseIDs),W=Dz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var xJ,$J,uJ;var pJ=N0(()=>{f0();IJ();FZ();wz();CJ();cJ();_J();TJ();L0();xJ=A0(x0(),1),$J=A0(R0(),1);uJ=$J.memo(Oz,Uz)});import{relative as yz}from"path";function oJ(J){return Rz.filter((Z)=>Z.isActive(J))}var _z,Sz,kz,Iz,Tz,hz,Rz;var tJ=N0(()=>{f0();eJ();lZ();Mz();jz();Ez();vz();Cz();bz();L0();_z={id:"large-memory-files",type:"warning",isActive:(J)=>kZ(J.memoryFiles).length>0,render:(J)=>{let Z=kZ(J.memoryFiles);return B($0,{children:Z.map((Q)=>{let z=Q.path.startsWith(vZ())?yz(vZ(),Q.path):Q.path;return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",t0(Q.content.length)," chars >"," ",t0(sJ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},Sz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=s0();return iJ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=s0();return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},kz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return!!nJ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},Iz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return $(C,{flexDirection:"column",marginTop:1,children:[$(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(C,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},Tz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return SZ(J.agentDefinitions)>_Z},render:(J)=>{let Z=SZ(J.agentDefinitions);return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",t0(Z)," tokens >"," ",t0(_Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},hz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!rJ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=yZ();return Q!==null&&!lJ(Q)},render:()=>{let J=yZ(),Z=aJ(J);return $(C,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},Rz=[_z,Tz,Sz,kz,Iz,hz]});async function xz(){if(ZZ)return ZZ;return ZZ=XQ().then((J)=>{JZ=J}).finally(()=>{ZZ=null}),ZZ}function QQ(J){let Z=JQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=l0.useState(JZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(JZ.length>0){X(JZ);return}xz().then(()=>{X(JZ)})},Z[0]=W;else W=Z[0];l0.useEffect(W,[W]);let V={config:wZ(),agentDefinitions:Q,memoryFiles:z},Y=oJ(V);if(Y.length===0)return null;let K=C,F="column",P=1,v=Y.map((I)=>B(l0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var JQ,l0,JZ,ZZ=null;var zQ=N0(()=>{f0();eJ();ZQ();tJ();L0();JQ=A0(x0(),1),l0=A0(R0(),1),JZ=[]});function WQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??pz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let U=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(U/uz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,b=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),U=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let w=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);w[0]=0;for(let U=0;U<D;U++)w[U+1]=w[U]+(z.current.get(Z[U])??$z);q.current={arr:w,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,S;if(M)[E,S]=M,E=Math.min(E,D),S=Math.min(S,D);else if(_===0||O<0)E=Math.max(0,D-fz),S=D;else{if(N){let V0=_+r0;E=D;while(E>0&&J0-p[E-1]<V0)E--;S=D}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+b),g0=Math.max(O,O+b),y0=g0-M0,D0=y0>G0?b<0?g0-G0:M0:M0,I0=D0+Math.min(y0,G0),m0=Math.max(0,D0-V0),T0=I0-V0,b0=m0-r0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let n0=_+2*r0,a0=Math.min(D,E+QZ),_0=0;S=E;while(S<a0&&(_0<n0||p[S]<T0+_+r0))_0+=z.current.get(Z[S])??IZ,S++}let w=_+2*r0,U=Math.max(0,S-QZ),R=0;for(let V0=E;V0<S;V0++)R+=z.current.get(Z[V0])??IZ;while(E>U&&R<w)E--,R+=z.current.get(Z[E])??IZ;let s=P.current,O0=Math.abs(O-W.current)+Math.abs(b);if(s&&O0>_*2){let[V0,G0]=s;if(E<V0-zZ)E=V0-zZ;if(S>G0+zZ)S=G0+zZ;if(E>S)S=Math.min(E+zZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,S];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(S),l=E<H0?H0:E,h=S>Y0?Y0:S;if(l>h||N)l=E,h=S;if(b>0)h=S;if(h-l>QZ){let w=(p[l]+p[h])/2;if(O-I.current<w)h=l+QZ;else l=h-QZ}let z0=I.current,Q0=p[l],X0=l===0?0:Q0+z0,w0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,w0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let O0=s.yogaNode;if(!O0)continue;let V0=O0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(O0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((w)=>{let U=Y.current.get(w);if(!U)U=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let O0=s.getComputedHeight();if((O0>0||s.getComputedWidth()>0)&&z.current.get(w)!==O0)z.current.set(w,O0),X.current++}V.current.delete(w)}},Y.current.set(w,U);return U},[]),i=m.useCallback((w)=>{let U=V.current.get(Z[w])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),k=m.useCallback((w)=>{let U=q.current;if(w<0||w>=U.n)return;J.current?.scrollTo(U.arr[w]+I.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:k}}var m,$z=3,r0=80,fz=30,uz,IZ=1,QZ=300,zZ=25,pz=()=>{};var qQ=N0(()=>{m=A0(R0(),1),uz=r0>>1});function mz(J){let Z=YQ.get(J);if(Z!==void 0)return Z;let Q=KZ(J);return YQ.set(J,Q),Q}function iz(J){let Z=VQ.get(J);if(Z!==void 0)return Z;let Q=lz(J);return VQ.set(J,Q),Q}function lz(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=FQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function rz(J){let Z=NQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let b;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)b=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=b;else b=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let D;if(Z[19]!==_||Z[20]!==N)D=B(HQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==b||Z[28]!==D)p=B(C,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:b,children:D}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=b,Z[28]=D,Z[29]=p;else p=Z[29];return p}function wQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=mz,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),b=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==b.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));b.current=J,_.current=z;let N=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:S,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=WQ(Z,N,Q),[Q0,X0]=D,w0=y.useCallback((H)=>{if(h(H)===0)return!1;return GQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(f)=>v?.({uuid:f.uuid,msgType:f.type,expanded:!1,toolName:LQ(f)?.name}),L=F??-1,A=(f,n,a=w0)=>{for(let c=f;c>=0&&c<J.length;c+=n)if(a(c))return H(J[c]),!0;return!1},x=(f)=>w0(f)&&J[f].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,w0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),k=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),O0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-TZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let f=Math.max(0,Math.min(H,x.length-1)),n=x[f],a=T.current.getItemTop(A),c=L.getViewportTop(),e=a-L.getScrollTop(),h0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+h0)L.scrollTo(Math.max(0,a+n.row-TZ)),e=a-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:f});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+f+1;I?.(U0,j0),c0(`highlight(i=${A}, ord=${f}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,g0]=y.useState(0),y0=y.useCallback(()=>g0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,f=Z.current;if(!f)return;let{getItemElement:n,getItemTop:a,scrollToIndex:c}=T.current,e=n(L),h0=e?.yogaNode?.getComputedHeight()??0;if(!e||h0===0){if(x>1){i.current=null,c0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,f.scrollTo(Math.max(0,a(L)-TZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},c0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++k.current>20){k.current=0;return}w.current(A?-1:1);return}k.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,w.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:f,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let a=f(H),c=a?.yogaNode?.getComputedHeight()??0;if(a&&c>0)A.scrollTo(V0(H));else n(H);y0()}function I0(H){let L=R.current,{matches:A,prefixSum:x}=L,f=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,a=L.screenOrd+H;if(a>=0&&a<n.length){L.screenOrd=a,G0(a),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,c0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??f:x[c]+1;I?.(f,e)}w.current=I0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let S0=Y(U0[j0]),G=S0.indexOf(L),j=0;while(G>=0)j++,G=S0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let f=x.at(-1),n=0,a=Z.current,{offsets:c,start:e,getItemTop:h0}=T.current,P0=h0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&a){let U0=s.current>=0?s.current:a.getScrollTop(),j0=1/0;for(let S0=0;S0<A.length;S0++){let G=Math.abs(E0+c[A[S0]]-U0);if(G<=j0)j0=G,n=S0}c0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&a)a.scrollTo(s.current);I?.(f,A.length>0?x[n+1]??f:0)},nextMatch:()=>I0(1),prevMatch:()=>I0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(O0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await BQ(0);let a=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-a}let f=Math.round(performance.now()-x);return c0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${f}ms chunks=${Math.ceil(H.length/L)}`),O0.current=!0,Math.round(A)}}),[Z]);let[m0,T0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:T0});b0.current={onItemClick:W,setHoveredKey:T0};let n0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),a0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $($0,{children:[B(C,{ref:S,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],f=!!W&&(q?.(H)??!0),n=f&&m0===x,a=V?.(H);return B(rz,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:a,hovered:n,clickable:f,onClickK:n0,onEnterK:a0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(C,{height:J0,flexShrink:0}),K&&B(oz,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function oz({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(DZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??az,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let D=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let N=Q-1;N>=Z;N--){let D=X(N);if(D>=0){if(D<F)break;v=D}P=N}let M=-1,I=null;if(P>0&&!K)for(let N=P-1;N>=0;N--){let D=iz(J[N]);if(D===null)continue;let p=X(N);if(p>=0&&p+1>=F)continue;M=N,I=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),b=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(b.current==="armed"){b.current="force";return}let N=b.current==="force";if(b.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let D=I.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,nz).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,S=d;V({text:J0,scrollTo:()=>{V("clicked"),b.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(S),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var NQ,y,TZ=3,YQ,nz=500,VQ,az=()=>{};var OQ=N0(()=>{qQ();f0();gz();QJ();dz();cz();MZ();KQ();L0();NQ=A0(x0(),1),y=A0(R0(),1),YQ=new WeakMap;VQ=new WeakMap});function LX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function FX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function wX(J,Z,Q=KX,z=NX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function PQ(J){return(J.type==="assistant"||J.type==="user"?d0(J):null)??J.uuid}function AX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function dJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=d0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(pQ(q,"PostToolUse",W))return!1;return zJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var TQ,XZ,u,BX,HX=null,AQ=null,GX=null,hZ=30,KX=200,NX=50,OX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,streamingText:b,isBriefOnly:_=!1,unseenDivider:N,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=BZ(),w0=bQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=u.useMemo(()=>$Z(J).filter(RQ),[J]),i=u.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=u.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let r=B0.length-1;r>=0;r--)if(B0[r]?.type==="thinking")return`${j.uuid}:${r}`}else if(j?.type==="user"){if(!j.message.content.some((r)=>r.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=u.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let r of B0)if(r.type==="text"){let K0=r.text;if(K0.startsWith("<bash-stdout")||K0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),k=u.useMemo(()=>dQ(T),[T]),W0=u.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!k.has(G.contentBlock.id)),[F,q,k]),w=u.useMemo(()=>W0.flatMap((G)=>{let j=hQ({content:[G.contentBlock]});return j.uuid=MQ(G.contentBlock.id,0),$Z([j])}),[W0]),U=K==="transcript",R=u.useMemo(()=>UQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,O0=U&&!P&&!s,V0=u.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:g0,hiddenMessageCount:y0}=u.useMemo(()=>{let G=z||p0()?T:xQ(T,{includeSnipped:!0}),j=fQ(G.filter((k0)=>k0.type!=="progress").filter((k0)=>!YZ(k0)).filter((k0)=>$Q(k0,U)),w),B0=[AQ,GX].filter((k0)=>k0!==null),r=[AQ].filter((k0)=>k0!==null),K0=B0.length>0&&!U?_?LX(j,B0):r.length>0?FX(j,r):j:j,C0=O0?K0.slice(-hZ):K0,WZ=O0&&K0.length>hZ,{messages:u0}=wJ(C0,Z,z),cQ=YJ(HJ(FJ(IQ(u0,Z))),z),gQ=uQ(T,C0),mQ=j.length-hZ;return{collapsed:cQ,lookups:gQ,hasTruncatedMessages:WZ,hiddenMessageCount:mQ}},[z,T,U,w,O0,Z,_]),D0=u.useMemo(()=>{let j=!s&&!Y0?wX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),I0=u.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),m0=_Q((G)=>G.tasks),T0=M0.asyncLaunchedToolUseIDs,b0=u.useMemo(()=>{if(T0.size===0)return null;let G=new Set;for(let[j,B0]of T0){let r=m0?.[B0]?.status;if(r==="running"||r==="requested"||r==="queued")G.add(j)}return G.size>0?G:null},[m0,T0]),n0=u.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),a0=u.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[N,D0]),_0=u.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=u.useState(()=>new Set),A=u.useCallback((G)=>{let j=PQ(G);L((B0)=>{let r=new Set(B0);if(r.has(j))r.delete(j);else r.add(j);return r})},[]),x=u.useCallback((G)=>H.size>0&&H.has(PQ(G)),[H]),f=u.useRef(M0);f.current=M0;let n=u.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let K0=G.message.content[0];return K0!=null&&CQ(K0)&&K0.type==="advisor_tool_result"&&K0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=f.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?xZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),a=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=n0.size>0,{progress:e}=EQ(),h0=u.useRef(null),P0=wZ().terminalProgressBarEnabled&&!DQ()&&!(HX?.isProactiveActive()??!1);u.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(h0.current===G)return;h0.current=G,e(G)},[e,P0,c]),u.useEffect(()=>{return()=>e(null)},[e]);let E0=u.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,r=G.type==="user"&&B0==="user",K0=G.type==="collapsed_read_search"&&(!!b||fJ(D0,j,Z,I0)),C0=E0(G),WZ=B(uJ,{message:G,isUserContinuation:r,hasContentAfter:K0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:n0,streamingToolUseIDs:I0,screen:K,canAnimate:a,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),u0=B(vQ.Provider,{value:j===_0,children:WZ},C0);if(N&&j===a0)return[B(C,{marginTop:1,children:B(OZ,{title:`${N.count} new ${VZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),u0];return u0},j0=u.useRef(new WeakMap),S0=u.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=KZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let K0=G.message.content.find((C0)=>C0.type==="tool_result");if(K0&&"tool_use_id"in K0){let C0=M0.toolUseByToolUseID.get(K0.tool_use_id),u0=(C0&&xZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(u0!==void 0)B0=u0}}let r=B0.toLowerCase();return j0.current.set(G,r),r},[Z,M0]);return $($0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(BX,{agentDefinitions:v}),g0&&B(OZ,{title:`${w0} to show ${RZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(OZ,{title:`${w0} to hide ${RZ.bold(y0)} previous messages`,width:X0}),s?B(yQ.Provider,{value:!0,children:B(wQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,extractSearchText:S0})}):D0.flatMap(U0),b&&!_&&B(C,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(C,{flexDirection:"row",children:[B(C,{minWidth:2,children:B(g,{color:"text",children:jQ})}),B(C,{flexDirection:"column",children:B(SQ,{children:b})})]})}),i&&O&&!_&&B(C,{marginTop:1,children:B(kQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},C8;var cJ=N0(()=>{ez();XJ();tz();ZX();oZ();QX();f0();zX();qX();JX();WX();VJ();GJ();IJ();KJ();ZQ();sz();PZ();OJ();FZ();rZ();MZ();XX();YX();pJ();KQ();VX();AZ();TJ();zQ();OQ();L0();TQ=A0(x0(),1),XZ=A0(R0(),1),u=A0(R0(),1),BX=XZ.memo(function(Z){let Q=TQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(o0,{children:$(C,{flexDirection:"column",gap:1,children:[X,B(XZ.Suspense,{fallback:null,children:B(QQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});C8=XZ.memo(OX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(AX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{DX as Ge,UX as He,nZ as Ie,pX as Je,dX as Ke,cX as Le,QJ as Me,C8 as Ne,cJ as Oe};
@@ -1,2 +0,0 @@
1
- import{Bga as G,Gga as X}from"./cli-0.5.12-tfdwzg37.mjs";import{Jga as z,Wga as W}from"./cli-0.5.12-60w1a0bs.mjs";W();X();import{readFileSync as Y}from"node:fs";import{mkdir as Z,writeFile as Q}from"node:fs/promises";import{join as $}from"node:path";var k="latest-version.json";function R(){return $(z(),k)}function B(x){if(!x||typeof x!=="object")return!1;let q=x;return typeof q.latest==="string"&&q.latest.length>0&&typeof q.current==="string"&&q.current.length>0&&typeof q.checkedAt==="number"&&Number.isFinite(q.checkedAt)}function V(){try{let x=Y(R(),"utf8"),q=JSON.parse(x);return B(q)?q:null}catch(x){if(G(x))return null;return null}}async function _(x){let q=R(),J=JSON.stringify(x);try{await Q(q,J,"utf8")}catch(K){if(G(K)){await Z(z(),{recursive:!0}),await Q(q,J,"utf8");return}throw K}}
2
- export{V as ia,_ as ja};
@@ -1,2 +0,0 @@
1
- import{Gia as z,Kia as B,rma as H}from"./cli-0.5.12-c8f4daey.mjs";import{aoa as x}from"./cli-0.5.12-xzeb7mtb.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
- export{Q as nea,J as oea,R as pea,K as qea,U as rea,V as sea,W as tea,X as uea,Y as vea,Z as wea,$ as xea,j as yea,q as zea,A as Aea,G as Bea,L as Cea,_ as Dea,b as Eea,k as Fea,p as Gea,v as Hea,C as Iea,O as Jea,y as Kea,S as Lea,f as Mea,m as Nea,u as Oea,h as Pea,l as Qea,w as Rea,g as Sea,d as Tea,M as Uea};
@@ -1,2 +0,0 @@
1
- import{aoa as t}from"./cli-0.5.12-xzeb7mtb.mjs";var r,i=(s,e)=>function(){return e||(0,s[r(s)[0]])((e={exports:{}}).exports,e),e.exports},n;var a=t(()=>{r=Object.getOwnPropertyNames,n=i({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.25.2",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.16.1",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^9.0.1"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.6","axios@>=1.0.0 <1.16.0":"1.16.1","follow-redirects@<1.16.0":">=1.16.0 <2.0.0"}}}}})});
2
- export{n as Sg,a as Tg};
@@ -1,2 +0,0 @@
1
- import{UY as x}from"./cli-0.5.12-ysy6e9rz.mjs";import{d4 as q}from"./cli-0.5.12-pycnjaeg.mjs";import{mea as p}from"./cli-0.5.12-hvtcdcev.mjs";import{Wga as f}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as d}from"./cli-0.5.12-xzeb7mtb.mjs";function N(){return!1}async function O(){return!1}function P(){return!1}function Q(){return!0}function R(){return null}var z=d(()=>{p();q();f();x()});
2
- export{N as Gf,O as Hf,P as If,Q as Jf,R as Kf,z as Lf};
@@ -1,4 +0,0 @@
1
- import{_d as c,ee as Eq}from"./cli-0.5.12-vs30tjk8.mjs";import{An as A,Cn as D,Dn as Aq,EI as Cq,En as h,Fn as S,Gn as Fq,HI as b,II as Lq,LI as Hq,MI as Jq,OH as v,OI as vq,PH as m,PI as y,QI as Qq,RH as Oq,RI as Xq,SI as Yq,TI as $q,UI as d,XI as Dq,iI as n,jr as l,kn as s,kr as wq,ln as Tq,oI as e,on as t,pI as P,qn as Mq,tI as jq,uI as O,un as i,vI as qq,wn as Rq,xI as I,yI as Gq}from"./cli-0.5.12-zc0qwdy2.mjs";import{Bca as a,H$ as F,J$ as L,Jca as Bq,W$ as _q,c$ as V,k$ as Kq}from"./cli-0.5.12-g4wb8mj2.mjs";import{Tfa as p,Xfa as Wq}from"./cli-0.5.12-p5ps8gf0.mjs";import{Bga as N,Gga as Uq,yga as o}from"./cli-0.5.12-tfdwzg37.mjs";import{Gia as f,rma as xq}from"./cli-0.5.12-c8f4daey.mjs";import{aoa as Zq}from"./cli-0.5.12-xzeb7mtb.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as Nd,HG as Od,JG as Pd,QG as Qd,kq as Rd,XG as Sd,YG as Td,$G as Ud,zG as Vd,ZG as Wd,xG as Xd,hq as Yd};
@@ -1,2 +0,0 @@
1
- import{BZ as v,DZ as D}from"./cli-0.5.12-c6whkxmz.mjs";import{boa as B}from"./cli-0.5.12-xzeb7mtb.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.5.12-r5wjd7s8.mjs"),J=z??import("./REPL-0.5.12-8h9bmdjx.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
- export{N as xb,O as yb};