@claudiolabs/claudin 1.1.24 → 1.1.26

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.1.26-pww3rzse.mjs +1 -0
  2. package/dist/chunks/App-1.1.26-4vaezrz4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +1 -0
  30. package/dist/chunks/agents-1.1.26-dasaamxr.mjs +3 -0
  31. package/dist/chunks/agents-1.1.26-p33pq694.mjs +110 -0
  32. package/dist/chunks/api-1.1.26-msb1jnzq.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +1 -0
  35. package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +1 -0
  36. package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +1 -0
  41. package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +1 -0
  47. package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.26-20xpa564.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +4 -0
  51. package/dist/chunks/caches-1.1.26-g9aneehb.mjs +1 -0
  52. package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +1 -0
  55. package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.26-01erqdx7.mjs +6 -0
  58. package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +6 -0
  59. package/dist/chunks/cli-1.1.26-132vkvj1.mjs +2 -0
  60. package/dist/chunks/cli-1.1.26-14kc3afb.mjs +3 -0
  61. package/dist/chunks/cli-1.1.26-14n169e4.mjs +2 -0
  62. package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +2 -0
  63. package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +2 -0
  64. package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +2 -0
  65. package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +21 -0
  66. package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +24 -0
  67. package/dist/chunks/cli-1.1.26-28qe790b.mjs +2 -0
  68. package/dist/chunks/cli-1.1.26-2dzytde4.mjs +2 -0
  69. package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +4 -0
  70. package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +2 -0
  71. package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +2 -0
  72. package/dist/chunks/cli-1.1.26-2msjf68r.mjs +2 -0
  73. package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +2 -0
  74. package/dist/chunks/cli-1.1.26-31negda3.mjs +2 -0
  75. package/dist/chunks/cli-1.1.26-32vewh62.mjs +6 -0
  76. package/dist/chunks/cli-1.1.26-38m8cha0.mjs +2 -0
  77. package/dist/chunks/cli-1.1.26-3c44vscp.mjs +2 -0
  78. package/dist/chunks/cli-1.1.26-3gepexgn.mjs +66 -0
  79. package/dist/chunks/cli-1.1.26-3hemew00.mjs +3 -0
  80. package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +2 -0
  81. package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +2 -0
  82. package/dist/chunks/cli-1.1.26-3p2ch222.mjs +2 -0
  83. package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +24 -0
  84. package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +2 -0
  85. package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +2 -0
  86. package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +17 -0
  87. package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +2 -0
  88. package/dist/chunks/cli-1.1.26-516p6zzp.mjs +2 -0
  89. package/dist/chunks/cli-1.1.26-55ayan24.mjs +133 -0
  90. package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +2 -0
  91. package/dist/chunks/cli-1.1.26-5p6865dd.mjs +2 -0
  92. package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +5 -0
  93. package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +2 -0
  94. package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +2 -0
  95. package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +3 -0
  96. package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +2 -0
  97. package/dist/chunks/cli-1.1.26-73s95190.mjs +4 -0
  98. package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +4 -0
  99. package/dist/chunks/cli-1.1.26-79j24jxp.mjs +2 -0
  100. package/dist/chunks/cli-1.1.26-7h1213xq.mjs +1 -0
  101. package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +2 -0
  102. package/dist/chunks/cli-1.1.26-7ssnr221.mjs +4 -0
  103. package/dist/chunks/cli-1.1.26-851khk0n.mjs +2 -0
  104. package/dist/chunks/cli-1.1.26-89reg5gc.mjs +2 -0
  105. package/dist/chunks/cli-1.1.26-8h5tr358.mjs +2 -0
  106. package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +2 -0
  107. package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +2 -0
  108. package/dist/chunks/cli-1.1.26-945rz3ns.mjs +2 -0
  109. package/dist/chunks/cli-1.1.26-97w71raz.mjs +2 -0
  110. package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +2 -0
  111. package/dist/chunks/cli-1.1.26-9mg6k159.mjs +2 -0
  112. package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +2 -0
  113. package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +2 -0
  114. package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +7 -0
  115. package/dist/chunks/cli-1.1.26-agrrdhst.mjs +12 -0
  116. package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +2 -0
  117. package/dist/chunks/cli-1.1.26-arx4za97.mjs +2 -0
  118. package/dist/chunks/cli-1.1.26-avyt487s.mjs +4 -0
  119. package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +24 -0
  120. package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +2 -0
  121. package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +4 -0
  122. package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +2 -0
  123. package/dist/chunks/cli-1.1.26-bs6j2409.mjs +2 -0
  124. package/dist/chunks/cli-1.1.26-bv6bd469.mjs +2 -0
  125. package/dist/chunks/cli-1.1.26-c1s0antn.mjs +2 -0
  126. package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +4 -0
  127. package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +6 -0
  128. package/dist/chunks/cli-1.1.26-chwpygff.mjs +2 -0
  129. package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +4 -0
  130. package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +2 -0
  131. package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +2 -0
  132. package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +2 -0
  133. package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +2 -0
  134. package/dist/chunks/cli-1.1.26-e807ek7h.mjs +3 -0
  135. package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +2 -0
  136. package/dist/chunks/cli-1.1.26-eb90p21t.mjs +10 -0
  137. package/dist/chunks/cli-1.1.26-edg965cj.mjs +2 -0
  138. package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +2 -0
  139. package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +3 -0
  140. package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +3 -0
  141. package/dist/chunks/cli-1.1.26-f624n21e.mjs +2 -0
  142. package/dist/chunks/cli-1.1.26-fcnssbje.mjs +2 -0
  143. package/dist/chunks/cli-1.1.26-ft1bty40.mjs +45 -0
  144. package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +3 -0
  145. package/dist/chunks/cli-1.1.26-g1a27741.mjs +3 -0
  146. package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +2 -0
  147. package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +2 -0
  148. package/dist/chunks/cli-1.1.26-g825efx8.mjs +3 -0
  149. package/dist/chunks/cli-1.1.26-grerq74y.mjs +4 -0
  150. package/dist/chunks/cli-1.1.26-gt65gs27.mjs +2 -0
  151. package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +2 -0
  152. package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +34 -0
  153. package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +2 -0
  154. package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +2 -0
  155. package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +2 -0
  156. package/dist/chunks/cli-1.1.26-hkn2maax.mjs +12 -0
  157. package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +20 -0
  158. package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +24 -0
  159. package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +2 -0
  160. package/dist/chunks/cli-1.1.26-j0pfn318.mjs +2 -0
  161. package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +25 -0
  162. package/dist/chunks/cli-1.1.26-j522h2zj.mjs +2 -0
  163. package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +2 -0
  164. package/dist/chunks/cli-1.1.26-jaq75h39.mjs +2 -0
  165. package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +2 -0
  166. package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +2 -0
  167. package/dist/chunks/cli-1.1.26-jstehae2.mjs +25 -0
  168. package/dist/chunks/cli-1.1.26-jv1escq9.mjs +9 -0
  169. package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +2 -0
  170. package/dist/chunks/cli-1.1.26-k287xjcs.mjs +2 -0
  171. package/dist/chunks/cli-1.1.26-k827q3s7.mjs +2 -0
  172. package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +15 -0
  173. package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +2 -0
  174. package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +50 -0
  175. package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +2 -0
  176. package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +2 -0
  177. package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +5459 -0
  178. package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +20 -0
  179. package/dist/chunks/cli-1.1.26-kz0et72d.mjs +2 -0
  180. package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +2 -0
  181. package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +6 -0
  182. package/dist/chunks/cli-1.1.26-m8mebydd.mjs +3 -0
  183. package/dist/chunks/cli-1.1.26-mb749hsh.mjs +2 -0
  184. package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +2 -0
  185. package/dist/chunks/cli-1.1.26-mvjefec1.mjs +206 -0
  186. package/dist/chunks/cli-1.1.26-n0thzakv.mjs +2 -0
  187. package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +2 -0
  188. package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +2 -0
  189. package/dist/chunks/cli-1.1.26-nkp41vem.mjs +2 -0
  190. package/dist/chunks/cli-1.1.26-np0se5jr.mjs +2 -0
  191. package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +6 -0
  192. package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +60 -0
  193. package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +2 -0
  194. package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +2 -0
  195. package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +2 -0
  196. package/dist/chunks/cli-1.1.26-pf85an2q.mjs +2 -0
  197. package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +2 -0
  198. package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +39 -0
  199. package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +2 -0
  200. package/dist/chunks/cli-1.1.26-pttr45sa.mjs +2 -0
  201. package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +2 -0
  202. package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +2 -0
  203. package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +2 -0
  204. package/dist/chunks/cli-1.1.26-q9msymy9.mjs +7 -0
  205. package/dist/chunks/cli-1.1.26-qf02kggq.mjs +2 -0
  206. package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +2 -0
  207. package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +17 -0
  208. package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +2 -0
  209. package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +3 -0
  210. package/dist/chunks/cli-1.1.26-rbxsj403.mjs +8 -0
  211. package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +2 -0
  212. package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +2 -0
  213. package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +2 -0
  214. package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +2 -0
  215. package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +9 -0
  216. package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +2 -0
  217. package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +2 -0
  218. package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +15 -0
  219. package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +2 -0
  220. package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +2 -0
  221. package/dist/chunks/cli-1.1.26-swdk2n55.mjs +2 -0
  222. package/dist/chunks/cli-1.1.26-sx40y42s.mjs +2 -0
  223. package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +18 -0
  224. package/dist/chunks/cli-1.1.26-t05x8de5.mjs +2 -0
  225. package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +3 -0
  226. package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +2 -0
  227. package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +16 -0
  228. package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +42 -0
  229. package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +2 -0
  230. package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +2 -0
  231. package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +58 -0
  232. package/dist/chunks/cli-1.1.26-v440gznh.mjs +3 -0
  233. package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +2 -0
  234. package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +2 -0
  235. package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +2 -0
  236. package/dist/chunks/cli-1.1.26-vne421we.mjs +133 -0
  237. package/dist/chunks/cli-1.1.26-vpdrb404.mjs +2 -0
  238. package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +2 -0
  239. package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +5 -0
  240. package/dist/chunks/cli-1.1.26-w94mate8.mjs +2 -0
  241. package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +2 -0
  242. package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +2 -0
  243. package/dist/chunks/cli-1.1.26-x64s4kth.mjs +2 -0
  244. package/dist/chunks/cli-1.1.26-x82tpywr.mjs +2 -0
  245. package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +15 -0
  246. package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +2 -0
  247. package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +2 -0
  248. package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +2 -0
  249. package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +2 -0
  250. package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +2 -0
  251. package/dist/chunks/cli-1.1.26-xwryqq86.mjs +2 -0
  252. package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +2 -0
  253. package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +2 -0
  254. package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +2 -0
  255. package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +2 -0
  256. package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +3 -0
  257. package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +2 -0
  258. package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +2 -0
  259. package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +2 -0
  260. package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +2 -0
  261. package/dist/chunks/client-1.1.26-5m13dtqt.mjs +1 -0
  262. package/dist/chunks/color-1.1.26-hc4gee57.mjs +1 -0
  263. package/dist/chunks/compact-1.1.26-k29q801r.mjs +3 -0
  264. package/dist/chunks/config-1.1.26-20jye461.mjs +1 -0
  265. package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +1 -0
  266. package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +1 -0
  267. package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +1 -0
  269. package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +1 -0
  271. package/dist/chunks/copy-1.1.26-t50s90xg.mjs +9 -0
  272. package/dist/chunks/cost-1.1.26-9hp3110j.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +1 -0
  274. package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +1 -0
  275. package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +1534 -0
  277. package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +1 -0
  279. package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +1 -0
  280. package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +1 -0
  281. package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +1 -0
  284. package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +13 -0
  285. package/dist/chunks/engine-1.1.26-jt09gh12.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +1 -0
  287. package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +1 -0
  289. package/dist/chunks/environments-1.1.26-fz5c214j.mjs +1 -0
  290. package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +1 -0
  292. package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +1 -0
  293. package/dist/chunks/exit-1.1.26-55716s6k.mjs +1 -0
  294. package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +1 -0
  295. package/dist/chunks/export-1.1.26-mgccr0ea.mjs +2 -0
  296. package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +1 -0
  297. package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +1 -0
  298. package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +1 -0
  299. package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +14 -0
  300. package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +1 -0
  301. package/dist/chunks/git-1.1.26-0he7ww02.mjs +1 -0
  302. package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +1 -0
  303. package/dist/chunks/goal-1.1.26-n5s850gv.mjs +4 -0
  304. package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +1 -0
  305. package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +6 -0
  307. package/dist/chunks/help-1.1.26-brf53t1m.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +1 -0
  310. package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +79 -0
  311. package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +1 -0
  313. package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +261 -0
  314. package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +1 -0
  315. package/dist/chunks/index-1.1.26-1xcc10z3.mjs +1 -0
  316. package/dist/chunks/index-1.1.26-46seym0e.mjs +1 -0
  317. package/dist/chunks/index-1.1.26-4qsakkwp.mjs +1 -0
  318. package/dist/chunks/index-1.1.26-62wb3t76.mjs +5 -0
  319. package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +2 -0
  320. package/dist/chunks/index-1.1.26-924a690m.mjs +1 -0
  321. package/dist/chunks/index-1.1.26-9hqzzjph.mjs +1 -0
  322. package/dist/chunks/index-1.1.26-bmzaqft1.mjs +1 -0
  323. package/dist/chunks/index-1.1.26-cpb34jqj.mjs +9 -0
  324. package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +1 -0
  325. package/dist/chunks/index-1.1.26-gyna59qe.mjs +1 -0
  326. package/dist/chunks/index-1.1.26-h45zww68.mjs +30 -0
  327. package/dist/chunks/index-1.1.26-matsx1ed.mjs +1 -0
  328. package/dist/chunks/index-1.1.26-pm334xks.mjs +1 -0
  329. package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +1 -0
  330. package/dist/chunks/index-1.1.26-sh5v696c.mjs +1 -0
  331. package/dist/chunks/index-1.1.26-srjepzh3.mjs +2 -0
  332. package/dist/chunks/index-1.1.26-syyhrh9b.mjs +23 -0
  333. package/dist/chunks/index-1.1.26-te4885d9.mjs +1 -0
  334. package/dist/chunks/index-1.1.26-tyjd8na6.mjs +1 -0
  335. package/dist/chunks/index-1.1.26-vk1z10tp.mjs +1 -0
  336. package/dist/chunks/index-1.1.26-vpyv4546.mjs +9 -0
  337. package/dist/chunks/index-1.1.26-xc6bagza.mjs +1 -0
  338. package/dist/chunks/init-1.1.26-bnpznn1w.mjs +1 -0
  339. package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +1 -0
  340. package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +1 -0
  341. package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +870 -0
  342. package/dist/chunks/install-1.1.26-4y132asw.mjs +1 -0
  343. package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +149 -0
  344. package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +1 -0
  345. package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +1 -0
  346. package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +1 -0
  347. package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +2 -0
  348. package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +2 -0
  349. package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +1 -0
  350. package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +1 -0
  352. package/dist/chunks/log-1.1.26-esy3mc70.mjs +1 -0
  353. package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +17 -0
  356. package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +1 -0
  359. package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +72 -0
  360. package/dist/chunks/model-1.1.26-fhssfrx1.mjs +1 -0
  361. package/dist/chunks/model-1.1.26-v4t85ag1.mjs +2 -0
  362. package/dist/chunks/node-1.1.26-y7ck63cv.mjs +15 -0
  363. package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +1 -0
  366. package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +1 -0
  368. package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +1 -0
  369. package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +3 -0
  372. package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +1 -0
  373. package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +2 -0
  378. package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +57 -0
  379. package/dist/chunks/process-1.1.26-nkvbv24g.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +9 -0
  382. package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +1 -0
  383. package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +1 -0
  384. package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +13 -0
  386. package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +26 -0
  391. package/dist/chunks/registry-1.1.26-z88679pc.mjs +1 -0
  392. package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +2 -0
  394. package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +1 -0
  397. package/dist/chunks/rename-1.1.26-vp06xehr.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +1 -0
  400. package/dist/chunks/resume-1.1.26-agfxxd17.mjs +2 -0
  401. package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +1 -0
  403. package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +10 -0
  404. package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +1 -0
  405. package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +1 -0
  406. package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +2 -0
  407. package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +1 -0
  408. package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +1 -0
  409. package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +1 -0
  410. package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +1 -0
  411. package/dist/chunks/setup-1.1.26-2qatx87q.mjs +12 -0
  412. package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +1 -0
  413. package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +1 -0
  414. package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +1 -0
  415. package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +1 -0
  416. package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +1 -0
  417. package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +1 -0
  418. package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +1 -0
  419. package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +1 -0
  420. package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +1 -0
  421. package/dist/chunks/tasks-1.1.26-05xaegas.mjs +1 -0
  422. package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +1 -0
  423. package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +1 -0
  424. package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +1 -0
  425. package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +1 -0
  426. package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +1 -0
  427. package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +1 -0
  428. package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +1 -0
  429. package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +1 -0
  430. package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +1 -0
  431. package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +1 -0
  432. package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +1 -0
  433. package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +69 -0
  434. package/dist/chunks/types-1.1.26-myrve966.mjs +1 -0
  435. package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +4 -0
  436. package/dist/chunks/update-1.1.26-96yjt7je.mjs +72 -0
  437. package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +1 -0
  438. package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +7 -0
  439. package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +14 -0
  440. package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +1 -0
  441. package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +1 -0
  442. package/dist/chunks/util-1.1.26-f55brgp6.mjs +1 -0
  443. package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +1 -0
  444. package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +1 -0
  445. package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +13 -0
  446. package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +1 -0
  447. package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +132 -0
  448. package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +1 -0
  449. package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +1 -0
  450. package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +1 -0
  451. package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +7 -0
  452. package/dist/cli.mjs +2 -2
  453. package/package.json +9 -9
  454. package/dist/chunks/AgentTool-1.1.24-qv4fnna8.mjs +0 -1
  455. package/dist/chunks/App-1.1.24-say2rpmy.mjs +0 -1
  456. package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +0 -1
  457. package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +0 -1
  458. package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +0 -1
  459. package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +0 -1
  460. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +0 -1
  461. package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +0 -1
  462. package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +0 -6
  463. package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +0 -1
  464. package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +0 -6
  465. package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +0 -1
  471. package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +0 -1
  481. package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +0 -1
  483. package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +0 -110
  484. package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +0 -3
  485. package/dist/chunks/api-1.1.24-dkqpat59.mjs +0 -1
  486. package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +0 -1
  487. package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +0 -1
  488. package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +0 -1
  489. package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +0 -1
  490. package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +0 -52
  491. package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +0 -44
  492. package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +0 -1
  493. package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +0 -1
  494. package/dist/chunks/branch-1.1.24-3df7e69c.mjs +0 -4
  495. package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +0 -2
  496. package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +0 -1
  497. package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +0 -1
  498. package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +0 -88
  499. package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +0 -1
  500. package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +0 -1
  501. package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +0 -3
  502. package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +0 -4
  504. package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +0 -1
  505. package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +0 -3
  506. package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +0 -1
  507. package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +0 -1
  508. package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +0 -1
  509. package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +0 -1
  510. package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +0 -2
  511. package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +0 -2
  512. package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +0 -2
  513. package/dist/chunks/cli-1.1.24-12hfxy63.mjs +0 -12
  514. package/dist/chunks/cli-1.1.24-14842nvc.mjs +0 -2
  515. package/dist/chunks/cli-1.1.24-190psky8.mjs +0 -2
  516. package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +0 -2
  517. package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +0 -2
  518. package/dist/chunks/cli-1.1.24-228jgyfg.mjs +0 -2
  519. package/dist/chunks/cli-1.1.24-241znxsf.mjs +0 -2
  520. package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +0 -2
  521. package/dist/chunks/cli-1.1.24-2d5h000x.mjs +0 -2
  522. package/dist/chunks/cli-1.1.24-2g0372f8.mjs +0 -2
  523. package/dist/chunks/cli-1.1.24-2md121ma.mjs +0 -2
  524. package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +0 -5456
  525. package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +0 -2
  526. package/dist/chunks/cli-1.1.24-308y9m4j.mjs +0 -2
  527. package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +0 -3
  528. package/dist/chunks/cli-1.1.24-36c9cxby.mjs +0 -25
  529. package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +0 -2
  530. package/dist/chunks/cli-1.1.24-3n53gv32.mjs +0 -2
  531. package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +0 -12
  532. package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +0 -2
  533. package/dist/chunks/cli-1.1.24-47657dtc.mjs +0 -2
  534. package/dist/chunks/cli-1.1.24-4cre60p8.mjs +0 -2
  535. package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +0 -2
  536. package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +0 -2
  537. package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +0 -2
  538. package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +0 -2
  539. package/dist/chunks/cli-1.1.24-5jpkct15.mjs +0 -2
  540. package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +0 -2
  541. package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +0 -2
  542. package/dist/chunks/cli-1.1.24-5vw5z579.mjs +0 -2
  543. package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +0 -2
  544. package/dist/chunks/cli-1.1.24-6gj496xe.mjs +0 -4
  545. package/dist/chunks/cli-1.1.24-6hqn628p.mjs +0 -2
  546. package/dist/chunks/cli-1.1.24-6mm894jd.mjs +0 -5
  547. package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +0 -2
  548. package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +0 -6
  549. package/dist/chunks/cli-1.1.24-6rneem3p.mjs +0 -2
  550. package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +0 -2
  551. package/dist/chunks/cli-1.1.24-707k0kc7.mjs +0 -133
  552. package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +0 -2
  553. package/dist/chunks/cli-1.1.24-7ahqssha.mjs +0 -2
  554. package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.24-7ga8r482.mjs +0 -2
  556. package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +0 -4
  557. package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +0 -2
  558. package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +0 -2
  559. package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +0 -2
  560. package/dist/chunks/cli-1.1.24-8d439hr1.mjs +0 -2
  561. package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +0 -7
  562. package/dist/chunks/cli-1.1.24-8n6b217h.mjs +0 -50
  563. package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +0 -2
  564. package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +0 -2
  565. package/dist/chunks/cli-1.1.24-8xvf355a.mjs +0 -2
  566. package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +0 -2
  567. package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +0 -2
  568. package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +0 -2
  569. package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +0 -2
  570. package/dist/chunks/cli-1.1.24-9414cm38.mjs +0 -2
  571. package/dist/chunks/cli-1.1.24-985tmwb6.mjs +0 -2
  572. package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +0 -3
  573. package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +0 -2
  574. package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +0 -2
  575. package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +0 -2
  576. package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +0 -58
  577. package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +0 -2
  578. package/dist/chunks/cli-1.1.24-aaym95m1.mjs +0 -2
  579. package/dist/chunks/cli-1.1.24-abyr5pge.mjs +0 -2
  580. package/dist/chunks/cli-1.1.24-agq0y77k.mjs +0 -9
  581. package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +0 -4
  582. package/dist/chunks/cli-1.1.24-b3nksc62.mjs +0 -2
  583. package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +0 -2
  584. package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +0 -2
  585. package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +0 -2
  586. package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +0 -2
  587. package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +0 -2
  588. package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +0 -4
  589. package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +0 -2
  590. package/dist/chunks/cli-1.1.24-c0j54zba.mjs +0 -25
  591. package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +0 -2
  592. package/dist/chunks/cli-1.1.24-c7007hz6.mjs +0 -2
  593. package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +0 -2
  594. package/dist/chunks/cli-1.1.24-chach6xd.mjs +0 -39
  595. package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +0 -4
  596. package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +0 -2
  597. package/dist/chunks/cli-1.1.24-d371v1bp.mjs +0 -42
  598. package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +0 -18
  599. package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +0 -16
  600. package/dist/chunks/cli-1.1.24-e21q73az.mjs +0 -2
  601. package/dist/chunks/cli-1.1.24-e960m296.mjs +0 -2
  602. package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +0 -4
  603. package/dist/chunks/cli-1.1.24-ex7hr389.mjs +0 -3
  604. package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +0 -133
  605. package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +0 -2
  606. package/dist/chunks/cli-1.1.24-f2exw52y.mjs +0 -2
  607. package/dist/chunks/cli-1.1.24-f942w88t.mjs +0 -2
  608. package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +0 -18
  609. package/dist/chunks/cli-1.1.24-fqh8r338.mjs +0 -2
  610. package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +0 -2
  611. package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +0 -34
  612. package/dist/chunks/cli-1.1.24-gb39akdj.mjs +0 -2
  613. package/dist/chunks/cli-1.1.24-gbya20sv.mjs +0 -2
  614. package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +0 -2
  615. package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +0 -2
  616. package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +0 -2
  617. package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +0 -2
  618. package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +0 -4
  619. package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +0 -24
  620. package/dist/chunks/cli-1.1.24-hty94kzp.mjs +0 -2
  621. package/dist/chunks/cli-1.1.24-jetxd54w.mjs +0 -2
  622. package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +0 -2
  623. package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +0 -3
  624. package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +0 -3
  625. package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +0 -2
  626. package/dist/chunks/cli-1.1.24-k1dhj122.mjs +0 -2
  627. package/dist/chunks/cli-1.1.24-k2cach52.mjs +0 -2
  628. package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +0 -2
  629. package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +0 -2
  630. package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +0 -21
  631. package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +0 -2
  632. package/dist/chunks/cli-1.1.24-mgndv90z.mjs +0 -24
  633. package/dist/chunks/cli-1.1.24-mwva78xt.mjs +0 -2
  634. package/dist/chunks/cli-1.1.24-myqjptqw.mjs +0 -2
  635. package/dist/chunks/cli-1.1.24-n18majmw.mjs +0 -8
  636. package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +0 -3
  637. package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +0 -2
  638. package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +0 -2
  640. package/dist/chunks/cli-1.1.24-nhz403dg.mjs +0 -3
  641. package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +0 -2
  642. package/dist/chunks/cli-1.1.24-nsggarp4.mjs +0 -2
  643. package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +0 -2
  644. package/dist/chunks/cli-1.1.24-p2a545ga.mjs +0 -3
  645. package/dist/chunks/cli-1.1.24-p71y388t.mjs +0 -2
  646. package/dist/chunks/cli-1.1.24-pe23qamd.mjs +0 -206
  647. package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +0 -6
  648. package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +0 -2
  649. package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +0 -2
  650. package/dist/chunks/cli-1.1.24-prprq6xe.mjs +0 -2
  651. package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +0 -6
  652. package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +0 -2
  653. package/dist/chunks/cli-1.1.24-qn608pma.mjs +0 -2
  654. package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +0 -2
  655. package/dist/chunks/cli-1.1.24-s241cgaj.mjs +0 -3
  656. package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +0 -2
  657. package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +0 -2
  658. package/dist/chunks/cli-1.1.24-skqekybx.mjs +0 -2
  659. package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +0 -17
  660. package/dist/chunks/cli-1.1.24-sv60tfze.mjs +0 -2
  661. package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +0 -9
  662. package/dist/chunks/cli-1.1.24-t811r68k.mjs +0 -2
  663. package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +0 -24
  664. package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +0 -2
  665. package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +0 -15
  666. package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +0 -2
  667. package/dist/chunks/cli-1.1.24-v322mn8d.mjs +0 -6
  668. package/dist/chunks/cli-1.1.24-vandpwa9.mjs +0 -2
  669. package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +0 -60
  670. package/dist/chunks/cli-1.1.24-vg493phv.mjs +0 -2
  671. package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +0 -2
  672. package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +0 -3
  673. package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +0 -17
  674. package/dist/chunks/cli-1.1.24-vz1y844w.mjs +0 -2
  675. package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +0 -2
  676. package/dist/chunks/cli-1.1.24-w828y1cd.mjs +0 -2
  677. package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +0 -4
  678. package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +0 -3
  679. package/dist/chunks/cli-1.1.24-wmzctccq.mjs +0 -4
  680. package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +0 -2
  681. package/dist/chunks/cli-1.1.24-wshydefj.mjs +0 -2
  682. package/dist/chunks/cli-1.1.24-ww5zft49.mjs +0 -20
  683. package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +0 -2
  684. package/dist/chunks/cli-1.1.24-wygwske9.mjs +0 -2
  685. package/dist/chunks/cli-1.1.24-x1wayra7.mjs +0 -7
  686. package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +0 -2
  687. package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +0 -2
  688. package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +0 -2
  689. package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +0 -1
  690. package/dist/chunks/cli-1.1.24-xdhm369m.mjs +0 -15
  691. package/dist/chunks/cli-1.1.24-xmtasnec.mjs +0 -2
  692. package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +0 -3
  693. package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +0 -2
  694. package/dist/chunks/cli-1.1.24-y4gprept.mjs +0 -2
  695. package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +0 -2
  696. package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +0 -2
  697. package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +0 -4
  698. package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +0 -2
  699. package/dist/chunks/cli-1.1.24-yh801h84.mjs +0 -2
  700. package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +0 -5
  701. package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +0 -6
  702. package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +0 -2
  703. package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +0 -45
  704. package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +0 -2
  705. package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +0 -2
  706. package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +0 -3
  707. package/dist/chunks/cli-1.1.24-z5t424fy.mjs +0 -15
  708. package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +0 -24
  709. package/dist/chunks/cli-1.1.24-zey4mks2.mjs +0 -6
  710. package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +0 -66
  711. package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +0 -2
  712. package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +0 -2
  713. package/dist/chunks/cli-1.1.24-zzy8r310.mjs +0 -3
  714. package/dist/chunks/client-1.1.24-04048dd4.mjs +0 -1
  715. package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +0 -1
  716. package/dist/chunks/compact-1.1.24-191dct4e.mjs +0 -3
  717. package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +0 -1
  718. package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +0 -1
  719. package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +0 -1
  720. package/dist/chunks/context-1.1.24-m2nks3pf.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +0 -1
  724. package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +0 -9
  725. package/dist/chunks/cost-1.1.24-n2977gae.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.24-jmw71620.mjs +0 -1
  728. package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +0 -1534
  730. package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +0 -1
  732. package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +0 -1
  733. package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +0 -1
  737. package/dist/chunks/effort-1.1.24-pj04350n.mjs +0 -13
  738. package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +0 -1
  742. package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +0 -1
  743. package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +0 -1
  746. package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +0 -1
  748. package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +0 -1
  751. package/dist/chunks/fast-1.1.24-b97zvms4.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +0 -1
  754. package/dist/chunks/git-1.1.24-g44mqdr1.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +0 -1
  756. package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +0 -4
  757. package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +0 -1
  758. package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +0 -2
  759. package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +0 -6
  760. package/dist/chunks/help-1.1.24-4pb60ggc.mjs +0 -1
  761. package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +0 -3
  762. package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +0 -79
  763. package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +0 -1
  764. package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +0 -3
  765. package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +0 -1
  766. package/dist/chunks/import-1.1.24-bpnr0awz.mjs +0 -261
  767. package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +0 -1
  768. package/dist/chunks/index-1.1.24-1qfnahpf.mjs +0 -5
  769. package/dist/chunks/index-1.1.24-2c5tqanw.mjs +0 -1
  770. package/dist/chunks/index-1.1.24-3pkassck.mjs +0 -1
  771. package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +0 -30
  772. package/dist/chunks/index-1.1.24-5kf8n97z.mjs +0 -1
  773. package/dist/chunks/index-1.1.24-7nn95an1.mjs +0 -2
  774. package/dist/chunks/index-1.1.24-8005ram7.mjs +0 -1
  775. package/dist/chunks/index-1.1.24-80m0ydka.mjs +0 -2
  776. package/dist/chunks/index-1.1.24-931bwhyw.mjs +0 -9
  777. package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +0 -1
  778. package/dist/chunks/index-1.1.24-bvewx84q.mjs +0 -1
  779. package/dist/chunks/index-1.1.24-hvxes6d7.mjs +0 -1
  780. package/dist/chunks/index-1.1.24-j4v31wtc.mjs +0 -1
  781. package/dist/chunks/index-1.1.24-jt13vzsz.mjs +0 -1
  782. package/dist/chunks/index-1.1.24-k9m56w47.mjs +0 -1
  783. package/dist/chunks/index-1.1.24-ksthp5f5.mjs +0 -1
  784. package/dist/chunks/index-1.1.24-p0dh0w23.mjs +0 -1
  785. package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +0 -1
  786. package/dist/chunks/index-1.1.24-ry33qapt.mjs +0 -23
  787. package/dist/chunks/index-1.1.24-wrwbr5my.mjs +0 -1
  788. package/dist/chunks/index-1.1.24-x476ts8e.mjs +0 -1
  789. package/dist/chunks/index-1.1.24-yz1p3g13.mjs +0 -1
  790. package/dist/chunks/index-1.1.24-zpd6455g.mjs +0 -9
  791. package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +0 -1
  793. package/dist/chunks/ink-1.1.24-n7wnynts.mjs +0 -1
  794. package/dist/chunks/insights-1.1.24-brh3tfms.mjs +0 -870
  795. package/dist/chunks/install-1.1.24-bnszrzxv.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +0 -1
  805. package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +0 -1
  806. package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +0 -1
  807. package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +0 -1
  808. package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +0 -4
  809. package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +0 -17
  810. package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +0 -1
  811. package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +0 -1
  812. package/dist/chunks/memory-1.1.24-dvn88stz.mjs +0 -72
  813. package/dist/chunks/model-1.1.24-jqp66a34.mjs +0 -1
  814. package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +0 -2
  815. package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +0 -15
  816. package/dist/chunks/oauth-1.1.24-5v87662s.mjs +0 -1
  817. package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +0 -14
  818. package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +0 -1
  819. package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +0 -1
  820. package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +0 -1
  821. package/dist/chunks/parser-1.1.24-r4f154gw.mjs +0 -1
  822. package/dist/chunks/passes-1.1.24-znx7myf5.mjs +0 -1
  823. package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +0 -3
  824. package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +0 -1
  825. package/dist/chunks/plan-1.1.24-vhaqffge.mjs +0 -1
  826. package/dist/chunks/plist-1.1.24-a5racx0y.mjs +0 -1
  827. package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +0 -29
  828. package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +0 -1
  829. package/dist/chunks/plugins-1.1.24-mza746hr.mjs +0 -9
  830. package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +0 -2
  831. package/dist/chunks/print-1.1.24-3xs40xg6.mjs +0 -57
  832. package/dist/chunks/process-1.1.24-7znk7nvb.mjs +0 -1
  833. package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +0 -1
  834. package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +0 -9
  835. package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +0 -1
  836. package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +0 -1
  837. package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +0 -1
  838. package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +0 -13
  839. package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +0 -2
  840. package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +0 -1
  841. package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +0 -6
  842. package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +0 -1
  843. package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +0 -26
  844. package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +0 -1
  845. package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +0 -5
  846. package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +0 -2
  847. package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +0 -1
  848. package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +0 -1
  849. package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +0 -1
  850. package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +0 -1
  851. package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +0 -1
  852. package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +0 -1
  853. package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +0 -2
  854. package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +0 -1
  855. package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +0 -1
  856. package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +0 -10
  857. package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +0 -1
  858. package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +0 -1
  859. package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +0 -2
  860. package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +0 -1
  861. package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +0 -1
  862. package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +0 -1
  863. package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +0 -1
  864. package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +0 -12
  865. package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +0 -1
  866. package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +0 -1
  867. package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +0 -1
  868. package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +0 -1
  869. package/dist/chunks/state-1.1.24-5c4debwf.mjs +0 -1
  870. package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +0 -6
  871. package/dist/chunks/status-1.1.24-abhqj5mw.mjs +0 -1
  872. package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +0 -1
  873. package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +0 -1
  874. package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +0 -1
  875. package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +0 -1
  876. package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +0 -1
  877. package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +0 -1
  878. package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +0 -1
  879. package/dist/chunks/theme-1.1.24-x6419d8v.mjs +0 -1
  880. package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +0 -1
  881. package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +0 -1
  882. package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +0 -1
  883. package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +0 -1
  884. package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +0 -1
  885. package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +0 -1
  886. package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +0 -69
  887. package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +0 -1
  888. package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +0 -4
  889. package/dist/chunks/update-1.1.24-der2v1xy.mjs +0 -72
  890. package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +0 -1
  891. package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +0 -7
  892. package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +0 -14
  893. package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +0 -1
  894. package/dist/chunks/usage-1.1.24-69x06f48.mjs +0 -1
  895. package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +0 -1
  896. package/dist/chunks/utils-1.1.24-sr136rh9.mjs +0 -1
  897. package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +0 -1
  898. package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +0 -13
  899. package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +0 -1
  900. package/dist/chunks/wiki-1.1.24-aevd508s.mjs +0 -132
  901. package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +0 -1
  902. package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +0 -1
  904. package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +0 -7
  905. /package/dist/chunks/{cli-1.1.24-qt5m4501.mjs → cli-1.1.26-6g0bq6h6.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.1.24-x19qr19f.mjs → cli-1.1.26-7q7jw0ck.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.1.24-vwmxvbv9.mjs → cli-1.1.26-nqygxkhw.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.24-k5cs55nk.mjs → cli-1.1.26-rbz29dt9.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.24-1mx8wjec.mjs → cli-1.1.26-sgj6knz9.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.24-a33s2dcr.mjs → cli-1.1.26-t8fgt5kw.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{V0 as O,W0 as V,X0 as I,Z0 as W,_0 as p,m1 as v,n1 as X,o1 as D}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as N,O4 as T}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as H}from"./cli-1.1.26-kz0et72d.mjs";import{hsa as F,qpa as U}from"./cli-1.1.26-4aztw2ex.mjs";import{_ta as A,cua as C}from"./cli-1.1.26-zb5hq3ry.mjs";function h({children:Y,ref:Z,stickyScroll:_,...G}){let w=E.useRef(null),[,$]=E.useState(0),J=E.useRef(new Set),K=E.useRef(!1),P=()=>{for(let g of J.current)g()};function L(g){if(U(),O(g),W(),P(),K.current)return;K.current=!0,queueMicrotask(()=>{K.current=!1,V(g)})}return E.useImperativeHandle(Z,()=>({scrollTo(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.pendingScrollDelta=void 0,q.scrollAnchor=void 0,q.scrollTop=Math.max(0,Math.floor(g)),L(q)},scrollToElement(g,q=0){let z=w.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor={el:g,offset:q},L(z)},scrollBy(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.scrollAnchor=void 0,q.pendingScrollDelta=(q.pendingScrollDelta??0)+Math.floor(g),L(q)},scrollToBottom(){let g=w.current;if(!g)return;g.pendingScrollDelta=void 0,g.stickyScroll=!0,O(g),P(),$((q)=>q+1)},getScrollTop(){return w.current?.scrollTop??0},getPendingDelta(){return w.current?.pendingScrollDelta??0},getScrollHeight(){return w.current?.scrollHeight??0},getFreshScrollHeight(){return w.current?.childNodes[0]?.yogaNode?.getComputedHeight()??w.current?.scrollHeight??0},getViewportHeight(){return w.current?.scrollViewportHeight??0},getViewportTop(){return w.current?.scrollViewportTop??0},isSticky(){let g=w.current;if(!g)return!1;return g.stickyScroll??Boolean(g.attributes.stickyScroll)},subscribe(g){return J.current.add(g),()=>J.current.delete(g)},setClampBounds(g,q){let z=w.current;if(!z)return;z.scrollClampMin=g,z.scrollClampMax=q}}),[]),N("ink-box",{ref:(g)=>{if(w.current=g,g)g.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:G.flexDirection??"row",flexGrow:G.flexGrow??0,flexShrink:G.flexShrink??1,...G,overflowX:"scroll",overflowY:"scroll"},..._?{stickyScroll:!0}:{},children:N(X,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:Y})})}var E,a;var B=C(()=>{F();I();p();v();D();T();E=A(H(),1);a=h});
