@claudiolabs/claudin 1.1.1 → 1.1.2

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 (913) hide show
  1. package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +1 -0
  2. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +1 -0
  31. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +3 -0
  32. package/dist/chunks/agents-1.1.2-rxkey856.mjs +110 -0
  33. package/dist/chunks/api-1.1.2-fpd74byc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +1 -0
  36. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +1 -0
  37. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +1 -0
  41. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +1 -0
  47. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +4 -0
  52. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +1 -0
  55. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +1 -0
  57. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +9 -0
  58. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +2 -0
  60. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +2 -0
  61. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +2 -0
  62. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +2 -0
  64. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +2 -0
  65. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +133 -0
  66. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +2 -0
  67. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +2 -0
  68. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +17 -0
  69. package/dist/chunks/cli-1.1.2-26xrf159.mjs +2 -0
  70. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +25 -0
  71. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +3 -0
  72. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +4 -0
  73. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +2 -0
  74. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +15 -0
  75. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +3 -0
  76. package/dist/chunks/cli-1.1.2-312r29db.mjs +2 -0
  77. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +2 -0
  78. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +24 -0
  79. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +2 -0
  80. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +2 -0
  81. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +2 -0
  83. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +2 -0
  84. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +2 -0
  85. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +2 -0
  86. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +2 -0
  87. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +6 -0
  88. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +67 -0
  89. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +2 -0
  90. package/dist/chunks/cli-1.1.2-526csky8.mjs +2 -0
  91. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +12 -0
  92. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +25 -0
  93. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +2 -0
  94. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +2 -0
  95. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +4 -0
  96. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +2 -0
  97. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +2 -0
  98. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +5638 -0
  99. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +2 -0
  100. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +18 -0
  101. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +7 -0
  102. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +2 -0
  103. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +2 -0
  104. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +2 -0
  105. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +2 -0
  106. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +2 -0
  107. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +24 -0
  108. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +20 -0
  109. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +2 -0
  110. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +2 -0
  111. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +2 -0
  112. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +3 -0
  113. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +2 -0
  114. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +2 -0
  115. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +2 -0
  116. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +2 -0
  117. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +2 -0
  118. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +2 -0
  119. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +2 -0
  120. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +2 -0
  121. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +2 -0
  122. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +4 -0
  123. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +2 -0
  124. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +2 -0
  125. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +2 -0
  126. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +21 -0
  127. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +4 -0
  128. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +2 -0
  129. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +2 -0
  130. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +2 -0
  131. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +4 -0
  132. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +2 -0
  133. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +2 -0
  134. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +4 -0
  135. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +2 -0
  136. package/dist/chunks/cli-1.1.2-efe0402v.mjs +2 -0
  137. package/dist/chunks/cli-1.1.2-em7hye78.mjs +4 -0
  138. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +2 -0
  139. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +2 -0
  140. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +2 -0
  141. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +16 -0
  142. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +2 -0
  143. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +2 -0
  144. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +2 -0
  145. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +2 -0
  146. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +2 -0
  147. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +15 -0
  148. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +3 -0
  149. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +2 -0
  150. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +2 -0
  151. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +24 -0
  152. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +2 -0
  153. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +2 -0
  154. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +2 -0
  155. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +2 -0
  156. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +2 -0
  157. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +6 -0
  158. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +9 -0
  159. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +2 -0
  160. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +4 -0
  161. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +2 -0
  162. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +2 -0
  163. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +3 -0
  164. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +17 -0
  165. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +2 -0
  166. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +59 -0
  167. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +2 -0
  168. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +3 -0
  169. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +2 -0
  173. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +3 -0
  174. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +2 -0
  175. package/dist/chunks/cli-1.1.2-kav702qr.mjs +2 -0
  176. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +2 -0
  177. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +3 -0
  178. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +2 -0
  179. package/dist/chunks/cli-1.1.2-m0529q09.mjs +45 -0
  180. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +18 -0
  181. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +2 -0
  182. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +2 -0
  183. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +2 -0
  184. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +12 -0
  185. package/dist/chunks/cli-1.1.2-mr55880g.mjs +2 -0
  186. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +2 -0
  187. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +2 -0
  189. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +2 -0
  190. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +5 -0
  191. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +4 -0
  192. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +2 -0
  193. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +2 -0
  194. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +2 -0
  195. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +2 -0
  196. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +4 -0
  197. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +2 -0
  198. package/dist/chunks/cli-1.1.2-r32per66.mjs +2 -0
  199. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +2 -0
  200. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +6 -0
  201. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +2 -0
  202. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +2 -0
  203. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +8 -0
  204. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +15 -0
  205. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +2 -0
  208. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +2 -0
  209. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +34 -0
  211. package/dist/chunks/cli-1.1.2-se3yz188.mjs +2 -0
  212. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +2 -0
  213. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +133 -0
  214. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +2 -0
  215. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +2 -0
  216. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +2 -0
  217. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +2 -0
  218. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +12 -0
  219. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +6 -0
  220. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +2 -0
  221. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +2 -0
  222. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +2 -0
  223. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +4 -0
  224. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +2 -0
  225. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +3 -0
  226. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +39 -0
  227. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +2 -0
  228. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +2 -0
  229. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +2 -0
  230. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +5 -0
  231. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +2 -0
  232. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +2 -0
  233. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +42 -0
  234. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +2 -0
  235. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +2 -0
  236. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +2 -0
  237. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +58 -0
  238. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +3 -0
  239. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +50 -0
  240. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +2 -0
  241. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +2 -0
  242. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +2 -0
  243. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +2 -0
  244. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +12 -0
  245. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +18 -0
  246. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +2 -0
  247. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +2 -0
  248. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +2 -0
  249. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +202 -0
  250. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +3 -0
  251. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +2 -0
  252. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +1 -0
  253. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +2 -0
  254. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +2 -0
  255. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +6 -0
  256. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +3 -0
  257. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +2 -0
  258. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +2 -0
  259. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +2 -0
  260. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +1 -0
  261. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +1 -0
  262. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +3 -0
  263. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +1 -0
  264. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +1 -0
  265. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +1 -0
  266. package/dist/chunks/context-1.1.2-rw4msk80.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +1 -0
  270. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +9 -0
  271. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +1 -0
  274. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +1 -0
  278. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +1 -0
  279. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +1 -0
  283. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +13 -0
  284. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +1 -0
  288. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +1 -0
  289. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +1 -0
  292. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +1 -0
  294. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +1 -0
  297. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +1 -0
  300. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +1 -0
  302. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +4 -0
  303. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +1 -0
  305. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +6 -0
  307. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +1 -0
  311. package/dist/chunks/ide-1.1.2-je812srr.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +1 -0
  314. package/dist/chunks/index-1.1.2-3evh58r7.mjs +1 -0
  315. package/dist/chunks/index-1.1.2-69bhefzj.mjs +1 -0
  316. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +1 -0
  317. package/dist/chunks/index-1.1.2-7sphewt0.mjs +5 -0
  318. package/dist/chunks/index-1.1.2-947wna4y.mjs +1 -0
  319. package/dist/chunks/index-1.1.2-95c20hmc.mjs +1 -0
  320. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +1 -0
  321. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +2 -0
  322. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +1 -0
  323. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +9 -0
  324. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +1 -0
  325. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +1 -0
  326. package/dist/chunks/index-1.1.2-kzzb5289.mjs +1 -0
  327. package/dist/chunks/index-1.1.2-madt9yt1.mjs +1 -0
  328. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +2 -0
  329. package/dist/chunks/index-1.1.2-pzx0977r.mjs +1 -0
  330. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +1 -0
  331. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +1 -0
  332. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +1 -0
  333. package/dist/chunks/index-1.1.2-thaazk19.mjs +17 -0
  334. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +30 -0
  335. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +1 -0
  336. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +9 -0
  337. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +1 -0
  339. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +1 -0
  340. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +870 -0
  341. package/dist/chunks/install-1.1.2-89hhj53e.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +1 -0
  352. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +1 -0
  353. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +1 -0
  359. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +72 -0
  360. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +1 -0
  361. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +2 -0
  362. package/dist/chunks/node-1.1.2-msn09mvf.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +1 -0
  368. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +1 -0
  369. package/dist/chunks/passes-1.1.2-z98me43k.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +1 -0
  372. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +1 -0
  373. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +2 -0
  378. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +1 -0
  380. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +13 -0
  387. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +34 -0
  392. package/dist/chunks/registry-1.1.2-bteqae43.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +1 -0
  398. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +1 -0
  401. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +1 -0
  407. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +1 -0
  411. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +1 -0
  412. package/dist/chunks/setup-1.1.2-5f344krn.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +1 -0
  414. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +1 -0
  417. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +1 -0
  418. package/dist/chunks/stats-1.1.2-x2men93c.mjs +6 -0
  419. package/dist/chunks/status-1.1.2-k6342tq7.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +1 -0
  427. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +1 -0
  432. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +69 -0
  435. package/dist/chunks/types-1.1.2-vst16v9y.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +4 -0
  437. package/dist/chunks/update-1.1.2-7daxbkja.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +1 -0
  439. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +1 -0
  442. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +1 -0
  443. package/dist/chunks/util-1.1.2-790z163z.mjs +1 -0
  444. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +1 -0
  445. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.1-s78q59z8.mjs +0 -1
  456. package/dist/chunks/App-1.1.1-efs19kgh.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.1-batyxczq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.1-gxh3rb0c.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.1-xn0ghhf8.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.1-myj4gs4r.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.1-1f2wwv81.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.1-915bc3fz.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.1-zvp5dxyf.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.1-j54rpjza.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.1-my62gkan.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.1-shq78y5c.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.1-f7y0hygx.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.1-875g6ewa.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.1-1e52f3nk.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.1-f7qyyszc.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.1-ns4dbmkj.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.1-491ha27w.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.1-kkw6hq2j.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.1-whkx0y5w.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.1-j6jzkdg3.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.1-b37cg7xp.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.1-52gwqn04.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.1-83ejnp5w.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.1-4hre6f8b.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.1-7tb8517v.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.1-z9y2cj95.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.1-3c8p876v.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.1-z9eg0949.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.1-hnfrh305.mjs +0 -1
  485. package/dist/chunks/agents-1.1.1-hf8w814g.mjs +0 -3
  486. package/dist/chunks/agents-1.1.1-xqrqkwb5.mjs +0 -110
  487. package/dist/chunks/api-1.1.1-934f8zxk.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.1-e8353bvt.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.1-mzpss3sh.mjs +0 -1
  490. package/dist/chunks/auth-1.1.1-8xse81z1.mjs +0 -1
  491. package/dist/chunks/auth-1.1.1-9f3cp9gp.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.1-15ahwpy1.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.1-81k0pg1h.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.1-pndv2vca.mjs +0 -1
  495. package/dist/chunks/branch-1.1.1-wyjy4jfq.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.1-fz27rnbb.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.1-1srg7w12.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.1-hpve37v3.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.1-va485rwj.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.1-4e6545em.mjs +0 -1
  501. package/dist/chunks/btw-1.1.1-2hj5cz16.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.1-mbavcpyj.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.1-5brj0j0a.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.1-cy6xfej9.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.1-01qjcc1e.mjs +0 -4
  506. package/dist/chunks/caches-1.1.1-vcss5vxp.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.1-827j42dz.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.1-5j35wnk1.mjs +0 -1
  509. package/dist/chunks/clear-1.1.1-eb6r6tee.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.1-a2zg5e0p.mjs +0 -1
  511. package/dist/chunks/cli-1.1.1-01gn0bc1.mjs +0 -2
  512. package/dist/chunks/cli-1.1.1-01nvax13.mjs +0 -2
  513. package/dist/chunks/cli-1.1.1-05m3jbze.mjs +0 -2
  514. package/dist/chunks/cli-1.1.1-0eqyjkcc.mjs +0 -2
  515. package/dist/chunks/cli-1.1.1-0hn5dj2w.mjs +0 -2
  516. package/dist/chunks/cli-1.1.1-0rnw8vxn.mjs +0 -2
  517. package/dist/chunks/cli-1.1.1-0xwez66d.mjs +0 -67
  518. package/dist/chunks/cli-1.1.1-0xz1de77.mjs +0 -2
  519. package/dist/chunks/cli-1.1.1-152wk4rk.mjs +0 -2
  520. package/dist/chunks/cli-1.1.1-1987jcbz.mjs +0 -5
  521. package/dist/chunks/cli-1.1.1-19wm2xn6.mjs +0 -2
  522. package/dist/chunks/cli-1.1.1-1q3ezkgp.mjs +0 -4
  523. package/dist/chunks/cli-1.1.1-1rn8sc8r.mjs +0 -2
  524. package/dist/chunks/cli-1.1.1-1zr9ww4h.mjs +0 -2
  525. package/dist/chunks/cli-1.1.1-2b66vsz3.mjs +0 -3
  526. package/dist/chunks/cli-1.1.1-2ck5yx9f.mjs +0 -18
  527. package/dist/chunks/cli-1.1.1-2eervm4j.mjs +0 -2
  528. package/dist/chunks/cli-1.1.1-2g0asdx9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.1-2hr65a5m.mjs +0 -4
  530. package/dist/chunks/cli-1.1.1-2jscs5ek.mjs +0 -2
  531. package/dist/chunks/cli-1.1.1-2r6j3hc2.mjs +0 -2
  532. package/dist/chunks/cli-1.1.1-2wmsmw96.mjs +0 -2
  533. package/dist/chunks/cli-1.1.1-2xecrgas.mjs +0 -2
  534. package/dist/chunks/cli-1.1.1-2y2npk6a.mjs +0 -2
  535. package/dist/chunks/cli-1.1.1-2yqkaj2a.mjs +0 -4
  536. package/dist/chunks/cli-1.1.1-38kc1r2d.mjs +0 -2
  537. package/dist/chunks/cli-1.1.1-3avcamf3.mjs +0 -39
  538. package/dist/chunks/cli-1.1.1-3fb7zat9.mjs +0 -9
  539. package/dist/chunks/cli-1.1.1-3nhzbd0x.mjs +0 -2
  540. package/dist/chunks/cli-1.1.1-3pspjtmp.mjs +0 -18
  541. package/dist/chunks/cli-1.1.1-3wx8xt0d.mjs +0 -2
  542. package/dist/chunks/cli-1.1.1-3y91rx7d.mjs +0 -2
  543. package/dist/chunks/cli-1.1.1-3yhgq98b.mjs +0 -2
  544. package/dist/chunks/cli-1.1.1-3yk5zm2a.mjs +0 -2
  545. package/dist/chunks/cli-1.1.1-3zwjajhq.mjs +0 -2
  546. package/dist/chunks/cli-1.1.1-4232y84r.mjs +0 -2
  547. package/dist/chunks/cli-1.1.1-48eqv75k.mjs +0 -202
  548. package/dist/chunks/cli-1.1.1-4exyd7ra.mjs +0 -2
  549. package/dist/chunks/cli-1.1.1-4j7t9vcq.mjs +0 -2
  550. package/dist/chunks/cli-1.1.1-4nf2hftc.mjs +0 -24
  551. package/dist/chunks/cli-1.1.1-51qpx7j4.mjs +0 -2
  552. package/dist/chunks/cli-1.1.1-5a13gyb4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.1-5yv8wq29.mjs +0 -2
  554. package/dist/chunks/cli-1.1.1-6121wy9f.mjs +0 -3
  555. package/dist/chunks/cli-1.1.1-6587ae95.mjs +0 -2
  556. package/dist/chunks/cli-1.1.1-65apqfps.mjs +0 -2
  557. package/dist/chunks/cli-1.1.1-6h5x77nq.mjs +0 -2
  558. package/dist/chunks/cli-1.1.1-6n2sxzhk.mjs +0 -2
  559. package/dist/chunks/cli-1.1.1-6tztmxpt.mjs +0 -2
  560. package/dist/chunks/cli-1.1.1-6wwgxn4p.mjs +0 -2
  561. package/dist/chunks/cli-1.1.1-6zke1wc8.mjs +0 -2
  562. package/dist/chunks/cli-1.1.1-71h16h6t.mjs +0 -4
  563. package/dist/chunks/cli-1.1.1-71vwpynf.mjs +0 -2
  564. package/dist/chunks/cli-1.1.1-774eebcf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.1-783296xh.mjs +0 -6
  566. package/dist/chunks/cli-1.1.1-7bhncvpq.mjs +0 -4
  567. package/dist/chunks/cli-1.1.1-7gkmf39y.mjs +0 -25
  568. package/dist/chunks/cli-1.1.1-7t3w18nd.mjs +0 -2
  569. package/dist/chunks/cli-1.1.1-7x4t5f2a.mjs +0 -2
  570. package/dist/chunks/cli-1.1.1-85rrb9q4.mjs +0 -2
  571. package/dist/chunks/cli-1.1.1-884t9g0f.mjs +0 -2
  572. package/dist/chunks/cli-1.1.1-8ar2s628.mjs +0 -2
  573. package/dist/chunks/cli-1.1.1-8bt9x8md.mjs +0 -2
  574. package/dist/chunks/cli-1.1.1-8g62r2pb.mjs +0 -2
  575. package/dist/chunks/cli-1.1.1-8hpszz5x.mjs +0 -3
  576. package/dist/chunks/cli-1.1.1-8tzp0yrd.mjs +0 -2
  577. package/dist/chunks/cli-1.1.1-8zfnrs72.mjs +0 -2
  578. package/dist/chunks/cli-1.1.1-8zjem87v.mjs +0 -9
  579. package/dist/chunks/cli-1.1.1-8zzt6htb.mjs +0 -3
  580. package/dist/chunks/cli-1.1.1-94s27fva.mjs +0 -2
  581. package/dist/chunks/cli-1.1.1-98h55a72.mjs +0 -2
  582. package/dist/chunks/cli-1.1.1-9kv5a6f4.mjs +0 -2
  583. package/dist/chunks/cli-1.1.1-9p39qc3e.mjs +0 -5638
  584. package/dist/chunks/cli-1.1.1-9q6jbhm6.mjs +0 -6
  585. package/dist/chunks/cli-1.1.1-9rjrg0tv.mjs +0 -7
  586. package/dist/chunks/cli-1.1.1-9rrtz0k2.mjs +0 -2
  587. package/dist/chunks/cli-1.1.1-9syt3cqd.mjs +0 -2
  588. package/dist/chunks/cli-1.1.1-9tqznq04.mjs +0 -6
  589. package/dist/chunks/cli-1.1.1-9w0d3wxf.mjs +0 -2
  590. package/dist/chunks/cli-1.1.1-9wd4xvzd.mjs +0 -2
  591. package/dist/chunks/cli-1.1.1-9xxs59n0.mjs +0 -4
  592. package/dist/chunks/cli-1.1.1-a0pp3xv5.mjs +0 -2
  593. package/dist/chunks/cli-1.1.1-a2aanf2k.mjs +0 -2
  594. package/dist/chunks/cli-1.1.1-a8r32wr9.mjs +0 -2
  595. package/dist/chunks/cli-1.1.1-ajerx2nx.mjs +0 -2
  596. package/dist/chunks/cli-1.1.1-atzkmfy8.mjs +0 -2
  597. package/dist/chunks/cli-1.1.1-b1kqmh2w.mjs +0 -8
  598. package/dist/chunks/cli-1.1.1-b7abx3n7.mjs +0 -2
  599. package/dist/chunks/cli-1.1.1-bb95back.mjs +0 -2
  600. package/dist/chunks/cli-1.1.1-bkqayrk3.mjs +0 -2
  601. package/dist/chunks/cli-1.1.1-bzdx5f9h.mjs +0 -2
  602. package/dist/chunks/cli-1.1.1-bzqzhffr.mjs +0 -4
  603. package/dist/chunks/cli-1.1.1-ck3y4av6.mjs +0 -2
  604. package/dist/chunks/cli-1.1.1-cw6t7x5a.mjs +0 -2
  605. package/dist/chunks/cli-1.1.1-d21wwf9h.mjs +0 -2
  606. package/dist/chunks/cli-1.1.1-d63f9zds.mjs +0 -2
  607. package/dist/chunks/cli-1.1.1-daz59drp.mjs +0 -2
  608. package/dist/chunks/cli-1.1.1-dmd0wakf.mjs +0 -21
  609. package/dist/chunks/cli-1.1.1-e5sc3rwd.mjs +0 -1
  610. package/dist/chunks/cli-1.1.1-ea6eap5z.mjs +0 -2
  611. package/dist/chunks/cli-1.1.1-ebax5r8y.mjs +0 -2
  612. package/dist/chunks/cli-1.1.1-ec3zbk9q.mjs +0 -2
  613. package/dist/chunks/cli-1.1.1-egnem382.mjs +0 -24
  614. package/dist/chunks/cli-1.1.1-ekcthfcd.mjs +0 -25
  615. package/dist/chunks/cli-1.1.1-ex0sqz63.mjs +0 -2
  616. package/dist/chunks/cli-1.1.1-f4f8asne.mjs +0 -12
  617. package/dist/chunks/cli-1.1.1-fnhx5s3j.mjs +0 -18
  618. package/dist/chunks/cli-1.1.1-fwshj75j.mjs +0 -2
  619. package/dist/chunks/cli-1.1.1-g1awxrn4.mjs +0 -4
  620. package/dist/chunks/cli-1.1.1-g69kxy79.mjs +0 -2
  621. package/dist/chunks/cli-1.1.1-g76vwnqj.mjs +0 -2
  622. package/dist/chunks/cli-1.1.1-g7j0r82j.mjs +0 -2
  623. package/dist/chunks/cli-1.1.1-g96by86m.mjs +0 -2
  624. package/dist/chunks/cli-1.1.1-gkynj1h3.mjs +0 -133
  625. package/dist/chunks/cli-1.1.1-gmxcjwmv.mjs +0 -2
  626. package/dist/chunks/cli-1.1.1-gnhxj8zp.mjs +0 -2
  627. package/dist/chunks/cli-1.1.1-gtbama8g.mjs +0 -2
  628. package/dist/chunks/cli-1.1.1-gv6thx1d.mjs +0 -2
  629. package/dist/chunks/cli-1.1.1-h13exkfb.mjs +0 -2
  630. package/dist/chunks/cli-1.1.1-hd439wse.mjs +0 -2
  631. package/dist/chunks/cli-1.1.1-hjpxjf64.mjs +0 -2
  632. package/dist/chunks/cli-1.1.1-hz3enw9q.mjs +0 -5
  633. package/dist/chunks/cli-1.1.1-jebnfazq.mjs +0 -2
  634. package/dist/chunks/cli-1.1.1-jfy1zmx2.mjs +0 -15
  635. package/dist/chunks/cli-1.1.1-jht24afj.mjs +0 -2
  636. package/dist/chunks/cli-1.1.1-jhxy6tyz.mjs +0 -2
  637. package/dist/chunks/cli-1.1.1-jtdjbvbn.mjs +0 -50
  638. package/dist/chunks/cli-1.1.1-jv6s649f.mjs +0 -3
  639. package/dist/chunks/cli-1.1.1-jvcpm7sm.mjs +0 -58
  640. package/dist/chunks/cli-1.1.1-kb84b41j.mjs +0 -45
  641. package/dist/chunks/cli-1.1.1-kbqy5x92.mjs +0 -2
  642. package/dist/chunks/cli-1.1.1-kembhhn1.mjs +0 -3
  643. package/dist/chunks/cli-1.1.1-kwhspda1.mjs +0 -2
  644. package/dist/chunks/cli-1.1.1-ma5v2jch.mjs +0 -2
  645. package/dist/chunks/cli-1.1.1-matkcn4v.mjs +0 -3
  646. package/dist/chunks/cli-1.1.1-mfkfar88.mjs +0 -2
  647. package/dist/chunks/cli-1.1.1-mqrbnazn.mjs +0 -2
  648. package/dist/chunks/cli-1.1.1-mqx6avyz.mjs +0 -4
  649. package/dist/chunks/cli-1.1.1-mxx5vd6y.mjs +0 -2
  650. package/dist/chunks/cli-1.1.1-mymbst6p.mjs +0 -4
  651. package/dist/chunks/cli-1.1.1-n5zzg2fv.mjs +0 -2
  652. package/dist/chunks/cli-1.1.1-n70wqfbp.mjs +0 -2
  653. package/dist/chunks/cli-1.1.1-n7mc6bx5.mjs +0 -2
  654. package/dist/chunks/cli-1.1.1-npd8k2hb.mjs +0 -2
  655. package/dist/chunks/cli-1.1.1-nrfj4jj5.mjs +0 -6
  656. package/dist/chunks/cli-1.1.1-ntngssqy.mjs +0 -2
  657. package/dist/chunks/cli-1.1.1-nwg10cz1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.1-p6v0z6hs.mjs +0 -2
  659. package/dist/chunks/cli-1.1.1-ped3g2j0.mjs +0 -16
  660. package/dist/chunks/cli-1.1.1-q40shhn8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.1-q9wvkkjf.mjs +0 -59
  662. package/dist/chunks/cli-1.1.1-qfasf488.mjs +0 -3
  663. package/dist/chunks/cli-1.1.1-qx9beg4x.mjs +0 -2
  664. package/dist/chunks/cli-1.1.1-r0ewpxvn.mjs +0 -2
  665. package/dist/chunks/cli-1.1.1-r6d3a12p.mjs +0 -2
  666. package/dist/chunks/cli-1.1.1-r6rebhmb.mjs +0 -6
  667. package/dist/chunks/cli-1.1.1-r9nn4cq9.mjs +0 -2
  668. package/dist/chunks/cli-1.1.1-rcxk0q47.mjs +0 -3
  669. package/dist/chunks/cli-1.1.1-rd13jv1m.mjs +0 -2
  670. package/dist/chunks/cli-1.1.1-rkjpq1rt.mjs +0 -2
  671. package/dist/chunks/cli-1.1.1-rrfnctm7.mjs +0 -2
  672. package/dist/chunks/cli-1.1.1-s0qbvs8w.mjs +0 -2
  673. package/dist/chunks/cli-1.1.1-sbhptgsa.mjs +0 -2
  674. package/dist/chunks/cli-1.1.1-sj83jazr.mjs +0 -2
  675. package/dist/chunks/cli-1.1.1-sj9xzz88.mjs +0 -2
  676. package/dist/chunks/cli-1.1.1-str8bn0w.mjs +0 -20
  677. package/dist/chunks/cli-1.1.1-t3pmg9eh.mjs +0 -2
  678. package/dist/chunks/cli-1.1.1-tekhwq09.mjs +0 -2
  679. package/dist/chunks/cli-1.1.1-tmpebtqd.mjs +0 -24
  680. package/dist/chunks/cli-1.1.1-tmrnrx8v.mjs +0 -2
  681. package/dist/chunks/cli-1.1.1-tn50af03.mjs +0 -2
  682. package/dist/chunks/cli-1.1.1-v9ar4kzn.mjs +0 -15
  683. package/dist/chunks/cli-1.1.1-v9xqeqz0.mjs +0 -12
  684. package/dist/chunks/cli-1.1.1-ve2ye3ad.mjs +0 -2
  685. package/dist/chunks/cli-1.1.1-vj8vq3r2.mjs +0 -2
  686. package/dist/chunks/cli-1.1.1-vrj1t108.mjs +0 -2
  687. package/dist/chunks/cli-1.1.1-vsc2bhws.mjs +0 -2
  688. package/dist/chunks/cli-1.1.1-vvjjnyzw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.1-vyet04sj.mjs +0 -2
  690. package/dist/chunks/cli-1.1.1-wp27gqf3.mjs +0 -12
  691. package/dist/chunks/cli-1.1.1-wpky02br.mjs +0 -2
  692. package/dist/chunks/cli-1.1.1-wqdpr3ra.mjs +0 -2
  693. package/dist/chunks/cli-1.1.1-wtn7e4jz.mjs +0 -15
  694. package/dist/chunks/cli-1.1.1-wxtm9yxy.mjs +0 -34
  695. package/dist/chunks/cli-1.1.1-x3ae1bxc.mjs +0 -42
  696. package/dist/chunks/cli-1.1.1-x61tsmhm.mjs +0 -2
  697. package/dist/chunks/cli-1.1.1-x7n7cp4n.mjs +0 -3
  698. package/dist/chunks/cli-1.1.1-xdq9vz2v.mjs +0 -2
  699. package/dist/chunks/cli-1.1.1-xksd65yv.mjs +0 -3
  700. package/dist/chunks/cli-1.1.1-xx3e0bn5.mjs +0 -2
  701. package/dist/chunks/cli-1.1.1-ya166ffm.mjs +0 -17
  702. package/dist/chunks/cli-1.1.1-yc3xhtyn.mjs +0 -12
  703. package/dist/chunks/cli-1.1.1-ych7rrbd.mjs +0 -2
  704. package/dist/chunks/cli-1.1.1-ye3hmdgh.mjs +0 -3
  705. package/dist/chunks/cli-1.1.1-yga1m543.mjs +0 -2
  706. package/dist/chunks/cli-1.1.1-ypkgwx9d.mjs +0 -2
  707. package/dist/chunks/cli-1.1.1-yqss3x1b.mjs +0 -133
  708. package/dist/chunks/cli-1.1.1-z0pk7sm0.mjs +0 -2
  709. package/dist/chunks/cli-1.1.1-z31vnjht.mjs +0 -2
  710. package/dist/chunks/cli-1.1.1-zbnepy2q.mjs +0 -4
  711. package/dist/chunks/cli-1.1.1-zmzpxmeq.mjs +0 -2
  712. package/dist/chunks/cli-1.1.1-zve2w6c9.mjs +0 -17
  713. package/dist/chunks/cli-1.1.1-zxvwb38m.mjs +0 -2
  714. package/dist/chunks/client-1.1.1-j3w0pe6c.mjs +0 -1
  715. package/dist/chunks/color-1.1.1-h26c9ne7.mjs +0 -1
  716. package/dist/chunks/compact-1.1.1-w47181ep.mjs +0 -3
  717. package/dist/chunks/config-1.1.1-6zcy87ar.mjs +0 -1
  718. package/dist/chunks/config-1.1.1-trscazmb.mjs +0 -1
  719. package/dist/chunks/constants-1.1.1-ttnprx1k.mjs +0 -1
  720. package/dist/chunks/context-1.1.1-5sgcsmam.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.1-7hjf19rb.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.1-z6tpmna3.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.1-qv8vd2vd.mjs +0 -1
  724. package/dist/chunks/copy-1.1.1-x5m52tqg.mjs +0 -9
  725. package/dist/chunks/cost-1.1.1-rt2rxwm1.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.1-fgm4775d.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.1-878gtbt1.mjs +0 -1
  728. package/dist/chunks/debug-1.1.1-d8qa0g0j.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.1-bepehy24.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.1-abjyemqy.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.1-khq8s53d.mjs +0 -1
  732. package/dist/chunks/detection-1.1.1-hjbac0c8.mjs +0 -1
  733. package/dist/chunks/diff-1.1.1-9xwv88x6.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.1-fszqkj4v.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.1-w8ngdv52.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.1-c4n49v4q.mjs +0 -1
  737. package/dist/chunks/effort-1.1.1-esmpmzxn.mjs +0 -13
  738. package/dist/chunks/engine-1.1.1-07myw22m.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.1-byfwm61g.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.1-ww093azg.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.1-295v5dqy.mjs +0 -1
  742. package/dist/chunks/environments-1.1.1-hpwr5w28.mjs +0 -1
  743. package/dist/chunks/errors-1.1.1-hftq1zkm.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.1-f82pb78c.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.1-d1aydfab.mjs +0 -1
  746. package/dist/chunks/exit-1.1.1-yc9akff2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.1-vmv967b9.mjs +0 -1
  748. package/dist/chunks/export-1.1.1-0z1e15hc.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.1-4twkmntw.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.1-jg9fj653.mjs +0 -1
  751. package/dist/chunks/fast-1.1.1-qys2km8z.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.1-tr4y0ch0.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.1-7wz7x5ra.mjs +0 -1
  754. package/dist/chunks/git-1.1.1-51pkabvr.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.1-2zygs5gw.mjs +0 -1
  756. package/dist/chunks/goal-1.1.1-e9phftpw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.1-1ag8h7p5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.1-qef68xgb.mjs +0 -1
  759. package/dist/chunks/headless-1.1.1-jy6w561r.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.1-ed456vky.mjs +0 -6
  761. package/dist/chunks/help-1.1.1-t8j5v83g.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.1-vhpc5ejj.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.1-sb1mqcpz.mjs +0 -79
  764. package/dist/chunks/hooks-1.1.1-v40qht7p.mjs +0 -1
  765. package/dist/chunks/ide-1.1.1-jq6fzrr8.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.1-4y6xb66j.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.1-kt406stw.mjs +0 -1
  768. package/dist/chunks/index-1.1.1-22g434vw.mjs +0 -1
  769. package/dist/chunks/index-1.1.1-3tqmdx42.mjs +0 -1
  770. package/dist/chunks/index-1.1.1-6b23qrhd.mjs +0 -1
  771. package/dist/chunks/index-1.1.1-831bha9e.mjs +0 -1
  772. package/dist/chunks/index-1.1.1-8cnva9ne.mjs +0 -1
  773. package/dist/chunks/index-1.1.1-8da5q9g0.mjs +0 -1
  774. package/dist/chunks/index-1.1.1-90ykavq0.mjs +0 -2
  775. package/dist/chunks/index-1.1.1-99zmp2ps.mjs +0 -30
  776. package/dist/chunks/index-1.1.1-9px0bvba.mjs +0 -1
  777. package/dist/chunks/index-1.1.1-9y71kyrj.mjs +0 -2
  778. package/dist/chunks/index-1.1.1-adq8vvcq.mjs +0 -5
  779. package/dist/chunks/index-1.1.1-d9d1y0xy.mjs +0 -1
  780. package/dist/chunks/index-1.1.1-f3c3172e.mjs +0 -9
  781. package/dist/chunks/index-1.1.1-faj87xfe.mjs +0 -1
  782. package/dist/chunks/index-1.1.1-g0ax59dw.mjs +0 -1
  783. package/dist/chunks/index-1.1.1-h17gbfyk.mjs +0 -1
  784. package/dist/chunks/index-1.1.1-q6fnrh31.mjs +0 -1
  785. package/dist/chunks/index-1.1.1-qzgt3tqq.mjs +0 -1
  786. package/dist/chunks/index-1.1.1-rkne46w2.mjs +0 -1
  787. package/dist/chunks/index-1.1.1-wy3wddv5.mjs +0 -17
  788. package/dist/chunks/index-1.1.1-x398ec1v.mjs +0 -1
  789. package/dist/chunks/index-1.1.1-y44m8pc8.mjs +0 -9
  790. package/dist/chunks/index-1.1.1-ymbhqb7a.mjs +0 -1
  791. package/dist/chunks/init-1.1.1-xz02rb2g.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.1-kv3zvcqm.mjs +0 -1
  793. package/dist/chunks/ink-1.1.1-ts8kz51v.mjs +0 -1
  794. package/dist/chunks/insights-1.1.1-ngjqkjt0.mjs +0 -870
  795. package/dist/chunks/install-1.1.1-4r1x1e7v.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.1-bwwf005w.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.1-adwykfa7.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.1-mgk4dsdp.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.1-2kmkwc3e.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.1-217cgz80.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.1-h9nvn3pk.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.1-v0bjj4j7.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.1-fvfkg4pz.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.1-09829bee.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.1-ks9c0rqf.mjs +0 -1
  806. package/dist/chunks/log-1.1.1-ny9tjyjz.mjs +0 -1
  807. package/dist/chunks/main-1.1.1-dk2pmpcr.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.1-vh54nadj.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.1-0xajrtdb.mjs +0 -17
  810. package/dist/chunks/mcp-1.1.1-vbcrdqmb.mjs +0 -4
  811. package/dist/chunks/mcp-1.1.1-xp78k98x.mjs +0 -1
  812. package/dist/chunks/mcpb-1.1.1-rhne101r.mjs +0 -1
  813. package/dist/chunks/memory-1.1.1-scrmwf7c.mjs +0 -72
  814. package/dist/chunks/model-1.1.1-as90vvvf.mjs +0 -1
  815. package/dist/chunks/model-1.1.1-jyf2vnvg.mjs +0 -2
  816. package/dist/chunks/node-1.1.1-ha7q8qzq.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.1-stj442qp.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.1-tbbj59s9.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.1-s7dgeq38.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.1-sw5txmkn.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.1-yq34k18v.mjs +0 -1
  822. package/dist/chunks/parser-1.1.1-905wxz1h.mjs +0 -1
  823. package/dist/chunks/passes-1.1.1-tzyxx4nr.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.1-32frrkp8.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.1-52vyx1cw.mjs +0 -1
  826. package/dist/chunks/plan-1.1.1-1xwn0q2w.mjs +0 -1
  827. package/dist/chunks/plist-1.1.1-x63x823y.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.1-2137mb81.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.1-vswc3yva.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.1-qwrzc7gx.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.1-81dgne38.mjs +0 -2
  832. package/dist/chunks/print-1.1.1-zxwjkq6w.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.1-7taqcgcn.mjs +0 -1
  834. package/dist/chunks/process-1.1.1-cmc5gnbm.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.1-7mebt6rm.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.1-hp957bf8.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.1-1ebtk0je.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.1-rghw84pr.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.1-x63nzadg.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.1-8006jsvm.mjs +0 -13
  841. package/dist/chunks/provider-1.1.1-znmbhpqc.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.1-tncrzs7g.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.1-hvgdx6gz.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.1-03pfc3mn.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.1-d7trtqbt.mjs +0 -34
  846. package/dist/chunks/registry-1.1.1-10hk5pdr.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.1-ymmqtngr.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.1-y2fq7m0b.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.1-09923mmx.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.1-shksn0qq.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.1-x6zsy3p0.mjs +0 -1
  852. package/dist/chunks/rename-1.1.1-33edcj9v.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.1-pm1k9p9p.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.1-v540zdz4.mjs +0 -1
  855. package/dist/chunks/resume-1.1.1-dh01es5c.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.1-c67qy3xg.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.1-ffyvn3c6.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.1-mm9fvkrt.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.1-t72pc0m1.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.1-ftncjx7h.mjs +0 -1
  861. package/dist/chunks/session-1.1.1-npa4qjy3.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.1-mnz0wg6k.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.1-rkn2r5h7.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.1-1swj757c.mjs +0 -1
  865. package/dist/chunks/settings-1.1.1-22mzj46y.mjs +0 -1
  866. package/dist/chunks/setup-1.1.1-f7fxdsa8.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.1-000q9sh0.mjs +0 -1
  868. package/dist/chunks/skills-1.1.1-e5343fy7.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.1-47a6124t.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.1-acthvy1s.mjs +0 -1
  871. package/dist/chunks/state-1.1.1-7pv2ergw.mjs +0 -1
  872. package/dist/chunks/stats-1.1.1-gkq9kw3d.mjs +0 -6
  873. package/dist/chunks/status-1.1.1-c8wh646y.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.1-x16691x3.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.1-s9eb1ebz.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.1-hf2m8vwd.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.1-bh0tny54.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.1-33rs06c9.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.1-8tegxvgv.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.1-dckvxw7f.mjs +0 -1
  881. package/dist/chunks/theme-1.1.1-xdyfpwgx.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.1-48dgjam0.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.1-ja387fza.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.1-7byzrvcw.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.1-ptantdef.mjs +0 -1
  886. package/dist/chunks/tools-1.1.1-ptw1g92g.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.1-adv5nypt.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.1-b28vqpjf.mjs +0 -69
  889. package/dist/chunks/types-1.1.1-8fh9zk18.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.1-g05tw4qq.mjs +0 -4
  891. package/dist/chunks/update-1.1.1-kbve1bfd.mjs +0 -88
  892. package/dist/chunks/upgrade-1.1.1-6kxsf3f3.mjs +0 -1
  893. package/dist/chunks/upload-1.1.1-ymhqntg7.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.1-e5mpv3vk.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.1-v5t4s4mm.mjs +0 -1
  896. package/dist/chunks/usage-1.1.1-7vhbkw6t.mjs +0 -1
  897. package/dist/chunks/util-1.1.1-1gy72074.mjs +0 -1
  898. package/dist/chunks/utils-1.1.1-dk86qenr.mjs +0 -1
  899. package/dist/chunks/vim-1.1.1-3xxzx58p.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.1-cs9xsv8s.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.1-36zhrjfn.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.1-wgesmc0j.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.1-gjxqq9he.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.1-2bwg78x8.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.1-d42z1v61.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.1-tevg51mj.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.1-x3ph4re0.mjs → cli-1.1.2-3vyt3jw9.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.1-10s3pxec.mjs → cli-1.1.2-6d3jf0sj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.1-xd0vsxbj.mjs → cli-1.1.2-6jbsqbdw.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.1-f1n1hjs0.mjs → cli-1.1.2-8t8veykp.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.1-kr5z77zj.mjs → cli-1.1.2-btgmqahb.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.1-y1n8t2yy.mjs → cli-1.1.2-pgz05ddc.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.1-ghx32shb.mjs → cli-1.1.2-r4rfggdk.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Pb as W,Qb as z}from"./cli-1.1.2-79hm6s3a.mjs";import{Vb as R}from"./cli-1.1.2-96wg2gfk.mjs";import{GW as M,HW as w}from"./cli-1.1.2-aav0ncfm.mjs";import{vka as L,yka as j}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as Z,ala as H}from"./cli-1.1.2-dgw89jzs.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
