@claudiolabs/claudin 1.1.19 → 1.1.21

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 (905) hide show
  1. package/README.md +15 -0
  2. package/dist/chunks/AgentTool-1.1.21-enrxqdsb.mjs +1 -0
  3. package/dist/chunks/App-1.1.21-x1hrya65.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.21-q3rfm86r.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.21-djjt8wjf.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.21-8rxzv91c.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.21-2mv1yf69.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.21-qk8b7h6c.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.21-26vykmpr.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.21-3xgr69zd.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.21-yv90ebbh.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.21-xbb9damr.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.21-vghjz16w.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.21-s80vswk4.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.21-vcrwctz5.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.21-dx1ga7w0.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.21-v9s07bhb.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.21-r9zcajjp.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.21-6jn26haf.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.21-s9pjbbba.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.21-e2efafxn.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.21-sbtxsq9w.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.21-jbdthnzv.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.21-rg1e4ya1.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.21-th8y0yfa.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.21-ns92ypnd.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.21-tk81657g.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.21-8b6473mc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.21-y2qcrtjr.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.21-0c6btjcc.mjs +1 -0
  31. package/dist/chunks/agents-1.1.21-1t7q92hk.mjs +3 -0
  32. package/dist/chunks/agents-1.1.21-jppr4jq8.mjs +110 -0
  33. package/dist/chunks/api-1.1.21-g8sbqk15.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.21-bvqngtzz.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.21-1zc3dwty.mjs +1 -0
  36. package/dist/chunks/auth-1.1.21-65a9bbnh.mjs +1 -0
  37. package/dist/chunks/auth-1.1.21-f0ghh3mq.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.21-n2a8t9t3.mjs +52 -0
  39. package/dist/chunks/autoModeSetup-1.1.21-9fx83p2j.mjs +44 -0
  40. package/dist/chunks/autoUpdater-1.1.21-52ky9ghk.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.1.21-j6t4h3jn.mjs +1 -0
  42. package/dist/chunks/branch-1.1.21-71gampws.mjs +4 -0
  43. package/dist/chunks/bridge-1.1.21-d1gzs1zz.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.1.21-9pps44qe.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.1.21-50r8crvp.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.1.21-e92yewh9.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.1.21-ckngyn7x.mjs +1 -0
  48. package/dist/chunks/btw-1.1.21-aqj4z7z7.mjs +1 -0
  49. package/dist/chunks/buddy-1.1.21-74rtch74.mjs +3 -0
  50. package/dist/chunks/cache-probe-1.1.21-a8ne39rt.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.21-pw082ztb.mjs +4 -0
  52. package/dist/chunks/caches-1.1.21-7s65hxx4.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.21-0fp1r8xs.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.21-q4k3d1km.mjs +1 -0
  55. package/dist/chunks/clear-1.1.21-9jjttvr0.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.21-jr9rxdmx.mjs +1 -0
  57. package/dist/chunks/cli-1.1.21-03kdy8xc.mjs +2 -0
  58. package/dist/chunks/cli-1.1.21-04brya8b.mjs +2 -0
  59. package/dist/chunks/cli-1.1.21-0dp6e2at.mjs +2 -0
  60. package/dist/chunks/cli-1.1.21-0etv5x2s.mjs +2 -0
  61. package/dist/chunks/cli-1.1.21-0g1a3shp.mjs +2 -0
  62. package/dist/chunks/cli-1.1.21-0mn9qshg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.21-0n54q1mb.mjs +12 -0
  64. package/dist/chunks/cli-1.1.21-0sqcznka.mjs +4 -0
  65. package/dist/chunks/cli-1.1.21-0w4y6zch.mjs +2 -0
  66. package/dist/chunks/cli-1.1.21-13kr6en7.mjs +2 -0
  67. package/dist/chunks/cli-1.1.21-15f55e7j.mjs +2 -0
  68. package/dist/chunks/cli-1.1.21-1a9968t0.mjs +3 -0
  69. package/dist/chunks/cli-1.1.21-1h90n4wy.mjs +2 -0
  70. package/dist/chunks/cli-1.1.21-1hdfkyjv.mjs +2 -0
  71. package/dist/chunks/cli-1.1.21-1mhmk0z3.mjs +2 -0
  72. package/dist/chunks/cli-1.1.21-1mxg753a.mjs +2 -0
  73. package/dist/chunks/cli-1.1.21-1y508j57.mjs +2 -0
  74. package/dist/chunks/cli-1.1.21-27a8sw98.mjs +2 -0
  75. package/dist/chunks/cli-1.1.21-29jp27ks.mjs +2 -0
  76. package/dist/chunks/cli-1.1.21-2b91fkp9.mjs +66 -0
  77. package/dist/chunks/cli-1.1.21-2cj3wv9s.mjs +3 -0
  78. package/dist/chunks/cli-1.1.21-2cqbdmfj.mjs +2 -0
  79. package/dist/chunks/cli-1.1.21-2gsy9rkt.mjs +7 -0
  80. package/dist/chunks/cli-1.1.21-2nezc8rm.mjs +2 -0
  81. package/dist/chunks/cli-1.1.21-2txzm68v.mjs +2 -0
  82. package/dist/chunks/cli-1.1.21-2zvrsnnb.mjs +15 -0
  83. package/dist/chunks/cli-1.1.21-36nmjsvc.mjs +3 -0
  84. package/dist/chunks/cli-1.1.21-3g5qq5vn.mjs +2 -0
  85. package/dist/chunks/cli-1.1.21-3n2szerd.mjs +2 -0
  86. package/dist/chunks/cli-1.1.21-3v1e2mge.mjs +3 -0
  87. package/dist/chunks/cli-1.1.21-3x0d0qkq.mjs +2 -0
  88. package/dist/chunks/cli-1.1.21-4010086n.mjs +39 -0
  89. package/dist/chunks/cli-1.1.21-4jzagkc6.mjs +2 -0
  90. package/dist/chunks/cli-1.1.21-4ka4k9j1.mjs +2 -0
  91. package/dist/chunks/cli-1.1.21-4s3mz86q.mjs +2 -0
  92. package/dist/chunks/cli-1.1.21-510h0rfd.mjs +2 -0
  93. package/dist/chunks/cli-1.1.21-5bxzgpbd.mjs +16 -0
  94. package/dist/chunks/cli-1.1.21-5jkvz9tr.mjs +2 -0
  95. package/dist/chunks/cli-1.1.21-5srfgw0e.mjs +2 -0
  96. package/dist/chunks/cli-1.1.21-5znk8g89.mjs +2 -0
  97. package/dist/chunks/cli-1.1.21-61eyxvr8.mjs +2 -0
  98. package/dist/chunks/cli-1.1.21-6drn6rpn.mjs +2 -0
  99. package/dist/chunks/cli-1.1.21-71yrrgxv.mjs +2 -0
  100. package/dist/chunks/cli-1.1.21-72p8ma2g.mjs +2 -0
  101. package/dist/chunks/cli-1.1.21-76ttz1tt.mjs +2 -0
  102. package/dist/chunks/cli-1.1.21-7bq44n89.mjs +2 -0
  103. package/dist/chunks/cli-1.1.21-7fymk48z.mjs +2 -0
  104. package/dist/chunks/cli-1.1.21-7gxr15wj.mjs +2 -0
  105. package/dist/chunks/cli-1.1.21-7q6ajew6.mjs +6 -0
  106. package/dist/chunks/cli-1.1.21-8022a544.mjs +3 -0
  107. package/dist/chunks/cli-1.1.21-811zr6vq.mjs +15 -0
  108. package/dist/chunks/cli-1.1.21-87rs5rvq.mjs +2 -0
  109. package/dist/chunks/cli-1.1.21-89hqsfpf.mjs +2 -0
  110. package/dist/chunks/cli-1.1.21-8db7fdfr.mjs +133 -0
  111. package/dist/chunks/cli-1.1.21-8f3dmt8c.mjs +2 -0
  112. package/dist/chunks/cli-1.1.21-8mbdp47n.mjs +34 -0
  113. package/dist/chunks/cli-1.1.21-8p4zm65z.mjs +4 -0
  114. package/dist/chunks/cli-1.1.21-8w2yv4xp.mjs +3 -0
  115. package/dist/chunks/cli-1.1.21-92zh5twv.mjs +2 -0
  116. package/dist/chunks/cli-1.1.21-93zvwec9.mjs +6 -0
  117. package/dist/chunks/cli-1.1.21-9fnv418t.mjs +24 -0
  118. package/dist/chunks/cli-1.1.21-9jq126pc.mjs +2 -0
  119. package/dist/chunks/cli-1.1.21-9za692z5.mjs +2 -0
  120. package/dist/chunks/cli-1.1.21-a6pwx2r1.mjs +2 -0
  121. package/dist/chunks/cli-1.1.21-aa0dfxt3.mjs +17 -0
  122. package/dist/chunks/cli-1.1.21-admbc6bh.mjs +2 -0
  123. package/dist/chunks/cli-1.1.21-adykpnkk.mjs +2 -0
  124. package/dist/chunks/cli-1.1.21-an07xgtv.mjs +25 -0
  125. package/dist/chunks/cli-1.1.21-arjp8fch.mjs +50 -0
  126. package/dist/chunks/cli-1.1.21-as9g92fa.mjs +4 -0
  127. package/dist/chunks/cli-1.1.21-atvca4b4.mjs +2 -0
  128. package/dist/chunks/cli-1.1.21-ayg2p1x9.mjs +133 -0
  129. package/dist/chunks/cli-1.1.21-b7q4e2tp.mjs +2 -0
  130. package/dist/chunks/cli-1.1.21-b7y0x2mz.mjs +3 -0
  131. package/dist/chunks/cli-1.1.21-b92n11f5.mjs +2 -0
  132. package/dist/chunks/cli-1.1.21-badssmqg.mjs +25 -0
  133. package/dist/chunks/cli-1.1.21-bbnxyfz6.mjs +4 -0
  134. package/dist/chunks/cli-1.1.21-bc6x1hhj.mjs +2 -0
  135. package/dist/chunks/cli-1.1.21-bjdtgm9x.mjs +2 -0
  136. package/dist/chunks/cli-1.1.21-bp86y1rn.mjs +2 -0
  137. package/dist/chunks/cli-1.1.21-c27qrh9k.mjs +2 -0
  138. package/dist/chunks/cli-1.1.21-cb82p9ss.mjs +24 -0
  139. package/dist/chunks/cli-1.1.21-ccarwr2t.mjs +2 -0
  140. package/dist/chunks/cli-1.1.21-cdk96yzq.mjs +2 -0
  141. package/dist/chunks/cli-1.1.21-cgspbjjg.mjs +2 -0
  142. package/dist/chunks/cli-1.1.21-cqsmyvsx.mjs +6 -0
  143. package/dist/chunks/cli-1.1.21-dvkgw1dj.mjs +4 -0
  144. package/dist/chunks/cli-1.1.21-e28mvxq4.mjs +2 -0
  145. package/dist/chunks/cli-1.1.21-e4qvgw9g.mjs +4 -0
  146. package/dist/chunks/cli-1.1.21-e8cbfmn6.mjs +2 -0
  147. package/dist/chunks/cli-1.1.21-ekphtr04.mjs +6 -0
  148. package/dist/chunks/cli-1.1.21-eqmp9rz1.mjs +2 -0
  149. package/dist/chunks/cli-1.1.21-er4j34m5.mjs +4 -0
  150. package/dist/chunks/cli-1.1.21-eray52nd.mjs +5426 -0
  151. package/dist/chunks/cli-1.1.21-ev8srpeg.mjs +18 -0
  152. package/dist/chunks/cli-1.1.21-exwxjwrp.mjs +17 -0
  153. package/dist/chunks/cli-1.1.21-f3caatgb.mjs +2 -0
  154. package/dist/chunks/cli-1.1.21-fbxz5jg5.mjs +21 -0
  155. package/dist/chunks/cli-1.1.21-fdf1j366.mjs +3 -0
  156. package/dist/chunks/cli-1.1.21-fn4xyb5w.mjs +2 -0
  157. package/dist/chunks/cli-1.1.21-ftenq1jj.mjs +24 -0
  158. package/dist/chunks/cli-1.1.21-fyryzam5.mjs +2 -0
  159. package/dist/chunks/cli-1.1.21-g2fr5c6z.mjs +3 -0
  160. package/dist/chunks/cli-1.1.21-g6wtm4qg.mjs +206 -0
  161. package/dist/chunks/cli-1.1.21-g7ve83cr.mjs +2 -0
  162. package/dist/chunks/cli-1.1.21-g9rmmx1z.mjs +6 -0
  163. package/dist/chunks/cli-1.1.21-gg6ksnw9.mjs +2 -0
  164. package/dist/chunks/cli-1.1.21-gyh1fxbr.mjs +20 -0
  165. package/dist/chunks/cli-1.1.21-h2y2n4jq.mjs +2 -0
  166. package/dist/chunks/cli-1.1.21-h82yh3wp.mjs +2 -0
  167. package/dist/chunks/cli-1.1.21-hdc9e0dr.mjs +2 -0
  168. package/dist/chunks/cli-1.1.21-hjkr35qk.mjs +2 -0
  169. package/dist/chunks/cli-1.1.21-hmex7wtk.mjs +4 -0
  170. package/dist/chunks/cli-1.1.21-hn93q5ch.mjs +1 -0
  171. package/dist/chunks/cli-1.1.21-j0qbp8ym.mjs +2 -0
  172. package/dist/chunks/cli-1.1.21-j5f9b05q.mjs +2 -0
  173. package/dist/chunks/cli-1.1.21-jkqtb9j1.mjs +2 -0
  174. package/dist/chunks/cli-1.1.21-jmrjkgt7.mjs +2 -0
  175. package/dist/chunks/cli-1.1.21-jqy3a4ze.mjs +9 -0
  176. package/dist/chunks/cli-1.1.21-kc7af745.mjs +5 -0
  177. package/dist/chunks/cli-1.1.21-kf8s641e.mjs +2 -0
  178. package/dist/chunks/cli-1.1.21-kkaftzqq.mjs +2 -0
  179. package/dist/chunks/cli-1.1.21-krwdkyza.mjs +18 -0
  180. package/dist/chunks/cli-1.1.21-kv15mvd0.mjs +3 -0
  181. package/dist/chunks/cli-1.1.21-m53y3ydn.mjs +2 -0
  182. package/dist/chunks/cli-1.1.21-m7dy7yxc.mjs +2 -0
  183. package/dist/chunks/cli-1.1.21-m84cxaww.mjs +2 -0
  184. package/dist/chunks/cli-1.1.21-mqxc9x6p.mjs +3 -0
  185. package/dist/chunks/cli-1.1.21-mysvm055.mjs +8 -0
  186. package/dist/chunks/cli-1.1.21-n00fkex6.mjs +15 -0
  187. package/dist/chunks/cli-1.1.21-nh0wz4ab.mjs +2 -0
  188. package/dist/chunks/cli-1.1.21-nqzn2wyp.mjs +2 -0
  189. package/dist/chunks/cli-1.1.21-ns0xhhjk.mjs +2 -0
  190. package/dist/chunks/cli-1.1.21-pbxjvmxd.mjs +2 -0
  191. package/dist/chunks/cli-1.1.21-phnkc3q1.mjs +2 -0
  192. package/dist/chunks/cli-1.1.21-pq9par9t.mjs +2 -0
  193. package/dist/chunks/cli-1.1.21-pqweg9t6.mjs +3 -0
  194. package/dist/chunks/cli-1.1.21-q2k4myze.mjs +2 -0
  195. package/dist/chunks/cli-1.1.21-q2xyk8fc.mjs +2 -0
  196. package/dist/chunks/cli-1.1.21-qgc6dd5n.mjs +2 -0
  197. package/dist/chunks/cli-1.1.21-qj7gkh71.mjs +2 -0
  198. package/dist/chunks/cli-1.1.21-qs47skyh.mjs +2 -0
  199. package/dist/chunks/cli-1.1.21-qvxw9ea2.mjs +2 -0
  200. package/dist/chunks/cli-1.1.21-qxx08ev5.mjs +2 -0
  201. package/dist/chunks/cli-1.1.21-qz8ykx4a.mjs +2 -0
  202. package/dist/chunks/cli-1.1.21-r90yap4s.mjs +4 -0
  203. package/dist/chunks/cli-1.1.21-rb0ytqxh.mjs +2 -0
  204. package/dist/chunks/cli-1.1.21-rtcccwys.mjs +2 -0
  205. package/dist/chunks/cli-1.1.21-rvm9rmen.mjs +2 -0
  206. package/dist/chunks/cli-1.1.21-rwr3npv8.mjs +2 -0
  207. package/dist/chunks/cli-1.1.21-s076czd6.mjs +60 -0
  208. package/dist/chunks/cli-1.1.21-sa93ge05.mjs +2 -0
  209. package/dist/chunks/cli-1.1.21-sk1w1xc8.mjs +2 -0
  210. package/dist/chunks/cli-1.1.21-sqrqvfx9.mjs +2 -0
  211. package/dist/chunks/cli-1.1.21-srp2gqhn.mjs +2 -0
  212. package/dist/chunks/cli-1.1.21-st3azfy2.mjs +2 -0
  213. package/dist/chunks/cli-1.1.21-syphtp6b.mjs +2 -0
  214. package/dist/chunks/cli-1.1.21-t4e7t3gb.mjs +2 -0
  215. package/dist/chunks/cli-1.1.21-tf5jnyct.mjs +2 -0
  216. package/dist/chunks/cli-1.1.21-tgkmdth7.mjs +3 -0
  217. package/dist/chunks/cli-1.1.21-tjgcqqx5.mjs +12 -0
  218. package/dist/chunks/cli-1.1.21-v8edsbtk.mjs +24 -0
  219. package/dist/chunks/cli-1.1.21-vb6krv5p.mjs +2 -0
  220. package/dist/chunks/cli-1.1.21-vbewc9m8.mjs +2 -0
  221. package/dist/chunks/cli-1.1.21-vgqvfdjj.mjs +45 -0
  222. package/dist/chunks/cli-1.1.21-vhz2g6dh.mjs +2 -0
  223. package/dist/chunks/cli-1.1.21-vpc12nrb.mjs +2 -0
  224. package/dist/chunks/cli-1.1.21-vqyps5tc.mjs +2 -0
  225. package/dist/chunks/cli-1.1.21-vtnh7am3.mjs +2 -0
  226. package/dist/chunks/cli-1.1.21-vtrbe9na.mjs +2 -0
  227. package/dist/chunks/cli-1.1.21-vyzdf2h8.mjs +2 -0
  228. package/dist/chunks/cli-1.1.21-w17d43nx.mjs +2 -0
  229. package/dist/chunks/cli-1.1.21-wermyahx.mjs +2 -0
  230. package/dist/chunks/cli-1.1.21-wq125rgf.mjs +2 -0
  231. package/dist/chunks/cli-1.1.21-wwrjy8z7.mjs +2 -0
  232. package/dist/chunks/cli-1.1.21-x34spqyp.mjs +2 -0
  233. package/dist/chunks/cli-1.1.21-x652vc6g.mjs +7 -0
  234. package/dist/chunks/cli-1.1.21-xa36je2k.mjs +2 -0
  235. package/dist/chunks/cli-1.1.21-xc1ka519.mjs +2 -0
  236. package/dist/chunks/cli-1.1.21-xds4bha6.mjs +2 -0
  237. package/dist/chunks/cli-1.1.21-xg5fsk6h.mjs +6 -0
  238. package/dist/chunks/cli-1.1.21-xkd51fv8.mjs +2 -0
  239. package/dist/chunks/cli-1.1.21-xngg1p8f.mjs +2 -0
  240. package/dist/chunks/cli-1.1.21-xrh2trhz.mjs +2 -0
  241. package/dist/chunks/cli-1.1.21-xsjr5sq9.mjs +2 -0
  242. package/dist/chunks/cli-1.1.21-xtdgxynh.mjs +9 -0
  243. package/dist/chunks/cli-1.1.21-xtysnd33.mjs +2 -0
  244. package/dist/chunks/cli-1.1.21-xx8dx3jd.mjs +4 -0
  245. package/dist/chunks/cli-1.1.21-y0d1dgzh.mjs +58 -0
  246. package/dist/chunks/cli-1.1.21-ybbcrjyr.mjs +2 -0
  247. package/dist/chunks/cli-1.1.21-ym854mnb.mjs +2 -0
  248. package/dist/chunks/cli-1.1.21-ymepfykz.mjs +2 -0
  249. package/dist/chunks/cli-1.1.21-ypkp1djh.mjs +5 -0
  250. package/dist/chunks/cli-1.1.21-yt2eqsfh.mjs +2 -0
  251. package/dist/chunks/cli-1.1.21-ytgz6a2f.mjs +2 -0
  252. package/dist/chunks/cli-1.1.21-yx5x54tp.mjs +2 -0
  253. package/dist/chunks/cli-1.1.21-yxj3mby7.mjs +2 -0
  254. package/dist/chunks/cli-1.1.21-yzg6k72r.mjs +2 -0
  255. package/dist/chunks/cli-1.1.21-z008y1nv.mjs +2 -0
  256. package/dist/chunks/cli-1.1.21-z3qkwz5y.mjs +2 -0
  257. package/dist/chunks/cli-1.1.21-z6tzkkrz.mjs +2 -0
  258. package/dist/chunks/cli-1.1.21-zmkcqsqx.mjs +42 -0
  259. package/dist/chunks/cli-1.1.21-zyz9s3k0.mjs +3 -0
  260. package/dist/chunks/client-1.1.21-2z9qpd9x.mjs +1 -0
  261. package/dist/chunks/color-1.1.21-hx6pdrvg.mjs +1 -0
  262. package/dist/chunks/compact-1.1.21-nwq0kqfv.mjs +3 -0
  263. package/dist/chunks/config-1.1.21-6a9bh364.mjs +1 -0
  264. package/dist/chunks/config-1.1.21-mk64wy1s.mjs +1 -0
  265. package/dist/chunks/constants-1.1.21-6t9m2kc1.mjs +1 -0
  266. package/dist/chunks/context-1.1.21-0q6bzccr.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.21-4hsfsph7.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.21-7b7x9kge.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.21-h7jcrbjr.mjs +1 -0
  270. package/dist/chunks/copy-1.1.21-733m4ede.mjs +9 -0
  271. package/dist/chunks/cost-1.1.21-wygsny1s.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.21-xbfgy7b5.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.21-mz06dkby.mjs +1 -0
  274. package/dist/chunks/debug-1.1.21-1mr7a9zd.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.21-vax6c0kp.mjs +1534 -0
  276. package/dist/chunks/desktop-1.1.21-pgp4t084.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.21-4kgqz7gj.mjs +1 -0
  278. package/dist/chunks/detection-1.1.21-fpdqjz2w.mjs +1 -0
  279. package/dist/chunks/diff-1.1.21-eh8phe15.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.21-qsk3dp6v.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.21-vk3kxvax.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.21-hhk47ba3.mjs +1 -0
  283. package/dist/chunks/effort-1.1.21-ekeecb10.mjs +13 -0
  284. package/dist/chunks/engine-1.1.21-d6pnpzs9.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.21-45xt8y53.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.21-602cy0p0.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.21-sdkr95ba.mjs +1 -0
  288. package/dist/chunks/environments-1.1.21-xc2zd8j5.mjs +1 -0
  289. package/dist/chunks/errors-1.1.21-zpsc24qr.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.21-wktrh3tf.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.21-h0jd5fma.mjs +1 -0
  292. package/dist/chunks/exit-1.1.21-s6bxy0s5.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.21-yecddj8m.mjs +1 -0
  294. package/dist/chunks/export-1.1.21-b5aa7w8q.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.21-ccmxd1ga.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.21-jysky3gv.mjs +1 -0
  297. package/dist/chunks/fast-1.1.21-wdpp74vz.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.21-gc3be80r.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.21-cs1b38yg.mjs +1 -0
  300. package/dist/chunks/git-1.1.21-ncfwpbjz.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.21-qya4z4p9.mjs +1 -0
  302. package/dist/chunks/goal-1.1.21-a70wv2cb.mjs +4 -0
  303. package/dist/chunks/growthbook-1.1.21-hmscgg3x.mjs +1 -0
  304. package/dist/chunks/headless-1.1.21-dwdnz8rt.mjs +2 -0
  305. package/dist/chunks/heapdump-1.1.21-tvazwzf0.mjs +6 -0
  306. package/dist/chunks/help-1.1.21-c9hbdjta.mjs +1 -0
  307. package/dist/chunks/hookChains-1.1.21-acyv2xry.mjs +3 -0
  308. package/dist/chunks/hooks-1.1.21-cfmmnnah.mjs +1 -0
  309. package/dist/chunks/hooks-1.1.21-w12e5h5b.mjs +79 -0
  310. package/dist/chunks/ide-1.1.21-wywpj723.mjs +3 -0
  311. package/dist/chunks/image-processor-napi-1.1.21-yhb521r3.mjs +1 -0
  312. package/dist/chunks/inboundAttachments-1.1.21-kk58cty9.mjs +1 -0
  313. package/dist/chunks/index-1.1.21-3b6xa2yf.mjs +1 -0
  314. package/dist/chunks/index-1.1.21-3d6h7ke1.mjs +1 -0
  315. package/dist/chunks/index-1.1.21-57kd6ptp.mjs +1 -0
  316. package/dist/chunks/index-1.1.21-593vrygw.mjs +23 -0
  317. package/dist/chunks/index-1.1.21-5fmfkm8y.mjs +9 -0
  318. package/dist/chunks/index-1.1.21-6zxs2rfg.mjs +1 -0
  319. package/dist/chunks/index-1.1.21-8bhdk6jc.mjs +5 -0
  320. package/dist/chunks/index-1.1.21-adb7btws.mjs +1 -0
  321. package/dist/chunks/index-1.1.21-etcjfd99.mjs +1 -0
  322. package/dist/chunks/index-1.1.21-fy80jkp2.mjs +1 -0
  323. package/dist/chunks/index-1.1.21-hbxv4pgp.mjs +1 -0
  324. package/dist/chunks/index-1.1.21-hytfcvqs.mjs +1 -0
  325. package/dist/chunks/index-1.1.21-m0a3fv04.mjs +30 -0
  326. package/dist/chunks/index-1.1.21-m167t33s.mjs +1 -0
  327. package/dist/chunks/index-1.1.21-q5vrbm1a.mjs +1 -0
  328. package/dist/chunks/index-1.1.21-s1aj62xz.mjs +1 -0
  329. package/dist/chunks/index-1.1.21-srxg6mfj.mjs +1 -0
  330. package/dist/chunks/index-1.1.21-vcbqyp49.mjs +1 -0
  331. package/dist/chunks/index-1.1.21-wqh7rgwt.mjs +2 -0
  332. package/dist/chunks/index-1.1.21-xc8hadvs.mjs +9 -0
  333. package/dist/chunks/index-1.1.21-y0mjkxt4.mjs +1 -0
  334. package/dist/chunks/index-1.1.21-zn4zb4j6.mjs +2 -0
  335. package/dist/chunks/index-1.1.21-zphh9zyt.mjs +1 -0
  336. package/dist/chunks/init-1.1.21-3rsjrj70.mjs +1 -0
  337. package/dist/chunks/initReplBridge-1.1.21-t8zgkgkq.mjs +1 -0
  338. package/dist/chunks/ink-1.1.21-zrg02gjq.mjs +1 -0
  339. package/dist/chunks/insights-1.1.21-08rs6ycg.mjs +870 -0
  340. package/dist/chunks/install-1.1.21-fvsrnj75.mjs +1 -0
  341. package/dist/chunks/install-github-app-1.1.21-kbd8kwxx.mjs +149 -0
  342. package/dist/chunks/install-slack-app-1.1.21-pvac1nvj.mjs +1 -0
  343. package/dist/chunks/instrumentation-1.1.21-3ah0jawp.mjs +1 -0
  344. package/dist/chunks/interactiveHelpers-1.1.21-y8fy1vbg.mjs +1 -0
  345. package/dist/chunks/keybindings-1.1.21-wmvt9cka.mjs +2 -0
  346. package/dist/chunks/knowledge-1.1.21-z92hhppb.mjs +2 -0
  347. package/dist/chunks/latestVersionCache-1.1.21-cv8x9bkm.mjs +1 -0
  348. package/dist/chunks/loadAgentsDir-1.1.21-kwpyjgm3.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.1.21-m59wf0fn.mjs +1 -0
  350. package/dist/chunks/log-1.1.21-xwc604af.mjs +1 -0
  351. package/dist/chunks/main-1.1.21-mpr5depp.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.1.21-nk3htdmq.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.21-e7spj6dg.mjs +1 -0
  354. package/dist/chunks/mcp-1.1.21-mv23tsxc.mjs +17 -0
  355. package/dist/chunks/mcp-1.1.21-wa8c077q.mjs +4 -0
  356. package/dist/chunks/mcpb-1.1.21-bv8pwy9m.mjs +1 -0
  357. package/dist/chunks/memory-1.1.21-gqa797mn.mjs +72 -0
  358. package/dist/chunks/model-1.1.21-3dg8jye0.mjs +1 -0
  359. package/dist/chunks/model-1.1.21-3x98v8x4.mjs +2 -0
  360. package/dist/chunks/node-1.1.21-zxmyqm2z.mjs +14 -0
  361. package/dist/chunks/oauth-1.1.21-4ffdtf1q.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.1.21-9p741891.mjs +14 -0
  363. package/dist/chunks/output-style-1.1.21-kxvx8zbe.mjs +1 -0
  364. package/dist/chunks/package-ZOVFJE7Z-1.1.21-myehvasc.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.1.21-dtjr5vb7.mjs +1 -0
  366. package/dist/chunks/parser-1.1.21-jaqdwq7t.mjs +1 -0
  367. package/dist/chunks/passes-1.1.21-g830qx07.mjs +1 -0
  368. package/dist/chunks/permissions-1.1.21-ec5a6xxt.mjs +3 -0
  369. package/dist/chunks/permissions-1.1.21-qdday4sh.mjs +1 -0
  370. package/dist/chunks/plan-1.1.21-f5qe7hem.mjs +1 -0
  371. package/dist/chunks/plist-1.1.21-y82gjgzs.mjs +1 -0
  372. package/dist/chunks/plugin-1.1.21-0kfwxmv2.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.1.21-f5ddb5rc.mjs +1 -0
  374. package/dist/chunks/plugins-1.1.21-exphk1gb.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.1.21-jhp4m01m.mjs +2 -0
  376. package/dist/chunks/print-1.1.21-rcjs5pc4.mjs +57 -0
  377. package/dist/chunks/process-1.1.21-03zz92gq.mjs +1 -0
  378. package/dist/chunks/processBashCommand-1.1.21-zey1mfgx.mjs +1 -0
  379. package/dist/chunks/processSlashCommand-1.1.21-cwxbh5pw.mjs +9 -0
  380. package/dist/chunks/prompt-1.1.21-49amsrvt.mjs +1 -0
  381. package/dist/chunks/prompt-1.1.21-gv2b1rk5.mjs +1 -0
  382. package/dist/chunks/prompts-1.1.21-hggxct4d.mjs +1 -0
  383. package/dist/chunks/protocolHandler-1.1.21-e974kgtb.mjs +13 -0
  384. package/dist/chunks/provider-1.1.21-xnprbehk.mjs +2 -0
  385. package/dist/chunks/providerProfiles-1.1.21-b4tnf9te.mjs +1 -0
  386. package/dist/chunks/providerValidation-1.1.21-0n0739n4.mjs +6 -0
  387. package/dist/chunks/rate-limit-options-1.1.21-s59gtr3x.mjs +1 -0
  388. package/dist/chunks/registerSubcommands-1.1.21-wb1mef7h.mjs +26 -0
  389. package/dist/chunks/registry-1.1.21-knz7xa0h.mjs +1 -0
  390. package/dist/chunks/release-notes-1.1.21-mvr373q4.mjs +5 -0
  391. package/dist/chunks/reload-plugins-1.1.21-b4czg147.mjs +2 -0
  392. package/dist/chunks/remote-env-1.1.21-dbnxeqkg.mjs +1 -0
  393. package/dist/chunks/remoteBridgeCore-1.1.21-fr3w35kv.mjs +1 -0
  394. package/dist/chunks/remoteSession-1.1.21-5fvz5bsw.mjs +1 -0
  395. package/dist/chunks/rename-1.1.21-6rvag2s4.mjs +1 -0
  396. package/dist/chunks/replBridgeHandle-1.1.21-tay6v7n4.mjs +1 -0
  397. package/dist/chunks/replLauncher-1.1.21-nzx71pts.mjs +1 -0
  398. package/dist/chunks/resume-1.1.21-mp3a9npp.mjs +2 -0
  399. package/dist/chunks/rewind-1.1.21-njh0btq2.mjs +1 -0
  400. package/dist/chunks/rootOptions-1.1.21-7j3b02hm.mjs +1 -0
  401. package/dist/chunks/runWorkflowHeadless-1.1.21-d1v7f1sh.mjs +10 -0
  402. package/dist/chunks/sandbox-adapter-1.1.21-1vd13wkq.mjs +1 -0
  403. package/dist/chunks/sandbox-toggle-1.1.21-c7fw2ksr.mjs +1 -0
  404. package/dist/chunks/session-1.1.21-9gpkxas1.mjs +2 -0
  405. package/dist/chunks/sessionDiscovery-1.1.21-w4676wtk.mjs +1 -0
  406. package/dist/chunks/sessionFileAccessHooks-1.1.21-ecwm1cfg.mjs +1 -0
  407. package/dist/chunks/sessionStorage-1.1.21-kan90ps9.mjs +1 -0
  408. package/dist/chunks/settings-1.1.21-4s7ew4vh.mjs +1 -0
  409. package/dist/chunks/setup-1.1.21-nmfqd6pa.mjs +12 -0
  410. package/dist/chunks/sinks-1.1.21-grwc3mac.mjs +1 -0
  411. package/dist/chunks/skills-1.1.21-c7mykz5q.mjs +1 -0
  412. package/dist/chunks/startupProfiler-1.1.21-mtr244kh.mjs +1 -0
  413. package/dist/chunks/startupUpdateCheck-1.1.21-k1569a6r.mjs +1 -0
  414. package/dist/chunks/state-1.1.21-006s6xsy.mjs +1 -0
  415. package/dist/chunks/stats-1.1.21-bdpn78b9.mjs +6 -0
  416. package/dist/chunks/status-1.1.21-dkepakb3.mjs +1 -0
  417. package/dist/chunks/stickers-1.1.21-xk8yr9yt.mjs +1 -0
  418. package/dist/chunks/subprocessEnv-1.1.21-tjx2d81b.mjs +1 -0
  419. package/dist/chunks/tasks-1.1.21-9qx5fz1q.mjs +1 -0
  420. package/dist/chunks/teamHelpers-1.1.21-pnhycdw4.mjs +1 -0
  421. package/dist/chunks/teammateModeSnapshot-1.1.21-279f713t.mjs +1 -0
  422. package/dist/chunks/teleport-1.1.21-t3yfsxqf.mjs +1 -0
  423. package/dist/chunks/terminalSetup-1.1.21-6t0x22pz.mjs +1 -0
  424. package/dist/chunks/theme-1.1.21-qp0w8xbb.mjs +1 -0
  425. package/dist/chunks/thinkback-1.1.21-my7w4nms.mjs +1 -0
  426. package/dist/chunks/thinkback-play-1.1.21-67cnrtz7.mjs +1 -0
  427. package/dist/chunks/toolPool-1.1.21-njaz40qd.mjs +1 -0
  428. package/dist/chunks/toolSearch-1.1.21-7b0wbg1q.mjs +1 -0
  429. package/dist/chunks/tools-1.1.21-zaawccjz.mjs +1 -0
  430. package/dist/chunks/trustedDevice-1.1.21-2h0kxwkb.mjs +1 -0
  431. package/dist/chunks/turndown.cjs-1.1.21-tajysy6v.mjs +69 -0
  432. package/dist/chunks/types-1.1.21-dpz3pqyf.mjs +1 -0
  433. package/dist/chunks/ultrareviewCommand-1.1.21-3r3a34tb.mjs +4 -0
  434. package/dist/chunks/update-1.1.21-v9n06gej.mjs +72 -0
  435. package/dist/chunks/upgrade-1.1.21-f40x8myx.mjs +1 -0
  436. package/dist/chunks/upload-1.1.21-x63yx03n.mjs +7 -0
  437. package/dist/chunks/upstreamproxy-1.1.21-4d1nmmca.mjs +14 -0
  438. package/dist/chunks/url-handler-napi-1.1.21-f8egwk04.mjs +1 -0
  439. package/dist/chunks/usage-1.1.21-ajfcrtj1.mjs +1 -0
  440. package/dist/chunks/util-1.1.21-raqpgawk.mjs +1 -0
  441. package/dist/chunks/utils-1.1.21-ae7844cz.mjs +1 -0
  442. package/dist/chunks/vim-1.1.21-stgjbrez.mjs +1 -0
  443. package/dist/chunks/watchLoop-1.1.21-3mrb2p44.mjs +13 -0
  444. package/dist/chunks/watcher-1.1.21-71vsydsx.mjs +1 -0
  445. package/dist/chunks/wiki-1.1.21-m8wt2ppx.mjs +132 -0
  446. package/dist/chunks/workflows-1.1.21-j7gtgean.mjs +1 -0
  447. package/dist/chunks/worktree-1.1.21-acv1xtvb.mjs +1 -0
  448. package/dist/chunks/worktreeModeEnabled-1.1.21-2sg0072j.mjs +1 -0
  449. package/dist/chunks/wrapper-1.1.21-zbvep84d.mjs +7 -0
  450. package/dist/cli.mjs +2 -2
  451. package/package.json +9 -9
  452. package/dist/chunks/AgentTool-1.1.19-ap09svyk.mjs +0 -1
  453. package/dist/chunks/App-1.1.19-k77n3357.mjs +0 -1
  454. package/dist/chunks/ApproveApiKey-1.1.19-tcembk4t.mjs +0 -1
  455. package/dist/chunks/AssistantSessionChooser-1.1.19-m4nrahdt.mjs +0 -1
  456. package/dist/chunks/AutoModeOptInDialog-1.1.19-taks8xn7.mjs +0 -1
  457. package/dist/chunks/BypassPermissionsModeDialog-1.1.19-yme7vhwa.mjs +0 -1
  458. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.19-tfvmz7pe.mjs +0 -1
  459. package/dist/chunks/ConsoleOAuthFlow-1.1.19-zkq642rw.mjs +0 -1
  460. package/dist/chunks/DiffDialog-1.1.19-2d75g9t9.mjs +0 -6
  461. package/dist/chunks/Doctor-1.1.19-0h26y250.mjs +0 -1
  462. package/dist/chunks/ExplorerDialog-1.1.19-664kb4w5.mjs +0 -6
  463. package/dist/chunks/ITermBackend-1.1.19-yebbvfbc.mjs +0 -1
  464. package/dist/chunks/InvalidConfigDialog-1.1.19-69vb23j7.mjs +0 -1
  465. package/dist/chunks/InvalidSettingsDialog-1.1.19-xd8y62c2.mjs +0 -1
  466. package/dist/chunks/MigrationDialog-1.1.19-1629rwte.mjs +0 -1
  467. package/dist/chunks/Onboarding-1.1.19-jpbdr4ek.mjs +0 -1
  468. package/dist/chunks/ProviderManager-1.1.19-gsjnpy2f.mjs +0 -1
  469. package/dist/chunks/REPL-1.1.19-pqppw8hp.mjs +0 -1
  470. package/dist/chunks/ResumeConversation-1.1.19-gvqa5kzm.mjs +0 -1
  471. package/dist/chunks/SnapshotUpdateDialog-1.1.19-jqd47gb8.mjs +0 -1
  472. package/dist/chunks/TeleportProgress-1.1.19-m9xykegt.mjs +0 -1
  473. package/dist/chunks/TeleportRepoMismatchDialog-1.1.19-4x4m771g.mjs +0 -1
  474. package/dist/chunks/TeleportResumeWrapper-1.1.19-4ywpbgq0.mjs +0 -1
  475. package/dist/chunks/TmuxBackend-1.1.19-znn3cy0j.mjs +0 -9
  476. package/dist/chunks/ToolSearchTool-1.1.19-z4htsqk6.mjs +0 -1
  477. package/dist/chunks/TrustDialog-1.1.19-fqjjhqxh.mjs +0 -1
  478. package/dist/chunks/activeProvider-1.1.19-sgb7b5wy.mjs +0 -1
  479. package/dist/chunks/add-dir-1.1.19-y55kbgfe.mjs +0 -1
  480. package/dist/chunks/agentTypes-1.1.19-cfvc6wt9.mjs +0 -1
  481. package/dist/chunks/agents-1.1.19-hc4xvq4r.mjs +0 -110
  482. package/dist/chunks/agents-1.1.19-k8kx3pej.mjs +0 -3
  483. package/dist/chunks/api-1.1.19-gbh2sz3k.mjs +0 -1
  484. package/dist/chunks/asciicast-1.1.19-6mnps2vx.mjs +0 -1
  485. package/dist/chunks/assistant-1.1.19-vmkknmbc.mjs +0 -1
  486. package/dist/chunks/auth-1.1.19-h46w2e1a.mjs +0 -1
  487. package/dist/chunks/auth-1.1.19-s68ybx6f.mjs +0 -1
  488. package/dist/chunks/autoMode-1.1.19-qpevvt9x.mjs +0 -52
  489. package/dist/chunks/autoModeSetup-1.1.19-63yyncht.mjs +0 -44
  490. package/dist/chunks/autoUpdater-1.1.19-vxn3t7f7.mjs +0 -1
  491. package/dist/chunks/backgroundHousekeeping-1.1.19-tg6rqb4x.mjs +0 -1
  492. package/dist/chunks/branch-1.1.19-e4gkb2sb.mjs +0 -4
  493. package/dist/chunks/bridge-1.1.19-zwf5vbc6.mjs +0 -2
  494. package/dist/chunks/bridgeConfig-1.1.19-wc27ha2s.mjs +0 -1
  495. package/dist/chunks/bridgeEnabled-1.1.19-6gq8j1d7.mjs +0 -1
  496. package/dist/chunks/bridgeMain-1.1.19-yzzr33jg.mjs +0 -88
  497. package/dist/chunks/bridgePointer-1.1.19-xdqatsm3.mjs +0 -1
  498. package/dist/chunks/btw-1.1.19-qkfvd0ms.mjs +0 -1
  499. package/dist/chunks/buddy-1.1.19-08xe7ppf.mjs +0 -3
  500. package/dist/chunks/cache-probe-1.1.19-w4a9xacm.mjs +0 -21
  501. package/dist/chunks/cacheStats-1.1.19-exn70h4b.mjs +0 -4
  502. package/dist/chunks/caches-1.1.19-d4jfvwhp.mjs +0 -1
  503. package/dist/chunks/claudeDesktop-1.1.19-kxx2an1b.mjs +0 -1
  504. package/dist/chunks/claudemd-1.1.19-xsbhz7tg.mjs +0 -1
  505. package/dist/chunks/clear-1.1.19-a1znba6q.mjs +0 -1
  506. package/dist/chunks/clearTerminal-1.1.19-ahv4wsvx.mjs +0 -1
  507. package/dist/chunks/cli-1.1.19-00q9c51a.mjs +0 -2
  508. package/dist/chunks/cli-1.1.19-00zv4s06.mjs +0 -2
  509. package/dist/chunks/cli-1.1.19-0cyysv3s.mjs +0 -2
  510. package/dist/chunks/cli-1.1.19-0m8cwm30.mjs +0 -2
  511. package/dist/chunks/cli-1.1.19-0n5vcvqz.mjs +0 -2
  512. package/dist/chunks/cli-1.1.19-0s56yqjm.mjs +0 -2
  513. package/dist/chunks/cli-1.1.19-0zq6911y.mjs +0 -2
  514. package/dist/chunks/cli-1.1.19-10jx9qt3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.19-126eyddd.mjs +0 -2
  516. package/dist/chunks/cli-1.1.19-1mqhgz4n.mjs +0 -2
  517. package/dist/chunks/cli-1.1.19-25szxvwt.mjs +0 -2
  518. package/dist/chunks/cli-1.1.19-29wgse8t.mjs +0 -2
  519. package/dist/chunks/cli-1.1.19-2cb4p1hk.mjs +0 -2
  520. package/dist/chunks/cli-1.1.19-2jkn8w89.mjs +0 -2
  521. package/dist/chunks/cli-1.1.19-2rbw0277.mjs +0 -2
  522. package/dist/chunks/cli-1.1.19-2rnpr99c.mjs +0 -1
  523. package/dist/chunks/cli-1.1.19-2xxxjdpp.mjs +0 -2
  524. package/dist/chunks/cli-1.1.19-35evt5gy.mjs +0 -2
  525. package/dist/chunks/cli-1.1.19-38ya9kd8.mjs +0 -2
  526. package/dist/chunks/cli-1.1.19-3e9krkhy.mjs +0 -2
  527. package/dist/chunks/cli-1.1.19-3ep6p0sf.mjs +0 -2
  528. package/dist/chunks/cli-1.1.19-3jjgtf8t.mjs +0 -2
  529. package/dist/chunks/cli-1.1.19-3q0sj4zp.mjs +0 -3
  530. package/dist/chunks/cli-1.1.19-3tzh16np.mjs +0 -4
  531. package/dist/chunks/cli-1.1.19-3wwc3q32.mjs +0 -2
  532. package/dist/chunks/cli-1.1.19-3xpqyp64.mjs +0 -7
  533. package/dist/chunks/cli-1.1.19-48a6gxnh.mjs +0 -2
  534. package/dist/chunks/cli-1.1.19-4ba4a8jg.mjs +0 -9
  535. package/dist/chunks/cli-1.1.19-4dp1vkze.mjs +0 -2
  536. package/dist/chunks/cli-1.1.19-4hek4kyb.mjs +0 -2
  537. package/dist/chunks/cli-1.1.19-4n6cth1a.mjs +0 -2
  538. package/dist/chunks/cli-1.1.19-53hanqff.mjs +0 -2
  539. package/dist/chunks/cli-1.1.19-5a8wm97m.mjs +0 -2
  540. package/dist/chunks/cli-1.1.19-5eb8a4wn.mjs +0 -2
  541. package/dist/chunks/cli-1.1.19-5kaw3aa5.mjs +0 -2
  542. package/dist/chunks/cli-1.1.19-5xy2q2yt.mjs +0 -2
  543. package/dist/chunks/cli-1.1.19-5z5xyy4e.mjs +0 -34
  544. package/dist/chunks/cli-1.1.19-61nar796.mjs +0 -4
  545. package/dist/chunks/cli-1.1.19-61tem8qm.mjs +0 -2
  546. package/dist/chunks/cli-1.1.19-6jvzyjts.mjs +0 -3
  547. package/dist/chunks/cli-1.1.19-6mq64vhw.mjs +0 -3
  548. package/dist/chunks/cli-1.1.19-6pp1614z.mjs +0 -4
  549. package/dist/chunks/cli-1.1.19-6smqyzzn.mjs +0 -50
  550. package/dist/chunks/cli-1.1.19-779zeaga.mjs +0 -2
  551. package/dist/chunks/cli-1.1.19-7djbq218.mjs +0 -3
  552. package/dist/chunks/cli-1.1.19-7rmk4fz4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.19-7s1yy832.mjs +0 -2
  554. package/dist/chunks/cli-1.1.19-7sfdatrg.mjs +0 -12
  555. package/dist/chunks/cli-1.1.19-7v3pjgvw.mjs +0 -5
  556. package/dist/chunks/cli-1.1.19-7zdwszrb.mjs +0 -2
  557. package/dist/chunks/cli-1.1.19-82vfm05a.mjs +0 -2
  558. package/dist/chunks/cli-1.1.19-89n0ppp5.mjs +0 -2
  559. package/dist/chunks/cli-1.1.19-8dpft679.mjs +0 -2
  560. package/dist/chunks/cli-1.1.19-8zwh2ky5.mjs +0 -2
  561. package/dist/chunks/cli-1.1.19-93bb0mpz.mjs +0 -2
  562. package/dist/chunks/cli-1.1.19-946kz0h0.mjs +0 -2
  563. package/dist/chunks/cli-1.1.19-96rdwb5m.mjs +0 -2
  564. package/dist/chunks/cli-1.1.19-99dfxebe.mjs +0 -2
  565. package/dist/chunks/cli-1.1.19-9a8d2pxp.mjs +0 -2
  566. package/dist/chunks/cli-1.1.19-9dkavmxz.mjs +0 -2
  567. package/dist/chunks/cli-1.1.19-9kbnb3tc.mjs +0 -2
  568. package/dist/chunks/cli-1.1.19-9nfxc159.mjs +0 -3
  569. package/dist/chunks/cli-1.1.19-9vf7tt9g.mjs +0 -2
  570. package/dist/chunks/cli-1.1.19-a26wdy1v.mjs +0 -24
  571. package/dist/chunks/cli-1.1.19-a32dnq28.mjs +0 -2
  572. package/dist/chunks/cli-1.1.19-a5hfs685.mjs +0 -45
  573. package/dist/chunks/cli-1.1.19-a6e1antc.mjs +0 -15
  574. package/dist/chunks/cli-1.1.19-a75p9zey.mjs +0 -2
  575. package/dist/chunks/cli-1.1.19-ac73knxp.mjs +0 -2
  576. package/dist/chunks/cli-1.1.19-acez5n0m.mjs +0 -24
  577. package/dist/chunks/cli-1.1.19-aj7yfbb6.mjs +0 -2
  578. package/dist/chunks/cli-1.1.19-awkva6qc.mjs +0 -24
  579. package/dist/chunks/cli-1.1.19-b7fbqawk.mjs +0 -2
  580. package/dist/chunks/cli-1.1.19-bg1d8zv9.mjs +0 -2
  581. package/dist/chunks/cli-1.1.19-bmy2183w.mjs +0 -2
  582. package/dist/chunks/cli-1.1.19-bxvvef3z.mjs +0 -2
  583. package/dist/chunks/cli-1.1.19-c8xs9vjb.mjs +0 -2
  584. package/dist/chunks/cli-1.1.19-cb7496nq.mjs +0 -5
  585. package/dist/chunks/cli-1.1.19-cc266ybe.mjs +0 -2
  586. package/dist/chunks/cli-1.1.19-cfgdvk8n.mjs +0 -12
  587. package/dist/chunks/cli-1.1.19-cjq368e9.mjs +0 -24
  588. package/dist/chunks/cli-1.1.19-cma77m08.mjs +0 -2
  589. package/dist/chunks/cli-1.1.19-cq5hegwz.mjs +0 -6
  590. package/dist/chunks/cli-1.1.19-csfx7v0e.mjs +0 -2
  591. package/dist/chunks/cli-1.1.19-d00hzr89.mjs +0 -2
  592. package/dist/chunks/cli-1.1.19-d1qdwt16.mjs +0 -2
  593. package/dist/chunks/cli-1.1.19-d2x1fpvn.mjs +0 -3
  594. package/dist/chunks/cli-1.1.19-d7wb13f8.mjs +0 -2
  595. package/dist/chunks/cli-1.1.19-dq0a7g9x.mjs +0 -2
  596. package/dist/chunks/cli-1.1.19-dt84yfk2.mjs +0 -206
  597. package/dist/chunks/cli-1.1.19-dw8jwdzq.mjs +0 -3
  598. package/dist/chunks/cli-1.1.19-dzbss10b.mjs +0 -3
  599. package/dist/chunks/cli-1.1.19-e4krk6kp.mjs +0 -2
  600. package/dist/chunks/cli-1.1.19-e5k83shq.mjs +0 -17
  601. package/dist/chunks/cli-1.1.19-ec5kkxdm.mjs +0 -2
  602. package/dist/chunks/cli-1.1.19-edv500a7.mjs +0 -25
  603. package/dist/chunks/cli-1.1.19-esk8qemt.mjs +0 -3
  604. package/dist/chunks/cli-1.1.19-eyhpgp73.mjs +0 -4
  605. package/dist/chunks/cli-1.1.19-f1g12hnb.mjs +0 -2
  606. package/dist/chunks/cli-1.1.19-f1vb0eyp.mjs +0 -2
  607. package/dist/chunks/cli-1.1.19-f6m8mqsf.mjs +0 -2
  608. package/dist/chunks/cli-1.1.19-fgfwa8xc.mjs +0 -2
  609. package/dist/chunks/cli-1.1.19-fqwvhznj.mjs +0 -2
  610. package/dist/chunks/cli-1.1.19-ftnf2s7k.mjs +0 -6
  611. package/dist/chunks/cli-1.1.19-g1bp4mfb.mjs +0 -2
  612. package/dist/chunks/cli-1.1.19-g70qb326.mjs +0 -2
  613. package/dist/chunks/cli-1.1.19-grvgykf5.mjs +0 -58
  614. package/dist/chunks/cli-1.1.19-gvdrxej7.mjs +0 -6
  615. package/dist/chunks/cli-1.1.19-gw9jb8fv.mjs +0 -2
  616. package/dist/chunks/cli-1.1.19-h5psdt4j.mjs +0 -2
  617. package/dist/chunks/cli-1.1.19-h6a1zywh.mjs +0 -2
  618. package/dist/chunks/cli-1.1.19-h6nqzwdx.mjs +0 -8
  619. package/dist/chunks/cli-1.1.19-hdmxb06r.mjs +0 -2
  620. package/dist/chunks/cli-1.1.19-hph7gbkv.mjs +0 -42
  621. package/dist/chunks/cli-1.1.19-hqbspnvc.mjs +0 -5419
  622. package/dist/chunks/cli-1.1.19-hr45csak.mjs +0 -3
  623. package/dist/chunks/cli-1.1.19-j9kyrhvv.mjs +0 -3
  624. package/dist/chunks/cli-1.1.19-jn7xm69z.mjs +0 -2
  625. package/dist/chunks/cli-1.1.19-k4gwmyp2.mjs +0 -17
  626. package/dist/chunks/cli-1.1.19-k5svbvzd.mjs +0 -2
  627. package/dist/chunks/cli-1.1.19-kc4rvbe3.mjs +0 -18
  628. package/dist/chunks/cli-1.1.19-kjbxevhz.mjs +0 -2
  629. package/dist/chunks/cli-1.1.19-kjhw0mpy.mjs +0 -6
  630. package/dist/chunks/cli-1.1.19-kxz28gf8.mjs +0 -21
  631. package/dist/chunks/cli-1.1.19-m8w4as34.mjs +0 -16
  632. package/dist/chunks/cli-1.1.19-m9vwd2bt.mjs +0 -2
  633. package/dist/chunks/cli-1.1.19-mam509fm.mjs +0 -2
  634. package/dist/chunks/cli-1.1.19-mn9sb0en.mjs +0 -2
  635. package/dist/chunks/cli-1.1.19-mqs96k5w.mjs +0 -4
  636. package/dist/chunks/cli-1.1.19-mrft54r6.mjs +0 -2
  637. package/dist/chunks/cli-1.1.19-n24w651m.mjs +0 -3
  638. package/dist/chunks/cli-1.1.19-n5xxe310.mjs +0 -133
  639. package/dist/chunks/cli-1.1.19-nb1256fg.mjs +0 -4
  640. package/dist/chunks/cli-1.1.19-nqznsj8y.mjs +0 -2
  641. package/dist/chunks/cli-1.1.19-nrpwj6d0.mjs +0 -3
  642. package/dist/chunks/cli-1.1.19-p1nzrjj5.mjs +0 -25
  643. package/dist/chunks/cli-1.1.19-p8pd4mmb.mjs +0 -2
  644. package/dist/chunks/cli-1.1.19-pdmgnq2h.mjs +0 -39
  645. package/dist/chunks/cli-1.1.19-pn1pyg9c.mjs +0 -2
  646. package/dist/chunks/cli-1.1.19-q2b2zy0e.mjs +0 -2
  647. package/dist/chunks/cli-1.1.19-q5kbe656.mjs +0 -2
  648. package/dist/chunks/cli-1.1.19-q7cjyz1z.mjs +0 -2
  649. package/dist/chunks/cli-1.1.19-qb3sg611.mjs +0 -2
  650. package/dist/chunks/cli-1.1.19-qvzf4mzn.mjs +0 -2
  651. package/dist/chunks/cli-1.1.19-qw2a73hz.mjs +0 -2
  652. package/dist/chunks/cli-1.1.19-r3km7nzk.mjs +0 -2
  653. package/dist/chunks/cli-1.1.19-r4qc48rf.mjs +0 -2
  654. package/dist/chunks/cli-1.1.19-rk4mqvc5.mjs +0 -2
  655. package/dist/chunks/cli-1.1.19-rkxy1dsw.mjs +0 -2
  656. package/dist/chunks/cli-1.1.19-ry92fd54.mjs +0 -7
  657. package/dist/chunks/cli-1.1.19-s3zhxkk4.mjs +0 -2
  658. package/dist/chunks/cli-1.1.19-sbrpsrtp.mjs +0 -4
  659. package/dist/chunks/cli-1.1.19-shgmqysk.mjs +0 -2
  660. package/dist/chunks/cli-1.1.19-shgqfcam.mjs +0 -2
  661. package/dist/chunks/cli-1.1.19-snq43w01.mjs +0 -6
  662. package/dist/chunks/cli-1.1.19-swfswrx1.mjs +0 -2
  663. package/dist/chunks/cli-1.1.19-t7yahhjv.mjs +0 -4
  664. package/dist/chunks/cli-1.1.19-t87ew64x.mjs +0 -2
  665. package/dist/chunks/cli-1.1.19-t9xz3682.mjs +0 -20
  666. package/dist/chunks/cli-1.1.19-tar53fbc.mjs +0 -15
  667. package/dist/chunks/cli-1.1.19-tefbgf43.mjs +0 -2
  668. package/dist/chunks/cli-1.1.19-tm3821yd.mjs +0 -2
  669. package/dist/chunks/cli-1.1.19-tqv8yds0.mjs +0 -2
  670. package/dist/chunks/cli-1.1.19-tw6zn01k.mjs +0 -2
  671. package/dist/chunks/cli-1.1.19-v35x8svk.mjs +0 -15
  672. package/dist/chunks/cli-1.1.19-v619rbr5.mjs +0 -59
  673. package/dist/chunks/cli-1.1.19-vbq3h0rr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.19-vfed8ert.mjs +0 -2
  675. package/dist/chunks/cli-1.1.19-vgfqexte.mjs +0 -4
  676. package/dist/chunks/cli-1.1.19-vpabfve5.mjs +0 -6
  677. package/dist/chunks/cli-1.1.19-vr8jf7k6.mjs +0 -2
  678. package/dist/chunks/cli-1.1.19-vv09y4gs.mjs +0 -2
  679. package/dist/chunks/cli-1.1.19-vx87jjbs.mjs +0 -18
  680. package/dist/chunks/cli-1.1.19-vyqgdds6.mjs +0 -2
  681. package/dist/chunks/cli-1.1.19-w9tb5j4s.mjs +0 -2
  682. package/dist/chunks/cli-1.1.19-wrgbrnhw.mjs +0 -9
  683. package/dist/chunks/cli-1.1.19-wtkads83.mjs +0 -2
  684. package/dist/chunks/cli-1.1.19-wzm0j7nd.mjs +0 -133
  685. package/dist/chunks/cli-1.1.19-x1grwt9b.mjs +0 -2
  686. package/dist/chunks/cli-1.1.19-x522f12c.mjs +0 -2
  687. package/dist/chunks/cli-1.1.19-x6xnsxay.mjs +0 -2
  688. package/dist/chunks/cli-1.1.19-x86k1gy8.mjs +0 -2
  689. package/dist/chunks/cli-1.1.19-x8set46s.mjs +0 -2
  690. package/dist/chunks/cli-1.1.19-x9jccx03.mjs +0 -4
  691. package/dist/chunks/cli-1.1.19-xnas5w2g.mjs +0 -2
  692. package/dist/chunks/cli-1.1.19-xst2kbax.mjs +0 -2
  693. package/dist/chunks/cli-1.1.19-xvrj0zyj.mjs +0 -2
  694. package/dist/chunks/cli-1.1.19-y6p80wj3.mjs +0 -3
  695. package/dist/chunks/cli-1.1.19-ybe27dz9.mjs +0 -66
  696. package/dist/chunks/cli-1.1.19-ykspd2ax.mjs +0 -2
  697. package/dist/chunks/cli-1.1.19-ykvwaeht.mjs +0 -2
  698. package/dist/chunks/cli-1.1.19-yrjfmdg0.mjs +0 -2
  699. package/dist/chunks/cli-1.1.19-ys9280nx.mjs +0 -2
  700. package/dist/chunks/cli-1.1.19-yw33djbn.mjs +0 -2
  701. package/dist/chunks/cli-1.1.19-z9t89h8r.mjs +0 -2
  702. package/dist/chunks/cli-1.1.19-zcbfxmsm.mjs +0 -2
  703. package/dist/chunks/cli-1.1.19-zdb14mt2.mjs +0 -2
  704. package/dist/chunks/cli-1.1.19-zebz0x46.mjs +0 -2
  705. package/dist/chunks/cli-1.1.19-zg8m3n8n.mjs +0 -2
  706. package/dist/chunks/cli-1.1.19-zm9nhjfe.mjs +0 -2
  707. package/dist/chunks/cli-1.1.19-ztvzhgye.mjs +0 -2
  708. package/dist/chunks/cli-1.1.19-ztxdhvw3.mjs +0 -2
  709. package/dist/chunks/cli-1.1.19-zv4hb0hf.mjs +0 -2
  710. package/dist/chunks/client-1.1.19-rydegw5h.mjs +0 -1
  711. package/dist/chunks/color-1.1.19-p5265vaz.mjs +0 -1
  712. package/dist/chunks/compact-1.1.19-7c9mxrm8.mjs +0 -3
  713. package/dist/chunks/config-1.1.19-2wsgrxvp.mjs +0 -1
  714. package/dist/chunks/config-1.1.19-d62j9tgx.mjs +0 -1
  715. package/dist/chunks/constants-1.1.19-cyxrtszj.mjs +0 -1
  716. package/dist/chunks/context-1.1.19-mtt1t5p4.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.1.19-xry25hh6.mjs +0 -1
  718. package/dist/chunks/conversation-1.1.19-y6cahyhg.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.1.19-esh8mxyx.mjs +0 -1
  720. package/dist/chunks/copy-1.1.19-tyf8daxj.mjs +0 -9
  721. package/dist/chunks/cost-1.1.19-pvrac5v6.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.1.19-8jd28zhc.mjs +0 -1
  723. package/dist/chunks/createSession-1.1.19-88gw4fqs.mjs +0 -1
  724. package/dist/chunks/debug-1.1.19-xz3040cz.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.1.19-x39zq6wr.mjs +0 -1534
  726. package/dist/chunks/desktop-1.1.19-a40h3fh1.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.1.19-g0rbffr6.mjs +0 -1
  728. package/dist/chunks/detection-1.1.19-kzpx83pk.mjs +0 -1
  729. package/dist/chunks/diff-1.1.19-g76zmzb1.mjs +0 -1
  730. package/dist/chunks/doctor-1.1.19-03zspk7d.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.1.19-df18kr26.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.1.19-n9y2y9sm.mjs +0 -1
  733. package/dist/chunks/effort-1.1.19-503r3dqe.mjs +0 -13
  734. package/dist/chunks/engine-1.1.19-0ad61bvx.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.1.19-qf1fj44h.mjs +0 -1
  736. package/dist/chunks/envUtils-1.1.19-8en4zy66.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.1.19-91hc6n75.mjs +0 -1
  738. package/dist/chunks/environments-1.1.19-tfjfkh09.mjs +0 -1
  739. package/dist/chunks/errors-1.1.19-fs48fz9y.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.1.19-pbb6kk50.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.1.19-m6am19yr.mjs +0 -1
  742. package/dist/chunks/exit-1.1.19-mqpwd363.mjs +0 -1
  743. package/dist/chunks/explorer-1.1.19-epqv5k1e.mjs +0 -1
  744. package/dist/chunks/export-1.1.19-t8tpvak9.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.1.19-r9kte59s.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.1.19-xnxm4sqt.mjs +0 -1
  747. package/dist/chunks/fast-1.1.19-c4n0rr8a.mjs +0 -1
  748. package/dist/chunks/feedback-1.1.19-7k5rya63.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.1.19-5bjmyd6a.mjs +0 -1
  750. package/dist/chunks/git-1.1.19-1njw7gwq.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.1.19-k4csmysh.mjs +0 -1
  752. package/dist/chunks/goal-1.1.19-e08g4net.mjs +0 -4
  753. package/dist/chunks/growthbook-1.1.19-gw9m906y.mjs +0 -1
  754. package/dist/chunks/headless-1.1.19-gckc9qf1.mjs +0 -2
  755. package/dist/chunks/heapdump-1.1.19-cy0bczwr.mjs +0 -6
  756. package/dist/chunks/help-1.1.19-bbfsbt36.mjs +0 -1
  757. package/dist/chunks/hookChains-1.1.19-n01ssw8c.mjs +0 -3
  758. package/dist/chunks/hooks-1.1.19-488gkyjk.mjs +0 -1
  759. package/dist/chunks/hooks-1.1.19-b2x6yc66.mjs +0 -79
  760. package/dist/chunks/ide-1.1.19-zf9hpj81.mjs +0 -3
  761. package/dist/chunks/image-processor-napi-1.1.19-1m270wr0.mjs +0 -1
  762. package/dist/chunks/inboundAttachments-1.1.19-h4bsnn75.mjs +0 -1
  763. package/dist/chunks/index-1.1.19-06ccpd87.mjs +0 -1
  764. package/dist/chunks/index-1.1.19-263v6qeb.mjs +0 -1
  765. package/dist/chunks/index-1.1.19-2d944pv5.mjs +0 -1
  766. package/dist/chunks/index-1.1.19-7ngy3yfc.mjs +0 -9
  767. package/dist/chunks/index-1.1.19-apzfwtnm.mjs +0 -1
  768. package/dist/chunks/index-1.1.19-efdm8cp5.mjs +0 -30
  769. package/dist/chunks/index-1.1.19-exbss9tj.mjs +0 -1
  770. package/dist/chunks/index-1.1.19-f53qyqj8.mjs +0 -2
  771. package/dist/chunks/index-1.1.19-fae0sgd8.mjs +0 -5
  772. package/dist/chunks/index-1.1.19-g4rv8gvj.mjs +0 -2
  773. package/dist/chunks/index-1.1.19-ha3e4f70.mjs +0 -1
  774. package/dist/chunks/index-1.1.19-ht9s8yra.mjs +0 -9
  775. package/dist/chunks/index-1.1.19-j9awq55c.mjs +0 -1
  776. package/dist/chunks/index-1.1.19-jdvmsx9x.mjs +0 -1
  777. package/dist/chunks/index-1.1.19-ks262nbe.mjs +0 -1
  778. package/dist/chunks/index-1.1.19-mppepmze.mjs +0 -23
  779. package/dist/chunks/index-1.1.19-nthw1gda.mjs +0 -1
  780. package/dist/chunks/index-1.1.19-rs8fazy9.mjs +0 -1
  781. package/dist/chunks/index-1.1.19-sze2q9g5.mjs +0 -1
  782. package/dist/chunks/index-1.1.19-vkfm4msr.mjs +0 -1
  783. package/dist/chunks/index-1.1.19-vs2nyqte.mjs +0 -1
  784. package/dist/chunks/index-1.1.19-z8fcr2ec.mjs +0 -1
  785. package/dist/chunks/index-1.1.19-zy7mntdp.mjs +0 -1
  786. package/dist/chunks/init-1.1.19-8d53tmw6.mjs +0 -1
  787. package/dist/chunks/initReplBridge-1.1.19-p00njb6f.mjs +0 -1
  788. package/dist/chunks/ink-1.1.19-vr4g8jdg.mjs +0 -1
  789. package/dist/chunks/insights-1.1.19-6ag4d7qh.mjs +0 -870
  790. package/dist/chunks/install-1.1.19-74g8qyvc.mjs +0 -1
  791. package/dist/chunks/install-github-app-1.1.19-3nj645m2.mjs +0 -149
  792. package/dist/chunks/install-slack-app-1.1.19-sw02tcfh.mjs +0 -1
  793. package/dist/chunks/instrumentation-1.1.19-fshq5kr2.mjs +0 -1
  794. package/dist/chunks/interactiveHelpers-1.1.19-npmh2sbc.mjs +0 -1
  795. package/dist/chunks/keybindings-1.1.19-xy665r7j.mjs +0 -2
  796. package/dist/chunks/knowledge-1.1.19-e4pdfkhx.mjs +0 -2
  797. package/dist/chunks/latestVersionCache-1.1.19-fktnyx5h.mjs +0 -1
  798. package/dist/chunks/loadAgentsDir-1.1.19-j4732ykz.mjs +0 -1
  799. package/dist/chunks/loadPluginHooks-1.1.19-99a4nfjq.mjs +0 -1
  800. package/dist/chunks/log-1.1.19-y3spcye6.mjs +0 -1
  801. package/dist/chunks/main-1.1.19-06jy3aye.mjs +0 -1
  802. package/dist/chunks/managedEnv-1.1.19-19k3jdqh.mjs +0 -1
  803. package/dist/chunks/mcp-1.1.19-833sdc7d.mjs +0 -17
  804. package/dist/chunks/mcp-1.1.19-x0sfjzjt.mjs +0 -1
  805. package/dist/chunks/mcp-1.1.19-z5x59bca.mjs +0 -4
  806. package/dist/chunks/mcpb-1.1.19-bbswp853.mjs +0 -1
  807. package/dist/chunks/memory-1.1.19-d1ke4kha.mjs +0 -72
  808. package/dist/chunks/model-1.1.19-sm0ftpna.mjs +0 -1
  809. package/dist/chunks/model-1.1.19-v68fjcdh.mjs +0 -2
  810. package/dist/chunks/node-1.1.19-nj9qe6mk.mjs +0 -12
  811. package/dist/chunks/oauth-1.1.19-y016e4dk.mjs +0 -1
  812. package/dist/chunks/openaiShim-1.1.19-njr80kze.mjs +0 -14
  813. package/dist/chunks/output-style-1.1.19-rj9tfcg1.mjs +0 -1
  814. package/dist/chunks/package-KQCMZM5L-1.1.19-4f1z2hmg.mjs +0 -1
  815. package/dist/chunks/parseConnectUrl-1.1.19-qtk1xf04.mjs +0 -1
  816. package/dist/chunks/parser-1.1.19-sfrfy1dm.mjs +0 -1
  817. package/dist/chunks/passes-1.1.19-nhfrcsrb.mjs +0 -1
  818. package/dist/chunks/permissions-1.1.19-bfjnq5mz.mjs +0 -1
  819. package/dist/chunks/permissions-1.1.19-vzcjg874.mjs +0 -3
  820. package/dist/chunks/plan-1.1.19-qzr3m454.mjs +0 -1
  821. package/dist/chunks/plist-1.1.19-19wsvxjw.mjs +0 -1
  822. package/dist/chunks/plugin-1.1.19-p0h9mbar.mjs +0 -29
  823. package/dist/chunks/pluginStartupCheck-1.1.19-7pvtzbb1.mjs +0 -1
  824. package/dist/chunks/plugins-1.1.19-xrbe4y5a.mjs +0 -9
  825. package/dist/chunks/preActionHook-1.1.19-wfp4vavy.mjs +0 -2
  826. package/dist/chunks/print-1.1.19-rzw2njmz.mjs +0 -57
  827. package/dist/chunks/process-1.1.19-k7h4qsz0.mjs +0 -1
  828. package/dist/chunks/processBashCommand-1.1.19-p1ffejkb.mjs +0 -1
  829. package/dist/chunks/processSlashCommand-1.1.19-gy6nfdzs.mjs +0 -9
  830. package/dist/chunks/prompt-1.1.19-9aq4jr0c.mjs +0 -1
  831. package/dist/chunks/prompt-1.1.19-kkwb835d.mjs +0 -1
  832. package/dist/chunks/prompts-1.1.19-qq19kp1k.mjs +0 -1
  833. package/dist/chunks/protocolHandler-1.1.19-6n3sh10m.mjs +0 -13
  834. package/dist/chunks/provider-1.1.19-46f6x4wt.mjs +0 -2
  835. package/dist/chunks/providerProfiles-1.1.19-xxzvjngj.mjs +0 -1
  836. package/dist/chunks/providerValidation-1.1.19-t3qsn8f5.mjs +0 -6
  837. package/dist/chunks/rate-limit-options-1.1.19-j7xrp805.mjs +0 -1
  838. package/dist/chunks/registerSubcommands-1.1.19-v2jjs3tt.mjs +0 -26
  839. package/dist/chunks/registry-1.1.19-7chtcyjj.mjs +0 -1
  840. package/dist/chunks/release-notes-1.1.19-pbbxph7n.mjs +0 -5
  841. package/dist/chunks/reload-plugins-1.1.19-qgvazhrx.mjs +0 -2
  842. package/dist/chunks/remote-env-1.1.19-4ftd6zk8.mjs +0 -1
  843. package/dist/chunks/remoteBridgeCore-1.1.19-w92h77yd.mjs +0 -1
  844. package/dist/chunks/remoteSession-1.1.19-e5nd7ypy.mjs +0 -1
  845. package/dist/chunks/rename-1.1.19-zmextayk.mjs +0 -1
  846. package/dist/chunks/replBridgeHandle-1.1.19-4vqnj6br.mjs +0 -1
  847. package/dist/chunks/replLauncher-1.1.19-s2btrsvw.mjs +0 -1
  848. package/dist/chunks/resume-1.1.19-jn7pe69d.mjs +0 -2
  849. package/dist/chunks/rewind-1.1.19-rahxdd24.mjs +0 -1
  850. package/dist/chunks/rootOptions-1.1.19-hjwkw6vt.mjs +0 -1
  851. package/dist/chunks/runWorkflowHeadless-1.1.19-hjwsqxd5.mjs +0 -10
  852. package/dist/chunks/sandbox-adapter-1.1.19-4aqxxq3m.mjs +0 -1
  853. package/dist/chunks/sandbox-toggle-1.1.19-x2n1fkv0.mjs +0 -1
  854. package/dist/chunks/session-1.1.19-je5j810m.mjs +0 -2
  855. package/dist/chunks/sessionDiscovery-1.1.19-t595d3pg.mjs +0 -1
  856. package/dist/chunks/sessionFileAccessHooks-1.1.19-bng1xsd6.mjs +0 -1
  857. package/dist/chunks/sessionStorage-1.1.19-6agd7cfq.mjs +0 -1
  858. package/dist/chunks/settings-1.1.19-cpxbjwr6.mjs +0 -1
  859. package/dist/chunks/setup-1.1.19-11b5cjgj.mjs +0 -12
  860. package/dist/chunks/sinks-1.1.19-m4ce6s8b.mjs +0 -1
  861. package/dist/chunks/skills-1.1.19-scwgh73s.mjs +0 -1
  862. package/dist/chunks/startupProfiler-1.1.19-j0kpxw4n.mjs +0 -1
  863. package/dist/chunks/startupUpdateCheck-1.1.19-k05gx3h1.mjs +0 -1
  864. package/dist/chunks/state-1.1.19-r1dtdp9g.mjs +0 -1
  865. package/dist/chunks/stats-1.1.19-zwc97973.mjs +0 -6
  866. package/dist/chunks/status-1.1.19-8m7tf3e1.mjs +0 -1
  867. package/dist/chunks/stickers-1.1.19-51p3tyxv.mjs +0 -1
  868. package/dist/chunks/subprocessEnv-1.1.19-bq634ryk.mjs +0 -1
  869. package/dist/chunks/tasks-1.1.19-xtpcttgb.mjs +0 -1
  870. package/dist/chunks/teamHelpers-1.1.19-37de1g3x.mjs +0 -1
  871. package/dist/chunks/teammateModeSnapshot-1.1.19-0zaw34nq.mjs +0 -1
  872. package/dist/chunks/teleport-1.1.19-1yrce0fg.mjs +0 -1
  873. package/dist/chunks/terminalSetup-1.1.19-n3qgcbse.mjs +0 -1
  874. package/dist/chunks/theme-1.1.19-qfd87sgp.mjs +0 -1
  875. package/dist/chunks/thinkback-1.1.19-gss5am06.mjs +0 -1
  876. package/dist/chunks/thinkback-play-1.1.19-7j20scs3.mjs +0 -1
  877. package/dist/chunks/toolPool-1.1.19-tmtwkgcj.mjs +0 -1
  878. package/dist/chunks/toolSearch-1.1.19-01pt7axx.mjs +0 -1
  879. package/dist/chunks/tools-1.1.19-1y8gx9m2.mjs +0 -1
  880. package/dist/chunks/trustedDevice-1.1.19-d1avnq7v.mjs +0 -1
  881. package/dist/chunks/turndown.cjs-1.1.19-q8rxrnz3.mjs +0 -69
  882. package/dist/chunks/types-1.1.19-3n28bh66.mjs +0 -1
  883. package/dist/chunks/ultrareviewCommand-1.1.19-vhhfbsfg.mjs +0 -4
  884. package/dist/chunks/update-1.1.19-xzwgsapn.mjs +0 -72
  885. package/dist/chunks/upgrade-1.1.19-5ydc5rb9.mjs +0 -1
  886. package/dist/chunks/upload-1.1.19-evxky0ry.mjs +0 -7
  887. package/dist/chunks/upstreamproxy-1.1.19-6t7vnxjf.mjs +0 -14
  888. package/dist/chunks/url-handler-napi-1.1.19-zgpfdrf1.mjs +0 -1
  889. package/dist/chunks/usage-1.1.19-f61vnt3h.mjs +0 -1
  890. package/dist/chunks/util-1.1.19-yqzpdqqe.mjs +0 -1
  891. package/dist/chunks/utils-1.1.19-hhq6836h.mjs +0 -1
  892. package/dist/chunks/vim-1.1.19-k2aqex53.mjs +0 -1
  893. package/dist/chunks/watchLoop-1.1.19-e3ar1gjj.mjs +0 -13
  894. package/dist/chunks/watcher-1.1.19-09ahtfef.mjs +0 -1
  895. package/dist/chunks/wiki-1.1.19-h6tfdmnw.mjs +0 -132
  896. package/dist/chunks/workflows-1.1.19-kgd61yya.mjs +0 -1
  897. package/dist/chunks/worktree-1.1.19-8vn5pmy9.mjs +0 -1
  898. package/dist/chunks/worktreeModeEnabled-1.1.19-je6hz46c.mjs +0 -1
  899. package/dist/chunks/wrapper-1.1.19-dn4wk1mg.mjs +0 -7
  900. /package/dist/chunks/{cli-1.1.19-4tssw0qf.mjs → cli-1.1.21-7snn7kbs.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.19-jepkkjbh.mjs → cli-1.1.21-7sx1arjq.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.19-mnfgg84d.mjs → cli-1.1.21-cx7tkkx6.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.1.19-j2p355hg.mjs → cli-1.1.21-ftamxg3e.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.1.19-caqq41md.mjs → cli-1.1.21-rte0df0y.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.1.19-er0hdy0x.mjs → cli-1.1.21-srd8n2bc.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{kta as z}from"./cli-1.1.19-cc266ybe.mjs";import{execFile as B}from"child_process";import{promisify as E}from"util";async function N(v){try{let{stdout:q}=await G("git",["worktree","list","--porcelain"],{cwd:v,timeout:5000});if(!q)return[];return q.split(`
2
- `).filter((j)=>j.startsWith("worktree ")).map((j)=>j.slice(9).normalize("NFC"))}catch{return[]}}var G;var H=z(()=>{G=E(B)});
3
- export{N as GW,H as HW};
@@ -1,3 +0,0 @@
1
- import{$0 as s,DZ as t,H1 as o,MZ as p,_0 as j,a1 as F,c1 as V}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as w,e4 as g,f4 as y}from"./cli-1.1.19-25szxvwt.mjs";import{D_ as _,E_ as n,x_ as $,y_ as a}from"./cli-1.1.19-dt84yfk2.mjs";import{gta as i,kta as v}from"./cli-1.1.19-cc266ybe.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
- `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as ig,Mq as jg};
@@ -1,2 +0,0 @@
1
- import{Wi as p,Xi as z}from"./cli-1.1.19-tqv8yds0.mjs";import{Yi as q,Zi as A}from"./cli-1.1.19-5a8wm97m.mjs";import{d4 as k,f4 as h}from"./cli-1.1.19-25szxvwt.mjs";import{kta as y}from"./cli-1.1.19-cc266ybe.mjs";async function G(b,v){let f=await q();if(f.type==="message")return b(f.value),null;return k(p,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(w)=>{v.onChangeAPIKey(),b(w?"Login successful":"Login interrupted")}})}var B=y(()=>{z();A();h()});
2
- export{G as Ui,B as Vi};
@@ -1,17 +0,0 @@
1
- import{ita as y,lta as b}from"./cli-1.1.19-cc266ybe.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.19-263v6qeb.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 $sa,h1 as ata,D0 as bta,C$ as cta,F0 as dta,ST as eta,C0 as fta};
@@ -1,2 +0,0 @@
1
- import{JF as L,KF as h,Wx as J,Xx as Z,rH as z,sH as M}from"./cli-1.1.19-hqbspnvc.mjs";import{DZ as X}from"./cli-1.1.19-v619rbr5.mjs";import{g4 as W}from"./cli-1.1.19-5kaw3aa5.mjs";import{Vqa as H,yra as V}from"./cli-1.1.19-gw9jb8fv.mjs";import{gta as D,kta as U}from"./cli-1.1.19-cc266ybe.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
2
- export{v as yg,A as zg};
@@ -1,25 +0,0 @@
1
- import{$J as zq,BR as yq,IK as Pq,PK as Yq,Qx as e,RK as Uq,Rx as Hq,UJ as S,VB as qq,VJ as R,Vp as a,WB as Nq,WJ as Xq,Xp as Kq,ZJ as p,_J as k,aK as Bq,bK as I,bv as s,cK as b,el as r,gl as vq,hv as t,jK as Gq,kK as Jq,nv as Wq,oK as hq,rK as Qq,sK as Oq,uK as Vq,vR as Zq}from"./cli-1.1.19-hqbspnvc.mjs";import{Wga as w,cha as Fq}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as o,lja as Lq}from"./cli-1.1.19-mrft54r6.mjs";import{Hla as jq,tla as y}from"./cli-1.1.19-eyhpgp73.mjs";import{kta as M}from"./cli-1.1.19-cc266ybe.mjs";function x(B,z){let G=m[z]??1,Y=B!==void 0?m[B]:void 0;if(Y===void 0)return z;return Y<=G?B:z}var m;var g=M(()=>{m={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
- …[truncated ${B.length-z} chars]`}function u(B,z,G,Y){let V=[];if(V.push(`You are a worker agent in the "${B.name}" workflow, phase "${Y.name}".`),B.instructions.trim())V.push(`Workflow instructions:
3
- ${B.instructions.trim()}`);if(V.push(`Task:
4
- ${z}`),G.trim())V.push(`Work so far (accumulated artifact from earlier phases):
5
- ${C(G.trim(),$q)}`);return V.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),V.join(`
6
-
7
- `)}function c(B,z){let G=[];if(G.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())G.push(`Workflow instructions:
8
- ${z.instructions.trim()}`);G.push(`Task:
9
- ${B.task}`);let Y=z.steps.findIndex((Q)=>Q.name===B.currentStep),V=z.steps.map((Q,J)=>{let j=J<Y?"[done]":J===Y?"[current]":"[pending]",W=I(Q)?" (terminal)":"";return` ${J+1}. ${Q.name} ${j}${W}`}).join(`
10
- `);if(G.push(`Phases:
11
- ${V}`),B.history.length>0){let Q=B.history.map((J)=>{let j=J.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
- ${C(q.output,f).split(`
13
- `).map((H)=>` ${H}`).join(`
14
- `)}`}).join(`
15
- `),W=J.decision?` decision: ${J.decision.decision}${J.decision.target?` → ${J.decision.target}`:""} — ${J.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${J.step}":
16
- ${j}
17
- ${J.synthesis?` synthesis: ${C(J.synthesis,f)}
18
- `:""}${W}`}).join(`
19
-
20
- `);G.push(`History (all phases so far):
21
- ${Q}`)}let $=z.steps[Y]?.handbackTo??[];return G.push($.length>0?`From the current phase you may hand back to: ${$.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),G.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),G.join(`
22
-
23
- `)}var f=4000,$q=6000;var l=M(()=>{b()});function d(B,z,G){let Y=G.steps,V=Y.findIndex((j)=>j.name===B.currentStep),Z={...B.refineCounts},$=B.transitions+1,Q=B.currentStep,J="running";if(z.decision==="advance"){let j=Y[V+1];if(I(j)){if(J="done",j)Q=j.name}else Q=j.name}else if(z.decision==="refine"){if(Z[Q]=(Z[Q]??0)+1,Z[Q]>k)J="stalled"}else{let j=Y[V]?.handbackTo??[];if(!z.target||!j.includes(z.target))J="stalled";else if(Z[z.target]=(Z[z.target]??0)+1,Z[z.target]>k)J="stalled";else Q=z.target}if(J==="running"&&$>=p)J="stalled";return{...B,currentStep:Q,status:J,refineCounts:Z,transitions:$,updatedAt:Date.now()}}var i=M(()=>{b()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function wq(B){let z="",G=0;for(let V=B.length-1;V>=0;V--){let Z=B[V];if(Z.type!=="assistant"||!Z.message)continue;if(!z){let $=(Z.message.content??[]).filter((Q)=>Q.type==="text"&&Q.text);if($.length>0)z=$.map((Q)=>Q.text??"").join(`
24
- `)}if(G===0&&Z.message.usage)G=Zq(Z.message.usage);if(z&&G)break}let Y=e(B);return{text:z,tokens:G,tools:Y}}async function n(B){let{label:z,agentDef:G,promptText:Y,toolUseContext:V,canUseTool:Z,extraTools:$,runId:Q}=B,J=Date.now(),j=V.getAppState(),W=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(G.permissionMode,W)},L=Yq(q,j.mcp.tools);if($&&$.length>0)L=[...L,...$];let H=G.model??String(V.options.mainLoopModel??""),F=[],N,P=!1;try{let K=qq({agentDefinition:G,promptMessages:[Vq({content:Y})],toolUseContext:V,canUseTool:Z,isAsync:!1,querySource:a(G.agentType,s(G)),availableTools:L,transcriptSubdir:`workflows/${Q}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let h of K)if(F.push(h),h.type==="attachment"&&h.attachment?.type==="structured_output")N=h.attachment.data}catch(K){if(y(K))throw K;w(K),P=!0}let{text:E,tokens:_,tools:X}=wq(F);return{run:{label:z,model:H,tokens:_,tools:X,ms:Date.now()-J,output:P?"":E,failed:P},structuredOutput:N}}async function tq(B){let{def:z,task:G,toolUseContext:Y,canUseTool:V,onProgress:Z,signal:$}=B,{allAgents:Q}=await t(o()),J=new Map(Q.map((H)=>[H.agentType,H]));J.set(S,R);let j=J.get(z.main??S)??R,W=new AbortController;if($)if($.aborted)W.abort();else $.addEventListener("abort",()=>W.abort(),{once:!0});let q=await Gq({workflow:z.name,description:z.description,task:G,firstStep:z.steps[0].name});Z?.(q);let L=async()=>{await Jq(q),Z?.(q)};while(q.status==="running"){if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let H=z.steps.findIndex((v)=>v.name===q.currentStep),F=z.steps[H];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let N;try{N=(await Qq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=J.get(O);A=D?await n({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,G,q.artifact,F),toolUseContext:Y,canUseTool:V,runId:q.runId,abortController:W}):T}catch(D){if(y(D))throw D;w(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let P={step:F.name,stepIndex:H,agents:N,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+N.reduce((v,O)=>v+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&N.every((v)=>v.failed)){w(Error(`workflow phase "${F.name}": all ${N.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){w(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],X;try{X=await n({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Y,canUseTool:V,extraTools:_,runId:q.runId,abortController:W})}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let K=zq.safeParse(X.structuredOutput),h=[...q.history];if(h[h.length-1]={...P,synthesis:X.run.output,decision:K.success?K.data:null,agents:[...N,X.run]},q={...q,history:h,artifact:X.run.output.trim()?X.run.output:q.artifact,totalTokens:q.totalTokens+X.run.tokens,updatedAt:Date.now()},!K.success){w(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Wq();Hq();Nq();vq();Lq();jq();Fq();Pq();Kq();yq();Xq();g();l();hq();i();b()});
25
- export{tq as Di,Eq as Ei};
@@ -1,3 +0,0 @@
1
- import{$U as S,_U as O}from"./cli-1.1.19-p8pd4mmb.mjs";import{Iba as R,Kba as _,M$ as I,P_ as D,Q_ as x,Wga as G,cha as y,hfa as z,ifa as A,o$ as B,p$ as M,wfa as k}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as q,lja as v}from"./cli-1.1.19-mrft54r6.mjs";import{Xra as K,Yra as W}from"./cli-1.1.19-f1vb0eyp.mjs";W();v();k();_();x();I();y();S();var b=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function F(L){return!b.some((Q)=>Q.test(L))}function P(L,Q){let J=[],X=new Set,U=new Map;for(let H=1;J.length<Q&&H<=Q;H++)for(let V of L){if(J.length>=Q)break;if(!F(V))continue;let Y=Math.max(V.lastIndexOf("/"),V.lastIndexOf("\\")),Z=Y>=0?V.slice(Y+1):V;if(!Z||X.has(Z))continue;let $=Y>=0?V.slice(0,Y):".";if((U.get($)??0)>=H)continue;J.push(Z),X.add(Z),U.set($,(U.get($)??0)+1)}return J.length>=Q?J:[]}async function N(){if(R.platform==="win32")return[];if(!await M())return[];try{let L=await O(),Q=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],J=new Map,X=(H)=>{for(let V of H.split(`
2
- `)){let Y=V.trim();if(Y)J.set(Y,(J.get(Y)??0)+1)}};if(L){let{stdout:H}=await D("git",[...Q,`--author=${L}`],{cwd:q()});X(H)}if(J.size<10){let{stdout:H}=await D(B(),Q,{cwd:q()});X(H)}let U=Array.from(J.entries()).sort((H,V)=>V[1]-H[1]).map(([H])=>H);return P(U,5)}catch(L){return G(L),[]}}var T=604800000;function E(L){let Q=z(),J=Q.exampleFiles?.length?Q.exampleFiles:["<filepath>"],U=[...["fix lint errors","fix typecheck errors",`how does ${J[0]} work?`,`refactor ${J[Math.floor(J.length/2)]}`,"how do I log an error?",`edit ${J[J.length-1]} to...`,`write a test for ${J[0]}`,"create a util logging.py that..."]];for(let H=U.length-1;H>0;H--){let V=Math.floor(Math.random()*(H+1));[U[H],U[V]]=[U[V],U[H]]}return U.slice(0,L).map((H)=>`Try "${H}"`)}var d=K((L)=>{return E(L)}),p=K(async()=>{let L=z(),Q=Date.now(),J=L.exampleFilesGeneratedAt??0;if(Q-J>T)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((X)=>{if(X.length)A((U)=>({...U,exampleFiles:X,exampleFilesGeneratedAt:Date.now()}))})});
3
- export{P as Ha,d as Ia,p as Ja};
@@ -1,4 +0,0 @@
1
- import{bsa as Q,csa as V,dsa as W,esa as X,fsa as Y,gsa as Z,rsa as w}from"./cli-1.1.19-hph7gbkv.mjs";import{kta as v}from"./cli-1.1.19-cc266ybe.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
2
- `),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
3
- `)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
4
- export{B as kla,L as lla,_ as mla,S as nla,k as ola,F as pla,D as qla,P as rla,x as sla,y as tla,T as ula,O as vla,R as wla,U as xla,f as yla,N as zla,I as Ala,$ as Bla,A as Cla,p as Dla,C as Ela,h as Fla,E as Gla,b as Hla};
@@ -1,2 +0,0 @@
1
- import{$c as z,ad as K}from"./cli-1.1.19-b7fbqawk.mjs";import{PK as w,RK as J}from"./cli-1.1.19-hqbspnvc.mjs";import{g4 as H}from"./cli-1.1.19-5kaw3aa5.mjs";import{gta as E,kta as G}from"./cli-1.1.19-cc266ybe.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
- export{V as Xc,N as Yc};
@@ -1,2 +0,0 @@
1
- import{kta as V}from"./cli-1.1.19-cc266ybe.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
- export{U0 as zra,E0 as Ara,I0 as Bra,D0 as Cra,b as Dra,T as Era,K as Fra,z as Gra,B as Hra,x as Ira,k as Jra,m as Kra,G as Lra,O as Mra,y as Nra,l as Ora,o as Pra,i as Qra,D as Rra,R as Sra,x0 as Tra,O0 as Ura,M as Vra,p0 as Wra,j6 as Xra,nq as Yra};
@@ -1,2 +0,0 @@
1
- import{Qd as Jq,Ud as Tq}from"./cli-1.1.19-t7yahhjv.mjs";import{Zd as zq,_d as bq}from"./cli-1.1.19-q2b2zy0e.mjs";import{BG as r,CG as Gq,GL as S,JL as Nq,MM as D,PM as Cq,UL as s,VL as _q,ZL as a,aM as l,eM as t,jM as e,ko as n,lM as Rq,lo as yq,oI as h,pI as fq,sM as qq,wM as Fq}from"./cli-1.1.19-hqbspnvc.mjs";import{DZ as Bq,H1 as Oq,a1 as F,c1 as C,tZ as i,uZ as Kq}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as v,e4 as R,f4 as p}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as Lq}from"./cli-1.1.19-5kaw3aa5.mjs";import{B_ as g,C_ as Zq,O$ as o,O_ as $,P$ as Hq,Q_ as Xq,Taa as vq,Wga as m,cha as wq,waa as x}from"./cli-1.1.19-dt84yfk2.mjs";import{ala as B,dla as Yq}from"./cli-1.1.19-cq5hegwz.mjs";import{Cla as u,Hla as Wq,zla as P}from"./cli-1.1.19-eyhpgp73.mjs";import{gta as d,kta as Vq}from"./cli-1.1.19-cc266ybe.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
- export{Iq as Gd,Yz as Hd,Dq as Id};
@@ -1,2 +0,0 @@
1
- import{P8 as v,Q8 as C}from"./cli-1.1.19-m8w4as34.mjs";import{Xfa as x,Yfa as Y,wea as Z,xea as V}from"./cli-1.1.19-dt84yfk2.mjs";import{aia as R,eia as W,mia as O}from"./cli-1.1.19-x6xnsxay.mjs";import{Xja as Q,Yja as M}from"./cli-1.1.19-q5kbe656.mjs";import{Fka as P,Kka as I,ala as f,dla as L}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as w,Hla as H}from"./cli-1.1.19-eyhpgp73.mjs";import{Xra as N,Yra as F}from"./cli-1.1.19-f1vb0eyp.mjs";import{Ksa as U,ssa as X}from"./cli-1.1.19-awkva6qc.mjs";import{hta as h,kta as B}from"./cli-1.1.19-cc266ybe.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
2
- export{u as VW,n as WW,o as XW,t as YW,d as ZW};
@@ -1,2 +0,0 @@
1
- import{Hc as k,Ic as P}from"./cli-1.1.19-pn1pyg9c.mjs";import{Oc as O,Pc as A,Qc as f}from"./cli-1.1.19-126eyddd.mjs";import{$7 as U,Q8 as E,d8 as V,i8 as j}from"./cli-1.1.19-m8w4as34.mjs";import{Dfa as I,Ufa as h,Wga as K,_ea as N,bfa as J,cha as b,ifa as Y,jca as X,kca as H,qca as x,wfa as G}from"./cli-1.1.19-dt84yfk2.mjs";import{Hla as L,zla as F}from"./cli-1.1.19-eyhpgp73.mjs";import{Ooa as W,yra as T}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as y}from"./cli-1.1.19-cc266ybe.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
- export{d as Cc,l as Dc,S as Ec,u as Fc};
@@ -1,6 +0,0 @@
1
- import{Qh as qq,Rh as Jq,Sh as Zq,Th as vq}from"./cli-1.1.19-93bb0mpz.mjs";import{Uh as $q,Vh as Pq}from"./cli-1.1.19-h5psdt4j.mjs";import{Qz as m,Rz as y,Wz as p}from"./cli-1.1.19-hqbspnvc.mjs";import{H1 as Iq,a1 as F,c1 as K}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as Y,e4 as D,f4 as Xq}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as j}from"./cli-1.1.19-5kaw3aa5.mjs";import{M$ as Uq,l$ as w,n$ as f,pda as a,u$ as c,x_ as I,xda as Vq,y_ as e}from"./cli-1.1.19-dt84yfk2.mjs";import{kha as Mq,lha as g,zha as Eq}from"./cli-1.1.19-nb1256fg.mjs";import{gta as T,kta as L}from"./cli-1.1.19-cc266ybe.mjs";function u(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,B=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:B,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var h=L(()=>{p();b=T(j(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),B=q.join(`
2
- `),X=J.join(`
3
- `);O.useEffect(()=>{let V=!1;M(!0);async function N(){let _=B?B.split(`
4
- `):[],v=X?X.split(`
5
- `):[],E=(await Promise.all(v.map((G)=>f(G)))).flat(),P=w(E).filter((G)=>!_.includes(G)).sort((G,C)=>S(G).localeCompare(S(C))),k=w([..._,...P]),Yq=await Promise.all(k.map(async(G)=>{let[C,x,Aq]=await Promise.all([m(G),y(G),c(G)]);return{root:G,name:S(G),branch:Aq,files:C?u(C,x):[],hunks:x}}));if(!V)z(Yq),Z(k),M(!1)}return N().catch(()=>{if(!V)z([]),Z([]),M(!1)}),()=>{V=!0}},[B,X,U]);let W=O.useCallback(()=>H((V)=>V+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=L(()=>{Uq();p();h();O=T(j(),1)});import{basename as n}from"path";function d(q,J,$){if(q===0)return"";return J.join("")+($?Bq:l)}function r(q){return{name:q,dirs:new Map,files:[]}}function Nq(q){let J=r("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=r(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function i(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>n(X.path).localeCompare(n(W.path))),B=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],V=W.name,N=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;V=`${V}/${P.name}`,N=`${N}/${P.name}`,W=P}let _=X===U.length-1&&!B,v=`${Q}\x00${N}`,E=z.has(v);if(A.push({kind:"dir",key:v,label:V,depth:$,collapsed:E,guides:d($,M,_)}),!E){let P=$>=1?[...M,_?Gq:l]:M;i(W,N,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],V=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:d($,M,V)})}}function _q(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${a(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}i(Nq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var l="│ ",Bq="└ ",Gq=" ";var o=L(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return R[Math.abs(J)%R.length]}function t(q){let J=R.length;return R[(q%J+J)%J]}var R;var s=L(()=>{R=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function zq(){let q=$q();return{enabled:q,fileIcon:(J)=>q?Zq(J):"",folderIcon:(J)=>q?J?Jq:qq:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var Qq=L(()=>{e();vq();Pq()});import{basename as Dq}from"path";function Lq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function ZJ(q){return q.flatMap((J)=>J.files)}function $J({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo(zq,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Lq(M,J,$),B=[];for(let X=U;X<H;X++){let W=q[X];B.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return D(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),B,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let _=J?`${z.pointer} `:" ",v=q.collapsed?I.triangleRight:I.triangleDown;return D(K,{dimColor:!J,bold:J,children:[`${_}${v} `,z.repoIcon&&Y(K,{color:t(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let _=q.collapsed?I.triangleRight:I.triangleDown,v=z.folderIcon(!q.collapsed),E=v?`${v} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=g(q.label,P);return D(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:D(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${_} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),B=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,V=Math.max(4,$-U-X.length-(B?2:0)-W-1),N=q.label?g(q.label,V):Mq(Dq(q.file.path),V);return D(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:D(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,B,Q&&!J?Y(K,{color:Q,children:N}):N]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq,JJ=80;var Rq=L(()=>{e();Iq();Eq();s();o();Qq();Xq();Wq=T(j(),1)});
6
- export{wq as Wf,Hq as Xf,zq as Yf,Qq as Zf,hq as _f,s as $f,_q as ag,o as bg,JJ as cg,ZJ as dg,$J as eg,Rq as fg};
@@ -1,2 +0,0 @@
1
- import{kta as y}from"./cli-1.1.19-cc266ybe.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function A(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||x.test(B))return!0;return!1}function k(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(A(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,x,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,x=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function O(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function E(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var N=500,V,J;var S=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(N)});
2
- export{k as X2,P as Y2,M as Z2,C as _2,I as $2,L as a3,E as b3,T as c3,R as d3,b as e3,g as f3,l as g3,S as h3};
@@ -1,2 +0,0 @@
1
- import{Ysa as p,Zsa as a}from"./cli-1.1.19-wrgbrnhw.mjs";import{ita as i}from"./cli-1.1.19-cc266ybe.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
- export{u as F9};
@@ -1,58 +0,0 @@
1
- import{FD as U,GD as p,Hr as F,Kr as m,NR as P,VB as O,WB as I,eS as a,nj as $,qj as h,uK as A}from"./cli-1.1.19-hqbspnvc.mjs";import{K4 as b,L4 as T}from"./cli-1.1.19-m8w4as34.mjs";import{Oka as R,Ska as x}from"./cli-1.1.19-cq5hegwz.mjs";import{Fla as k,Hla as M}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as N,Vla as _}from"./cli-1.1.19-5eb8a4wn.mjs";import{kta as v}from"./cli-1.1.19-cc266ybe.mjs";import{join as E}from"path";function g(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
-
3
- Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
-
5
- The file {{docPath}} has already been read for you. Here are its current contents:
6
- <current_doc_content>
7
- {{docContents}}
8
- </current_doc_content>
9
-
10
- Document title: {{docTitle}}
11
- {{customInstructions}}
12
-
13
- Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
-
15
- CRITICAL RULES FOR EDITING:
16
- - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
- - If there's an italicized line immediately after the header, preserve it exactly as-is
18
- - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
- - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
- - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
- - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
- - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
- - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
-
25
- DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
- - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
- - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
- - Do NOT duplicate information that's already obvious from reading the source code
29
- - Do NOT document every function, parameter, or line number reference
30
- - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
- - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
-
33
- What TO document:
34
- - High-level architecture and system design
35
- - Non-obvious patterns, conventions, or gotchas
36
- - Key entry points and where to start reading code
37
- - Important design decisions and their rationale
38
- - Critical dependencies or integration points
39
- - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
-
41
- What NOT to document:
42
- - Anything obvious from reading the code itself
43
- - Exhaustive lists of files, functions, or parameters
44
- - Step-by-step implementation details
45
- - Low-level code mechanics
46
- - Information already in CLAUDE.md or other project docs
47
-
48
- Use the Edit tool with file_path: {{docPath}}
49
-
50
- REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function D(){let w=R(),z=E(N(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return g()}}function f(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function S(w,z,B,J){let Y=await D(),K=J?`
51
-
52
- DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
- The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
-
55
- "${J}"
56
-
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return f(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var y=v(()=>{_();x()});function Xw(){G.clear()}function r(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(l);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function d(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=F(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await U.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(k(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=r(q);if(!H){G.delete(w.path);return}let L=await S(q,w.path,H.title,H.instructions),C=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let j=W.file_path;if(typeof j==="string"&&j===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of O({agentDefinition:d(),promptMessages:[A({content:L})],toolUseContext:Z,canUseTool:C,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,l,G,Yw;var s=v(()=>{I();h();p();M();m();a();T();y();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,l=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=b(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(P(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
- export{Xw as ji,Zw as ki,s as li};