2
+ export{a as li,B as mi};
@@ -0,0 +1,2 @@
1
+ import{Fha as C,Nha as J,v$ as z,x$ as H}from"./cli-1.1.26-mvjefec1.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,2 @@
1
+ import{Hh as SJ,Ih as YQ}from"./cli-1.1.26-w94mate8.mjs";import{gi as S,hi as CJ}from"./cli-1.1.26-6p5bpbzy.mjs";import{Ax as QQ,Br as OJ,Fr as QJ,Hr as fq,Kr as MJ,Lr as ZJ,Ly as Sq,My as _q,Ny as gJ,YG as FJ,ZG as zQ,eo as IJ,fo as oJ,kr as xq,ky as bq,ly as BJ,mr as h,nr as jJ,ny as ZQ,qo as DJ,ro as tJ,so as LJ,to as eJ,uo as RJ,vo as qQ,wr as NJ,zr as TJ,zx as wJ}from"./cli-1.1.26-kvt0v6vq.mjs";import{eZ as AJ,fZ as lJ,iZ as PJ,jZ as aJ,rZ as VJ,sZ as JQ}from"./cli-1.1.26-j0pfn318.mjs";import{E1 as M,G1 as V,I1 as sq,J1 as EJ,f0 as hJ,j2 as rJ}from"./cli-1.1.26-nv2mgz6h.mjs";import{L4 as GJ,M4 as D,N4 as T,O4 as YJ}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as sJ}from"./cli-1.1.26-kz0et72d.mjs";import{E6 as mq,F6 as WJ,H6 as gq,H7 as p,K7 as Cq,O7 as dJ,T6 as HJ,Y6 as nJ,_7 as _J,c9 as kJ,d8 as AQ,v7 as uq,x7 as r,x9 as PQ}from"./cli-1.1.26-tgtv1jp3.mjs";import{T9 as X,U9 as yJ}from"./cli-1.1.26-32vewh62.mjs";import{Aca as aq,Bca as tq,Cca as vq,Dca as eq,Eca as qJ,Fca as JJ,Qca as cJ}from"./cli-1.1.26-mvjefec1.mjs";import{Ika as UJ,Lka as pJ}from"./cli-1.1.26-n0thzakv.mjs";import{_ta as XJ,cua as Dq}from"./cli-1.1.26-zb5hq3ry.mjs";function rq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function Y(J,q,Q){if(q.startsWith("ansi:")){let z=q.slice(5),K=J;if(Q==="fg")return K[z]??J;let U=`bg${z[0].toUpperCase()}${z.slice(1)}`;return K[U]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let z=parseInt(q.slice(8));return Q==="fg"?J.ansi256(z):J.bgAnsi256(z)}let Z=$J.exec(q);if(Z){let[z,K,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(z,K,U):J.bgRgb(z,K,U)}return J}function NQ(J,q,Q,Z,z){if(!S())return fJ(J,q,Q,Z,z);let{suggestion:K,messageActionsBackground:U}=z,H=U==="ansi:white"||U==="ansi:whiteBright"?z.inactive:U,G=z.inverseText,A=z.suggestion,L=Y(Y(X,K,"bg"),G,"fg").bold,I=Y(Y(X,K,"fg"),H,"bg"),P=Y(Y(X,H,"bg"),A,"fg"),R=Y(X,H,"fg"),w=Y(X,K,"fg"),j=L(` ${J} `);if(q){if(j+=I(F),j+=P(` ${hq} ${q}`),Q>0||Z>0){if(j+=P(" ("),Q>0)j+=Y(Y(X,H,"bg"),z.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)j+=P(" ");if(Z>0)j+=Y(Y(X,H,"bg"),z.warning,"fg")(`↓${Z}`);j+=P(")")}j+=P(" "),j+=R(F)}else j+=w(F);return j}function TQ(J,q,Q){if(!S()){let H=Y(X,q.suggestion,"fg").bold;return`[ ${H(J)} ]`}let{suggestion:Z,inverseText:z}=q,K=Y(Y(X,Z,"bg"),z,"fg").bold,U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J} `)+U(F)}function OQ(J,q,Q){if(!J)return"";if(!S()){let H=Y(X,q.suggestion,"fg").bold;return`[ ${H(J.trim())} ]`}let{suggestion:Z,inverseText:z}=q,K=Y(Y(X,Z,"bg"),z,"fg").bold,U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J}`)+U(F)}function MQ(J,q,Q){if(!J)return"";if(!S())return`[ ${Y(X,q.suggestion,"fg")(J.trim())} ]`;let Z=rq(q),z=q.suggestion,K=Y(Y(X,Z,"bg"),z,"fg"),U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J}`)+U(F)}function oq(J,q,Q){if(!J)return"";if(!S())return`[ ${J} ]`;let Z=Y(Y(X,q,"bg"),Q.inverseText,"fg").bold,z=Y(X,q,"fg");return Z(` ${J} `)+z(F)}function uJ(J,q,Q,Z){if(!S())return"";let z=J+q;if(z<=0)return"";let K=Math.round(J/z*kq);return Q(nq.repeat(K))+Z(nq.repeat(kq-K))}function wQ(J,q,Q=Number.POSITIVE_INFINITY){let Z=Y(X,q.success,"fg"),z=Y(X,q.error,"fg"),K=Y(X,q.inactive,"fg"),U=J.branch,H=U?{count:U,ref:U.base}:J.uncommitted?{count:J.uncommitted,ref:"HEAD"}:{count:J.session},{count:G,ref:A}=H;if(G.added<=0&&G.removed<=0)return null;let L=[],I=0;if(A)L.push(K(A)),I+=A.length;if(G.added>0){let w=`+${G.added}`;L.push(Z(w)),I+=w.length}if(G.removed>0){let w=`-${G.removed}`;L.push(z(w)),I+=w.length}let P=uJ(G.added,G.removed,Z,z);if(P)L.push(P),I+=kq;let R=I+L.length-1+4;if(R>Q)return null;return{text:`${K("[")} ${L.join(" ")} ${K("]")}`,width:R}}function BQ(J,q,Q,Z,z){if(!J)return"";if(!S()){let I=Y(X,Z.suggestion,"fg")(J);if(q>0||Q>0){if(I+=" (",q>0)I+=Y(X,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=" ";if(Q>0)I+=Y(X,Z.warning,"fg")(`↓${Q}`);I+=")"}return`[ ${I} ]`}let K=rq(Z),U=Z.suggestion,H=Y(Y(X,K,"bg"),U,"fg"),G=z?Y(Y(X,z,"bg"),K,"fg"):Y(X,K,"fg"),A=H(` ${hq} ${J}`);if(q>0||Q>0){if(A+=H(" ("),q>0)A+=Y(Y(X,K,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)A+=H(" ");if(Q>0)A+=Y(Y(X,K,"bg"),Z.warning,"fg")(`↓${Q}`);A+=H(")")}return A+=H(" "),A+=G(F),A}function dq(J,q){if(!q||!sq())return J;return`${Sq}${q}${_q}${J}${Sq}${_q}`}function FQ(J,q,Q,Z="PR",z){if(!S()){let L=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,I=dq(Y(X,L,"fg")(`#${J}`),z);return`[ ${Y(X,Q.inactive,"fg")(Z)} ${I} ]`}let K=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,H=Y(Y(X,K,"bg"),Q.inactive,"fg"),G=Y(Y(X,K,"bg"),U,"fg"),A=Y(X,K,"fg");return H(` ${bJ} `)+dq(G(`#${J}`),z)+H(" ")+A(F)}function fJ(J,q,Q,Z,z){let K=Y(X,z.suggestion,"fg").bold,U=`[ ${K(J)} ]`;if(q){let G=Y(X,z.suggestion,"fg")(q);if(Q>0||Z>0){if(G+=" (",Q>0)G+=Y(X,z.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)G+=" ";if(Z>0)G+=Y(X,z.warning,"fg")(`↓${Z}`);G+=")"}U+=` [ ${G} ]`}return U}var F="",hq="",bJ="",$J,kq=4,nq="■";var lq=Dq(()=>{yJ();EJ();gJ();CJ();$J=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function iJ(J,q){if(xq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function xQ(J,q,Q){if(!h(q))return;let Z=QJ(q,J),z=iJ(Z,Q);return{pill:oq(`${yq(Z)} ${Z}`,z,Q),bg:z}}function yq(J){if(xq(J))return JJ;switch(J){case"low":return aq;case"medium":return tq;case"high":return vq;case"xhigh":return eq;case"max":return qJ;default:return vq}}var zJ=Dq(()=>{cJ();ZJ();lq()});function tQ(J){let q=cq.c(82),{initial:Q,sessionModel:Z,onSelect:z,onCancel:K,isStandaloneCommand:U,showFastModeNotice:H,headerText:G,skipSettingsWrite:A}=J,L=BJ(),I=PJ(),P=Q===null?n:Q,[R,w]=Lq.useState(P),j=bq(HQ),[_,vJ]=Lq.useState(!1),k=bq(WQ),o;if(q[0]!==k)o=k!==void 0?fq(k):void 0,q[0]=k,q[1]=o;else o=q[1];let[v,iq]=Lq.useState(o),Rq=j??!1,l;if(q[2]!==Rq)l=wJ(Rq),q[2]=Rq,q[3]=l;else l=q[3];let d=l,Vq;q:{if(Q!==null&&!d.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return r(p(String(W.value)))===r(p(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=Cq(Q),q[4]=Q,q[5]=W;else W=q[5];let N;if(q[6]!==Q||q[7]!==W)N={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=N;else N=q[8];let x;if(q[9]!==d||q[10]!==N)x=[...d,N],q[9]=d,q[10]=N,q[11]=x;else x=q[11];Vq=x;break q}Vq=d}let jq=Vq,a;if(q[12]!==jq)a=jq.map(UQ),q[12]=jq,q[13]=a;else a=q[13];let O=a,t;if(q[14]!==P||q[15]!==O)t=O.find((W)=>{if(W.value===P)return!0;if(P===n||W.value===null)return!1;try{return r(p(String(W.value)))===r(p(String(P)))}catch{return!1}})?.value??O[0]?.value??void 0,q[14]=P,q[15]=O,q[16]=t;else t=q[16];let Nq=t,Tq=Math.min(10,O.length),e=0,qq;if(q[17]!==R||q[18]!==O)qq=O.find((W)=>W.value===R)?.label,q[17]=R,q[18]=O,q[19]=qq;else qq=q[19];let Jq=qq,B,Qq;if(q[20]!==R){let W=$q(R);B=W?h(W):!1,Qq=W?jJ(W):!1,q[20]=R,q[21]=B,q[22]=Qq}else B=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==R)zq=Eq(R),q[23]=R,q[24]=zq;else zq=q[24];let y=zq,s=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==k||q[26]!==_)Yq=(W)=>{if(w(W),!_&&k===void 0)iq(Eq(W))},q[25]=k,q[26]=_,q[27]=Yq;else Yq=q[27];let Oq=Yq,Kq;if(q[28]!==y||q[29]!==B||q[30]!==Zq)Kq=(W)=>{if(!B)return;iq((N)=>GQ(N??y,W,Zq)),vJ(!0)},q[28]=y,q[29]=B,q[30]=Zq,q[31]=Kq;else Kq=q[31];let Xq=Kq,Uq;if(q[32]!==Xq)Uq={"modelPicker:decreaseEffort":()=>Xq("left"),"modelPicker:increaseEffort":()=>Xq("right")},q[32]=Xq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];AJ(Uq,Wq);let Hq;if(q[35]!==v||q[36]!==_||q[37]!==z||q[38]!==L||q[39]!==A)Hq=function(N){if(UJ("",{effort:v}),!A){let Fq=OJ(v,Eq(N),TJ(),_);if(Fq!==void 0)NJ(Fq);L((xJ)=>({...xJ,effortValue:Fq}))}let x=$q(N),pq=_&&x&&h(x)?v:void 0;if(N===n){z(null,pq);return}z(N,pq)},q[35]=v,q[36]=_,q[37]=z,q[38]=L,q[39]=A,q[40]=Hq;else Hq=q[40];let Mq=Hq,Gq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Gq=D(V,{color:"remember",bold:!0,children:"Select model"}),q[41]=Gq;else Gq=q[41];let wq=G??"Switch between Claude models. Applies to this session and future Claudin sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=D(V,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let g;if(q[44]!==Z)g=Z&&T(V,{dimColor:!0,children:["Currently using ",Cq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=g;else g=q[45];let C;if(q[46]!==E||q[47]!==g)C=T(M,{marginBottom:1,flexDirection:"column",children:[Gq,E,g]}),q[46]=E,q[47]=g,q[48]=C;else C=q[48];let Bq=K??XQ,b;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Nq||q[52]!==P||q[53]!==O||q[54]!==Bq||q[55]!==Tq)b=D(M,{flexDirection:"column",children:D(FJ,{defaultValue:P,defaultFocusValue:Nq,options:O,onChange:Mq,onFocus:Oq,onCancel:Bq,visibleOptionCount:Tq,favorites:KQ,searchPlaceholder:"Search models…",showOverflowCount:!0})}),q[49]=Oq,q[50]=Mq,q[51]=Nq,q[52]=P,q[53]=O,q[54]=Bq,q[55]=Tq,q[56]=b;else b=q[56];let $;if(q[57]!==e)$=e>0&&D(M,{paddingLeft:3,children:T(V,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=$;else $=q[58];let m;if(q[59]!==b||q[60]!==$)m=T(M,{flexDirection:"column",marginBottom:1,children:[b,$]}),q[59]=b,q[60]=$,q[61]=m;else m=q[61];let u;if(q[62]!==s||q[63]!==y||q[64]!==Jq||q[65]!==B)u=D(M,{marginBottom:1,flexDirection:"column",children:B?T(V,{dimColor:!0,children:[D(KJ,{effort:s})," ",IJ(s)," effort",s===y?" (default)":""," ",D(V,{color:"subtle",children:"← → to adjust"})]}):T(V,{color:"subtle",children:[D(KJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=s,q[63]=y,q[64]=Jq,q[65]=B,q[66]=u;else u=q[66];let f;if(q[67]!==H)f=mq()?H?D(M,{marginBottom:1,children:T(V,{dimColor:!0,children:["Fast mode is ",D(V,{bold:!0,children:"ON"})," and available with"," ",gq," only (/fast). Switching to other models turn off fast mode."]})}):WJ()&&!HJ()?D(M,{marginBottom:1,children:T(V,{dimColor:!0,children:["Use ",D(V,{bold:!0,children:"/fast"})," to turn on Fast mode (",gq," only)."]})}):null:null,q[67]=H,q[68]=f;else f=q[68];let c;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==f)c=T(M,{flexDirection:"column",children:[C,m,u,f]}),q[69]=C,q[70]=m,q[71]=u,q[72]=f,q[73]=c;else c=q[73];let i;if(q[74]!==I||q[75]!==U)i=U&&D(V,{dimColor:!0,italic:!0,children:I.pending?T(GJ,{children:["Press ",I.keyName," again to exit"]}):T(RJ,{children:[D(DJ,{shortcut:"Enter",action:"confirm"}),D(LJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=I,q[75]=U,q[76]=i;else i=q[76];let Iq;if(q[77]!==c||q[78]!==i)Iq=T(M,{flexDirection:"column",children:[c,i]}),q[77]=c,q[78]=i,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Pq;if(q[80]!==Aq)Pq=D(VJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Pq;else Pq=q[81];return Pq}function XQ(){}function UQ(J){return{...J,value:J.value===null?n:J.value}}function WQ(J){return J.effortValue}function HQ(J){return mq()?J.fastMode:!1}function $q(J){if(!J)return;return J===n?uq():p(J)}function KJ(J){let q=cq.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",z=Q??"low",K;if(q[0]!==z)K=yq(z),q[0]=z,q[1]=K;else K=q[1];let U;if(q[2]!==Z||q[3]!==K)U=D(V,{color:Z,children:K}),q[2]=Z,q[3]=K,q[4]=U;else U=q[4];return U}function GQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],z=Z.indexOf(J),K=z!==-1?z:Z.indexOf("high");if(q==="right")return Z[(K+1)%Z.length];else return Z[(K-1+Z.length)%Z.length]}function Eq(J){let q=$q(J)??uq(),Q=MJ(q);return Q!==void 0?fq(Q):"high"}var cq,Lq,n="__NO_PREFERENCE__",KQ;var IQ=Dq(()=>{oJ();aJ();pJ();nJ();rJ();lJ();ZQ();ZJ();dJ();QQ();eJ();zQ();YQ();qQ();tJ();JQ();zJ();YJ();cq=XJ(hJ(),1),Lq=XJ(sJ(),1),KQ=SJ("model",(J)=>J===n?null:J)});function ZZ(J,q,Q){if(!kJ())return!1;if(q)return!0;if(J===null||!_J(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),z=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),K=Z==="sonnet"||Z.includes("sonnet-4-6");if(z&&Q)return!1;return z||K}var DQ=Dq(()=>{PQ();AQ()});
2
+ export{rq as qh,mJ as rh,NQ as sh,TQ as th,OQ as uh,MQ as vh,wQ as wh,BQ as xh,FQ as yh,lq as zh,xQ as Ah,yq as Bh,zJ as Ch,tQ as Dh,IQ as Eh,ZZ as Fh,DQ as Gh};
@@ -0,0 +1,2 @@
1
+ import{hsa as I,ooa as z,soa as F}from"./cli-1.1.26-4aztw2ex.mjs";import{cua as E}from"./cli-1.1.26-zb5hq3ry.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="channel",h="fork-boilerplate",l="Your directive: ",w,c;var N=E(()=>{w=["help","-h","--help"],c=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{U as Sja,K as Tja,V as Uja,W as Vja,M as Wja,Y as Xja,Z as Yja,$ as Zja,j as _ja,q as $ja,B as aka,L as bka,R as cka,_ as dka,b as eka,x as fka,A as gka,T as hka,k as ika,p as jka,u as kka,v as lka,y as mka,f as nka,C as oka,S as pka,O as qka,m as rka,g as ska,h as tka,l as uka,w as vka,c as wka,N as xka};
@@ -0,0 +1,2 @@
1
+ import{cua as M}from"./cli-1.1.26-zb5hq3ry.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
2
+ export{V as aj,W as bj,X as cj,Z as dj,Y as ej};
@@ -0,0 +1,39 @@
1
+ import{ER as L,FR as w,IS as M,mx as B,nx as U,uS as N}from"./cli-1.1.26-kvt0v6vq.mjs";import{Oba as z,Vba as F,gea as P}from"./cli-1.1.26-mvjefec1.mjs";import{cia as I,iia as v}from"./cli-1.1.26-79g0hfrb.mjs";import{cua as j}from"./cli-1.1.26-zb5hq3ry.mjs";async function V(W){let{messages:J,getAppState:Q,options:{mainLoopModel:K,tools:Z,agentDefinitions:_,customSystemPrompt:X,appendSystemPrompt:Y}}=W,R=N(J),{messages:O}=await B(R),q=Q();return L(O,K,async()=>q.toolPermissionContext,Z,_,void 0,{options:{customSystemPrompt:X,appendSystemPrompt:Y}},void 0,R)}async function g(W,J){let Q=await V(J);return{type:"text",value:b(Q)}}function b(W){let{categories:J,totalTokens:Q,rawMaxTokens:K,percentage:Z,model:_,memoryFiles:X,mcpTools:Y,agents:R,skills:O}=W,q=`## Context Usage
2
+
3
+ `;q+=`**Model:** ${_}
4
+ `,q+=`**Tokens:** ${I(Q)} / ${I(K)} (${Z}%)
5
+ `,q+=`
6
+ `;let $=J.filter((E)=>E.tokens>0&&E.name!=="Free space"&&E.name!=="Autocompact buffer");if($.length>0){q+=`### Estimated usage by category
7
+
8
+ `,q+=`| Category | Tokens | Percentage |
9
+ `,q+=`|----------|--------|------------|
10
+ `;for(let H of $){let h=(H.tokens/K*100).toFixed(1);q+=`| ${H.name} | ${I(H.tokens)} | ${h}% |
11
+ `}let E=J.find((H)=>H.name==="Free space");if(E&&E.tokens>0){let H=(E.tokens/K*100).toFixed(1);q+=`| Free space | ${I(E.tokens)} | ${H}% |
12
+ `}let G=J.find((H)=>H.name==="Autocompact buffer");if(G&&G.tokens>0){let H=(G.tokens/K*100).toFixed(1);q+=`| Autocompact buffer | ${I(G.tokens)} | ${H}% |
13
+ `}q+=`
14
+ `}if(Y.length>0){q+=`### MCP Tools
15
+
16
+ `,q+=`| Tool | Server | Tokens |
17
+ `,q+=`|------|--------|--------|
18
+ `;for(let E of Y)q+=`| ${E.name} | ${E.serverName} | ${I(E.tokens)} |
19
+ `;q+=`
20
+ `}if(R.length>0){q+=`### Custom Agents
21
+
22
+ `,q+=`| Agent Type | Source | Tokens |
23
+ `,q+=`|------------|--------|--------|
24
+ `;for(let E of R){let G;switch(E.source){case"projectSettings":G="Project";break;case"userSettings":G="User";break;case"localSettings":G="Local";break;case"flagSettings":G="Flag";break;case"policySettings":G="Policy";break;case"plugin":G="Plugin";break;case"built-in":G="Built-in";break;default:G=String(E.source)}q+=`| ${E.agentType} | ${G} | ${I(E.tokens)} |
25
+ `}q+=`
26
+ `}if(X.length>0){q+=`### Memory Files
27
+
28
+ `,q+=`| Type | Path | Tokens |
29
+ `,q+=`|------|------|--------|
30
+ `;for(let E of X)q+=`| ${E.type} | ${E.path} | ${I(E.tokens)} |
31
+ `;q+=`
32
+ `}if(O&&O.tokens>0&&O.skillFrontmatter.length>0){q+=`### Skills
33
+
34
+ `,q+=`| Skill | Source | Tokens |
35
+ `,q+=`|-------|--------|--------|
36
+ `;for(let E of O.skillFrontmatter)q+=`| ${E.name} | ${z(E.source)} | ${I(E.tokens)} |
37
+ `;q+=`
38
+ `}return q}var A=j(()=>{U();w();v();M();F();P()});
39
+ export{V as Sh,g as Th,A as Uh};
@@ -0,0 +1,2 @@
1
+ import{Ika as X,Lka as z}from"./cli-1.1.26-n0thzakv.mjs";import{Lla as $,Ola as P,ola as Z,tla as O}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as Y,qma as H}from"./cli-1.1.26-7ssnr221.mjs";import{cua as x}from"./cli-1.1.26-zb5hq3ry.mjs";function y(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function U(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function j(q){let K=typeof q==="string"?q:Z(q),J=y(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function h(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function m(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var A=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{U as Oe,j as Pe,h as Qe,m as Re,D as Se,L as Te,A as Ue};
@@ -0,0 +1,2 @@
1
+ import{Lka as f}from"./cli-1.1.26-n0thzakv.mjs";import{Ola as h}from"./cli-1.1.26-nr4x1ay3.mjs";import{cua as Z}from"./cli-1.1.26-zb5hq3ry.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var I=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(z){if(!z||z.length>D)return null;return null}async function pz(z){if(!z||z.length>D)return null;return null}function dz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(m(J.text));else if(l.has(J.type))break}return X}function m(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,l,oz;var L=Z(()=>{f();h();I();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),l=new Set(["command_substitution","process_substitution"]);oz=Symbol("parse-aborted")});
2
+ export{K as W9,I as X9,kz as Y9,oz as Z9,pz as _9,dz as $9,L as a_};
@@ -0,0 +1,2 @@
1
+ import{ge as F,je as A}from"./cli-1.1.26-851khk0n.mjs";import{Pe as D,Se as H,Ue as _}from"./cli-1.1.26-pttfqxxh.mjs";import{Cta as P,kta as U}from"./cli-1.1.26-hxty6b5t.mjs";P();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class L extends Error{status;errorType;constructor(J,K,Z){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=Z}}function y(J){function K(q){J.onDebug?.(q)}let Z=0,V=100;function X(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},W=J.getTrustedDeviceToken?.();if(W)z["X-Trusted-Device-Token"]=W;return z}function C(){let q=J.getAccessToken();if(!q)throw Error(F);return q}async function M(q,z){let W=C(),Q=await q(W);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(W)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let $=C(),N=await q($);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:X(W),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${D({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${D(z.data)}`),z.data},async pollForWork(q,z,W,Q){j(q,"environmentId");let Y=Z;Z=0;let $=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:X(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:W,validateStatus:(N)=>N<500});if(G($.status,$.data,"Poll"),!$.data){if(Z=Y+1,Z===1||Z%V===0)K(`[bridge:api] GET .../work/poll -> ${$.status} (no work, ${Z} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${$.status} workId=${$.data.id} type=${$.data.data?.type}${$.data.data?.id?` sessionId=${$.data.data.id}`:""}`),K(`[bridge:api] <<< ${D($.data)}`),$.data},async acknowledgeWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${W}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:W},{headers:X(Y),timeout:1e4,validateStatus:($)=>$<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((W)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let W=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:X(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(W.status,W.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${W.status}`)},async heartbeatWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,W){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${D({events:[z]})}`),K(`[bridge:api] <<< ${D(Q.data)}`)}}}function G(J,K,Z){if(J===200||J===204)return;let V=H(K),X=B(K);switch(J){case 401:throw new L(`${Z}: Authentication failed (401)${V?`: ${V}`:""}. ${F}`,401,X);case 403:throw new L(S(X)?"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.":`${Z}: Access denied (403)${V?`: ${V}`:""}. Check your organization permissions.`,403,X);case 404:throw new L(V??`${Z}: Not found (404). Remote Control may not be available for this organization.`,404,X);case 410:throw new L(V??"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.",410,X??"environment_expired");case 429:throw Error(`${Z}: Rate limited (429). Polling too frequently.`);default:throw Error(`${Z}: Failed with status ${J}${V?`: ${V}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function E(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function T(J){let K=new AbortController;function Z(){K.abort(),K=new AbortController}function V(){let X=new AbortController,C=()=>X.abort();if(J.aborted||K.signal.aborted)return X.abort(),{signal:X.signal,cleanup:()=>{}};J.addEventListener("abort",C,{once:!0});let M=K.signal;return M.addEventListener("abort",C,{once:!0}),{signal:X.signal,cleanup:()=>{J.removeEventListener("abort",C),M.removeEventListener("abort",C)}}}return{signal:V,wake:Z}}
2
+ export{j as ea,L as fa,y as ga,S as ha,E as ia,T as ja};
@@ -0,0 +1,2 @@
1
+ import{$o as Xq,$p as l,Zo as j,_o as m,bq as Rq,cq as i,eq as Aq,up as D,zp as Zq}from"./cli-1.1.26-kvt0v6vq.mjs";import{Fha as L,Nha as Qq,oda as u,qda as g,tda as h,uda as n,zda as vq}from"./cli-1.1.26-mvjefec1.mjs";import{Nja as d,Pja as Uq}from"./cli-1.1.26-3gepexgn.mjs";import{Bla as y,Lla as V,Ola as e,ola as P,pla as v,tla as f,xla as M}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as W,kma as O,lma as C,qma as N}from"./cli-1.1.26-7ssnr221.mjs";import{Cta as qq,kta as p}from"./cli-1.1.26-hxty6b5t.mjs";import{cua as E}from"./cli-1.1.26-zb5hq3ry.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
+ export{Fq as nc,r as oc,nq as pc,lq as qc,Oq as rc,QQ as sc,XQ as tc,Lq as uc};
@@ -0,0 +1,2 @@
1
+ import{nj as H,pj as m}from"./cli-1.1.26-rkdk0vdh.mjs";import{qj as k,rj as y}from"./cli-1.1.26-j522h2zj.mjs";import{X4 as G,Y4 as f}from"./cli-1.1.26-xzbv3dzb.mjs";import{d5 as X,f5 as Y,k5 as R}from"./cli-1.1.26-xrb5tnj3.mjs";import{m5 as B,n5 as C}from"./cli-1.1.26-ta82bxzt.mjs";import{i9 as w,x9 as E}from"./cli-1.1.26-tgtv1jp3.mjs";import{Fha as Q,Jfa as S,Mfa as j,Nha as D,fga as x}from"./cli-1.1.26-mvjefec1.mjs";import{Gka as V,Hka as b}from"./cli-1.1.26-hk66nk4j.mjs";import{Cta as I,kta as W}from"./cli-1.1.26-hxty6b5t.mjs";import{cua as Z}from"./cli-1.1.26-zb5hq3ry.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=w(),N=L==="team"||L==="enterprise";if(!G()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await B(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();m();y();E();f();C();x();D()});
2
+ export{i as kj,A as lj};
@@ -0,0 +1,7 @@
1
+ import{BQ as E,CQ as MQ,Sm as h,Tm as wQ,Um as u,Vm as LQ,uj as jQ}from"./cli-1.1.26-kvt0v6vq.mjs";import{Bla as UQ,Lla as j,Ola as XQ,xla as U}from"./cli-1.1.26-nr4x1ay3.mjs";import{kma as _,qma as vQ}from"./cli-1.1.26-7ssnr221.mjs";import{_ta as GQ,cua as C}from"./cli-1.1.26-zb5hq3ry.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
2
+ `).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
3
+ `).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
4
+ `))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
5
+ `).length;return W.endsWith(`
6
+ `)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
7
+ export{o as Ag,I as Bg,A as Cg,T as Dg,N as Eg,p as Fg,x as Gg,F as Hg,RQ as Ig,QZ as Jg,ZZ as Kg,fQ as Lg};
@@ -0,0 +1,2 @@
1
+ import{cua as l}from"./cli-1.1.26-zb5hq3ry.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as L4,E as M4,a as N4,c as O4};
@@ -0,0 +1,2 @@
1
+ import{Fs as Hq,Gs as pq,Oz as Uq,Pz as mq}from"./cli-1.1.26-kvt0v6vq.mjs";import{$4 as dq,Z4 as Bq}from"./cli-1.1.26-k827q3s7.mjs";import{G5 as Lq,L5 as jq,M5 as Sq,Z8 as i,b9 as S,r8 as Nq,s8 as yq,x9 as gq}from"./cli-1.1.26-tgtv1jp3.mjs";import{_aa as Gq,aba as Pq,paa as b,pfa as Yq,qfa as Dq,rfa as k,taa as $q,tfa as Wq,wfa as Xq}from"./cli-1.1.26-mvjefec1.mjs";import{Nja as N,Pja as Mq,Qja as E,Rja as Cq}from"./cli-1.1.26-3gepexgn.mjs";import{Aka as Qq,Bka as Vq,Gka as Zq,Hka as Rq,zka as Kq}from"./cli-1.1.26-hk66nk4j.mjs";import{Ika as _,Lka as e}from"./cli-1.1.26-n0thzakv.mjs";import{Lla as Y,Oka as Fq,Ola as Jq,Qka as $J,ola as m,tla as Eq}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as C,pma as P,qma as qq}from"./cli-1.1.26-7ssnr221.mjs";import{Cta as kq,kta as z}from"./cli-1.1.26-hxty6b5t.mjs";import{bua as ZJ,cua as d,dua as Tq}from"./cli-1.1.26-zb5hq3ry.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.26-a0wvdz6h.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
2
+ export{Aq as p,NJ as q,BJ as r,bq as s,HJ as t,UJ as u,OJ as v,wJ as w};
@@ -0,0 +1,17 @@
1
+ import{aua as y,dua as b}from"./cli-1.1.26-zb5hq3ry.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
2
+ `).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
3
+ `)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
4
+ Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
5
+ `),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
6
+ `),Y.enqueue(`\r
7
+ `)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
8
+ ${X}\r
9
+ `)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
10
+ `),X.push(J),X.push(`\r
11
+ `)}),w.on("end",async()=>{if(X.push(`0\r
12
+ `),M){let J=I(await Y);X.push(`${A}:${J}\r
13
+ `),X.push(`\r
14
+ `)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
15
+ If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-1.1.26-cpx6j4xt.mjs");return new $({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage($,T,w,P,I){return[]}getEventStreamMarshaller(){let $=this.serdeContext;if(!$.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return $.eventStreamMarshaller}}class CT extends g0{async serializeRequest($,T,w){let P=T&&typeof T==="object"?T:{},I=this.serializer,h={},U={},A=await w.endpoint(),_=E.NormalizedSchema.of($?.input),M=[],Y=[],X=!1,J,f=new j({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:h,headers:U,body:void 0});if(A){this.updateServiceEndpoint(f,A),this.setHostPrefix(f,$,P);let G=E.translateTraits($.traits);if(G.http){f.method=G.http[0];let[Q,Z]=G.http[1].split("?");if(f.path=="/")f.path=Q;else f.path+=Q;let R=new URLSearchParams(Z??"");for(let[V,L]of R)h[V]=L}}for(let[G,Q]of _.structIterator()){let Z=Q.getMergedTraits()??{},R=P[G];if(R==null&&!Q.isIdempotencyToken()){if(Z.httpLabel){if(f.path.includes(`{${G}+}`)||f.path.includes(`{${G}}`))throw Error(`No value provided for input HTTP label: ${G}.`)}continue}if(Z.httpPayload)if(Q.isStreaming())if(Q.isStructSchema()){if(P[G])J=await this.serializeEventStream({eventStream:P[G],requestSchema:_})}else J=R;else I.write(Q,R),J=I.flush();else if(Z.httpLabel){I.write(Q,R);let V=I.flush();if(f.path.includes(`{${G}+}`))f.path=f.path.replace(`{${G}+}`,V.split("/").map(R0).join("/"));else if(f.path.includes(`{${G}}`))f.path=f.path.replace(`{${G}}`,R0(V))}else if(Z.httpHeader)I.write(Q,R),U[Z.httpHeader.toLowerCase()]=String(I.flush());else if(typeof Z.httpPrefixHeaders==="string")for(let V in R){let L=R[V],W=Z.httpPrefixHeaders+V;I.write([Q.getValueSchema(),{httpHeader:W}],L),U[W.toLowerCase()]=I.flush()}else if(Z.httpQuery||Z.httpQueryParams)this.serializeQuery(Q,R,h);else X=!0,M.push(G),Y.push(Q)}if(X&&P){let[G,Q]=(_.getName(!0)??"#Unknown").split("#"),Z=_.getSchema()[6],R=[3,G,Q,_.getMergedTraits(),M,Y,void 0];if(Z)R[6]=Z;else R.pop();I.write(R,P),J=I.flush()}return f.headers=U,f.query=h,f.body=J,f}serializeQuery($,T,w){let P=this.serializer,I=$.getMergedTraits();if(I.httpQueryParams){for(let h in T)if(!(h in w)){let U=T[h],A=$.getValueSchema();Object.assign(A.getMergedTraits(),{...I,httpQuery:h,httpQueryParams:void 0}),this.serializeQuery(A,U,w)}return}if($.isListSchema()){let h=!!$.getMergedTraits().sparse,U=[];for(let A of T){P.write([$.getValueSchema(),I],A);let _=P.flush();if(h||_!==void 0)U.push(_)}w[I.httpQuery]=U}else P.write([$,I],T),w[I.httpQuery]=P.flush()}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=await this.deserializeHttpMessage(I,T,w,h);if(U.length){let A=await n(w.body,T);if(A.byteLength>0){let _=await P.read(I,A);for(let M of U)if(_[M]!=null)h[M]=_[M]}}else if(U.discardResponseBody)await n(w.body,T);return h.$metadata=this.deserializeMetadata(w),h}async deserializeHttpMessage($,T,w,P,I){let h;if(P instanceof Set)h=I;else h=P;let U=!0,A=this.deserializer,_=E.NormalizedSchema.of($),M=[];for(let[Y,X]of _.structIterator()){let J=X.getMemberTraits();if(J.httpPayload){if(U=!1,X.isStreaming())if(X.isStructSchema())h[Y]=await this.deserializeEventStream({response:w,responseSchema:_});else h[Y]=O.sdkStreamMixin(w.body);else if(w.body){let G=await n(w.body,T);if(G.byteLength>0)h[Y]=await A.read(X,G)}}else if(J.httpHeader){let f=String(J.httpHeader).toLowerCase(),G=w.headers[f];if(G!=null)if(X.isListSchema()){let Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f;let Z;if(Q.isTimestampSchema()&&Q.getSchema()===4)Z=O.splitEvery(G,",",2);else Z=O.splitHeader(G);let R=[];for(let V of Z)R.push(await A.read(Q,V.trim()));h[Y]=R}else h[Y]=await A.read(X,G)}else if(J.httpPrefixHeaders!==void 0){h[Y]={};for(let f in w.headers)if(f.startsWith(J.httpPrefixHeaders)){let G=w.headers[f],Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f,h[Y][f.slice(J.httpPrefixHeaders.length)]=await A.read(Q,G)}}else if(J.httpResponseCode)h[Y]=w.statusCode;else M.push(Y)}return M.discardResponseBody=U,M}}class sT extends g0{async serializeRequest($,T,w){let P=this.serializer,I={},h={},U=await w.endpoint(),A=E.NormalizedSchema.of($?.input),_=A.getSchema(),M,Y=T&&typeof T==="object"?T:{},X=new j({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:I,headers:h,body:void 0});if(U)this.updateServiceEndpoint(X,U),this.setHostPrefix(X,$,Y);if(Y){let J=A.getEventStreamMember();if(J){if(Y[J]){let f={};for(let[G,Q]of A.structIterator())if(G!==J&&Y[G])P.write(Q,Y[G]),f[G]=P.flush();M=await this.serializeEventStream({eventStream:Y[J],requestSchema:A,initialRequest:f})}}else P.write(_,Y),M=P.flush()}return X.headers=Object.assign(X.headers,h),X.query=I,X.body=M,X.method="POST",X}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=I.getEventStreamMember();if(U)h[U]=await this.deserializeEventStream({response:w,responseSchema:I,initialResponseContainer:h});else{let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(I,A))}return h.$metadata=this.deserializeMetadata(w),h}}var cT=($,T,w,P,I,h)=>{if(T!=null&&T[w]!==void 0){let U=P();if(U==null||U.length<=0)throw Error("Empty value provided for input HTTP label: "+w+".");$=$.replace(I,h?U.split("/").map((A)=>R0(A)).join("/"):R0(U))}else throw Error("No value provided for input HTTP label: "+w+".");return $};function d_($,T){return new d1($,T)}class d1{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor($,T){this.input=$,this.context=T}async build(){let{hostname:$,protocol:T="https",port:w,path:P}=await this.context.endpoint();this.path=P;for(let I of this.resolvePathStack)I(this.path);return new j({protocol:T,hostname:this.hostname||$,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn($){return this.hostname=$,this}bp($){return this.resolvePathStack.push((T)=>{this.path=`${T?.endsWith("/")?T.slice(0,-1):T||""}`+$}),this}p($,T,w,P){return this.resolvePathStack.push((I)=>{this.path=cT(I,this.input,$,T,w,P)}),this}h($){return this.headers=$,this}q($){return this.query=$,this}b($){return this.body=$,this}m($){return this.method=$,this}}function v1($,T){if(T.timestampFormat.useTrait){if($.isTimestampSchema()&&($.getSchema()===5||$.getSchema()===6||$.getSchema()===7))return $.getSchema()}let{httpLabel:w,httpPrefixHeaders:P,httpHeader:I,httpQuery:h}=$.getMergedTraits();return(T.httpBindings?typeof P==="string"||Boolean(I)?6:Boolean(h)||Boolean(w)?5:void 0:void 0)??T.timestampFormat.default}class n1 extends $0{settings;constructor($){super();this.settings=$}read($,T){let w=E.NormalizedSchema.of($);if(w.isListSchema())return O.splitHeader(T).map((P)=>this.read(w.getValueSchema(),P));if(w.isBlobSchema())return(this.serdeContext?.base64Decoder??O.fromBase64)(T);if(w.isTimestampSchema())switch(v1(w,this.settings)){case 5:return O._parseRfc3339DateTimeWithOffset(T);case 6:return O._parseRfc7231DateTime(T);case 7:return O._parseEpochTimestamp(T);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",T),new Date(T)}if(w.isStringSchema()){let P=w.getMergedTraits().mediaType,I=T;if(P){if(w.getMergedTraits().httpHeader)I=this.base64ToUtf8(I);if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);return I}}if(w.isNumericSchema())return Number(T);if(w.isBigIntegerSchema())return BigInt(T);if(w.isBigDecimalSchema())return new O.NumericValue(T,"bigDecimal");if(w.isBooleanSchema())return String(T).toLowerCase()==="true";return T}base64ToUtf8($){return(this.serdeContext?.utf8Encoder??O.toUtf8)((this.serdeContext?.base64Decoder??O.fromBase64)($))}}class bT extends $0{codecDeserializer;stringDeserializer;constructor($,T){super();this.codecDeserializer=$,this.stringDeserializer=new n1(T)}setSerdeContext($){this.stringDeserializer.setSerdeContext($),this.codecDeserializer.setSerdeContext($),this.serdeContext=$}read($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits(),I=this.serdeContext?.utf8Encoder??O.toUtf8;if(P.httpHeader||P.httpResponseCode)return this.stringDeserializer.read(w,I(T));if(P.httpPayload){if(w.isBlobSchema()){let h=this.serdeContext?.utf8Decoder??O.fromUtf8;if(typeof T==="string")return h(T);return T}else if(w.isStringSchema()){if("byteLength"in T)return I(T);return T}}return this.codecDeserializer.read(w,T)}}class t1 extends $0{settings;stringBuffer="";constructor($){super();this.settings=$}write($,T){let w=E.NormalizedSchema.of($);switch(typeof T){case"object":if(T===null){this.stringBuffer="null";return}if(w.isTimestampSchema()){if(!(T instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${T} when schema expected Date in ${w.getName(!0)}`);switch(v1(w,this.settings)){case 5:this.stringBuffer=T.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=O.dateToUtcString(T);break;case 7:this.stringBuffer=String(T.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",T),this.stringBuffer=String(T.getTime()/1000)}return}if(w.isBlobSchema()&&"byteLength"in T){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(T);return}if(w.isListSchema()&&Array.isArray(T)){let h="";for(let U of T){this.write([w.getValueSchema(),w.getMergedTraits()],U);let A=this.flush(),_=w.getValueSchema().isTimestampSchema()?A:O.quoteHeader(A);if(h!=="")h+=", ";h+=_}this.stringBuffer=h;return}this.stringBuffer=JSON.stringify(T,null,2);break;case"string":let P=w.getMergedTraits().mediaType,I=T;if(P){if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);if(w.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(I.toString());return}}this.stringBuffer=T;break;default:if(w.isIdempotencyToken())this.stringBuffer=O.generateIdempotencyToken();else this.stringBuffer=String(T)}}flush(){let $=this.stringBuffer;return this.stringBuffer="",$}}class kT{codecSerializer;stringSerializer;buffer;constructor($,T,w=new t1(T)){this.codecSerializer=$,this.stringSerializer=w}setSerdeContext($){this.codecSerializer.setSerdeContext($),this.stringSerializer.setSerdeContext($)}write($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits();if(P.httpHeader||P.httpLabel||P.httpQuery){this.stringSerializer.write(w,T),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(w,T)}flush(){if(this.buffer!==void 0){let $=this.buffer;return this.buffer=void 0,$}return this.codecSerializer.flush()}}class pT{name;kind;values;constructor({name:$,kind:T=g_.FieldPosition.HEADER,values:w=[]}){this.name=$,this.kind=T,this.values=w}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((T)=>T!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}}class yT{entries={};encoding;constructor({fields:$=[],encoding:T="utf-8"}){$.forEach(this.setField.bind(this)),this.encoding=T}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((T)=>T.kind===$)}}function v_($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}var n_=($)=>{return{setHttpHandler(T){$.httpHandler=T},httpHandler(){return $.httpHandler},updateHttpClientConfig(T,w){$.httpHandler?.updateHttpClientConfig(T,w)},httpHandlerConfigs(){return $.httpHandler.httpHandlerConfigs()}}},t_=($)=>{return{httpHandler:$.httpHandler()}},jT="content-length";function gT($){return(T)=>async(w)=>{let P=w.request;if(j.isInstance(P)){let{body:I,headers:h}=P;if(I&&Object.keys(h).map((U)=>U.toLowerCase()).indexOf(jT)===-1)try{let U=$(I);P.headers={...P.headers,[jT]:String(U)}}catch(U){}}return T({...w,request:P})}}var mT={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},i_=($)=>({applyToStack:(T)=>{T.add(gT($.bodyLengthChecker),mT)}}),Z0=($)=>encodeURIComponent($).replace(/[!'()*]/g,u_),u_=($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,r_=($)=>$.split("/").map(Z0).join("/");function l_($){let T=[];for(let w of Object.keys($).sort()){let P=$[w];if(w=Z0(w),Array.isArray(P))for(let I=0,h=P.length;I<h;I++)T.push(`${w}=${Z0(P[I])}`);else{let I=w;if(P||typeof P==="string")I+=`=${Z0(P)}`;T.push(I)}}return T.join("&")}function dT($){let T={};if($=$.replace(/^\?/,""),$)for(let w of $.split("&")){let[P,I=null]=w.split("=");if(P=decodeURIComponent(P),I)I=decodeURIComponent(I);if(!(P in T))T[P]=I;else if(Array.isArray(T[P]))T[P].push(I);else T[P]=[T[P],I]}return T}var vT=($)=>{if(typeof $==="string")return vT(new URL($));let{hostname:T,pathname:w,port:P,protocol:I,search:h}=$,U;if(h)U=dT(h);return{hostname:T,port:P?parseInt(P):void 0,protocol:I,path:w,query:U}};o_.Field=pT;o_.Fields=yT;o_.FromStringShapeDeserializer=n1;o_.HttpBindingProtocol=CT;o_.HttpInterceptingShapeDeserializer=bT;o_.HttpInterceptingShapeSerializer=kT;o_.HttpProtocol=g0;o_.HttpRequest=j;o_.HttpResponse=m1;o_.RequestBuilder=d1;o_.RpcProtocol=sT;o_.SerdeContext=$0;o_.ToStringShapeSerializer=t1;o_.buildQueryString=l_;o_.collectBody=n;o_.contentLengthMiddleware=gT;o_.contentLengthMiddlewareOptions=mT;o_.determineTimestampFormat=v1;o_.escapeUri=Z0;o_.escapeUriPath=r_;o_.extendedEncodeURIComponent=R0;o_.getContentLengthPlugin=i_;o_.getHttpHandlerExtensionConfiguration=n_;o_.isValidHostname=v_;o_.parseQueryString=dT;o_.parseUrl=vT;o_.requestBuilder=d_;o_.resolveHttpHandlerRuntimeConfig=t_;o_.resolvedPath=cT});var h1=y((y6)=>{var nT=D0(),B6=C0(),q6=F0(),m0=($)=>{if(typeof $==="function")return $();return $},r1=($,T,w,P,I)=>({name:T,namespace:$,traits:w,input:P,output:I}),x6=($)=>(T,w)=>async(P)=>{let{response:I}=await T(P),{operationSchema:h}=nT.getSmithyContext(w),[,U,A,_,M,Y]=h??[];try{let X=await $.protocol.deserializeResponse(r1(U,A,_,M,Y),{...$,...w},I);return{response:I,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in X)){try{X.message+=`
16
+ Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(f){if(!w.logger||w.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else w.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof X.$responseBodyText<"u"){if(X.$response)X.$response.body=X.$responseBodyText}try{if(B6.HttpResponse.isInstance(I)){let{headers:f={}}=I,G=Object.entries(f);X.$metadata={httpStatusCode:I.statusCode,requestId:i1(/^x-[\w-]+-request-?id$/,G),extendedRequestId:i1(/^x-[\w-]+-id-2$/,G),cfId:i1(/^x-[\w-]+-cf-id$/,G)}}}catch(f){}}throw X}},i1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},F6=($)=>(T,w)=>async(P)=>{let{operationSchema:I}=nT.getSmithyContext(w),[,h,U,A,_,M]=I??[],Y=w.endpointV2?async()=>q6.toEndpointV1(w.endpointV2):$.endpoint,X=await $.protocol.serializeRequest(r1(h,U,A,_,M),P.input,{...$,...w,endpoint:Y});return T({...P,request:X})},tT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},iT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function z6($){return{applyToStack:(T)=>{T.add(F6($),iT),T.add(x6($),tT),$.protocol.setSerdeContext($)}}}class D{name;namespace;traits;static assign($,T){return Object.assign($,T)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}getName(){return this.namespace+"#"+this.name}}class t0 extends D{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t0.symbol}var S6=($,T,w,P)=>D.assign(new t0,{name:T,namespace:$,traits:w,valueSchema:P});class i0 extends D{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=i0.symbol}var j6=($,T,w,P,I)=>D.assign(new i0,{name:T,namespace:$,traits:w,keySchema:P,valueSchema:I});class u0 extends D{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=u0.symbol}var C6=($,T,w,P,I)=>D.assign(new u0,{name:T,namespace:$,traits:w,input:P,output:I});class N0 extends D{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=N0.symbol}var s6=($,T,w,P,I)=>D.assign(new N0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I});class r0 extends N0{static symbol=Symbol.for("@smithy/err");ctor;symbol=r0.symbol}var c6=($,T,w,P,I,h)=>D.assign(new r0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I,ctor:null}),d0=[];function O0($){if(typeof $==="object")return $;if($=$|0,d0[$])return d0[$];let T={},w=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if(($>>w++&1)===1)T[P]=1;return d0[$]=T}var Q0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},v0=[],n0={};class s{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=s.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor($,T){this.ref=$,this.memberName=T;let w=[],P=$,I=$;this._isMemberSchema=!1;while(u1(P))w.push(P[1]),P=P[0],I=m0(P),this._isMemberSchema=!0;if(w.length>0){this.memberTraits={};for(let h=w.length-1;h>=0;--h){let U=w[h];Object.assign(this.memberTraits,O0(U))}}else this.memberTraits=0;if(I instanceof s){let h=this.memberTraits;Object.assign(this,I),this.memberTraits=Object.assign({},h,I.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=T??I.memberName;return}if(this.schema=m0(I),uT(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(I),this.traits=0;if(this._isMemberSchema&&!T)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}static of($){let T=typeof $==="function"||typeof $==="object"&&$!==null;if(typeof $==="number"){if(v0[$])return v0[$]}else if(typeof $==="string"){if(n0[$])return n0[$]}else if(T){if($[Q0.ns])return $[Q0.ns]}let w=m0($);if(w instanceof s)return w;if(u1(w)){let[I,h]=w;if(I instanceof s)return Object.assign(I.getMergedTraits(),O0(h)),I;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify($,null,2)}.`)}let P=new s(w);if(T)return $[Q0.ns]=P;if(typeof w==="string")return n0[w]=P;if(typeof w==="number")return v0[w]=P;return P}getSchema(){let $=this.schema;if(Array.isArray($)&&$[0]===0)return $[4];return $}getName($=!1){let{name:T}=this;return!$&&T&&T.includes("#")?T.split("#")[1]:T||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let $=this.getSchema();return typeof $==="number"?$>=64&&$<128:$[0]===1}isMapSchema(){let $=this.getSchema();return typeof $==="number"?$>=128&&$<=255:$[0]===2}isStructSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;let T=$[0];return T===3||T===-3||T===4}isUnionSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;return $[0]===4}isBlobSchema(){let $=this.getSchema();return $===21||$===42}isTimestampSchema(){let $=this.getSchema();return typeof $==="number"&&$>=4&&$<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:$}=this.getMergedTraits();return!!$||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return O0(this.memberTraits)}getOwnTraits(){return O0(this.traits)}getKeySchema(){let[$,T]=[this.isDocumentSchema(),this.isMapSchema()];if(!$&&!T)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let w=this.getSchema(),P=$?15:w[4]??0;return V0([P,0],"key")}getValueSchema(){let $=this.getSchema(),[T,w,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],I=typeof $==="number"?63&$:$&&typeof $==="object"&&(w||P)?$[3+$[0]]:T?15:void 0;if(I!=null)return V0([I,0],w?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema($){let T=this.getSchema();if(this.isStructSchema()&&T[4].includes($)){let w=T[4].indexOf($),P=T[5][w];return V0(u1(P)?P:[P,0],$)}if(this.isDocumentSchema())return V0([15,0],$);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${$}.`)}getMemberSchemas(){let $={};try{for(let[T,w]of this.structIterator())$[T]=w}catch(T){}return $}getEventStreamMember(){if(this.isStructSchema()){for(let[$,T]of this.structIterator())if(T.isStreaming()&&T.isStructSchema())return $}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let $=this.getSchema(),T=$[4].length,w=$[Q0.it];if(w&&T===w.length){yield*w;return}w=Array(T);for(let P=0;P<T;++P){let I=$[4][P],h=V0([$[5][P],0],I);yield w[P]=[I,h]}$[Q0.it]=w}}function V0($,T){if($ instanceof s)return Object.assign($,{memberName:T,_isMemberSchema:!0});return new s($,T)}var u1=($)=>Array.isArray($)&&$.length===2,uT=($)=>Array.isArray($)&&$.length>=5;class L0 extends D{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=L0.symbol}var b6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:P,schemaRef:w}),k6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:w,schemaRef:P}),p6={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class C{namespace;schemas;exceptions;static registries=new Map;constructor($,T=new Map,w=new Map){this.namespace=$,this.schemas=T,this.exceptions=w}static for($){if(!C.registries.has($))C.registries.set($,new C($));return C.registries.get($)}copyFrom($){let{schemas:T,exceptions:w}=this;for(let[P,I]of $.schemas)if(!T.has(P))T.set(P,I);for(let[P,I]of $.exceptions)if(!w.has(P))w.set(P,I)}register($,T){let w=this.normalizeShapeId($);for(let P of[this,C.for(w.split("#")[0])])P.schemas.set(w,T)}getSchema($){let T=this.normalizeShapeId($);if(!this.schemas.has(T))throw Error(`@smithy/core/schema - schema not found for ${T}`);return this.schemas.get(T)}registerError($,T){let w=$,P=w[1];for(let I of[this,C.for(P)])I.schemas.set(P+"#"+w[2],w),I.exceptions.set(w,T)}getErrorCtor($){let T=$;if(this.exceptions.has(T))return this.exceptions.get(T);return C.for(T[1]).exceptions.get(T)}getBaseException(){for(let $ of this.exceptions.keys())if(Array.isArray($)){let[,T,w]=$,P=T+"#"+w;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return $}return}find($){for(let T of this.schemas.values())if($(T))return T;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId($){if($.includes("#"))return $;return this.namespace+"#"+$}}y6.ErrorSchema=r0;y6.ListSchema=t0;y6.MapSchema=i0;y6.NormalizedSchema=s;y6.OperationSchema=u0;y6.SCHEMA=p6;y6.Schema=D;y6.SimpleSchema=L0;y6.StructureSchema=N0;y6.TypeRegistry=C;y6.deref=m0;y6.deserializerMiddlewareOption=tT;y6.error=c6;y6.getSchemaSerdePlugin=z6;y6.isStaticSchema=uT;y6.list=S6;y6.map=j6;y6.op=C6;y6.operation=r1;y6.serializerMiddlewareOption=iT;y6.sim=b6;y6.simAdapter=k6;y6.simpleSchemaCacheN=v0;y6.simpleSchemaCacheS=n0;y6.struct=s6;y6.traitsCache=d0;y6.translateTraits=O0});
17
+ export{P0 as Tta,h1 as Uta,D0 as Vta,C$ as Wta,F0 as Xta,ST as Yta,C0 as Zta};
@@ -0,0 +1,2 @@
1
+ import{f0 as O}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as X,O4 as Q}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as b}from"./cli-1.1.26-kz0et72d.mjs";import{Tfa as W,fga as P}from"./cli-1.1.26-mvjefec1.mjs";import{_ta as U}from"./cli-1.1.26-zb5hq3ry.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
+ export{V as Rb,C as Sb};
@@ -0,0 +1,3 @@
1
+ import{Tta as x,Vta as y,Zta as C}from"./cli-1.1.26-qw49rw3y.mjs";import{aua as k}from"./cli-1.1.26-zb5hq3ry.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
+ `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
+ export{MF as P_};