@claudiolabs/claudin 1.0.13 → 1.0.14

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 (910) hide show
  1. package/dist/chunks/AgentTool-1.0.14-3eb94705.mjs +1 -0
  2. package/dist/chunks/App-1.0.14-g64njc6h.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.14-a2d84wb1.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.14-84m2b3pt.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.14-p4sev4yv.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.14-p1gf60x3.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.14-t9yhrffv.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.14-dfnr66ct.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.14-80b9fnfy.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.14-5xw1fdn8.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.14-2trgr2gt.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.14-c11ddcj0.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.14-423w55et.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.14-chapmp71.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.14-hsf9qywq.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.14-bqpqw2qh.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.14-snt041zc.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.14-p14kceqc.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.14-6zpc8shq.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.14-j0ps61bf.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.14-cgcfpjkf.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.14-za0txxy6.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.14-yg4kf1y3.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.14-8177pspx.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.14-whbn5wgb.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.14-vfjpmp6q.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.14-egtqfjhd.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.14-c06rhryc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.14-sjnjjka0.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.14-d05d7czp.mjs +1 -0
  31. package/dist/chunks/agents-1.0.14-68haybhf.mjs +110 -0
  32. package/dist/chunks/agents-1.0.14-jd8gzved.mjs +3 -0
  33. package/dist/chunks/api-1.0.14-sgt5erw2.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.14-3vzgbe4y.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.14-3snwhy6g.mjs +1 -0
  36. package/dist/chunks/auth-1.0.14-5rcgzv6s.mjs +1 -0
  37. package/dist/chunks/auth-1.0.14-z9fp9b50.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.14-swb8aya1.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.14-an9g2egz.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.14-j9566tb7.mjs +1 -0
  41. package/dist/chunks/branch-1.0.14-wab7dp2w.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.14-1vxrnevp.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.14-9a6ecffc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.14-xbqnxpd4.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.14-xsyfsnjc.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.14-rg9vg3mq.mjs +1 -0
  47. package/dist/chunks/btw-1.0.14-f5cv4zq4.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.14-cbxx5n1c.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.14-qpamcgt7.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.14-03fqsejc.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.14-1m7bkth3.mjs +4 -0
  52. package/dist/chunks/caches-1.0.14-ar7ea5ez.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.14-qw8yg1j3.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.14-nf8prbr5.mjs +1 -0
  55. package/dist/chunks/clear-1.0.14-2k1a1te1.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.14-9vjx2459.mjs +1 -0
  57. package/dist/chunks/cli-1.0.14-02mjj2td.mjs +2 -0
  58. package/dist/chunks/cli-1.0.14-03dntq34.mjs +2 -0
  59. package/dist/chunks/cli-1.0.14-056vh6pz.mjs +2 -0
  60. package/dist/chunks/cli-1.0.14-06ay9th6.mjs +2 -0
  61. package/dist/chunks/cli-1.0.14-080f910z.mjs +2 -0
  62. package/dist/chunks/cli-1.0.14-0aznk4r2.mjs +2 -0
  63. package/dist/chunks/cli-1.0.14-0b8m5g1h.mjs +2 -0
  64. package/dist/chunks/cli-1.0.14-0egax5w7.mjs +2 -0
  65. package/dist/chunks/cli-1.0.14-0gjgczkc.mjs +2 -0
  66. package/dist/chunks/cli-1.0.14-0x37zvng.mjs +2 -0
  67. package/dist/chunks/cli-1.0.14-1bdy2pdx.mjs +133 -0
  68. package/dist/chunks/cli-1.0.14-1qwq14cj.mjs +3 -0
  69. package/dist/chunks/cli-1.0.14-1t5z0ek3.mjs +3 -0
  70. package/dist/chunks/cli-1.0.14-1vt2kg6r.mjs +2 -0
  71. package/dist/chunks/cli-1.0.14-255cjybd.mjs +2 -0
  72. package/dist/chunks/cli-1.0.14-2hd7h509.mjs +2 -0
  73. package/dist/chunks/cli-1.0.14-2m0sc9nm.mjs +2 -0
  74. package/dist/chunks/cli-1.0.14-2n1n5t44.mjs +2 -0
  75. package/dist/chunks/cli-1.0.14-2nq4pjya.mjs +24 -0
  76. package/dist/chunks/cli-1.0.14-2vr2yczh.mjs +2 -0
  77. package/dist/chunks/cli-1.0.14-2x3edt9r.mjs +2 -0
  78. package/dist/chunks/cli-1.0.14-2ygex7d3.mjs +9 -0
  79. package/dist/chunks/cli-1.0.14-2zyyyhb7.mjs +3 -0
  80. package/dist/chunks/cli-1.0.14-37ekvc0d.mjs +18 -0
  81. package/dist/chunks/cli-1.0.14-3psqc9e7.mjs +39 -0
  82. package/dist/chunks/cli-1.0.14-3twn11hz.mjs +2 -0
  83. package/dist/chunks/cli-1.0.14-494f4wzb.mjs +2 -0
  84. package/dist/chunks/cli-1.0.14-4hcxmq25.mjs +2 -0
  85. package/dist/chunks/cli-1.0.14-4jr9qd6b.mjs +2 -0
  86. package/dist/chunks/cli-1.0.14-4k924cg4.mjs +2 -0
  87. package/dist/chunks/cli-1.0.14-5d4wcwg0.mjs +2 -0
  88. package/dist/chunks/cli-1.0.14-5scjg1rq.mjs +4 -0
  89. package/dist/chunks/cli-1.0.14-5z2gnwr2.mjs +2 -0
  90. package/dist/chunks/cli-1.0.14-66xxje2h.mjs +2 -0
  91. package/dist/chunks/cli-1.0.14-67n1r865.mjs +24 -0
  92. package/dist/chunks/cli-1.0.14-68k1pwnn.mjs +2 -0
  93. package/dist/chunks/cli-1.0.14-6eecgnxv.mjs +2 -0
  94. package/dist/chunks/cli-1.0.14-6knmqxp0.mjs +2 -0
  95. package/dist/chunks/cli-1.0.14-6v1pc51c.mjs +202 -0
  96. package/dist/chunks/cli-1.0.14-75b7hq1n.mjs +2 -0
  97. package/dist/chunks/cli-1.0.14-75v98tkm.mjs +6 -0
  98. package/dist/chunks/cli-1.0.14-7ce0zgxz.mjs +18 -0
  99. package/dist/chunks/cli-1.0.14-7mc80f2n.mjs +2 -0
  100. package/dist/chunks/cli-1.0.14-7qay34rj.mjs +2 -0
  101. package/dist/chunks/cli-1.0.14-7sxsfqxa.mjs +12 -0
  102. package/dist/chunks/cli-1.0.14-85hb2c4v.mjs +3 -0
  103. package/dist/chunks/cli-1.0.14-86makc2k.mjs +2 -0
  104. package/dist/chunks/cli-1.0.14-8848tddm.mjs +2 -0
  105. package/dist/chunks/cli-1.0.14-8fgg3hse.mjs +2 -0
  106. package/dist/chunks/cli-1.0.14-8mxj80zx.mjs +4 -0
  107. package/dist/chunks/cli-1.0.14-95d1hyag.mjs +2 -0
  108. package/dist/chunks/cli-1.0.14-95vxrp6k.mjs +2 -0
  109. package/dist/chunks/cli-1.0.14-9at1y60d.mjs +2 -0
  110. package/dist/chunks/cli-1.0.14-9peasp0t.mjs +15 -0
  111. package/dist/chunks/cli-1.0.14-ac1ts3ak.mjs +2 -0
  112. package/dist/chunks/cli-1.0.14-adsfxzzd.mjs +2 -0
  113. package/dist/chunks/cli-1.0.14-adwprsmr.mjs +2 -0
  114. package/dist/chunks/cli-1.0.14-ap4xyggx.mjs +2 -0
  115. package/dist/chunks/cli-1.0.14-asbc8xx1.mjs +16 -0
  116. package/dist/chunks/cli-1.0.14-ayanma4c.mjs +2 -0
  117. package/dist/chunks/cli-1.0.14-b0ry3sh2.mjs +25 -0
  118. package/dist/chunks/cli-1.0.14-b11ne5s1.mjs +12 -0
  119. package/dist/chunks/cli-1.0.14-b72b8p5z.mjs +2 -0
  120. package/dist/chunks/cli-1.0.14-b745qv7t.mjs +2 -0
  121. package/dist/chunks/cli-1.0.14-bhtptg08.mjs +2 -0
  122. package/dist/chunks/cli-1.0.14-bk3ss9tt.mjs +2 -0
  123. package/dist/chunks/cli-1.0.14-bpe70zxn.mjs +2 -0
  124. package/dist/chunks/cli-1.0.14-brabf1jv.mjs +2 -0
  125. package/dist/chunks/cli-1.0.14-c71rqr9k.mjs +2 -0
  126. package/dist/chunks/cli-1.0.14-c75wkkj6.mjs +2 -0
  127. package/dist/chunks/cli-1.0.14-ccc05p60.mjs +2 -0
  128. package/dist/chunks/cli-1.0.14-ch132841.mjs +2 -0
  129. package/dist/chunks/cli-1.0.14-cm2p0ph3.mjs +2 -0
  130. package/dist/chunks/cli-1.0.14-ct1wcd17.mjs +2 -0
  131. package/dist/chunks/cli-1.0.14-cxd5b9bk.mjs +2 -0
  132. package/dist/chunks/cli-1.0.14-d0xsytrn.mjs +2 -0
  133. package/dist/chunks/cli-1.0.14-d92vvqs4.mjs +2 -0
  134. package/dist/chunks/cli-1.0.14-dbqfyv7s.mjs +5 -0
  135. package/dist/chunks/cli-1.0.14-dbvshaqg.mjs +4 -0
  136. package/dist/chunks/cli-1.0.14-dd57p59t.mjs +2 -0
  137. package/dist/chunks/cli-1.0.14-de21tard.mjs +2 -0
  138. package/dist/chunks/cli-1.0.14-df2x4fp2.mjs +4 -0
  139. package/dist/chunks/cli-1.0.14-dk082sx4.mjs +17 -0
  140. package/dist/chunks/cli-1.0.14-dnpdnyqq.mjs +4 -0
  141. package/dist/chunks/cli-1.0.14-dthw88h2.mjs +2 -0
  142. package/dist/chunks/cli-1.0.14-dxb8x0rz.mjs +2 -0
  143. package/dist/chunks/cli-1.0.14-dzhv160v.mjs +2 -0
  144. package/dist/chunks/cli-1.0.14-e4rbgkh3.mjs +2 -0
  145. package/dist/chunks/cli-1.0.14-emgfr0hx.mjs +2 -0
  146. package/dist/chunks/cli-1.0.14-erk3k0t8.mjs +25 -0
  147. package/dist/chunks/cli-1.0.14-et0mrzhj.mjs +2 -0
  148. package/dist/chunks/cli-1.0.14-ex26fc5j.mjs +2 -0
  149. package/dist/chunks/cli-1.0.14-f2zs9vhk.mjs +2 -0
  150. package/dist/chunks/cli-1.0.14-f5jcsqk6.mjs +18 -0
  151. package/dist/chunks/cli-1.0.14-f6q37w7a.mjs +2 -0
  152. package/dist/chunks/cli-1.0.14-f6w3w08h.mjs +2 -0
  153. package/dist/chunks/cli-1.0.14-f89n34mp.mjs +3 -0
  154. package/dist/chunks/cli-1.0.14-fhfpsmvp.mjs +15 -0
  155. package/dist/chunks/cli-1.0.14-ftd45b68.mjs +2 -0
  156. package/dist/chunks/cli-1.0.14-g06w6jm4.mjs +2 -0
  157. package/dist/chunks/cli-1.0.14-g3gc4e8t.mjs +2 -0
  158. package/dist/chunks/cli-1.0.14-ghnyd53e.mjs +2 -0
  159. package/dist/chunks/cli-1.0.14-gjg1vjat.mjs +4 -0
  160. package/dist/chunks/cli-1.0.14-gpyabssm.mjs +1 -0
  161. package/dist/chunks/cli-1.0.14-gwmbkjc2.mjs +4 -0
  162. package/dist/chunks/cli-1.0.14-h1w8rqag.mjs +2 -0
  163. package/dist/chunks/cli-1.0.14-h2s5yvb9.mjs +2 -0
  164. package/dist/chunks/cli-1.0.14-h3hwpsy4.mjs +2 -0
  165. package/dist/chunks/cli-1.0.14-hdmedxpt.mjs +2 -0
  166. package/dist/chunks/cli-1.0.14-hh96zphk.mjs +2 -0
  167. package/dist/chunks/cli-1.0.14-hhk3wp4p.mjs +133 -0
  168. package/dist/chunks/cli-1.0.14-hx5s9hne.mjs +21 -0
  169. package/dist/chunks/cli-1.0.14-j51dm8c6.mjs +17 -0
  170. package/dist/chunks/cli-1.0.14-j9twyr23.mjs +2 -0
  171. package/dist/chunks/cli-1.0.14-jnpffwq9.mjs +2 -0
  172. package/dist/chunks/cli-1.0.14-jskb8031.mjs +2 -0
  173. package/dist/chunks/cli-1.0.14-jstnvbzj.mjs +2 -0
  174. package/dist/chunks/cli-1.0.14-k1e7b44j.mjs +7 -0
  175. package/dist/chunks/cli-1.0.14-k2xrkqcw.mjs +2 -0
  176. package/dist/chunks/cli-1.0.14-k6hht81r.mjs +2 -0
  177. package/dist/chunks/cli-1.0.14-k8eysm02.mjs +2 -0
  178. package/dist/chunks/cli-1.0.14-knxqt3hz.mjs +5 -0
  179. package/dist/chunks/cli-1.0.14-m470pppj.mjs +12 -0
  180. package/dist/chunks/cli-1.0.14-m6ja76zk.mjs +2 -0
  181. package/dist/chunks/cli-1.0.14-m70b5kbd.mjs +59 -0
  182. package/dist/chunks/cli-1.0.14-m7rhvjxj.mjs +2 -0
  183. package/dist/chunks/cli-1.0.14-ma7qcx6q.mjs +2 -0
  184. package/dist/chunks/cli-1.0.14-mb9174ba.mjs +2 -0
  185. package/dist/chunks/cli-1.0.14-mkw8yfc5.mjs +2 -0
  186. package/dist/chunks/cli-1.0.14-mm39qawq.mjs +2 -0
  187. package/dist/chunks/cli-1.0.14-mm9zge4j.mjs +2 -0
  188. package/dist/chunks/cli-1.0.14-msjx38tg.mjs +50 -0
  189. package/dist/chunks/cli-1.0.14-mvmk9c18.mjs +8 -0
  190. package/dist/chunks/cli-1.0.14-mw3ntwdw.mjs +2 -0
  191. package/dist/chunks/cli-1.0.14-myb8xers.mjs +2 -0
  192. package/dist/chunks/cli-1.0.14-n0fpj4mm.mjs +2 -0
  193. package/dist/chunks/cli-1.0.14-n8jgkzhf.mjs +2 -0
  194. package/dist/chunks/cli-1.0.14-nac2j4df.mjs +2 -0
  195. package/dist/chunks/cli-1.0.14-p0y766gp.mjs +2 -0
  196. package/dist/chunks/cli-1.0.14-p124te80.mjs +58 -0
  197. package/dist/chunks/cli-1.0.14-p1mk8kvb.mjs +2 -0
  198. package/dist/chunks/cli-1.0.14-p66smv2r.mjs +4 -0
  199. package/dist/chunks/cli-1.0.14-p8g9b6qs.mjs +6 -0
  200. package/dist/chunks/cli-1.0.14-pccg4txr.mjs +2 -0
  201. package/dist/chunks/cli-1.0.14-pcpqbb0b.mjs +3 -0
  202. package/dist/chunks/cli-1.0.14-peg6ppst.mjs +34 -0
  203. package/dist/chunks/cli-1.0.14-ph2nbeey.mjs +2 -0
  204. package/dist/chunks/cli-1.0.14-phhmzjmr.mjs +2 -0
  205. package/dist/chunks/cli-1.0.14-psw8gbp1.mjs +2 -0
  206. package/dist/chunks/cli-1.0.14-pxda0cqk.mjs +6 -0
  207. package/dist/chunks/cli-1.0.14-q4mq73ef.mjs +4 -0
  208. package/dist/chunks/cli-1.0.14-q4pb7169.mjs +67 -0
  209. package/dist/chunks/cli-1.0.14-q5jd6yb5.mjs +2 -0
  210. package/dist/chunks/cli-1.0.14-qwte1vj6.mjs +3 -0
  211. package/dist/chunks/cli-1.0.14-r7268arv.mjs +2 -0
  212. package/dist/chunks/cli-1.0.14-ra3s73t4.mjs +2 -0
  213. package/dist/chunks/cli-1.0.14-rfzdprh2.mjs +24 -0
  214. package/dist/chunks/cli-1.0.14-rxvbbv8x.mjs +3 -0
  215. package/dist/chunks/cli-1.0.14-s2pgxnbv.mjs +2 -0
  216. package/dist/chunks/cli-1.0.14-s7a5ag77.mjs +2 -0
  217. package/dist/chunks/cli-1.0.14-sbczqn9p.mjs +3 -0
  218. package/dist/chunks/cli-1.0.14-sn3z317d.mjs +2 -0
  219. package/dist/chunks/cli-1.0.14-srfv9wh6.mjs +2 -0
  220. package/dist/chunks/cli-1.0.14-t15qp56h.mjs +2 -0
  221. package/dist/chunks/cli-1.0.14-t1sj3p5p.mjs +3 -0
  222. package/dist/chunks/cli-1.0.14-t5m38zm5.mjs +15 -0
  223. package/dist/chunks/cli-1.0.14-tdqp99kc.mjs +2 -0
  224. package/dist/chunks/cli-1.0.14-tdv8sv8w.mjs +4 -0
  225. package/dist/chunks/cli-1.0.14-tjcgmra3.mjs +2 -0
  226. package/dist/chunks/cli-1.0.14-ttcwqfwj.mjs +4 -0
  227. package/dist/chunks/cli-1.0.14-v4p41dwz.mjs +5495 -0
  228. package/dist/chunks/cli-1.0.14-ve3fgjyt.mjs +2 -0
  229. package/dist/chunks/cli-1.0.14-vrh3vmm8.mjs +2 -0
  230. package/dist/chunks/cli-1.0.14-vvvyddeg.mjs +2 -0
  231. package/dist/chunks/cli-1.0.14-vw06jpp7.mjs +20 -0
  232. package/dist/chunks/cli-1.0.14-vz26zg7a.mjs +2 -0
  233. package/dist/chunks/cli-1.0.14-w6v1zxks.mjs +2 -0
  234. package/dist/chunks/cli-1.0.14-wa45dqxz.mjs +3 -0
  235. package/dist/chunks/cli-1.0.14-wjjb5egc.mjs +2 -0
  236. package/dist/chunks/cli-1.0.14-xa9jge5n.mjs +6 -0
  237. package/dist/chunks/cli-1.0.14-xbbbmrs2.mjs +2 -0
  238. package/dist/chunks/cli-1.0.14-xc0yjk9p.mjs +2 -0
  239. package/dist/chunks/cli-1.0.14-xf07bsa7.mjs +6 -0
  240. package/dist/chunks/cli-1.0.14-xgqrwe2j.mjs +12 -0
  241. package/dist/chunks/cli-1.0.14-xmfxgg80.mjs +2 -0
  242. package/dist/chunks/cli-1.0.14-xtwtqzg9.mjs +9 -0
  243. package/dist/chunks/cli-1.0.14-xvkary9q.mjs +2 -0
  244. package/dist/chunks/cli-1.0.14-xwakys0q.mjs +3 -0
  245. package/dist/chunks/cli-1.0.14-xy0szsmx.mjs +2 -0
  246. package/dist/chunks/cli-1.0.14-y10j25g4.mjs +2 -0
  247. package/dist/chunks/cli-1.0.14-y8dgsh0x.mjs +2 -0
  248. package/dist/chunks/cli-1.0.14-y8hsq76p.mjs +2 -0
  249. package/dist/chunks/cli-1.0.14-ya2azx0f.mjs +2 -0
  250. package/dist/chunks/cli-1.0.14-ya91z6q2.mjs +2 -0
  251. package/dist/chunks/cli-1.0.14-yxqwd7s7.mjs +45 -0
  252. package/dist/chunks/cli-1.0.14-yzy55kht.mjs +2 -0
  253. package/dist/chunks/cli-1.0.14-z4q3a7ed.mjs +2 -0
  254. package/dist/chunks/cli-1.0.14-zak89hnm.mjs +2 -0
  255. package/dist/chunks/cli-1.0.14-zar1mrp1.mjs +42 -0
  256. package/dist/chunks/cli-1.0.14-zbhe3r2k.mjs +2 -0
  257. package/dist/chunks/cli-1.0.14-zvvarkm8.mjs +2 -0
  258. package/dist/chunks/client-1.0.14-ya6cmgvc.mjs +1 -0
  259. package/dist/chunks/color-1.0.14-hwkxtn4h.mjs +1 -0
  260. package/dist/chunks/compact-1.0.14-0m3pkmtt.mjs +3 -0
  261. package/dist/chunks/config-1.0.14-5v04cvqa.mjs +1 -0
  262. package/dist/chunks/config-1.0.14-b53qm2m7.mjs +1 -0
  263. package/dist/chunks/constants-1.0.14-6dwbhe8v.mjs +1 -0
  264. package/dist/chunks/context-1.0.14-r2e42wq4.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.14-ecx4zas3.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.14-r5y211pa.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.14-293bscj5.mjs +1 -0
  268. package/dist/chunks/copy-1.0.14-4ac7bg5d.mjs +9 -0
  269. package/dist/chunks/cost-1.0.14-cpzf024x.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.14-7peb99vv.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.14-pbp99z80.mjs +1 -0
  272. package/dist/chunks/debug-1.0.14-935d0xmm.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.14-k2n8eszz.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.14-877wpqh4.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.14-y8xp07vm.mjs +1 -0
  276. package/dist/chunks/detection-1.0.14-v0x8bekt.mjs +1 -0
  277. package/dist/chunks/diff-1.0.14-zygrxp72.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.14-9bd8ns97.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.14-3d8wvpdr.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.14-ctf7gf3b.mjs +1 -0
  281. package/dist/chunks/effort-1.0.14-1bzhbssf.mjs +10 -0
  282. package/dist/chunks/engine-1.0.14-xpw6spn1.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.14-kvp9ngpw.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.14-x69rnjtn.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.14-17kmf2g0.mjs +1 -0
  286. package/dist/chunks/environments-1.0.14-r2dd7zte.mjs +1 -0
  287. package/dist/chunks/errors-1.0.14-zt9a9ar1.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.14-88939k92.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.0.14-ved7dedv.mjs +1 -0
  290. package/dist/chunks/exit-1.0.14-ja0e3xan.mjs +1 -0
  291. package/dist/chunks/explorer-1.0.14-ae3278vr.mjs +1 -0
  292. package/dist/chunks/export-1.0.14-f5xsdta1.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.0.14-jzhsm8m8.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.0.14-kgecf4s4.mjs +1 -0
  295. package/dist/chunks/fast-1.0.14-2z2mjcs0.mjs +1 -0
  296. package/dist/chunks/feedback-1.0.14-va4ywxx6.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.0.14-4k32daar.mjs +1 -0
  298. package/dist/chunks/git-1.0.14-2j16rmzn.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.0.14-yvj22nyn.mjs +1 -0
  300. package/dist/chunks/goal-1.0.14-k13hsq40.mjs +4 -0
  301. package/dist/chunks/grove-1.0.14-3372rcrv.mjs +1 -0
  302. package/dist/chunks/growthbook-1.0.14-0c5sw654.mjs +1 -0
  303. package/dist/chunks/headless-1.0.14-qf20wd4a.mjs +2 -0
  304. package/dist/chunks/heapdump-1.0.14-8q5mzb23.mjs +6 -0
  305. package/dist/chunks/help-1.0.14-fv0nfdpx.mjs +1 -0
  306. package/dist/chunks/hookChains-1.0.14-w7scty4f.mjs +3 -0
  307. package/dist/chunks/hooks-1.0.14-8dvj8g9e.mjs +1 -0
  308. package/dist/chunks/hooks-1.0.14-nferkpmp.mjs +79 -0
  309. package/dist/chunks/ide-1.0.14-bd6ym0zg.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.0.14-cdgsapbd.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.0.14-gqjk256b.mjs +1 -0
  312. package/dist/chunks/index-1.0.14-0gktvbaw.mjs +30 -0
  313. package/dist/chunks/index-1.0.14-2xbsva4c.mjs +1 -0
  314. package/dist/chunks/index-1.0.14-4jb8g44p.mjs +1 -0
  315. package/dist/chunks/index-1.0.14-4tsn7fzy.mjs +1 -0
  316. package/dist/chunks/index-1.0.14-76ed957m.mjs +1 -0
  317. package/dist/chunks/index-1.0.14-95wh21ee.mjs +1 -0
  318. package/dist/chunks/index-1.0.14-9mv1tydz.mjs +1 -0
  319. package/dist/chunks/index-1.0.14-bb2w8nxz.mjs +1 -0
  320. package/dist/chunks/index-1.0.14-bphvske3.mjs +1 -0
  321. package/dist/chunks/index-1.0.14-e9qzyyvx.mjs +1 -0
  322. package/dist/chunks/index-1.0.14-fr24eeaa.mjs +1 -0
  323. package/dist/chunks/index-1.0.14-hmqgg1qn.mjs +1 -0
  324. package/dist/chunks/index-1.0.14-mt1a6s7m.mjs +5 -0
  325. package/dist/chunks/index-1.0.14-njtcq7xt.mjs +17 -0
  326. package/dist/chunks/index-1.0.14-pfztmgj3.mjs +2 -0
  327. package/dist/chunks/index-1.0.14-pjvqwa0j.mjs +1 -0
  328. package/dist/chunks/index-1.0.14-q3b475mg.mjs +1 -0
  329. package/dist/chunks/index-1.0.14-qafjae7s.mjs +1 -0
  330. package/dist/chunks/index-1.0.14-t8y5yaxp.mjs +9 -0
  331. package/dist/chunks/index-1.0.14-tqttfghe.mjs +1 -0
  332. package/dist/chunks/index-1.0.14-xfx695vz.mjs +9 -0
  333. package/dist/chunks/index-1.0.14-xn2m6vyc.mjs +1 -0
  334. package/dist/chunks/index-1.0.14-y355w9gp.mjs +2 -0
  335. package/dist/chunks/init-1.0.14-1efcnp5z.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.0.14-kv23c7gd.mjs +1 -0
  337. package/dist/chunks/ink-1.0.14-9k6231ba.mjs +1 -0
  338. package/dist/chunks/insights-1.0.14-4ha85mj0.mjs +870 -0
  339. package/dist/chunks/install-1.0.14-nwvqnt31.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.0.14-8acvsf50.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.0.14-fnsb39mp.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.0.14-mtgqqxya.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.0.14-2wrq07e2.mjs +1 -0
  344. package/dist/chunks/keybindings-1.0.14-129wqq67.mjs +2 -0
  345. package/dist/chunks/knowledge-1.0.14-c3rf5j58.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.0.14-jvj37pje.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.0.14-xvrmxww0.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.14-8940ydgw.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.14-k3qzacrz.mjs +1 -0
  350. package/dist/chunks/log-1.0.14-he8jphq3.mjs +1 -0
  351. package/dist/chunks/main-1.0.14-dh291att.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.0.14-r390r05h.mjs +1 -0
  353. package/dist/chunks/mcp-1.0.14-dbp8b6yk.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.14-nfyhp5dt.mjs +17 -0
  355. package/dist/chunks/mcp-1.0.14-qhvm23d4.mjs +4 -0
  356. package/dist/chunks/mcpb-1.0.14-g7pvytac.mjs +1 -0
  357. package/dist/chunks/memory-1.0.14-arny0fef.mjs +72 -0
  358. package/dist/chunks/model-1.0.14-ek671gpz.mjs +1 -0
  359. package/dist/chunks/model-1.0.14-xdb536jv.mjs +2 -0
  360. package/dist/chunks/node-1.0.14-8awswbzx.mjs +12 -0
  361. package/dist/chunks/oauth-1.0.14-yr32rz1f.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.0.14-gx1b20d6.mjs +14 -0
  363. package/dist/chunks/output-style-1.0.14-63dfj4v0.mjs +1 -0
  364. package/dist/chunks/package-2VNCXFNY-1.0.14-18jyfqq1.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.0.14-hb82n0gc.mjs +1 -0
  366. package/dist/chunks/parser-1.0.14-zn3zyc77.mjs +1 -0
  367. package/dist/chunks/passes-1.0.14-bp7y0ga8.mjs +1 -0
  368. package/dist/chunks/permissions-1.0.14-7036mxvb.mjs +3 -0
  369. package/dist/chunks/permissions-1.0.14-z5gr66mc.mjs +1 -0
  370. package/dist/chunks/plan-1.0.14-xrx5wce4.mjs +1 -0
  371. package/dist/chunks/plist-1.0.14-6yv7va29.mjs +1 -0
  372. package/dist/chunks/plugin-1.0.14-mmkj7mtk.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.0.14-1qed1emq.mjs +1 -0
  374. package/dist/chunks/plugins-1.0.14-5aje195c.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.0.14-1cwrs307.mjs +2 -0
  376. package/dist/chunks/print-1.0.14-4f5y78jp.mjs +57 -0
  377. package/dist/chunks/privacy-settings-1.0.14-yzmdw47w.mjs +1 -0
  378. package/dist/chunks/process-1.0.14-7trwqmx6.mjs +1 -0
  379. package/dist/chunks/processBashCommand-1.0.14-yn16nwvc.mjs +1 -0
  380. package/dist/chunks/processSlashCommand-1.0.14-b1fm20sp.mjs +9 -0
  381. package/dist/chunks/prompt-1.0.14-0cnzws1z.mjs +1 -0
  382. package/dist/chunks/prompt-1.0.14-7anakmng.mjs +1 -0
  383. package/dist/chunks/prompts-1.0.14-qmww8jvd.mjs +1 -0
  384. package/dist/chunks/protocolHandler-1.0.14-4pff7d61.mjs +13 -0
  385. package/dist/chunks/provider-1.0.14-jkjnss6d.mjs +2 -0
  386. package/dist/chunks/providerProfiles-1.0.14-9g8b8pp7.mjs +1 -0
  387. package/dist/chunks/providerValidation-1.0.14-p1fpm7fn.mjs +6 -0
  388. package/dist/chunks/rate-limit-options-1.0.14-bhz1z031.mjs +1 -0
  389. package/dist/chunks/registerSubcommands-1.0.14-4caz1dxv.mjs +34 -0
  390. package/dist/chunks/registry-1.0.14-wgdd0gj4.mjs +1 -0
  391. package/dist/chunks/release-notes-1.0.14-z4zrd1et.mjs +5 -0
  392. package/dist/chunks/reload-plugins-1.0.14-wk9ec32x.mjs +2 -0
  393. package/dist/chunks/remote-env-1.0.14-k0dbz57q.mjs +1 -0
  394. package/dist/chunks/remoteBridgeCore-1.0.14-8r8xr5x5.mjs +1 -0
  395. package/dist/chunks/remoteSession-1.0.14-gsr8k9bv.mjs +1 -0
  396. package/dist/chunks/rename-1.0.14-pv4tpegh.mjs +1 -0
  397. package/dist/chunks/replBridgeHandle-1.0.14-8rwsfzb9.mjs +1 -0
  398. package/dist/chunks/replLauncher-1.0.14-kmxxcw37.mjs +1 -0
  399. package/dist/chunks/resume-1.0.14-gkb9015m.mjs +2 -0
  400. package/dist/chunks/rewind-1.0.14-fc3n2baf.mjs +1 -0
  401. package/dist/chunks/rootOptions-1.0.14-qv4qteet.mjs +1 -0
  402. package/dist/chunks/runWorkflowHeadless-1.0.14-5bp85pep.mjs +10 -0
  403. package/dist/chunks/sandbox-adapter-1.0.14-qgf6y50z.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.14-0wv4aywf.mjs +1 -0
  405. package/dist/chunks/session-1.0.14-1ckwnpxq.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.14-dv7ya6k8.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.14-zcgj9ema.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.14-5tq43xzg.mjs +1 -0
  409. package/dist/chunks/settings-1.0.14-mtmb6qxs.mjs +1 -0
  410. package/dist/chunks/setup-1.0.14-qtq4ak7y.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.14-7xzz4wz8.mjs +1 -0
  412. package/dist/chunks/skills-1.0.14-5d3kh6pf.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.14-2jhv1vxz.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.14-zdan85zj.mjs +1 -0
  415. package/dist/chunks/state-1.0.14-8znfttb5.mjs +1 -0
  416. package/dist/chunks/stats-1.0.14-xam611xt.mjs +6 -0
  417. package/dist/chunks/status-1.0.14-68dgf0ne.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.14-rc2n423z.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.14-4kv8wbzd.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.14-s5s4e0t3.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.14-1hcw931t.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.14-mjzq0rsa.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.14-w1512p66.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.14-s4b4y9r3.mjs +1 -0
  425. package/dist/chunks/theme-1.0.14-e9d1ap8d.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.14-5m6b79h4.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.14-tgw5nk8p.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.14-7jvk5109.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.14-jzsffb3f.mjs +1 -0
  430. package/dist/chunks/tools-1.0.14-04f8v0x1.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.14-y3ewcxzd.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.14-4refdt7a.mjs +69 -0
  433. package/dist/chunks/types-1.0.14-6qqdzh50.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.14-t1td5gnq.mjs +4 -0
  435. package/dist/chunks/update-1.0.14-dc0g2ak6.mjs +88 -0
  436. package/dist/chunks/upgrade-1.0.14-cya8ar2w.mjs +1 -0
  437. package/dist/chunks/upload-1.0.14-tx3ytzwx.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.14-9w4fsavp.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.14-w6s4yfb9.mjs +1 -0
  440. package/dist/chunks/usage-1.0.14-19mk4yn4.mjs +1 -0
  441. package/dist/chunks/util-1.0.14-gpjz2670.mjs +1 -0
  442. package/dist/chunks/utils-1.0.14-c4k982gy.mjs +1 -0
  443. package/dist/chunks/vim-1.0.14-90q3x97q.mjs +1 -0
  444. package/dist/chunks/watchLoop-1.0.14-9kg2qyp8.mjs +13 -0
  445. package/dist/chunks/watcher-1.0.14-0330jfrb.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.14-pnbbj6wm.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.14-fvdvr8sa.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.14-ym8ap3k8.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.14-05552egx.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.14-k4kthmxq.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +0 -1
  454. package/dist/chunks/App-1.0.13-ka050dp3.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.13-hdw88war.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +0 -1
  483. package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +0 -3
  484. package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +0 -110
  485. package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.13-91499j0p.mjs +0 -1
  488. package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +0 -1
  489. package/dist/chunks/auth-1.0.13-s1vedchg.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +0 -1
  493. package/dist/chunks/branch-1.0.13-encr40nd.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +0 -1
  499. package/dist/chunks/btw-1.0.13-55x872ns.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +0 -4
  504. package/dist/chunks/caches-1.0.13-md3zkabd.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +0 -1
  507. package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +0 -1
  509. package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +0 -2
  510. package/dist/chunks/cli-1.0.13-0357cnwe.mjs +0 -2
  511. package/dist/chunks/cli-1.0.13-14c24kge.mjs +0 -2
  512. package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +0 -2
  513. package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +0 -3
  514. package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +0 -2
  515. package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +0 -3
  516. package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +0 -4
  517. package/dist/chunks/cli-1.0.13-23ev2ept.mjs +0 -45
  518. package/dist/chunks/cli-1.0.13-29x94tf7.mjs +0 -2
  519. package/dist/chunks/cli-1.0.13-2x789qav.mjs +0 -2
  520. package/dist/chunks/cli-1.0.13-2xpprn71.mjs +0 -1
  521. package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +0 -3
  522. package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +0 -18
  523. package/dist/chunks/cli-1.0.13-3767t4yj.mjs +0 -4
  524. package/dist/chunks/cli-1.0.13-3c13b00m.mjs +0 -2
  525. package/dist/chunks/cli-1.0.13-3dmmr756.mjs +0 -2
  526. package/dist/chunks/cli-1.0.13-3essvqs1.mjs +0 -2
  527. package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +0 -2
  528. package/dist/chunks/cli-1.0.13-3fs84evm.mjs +0 -2
  529. package/dist/chunks/cli-1.0.13-3pspajgg.mjs +0 -15
  530. package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +0 -2
  531. package/dist/chunks/cli-1.0.13-449f1p6g.mjs +0 -2
  532. package/dist/chunks/cli-1.0.13-466jbd1q.mjs +0 -2
  533. package/dist/chunks/cli-1.0.13-4dp5a597.mjs +0 -6
  534. package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +0 -2
  535. package/dist/chunks/cli-1.0.13-57993qn6.mjs +0 -2
  536. package/dist/chunks/cli-1.0.13-57ez593b.mjs +0 -3
  537. package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +0 -4
  538. package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +0 -58
  539. package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +0 -2
  540. package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +0 -2
  541. package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +0 -2
  542. package/dist/chunks/cli-1.0.13-696y87my.mjs +0 -18
  543. package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +0 -2
  544. package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +0 -2
  545. package/dist/chunks/cli-1.0.13-6vb140br.mjs +0 -25
  546. package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +0 -2
  547. package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +0 -2
  548. package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +0 -2
  549. package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +0 -2
  550. package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +0 -2
  551. package/dist/chunks/cli-1.0.13-7rg014zx.mjs +0 -5
  552. package/dist/chunks/cli-1.0.13-7xfra4by.mjs +0 -2
  553. package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +0 -2
  554. package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +0 -2
  555. package/dist/chunks/cli-1.0.13-83vckpyr.mjs +0 -6
  556. package/dist/chunks/cli-1.0.13-8s33s84f.mjs +0 -2
  557. package/dist/chunks/cli-1.0.13-93twxc7q.mjs +0 -2
  558. package/dist/chunks/cli-1.0.13-98a94f4b.mjs +0 -2
  559. package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +0 -2
  560. package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +0 -9
  561. package/dist/chunks/cli-1.0.13-9t0q538w.mjs +0 -25
  562. package/dist/chunks/cli-1.0.13-a2j673qk.mjs +0 -2
  563. package/dist/chunks/cli-1.0.13-a5641ktm.mjs +0 -2
  564. package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +0 -2
  565. package/dist/chunks/cli-1.0.13-a8t9066b.mjs +0 -2
  566. package/dist/chunks/cli-1.0.13-afdk25h0.mjs +0 -2
  567. package/dist/chunks/cli-1.0.13-avxss6zg.mjs +0 -9
  568. package/dist/chunks/cli-1.0.13-bj2neb84.mjs +0 -2
  569. package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +0 -2
  570. package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +0 -15
  571. package/dist/chunks/cli-1.0.13-cm3q208z.mjs +0 -2
  572. package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +0 -34
  573. package/dist/chunks/cli-1.0.13-d016ffc7.mjs +0 -3
  574. package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +0 -2
  575. package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +0 -2
  576. package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +0 -2
  577. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +0 -2
  578. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +0 -4
  579. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +0 -2
  580. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +0 -2
  581. package/dist/chunks/cli-1.0.13-e464ab16.mjs +0 -2
  582. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +0 -2
  583. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +0 -2
  584. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +0 -2
  585. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +0 -3
  586. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +0 -12
  587. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +0 -133
  588. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +0 -67
  589. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +0 -2
  590. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +0 -2
  591. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +0 -2
  592. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +0 -2
  593. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +0 -2
  594. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +0 -8
  595. package/dist/chunks/cli-1.0.13-g7daabde.mjs +0 -3
  596. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +0 -2
  597. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +0 -2
  598. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +0 -16
  599. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +0 -2
  600. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +0 -39
  601. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +0 -2
  602. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +0 -12
  603. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +0 -12
  604. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +0 -2
  605. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +0 -2
  606. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +0 -2
  607. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +0 -2
  608. package/dist/chunks/cli-1.0.13-k71bq854.mjs +0 -2
  609. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +0 -2
  610. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +0 -2
  611. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +0 -12
  612. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +0 -2
  613. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +0 -3
  614. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +0 -7
  615. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +0 -2
  616. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +0 -5495
  617. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +0 -2
  618. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +0 -4
  619. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +0 -2
  620. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +0 -59
  621. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +0 -2
  622. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +0 -2
  623. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +0 -2
  624. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +0 -15
  625. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +0 -202
  626. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +0 -2
  627. package/dist/chunks/cli-1.0.13-p7b51har.mjs +0 -2
  628. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +0 -2
  629. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +0 -6
  630. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +0 -2
  631. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +0 -2
  632. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +0 -17
  633. package/dist/chunks/cli-1.0.13-q40za40w.mjs +0 -50
  634. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +0 -2
  635. package/dist/chunks/cli-1.0.13-qx079tft.mjs +0 -2
  636. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +0 -2
  637. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +0 -2
  638. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +0 -2
  639. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +0 -4
  640. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +0 -2
  641. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +0 -2
  642. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +0 -24
  643. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +0 -2
  644. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +0 -2
  645. package/dist/chunks/cli-1.0.13-s15merj9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +0 -2
  647. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +0 -2
  648. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +0 -24
  649. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +0 -2
  650. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +0 -20
  651. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +0 -2
  652. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +0 -24
  653. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +0 -2
  654. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +0 -2
  655. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +0 -2
  656. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +0 -2
  657. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +0 -2
  658. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +0 -17
  659. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +0 -2
  660. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +0 -2
  661. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +0 -3
  662. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +0 -2
  663. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +0 -2
  664. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +0 -2
  665. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +0 -2
  666. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +0 -2
  667. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +0 -21
  668. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +0 -2
  669. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +0 -2
  670. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +0 -4
  671. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +0 -133
  672. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +0 -2
  673. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +0 -2
  674. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +0 -2
  675. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +0 -2
  676. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +0 -2
  677. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +0 -2
  678. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +0 -2
  679. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +0 -5
  680. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +0 -2
  681. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +0 -2
  682. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +0 -2
  683. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +0 -2
  684. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +0 -6
  685. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +0 -2
  686. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +0 -2
  687. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +0 -4
  688. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +0 -3
  689. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +0 -2
  690. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +0 -2
  691. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +0 -2
  692. package/dist/chunks/cli-1.0.13-xr55511t.mjs +0 -2
  693. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +0 -42
  694. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +0 -18
  695. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +0 -6
  696. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +0 -2
  697. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +0 -4
  698. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +0 -2
  699. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +0 -4
  700. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +0 -4
  701. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +0 -3
  702. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +0 -2
  703. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +0 -2
  704. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +0 -3
  705. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +0 -2
  706. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +0 -2
  707. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +0 -2
  708. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +0 -2
  709. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +0 -2
  710. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +0 -1
  711. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +0 -1
  712. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +0 -3
  713. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +0 -1
  714. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +0 -1
  715. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +0 -1
  716. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +0 -1
  718. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +0 -1
  720. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +0 -9
  721. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +0 -1
  723. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +0 -1
  724. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +0 -1446
  726. package/dist/chunks/desktop-1.0.13-e005km58.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +0 -1
  728. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +0 -1
  729. package/dist/chunks/diff-1.0.13-9jypv082.mjs +0 -1
  730. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +0 -1
  733. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +0 -10
  734. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +0 -1
  736. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +0 -1
  738. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +0 -1
  739. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +0 -1
  742. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +0 -1
  743. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +0 -1
  744. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +0 -1
  747. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +0 -1
  748. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +0 -1
  750. package/dist/chunks/git-1.0.13-9196pgzv.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +0 -1
  752. package/dist/chunks/goal-1.0.13-cty957vz.mjs +0 -4
  753. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +0 -1
  754. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +0 -1
  755. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +0 -2
  756. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +0 -6
  757. package/dist/chunks/help-1.0.13-em333cwb.mjs +0 -1
  758. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +0 -3
  759. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +0 -79
  760. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +0 -1
  761. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +0 -1
  764. package/dist/chunks/index-1.0.13-361h9v63.mjs +0 -1
  765. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +0 -1
  766. package/dist/chunks/index-1.0.13-55th4hhq.mjs +0 -1
  767. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +0 -1
  768. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +0 -1
  769. package/dist/chunks/index-1.0.13-792fhv61.mjs +0 -1
  770. package/dist/chunks/index-1.0.13-8k0904bs.mjs +0 -1
  771. package/dist/chunks/index-1.0.13-ace8202d.mjs +0 -2
  772. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +0 -1
  773. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +0 -1
  774. package/dist/chunks/index-1.0.13-ej84k860.mjs +0 -1
  775. package/dist/chunks/index-1.0.13-fnd36467.mjs +0 -2
  776. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +0 -30
  777. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +0 -1
  778. package/dist/chunks/index-1.0.13-j0146ntq.mjs +0 -1
  779. package/dist/chunks/index-1.0.13-jackh0p4.mjs +0 -17
  780. package/dist/chunks/index-1.0.13-kfmh713v.mjs +0 -9
  781. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +0 -1
  782. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +0 -1
  783. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +0 -1
  784. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +0 -5
  785. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +0 -9
  786. package/dist/chunks/index-1.0.13-ykat42gv.mjs +0 -1
  787. package/dist/chunks/init-1.0.13-pyw980be.mjs +0 -1
  788. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +0 -1
  789. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +0 -1
  790. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +0 -870
  791. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +0 -1
  792. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +0 -149
  793. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +0 -1
  794. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +0 -1
  796. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +0 -2
  797. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +0 -1
  802. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +0 -1
  803. package/dist/chunks/main-1.0.13-h958ytkv.mjs +0 -1
  804. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +0 -1
  805. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +0 -4
  806. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +0 -17
  808. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +0 -1
  809. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +0 -72
  810. package/dist/chunks/model-1.0.13-28wkmva5.mjs +0 -2
  811. package/dist/chunks/model-1.0.13-wbne69bf.mjs +0 -1
  812. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +0 -12
  813. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +0 -1
  814. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +0 -14
  815. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +0 -1
  816. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +0 -1
  818. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +0 -1
  819. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +0 -1
  820. package/dist/chunks/permissions-1.0.13-091a123r.mjs +0 -1
  821. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +0 -3
  822. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +0 -1
  823. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +0 -1
  824. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +0 -1
  826. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +0 -9
  827. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +0 -2
  828. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +0 -57
  829. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +0 -1
  830. package/dist/chunks/process-1.0.13-yvqmferw.mjs +0 -1
  831. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +0 -9
  833. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +0 -1
  834. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +0 -1
  835. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +0 -1
  836. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +0 -13
  837. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +0 -2
  838. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +0 -1
  839. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +0 -34
  842. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +0 -1
  843. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +0 -5
  844. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +0 -2
  845. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +0 -1
  847. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +0 -1
  848. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +0 -1
  850. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +0 -1
  851. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +0 -2
  852. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +0 -1
  853. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +0 -1
  854. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +0 -10
  855. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +0 -1
  856. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +0 -1
  857. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +0 -2
  858. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +0 -1
  859. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +0 -1
  860. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +0 -1
  861. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +0 -1
  862. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +0 -5
  863. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +0 -1
  864. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +0 -1
  865. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +0 -1
  866. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +0 -1
  867. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +0 -1
  868. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +0 -6
  869. package/dist/chunks/status-1.0.13-t69r10gd.mjs +0 -1
  870. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +0 -1
  871. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +0 -1
  872. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +0 -1
  873. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +0 -1
  874. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +0 -1
  875. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +0 -1
  876. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +0 -1
  877. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +0 -1
  878. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +0 -1
  879. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +0 -1
  880. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +0 -1
  881. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +0 -1
  882. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +0 -1
  883. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +0 -1
  884. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +0 -69
  885. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +0 -1
  886. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +0 -4
  887. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +0 -88
  888. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +0 -1
  889. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +0 -7
  890. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +0 -14
  891. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +0 -1
  892. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +0 -1
  893. package/dist/chunks/util-1.0.13-87gxb90q.mjs +0 -1
  894. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +0 -1
  895. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +0 -1
  896. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +0 -13
  897. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.13-ap2xrh2s.mjs → cli-1.0.14-0e04z9y7.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.13-tzenmc0b.mjs → cli-1.0.14-b2z4y3qj.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.13-v34fp7gq.mjs → cli-1.0.14-d2q4akvz.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.13-n6bzzv7p.mjs → cli-1.0.14-fnp8x3aj.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.13-d9nvpqpw.mjs → cli-1.0.14-ks6tgvs0.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.13-wv7skbb9.mjs → cli-1.0.14-skf34yk4.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.13-q9et56bj.mjs → cli-1.0.14-w1y6p2xa.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.13-4z6c4gzk.mjs → cli-1.0.14-z311x3av.mjs} +0 -0
