@claudiolabs/claudin 1.0.4 → 1.0.6

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 (904) hide show
  1. package/dist/chunks/AgentTool-1.0.6-y5ddd6rm.mjs +1 -0
  2. package/dist/chunks/App-1.0.6-z0cfvsx2.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.6-bp76pand.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.6-kb0x64qd.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.6-jcaqgq16.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.6-0q6kspv2.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.6-jk4g19kb.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.6-s65h1n7v.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.6-6751p16k.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.6-cc0tqw44.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.6-eebwjw79.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.6-tyg11yr0.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.6-qgb1csqa.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.6-jgmn19nt.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.6-wxwzxegj.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.6-zpt6cx2n.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.6-4008ytyb.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.6-c76hkbn2.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.6-hg7cv046.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.6-2t7j6b2h.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.6-mtnwwa4g.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.6-6k63h37y.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.6-nwebb6gp.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.6-fkq6szhk.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.6-c6m3x448.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.6-44972q2z.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.6-g641zp1y.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.6-ae177xqc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.6-eyaavpv6.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.6-qbt1z3ca.mjs +1 -0
  31. package/dist/chunks/agents-1.0.6-sz53kang.mjs +3 -0
  32. package/dist/chunks/agents-1.0.6-takpvk31.mjs +110 -0
  33. package/dist/chunks/api-1.0.6-00s3w079.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.6-rh0sh1w1.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.6-7mq19whz.mjs +1 -0
  36. package/dist/chunks/auth-1.0.6-a3z8ybme.mjs +1 -0
  37. package/dist/chunks/auth-1.0.6-bzqx8ws6.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.6-m7pgefxn.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.6-yrfw3qnm.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.6-n12f3xrc.mjs +1 -0
  41. package/dist/chunks/branch-1.0.6-ezwk5k5a.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.6-b8v3yt2n.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.6-nj1zx2fk.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.6-qm5685ej.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.6-8sw3n3ad.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.6-2smhh25w.mjs +1 -0
  47. package/dist/chunks/btw-1.0.6-cyy1eqy9.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.6-jye799sc.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.6-x530c1sq.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.6-j9g3r3t3.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.6-wn9n7a2f.mjs +4 -0
  52. package/dist/chunks/caches-1.0.6-jb6nfzzy.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.6-nbedzb68.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.6-k0ksrf4g.mjs +1 -0
  55. package/dist/chunks/clear-1.0.6-mwca7g57.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.6-yxdbxzxq.mjs +1 -0
  57. package/dist/chunks/cli-1.0.6-0g5ayqzn.mjs +2 -0
  58. package/dist/chunks/cli-1.0.6-0htc91yb.mjs +2 -0
  59. package/dist/chunks/cli-1.0.6-0n0gtcr0.mjs +2 -0
  60. package/dist/chunks/cli-1.0.6-0ndt02kt.mjs +2 -0
  61. package/dist/chunks/cli-1.0.6-0rh0a1m1.mjs +3 -0
  62. package/dist/chunks/cli-1.0.6-0v6s0baw.mjs +2 -0
  63. package/dist/chunks/cli-1.0.6-0z6jg1dt.mjs +2 -0
  64. package/dist/chunks/cli-1.0.6-0zy5g0r0.mjs +3 -0
  65. package/dist/chunks/cli-1.0.6-1a002r86.mjs +16 -0
  66. package/dist/chunks/cli-1.0.6-1eet2296.mjs +2 -0
  67. package/dist/chunks/cli-1.0.6-1mxskrvk.mjs +2 -0
  68. package/dist/chunks/cli-1.0.6-1pmvs0sa.mjs +2 -0
  69. package/dist/chunks/cli-1.0.6-2216bkc9.mjs +18 -0
  70. package/dist/chunks/cli-1.0.6-256zr6e0.mjs +2 -0
  71. package/dist/chunks/cli-1.0.6-2kk9k86d.mjs +2 -0
  72. package/dist/chunks/cli-1.0.6-2ktan1c1.mjs +6 -0
  73. package/dist/chunks/cli-1.0.6-2q17d8ej.mjs +2 -0
  74. package/dist/chunks/cli-1.0.6-2taykcm3.mjs +2 -0
  75. package/dist/chunks/cli-1.0.6-2y4xs66t.mjs +2 -0
  76. package/dist/chunks/cli-1.0.6-34y44ns8.mjs +2 -0
  77. package/dist/chunks/cli-1.0.6-36s91tek.mjs +2 -0
  78. package/dist/chunks/cli-1.0.6-39ebgej3.mjs +9 -0
  79. package/dist/chunks/cli-1.0.6-3fqch3zx.mjs +2 -0
  80. package/dist/chunks/cli-1.0.6-3jkvpjb7.mjs +2 -0
  81. package/dist/chunks/cli-1.0.6-3rnmt44c.mjs +199 -0
  82. package/dist/chunks/cli-1.0.6-429sbhhn.mjs +2 -0
  83. package/dist/chunks/cli-1.0.6-43ajeraf.mjs +2 -0
  84. package/dist/chunks/cli-1.0.6-4jw1053r.mjs +2 -0
  85. package/dist/chunks/cli-1.0.6-4kafzdd3.mjs +2 -0
  86. package/dist/chunks/cli-1.0.6-4m8qf7d9.mjs +2 -0
  87. package/dist/chunks/cli-1.0.6-4pez6ae9.mjs +2 -0
  88. package/dist/chunks/cli-1.0.6-4pmn22p0.mjs +12 -0
  89. package/dist/chunks/cli-1.0.6-4r68vt91.mjs +4 -0
  90. package/dist/chunks/cli-1.0.6-4shdcvhj.mjs +2 -0
  91. package/dist/chunks/cli-1.0.6-4w9smp0a.mjs +4 -0
  92. package/dist/chunks/cli-1.0.6-52vkzgxe.mjs +2 -0
  93. package/dist/chunks/cli-1.0.6-53rqxxkh.mjs +2 -0
  94. package/dist/chunks/cli-1.0.6-55csqcct.mjs +2 -0
  95. package/dist/chunks/cli-1.0.6-5esxakc4.mjs +2 -0
  96. package/dist/chunks/cli-1.0.6-5fd5qjm7.mjs +2 -0
  97. package/dist/chunks/cli-1.0.6-5kmwcmd1.mjs +25 -0
  98. package/dist/chunks/cli-1.0.6-5qyfr732.mjs +17 -0
  99. package/dist/chunks/cli-1.0.6-5tx13t22.mjs +2 -0
  100. package/dist/chunks/cli-1.0.6-61qpjst5.mjs +2 -0
  101. package/dist/chunks/cli-1.0.6-620sz5j0.mjs +2 -0
  102. package/dist/chunks/cli-1.0.6-6a9gyk3y.mjs +12 -0
  103. package/dist/chunks/cli-1.0.6-6g4hkpj7.mjs +4 -0
  104. package/dist/chunks/cli-1.0.6-6h5a9gax.mjs +2 -0
  105. package/dist/chunks/cli-1.0.6-6hs6qqxv.mjs +2 -0
  106. package/dist/chunks/cli-1.0.6-6x2aqc5w.mjs +3 -0
  107. package/dist/chunks/cli-1.0.6-6zh1kz2j.mjs +2 -0
  108. package/dist/chunks/cli-1.0.6-6zqt7f43.mjs +59 -0
  109. package/dist/chunks/cli-1.0.6-74km5nc4.mjs +2 -0
  110. package/dist/chunks/cli-1.0.6-77j29wff.mjs +2 -0
  111. package/dist/chunks/cli-1.0.6-78gtt741.mjs +2 -0
  112. package/dist/chunks/cli-1.0.6-7dcdpthr.mjs +2 -0
  113. package/dist/chunks/cli-1.0.6-7ebqg37b.mjs +2 -0
  114. package/dist/chunks/cli-1.0.6-7qta6sp0.mjs +12 -0
  115. package/dist/chunks/cli-1.0.6-7rxsh83h.mjs +2 -0
  116. package/dist/chunks/cli-1.0.6-7sc6kks8.mjs +2 -0
  117. package/dist/chunks/cli-1.0.6-7wtv8nwt.mjs +2 -0
  118. package/dist/chunks/cli-1.0.6-80ts2fsy.mjs +2 -0
  119. package/dist/chunks/cli-1.0.6-831s2dg1.mjs +2 -0
  120. package/dist/chunks/cli-1.0.6-85rq113c.mjs +2 -0
  121. package/dist/chunks/cli-1.0.6-86chdw6e.mjs +2 -0
  122. package/dist/chunks/cli-1.0.6-8k0axbmg.mjs +3 -0
  123. package/dist/chunks/cli-1.0.6-8kamwh44.mjs +15 -0
  124. package/dist/chunks/cli-1.0.6-8svdc6qx.mjs +2 -0
  125. package/dist/chunks/cli-1.0.6-8tj1qeak.mjs +2 -0
  126. package/dist/chunks/cli-1.0.6-8v7ggr2e.mjs +6 -0
  127. package/dist/chunks/cli-1.0.6-8xtkd26m.mjs +2 -0
  128. package/dist/chunks/cli-1.0.6-8zcjrs1k.mjs +2 -0
  129. package/dist/chunks/cli-1.0.6-93qsrgeq.mjs +2 -0
  130. package/dist/chunks/cli-1.0.6-967pphy3.mjs +3 -0
  131. package/dist/chunks/cli-1.0.6-9be2xem8.mjs +4 -0
  132. package/dist/chunks/cli-1.0.6-9m9h23m8.mjs +2 -0
  133. package/dist/chunks/cli-1.0.6-9p90g9dg.mjs +7 -0
  134. package/dist/chunks/cli-1.0.6-9pj529zy.mjs +2 -0
  135. package/dist/chunks/cli-1.0.6-a9n4dj4c.mjs +2 -0
  136. package/dist/chunks/cli-1.0.6-a9z7f8hm.mjs +2 -0
  137. package/dist/chunks/cli-1.0.6-aasgkcf0.mjs +3 -0
  138. package/dist/chunks/cli-1.0.6-anxd75mm.mjs +2 -0
  139. package/dist/chunks/cli-1.0.6-apvttvwc.mjs +3 -0
  140. package/dist/chunks/cli-1.0.6-bghnbyek.mjs +2 -0
  141. package/dist/chunks/cli-1.0.6-bjz810zw.mjs +2 -0
  142. package/dist/chunks/cli-1.0.6-c3q3ytrc.mjs +2 -0
  143. package/dist/chunks/cli-1.0.6-cbv9sb7j.mjs +4 -0
  144. package/dist/chunks/cli-1.0.6-chfda1vf.mjs +2 -0
  145. package/dist/chunks/cli-1.0.6-ckyrvbe3.mjs +2 -0
  146. package/dist/chunks/cli-1.0.6-ct081pz5.mjs +2 -0
  147. package/dist/chunks/cli-1.0.6-d3y2kbdq.mjs +2 -0
  148. package/dist/chunks/cli-1.0.6-d4d0xfxp.mjs +5 -0
  149. package/dist/chunks/cli-1.0.6-d8gyb25m.mjs +15 -0
  150. package/dist/chunks/cli-1.0.6-d9ryhkjn.mjs +2 -0
  151. package/dist/chunks/cli-1.0.6-dk4qdtxs.mjs +2 -0
  152. package/dist/chunks/cli-1.0.6-e3cstemm.mjs +67 -0
  153. package/dist/chunks/cli-1.0.6-f4f6x83j.mjs +24 -0
  154. package/dist/chunks/cli-1.0.6-f80wk918.mjs +2 -0
  155. package/dist/chunks/cli-1.0.6-f82p2yzk.mjs +39 -0
  156. package/dist/chunks/cli-1.0.6-fggt191f.mjs +2 -0
  157. package/dist/chunks/cli-1.0.6-fj626dhh.mjs +2 -0
  158. package/dist/chunks/cli-1.0.6-g4v1k4vj.mjs +2 -0
  159. package/dist/chunks/cli-1.0.6-g9s2ts6j.mjs +2 -0
  160. package/dist/chunks/cli-1.0.6-gjtt9hjc.mjs +5471 -0
  161. package/dist/chunks/cli-1.0.6-hcq3hbzz.mjs +3 -0
  162. package/dist/chunks/cli-1.0.6-hjqc9sb8.mjs +2 -0
  163. package/dist/chunks/cli-1.0.6-hkaszwz8.mjs +2 -0
  164. package/dist/chunks/cli-1.0.6-hn9p22wz.mjs +2 -0
  165. package/dist/chunks/cli-1.0.6-hv2dry5y.mjs +2 -0
  166. package/dist/chunks/cli-1.0.6-j12sf764.mjs +2 -0
  167. package/dist/chunks/cli-1.0.6-j3b1c7v8.mjs +2 -0
  168. package/dist/chunks/cli-1.0.6-j5xkwr5w.mjs +17 -0
  169. package/dist/chunks/cli-1.0.6-j6sxw4gg.mjs +2 -0
  170. package/dist/chunks/cli-1.0.6-jfnnwqdv.mjs +4 -0
  171. package/dist/chunks/cli-1.0.6-jqa1byr3.mjs +2 -0
  172. package/dist/chunks/cli-1.0.6-jrrb4qbg.mjs +2 -0
  173. package/dist/chunks/cli-1.0.6-jwysg2r7.mjs +2 -0
  174. package/dist/chunks/cli-1.0.6-jyqjk8ym.mjs +2 -0
  175. package/dist/chunks/cli-1.0.6-kajb476n.mjs +2 -0
  176. package/dist/chunks/cli-1.0.6-kgver18c.mjs +2 -0
  177. package/dist/chunks/cli-1.0.6-khth3f6c.mjs +1 -0
  178. package/dist/chunks/cli-1.0.6-kx801kag.mjs +4 -0
  179. package/dist/chunks/cli-1.0.6-m747en7y.mjs +50 -0
  180. package/dist/chunks/cli-1.0.6-m96da95q.mjs +2 -0
  181. package/dist/chunks/cli-1.0.6-mapf4yym.mjs +2 -0
  182. package/dist/chunks/cli-1.0.6-mgb1vzp0.mjs +6 -0
  183. package/dist/chunks/cli-1.0.6-mgk6361j.mjs +4 -0
  184. package/dist/chunks/cli-1.0.6-mt3y4qmj.mjs +18 -0
  185. package/dist/chunks/cli-1.0.6-mwb4199d.mjs +3 -0
  186. package/dist/chunks/cli-1.0.6-mzqatpet.mjs +6 -0
  187. package/dist/chunks/cli-1.0.6-n3apbtd5.mjs +2 -0
  188. package/dist/chunks/cli-1.0.6-n6yd76q7.mjs +2 -0
  189. package/dist/chunks/cli-1.0.6-n9zhw61e.mjs +2 -0
  190. package/dist/chunks/cli-1.0.6-nb4f2zfq.mjs +2 -0
  191. package/dist/chunks/cli-1.0.6-nbxf3acf.mjs +2 -0
  192. package/dist/chunks/cli-1.0.6-njnv92az.mjs +2 -0
  193. package/dist/chunks/cli-1.0.6-nke3e3mv.mjs +2 -0
  194. package/dist/chunks/cli-1.0.6-nphrz836.mjs +34 -0
  195. package/dist/chunks/cli-1.0.6-npng9y9t.mjs +2 -0
  196. package/dist/chunks/cli-1.0.6-nyh2gact.mjs +133 -0
  197. package/dist/chunks/cli-1.0.6-p2syhbmk.mjs +24 -0
  198. package/dist/chunks/cli-1.0.6-pem0rvy0.mjs +2 -0
  199. package/dist/chunks/cli-1.0.6-pgc0vpjm.mjs +2 -0
  200. package/dist/chunks/cli-1.0.6-pgwdn1q5.mjs +2 -0
  201. package/dist/chunks/cli-1.0.6-px4bsvf6.mjs +2 -0
  202. package/dist/chunks/cli-1.0.6-q2yz709r.mjs +2 -0
  203. package/dist/chunks/cli-1.0.6-q79ba7ng.mjs +24 -0
  204. package/dist/chunks/cli-1.0.6-qnmkmcq4.mjs +2 -0
  205. package/dist/chunks/cli-1.0.6-qp2em1hm.mjs +2 -0
  206. package/dist/chunks/cli-1.0.6-qt11m0ak.mjs +2 -0
  207. package/dist/chunks/cli-1.0.6-r0n4r13f.mjs +18 -0
  208. package/dist/chunks/cli-1.0.6-r2508q6q.mjs +2 -0
  209. package/dist/chunks/cli-1.0.6-r6mzt599.mjs +3 -0
  210. package/dist/chunks/cli-1.0.6-rkbbyfm8.mjs +21 -0
  211. package/dist/chunks/cli-1.0.6-rm2htcb3.mjs +2 -0
  212. package/dist/chunks/cli-1.0.6-rp7q90tp.mjs +42 -0
  213. package/dist/chunks/cli-1.0.6-rsj4zt4n.mjs +2 -0
  214. package/dist/chunks/cli-1.0.6-rwke4nxh.mjs +3 -0
  215. package/dist/chunks/cli-1.0.6-rx5w7fx8.mjs +2 -0
  216. package/dist/chunks/cli-1.0.6-ry340c4k.mjs +133 -0
  217. package/dist/chunks/cli-1.0.6-s333n5zg.mjs +8 -0
  218. package/dist/chunks/cli-1.0.6-s8neseq2.mjs +4 -0
  219. package/dist/chunks/cli-1.0.6-shakqp36.mjs +2 -0
  220. package/dist/chunks/cli-1.0.6-snj1v3kf.mjs +2 -0
  221. package/dist/chunks/cli-1.0.6-sq2d4y85.mjs +2 -0
  222. package/dist/chunks/cli-1.0.6-sw7g4tgd.mjs +2 -0
  223. package/dist/chunks/cli-1.0.6-sws40pv9.mjs +2 -0
  224. package/dist/chunks/cli-1.0.6-t9r7rn29.mjs +2 -0
  225. package/dist/chunks/cli-1.0.6-tnt5gdq6.mjs +3 -0
  226. package/dist/chunks/cli-1.0.6-tw4tv5c3.mjs +2 -0
  227. package/dist/chunks/cli-1.0.6-v08hd9y9.mjs +2 -0
  228. package/dist/chunks/cli-1.0.6-va933r6s.mjs +2 -0
  229. package/dist/chunks/cli-1.0.6-vmwnjv3e.mjs +12 -0
  230. package/dist/chunks/cli-1.0.6-vpwqryae.mjs +45 -0
  231. package/dist/chunks/cli-1.0.6-vw4q8h8f.mjs +20 -0
  232. package/dist/chunks/cli-1.0.6-w3ewev2t.mjs +2 -0
  233. package/dist/chunks/cli-1.0.6-w3xpmc0m.mjs +2 -0
  234. package/dist/chunks/cli-1.0.6-wc676ed5.mjs +2 -0
  235. package/dist/chunks/cli-1.0.6-wgprm90p.mjs +2 -0
  236. package/dist/chunks/cli-1.0.6-wqqq5eh9.mjs +2 -0
  237. package/dist/chunks/cli-1.0.6-wvn01egx.mjs +2 -0
  238. package/dist/chunks/cli-1.0.6-x2m8wf3s.mjs +15 -0
  239. package/dist/chunks/cli-1.0.6-x6q5yg4p.mjs +2 -0
  240. package/dist/chunks/cli-1.0.6-xgntnn4t.mjs +2 -0
  241. package/dist/chunks/cli-1.0.6-xhmby05p.mjs +2 -0
  242. package/dist/chunks/cli-1.0.6-xk2ttvjs.mjs +2 -0
  243. package/dist/chunks/cli-1.0.6-xr79bf4b.mjs +58 -0
  244. package/dist/chunks/cli-1.0.6-xsbxh0be.mjs +2 -0
  245. package/dist/chunks/cli-1.0.6-xx7yggj6.mjs +2 -0
  246. package/dist/chunks/cli-1.0.6-y406hq26.mjs +2 -0
  247. package/dist/chunks/cli-1.0.6-y7y63cz5.mjs +25 -0
  248. package/dist/chunks/cli-1.0.6-y84yqp9s.mjs +9 -0
  249. package/dist/chunks/cli-1.0.6-yfs94tn1.mjs +2 -0
  250. package/dist/chunks/cli-1.0.6-ykfbjap8.mjs +4 -0
  251. package/dist/chunks/cli-1.0.6-ypbzk2re.mjs +2 -0
  252. package/dist/chunks/cli-1.0.6-ytd9vx4t.mjs +5 -0
  253. package/dist/chunks/cli-1.0.6-z06mmyvr.mjs +6 -0
  254. package/dist/chunks/cli-1.0.6-z1vvz38s.mjs +2 -0
  255. package/dist/chunks/cli-1.0.6-z6c3g4jy.mjs +2 -0
  256. package/dist/chunks/cli-1.0.6-zbbh8d20.mjs +2 -0
  257. package/dist/chunks/cli-1.0.6-zcnjjez0.mjs +3 -0
  258. package/dist/chunks/client-1.0.6-n3e1kq6z.mjs +1 -0
  259. package/dist/chunks/color-1.0.6-949mf4t9.mjs +1 -0
  260. package/dist/chunks/compact-1.0.6-pk763zz3.mjs +3 -0
  261. package/dist/chunks/config-1.0.6-bysc6622.mjs +1 -0
  262. package/dist/chunks/config-1.0.6-tgr3szh4.mjs +1 -0
  263. package/dist/chunks/constants-1.0.6-2ytt6s63.mjs +1 -0
  264. package/dist/chunks/context-1.0.6-c6a94j19.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.6-rs66dgc4.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.6-jg2wrz10.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.6-pqtevy6f.mjs +1 -0
  268. package/dist/chunks/copy-1.0.6-8q0c5rxd.mjs +9 -0
  269. package/dist/chunks/cost-1.0.6-99qahzn2.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.6-d9m8hpvm.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.6-bst3zcfv.mjs +1 -0
  272. package/dist/chunks/debug-1.0.6-sp18ckyq.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.6-264e52qb.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.6-8f041exs.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.6-5xtpjm37.mjs +1 -0
  276. package/dist/chunks/detection-1.0.6-rqwbmfnt.mjs +1 -0
  277. package/dist/chunks/diff-1.0.6-2tfee48c.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.6-8cd8a94q.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.6-2waz13fa.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.6-xz3zmash.mjs +1 -0
  281. package/dist/chunks/effort-1.0.6-sxass88w.mjs +10 -0
  282. package/dist/chunks/engine-1.0.6-m67y6tar.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.6-96am9ft2.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.6-rwrw23sx.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.6-eafb1t40.mjs +1 -0
  286. package/dist/chunks/environments-1.0.6-4rbtnxhr.mjs +1 -0
  287. package/dist/chunks/errors-1.0.6-tw2j2j5x.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.6-nme5mfvh.mjs +1 -0
  289. package/dist/chunks/exit-1.0.6-0nhvqr67.mjs +1 -0
  290. package/dist/chunks/explorer-1.0.6-9va9rmay.mjs +1 -0
  291. package/dist/chunks/export-1.0.6-42k6mg0d.mjs +2 -0
  292. package/dist/chunks/extra-usage-1.0.6-1ts30zcb.mjs +1 -0
  293. package/dist/chunks/extra-usage-noninteractive-1.0.6-ccj017df.mjs +1 -0
  294. package/dist/chunks/fast-1.0.6-hng6hkgq.mjs +1 -0
  295. package/dist/chunks/feedback-1.0.6-5xpevqgs.mjs +14 -0
  296. package/dist/chunks/firstPartyEventLogger-1.0.6-y50d073s.mjs +1 -0
  297. package/dist/chunks/git-1.0.6-vdebxyc7.mjs +1 -0
  298. package/dist/chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs +1 -0
  299. package/dist/chunks/goal-1.0.6-ragq8khs.mjs +4 -0
  300. package/dist/chunks/grove-1.0.6-94e2ae96.mjs +1 -0
  301. package/dist/chunks/growthbook-1.0.6-q95706fh.mjs +1 -0
  302. package/dist/chunks/headless-1.0.6-2jvpkaj6.mjs +2 -0
  303. package/dist/chunks/heapdump-1.0.6-6mqe5yjj.mjs +6 -0
  304. package/dist/chunks/help-1.0.6-3f56hs2r.mjs +1 -0
  305. package/dist/chunks/hookChains-1.0.6-bsdqvn2p.mjs +3 -0
  306. package/dist/chunks/hooks-1.0.6-2ymh39cf.mjs +79 -0
  307. package/dist/chunks/hooks-1.0.6-d56f9xmd.mjs +1 -0
  308. package/dist/chunks/ide-1.0.6-0hyhzmhe.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.0.6-xf9rg916.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.0.6-fz8n9ms8.mjs +1 -0
  311. package/dist/chunks/index-1.0.6-2bck3pt4.mjs +30 -0
  312. package/dist/chunks/index-1.0.6-3g0nsrkv.mjs +17 -0
  313. package/dist/chunks/index-1.0.6-3y7jxvhy.mjs +1 -0
  314. package/dist/chunks/index-1.0.6-478y2m6e.mjs +2 -0
  315. package/dist/chunks/index-1.0.6-4b1e7s1x.mjs +1 -0
  316. package/dist/chunks/index-1.0.6-58j0s67x.mjs +1 -0
  317. package/dist/chunks/index-1.0.6-5bgvzt3z.mjs +1 -0
  318. package/dist/chunks/index-1.0.6-5vphvdyy.mjs +1 -0
  319. package/dist/chunks/index-1.0.6-66q2r5rv.mjs +1 -0
  320. package/dist/chunks/index-1.0.6-7eqcsb13.mjs +9 -0
  321. package/dist/chunks/index-1.0.6-7mybgpvp.mjs +9 -0
  322. package/dist/chunks/index-1.0.6-9h6qgr9j.mjs +1 -0
  323. package/dist/chunks/index-1.0.6-a1je2hj0.mjs +5 -0
  324. package/dist/chunks/index-1.0.6-dzem1xyw.mjs +1 -0
  325. package/dist/chunks/index-1.0.6-h1kbzgbr.mjs +1 -0
  326. package/dist/chunks/index-1.0.6-jr8edr28.mjs +1 -0
  327. package/dist/chunks/index-1.0.6-kb626zfj.mjs +1 -0
  328. package/dist/chunks/index-1.0.6-scap8ztx.mjs +1 -0
  329. package/dist/chunks/index-1.0.6-sfn887je.mjs +1 -0
  330. package/dist/chunks/index-1.0.6-trrzmzqw.mjs +2 -0
  331. package/dist/chunks/index-1.0.6-vxgxky1j.mjs +1 -0
  332. package/dist/chunks/index-1.0.6-xw59t9mn.mjs +1 -0
  333. package/dist/chunks/index-1.0.6-zefh4dqr.mjs +1 -0
  334. package/dist/chunks/init-1.0.6-ceew1r40.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.0.6-q0q0cs0q.mjs +1 -0
  336. package/dist/chunks/ink-1.0.6-egfpysk6.mjs +1 -0
  337. package/dist/chunks/insights-1.0.6-2jg25rtq.mjs +870 -0
  338. package/dist/chunks/install-1.0.6-g2wbzhrp.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.0.6-wkch2k0a.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.0.6-t0yx4g99.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.0.6-rchtz4a0.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.0.6-y17rjqq1.mjs +1 -0
  343. package/dist/chunks/keybindings-1.0.6-fwfn3ph3.mjs +2 -0
  344. package/dist/chunks/knowledge-1.0.6-ec5ygwxq.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.0.6-v868fdtg.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.0.6-tqjw33x8.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.0.6-0ep8t6k1.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.6-qnt1qmw9.mjs +1 -0
  349. package/dist/chunks/log-1.0.6-k9cgc2n4.mjs +1 -0
  350. package/dist/chunks/main-1.0.6-nqg7gj8m.mjs +1 -0
  351. package/dist/chunks/managedEnv-1.0.6-5ew1phra.mjs +1 -0
  352. package/dist/chunks/mcp-1.0.6-3knsgg6d.mjs +17 -0
  353. package/dist/chunks/mcp-1.0.6-na22t28a.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.6-zkyhgas3.mjs +4 -0
  355. package/dist/chunks/mcpb-1.0.6-g3b1zqxb.mjs +1 -0
  356. package/dist/chunks/memory-1.0.6-atzzmaad.mjs +3 -0
  357. package/dist/chunks/model-1.0.6-57z0x37s.mjs +1 -0
  358. package/dist/chunks/model-1.0.6-843dkkfz.mjs +2 -0
  359. package/dist/chunks/node-1.0.6-vxbhm4hf.mjs +12 -0
  360. package/dist/chunks/oauth-1.0.6-cfc8agdv.mjs +1 -0
  361. package/dist/chunks/openaiShim-1.0.6-zsb0hbxr.mjs +14 -0
  362. package/dist/chunks/output-style-1.0.6-qbmq3rnf.mjs +1 -0
  363. package/dist/chunks/package-ZZWOLTXM-1.0.6-tkz3dr14.mjs +1 -0
  364. package/dist/chunks/parseConnectUrl-1.0.6-j4d5nn9v.mjs +1 -0
  365. package/dist/chunks/parser-1.0.6-v2vwmn92.mjs +1 -0
  366. package/dist/chunks/passes-1.0.6-n7gy2bm9.mjs +1 -0
  367. package/dist/chunks/permissions-1.0.6-p5k4trnb.mjs +3 -0
  368. package/dist/chunks/permissions-1.0.6-sdaqy7tv.mjs +1 -0
  369. package/dist/chunks/plan-1.0.6-dsq3488z.mjs +1 -0
  370. package/dist/chunks/plist-1.0.6-gpg0h2dj.mjs +1 -0
  371. package/dist/chunks/plugin-1.0.6-kj0t0xry.mjs +29 -0
  372. package/dist/chunks/pluginStartupCheck-1.0.6-tr3d9de5.mjs +1 -0
  373. package/dist/chunks/plugins-1.0.6-7kctwa0e.mjs +9 -0
  374. package/dist/chunks/preActionHook-1.0.6-qfq4qcnx.mjs +2 -0
  375. package/dist/chunks/print-1.0.6-9k27napw.mjs +57 -0
  376. package/dist/chunks/privacy-settings-1.0.6-pmkcm2k6.mjs +1 -0
  377. package/dist/chunks/process-1.0.6-yjr9qgm0.mjs +1 -0
  378. package/dist/chunks/processBashCommand-1.0.6-hjsegdwx.mjs +1 -0
  379. package/dist/chunks/processSlashCommand-1.0.6-qtste297.mjs +9 -0
  380. package/dist/chunks/prompt-1.0.6-3pz6ez1b.mjs +1 -0
  381. package/dist/chunks/prompt-1.0.6-gz6pqd71.mjs +1 -0
  382. package/dist/chunks/prompts-1.0.6-dds21kka.mjs +1 -0
  383. package/dist/chunks/protocolHandler-1.0.6-0ks875v7.mjs +13 -0
  384. package/dist/chunks/provider-1.0.6-9a1x17c8.mjs +2 -0
  385. package/dist/chunks/providerProfiles-1.0.6-rk717k78.mjs +1 -0
  386. package/dist/chunks/providerValidation-1.0.6-e3rpsc9f.mjs +6 -0
  387. package/dist/chunks/rate-limit-options-1.0.6-90etm2re.mjs +1 -0
  388. package/dist/chunks/registerSubcommands-1.0.6-nvtknss4.mjs +34 -0
  389. package/dist/chunks/registry-1.0.6-g4g3tqbv.mjs +1 -0
  390. package/dist/chunks/release-notes-1.0.6-1s9np58q.mjs +5 -0
  391. package/dist/chunks/reload-plugins-1.0.6-3dd0aedh.mjs +2 -0
  392. package/dist/chunks/remote-env-1.0.6-gyn1ez8r.mjs +1 -0
  393. package/dist/chunks/remoteBridgeCore-1.0.6-g9538ytn.mjs +1 -0
  394. package/dist/chunks/remoteSession-1.0.6-mta0cnmb.mjs +1 -0
  395. package/dist/chunks/rename-1.0.6-q495btpz.mjs +1 -0
  396. package/dist/chunks/replBridgeHandle-1.0.6-v46krtrw.mjs +1 -0
  397. package/dist/chunks/replLauncher-1.0.6-cc276asy.mjs +1 -0
  398. package/dist/chunks/resume-1.0.6-f7sxdm3s.mjs +2 -0
  399. package/dist/chunks/rewind-1.0.6-6stqe269.mjs +1 -0
  400. package/dist/chunks/rootOptions-1.0.6-j78xfj1y.mjs +1 -0
  401. package/dist/chunks/sandbox-adapter-1.0.6-901t5paa.mjs +1 -0
  402. package/dist/chunks/sandbox-toggle-1.0.6-vc10zpq8.mjs +1 -0
  403. package/dist/chunks/session-1.0.6-gjwdmj9d.mjs +2 -0
  404. package/dist/chunks/sessionDiscovery-1.0.6-r2ydd9s8.mjs +1 -0
  405. package/dist/chunks/sessionFileAccessHooks-1.0.6-9dvjq66r.mjs +1 -0
  406. package/dist/chunks/sessionStorage-1.0.6-6xf0298f.mjs +1 -0
  407. package/dist/chunks/settings-1.0.6-369qbnap.mjs +1 -0
  408. package/dist/chunks/setup-1.0.6-n8ec75ht.mjs +5 -0
  409. package/dist/chunks/sinks-1.0.6-h7v83r07.mjs +1 -0
  410. package/dist/chunks/skills-1.0.6-srbnw6db.mjs +1 -0
  411. package/dist/chunks/startupProfiler-1.0.6-bt2rwgd4.mjs +1 -0
  412. package/dist/chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs +1 -0
  413. package/dist/chunks/state-1.0.6-3m5c8zpc.mjs +1 -0
  414. package/dist/chunks/stats-1.0.6-df87fq0j.mjs +6 -0
  415. package/dist/chunks/status-1.0.6-0wmbys8d.mjs +1 -0
  416. package/dist/chunks/stickers-1.0.6-rn50x1rq.mjs +1 -0
  417. package/dist/chunks/subprocessEnv-1.0.6-1p34363n.mjs +1 -0
  418. package/dist/chunks/tasks-1.0.6-n9dy1nvm.mjs +1 -0
  419. package/dist/chunks/teamHelpers-1.0.6-sbqr7ebq.mjs +1 -0
  420. package/dist/chunks/teammateModeSnapshot-1.0.6-shsz85kr.mjs +1 -0
  421. package/dist/chunks/teleport-1.0.6-thxx543v.mjs +1 -0
  422. package/dist/chunks/terminalSetup-1.0.6-2abyvwnm.mjs +1 -0
  423. package/dist/chunks/theme-1.0.6-3q8wm8dd.mjs +1 -0
  424. package/dist/chunks/thinkback-1.0.6-sk8ykxzt.mjs +1 -0
  425. package/dist/chunks/thinkback-play-1.0.6-6202g18m.mjs +1 -0
  426. package/dist/chunks/toolPool-1.0.6-7f9ny265.mjs +1 -0
  427. package/dist/chunks/toolSearch-1.0.6-r927q3n6.mjs +1 -0
  428. package/dist/chunks/tools-1.0.6-49vtha15.mjs +1 -0
  429. package/dist/chunks/trustedDevice-1.0.6-12zgjreg.mjs +1 -0
  430. package/dist/chunks/turndown.cjs-1.0.6-m88jykaz.mjs +69 -0
  431. package/dist/chunks/types-1.0.6-qcw5ptd7.mjs +1 -0
  432. package/dist/chunks/ultrareviewCommand-1.0.6-34s8eh57.mjs +4 -0
  433. package/dist/chunks/update-1.0.6-10vds9r4.mjs +88 -0
  434. package/dist/chunks/upgrade-1.0.6-sdwjc086.mjs +1 -0
  435. package/dist/chunks/upload-1.0.6-tk83fcy2.mjs +7 -0
  436. package/dist/chunks/upstreamproxy-1.0.6-8d54f9fn.mjs +14 -0
  437. package/dist/chunks/url-handler-napi-1.0.6-ph7g08x7.mjs +1 -0
  438. package/dist/chunks/usage-1.0.6-3m17gzhd.mjs +1 -0
  439. package/dist/chunks/util-1.0.6-wh7h4a5g.mjs +1 -0
  440. package/dist/chunks/utils-1.0.6-5e17hs3n.mjs +1 -0
  441. package/dist/chunks/vim-1.0.6-4mjggnma.mjs +1 -0
  442. package/dist/chunks/watcher-1.0.6-6p1xkebx.mjs +1 -0
  443. package/dist/chunks/wiki-1.0.6-aysp0kpj.mjs +132 -0
  444. package/dist/chunks/workflows-1.0.6-rnjxwhns.mjs +1 -0
  445. package/dist/chunks/worktree-1.0.6-8nfcjmff.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs +1 -0
  447. package/dist/chunks/wrapper-1.0.6-crv0bjsj.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/install.cjs +6 -2
  450. package/package.json +10 -10
  451. package/dist/chunks/AgentTool-1.0.4-hb5yf83k.mjs +0 -1
  452. package/dist/chunks/App-1.0.4-ee5phav9.mjs +0 -1
  453. package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +0 -1
  454. package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +0 -1
  455. package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +0 -1
  456. package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +0 -1
  457. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +0 -1
  458. package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +0 -1
  459. package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +0 -7
  460. package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +0 -1
  461. package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +0 -6
  462. package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +0 -1
  463. package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +0 -1
  464. package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +0 -1
  465. package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +0 -1
  466. package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +0 -1
  467. package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +0 -1
  468. package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +0 -1
  469. package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +0 -1
  470. package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +0 -1
  471. package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +0 -1
  472. package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +0 -1
  473. package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +0 -1
  474. package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +0 -1
  475. package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +0 -9
  476. package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +0 -1
  477. package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +0 -1
  478. package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +0 -1
  479. package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +0 -1
  480. package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +0 -1
  481. package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +0 -110
  482. package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +0 -3
  483. package/dist/chunks/api-1.0.4-h4pnj11w.mjs +0 -1
  484. package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +0 -1
  485. package/dist/chunks/assistant-1.0.4-cezj138d.mjs +0 -1
  486. package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +0 -1
  487. package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +0 -1
  488. package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +0 -48
  489. package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +0 -1
  490. package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +0 -1
  491. package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +0 -4
  492. package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +0 -2
  493. package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +0 -1
  494. package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +0 -1
  495. package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +0 -88
  496. package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +0 -1
  497. package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +0 -1
  498. package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +0 -3
  499. package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +0 -1
  500. package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +0 -21
  501. package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +0 -4
  502. package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +0 -1
  503. package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +0 -1
  504. package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +0 -1
  505. package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +0 -1
  506. package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +0 -1
  507. package/dist/chunks/cli-1.0.4-08e3sn18.mjs +0 -2
  508. package/dist/chunks/cli-1.0.4-092qjm5g.mjs +0 -25
  509. package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +0 -2
  510. package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +0 -2
  511. package/dist/chunks/cli-1.0.4-0pqf799x.mjs +0 -2
  512. package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +0 -16
  513. package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +0 -67
  514. package/dist/chunks/cli-1.0.4-1bg07n68.mjs +0 -4
  515. package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +0 -2
  516. package/dist/chunks/cli-1.0.4-1j122zyj.mjs +0 -2
  517. package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +0 -20
  518. package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +0 -2
  519. package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +0 -2
  520. package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +0 -2
  521. package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +0 -50
  522. package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +0 -2
  523. package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +0 -2
  524. package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +0 -2
  525. package/dist/chunks/cli-1.0.4-2vrfse65.mjs +0 -2
  526. package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +0 -24
  527. package/dist/chunks/cli-1.0.4-3289hbrr.mjs +0 -6
  528. package/dist/chunks/cli-1.0.4-34jdejmp.mjs +0 -2
  529. package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +0 -2
  530. package/dist/chunks/cli-1.0.4-3b0061a4.mjs +0 -2
  531. package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +0 -3
  532. package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +0 -3
  533. package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +0 -2
  534. package/dist/chunks/cli-1.0.4-4sfp975c.mjs +0 -2
  535. package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +0 -24
  536. package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +0 -2
  537. package/dist/chunks/cli-1.0.4-5663sqrh.mjs +0 -2
  538. package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +0 -2
  539. package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +0 -2
  540. package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +0 -2
  541. package/dist/chunks/cli-1.0.4-618n4yb3.mjs +0 -2
  542. package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +0 -2
  543. package/dist/chunks/cli-1.0.4-75pszwff.mjs +0 -12
  544. package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +0 -2
  545. package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +0 -39
  546. package/dist/chunks/cli-1.0.4-7jd24agk.mjs +0 -2
  547. package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +0 -4
  548. package/dist/chunks/cli-1.0.4-80hrkybp.mjs +0 -2
  549. package/dist/chunks/cli-1.0.4-85cb91sn.mjs +0 -4
  550. package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +0 -2
  551. package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +0 -3
  552. package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +0 -8
  553. package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +0 -2
  554. package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +0 -2
  555. package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +0 -2
  556. package/dist/chunks/cli-1.0.4-95nw81kz.mjs +0 -2
  557. package/dist/chunks/cli-1.0.4-982xabhy.mjs +0 -2
  558. package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +0 -2
  559. package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +0 -59
  560. package/dist/chunks/cli-1.0.4-9re52te8.mjs +0 -2
  561. package/dist/chunks/cli-1.0.4-9w88pg39.mjs +0 -12
  562. package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +0 -2
  563. package/dist/chunks/cli-1.0.4-a14svdr8.mjs +0 -1
  564. package/dist/chunks/cli-1.0.4-avmcefxg.mjs +0 -10
  565. package/dist/chunks/cli-1.0.4-azntz5z2.mjs +0 -2
  566. package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +0 -133
  567. package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +0 -2
  568. package/dist/chunks/cli-1.0.4-bneycyws.mjs +0 -2
  569. package/dist/chunks/cli-1.0.4-bnsdazas.mjs +0 -3
  570. package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +0 -2
  571. package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +0 -2
  572. package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +0 -58
  573. package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +0 -2
  574. package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +0 -2
  575. package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +0 -2
  576. package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +0 -2
  577. package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +0 -2
  578. package/dist/chunks/cli-1.0.4-e26gm32b.mjs +0 -2
  579. package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +0 -2
  580. package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +0 -2
  581. package/dist/chunks/cli-1.0.4-e86sgy00.mjs +0 -3
  582. package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +0 -2
  583. package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +0 -5
  584. package/dist/chunks/cli-1.0.4-ef5asahs.mjs +0 -4
  585. package/dist/chunks/cli-1.0.4-emp66cxw.mjs +0 -2
  586. package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +0 -6
  587. package/dist/chunks/cli-1.0.4-ex22h376.mjs +0 -2
  588. package/dist/chunks/cli-1.0.4-f0t68sye.mjs +0 -2
  589. package/dist/chunks/cli-1.0.4-f20q38cw.mjs +0 -2
  590. package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +0 -15
  591. package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +0 -2
  592. package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +0 -2
  593. package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +0 -2
  594. package/dist/chunks/cli-1.0.4-f965h6gd.mjs +0 -7
  595. package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +0 -2
  596. package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +0 -3
  597. package/dist/chunks/cli-1.0.4-fcswm1md.mjs +0 -2
  598. package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +0 -2
  599. package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +0 -2
  600. package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +0 -2
  601. package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +0 -2
  602. package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +0 -2
  603. package/dist/chunks/cli-1.0.4-genhzh1b.mjs +0 -2
  604. package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +0 -5
  605. package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +0 -2
  606. package/dist/chunks/cli-1.0.4-ghzbww61.mjs +0 -34
  607. package/dist/chunks/cli-1.0.4-gqc15qng.mjs +0 -6
  608. package/dist/chunks/cli-1.0.4-gssg75hx.mjs +0 -2
  609. package/dist/chunks/cli-1.0.4-gyjecspm.mjs +0 -2
  610. package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +0 -2
  611. package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +0 -2
  612. package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +0 -2
  613. package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +0 -2
  614. package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +0 -2
  615. package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +0 -3
  616. package/dist/chunks/cli-1.0.4-hwje79ka.mjs +0 -2
  617. package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +0 -3
  618. package/dist/chunks/cli-1.0.4-j17mhs88.mjs +0 -18
  619. package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +0 -5471
  620. package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +0 -2
  621. package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +0 -2
  622. package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +0 -2
  623. package/dist/chunks/cli-1.0.4-k20sr786.mjs +0 -3
  624. package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +0 -2
  625. package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +0 -3
  626. package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +0 -2
  627. package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +0 -2
  628. package/dist/chunks/cli-1.0.4-m240wvtt.mjs +0 -9
  629. package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +0 -2
  630. package/dist/chunks/cli-1.0.4-ndy339bx.mjs +0 -2
  631. package/dist/chunks/cli-1.0.4-nfpfve45.mjs +0 -2
  632. package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +0 -2
  633. package/dist/chunks/cli-1.0.4-nws4fp34.mjs +0 -2
  634. package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +0 -18
  635. package/dist/chunks/cli-1.0.4-p618f4eb.mjs +0 -2
  636. package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +0 -18
  637. package/dist/chunks/cli-1.0.4-pxqvx117.mjs +0 -3
  638. package/dist/chunks/cli-1.0.4-q00a51mt.mjs +0 -4
  639. package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +0 -199
  640. package/dist/chunks/cli-1.0.4-q97cke3f.mjs +0 -2
  641. package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +0 -5
  642. package/dist/chunks/cli-1.0.4-qka1j546.mjs +0 -4
  643. package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +0 -2
  644. package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +0 -25
  645. package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +0 -17
  646. package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +0 -42
  647. package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +0 -2
  648. package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +0 -2
  649. package/dist/chunks/cli-1.0.4-rhq4w2pj.mjs +0 -2
  650. package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +0 -12
  651. package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +0 -2
  652. package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +0 -12
  653. package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +0 -2
  654. package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +0 -24
  655. package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +0 -2
  656. package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +0 -4
  657. package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +0 -2
  658. package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +0 -2
  659. package/dist/chunks/cli-1.0.4-s6m720bj.mjs +0 -2
  660. package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +0 -2
  661. package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +0 -2
  662. package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +0 -2
  663. package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +0 -2
  664. package/dist/chunks/cli-1.0.4-t915kvpv.mjs +0 -2
  665. package/dist/chunks/cli-1.0.4-th3f10e2.mjs +0 -2
  666. package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +0 -2
  667. package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +0 -3
  668. package/dist/chunks/cli-1.0.4-v2973j5k.mjs +0 -15
  669. package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +0 -2
  670. package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +0 -4
  671. package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +0 -2
  672. package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +0 -3
  673. package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +0 -6
  674. package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +0 -15
  675. package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +0 -2
  676. package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +0 -4
  677. package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +0 -2
  678. package/dist/chunks/cli-1.0.4-wb91dheq.mjs +0 -2
  679. package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +0 -2
  680. package/dist/chunks/cli-1.0.4-wryebn9y.mjs +0 -2
  681. package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +0 -2
  682. package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +0 -2
  683. package/dist/chunks/cli-1.0.4-xcegbj23.mjs +0 -21
  684. package/dist/chunks/cli-1.0.4-xjef6vra.mjs +0 -2
  685. package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +0 -45
  686. package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +0 -2
  687. package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +0 -2
  688. package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +0 -2
  689. package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +0 -2
  690. package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +0 -2
  691. package/dist/chunks/cli-1.0.4-ya22eazw.mjs +0 -2
  692. package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +0 -2
  693. package/dist/chunks/cli-1.0.4-ygedgw05.mjs +0 -2
  694. package/dist/chunks/cli-1.0.4-yp6300fv.mjs +0 -2
  695. package/dist/chunks/cli-1.0.4-yq119gwk.mjs +0 -2
  696. package/dist/chunks/cli-1.0.4-yq19e16e.mjs +0 -4
  697. package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +0 -2
  698. package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +0 -17
  699. package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +0 -2
  700. package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +0 -133
  701. package/dist/chunks/cli-1.0.4-z5zmw573.mjs +0 -2
  702. package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +0 -2
  703. package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +0 -2
  704. package/dist/chunks/cli-1.0.4-znj63zs7.mjs +0 -2
  705. package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +0 -2
  706. package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +0 -2
  707. package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +0 -2
  708. package/dist/chunks/client-1.0.4-tejrj09r.mjs +0 -1
  709. package/dist/chunks/color-1.0.4-148b97be.mjs +0 -1
  710. package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +0 -3
  711. package/dist/chunks/config-1.0.4-a5enjc0b.mjs +0 -1
  712. package/dist/chunks/config-1.0.4-q23nqw9d.mjs +0 -1
  713. package/dist/chunks/constants-1.0.4-635bzfez.mjs +0 -1
  714. package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +0 -1
  715. package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +0 -1
  716. package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +0 -1
  717. package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +0 -1
  718. package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +0 -9
  719. package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +0 -1
  720. package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +0 -1
  721. package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +0 -1
  722. package/dist/chunks/debug-1.0.4-dym46dbc.mjs +0 -1
  723. package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +0 -1446
  724. package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +0 -1
  725. package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +0 -1
  726. package/dist/chunks/detection-1.0.4-02gwawhp.mjs +0 -1
  727. package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +0 -1
  728. package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +0 -1
  729. package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +0 -1
  730. package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +0 -1
  731. package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +0 -10
  732. package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +0 -1
  733. package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +0 -1
  734. package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +0 -1
  735. package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +0 -1
  736. package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +0 -1
  737. package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +0 -1
  738. package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +0 -1
  739. package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +0 -1
  740. package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +0 -1
  741. package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +0 -2
  742. package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +0 -1
  743. package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +0 -1
  744. package/dist/chunks/fast-1.0.4-qb539j3d.mjs +0 -1
  745. package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +0 -14
  746. package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +0 -1
  747. package/dist/chunks/git-1.0.4-ag4cdf47.mjs +0 -1
  748. package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +0 -1
  749. package/dist/chunks/goal-1.0.4-w76hde3j.mjs +0 -4
  750. package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +0 -1
  751. package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +0 -1
  752. package/dist/chunks/headless-1.0.4-4htsajcx.mjs +0 -2
  753. package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +0 -6
  754. package/dist/chunks/help-1.0.4-mb80yzdd.mjs +0 -1
  755. package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +0 -3
  756. package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +0 -1
  757. package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +0 -79
  758. package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +0 -3
  759. package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +0 -1
  760. package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +0 -1
  761. package/dist/chunks/index-1.0.4-0ds0yar8.mjs +0 -2
  762. package/dist/chunks/index-1.0.4-0swpjsxv.mjs +0 -1
  763. package/dist/chunks/index-1.0.4-1adr1cev.mjs +0 -1
  764. package/dist/chunks/index-1.0.4-2cqwak8f.mjs +0 -1
  765. package/dist/chunks/index-1.0.4-45r2p2fr.mjs +0 -1
  766. package/dist/chunks/index-1.0.4-578fqjbt.mjs +0 -5
  767. package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +0 -1
  768. package/dist/chunks/index-1.0.4-bq00jtej.mjs +0 -1
  769. package/dist/chunks/index-1.0.4-d3963jrf.mjs +0 -1
  770. package/dist/chunks/index-1.0.4-db6y9w6p.mjs +0 -9
  771. package/dist/chunks/index-1.0.4-eqa6324a.mjs +0 -30
  772. package/dist/chunks/index-1.0.4-fgtct7wa.mjs +0 -1
  773. package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +0 -1
  774. package/dist/chunks/index-1.0.4-kkxqenx5.mjs +0 -17
  775. package/dist/chunks/index-1.0.4-m48vcxbj.mjs +0 -2
  776. package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +0 -9
  777. package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +0 -1
  778. package/dist/chunks/index-1.0.4-qj0raz1t.mjs +0 -1
  779. package/dist/chunks/index-1.0.4-rb8h15jh.mjs +0 -1
  780. package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +0 -1
  781. package/dist/chunks/index-1.0.4-xadhy3m9.mjs +0 -1
  782. package/dist/chunks/index-1.0.4-ynqjejnh.mjs +0 -1
  783. package/dist/chunks/index-1.0.4-zw32d5rq.mjs +0 -1
  784. package/dist/chunks/init-1.0.4-tdv5z99g.mjs +0 -1
  785. package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +0 -1
  786. package/dist/chunks/ink-1.0.4-w371tr8m.mjs +0 -1
  787. package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +0 -870
  788. package/dist/chunks/install-1.0.4-k86wrfgy.mjs +0 -1
  789. package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +0 -149
  790. package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +0 -1
  791. package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +0 -1
  792. package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +0 -1
  793. package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +0 -2
  794. package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +0 -2
  795. package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +0 -1
  796. package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +0 -1
  797. package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +0 -1
  798. package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +0 -1
  799. package/dist/chunks/log-1.0.4-q4mkknks.mjs +0 -1
  800. package/dist/chunks/main-1.0.4-fpq69x53.mjs +0 -1
  801. package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +0 -1
  802. package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +0 -1
  803. package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +0 -17
  804. package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +0 -4
  805. package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +0 -1
  806. package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +0 -3
  807. package/dist/chunks/model-1.0.4-7q33dte0.mjs +0 -2
  808. package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +0 -1
  809. package/dist/chunks/node-1.0.4-t61fwtvv.mjs +0 -12
  810. package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +0 -1
  811. package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +0 -14
  812. package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +0 -1
  813. package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +0 -1
  814. package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +0 -1
  815. package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +0 -1
  816. package/dist/chunks/passes-1.0.4-kvwashgz.mjs +0 -1
  817. package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +0 -3
  818. package/dist/chunks/permissions-1.0.4-pmabr578.mjs +0 -1
  819. package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +0 -1
  820. package/dist/chunks/plist-1.0.4-de9w52d2.mjs +0 -1
  821. package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +0 -29
  822. package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +0 -1
  823. package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +0 -9
  824. package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +0 -2
  825. package/dist/chunks/print-1.0.4-zg0pxx71.mjs +0 -57
  826. package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +0 -1
  827. package/dist/chunks/process-1.0.4-trh5g80m.mjs +0 -1
  828. package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +0 -1
  829. package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +0 -9
  830. package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +0 -1
  831. package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +0 -1
  832. package/dist/chunks/prompts-1.0.4-an41ccab.mjs +0 -1
  833. package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +0 -13
  834. package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +0 -2
  835. package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +0 -1
  836. package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +0 -6
  837. package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +0 -1
  838. package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +0 -34
  839. package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +0 -1
  840. package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +0 -5
  841. package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +0 -2
  842. package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +0 -1
  843. package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +0 -1
  844. package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +0 -1
  845. package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +0 -1
  846. package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +0 -1
  847. package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +0 -1
  848. package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +0 -2
  849. package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +0 -1
  850. package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +0 -1
  851. package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +0 -1
  852. package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +0 -1
  853. package/dist/chunks/session-1.0.4-4fb52nd1.mjs +0 -2
  854. package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +0 -1
  855. package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +0 -1
  856. package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +0 -1
  857. package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +0 -1
  858. package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +0 -5
  859. package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +0 -1
  860. package/dist/chunks/skills-1.0.4-www28gn6.mjs +0 -1
  861. package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +0 -1
  862. package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +0 -1
  863. package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +0 -1
  864. package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +0 -6
  865. package/dist/chunks/status-1.0.4-zymfx8mp.mjs +0 -1
  866. package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +0 -1
  867. package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +0 -1
  868. package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +0 -1
  869. package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +0 -1
  870. package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +0 -1
  871. package/dist/chunks/teleport-1.0.4-x93h61td.mjs +0 -1
  872. package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +0 -1
  873. package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +0 -1
  874. package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +0 -1
  875. package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +0 -1
  876. package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +0 -1
  877. package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +0 -1
  878. package/dist/chunks/tools-1.0.4-606qnn5t.mjs +0 -1
  879. package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +0 -1
  880. package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +0 -69
  881. package/dist/chunks/types-1.0.4-1kpkjthf.mjs +0 -1
  882. package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +0 -4
  883. package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +0 -86
  884. package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +0 -1
  885. package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +0 -7
  886. package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +0 -14
  887. package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +0 -1
  888. package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +0 -1
  889. package/dist/chunks/util-1.0.4-3cjy2f82.mjs +0 -1
  890. package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +0 -1
  891. package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +0 -1
  892. package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +0 -1
  893. package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +0 -132
  894. package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +0 -1
  895. package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +0 -1
  896. package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +0 -1
  897. package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +0 -7
  898. /package/dist/chunks/{cli-1.0.4-sx5bf3zy.mjs → cli-1.0.6-eqj39b7c.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.0.4-a2brsa8c.mjs → cli-1.0.6-esf6g2hg.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.0.4-1eb2472e.mjs → cli-1.0.6-hg7rd6z8.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.0.4-jrvveh6t.mjs → cli-1.0.6-m86933bc.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.0.4-rh4j3s0t.mjs → cli-1.0.6-ntwqb73s.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.0.4-zjh4h68p.mjs → cli-1.0.6-tefnf8bf.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.4-fyekx70j.mjs → cli-1.0.6-xbk4dr3g.mjs} +0 -0
