@claudiolabs/claudin 1.1.8 → 1.1.9

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 (918) hide show
  1. package/dist/chunks/AgentTool-1.1.9-wkz9sjmc.mjs +1 -0
  2. package/dist/chunks/App-1.1.9-xgs7khyz.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.9-7gfmxnyz.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.9-pf08j23x.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.9-4ze1tfxe.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.9-ztaz7kpc.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.9-hzpy5qvh.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.9-ajjzhfrp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.9-m3n0bamd.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.9-74y6nka7.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.9-9av1q0k2.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.9-me7gmbqp.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.9-776dpey8.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.9-gzyybqqn.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.9-e71y6pr4.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.9-4bkckq3q.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.9-d6c3hrvj.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.9-2dk7z5b6.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.9-ds8mvm64.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.9-2z1ye829.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.9-68k8x7yf.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.9-anh2z73y.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.9-tedma9q3.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.9-3n1b2vrf.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.9-63awezwe.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.9-msa503cz.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.9-w058z417.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.9-t27aw1nb.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.9-dxvbnrfa.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.9-3kevh6af.mjs +1 -0
  31. package/dist/chunks/agents-1.1.9-eabf2wdc.mjs +3 -0
  32. package/dist/chunks/agents-1.1.9-nj93ac5m.mjs +110 -0
  33. package/dist/chunks/api-1.1.9-m1mrnd2p.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.9-d0kjtphm.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.9-e3zkxz2m.mjs +1 -0
  36. package/dist/chunks/auth-1.1.9-8qm9p05y.mjs +1 -0
  37. package/dist/chunks/auth-1.1.9-gm4sybx1.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.9-p9fppced.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.9-m6etj2pr.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.9-4hvzygqr.mjs +1 -0
  41. package/dist/chunks/branch-1.1.9-wqszm8z2.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.9-h886wtcd.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.9-ehv4dp42.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.9-8qkc9feq.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.9-1sdw2z47.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.9-bvwdykpj.mjs +1 -0
  47. package/dist/chunks/btw-1.1.9-sm4j5bt8.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.9-fesnzyh6.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.9-6kzb7z5q.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.9-9j06fcrx.mjs +4 -0
  51. package/dist/chunks/caches-1.1.9-4g38wyxp.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.9-gd3bgkhe.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.9-7xr0h7qv.mjs +1 -0
  54. package/dist/chunks/clear-1.1.9-nadfsynk.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.9-48k9fftx.mjs +1 -0
  56. package/dist/chunks/cli-1.1.9-06k8vem7.mjs +3 -0
  57. package/dist/chunks/cli-1.1.9-0da4szeq.mjs +2 -0
  58. package/dist/chunks/cli-1.1.9-0dcyhvk3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.9-0evqvwgb.mjs +2 -0
  60. package/dist/chunks/cli-1.1.9-0h7f33hw.mjs +66 -0
  61. package/dist/chunks/cli-1.1.9-0s7kmsaa.mjs +6 -0
  62. package/dist/chunks/cli-1.1.9-0w9c82qd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.9-1932rbs7.mjs +2 -0
  64. package/dist/chunks/cli-1.1.9-1b1mw6v2.mjs +6 -0
  65. package/dist/chunks/cli-1.1.9-1ganj1qj.mjs +1 -0
  66. package/dist/chunks/cli-1.1.9-1gg4qe92.mjs +4 -0
  67. package/dist/chunks/cli-1.1.9-1q40zcz0.mjs +2 -0
  68. package/dist/chunks/cli-1.1.9-1ydmnrp6.mjs +2 -0
  69. package/dist/chunks/cli-1.1.9-223enqdr.mjs +2 -0
  70. package/dist/chunks/cli-1.1.9-22gp283h.mjs +2 -0
  71. package/dist/chunks/cli-1.1.9-260z6ry3.mjs +3 -0
  72. package/dist/chunks/cli-1.1.9-2t4pp98q.mjs +133 -0
  73. package/dist/chunks/cli-1.1.9-2wrs8key.mjs +9 -0
  74. package/dist/chunks/cli-1.1.9-2zeypqcv.mjs +3 -0
  75. package/dist/chunks/cli-1.1.9-3ajc04xt.mjs +4 -0
  76. package/dist/chunks/cli-1.1.9-3mgd7wkd.mjs +20 -0
  77. package/dist/chunks/cli-1.1.9-3nfhvvzw.mjs +3 -0
  78. package/dist/chunks/cli-1.1.9-3t9by3gn.mjs +2 -0
  79. package/dist/chunks/cli-1.1.9-4eqcxefk.mjs +4 -0
  80. package/dist/chunks/cli-1.1.9-4k5khbp0.mjs +5 -0
  81. package/dist/chunks/cli-1.1.9-4p8zymhf.mjs +2 -0
  82. package/dist/chunks/cli-1.1.9-4qctf8p1.mjs +2 -0
  83. package/dist/chunks/cli-1.1.9-4ygmyvas.mjs +2 -0
  84. package/dist/chunks/cli-1.1.9-4z0nxn7p.mjs +3 -0
  85. package/dist/chunks/cli-1.1.9-4z7ddbsc.mjs +3 -0
  86. package/dist/chunks/cli-1.1.9-573zndr8.mjs +2 -0
  87. package/dist/chunks/cli-1.1.9-5cr2dpgf.mjs +2 -0
  88. package/dist/chunks/cli-1.1.9-5hzaexj9.mjs +2 -0
  89. package/dist/chunks/cli-1.1.9-5v03p4xq.mjs +2 -0
  90. package/dist/chunks/cli-1.1.9-6a8pdm8s.mjs +2 -0
  91. package/dist/chunks/cli-1.1.9-6h5nwsn1.mjs +18 -0
  92. package/dist/chunks/cli-1.1.9-6kcc57kb.mjs +42 -0
  93. package/dist/chunks/cli-1.1.9-6mwsk9z2.mjs +2 -0
  94. package/dist/chunks/cli-1.1.9-6sv92w0b.mjs +2 -0
  95. package/dist/chunks/cli-1.1.9-79wdzxep.mjs +4 -0
  96. package/dist/chunks/cli-1.1.9-7y42yxmj.mjs +2 -0
  97. package/dist/chunks/cli-1.1.9-840ckwq8.mjs +2 -0
  98. package/dist/chunks/cli-1.1.9-890aswmq.mjs +2 -0
  99. package/dist/chunks/cli-1.1.9-8f0a6ved.mjs +2 -0
  100. package/dist/chunks/cli-1.1.9-8gkjdbxs.mjs +202 -0
  101. package/dist/chunks/cli-1.1.9-8gypdqm2.mjs +2 -0
  102. package/dist/chunks/cli-1.1.9-8sktt26v.mjs +2 -0
  103. package/dist/chunks/cli-1.1.9-8vfhjyxn.mjs +2 -0
  104. package/dist/chunks/cli-1.1.9-8xy2498p.mjs +2 -0
  105. package/dist/chunks/cli-1.1.9-8zhwfv3p.mjs +2 -0
  106. package/dist/chunks/cli-1.1.9-914mh2gv.mjs +16 -0
  107. package/dist/chunks/cli-1.1.9-97jvvqrz.mjs +2 -0
  108. package/dist/chunks/cli-1.1.9-98ypzgj0.mjs +25 -0
  109. package/dist/chunks/cli-1.1.9-9bqrz8qn.mjs +2 -0
  110. package/dist/chunks/cli-1.1.9-9f1te59e.mjs +2 -0
  111. package/dist/chunks/cli-1.1.9-9t7xx2r9.mjs +2 -0
  112. package/dist/chunks/cli-1.1.9-9yrwnzf6.mjs +2 -0
  113. package/dist/chunks/cli-1.1.9-a4c57zxm.mjs +21 -0
  114. package/dist/chunks/cli-1.1.9-a5z84t63.mjs +2 -0
  115. package/dist/chunks/cli-1.1.9-a6yyaw1d.mjs +2 -0
  116. package/dist/chunks/cli-1.1.9-a7x6qt7v.mjs +6 -0
  117. package/dist/chunks/cli-1.1.9-agbzpv77.mjs +2 -0
  118. package/dist/chunks/cli-1.1.9-ajr585mm.mjs +4 -0
  119. package/dist/chunks/cli-1.1.9-aqbj20gg.mjs +2 -0
  120. package/dist/chunks/cli-1.1.9-atdcgnab.mjs +2 -0
  121. package/dist/chunks/cli-1.1.9-atge24ab.mjs +2 -0
  122. package/dist/chunks/cli-1.1.9-ax8tkq65.mjs +2 -0
  123. package/dist/chunks/cli-1.1.9-b353901w.mjs +2 -0
  124. package/dist/chunks/cli-1.1.9-b3za9cts.mjs +2 -0
  125. package/dist/chunks/cli-1.1.9-b78c2fws.mjs +8 -0
  126. package/dist/chunks/cli-1.1.9-b9ykbj6y.mjs +17 -0
  127. package/dist/chunks/cli-1.1.9-bc22evty.mjs +2 -0
  128. package/dist/chunks/cli-1.1.9-bftwnbgn.mjs +5390 -0
  129. package/dist/chunks/cli-1.1.9-bfyz4xjz.mjs +2 -0
  130. package/dist/chunks/cli-1.1.9-bk3tqt6v.mjs +26 -0
  131. package/dist/chunks/cli-1.1.9-bwhdpxw6.mjs +12 -0
  132. package/dist/chunks/cli-1.1.9-c27gt3w1.mjs +2 -0
  133. package/dist/chunks/cli-1.1.9-c5wsttrd.mjs +2 -0
  134. package/dist/chunks/cli-1.1.9-c6nqtzv9.mjs +2 -0
  135. package/dist/chunks/cli-1.1.9-ckr5mgw1.mjs +25 -0
  136. package/dist/chunks/cli-1.1.9-ct1yqfqn.mjs +2 -0
  137. package/dist/chunks/cli-1.1.9-cwtcnyyj.mjs +2 -0
  138. package/dist/chunks/cli-1.1.9-d9wz5g8s.mjs +2 -0
  139. package/dist/chunks/cli-1.1.9-de902mzz.mjs +2 -0
  140. package/dist/chunks/cli-1.1.9-dh5213n0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.9-dxt1d7jm.mjs +2 -0
  142. package/dist/chunks/cli-1.1.9-e0bejpfk.mjs +2 -0
  143. package/dist/chunks/cli-1.1.9-e1ak8jhn.mjs +12 -0
  144. package/dist/chunks/cli-1.1.9-e2ny87k0.mjs +15 -0
  145. package/dist/chunks/cli-1.1.9-e4jhw8xj.mjs +2 -0
  146. package/dist/chunks/cli-1.1.9-e5xq1msp.mjs +58 -0
  147. package/dist/chunks/cli-1.1.9-e6x7cyw4.mjs +2 -0
  148. package/dist/chunks/cli-1.1.9-egv4z3tf.mjs +2 -0
  149. package/dist/chunks/cli-1.1.9-ena9w4sg.mjs +24 -0
  150. package/dist/chunks/cli-1.1.9-etmwe3pd.mjs +2 -0
  151. package/dist/chunks/cli-1.1.9-ewst4gvt.mjs +2 -0
  152. package/dist/chunks/cli-1.1.9-ezkc7ag5.mjs +2 -0
  153. package/dist/chunks/cli-1.1.9-fcqz89mq.mjs +2 -0
  154. package/dist/chunks/cli-1.1.9-fdzgypr3.mjs +3 -0
  155. package/dist/chunks/cli-1.1.9-fqk44arm.mjs +45 -0
  156. package/dist/chunks/cli-1.1.9-frwdaeyw.mjs +2 -0
  157. package/dist/chunks/cli-1.1.9-fws7k6ak.mjs +2 -0
  158. package/dist/chunks/cli-1.1.9-fxyfgpjj.mjs +2 -0
  159. package/dist/chunks/cli-1.1.9-fy9kv0hx.mjs +2 -0
  160. package/dist/chunks/cli-1.1.9-fygnj03b.mjs +2 -0
  161. package/dist/chunks/cli-1.1.9-fzh3d8n1.mjs +2 -0
  162. package/dist/chunks/cli-1.1.9-ga16e8rd.mjs +3 -0
  163. package/dist/chunks/cli-1.1.9-gbtz45hn.mjs +3 -0
  164. package/dist/chunks/cli-1.1.9-gmb2wpqf.mjs +2 -0
  165. package/dist/chunks/cli-1.1.9-gpmbky2h.mjs +2 -0
  166. package/dist/chunks/cli-1.1.9-grhcdmgm.mjs +2 -0
  167. package/dist/chunks/cli-1.1.9-gttthtg1.mjs +2 -0
  168. package/dist/chunks/cli-1.1.9-gv5x5e8a.mjs +2 -0
  169. package/dist/chunks/cli-1.1.9-h45gam34.mjs +2 -0
  170. package/dist/chunks/cli-1.1.9-h66p9ghw.mjs +2 -0
  171. package/dist/chunks/cli-1.1.9-hq4kcpxc.mjs +2 -0
  172. package/dist/chunks/cli-1.1.9-j1bj4zfy.mjs +2 -0
  173. package/dist/chunks/cli-1.1.9-jah1vcdm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.9-jaq6r6ba.mjs +2 -0
  175. package/dist/chunks/cli-1.1.9-jew2xd4p.mjs +2 -0
  176. package/dist/chunks/cli-1.1.9-jfyv5vb1.mjs +7 -0
  177. package/dist/chunks/cli-1.1.9-jmwr69v2.mjs +2 -0
  178. package/dist/chunks/cli-1.1.9-jn9kh16z.mjs +39 -0
  179. package/dist/chunks/cli-1.1.9-jqs0ktme.mjs +2 -0
  180. package/dist/chunks/cli-1.1.9-jqz75k6h.mjs +4 -0
  181. package/dist/chunks/cli-1.1.9-k0b62q76.mjs +2 -0
  182. package/dist/chunks/cli-1.1.9-k3tzdef2.mjs +50 -0
  183. package/dist/chunks/cli-1.1.9-k4gthvh4.mjs +4 -0
  184. package/dist/chunks/cli-1.1.9-k8kz8k9t.mjs +2 -0
  185. package/dist/chunks/cli-1.1.9-k9bbqwgs.mjs +2 -0
  186. package/dist/chunks/cli-1.1.9-kaxffmz4.mjs +2 -0
  187. package/dist/chunks/cli-1.1.9-kdavw6zm.mjs +2 -0
  188. package/dist/chunks/cli-1.1.9-kdgc8zvn.mjs +24 -0
  189. package/dist/chunks/cli-1.1.9-kdpv38ab.mjs +2 -0
  190. package/dist/chunks/cli-1.1.9-kgtexer1.mjs +2 -0
  191. package/dist/chunks/cli-1.1.9-khhnt4hq.mjs +2 -0
  192. package/dist/chunks/cli-1.1.9-khskdxps.mjs +6 -0
  193. package/dist/chunks/cli-1.1.9-kvk6ba28.mjs +2 -0
  194. package/dist/chunks/cli-1.1.9-kyn85fwa.mjs +15 -0
  195. package/dist/chunks/cli-1.1.9-kzqqvms6.mjs +34 -0
  196. package/dist/chunks/cli-1.1.9-m2x94hxw.mjs +5 -0
  197. package/dist/chunks/cli-1.1.9-md4ratv1.mjs +4 -0
  198. package/dist/chunks/cli-1.1.9-mdd84pmt.mjs +2 -0
  199. package/dist/chunks/cli-1.1.9-mgm6zdpx.mjs +2 -0
  200. package/dist/chunks/cli-1.1.9-mk4nfh2a.mjs +2 -0
  201. package/dist/chunks/cli-1.1.9-mp2pqq66.mjs +24 -0
  202. package/dist/chunks/cli-1.1.9-mt1mshmr.mjs +2 -0
  203. package/dist/chunks/cli-1.1.9-mw0y14ny.mjs +133 -0
  204. package/dist/chunks/cli-1.1.9-mz91g55f.mjs +4 -0
  205. package/dist/chunks/cli-1.1.9-n2qz0enm.mjs +2 -0
  206. package/dist/chunks/cli-1.1.9-n886v2tr.mjs +2 -0
  207. package/dist/chunks/cli-1.1.9-nacg7asv.mjs +2 -0
  208. package/dist/chunks/cli-1.1.9-nadf4arq.mjs +2 -0
  209. package/dist/chunks/cli-1.1.9-nbdn95s0.mjs +2 -0
  210. package/dist/chunks/cli-1.1.9-nbtds7y5.mjs +2 -0
  211. package/dist/chunks/cli-1.1.9-p24jbscq.mjs +2 -0
  212. package/dist/chunks/cli-1.1.9-pdcfc5y5.mjs +3 -0
  213. package/dist/chunks/cli-1.1.9-pjfvmwr9.mjs +2 -0
  214. package/dist/chunks/cli-1.1.9-ppnsbsqg.mjs +2 -0
  215. package/dist/chunks/cli-1.1.9-pr2kkmf8.mjs +15 -0
  216. package/dist/chunks/cli-1.1.9-pxbfakmz.mjs +2 -0
  217. package/dist/chunks/cli-1.1.9-q384fwfa.mjs +2 -0
  218. package/dist/chunks/cli-1.1.9-qc93tafw.mjs +2 -0
  219. package/dist/chunks/cli-1.1.9-qr51aqsa.mjs +2 -0
  220. package/dist/chunks/cli-1.1.9-r5gk3nve.mjs +2 -0
  221. package/dist/chunks/cli-1.1.9-r7g33857.mjs +2 -0
  222. package/dist/chunks/cli-1.1.9-r7gng5fx.mjs +2 -0
  223. package/dist/chunks/cli-1.1.9-rawga9ty.mjs +2 -0
  224. package/dist/chunks/cli-1.1.9-rh6wjwvg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.9-rjztj1ez.mjs +9 -0
  226. package/dist/chunks/cli-1.1.9-rmd68sfp.mjs +2 -0
  227. package/dist/chunks/cli-1.1.9-rvmgrj4q.mjs +2 -0
  228. package/dist/chunks/cli-1.1.9-s52npgq0.mjs +2 -0
  229. package/dist/chunks/cli-1.1.9-s5b8svr6.mjs +3 -0
  230. package/dist/chunks/cli-1.1.9-sbmesghv.mjs +2 -0
  231. package/dist/chunks/cli-1.1.9-se5tezpj.mjs +3 -0
  232. package/dist/chunks/cli-1.1.9-spn11xgr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.9-sqfgvaz9.mjs +2 -0
  234. package/dist/chunks/cli-1.1.9-sxsgvz9x.mjs +2 -0
  235. package/dist/chunks/cli-1.1.9-tcx9qwzz.mjs +18 -0
  236. package/dist/chunks/cli-1.1.9-tt85wfyx.mjs +2 -0
  237. package/dist/chunks/cli-1.1.9-txs7wza6.mjs +59 -0
  238. package/dist/chunks/cli-1.1.9-tze0002b.mjs +4 -0
  239. package/dist/chunks/cli-1.1.9-v4hh4r8g.mjs +2 -0
  240. package/dist/chunks/cli-1.1.9-v6dh85e0.mjs +4 -0
  241. package/dist/chunks/cli-1.1.9-vhsgp7b5.mjs +2 -0
  242. package/dist/chunks/cli-1.1.9-vmggmsba.mjs +2 -0
  243. package/dist/chunks/cli-1.1.9-w3xqbxyp.mjs +2 -0
  244. package/dist/chunks/cli-1.1.9-w462299v.mjs +3 -0
  245. package/dist/chunks/cli-1.1.9-w4yjadk7.mjs +2 -0
  246. package/dist/chunks/cli-1.1.9-wg00txsx.mjs +2 -0
  247. package/dist/chunks/cli-1.1.9-wscqghf9.mjs +2 -0
  248. package/dist/chunks/cli-1.1.9-wsqhh56s.mjs +2 -0
  249. package/dist/chunks/cli-1.1.9-wx0fgtgp.mjs +3 -0
  250. package/dist/chunks/cli-1.1.9-wydc25pa.mjs +2 -0
  251. package/dist/chunks/cli-1.1.9-x1ame9j0.mjs +2 -0
  252. package/dist/chunks/cli-1.1.9-x9jz46tx.mjs +2 -0
  253. package/dist/chunks/cli-1.1.9-xa48sv5y.mjs +6 -0
  254. package/dist/chunks/cli-1.1.9-xccq68bp.mjs +2 -0
  255. package/dist/chunks/cli-1.1.9-xmqye6j6.mjs +2 -0
  256. package/dist/chunks/cli-1.1.9-xn1fx31s.mjs +2 -0
  257. package/dist/chunks/cli-1.1.9-xxwf95xq.mjs +17 -0
  258. package/dist/chunks/cli-1.1.9-ygp7jfm9.mjs +2 -0
  259. package/dist/chunks/cli-1.1.9-ytgc0me8.mjs +2 -0
  260. package/dist/chunks/cli-1.1.9-yw9403an.mjs +24 -0
  261. package/dist/chunks/cli-1.1.9-z0wenj5y.mjs +6 -0
  262. package/dist/chunks/cli-1.1.9-zhyjqy1b.mjs +2 -0
  263. package/dist/chunks/cli-1.1.9-zp9cpxw5.mjs +12 -0
  264. package/dist/chunks/cli-1.1.9-zv6e4k6z.mjs +2 -0
  265. package/dist/chunks/cli-1.1.9-zy71vgyg.mjs +2 -0
  266. package/dist/chunks/client-1.1.9-ew20apkg.mjs +1 -0
  267. package/dist/chunks/color-1.1.9-r9fb3e7k.mjs +1 -0
  268. package/dist/chunks/compact-1.1.9-ea493ntb.mjs +3 -0
  269. package/dist/chunks/config-1.1.9-6fxf7dj2.mjs +1 -0
  270. package/dist/chunks/config-1.1.9-snnk2z79.mjs +1 -0
  271. package/dist/chunks/constants-1.1.9-adx0a3k9.mjs +1 -0
  272. package/dist/chunks/context-1.1.9-nxs61bmq.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.9-cppfq9pr.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.9-3x6s0c83.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.9-vvy4jfh7.mjs +1 -0
  276. package/dist/chunks/copy-1.1.9-sx84nhzr.mjs +9 -0
  277. package/dist/chunks/cost-1.1.9-msc3677c.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.9-cpa9c11q.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.9-kapv4jes.mjs +1 -0
  280. package/dist/chunks/debug-1.1.9-h57648ft.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.9-j6kdarmk.mjs +1526 -0
  282. package/dist/chunks/desktop-1.1.9-4z5p38ma.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.9-9c8ws2cg.mjs +1 -0
  284. package/dist/chunks/detection-1.1.9-2vb502cf.mjs +1 -0
  285. package/dist/chunks/diff-1.1.9-8m7str6k.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.9-0f6jzgas.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.9-w983dv1c.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.9-c047s7qm.mjs +1 -0
  289. package/dist/chunks/effort-1.1.9-5qnffzr4.mjs +13 -0
  290. package/dist/chunks/engine-1.1.9-5jjj151c.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.9-jex25t6e.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.9-krdbmbwa.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.9-nbbgerx3.mjs +1 -0
  294. package/dist/chunks/environments-1.1.9-1t7bdxn2.mjs +1 -0
  295. package/dist/chunks/errors-1.1.9-e3vc9p8s.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.9-xazstg5e.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.9-c14n54h8.mjs +1 -0
  298. package/dist/chunks/exit-1.1.9-r4x4th0b.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.9-wdzp1dsf.mjs +1 -0
  300. package/dist/chunks/export-1.1.9-0zmn3m1m.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.9-v3cypezj.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.9-1b722pj8.mjs +1 -0
  303. package/dist/chunks/fast-1.1.9-ys3bnnx1.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.9-xtbxr07t.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.9-anc9n41n.mjs +1 -0
  306. package/dist/chunks/git-1.1.9-9dmxfhs7.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.9-tyw52d6k.mjs +1 -0
  308. package/dist/chunks/goal-1.1.9-64kdsaz8.mjs +4 -0
  309. package/dist/chunks/grove-1.1.9-feqpprte.mjs +1 -0
  310. package/dist/chunks/growthbook-1.1.9-5haradn1.mjs +1 -0
  311. package/dist/chunks/headless-1.1.9-x413dfed.mjs +2 -0
  312. package/dist/chunks/heapdump-1.1.9-z0mn192y.mjs +6 -0
  313. package/dist/chunks/help-1.1.9-fsng3h1g.mjs +1 -0
  314. package/dist/chunks/hookChains-1.1.9-h0b5hx6z.mjs +3 -0
  315. package/dist/chunks/hooks-1.1.9-gsjxxhxg.mjs +79 -0
  316. package/dist/chunks/hooks-1.1.9-hhydka88.mjs +1 -0
  317. package/dist/chunks/ide-1.1.9-ke6a38yk.mjs +3 -0
  318. package/dist/chunks/image-processor-napi-1.1.9-0cf7sh4j.mjs +1 -0
  319. package/dist/chunks/inboundAttachments-1.1.9-j5vez7jv.mjs +1 -0
  320. package/dist/chunks/index-1.1.9-1cqvjp5p.mjs +1 -0
  321. package/dist/chunks/index-1.1.9-1pambxgy.mjs +1 -0
  322. package/dist/chunks/index-1.1.9-2gb6syse.mjs +1 -0
  323. package/dist/chunks/index-1.1.9-2sk8q3x9.mjs +30 -0
  324. package/dist/chunks/index-1.1.9-3wevfp37.mjs +1 -0
  325. package/dist/chunks/index-1.1.9-3xm5j58t.mjs +1 -0
  326. package/dist/chunks/index-1.1.9-66dcm0v8.mjs +1 -0
  327. package/dist/chunks/index-1.1.9-6skqhhzf.mjs +1 -0
  328. package/dist/chunks/index-1.1.9-97yrmssd.mjs +1 -0
  329. package/dist/chunks/index-1.1.9-a0nf5r6f.mjs +1 -0
  330. package/dist/chunks/index-1.1.9-a6c1xz4e.mjs +2 -0
  331. package/dist/chunks/index-1.1.9-ad1rhnqp.mjs +9 -0
  332. package/dist/chunks/index-1.1.9-bw0cax5s.mjs +2 -0
  333. package/dist/chunks/index-1.1.9-h341k1xk.mjs +1 -0
  334. package/dist/chunks/index-1.1.9-jneayavn.mjs +23 -0
  335. package/dist/chunks/index-1.1.9-nc3014dy.mjs +1 -0
  336. package/dist/chunks/index-1.1.9-r1qk4xvr.mjs +1 -0
  337. package/dist/chunks/index-1.1.9-sfyz5cb7.mjs +9 -0
  338. package/dist/chunks/index-1.1.9-sg4e7zkb.mjs +5 -0
  339. package/dist/chunks/index-1.1.9-wkj78xgk.mjs +1 -0
  340. package/dist/chunks/index-1.1.9-wqjwb4zm.mjs +1 -0
  341. package/dist/chunks/index-1.1.9-x3yr70wm.mjs +1 -0
  342. package/dist/chunks/index-1.1.9-yznkq9s3.mjs +1 -0
  343. package/dist/chunks/init-1.1.9-0pss5n1w.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.9-xn4x74kj.mjs +1 -0
  345. package/dist/chunks/ink-1.1.9-zwhy78y6.mjs +1 -0
  346. package/dist/chunks/insights-1.1.9-hgpde32q.mjs +870 -0
  347. package/dist/chunks/install-1.1.9-34x0hj9y.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.9-9sw6tr8d.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.9-sddcp9xd.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.9-b52jmsm9.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.9-9d7d8js5.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.9-8amnba42.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.9-kz84fs8v.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.9-d4kwr00h.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.9-smk51q1t.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.9-a8ny49aa.mjs +1 -0
  357. package/dist/chunks/log-1.1.9-e9py7g1v.mjs +1 -0
  358. package/dist/chunks/main-1.1.9-vx43js6g.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.9-zdhg1zfw.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.9-66xztk7e.mjs +4 -0
  361. package/dist/chunks/mcp-1.1.9-6q4s5vpd.mjs +1 -0
  362. package/dist/chunks/mcp-1.1.9-sgvnwe73.mjs +17 -0
  363. package/dist/chunks/mcpb-1.1.9-67ew9jzm.mjs +1 -0
  364. package/dist/chunks/memory-1.1.9-d580fc8g.mjs +72 -0
  365. package/dist/chunks/model-1.1.9-n7gjmzqe.mjs +2 -0
  366. package/dist/chunks/model-1.1.9-r24h6ebx.mjs +1 -0
  367. package/dist/chunks/node-1.1.9-kx2wx79w.mjs +12 -0
  368. package/dist/chunks/oauth-1.1.9-mb03cbrk.mjs +1 -0
  369. package/dist/chunks/openaiShim-1.1.9-7n9g3sj8.mjs +14 -0
  370. package/dist/chunks/output-style-1.1.9-eb07k735.mjs +1 -0
  371. package/dist/chunks/package-L37ZVTF4-1.1.9-s5ve90jq.mjs +1 -0
  372. package/dist/chunks/parseConnectUrl-1.1.9-zdgekp41.mjs +1 -0
  373. package/dist/chunks/parser-1.1.9-v7w400w6.mjs +1 -0
  374. package/dist/chunks/passes-1.1.9-eq2gaejx.mjs +1 -0
  375. package/dist/chunks/permissions-1.1.9-e410dndk.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.9-qdtk36nc.mjs +3 -0
  377. package/dist/chunks/plan-1.1.9-fz63v9vy.mjs +1 -0
  378. package/dist/chunks/plist-1.1.9-vvf1dmeh.mjs +1 -0
  379. package/dist/chunks/plugin-1.1.9-5wgxw7e5.mjs +29 -0
  380. package/dist/chunks/pluginStartupCheck-1.1.9-wsqp215d.mjs +1 -0
  381. package/dist/chunks/plugins-1.1.9-gn7vrvsn.mjs +9 -0
  382. package/dist/chunks/preActionHook-1.1.9-hk5p06zk.mjs +2 -0
  383. package/dist/chunks/print-1.1.9-ccqx25s0.mjs +57 -0
  384. package/dist/chunks/privacy-settings-1.1.9-53703vc6.mjs +1 -0
  385. package/dist/chunks/process-1.1.9-6e5jfgee.mjs +1 -0
  386. package/dist/chunks/processBashCommand-1.1.9-q27mqh31.mjs +1 -0
  387. package/dist/chunks/processSlashCommand-1.1.9-pmx45pst.mjs +9 -0
  388. package/dist/chunks/prompt-1.1.9-2374kg79.mjs +1 -0
  389. package/dist/chunks/prompt-1.1.9-rmzk76ja.mjs +1 -0
  390. package/dist/chunks/prompts-1.1.9-vw2cgjmn.mjs +1 -0
  391. package/dist/chunks/protocolHandler-1.1.9-5qy2tmvh.mjs +13 -0
  392. package/dist/chunks/provider-1.1.9-a55a0767.mjs +2 -0
  393. package/dist/chunks/providerProfiles-1.1.9-0qf6737w.mjs +1 -0
  394. package/dist/chunks/providerValidation-1.1.9-xy0peh3y.mjs +6 -0
  395. package/dist/chunks/rate-limit-options-1.1.9-3mv4vcm2.mjs +1 -0
  396. package/dist/chunks/registerSubcommands-1.1.9-xwrrc93y.mjs +34 -0
  397. package/dist/chunks/registry-1.1.9-nhs76azt.mjs +1 -0
  398. package/dist/chunks/release-notes-1.1.9-evdvm41n.mjs +5 -0
  399. package/dist/chunks/reload-plugins-1.1.9-nsan544v.mjs +2 -0
  400. package/dist/chunks/remote-env-1.1.9-wqd0jdhv.mjs +1 -0
  401. package/dist/chunks/remoteBridgeCore-1.1.9-epxhjpaw.mjs +1 -0
  402. package/dist/chunks/remoteSession-1.1.9-80pvqseg.mjs +1 -0
  403. package/dist/chunks/rename-1.1.9-t6q4frnz.mjs +1 -0
  404. package/dist/chunks/replBridgeHandle-1.1.9-fhcz3nmf.mjs +1 -0
  405. package/dist/chunks/replLauncher-1.1.9-k6bt66pp.mjs +1 -0
  406. package/dist/chunks/resume-1.1.9-f8pqevkb.mjs +2 -0
  407. package/dist/chunks/rewind-1.1.9-mqnvjgnw.mjs +1 -0
  408. package/dist/chunks/rootOptions-1.1.9-hm3xq5ew.mjs +1 -0
  409. package/dist/chunks/runWorkflowHeadless-1.1.9-yzzt2wgy.mjs +10 -0
  410. package/dist/chunks/sandbox-adapter-1.1.9-djbmdqmh.mjs +1 -0
  411. package/dist/chunks/sandbox-toggle-1.1.9-ca1f9nar.mjs +1 -0
  412. package/dist/chunks/session-1.1.9-1h4w7jv2.mjs +2 -0
  413. package/dist/chunks/sessionDiscovery-1.1.9-4xav26hz.mjs +1 -0
  414. package/dist/chunks/sessionFileAccessHooks-1.1.9-76sy9frv.mjs +1 -0
  415. package/dist/chunks/sessionStorage-1.1.9-054r3b21.mjs +1 -0
  416. package/dist/chunks/settings-1.1.9-6xnvy3wf.mjs +1 -0
  417. package/dist/chunks/setup-1.1.9-ryytyyyq.mjs +5 -0
  418. package/dist/chunks/sinks-1.1.9-1tmn5q67.mjs +1 -0
  419. package/dist/chunks/skills-1.1.9-21b3ema9.mjs +1 -0
  420. package/dist/chunks/startupProfiler-1.1.9-4cynjbh6.mjs +1 -0
  421. package/dist/chunks/startupUpdateCheck-1.1.9-0zeaaev8.mjs +1 -0
  422. package/dist/chunks/state-1.1.9-4vnhh3s5.mjs +1 -0
  423. package/dist/chunks/stats-1.1.9-n37acpyb.mjs +6 -0
  424. package/dist/chunks/status-1.1.9-e7fgh9na.mjs +1 -0
  425. package/dist/chunks/stickers-1.1.9-vpzantjb.mjs +1 -0
  426. package/dist/chunks/subprocessEnv-1.1.9-qja4apm2.mjs +1 -0
  427. package/dist/chunks/tasks-1.1.9-xvrvpcpf.mjs +1 -0
  428. package/dist/chunks/teamHelpers-1.1.9-kc45263x.mjs +1 -0
  429. package/dist/chunks/teammateModeSnapshot-1.1.9-5jf6f8yz.mjs +1 -0
  430. package/dist/chunks/teleport-1.1.9-f1mzkj3j.mjs +1 -0
  431. package/dist/chunks/terminalSetup-1.1.9-7xczc9pg.mjs +1 -0
  432. package/dist/chunks/theme-1.1.9-xnntw39r.mjs +1 -0
  433. package/dist/chunks/thinkback-1.1.9-2agv1je1.mjs +1 -0
  434. package/dist/chunks/thinkback-play-1.1.9-0f61agae.mjs +1 -0
  435. package/dist/chunks/toolPool-1.1.9-x4dvej7a.mjs +1 -0
  436. package/dist/chunks/toolSearch-1.1.9-2n3qz8m6.mjs +1 -0
  437. package/dist/chunks/tools-1.1.9-2st9wxya.mjs +1 -0
  438. package/dist/chunks/trustedDevice-1.1.9-24j13chh.mjs +1 -0
  439. package/dist/chunks/turndown.cjs-1.1.9-6a2bdbmc.mjs +69 -0
  440. package/dist/chunks/types-1.1.9-hx767c40.mjs +1 -0
  441. package/dist/chunks/ultrareviewCommand-1.1.9-1d65a9qv.mjs +4 -0
  442. package/dist/chunks/update-1.1.9-2qs71qk6.mjs +72 -0
  443. package/dist/chunks/upgrade-1.1.9-4m89wfqh.mjs +1 -0
  444. package/dist/chunks/upload-1.1.9-141vg13j.mjs +7 -0
  445. package/dist/chunks/upstreamproxy-1.1.9-1hh4dkwb.mjs +14 -0
  446. package/dist/chunks/url-handler-napi-1.1.9-awan17cf.mjs +1 -0
  447. package/dist/chunks/usage-1.1.9-3e6gg2kg.mjs +1 -0
  448. package/dist/chunks/util-1.1.9-jy80stt8.mjs +1 -0
  449. package/dist/chunks/utils-1.1.9-k4q7cea1.mjs +1 -0
  450. package/dist/chunks/vim-1.1.9-s13xmm4h.mjs +1 -0
  451. package/dist/chunks/watchLoop-1.1.9-cbww8p0b.mjs +13 -0
  452. package/dist/chunks/watcher-1.1.9-2mym56cs.mjs +1 -0
  453. package/dist/chunks/wiki-1.1.9-yyjrhwn4.mjs +132 -0
  454. package/dist/chunks/workflows-1.1.9-4jccerzk.mjs +1 -0
  455. package/dist/chunks/worktree-1.1.9-fq2ry5d2.mjs +1 -0
  456. package/dist/chunks/worktreeModeEnabled-1.1.9-42k3m5c3.mjs +1 -0
  457. package/dist/chunks/wrapper-1.1.9-8kjvkg3x.mjs +7 -0
  458. package/dist/cli.mjs +2 -2
  459. package/package.json +9 -9
  460. package/dist/chunks/AgentTool-1.1.8-6z4gxak1.mjs +0 -1
  461. package/dist/chunks/App-1.1.8-d07z7cbf.mjs +0 -1
  462. package/dist/chunks/ApproveApiKey-1.1.8-fsyn77jc.mjs +0 -1
  463. package/dist/chunks/AssistantSessionChooser-1.1.8-z6j52pp3.mjs +0 -1
  464. package/dist/chunks/AutoModeOptInDialog-1.1.8-nxgt8y8q.mjs +0 -1
  465. package/dist/chunks/BypassPermissionsModeDialog-1.1.8-bjsz0qfp.mjs +0 -1
  466. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.8-2mwsqmhp.mjs +0 -1
  467. package/dist/chunks/ConsoleOAuthFlow-1.1.8-24z6s4j5.mjs +0 -1
  468. package/dist/chunks/DiffDialog-1.1.8-abc9qq6c.mjs +0 -7
  469. package/dist/chunks/Doctor-1.1.8-8ja3a3f1.mjs +0 -1
  470. package/dist/chunks/ExplorerDialog-1.1.8-nsj1wjz4.mjs +0 -6
  471. package/dist/chunks/Grove-1.1.8-hkq9z22m.mjs +0 -1
  472. package/dist/chunks/ITermBackend-1.1.8-a8tfxk9n.mjs +0 -1
  473. package/dist/chunks/InvalidConfigDialog-1.1.8-nt3tgbzz.mjs +0 -1
  474. package/dist/chunks/InvalidSettingsDialog-1.1.8-ybdh3drb.mjs +0 -1
  475. package/dist/chunks/MigrationDialog-1.1.8-qvkzvfgf.mjs +0 -1
  476. package/dist/chunks/Onboarding-1.1.8-2bkd7rzz.mjs +0 -1
  477. package/dist/chunks/ProviderManager-1.1.8-v45zy151.mjs +0 -1
  478. package/dist/chunks/REPL-1.1.8-mdyssah9.mjs +0 -1
  479. package/dist/chunks/ResumeConversation-1.1.8-2d6r24bp.mjs +0 -1
  480. package/dist/chunks/SnapshotUpdateDialog-1.1.8-bkt80qn7.mjs +0 -1
  481. package/dist/chunks/TeleportProgress-1.1.8-35s6scr9.mjs +0 -1
  482. package/dist/chunks/TeleportRepoMismatchDialog-1.1.8-gddzn3ac.mjs +0 -1
  483. package/dist/chunks/TeleportResumeWrapper-1.1.8-sqrxwgy6.mjs +0 -1
  484. package/dist/chunks/TmuxBackend-1.1.8-21pehb0t.mjs +0 -9
  485. package/dist/chunks/ToolSearchTool-1.1.8-h78w5ftj.mjs +0 -1
  486. package/dist/chunks/TrustDialog-1.1.8-pqvwnbce.mjs +0 -1
  487. package/dist/chunks/activeProvider-1.1.8-rnbk6kxv.mjs +0 -1
  488. package/dist/chunks/add-dir-1.1.8-mdmcq32z.mjs +0 -1
  489. package/dist/chunks/agentTypes-1.1.8-h8nnkdmz.mjs +0 -1
  490. package/dist/chunks/agents-1.1.8-4f1tz8xm.mjs +0 -110
  491. package/dist/chunks/agents-1.1.8-6kv8h0fa.mjs +0 -3
  492. package/dist/chunks/api-1.1.8-mp8twdfj.mjs +0 -1
  493. package/dist/chunks/asciicast-1.1.8-t2mar25c.mjs +0 -1
  494. package/dist/chunks/assistant-1.1.8-t54n390j.mjs +0 -1
  495. package/dist/chunks/auth-1.1.8-pv29fraf.mjs +0 -1
  496. package/dist/chunks/auth-1.1.8-qm8h71j7.mjs +0 -1
  497. package/dist/chunks/autoMode-1.1.8-ahgyhzep.mjs +0 -48
  498. package/dist/chunks/autoUpdater-1.1.8-sdsx7fz9.mjs +0 -1
  499. package/dist/chunks/backgroundHousekeeping-1.1.8-b37pdha5.mjs +0 -1
  500. package/dist/chunks/branch-1.1.8-2emyy03d.mjs +0 -4
  501. package/dist/chunks/bridge-1.1.8-dkk2n1jt.mjs +0 -2
  502. package/dist/chunks/bridgeConfig-1.1.8-bv7zrzb6.mjs +0 -1
  503. package/dist/chunks/bridgeEnabled-1.1.8-z1sv63ct.mjs +0 -1
  504. package/dist/chunks/bridgeMain-1.1.8-rqp8q7sc.mjs +0 -88
  505. package/dist/chunks/bridgePointer-1.1.8-5hg7c4c6.mjs +0 -1
  506. package/dist/chunks/btw-1.1.8-td5e11qz.mjs +0 -1
  507. package/dist/chunks/buddy-1.1.8-jmk0bgcs.mjs +0 -3
  508. package/dist/chunks/cacache-1.1.8-qzw8r9my.mjs +0 -1
  509. package/dist/chunks/cache-probe-1.1.8-889g7w4k.mjs +0 -21
  510. package/dist/chunks/cacheStats-1.1.8-nzgv89d1.mjs +0 -4
  511. package/dist/chunks/caches-1.1.8-f09m1b12.mjs +0 -1
  512. package/dist/chunks/claudeDesktop-1.1.8-2rww6nv3.mjs +0 -1
  513. package/dist/chunks/claudemd-1.1.8-wygkqnb3.mjs +0 -1
  514. package/dist/chunks/clear-1.1.8-71j589cf.mjs +0 -1
  515. package/dist/chunks/clearTerminal-1.1.8-5j0t6dtd.mjs +0 -1
  516. package/dist/chunks/cli-1.1.8-05yz3n3m.mjs +0 -2
  517. package/dist/chunks/cli-1.1.8-0fqp4nd4.mjs +0 -2
  518. package/dist/chunks/cli-1.1.8-0pb52yqp.mjs +0 -6
  519. package/dist/chunks/cli-1.1.8-0vkk8zhj.mjs +0 -2
  520. package/dist/chunks/cli-1.1.8-0xw30z19.mjs +0 -2
  521. package/dist/chunks/cli-1.1.8-125zncm7.mjs +0 -2
  522. package/dist/chunks/cli-1.1.8-12gxg7dk.mjs +0 -3
  523. package/dist/chunks/cli-1.1.8-15q52swp.mjs +0 -2
  524. package/dist/chunks/cli-1.1.8-1as5wwed.mjs +0 -2
  525. package/dist/chunks/cli-1.1.8-1at0q43h.mjs +0 -2
  526. package/dist/chunks/cli-1.1.8-1e4hz1dh.mjs +0 -4
  527. package/dist/chunks/cli-1.1.8-1m910jhy.mjs +0 -2
  528. package/dist/chunks/cli-1.1.8-205c5ayn.mjs +0 -45
  529. package/dist/chunks/cli-1.1.8-20fqtbb0.mjs +0 -2
  530. package/dist/chunks/cli-1.1.8-231ktrsd.mjs +0 -2
  531. package/dist/chunks/cli-1.1.8-2afqpefw.mjs +0 -2
  532. package/dist/chunks/cli-1.1.8-2nq1cm30.mjs +0 -39
  533. package/dist/chunks/cli-1.1.8-2q9w1hnc.mjs +0 -2
  534. package/dist/chunks/cli-1.1.8-2smp07zs.mjs +0 -2
  535. package/dist/chunks/cli-1.1.8-2vsq8a0w.mjs +0 -2
  536. package/dist/chunks/cli-1.1.8-2zp9e9zh.mjs +0 -2
  537. package/dist/chunks/cli-1.1.8-30zhxwg9.mjs +0 -16
  538. package/dist/chunks/cli-1.1.8-35pzh2ts.mjs +0 -2
  539. package/dist/chunks/cli-1.1.8-38vrxm77.mjs +0 -3
  540. package/dist/chunks/cli-1.1.8-3btvsdx3.mjs +0 -2
  541. package/dist/chunks/cli-1.1.8-3j80fvcv.mjs +0 -2
  542. package/dist/chunks/cli-1.1.8-3tazs3h1.mjs +0 -2
  543. package/dist/chunks/cli-1.1.8-462maymv.mjs +0 -2
  544. package/dist/chunks/cli-1.1.8-49wtksqb.mjs +0 -2
  545. package/dist/chunks/cli-1.1.8-4cgcvt3g.mjs +0 -15
  546. package/dist/chunks/cli-1.1.8-4cvb8vj8.mjs +0 -2
  547. package/dist/chunks/cli-1.1.8-5862s9mq.mjs +0 -9
  548. package/dist/chunks/cli-1.1.8-59r0krp6.mjs +0 -4
  549. package/dist/chunks/cli-1.1.8-5e3xx9db.mjs +0 -8
  550. package/dist/chunks/cli-1.1.8-5s0ctz15.mjs +0 -25
  551. package/dist/chunks/cli-1.1.8-6118xjzf.mjs +0 -2
  552. package/dist/chunks/cli-1.1.8-61d813en.mjs +0 -2
  553. package/dist/chunks/cli-1.1.8-656pm2np.mjs +0 -2
  554. package/dist/chunks/cli-1.1.8-67d0fesx.mjs +0 -18
  555. package/dist/chunks/cli-1.1.8-6kg3tp3t.mjs +0 -2
  556. package/dist/chunks/cli-1.1.8-6t8wtnyz.mjs +0 -15
  557. package/dist/chunks/cli-1.1.8-6w5tvkaj.mjs +0 -2
  558. package/dist/chunks/cli-1.1.8-74586mpw.mjs +0 -9
  559. package/dist/chunks/cli-1.1.8-7536y3yr.mjs +0 -3
  560. package/dist/chunks/cli-1.1.8-7e1cxc2r.mjs +0 -2
  561. package/dist/chunks/cli-1.1.8-7ghn9sgt.mjs +0 -2
  562. package/dist/chunks/cli-1.1.8-7gv7j9wf.mjs +0 -2
  563. package/dist/chunks/cli-1.1.8-7j6ztazy.mjs +0 -2
  564. package/dist/chunks/cli-1.1.8-7kf0prpp.mjs +0 -2
  565. package/dist/chunks/cli-1.1.8-7mtk34ry.mjs +0 -4
  566. package/dist/chunks/cli-1.1.8-7sft4tp3.mjs +0 -2
  567. package/dist/chunks/cli-1.1.8-85hnxfzw.mjs +0 -2
  568. package/dist/chunks/cli-1.1.8-8ethv98x.mjs +0 -3
  569. package/dist/chunks/cli-1.1.8-8gj0g1hd.mjs +0 -2
  570. package/dist/chunks/cli-1.1.8-8x1wf6wg.mjs +0 -59
  571. package/dist/chunks/cli-1.1.8-8xe9c3tx.mjs +0 -2
  572. package/dist/chunks/cli-1.1.8-8zf4nnw6.mjs +0 -15
  573. package/dist/chunks/cli-1.1.8-98pq375b.mjs +0 -2
  574. package/dist/chunks/cli-1.1.8-9bx144d4.mjs +0 -2
  575. package/dist/chunks/cli-1.1.8-9d0730ff.mjs +0 -3
  576. package/dist/chunks/cli-1.1.8-9egsv8kb.mjs +0 -2
  577. package/dist/chunks/cli-1.1.8-9mr8erq2.mjs +0 -2
  578. package/dist/chunks/cli-1.1.8-9nnn67wx.mjs +0 -2
  579. package/dist/chunks/cli-1.1.8-9yhtna2t.mjs +0 -2
  580. package/dist/chunks/cli-1.1.8-a1qac4fc.mjs +0 -3
  581. package/dist/chunks/cli-1.1.8-a3etddaa.mjs +0 -2
  582. package/dist/chunks/cli-1.1.8-a3w8yas2.mjs +0 -24
  583. package/dist/chunks/cli-1.1.8-a52qejcb.mjs +0 -20
  584. package/dist/chunks/cli-1.1.8-akxxvxcg.mjs +0 -2
  585. package/dist/chunks/cli-1.1.8-arxr9t30.mjs +0 -2
  586. package/dist/chunks/cli-1.1.8-b46m1pa5.mjs +0 -2
  587. package/dist/chunks/cli-1.1.8-bdesaqqn.mjs +0 -2
  588. package/dist/chunks/cli-1.1.8-bf0h6s2a.mjs +0 -2
  589. package/dist/chunks/cli-1.1.8-bh494psb.mjs +0 -6
  590. package/dist/chunks/cli-1.1.8-bxbg70bf.mjs +0 -2
  591. package/dist/chunks/cli-1.1.8-bzs61r0e.mjs +0 -2
  592. package/dist/chunks/cli-1.1.8-c0knk34t.mjs +0 -2
  593. package/dist/chunks/cli-1.1.8-c3rz4cxf.mjs +0 -2
  594. package/dist/chunks/cli-1.1.8-c4xc2d6s.mjs +0 -2
  595. package/dist/chunks/cli-1.1.8-cpgd4r16.mjs +0 -2
  596. package/dist/chunks/cli-1.1.8-czskf284.mjs +0 -2
  597. package/dist/chunks/cli-1.1.8-d092mrgm.mjs +0 -2
  598. package/dist/chunks/cli-1.1.8-d2gfswc3.mjs +0 -2
  599. package/dist/chunks/cli-1.1.8-d3s7xdkk.mjs +0 -2
  600. package/dist/chunks/cli-1.1.8-d4878nn2.mjs +0 -2
  601. package/dist/chunks/cli-1.1.8-d5afbx68.mjs +0 -6
  602. package/dist/chunks/cli-1.1.8-db100c4h.mjs +0 -202
  603. package/dist/chunks/cli-1.1.8-dgbh9n27.mjs +0 -6
  604. package/dist/chunks/cli-1.1.8-dv1edxg1.mjs +0 -4
  605. package/dist/chunks/cli-1.1.8-e1by1s5j.mjs +0 -2
  606. package/dist/chunks/cli-1.1.8-e3ev48gp.mjs +0 -2
  607. package/dist/chunks/cli-1.1.8-edw6k2f7.mjs +0 -2
  608. package/dist/chunks/cli-1.1.8-ee9qyzkj.mjs +0 -2
  609. package/dist/chunks/cli-1.1.8-efjw6x2m.mjs +0 -2
  610. package/dist/chunks/cli-1.1.8-ekmm2znm.mjs +0 -2
  611. package/dist/chunks/cli-1.1.8-epqqq77y.mjs +0 -1
  612. package/dist/chunks/cli-1.1.8-ernbjcgb.mjs +0 -2
  613. package/dist/chunks/cli-1.1.8-evk4j7cq.mjs +0 -2
  614. package/dist/chunks/cli-1.1.8-f0kaq070.mjs +0 -2
  615. package/dist/chunks/cli-1.1.8-f2gv8js5.mjs +0 -2
  616. package/dist/chunks/cli-1.1.8-f75mhnpd.mjs +0 -17
  617. package/dist/chunks/cli-1.1.8-fd4rat7s.mjs +0 -2
  618. package/dist/chunks/cli-1.1.8-ffx8vwwt.mjs +0 -3
  619. package/dist/chunks/cli-1.1.8-fgw4h53q.mjs +0 -2
  620. package/dist/chunks/cli-1.1.8-fqgcppxc.mjs +0 -2
  621. package/dist/chunks/cli-1.1.8-g0t0qtsv.mjs +0 -12
  622. package/dist/chunks/cli-1.1.8-g8sjkk8z.mjs +0 -7
  623. package/dist/chunks/cli-1.1.8-gf6w1neb.mjs +0 -2
  624. package/dist/chunks/cli-1.1.8-gfzzaejq.mjs +0 -2
  625. package/dist/chunks/cli-1.1.8-gqqjkrq0.mjs +0 -4
  626. package/dist/chunks/cli-1.1.8-gtw37r6f.mjs +0 -2
  627. package/dist/chunks/cli-1.1.8-gvkpq2k1.mjs +0 -26
  628. package/dist/chunks/cli-1.1.8-h5zqw021.mjs +0 -2
  629. package/dist/chunks/cli-1.1.8-hws56n0s.mjs +0 -2
  630. package/dist/chunks/cli-1.1.8-hzkgx15v.mjs +0 -3
  631. package/dist/chunks/cli-1.1.8-j2mvpcgh.mjs +0 -2
  632. package/dist/chunks/cli-1.1.8-jk6kcgkf.mjs +0 -4
  633. package/dist/chunks/cli-1.1.8-jkp8ynyx.mjs +0 -2
  634. package/dist/chunks/cli-1.1.8-jmp76vj2.mjs +0 -2
  635. package/dist/chunks/cli-1.1.8-jtxcccqb.mjs +0 -2
  636. package/dist/chunks/cli-1.1.8-jv4y43ct.mjs +0 -2
  637. package/dist/chunks/cli-1.1.8-jzk8xgkw.mjs +0 -2
  638. package/dist/chunks/cli-1.1.8-k0wdtx54.mjs +0 -2
  639. package/dist/chunks/cli-1.1.8-k2q3jd4x.mjs +0 -2
  640. package/dist/chunks/cli-1.1.8-k3jmtdxb.mjs +0 -2
  641. package/dist/chunks/cli-1.1.8-k4q05xpp.mjs +0 -4
  642. package/dist/chunks/cli-1.1.8-k6xa7zcq.mjs +0 -2
  643. package/dist/chunks/cli-1.1.8-k878kyye.mjs +0 -2
  644. package/dist/chunks/cli-1.1.8-kgq0wj8c.mjs +0 -2
  645. package/dist/chunks/cli-1.1.8-kkzcmrxs.mjs +0 -2
  646. package/dist/chunks/cli-1.1.8-knfkgncm.mjs +0 -5721
  647. package/dist/chunks/cli-1.1.8-mayxghnz.mjs +0 -2
  648. package/dist/chunks/cli-1.1.8-mdybbj2p.mjs +0 -133
  649. package/dist/chunks/cli-1.1.8-mgz0nyed.mjs +0 -50
  650. package/dist/chunks/cli-1.1.8-mhv5xrf1.mjs +0 -4
  651. package/dist/chunks/cli-1.1.8-mkzsens1.mjs +0 -4
  652. package/dist/chunks/cli-1.1.8-mq7t5jca.mjs +0 -3
  653. package/dist/chunks/cli-1.1.8-mza3p36d.mjs +0 -2
  654. package/dist/chunks/cli-1.1.8-n14gnq6x.mjs +0 -42
  655. package/dist/chunks/cli-1.1.8-n5d4px5z.mjs +0 -2
  656. package/dist/chunks/cli-1.1.8-nh485h9b.mjs +0 -2
  657. package/dist/chunks/cli-1.1.8-nrr32j4a.mjs +0 -2
  658. package/dist/chunks/cli-1.1.8-nt403561.mjs +0 -2
  659. package/dist/chunks/cli-1.1.8-nv123ysj.mjs +0 -5
  660. package/dist/chunks/cli-1.1.8-nv181dzv.mjs +0 -2
  661. package/dist/chunks/cli-1.1.8-nv79qg54.mjs +0 -2
  662. package/dist/chunks/cli-1.1.8-nvt7cbzg.mjs +0 -2
  663. package/dist/chunks/cli-1.1.8-nx84ctb0.mjs +0 -2
  664. package/dist/chunks/cli-1.1.8-nzs4skf4.mjs +0 -2
  665. package/dist/chunks/cli-1.1.8-p3fzx1sj.mjs +0 -24
  666. package/dist/chunks/cli-1.1.8-p6bd42xj.mjs +0 -2
  667. package/dist/chunks/cli-1.1.8-pwdb2y2v.mjs +0 -2
  668. package/dist/chunks/cli-1.1.8-px4ph853.mjs +0 -6
  669. package/dist/chunks/cli-1.1.8-q6c1w0dw.mjs +0 -2
  670. package/dist/chunks/cli-1.1.8-qcyhp9k8.mjs +0 -3
  671. package/dist/chunks/cli-1.1.8-qgweycgj.mjs +0 -6
  672. package/dist/chunks/cli-1.1.8-qgzhmw5w.mjs +0 -2
  673. package/dist/chunks/cli-1.1.8-qpqcr4wt.mjs +0 -2
  674. package/dist/chunks/cli-1.1.8-r9vd968y.mjs +0 -2
  675. package/dist/chunks/cli-1.1.8-rk2akmnh.mjs +0 -67
  676. package/dist/chunks/cli-1.1.8-rk40pf8s.mjs +0 -2
  677. package/dist/chunks/cli-1.1.8-rkw1dz9x.mjs +0 -2
  678. package/dist/chunks/cli-1.1.8-rqqgbjy2.mjs +0 -133
  679. package/dist/chunks/cli-1.1.8-sc8428te.mjs +0 -12
  680. package/dist/chunks/cli-1.1.8-sw7sne7p.mjs +0 -25
  681. package/dist/chunks/cli-1.1.8-sxkrzwwg.mjs +0 -18
  682. package/dist/chunks/cli-1.1.8-sxmsdz7p.mjs +0 -2
  683. package/dist/chunks/cli-1.1.8-syhhv2xq.mjs +0 -21
  684. package/dist/chunks/cli-1.1.8-syttwgv4.mjs +0 -3
  685. package/dist/chunks/cli-1.1.8-t1a3d6s9.mjs +0 -2
  686. package/dist/chunks/cli-1.1.8-t4hx0et2.mjs +0 -2
  687. package/dist/chunks/cli-1.1.8-t62hkyhg.mjs +0 -2
  688. package/dist/chunks/cli-1.1.8-t8xxt1pf.mjs +0 -2
  689. package/dist/chunks/cli-1.1.8-t93r8p95.mjs +0 -4
  690. package/dist/chunks/cli-1.1.8-t9cqvdhd.mjs +0 -2
  691. package/dist/chunks/cli-1.1.8-ta0zzaw5.mjs +0 -17
  692. package/dist/chunks/cli-1.1.8-tf20w2jn.mjs +0 -2
  693. package/dist/chunks/cli-1.1.8-tw2q1gej.mjs +0 -2
  694. package/dist/chunks/cli-1.1.8-tx519hkn.mjs +0 -2
  695. package/dist/chunks/cli-1.1.8-v8hp2y41.mjs +0 -2
  696. package/dist/chunks/cli-1.1.8-vqpn0kq9.mjs +0 -2
  697. package/dist/chunks/cli-1.1.8-vrszw55m.mjs +0 -2
  698. package/dist/chunks/cli-1.1.8-vw9jfqt2.mjs +0 -2
  699. package/dist/chunks/cli-1.1.8-w1ktcdzx.mjs +0 -34
  700. package/dist/chunks/cli-1.1.8-w2e3c7g6.mjs +0 -2
  701. package/dist/chunks/cli-1.1.8-w99f42k9.mjs +0 -3
  702. package/dist/chunks/cli-1.1.8-w9h3mvb4.mjs +0 -2
  703. package/dist/chunks/cli-1.1.8-w9tz8aaw.mjs +0 -2
  704. package/dist/chunks/cli-1.1.8-wdfxmkc7.mjs +0 -2
  705. package/dist/chunks/cli-1.1.8-wew0nf1q.mjs +0 -12
  706. package/dist/chunks/cli-1.1.8-wkyr3v6g.mjs +0 -24
  707. package/dist/chunks/cli-1.1.8-x05h2zp4.mjs +0 -2
  708. package/dist/chunks/cli-1.1.8-x3vk9h1m.mjs +0 -24
  709. package/dist/chunks/cli-1.1.8-x9e1306p.mjs +0 -2
  710. package/dist/chunks/cli-1.1.8-xa445fak.mjs +0 -2
  711. package/dist/chunks/cli-1.1.8-xmcyv92d.mjs +0 -2
  712. package/dist/chunks/cli-1.1.8-xqdr42wv.mjs +0 -2
  713. package/dist/chunks/cli-1.1.8-xzb74dgc.mjs +0 -58
  714. package/dist/chunks/cli-1.1.8-y3tr91m8.mjs +0 -2
  715. package/dist/chunks/cli-1.1.8-y50med5h.mjs +0 -4
  716. package/dist/chunks/cli-1.1.8-yjmxxj4y.mjs +0 -2
  717. package/dist/chunks/cli-1.1.8-yptj5mm3.mjs +0 -2
  718. package/dist/chunks/cli-1.1.8-yv4mw1z8.mjs +0 -2
  719. package/dist/chunks/cli-1.1.8-yx9yzca1.mjs +0 -5
  720. package/dist/chunks/cli-1.1.8-yzrpw572.mjs +0 -2
  721. package/dist/chunks/cli-1.1.8-zav01h3c.mjs +0 -2
  722. package/dist/chunks/cli-1.1.8-zc2wv1d7.mjs +0 -2
  723. package/dist/chunks/cli-1.1.8-zcrckt5v.mjs +0 -2
  724. package/dist/chunks/cli-1.1.8-zfx1k21c.mjs +0 -2
  725. package/dist/chunks/client-1.1.8-h43htzv0.mjs +0 -1
  726. package/dist/chunks/color-1.1.8-zdg5fqma.mjs +0 -1
  727. package/dist/chunks/compact-1.1.8-1af2hhhd.mjs +0 -3
  728. package/dist/chunks/config-1.1.8-bs3j0bh7.mjs +0 -1
  729. package/dist/chunks/config-1.1.8-mwcwa3ha.mjs +0 -1
  730. package/dist/chunks/constants-1.1.8-6qsgmarg.mjs +0 -1
  731. package/dist/chunks/context-1.1.8-y2smmd8y.mjs +0 -1
  732. package/dist/chunks/context-noninteractive-1.1.8-7m4c952c.mjs +0 -1
  733. package/dist/chunks/conversation-1.1.8-2hmabtxd.mjs +0 -1
  734. package/dist/chunks/copilotHeaders-1.1.8-nh4ys57g.mjs +0 -1
  735. package/dist/chunks/copy-1.1.8-vxmgrtv3.mjs +0 -9
  736. package/dist/chunks/cost-1.1.8-70bsspf5.mjs +0 -1
  737. package/dist/chunks/createSSHSession-1.1.8-4axzt4k5.mjs +0 -1
  738. package/dist/chunks/createSession-1.1.8-c1fbb9pm.mjs +0 -1
  739. package/dist/chunks/debug-1.1.8-02x6g655.mjs +0 -1
  740. package/dist/chunks/defaultActionDeps-1.1.8-a1dxrpdz.mjs +0 -1446
  741. package/dist/chunks/desktop-1.1.8-tdtzcad0.mjs +0 -1
  742. package/dist/chunks/detectRepository-1.1.8-6h2qfjfb.mjs +0 -1
  743. package/dist/chunks/detection-1.1.8-mwwyzmcq.mjs +0 -1
  744. package/dist/chunks/diff-1.1.8-dcm7epcs.mjs +0 -1
  745. package/dist/chunks/doctor-1.1.8-a29dgfa8.mjs +0 -1
  746. package/dist/chunks/doctorDiagnostic-1.1.8-njzmwvmq.mjs +0 -1
  747. package/dist/chunks/earlyInput-1.1.8-7genxy96.mjs +0 -1
  748. package/dist/chunks/effort-1.1.8-y36797j4.mjs +0 -13
  749. package/dist/chunks/engine-1.1.8-fqyd5m01.mjs +0 -1
  750. package/dist/chunks/envLessBridgeConfig-1.1.8-ef7qwkd5.mjs +0 -1
  751. package/dist/chunks/envUtils-1.1.8-99wqsc2g.mjs +0 -1
  752. package/dist/chunks/environmentSelection-1.1.8-cc9g8r4w.mjs +0 -1
  753. package/dist/chunks/environments-1.1.8-hw1xqjcd.mjs +0 -1
  754. package/dist/chunks/errors-1.1.8-1493t2ga.mjs +0 -1
  755. package/dist/chunks/exampleCommands-1.1.8-zdxcd2qw.mjs +0 -1
  756. package/dist/chunks/execFileNoThrow-1.1.8-ntrztjxv.mjs +0 -1
  757. package/dist/chunks/exit-1.1.8-hg0x8rb4.mjs +0 -1
  758. package/dist/chunks/explorer-1.1.8-45jxm6r3.mjs +0 -1
  759. package/dist/chunks/export-1.1.8-tjbc3yps.mjs +0 -2
  760. package/dist/chunks/extra-usage-1.1.8-m07zw7z7.mjs +0 -1
  761. package/dist/chunks/extra-usage-noninteractive-1.1.8-x0nk6gpq.mjs +0 -1
  762. package/dist/chunks/fast-1.1.8-16bcey2v.mjs +0 -1
  763. package/dist/chunks/feedback-1.1.8-ybfs6p31.mjs +0 -14
  764. package/dist/chunks/firstPartyEventLogger-1.1.8-0a07kg5a.mjs +0 -1
  765. package/dist/chunks/git-1.1.8-yhtjgapj.mjs +0 -1
  766. package/dist/chunks/githubModelsCredentials-1.1.8-8m2kfpj0.mjs +0 -1
  767. package/dist/chunks/goal-1.1.8-m18wqymf.mjs +0 -4
  768. package/dist/chunks/grove-1.1.8-hq8trmvx.mjs +0 -1
  769. package/dist/chunks/growthbook-1.1.8-jnc5s1gr.mjs +0 -1
  770. package/dist/chunks/headless-1.1.8-g6y7x6p5.mjs +0 -2
  771. package/dist/chunks/heapdump-1.1.8-bdd4tbc4.mjs +0 -6
  772. package/dist/chunks/help-1.1.8-adn9yj5b.mjs +0 -1
  773. package/dist/chunks/hookChains-1.1.8-jvx26rvp.mjs +0 -3
  774. package/dist/chunks/hooks-1.1.8-10bepv2t.mjs +0 -79
  775. package/dist/chunks/hooks-1.1.8-wxrar4bk.mjs +0 -1
  776. package/dist/chunks/ide-1.1.8-e1kgf08v.mjs +0 -3
  777. package/dist/chunks/image-processor-napi-1.1.8-7qq6cd9d.mjs +0 -1
  778. package/dist/chunks/inboundAttachments-1.1.8-tmvsb72y.mjs +0 -1
  779. package/dist/chunks/index-1.1.8-075w4nhz.mjs +0 -9
  780. package/dist/chunks/index-1.1.8-0hkas4xw.mjs +0 -1
  781. package/dist/chunks/index-1.1.8-0vs7xmac.mjs +0 -30
  782. package/dist/chunks/index-1.1.8-15y0r0yw.mjs +0 -1
  783. package/dist/chunks/index-1.1.8-26b73x3g.mjs +0 -2
  784. package/dist/chunks/index-1.1.8-4etv37ta.mjs +0 -1
  785. package/dist/chunks/index-1.1.8-6p8c8t6k.mjs +0 -1
  786. package/dist/chunks/index-1.1.8-7ykg7nw4.mjs +0 -1
  787. package/dist/chunks/index-1.1.8-8t0g6s4j.mjs +0 -1
  788. package/dist/chunks/index-1.1.8-cgcvj82j.mjs +0 -23
  789. package/dist/chunks/index-1.1.8-cm3fqyj1.mjs +0 -1
  790. package/dist/chunks/index-1.1.8-cpf2mfhc.mjs +0 -1
  791. package/dist/chunks/index-1.1.8-f3qfkewa.mjs +0 -1
  792. package/dist/chunks/index-1.1.8-gyhxyh37.mjs +0 -1
  793. package/dist/chunks/index-1.1.8-hyz5kb4e.mjs +0 -1
  794. package/dist/chunks/index-1.1.8-k0eafjj9.mjs +0 -1
  795. package/dist/chunks/index-1.1.8-qhk5dps0.mjs +0 -9
  796. package/dist/chunks/index-1.1.8-rcyqt694.mjs +0 -1
  797. package/dist/chunks/index-1.1.8-sv9wq8vm.mjs +0 -1
  798. package/dist/chunks/index-1.1.8-tz0fvmye.mjs +0 -5
  799. package/dist/chunks/index-1.1.8-vaqk09sc.mjs +0 -1
  800. package/dist/chunks/index-1.1.8-vd2csf3e.mjs +0 -2
  801. package/dist/chunks/index-1.1.8-y6bn96fs.mjs +0 -1
  802. package/dist/chunks/init-1.1.8-e7kkbgzq.mjs +0 -1
  803. package/dist/chunks/initReplBridge-1.1.8-0cctke88.mjs +0 -1
  804. package/dist/chunks/ink-1.1.8-20q0h10k.mjs +0 -1
  805. package/dist/chunks/insights-1.1.8-e9hjnmbn.mjs +0 -870
  806. package/dist/chunks/install-1.1.8-fnb2k88m.mjs +0 -1
  807. package/dist/chunks/install-github-app-1.1.8-dgabwyh1.mjs +0 -149
  808. package/dist/chunks/install-slack-app-1.1.8-2vh4newn.mjs +0 -1
  809. package/dist/chunks/instrumentation-1.1.8-kth6vzt4.mjs +0 -1
  810. package/dist/chunks/interactiveHelpers-1.1.8-3g33kfsm.mjs +0 -1
  811. package/dist/chunks/keybindings-1.1.8-c69hmddw.mjs +0 -2
  812. package/dist/chunks/knowledge-1.1.8-sngea3j8.mjs +0 -2
  813. package/dist/chunks/latestVersionCache-1.1.8-1srnp86b.mjs +0 -1
  814. package/dist/chunks/loadAgentsDir-1.1.8-wmvpm36a.mjs +0 -1
  815. package/dist/chunks/loadPluginHooks-1.1.8-9hrrn6b1.mjs +0 -1
  816. package/dist/chunks/loadPluginHooks-1.1.8-ae5zxvnn.mjs +0 -1
  817. package/dist/chunks/log-1.1.8-2wvsfegd.mjs +0 -1
  818. package/dist/chunks/main-1.1.8-53c8p1hf.mjs +0 -1
  819. package/dist/chunks/managedEnv-1.1.8-3qxf1b2m.mjs +0 -1
  820. package/dist/chunks/mcp-1.1.8-12tszewv.mjs +0 -4
  821. package/dist/chunks/mcp-1.1.8-2yw2qynw.mjs +0 -1
  822. package/dist/chunks/mcp-1.1.8-awep4hb5.mjs +0 -17
  823. package/dist/chunks/mcpb-1.1.8-14gyeqdt.mjs +0 -1
  824. package/dist/chunks/memory-1.1.8-v7hbdb18.mjs +0 -72
  825. package/dist/chunks/model-1.1.8-70r35ayh.mjs +0 -2
  826. package/dist/chunks/model-1.1.8-wncbw1nv.mjs +0 -1
  827. package/dist/chunks/node-1.1.8-0bpza0gv.mjs +0 -12
  828. package/dist/chunks/oauth-1.1.8-1zj1geby.mjs +0 -1
  829. package/dist/chunks/openaiShim-1.1.8-eaxqv9jn.mjs +0 -14
  830. package/dist/chunks/output-style-1.1.8-v8kk4mmm.mjs +0 -1
  831. package/dist/chunks/package-L37ZVTF4-1.1.8-f4krrwjg.mjs +0 -1
  832. package/dist/chunks/parseConnectUrl-1.1.8-tns55hj7.mjs +0 -1
  833. package/dist/chunks/parser-1.1.8-y6rm14pk.mjs +0 -1
  834. package/dist/chunks/passes-1.1.8-hyd8bv5h.mjs +0 -1
  835. package/dist/chunks/permissions-1.1.8-e32fqvvk.mjs +0 -3
  836. package/dist/chunks/permissions-1.1.8-j0scmex7.mjs +0 -1
  837. package/dist/chunks/plan-1.1.8-1csevcqv.mjs +0 -1
  838. package/dist/chunks/plist-1.1.8-47419hwn.mjs +0 -1
  839. package/dist/chunks/plugin-1.1.8-xcj7jz75.mjs +0 -29
  840. package/dist/chunks/pluginStartupCheck-1.1.8-hqbc3c4d.mjs +0 -1
  841. package/dist/chunks/plugins-1.1.8-nrra8gx1.mjs +0 -9
  842. package/dist/chunks/preActionHook-1.1.8-2fgj7c0d.mjs +0 -2
  843. package/dist/chunks/print-1.1.8-3qy5nfzr.mjs +0 -57
  844. package/dist/chunks/privacy-settings-1.1.8-zsp6fsh1.mjs +0 -1
  845. package/dist/chunks/process-1.1.8-t92an9g0.mjs +0 -1
  846. package/dist/chunks/processBashCommand-1.1.8-5j7f3zj5.mjs +0 -1
  847. package/dist/chunks/processSlashCommand-1.1.8-97yy5hpk.mjs +0 -9
  848. package/dist/chunks/prompt-1.1.8-mges4wt5.mjs +0 -1
  849. package/dist/chunks/prompt-1.1.8-tfg4jhbt.mjs +0 -1
  850. package/dist/chunks/prompts-1.1.8-q1wrrwdr.mjs +0 -1
  851. package/dist/chunks/protocolHandler-1.1.8-ymb7yfxx.mjs +0 -13
  852. package/dist/chunks/provider-1.1.8-j317q85s.mjs +0 -2
  853. package/dist/chunks/providerProfiles-1.1.8-f2symnwy.mjs +0 -1
  854. package/dist/chunks/providerValidation-1.1.8-k2r5q4vk.mjs +0 -6
  855. package/dist/chunks/rate-limit-options-1.1.8-8chtnkxk.mjs +0 -1
  856. package/dist/chunks/registerSubcommands-1.1.8-9wd8cb3g.mjs +0 -34
  857. package/dist/chunks/registry-1.1.8-d06az15f.mjs +0 -1
  858. package/dist/chunks/release-notes-1.1.8-rmg47yy1.mjs +0 -5
  859. package/dist/chunks/reload-plugins-1.1.8-wej3bnvx.mjs +0 -2
  860. package/dist/chunks/remote-env-1.1.8-bht3nad5.mjs +0 -1
  861. package/dist/chunks/remoteBridgeCore-1.1.8-j57ggr86.mjs +0 -1
  862. package/dist/chunks/remoteSession-1.1.8-rmrphzwh.mjs +0 -1
  863. package/dist/chunks/rename-1.1.8-t9s0vyfm.mjs +0 -1
  864. package/dist/chunks/replBridgeHandle-1.1.8-0hp49nj3.mjs +0 -1
  865. package/dist/chunks/replLauncher-1.1.8-vw8ysvak.mjs +0 -1
  866. package/dist/chunks/resume-1.1.8-g13vfwpe.mjs +0 -2
  867. package/dist/chunks/rewind-1.1.8-k2bp0x9p.mjs +0 -1
  868. package/dist/chunks/rootOptions-1.1.8-jjagdnm4.mjs +0 -1
  869. package/dist/chunks/runWorkflowHeadless-1.1.8-szat8e81.mjs +0 -10
  870. package/dist/chunks/sandbox-adapter-1.1.8-gcn8vt8z.mjs +0 -1
  871. package/dist/chunks/sandbox-toggle-1.1.8-9k1xg4b5.mjs +0 -1
  872. package/dist/chunks/session-1.1.8-09hwr9j5.mjs +0 -2
  873. package/dist/chunks/sessionDiscovery-1.1.8-f8mhpp1n.mjs +0 -1
  874. package/dist/chunks/sessionFileAccessHooks-1.1.8-bahxxqhe.mjs +0 -1
  875. package/dist/chunks/sessionStorage-1.1.8-hjk3adja.mjs +0 -1
  876. package/dist/chunks/settings-1.1.8-5vc7cx5w.mjs +0 -1
  877. package/dist/chunks/setup-1.1.8-trp83ayz.mjs +0 -5
  878. package/dist/chunks/sinks-1.1.8-mwbk48v4.mjs +0 -1
  879. package/dist/chunks/skills-1.1.8-danp83p4.mjs +0 -1
  880. package/dist/chunks/startupProfiler-1.1.8-02jr5z55.mjs +0 -1
  881. package/dist/chunks/startupUpdateCheck-1.1.8-69wzwvc1.mjs +0 -1
  882. package/dist/chunks/state-1.1.8-nsdn5anj.mjs +0 -1
  883. package/dist/chunks/stats-1.1.8-t5pza2rr.mjs +0 -6
  884. package/dist/chunks/status-1.1.8-68h5gqvx.mjs +0 -1
  885. package/dist/chunks/stickers-1.1.8-0h3kkr20.mjs +0 -1
  886. package/dist/chunks/subprocessEnv-1.1.8-kabvqrxh.mjs +0 -1
  887. package/dist/chunks/tasks-1.1.8-zepre4hr.mjs +0 -1
  888. package/dist/chunks/teamHelpers-1.1.8-fcp2jsnp.mjs +0 -1
  889. package/dist/chunks/teammateModeSnapshot-1.1.8-qvmhwh7w.mjs +0 -1
  890. package/dist/chunks/teleport-1.1.8-7wdmygej.mjs +0 -1
  891. package/dist/chunks/terminalSetup-1.1.8-p7bj9pmp.mjs +0 -1
  892. package/dist/chunks/theme-1.1.8-3szcwvrn.mjs +0 -1
  893. package/dist/chunks/thinkback-1.1.8-gap3zzg0.mjs +0 -1
  894. package/dist/chunks/thinkback-play-1.1.8-v89ne249.mjs +0 -1
  895. package/dist/chunks/toolPool-1.1.8-3vtrmmhc.mjs +0 -1
  896. package/dist/chunks/toolSearch-1.1.8-c86299rc.mjs +0 -1
  897. package/dist/chunks/tools-1.1.8-fgh8e1kf.mjs +0 -1
  898. package/dist/chunks/trustedDevice-1.1.8-nysjtcf4.mjs +0 -1
  899. package/dist/chunks/turndown.cjs-1.1.8-cqczbjvz.mjs +0 -69
  900. package/dist/chunks/types-1.1.8-paq7e73r.mjs +0 -1
  901. package/dist/chunks/ultrareviewCommand-1.1.8-3k0h42t7.mjs +0 -4
  902. package/dist/chunks/update-1.1.8-c8rb7gzn.mjs +0 -72
  903. package/dist/chunks/upgrade-1.1.8-nmgtg5re.mjs +0 -1
  904. package/dist/chunks/upload-1.1.8-bwrxfje4.mjs +0 -7
  905. package/dist/chunks/upstreamproxy-1.1.8-9n7d40g6.mjs +0 -14
  906. package/dist/chunks/url-handler-napi-1.1.8-zd3gsw0r.mjs +0 -1
  907. package/dist/chunks/usage-1.1.8-n15nggj5.mjs +0 -1
  908. package/dist/chunks/util-1.1.8-jz0kvsrr.mjs +0 -1
  909. package/dist/chunks/utils-1.1.8-zmtfqjk6.mjs +0 -1
  910. package/dist/chunks/vim-1.1.8-f0gtc89f.mjs +0 -1
  911. package/dist/chunks/watchLoop-1.1.8-rw3vn991.mjs +0 -13
  912. package/dist/chunks/watcher-1.1.8-jcxwjkvy.mjs +0 -1
  913. package/dist/chunks/wiki-1.1.8-e7rt9td4.mjs +0 -132
  914. package/dist/chunks/workflows-1.1.8-crtrj2rc.mjs +0 -1
  915. package/dist/chunks/worktree-1.1.8-50mfr61r.mjs +0 -1
  916. package/dist/chunks/worktreeModeEnabled-1.1.8-a7h96pt2.mjs +0 -1
  917. package/dist/chunks/wrapper-1.1.8-x1j8x6bc.mjs +0 -7
  918. /package/dist/chunks/{cli-1.1.8-n7gqm17w.mjs → cli-1.1.9-s66nvzb4.mjs} +0 -0
