@claudiolabs/claudio 0.1.12 → 0.1.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 (594) hide show
  1. package/bin/claudio +7 -0
  2. package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +1 -0
  3. package/dist/chunks/App-0.1.13-45tpe56w.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +1 -0
  5. package/dist/chunks/{AssistantSessionChooser-0.1.12-x3zt5579.mjs → AssistantSessionChooser-0.1.13-tcg2ckh4.mjs} +1 -1
  6. package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +1 -0
  8. package/dist/chunks/{ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs → ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs} +1 -1
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +1 -0
  11. package/dist/chunks/{DiffDialog-0.1.12-tzjdg5ys.mjs → DiffDialog-0.1.13-3a9b1b48.mjs} +1 -1
  12. package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +1 -0
  15. package/dist/chunks/{InProcessTransport-0.1.12-xnrc78z1.mjs → InProcessTransport-0.1.13-k5mkjvww.mjs} +1 -1
  16. package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +1 -0
  19. package/dist/chunks/{Onboarding-0.1.12-tc4trc3y.mjs → Onboarding-0.1.13-j8d7hwbe.mjs} +1 -1
  20. package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +1 -0
  23. package/dist/chunks/{SnapshotUpdateDialog-0.1.12-f1byjres.mjs → SnapshotUpdateDialog-0.1.13-has41zv0.mjs} +1 -1
  24. package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +1 -0
  32. package/dist/chunks/{agents-0.1.12-vfwpnn0d.mjs → agents-0.1.13-a0aj4df9.mjs} +2 -2
  33. package/dist/chunks/agents-0.1.13-phdd6357.mjs +3 -0
  34. package/dist/chunks/api-0.1.13-vmdan95h.mjs +1 -0
  35. package/dist/chunks/{asciicast-0.1.12-nwzfr5gz.mjs → asciicast-0.1.13-d6ce2h4r.mjs} +1 -1
  36. package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +1 -0
  37. package/dist/chunks/{auth-0.1.12-vhdwtwhb.mjs → auth-0.1.13-fwdmg15h.mjs} +1 -1
  38. package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +1 -0
  39. package/dist/chunks/{autoMode-0.1.12-xjr5qd6q.mjs → autoMode-0.1.13-4xh49kt4.mjs} +1 -1
  40. package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +1 -0
  41. package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +4 -0
  42. package/dist/chunks/{bridgePointer-0.1.12-vdj4j4ke.mjs → bridgePointer-0.1.13-s1qw0857.mjs} +1 -1
  43. package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +1 -0
  44. package/dist/chunks/{buddy-0.1.12-4q50s2x4.mjs → buddy-0.1.13-2wvpbqx1.mjs} +1 -1
  45. package/dist/chunks/{cacache-0.1.12-mtaw8981.mjs → cacache-0.1.13-sy5bqn6j.mjs} +1 -1
  46. package/dist/chunks/{cache-probe-0.1.12-4s8cc2km.mjs → cache-probe-0.1.13-ze8mf958.mjs} +1 -1
  47. package/dist/chunks/{cacheStats-0.1.12-qqcw6b5n.mjs → cacheStats-0.1.13-jtrw4rdj.mjs} +1 -1
  48. package/dist/chunks/caches-0.1.13-0swwryxr.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +1 -0
  50. package/dist/chunks/{chromeNativeHost-0.1.12-7e2jv2nr.mjs → chromeNativeHost-0.1.13-96ex7t46.mjs} +1 -1
  51. package/dist/chunks/{claude-for-chrome-mcp-0.1.12-2q97mema.mjs → claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs} +1 -1
  52. package/dist/chunks/{claudeDesktop-0.1.12-1yrkynq4.mjs → claudeDesktop-0.1.13-fs8rre9b.mjs} +1 -1
  53. package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +1 -0
  54. package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +1 -0
  56. package/dist/chunks/{cli-0.1.12-830kqdpq.mjs → cli-0.1.13-00qdyz6f.mjs} +1 -1
  57. package/dist/chunks/cli-0.1.13-0b728dvh.mjs +2 -0
  58. package/dist/chunks/{cli-0.1.12-8qvgy8xr.mjs → cli-0.1.13-0gfnmq08.mjs} +1 -1
  59. package/dist/chunks/cli-0.1.13-0gyt273r.mjs +2 -0
  60. package/dist/chunks/cli-0.1.13-0hyneh5t.mjs +9 -0
  61. package/dist/chunks/{cli-0.1.12-ps94e9y5.mjs → cli-0.1.13-0p3b9j40.mjs} +1 -1
  62. package/dist/chunks/{cli-0.1.12-d8m01qtm.mjs → cli-0.1.13-0xy8k6yv.mjs} +2 -2
  63. package/dist/chunks/{cli-0.1.12-qsh4sj4y.mjs → cli-0.1.13-0zpmhn2j.mjs} +2 -2
  64. package/dist/chunks/{cli-0.1.12-a5h71tt8.mjs → cli-0.1.13-13fh0g36.mjs} +2 -2
  65. package/dist/chunks/{cli-0.1.12-rzpc0tr9.mjs → cli-0.1.13-144gn3fd.mjs} +2 -2
  66. package/dist/chunks/{cli-0.1.12-ra3sby5b.mjs → cli-0.1.13-1g6bgaa6.mjs} +2 -2
  67. package/dist/chunks/{cli-0.1.12-756ngehz.mjs → cli-0.1.13-1gbn4dgj.mjs} +1 -1
  68. package/dist/chunks/{cli-0.1.12-sxxpysy8.mjs → cli-0.1.13-1hw65avy.mjs} +2 -2
  69. package/dist/chunks/{cli-0.1.12-af1r644n.mjs → cli-0.1.13-1pxg82cx.mjs} +1 -1
  70. package/dist/chunks/{cli-0.1.12-g1yp7kdf.mjs → cli-0.1.13-1y21vq1h.mjs} +1 -1
  71. package/dist/chunks/{cli-0.1.12-6238zg7k.mjs → cli-0.1.13-2c7g6rpx.mjs} +2 -2
  72. package/dist/chunks/{cli-0.1.12-qn20n18h.mjs → cli-0.1.13-2cdtdhek.mjs} +5 -5
  73. package/dist/chunks/{cli-0.1.12-kg8gb6e3.mjs → cli-0.1.13-2sx61wcx.mjs} +1 -1
  74. package/dist/chunks/{cli-0.1.12-c23pyffx.mjs → cli-0.1.13-2vrh3n9y.mjs} +2 -2
  75. package/dist/chunks/{cli-0.1.12-f0x1y6nn.mjs → cli-0.1.13-30j4h365.mjs} +2 -2
  76. package/dist/chunks/{cli-0.1.12-hsw67esw.mjs → cli-0.1.13-3k1n20ra.mjs} +1 -1
  77. package/dist/chunks/{cli-0.1.12-7da43cy1.mjs → cli-0.1.13-3pctg5zc.mjs} +1 -1
  78. package/dist/chunks/{cli-0.1.12-2sqxe53a.mjs → cli-0.1.13-3rr4fg79.mjs} +1 -1
  79. package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +2 -0
  80. package/dist/chunks/{cli-0.1.12-h248m986.mjs → cli-0.1.13-4prgqshq.mjs} +2 -2
  81. package/dist/chunks/{cli-0.1.12-nv2m8kgk.mjs → cli-0.1.13-5061js0h.mjs} +1 -1
  82. package/dist/chunks/{cli-0.1.12-pm5cwtxh.mjs → cli-0.1.13-52f40ba4.mjs} +2 -2
  83. package/dist/chunks/cli-0.1.13-579v6j6d.mjs +4 -0
  84. package/dist/chunks/{cli-0.1.12-2yy1nw3s.mjs → cli-0.1.13-5b7hgn91.mjs} +1 -1
  85. package/dist/chunks/{cli-0.1.12-trdq9d6x.mjs → cli-0.1.13-5c4fyghf.mjs} +2 -2
  86. package/dist/chunks/{cli-0.1.12-ybm1kvwy.mjs → cli-0.1.13-5d4ke9a2.mjs} +1 -1
  87. package/dist/chunks/{cli-0.1.12-ae3e3ffp.mjs → cli-0.1.13-5j5bg3t2.mjs} +1 -1
  88. package/dist/chunks/{cli-0.1.12-vxej5jdm.mjs → cli-0.1.13-5krmz4nd.mjs} +2 -2
  89. package/dist/chunks/{cli-0.1.12-pnh4t8c3.mjs → cli-0.1.13-5rnhv49w.mjs} +1 -1
  90. package/dist/chunks/{cli-0.1.12-vpnp7x5c.mjs → cli-0.1.13-5s4m8qj9.mjs} +2 -2
  91. package/dist/chunks/{cli-0.1.12-erggrdth.mjs → cli-0.1.13-5ydypzty.mjs} +3 -3
  92. package/dist/chunks/cli-0.1.13-6gmqjyv9.mjs +2 -0
  93. package/dist/chunks/cli-0.1.13-6p0jxfnp.mjs +2 -0
  94. package/dist/chunks/{cli-0.1.12-6rjh20wh.mjs → cli-0.1.13-6q3wa261.mjs} +1 -1
  95. package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +3 -0
  96. package/dist/chunks/{cli-0.1.12-rqedb88a.mjs → cli-0.1.13-73yztj5x.mjs} +1 -1
  97. package/dist/chunks/{cli-0.1.12-ytxphavm.mjs → cli-0.1.13-79vtnprb.mjs} +2 -2
  98. package/dist/chunks/cli-0.1.13-84tbx1nf.mjs +3 -0
  99. package/dist/chunks/{cli-0.1.12-0x3cd401.mjs → cli-0.1.13-85w0nxy9.mjs} +1 -1
  100. package/dist/chunks/{cli-0.1.12-z8eybrhz.mjs → cli-0.1.13-87xfe2f3.mjs} +1 -1
  101. package/dist/chunks/{cli-0.1.12-q63qrz06.mjs → cli-0.1.13-8gd1x101.mjs} +2 -2
  102. package/dist/chunks/{cli-0.1.12-k2164g7e.mjs → cli-0.1.13-8ppsn0an.mjs} +2 -2
  103. package/dist/chunks/{cli-0.1.12-34gqc6yf.mjs → cli-0.1.13-8pw4n94k.mjs} +1 -1
  104. package/dist/chunks/{cli-0.1.12-g728hcdr.mjs → cli-0.1.13-8snyqhjj.mjs} +1 -1
  105. package/dist/chunks/{cli-0.1.12-0vf5f6qn.mjs → cli-0.1.13-8sszxge2.mjs} +1 -1
  106. package/dist/chunks/{cli-0.1.12-0kqx19vz.mjs → cli-0.1.13-9043n2e8.mjs} +1 -1
  107. package/dist/chunks/{cli-0.1.12-5qhkbp8w.mjs → cli-0.1.13-91b1h8ww.mjs} +1 -1
  108. package/dist/chunks/{cli-0.1.12-37ezy1qg.mjs → cli-0.1.13-9a1hzdsv.mjs} +2 -2
  109. package/dist/chunks/{cli-0.1.12-0eznapyf.mjs → cli-0.1.13-9jajvw4r.mjs} +1 -1
  110. package/dist/chunks/{cli-0.1.12-0xzdygm2.mjs → cli-0.1.13-a4xga299.mjs} +1 -1
  111. package/dist/chunks/cli-0.1.13-ajsw8n7h.mjs +5 -0
  112. package/dist/chunks/{cli-0.1.12-8znn9f50.mjs → cli-0.1.13-apjxy5tn.mjs} +1 -1
  113. package/dist/chunks/{cli-0.1.12-238c85zt.mjs → cli-0.1.13-asrdd8dh.mjs} +1 -1
  114. package/dist/chunks/cli-0.1.13-b24n1wvw.mjs +2 -0
  115. package/dist/chunks/{cli-0.1.12-mr41yjpw.mjs → cli-0.1.13-b3xc1r3k.mjs} +2 -2
  116. package/dist/chunks/{cli-0.1.12-3ywnr2v1.mjs → cli-0.1.13-b40skdsz.mjs} +1 -1
  117. package/dist/chunks/{cli-0.1.12-1hv04bp7.mjs → cli-0.1.13-bj67mp7n.mjs} +1 -1
  118. package/dist/chunks/{cli-0.1.12-4qedbzt3.mjs → cli-0.1.13-bkg3sva7.mjs} +2 -2
  119. package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +16 -0
  120. package/dist/chunks/{cli-0.1.12-19as1myk.mjs → cli-0.1.13-c5b4ygdq.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.12-faa9mx3m.mjs → cli-0.1.13-cjmpc9q5.mjs} +1 -1
  122. package/dist/chunks/{cli-0.1.12-04jw23rj.mjs → cli-0.1.13-ck28msre.mjs} +2 -2
  123. package/dist/chunks/{cli-0.1.12-xfqkrd5x.mjs → cli-0.1.13-crcgrfse.mjs} +1 -1
  124. package/dist/chunks/{cli-0.1.12-86nmrm6g.mjs → cli-0.1.13-ct9m5223.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.12-c28bme4j.mjs → cli-0.1.13-ctjpk124.mjs} +1 -1
  126. package/dist/chunks/{cli-0.1.12-y04asmqh.mjs → cli-0.1.13-cyj5snev.mjs} +2 -2
  127. package/dist/chunks/{cli-0.1.12-vwcas8f6.mjs → cli-0.1.13-d66pryf3.mjs} +1 -1
  128. package/dist/chunks/{cli-0.1.12-7xsa2bcp.mjs → cli-0.1.13-d6tr2j76.mjs} +2 -2
  129. package/dist/chunks/cli-0.1.13-d85aba8r.mjs +2 -0
  130. package/dist/chunks/cli-0.1.13-d8wkcw90.mjs +25 -0
  131. package/dist/chunks/{cli-0.1.12-vzga2are.mjs → cli-0.1.13-dag38tkx.mjs} +6 -6
  132. package/dist/chunks/{cli-0.1.12-cxn1ke77.mjs → cli-0.1.13-dak36ez8.mjs} +1 -1
  133. package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +2 -0
  134. package/dist/chunks/{cli-0.1.12-ds2mn8zn.mjs → cli-0.1.13-dmgp48vg.mjs} +1 -1
  135. package/dist/chunks/{cli-0.1.12-wdmxm11z.mjs → cli-0.1.13-e58n0k16.mjs} +1 -1
  136. package/dist/chunks/{cli-0.1.12-t8712dbc.mjs → cli-0.1.13-eh7dqeqt.mjs} +1 -1
  137. package/dist/chunks/{cli-0.1.12-2v18rdhk.mjs → cli-0.1.13-f6gfa426.mjs} +2 -2
  138. package/dist/chunks/{cli-0.1.12-9pq0gse0.mjs → cli-0.1.13-fabrrwqa.mjs} +1 -1
  139. package/dist/chunks/{cli-0.1.12-242der7s.mjs → cli-0.1.13-fh5dndvp.mjs} +1021 -1014
  140. package/dist/chunks/{cli-0.1.12-bmtahtv7.mjs → cli-0.1.13-ft5k86va.mjs} +1 -1
  141. package/dist/chunks/{cli-0.1.12-rwhrpb6w.mjs → cli-0.1.13-fwd5b6q8.mjs} +1 -1
  142. package/dist/chunks/{cli-0.1.12-sgtpyf6y.mjs → cli-0.1.13-fz5dm31h.mjs} +2 -2
  143. package/dist/chunks/{cli-0.1.12-h0d833vg.mjs → cli-0.1.13-fzb4yx18.mjs} +3 -3
  144. package/dist/chunks/{cli-0.1.12-5b3j1c9c.mjs → cli-0.1.13-g2v4avcv.mjs} +1 -1
  145. package/dist/chunks/{cli-0.1.12-tyt09z73.mjs → cli-0.1.13-g654740k.mjs} +2 -2
  146. package/dist/chunks/{cli-0.1.12-qrx9nssg.mjs → cli-0.1.13-ga4mmwbc.mjs} +1 -1
  147. package/dist/chunks/{cli-0.1.12-bhxgr018.mjs → cli-0.1.13-gd3nndc7.mjs} +2 -2
  148. package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +2 -0
  149. package/dist/chunks/{cli-0.1.12-1x06khjr.mjs → cli-0.1.13-gvz2qezh.mjs} +2 -2
  150. package/dist/chunks/cli-0.1.13-h3vb5402.mjs +2 -0
  151. package/dist/chunks/{cli-0.1.12-jqrk975g.mjs → cli-0.1.13-h7a36dnk.mjs} +1 -1
  152. package/dist/chunks/cli-0.1.13-hgkwnhwv.mjs +2 -0
  153. package/dist/chunks/{cli-0.1.12-bddm1g1s.mjs → cli-0.1.13-hjqn3n5a.mjs} +2 -2
  154. package/dist/chunks/{cli-0.1.12-j6hwb68p.mjs → cli-0.1.13-hyvpn2ht.mjs} +1 -1
  155. package/dist/chunks/{cli-0.1.12-q8k1zvhb.mjs → cli-0.1.13-hzdj03rn.mjs} +2 -2
  156. package/dist/chunks/{cli-0.1.12-37ga9zc2.mjs → cli-0.1.13-j7796v8f.mjs} +1 -1
  157. package/dist/chunks/{cli-0.1.12-nfvtmt75.mjs → cli-0.1.13-jakv6e7b.mjs} +1 -1
  158. package/dist/chunks/{cli-0.1.12-g2s9mjr6.mjs → cli-0.1.13-jeyjdb2m.mjs} +2 -2
  159. package/dist/chunks/{cli-0.1.12-j6gjfwh5.mjs → cli-0.1.13-jz57znb6.mjs} +2 -2
  160. package/dist/chunks/{cli-0.1.12-2zqgfhrb.mjs → cli-0.1.13-ks4x4cct.mjs} +2 -2
  161. package/dist/chunks/cli-0.1.13-ky4z1s1h.mjs +20 -0
  162. package/dist/chunks/{cli-0.1.12-7ehqw1dk.mjs → cli-0.1.13-kzn9sspk.mjs} +1 -1
  163. package/dist/chunks/{cli-0.1.12-nnyca8nb.mjs → cli-0.1.13-m5aaczvd.mjs} +1 -1
  164. package/dist/chunks/{cli-0.1.12-zs5rpqmb.mjs → cli-0.1.13-m61dhxfs.mjs} +2 -2
  165. package/dist/chunks/{cli-0.1.12-xekep4qg.mjs → cli-0.1.13-mahtf0ay.mjs} +1 -1
  166. package/dist/chunks/{cli-0.1.12-5exp787z.mjs → cli-0.1.13-mezw1vk8.mjs} +1 -1
  167. package/dist/chunks/{cli-0.1.12-6ddq5n4e.mjs → cli-0.1.13-mkw72mxc.mjs} +1 -1
  168. package/dist/chunks/{cli-0.1.12-352pjhkh.mjs → cli-0.1.13-myd004mr.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.13-mywk7e49.mjs +134 -0
  170. package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +2 -0
  171. package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +2 -0
  172. package/dist/chunks/{cli-0.1.12-s0cwq66w.mjs → cli-0.1.13-nc3ce357.mjs} +1 -1
  173. package/dist/chunks/{cli-0.1.12-817sd5bc.mjs → cli-0.1.13-nc8ww3rn.mjs} +2 -2
  174. package/dist/chunks/{cli-0.1.12-2fajd44n.mjs → cli-0.1.13-njvp7vtc.mjs} +2 -2
  175. package/dist/chunks/{cli-0.1.12-a2frnpdd.mjs → cli-0.1.13-nsbk0w3b.mjs} +1 -1
  176. package/dist/chunks/{cli-0.1.12-4sh0f4y1.mjs → cli-0.1.13-nwt2jc8b.mjs} +2 -2
  177. package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.12-04v3yab2.mjs → cli-0.1.13-p2wyk6z7.mjs} +1 -1
  179. package/dist/chunks/{cli-0.1.12-v0510w04.mjs → cli-0.1.13-p4nz8zmd.mjs} +1 -1
  180. package/dist/chunks/{cli-0.1.12-9gs0g8yb.mjs → cli-0.1.13-p625yxtg.mjs} +1 -1
  181. package/dist/chunks/{cli-0.1.12-b01yrner.mjs → cli-0.1.13-p84ry3q5.mjs} +1 -1
  182. package/dist/chunks/{cli-0.1.12-7mjpbm22.mjs → cli-0.1.13-pqk4c7m7.mjs} +2 -2
  183. package/dist/chunks/{cli-0.1.12-4wwhk7dc.mjs → cli-0.1.13-pw5dks39.mjs} +2 -2
  184. package/dist/chunks/{cli-0.1.12-bnss4rxn.mjs → cli-0.1.13-q93vqpjh.mjs} +28 -28
  185. package/dist/chunks/{cli-0.1.12-v8j9zstg.mjs → cli-0.1.13-qdtwrf9z.mjs} +2 -2
  186. package/dist/chunks/{cli-0.1.12-5k9mfnz0.mjs → cli-0.1.13-qxtrzerx.mjs} +1 -1
  187. package/dist/chunks/{cli-0.1.12-e4zeaahk.mjs → cli-0.1.13-r09724ac.mjs} +1 -1
  188. package/dist/chunks/{cli-0.1.12-bh7jp3zk.mjs → cli-0.1.13-rftgy1b8.mjs} +1 -1
  189. package/dist/chunks/cli-0.1.13-rjjyq9ej.mjs +2 -0
  190. package/dist/chunks/{cli-0.1.12-024a8zz7.mjs → cli-0.1.13-rkaxch5j.mjs} +1 -1
  191. package/dist/chunks/{cli-0.1.12-awb2yac7.mjs → cli-0.1.13-s6w3ej6f.mjs} +1 -1
  192. package/dist/chunks/{cli-0.1.12-zk49aaxv.mjs → cli-0.1.13-s90a26ca.mjs} +1 -1
  193. package/dist/chunks/{cli-0.1.12-a2qh6gjr.mjs → cli-0.1.13-s928gjab.mjs} +2 -2
  194. package/dist/chunks/{cli-0.1.12-w0qbr98a.mjs → cli-0.1.13-s9fgd2dx.mjs} +2 -2
  195. package/dist/chunks/{cli-0.1.12-d0es0fxd.mjs → cli-0.1.13-saz6qetz.mjs} +2 -2
  196. package/dist/chunks/{cli-0.1.12-kea0zcje.mjs → cli-0.1.13-sgxk7d0h.mjs} +2 -2
  197. package/dist/chunks/{cli-0.1.12-5p9g1vcm.mjs → cli-0.1.13-sr9axhrw.mjs} +1 -1
  198. package/dist/chunks/{cli-0.1.12-e262snmb.mjs → cli-0.1.13-ss1k5gqk.mjs} +1 -1
  199. package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +4 -0
  200. package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +2 -0
  201. package/dist/chunks/{cli-0.1.12-mevh0dza.mjs → cli-0.1.13-t34z5r3c.mjs} +1 -1
  202. package/dist/chunks/{cli-0.1.12-xj3mv67x.mjs → cli-0.1.13-t5w452fj.mjs} +1 -1
  203. package/dist/chunks/cli-0.1.13-tknwgkgp.mjs +17 -0
  204. package/dist/chunks/{cli-0.1.12-fqpxr3qb.mjs → cli-0.1.13-tq3dqmem.mjs} +1 -1
  205. package/dist/chunks/{cli-0.1.12-6zryzryc.mjs → cli-0.1.13-v1b9yhsy.mjs} +1 -1
  206. package/dist/chunks/{cli-0.1.12-r6f9sy54.mjs → cli-0.1.13-v32xwe08.mjs} +2 -2
  207. package/dist/chunks/{cli-0.1.12-bjzb0sjt.mjs → cli-0.1.13-v467fj8c.mjs} +2 -2
  208. package/dist/chunks/{cli-0.1.12-3d2xpvk2.mjs → cli-0.1.13-v56n2wqm.mjs} +1 -1
  209. package/dist/chunks/{cli-0.1.12-m6jeef2z.mjs → cli-0.1.13-v6z41645.mjs} +2 -2
  210. package/dist/chunks/cli-0.1.13-vdz792pb.mjs +2 -0
  211. package/dist/chunks/{cli-0.1.12-wcdh3m4s.mjs → cli-0.1.13-vj532g9m.mjs} +1 -1
  212. package/dist/chunks/{cli-0.1.12-c47ape20.mjs → cli-0.1.13-vn7ckv16.mjs} +1 -1
  213. package/dist/chunks/{cli-0.1.12-5pw10pf8.mjs → cli-0.1.13-vwt4hc0t.mjs} +1 -1
  214. package/dist/chunks/{cli-0.1.12-8qm558mj.mjs → cli-0.1.13-w08qr05m.mjs} +1 -1
  215. package/dist/chunks/{cli-0.1.12-mwp84gtr.mjs → cli-0.1.13-w8h6wdez.mjs} +1 -1
  216. package/dist/chunks/{cli-0.1.12-rwzav5h1.mjs → cli-0.1.13-wh68ve92.mjs} +2 -2
  217. package/dist/chunks/{cli-0.1.12-baxk5jyy.mjs → cli-0.1.13-wpsqhe6v.mjs} +1 -1
  218. package/dist/chunks/{cli-0.1.12-52dbx2x6.mjs → cli-0.1.13-wr0c9hyh.mjs} +2 -2
  219. package/dist/chunks/{cli-0.1.12-g3ycbjxk.mjs → cli-0.1.13-wwnez3j0.mjs} +2 -2
  220. package/dist/chunks/{cli-0.1.12-5ye0t0xd.mjs → cli-0.1.13-wxdmc1dd.mjs} +2 -2
  221. package/dist/chunks/{cli-0.1.12-ktpqrbjc.mjs → cli-0.1.13-wz7v1tqx.mjs} +2 -2
  222. package/dist/chunks/{cli-0.1.12-m3q5r7wd.mjs → cli-0.1.13-x3zt8q8r.mjs} +1 -1
  223. package/dist/chunks/{cli-0.1.12-actnmgw5.mjs → cli-0.1.13-x461rxn2.mjs} +2 -2
  224. package/dist/chunks/{cli-0.1.12-ryycx3v6.mjs → cli-0.1.13-x4n4my99.mjs} +1 -1
  225. package/dist/chunks/{cli-0.1.12-v000x470.mjs → cli-0.1.13-xde08pkt.mjs} +2 -2
  226. package/dist/chunks/{cli-0.1.12-yk12dgnx.mjs → cli-0.1.13-xkdwvsg9.mjs} +2 -2
  227. package/dist/chunks/{cli-0.1.12-vgbc3g9x.mjs → cli-0.1.13-xv6wh44y.mjs} +2 -2
  228. package/dist/chunks/{cli-0.1.12-kys514qx.mjs → cli-0.1.13-xvvtja1h.mjs} +1 -1
  229. package/dist/chunks/{cli-0.1.12-sd72y750.mjs → cli-0.1.13-xwkys72y.mjs} +1 -1
  230. package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +4 -0
  231. package/dist/chunks/{cli-0.1.12-strz382t.mjs → cli-0.1.13-y3e5jkh7.mjs} +1 -1
  232. package/dist/chunks/{cli-0.1.12-9v01t95v.mjs → cli-0.1.13-y7aqqca1.mjs} +1 -1
  233. package/dist/chunks/{cli-0.1.12-73k5qd97.mjs → cli-0.1.13-yd536yw4.mjs} +7 -10
  234. package/dist/chunks/{cli-0.1.12-g4sdgt8h.mjs → cli-0.1.13-yeb03vme.mjs} +2 -2
  235. package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +2 -0
  236. package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +2 -0
  237. package/dist/chunks/{cli-0.1.12-zwyec6tj.mjs → cli-0.1.13-z0jm6xd0.mjs} +1 -1
  238. package/dist/chunks/{cli-0.1.12-jjza3gz9.mjs → cli-0.1.13-z387wpj9.mjs} +1 -1
  239. package/dist/chunks/{cli-0.1.12-4syxz3pe.mjs → cli-0.1.13-zgnanj3x.mjs} +1 -1
  240. package/dist/chunks/{cli-0.1.12-kzd4y6yq.mjs → cli-0.1.13-zm2zgw7m.mjs} +1 -1
  241. package/dist/chunks/cli-0.1.13-zmft0mps.mjs +2 -0
  242. package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +1 -0
  243. package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +1 -0
  244. package/dist/chunks/compact-0.1.13-603r2t03.mjs +3 -0
  245. package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +1 -0
  246. package/dist/chunks/{config-0.1.12-ryxz4stj.mjs → config-0.1.13-q8fcew9w.mjs} +1 -1
  247. package/dist/chunks/context-0.1.13-5fz212w3.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +1 -0
  249. package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +1 -0
  250. package/dist/chunks/{copy-0.1.12-w6tabpy0.mjs → copy-0.1.13-03jy5tfn.mjs} +1 -1
  251. package/dist/chunks/cost-0.1.13-zch21h6x.mjs +1 -0
  252. package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +1 -0
  253. package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +1 -0
  254. package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +1 -0
  255. package/dist/chunks/detection-0.1.13-k001d88v.mjs +1 -0
  256. package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +1 -0
  257. package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +1 -0
  258. package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +1 -0
  259. package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +8 -0
  260. package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +1 -0
  261. package/dist/chunks/environments-0.1.13-x1xw45es.mjs +1 -0
  262. package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +1 -0
  263. package/dist/chunks/export-0.1.13-sq3jk66f.mjs +2 -0
  264. package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +1 -0
  265. package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +1 -0
  266. package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +1 -0
  267. package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +14 -0
  268. package/dist/chunks/{firstPartyEventLogger-0.1.12-95kzm3md.mjs → firstPartyEventLogger-0.1.13-6m3fvkcj.mjs} +1 -1
  269. package/dist/chunks/git-0.1.13-2rp45xgd.mjs +1 -0
  270. package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +1 -0
  271. package/dist/chunks/{growthbook-0.1.12-4phnr6b3.mjs → growthbook-0.1.13-sramqmzv.mjs} +1 -1
  272. package/dist/chunks/{heapdump-0.1.12-m49qs4r7.mjs → heapdump-0.1.13-3n7hv372.mjs} +1 -1
  273. package/dist/chunks/help-0.1.13-knrgw1dq.mjs +1 -0
  274. package/dist/chunks/{hookChains-0.1.12-brq8x7f7.mjs → hookChains-0.1.13-te9q466p.mjs} +2 -2
  275. package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +1 -0
  276. package/dist/chunks/hooks-0.1.13-g6kx1mk3.mjs +79 -0
  277. package/dist/chunks/{ide-0.1.12-553mazfs.mjs → ide-0.1.13-ke3v5mb7.mjs} +1 -1
  278. package/dist/chunks/{mcpb-0.1.12-mcbd7ywh.mjs → image-processor-napi-0.1.13-h7fg935p.mjs} +1 -1
  279. package/dist/chunks/{index-0.1.12-rhj8dsvk.mjs → index-0.1.13-018yhz6j.mjs} +1 -1
  280. package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +1 -0
  281. package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +1 -0
  282. package/dist/chunks/{index-0.1.12-3nbh75ta.mjs → index-0.1.13-3zjrdjrv.mjs} +1 -1
  283. package/dist/chunks/index-0.1.13-4cjfx282.mjs +1 -0
  284. package/dist/chunks/index-0.1.13-5g9shrc4.mjs +9 -0
  285. package/dist/chunks/index-0.1.13-7c5y7cbf.mjs +2 -0
  286. package/dist/chunks/index-0.1.13-7fm7tk25.mjs +1 -0
  287. package/dist/chunks/index-0.1.13-98j8cxkv.mjs +1 -0
  288. package/dist/chunks/index-0.1.13-9meb2pab.mjs +1 -0
  289. package/dist/chunks/index-0.1.13-a06q9ad9.mjs +2 -0
  290. package/dist/chunks/index-0.1.13-bc4sh2m1.mjs +1 -0
  291. package/dist/chunks/index-0.1.13-c29wq5dx.mjs +5 -0
  292. package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +1 -0
  293. package/dist/chunks/index-0.1.13-h4wytk4z.mjs +1 -0
  294. package/dist/chunks/index-0.1.13-j9c4bjzh.mjs +1 -0
  295. package/dist/chunks/index-0.1.13-m9m61529.mjs +1 -0
  296. package/dist/chunks/index-0.1.13-mc5ag4wj.mjs +1 -0
  297. package/dist/chunks/index-0.1.13-nm8pkj0f.mjs +9 -0
  298. package/dist/chunks/index-0.1.13-psynrf7p.mjs +10 -0
  299. package/dist/chunks/index-0.1.13-qjt3h799.mjs +1 -0
  300. package/dist/chunks/index-0.1.13-tvt8fxrq.mjs +1 -0
  301. package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +1 -0
  302. package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +1 -0
  303. package/dist/chunks/{insights-0.1.12-93mz1f1d.mjs → insights-0.1.13-t81417ej.mjs} +3 -3
  304. package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +1 -0
  305. package/dist/chunks/{install-github-app-0.1.12-qd8g81v4.mjs → install-github-app-0.1.13-yvnx16za.mjs} +1 -1
  306. package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +1 -0
  307. package/dist/chunks/instrumentation-0.1.13-bvt39wrk.mjs +12 -0
  308. package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +1 -0
  309. package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +2 -0
  310. package/dist/chunks/{knowledge-0.1.12-1zq0qj6h.mjs → knowledge-0.1.13-9a2md3fm.mjs} +1 -1
  311. package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +1 -0
  312. package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +1 -0
  313. package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +1 -0
  314. package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +1 -0
  315. package/dist/chunks/main-0.1.13-e5tbkphz.mjs +1 -0
  316. package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +1 -0
  317. package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +4 -0
  318. package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +1 -0
  319. package/dist/chunks/{mcp-0.1.12-vm3tpth6.mjs → mcp-0.1.13-x9twbpqk.mjs} +3 -3
  320. package/dist/chunks/{mcpServer-0.1.12-zwsas6ss.mjs → mcpServer-0.1.13-jf5dhyys.mjs} +1 -1
  321. package/dist/chunks/{plist-0.1.12-65r770yt.mjs → mcpb-0.1.13-e55321kr.mjs} +1 -1
  322. package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +3 -0
  323. package/dist/chunks/{mobile-0.1.12-qdtxwz76.mjs → mobile-0.1.13-pzekbte3.mjs} +1 -1
  324. package/dist/chunks/model-0.1.13-a42465ep.mjs +1 -0
  325. package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +2 -0
  326. package/dist/chunks/{oauth-0.1.12-3aky0v8n.mjs → oauth-0.1.13-bk91rvfd.mjs} +1 -1
  327. package/dist/chunks/{openaiShim-0.1.12-p458t1q6.mjs → openaiShim-0.1.13-c9z5r4zj.mjs} +2 -2
  328. package/dist/chunks/{output-style-0.1.12-cahkbh9x.mjs → output-style-0.1.13-c4ah6hc0.mjs} +1 -1
  329. package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +1 -0
  330. package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +1 -0
  331. package/dist/chunks/{passes-0.1.12-7vmawmvq.mjs → passes-0.1.13-bcbvjdzs.mjs} +1 -1
  332. package/dist/chunks/permissions-0.1.13-c03934ka.mjs +3 -0
  333. package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +1 -0
  334. package/dist/chunks/{image-processor-napi-0.1.12-3mrm0vts.mjs → plist-0.1.13-f3bfg2tf.mjs} +1 -1
  335. package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +29 -0
  336. package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +1 -0
  337. package/dist/chunks/{plugins-0.1.12-sm87b8fm.mjs → plugins-0.1.13-1nvjxkbc.mjs} +2 -2
  338. package/dist/chunks/{print-0.1.12-8mgqmx4k.mjs → print-0.1.13-g2dmfpmq.mjs} +10 -10
  339. package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +1 -0
  340. package/dist/chunks/{process-0.1.12-t401v84c.mjs → process-0.1.13-ycxbd26n.mjs} +1 -1
  341. package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +1 -0
  342. package/dist/chunks/processSlashCommand-0.1.13-16gwwvqz.mjs +9 -0
  343. package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +1 -0
  344. package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +1 -0
  345. package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +1 -0
  346. package/dist/chunks/{provider-0.1.12-wrfpbx8a.mjs → provider-0.1.13-e9ayet7n.mjs} +1 -1
  347. package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +1 -0
  348. package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +1 -0
  349. package/dist/chunks/registry-0.1.13-e33aasxk.mjs +1 -0
  350. package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +5 -0
  351. package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +2 -0
  352. package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +1 -0
  353. package/dist/chunks/{remoteBridgeCore-0.1.12-c0y46zw8.mjs → remoteBridgeCore-0.1.13-sq5rr5x0.mjs} +1 -1
  354. package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +1 -0
  355. package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +1 -0
  356. package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +1 -0
  357. package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +2 -0
  358. package/dist/chunks/{rewind-0.1.12-707se5pz.mjs → rewind-0.1.13-zxcfrje2.mjs} +1 -1
  359. package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +1 -0
  360. package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +1 -0
  361. package/dist/chunks/session-0.1.13-cjn060z1.mjs +2 -0
  362. package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +1 -0
  363. package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +1 -0
  364. package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +5 -0
  365. package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +1 -0
  366. package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +1 -0
  367. package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +1 -0
  368. package/dist/chunks/{state-0.1.12-e374v6h8.mjs → state-0.1.13-cv8jd04r.mjs} +1 -1
  369. package/dist/chunks/{stats-0.1.12-5pj1c6sr.mjs → stats-0.1.13-yrtt99gr.mjs} +1 -1
  370. package/dist/chunks/status-0.1.13-4x7h3dec.mjs +1 -0
  371. package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +1 -0
  372. package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +1 -0
  373. package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +1 -0
  374. package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +1 -0
  375. package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +1 -0
  376. package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +1 -0
  377. package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +1 -0
  378. package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +1 -0
  379. package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +1 -0
  380. package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +1 -0
  381. package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +1 -0
  382. package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +1 -0
  383. package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +1 -0
  384. package/dist/chunks/{turndown.cjs-0.1.12-9525v010.mjs → turndown.cjs-0.1.13-2wbn8j6y.mjs} +1 -1
  385. package/dist/chunks/{ultrareviewCommand-0.1.12-d5c4096k.mjs → ultrareviewCommand-0.1.13-sj6asgpk.mjs} +1 -1
  386. package/dist/chunks/{update-0.1.12-hwx0e6fq.mjs → update-0.1.13-sx7hc0kj.mjs} +11 -11
  387. package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +1 -0
  388. package/dist/chunks/{upstreamproxy-0.1.12-yhnqfcyb.mjs → upstreamproxy-0.1.13-pwxv6kww.mjs} +1 -1
  389. package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +1 -0
  390. package/dist/chunks/util-0.1.13-ef9r7w41.mjs +1 -0
  391. package/dist/chunks/utils-0.1.13-03dvz81t.mjs +1 -0
  392. package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +1 -0
  393. package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +1 -0
  394. package/dist/chunks/{wiki-0.1.12-vecp82xq.mjs → wiki-0.1.13-regg8ff2.mjs} +1 -1
  395. package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +1 -0
  396. package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +1 -0
  397. package/dist/chunks/{wrapper-0.1.12-bpewypaz.mjs → wrapper-0.1.13-8nsef109.mjs} +1 -1
  398. package/dist/claudio-vscode.vsix +0 -0
  399. package/dist/cli.mjs +3 -3
  400. package/package.json +2 -19
  401. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +0 -1
  402. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +0 -1
  403. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +0 -1
  404. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +0 -1
  405. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +0 -1
  406. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +0 -1
  407. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +0 -1
  408. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +0 -1
  409. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +0 -1
  410. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +0 -1
  411. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +0 -1
  412. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +0 -1
  413. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +0 -1
  414. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +0 -1
  415. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +0 -1
  416. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +0 -1
  417. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +0 -1
  418. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +0 -1
  419. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +0 -1
  420. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +0 -9
  421. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +0 -1
  422. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +0 -1
  423. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +0 -1
  424. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +0 -1
  425. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +0 -3
  426. package/dist/chunks/api-0.1.12-e314x4g9.mjs +0 -1
  427. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +0 -1
  428. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +0 -1
  429. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +0 -1
  430. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +0 -4
  431. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +0 -1
  432. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +0 -1
  433. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +0 -1
  434. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +0 -1
  435. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +0 -1
  436. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +0 -1
  437. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +0 -2
  438. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +0 -2
  439. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +0 -22
  440. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +0 -2
  441. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +0 -2
  442. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +0 -16
  443. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +0 -2
  444. package/dist/chunks/cli-0.1.12-74tt2500.mjs +0 -2
  445. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +0 -2
  446. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +0 -2
  447. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +0 -2
  448. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +0 -2
  449. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +0 -2
  450. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +0 -2
  451. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +0 -2
  452. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +0 -8
  453. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +0 -2
  454. package/dist/chunks/cli-0.1.12-g604mknq.mjs +0 -2
  455. package/dist/chunks/cli-0.1.12-g8mny195.mjs +0 -2
  456. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +0 -2
  457. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +0 -2
  458. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +0 -4
  459. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +0 -3
  460. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +0 -2
  461. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +0 -4
  462. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +0 -2
  463. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +0 -2
  464. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +0 -4
  465. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +0 -2
  466. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +0 -3
  467. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +0 -134
  468. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +0 -2
  469. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +0 -2
  470. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +0 -2
  471. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +0 -16
  472. package/dist/chunks/client-0.1.12-f54egbjx.mjs +0 -1
  473. package/dist/chunks/color-0.1.12-jss6svg8.mjs +0 -1
  474. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +0 -3
  475. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +0 -1
  476. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +0 -1
  477. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +0 -1
  478. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +0 -1
  479. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +0 -1
  480. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +0 -1
  481. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +0 -1
  482. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +0 -1
  483. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +0 -1
  484. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +0 -1
  485. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +0 -1
  486. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +0 -1
  487. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +0 -8
  488. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +0 -1
  489. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +0 -1
  490. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +0 -1
  491. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +0 -2
  492. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +0 -1
  493. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +0 -1
  494. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +0 -1
  495. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +0 -14
  496. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +0 -1
  497. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +0 -1
  498. package/dist/chunks/help-0.1.12-f02ce11x.mjs +0 -1
  499. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +0 -1
  500. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +0 -79
  501. package/dist/chunks/index-0.1.12-218arkqe.mjs +0 -9
  502. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +0 -1
  503. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +0 -1
  504. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +0 -7
  505. package/dist/chunks/index-0.1.12-77szwkm6.mjs +0 -1
  506. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +0 -1
  507. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +0 -1
  508. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +0 -1
  509. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +0 -1
  510. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +0 -1
  511. package/dist/chunks/index-0.1.12-m0e193t8.mjs +0 -1
  512. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +0 -5
  513. package/dist/chunks/index-0.1.12-r92p75vh.mjs +0 -1
  514. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +0 -1
  515. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +0 -1
  516. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +0 -2
  517. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +0 -1
  518. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +0 -2
  519. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +0 -1
  520. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +0 -9
  521. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +0 -1
  522. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +0 -1
  523. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +0 -1
  524. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +0 -1
  525. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +0 -12
  526. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +0 -1
  527. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +0 -2
  528. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +0 -1
  529. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +0 -1
  530. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +0 -1
  531. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +0 -1
  532. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +0 -1
  533. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +0 -1
  534. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +0 -1
  535. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +0 -4
  536. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +0 -3
  537. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +0 -2
  538. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +0 -1
  539. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +0 -1
  540. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +0 -1
  541. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +0 -3
  542. package/dist/chunks/plan-0.1.12-waed49m8.mjs +0 -1
  543. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +0 -29
  544. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +0 -1
  545. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +0 -1
  546. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +0 -1
  547. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +0 -9
  548. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +0 -1
  549. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +0 -1
  550. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +0 -1
  551. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +0 -1
  552. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +0 -1
  553. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +0 -1
  554. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +0 -5
  555. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +0 -2
  556. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +0 -1
  557. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +0 -1
  558. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +0 -1
  559. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +0 -1
  560. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +0 -2
  561. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +0 -1
  562. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +0 -1
  563. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +0 -2
  564. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +0 -1
  565. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +0 -1
  566. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +0 -5
  567. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +0 -1
  568. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +0 -1
  569. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +0 -1
  570. package/dist/chunks/status-0.1.12-qphx08h4.mjs +0 -1
  571. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +0 -1
  572. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +0 -1
  573. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +0 -1
  574. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +0 -1
  575. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +0 -1
  576. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +0 -1
  577. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +0 -1
  578. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +0 -1
  579. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +0 -1
  580. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +0 -1
  581. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +0 -1
  582. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +0 -1
  583. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +0 -1
  584. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +0 -1
  585. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +0 -1
  586. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +0 -1
  587. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +0 -1
  588. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +0 -1
  589. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +0 -1
  590. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +0 -1
  591. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +0 -1
  592. /package/dist/chunks/{cli-0.1.12-41zq3gv6.mjs → cli-0.1.13-fdmvysv0.mjs} +0 -0
  593. /package/dist/chunks/{cli-0.1.12-tvawkeks.mjs → cli-0.1.13-gs7rcvne.mjs} +0 -0
  594. /package/dist/chunks/{cli-0.1.12-ng34ay3g.mjs → cli-0.1.13-m5c2efjx.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Hca as R,Ica as T,d8 as U,f8 as m,lca as P,nda as H,pca as M,qda as E,yca as S}from"./cli-0.1.13-dag38tkx.mjs";import{Dha as K,Lha as G}from"./cli-0.1.13-1g6bgaa6.mjs";import{Xna as x}from"./cli-0.1.13-bj67mp7n.mjs";function B(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||f}function O(J){return new Promise((N)=>setTimeout(N,J))}async function n(J){let N=J?.clientId??B();if(!N)throw new j("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let V=J?.fetchImpl??fetch,$=J?.scope?.trim()||Y,X=$===Y?[$]:[$,Y],y="Device code request failed.";for(let W of X){let Z=await V(g,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:N,scope:W})});if(!Z.ok){let C=await Z.text().catch(()=>"");y=`Device code request failed: ${Z.status} ${C}`;let F=/invalid_scope/i.test(C);if(W!==Y&&F)continue;throw new j(y)}let Q=await Z.json(),z=Q.device_code,q=Q.user_code,A=Q.verification_uri;if(typeof z!=="string"||typeof q!=="string"||typeof A!=="string")throw new j("Malformed device code response from GitHub");return{device_code:z,user_code:q,verification_uri:A,expires_in:typeof Q.expires_in==="number"?Q.expires_in:900,interval:typeof Q.interval==="number"?Q.interval:5}}throw new j(y)}async function d(J,N){let V=N?.clientId??B();if(!V)throw new j("client_id required for polling");let $=Math.max(1,N?.initialInterval??5),X=N?.timeoutSeconds??900,y=N?.fetchImpl??fetch,W=Date.now();while((Date.now()-W)/1000<X){let Z=await y(_,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:V,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!Z.ok){let q=await Z.text().catch(()=>"");throw new j(`Token request failed: ${Z.status} ${q}`)}let Q=await Z.json(),z=Q.error;if(z==null){let q=Q.access_token;if(typeof q==="string"&&q)return q;throw new j("No access_token in response")}if(z==="authorization_pending"){await O($*1000);continue}if(z==="slow_down"){$=typeof Q.interval==="number"?Q.interval:$+5,await O($*1000);continue}if(z==="expired_token")throw new j("Device code expired. Start the login flow again.");if(z==="access_denied")throw new j("Authorization was denied or cancelled.");throw new j(`GitHub OAuth error: ${z}`)}throw new j("Timed out waiting for authorization.")}async function a(J){try{if(process.platform==="darwin")await U("open",[J],{useCwd:!1,timeout:5000});else if(process.platform==="win32")await U("cmd",["/c","start","",J],{useCwd:!1,timeout:5000});else await U("xdg-open",[J],{useCwd:!1,timeout:5000})}catch{}}async function w(J,N){let $=await(N??fetch)(k,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...b}});if(!$.ok){let z=await $.text().catch(()=>"");throw new j(`Copilot token exchange failed: ${$.status} ${z}`)}let X=await $.json(),y=X.token,W=X.expires_at,Z=X.refresh_in,Q=X.endpoints;if(typeof y!=="string"||typeof W!=="number"||typeof Z!=="number"||!Q||typeof Q!=="object"||typeof Q.api!=="string")throw new j("Malformed Copilot token response");return{token:y,expires_at:W,refresh_in:Z,endpoints:Q}}var f="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",_="https://github.com/login/oauth/access_token",k="https://api.github.com/copilot_internal/v2/token",Y="read:user",b,j;var I=x(()=>{m();b={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};j=class j extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function D(){return H()?.transport==="github_copilot"}function h(J){let N=J.match(/exp=(\d+)/);if(N){let X=Number(N[1]);if(!Number.isNaN(X))return Date.now()>=X*1000?"expired":"valid"}let V=J.split(".");if(V.length===3&&V.every((X)=>/^[A-Za-z0-9_-]+$/.test(X)))try{let X=V[1].replace(/-/g,"+").replace(/_/g,"/"),y=X+"=".repeat((4-X.length%4)%4),W=Buffer.from(y,"base64").toString("utf8"),Z=JSON.parse(W);if(Z&&typeof Z==="object"&&Z.exp)return Date.now()>=Z.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function v(){if(K())return;try{return R().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function QJ(){if(K())return;try{return(await R().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function XJ(){if(!D())return;if(K())return;if(v())return}async function ZJ(){if(!D())return!1;if(K())return!1;try{let V=R().read()?.githubModels,$=V?.accessToken?.trim()||"",X=V?.oauthAccessToken?.trim()||"";if(!$&&!X)return!1;if(($?h($):"expired")==="valid")return!1;if(!X)return!1;let W=await w(X);if(!u(W.token,X).success)return!1;let Q=P().find((z)=>z.provider==="openai"&&z.extras?.githubToken!==void 0);if(Q)M(Q.id,{provider:"openai",name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:W.token,extras:{...Q.extras,githubToken:W.token}});return!0}catch{return!1}}function u(J,N){if(K())return{success:!1,warning:"Bare mode: secure storage is disabled."};let V=J.trim();if(!V)return{success:!1,warning:"Token is empty."};let $=R(),X=$.read()||{},y=X[L],W=N?.trim(),Z={accessToken:V};if(W)Z.oauthAccessToken=W;else if(y?.oauthAccessToken?.trim())Z.oauthAccessToken=y.oauthAccessToken.trim();let Q={...X,[L]:Z};return $.update(Q)}function $J(){if(K())return{success:!0};let J=R(),V={...J.read()||{}};return delete V[L],J.update(V)}var L="githubModels",JJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED";var l=x(()=>{E();G();T();I();S()});
2
+ export{n as p0,d as q0,a as r0,w as s0,I as t0,L as u0,JJ as v0,v as w0,QJ as x0,XJ as y0,ZJ as z0,u as A0,$J as B0,l as C0};
@@ -0,0 +1,25 @@
1
+ import{$5 as st,R5 as nt,S5 as hl,T5 as bl,U5 as ml,V5 as fn,W5 as $c,X5 as fu,Y5 as Al,Z5 as ys,_5 as El,a6 as hs,b6 as k,c6 as ur,d6 as Qc,e6 as Bc,f6 as ra,g6 as Xc,h6 as Yc,i6 as Zc,j6 as Jc,k6 as el,l6 as Hc,m6 as cr,n6 as Cc,o6 as Ts,p6 as gl}from"./cli-0.1.13-ky4z1s1h.mjs";import{q6 as ie}from"./cli-0.1.13-84tbx1nf.mjs";import{Ina as kc,Jna as Le}from"./cli-0.1.13-0hyneh5t.mjs";import{Lna as Vc}from"./cli-0.1.13-579v6j6d.mjs";import{Nna as Fe,Ona as ve,Rna as De,Sna as ee}from"./cli-0.1.13-tknwgkgp.mjs";import{Vna as E,Yna as Bs}from"./cli-0.1.13-bj67mp7n.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 Q5};