@claudiolabs/claudin 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (910) hide show
  1. package/dist/chunks/AgentTool-1.0.15-94qgeewh.mjs +1 -0
  2. package/dist/chunks/App-1.0.15-57jq3dm4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.15-7j5pjhqn.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.15-gvkrabya.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.15-maf47ycb.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.15-ksfgz563.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.15-qryrc5yd.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.15-wfx96scv.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.15-8kva6vp4.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.15-fs1gd72r.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.15-m3d89j0h.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.15-bcp3xph8.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.15-cvm8f87e.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.15-ex27d27t.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.15-fw1wwzdf.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.15-6cbwbchq.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.15-w155hs9q.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.15-yjze889w.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.15-sbk0f748.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.15-03thwnty.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.15-7wpe589z.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.15-fxpyd5q2.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.15-0tjsz46h.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.15-y06d9cgd.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.15-91km7rpd.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.15-5arre2f8.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.15-ap6b593c.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.15-gmqjj125.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.15-hrrne1tk.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.15-mejg5tt1.mjs +1 -0
  31. package/dist/chunks/agents-1.0.15-4jrtw40v.mjs +110 -0
  32. package/dist/chunks/agents-1.0.15-gjv6cvx4.mjs +3 -0
  33. package/dist/chunks/api-1.0.15-zkp1pkwn.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.15-47tpa2n4.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.15-7k4zhhjv.mjs +1 -0
  36. package/dist/chunks/auth-1.0.15-6cfbwp6q.mjs +1 -0
  37. package/dist/chunks/auth-1.0.15-gws12a3c.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.15-03kh1nhy.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.15-tapqkcdv.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.15-x7vh5q4q.mjs +1 -0
  41. package/dist/chunks/branch-1.0.15-jtjk17fx.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.15-jj3fxj6x.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.15-w0d7jbe6.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.15-3467pt2w.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.15-7hen48qx.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.15-tdhgqvrs.mjs +1 -0
  47. package/dist/chunks/btw-1.0.15-d6jb050c.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.15-k7p7569n.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.15-6jycmxaf.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.15-cbw43d6t.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.15-e5g17k9c.mjs +4 -0
  52. package/dist/chunks/caches-1.0.15-679h38c6.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.15-8aewbzbn.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.15-rcmy3kyx.mjs +1 -0
  55. package/dist/chunks/clear-1.0.15-hqm9m5d6.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.15-1ewmdq7w.mjs +1 -0
  57. package/dist/chunks/cli-1.0.15-0bxpp6bh.mjs +20 -0
  58. package/dist/chunks/cli-1.0.15-0cv8mhk9.mjs +3 -0
  59. package/dist/chunks/cli-1.0.15-0dwyast6.mjs +2 -0
  60. package/dist/chunks/cli-1.0.15-0jqatfe7.mjs +2 -0
  61. package/dist/chunks/cli-1.0.15-0trpexvr.mjs +45 -0
  62. package/dist/chunks/cli-1.0.15-0w1nrkxx.mjs +2 -0
  63. package/dist/chunks/cli-1.0.15-0w3yfegp.mjs +2 -0
  64. package/dist/chunks/cli-1.0.15-22y9bkkh.mjs +2 -0
  65. package/dist/chunks/cli-1.0.15-24x4yqe7.mjs +2 -0
  66. package/dist/chunks/cli-1.0.15-27kfy5t8.mjs +4 -0
  67. package/dist/chunks/cli-1.0.15-2bkbr8av.mjs +2 -0
  68. package/dist/chunks/cli-1.0.15-2c6gnna0.mjs +17 -0
  69. package/dist/chunks/cli-1.0.15-2cy827x7.mjs +2 -0
  70. package/dist/chunks/cli-1.0.15-2mmdf6ne.mjs +2 -0
  71. package/dist/chunks/cli-1.0.15-2vbcyvpm.mjs +4 -0
  72. package/dist/chunks/cli-1.0.15-3kkk11ba.mjs +2 -0
  73. package/dist/chunks/cli-1.0.15-3r2dts4j.mjs +2 -0
  74. package/dist/chunks/cli-1.0.15-3t4ep5qt.mjs +2 -0
  75. package/dist/chunks/cli-1.0.15-403qkcqy.mjs +18 -0
  76. package/dist/chunks/cli-1.0.15-42150f5m.mjs +2 -0
  77. package/dist/chunks/cli-1.0.15-45w1vdpc.mjs +3 -0
  78. package/dist/chunks/cli-1.0.15-4a9g8a8r.mjs +2 -0
  79. package/dist/chunks/cli-1.0.15-4av09dyy.mjs +2 -0
  80. package/dist/chunks/cli-1.0.15-4evm96aw.mjs +42 -0
  81. package/dist/chunks/cli-1.0.15-4gh5h0g5.mjs +2 -0
  82. package/dist/chunks/cli-1.0.15-4nyx02ky.mjs +2 -0
  83. package/dist/chunks/cli-1.0.15-4rsdmbvj.mjs +133 -0
  84. package/dist/chunks/cli-1.0.15-4whbpjs9.mjs +3 -0
  85. package/dist/chunks/cli-1.0.15-51jmehra.mjs +6 -0
  86. package/dist/chunks/cli-1.0.15-56c35td6.mjs +2 -0
  87. package/dist/chunks/cli-1.0.15-5hhphy4q.mjs +2 -0
  88. package/dist/chunks/cli-1.0.15-5n34cvnr.mjs +2 -0
  89. package/dist/chunks/cli-1.0.15-60txcqbr.mjs +2 -0
  90. package/dist/chunks/cli-1.0.15-627wdw2h.mjs +2 -0
  91. package/dist/chunks/cli-1.0.15-6aqb3zvc.mjs +4 -0
  92. package/dist/chunks/cli-1.0.15-6b5hvymy.mjs +12 -0
  93. package/dist/chunks/cli-1.0.15-6etncrah.mjs +2 -0
  94. package/dist/chunks/cli-1.0.15-6n5w4q79.mjs +2 -0
  95. package/dist/chunks/cli-1.0.15-6tqavbkd.mjs +2 -0
  96. package/dist/chunks/cli-1.0.15-789kn3by.mjs +2 -0
  97. package/dist/chunks/cli-1.0.15-7aa072q4.mjs +12 -0
  98. package/dist/chunks/cli-1.0.15-7e9adexx.mjs +4 -0
  99. package/dist/chunks/cli-1.0.15-7ewpqvr2.mjs +25 -0
  100. package/dist/chunks/cli-1.0.15-7mvdkxm5.mjs +2 -0
  101. package/dist/chunks/cli-1.0.15-7ndc7stb.mjs +2 -0
  102. package/dist/chunks/cli-1.0.15-7rdtqytk.mjs +2 -0
  103. package/dist/chunks/cli-1.0.15-7s943xnf.mjs +2 -0
  104. package/dist/chunks/cli-1.0.15-7wvjptzb.mjs +2 -0
  105. package/dist/chunks/cli-1.0.15-7xhh90ex.mjs +2 -0
  106. package/dist/chunks/cli-1.0.15-806eqffj.mjs +2 -0
  107. package/dist/chunks/cli-1.0.15-845m2mqp.mjs +7 -0
  108. package/dist/chunks/cli-1.0.15-897dp7hb.mjs +2 -0
  109. package/dist/chunks/cli-1.0.15-897x1y4f.mjs +2 -0
  110. package/dist/chunks/cli-1.0.15-8kr6hy0g.mjs +2 -0
  111. package/dist/chunks/cli-1.0.15-8nvbby9w.mjs +34 -0
  112. package/dist/chunks/cli-1.0.15-8pv1ndbb.mjs +2 -0
  113. package/dist/chunks/cli-1.0.15-8w43v6k1.mjs +2 -0
  114. package/dist/chunks/cli-1.0.15-90162v45.mjs +2 -0
  115. package/dist/chunks/cli-1.0.15-98tcqft6.mjs +2 -0
  116. package/dist/chunks/cli-1.0.15-9aja3602.mjs +2 -0
  117. package/dist/chunks/cli-1.0.15-9bymg5sy.mjs +2 -0
  118. package/dist/chunks/cli-1.0.15-9cvsym9y.mjs +2 -0
  119. package/dist/chunks/cli-1.0.15-9d19jbmy.mjs +2 -0
  120. package/dist/chunks/cli-1.0.15-9rd8f7my.mjs +2 -0
  121. package/dist/chunks/cli-1.0.15-9rjbyjmt.mjs +2 -0
  122. package/dist/chunks/cli-1.0.15-9sp8car7.mjs +2 -0
  123. package/dist/chunks/cli-1.0.15-9vc0hfzc.mjs +3 -0
  124. package/dist/chunks/cli-1.0.15-a6cb4yq6.mjs +2 -0
  125. package/dist/chunks/cli-1.0.15-a7t3xpjc.mjs +4 -0
  126. package/dist/chunks/cli-1.0.15-adsqpzey.mjs +12 -0
  127. package/dist/chunks/cli-1.0.15-aqa2fb74.mjs +2 -0
  128. package/dist/chunks/cli-1.0.15-ar3s6h2h.mjs +2 -0
  129. package/dist/chunks/cli-1.0.15-awv56wcy.mjs +24 -0
  130. package/dist/chunks/cli-1.0.15-axetmvxc.mjs +2 -0
  131. package/dist/chunks/cli-1.0.15-b22bjah2.mjs +58 -0
  132. package/dist/chunks/cli-1.0.15-b3zhfvk0.mjs +2 -0
  133. package/dist/chunks/cli-1.0.15-bb8j8b0v.mjs +5501 -0
  134. package/dist/chunks/cli-1.0.15-bgkssm1d.mjs +3 -0
  135. package/dist/chunks/cli-1.0.15-bhsgw22k.mjs +2 -0
  136. package/dist/chunks/cli-1.0.15-bhvqf0n5.mjs +4 -0
  137. package/dist/chunks/cli-1.0.15-bw109641.mjs +2 -0
  138. package/dist/chunks/cli-1.0.15-c96jhmsg.mjs +3 -0
  139. package/dist/chunks/cli-1.0.15-cdr1b60q.mjs +2 -0
  140. package/dist/chunks/cli-1.0.15-cemjfg9r.mjs +2 -0
  141. package/dist/chunks/cli-1.0.15-cf8b3knv.mjs +2 -0
  142. package/dist/chunks/cli-1.0.15-chtrm59p.mjs +2 -0
  143. package/dist/chunks/cli-1.0.15-d5wv3x0f.mjs +24 -0
  144. package/dist/chunks/cli-1.0.15-d66dn4ap.mjs +4 -0
  145. package/dist/chunks/cli-1.0.15-dnq4fedm.mjs +39 -0
  146. package/dist/chunks/cli-1.0.15-dryj6zd0.mjs +1 -0
  147. package/dist/chunks/cli-1.0.15-dsvwedxw.mjs +2 -0
  148. package/dist/chunks/cli-1.0.15-dyc6dr50.mjs +2 -0
  149. package/dist/chunks/cli-1.0.15-e0drdd8f.mjs +2 -0
  150. package/dist/chunks/cli-1.0.15-e34c38pv.mjs +6 -0
  151. package/dist/chunks/cli-1.0.15-e4z0e2ej.mjs +18 -0
  152. package/dist/chunks/cli-1.0.15-e57f0rf3.mjs +2 -0
  153. package/dist/chunks/cli-1.0.15-ekbw5ftp.mjs +2 -0
  154. package/dist/chunks/cli-1.0.15-em7fgkj3.mjs +2 -0
  155. package/dist/chunks/cli-1.0.15-f2k7cw2y.mjs +2 -0
  156. package/dist/chunks/cli-1.0.15-f4s33z1f.mjs +2 -0
  157. package/dist/chunks/cli-1.0.15-fa1v9kw0.mjs +2 -0
  158. package/dist/chunks/cli-1.0.15-fhxg6mbk.mjs +2 -0
  159. package/dist/chunks/cli-1.0.15-fvcptqfy.mjs +24 -0
  160. package/dist/chunks/cli-1.0.15-fwe1633q.mjs +2 -0
  161. package/dist/chunks/cli-1.0.15-g0xatz0p.mjs +67 -0
  162. package/dist/chunks/cli-1.0.15-g1hd6adc.mjs +2 -0
  163. package/dist/chunks/cli-1.0.15-g2mwrdzj.mjs +2 -0
  164. package/dist/chunks/cli-1.0.15-gp303ekk.mjs +2 -0
  165. package/dist/chunks/cli-1.0.15-hf9a4f7g.mjs +2 -0
  166. package/dist/chunks/cli-1.0.15-hmb8ny4m.mjs +2 -0
  167. package/dist/chunks/cli-1.0.15-hqcpxa3q.mjs +50 -0
  168. package/dist/chunks/cli-1.0.15-hvfz05y7.mjs +2 -0
  169. package/dist/chunks/cli-1.0.15-j5kn8e7z.mjs +2 -0
  170. package/dist/chunks/cli-1.0.15-jm1dwnr3.mjs +2 -0
  171. package/dist/chunks/cli-1.0.15-jm8pjdm2.mjs +2 -0
  172. package/dist/chunks/cli-1.0.15-jw4mky36.mjs +5 -0
  173. package/dist/chunks/cli-1.0.15-jzs0za6k.mjs +2 -0
  174. package/dist/chunks/cli-1.0.15-kcp001eh.mjs +2 -0
  175. package/dist/chunks/cli-1.0.15-krzz1he3.mjs +4 -0
  176. package/dist/chunks/cli-1.0.15-m1vr3gw9.mjs +2 -0
  177. package/dist/chunks/cli-1.0.15-m9f1gq83.mjs +2 -0
  178. package/dist/chunks/cli-1.0.15-mcyk2xwv.mjs +18 -0
  179. package/dist/chunks/cli-1.0.15-mf4fkng2.mjs +2 -0
  180. package/dist/chunks/cli-1.0.15-mfmwv3mt.mjs +2 -0
  181. package/dist/chunks/cli-1.0.15-mh55f2tj.mjs +2 -0
  182. package/dist/chunks/cli-1.0.15-ms1k99rq.mjs +2 -0
  183. package/dist/chunks/cli-1.0.15-mydrjdjj.mjs +2 -0
  184. package/dist/chunks/cli-1.0.15-myfcyqkj.mjs +3 -0
  185. package/dist/chunks/cli-1.0.15-n0d6pnwr.mjs +8 -0
  186. package/dist/chunks/cli-1.0.15-n0d8gv7t.mjs +3 -0
  187. package/dist/chunks/cli-1.0.15-n5pap8w0.mjs +2 -0
  188. package/dist/chunks/cli-1.0.15-n6aad9yp.mjs +2 -0
  189. package/dist/chunks/cli-1.0.15-nbxzsrs2.mjs +2 -0
  190. package/dist/chunks/cli-1.0.15-nc1spcpt.mjs +4 -0
  191. package/dist/chunks/cli-1.0.15-nrwby2vr.mjs +59 -0
  192. package/dist/chunks/cli-1.0.15-nw596g6c.mjs +15 -0
  193. package/dist/chunks/cli-1.0.15-nwh8gbsc.mjs +15 -0
  194. package/dist/chunks/cli-1.0.15-p8ybzj4y.mjs +2 -0
  195. package/dist/chunks/cli-1.0.15-pb66jxfs.mjs +2 -0
  196. package/dist/chunks/cli-1.0.15-peheghd8.mjs +2 -0
  197. package/dist/chunks/cli-1.0.15-pgw4aj9s.mjs +2 -0
  198. package/dist/chunks/cli-1.0.15-pmb32v5y.mjs +2 -0
  199. package/dist/chunks/cli-1.0.15-pq7wsjnv.mjs +2 -0
  200. package/dist/chunks/cli-1.0.15-q0csazva.mjs +2 -0
  201. package/dist/chunks/cli-1.0.15-q8atgecb.mjs +2 -0
  202. package/dist/chunks/cli-1.0.15-qdf1s8sn.mjs +2 -0
  203. package/dist/chunks/cli-1.0.15-qfjesd9x.mjs +15 -0
  204. package/dist/chunks/cli-1.0.15-qqt1dsxy.mjs +2 -0
  205. package/dist/chunks/cli-1.0.15-qssbxbfj.mjs +9 -0
  206. package/dist/chunks/cli-1.0.15-qzntmfak.mjs +2 -0
  207. package/dist/chunks/cli-1.0.15-qzrbfzae.mjs +17 -0
  208. package/dist/chunks/cli-1.0.15-r3wehfgz.mjs +2 -0
  209. package/dist/chunks/cli-1.0.15-rbpevwrr.mjs +2 -0
  210. package/dist/chunks/cli-1.0.15-rgkm224b.mjs +2 -0
  211. package/dist/chunks/cli-1.0.15-rjkszdee.mjs +2 -0
  212. package/dist/chunks/cli-1.0.15-rkt37xy5.mjs +2 -0
  213. package/dist/chunks/cli-1.0.15-rtvt5q4j.mjs +2 -0
  214. package/dist/chunks/cli-1.0.15-rvsmamhh.mjs +2 -0
  215. package/dist/chunks/cli-1.0.15-rxvpfc2v.mjs +2 -0
  216. package/dist/chunks/cli-1.0.15-s13zq2g6.mjs +133 -0
  217. package/dist/chunks/cli-1.0.15-sbj8kz50.mjs +6 -0
  218. package/dist/chunks/cli-1.0.15-sdhb2jht.mjs +2 -0
  219. package/dist/chunks/cli-1.0.15-sens53x7.mjs +2 -0
  220. package/dist/chunks/cli-1.0.15-swecq77h.mjs +2 -0
  221. package/dist/chunks/cli-1.0.15-tf9z0qgg.mjs +2 -0
  222. package/dist/chunks/cli-1.0.15-tksefhgw.mjs +2 -0
  223. package/dist/chunks/cli-1.0.15-tn54byy9.mjs +2 -0
  224. package/dist/chunks/cli-1.0.15-twyy943s.mjs +2 -0
  225. package/dist/chunks/cli-1.0.15-ty850zve.mjs +3 -0
  226. package/dist/chunks/cli-1.0.15-v7c0mmpf.mjs +2 -0
  227. package/dist/chunks/cli-1.0.15-vc4w0s0f.mjs +2 -0
  228. package/dist/chunks/cli-1.0.15-vdfjzwyj.mjs +25 -0
  229. package/dist/chunks/cli-1.0.15-verazxs1.mjs +2 -0
  230. package/dist/chunks/cli-1.0.15-vf4rh7x3.mjs +12 -0
  231. package/dist/chunks/cli-1.0.15-vpx3dnt7.mjs +4 -0
  232. package/dist/chunks/cli-1.0.15-vx6w5s12.mjs +6 -0
  233. package/dist/chunks/cli-1.0.15-w0jtt57y.mjs +3 -0
  234. package/dist/chunks/cli-1.0.15-w0kza2nn.mjs +2 -0
  235. package/dist/chunks/cli-1.0.15-w448x72m.mjs +2 -0
  236. package/dist/chunks/cli-1.0.15-w8jywdxr.mjs +2 -0
  237. package/dist/chunks/cli-1.0.15-w8wkkszd.mjs +2 -0
  238. package/dist/chunks/cli-1.0.15-wbd53m9s.mjs +3 -0
  239. package/dist/chunks/cli-1.0.15-whef4gxw.mjs +2 -0
  240. package/dist/chunks/cli-1.0.15-whew30gy.mjs +2 -0
  241. package/dist/chunks/cli-1.0.15-wm6cn7n7.mjs +5 -0
  242. package/dist/chunks/cli-1.0.15-wsg9cdqp.mjs +2 -0
  243. package/dist/chunks/cli-1.0.15-wv1r62fb.mjs +2 -0
  244. package/dist/chunks/cli-1.0.15-x203gzv4.mjs +2 -0
  245. package/dist/chunks/cli-1.0.15-x68z512d.mjs +3 -0
  246. package/dist/chunks/cli-1.0.15-x6bgcj6j.mjs +202 -0
  247. package/dist/chunks/cli-1.0.15-xw62agkd.mjs +16 -0
  248. package/dist/chunks/cli-1.0.15-y207bwfz.mjs +2 -0
  249. package/dist/chunks/cli-1.0.15-y8h6wfxv.mjs +2 -0
  250. package/dist/chunks/cli-1.0.15-yhkncx78.mjs +21 -0
  251. package/dist/chunks/cli-1.0.15-yrdyyvx7.mjs +6 -0
  252. package/dist/chunks/cli-1.0.15-yv6jvtd3.mjs +2 -0
  253. package/dist/chunks/cli-1.0.15-yxt9f7qb.mjs +2 -0
  254. package/dist/chunks/cli-1.0.15-z3j7rgyp.mjs +9 -0
  255. package/dist/chunks/cli-1.0.15-zfe6g19w.mjs +2 -0
  256. package/dist/chunks/cli-1.0.15-zhz992pf.mjs +2 -0
  257. package/dist/chunks/cli-1.0.15-zv07g6mh.mjs +4 -0
  258. package/dist/chunks/client-1.0.15-1nanrm3v.mjs +1 -0
  259. package/dist/chunks/color-1.0.15-7h09v05v.mjs +1 -0
  260. package/dist/chunks/compact-1.0.15-bbr712y6.mjs +3 -0
  261. package/dist/chunks/config-1.0.15-86c37qyg.mjs +1 -0
  262. package/dist/chunks/config-1.0.15-qkzra3hn.mjs +1 -0
  263. package/dist/chunks/constants-1.0.15-n7mjeepn.mjs +1 -0
  264. package/dist/chunks/context-1.0.15-04nqna96.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.15-ph9z0gj0.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.15-vv1sm2bq.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.15-agdjct0c.mjs +1 -0
  268. package/dist/chunks/copy-1.0.15-rq1dt4kg.mjs +9 -0
  269. package/dist/chunks/cost-1.0.15-3kw2p2ma.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.15-sz4v3xe4.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.15-x29zzv23.mjs +1 -0
  272. package/dist/chunks/debug-1.0.15-yf1ce0zj.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.15-8mhqj6ng.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.15-2hzvek03.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.15-11srzskh.mjs +1 -0
  276. package/dist/chunks/detection-1.0.15-q1b1fd1n.mjs +1 -0
  277. package/dist/chunks/diff-1.0.15-8tkhhfaj.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.15-7dd5as8s.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.15-mmahxf4w.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.15-phgxtad2.mjs +1 -0
  281. package/dist/chunks/effort-1.0.15-jabawz09.mjs +10 -0
  282. package/dist/chunks/engine-1.0.15-m4qq3fdj.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.15-wwy4m1tg.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.15-mhw6b6wv.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.15-xvpfcead.mjs +1 -0
  286. package/dist/chunks/environments-1.0.15-01feph82.mjs +1 -0
  287. package/dist/chunks/errors-1.0.15-p523knhf.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.15-500mkp8k.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.0.15-c9gp096c.mjs +1 -0
  290. package/dist/chunks/exit-1.0.15-5bxkf4wt.mjs +1 -0
  291. package/dist/chunks/explorer-1.0.15-3xckk4q6.mjs +1 -0
  292. package/dist/chunks/export-1.0.15-x26gp84a.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.0.15-kzammpx2.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.0.15-w616etne.mjs +1 -0
  295. package/dist/chunks/fast-1.0.15-z3hr29w4.mjs +1 -0
  296. package/dist/chunks/feedback-1.0.15-p67b2923.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.0.15-84q6s4wh.mjs +1 -0
  298. package/dist/chunks/git-1.0.15-3hhh7mkb.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.0.15-29cbxgpc.mjs +1 -0
  300. package/dist/chunks/goal-1.0.15-y0abdze5.mjs +4 -0
  301. package/dist/chunks/grove-1.0.15-7d359a5x.mjs +1 -0
  302. package/dist/chunks/growthbook-1.0.15-x8tbedqg.mjs +1 -0
  303. package/dist/chunks/headless-1.0.15-9xqc8rrv.mjs +2 -0
  304. package/dist/chunks/heapdump-1.0.15-b1a00cnt.mjs +6 -0
  305. package/dist/chunks/help-1.0.15-by78ztvc.mjs +1 -0
  306. package/dist/chunks/hookChains-1.0.15-q3mq63xw.mjs +3 -0
  307. package/dist/chunks/hooks-1.0.15-898qsapq.mjs +1 -0
  308. package/dist/chunks/hooks-1.0.15-bwxae2k4.mjs +79 -0
  309. package/dist/chunks/ide-1.0.15-dqp39p4j.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.0.15-s9z99aka.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.0.15-ww5f1k45.mjs +1 -0
  312. package/dist/chunks/index-1.0.15-22hn7r2q.mjs +1 -0
  313. package/dist/chunks/index-1.0.15-41x2b1ba.mjs +1 -0
  314. package/dist/chunks/index-1.0.15-4cngq6jm.mjs +1 -0
  315. package/dist/chunks/index-1.0.15-563jcaxp.mjs +1 -0
  316. package/dist/chunks/index-1.0.15-5ddgt9w9.mjs +5 -0
  317. package/dist/chunks/index-1.0.15-62kzbthr.mjs +1 -0
  318. package/dist/chunks/index-1.0.15-6xra7cxc.mjs +1 -0
  319. package/dist/chunks/index-1.0.15-apej2eyy.mjs +17 -0
  320. package/dist/chunks/index-1.0.15-d7343p0m.mjs +9 -0
  321. package/dist/chunks/index-1.0.15-dn4c5ac3.mjs +1 -0
  322. package/dist/chunks/index-1.0.15-e0ntb25e.mjs +1 -0
  323. package/dist/chunks/index-1.0.15-e1v2z7sq.mjs +1 -0
  324. package/dist/chunks/index-1.0.15-f31ysjpc.mjs +30 -0
  325. package/dist/chunks/index-1.0.15-g3nxsrs6.mjs +1 -0
  326. package/dist/chunks/index-1.0.15-gdf1p5w0.mjs +1 -0
  327. package/dist/chunks/index-1.0.15-h0e2n5hw.mjs +1 -0
  328. package/dist/chunks/index-1.0.15-hppyew9q.mjs +9 -0
  329. package/dist/chunks/index-1.0.15-j1fbvhv0.mjs +1 -0
  330. package/dist/chunks/index-1.0.15-n3xtev9d.mjs +1 -0
  331. package/dist/chunks/index-1.0.15-pjgsjdye.mjs +1 -0
  332. package/dist/chunks/index-1.0.15-qjc4a0hk.mjs +1 -0
  333. package/dist/chunks/index-1.0.15-qkqmt400.mjs +2 -0
  334. package/dist/chunks/index-1.0.15-tsc8b7qt.mjs +2 -0
  335. package/dist/chunks/init-1.0.15-51hrt3sw.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.0.15-hvpb3ya8.mjs +1 -0
  337. package/dist/chunks/ink-1.0.15-abm6e0hy.mjs +1 -0
  338. package/dist/chunks/insights-1.0.15-eb2cz87g.mjs +870 -0
  339. package/dist/chunks/install-1.0.15-ejnp78jw.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.0.15-6njxrjc8.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.0.15-q1bv68wm.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.0.15-xnwxkp42.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.0.15-tmj4ck09.mjs +1 -0
  344. package/dist/chunks/keybindings-1.0.15-neswm6qd.mjs +2 -0
  345. package/dist/chunks/knowledge-1.0.15-th8gzp9y.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.0.15-33bm0j2f.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.0.15-fjgwjk7z.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.15-wn9rb1nj.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.15-wytzdx5z.mjs +1 -0
  350. package/dist/chunks/log-1.0.15-g45p6p8b.mjs +1 -0
  351. package/dist/chunks/main-1.0.15-c8b622at.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.0.15-7d0t9knq.mjs +1 -0
  353. package/dist/chunks/mcp-1.0.15-0rz6a665.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.15-2csh0m0q.mjs +17 -0
  355. package/dist/chunks/mcp-1.0.15-mnqw62hf.mjs +4 -0
  356. package/dist/chunks/mcpb-1.0.15-51f0cyna.mjs +1 -0
  357. package/dist/chunks/memory-1.0.15-9ty7878c.mjs +72 -0
  358. package/dist/chunks/model-1.0.15-btfcakpa.mjs +2 -0
  359. package/dist/chunks/model-1.0.15-hkz8nh7n.mjs +1 -0
  360. package/dist/chunks/node-1.0.15-xxbzffcm.mjs +12 -0
  361. package/dist/chunks/oauth-1.0.15-qk2njnqt.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.0.15-d6xqsqaj.mjs +14 -0
  363. package/dist/chunks/output-style-1.0.15-1p25w14b.mjs +1 -0
  364. package/dist/chunks/package-2VNCXFNY-1.0.15-f17c3v8h.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.0.15-evfrx6ef.mjs +1 -0
  366. package/dist/chunks/parser-1.0.15-sw9zp9hx.mjs +1 -0
  367. package/dist/chunks/passes-1.0.15-ve0gv3fn.mjs +1 -0
  368. package/dist/chunks/permissions-1.0.15-czky0wv1.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.15-dybttyne.mjs +3 -0
  370. package/dist/chunks/plan-1.0.15-bgx20yyj.mjs +1 -0
  371. package/dist/chunks/plist-1.0.15-yxp4p4st.mjs +1 -0
  372. package/dist/chunks/plugin-1.0.15-dq2pkmwj.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.0.15-jfdhfm4m.mjs +1 -0
  374. package/dist/chunks/plugins-1.0.15-2y6cpb5x.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.0.15-d4bfeykw.mjs +2 -0
  376. package/dist/chunks/print-1.0.15-c5qnn914.mjs +57 -0
  377. package/dist/chunks/privacy-settings-1.0.15-vwa3wpm4.mjs +1 -0
  378. package/dist/chunks/process-1.0.15-fn9gq50e.mjs +1 -0
  379. package/dist/chunks/processBashCommand-1.0.15-8acp22x9.mjs +1 -0
  380. package/dist/chunks/processSlashCommand-1.0.15-0kfa0p6x.mjs +9 -0
  381. package/dist/chunks/prompt-1.0.15-67vrdkbh.mjs +1 -0
  382. package/dist/chunks/prompt-1.0.15-920s9v6b.mjs +1 -0
  383. package/dist/chunks/prompts-1.0.15-1tk07hjv.mjs +1 -0
  384. package/dist/chunks/protocolHandler-1.0.15-0t7z6wa4.mjs +13 -0
  385. package/dist/chunks/provider-1.0.15-wm9ewqpc.mjs +2 -0
  386. package/dist/chunks/providerProfiles-1.0.15-467dcm5c.mjs +1 -0
  387. package/dist/chunks/providerValidation-1.0.15-4036bd9g.mjs +6 -0
  388. package/dist/chunks/rate-limit-options-1.0.15-508yvcqa.mjs +1 -0
  389. package/dist/chunks/registerSubcommands-1.0.15-d9397mz6.mjs +34 -0
  390. package/dist/chunks/registry-1.0.15-12m16hd9.mjs +1 -0
  391. package/dist/chunks/release-notes-1.0.15-32g02jw1.mjs +5 -0
  392. package/dist/chunks/reload-plugins-1.0.15-2tg7jha5.mjs +2 -0
  393. package/dist/chunks/remote-env-1.0.15-jct0v6eb.mjs +1 -0
  394. package/dist/chunks/remoteBridgeCore-1.0.15-ep3qpncp.mjs +1 -0
  395. package/dist/chunks/remoteSession-1.0.15-tezcky9a.mjs +1 -0
  396. package/dist/chunks/rename-1.0.15-77747574.mjs +1 -0
  397. package/dist/chunks/replBridgeHandle-1.0.15-r618bj2s.mjs +1 -0
  398. package/dist/chunks/replLauncher-1.0.15-5ycj3dn1.mjs +1 -0
  399. package/dist/chunks/resume-1.0.15-jas7fmap.mjs +2 -0
  400. package/dist/chunks/rewind-1.0.15-59bkbymb.mjs +1 -0
  401. package/dist/chunks/rootOptions-1.0.15-yjmt5a1k.mjs +1 -0
  402. package/dist/chunks/runWorkflowHeadless-1.0.15-yn83ms9d.mjs +10 -0
  403. package/dist/chunks/sandbox-adapter-1.0.15-rhtphtt2.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.15-gqh5nza8.mjs +1 -0
  405. package/dist/chunks/session-1.0.15-etds2qs7.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.15-9wgmvp27.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.15-2kx81w17.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.15-8ka7arvw.mjs +1 -0
  409. package/dist/chunks/settings-1.0.15-nw824nv7.mjs +1 -0
  410. package/dist/chunks/setup-1.0.15-xg66p6ha.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.15-m312z7ne.mjs +1 -0
  412. package/dist/chunks/skills-1.0.15-91jpzmsa.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.15-ase2wwkk.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.15-m6tcjqjy.mjs +1 -0
  415. package/dist/chunks/state-1.0.15-ypyc7yma.mjs +1 -0
  416. package/dist/chunks/stats-1.0.15-20xfvtxf.mjs +6 -0
  417. package/dist/chunks/status-1.0.15-a3hg1hb2.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.15-dmrqdxpt.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.15-nx4hgj99.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.15-z9j66px1.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.15-ehfc0f84.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.15-j9xnhc9r.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.15-ftmbp0xn.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.15-hq6j2jce.mjs +1 -0
  425. package/dist/chunks/theme-1.0.15-rtaq6w2w.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.15-z7fkh9na.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.15-xe5c4403.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.15-xx0g0cd9.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.15-363v2605.mjs +1 -0
  430. package/dist/chunks/tools-1.0.15-dwf2jp96.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.15-041hap1x.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.15-tc5p6gy0.mjs +69 -0
  433. package/dist/chunks/types-1.0.15-7j0ngjtf.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.15-m8mb87qg.mjs +4 -0
  435. package/dist/chunks/update-1.0.15-x340nrs3.mjs +88 -0
  436. package/dist/chunks/upgrade-1.0.15-q3vd7h2g.mjs +1 -0
  437. package/dist/chunks/upload-1.0.15-3tda3gn3.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.15-sn6vwrsp.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.15-a9ysm42q.mjs +1 -0
  440. package/dist/chunks/usage-1.0.15-jbspakfx.mjs +1 -0
  441. package/dist/chunks/util-1.0.15-696vpvbq.mjs +1 -0
  442. package/dist/chunks/utils-1.0.15-bnryexmv.mjs +1 -0
  443. package/dist/chunks/vim-1.0.15-5wy3q708.mjs +1 -0
  444. package/dist/chunks/watchLoop-1.0.15-wmf58cqh.mjs +13 -0
  445. package/dist/chunks/watcher-1.0.15-adrqrr8h.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.15-k6g3vvyv.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.15-0bcj0gf6.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.15-byxhz3zz.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.15-hdn8erh7.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.15-zydswseh.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +0 -1
  454. package/dist/chunks/App-1.0.13-ka050dp3.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.13-hdw88war.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +0 -1
  483. package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +0 -3
  484. package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +0 -110
  485. package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.13-91499j0p.mjs +0 -1
  488. package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +0 -1
  489. package/dist/chunks/auth-1.0.13-s1vedchg.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +0 -1
  493. package/dist/chunks/branch-1.0.13-encr40nd.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +0 -1
  499. package/dist/chunks/btw-1.0.13-55x872ns.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +0 -4
  504. package/dist/chunks/caches-1.0.13-md3zkabd.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +0 -1
  507. package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +0 -1
  509. package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +0 -2
  510. package/dist/chunks/cli-1.0.13-0357cnwe.mjs +0 -2
  511. package/dist/chunks/cli-1.0.13-14c24kge.mjs +0 -2
  512. package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +0 -2
  513. package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +0 -3
  514. package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +0 -2
  515. package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +0 -3
  516. package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +0 -4
  517. package/dist/chunks/cli-1.0.13-23ev2ept.mjs +0 -45
  518. package/dist/chunks/cli-1.0.13-29x94tf7.mjs +0 -2
  519. package/dist/chunks/cli-1.0.13-2x789qav.mjs +0 -2
  520. package/dist/chunks/cli-1.0.13-2xpprn71.mjs +0 -1
  521. package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +0 -3
  522. package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +0 -18
  523. package/dist/chunks/cli-1.0.13-3767t4yj.mjs +0 -4
  524. package/dist/chunks/cli-1.0.13-3c13b00m.mjs +0 -2
  525. package/dist/chunks/cli-1.0.13-3dmmr756.mjs +0 -2
  526. package/dist/chunks/cli-1.0.13-3essvqs1.mjs +0 -2
  527. package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +0 -2
  528. package/dist/chunks/cli-1.0.13-3fs84evm.mjs +0 -2
  529. package/dist/chunks/cli-1.0.13-3pspajgg.mjs +0 -15
  530. package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +0 -2
  531. package/dist/chunks/cli-1.0.13-449f1p6g.mjs +0 -2
  532. package/dist/chunks/cli-1.0.13-466jbd1q.mjs +0 -2
  533. package/dist/chunks/cli-1.0.13-4dp5a597.mjs +0 -6
  534. package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +0 -2
  535. package/dist/chunks/cli-1.0.13-57993qn6.mjs +0 -2
  536. package/dist/chunks/cli-1.0.13-57ez593b.mjs +0 -3
  537. package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +0 -4
  538. package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +0 -58
  539. package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +0 -2
  540. package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +0 -2
  541. package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +0 -2
  542. package/dist/chunks/cli-1.0.13-696y87my.mjs +0 -18
  543. package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +0 -2
  544. package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +0 -2
  545. package/dist/chunks/cli-1.0.13-6vb140br.mjs +0 -25
  546. package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +0 -2
  547. package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +0 -2
  548. package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +0 -2
  549. package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +0 -2
  550. package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +0 -2
  551. package/dist/chunks/cli-1.0.13-7rg014zx.mjs +0 -5
  552. package/dist/chunks/cli-1.0.13-7xfra4by.mjs +0 -2
  553. package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +0 -2
  554. package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +0 -2
  555. package/dist/chunks/cli-1.0.13-83vckpyr.mjs +0 -6
  556. package/dist/chunks/cli-1.0.13-8s33s84f.mjs +0 -2
  557. package/dist/chunks/cli-1.0.13-93twxc7q.mjs +0 -2
  558. package/dist/chunks/cli-1.0.13-98a94f4b.mjs +0 -2
  559. package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +0 -2
  560. package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +0 -9
  561. package/dist/chunks/cli-1.0.13-9t0q538w.mjs +0 -25
  562. package/dist/chunks/cli-1.0.13-a2j673qk.mjs +0 -2
  563. package/dist/chunks/cli-1.0.13-a5641ktm.mjs +0 -2
  564. package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +0 -2
  565. package/dist/chunks/cli-1.0.13-a8t9066b.mjs +0 -2
  566. package/dist/chunks/cli-1.0.13-afdk25h0.mjs +0 -2
  567. package/dist/chunks/cli-1.0.13-avxss6zg.mjs +0 -9
  568. package/dist/chunks/cli-1.0.13-bj2neb84.mjs +0 -2
  569. package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +0 -2
  570. package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +0 -15
  571. package/dist/chunks/cli-1.0.13-cm3q208z.mjs +0 -2
  572. package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +0 -34
  573. package/dist/chunks/cli-1.0.13-d016ffc7.mjs +0 -3
  574. package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +0 -2
  575. package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +0 -2
  576. package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +0 -2
  577. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +0 -2
  578. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +0 -4
  579. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +0 -2
  580. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +0 -2
  581. package/dist/chunks/cli-1.0.13-e464ab16.mjs +0 -2
  582. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +0 -2
  583. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +0 -2
  584. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +0 -2
  585. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +0 -3
  586. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +0 -12
  587. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +0 -133
  588. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +0 -67
  589. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +0 -2
  590. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +0 -2
  591. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +0 -2
  592. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +0 -2
  593. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +0 -2
  594. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +0 -8
  595. package/dist/chunks/cli-1.0.13-g7daabde.mjs +0 -3
  596. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +0 -2
  597. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +0 -2
  598. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +0 -16
  599. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +0 -2
  600. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +0 -39
  601. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +0 -2
  602. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +0 -12
  603. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +0 -12
  604. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +0 -2
  605. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +0 -2
  606. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +0 -2
  607. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +0 -2
  608. package/dist/chunks/cli-1.0.13-k71bq854.mjs +0 -2
  609. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +0 -2
  610. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +0 -2
  611. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +0 -12
  612. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +0 -2
  613. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +0 -3
  614. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +0 -7
  615. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +0 -2
  616. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +0 -5495
  617. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +0 -2
  618. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +0 -4
  619. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +0 -2
  620. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +0 -59
  621. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +0 -2
  622. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +0 -2
  623. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +0 -2
  624. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +0 -15
  625. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +0 -202
  626. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +0 -2
  627. package/dist/chunks/cli-1.0.13-p7b51har.mjs +0 -2
  628. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +0 -2
  629. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +0 -6
  630. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +0 -2
  631. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +0 -2
  632. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +0 -17
  633. package/dist/chunks/cli-1.0.13-q40za40w.mjs +0 -50
  634. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +0 -2
  635. package/dist/chunks/cli-1.0.13-qx079tft.mjs +0 -2
  636. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +0 -2
  637. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +0 -2
  638. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +0 -2
  639. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +0 -4
  640. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +0 -2
  641. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +0 -2
  642. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +0 -24
  643. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +0 -2
  644. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +0 -2
  645. package/dist/chunks/cli-1.0.13-s15merj9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +0 -2
  647. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +0 -2
  648. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +0 -24
  649. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +0 -2
  650. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +0 -20
  651. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +0 -2
  652. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +0 -24
  653. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +0 -2
  654. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +0 -2
  655. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +0 -2
  656. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +0 -2
  657. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +0 -2
  658. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +0 -17
  659. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +0 -2
  660. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +0 -2
  661. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +0 -3
  662. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +0 -2
  663. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +0 -2
  664. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +0 -2
  665. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +0 -2
  666. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +0 -2
  667. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +0 -21
  668. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +0 -2
  669. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +0 -2
  670. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +0 -4
  671. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +0 -133
  672. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +0 -2
  673. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +0 -2
  674. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +0 -2
  675. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +0 -2
  676. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +0 -2
  677. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +0 -2
  678. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +0 -2
  679. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +0 -5
  680. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +0 -2
  681. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +0 -2
  682. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +0 -2
  683. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +0 -2
  684. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +0 -6
  685. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +0 -2
  686. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +0 -2
  687. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +0 -4
  688. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +0 -3
  689. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +0 -2
  690. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +0 -2
  691. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +0 -2
  692. package/dist/chunks/cli-1.0.13-xr55511t.mjs +0 -2
  693. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +0 -42
  694. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +0 -18
  695. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +0 -6
  696. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +0 -2
  697. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +0 -4
  698. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +0 -2
  699. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +0 -4
  700. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +0 -4
  701. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +0 -3
  702. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +0 -2
  703. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +0 -2
  704. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +0 -3
  705. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +0 -2
  706. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +0 -2
  707. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +0 -2
  708. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +0 -2
  709. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +0 -2
  710. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +0 -1
  711. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +0 -1
  712. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +0 -3
  713. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +0 -1
  714. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +0 -1
  715. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +0 -1
  716. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +0 -1
  718. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +0 -1
  720. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +0 -9
  721. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +0 -1
  723. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +0 -1
  724. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +0 -1446
  726. package/dist/chunks/desktop-1.0.13-e005km58.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +0 -1
  728. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +0 -1
  729. package/dist/chunks/diff-1.0.13-9jypv082.mjs +0 -1
  730. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +0 -1
  733. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +0 -10
  734. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +0 -1
  736. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +0 -1
  738. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +0 -1
  739. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +0 -1
  742. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +0 -1
  743. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +0 -1
  744. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +0 -1
  747. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +0 -1
  748. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +0 -1
  750. package/dist/chunks/git-1.0.13-9196pgzv.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +0 -1
  752. package/dist/chunks/goal-1.0.13-cty957vz.mjs +0 -4
  753. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +0 -1
  754. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +0 -1
  755. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +0 -2
  756. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +0 -6
  757. package/dist/chunks/help-1.0.13-em333cwb.mjs +0 -1
  758. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +0 -3
  759. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +0 -79
  760. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +0 -1
  761. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +0 -1
  764. package/dist/chunks/index-1.0.13-361h9v63.mjs +0 -1
  765. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +0 -1
  766. package/dist/chunks/index-1.0.13-55th4hhq.mjs +0 -1
  767. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +0 -1
  768. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +0 -1
  769. package/dist/chunks/index-1.0.13-792fhv61.mjs +0 -1
  770. package/dist/chunks/index-1.0.13-8k0904bs.mjs +0 -1
  771. package/dist/chunks/index-1.0.13-ace8202d.mjs +0 -2
  772. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +0 -1
  773. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +0 -1
  774. package/dist/chunks/index-1.0.13-ej84k860.mjs +0 -1
  775. package/dist/chunks/index-1.0.13-fnd36467.mjs +0 -2
  776. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +0 -30
  777. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +0 -1
  778. package/dist/chunks/index-1.0.13-j0146ntq.mjs +0 -1
  779. package/dist/chunks/index-1.0.13-jackh0p4.mjs +0 -17
  780. package/dist/chunks/index-1.0.13-kfmh713v.mjs +0 -9
  781. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +0 -1
  782. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +0 -1
  783. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +0 -1
  784. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +0 -5
  785. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +0 -9
  786. package/dist/chunks/index-1.0.13-ykat42gv.mjs +0 -1
  787. package/dist/chunks/init-1.0.13-pyw980be.mjs +0 -1
  788. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +0 -1
  789. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +0 -1
  790. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +0 -870
  791. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +0 -1
  792. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +0 -149
  793. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +0 -1
  794. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +0 -1
  796. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +0 -2
  797. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +0 -1
  802. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +0 -1
  803. package/dist/chunks/main-1.0.13-h958ytkv.mjs +0 -1
  804. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +0 -1
  805. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +0 -4
  806. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +0 -17
  808. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +0 -1
  809. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +0 -72
  810. package/dist/chunks/model-1.0.13-28wkmva5.mjs +0 -2
  811. package/dist/chunks/model-1.0.13-wbne69bf.mjs +0 -1
  812. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +0 -12
  813. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +0 -1
  814. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +0 -14
  815. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +0 -1
  816. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +0 -1
  818. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +0 -1
  819. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +0 -1
  820. package/dist/chunks/permissions-1.0.13-091a123r.mjs +0 -1
  821. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +0 -3
  822. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +0 -1
  823. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +0 -1
  824. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +0 -1
  826. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +0 -9
  827. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +0 -2
  828. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +0 -57
  829. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +0 -1
  830. package/dist/chunks/process-1.0.13-yvqmferw.mjs +0 -1
  831. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +0 -9
  833. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +0 -1
  834. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +0 -1
  835. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +0 -1
  836. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +0 -13
  837. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +0 -2
  838. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +0 -1
  839. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +0 -34
  842. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +0 -1
  843. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +0 -5
  844. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +0 -2
  845. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +0 -1
  847. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +0 -1
  848. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +0 -1
  850. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +0 -1
  851. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +0 -2
  852. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +0 -1
  853. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +0 -1
  854. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +0 -10
  855. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +0 -1
  856. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +0 -1
  857. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +0 -2
  858. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +0 -1
  859. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +0 -1
  860. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +0 -1
  861. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +0 -1
  862. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +0 -5
  863. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +0 -1
  864. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +0 -1
  865. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +0 -1
  866. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +0 -1
  867. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +0 -1
  868. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +0 -6
  869. package/dist/chunks/status-1.0.13-t69r10gd.mjs +0 -1
  870. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +0 -1
  871. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +0 -1
  872. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +0 -1
  873. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +0 -1
  874. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +0 -1
  875. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +0 -1
  876. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +0 -1
  877. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +0 -1
  878. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +0 -1
  879. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +0 -1
  880. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +0 -1
  881. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +0 -1
  882. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +0 -1
  883. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +0 -1
  884. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +0 -69
  885. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +0 -1
  886. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +0 -4
  887. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +0 -88
  888. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +0 -1
  889. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +0 -7
  890. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +0 -14
  891. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +0 -1
  892. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +0 -1
  893. package/dist/chunks/util-1.0.13-87gxb90q.mjs +0 -1
  894. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +0 -1
  895. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +0 -1
  896. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +0 -13
  897. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.13-tzenmc0b.mjs → cli-1.0.15-07xj3g8e.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.13-wv7skbb9.mjs → cli-1.0.15-34tkfpae.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.13-ap2xrh2s.mjs → cli-1.0.15-ca94tsgf.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.13-4z6c4gzk.mjs → cli-1.0.15-eb4r1tqp.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.13-n6bzzv7p.mjs → cli-1.0.15-gn4sk6nh.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.13-d9nvpqpw.mjs → cli-1.0.15-qt9wsd1x.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.13-v34fp7gq.mjs → cli-1.0.15-shjbmrej.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.13-q9et56bj.mjs → cli-1.0.15-vewf233x.mjs} +0 -0
