@claudiolabs/claudin 1.1.26 → 1.1.27

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 (914) hide show
  1. package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +1 -0
  2. package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +1 -0
  30. package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +110 -0
  31. package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +3 -0
  32. package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +1 -0
  35. package/dist/chunks/auth-1.1.27-d561ngfq.mjs +1 -0
  36. package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +1 -0
  41. package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +1 -0
  47. package/dist/chunks/btw-1.1.27-wx6yv865.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +4 -0
  51. package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +1 -0
  52. package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +1 -0
  55. package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +1 -0
  57. package/dist/chunks/cli-1.1.27-090g18py.mjs +2 -0
  58. package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +2 -0
  59. package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +4 -0
  60. package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +2 -0
  61. package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +2 -0
  62. package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +25 -0
  64. package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +2 -0
  65. package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +3 -0
  66. package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +2 -0
  67. package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +2 -0
  68. package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +2 -0
  69. package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +2 -0
  70. package/dist/chunks/cli-1.1.27-2922x4n2.mjs +5 -0
  71. package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +2 -0
  72. package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +2 -0
  73. package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +4 -0
  74. package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +6 -0
  75. package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +2 -0
  76. package/dist/chunks/cli-1.1.27-3qx1npht.mjs +2 -0
  77. package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +2 -0
  78. package/dist/chunks/cli-1.1.27-48ezce33.mjs +206 -0
  79. package/dist/chunks/cli-1.1.27-4an77vdm.mjs +2 -0
  80. package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +3 -0
  81. package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +24 -0
  82. package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +2 -0
  83. package/dist/chunks/cli-1.1.27-4xegg6js.mjs +2 -0
  84. package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +2 -0
  85. package/dist/chunks/cli-1.1.27-55evh9sy.mjs +21 -0
  86. package/dist/chunks/cli-1.1.27-575dbhvc.mjs +2 -0
  87. package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +2 -0
  88. package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +3 -0
  89. package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +2 -0
  90. package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +2 -0
  91. package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +2 -0
  92. package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +2 -0
  93. package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +60 -0
  94. package/dist/chunks/cli-1.1.27-704q0rhh.mjs +2 -0
  95. package/dist/chunks/cli-1.1.27-79504h3t.mjs +2 -0
  96. package/dist/chunks/cli-1.1.27-7a101p3z.mjs +2 -0
  97. package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +2 -0
  98. package/dist/chunks/cli-1.1.27-7hws4y92.mjs +4 -0
  99. package/dist/chunks/cli-1.1.27-7jakzfss.mjs +24 -0
  100. package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +4 -0
  101. package/dist/chunks/cli-1.1.27-7wrz865m.mjs +2 -0
  102. package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +2 -0
  103. package/dist/chunks/cli-1.1.27-83exfkej.mjs +2 -0
  104. package/dist/chunks/cli-1.1.27-8em170zt.mjs +2 -0
  105. package/dist/chunks/cli-1.1.27-8fve969w.mjs +2 -0
  106. package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +42 -0
  107. package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +2 -0
  108. package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +2 -0
  109. package/dist/chunks/cli-1.1.27-8zkr609d.mjs +4 -0
  110. package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +3 -0
  111. package/dist/chunks/cli-1.1.27-9427t707.mjs +2 -0
  112. package/dist/chunks/cli-1.1.27-94qc7asn.mjs +2 -0
  113. package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +2 -0
  114. package/dist/chunks/cli-1.1.27-96yksxag.mjs +2 -0
  115. package/dist/chunks/cli-1.1.27-98bpezgc.mjs +45 -0
  116. package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +2 -0
  117. package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +15 -0
  118. package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +2 -0
  119. package/dist/chunks/cli-1.1.27-9sswt66t.mjs +12 -0
  120. package/dist/chunks/cli-1.1.27-a454a3rb.mjs +2 -0
  121. package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +2 -0
  122. package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +24 -0
  123. package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +2 -0
  124. package/dist/chunks/cli-1.1.27-b42yen3p.mjs +2 -0
  125. package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +2 -0
  126. package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +15 -0
  127. package/dist/chunks/cli-1.1.27-byba8306.mjs +20 -0
  128. package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +2 -0
  129. package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +2 -0
  130. package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +2 -0
  131. package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +3 -0
  132. package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +2 -0
  133. package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +2 -0
  134. package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +2 -0
  135. package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +2 -0
  136. package/dist/chunks/cli-1.1.27-d4km9s81.mjs +2 -0
  137. package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +50 -0
  138. package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +3 -0
  139. package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +2 -0
  140. package/dist/chunks/cli-1.1.27-dfww0knt.mjs +2 -0
  141. package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +2 -0
  142. package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +2 -0
  143. package/dist/chunks/cli-1.1.27-e53f6at7.mjs +2 -0
  144. package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +2 -0
  145. package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +2 -0
  146. package/dist/chunks/cli-1.1.27-eypype7d.mjs +8 -0
  147. package/dist/chunks/cli-1.1.27-f218cppx.mjs +34 -0
  148. package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +2 -0
  149. package/dist/chunks/cli-1.1.27-fary910g.mjs +2 -0
  150. package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +2 -0
  151. package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +2 -0
  152. package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +2 -0
  153. package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +4 -0
  154. package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +5 -0
  155. package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +1 -0
  156. package/dist/chunks/cli-1.1.27-gan2msv5.mjs +3 -0
  157. package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +2 -0
  158. package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +2 -0
  159. package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +2 -0
  160. package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +2 -0
  161. package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +2 -0
  162. package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +9 -0
  163. package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +2 -0
  164. package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +2 -0
  165. package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +2 -0
  166. package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +6 -0
  167. package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +2 -0
  168. package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +20 -0
  169. package/dist/chunks/cli-1.1.27-j362egg2.mjs +2 -0
  170. package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +2 -0
  171. package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +2 -0
  172. package/dist/chunks/cli-1.1.27-jg3tymed.mjs +2 -0
  173. package/dist/chunks/cli-1.1.27-jh817v59.mjs +2 -0
  174. package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +2 -0
  175. package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +2 -0
  176. package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +3 -0
  177. package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +2 -0
  178. package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +2 -0
  179. package/dist/chunks/cli-1.1.27-k115ge4q.mjs +6 -0
  180. package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +2 -0
  181. package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +2 -0
  182. package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +2 -0
  183. package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +12 -0
  184. package/dist/chunks/cli-1.1.27-kerbk21s.mjs +2 -0
  185. package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +2 -0
  186. package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +2 -0
  187. package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +2 -0
  188. package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +3 -0
  189. package/dist/chunks/cli-1.1.27-m2n4m352.mjs +2 -0
  190. package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +2 -0
  191. package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +2 -0
  192. package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +4 -0
  193. package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +2 -0
  194. package/dist/chunks/cli-1.1.27-mqt20a61.mjs +2 -0
  195. package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +3 -0
  196. package/dist/chunks/cli-1.1.27-n09bs0db.mjs +2 -0
  197. package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +2 -0
  198. package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +2 -0
  199. package/dist/chunks/cli-1.1.27-nbgxr715.mjs +10 -0
  200. package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +58 -0
  201. package/dist/chunks/cli-1.1.27-nmp82pea.mjs +3 -0
  202. package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +3 -0
  203. package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +2 -0
  204. package/dist/chunks/cli-1.1.27-ny95570d.mjs +133 -0
  205. package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +2 -0
  206. package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +2 -0
  207. package/dist/chunks/cli-1.1.27-p99q7a22.mjs +133 -0
  208. package/dist/chunks/cli-1.1.27-pab2avnw.mjs +2 -0
  209. package/dist/chunks/cli-1.1.27-pyjha53q.mjs +2 -0
  210. package/dist/chunks/cli-1.1.27-q2msmggk.mjs +2 -0
  211. package/dist/chunks/cli-1.1.27-q830jx95.mjs +2 -0
  212. package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +2 -0
  213. package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +2 -0
  214. package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +2 -0
  215. package/dist/chunks/cli-1.1.27-r2qyxh4t.mjs +26 -0
  216. package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +4 -0
  217. package/dist/chunks/cli-1.1.27-r335xv52.mjs +6 -0
  218. package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +25 -0
  219. package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +2 -0
  220. package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +7 -0
  221. package/dist/chunks/cli-1.1.27-rct7c74m.mjs +2 -0
  222. package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +2 -0
  223. package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +2 -0
  224. package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +2 -0
  225. package/dist/chunks/cli-1.1.27-s62prq89.mjs +2 -0
  226. package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +2 -0
  227. package/dist/chunks/cli-1.1.27-scfswqdr.mjs +2 -0
  228. package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +58 -0
  229. package/dist/chunks/cli-1.1.27-sngxwsap.mjs +2 -0
  230. package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +2 -0
  231. package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +2 -0
  232. package/dist/chunks/cli-1.1.27-t13xq38e.mjs +2 -0
  233. package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +2 -0
  234. package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +2 -0
  235. package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +6 -0
  236. package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +17 -0
  237. package/dist/chunks/cli-1.1.27-tpefzkds.mjs +4 -0
  238. package/dist/chunks/cli-1.1.27-tw693ept.mjs +2 -0
  239. package/dist/chunks/cli-1.1.27-v24sqtag.mjs +24 -0
  240. package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +2 -0
  241. package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +15 -0
  242. package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +6 -0
  243. package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +39 -0
  244. package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +2 -0
  245. package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +5522 -0
  246. package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +2 -0
  247. package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +2 -0
  248. package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +2 -0
  249. package/dist/chunks/cli-1.1.27-wtthtmes.mjs +3 -0
  250. package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +2 -0
  251. package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +17 -0
  252. package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +16 -0
  253. package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +7 -0
  254. package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +2 -0
  255. package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +2 -0
  256. package/dist/chunks/cli-1.1.27-y712t8h2.mjs +2 -0
  257. package/dist/chunks/cli-1.1.27-y935z28w.mjs +2 -0
  258. package/dist/chunks/cli-1.1.27-yghv5btz.mjs +2 -0
  259. package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +18 -0
  260. package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +2 -0
  261. package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +9 -0
  262. package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +2 -0
  263. package/dist/chunks/cli-1.1.27-zr523fbq.mjs +3 -0
  264. package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +1 -0
  265. package/dist/chunks/color-1.1.27-58s1yrz1.mjs +1 -0
  266. package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +3 -0
  267. package/dist/chunks/config-1.1.27-7vwe1qph.mjs +1 -0
  268. package/dist/chunks/config-1.1.27-ymfcbn84.mjs +1 -0
  269. package/dist/chunks/constants-1.1.27-3r2715sd.mjs +1 -0
  270. package/dist/chunks/context-1.1.27-yznf0qn9.mjs +1 -0
  271. package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +1 -0
  272. package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +1 -0
  273. package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +1 -0
  274. package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +9 -0
  275. package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +1 -0
  276. package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +1 -0
  277. package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +1 -0
  278. package/dist/chunks/debug-1.1.27-42bn4afg.mjs +1 -0
  279. package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +1534 -0
  280. package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +1 -0
  281. package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +1 -0
  282. package/dist/chunks/detection-1.1.27-0974kbef.mjs +1 -0
  283. package/dist/chunks/diff-1.1.27-1cb81w47.mjs +1 -0
  284. package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +1 -0
  285. package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +1 -0
  286. package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +1 -0
  287. package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +13 -0
  288. package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +1 -0
  289. package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +1 -0
  290. package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +1 -0
  291. package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +1 -0
  292. package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +1 -0
  293. package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +1 -0
  294. package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +1 -0
  295. package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +1 -0
  296. package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +1 -0
  297. package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +1 -0
  298. package/dist/chunks/export-1.1.27-tda60v40.mjs +2 -0
  299. package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +1 -0
  301. package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +1 -0
  302. package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +1 -0
  304. package/dist/chunks/git-1.1.27-pe9yjmar.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +1 -0
  306. package/dist/chunks/goal-1.1.27-da40b321.mjs +4 -0
  307. package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +1 -0
  308. package/dist/chunks/headless-1.1.27-gwzekzne.mjs +2 -0
  309. package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +6 -0
  310. package/dist/chunks/help-1.1.27-gwcwagyv.mjs +1 -0
  311. package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +3 -0
  312. package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +1 -0
  313. package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +79 -0
  314. package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +3 -0
  315. package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +1 -0
  316. package/dist/chunks/import-1.1.27-69zkqd7t.mjs +261 -0
  317. package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +1 -0
  318. package/dist/chunks/index-1.1.27-03qtf3bh.mjs +9 -0
  319. package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +1 -0
  320. package/dist/chunks/index-1.1.27-4td4kk2r.mjs +2 -0
  321. package/dist/chunks/index-1.1.27-72s4gvww.mjs +1 -0
  322. package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +9 -0
  323. package/dist/chunks/index-1.1.27-949q66tk.mjs +1 -0
  324. package/dist/chunks/index-1.1.27-9w6rbss1.mjs +1 -0
  325. package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +5 -0
  326. package/dist/chunks/index-1.1.27-9za77x22.mjs +2 -0
  327. package/dist/chunks/index-1.1.27-av965j5w.mjs +1 -0
  328. package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +1 -0
  329. package/dist/chunks/index-1.1.27-dzzkz91c.mjs +1 -0
  330. package/dist/chunks/index-1.1.27-ed0cj234.mjs +30 -0
  331. package/dist/chunks/index-1.1.27-fz6pezpj.mjs +1 -0
  332. package/dist/chunks/index-1.1.27-haym7ds6.mjs +1 -0
  333. package/dist/chunks/index-1.1.27-k2zye2ba.mjs +1 -0
  334. package/dist/chunks/index-1.1.27-ktav82bw.mjs +1 -0
  335. package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +1 -0
  336. package/dist/chunks/index-1.1.27-r6ypg71x.mjs +1 -0
  337. package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +1 -0
  338. package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +23 -0
  339. package/dist/chunks/index-1.1.27-spc0z43g.mjs +1 -0
  340. package/dist/chunks/index-1.1.27-xvd24vg3.mjs +1 -0
  341. package/dist/chunks/init-1.1.27-kbwzggfn.mjs +1 -0
  342. package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +1 -0
  343. package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +1 -0
  344. package/dist/chunks/insights-1.1.27-r17n37gt.mjs +870 -0
  345. package/dist/chunks/install-1.1.27-rst7c5sr.mjs +1 -0
  346. package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +149 -0
  347. package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +1 -0
  348. package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +1 -0
  350. package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +2 -0
  351. package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +1 -0
  355. package/dist/chunks/log-1.1.27-trbh6pmv.mjs +1 -0
  356. package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +1 -0
  357. package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +1 -0
  359. package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +17 -0
  360. package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +4 -0
  361. package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +1 -0
  362. package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +72 -0
  363. package/dist/chunks/model-1.1.27-968y8qcm.mjs +2 -0
  364. package/dist/chunks/model-1.1.27-p2b82a7t.mjs +1 -0
  365. package/dist/chunks/node-1.1.27-bghx5g4n.mjs +1 -0
  366. package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +15 -0
  367. package/dist/chunks/oauth-1.1.27-19qatx62.mjs +1 -0
  368. package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +14 -0
  369. package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +1 -0
  370. package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +1 -0
  372. package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +1 -0
  373. package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +1 -0
  374. package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +3 -0
  375. package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +1 -0
  376. package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +1 -0
  377. package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +1 -0
  378. package/dist/chunks/plugin-1.1.27-benemmgh.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +1 -0
  380. package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +9 -0
  381. package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +2 -0
  382. package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +57 -0
  383. package/dist/chunks/process-1.1.27-1en4vj8c.mjs +1 -0
  384. package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +1 -0
  385. package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +9 -0
  386. package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +1 -0
  387. package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +1 -0
  388. package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +1 -0
  389. package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +13 -0
  390. package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +2 -0
  391. package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +1 -0
  392. package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +6 -0
  393. package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +1 -0
  394. package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +26 -0
  395. package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +1 -0
  396. package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +5 -0
  397. package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +2 -0
  398. package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +1 -0
  399. package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +1 -0
  400. package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +1 -0
  401. package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +1 -0
  402. package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +1 -0
  403. package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +1 -0
  404. package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +2 -0
  405. package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +1 -0
  406. package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +1 -0
  407. package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +10 -0
  408. package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +1 -0
  410. package/dist/chunks/session-1.1.27-bv5zha49.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +1 -0
  413. package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +1 -0
  414. package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +1 -0
  415. package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +12 -0
  416. package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +1 -0
  417. package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +1 -0
  418. package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +1 -0
  420. package/dist/chunks/state-1.1.27-fpyqkxby.mjs +1 -0
  421. package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +1 -0
  422. package/dist/chunks/status-1.1.27-7vscpczw.mjs +1 -0
  423. package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +1 -0
  425. package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +1 -0
  426. package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +1 -0
  428. package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +1 -0
  429. package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +1 -0
  430. package/dist/chunks/theme-1.1.27-dzme81zx.mjs +1 -0
  431. package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +1 -0
  432. package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +1 -0
  433. package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +1 -0
  434. package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +1 -0
  435. package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +1 -0
  436. package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +69 -0
  438. package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +4 -0
  440. package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +72 -0
  441. package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +1 -0
  442. package/dist/chunks/upload-1.1.27-9natjvcx.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +1 -0
  445. package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +1 -0
  446. package/dist/chunks/util-1.1.27-m60qqy4m.mjs +1 -0
  447. package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +1 -0
  448. package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +1 -0
  449. package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +13 -0
  450. package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +1 -0
  451. package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +132 -0
  452. package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +1 -0
  453. package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +1 -0
  454. package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +1 -0
  455. package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +7 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +9 -9
  458. package/dist/chunks/AgentTool-1.1.26-pww3rzse.mjs +0 -1
  459. package/dist/chunks/App-1.1.26-4vaezrz4.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +0 -1
  466. package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +0 -6
  467. package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +0 -6
  469. package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +0 -1
  470. package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +0 -1
  471. package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +0 -1
  472. package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +0 -1
  473. package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +0 -1
  474. package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +0 -1
  475. package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +0 -1
  476. package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +0 -1
  477. package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +0 -1
  478. package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +0 -1
  479. package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +0 -1
  480. package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +0 -1
  481. package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +0 -9
  482. package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +0 -1
  483. package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +0 -1
  484. package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +0 -1
  485. package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +0 -1
  486. package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +0 -1
  487. package/dist/chunks/agents-1.1.26-dasaamxr.mjs +0 -3
  488. package/dist/chunks/agents-1.1.26-p33pq694.mjs +0 -110
  489. package/dist/chunks/api-1.1.26-msb1jnzq.mjs +0 -1
  490. package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +0 -1
  491. package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +0 -1
  492. package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +0 -1
  493. package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +0 -1
  494. package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +0 -52
  495. package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +0 -44
  496. package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +0 -1
  497. package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +0 -1
  498. package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +0 -4
  499. package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +0 -2
  500. package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +0 -1
  501. package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +0 -1
  502. package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +0 -88
  503. package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +0 -1
  504. package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +0 -1
  505. package/dist/chunks/buddy-1.1.26-20xpa564.mjs +0 -3
  506. package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +0 -21
  507. package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +0 -4
  508. package/dist/chunks/caches-1.1.26-g9aneehb.mjs +0 -1
  509. package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +0 -3
  510. package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +0 -1
  511. package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +0 -1
  512. package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +0 -1
  513. package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +0 -1
  514. package/dist/chunks/cli-1.1.26-01erqdx7.mjs +0 -6
  515. package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +0 -6
  516. package/dist/chunks/cli-1.1.26-132vkvj1.mjs +0 -2
  517. package/dist/chunks/cli-1.1.26-14kc3afb.mjs +0 -3
  518. package/dist/chunks/cli-1.1.26-14n169e4.mjs +0 -2
  519. package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +0 -2
  520. package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +0 -2
  521. package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +0 -2
  522. package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +0 -21
  523. package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +0 -24
  524. package/dist/chunks/cli-1.1.26-28qe790b.mjs +0 -2
  525. package/dist/chunks/cli-1.1.26-2dzytde4.mjs +0 -2
  526. package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +0 -4
  527. package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +0 -2
  528. package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +0 -2
  529. package/dist/chunks/cli-1.1.26-2msjf68r.mjs +0 -2
  530. package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +0 -2
  531. package/dist/chunks/cli-1.1.26-31negda3.mjs +0 -2
  532. package/dist/chunks/cli-1.1.26-32vewh62.mjs +0 -6
  533. package/dist/chunks/cli-1.1.26-38m8cha0.mjs +0 -2
  534. package/dist/chunks/cli-1.1.26-3c44vscp.mjs +0 -2
  535. package/dist/chunks/cli-1.1.26-3gepexgn.mjs +0 -66
  536. package/dist/chunks/cli-1.1.26-3hemew00.mjs +0 -3
  537. package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +0 -2
  538. package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +0 -2
  539. package/dist/chunks/cli-1.1.26-3p2ch222.mjs +0 -2
  540. package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +0 -24
  541. package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +0 -2
  542. package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +0 -2
  543. package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +0 -17
  544. package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +0 -2
  545. package/dist/chunks/cli-1.1.26-516p6zzp.mjs +0 -2
  546. package/dist/chunks/cli-1.1.26-55ayan24.mjs +0 -133
  547. package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +0 -2
  548. package/dist/chunks/cli-1.1.26-5p6865dd.mjs +0 -2
  549. package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +0 -5
  550. package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +0 -2
  551. package/dist/chunks/cli-1.1.26-6g0bq6h6.mjs +0 -26
  552. package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +0 -2
  553. package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +0 -3
  554. package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +0 -2
  555. package/dist/chunks/cli-1.1.26-73s95190.mjs +0 -4
  556. package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +0 -4
  557. package/dist/chunks/cli-1.1.26-79j24jxp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.26-7h1213xq.mjs +0 -1
  559. package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +0 -2
  560. package/dist/chunks/cli-1.1.26-7q7jw0ck.mjs +0 -2
  561. package/dist/chunks/cli-1.1.26-7ssnr221.mjs +0 -4
  562. package/dist/chunks/cli-1.1.26-851khk0n.mjs +0 -2
  563. package/dist/chunks/cli-1.1.26-89reg5gc.mjs +0 -2
  564. package/dist/chunks/cli-1.1.26-8h5tr358.mjs +0 -2
  565. package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +0 -2
  567. package/dist/chunks/cli-1.1.26-945rz3ns.mjs +0 -2
  568. package/dist/chunks/cli-1.1.26-97w71raz.mjs +0 -2
  569. package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +0 -2
  570. package/dist/chunks/cli-1.1.26-9mg6k159.mjs +0 -2
  571. package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +0 -2
  572. package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +0 -2
  573. package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +0 -7
  574. package/dist/chunks/cli-1.1.26-agrrdhst.mjs +0 -12
  575. package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +0 -2
  576. package/dist/chunks/cli-1.1.26-arx4za97.mjs +0 -2
  577. package/dist/chunks/cli-1.1.26-avyt487s.mjs +0 -4
  578. package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +0 -24
  579. package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +0 -2
  580. package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +0 -4
  581. package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +0 -2
  582. package/dist/chunks/cli-1.1.26-bs6j2409.mjs +0 -2
  583. package/dist/chunks/cli-1.1.26-bv6bd469.mjs +0 -2
  584. package/dist/chunks/cli-1.1.26-c1s0antn.mjs +0 -2
  585. package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +0 -4
  586. package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +0 -6
  587. package/dist/chunks/cli-1.1.26-chwpygff.mjs +0 -2
  588. package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +0 -4
  589. package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +0 -2
  590. package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +0 -2
  591. package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +0 -2
  592. package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +0 -2
  593. package/dist/chunks/cli-1.1.26-e807ek7h.mjs +0 -3
  594. package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +0 -2
  595. package/dist/chunks/cli-1.1.26-eb90p21t.mjs +0 -10
  596. package/dist/chunks/cli-1.1.26-edg965cj.mjs +0 -2
  597. package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +0 -2
  598. package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +0 -3
  599. package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +0 -3
  600. package/dist/chunks/cli-1.1.26-f624n21e.mjs +0 -2
  601. package/dist/chunks/cli-1.1.26-fcnssbje.mjs +0 -2
  602. package/dist/chunks/cli-1.1.26-ft1bty40.mjs +0 -45
  603. package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +0 -3
  604. package/dist/chunks/cli-1.1.26-g1a27741.mjs +0 -3
  605. package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +0 -2
  606. package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +0 -2
  607. package/dist/chunks/cli-1.1.26-g825efx8.mjs +0 -3
  608. package/dist/chunks/cli-1.1.26-grerq74y.mjs +0 -4
  609. package/dist/chunks/cli-1.1.26-gt65gs27.mjs +0 -2
  610. package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +0 -2
  611. package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +0 -34
  612. package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +0 -2
  613. package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +0 -2
  614. package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +0 -2
  615. package/dist/chunks/cli-1.1.26-hkn2maax.mjs +0 -12
  616. package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +0 -20
  617. package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +0 -24
  618. package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +0 -2
  619. package/dist/chunks/cli-1.1.26-j0pfn318.mjs +0 -2
  620. package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +0 -25
  621. package/dist/chunks/cli-1.1.26-j522h2zj.mjs +0 -2
  622. package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +0 -2
  623. package/dist/chunks/cli-1.1.26-jaq75h39.mjs +0 -2
  624. package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +0 -2
  625. package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +0 -2
  626. package/dist/chunks/cli-1.1.26-jstehae2.mjs +0 -25
  627. package/dist/chunks/cli-1.1.26-jv1escq9.mjs +0 -9
  628. package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +0 -2
  629. package/dist/chunks/cli-1.1.26-k287xjcs.mjs +0 -2
  630. package/dist/chunks/cli-1.1.26-k827q3s7.mjs +0 -2
  631. package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +0 -15
  632. package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +0 -2
  633. package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +0 -50
  634. package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +0 -2
  635. package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +0 -2
  636. package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +0 -5459
  637. package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +0 -20
  638. package/dist/chunks/cli-1.1.26-kz0et72d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +0 -2
  640. package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +0 -6
  641. package/dist/chunks/cli-1.1.26-m8mebydd.mjs +0 -3
  642. package/dist/chunks/cli-1.1.26-mb749hsh.mjs +0 -2
  643. package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +0 -2
  644. package/dist/chunks/cli-1.1.26-mvjefec1.mjs +0 -206
  645. package/dist/chunks/cli-1.1.26-n0thzakv.mjs +0 -2
  646. package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +0 -2
  647. package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +0 -2
  648. package/dist/chunks/cli-1.1.26-nkp41vem.mjs +0 -2
  649. package/dist/chunks/cli-1.1.26-np0se5jr.mjs +0 -2
  650. package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +0 -6
  651. package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +0 -60
  652. package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +0 -2
  653. package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +0 -2
  654. package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +0 -2
  655. package/dist/chunks/cli-1.1.26-pf85an2q.mjs +0 -2
  656. package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +0 -2
  657. package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +0 -39
  658. package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +0 -2
  659. package/dist/chunks/cli-1.1.26-pttr45sa.mjs +0 -2
  660. package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +0 -2
  661. package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +0 -2
  662. package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +0 -2
  663. package/dist/chunks/cli-1.1.26-q9msymy9.mjs +0 -7
  664. package/dist/chunks/cli-1.1.26-qf02kggq.mjs +0 -2
  665. package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +0 -2
  666. package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +0 -17
  667. package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +0 -2
  668. package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +0 -3
  669. package/dist/chunks/cli-1.1.26-rbxsj403.mjs +0 -8
  670. package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +0 -2
  671. package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +0 -2
  672. package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +0 -2
  673. package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +0 -2
  674. package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +0 -9
  675. package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +0 -2
  676. package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +0 -2
  677. package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +0 -15
  678. package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +0 -2
  679. package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +0 -2
  680. package/dist/chunks/cli-1.1.26-swdk2n55.mjs +0 -2
  681. package/dist/chunks/cli-1.1.26-sx40y42s.mjs +0 -2
  682. package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +0 -18
  683. package/dist/chunks/cli-1.1.26-t05x8de5.mjs +0 -2
  684. package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +0 -3
  685. package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +0 -2
  686. package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +0 -16
  687. package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +0 -42
  688. package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +0 -2
  689. package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +0 -2
  690. package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +0 -58
  691. package/dist/chunks/cli-1.1.26-v440gznh.mjs +0 -3
  692. package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +0 -2
  693. package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +0 -2
  694. package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +0 -2
  695. package/dist/chunks/cli-1.1.26-vne421we.mjs +0 -133
  696. package/dist/chunks/cli-1.1.26-vpdrb404.mjs +0 -2
  697. package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +0 -2
  698. package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +0 -5
  699. package/dist/chunks/cli-1.1.26-w94mate8.mjs +0 -2
  700. package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +0 -2
  701. package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +0 -2
  702. package/dist/chunks/cli-1.1.26-x64s4kth.mjs +0 -2
  703. package/dist/chunks/cli-1.1.26-x82tpywr.mjs +0 -2
  704. package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +0 -15
  705. package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +0 -2
  706. package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +0 -2
  707. package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +0 -2
  708. package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +0 -2
  709. package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +0 -2
  710. package/dist/chunks/cli-1.1.26-xwryqq86.mjs +0 -2
  711. package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +0 -2
  712. package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +0 -2
  713. package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +0 -2
  714. package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +0 -2
  715. package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +0 -3
  716. package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +0 -2
  717. package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +0 -2
  718. package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +0 -2
  719. package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +0 -2
  720. package/dist/chunks/client-1.1.26-5m13dtqt.mjs +0 -1
  721. package/dist/chunks/color-1.1.26-hc4gee57.mjs +0 -1
  722. package/dist/chunks/compact-1.1.26-k29q801r.mjs +0 -3
  723. package/dist/chunks/config-1.1.26-20jye461.mjs +0 -1
  724. package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +0 -1
  725. package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +0 -1
  726. package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +0 -1
  727. package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +0 -1
  728. package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +0 -1
  729. package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +0 -1
  730. package/dist/chunks/copy-1.1.26-t50s90xg.mjs +0 -9
  731. package/dist/chunks/cost-1.1.26-9hp3110j.mjs +0 -1
  732. package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +0 -1
  733. package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +0 -1
  734. package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +0 -1
  735. package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +0 -1534
  736. package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +0 -1
  737. package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +0 -1
  738. package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +0 -1
  739. package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +0 -1
  740. package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +0 -1
  741. package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +0 -1
  742. package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +0 -1
  743. package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +0 -13
  744. package/dist/chunks/engine-1.1.26-jt09gh12.mjs +0 -1
  745. package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +0 -1
  746. package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +0 -1
  747. package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +0 -1
  748. package/dist/chunks/environments-1.1.26-fz5c214j.mjs +0 -1
  749. package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +0 -1
  750. package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +0 -1
  751. package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +0 -1
  752. package/dist/chunks/exit-1.1.26-55716s6k.mjs +0 -1
  753. package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +0 -1
  754. package/dist/chunks/export-1.1.26-mgccr0ea.mjs +0 -2
  755. package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +0 -1
  756. package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +0 -1
  757. package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +0 -1
  758. package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +0 -14
  759. package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +0 -1
  760. package/dist/chunks/git-1.1.26-0he7ww02.mjs +0 -1
  761. package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +0 -1
  762. package/dist/chunks/goal-1.1.26-n5s850gv.mjs +0 -4
  763. package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +0 -1
  764. package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +0 -2
  765. package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +0 -6
  766. package/dist/chunks/help-1.1.26-brf53t1m.mjs +0 -1
  767. package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +0 -3
  768. package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +0 -1
  769. package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +0 -79
  770. package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +0 -3
  771. package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +0 -1
  772. package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +0 -261
  773. package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +0 -1
  774. package/dist/chunks/index-1.1.26-1xcc10z3.mjs +0 -1
  775. package/dist/chunks/index-1.1.26-46seym0e.mjs +0 -1
  776. package/dist/chunks/index-1.1.26-4qsakkwp.mjs +0 -1
  777. package/dist/chunks/index-1.1.26-62wb3t76.mjs +0 -5
  778. package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +0 -2
  779. package/dist/chunks/index-1.1.26-924a690m.mjs +0 -1
  780. package/dist/chunks/index-1.1.26-9hqzzjph.mjs +0 -1
  781. package/dist/chunks/index-1.1.26-bmzaqft1.mjs +0 -1
  782. package/dist/chunks/index-1.1.26-cpb34jqj.mjs +0 -9
  783. package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +0 -1
  784. package/dist/chunks/index-1.1.26-gyna59qe.mjs +0 -1
  785. package/dist/chunks/index-1.1.26-h45zww68.mjs +0 -30
  786. package/dist/chunks/index-1.1.26-matsx1ed.mjs +0 -1
  787. package/dist/chunks/index-1.1.26-pm334xks.mjs +0 -1
  788. package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +0 -1
  789. package/dist/chunks/index-1.1.26-sh5v696c.mjs +0 -1
  790. package/dist/chunks/index-1.1.26-srjepzh3.mjs +0 -2
  791. package/dist/chunks/index-1.1.26-syyhrh9b.mjs +0 -23
  792. package/dist/chunks/index-1.1.26-te4885d9.mjs +0 -1
  793. package/dist/chunks/index-1.1.26-tyjd8na6.mjs +0 -1
  794. package/dist/chunks/index-1.1.26-vk1z10tp.mjs +0 -1
  795. package/dist/chunks/index-1.1.26-vpyv4546.mjs +0 -9
  796. package/dist/chunks/index-1.1.26-xc6bagza.mjs +0 -1
  797. package/dist/chunks/init-1.1.26-bnpznn1w.mjs +0 -1
  798. package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +0 -1
  799. package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +0 -1
  800. package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +0 -870
  801. package/dist/chunks/install-1.1.26-4y132asw.mjs +0 -1
  802. package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +0 -149
  803. package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +0 -1
  804. package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +0 -1
  805. package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +0 -1
  806. package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +0 -2
  807. package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +0 -2
  808. package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +0 -1
  809. package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +0 -1
  810. package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +0 -1
  811. package/dist/chunks/log-1.1.26-esy3mc70.mjs +0 -1
  812. package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +0 -1
  813. package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +0 -1
  814. package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +0 -17
  815. package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +0 -1
  816. package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +0 -4
  817. package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +0 -1
  818. package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +0 -72
  819. package/dist/chunks/model-1.1.26-fhssfrx1.mjs +0 -1
  820. package/dist/chunks/model-1.1.26-v4t85ag1.mjs +0 -2
  821. package/dist/chunks/node-1.1.26-y7ck63cv.mjs +0 -15
  822. package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +0 -1
  823. package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +0 -14
  824. package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +0 -1
  825. package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +0 -1
  826. package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +0 -1
  827. package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +0 -1
  828. package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +0 -1
  829. package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +0 -1
  830. package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +0 -3
  831. package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +0 -1
  832. package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +0 -1
  833. package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +0 -29
  834. package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +0 -1
  835. package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +0 -9
  836. package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +0 -2
  837. package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +0 -57
  838. package/dist/chunks/process-1.1.26-nkvbv24g.mjs +0 -1
  839. package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +0 -1
  840. package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +0 -9
  841. package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +0 -1
  842. package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +0 -1
  843. package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +0 -1
  844. package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +0 -13
  845. package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +0 -2
  846. package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +0 -1
  847. package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +0 -6
  848. package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +0 -1
  849. package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +0 -26
  850. package/dist/chunks/registry-1.1.26-z88679pc.mjs +0 -1
  851. package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +0 -5
  852. package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +0 -2
  853. package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +0 -1
  854. package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +0 -1
  855. package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +0 -1
  856. package/dist/chunks/rename-1.1.26-vp06xehr.mjs +0 -1
  857. package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +0 -1
  858. package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +0 -1
  859. package/dist/chunks/resume-1.1.26-agfxxd17.mjs +0 -2
  860. package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +0 -1
  861. package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +0 -1
  862. package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +0 -10
  863. package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +0 -1
  864. package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +0 -1
  865. package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +0 -2
  866. package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +0 -1
  867. package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +0 -1
  868. package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +0 -1
  869. package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +0 -1
  870. package/dist/chunks/setup-1.1.26-2qatx87q.mjs +0 -12
  871. package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +0 -1
  872. package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +0 -1
  873. package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +0 -1
  874. package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +0 -1
  875. package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +0 -1
  876. package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +0 -1
  877. package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +0 -1
  878. package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +0 -1
  879. package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +0 -1
  880. package/dist/chunks/tasks-1.1.26-05xaegas.mjs +0 -1
  881. package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +0 -1
  882. package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +0 -1
  883. package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +0 -1
  884. package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +0 -1
  885. package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +0 -1
  886. package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +0 -1
  887. package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +0 -1
  888. package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +0 -1
  889. package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +0 -1
  890. package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +0 -1
  891. package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +0 -1
  892. package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +0 -69
  893. package/dist/chunks/types-1.1.26-myrve966.mjs +0 -1
  894. package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +0 -4
  895. package/dist/chunks/update-1.1.26-96yjt7je.mjs +0 -72
  896. package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +0 -1
  897. package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +0 -7
  898. package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +0 -14
  899. package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +0 -1
  900. package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +0 -1
  901. package/dist/chunks/util-1.1.26-f55brgp6.mjs +0 -1
  902. package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +0 -1
  903. package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +0 -1
  904. package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +0 -13
  905. package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +0 -1
  906. package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +0 -132
  907. package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +0 -1
  908. package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +0 -1
  909. package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +0 -1
  910. package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +0 -7
  911. /package/dist/chunks/{cli-1.1.26-t8fgt5kw.mjs → cli-1.1.27-097en7tp.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.26-sgj6knz9.mjs → cli-1.1.27-5mn2zxpk.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.26-rbz29dt9.mjs → cli-1.1.27-f8njyndt.mjs} +0 -0
  914. /package/dist/chunks/{cli-1.1.26-nqygxkhw.mjs → cli-1.1.27-sgvc7y72.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{Fd as z,Gd as K}from"./cli-1.1.26-x82tpywr.mjs";import{oL as w,qL as J}from"./cli-1.1.26-kvt0v6vq.mjs";import{P4 as H}from"./cli-1.1.26-kz0et72d.mjs";import{_ta as E,cua as G}from"./cli-1.1.26-zb5hq3ry.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
- export{V as Bd,N as Cd};
@@ -1,2 +0,0 @@
1
- import{E1 as k,G1 as y,M1 as MQ,V1 as _Q,W1 as aQ,_1 as d,f0 as u,j2 as a,r1 as QQ,s1 as uQ}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as K,N4 as l,O4 as m}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as v}from"./cli-1.1.26-kz0et72d.mjs";import{d5 as n,f5 as t,k5 as YV}from"./cli-1.1.26-xrb5tnj3.mjs";import{c9 as $Q,f9 as P,i9 as pQ,x9 as XV}from"./cli-1.1.26-tgtv1jp3.mjs";import{Fha as CQ,Jfa as fQ,Mfa as x,Nha as VV,ffa as mQ,fga as QV,gfa as eQ}from"./cli-1.1.26-mvjefec1.mjs";import{Sha as IQ,Tha as sQ}from"./cli-1.1.26-79g0hfrb.mjs";import{Gka as r,Hka as nQ}from"./cli-1.1.26-hk66nk4j.mjs";import{Lla as E,Ola as iQ}from"./cli-1.1.26-nr4x1ay3.mjs";import{Cta as tQ,kta as i}from"./cli-1.1.26-hxty6b5t.mjs";import{_ta as T,cua as F}from"./cli-1.1.26-zb5hq3ry.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{XQ as RY,YQ as SY,JQ as TY,hQ as UY,c as VY,NV as WY,LQ as XY,qQ as YY,zQ as ZY,NQ as _Y,TV as $Y,h as aZ,KV as bZ,UQ as cZ,RV as dZ,OQ as eZ,wQ as fZ,o as gZ,WQ as hZ,$V as iZ,oQ as jZ,s as kZ,SQ as lZ,bV as mZ,xV as nZ,AQ as oZ,DQ as pZ,EQ as qZ,oV as rZ,rQ as sZ,ZX as tZ,GX as uZ,JX as vZ,LX as wZ,qX as xZ,JV as yZ,HX as zZ,LV as AZ};
@@ -1,25 +0,0 @@
1
- import{A_ as k,B_ as ur,C_ as Qc,D_ as Bc,E_ as ra,F_ as Xc,G_ as Yc,H_ as Zc,I_ as Jc,J_ as el,K_ as Hc,L_ as cr,M_ as Cc,N_ as Ts,O_ as gl,o_ as nt,p_ as hl,q_ as bl,r_ as ml,s_ as fn,t_ as $c,u_ as fu,v_ as Al,w_ as ys,x_ as El,y_ as st,z_ as hs}from"./cli-1.1.26-kvy3vgrt.mjs";import{P_ as ie}from"./cli-1.1.26-r4ewzysx.mjs";import{Pta as kc,Qta as Le}from"./cli-1.1.26-rrq5hxxh.mjs";import{Sta as Vc}from"./cli-1.1.26-c9m56qw1.mjs";import{Uta as Fe,Vta as ve,Yta as De,Zta as ee}from"./cli-1.1.26-qw49rw3y.mjs";import{aua as E,dua as Bs}from"./cli-1.1.26-zb5hq3ry.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
2
- ${this.getCanonicalPath(e)}
3
- ${er(e)}
4
- ${n.map((s)=>`${s}:${t[s]}`).join(`
5
- `)}
6
-
7
- ${n.join(";")}
8
- ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
9
- ${e}
10
- ${t}
11
- ${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
12
- `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
13
- `+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
14
- ${this.getCanonicalPath(e)}
15
- ${Xr(e)}
16
- ${n.map((s)=>`${s}:${t[s]}`).join(`
17
- `)}
18
-
19
- ${n.join(";")}
20
- ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
21
- ${e}
22
- ${t}
23
- ${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
24
- `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
25
- export{zl as n_};
@@ -1,2 +0,0 @@
1
- import{T4 as J,V4 as Y}from"./cli-1.1.26-xzbv3dzb.mjs";import{$4 as X,Z4 as G}from"./cli-1.1.26-k827q3s7.mjs";import{Z8 as B,b6 as z,c9 as D,d9 as F,g6 as V,x9 as W}from"./cli-1.1.26-tgtv1jp3.mjs";import{Gka as w,Hka as N}from"./cli-1.1.26-hk66nk4j.mjs";import{Cta as Q,kta as y}from"./cli-1.1.26-hxty6b5t.mjs";import{cua as M}from"./cli-1.1.26-zb5hq3ry.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
2
- export{f as qj,Z as rj};
@@ -1,2 +0,0 @@
1
- import{FW as f,GW as h,WW as u}from"./cli-1.1.26-2s2gpj0g.mjs";import{dY as C,pY as d}from"./cli-1.1.26-wy5w6zkt.mjs";import{i5 as w,k5 as F}from"./cli-1.1.26-xrb5tnj3.mjs";import{G5 as O,M5 as i}from"./cli-1.1.26-tgtv1jp3.mjs";import{B9 as x,E9 as v,L9 as M,M9 as A,R9 as I}from"./cli-1.1.26-agrrdhst.mjs";import{Fha as K,Nha as j}from"./cli-1.1.26-mvjefec1.mjs";import{Gka as R,Hka as _}from"./cli-1.1.26-hk66nk4j.mjs";import{Lla as J,Ola as W,ola as X,pla as P,tla as T}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as y,qma as p}from"./cli-1.1.26-7ssnr221.mjs";import{dua as q}from"./cli-1.1.26-zb5hq3ry.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.26-smg8ftbk.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
- export{N as jb,$z as kb,Xz as lb,xz as mb,Uz as nb};
@@ -1,2 +0,0 @@
1
- import{ue as Jq,ye as Tq}from"./cli-1.1.26-cmeam5fv.mjs";import{De as zq,Ee as bq}from"./cli-1.1.26-txmxmpj4.mjs";import{BM as l,FM as t,KI as h,KM as e,LI as fq,MM as Rq,SG as r,TG as Gq,TM as qq,XM as Fq,fM as S,iM as Nq,lN as D,oN as Cq,tM as s,uM as _q,yM as a,yo as n,zo as yq}from"./cli-1.1.26-kvt0v6vq.mjs";import{E1 as F,G1 as C,XZ as i,YZ as Kq,f0 as Bq,j2 as Oq}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as v,N4 as R,O4 as p}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as Lq}from"./cli-1.1.26-kz0et72d.mjs";import{Aba as vq,Fha as m,Nha as wq,dba as x,i$ as g,j$ as Zq,v$ as $,vaa as o,waa as Hq,x$ as Xq}from"./cli-1.1.26-mvjefec1.mjs";import{Lla as B,Ola as Yq}from"./cli-1.1.26-nr4x1ay3.mjs";import{ima as P,lma as u,qma as Wq}from"./cli-1.1.26-7ssnr221.mjs";import{_ta as d,cua as Vq}from"./cli-1.1.26-zb5hq3ry.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
- export{Iq as ke,Yz as le,Dq as me};
@@ -1,2 +0,0 @@
1
- import{q$ as B,s$ as E}from"./cli-1.1.26-mvjefec1.mjs";import{Ika as C,Lka as y}from"./cli-1.1.26-n0thzakv.mjs";import{Lla as O,Ola as p,pla as T,tla as M}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as L,qma as x}from"./cli-1.1.26-7ssnr221.mjs";y();p();E();x();M();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function F(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function c(W){let Z=F(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var h=300000,j=1800000,H=3,R=60000;function t({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=h}){let J=new Map,Y=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=c(Q);if(!$){O(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let V=J.get(q);if(V)clearTimeout(V);let v=U(q),X=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){O(`[${z}:token] Token for sessionId=${q} expires=${X} (past or within buffer), refreshing immediately`),K(q,v);return}O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${X}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,v);J.set(q,k)}function D(q,Q){let $=J.get(q);if($)clearTimeout($);let V=U(q),v=Math.max(Q*1000-P,30000);O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(v)} (expires_in=${Q}s, buffer=${P/1000}s)`);let X=setTimeout(K,v,q,V);J.set(q,X)}async function K(q,Q){let $;try{$=await W()}catch(v){O(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(v)}`,{level:"error"})}if(w.get(q)!==Q){O(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let v=(Y.get(q)??0)+1;if(Y.set(q,v),O(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${v}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),v<H){let X=setTimeout(K,R,q,Q);J.set(q,X)}return}Y.delete(q),O(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("",{}),Z(q,$);let V=setTimeout(K,j,q,Q);J.set(q,V),O(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=J.get(q);if(Q)clearTimeout(Q),J.delete(q);Y.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of J.values())clearTimeout(q);J.clear(),Y.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
- export{c as Aa,t as Ba};
@@ -1,2 +0,0 @@
1
- import{Bf as UG,Cf as RG,Ef as PJ}from"./cli-1.1.26-z2cjynpf.mjs";import{FO as mG,IG as YJ,IN as jJ,JG as CJ,JN as HJ,JO as pJ,KI as JG,LI as ZJ,LN as fG,MN as hG,NN as TG,ON as dG,RN as NG,SG as QG,YN as iG,ZG as uG,gO as qJ,hO as CG,jO as VJ,ky as LG,ly as XJ,ny as cG,oO as mJ,qo as h,ro as jG,so as p,to as MG,uo as r,vo as WG,yo as BG,zN as WJ,zo as EJ}from"./cli-1.1.26-kvt0v6vq.mjs";import{RY as LJ,SY as hJ,dZ as zG,fZ as TJ,iZ as wG,jZ as QJ}from"./cli-1.1.26-j0pfn318.mjs";import{$Z as GJ,C1 as m,E1 as Y,G1 as Q,K1 as FG,_1 as JJ,e0 as AJ,f0 as bG,j2 as VG,o0 as DG}from"./cli-1.1.26-nv2mgz6h.mjs";import{L4 as n,M4 as L,N4 as X,O4 as a}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as $G}from"./cli-1.1.26-kz0et72d.mjs";import{m5 as AG,n5 as dJ}from"./cli-1.1.26-ta82bxzt.mjs";import{f9 as eG,x9 as gJ}from"./cli-1.1.26-tgtv1jp3.mjs";import{Hda as yG,Ida as IG,Jda as KJ,Kha as sG,Nha as _J,Zda as kG,_da as zJ,e$ as S,f$ as rG,gea as pG}from"./cli-1.1.26-mvjefec1.mjs";import{Gka as gG,Hka as SJ}from"./cli-1.1.26-hk66nk4j.mjs";import{Ika as C,Lka as bJ}from"./cli-1.1.26-n0thzakv.mjs";import{jma as HG,qma as tG}from"./cli-1.1.26-7ssnr221.mjs";import{_ta as e,cua as GG}from"./cli-1.1.26-zb5hq3ry.mjs";function KG(J){let G=oG.c(9),{serverToolsCount:Z,serverPromptsCount:z,serverResourcesCount:q}=J,H;if(G[0]!==z||G[1]!==q||G[2]!==Z){if(H=[],Z>0)H.push("tools");if(q>0)H.push("resources");if(z>0)H.push("prompts");G[0]=z,G[1]=q,G[2]=Z,G[3]=H}else H=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==H)W=H.length>0?L(r,{children:H}):"none",G[5]=H,G[6]=W;else W=G[6];let D;if(G[7]!==W)D=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=D;else D=G[8];return D}var oG;var SG=GG(()=>{VG();WG();a();oG=e(bG(),1)});function EG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function PG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var _G=()=>{};function OL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),{columns:D}=LJ(),[I,U]=E.default.useState(!1),[$,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=XJ(),[O,K]=E.default.useState(null),[P,w]=E.useState(!1),N=E.useRef(null),[g,j]=E.useState(!1),[c,T]=E.useState(null),[A,y]=E.useState(!1),[u,i]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),B=E.useRef(!1),[xG,XG]=E.useState(""),[DJ,wJ]=E.useState(0),[aG,nG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let YG=J.isAuthenticated||J.client.type==="connected"&&G>0,ZG=UG(),MJ=E.default.useCallback(async()=>{j(!1),T(null),w(!0);try{let V=await ZG(J.name),F=V.client.type==="connected";if(C("",{success:F}),F)q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){C("",{success:!1}),q?.(PG(V,J.name))}finally{w(!1)}},[ZG,J.name,q]),fJ=E.default.useCallback(async()=>{await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"needs-auth"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),C("",{}),q?.(`Disconnected from ${J.name}.`),y(!1),i(null),v(!1)},[J.name,J.config,J.scope,f,q]);zG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),zG("confirm:no",()=>{j(!1),T(null)},{context:"Confirmation",isActive:g}),zG("confirm:no",()=>{y(!1),i(null),v(!1)},{context:"Confirmation",isActive:A}),JJ((V,F)=>{if(F.return&&g)MJ();if(F.return&&A)if(l)fJ();else{let M=`${gG().CLAUDE_AI_ORIGIN}/settings/connectors`;i(M),v(!0),AG(M)}if(V==="c"&&!o){let M=O||c||u;if(M)GJ(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let NJ=kG(String(J.name)),UJ=fG(_.commands,J.name).length,lG=RG(),RJ=E.default.useCallback(async()=>{let V=gG().CLAUDE_AI_ORIGIN,M=eG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let qG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${qG}?product_surface=${t}`}else d=`${V}/settings/connectors`;T(d),j(!0),C("",{}),await AG(d)},[J.config]),OJ=E.default.useCallback(()=>{y(!0),C("",{})},[]),yJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{if(await lG(J.name),J.config.type==="claudeai-proxy")C("",{new_state:V?"disabled":"enabled"});z()}catch(F){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${HG(F)}`)}},[J.client.type,J.config.type,J.name,lG,z,q]),IJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await CG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await VJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{nG(()=>M)}}),C("",{wasAuthenticated:J.isAuthenticated});let F=await ZG(J.name);if(F.client.type==="connected"){let M=YG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(F.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else sG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof qJ))R(F.message)}finally{U(!1),N.current=null,nG(null),XG("")}},[J.isAuthenticated,J.config,J.name,q,ZG,YG]),BJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await CG(J.name,J.config),C("",{}),await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"failed"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:O})]}),I&&O&&aG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(YJ,{value:xG,onChange:XG,onSubmit:(F)=>{aG(F.trim()),XG("")},cursorOffset:DJ,onChangeCursorOffset:wJ,columns:D-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),l?X(n,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),u&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:u})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(n,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(YG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!YG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[NJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[m("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),YG?X(Q,{children:[m("success",k)(S.tick)," authenticated"]}):X(Q,{children:[m("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(J.scope)})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:UJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),$&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",$]})}),b.length>0&&L(Y,{marginTop:1,children:L(QG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await IJ();break;case"clear-auth":await BJ();break;case"claudeai-auth":await RJ();break;case"claudeai-clear-auth":OJ();break;case"reconnectMcpServer":w(!0);try{let F=await ZG(J.name);if(J.config.type==="claudeai-proxy")C("",{success:F.client.type==="connected"});let{message:M}=EG(F,J.name);q?.(M)}catch(F){if(J.config.type==="claudeai-proxy")C("",{success:!1});q?.(PG(F,J.name))}finally{w(!1)}break;case"toggle-enabled":await yJ();break;case"back":z();break}},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $J=GG(()=>{rG();bJ();SJ();QJ();hJ();AJ();VG();TJ();mJ();pJ();PJ();iG();cG();gJ();dJ();tG();_J();pG();MG();uG();WG();jG();ZJ();CJ();SG();_G();a();E=e($G(),1)});function iL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),D=LG((P)=>P.mcp),I=UG(),U=RG(),[$,R]=OG.useState(!1),_=OG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),z()}catch(w){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${HG(w)}`)}},[J.client.type,J.name,U,z,q]),f=kG(String(J.name)),O=fG(D.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(WJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:D.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(QG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let w=await I(J.name),{message:N}=EG(w,J.name);q?.(N)}catch(w){q?.(PG(w,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")z()},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var OG;var cJ=GG(()=>{rG();QJ();VG();jJ();PJ();iG();cG();tG();pG();MG();uG();WG();jG();ZJ();SG();_G();a();OG=e($G(),1)});function tL(J){let G=FJ.c(44),{tool:Z,server:z,onBack:q}=J,[H,k]=vG.default.useState(""),W,D;if(G[0]!==z.name||G[1]!==Z){D=yG(Z.name,z.name);let s=Z.userFacingName?Z.userFacingName({}):D;W=IG(s),G[0]=z.name,G[1]=Z,G[2]=W,G[3]=D}else W=G[2],D=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let $=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];vG.default.useEffect(K,P);let w;if(G[13]!==$)w=$&&L(Q,{color:"success",children:" [read-only]"}),G[13]=$,G[14]=w;else w=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let j;if(G[19]!==I||G[20]!==w||G[21]!==N||G[22]!==g)j=X(n,{children:[I,w,N,g]}),G[19]=I,G[20]=w,G[21]=N,G[22]=g,G[23]=j;else j=G[23];let c=j,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==D)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:D})]}),G[25]=D,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let u;if(G[28]!==Z.name)u=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=u;else u=G[29];let i;if(G[30]!==H)i=H&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:H})]}),G[30]=H,G[31]=i;else i=G[31];let l;if(G[32]!==Z.inputJSONSchema)l=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((s)=>{let[x,B]=s,XG=Z.inputJSONSchema?.required?.includes(x);return X(Q,{children:["• ",x,XG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},x)})})]}),G[32]=Z.inputJSONSchema,G[33]=l;else l=G[33];let v;if(G[34]!==A||G[35]!==u||G[36]!==i||G[37]!==l)v=X(Y,{flexDirection:"column",children:[A,u,i,l]}),G[34]=A,G[35]=u,G[36]=i,G[37]=l,G[38]=v;else v=G[38];let o;if(G[39]!==q||G[40]!==z.name||G[41]!==v||G[42]!==c)o=L(BG,{title:c,subtitle:z.name,onCancel:q,inputGuide:uJ,children:v}),G[39]=q,G[40]=z.name,G[41]=v,G[42]=c,G[43]=o;else o=G[43];return o}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FJ,vG;var iJ=GG(()=>{VG();KJ();MG();EJ();a();FJ=e(bG(),1),vG=e($G(),1)});function PQ(J){let G=kJ.c(21),{server:Z,onSelectTool:z,onBack:q}=J,H=LG(xJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==H||G[2]!==Z.name)K=HJ(H,Z.name),G[1]=H,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,D;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,w)=>{let N=yG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,j=IG(g),c=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(c)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:j,value:w.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":c?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];D=W.map(K),G[4]=Z.name,G[5]=W,G[6]=D}else D=G[6];let I=D,U=`Tools for ${Z.name}`,$=W.length,R;if(G[9]!==W.length)R=zJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${$} ${R}`,f;if(G[11]!==q||G[12]!==z||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(QG,{options:I,onChange:(K)=>{let P=parseInt(K),w=W[P];if(w)z(w,P)},onCancel:q}),G[11]=q,G[12]=z,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(BG,{title:U,subtitle:_,onCancel:q,inputGuide:vJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function vJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xJ(J){return J.mcp.tools}var kJ;var aJ=GG(()=>{VG();KJ();iG();cG();pG();MG();uG();WG();EJ();jG();a();kJ=e(bG(),1)});
2
- export{OL as sf,$J as tf,iL as uf,cJ as vf,tL as wf,iJ as xf,PQ as yf,aJ as zf};
@@ -1,25 +0,0 @@
1
- import{$x as e,AK as zq,Av as Wq,BK as Bq,CK as I,DK as b,KK as Gq,LK as Jq,PK as hq,SK as Qq,TK as Oq,VK as Vq,ZR as Zq,ay as Hq,dS as yq,fC as qq,gC as Nq,hL as Pq,jq as a,lq as Kq,oL as Yq,ov as s,qL as Uq,sl as r,tK as S,uK as R,ul as vq,uv as t,vK as Xq,yK as p,zK as k}from"./cli-1.1.26-kvt0v6vq.mjs";import{Fha as w,Nha as Fq}from"./cli-1.1.26-mvjefec1.mjs";import{Uja as o,Wja as Lq}from"./cli-1.1.26-pf85an2q.mjs";import{cma as y,qma as jq}from"./cli-1.1.26-7ssnr221.mjs";import{cua as M}from"./cli-1.1.26-zb5hq3ry.mjs";function x(B,z){let G=m[z]??1,Y=B!==void 0?m[B]:void 0;if(Y===void 0)return z;return Y<=G?B:z}var m;var g=M(()=>{m={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
- …[truncated ${B.length-z} chars]`}function u(B,z,G,Y){let V=[];if(V.push(`You are a worker agent in the "${B.name}" workflow, phase "${Y.name}".`),B.instructions.trim())V.push(`Workflow instructions:
3
- ${B.instructions.trim()}`);if(V.push(`Task:
4
- ${z}`),G.trim())V.push(`Work so far (accumulated artifact from earlier phases):
5
- ${C(G.trim(),$q)}`);return V.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),V.join(`
6
-
7
- `)}function c(B,z){let G=[];if(G.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())G.push(`Workflow instructions:
8
- ${z.instructions.trim()}`);G.push(`Task:
9
- ${B.task}`);let Y=z.steps.findIndex((Q)=>Q.name===B.currentStep),V=z.steps.map((Q,J)=>{let j=J<Y?"[done]":J===Y?"[current]":"[pending]",W=I(Q)?" (terminal)":"";return` ${J+1}. ${Q.name} ${j}${W}`}).join(`
10
- `);if(G.push(`Phases:
11
- ${V}`),B.history.length>0){let Q=B.history.map((J)=>{let j=J.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
- ${C(q.output,f).split(`
13
- `).map((H)=>` ${H}`).join(`
14
- `)}`}).join(`
15
- `),W=J.decision?` decision: ${J.decision.decision}${J.decision.target?` → ${J.decision.target}`:""} — ${J.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${J.step}":
16
- ${j}
17
- ${J.synthesis?` synthesis: ${C(J.synthesis,f)}
18
- `:""}${W}`}).join(`
19
-
20
- `);G.push(`History (all phases so far):
21
- ${Q}`)}let $=z.steps[Y]?.handbackTo??[];return G.push($.length>0?`From the current phase you may hand back to: ${$.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),G.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),G.join(`
22
-
23
- `)}var f=4000,$q=6000;var l=M(()=>{b()});function d(B,z,G){let Y=G.steps,V=Y.findIndex((j)=>j.name===B.currentStep),Z={...B.refineCounts},$=B.transitions+1,Q=B.currentStep,J="running";if(z.decision==="advance"){let j=Y[V+1];if(I(j)){if(J="done",j)Q=j.name}else Q=j.name}else if(z.decision==="refine"){if(Z[Q]=(Z[Q]??0)+1,Z[Q]>k)J="stalled"}else{let j=Y[V]?.handbackTo??[];if(!z.target||!j.includes(z.target))J="stalled";else if(Z[z.target]=(Z[z.target]??0)+1,Z[z.target]>k)J="stalled";else Q=z.target}if(J==="running"&&$>=p)J="stalled";return{...B,currentStep:Q,status:J,refineCounts:Z,transitions:$,updatedAt:Date.now()}}var i=M(()=>{b()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function wq(B){let z="",G=0;for(let V=B.length-1;V>=0;V--){let Z=B[V];if(Z.type!=="assistant"||!Z.message)continue;if(!z){let $=(Z.message.content??[]).filter((Q)=>Q.type==="text"&&Q.text);if($.length>0)z=$.map((Q)=>Q.text??"").join(`
24
- `)}if(G===0&&Z.message.usage)G=Zq(Z.message.usage);if(z&&G)break}let Y=e(B);return{text:z,tokens:G,tools:Y}}async function n(B){let{label:z,agentDef:G,promptText:Y,toolUseContext:V,canUseTool:Z,extraTools:$,runId:Q}=B,J=Date.now(),j=V.getAppState(),W=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(G.permissionMode,W)},L=Yq(q,j.mcp.tools);if($&&$.length>0)L=[...L,...$];let H=G.model??String(V.options.mainLoopModel??""),F=[],N,P=!1;try{let K=qq({agentDefinition:G,promptMessages:[Vq({content:Y})],toolUseContext:V,canUseTool:Z,isAsync:!1,querySource:a(G.agentType,s(G)),availableTools:L,transcriptSubdir:`workflows/${Q}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let h of K)if(F.push(h),h.type==="attachment"&&h.attachment?.type==="structured_output")N=h.attachment.data}catch(K){if(y(K))throw K;w(K),P=!0}let{text:E,tokens:_,tools:X}=wq(F);return{run:{label:z,model:H,tokens:_,tools:X,ms:Date.now()-J,output:P?"":E,failed:P},structuredOutput:N}}async function tq(B){let{def:z,task:G,toolUseContext:Y,canUseTool:V,onProgress:Z,signal:$}=B,{allAgents:Q}=await t(o()),J=new Map(Q.map((H)=>[H.agentType,H]));J.set(S,R);let j=J.get(z.main??S)??R,W=new AbortController;if($)if($.aborted)W.abort();else $.addEventListener("abort",()=>W.abort(),{once:!0});let q=await Gq({workflow:z.name,description:z.description,task:G,firstStep:z.steps[0].name});Z?.(q);let L=async()=>{await Jq(q),Z?.(q)};while(q.status==="running"){if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let H=z.steps.findIndex((v)=>v.name===q.currentStep),F=z.steps[H];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let N;try{N=(await Qq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=J.get(O);A=D?await n({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,G,q.artifact,F),toolUseContext:Y,canUseTool:V,runId:q.runId,abortController:W}):T}catch(D){if(y(D))throw D;w(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let P={step:F.name,stepIndex:H,agents:N,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+N.reduce((v,O)=>v+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&N.every((v)=>v.failed)){w(Error(`workflow phase "${F.name}": all ${N.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){w(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],X;try{X=await n({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Y,canUseTool:V,extraTools:_,runId:q.runId,abortController:W})}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let K=zq.safeParse(X.structuredOutput),h=[...q.history];if(h[h.length-1]={...P,synthesis:X.run.output,decision:K.success?K.data:null,agents:[...N,X.run]},q={...q,history:h,artifact:X.run.output.trim()?X.run.output:q.artifact,totalTokens:q.totalTokens+X.run.tokens,updatedAt:Date.now()},!K.success){w(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Wq();Hq();Nq();vq();Lq();jq();Fq();Pq();Kq();yq();Xq();g();l();hq();i();b()});
25
- export{tq as Ri,Eq as Si};