@@ -0,0 +1,3 @@
1
+ import{B1 as d,C1 as X,G1 as N}from"./cli-1.0.6-7rxsh83h.mjs";import{Kfa as B,Qda as U,Sfa as y,Tda as G,mda as O,mea as p,nda as f}from"./cli-1.0.6-3rnmt44c.mjs";import{Rja as x,Zja as b}from"./cli-1.0.6-4r68vt91.mjs";import{aka as H,nka as E}from"./cli-1.0.6-77j29wff.mjs";import{Gna as w,Qpa as P}from"./cli-1.0.6-8zcjrs1k.mjs";import{Kqa as k,ara as S}from"./cli-1.0.6-r0n4r13f.mjs";import{vra as M,zra as R}from"./cli-1.0.6-c3q3ytrc.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
+ export{zq as if,Jq as jf,C as kf,h as lf,Kq as mf,Qq as nf,g as of};
@@ -0,0 +1,2 @@
1
+ import{Bx as g,Cx as Zf,Ex as _f,Yn as Xf,Zn as Uf}from"./cli-1.0.6-gjtt9hjc.mjs";import{IX as Wf,JX as Tf}from"./cli-1.0.6-2kk9k86d.mjs";import{J0 as a,JY as n,PY as s,QY as If,a0 as F,b0 as cf,c0 as r,e0 as q,i0 as Vf}from"./cli-1.0.6-6zqt7f43.mjs";import{p3 as Qf,q3 as H,r3 as X,s3 as T}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as Rf}from"./cli-1.0.6-6zh1kz2j.mjs";import{B5 as Jf,C5 as hf,H5 as M,K5 as p,L5 as Ef,i5 as Nf,k5 as b,l5 as _,m5 as Hf,o5 as j,r5 as qf,t5 as zf}from"./cli-1.0.6-1a002r86.mjs";import{t8 as i,u8 as yf}from"./cli-1.0.6-mgb1vzp0.mjs";import{Jaa as w,Pca as Gf,Tda as l,_aa as Bf,ada as Cf,mea as Pf}from"./cli-1.0.6-3rnmt44c.mjs";import{fga as mf,nga as Of}from"./cli-1.0.6-9be2xem8.mjs";import{pia as D,sia as Lf}from"./cli-1.0.6-xx7yggj6.mjs";import{vra as x,zra as o}from"./cli-1.0.6-c3q3ytrc.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
2
+ export{U as le,ff as me,Df as ne,H0 as oe,xf as pe};
@@ -0,0 +1,2 @@
1
+ import{Cd as O,xd as Z,yd as _,zd as $}from"./cli-1.0.6-a9n4dj4c.mjs";import{Td as Y,Yd as x}from"./cli-1.0.6-ykfbjap8.mjs";import{FL as V,kL as U,pL as W,uL as S,vL as X}from"./cli-1.0.6-gjtt9hjc.mjs";import{sja as R,vja as K}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as Q,Zja as C}from"./cli-1.0.6-4r68vt91.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
+ export{F as Ua};
@@ -0,0 +1,2 @@
1
+ import{Y7 as v,Z7 as C}from"./cli-1.0.6-1a002r86.mjs";import{Nea as x,Oea as Y,mda as Z,nda as V}from"./cli-1.0.6-3rnmt44c.mjs";import{Sga as R,Wga as W,cha as O}from"./cli-1.0.6-61qpjst5.mjs";import{nia as Q,oia as M}from"./cli-1.0.6-2taykcm3.mjs";import{Xia as P,aja as I,sja as f,vja as L}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as w,Zja as H}from"./cli-1.0.6-4r68vt91.mjs";import{nqa as N,oqa as F}from"./cli-1.0.6-7sc6kks8.mjs";import{Kqa as X,ara as U}from"./cli-1.0.6-r0n4r13f.mjs";import{wra as h,zra as B}from"./cli-1.0.6-c3q3ytrc.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
2
+ export{u as $V,n as aW,o as bW,t as cW,d as dW};
@@ -0,0 +1,2 @@
1
+ import{aV as k,bV as f,rV as u}from"./cli-1.0.6-j12sf764.mjs";import{gX as C,sX as d}from"./cli-1.0.6-9pj529zy.mjs";import{M3 as A,O3 as F}from"./cli-1.0.6-n9zhw61e.mjs";import{i4 as q,n4 as i}from"./cli-1.0.6-1a002r86.mjs";import{b8 as W,e8 as _,l8 as j,m8 as w,r8 as I}from"./cli-1.0.6-6a9gyk3y.mjs";import{Kfa as V,Sfa as U}from"./cli-1.0.6-3rnmt44c.mjs";import{nia as M,oia as v}from"./cli-1.0.6-2taykcm3.mjs";import{Xia as X,Yia as R,aja as p,sja as J,vja as x}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as P,Zja as T}from"./cli-1.0.6-4r68vt91.mjs";import{Ara as O}from"./cli-1.0.6-c3q3ytrc.mjs";x();U();F();v();x();T();U();_();I();p();import{randomUUID as E}from"crypto";var h=2000,y=5,S=30000,Y=3,c=new Set([4003]);function D(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class L{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,H){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=H}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${M().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let H={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:H,proxy:w(z),tls:W()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let K=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(K)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");V(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.0.6-crv0bjsj.mjs"),Z=new $(z,{headers:H,agent:j(z),...W()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(K)=>{this.handleMessage(K.toString())}),Z.on("error",(K)=>{V(Error(`[SessionsWebSocket] Error: ${K.message}`)),this.callbacks.onError?.(K)}),Z.on("close",(K,G)=>{J(`[SessionsWebSocket] Closed: code=${K} reason=${G.toString()}`),this.handleClose(K)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=R(B);if(D(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){V(Error(`[SessionsWebSocket] Failed to parse message: ${P(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",c.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(h*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<y)this.reconnectAttempts++,this.scheduleReconnect(h,`attempt ${this.reconnectAttempts}/${y}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},S)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:E(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function N(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class b{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{V(z),this.callbacks.onError?.(z)}};this.websocket=new L(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(N(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let H={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(H)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await A(this.config.sessionId,B,z);if(!Q)V(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){V(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let H={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(H)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,H=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:H,viewerOnly:$}}x();U();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:H}=B,$=f(z);if(!$){V(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=k(z),K=!Q;return J(`[Reconnection] Computed initial team context for ${K?"leader":`teammate ${H}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:H,isLeader:K,teammates:{}}}function Wz(B,z,Q){let H=f(z);if(!H){V(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=H.members.find((G)=>G.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,K=k(z);B((G)=>({...G,teamContext:{teamName:z,teamFilePath:K,leadAgentId:H.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=q();for(let[H,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(H)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Lz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
+ export{b as Aa,$z as Ba,Xz as Ca,Wz as Da,Lz as Ea};
@@ -0,0 +1,2 @@
1
+ import{aX as YJ,eX as DJ,iX as vJ,jX as c,kX as SJ,sX as ZJ}from"./cli-1.0.6-9pj529zy.mjs";import{F2 as CJ,M2 as TJ}from"./cli-1.0.6-4kafzdd3.mjs";import{Kfa as p,P_ as NJ,S9 as OJ,Sfa as wJ,T9 as FJ,jda as S,lda as yJ,r_ as xJ,w$ as jJ}from"./cli-1.0.6-3rnmt44c.mjs";import{vha as R,xha as VJ,yha as w,zha as XJ}from"./cli-1.0.6-e3cstemm.mjs";import{Xia as v,Yia as y,aja as JJ,sja as G,vja as QJ}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as W,Tja as C,Zja as e}from"./cli-1.0.6-4r68vt91.mjs";import{aka as s,bka as I,dka as t,nka as a}from"./cli-1.0.6-77j29wff.mjs";import{Gna as i,Pla as r,Qla as MJ,Qpa as m,Tla as d,_oa as L}from"./cli-1.0.6-8zcjrs1k.mjs";import{Ara as BJ,zra as T}from"./cli-1.0.6-c3q3ytrc.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-1.0.6-g4g3tqbv.mjs"),import("./detection-1.0.6-rqwbmfnt.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
+ export{HQ as DU,UQ as EU,BQ as FU,fJ as GU,OQ as HU,xQ as IU,CQ as JU,_J as KU,E as LU,bJ as MU,vQ as NU,O as OU,j as PU,SQ as QU,h as RU,AQ as SU,zQ as TU,MQ as UU,HJ as VU,n as WU,UJ as XU,oQ as YU,zJ as ZU,nQ as _U,u as $U,F as aV,H as bV,kJ as cV,rJ as dV,kQ as eV,rQ as fV,dQ as gV,iQ as hV,mQ as iV,dJ as jV,sQ as kV,tQ as lV,aQ as mV,eQ as nV,JV as oV,QV as pV,sJ as qV,tJ as rV};
@@ -0,0 +1,2 @@
1
+ import{sb as d}from"./cli-1.0.6-ntwqb73s.mjs";import{$B as Hj,$R as A,Dm as E,Ek as $,El as P,Em as e,Fk as n,Fl as R,IQ as Qj,MJ as f,Mk as v,Nk as r,Sj as O,Ss as h,Tu as C,Uj as o,Us as qj,Uu as D,VS as Vj,YD as Jj,ZR as m,Zl as s,Zu as Gj,_B as I,_R as S,bT as F,ju as k,kS as c,km as y,mu as V,pT as Xj,pm as t,rS as p,sS as X,su as zj,tu as w,uu as Bj}from"./cli-1.0.6-gjtt9hjc.mjs";import{HU as W,VU as jj}from"./cli-1.0.6-j12sf764.mjs";import{UW as x,XW as Kj}from"./cli-1.0.6-f4f6x83j.mjs";import{j6 as T,q6 as u}from"./cli-1.0.6-1a002r86.mjs";import{Cha as Z,Dha as i}from"./cli-1.0.6-sws40pv9.mjs";import{sja as b,vja as l}from"./cli-1.0.6-z06mmyvr.mjs";import{$la as Y,Qpa as g,Tla as U,Wla as _,cna as M,ena as N,kpa as K}from"./cli-1.0.6-8zcjrs1k.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
2
+ export{aj as Fa,Pj as Ga,Rj as Ha,Ej as Ia,gj as Ja,lj as Ka};
@@ -0,0 +1,17 @@
1
+ import{Ara as b,xra as y}from"./cli-1.0.6-c3q3ytrc.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
2
+ `).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
3
+ `)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
4
+ Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
5
+ `),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
6
+ `),Y.enqueue(`\r
7
+ `)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
8
+ ${X}\r
9
+ `)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
10
+ `),X.push(J),X.push(`\r
11
+ `)}),w.on("end",async()=>{if(X.push(`0\r
12
+ `),M){let J=I(await Y);X.push(`${A}:${J}\r
13
+ `),X.push(`\r
14
+ `)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
15
+ If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-1.0.6-4b1e7s1x.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 ora,h1 as pra,D0 as qra,C$ as rra,F0 as sra,ST as tra,C0 as ura};
@@ -0,0 +1,2 @@
1
+ import{zra as B}from"./cli-1.0.6-c3q3ytrc.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
+ export{F as Si,C as Ti};
@@ -0,0 +1,4 @@
1
+ import{Fg as s,Gg as Sy}from"./cli-1.0.6-8k0axbmg.mjs";import{Og as wy,Qg as kG}from"./cli-1.0.6-52vkzgxe.mjs";import{Ii as Zy,Ki as Ky,Li as ny}from"./cli-1.0.6-86chdw6e.mjs";import{AS as Vy,Ar as Wy,BL as by,FL as GG,Ir as ly,Ms as C,OF as i,PF as Ly,Rx as X,Sx as oy,TF as g,UF as My,Us as _y,VS as zG,bL as j,bo as yy,cL as ey,do as Gy,fo as ky,io as qy,jS as Hy,jo as zy,kL as Oy,kl as e,ko as Iy,kv as Xy,mo as Jy,nv as ay,ol as sy,pr as Qy,so as xy,uL as yG}from"./cli-1.0.6-gjtt9hjc.mjs";import{WW as Ny,XW as ty}from"./cli-1.0.6-f4f6x83j.mjs";import{YX as Py,ZX as Uy,_X as jy,cY as qG}from"./cli-1.0.6-2kk9k86d.mjs";import{iY as Ry,oY as cy}from"./cli-1.0.6-nphrz836.mjs";import{J0 as ry,JY as hy,a0 as Q,b0 as $y,c0 as L,e0 as d}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as O,r3 as E,s3 as p}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as Yy}from"./cli-1.0.6-6zh1kz2j.mjs";import{G7 as h,S5 as c,T5 as t,Z7 as gy,q6 as iy}from"./cli-1.0.6-1a002r86.mjs";import{t8 as a,u8 as fy}from"./cli-1.0.6-mgb1vzp0.mjs";import{Baa as J,Daa as Ey,I_ as o,Nca as n,P_ as Ay,Qda as P,R_ as U,S_ as uy,Sca as r,Tca as v,Tda as q,ada as dy,mea as M,s_ as T}from"./cli-1.0.6-3rnmt44c.mjs";import{Sga as K,bha as A,cha as u}from"./cli-1.0.6-61qpjst5.mjs";import{pia as f,sia as Fy}from"./cli-1.0.6-xx7yggj6.mjs";import{sja as _,vja as Dy}from"./cli-1.0.6-z06mmyvr.mjs";import{vra as D}from"./cli-1.0.6-c3q3ytrc.mjs";ry();u();Fy();M();Ly();Sy();My();p();var $=D(hy(),1),F=D(Yy(),1),Ty={enable_shortcut_tip:!1,enable_startup_dialog:!1};function S(){return A("tengu_desktop_upsell",Ty)}function vy(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function wG(){if(!vy())return!1;if(!S().enable_startup_dialog)return!1;let y=q();if(y.desktopUpsellDismissed)return!1;if((y.desktopUpsellSeenCount??0)>=3)return!1;return!0}function PG(y){let G=$.c(14),{onDone:k}=y,[z,Z]=F.useState(!1),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W=[],G[0]=W;else W=G[0];if(F.useEffect(py,W),z){let w;if(G[1]!==k)w=O(s,{onDone:()=>k()}),G[1]=k,G[2]=w;else w=G[2];return w}let b;if(G[3]!==k)b=function(By){switch(By){case"try":{Z(!0);return}case"never":{P(Cy),k();return}case"not-now":{k();return}}},G[3]=k,G[4]=b;else b=G[4];let I=b,R;if(G[5]===Symbol.for("react.memo_cache_sentinel"))R={label:"Open in Claude Code Desktop",value:"try"},G[5]=R;else R=G[5];let H;if(G[6]===Symbol.for("react.memo_cache_sentinel"))H={label:"Not now",value:"not-now"},G[6]=H;else H=G[6];let V;if(G[7]===Symbol.for("react.memo_cache_sentinel"))V=[R,H,{label:"Don't ask again",value:"never"}],G[7]=V;else V=G[7];let my=V,m;if(G[8]===Symbol.for("react.memo_cache_sentinel"))m=O(L,{marginBottom:1,children:O(d,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."})}),G[8]=m;else m=G[8];let N;if(G[9]!==I)N=()=>I("not-now"),G[9]=I,G[10]=N;else N=G[10];let B;if(G[11]!==I||G[12]!==N)B=O(g,{title:"Try Claude Code Desktop",children:E(L,{flexDirection:"column",paddingX:2,paddingY:1,children:[m,O(i,{options:my,onChange:I,onCancel:N})]})}),G[11]=I,G[12]=N,G[13]=B;else B=G[13];return B}function Cy(y){if(y.desktopUpsellDismissed)return y;return{...y,desktopUpsellDismissed:!0}}function py(){let y=(q().desktopUpsellSeenCount??0)+1;P((G)=>{if((G.desktopUpsellSeenCount??0)>=y)return G;return{...G,desktopUpsellSeenCount:y}}),f("tengu_desktop_upsell_shown",{seen_count:y})}M();function VG(y){let G=q().numStartups;P((k)=>{let z=k.tipsHistory??{};if(z[y]===G)return k;return{...k,tipsHistory:{...z,[y]:G}}})}function x(y){let G=q(),k=G.tipsHistory?.[y];if(!k)return 1/0;return G.numStartups-k}fy();Dy();_y();dy();cy();$y();kG();oy();sy();gy();ty();M();ly();Ey();ay();Ay();xy();iy();uy();GG();yG();ey();zG();u();ny();qG();var Y;async function IG(){if(Y!==void 0)return Y;let y=await Oy();return Y=j in y,Y}async function l(y,G,k){if(!await IG())return!1;if(by(`${y}@${j}`))return!1;let{bashTools:z}=G??{};if(k.cli&&z?.size){if(k.cli.some((Z)=>z.has(Z)))return!0}if(k.filePath&&G?.readFileState){if(Xy(G.readFileState).some((W)=>k.filePath.test(W)))return!0}return!1}var JG=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return q().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=q();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=q(),G=v(),k=Boolean(y.lastPlanModeUse),z=Boolean(G?.permissions?.defaultMode);return k&&!z}catch(y){return _(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=q();return await o()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${X("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${X("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${X("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=q();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(Hy())return!1;return await Ny()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=q();if(J.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=q();return Boolean((J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!Ry())return!1;let y=q();return!(J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return q().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&a.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>U()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>v().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return q().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!yy())return!1;if(U()!=="macos")return!1;switch(J.terminal){case"vscode":return!await Iy();case"cursor":return!await qy();case"windsurf":return!await zy();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Gy())return!1;if((await ky()).length!==0)return!1;return(await Jy()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!q().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!q().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return q().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>U()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!C()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>C()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>Vy()&&q().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return q().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${X("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${X("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>U()!=="linux"},{id:"desktop-shortcut",content:async(y)=>{return`Continue your session in Claude Code Desktop with ${Q("suggestion",y.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!S().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=q(),k=c()==="opusplan",z=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return k&&z>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
+ ${Q("suggestion",y.theme)(`/plugin install frontend-design@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
+ ${Q("suggestion",y.theme)(`/plugin install vercel@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let k=Q("suggestion",y.theme)("/effort high");return K("tengu_tide_elm","off")==="copy_b"?`Use ${k} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${k} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!Qy(t()))return!1;if(n("policySettings")?.effortLevel!==void 0)return!1;if(Wy()!==void 0)return!1;let y=r().effortLevel;if(y==="high"||y==="max")return!1;return K("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${G("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${G('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;return K("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_timber_lark","off")==="copy_b"?`Use ${G("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${G("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!e())return!1;return K("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let G=Q("claude",y.theme),k=jy();return k?`Share Claude Code and earn ${G(Uy(k))} of extra usage · ${G("/passes")}`:`You have free guest passes to share · ${G("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(q().hasVisitedPasses)return!1;let{eligible:G}=Py();return G}},{id:"overage-credit",content:async(y)=>{let G=Q("claude",y.theme),k=Zy(),z=k?Ky(k):null;if(!z)return"";return`${G(`${z} in extra usage, on us`)} · third-party apps · ${G("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>wy()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return q().numStartups>5}}],QG=[];function WG(){let G=r().spinnerTipsOverride;if(!G?.tips?.length)return[];return G.tips.map((k,z)=>({id:`custom-tip-${z}`,content:async()=>k,cooldownSessions:0,isRelevant:async()=>!0}))}async function cG(y){let k=r().spinnerTipsOverride,z=WG();if(k?.excludeDefault&&z.length>0)return z;let Z=[...JG,...QG],W=await Promise.all(Z.map((I)=>I.isRelevant(y)));return[...Z.filter((I,R)=>W[R]).filter((I)=>x(I.id)>=I.cooldownSessions),...z]}
4
+ export{wG as Xa,PG as Ya,VG as Za,x as _a,cG as $a};
@@ -0,0 +1,2 @@
1
+ import{Mx as Pq,On as T,Pn as Cq,Qx as cq}from"./cli-1.0.6-gjtt9hjc.mjs";import{kY as Uq,lY as Iq,oY as kq}from"./cli-1.0.6-nphrz836.mjs";import{J0 as hq,JY as aq,c0 as L,e0 as O}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as J,r3 as Q,s3 as vq}from"./cli-1.0.6-w3xpmc0m.mjs";import{C5 as Sq,i5 as bq,j5 as Mq}from"./cli-1.0.6-1a002r86.mjs";import{Baa as Nq,Daa as fq,R_ as Xq,S_ as jq,Tda as Rq,mea as Bq}from"./cli-1.0.6-3rnmt44c.mjs";import{cha as nq}from"./cli-1.0.6-61qpjst5.mjs";import{vra as yq,zra as Gq}from"./cli-1.0.6-c3q3ytrc.mjs";function dq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function eq(Y,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return Y.length>0&&!/^\s/.test(Y)&&!Y.startsWith("\x1B")}var Wq=Gq(()=>{kq();Bq();fq()});function V(Y){return Y.replace(/\+/g," + ")}function LH(Y){let q=Eq.c(99),{dimColor:H,fixedWidth:Dq,gap:x,paddingX:l}=Y,m=T("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=V(m),q[0]=m,q[1]=p;else p=q[1];let d=p,e=T("app:toggleTodos","Global","ctrl+t"),f;if(q[2]!==e)f=V(e),q[2]=e,q[3]=f;else f=q[3];let s=f,i=T("chat:undo","Chat","ctrl+_"),B;if(q[4]!==i)B=V(i),q[4]=i,q[5]=B;else B=q[5];let r=B,$=T("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=V($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=T("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=V(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Hq=T("chat:modelPicker","Chat","alt+p"),n;if(q[10]!==Hq)n=V(Hq),q[10]=Hq,q[11]=n;else n=q[11];let Jq=n,Lq=T("chat:fastMode","Chat","alt+o"),j;if(q[12]!==Lq)j=V(Lq),q[12]=Lq,q[13]=j;else j=q[13];let Oq=j,Qq=T("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Qq)S=V(Qq),q[14]=Qq,q[15]=S;else S=q[15];let Tq=S,Vq=T("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Vq)a=V(Vq),q[16]=Vq,q[17]=a;else a=q[17];let Fq=a,Yq=T("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Yq)h=V(Yq),q[18]=Yq,q[19]=h;else h=q[19];let Zq=h,gq=V(T("chat:increaseEffort","Chat","shift+right")),_q=V(T("chat:openDiff","Chat","ctrl+g")),pq=V(T("chat:openExplorer","Chat","ctrl+e")),C;if(q[20]!==H||q[21]!==Fq)C=null,q[20]=H,q[21]=Fq,q[22]=C;else C=q[22];let wq=C,zq=Dq?28:void 0,Z;if(q[23]!==H)Z=J(L,{children:J(O,{dimColor:H,children:"! for bash mode"})}),q[23]=H,q[24]=Z;else Z=q[24];let w;if(q[25]!==H)w=J(L,{children:J(O,{dimColor:H,children:"/ for commands"})}),q[25]=H,q[26]=w;else w=q[26];let z;if(q[27]!==H)z=J(L,{children:J(O,{dimColor:H,children:"@ for file paths"})}),q[27]=H,q[28]=z;else z=q[28];let A;if(q[29]!==H)A=J(L,{children:J(O,{dimColor:H,children:"& for background"})}),q[29]=H,q[30]=A;else A=q[30];let D;if(q[31]!==H)D=J(L,{children:J(O,{dimColor:H,children:"/btw for side question"})}),q[31]=H,q[32]=D;else D=q[32];let F;if(q[33]!==zq||q[34]!==Z||q[35]!==w||q[36]!==z||q[37]!==A||q[38]!==D)F=Q(L,{flexDirection:"column",width:zq,children:[Z,w,z,A,D,J(L,{children:Q(O,{dimColor:H,children:[pq," for file explorer"]})}),J(L,{children:Q(O,{dimColor:H,children:[_q," for diff reviewer"]})})]}),q[33]=zq,q[34]=Z,q[35]=w,q[36]=z,q[37]=A,q[38]=D,q[39]=F;else F=q[39];let Aq=Dq?35:void 0,G;if(q[40]!==H)G=J(L,{children:J(O,{dimColor:H,children:"double tap esc to clear input"})}),q[40]=H,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==H)N=J(L,{children:Q(O,{dimColor:H,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=H,q[44]=N;else N=q[44];let R;if(q[45]!==H||q[46]!==d)R=J(L,{children:Q(O,{dimColor:H,children:[d," for verbose output"]})}),q[45]=H,q[46]=d,q[47]=R;else R=q[47];let U;if(q[48]!==H||q[49]!==s)U=J(L,{children:Q(O,{dimColor:H,children:[s," to toggle tasks"]})}),q[48]=H,q[49]=s,q[50]=U;else U=q[50];let c;if(q[51]===Symbol.for("react.memo_cache_sentinel"))c=Kq(),q[51]=c;else c=q[51];let I;if(q[52]!==H)I=J(L,{children:J(O,{dimColor:H,children:c})}),q[52]=H,q[53]=I;else I=q[53];let K;if(q[54]!==Aq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==wq)K=Q(L,{flexDirection:"column",width:Aq,children:[G,N,R,U,wq,I]}),q[54]=Aq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=wq,q[61]=K;else K=q[61];let W;if(q[62]!==H||q[63]!==r)W=J(L,{children:Q(O,{dimColor:H,children:[r," to undo"]})}),q[62]=H,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==H)v=Xq()!=="windows"&&J(L,{children:J(O,{dimColor:H,children:"ctrl + z to suspend"})}),q[65]=H,q[66]=v;else v=q[66];let X;if(q[67]!==H||q[68]!==Zq)X=J(L,{children:Q(O,{dimColor:H,children:[Zq," to paste images"]})}),q[67]=H,q[68]=Zq,q[69]=X;else X=q[69];let b;if(q[70]!==H||q[71]!==Jq)b=J(L,{children:Q(O,{dimColor:H,children:[Jq," to switch model"]})}),q[70]=H,q[71]=Jq,q[72]=b;else b=q[72];let M;if(q[73]!==H||q[74]!==Oq)M=bq()&&Mq()&&J(L,{children:Q(O,{dimColor:H,children:[Oq," to toggle fast mode"]})}),q[73]=H,q[74]=Oq,q[75]=M;else M=q[75];let P;if(q[76]!==H||q[77]!==o)P=J(L,{children:Q(O,{dimColor:H,children:[o," to stash prompt"]})}),q[76]=H,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==H||q[80]!==Tq)E=J(L,{children:Q(O,{dimColor:H,children:[Tq," to edit in $EDITOR"]})}),q[79]=H,q[80]=Tq,q[81]=E;else E=q[81];let g;if(q[82]!==H)g=Pq()&&J(L,{children:J(O,{dimColor:H,children:"/keybindings to customize"})}),q[82]=H,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=Q(L,{flexDirection:"column",children:[W,v,X,b,J(L,{children:Q(O,{dimColor:H,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let u;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)u=Q(L,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=u;else u=q[98];return u}var Eq;var uq=Gq(()=>{hq();jq();cq();Cq();nq();Sq();Wq();vq();Eq=yq(aq(),1)});
2
+ export{dq as Bf,eq as Cf,Wq as Df,LH as Ef,uq as Ff};
@@ -0,0 +1,2 @@
1
+ import{J0 as k,JY as Z,e0 as K}from"./cli-1.0.6-6zqt7f43.mjs";import{r3 as J,s3 as H}from"./cli-1.0.6-w3xpmc0m.mjs";import{A9 as v,B9 as Y}from"./cli-1.0.6-3rnmt44c.mjs";import{vra as V,zra as X}from"./cli-1.0.6-c3q3ytrc.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
+ export{N as qh,C as rh};
@@ -0,0 +1,2 @@
1
+ import{MZ as v,NZ as Z,OZ as D,uZ as T,vZ as X,wZ as I,yZ as Y,zZ as p}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as P,s3 as V}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as H}from"./cli-1.0.6-6zh1kz2j.mjs";import{Qpa as F,Zma as W}from"./cli-1.0.6-8zcjrs1k.mjs";import{vra as A,zra as C}from"./cli-1.0.6-c3q3ytrc.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
+ export{u as Nh,M as Oh};
@@ -0,0 +1,2 @@
1
+ import{zra as b}from"./cli-1.0.6-c3q3ytrc.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as df,k as ef,q as ff,w as gf,g as hf};
@@ -0,0 +1,2 @@
1
+ import{ef as H,hf as A}from"./cli-1.0.6-jyqjk8ym.mjs";import{Af as _,vf as L,yf as P}from"./cli-1.0.6-5esxakc4.mjs";import{Kqa as U,ara as F}from"./cli-1.0.6-r0n4r13f.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
2
+ export{j as xb,C as yb,y as zb,S as Ab,h as Bb,f as Cb};
@@ -0,0 +1,2 @@
1
+ import{rra as n}from"./cli-1.0.6-j5xkwr5w.mjs";import{xra as r}from"./cli-1.0.6-c3q3ytrc.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
+ export{i as k9};
@@ -0,0 +1 @@
1
+ import{vha as q,xha as A,yha as x,zha as B}from"./cli-1.0.6-e3cstemm.mjs";import{aja as J}from"./cli-1.0.6-z06mmyvr.mjs";import{Zja as G}from"./cli-1.0.6-4r68vt91.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,4 @@
1
+ import{ura as Z}from"./cli-1.0.6-j5xkwr5w.mjs";import{Ara as O,xra as Y}from"./cli-1.0.6-c3q3ytrc.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
+ export{ye as nra};