+ export{I as Kb,k as Lb,D as Mb};
@@ -0,0 +1,2 @@
1
+ import{Bx as U,Cx as V,Fx as f,Nu as R,Ou as T,Pu as $}from"./cli-1.1.2-6cj9ggma.mjs";import{J6 as Q,K6 as _}from"./cli-1.1.2-f8pc3h46.mjs";import{Mga as G,Uga as Z,fba as L,mba as Y}from"./cli-1.1.2-z31tqg0s.mjs";import{Esa as X}from"./cli-1.1.2-10g0wy7w.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
2
+ export{O as ad,S as bd,I as cd,N as dd,P as ed,h as fd};
@@ -0,0 +1,17 @@
1
+ import{Csa as y,Fsa as b}from"./cli-1.1.2-10g0wy7w.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
2
+ `).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
3
+ `)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
4
+ Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
5
+ `),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
6
+ `),Y.enqueue(`\r
7
+ `)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
8
+ ${X}\r
9
+ `)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
10
+ `),X.push(J),X.push(`\r
11
+ `)}),w.on("end",async()=>{if(X.push(`0\r
12
+ `),M){let J=I(await Y);X.push(`${A}:${J}\r
13
+ `),X.push(`\r
14
+ `)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
15
+ If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-1.1.2-y8ab1zbc.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 tsa,h1 as usa,D0 as vsa,C$ as wsa,F0 as xsa,ST as ysa,C0 as zsa};
@@ -0,0 +1,2 @@
1
+ import{xe as V,ze as B}from"./cli-1.1.2-fs1t9yw3.mjs";import{Gx as Q,Hx as q,aS as F,nk as L,vO as U,xO as w}from"./cli-1.1.2-6cj9ggma.mjs";import{Zaa as K,cba as k}from"./cli-1.1.2-z31tqg0s.mjs";import{vka as I,yka as $}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as G,ala as _}from"./cli-1.1.2-dgw89jzs.mjs";import{Esa as Z}from"./cli-1.1.2-10g0wy7w.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
+ export{h as ve,D as we};
@@ -0,0 +1,25 @@
1
+ import{$u as t,CK as Pq,JK as Zq,LK as Uq,OJ as b,PJ as R,Pp as a,QJ as vq,Rp as Kq,TJ as p,UJ as S,VJ as zq,Vu as s,WJ as Bq,XJ as I,YJ as k,Zx as e,_x as Nq,cl as r,dK as Jq,eK as Qq,el as Wq,fv as Hq,iK as wq,lK as Vq,mK as Oq,oK as Yq,pB as qq,qB as Xq,rR as $q,xR as yq}from"./cli-1.1.2-6cj9ggma.mjs";import{Mga as h,Uga as Fq}from"./cli-1.1.2-z31tqg0s.mjs";import{Eia as n,Gia as Lq}from"./cli-1.1.2-s76jqr70.mjs";import{Oka as y,ala as jq}from"./cli-1.1.2-dgw89jzs.mjs";import{Esa as M}from"./cli-1.1.2-10g0wy7w.mjs";function x(B,z){let J=g[z]??1,Z=B!==void 0?g[B]:void 0;if(Z===void 0)return z;return Z<=J?B:z}var g;var m=M(()=>{g={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
+ …[truncated ${B.length-z} chars]`}function u(B,z,J,Z){let Y=[];if(Y.push(`You are a worker agent in the "${B.name}" workflow, phase "${Z.name}".`),B.instructions.trim())Y.push(`Workflow instructions:
3
+ ${B.instructions.trim()}`);if(Y.push(`Task:
4
+ ${z}`),J.trim())Y.push(`Work so far (accumulated artifact from earlier phases):
5
+ ${C(J.trim(),Gq)}`);return Y.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),Y.join(`
6
+
7
+ `)}function c(B,z){let J=[];if(J.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())J.push(`Workflow instructions:
8
+ ${z.instructions.trim()}`);J.push(`Task:
9
+ ${B.task}`);let Z=z.steps.findIndex((V)=>V.name===B.currentStep),Y=z.steps.map((V,Q)=>{let j=Q<Z?"[done]":Q===Z?"[current]":"[pending]",H=I(V)?" (terminal)":"";return` ${Q+1}. ${V.name} ${j}${H}`}).join(`
10
+ `);if(J.push(`Phases:
11
+ ${Y}`),B.history.length>0){let V=B.history.map((Q)=>{let j=Q.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
+ ${C(q.output,f).split(`
13
+ `).map((N)=>` ${N}`).join(`
14
+ `)}`}).join(`
15
+ `),H=Q.decision?` decision: ${Q.decision.decision}${Q.decision.target?` → ${Q.decision.target}`:""} — ${Q.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${Q.step}":
16
+ ${j}
17
+ ${Q.synthesis?` synthesis: ${C(Q.synthesis,f)}
18
+ `:""}${H}`}).join(`
19
+
20
+ `);J.push(`History (all phases so far):
21
+ ${V}`)}let G=z.steps[Z]?.handbackTo??[];return J.push(G.length>0?`From the current phase you may hand back to: ${G.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),J.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),J.join(`
22
+
23
+ `)}var f=4000,Gq=6000;var l=M(()=>{k()});function d(B,z,J){let Z=J.steps,Y=Z.findIndex((j)=>j.name===B.currentStep),$={...B.refineCounts},G=B.transitions+1,V=B.currentStep,Q="running";if(z.decision==="advance"){let j=Z[Y+1];if(I(j)){if(Q="done",j)V=j.name}else V=j.name}else if(z.decision==="refine"){if($[V]=($[V]??0)+1,$[V]>S)Q="stalled"}else{let j=Z[Y]?.handbackTo??[];if(!z.target||!j.includes(z.target))Q="stalled";else if($[z.target]=($[z.target]??0)+1,$[z.target]>S)Q="stalled";else V=z.target}if(Q==="running"&&G>=p)Q="stalled";return{...B,currentStep:V,status:Q,refineCounts:$,transitions:G,updatedAt:Date.now()}}var i=M(()=>{k()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function hq(B){let z="",J=0;for(let Y=B.length-1;Y>=0;Y--){let $=B[Y];if($.type!=="assistant"||!$.message)continue;if(!z){let G=($.message.content??[]).filter((V)=>V.type==="text"&&V.text);if(G.length>0)z=G.map((V)=>V.text??"").join(`
24
+ `)}if(J===0&&$.message.usage)J=$q($.message.usage);if(z&&J)break}let Z=e(B);return{text:z,tokens:J,tools:Z}}async function o(B){let{label:z,agentDef:J,promptText:Z,toolUseContext:Y,canUseTool:$,extraTools:G,runId:V}=B,Q=Date.now(),j=Y.getAppState(),H=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(J.permissionMode,H)},L=Zq(q,j.mcp.tools);if(G&&G.length>0)L=[...L,...G];let N=J.model??String(Y.options.mainLoopModel??""),F=[],X,P=!1;try{let K=qq({agentDefinition:J,promptMessages:[Yq({content:Z})],toolUseContext:Y,canUseTool:$,isAsync:!1,querySource:a(J.agentType,s(J)),availableTools:L,transcriptSubdir:`workflows/${V}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let w of K)if(F.push(w),w.type==="attachment"&&w.attachment?.type==="structured_output")X=w.attachment.data}catch(K){if(y(K))throw K;h(K),P=!0}let{text:E,tokens:_,tools:v}=hq(F);return{run:{label:z,model:N,tokens:_,tools:v,ms:Date.now()-Q,output:P?"":E,failed:P},structuredOutput:X}}async function tq(B){let{def:z,task:J,toolUseContext:Z,canUseTool:Y,onProgress:$,signal:G}=B,{allAgents:V}=await t(n()),Q=new Map(V.map((N)=>[N.agentType,N]));Q.set(b,R);let j=Q.get(z.main??b)??R,H=new AbortController;if(G)if(G.aborted)H.abort();else G.addEventListener("abort",()=>H.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:J,firstStep:z.steps[0].name});$?.(q);let L=async()=>{await Qq(q),$?.(q)};while(q.status==="running"){if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let N=z.steps.findIndex((W)=>W.name===q.currentStep),F=z.steps[N];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let X;try{X=(await Vq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=Q.get(O);A=D?await o({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,J,q.artifact,F),toolUseContext:Z,canUseTool:Y,runId:q.runId,abortController:H}):T}catch(D){if(y(D))throw D;h(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let P={step:F.name,stepIndex:N,agents:X,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+X.reduce((W,O)=>W+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&X.every((W)=>W.failed)){h(Error(`workflow phase "${F.name}": all ${X.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){h(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],v;try{v=await o({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Z,canUseTool:Y,extraTools:_,runId:q.runId,abortController:H})}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let K=zq.safeParse(v.structuredOutput),w=[...q.history];if(w[w.length-1]={...P,synthesis:v.run.output,decision:K.success?K.data:null,agents:[...X,v.run]},q={...q,history:w,artifact:v.run.output.trim()?v.run.output:q.artifact,totalTokens:q.totalTokens+v.run.tokens,updatedAt:Date.now()},!K.success){h(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Hq();Nq();Xq();Wq();Lq();jq();Fq();Pq();Kq();yq();vq();m();l();wq();i();k()});
25
+ export{tq as zi,Eq as Ai};
@@ -0,0 +1,3 @@
1
+ import{Mg as d,Ng as Vq}from"./cli-1.1.2-jxkffay4.mjs";import{FT as Oq,HS as a,JS as yq,tT as l}from"./cli-1.1.2-6cj9ggma.mjs";import{D1 as Gq,Y0 as T,_0 as R,s1 as $,zZ as Zq}from"./cli-1.1.2-jpgqkhxd.mjs";import{A2 as e,v2 as t,x2 as v}from"./cli-1.1.2-pgt1vydc.mjs";import{k4 as P,l4 as N,m4 as S}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as Yq}from"./cli-1.1.2-y2eet2t4.mjs";import{K4 as u,L4 as Aq}from"./cli-1.1.2-vdtd8tyw.mjs";import{Q_ as G,S_ as o,Vaa as s,yaa as j}from"./cli-1.1.2-z31tqg0s.mjs";import{Eia as w,Gia as r}from"./cli-1.1.2-s76jqr70.mjs";import{vka as L,yka as n}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as c,ala as Xq}from"./cli-1.1.2-dgw89jzs.mjs";import{Vqa as i,Wma as f}from"./cli-1.1.2-s2xde2xb.mjs";import{Asa as I,Esa as h}from"./cli-1.1.2-10g0wy7w.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
+ Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
3
+ export{mq as Kg,Bq as Lg};
@@ -0,0 +1,4 @@
1
+ import{$d as L,Xd as j,Yd as w,Zd as _,_d as D,ae as A,be as O}from"./cli-1.1.2-ad1q4yds.mjs";import{HS as h,JS as y,gB as W,jB as V,lB as C,rM as X,sM as I,up as R,xp as b}from"./cli-1.1.2-6cj9ggma.mjs";import{A_ as N,Mga as U,Uga as S,z_ as Q}from"./cli-1.1.2-z31tqg0s.mjs";import{sja as K,vja as v}from"./cli-1.1.2-whyrn26g.mjs";import{Aka as x,Eka as M}from"./cli-1.1.2-a9n9p929.mjs";import{Vka as B,ala as F}from"./cli-1.1.2-dgw89jzs.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
2
+ `);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
3
+ `),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
4
+ export{g as h,a as i,i as j,u as k,n as l,r as m};
@@ -0,0 +1,2 @@
1
+ import{DS as i,GQ as r,_C as K,aD as I,bD as _,dD as p,hC as P,nC as b,tC as j,vQ as f,wQ as L,wv as T}from"./cli-1.1.2-6cj9ggma.mjs";import{lW as A,mW as n}from"./cli-1.1.2-eqyyfzzp.mjs";import{sja as E,vja as C}from"./cli-1.1.2-whyrn26g.mjs";import{Aja as S,hka as M,lka as m,vka as Z,yja as F,yka as u}from"./cli-1.1.2-re4qc97z.mjs";import{Sma as Y,Tma as k,Vqa as c,xqa as v}from"./cli-1.1.2-s2xde2xb.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
+ export{Zq as fb};
@@ -0,0 +1,15 @@
1
+ import{A2 as VJ,x2 as qJ}from"./cli-1.1.2-pgt1vydc.mjs";import{Bba as ZJ,Dba as jJ,Mga as q,Q$ as YJ,Qea as U,R$ as TJ,R_ as W,S_ as f,Sda as $J,Uga as u,aea as AJ,mfa as m,uba as y,wba as E}from"./cli-1.1.2-z31tqg0s.mjs";import{sja as F,vja as NJ}from"./cli-1.1.2-whyrn26g.mjs";import{$ja as N,_ja as b,dka as P,hka as w,lka as D,vka as K,yka as xJ}from"./cli-1.1.2-re4qc97z.mjs";import{Fka as QJ,Wka as M,Xka as v,_ka as n,ala as j}from"./cli-1.1.2-dgw89jzs.mjs";import{dla as O,qla as k}from"./cli-1.1.2-gxzwceae.mjs";import{Esa as T}from"./cli-1.1.2-10g0wy7w.mjs";import{access as d,chmod as vJ,writeFile as RJ}from"fs/promises";import{homedir as h}from"os";import{join as B}from"path";function A(){return B(O(),"local")}function _J(J=h()){return B(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([B(Y,"local"),_J(Q)]))}function c(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function GJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return B(A(),"claudin")}function rJ(){return GJ(y())}async function I(J,Q,Y){try{return await RJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await w().mkdir(J),await I(B(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
2
+ exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return U(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=T(()=>{E();m();k();j();f();D();u();P()});import{open as MJ,readFile as wJ,stat as yJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await wJ(J,{encoding:"utf8"})).split(`
3
+ `)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
4
+ `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=T(()=>{j();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=y();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=N(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!v(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let _=await r(J),G=_?await e(_):null;if(G&&X===G)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let x=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(x.code!==0){q(new R(`Failed to refresh the ${Z} global install at ${$}: ${x.stdout} ${x.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new R(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new R(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!v(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!v(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function BJ(){return H(O(),".update.lock")}async function DJ(){let J=w(),Q=BJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!v($))return q($),!1}}catch(Y){if(!v(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=w(),Q=BJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(v(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new R("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=N(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return N(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new R("Another process is currently installing an update")),F("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
+ Error: Windows NPM detected in WSL
6
+
7
+ You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
+ This configuration is not supported for updates.
9
+
10
+ To fix this issue:
11
+ 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
+ 2. Make sure Linux NPM is in your PATH before the Windows version
13
+ 3. Try updating again with 'claude update'
14
+ `),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",_=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(_.code!==0){let G=new R(`Failed to install new version of claude: ${_.stdout} ${_.stderr}`);return q(G),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),U((G)=>({...G,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var R,FJ=4096,IJ,JJ=300000;var dJ=T(()=>{NJ();E();m();xJ();jJ();k();j();f();D();u();TJ();VJ();AJ();o();P();R=class R extends QJ{};IJ=/ENOENT/i});
15
+ export{rJ as lU,JQ as mU,QQ as nU,YQ as oU,ZQ as pU,g as qU,S as rU,a as sU,L as tU,l as uU,UJ as vU,HQ as wU,o as xU,zJ as yU,HJ as zU,IQ as AU,kQ as BU,bQ as CU,PQ as DU,BJ as EU,mJ as FU,DQ as GU,fQ as HU,EQ as IU,mQ as JU,uQ as KU,dQ as LU,dJ as MU};
@@ -0,0 +1,3 @@
1
+ import{A2 as w,y2 as k}from"./cli-1.1.2-pgt1vydc.mjs";import{E8 as j,Y8 as v}from"./cli-1.1.2-f8pc3h46.mjs";import{Uha as d,dia as h,eia as s}from"./cli-1.1.2-7jcscwh5.mjs";import{qla as q}from"./cli-1.1.2-gxzwceae.mjs";import{Esa as p}from"./cli-1.1.2-10g0wy7w.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
+ Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
3
+ export{x as WW,O as XW,P as YW,Q as ZW,R as _W,U as $W,W as aX,X as bX,z as cX};
@@ -0,0 +1,2 @@
1
+ import{eo as M,fo as G,vG as A,xG as O}from"./cli-1.1.2-6cj9ggma.mjs";import{D1 as W,Y0 as w,_0 as d,c1 as v,zZ as U}from"./cli-1.1.2-jpgqkhxd.mjs";import{k4 as i,l4 as a,m4 as S}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as N}from"./cli-1.1.2-y2eet2t4.mjs";import{_ea as I,mfa as P}from"./cli-1.1.2-z31tqg0s.mjs";import{sja as h,vja as L}from"./cli-1.1.2-whyrn26g.mjs";import{Asa as b,Esa as B}from"./cli-1.1.2-10g0wy7w.mjs";function V(t){let e=T.c(18),{onDone:g,isStandaloneDialog:D,externalIncludes:r}=t,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect(q,s);let c;if(e[1]!==g)c=(E)=>{if(E==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),I($);else h("tengu_claude_md_external_includes_dialog_accepted",{}),I(Y);g()},e[1]=g,e[2]=c;else c=e[2];let l=c,u;if(e[3]!==l)u=()=>{l("no")},e[3]=l,e[4]=u;else u=e[4];let y=u,C=!D,x=!D,m;if(e[5]===Symbol.for("react.memo_cache_sentinel"))m=i(d,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),e[5]=m;else m=e[5];let o;if(e[6]!==r)o=r&&r.length>0&&a(w,{flexDirection:"column",children:[i(d,{dimColor:!0,children:"External imports:"}),r.map(R)]}),e[6]=r,e[7]=o;else o=e[7];let p;if(e[8]===Symbol.for("react.memo_cache_sentinel"))p=a(d,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",i(v,{url:"https://code.claude.com/docs/en/security"})," "]}),e[8]=p;else p=e[8];let f;if(e[9]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=f;else f=e[9];let n;if(e[10]!==l)n=i(A,{options:f,onChange:(E)=>l(E)}),e[10]=l,e[11]=n;else n=e[11];let _;if(e[12]!==y||e[13]!==n||e[14]!==C||e[15]!==x||e[16]!==o)_=a(M,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[m,o,p,n]}),e[12]=y,e[13]=n,e[14]=C,e[15]=x,e[16]=o,e[17]=_;else _=e[17];return _}function R(t,e){return a(d,{dimColor:!0,children:[" ",t.path]},e)}function Y(t){return{...t,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function $(t){return{...t,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function q(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k;var z=B(()=>{L();W();P();O();G();S();T=b(U(),1),k=b(N(),1)});
2
+ export{V as Qg,z as Rg};
@@ -0,0 +1,2 @@
1
+ import{Mga as C,Q_ as z,S_ as H,Uga as J}from"./cli-1.1.2-z31tqg0s.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,24 @@
1
+ import{ZX as T,iY as c}from"./cli-1.1.2-yj8m159m.mjs";import{C2 as w,F2 as n}from"./cli-1.1.2-tn2dw7tr.mjs";import{P_ as M,Q$ as y,R$ as g,R_ as X,S_ as f}from"./cli-1.1.2-z31tqg0s.mjs";import{$ja as v,Aja as F,_ja as K,dka as m,vka as Z,yja as R,yka as h}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as Y,_ka as W,ala as D}from"./cli-1.1.2-dgw89jzs.mjs";import{dla as E,qla as S}from"./cli-1.1.2-gxzwceae.mjs";import{Vqa as j,Wma as k,_ma as A,ana as N}from"./cli-1.1.2-s2xde2xb.mjs";import{Esa as H}from"./cli-1.1.2-10g0wy7w.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
+ $pid = ${String(q)}
3
+ $ancestors = @()
4
+ for ($i = 0; $i -lt ${J}; $i++) {
5
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
+ if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
+ $pid = $proc.ParentProcessId
8
+ $ancestors += $pid
9
+ }
10
+ $ancestors -join ','
11
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
+ `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
+ $currentPid = ${String(q)}
14
+ $commands = @()
15
+ for ($i = 0; $i -lt ${J}; $i++) {
16
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
+ if (-not $proc) { break }
18
+ if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
+ if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
+ $currentPid = $proc.ParentProcessId
21
+ }
22
+ $commands -join [char]0
23
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
+ export{O as EX,i as FX,e as GX,qq as HX,_ as IX,Uq as JX,Bq as KX,C as LX,Mq as MX,I as NX,Aq as OX,d as PX,r as QX,t as RX};
@@ -0,0 +1,2 @@
1
+ import{Esa as o}from"./cli-1.1.2-10g0wy7w.mjs";var n=()=>null,e;var t=o(()=>{e=n});
2
+ export{e as Mi,t as Ni};
@@ -0,0 +1,2 @@
1
+ import{Tea as P,mfa as y}from"./cli-1.1.2-z31tqg0s.mjs";import{Esa as U}from"./cli-1.1.2-10g0wy7w.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ export{G as gX,M as hX,N as iX,Y as jX,C as kX,_ as lX,R as mX,f as nX,E as oX,I as pX,k as qX,A as rX,b as sX,h as tX,m as uX,p as vX,u as wX,T as xX,e as yX,W as zX,a as AX,s as BX,r as CX,g as DX};
@@ -0,0 +1,2 @@
1
+ import{X8 as v,Y8 as C}from"./cli-1.1.2-f8pc3h46.mjs";import{Nfa as x,Ofa as Y,mea as Z,nea as V}from"./cli-1.1.2-z31tqg0s.mjs";import{Uha as R,Yha as W,eia as O}from"./cli-1.1.2-7jcscwh5.mjs";import{qja as Q,rja as M}from"./cli-1.1.2-qge4zbeg.mjs";import{_ja as P,dka as I,vka as f,yka as L}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as w,ala as H}from"./cli-1.1.2-dgw89jzs.mjs";import{sra as N,tra as F}from"./cli-1.1.2-9rh5p8p5.mjs";import{Pra as X,fsa as U}from"./cli-1.1.2-m2ar3b2y.mjs";import{Bsa as h,Esa as B}from"./cli-1.1.2-10g0wy7w.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 RW,n as SW,o as TW,t as UW,d as VW};
@@ -0,0 +1,2 @@
1
+ import{Esa as C}from"./cli-1.1.2-10g0wy7w.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
2
+ export{L as Wi,M as Xi,N as Yi,H as Zi};
@@ -0,0 +1,2 @@
1
+ import{Vh as Vq,Wh as fq}from"./cli-1.1.2-63p3yvzk.mjs";import{FY as Qq,HY as Uq,IY as Hq,jY as Pq,kY as mq,yY as o,zY as pq}from"./cli-1.1.2-9ash84j3.mjs";import{D1 as Wq,Y0 as M,_0 as g,zZ as Sq}from"./cli-1.1.2-jpgqkhxd.mjs";import{k4 as Z,l4 as F,m4 as Jq}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as _q}from"./cli-1.1.2-y2eet2t4.mjs";import{Zga as s,_ga as jq}from"./cli-1.1.2-bhjzjkag.mjs";import{Asa as Lq,Esa as wq}from"./cli-1.1.2-10g0wy7w.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
+ export{lq as th,oq as uh,sq as vh,aq as wh,Tq as xh};
@@ -0,0 +1,2 @@
1
+ import{Esa as q}from"./cli-1.1.2-10g0wy7w.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
+ export{x as ke,y as le,w as me};
@@ -0,0 +1,2 @@
1
+ import{ap as Z,fp as G}from"./cli-1.1.2-6cj9ggma.mjs";import{Mga as X,Uga as R}from"./cli-1.1.2-z31tqg0s.mjs";import{$ja as B,_ja as v,dka as A,hka as C,lka as M,vka as U,yka as O}from"./cli-1.1.2-re4qc97z.mjs";import{Esa as b}from"./cli-1.1.2-10g0wy7w.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
+ export{o as Cd,c as Dd,p as Ed,d as Fd,g as Gd,w as Hd};
@@ -0,0 +1,2 @@
1
+ import{Zd as Jq,be as Tq}from"./cli-1.1.2-ad1q4yds.mjs";import{ie as zq,je as bq}from"./cli-1.1.2-aq3e6kg7.mjs";import{AL as S,DL as Nq,GM as D,JM as Cq,OL as s,PL as _q,TL as a,WL as l,_L as t,dM as e,eo as n,fM as Rq,fo as yq,kI as u,lI as fq,mM as qq,qM as Fq,vG as r,wG as Gq}from"./cli-1.1.2-6cj9ggma.mjs";import{D1 as Oq,Y0 as F,_0 as C,pZ as i,qZ as Kq,zZ as Bq}from"./cli-1.1.2-jpgqkhxd.mjs";import{k4 as v,l4 as R,m4 as p}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as Lq}from"./cli-1.1.2-y2eet2t4.mjs";import{D_ as g,E_ as Zq,Mga as m,Q$ as o,Q_ as $,R$ as Hq,S_ as Xq,Uga as wq,Vaa as vq,yaa as x}from"./cli-1.1.2-z31tqg0s.mjs";import{vka as B,yka as Yq}from"./cli-1.1.2-re4qc97z.mjs";import{Uka as P,Xka as h,ala as Wq}from"./cli-1.1.2-dgw89jzs.mjs";import{Asa as d,Esa as Vq}from"./cli-1.1.2-10g0wy7w.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Pd,Yz as Qd,Dq as Rd};