@@ -0,0 +1,16 @@
1
+ import{W8 as E2,Y8 as w8}from"./cli-1.0.14-m470pppj.mjs";import{$8 as eZ,_8 as h}from"./cli-1.0.14-p8g9b6qs.mjs";import{k9 as n5,m9 as N8}from"./cli-1.0.14-vz26zg7a.mjs";import{$9 as h4,Eea as e1,Fba as HZ,Hda as B0,L_ as U5,N_ as $$,Oca as r1,Qda as s4,Sda as J$,Sfa as c5,Tda as T1,Tea as i,Uda as d8,Ufa as j4,Vea as Z4,Wea as wZ,Xca as RZ,_ea as $4,_fa as d5,a_ as a,aba as y1,b_ as L2,bba as c8,bga as L,c_ as b0,d_ as f4,e_ as s2,ega as $0,j_ as R0,k_ as x1,nfa as B4,oba as o1,pea as d,pfa as J4,qga as N,sda as O,sfa as k2,tfa as Q$,uda as j2,uea as m5,v_ as N5,vea as C,xda as Q0,y_ as Z$,yda as S,yea as K,yga as a0}from"./cli-1.0.14-6v1pc51c.mjs";import{Aha as y4,Kha as I1,yha as A0}from"./cli-1.0.14-ya91z6q2.mjs";import{Oia as T5,Pia as a4,Qia as j0,Sia as H8,Tia as R8,Via as b,Wia as S0}from"./cli-1.0.14-sn3z317d.mjs";import{Xia as x,_ia as B2}from"./cli-1.0.14-k8eysm02.mjs";import{Eja as D5,Ija as rZ,Mja as t2,Qja as h8,_ja as z,aka as d0,bka as Z0}from"./cli-1.0.14-pxda0cqk.mjs";import{Aka as V1,Fka as W1,yka as p}from"./cli-1.0.14-tdv8sv8w.mjs";import{Ika as L5,Lka as F,Nka as u,Pka as O2,Ska as t4,Vka as g}from"./cli-1.0.14-dzhv160v.mjs";import{$oa as x2,Mna as s1,Moa as Q1,Noa as Y1,Ooa as X1,Poa as q1,Qna as I4,Vna as y0,Wna as J2,ooa as f,vma as X0,voa as _1,wma as F1,yna as m1,yqa as J0}from"./cli-1.0.14-5z2gnwr2.mjs";import{Xqa as y,Yqa as t0}from"./cli-1.0.14-bhtptg08.mjs";import{Kra as q2,sra as P}from"./cli-1.0.14-7ce0zgxz.mjs";import{esa as I0,gsa as d2,hsa as R,isa as e}from"./cli-1.0.14-ks6tgvs0.mjs";function S5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:q,context:V}=$.shift();try{let G=await Z.apply(V,Y);X(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var M5=()=>{};function A5(Z,$){return Z.find((J)=>J.includes($))??null}async function h5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=O2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.0.14-pjvqwa0j.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.14-bphvske3.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function o$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=O2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.0.14-pjvqwa0j.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.14-bphvske3.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function F8(Z){return Z.startsWith("anthropic.")}function L8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function D8(Z){let $=L8(Z);for(let J of K8)if($.startsWith(`${J}.anthropic.`))return J;return}function e$(Z,$){let J=D8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(F8(Z))return`${$}.${Z}`;return Z}var C5,r$,K8;var f5=R(()=>{t0();n();g();a0();w8();C5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw N(Y),Y}});r$=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return N($),null}});K8=["us","eu","apac","global"]});var v2,_2,I2,y2,T2,S2,M2,C2,A2,s0,o0,r0,h2,f2,u2,G0,$J,u5;var g2=R(()=>{v2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},y2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},s0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},h2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},u2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},G0={haiku35:I2,haiku45:y2,sonnet35:_2,sonnet37:v2,sonnet40:T2,sonnet45:S2,sonnet46:f2,sonnet5:u2,opus40:M2,opus41:C2,opus45:A2,opus46:s0,opus47:o0,opus48:r0,fable5:h2},$J=Object.values(G0).map((Z)=>Z.firstParty),u5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,p2;var m2=R(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},p2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var v0={};d2(v0,{prefetchCopilotModelCatalog:()=>l2,normalizeBareCopilotModelId:()=>n2,getEffectiveCopilotModels:()=>E8,getCopilotDisplayName:()=>v8,getCatalogCopilotMaxOutputTokens:()=>y8,getCatalogCopilotContextWindow:()=>I8,getCachedCopilotCatalog:()=>O8,fetchCopilotModelCatalog:()=>i5,copilotModelSupportsAnthropicMessages:()=>_8,_setCopilotCatalogForTesting:()=>T8});function E0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function l5(){if(!l)return!1;let Z=E0();return Z!==null&&x0===Z}function b8(){if(p5)return;p5=!0,m5(()=>{let Z=E0();if(Z&&x0!==Z)l2()})}function n2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function k8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function P8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:k8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function i5(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(c5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),U8);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...n5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,G=[];for(let B of q.data){let H=P8(B);if(!H||V.has(H.model.id))continue;V.add(H.model.id),G.push(H)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function l2(){b8();let Z=E0();if(!Z)return;if(l&&x0!==Z)l=null,x0=null;if(Z2){if(c2===Z)return;Z2.finally(()=>l2());return}c2=Z,Z2=i5().then(($)=>{if($&&E0()===Z)l=$,x0=Z}).finally(()=>{Z2=null,c2=null})}function O8(){return l}function E8(){if(l5()){let Z=l?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!l5())return;let $=n2(Z);return l.find((J)=>J.model.id===$)}function v8(Z){let $=n2(Z);return $2($)?.model.name??e0[$]?.name}function _8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function I8(Z){return $2(Z)?.model.limit.context}function y8(Z){return $2(Z)?.model.limit.output}function T8(Z){l=Z,x0=Z?E0():null}var U8=5000,l=null,x0=null,Z2=null,c2=null,p5=!1;var _0=R(()=>{$0();N8();d5();i();Z0();m2()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function xJ(){return W()==="firstParty"}function S8(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(_0(),I0(v0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function BJ(Z){let $=L()?.transport??"anthropic";if(!M8.has($))return!1;if($==="github_copilot"&&S8(Z))return!1;return!0}function jJ(){return W()}function HJ(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var M8;var t=R(()=>{$0();M8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of a5)J[Q]=G0[Q][$];return J}async function C8(){let Z=Q2("bedrock"),$;try{$=await C5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of a5){let Y=G0[Q].firstParty;J[Q]=A5($,Y)||Z[Q]}return J}function t5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=u5[Q];if(X&&Y)J[X]=Y}return J}function Y2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function A8(){if(y0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}s5()}function j(){let Z=y0();if(Z===null)return A8(),t5(Q2(W()));return t5(Z)}async function bJ(){if(y0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await s5()}var a5,s5;var X2=R(()=>{J0();a0();M5();B0();f5();g2();t();a5=Object.keys(G0);s5=S5(async()=>{if(y0()!==null)return;try{let Z=await C8();J2(Z)}catch(Z){N(Z)}})});function vJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(k())return!1;let $=T0(),J=Y0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function _J(){if(o5!==null)return o5;if(!k())return!1;let Z=_();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var o5=null;var r5=R(()=>{n();i();g()});function SJ(Z){return Z}function MJ(){return!1}function e5(){return null}function Z1(){return!1}var $1=R(()=>{r5()});async function pJ(){let $=K().oauthAccount?.accountUuid,J=Y0();if(!$||!J)return;let Q=`${b().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":j0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){N(Y)}}async function H0(Z){let $=`${b().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var i2=R(()=>{q2();S0();n();i();a0()});import{mkdirSync as f8,writeFileSync as u8}from"fs";function m8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{f8(V2,{recursive:!0,mode:448}),u8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function J1(Z,$){try{let Q=t2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!V1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function z1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let G=J1($,J);return Y(G),G}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let G=t2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),m8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${V}: ${p(G)}`,{level:"error"});let B=J1($,J);return Y(B),B}}function W2(){return z1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:g8,label:"OAuth token",getCached:Q1,setCached:Y1})}function a2(){return z1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:p8,label:"API key",getCached:X1,setCached:q1})}var V2="/home/claude/.claude/remote",g8,p8,aJ;var G1=R(()=>{J0();Z0();g();W1();h8();g8=`${V2}/.oauth_token`,p8=`${V2}/.api_key`,aJ=`${V2}/.session_ingress_token`});async function B1(){if(process.platform==="darwin"){let Z=a();if((await R0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var j1=R(()=>{x1();s2()});function $3(Z){return Z?.name==="CredentialsProviderError"}function H1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function o2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function R1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var w1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=X0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var K1=R(()=>{F1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",M0="context-1m-2025-08-07",D1="context-management-2025-06-27",N1="structured-outputs-2025-12-15",r2="web-search-2025-03-05",U1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",X3="effort-2025-11-24",q3="task-budgets-2026-03-13",k1="prompt-caching-scope-2026-01-05",V3="extended-cache-ttl-2025-04-11",W3="fast-mode-2026-02-01",P1="redact-thinking-2026-02-12",O1="thinking-token-count-2026-05-13",E1="token-efficient-tools-2026-03-28",z3="afk-mode-2026-01-31",G3="advisor-tool-2026-03-01",e2,x3;var Z5=R(()=>{e2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),x3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function S1(){if(!A())return!1;return l8()===null}function n8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function l8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!y1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!O("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(v.status==="disabled"){if(v.reason==="network_error"||v.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=n8(v.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function _3(){return"opus"+(f0()?"[1m]":"")}function I3(Z){if(!A())return!1;if(!S1())return!1;if(!M1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function M1(Z){if(!A())return!1;let $=Z??h0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function i8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!$5)z("Fast mode cooldown expired, re-enabling fast mode"),$5=!0,A1.emit();w0={status:"active"}}return w0}function S3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},$5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function M3(){w0={status:"active"}}function C3(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},j2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),J5.emit(!1)}function t8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function a8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function h3(Z){let $=t8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!a8(Z))j2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));h1.emit($)}function s8(){return i8().status==="cooldown"}function f3(Z,$){let J=A()&&S1()&&!!$&&M1(Z);if(J&&s8())return"cooldown";if(J)return"on";return"off"}async function o8(Z){let $=`${b().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":j0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function g3(){if(!A())return;if(v.status!=="pending")return;v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function p3(){if(T1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=Y0();if(!(w()?.accessToken&&q0())&&!Z){v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-v1<r8){z("Skipping fast mode prefetch, fetched recently");return}v1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return o8(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(P.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await Q5(B),X=await Q();else throw V}else throw V}let q=v.status!=="pending"?v.status==="enabled":K().penguinModeOrgEnabled;if(v=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)j2("userSettings",{fastMode:void 0});C((V)=>({...V,penguinModeOrgEnabled:X.enabled})),J5.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${v.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=Y(),C0}var v3="Opus 4.7",w0,$5=!1,C1,A1,y3,T3,h1,A3,v,J5,u3,r8=30000,v1=0,C0=null;var f1=R(()=>{q2();S0();I1();J0();B2();n();c8();i();Z0();g();F0();t();d8();B0();F1();w0={status:"active"},C1=X0(),A1=X0(),y3=C1.subscribe,T3=A1.subscribe;h1=X0(),A3=h1.subscribe;v={status:"pending"},J5=X0(),u3=J5.subscribe});function XZ(Z){for(let $ of YZ)if($.pattern.test(Z))return $.cost;return}function Y5(Z){if(A()&&Z)return ZZ;return L0}function qZ(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function VZ(Z,$){let J=U(Z);if(J===D(s0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let Y=$.speed==="fast";return Y5(Y)}let Q=g1[J];if(!Q){let Y=XZ(Z);if(Y)return Y;return WZ(Z,J),g1[U(h0())]??QZ}return Q}function WZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),m1()}function zZ(Z,$){let J=VZ(Z,$);return qZ(J,$)}function t3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return zZ(Z,J)}function p1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function c1(Z){return`${p1(Z.inputTokens)}/${p1(Z.outputTokens)} per Mtok`}var K0,u1,L0,e8,ZZ,$Z,JZ,QZ,YZ,g1;var d1=R(()=>{B2();J0();f1();g2();F0();K0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},u1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},e8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},ZZ={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},$Z={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},JZ={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},QZ=L0,YZ=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];g1={[D(I2.firstParty)]:$Z,[D(y2.firstParty)]:JZ,[D(_2.firstParty)]:K0,[D(v2.firstParty)]:K0,[D(T2.firstParty)]:K0,[D(S2.firstParty)]:K0,[D(f2.firstParty)]:K0,[D(u2.firstParty)]:K0,[D(M2.firstParty)]:u1,[D(C2.firstParty)]:u1,[D(A2.firstParty)]:L0,[D(s0.firstParty)]:L0,[D(o0.firstParty)]:L0,[D(r0.firstParty)]:L0,[D(h2.firstParty)]:e8}});function m(Z){return GZ.includes(Z)}function D0(Z){return xZ.includes(Z)}var GZ,xZ;var X5=R(()=>{GZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];xZ=["sonnet","opus","haiku"]});function BZ(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function jZ(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function i1(Z){let $=S()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Y2(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!D0(Y)||!l1(Y,X))return!0}for(let q of X)if(D0(q)&&!l1(q,X)&&BZ(Y,q))return!0;if(m(Y)){let q=T(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!D0(q)&&m(q)){if(T(q).toLowerCase()===Y)return!0}for(let q of X)if(!D0(q)&&!m(q)){if(jZ(Y,q))return!0}return!1}var t1=R(()=>{B0();X5();F0();X2()});function H2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function U0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function L9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function D9(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function q5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=S()||{},Q=H2(J.model),X=U0()||Q||void 0,q=e1(),V=H2(q.activeModelForProject);if(V){let G=$4()?.id,B=q.activeModelForProjectProfileId;Z=B===void 0||B===G?V:X}else Z=X}if(Z&&!i1(Z))return;return Z}function N9(){let Z=q5();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function FZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return j().opus46;return j().opus48}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return j().sonnet45;return j().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=U0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function U9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(q5()==="opusplan"&&$==="plan"&&!Q)return N0();if(q5()==="haiku"&&$==="plan")return u0();return J}function h0(){let Z=U0();if(W()==="github"){let $=S()||{};return H2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(R2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return u0()}function Y4(){return T(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function U(Z){return D(Y2(Z))}function KZ(Z=!1){if(R2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?a1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?a1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function b9(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return q4(T(Z))}function a1(Z){if(W()!=="firstParty")return"";let $=c1(Y5(Z));return` ·${Z?` (${o1})`:""} ${$}`}function f0(){if(V0()||z5()||W()!=="firstParty")return!1;if(k()&&_()===null)return!1;return!0}function k9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return r1(Z);return q4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(p2[Z])return p2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(_0(),I0(v0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function q4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function P9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=H2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=s(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return u0()+(Q?"[1m]":"");case"sonnet":return u0()+(Q?"[1m]":"");case"haiku":return Q4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return FZ();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return j().fable5;if(W()==="firstParty"&&DZ(Y)&&NZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function O9(Z,$){if(s(Z)||!s($))return Z;if(V5(T(Z)))return Z+"[1m]";return Z}function DZ(Z){return LZ.includes(Z)}function NZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function E9(Z){if(Z===null){if(k())return`Default (${KZ()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function v9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=U(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function _9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function I9(Z){let $=U(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var LZ;var F0=R(()=>{J0();$0();i();J4();n();W5();g();wZ();X2();d1();B0();t();HZ();t1();X5();RZ();m2();LZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function G5(Z){return}async function T9(){}var V4=()=>{};function PZ(Z,$={}){if($.isPro??(kZ.test(Z)||W4.has(Z)))return!1;if(UZ.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(bZ);return Q?Number.parseFloat(Q[1])>5.4:!1}function M9(){return F2.filter((Z)=>PZ(Z.id,{isPro:Z.isPro}))}var F2,UZ,W4,bZ,kZ,z4,G4;var x4=R(()=>{F2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],UZ=new Set(F2.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),bZ=/^gpt-(\d+\.\d+)/,kZ=/-pro$/;z4=Object.fromEntries(F2.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),G4=Object.fromEntries(F2.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};d2(K4,{prefetchOpenAICompatibleModels:()=>CZ,getDiscoveredContextWindow:()=>OZ,discoverOpenAICompatibleModelOptions:()=>F4});function OZ(Z){return R4.get(Z)}function EZ(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function vZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function _Z(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(vZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function IZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function yZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function TZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function SZ(Z,$){let J=new Set;for(let Q of Z)try{let Y=await P.get(Q,{headers:$,timeout:H4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let G=q.name?.trim()||V,B=q.context_length??null;if(B&&B>0)R4.set(V,B);let H=B?` · ${TZ(B)}`:"";X.push({value:V,label:G,description:`${V}${H}`})}if(X.length>0)return X.sort((q,V)=>{let G=String(q.value).split("/")[0]??"",B=String(V.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(q.value).localeCompare(String(V.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function MZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=EZ(),$=_Z(Z),J=await SZ(IZ(Z),$);if(J.length>0)return J;let Q=yZ(Z);if(Q)return MZ(Q,$);return[]}function CZ(){if(g0)return g0;return g0=(async()=>{if(!j4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{g0=null}})(),g0}var H4=5000,R4,g0=null;var L4=R(()=>{q2();$0();d5();Z0();t();J4();R4=new Map});function N4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function U4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),I0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=N4(AZ,fZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(_0(),I0(v0));return J(Z)}catch{return}}function b4(Z){let $=N4(hZ,uZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(_0(),I0(v0));return J(Z)}catch{return}}var AZ,hZ,fZ,uZ;var k4=R(()=>{$0();x4();AZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...z4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},hZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...G4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},fZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),uZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function P4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function s(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function V5(Z){if(V0())return!1;let $=U(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function $Q(Z,$){if(s(Z))return 1e6;if(P4()){let Q=U4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),gZ}let J=G5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>x5&&V0())return x5;return J.max_input_tokens}if(!V0()&&(U(Z).includes("fable-5")||U(Z).includes("sonnet-5")))return 1e6;if($?.includes(M0)&&V5(Z))return 1e6;if(cZ(Z))return 1e6;return x5}function cZ(Z){if(V0())return!1;if(s(Z))return!1;if(!U(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function JQ(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function QQ(Z){let $,J;if(P4()){let X=b4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=U(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=pZ,J=mZ;let Y=G5(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var x5=200000,gZ,r9=20000,pZ=32000,mZ=64000,e9=8000,ZQ=64000;var W5=R(()=>{Z5();$0();i();g();F0();V4();k4();gZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var dZ,O4;var E4=R(()=>{t0();t();dZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],O4=y((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of dZ){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function nZ(Z){let $=[],J=[];for(let Q of Z)if(T4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function NQ(Z){if(!Z||Z.length===0)return;if(k()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=nZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${T4.join(", ")}`);return $.length>0?$:void 0}function v4(Z){let $=O4(Z,"interleaved_thinking");if($!==void 0)return $;let J=U(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function lZ(Z){let $=U(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function iZ(Z){let $=U(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function tZ(Z){let $=U(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function UQ(Z){let $=U(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function bQ(){let Z=W();if(Z==="vertex"||Z==="bedrock")return b1;return U1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function kQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function PQ(Z,$){let J=[...S4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=I4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){B5.cache?.clear?.(),S4.cache?.clear?.(),aZ.cache?.clear?.()}var T4,B5,S4,aZ;var C4=R(()=>{t0();I1();J0();Z5();S0();n();W5();g();F0();E4();t();B0();T4=[M0];B5=y((Z)=>{let $=[],J=U(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(G2);if(k())$.push(j0);if(s(Z))$.push(M0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&v4(Z))$.push(L1);if(Y&&v4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(P1),$.push(O1);let X=iZ(Z);if(_4()&&X)$.push(D1);let q=y4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(Y&&tZ(Z)&&q)$.push(N1);if(Y&&V)$.push(E1);if(Q==="vertex"&&lZ(Z))$.push(r2);if(Q==="foundry")$.push(r2);if(Y)$.push(k1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),S4=y((Z)=>{let $=B5(Z);if(W()==="bedrock")return $.filter((J)=>!e2.has(J));return $}),aZ=y((Z)=>{return B5(Z).filter((J)=>e2.has(J))})});import{execFile as sZ}from"child_process";function A4(Z){return new Promise(($)=>{sZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:oZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function IQ(){if(process.platform!=="darwin"||K2||u())return;let Z=A4(a(h4)),$=A4(a());K2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)f4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function yQ(){if(K2)await K2}function u4(){return j5}function H5(){j5=null}var oZ=1e4,j5=null,K2=null;var g4=R(()=>{g();s2()});function R5(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((V,G,B)=>{V?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var p4=()=>{};function MQ(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var p$={};d2(p$,{validateForceLoginOrg:()=>g$,saveOAuthTokensIfNeeded:()=>V8,saveApiKey:()=>I5,removeApiKey:()=>E$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>X8,refreshAwsAuth:()=>Q8,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>b$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>k$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>B$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>S$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>z5,isOverageProvisioningAllowed:()=>y$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>x8,isMaxSubscriber:()=>R2,isGcpAuthRefreshFromProjectSettings:()=>v5,isEnterpriseSubscriber:()=>M$,isCustomApiKeyApproved:()=>O$,isConsumerSubscriber:()=>f$,isClaudeAISubscriber:()=>k,isAwsCredentialExportFromProjectSettings:()=>O5,isAwsAuthRefreshFromProjectSettings:()=>k5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>I$,hasProfileScope:()=>q0,hasOpusAccess:()=>T$,hasAnthropicApiKeyAuth:()=>W$,handleOAuth401Error:()=>Q5,getSubscriptionType:()=>_,getSubscriptionName:()=>z8,getRateLimitTier:()=>W8,getOtelHeadersFromHelper:()=>A$,getOauthAccountInfo:()=>U2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T0,getApiKeyHelperElapsedMs:()=>z$,getApiKeyFromConfigOrMacOSKeychain:()=>P2,getApiKeyFromApiKeyHelperCached:()=>F5,getApiKeyFromApiKeyHelper:()=>J8,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>Y0,getAccountInformation:()=>u$,clearOAuthTokenCache:()=>y5,clearGcpCredentialsCache:()=>U$,clearAwsCredentialsCache:()=>F$,clearApiKeyHelperCache:()=>x$,checkGcpCredentialsValid:()=>Y8,checkAndRefreshOAuthTokenIfNeeded:()=>l0,calculateApiKeyHelperTTL:()=>$8});import{exec as e4}from"child_process";import{mkdir as Y$,stat as X$}from"fs/promises";import{join as q$}from"path";function N2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=b2(),J=(S()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!N2()||X&&!N2())}function T0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!N2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!N2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Y0(){let{key:Z}=n0();return Z}function W$(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=L();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:F5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=t4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=a2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!b2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!b2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=a2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:F5(),source:"apiKeyHelper"}}let X=P2();if(X)return X;return{key:null,source:"none"}}function o(){if(u())return O("flagSettings")?.apiKeyHelper;return(S()||{}).apiKeyHelper}function Z8(){let Z=o();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(S()||{}).awsAuthRefresh}function k5(){let Z=b5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function P5(){return(S()||{}).awsCredentialExport}function O5(){let Z=P5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function $8(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return V$}function z$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function J8(Z){if(!o())return null;let $=$8();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:n4(Z,!1,k0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:n4(Z,!0,k0),startedAt:Date.now()},c.promise}async function n4(Z,$,J){try{let Q=await G$(Z);if(J!==k0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==k0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===k0)c=null}}async function G$(Z){let $=o();if(!$)return null;if(Z8()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await R0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function F5(){return I?.value??null}function x$(){k0++,I=null,c=null}function B$(Z){if(Z8()&&!d())return;J8(Z)}async function H$(){let Z=b5();if(!Z)return!1;if(k5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await o2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Q8(Z)}}function Q8(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:R$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function w$(){let Z=P5();if(!Z)return null;if(O5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await o2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await R0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=D5($.stdout.trim());if(!H1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function F$(){z0.cache.clear()}function E5(){return(S()||{}).gcpAuthRefresh}function v5(){let Z=E5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Y8(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=R5(K$).then(()=>{throw new B8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function D$(){let Z=E5();if(!Z)return!1;if(v5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Y8())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return X8(Z)}function X8(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:N$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function U$(){_5.cache.clear()}function b$(){if(!E5())return;if(v5()){if(!d()&&!f())return}_5()}function k$(){let Z=b5(),$=P5();if(!Z&&!$)return;if(k5()||O5()){if(!d()&&!f())return}z0(),j()}function P$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function I5(Z){if(!P$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q8();let $=!1;if(process.platform==="darwin")try{let Q=a(),Y=L2(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
+ `;await R0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),P2.cache.clear?.(),H5()}function O$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function E$(){await q8(),C((Z)=>({...Z,primaryApiKey:void 0})),P2.cache.clear?.(),H5()}async function q8(){try{await B1()}catch(Z){N(Z)}}function V8(Z){if(!P0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=k2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),X}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function y5(){w.cache?.clear?.(),b0()}async function v$(){try{let{mtimeMs:Z}=await X$(q$(L5(),".credentials.json"));if(Z!==l4)l4=Z,y5()}catch{w.cache?.clear?.()}}function Q5(Z){let $=w5.get(Z);if($)return $;let J=_$(Z).finally(()=>{w5.delete(Z)});return w5.set(Z,J),J}async function _$(Z){y5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return l0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await k2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function l0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=K5(Z,$).finally(()=>{p0=null}),p0}return K5(Z,$)}async function K5(Z,$){await v$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),b0();let Y=await c0();if(!Y?.refreshToken||!m0(Y.expiresAt))return!1;let X=L5();await Y$(X,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await s4(X),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await R5(1000+Math.random()*1000),K5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(V),x("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),b0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await o4(V.refreshToken,{scopes:P0(V.scopes)?void 0:V.scopes});return V8(G),w.cache?.clear?.(),b0(),!0}catch(V){N(V),w.cache?.clear?.(),b0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function k(){if(!O0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(a4)??!1}function I$(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(k())return!1;return!0}function U2(){return O0()?K().oauthAccount:void 0}function y$(){let $=U2()?.billingType;if(!k()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function T$(){let Z=_();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function _(){if(Z1())return e5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function R2(){return _()==="max"}function S$(){return _()==="team"}function w2(){return _()==="team"&&W8()==="default_claude_max_5x"}function M$(){return _()==="enterprise"}function z5(){return _()==="pro"}function W8(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function z8(){switch(_()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function b2(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function G8(){return(S()||{}).otelHeadersHelper}function x8(){let Z=G8();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function A$(){let Z=G8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||C$.toString());if(D2&&Date.now()-i4<$)return D2;if(x8()){if(!d())return{}}try{let J=N5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=D5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return D2=Q,i4=Date.now(),D2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function h$(Z){return Z==="max"||Z==="pro"}function f$(){let Z=_();return k()&&Z!==null&&h$(Z)}function u$(){if(W()!=="firstParty")return;let{source:$}=T0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(k())J.subscription=z8();else J.tokenSource=$;let{key:Q,source:Y}=n0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=U2()?.organizationName;if(q)J.organization=q}let X=U2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function g$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=O("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await l0();let $=w();if(!$)return{valid:!0};let{source:J}=T0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await H0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${Z} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
+ different organization than required by this machine's managed settings.
8
+
9
+ Required organization: ${Z}
10
+ Token organization: ${X}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
+ but this machine requires organization ${Z}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var V$=300000,I=null,c=null,k0=0,j$=3600000,R$=180000,z0,K$=5000,L$=3600000,N$=180000,_5,P2,w,l4=0,w5,p0=null,D2=null,i4=0,C$=1740000,B8;var n=R(()=>{eZ();x1();t0();S0();B2();X2();t();J0();$0();$1();r4();i2();G1();j1();w1();K1();C4();i();Z0();g();W1();Z$();J$();a0();$$();Q$();g4();s2();B0();p4();rZ();d4();z0=U5(async()=>{let Z=await H$(),$=await w$();if(Z||$)await R1();return $},j$);_5=U5(async()=>{return await D$()},L$);P2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=a();try{let Q=N5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=k2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});w5=new Map;B8=class B8 extends Error{}});function P0(Z){return Boolean(Z?.includes(T5))}function m$(Z){return Z?.split(" ").filter(Boolean)??[]}function k7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:G}){let B=Y?b().CLAUDE_AI_AUTHORIZE_URL:b().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",b().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?b().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=X?[T5]:R8;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(G)H.searchParams.append("login_method",G);return H.toString()}async function P7(Z,$,J,Q,Y=!1,X){let q={grant_type:"authorization_code",code:Z,redirect_uri:Y?b().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:b().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)q.expires_in=X;let V=await P.post(b().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("tengu_oauth_token_exchange_success",{}),V.data}async function o4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:b().CLIENT_ID,scope:(($?.length)?$:H8).join(" ")};try{let Q=await P.post(b().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=Z,expires_in:V}=Y,G=Date.now()+V*1000,B=m$(Y.scope);x("tengu_oauth_token_refresh_success",{});let H=K(),W0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await c$(X);if(E&&H.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function O7(Z){let $=await P.get(b().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");C((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function E7(Z){try{let $=await P.post(b().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await I5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function c$(Z){let $=await H0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function v7(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await H0(J))?.organization?.uuid;if(!Y)return null;return Y}async function _7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)j8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await l0();let Y=K();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!k()||!q0())return!1;let X=w();if(X?.accessToken){let q=await H0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return j8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function j8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var r4=R(()=>{q2();B2();S0();n();i();Z0();i2()});
16
+ export{IQ as u4,yQ as v4,g4 as w4,S5 as x4,M5 as y4,o$ as z4,r$ as A4,F8 as B4,D8 as C4,e$ as D4,f5 as E4,s0 as F4,o0 as G4,G0 as H4,g2 as I4,l2 as J4,E8 as K4,_0 as L4,W as M4,xJ as N4,S8 as O4,BJ as P4,jJ as Q4,HJ as R4,t as S4,j as T4,bJ as U4,X2 as V4,vJ as W4,_J as X4,r5 as Y4,SJ as Z4,MJ as _4,$1 as $4,pJ as a5,H0 as b5,i2 as c5,P0 as d5,m$ as e5,k7 as f5,P7 as g5,o4 as h5,O7 as i5,E7 as j5,m0 as k5,c$ as l5,v7 as m5,_7 as n5,j8 as o5,r4 as p5,aJ as q5,m8 as r5,J1 as s5,G1 as t5,z2 as u5,j1 as v5,$3 as w5,w1 as x5,M as y5,K1 as z5,M0 as A5,D1 as B5,N1 as C5,X3 as D5,q3 as E5,k1 as F5,V3 as G5,W3 as H5,P1 as I5,z3 as J5,G3 as K5,x3 as L5,Z5 as M5,A as N5,S1 as O5,l8 as P5,v3 as Q5,_3 as R5,I3 as S5,M1 as T5,y3 as U5,T3 as V5,i8 as W5,S3 as X5,M3 as Y5,C3 as Z5,A3 as _5,h3 as $5,s8 as a6,f3 as b6,u3 as c6,g3 as d6,p3 as e6,f1 as f6,K0 as g6,e8 as h6,$Z as i6,JZ as j6,Y5 as k6,zZ as l6,t3 as m6,c1 as n6,d1 as o6,GZ as p6,X5 as q6,i1 as r6,t1 as s6,L9 as t6,D9 as u6,q5 as v6,N9 as w6,FZ as x6,N0 as y6,u0 as z6,Q4 as A6,U9 as B6,h0 as C6,Y4 as D6,D as E6,U as F6,KZ as G6,b9 as H6,a1 as I6,f0 as J6,k9 as K6,X4 as L6,q4 as M6,P9 as N6,T as O6,O9 as P6,NZ as Q6,E9 as R6,v9 as S6,_9 as T6,I9 as U6,F0 as V6,T9 as W6,V4 as X6,M9 as Y6,x4 as Z6,F4 as _6,CZ as $6,L4 as a7,r9 as b7,e9 as c7,ZQ as d7,V0 as e7,s as f7,$Q as g7,cZ as h7,JQ as i7,QQ as j7,W5 as k7,O4 as l7,E4 as m7,NQ as n7,tZ as o7,UQ as p7,bQ as q7,_4 as r7,kQ as s7,S4 as t7,aZ as u7,PQ as v7,M4 as w7,C4 as x7,R5 as y7,p4 as z7,MQ as A7,c4 as B7,d4 as C7,O0 as D7,T0 as E7,Y0 as F7,W$ as G7,n0 as H7,o as I7,k5 as J7,O5 as K7,$8 as L7,z$ as M7,J8 as N7,F5 as O7,x$ as P7,B$ as Q7,Q8 as R7,z0 as S7,F$ as T7,v5 as U7,Y8 as V7,X8 as W7,_5 as X7,U$ as Y7,b$ as Z7,k$ as _7,P2 as $7,I5 as a8,O$ as b8,E$ as c8,V8 as d8,w as e8,y5 as f8,Q5 as g8,c0 as h8,l0 as i8,k as j8,q0 as k8,I$ as l8,U2 as m8,y$ as n8,T$ as o8,_ as p8,R2 as q8,S$ as r8,w2 as s8,M$ as t8,z5 as u8,W8 as v8,z8 as w8,b2 as x8,x8 as y8,A$ as z8,f$ as A8,u$ as B8,g$ as C8,p$ as D8,n as E8};
@@ -0,0 +1,2 @@
1
+ import{Zx as C,ay as X}from"./cli-1.0.14-v4p41dwz.mjs";import{X3 as W}from"./cli-1.0.14-vvvyddeg.mjs";import{C6 as I,O6 as J,V6 as V}from"./cli-1.0.14-asbc8xx1.mjs";import{Kha as T,pha as H}from"./cli-1.0.14-ya91z6q2.mjs";import{dsa as P,hsa as Q}from"./cli-1.0.14-ks6tgvs0.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
+ export{v as od,Y as pd};
@@ -0,0 +1,25 @@
1
+ import{A9 as hs,B9 as k,C9 as ur,D9 as Qc,E9 as Bc,F9 as ra,G9 as Xc,H9 as Yc,I9 as Zc,J9 as Jc,K9 as el,L9 as Hc,M9 as cr,N9 as Cc,O9 as Ts,P9 as gl,p9 as nt,q9 as hl,r9 as bl,s9 as ml,t9 as fn,u9 as $c,v9 as fu,w9 as Al,x9 as ys,y9 as El,z9 as st}from"./cli-1.0.14-vw06jpp7.mjs";import{Q9 as ie}from"./cli-1.0.14-1t5z0ek3.mjs";import{Ura as kc,Vra as Le}from"./cli-1.0.14-xtwtqzg9.mjs";import{Xra as Vc}from"./cli-1.0.14-dbvshaqg.mjs";import{Zra as Fe,_ra as ve,bsa as De,csa as ee}from"./cli-1.0.14-j51dm8c6.mjs";import{fsa as E,isa as Bs}from"./cli-1.0.14-ks6tgvs0.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 o9};