@@ -1,24 +0,0 @@
1
- import{cc as DY}from"./cli-1.0.13-ap2xrh2s.mjs";import{$c as iQ,Yc as LY}from"./cli-1.0.13-e1m0dx6a.mjs";import{bi as V0,ci as p6}from"./cli-1.0.13-y1kzayxj.mjs";import{Vi as pY,Wi as A6}from"./cli-1.0.13-fsmjqwpj.mjs";import{$J as s,$v as pZ,Ap as i6,Aq as FZ,Bq as _Y,FL as P9,HD as NY,HL as F9,ID as nQ,JD as RY,LD as z6,LL as M9,MA as uY,Nm as yZ,OA as v6,PD as n,PR as wZ,Qm as $Z,RD as U6,Rm as e0,SB as cY,SL as o6,TB as _6,UA as CY,VA as TY,Vv as h0,WA as L6,Wv as uZ,XB as mY,XH as T0,XK as PY,Xv as k0,YB as O6,YH as s9,Yv as x0,Zv as u0,Zx as I0,_K as J6,_v as p0,aS as rY,al as L9,aw as cZ,ay as i9,bk as KZ,bl as u6,bu as ZY,bw as c0,cl as z9,cu as xQ,cw as m0,dl as q9,du as JY,dw as g0,eQ as lY,ek as E0,el as bZ,eu as lQ,ew as d0,fK as gY,fl as Y0,fu as kY,fw as l0,gG as C0,gl as D9,gw as a0,hG as o9,hl as XZ,hw as n0,il as Q0,it as M0,iw as r0,jS as iY,jk as hY,jl as v9,jw as i0,kl as A9,kw as GQ,kz as xY,ll as sY,lt as b0,mK as dY,mt as fZ,nQ as aY,nS as zY,nz as D6,pQ as nY,qS as qY,qt as r9,tQ as w6,uR as kZ,vD as HY,vO as BY,wD as aQ,xO as rQ,yR as xZ,yq as iZ,zp as j9,zq as AY}from"./cli-1.0.13-kr3d94dn.mjs";import{pX as Q9,tX as R6}from"./cli-1.0.13-rxd329nn.mjs";import{WX as y0,XX as d9,iY as $0,jY as j0,kY as l9,nY as P0,oY as a9,uY as F0,vY as n9}from"./cli-1.0.13-3f0zqjp8.mjs";import{G0 as p,I0 as M,kZ as m9,l1 as g9}from"./cli-1.0.13-mv57kk3c.mjs";import{T3 as a,U3 as E,V3 as b,W3 as J0}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as c9}from"./cli-1.0.13-gsz0cygn.mjs";import{E8 as G6,H7 as jY,b6 as $Y,f6 as K6}from"./cli-1.0.13-h5mwwv8w.mjs";import{$$ as TZ,Aca as EY,Baa as n6,Cca as V6,Faa as Y9,Hda as W6,Kaa as T6,U_ as E9,baa as x9,eaa as y9,f_ as _Z,g_ as k9,hca as $9,jga as U0,mga as p9,oca as r6,qga as e,r_ as GY,t_ as dQ,u$ as a6,yda as yY,yga as w0,zca as wY}from"./cli-1.0.13-p1nsb8ay.mjs";import{Jga as B0,Rga as L0,Vga as h9}from"./cli-1.0.13-x4xwa6y3.mjs";import{Kha as $6,zha as oY}from"./cli-1.0.13-k4znag0a.mjs";import{bia as Y,cia as h,dia as JZ,eia as q,fia as EZ}from"./cli-1.0.13-fb695nhr.mjs";import{Gia as O0,Mia as u9,iia as UY,jia as X6,lia as RZ,oia as z0,pia as q0,qia as D0,ria as v0,tia as A0,uia as _0}from"./cli-1.0.13-kq0mvqax.mjs";import{Xia as g,_ia as UZ}from"./cli-1.0.13-vbby2x4m.mjs";import{Dja as ZZ,Eja as WY,Ija as PZ,_ja as I,bja as Z9,bka as HZ,dja as C6}from"./cli-1.0.13-4dp5a597.mjs";import{dka as KY,hka as gQ}from"./cli-1.0.13-frs40s6h.mjs";import{Fka as lZ,kka as VY,yka as w9,zka as tZ}from"./cli-1.0.13-mazxedqg.mjs";import{Fma as W0,Gma as eY,Qna as OY,gpa as J9,hpa as DZ,ipa as H9,kpa as N9,lpa as X0,npa as B9,vqa as IY,yqa as BZ,zma as NZ}from"./cli-1.0.13-vwmq6bde.mjs";import{dsa as N0,gsa as hZ,hsa as OZ,isa as rZ}from"./cli-1.0.13-d9nvpqpw.mjs";var WQ={};hZ(WQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function SZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:V,onSummarize:W,onClose:H,preselectedMessage:G}){let K=I0((U)=>U.fileHistory),[B,z]=T.useState(void 0),J=M0(),L=T.useMemo(t9,[]),_=T.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[w,v]=T.useState(_.length-1),P=Math.max(0,Math.min(w-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[D,F]=T.useState(G),[y,S]=T.useState(void 0);T.useEffect(()=>{if(!G||!J)return;let U=!1;return fZ(K,G.uuid).then((R)=>{if(!U)S(R)}),()=>{U=!0}},[G,J,K]);let[O,$]=T.useState(!1),[d,i]=T.useState(null),[o,C]=T.useState("both"),[k,x]=T.useState(""),[A,j]=T.useState("");function N(U){let R=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}T.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function u(U){Z(),$(!0);try{await X(U),$(!1),H()}catch(R){e(R),$(!1),z(`Failed to restore the conversation:
2
- ${R}`)}}async function l(U){let R=Q.indexOf(U),c=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:c,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){H();return}if(!J){await u(U);return}let m=await fZ(K,U.uuid);F(U),S(m)}async function VZ(U){if(g("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(G)H();else F(void 0);return}if(SZ(U)){Z(),$(!0),i(U),z(void 0);try{let m=U==="summarize_up_to"?"up_to":"from",YZ=(m==="up_to"?A:k).trim()||void 0;await W(D,YZ,m),$(!1),i(null),F(void 0),H()}catch(m){e(m),$(!1),i(null),F(void 0),z(`Failed to summarize:
3
- ${m}`)}return}Z(),$(!0),z(void 0);let R=null,c=null;if(U==="code"||U==="both")try{await V(D)}catch(m){R=m,e(R)}if(U==="conversation"||U==="both")try{await X(D)}catch(m){c=m,e(c)}if($(!1),F(void 0),c&&R)z(`Failed to restore the conversation and code:
4
- ${c}
5
- ${R}`);else if(c)z(`Failed to restore the conversation:
6
- ${c}`);else if(R)z(`Failed to restore the code:
7
- ${R}`);else H()}let WZ=P0(),t=T.useCallback(()=>{if(D&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,D,G]),I9=T.useCallback(()=>v((U)=>Math.max(0,U-1)),[]),C9=T.useCallback(()=>v((U)=>Math.min(_.length-1,U+1)),[_.length]),T9=T.useCallback(()=>v(0),[]),R9=T.useCallback(()=>v(_.length-1),[_.length]),f9=T.useCallback(()=>{let U=_[w];if(U)l(U)},[_,w,l]);$0("confirm:no",t,{context:"Confirmation",isActive:!D}),j0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":T9,"messageSelector:bottom":R9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!O&&!B&&!D&&f});let[K0,G0]=T.useState({});T.useEffect(()=>{async function U(){if(!J)return;Promise.all(_.map(async(R,c)=>{if(R.uuid!==L){let m=b0(K,R.uuid),YZ=_.at(c+1),AZ=m?XQ(Q,R.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)G0((r)=>({...r,[c]:AZ}));else G0((r)=>({...r,[c]:void 0}))}}))}U()},[_,Q,L,K,J]);let vZ=J&&y?.filesChanged&&y.filesChanged.length>0,S9=!B&&!D&&!G&&f;return b(p,{flexDirection:"column",width:"100%",children:[E(F0,{color:"suggestion"}),b(p,{flexDirection:"column",marginX:1,gap:1,children:[E(M,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:b(M,{color:"error",children:["Error: ",B]})}),!f&&E(a,{children:E(M,{children:"Nothing to rewind to yet."})}),!B&&D&&f&&b(a,{children:[b(M,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),b(M,{dimColor:!0,children:["(",L0(new Date(D.timestamp)),")"]})]}),E(YQ,{selectedRestoreOption:o,canRestoreCode:!!vZ,diffStatsForRestore:y}),O&&SZ(d)?b(p,{flexDirection:"row",gap:1,children:[E(T0,{}),E(M,{children:"Summarizing…"})]}):E(C0,{isDisabled:O,options:N(!!vZ),defaultFocusValue:vZ?"both":"conversation",onFocus:(U)=>C(U),onChange:(U)=>VZ(U),onCancel:()=>G?H():F(void 0)}),vZ&&E(p,{marginBottom:1,children:b(M,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),S9&&b(a,{children:[J?E(M,{children:"Restore the code and/or conversation to the point before…"}):E(M,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((U,R)=>{let c=P+R,m=c===w,YZ=U.uuid===L,AZ=c in K0,r=K0[c],IZ=r?.filesChanged&&r.filesChanged.length;return b(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:m?b(M,{color:"permission",bold:!0,children:[_Z.pointer," "]}):E(M,{children:" "})}),b(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:m?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&E(p,{height:1,flexDirection:"row",children:r?E(a,{children:E(M,{dimColor:!m,color:"inactive",children:IZ?b(a,{children:[IZ===1&&r.filesChanged[0]?`${QZ.basename(r.filesChanged[0])} `:`${IZ} files changed `,E(f0,{diffStats:r})]}):E(a,{children:"No code changes"})})}):b(M,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(M,{dimColor:!0,italic:!0,children:WZ.pending?b(a,{children:["Press ",WZ.keyName," again to exit"]}):b(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:V,diffStatsForRestore:W}=Q,H=V&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=E(M,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==W||Z[5]!==X||Z[6]!==H)B=!SZ(X)&&(H?E(QQ,{diffStatsForRestore:W}):E(M,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=W,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=b(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=E(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let V=X.filesChanged.length,W;if(V===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];W=K}else if(V===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];W=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];W=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=E(f0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==W||Z[12]!==H)G=E(a,{children:b(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",W,"."]})}),Z[11]=W,Z[12]=H,Z[13]=G;else G=Z[13];return G}function f0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let V;if(Z[0]!==X.insertions)V=b(M,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=V;else V=Z[1];let W;if(Z[2]!==X.deletions)W=b(M,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=W;else W=Z[3];let H;if(Z[4]!==V||Z[5]!==W)H=b(a,{children:[V,W]}),Z[4]=V,Z[5]=W,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=GZ.c(31),{userMessage:X,color:V,dimColor:W,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let S;if(Z[0]!==V||Z[1]!==W)S=E(p,{width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"(current)"})}),Z[0]=V,Z[1]=W,Z[2]=S;else S=Z[2];return S}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,w,v,P,f,D;if(Z[3]!==V||Z[4]!==K||Z[5]!==B||Z[6]!==W||Z[7]!==z||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Z:{let S=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=U0(S);if(E0(O)){let $;if(Z[17]!==V||Z[18]!==W)$=E(p,{flexDirection:"row",width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"((empty message))"})}),Z[17]=V,Z[18]=W,Z[19]=$;else $=Z[19];D=$;break Z}if(O.includes("<bash-input>")){let $=KZ(O,"bash-input");if($){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=E(M,{color:"bashBorder",children:"!"}),Z[20]=d;else d=Z[20];D=b(p,{flexDirection:"row",width:"100%",children:[d,b(M,{color:V,dimColor:W,children:[" ",$]})]});break Z}}if(O.includes(`<${RZ}>`)){let $=KZ(O,RZ),d=KZ(O,"command-args"),i=KZ(O,"skill-format")==="true";if($)if(i){D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["Skill(",$,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["/",$," ",d]})});break Z}}L=p,P="row",f="100%",J=M,_=V,w=W,v=G?B0(O,K-G,!0):O.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=V,Z[4]=K,Z[5]=B,Z[6]=W,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=w,Z[13]=v,Z[14]=P,Z[15]=f,Z[16]=D}else J=Z[9],L=Z[10],_=Z[11],w=Z[12],v=Z[13],P=Z[14],f=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==w||Z[24]!==v)F=E(J,{color:_,dimColor:w,children:v}),Z[21]=J,Z[22]=_,Z[23]=w,Z[24]=v,Z[25]=F;else F=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)y=E(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=y;else y=Z[30];return y}function XQ(Q,Z,X){let V=Q.findIndex((B)=>B.uuid===Z);if(V===-1)return;let W=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(W===-1)W=Q.length;let H=[],G=0,K=0;for(let B=V+1;B<W;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=TZ(L.lines,(v)=>v.startsWith("+")),w=TZ(L.lines,(v)=>v.startsWith("-"));G+=_,K+=w}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],V=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(V.indexOf(`<${D0}>`)!==-1||V.indexOf(`<${v0}>`)!==-1||V.indexOf(`<${z0}>`)!==-1||V.indexOf(`<${q0}>`)!==-1||V.indexOf(`<${_0}>`)!==-1||V.indexOf(`<${A0}>`)!==-1||V.indexOf(`<${O0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let V=Q[X];if(!V)continue;if(kZ(V))continue;if(xZ(V))continue;if(V.type==="progress")continue;if(V.type==="system")continue;if(V.type==="attachment")continue;if(V.type==="user"&&V.isMeta)continue;if(V.type==="assistant"){let W=V.message.content;if(Array.isArray(W)){if(W.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(V.type==="user")return!1}return!0}var GZ,T,CZ=7;var KQ=OZ(()=>{k9();UZ();i9();r9();w0();a9();g9();l9();p9();wZ();o9();s9();d9();u9();x9();h9();n9();J0();GZ=N0(m9(),1),T=N0(c9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>M6});function M6(){let Q=oY("tengu_kairos_cron_config",XZ,j6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var j6=60000,oZ=1800000,P6=2592000000,F6;var I6=OZ(()=>{JZ();$6();sY();EZ();F6=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(oZ),oneShotMaxMs:Y.number().int().min(0).max(oZ),oneShotFloorMs:Y.number().int().min(0).max(oZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as S6,unlink as X9,writeFile as eZ}from"fs/promises";import{dirname as h6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await S6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),V=ZZ(Q);try{return await eZ(X,V,{flag:"wx"}),!0}catch(W){let H=tZ(W);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(h6(X),{recursive:!0});try{return await eZ(X,V,{flag:"wx"}),!0}catch(G){if(tZ(G)==="EEXIST")return!1;throw G}}throw W}}function sZ(Q){MZ?.(),MZ=Z9(async()=>{await qZ(Q)})}async function Z0(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(V,Z))return LZ=void 0,sZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let W=await W9(Z);if(W?.sessionId===X){if(W.pid!==process.pid)await eZ(zZ(Z),ZZ(V)),sZ(Q);return!0}if(W&&Q9(W.pid)){if(LZ!==W.sessionId)LZ=W.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${W.sessionId} (PID ${W.pid})`);return!1}if(W)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${W.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(V,Z))return LZ=void 0,sZ(Q),!0;return!1}async function qZ(Q){MZ?.(),MZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V=await W9(Z);if(!V||V.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,MZ,LZ;var K9=OZ(()=>{JZ();BZ();C6();HZ();lZ();R6();T6();EZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>O9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>g6,buildMissedTaskNotification:()=>U9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function O9(Q){let Z=X0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:V0(Z.prompt),reason:Z.reason}}function g6(Q){let{onFire:Z,isLoading:X,assistantMode:V=!1,onFireTask:W,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,w=[],v=new Map,P=new Set,f=new Set,D=null,F=null,y=null,S=null,O=!1,$=!1;async function d(C){let k=await q9(K);if(O)return;if(w=k,!C)return;let x=Date.now(),A=A9(k,x).filter((j)=>!j.recurring&&!P.has(j.id)&&(!L||L(j)));if(A.length>0){for(let j of A)P.add(j.id),v.set(j.id,1/0);if(g("tengu_scheduled_task_missed",{count:A.length,taskIds:A.map((j)=>j.id).join(",")}),H)H(A);else Z(U9(A));Y0(A.map((j)=>j.id),K).catch((j)=>I(`[ScheduledTasks] failed to remove missed tasks: ${j}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!V)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function j(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=v.get(N.id);if(l===void 0)l=N.recurring?Q0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:v9(N.cron,N.createdAt,N.id,A)??1/0,v.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?V0(N.prompt,void 0,N.agentId):N.prompt;if(W)W(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Q0(N.cron,C,N.id,A)??1/0;if(v.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),v.delete(N.id);else f.add(N.id),Y0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),v.delete(N.id)}if($){for(let N of w)j(N,!1);if(x.length>0){for(let N of x)f.add(N);D9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())j(u,!0);let N=O9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("tengu_schedule_wakeup_fire",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){v.clear();return}for(let N of v.keys())if(!k.has(N))v.delete(N)}async function o(){if(O)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-1.0.13-ej84k860.mjs");if(O)return;if($=await Z0(_).catch(()=>!1),O){if($)$=!1,qZ(_);return}if(!$)y=setInterval(()=>{Z0(_).then((x)=>{if(O){if(x)qZ(_);return}if(x){if($=!0,y)clearInterval(y),y=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),y.unref?.();d(!0);let k=z9(K);S=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),S.on("add",()=>void d(!1)),S.on("change",()=>void d(!1)),S.on("unlink",()=>{if(!O)w=[],v.clear()}),F=setInterval(i,G9),F.unref?.()}return{start(){if(O=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${DZ()}, hasTasks=${bZ()}`),!DZ()&&(V||bZ()))J9(!0);if(DZ()){o();return}D=setInterval((C)=>{if(DZ())C()},G9,o),D.unref?.()},stop(){if(O=!0,D)clearInterval(D),D=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(S?.close(),S=null,$)$=!1,qZ(_)},getNextFireTime(){let C=1/0;for(let k of v.values())if(k<C)C=k;if(K===void 0){let k=X0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function U9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,V=Q.map((W)=>{let H=`[${L9(W.cron)}, created ${new Date(W.createdAt).toLocaleString()}]`,G=(W.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
- ${K}
13
- ${W.prompt}
14
- ${K}`});return`${X}
15
-
16
- ${V.join(`
17
-
18
- `)}`}var G9=1000,c6=300,m6=5000;var l6=OZ(()=>{BZ();UZ();u6();sY();K9();HZ();p6()});import{randomUUID as dZ}from"crypto";JZ();EZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),g0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),EX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:m0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:i0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(k0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:x0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),yX=q(()=>Y.object({mcpServers:Y.array(uZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),$X=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),jX=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),wQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),PX=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:p0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),jQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),h0())}).describe("Replaces the set of dynamically managed MCP servers.")),FX=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),PQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),MX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(uZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),bX=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),o0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),$Q(),UQ(),wQ(),EQ(),jQ(),PQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),s0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),t0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),IX=q(()=>Y.union([r0(),l0(),a0(),n0(),s0(),mZ(),hQ(),t0()])),CX=q(()=>Y.union([d0(),mZ(),s0(),t0(),kQ()]));lQ();HZ();dQ();lZ();JZ();HZ();EZ();e0();xQ();var xX=q(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),YY=q(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),uQ=q(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(ZY()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:YY()})),pQ=q(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:YY()})),gZ=q(()=>h.union([uQ(),pQ()]));function jZ(Q,Z,X,V){let W={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)V.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),$Z(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:W}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),V.abortController.abort();return{...Q,decisionReason:W}}rQ();gQ();PZ();JZ();aQ();qY();e0();iQ();PZ();nQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,V){let W;try{W=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{W=Q.name}return{tool_name:Q.name,action_description:W,tool_use_id:X,request_id:V,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new NY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
20
- `);if(X===-1)break;let V=Q.slice(0,X);Q=Q.slice(X+1);let W=await this.processLine(V);if(W)GY("info","cli_stdin_message_parsed",{type:W.type}),yield W}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let V=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(W){X.reject(W)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[V,W]of Object.entries(Z.variables))process.env[V]=W;I(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)HY(X,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let W=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(W))}catch(H){V.reject(H)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")XY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
21
- `)}async sendRequest(Q,Z,X,V=dZ()){let W={type:"control_request",request_id:V,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(W),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(W);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:V});let G=this.pendingRequests.get(V);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(V,{request:{type:"control_request",request_id:V,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(V)}}createCanUseTool(Q){return async(Z,X,V,W,H,G)=>{let K=G??await BY(Z,X,V,W,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=V.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,V,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let w=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:V.agentId},gZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),v=await Promise.race([L,w]);if(v.source==="hook"){if(v.decision)return w.catch(()=>{}),B.abort(),v.decision;let P=await w;return jZ(P.result,Z,X,V)}return jZ(v.result,Z,X,V)}catch(L){return jZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,V)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,V,W)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:V||void 0},JY(),W)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,V,W,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:W,url:H,elicitation_id:G,requested_schema:X},o0(),V)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},gZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,V,W){let G=V.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,V,G,W,V.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){$Z(L);let _=V.getAppState(),w=yZ(_.toolPermissionContext,L);V.setAppState((v)=>{if(v.toolPermissionContext===w)return v;return{...v,toolPermissionContext:w}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Y();function HV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?Q6(Z):Z,uuid:X}}function Q6(Q){if(!Q.some(vY))return Q;return Q.map((Z)=>{if(!vY(Z))return Z;let X=Z.source,V=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:AY(Z.source.data);return{...Z,source:{type:"base64",media_type:V,data:Z.source.data}}})}function vY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}BZ();J6();V6();G6();X6();K6();W6();import{randomUUID as H6}from"crypto";function N6(Q){return Q===wY?EY:Q}function OV(Q){let X=yY()?.outputStyle??PY,V={type:"system",subtype:"init",cwd:UY(),session_id:NZ(),tools:Q.tools.map((W)=>N6(W.name)),mcp_servers:Q.mcpClients.map((W)=>({name:W.name,status:W.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),apiKeySource:jY().source,betas:OY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((W)=>W.agentType),skills:Q.skills.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),plugins:Q.plugins.map((W)=>({name:W.name,path:W.path,source:W.source})),uuid:H6()};return V.fast_mode_state=$Y(Q.model,Q.fastMode),V}var FY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function B6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let V=[],W=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(W){if(W==="["&&L==="["){H=J;continue}if(L!==FY[W])continue;if(W==="'"&&G(Q[J+1]))continue;V.push({start:H,end:J+1}),W=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in FY)W=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(V.some((P)=>L>=P.start&&L<P.end))continue;let w=Q[L-1],v=Q[_];if(w==="/"||w==="\\"||w==="-")continue;if(v==="/"||v==="\\"||v==="-"||v==="?")continue;if(v==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function wV(Q){return B6(Q,"ultrareview")}UZ();wZ();w6();_6();O6();v6();qY();_Y();D6();wZ();U6();A6();import{randomUUID as E6}from"crypto";BZ();UZ();wZ();L6();z6();import{randomUUID as q6}from"crypto";function MY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function bY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function fY(Q,Z,X,V,W,H,G){let K=q6();IY(K);let B=typeof Q==="string"?Q:Q.find((w)=>w.type==="text")?.text||"";RY(B);let z=typeof Q==="string"?Q:Q.findLast((w)=>w.type==="text")?.text||"";if(z)TY("user_prompt",{prompt_length:String(z.length),prompt:CY(z),"prompt.id":K});let J=MY(B),L=bY(B);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:L}),Z.length>0){let w=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...w,...Z],uuid:W,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}return{messages:[s({content:Q,uuid:W,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}async function iV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:V,context:W,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:w,bridgeOrigin:v,isMeta:P,skipAttachments:f}){let D=typeof Q==="string"?Q:null;if(X==="prompt"&&D!==null&&!P)B?.(D);n("query_process_user_input_base_start");let F=W.getAppState(),y=await y6(Q,X,V,W,H,G,K,z,J,L,_,F.toolPermissionContext.mode,w,v,P,f,Z);if(n("query_process_user_input_base_end"),!y.shouldQuery)return y;n("query_hooks_start");let S=hY(Q)||"";for await(let O of iY(S,F.toolPermissionContext.mode,W,W.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let $=rY(O.blockingError);return{messages:[gY(`${$}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let $=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:$})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(kY({type:"hook_additional_context",content:O.additionalContexts.map(SY),hookName:"UserPromptSubmit",toolUseID:`hook-${E6()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:SY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return n("query_hooks_end"),y}var aZ=1e4;function SY(Q){if(Q.length>aZ)return`${Q.substring(0,aZ)}… [output truncated - exceeded ${aZ} characters]`;return Q}async function y6(Q,Z,X,V,W,H,G,K,B,z,J,L,_,w,v,P,f){let D=null,F=[],y=[],S=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)y.push(l)}A.push(u.block)}else A.push(N);S=A,n("query_image_processing_end");let j=A[A.length-1];if(j?.type==="text")D=j.text,F=A.slice(0,-1);else F=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=W?Object.values(W).filter(cY):[],$=O.map((A)=>A.id),d=W?await xY(W):new Map;n("query_pasted_image_processing_start");let i=await Promise.all(O.map(async(A)=>{let j={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await iZ(j),originalDimensions:A.dimensions,sourcePath:A.sourcePath??d.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:j,sourcePath:N}of i){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)y.push(u)}else if(j){let u=FZ(j,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(w&&D!==null&&D.startsWith("/")){let A=pY(D),j=A?nY(A.commandName,V.options.commands):void 0;if(j)if(aY(j))C=!1;else{let N=`/${lY(j)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:K}),dY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&D!==null&&(Z!=="prompt"||C||!D.startsWith("/"));n("query_attachment_loading_start");let x=k?await uY(mY(D,V,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.0.13-vymx613b.mjs");return nZ(await A(D,F,x,V,X),y)}if(D!==null&&!C&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.0.13-t2b59q54.mjs"),j=await A(D,F,o,x,V,X,K,B,J);return nZ(j,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),j=x.find((N)=>N.attachment.type==="agent_mention");if(j){let N=`@agent-${j.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("tengu_subagent_at_mention",{is_subagent_only:u,is_prefix:l})}}return nZ(fY(S,o,$,x,K,L,v),y)}function nZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}i6();BZ();HZ();lZ();n6();a6();w0();o6();r6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let V=[],W=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)V.push(G);else if(K.sourceIsFallback)H.push(G);else if(!j9(z,B.source))W.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:V,sourceChanged:W,upToDate:H}}async function IW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let V=e6(Z,X,{projectRoot:W0()}),W=[...V.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...V.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of W){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&$9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:V.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:w}=G[J];Q?.onProgress?.({type:"installing",name:L,action:w,index:J+1,total:G.length});try{let v=await M9(_);if(w==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:v.alreadyMaterialized})}catch(v){let P=w9(v);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(v)}}return{installed:K,updated:B,failed:z,upToDate:V.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??W0(),V=E9(X);return{...Q,path:t6(V??X,Q.path)}}return Q}
24
- export{HV as la,N6 as ma,OV as na,e9 as oa,S0 as pa,VQ as qa,WQ as ra,KQ as sa,wV as ta,iV as ua,gZ as va,jZ as wa,QY as xa,oQ as ya,Z6 as za,e6 as Aa,IW as Ba,M6 as Ca,b6 as Da,I6 as Ea,g6 as Fa,d6 as Ga,l6 as Ha};
@@ -1,2 +0,0 @@
1
- import{$3 as K,b4 as Z}from"./cli-1.0.13-a2j673qk.mjs";import{c4 as J,e4 as Y}from"./cli-1.0.13-zvemnxrj.mjs";import{E8 as X,e8 as D,j8 as F,k5 as B,k8 as G,p5 as W}from"./cli-1.0.13-h5mwwv8w.mjs";import{Via as y,Wia as Q}from"./cli-1.0.13-y6y32j2s.mjs";import{Kra as V,sra as z}from"./cli-1.0.13-696y87my.mjs";import{hsa as N}from"./cli-1.0.13-d9nvpqpw.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
- export{P as Pi,_ as Qi};
@@ -1,2 +0,0 @@
1
- import{QW as M,SW as X}from"./cli-1.0.13-sy93t0xx.mjs";import{Hda as W,Laa as B,Uaa as V,sda as K,yda as L}from"./cli-1.0.13-p1nsb8ay.mjs";import{hsa as Q}from"./cli-1.0.13-d9nvpqpw.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
- export{F as fc,Y as gc};
@@ -1,2 +0,0 @@
1
- import{l4 as N,q4 as $}from"./cli-1.0.13-tyhtztew.mjs";import{E8 as Z,e8 as M,m5 as L,p5 as Y}from"./cli-1.0.13-h5mwwv8w.mjs";import{qga as Q,yga as X}from"./cli-1.0.13-p1nsb8ay.mjs";import{Via as J,Wia as V}from"./cli-1.0.13-y6y32j2s.mjs";import{Fka as S,xka as P}from"./cli-1.0.13-mazxedqg.mjs";import{Kra as W,sra as K}from"./cli-1.0.13-696y87my.mjs";import{hsa as R}from"./cli-1.0.13-d9nvpqpw.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
- export{C as QW,j as RW,b as SW};
@@ -1,2 +0,0 @@
1
- import{hsa as o}from"./cli-1.0.13-d9nvpqpw.mjs";var t="https://api.githubcopilot.com",i=3,n=1,s=32,c="generativelanguage.googleapis.com",r,a="api.kimi.com",p,_,S,E;var e=o(()=>{r=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),_=new Set(["api.deepseek.com"]),S={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
- export{t as b9,i as c9,n as d9,s as e9,c as f9,r as g9,a as h9,p as i9,_ as j9,S as k9,E as l9,e as m9};
@@ -1,2 +0,0 @@
1
- import{Hi as a,Ii as l}from"./cli-1.0.13-mtnc53tx.mjs";import{Ji as m,Ki as c}from"./cli-1.0.13-bs0esgv1.mjs";import{U3 as e,W3 as n}from"./cli-1.0.13-afdk25h0.mjs";import{hsa as s}from"./cli-1.0.13-d9nvpqpw.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
2
- export{f as Fi,g as Gi};
@@ -1,17 +0,0 @@
1
- import{fsa as y,isa as b}from"./cli-1.0.13-d9nvpqpw.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
2
- `).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
3
- `)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
4
- Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
5
- `),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
6
- `),Y.enqueue(`\r
7
- `)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
8
- ${X}\r
9
- `)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
10
- `),X.push(J),X.push(`\r
11
- `)}),w.on("end",async()=>{if(X.push(`0\r
12
- `),M){let J=I(await Y);X.push(`${A}:${J}\r
13
- `),X.push(`\r
14
- `)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
15
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-1.0.13-361h9v63.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 Yra,h1 as Zra,D0 as _ra,C$ as $ra,F0 as asa,ST as bsa,C0 as csa};
@@ -1,2 +0,0 @@
1
- import{hsa as V}from"./cli-1.0.13-d9nvpqpw.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
- export{U0 as zqa,E0 as Aqa,I0 as Bqa,D0 as Cqa,b as Dqa,T as Eqa,K as Fqa,z as Gqa,B as Hqa,x as Iqa,k as Jqa,m as Kqa,G as Lqa,O as Mqa,y as Nqa,l as Oqa,o as Pqa,i as Qqa,D as Rqa,R as Sqa,x0 as Tqa,O0 as Uqa,M as Vqa,p0 as Wqa,j6 as Xqa,nq as Yqa};
@@ -1,2 +0,0 @@
1
- import{U3 as v,W3 as D}from"./cli-1.0.13-afdk25h0.mjs";import{isa as B}from"./cli-1.0.13-d9nvpqpw.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-1.0.13-ka050dp3.mjs"),J=z??import("./REPL-1.0.13-wjxj6xgk.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
- export{N as hb,O as ib};
@@ -1,3 +0,0 @@
1
- import{Yra as x,_ra as y,csa as C}from"./cli-1.0.13-tfd5mr15.mjs";import{fsa as k}from"./cli-1.0.13-d9nvpqpw.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
- `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
- export{MF as Q9};
@@ -1,2 +0,0 @@
1
- import{hsa as j}from"./cli-1.0.13-d9nvpqpw.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
- export{x as h3,y as i3,z as j3,A as k3,B as l3,C as m3,D as n3,k as o3};
@@ -1,2 +0,0 @@
1
- import{E_ as X,I_ as k,__ as Y,u$ as x}from"./cli-1.0.13-p1nsb8ay.mjs";import{Vga as $}from"./cli-1.0.13-x4xwa6y3.mjs";import{hsa as Z}from"./cli-1.0.13-d9nvpqpw.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
- export{H as jb,M as kb};
@@ -1,2 +0,0 @@
1
- import{EM as C,OM as N,XM as $,YM as k,cN as V}from"./cli-1.0.13-kr3d94dn.mjs";import{G0 as f,I0 as t,M0 as v,kZ as P,l1 as D}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as n,V3 as i,W3 as M}from"./cli-1.0.13-afdk25h0.mjs";import{dsa as w,hsa as L}from"./cli-1.0.13-d9nvpqpw.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
- export{J as Cg,z as Dg};
@@ -1,2 +0,0 @@
1
- import{_ia as f}from"./cli-1.0.13-vbby2x4m.mjs";import{bka as h}from"./cli-1.0.13-4dp5a597.mjs";import{hsa as Z}from"./cli-1.0.13-d9nvpqpw.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var w=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(){}async function oz(z){if(!z||z.length>D)return null;return null}async function dz(z){if(!z||z.length>D)return null;return null}function nz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(l(J.text));else if(m.has(J.type))break}return X}function l(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,m,pz;var L=Z(()=>{f();h();w();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),m=new Set(["command_substitution","process_substitution"]);pz=Symbol("parse-aborted")});
2
- export{K as S2,w as T2,kz as U2,oz as V2,pz as W2,dz as X2,nz as Y2,L as Z2};
@@ -1,2 +0,0 @@
1
- import{E8 as d,e8 as f,m5 as j,p5 as I,y7 as b,z7 as c}from"./cli-1.0.13-h5mwwv8w.mjs";import{X9 as F,Y9 as D}from"./cli-1.0.13-kc1q3k9n.mjs";import{qga as y,yga as T}from"./cli-1.0.13-p1nsb8ay.mjs";import{cia as $,dia as R,eia as _,fia as E}from"./cli-1.0.13-fb695nhr.mjs";import{Via as q,Wia as m}from"./cli-1.0.13-y6y32j2s.mjs";import{Dja as M,Ija as U,_ja as W,bka as z}from"./cli-1.0.13-4dp5a597.mjs";import{Fka as O,xka as k,yka as Y}from"./cli-1.0.13-mazxedqg.mjs";import{Kra as h,sra as X}from"./cli-1.0.13-696y87my.mjs";import{hsa as A}from"./cli-1.0.13-d9nvpqpw.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function NJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=F(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function WJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function GJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function vJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J="ccr-byoc-2025-07-29",BJ;var g=A(()=>{h();m();I();R();d();z();D();O();E();T();c();U();S=[2000,4000,8000,16000],x=S.length;BJ=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
2
- export{$J as f4,p as g4,u as h4,BJ as i4,C as j4,NJ as k4,L as l4,WJ as m4,GJ as n4,vJ as o4,XJ as p4,g as q4};
@@ -1,21 +0,0 @@
1
- import{$J as X,PR as F,Ur as O,Vr as Z,ik as L,lE as V,mE as $}from"./cli-1.0.13-kr3d94dn.mjs";import{hsa as Y}from"./cli-1.0.13-d9nvpqpw.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
-
3
- IMPORTANT CONTEXT:
4
- - You are a separate, lightweight agent spawned to answer this one question
5
- - The main agent is NOT interrupted - it continues working independently in the background
6
- - You share the conversation context but are a completely separate instance
7
- - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
-
9
- CRITICAL CONSTRAINTS:
10
- - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
- - This is a one-off response - there will be no follow-up turns
12
- - You can ONLY provide information based on what you already know from the conversation context
13
- - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
- - If you don't know the answer, say so - do not offer to look it up or investigate
15
-
16
- Simply answer the question with the information you have.</system-reminder>
17
-
18
- ${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
19
-
20
- `).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
21
- export{W as Nh,b as Oh,C as Ph};
@@ -1,2 +0,0 @@
1
- import{kZ as O}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as X,W3 as Q}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as b}from"./cli-1.0.13-gsz0cygn.mjs";import{Fea as W,Tea as P}from"./cli-1.0.13-p1nsb8ay.mjs";import{dsa as U}from"./cli-1.0.13-d9nvpqpw.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
- export{V as qb,C as rb};
@@ -1,2 +0,0 @@
1
- import{$Q as x,cR as B}from"./cli-1.0.13-kr3d94dn.mjs";import{hsa as z}from"./cli-1.0.13-d9nvpqpw.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
2
- export{G as zg,H as Ag,A as Bg};