@claudiolabs/claudin 0.7.2 → 0.7.4

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/LICENSE +23 -200
  2. package/README.md +25 -89
  3. package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
  4. package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
  5. package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
  6. package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
  7. package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
  12. package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
  13. package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
  14. package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
  15. package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
  21. package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
  31. package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
  32. package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
  33. package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
  34. package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
  35. package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
  36. package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
  37. package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
  38. package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
  39. package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
  40. package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
  41. package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
  42. package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
  43. package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
  44. package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
  45. package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
  46. package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
  47. package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
  48. package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
  49. package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
  50. package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
  51. package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
  52. package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
  53. package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
  54. package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
  55. package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
  56. package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
  57. package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
  58. package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
  59. package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
  60. package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
  61. package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
  62. package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
  63. package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
  64. package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
  65. package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
  66. package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
  67. package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
  68. package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
  69. package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
  70. package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
  71. package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
  72. package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
  73. package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
  74. package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
  75. package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
  76. package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
  77. package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
  78. package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
  79. package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
  80. package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
  81. package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
  82. package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
  83. package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
  84. package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
  85. package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
  86. package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
  87. package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
  88. package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
  89. package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
  90. package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
  91. package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
  92. package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
  93. package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
  94. package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
  95. package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
  96. package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
  97. package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
  98. package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
  99. package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
  100. package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
  102. package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
  103. package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
  104. package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
  105. package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
  106. package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
  107. package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
  108. package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
  109. package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
  111. package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
  112. package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
  113. package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
  114. package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
  115. package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
  116. package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
  117. package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
  118. package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
  119. package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
  120. package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
  121. package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
  122. package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
  123. package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
  124. package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
  125. package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
  126. package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
  127. package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
  128. package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
  129. package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
  130. package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
  131. package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
  132. package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
  133. package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
  134. package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
  135. package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
  136. package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
  137. package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
  138. package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
  139. package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
  140. package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
  141. package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
  142. package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
  143. package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
  144. package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
  145. package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
  146. package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
  147. package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
  148. package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
  149. package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
  150. package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
  151. package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
  152. package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
  153. package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
  154. package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
  155. package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
  156. package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
  157. package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
  158. package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
  159. package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
  160. package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
  161. package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
  162. package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
  163. package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
  164. package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
  165. package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
  166. package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
  167. package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
  168. package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
  169. package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
  170. package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
  171. package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
  172. package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
  173. package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
  174. package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
  175. package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
  176. package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
  177. package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
  178. package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
  179. package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
  180. package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
  181. package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
  182. package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
  183. package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
  184. package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
  185. package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
  186. package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
  187. package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
  188. package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
  189. package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
  190. package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
  191. package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
  192. package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
  193. package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
  194. package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
  195. package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
  196. package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
  197. package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
  198. package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
  199. package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
  200. package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
  201. package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
  202. package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
  203. package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
  204. package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
  205. package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
  206. package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
  207. package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
  208. package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
  209. package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
  210. package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
  211. package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
  212. package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
  213. package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
  214. package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
  215. package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
  216. package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
  217. package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
  218. package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
  219. package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
  220. package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
  221. package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
  222. package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
  223. package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
  224. package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
  225. package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
  226. package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
  227. package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
  228. package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
  229. package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
  230. package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
  231. package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
  232. package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
  233. package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
  234. package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
  235. package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
  236. package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
  237. package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
  238. package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
  239. package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
  240. package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
  241. package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
  242. package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
  243. package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
  244. package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
  245. package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
  246. package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
  247. package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
  248. package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
  249. package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
  250. package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
  251. package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
  252. package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
  253. package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
  254. package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
  255. package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
  256. package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
  257. package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
  258. package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
  259. package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
  260. package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
  261. package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
  262. package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
  263. package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
  264. package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
  265. package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
  266. package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
  267. package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
  268. package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
  269. package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
  270. package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
  271. package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
  273. package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
  275. package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
  276. package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
  277. package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
  278. package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
  279. package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
  281. package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
  282. package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
  283. package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
  284. package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
  285. package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
  287. package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
  288. package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
  289. package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
  291. package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
  292. package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
  293. package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
  294. package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
  295. package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
  296. package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
  297. package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
  298. package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
  299. package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
  301. package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
  302. package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
  304. package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
  306. package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
  307. package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
  308. package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
  309. package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
  310. package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
  311. package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
  312. package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
  313. package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
  314. package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
  315. package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
  318. package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
  319. package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
  320. package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
  321. package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
  322. package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
  323. package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
  324. package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
  325. package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
  326. package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
  327. package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
  328. package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
  329. package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
  330. package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
  331. package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
  332. package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
  333. package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
  334. package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
  335. package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
  336. package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
  337. package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
  338. package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
  339. package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
  340. package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
  341. package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
  342. package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
  343. package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
  344. package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
  345. package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
  346. package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
  347. package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
  348. package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
  350. package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
  351. package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
  355. package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
  356. package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
  357. package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
  358. package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
  359. package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
  360. package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
  361. package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
  362. package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
  363. package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
  364. package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
  365. package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
  366. package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
  367. package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
  368. package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
  369. package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
  370. package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
  372. package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
  373. package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
  374. package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
  375. package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
  376. package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
  377. package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
  378. package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
  380. package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
  381. package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
  382. package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
  383. package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
  384. package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
  385. package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
  387. package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
  388. package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
  389. package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
  390. package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
  391. package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
  392. package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
  393. package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
  396. package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
  397. package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
  398. package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
  399. package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
  401. package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
  402. package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
  404. package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
  405. package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
  406. package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
  407. package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
  408. package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
  410. package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
  413. package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
  414. package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
  415. package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
  416. package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
  417. package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
  418. package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
  420. package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
  421. package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
  422. package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
  423. package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
  425. package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
  426. package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
  428. package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
  429. package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
  430. package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
  431. package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
  432. package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
  433. package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
  434. package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
  435. package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
  436. package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
  438. package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
  440. package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
  441. package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
  442. package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
  445. package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
  446. package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
  447. package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
  448. package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
  449. package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
  450. package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
  451. package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
  452. package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
  454. package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
  455. package/dist/claudin-vscode.vsix +0 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +18 -2
  458. package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +0 -1
  459. package/dist/chunks/App-0.7.2-1yazneaj.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +0 -1
  466. package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +0 -7
  467. package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +0 -6
  469. package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +0 -1
  470. package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +0 -1
  474. package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +0 -1
  475. package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +0 -1
  476. package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +0 -1
  484. package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +0 -1
  485. package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +0 -1
  486. package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +0 -1
  487. package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +0 -3
  488. package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +0 -110
  489. package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +0 -1
  490. package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +0 -1
  491. package/dist/chunks/assistant-0.7.2-txvf934b.mjs +0 -1
  492. package/dist/chunks/auth-0.7.2-02q30rsb.mjs +0 -1
  493. package/dist/chunks/auth-0.7.2-x29x49yh.mjs +0 -1
  494. package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +0 -48
  495. package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +0 -1
  496. package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +0 -1
  497. package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +0 -4
  498. package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +0 -2
  499. package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +0 -1
  500. package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +0 -1
  501. package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +0 -88
  502. package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +0 -1
  503. package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +0 -1
  504. package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +0 -3
  505. package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +0 -1
  506. package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +0 -21
  507. package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +0 -4
  508. package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +0 -1
  509. package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +0 -1
  510. package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +0 -1
  511. package/dist/chunks/clear-0.7.2-v59pskrm.mjs +0 -1
  512. package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +0 -1
  513. package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +0 -2
  514. package/dist/chunks/cli-0.7.2-0mj25tns.mjs +0 -2
  515. package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +0 -2
  516. package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +0 -2
  517. package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +0 -2
  518. package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +0 -2
  519. package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +0 -2
  520. package/dist/chunks/cli-0.7.2-21mtjks8.mjs +0 -15
  521. package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +0 -2
  522. package/dist/chunks/cli-0.7.2-26rzbaez.mjs +0 -2
  523. package/dist/chunks/cli-0.7.2-29hh46ve.mjs +0 -3
  524. package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +0 -2
  525. package/dist/chunks/cli-0.7.2-2rj33835.mjs +0 -6
  526. package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +0 -2
  527. package/dist/chunks/cli-0.7.2-358vh55m.mjs +0 -2
  528. package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +0 -2
  529. package/dist/chunks/cli-0.7.2-3frg7csa.mjs +0 -2
  530. package/dist/chunks/cli-0.7.2-3s2zd715.mjs +0 -3
  531. package/dist/chunks/cli-0.7.2-3synxf81.mjs +0 -2
  532. package/dist/chunks/cli-0.7.2-40f37y02.mjs +0 -2
  533. package/dist/chunks/cli-0.7.2-40xymk1q.mjs +0 -2
  534. package/dist/chunks/cli-0.7.2-437jawbh.mjs +0 -2
  535. package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +0 -2
  536. package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +0 -2
  537. package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +0 -2
  538. package/dist/chunks/cli-0.7.2-4g4d682x.mjs +0 -3
  539. package/dist/chunks/cli-0.7.2-520tgkhw.mjs +0 -5438
  540. package/dist/chunks/cli-0.7.2-53qayxqk.mjs +0 -2
  541. package/dist/chunks/cli-0.7.2-5415yrkc.mjs +0 -2
  542. package/dist/chunks/cli-0.7.2-55ye29jy.mjs +0 -2
  543. package/dist/chunks/cli-0.7.2-5750g5et.mjs +0 -2
  544. package/dist/chunks/cli-0.7.2-59wm2srd.mjs +0 -2
  545. package/dist/chunks/cli-0.7.2-5aka4emf.mjs +0 -133
  546. package/dist/chunks/cli-0.7.2-5c89p68w.mjs +0 -2
  547. package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +0 -4
  548. package/dist/chunks/cli-0.7.2-5e72m61f.mjs +0 -25
  549. package/dist/chunks/cli-0.7.2-5ff63f31.mjs +0 -4
  550. package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +0 -2
  551. package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +0 -193
  552. package/dist/chunks/cli-0.7.2-5tacs42k.mjs +0 -2
  553. package/dist/chunks/cli-0.7.2-5y498dyr.mjs +0 -2
  554. package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +0 -15
  555. package/dist/chunks/cli-0.7.2-5yrman6f.mjs +0 -2
  556. package/dist/chunks/cli-0.7.2-60exfzc0.mjs +0 -2
  557. package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +0 -2
  558. package/dist/chunks/cli-0.7.2-68dn8am7.mjs +0 -2
  559. package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +0 -2
  560. package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +0 -12
  561. package/dist/chunks/cli-0.7.2-796x24s1.mjs +0 -2
  562. package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +0 -2
  563. package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +0 -2
  564. package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +0 -2
  565. package/dist/chunks/cli-0.7.2-81s45w7r.mjs +0 -2
  566. package/dist/chunks/cli-0.7.2-828f420c.mjs +0 -7
  567. package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +0 -2
  568. package/dist/chunks/cli-0.7.2-88h70xrj.mjs +0 -50
  569. package/dist/chunks/cli-0.7.2-894093rv.mjs +0 -2
  570. package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +0 -2
  571. package/dist/chunks/cli-0.7.2-8pfcc363.mjs +0 -12
  572. package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +0 -16
  573. package/dist/chunks/cli-0.7.2-9156j3vm.mjs +0 -6
  574. package/dist/chunks/cli-0.7.2-9328ezjz.mjs +0 -3
  575. package/dist/chunks/cli-0.7.2-9953mwyy.mjs +0 -2
  576. package/dist/chunks/cli-0.7.2-99am4r15.mjs +0 -4
  577. package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +0 -4
  578. package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +0 -2
  579. package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +0 -2
  580. package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +0 -2
  581. package/dist/chunks/cli-0.7.2-a6q1amed.mjs +0 -2
  582. package/dist/chunks/cli-0.7.2-a9324x4q.mjs +0 -8
  583. package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +0 -2
  584. package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +0 -2
  585. package/dist/chunks/cli-0.7.2-atsd6734.mjs +0 -2
  586. package/dist/chunks/cli-0.7.2-avk3azcp.mjs +0 -2
  587. package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +0 -2
  588. package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +0 -2
  589. package/dist/chunks/cli-0.7.2-b9pdb0nv.mjs +0 -26
  590. package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +0 -2
  591. package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +0 -21
  592. package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +0 -2
  593. package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +0 -18
  594. package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +0 -4
  595. package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +0 -2
  596. package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +0 -2
  597. package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +0 -2
  598. package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +0 -2
  599. package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +0 -6
  600. package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +0 -2
  601. package/dist/chunks/cli-0.7.2-d5fbych4.mjs +0 -2
  602. package/dist/chunks/cli-0.7.2-dggndd24.mjs +0 -2
  603. package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +0 -2
  604. package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +0 -2
  605. package/dist/chunks/cli-0.7.2-dxm2c139.mjs +0 -24
  606. package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +0 -2
  607. package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +0 -2
  608. package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +0 -2
  609. package/dist/chunks/cli-0.7.2-edf740pd.mjs +0 -5
  610. package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +0 -2
  611. package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +0 -2
  612. package/dist/chunks/cli-0.7.2-f4nt233k.mjs +0 -3
  613. package/dist/chunks/cli-0.7.2-fcadqwem.mjs +0 -1
  614. package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +0 -2
  615. package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +0 -12
  616. package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +0 -2
  617. package/dist/chunks/cli-0.7.2-gar34ch2.mjs +0 -4
  618. package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +0 -2
  619. package/dist/chunks/cli-0.7.2-gssxkynf.mjs +0 -2
  620. package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +0 -2
  621. package/dist/chunks/cli-0.7.2-gysw8esj.mjs +0 -2
  622. package/dist/chunks/cli-0.7.2-h248q4gt.mjs +0 -2
  623. package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +0 -2
  624. package/dist/chunks/cli-0.7.2-h7m849rt.mjs +0 -2
  625. package/dist/chunks/cli-0.7.2-h903zfjz.mjs +0 -2
  626. package/dist/chunks/cli-0.7.2-hbmczrch.mjs +0 -9
  627. package/dist/chunks/cli-0.7.2-he1hdn59.mjs +0 -18
  628. package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +0 -2
  629. package/dist/chunks/cli-0.7.2-hv1z3had.mjs +0 -3
  630. package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +0 -2
  631. package/dist/chunks/cli-0.7.2-j029dkan.mjs +0 -3
  632. package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +0 -2
  633. package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +0 -2
  634. package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +0 -2
  635. package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +0 -2
  636. package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +0 -2
  637. package/dist/chunks/cli-0.7.2-jn2497vh.mjs +0 -2
  638. package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +0 -2
  639. package/dist/chunks/cli-0.7.2-k40k933y.mjs +0 -24
  640. package/dist/chunks/cli-0.7.2-k6jnr159.mjs +0 -2
  641. package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +0 -2
  642. package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +0 -2
  643. package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +0 -2
  644. package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +0 -12
  645. package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +0 -2
  646. package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +0 -15
  647. package/dist/chunks/cli-0.7.2-mqv265gk.mjs +0 -42
  648. package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +0 -3
  649. package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +0 -2
  650. package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +0 -2
  651. package/dist/chunks/cli-0.7.2-ndt224p1.mjs +0 -2
  652. package/dist/chunks/cli-0.7.2-nf346apq.mjs +0 -18
  653. package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +0 -2
  654. package/dist/chunks/cli-0.7.2-nkafymh4.mjs +0 -3
  655. package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +0 -45
  656. package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +0 -3
  657. package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +0 -67
  658. package/dist/chunks/cli-0.7.2-pjavf176.mjs +0 -2
  659. package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +0 -4
  660. package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +0 -2
  661. package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +0 -2
  662. package/dist/chunks/cli-0.7.2-q85af7gm.mjs +0 -2
  663. package/dist/chunks/cli-0.7.2-q88h44qv.mjs +0 -17
  664. package/dist/chunks/cli-0.7.2-q9twb2tn.mjs +0 -2
  665. package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +0 -2
  666. package/dist/chunks/cli-0.7.2-qf8435qy.mjs +0 -2
  667. package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +0 -5
  668. package/dist/chunks/cli-0.7.2-qr706n52.mjs +0 -10
  669. package/dist/chunks/cli-0.7.2-qsx52bst.mjs +0 -2
  670. package/dist/chunks/cli-0.7.2-r1502pen.mjs +0 -2
  671. package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +0 -5
  672. package/dist/chunks/cli-0.7.2-r7x165sf.mjs +0 -17
  673. package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +0 -2
  674. package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +0 -2
  675. package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +0 -2
  676. package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +0 -133
  677. package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +0 -2
  678. package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +0 -2
  679. package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +0 -2
  680. package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +0 -2
  681. package/dist/chunks/cli-0.7.2-tds456xt.mjs +0 -34
  682. package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +0 -4
  683. package/dist/chunks/cli-0.7.2-twx01hwg.mjs +0 -2
  684. package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +0 -3
  685. package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +0 -2
  686. package/dist/chunks/cli-0.7.2-tz5zv753.mjs +0 -6
  687. package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +0 -3
  688. package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +0 -2
  689. package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +0 -4
  690. package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +0 -2
  691. package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +0 -2
  692. package/dist/chunks/cli-0.7.2-vx10940a.mjs +0 -2
  693. package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +0 -2
  694. package/dist/chunks/cli-0.7.2-w07ksegr.mjs +0 -2
  695. package/dist/chunks/cli-0.7.2-waas8a1p.mjs +0 -2
  696. package/dist/chunks/cli-0.7.2-wahbzckp.mjs +0 -58
  697. package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +0 -2
  698. package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +0 -2
  699. package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +0 -2
  700. package/dist/chunks/cli-0.7.2-xced0m7v.mjs +0 -2
  701. package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +0 -2
  702. package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +0 -39
  703. package/dist/chunks/cli-0.7.2-xpw13d73.mjs +0 -59
  704. package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +0 -2
  705. package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +0 -2
  706. package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +0 -2
  707. package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +0 -20
  708. package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +0 -4
  709. package/dist/chunks/cli-0.7.2-ygx94a70.mjs +0 -2
  710. package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +0 -2
  711. package/dist/chunks/cli-0.7.2-yppcb6em.mjs +0 -2
  712. package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +0 -2
  713. package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +0 -2
  714. package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +0 -3
  715. package/dist/chunks/cli-0.7.2-zva1j44t.mjs +0 -2
  716. package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +0 -2
  717. package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +0 -1
  718. package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +0 -1
  719. package/dist/chunks/compact-0.7.2-1htfptdq.mjs +0 -3
  720. package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +0 -1
  721. package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +0 -1
  722. package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +0 -1
  723. package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +0 -1
  724. package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +0 -1
  725. package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +0 -1
  726. package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +0 -1
  727. package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +0 -9
  728. package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +0 -1
  729. package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +0 -1
  730. package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +0 -1
  731. package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +0 -1
  732. package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +0 -1446
  733. package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +0 -1
  734. package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +0 -1
  735. package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +0 -1
  736. package/dist/chunks/diff-0.7.2-7np6da8n.mjs +0 -1
  737. package/dist/chunks/doctor-0.7.2-spqx634t.mjs +0 -1
  738. package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +0 -1
  739. package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +0 -1
  740. package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +0 -10
  741. package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +0 -1
  742. package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +0 -1
  743. package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +0 -1
  744. package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +0 -1
  745. package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +0 -1
  746. package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +0 -1
  747. package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +0 -1
  748. package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +0 -1
  749. package/dist/chunks/export-0.7.2-j6tnta5r.mjs +0 -2
  750. package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +0 -1
  752. package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +0 -1
  753. package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +0 -1
  755. package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +0 -1
  757. package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +0 -4
  758. package/dist/chunks/grove-0.7.2-9sxczf29.mjs +0 -1
  759. package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +0 -1
  760. package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +0 -2
  761. package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +0 -6
  762. package/dist/chunks/help-0.7.2-mkkkzv97.mjs +0 -1
  763. package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +0 -3
  764. package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +0 -1
  765. package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +0 -79
  766. package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +0 -1
  769. package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +0 -1
  770. package/dist/chunks/index-0.7.2-5mfmhd35.mjs +0 -1
  771. package/dist/chunks/index-0.7.2-62g62r4p.mjs +0 -1
  772. package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +0 -9
  773. package/dist/chunks/index-0.7.2-87jrdmn3.mjs +0 -2
  774. package/dist/chunks/index-0.7.2-9h4tsef1.mjs +0 -1
  775. package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +0 -1
  776. package/dist/chunks/index-0.7.2-a3w6at2z.mjs +0 -1
  777. package/dist/chunks/index-0.7.2-b296et1z.mjs +0 -1
  778. package/dist/chunks/index-0.7.2-c22bn4q9.mjs +0 -1
  779. package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +0 -9
  780. package/dist/chunks/index-0.7.2-f8swc4mv.mjs +0 -30
  781. package/dist/chunks/index-0.7.2-fdsptfbt.mjs +0 -17
  782. package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +0 -1
  783. package/dist/chunks/index-0.7.2-hjcptpaz.mjs +0 -1
  784. package/dist/chunks/index-0.7.2-hts44hhf.mjs +0 -2
  785. package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +0 -1
  786. package/dist/chunks/index-0.7.2-nhtpksxs.mjs +0 -5
  787. package/dist/chunks/index-0.7.2-p5a52s17.mjs +0 -1
  788. package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +0 -1
  789. package/dist/chunks/index-0.7.2-vfyvycvc.mjs +0 -1
  790. package/dist/chunks/index-0.7.2-vw5e1spt.mjs +0 -1
  791. package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +0 -1
  792. package/dist/chunks/init-0.7.2-mdhax55g.mjs +0 -1
  793. package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +0 -1
  794. package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +0 -1
  795. package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +0 -870
  796. package/dist/chunks/install-0.7.2-f33pbxz0.mjs +0 -1
  797. package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +0 -149
  798. package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +0 -1
  799. package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +0 -1
  801. package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +0 -2
  802. package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +0 -1
  807. package/dist/chunks/log-0.7.2-n28x7jf3.mjs +0 -1
  808. package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +0 -1
  809. package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +0 -1
  810. package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +0 -1
  811. package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +0 -17
  812. package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +0 -4
  813. package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +0 -1
  814. package/dist/chunks/memory-0.7.2-1hfh6410.mjs +0 -3
  815. package/dist/chunks/model-0.7.2-c8esc658.mjs +0 -1
  816. package/dist/chunks/model-0.7.2-sjw6chpt.mjs +0 -2
  817. package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +0 -12
  818. package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +0 -1
  819. package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +0 -14
  820. package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +0 -1
  821. package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +0 -1
  823. package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +0 -1
  824. package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +0 -1
  825. package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +0 -3
  826. package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +0 -1
  827. package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +0 -1
  828. package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +0 -1
  829. package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +0 -1
  831. package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +0 -9
  832. package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +0 -2
  833. package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +0 -57
  834. package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +0 -1
  835. package/dist/chunks/process-0.7.2-bydxzc10.mjs +0 -1
  836. package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +0 -9
  838. package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +0 -1
  839. package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +0 -1
  840. package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +0 -1
  841. package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +0 -13
  842. package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +0 -2
  843. package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +0 -1
  844. package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +0 -34
  847. package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +0 -1
  848. package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +0 -5
  849. package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +0 -2
  850. package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +0 -1
  852. package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +0 -1
  853. package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +0 -1
  855. package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +0 -1
  856. package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +0 -2
  857. package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +0 -1
  858. package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +0 -1
  859. package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +0 -1
  861. package/dist/chunks/session-0.7.2-c8me3g3x.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +0 -1
  864. package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +0 -1
  865. package/dist/chunks/settings-0.7.2-xc200363.mjs +0 -1
  866. package/dist/chunks/setup-0.7.2-c982wyvz.mjs +0 -5
  867. package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +0 -1
  868. package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +0 -1
  869. package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +0 -1
  871. package/dist/chunks/state-0.7.2-p9tevca2.mjs +0 -1
  872. package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +0 -6
  873. package/dist/chunks/status-0.7.2-fh89jm1g.mjs +0 -1
  874. package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +0 -1
  876. package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +0 -1
  877. package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +0 -1
  879. package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +0 -1
  880. package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +0 -1
  881. package/dist/chunks/theme-0.7.2-1zmsca02.mjs +0 -1
  882. package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +0 -1
  883. package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +0 -1
  884. package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +0 -1
  885. package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +0 -1
  886. package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +0 -1
  887. package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +0 -69
  889. package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +0 -4
  891. package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +0 -86
  892. package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +0 -1
  893. package/dist/chunks/upload-0.7.2-p6je053d.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +0 -1
  896. package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +0 -1
  897. package/dist/chunks/util-0.7.2-n4vdasdr.mjs +0 -1
  898. package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +0 -1
  899. package/dist/chunks/vim-0.7.2-bd15xeza.mjs +0 -1
  900. package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +0 -1
  901. package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +0 -132
  902. package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +0 -1
  904. package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +0 -7
  905. /package/dist/chunks/{cli-0.7.2-1xbehmgb.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
@@ -0,0 +1,12 @@
1
+ import{K7 as D}from"./cli-0.7.4-k735e5sg.mjs";import{Iia as W,Lia as a,uia as L,yia as JG}from"./cli-0.7.4-hegk157e.mjs";import{Dja as GG,sja as c,tja as jG}from"./cli-0.7.4-h0ze5j97.mjs";import{Dpa as U,Epa as g}from"./cli-0.7.4-jg5ajbyb.mjs";import{_pa as H,qqa as RG}from"./cli-0.7.4-8xxafyv0.mjs";import{uqa as wG}from"./cli-0.7.4-wmw8fpv7.mjs";import{Lqa as WG,Pqa as j,Qqa as e}from"./cli-0.7.4-58p1wenr.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
+ \r
4
+ `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
+ `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
+ `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
+ `;let $=n(K);K.write(`${w}\r
8
+ `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
+ `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
+ `;let V=n(Y);Y.write(`${$}\r
11
+ `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.7.4-p8ts8cvg.mjs"),import("./index-0.7.4-z3z8qmah.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
+ export{hG as n7,p as o7,F as p7,gG as q7,aG as r7,pG as s7,KG as t7,MJ as u7,HJ as v7,OG as w7,I as x7,h as y7,qJ as z7,jJ as A7,UJ as B7,_J as C7,FJ as D7,NJ as E7,TJ as F7,vG as G7};
@@ -0,0 +1,34 @@
1
+ import{SZ as X,YZ as JT,ZZ as ST,z0 as IT}from"./cli-0.7.4-2apswqf5.mjs";import{I7 as K,J7 as VT}from"./cli-0.7.4-9r1s7xtv.mjs";import{Bda as D,Gca as f,Ica as YT,Q$ as Q,S$ as UT,Zea as H,c$ as s,dda as z,e9 as Y,e_ as BT,f_ as _T,ffa as n,g9 as o,gda as V,j$ as XT,mda as l,nda as d,o$ as FT,r$ as qT,s$ as OT}from"./cli-0.7.4-hvnzwb5v.mjs";import{Rga as E,Sga as QT}from"./cli-0.7.4-r1ebyx3p.mjs";import{lia as GT,mia as $T,qia as zT,uia as P,yia as KT}from"./cli-0.7.4-hegk157e.mjs";import{lja as u,nja as LT}from"./cli-0.7.4-g9w5x5ns.mjs";import{Dpa as r,Epa as ZT}from"./cli-0.7.4-jg5ajbyb.mjs";import{Pqa as I}from"./cli-0.7.4-58p1wenr.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{QT();XT();KT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();o();n()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
2
+
3
+ No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
4
+ `;else if(B==="windows")J=` • Windows: Windows Terminal
5
+ `;let F=`Terminal setup cannot be run from ${$}.
6
+
7
+ This command configures a convenient Shift+Enter shortcut for multi-line prompts.
8
+ ${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
9
+
10
+ To set up the shortcut (optional):
11
+ 1. Exit tmux/screen temporarily
12
+ 2. Run /terminal-setup directly in one of these terminals:
13
+ ${J} • IDE: VSCode, Cursor, Windsurf, Zed
14
+ • Other: Alacritty
15
+ 3. Return to tmux/screen - settings will persist
16
+
17
+ ${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
18
+ {
19
+ "key": "shift+enter",
20
+ "command": "workbench.action.terminal.sendSequence",
21
+ "args": { "text": "\\u001b\\r" },
22
+ "when": "terminalFocus"
23
+ }
24
+ ]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
25
+ `))F+=`
26
+ `;return F+=`
27
+ [[keyboard.bindings]]
28
+ key = "Return"
29
+ mods = "Shift"
30
+ chars = "\\u001B\\r"
31
+ `,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
32
+ `,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
33
+ `,j;var bT=I(()=>{VT();ST();IT();h();TT();D();UT();LT();o();OT();n();_T();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
34
+ export{a as VX,h as WX,e as XX,TT as YX,Ww as ZX,uT as _X,ET as $X,Lw as aY,zw as bY,Vw as cY,_w as dY,bT as eY};
@@ -0,0 +1,2 @@
1
+ import{Pqa as M}from"./cli-0.7.4-58p1wenr.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
+ export{W as vha,Q as wha,K as xha,X as yha,Y as zha,Z as Aha,y as Bha,G as Cha,h as Dha,w as Eha};
@@ -0,0 +1,2 @@
1
+ import{Oqa as Q,Pqa as U}from"./cli-0.7.4-58p1wenr.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
+ export{K as wqa,w as xqa,L as yqa};
@@ -0,0 +1,2 @@
1
+ function t(s){if(s===null||typeof s!=="object")return s;let e=s;if("requestId"in e&&!("request_id"in e))e.request_id=e.requestId,delete e.requestId;if("response"in e&&e.response!==null&&typeof e.response==="object"){let n=e.response;if("requestId"in n&&!("request_id"in n))n.request_id=n.requestId,delete n.requestId}return s}
2
+ export{t as Rb};
@@ -0,0 +1,17 @@
1
+ import{Nqa as y,Qqa as b}from"./cli-0.7.4-58p1wenr.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-0.7.4-0atnj624.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 Eqa,h1 as Fqa,D0 as Gqa,C$ as Hqa,F0 as Iqa,ST as Jqa,C0 as Kqa};
@@ -0,0 +1,2 @@
1
+ import{Iia as Q,Lia as $}from"./cli-0.7.4-hegk157e.mjs";import{ija as K,nja as Z}from"./cli-0.7.4-g9w5x5ns.mjs";import{Dja as Y,qja as J}from"./cli-0.7.4-h0ze5j97.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
+ export{T as U,w as V,y as W};
@@ -0,0 +1,2 @@
1
+ import{KW as M,MW as X}from"./cli-0.7.4-kmxpdkne.mjs";import{C$ as V,aca as K,gca as L,pca as W,t$ as B}from"./cli-0.7.4-hvnzwb5v.mjs";import{Pqa as Q}from"./cli-0.7.4-58p1wenr.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
+ export{F as cc,Y as dc};
@@ -0,0 +1,2 @@
1
+ import{Vh as v,Wh as i}from"./cli-0.7.4-djbdmzgq.mjs";import{Xh as E,Yh as t}from"./cli-0.7.4-zzze6t7f.mjs";import{jX as b,kX as s}from"./cli-0.7.4-wtz9ed9r.mjs";import{UZ as L,WZ as X,z0 as m}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as $,H2 as F}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as d}from"./cli-0.7.4-85txq06q.mjs";import{P8 as C,Q8 as n}from"./cli-0.7.4-hvnzwb5v.mjs";import{Cfa as o,kfa as O,lfa as l,mfa as P,nfa as k}from"./cli-0.7.4-rskynrc5.mjs";import{Lqa as g,Pqa as a}from"./cli-0.7.4-58p1wenr.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
2
+ export{Zq as Qh,Mq as Rh,$q as Sh};
@@ -0,0 +1,2 @@
1
+ import{M2 as K,O2 as Z}from"./cli-0.7.4-wb89zsbs.mjs";import{P2 as J,R2 as Y}from"./cli-0.7.4-tsf2s2bg.mjs";import{$3 as W,O6 as D,T6 as F,U6 as G,W3 as B,m7 as X}from"./cli-0.7.4-2haqz80h.mjs";import{Dha as y,Eha as Q}from"./cli-0.7.4-nbnqrjgm.mjs";import{_pa as z,qqa as V}from"./cli-0.7.4-8xxafyv0.mjs";import{Pqa as N}from"./cli-0.7.4-58p1wenr.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
+ export{P as Ki,_ as Li};
@@ -0,0 +1,2 @@
1
+ import{Zea as U,ffa as m,l_ as F,p_ as f,r9 as K,s9 as E}from"./cli-0.7.4-hvnzwb5v.mjs";import{Rga as v,Sga as x}from"./cli-0.7.4-r1ebyx3p.mjs";import{uia as D,yia as g}from"./cli-0.7.4-hegk157e.mjs";import{Pqa as S}from"./cli-0.7.4-58p1wenr.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
2
+ export{P as Mh,o as Nh,h as Oh,C as Ph};
@@ -0,0 +1,2 @@
1
+ import{Ka as S}from"./cli-0.7.4-zdkph0g9.mjs";import{Ma as c}from"./cli-0.7.4-yvdbdncp.mjs";import{jc as I,kc as v,lc as $,mc as Wq}from"./cli-0.7.4-tme1sywb.mjs";import{Cd as P,Gd as Vq}from"./cli-0.7.4-qcqz94w2.mjs";import{Cv as A,Dv as _,Fv as Gq,Ht as N,It as e,JE as M,KE as Jq,ML as f,PL as Tq,Vo as C,Xo as r,nu as L,ou as qq,su as h,uK as E,uu as Bq,vK as Qq}from"./cli-0.7.4-1tkzz9x6.mjs";import{I2 as s}from"./cli-0.7.4-85txq06q.mjs";import{J_ as w,L_ as t,Zea as F,a9 as D,c9 as n,ffa as a}from"./cli-0.7.4-hvnzwb5v.mjs";import{Fha as x,Iha as d}from"./cli-0.7.4-d9y5wx3y.mjs";import{Iia as j,Lia as o}from"./cli-0.7.4-hegk157e.mjs";import{fja as y,nja as l}from"./cli-0.7.4-g9w5x5ns.mjs";import{Lqa as p}from"./cli-0.7.4-58p1wenr.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
+ export{Lq as Ja};