@@ -1,12 +0,0 @@
1
- import{B9 as D}from"./cli-1.1.8-rqqgbjy2.mjs";import{Oka as L,Ska as JG,ala as W,dla as a}from"./cli-1.1.8-px4ph853.mjs";import{Mla as c,Nla as jG,Xla as GG}from"./cli-1.1.8-nh485h9b.mjs";import{Zra as U,_ra as g}from"./cli-1.1.8-j2mvpcgh.mjs";import{Msa as RG,usa as H}from"./cli-1.1.8-x3vk9h1m.mjs";import{Tsa as wG}from"./cli-1.1.8-d5afbx68.mjs";import{ita as WG,mta as j,nta as e}from"./cli-1.1.8-bf0h6s2a.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
- \r
4
- `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
- `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
- `;let $=n(K);K.write(`${w}\r
8
- `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
- `;let V=n(Y);Y.write(`${$}\r
11
- `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.8-k0eafjj9.mjs"),import("./index-1.1.8-075w4nhz.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
- export{hG as e9,p as f9,F as g9,gG as h9,aG as i9,pG as j9,KG as k9,MJ as l9,HJ as m9,OG as n9,I as o9,h as p9,qJ as q9,jJ as r9,UJ as s9,_J as t9,FJ as u9,NJ as v9,TJ as w9,vG as x9};
@@ -1,25 +0,0 @@
1
- import{$9 as hs,Q9 as nt,R9 as hl,S9 as bl,T9 as ml,U9 as fn,V9 as $c,W9 as fu,X9 as Al,Y9 as ys,Z9 as El,_9 as st,a_ as k,b_ as ur,c_ as Qc,d_ as Bc,e_ as ra,f_ as Xc,g_ as Yc,h_ as Zc,i_ as Jc,j_ as el,k_ as Hc,l_ as cr,m_ as Cc,n_ as Ts,o_ as gl}from"./cli-1.1.8-a52qejcb.mjs";import{p_ as ie}from"./cli-1.1.8-hzkgx15v.mjs";import{Zsa as kc,_sa as Le}from"./cli-1.1.8-5862s9mq.mjs";import{ata as Vc}from"./cli-1.1.8-y50med5h.mjs";import{cta as Fe,dta as ve,gta as De,hta as ee}from"./cli-1.1.8-ta0zzaw5.mjs";import{kta as E,nta as Bs}from"./cli-1.1.8-bf0h6s2a.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 P9};
@@ -1,18 +0,0 @@
1
- import{tJ as Q,wJ as F}from"./cli-1.1.8-knfkgncm.mjs";import{ala as b,dla as y}from"./cli-1.1.8-px4ph853.mjs";import{Cla as x,Hla as f}from"./cli-1.1.8-mkzsens1.mjs";import{Kla as w,Xla as R}from"./cli-1.1.8-nh485h9b.mjs";import{Ara as K,Fna as $,Ina as j}from"./cli-1.1.8-0fqp4nd4.mjs";import{mta as v}from"./cli-1.1.8-bf0h6s2a.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
2
-
3
- `:"",B=k===G?`
4
-
5
- ${c}`:"";return`Scheduled loop tick.
6
-
7
- ${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
8
-
9
- If .claudin/loop.md exists, read it and follow it.
10
- Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
11
- Otherwise:
12
- - continue any unfinished work from the conversation
13
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
14
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
15
-
16
- Do not start new initiatives outside that scope.
17
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
18
- export{Y as di,G as ei,D as fi,g as gi,M as hi,U as ii};
@@ -1,2 +0,0 @@
1
- import{N8 as Z,Q8 as T,W8 as f,d9 as WB}from"./cli-1.1.8-30zhxwg9.mjs";import{Jba as _,K_ as O,Kba as KB,L_ as BB,_ea as A,kfa as v,tfa as QB}from"./cli-1.1.8-db100c4h.mjs";import{jja as w,lja as JB}from"./cli-1.1.8-e1by1s5j.mjs";import{Nla as F,Xla as e}from"./cli-1.1.8-nh485h9b.mjs";import{$ma as m,Ara as a,Bna as R,Oma as I,Pma as c,_ma as M,ima as S,jma as s}from"./cli-1.1.8-0fqp4nd4.mjs";import{Zra as q,_ra as t}from"./cli-1.1.8-j2mvpcgh.mjs";import{mta as K}from"./cli-1.1.8-bf0h6s2a.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
2
- export{kB as $U,r as aV,vB as bV,TB as cV,g as dV,ZB as eV};
@@ -1,21 +0,0 @@
1
- import{DE as V,EE as $,hS as F,ks as O,ls as Z,ok as L,rK as X}from"./cli-1.1.8-knfkgncm.mjs";import{mta as Y}from"./cli-1.1.8-bf0h6s2a.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
-
3
- IMPORTANT CONTEXT:
4
- - You are a separate, lightweight agent spawned to answer this one question
5
- - The main agent is NOT interrupted - it continues working independently in the background
6
- - You share the conversation context but are a completely separate instance
7
- - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
-
9
- CRITICAL CONSTRAINTS:
10
- - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
- - This is a one-off response - there will be no follow-up turns
12
- - You can ONLY provide information based on what you already know from the conversation context
13
- - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
- - If you don't know the answer, say so - do not offer to look it up or investigate
15
-
16
- Simply answer the question with the information you have.</system-reminder>
17
-
18
- ${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
19
-
20
- `).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
21
- export{W as Th,b as Uh,C as Vh};
@@ -1,3 +0,0 @@
1
- import{Rc as m,Sc as v,Tc as wk}from"./cli-1.1.8-h5zqw021.mjs";import{$O as e,Iz as l,JG as n,Jz as Vk,KG as V,LG as i,LS as r,MS as kk,OG as Tk,QS as jk,SO as o,Tn as p,UO as t,Un as zk,XO as Dk,aP as Uk,eB as s,fB as Gk,iF as g,jF as a,rF as Lk}from"./cli-1.1.8-knfkgncm.mjs";import{M5 as d,O5 as Ok,j5 as T,p5 as Jk}from"./cli-1.1.8-30zhxwg9.mjs";import{j9 as f,k9 as Ik,u9 as c,x9 as Mk}from"./cli-1.1.8-sc8428te.mjs";import{s_ as S,x_ as _k}from"./cli-1.1.8-7kf0prpp.mjs";import{Ega as _,Hga as Hk,S_ as K,U_ as Zk,Uda as j,Z$ as P,_ea as x,baa as $k,cfa as b,hea as Kk,lfa as u,tfa as $}from"./cli-1.1.8-db100c4h.mjs";import{Bha as J,Gha as Yk}from"./cli-1.1.8-jk6kcgkf.mjs";import{Xja as L,Yja as Bk}from"./cli-1.1.8-d4878nn2.mjs";import{ala as B,dka as O,dla as U,fka as Rk}from"./cli-1.1.8-px4ph853.mjs";import{Ala as Y,Hla as Xk,ula as h}from"./cli-1.1.8-mkzsens1.mjs";import{Nla as E,Xla as Wk}from"./cli-1.1.8-nh485h9b.mjs";import{Ara as z,_oa as F,apa as y,qpa as w}from"./cli-1.1.8-0fqp4nd4.mjs";import{Zra as A,_ra as Qk}from"./cli-1.1.8-j2mvpcgh.mjs";import{nta as W}from"./cli-1.1.8-bf0h6s2a.mjs";Yk();z();$();Qk();z();z();Vk();Ok();Lk();Tk();Bk();Hk();Jk();var G=!1;function D(){if(G)return;if(G=!0,T()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||L().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();U();Kk();function C(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=x()?.env,Q=j("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();U();_k();Zk();zk();Wk();Xk();jk();wk();Ik();Dk();Mk();Uk();Gk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(m(),C(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.8-0a07kg5a.mjs"),import("./growthbook-1.1.8-jnc5s1gr.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),d(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),V())n();if(a())g();J("init_after_remote_settings_check"),u();let Q=Date.now();B("[init] configureGlobalMTLS starting"),f(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),c(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),D(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.8-9n7d40g6.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.8-kabvqrxh.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.8-fcp2jsnp.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(w()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
2
- `),kk(1);return}return import("./InvalidConfigDialog-1.1.8-nt3tgbzz.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(V()){if(w()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),v(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await xk()}catch(k){throw I=!1,k}}async function xk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.8-kth6vzt4.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
3
- export{Yq as $,Zq as aa};
@@ -1,2 +0,0 @@
1
- var o=()=>null,t=o,l=o;
2
- export{l as Za,t as _a};
@@ -1,2 +0,0 @@
1
- import{Nla as w,Xla as F}from"./cli-1.1.8-nh485h9b.mjs";import{mta as D}from"./cli-1.1.8-bf0h6s2a.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
- export{Q as wV,V as xV,L as yV};
@@ -1,2 +0,0 @@
1
- import{Ni as a,Oi as l}from"./cli-1.1.8-nv79qg54.mjs";import{Pi as m,Qi as c}from"./cli-1.1.8-nx84ctb0.mjs";import{r4 as e,t4 as n}from"./cli-1.1.8-tf20w2jn.mjs";import{mta as s}from"./cli-1.1.8-bf0h6s2a.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
2
- export{f as Li,g as Mi};
@@ -1,2 +0,0 @@
1
- import{B4 as N,C4 as V,D4 as D}from"./cli-1.1.8-f2gv8js5.mjs";import{F8 as J,H8 as $,K8 as B,d9 as x,e8 as Z,j5 as Y,p5 as _}from"./cli-1.1.8-30zhxwg9.mjs";import{Sja as Q,Yja as P}from"./cli-1.1.8-d4878nn2.mjs";import{Msa as R,usa as X}from"./cli-1.1.8-x3vk9h1m.mjs";import{mta as W}from"./cli-1.1.8-bf0h6s2a.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudin-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
2
- export{E as v4,I as w4,w as x4,C as y4,O as z4,H as A4};
@@ -1,4 +0,0 @@
1
- import{JS as jJ,KS as $V,To as IJ,Vo as cJ,dj as pJ,kL as DJ,kS as UJ,lL as BJ,mL as lJ}from"./cli-1.1.8-knfkgncm.mjs";import{$ga as dJ,Tga as G,V$ as mJ,Y_ as c,Z_ as fJ,Zda as m,_ea as YJ,caa as NJ,gaa as gJ,hea as uJ,s$ as WJ,tfa as hJ,x$ as l}from"./cli-1.1.8-db100c4h.mjs";import{jja as U,lja as PJ}from"./cli-1.1.8-e1by1s5j.mjs";import{Zja as f,aka as SJ}from"./cli-1.1.8-rk40pf8s.mjs";import{Oka as VJ,Ska as bJ,ala as Q,dla as kJ}from"./cli-1.1.8-px4ph853.mjs";import{Ala as JJ,Hla as yJ}from"./cli-1.1.8-mkzsens1.mjs";import{xna as qJ,yna as zJ}from"./cli-1.1.8-0fqp4nd4.mjs";import{ita as wJ,mta as _J}from"./cli-1.1.8-bf0h6s2a.mjs";class p{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new p;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await c(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
- `).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=c(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
- `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let $=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();cJ();uJ();zJ();KJ=wJ(pJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
- export{p as ji,MJ as ki,jV as li,vV as mi,RV as ni,GV as oi,AJ as pi,CV as qi,LV as ri,ZV as si};
@@ -1,2 +0,0 @@
1
- import{Sc as k,Tc as P}from"./cli-1.1.8-h5zqw021.mjs";import{$c as f,Zc as O,_c as A}from"./cli-1.1.8-vw9jfqt2.mjs";import{d9 as E,o8 as U,s8 as V,x8 as j}from"./cli-1.1.8-30zhxwg9.mjs";import{$ga as b,Afa as I,Rfa as h,Tga as K,Xea as N,_ea as J,ffa as Y,jca as X,kca as H,qca as x,tfa as G}from"./cli-1.1.8-db100c4h.mjs";import{Hla as L,zla as F}from"./cli-1.1.8-mkzsens1.mjs";import{Ara as T,Qoa as W}from"./cli-1.1.8-0fqp4nd4.mjs";import{mta as y}from"./cli-1.1.8-bf0h6s2a.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
- export{d as Nc,l as Oc,S as Pc,u as Qc};