@claudiolabs/claudin 0.5.9 → 0.5.10

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 (840) hide show
  1. package/bin/claudin +62 -0
  2. package/dist/chunks/AgentTool-0.5.10-k5mymxpj.mjs +1 -0
  3. package/dist/chunks/App-0.5.10-yzg0d70f.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.5.10-mpm24aq5.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.5.10-jbgn5s9r.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.5.10-tk2jpgdr.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.5.10-2gqvp73t.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.10-mwwqh2cz.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.5.10-f4wd3yew.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.5.10-f28xdhns.mjs +3 -0
  11. package/dist/chunks/Doctor-0.5.10-dz3ndek3.mjs +1 -0
  12. package/dist/chunks/Grove-0.5.10-f2m596r7.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.5.10-k9sjxv27.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.5.10-d5f0ba3j.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.5.10-vyexdzf7.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.5.10-fxhfd566.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.5.10-61c4a01v.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.5.10-mhnze07c.mjs +1 -0
  19. package/dist/chunks/REPL-0.5.10-qag06ykw.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.5.10-ax66yat2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.5.10-mkzs7881.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.5.10-762m6e6b.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.5.10-mr8ddjsn.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.5.10-rs9vs3j0.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.5.10-s7yrx34h.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.5.10-8tejm808.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.5.10-v09an4xe.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.5.10-1c68rtzb.mjs +1 -0
  29. package/dist/chunks/add-dir-0.5.10-6hyjyege.mjs +1 -0
  30. package/dist/chunks/agents-0.5.10-34zhsd0m.mjs +110 -0
  31. package/dist/chunks/agents-0.5.10-fa6mrf84.mjs +3 -0
  32. package/dist/chunks/api-0.5.10-hvafwq9b.mjs +1 -0
  33. package/dist/chunks/asciicast-0.5.10-c2nfaps4.mjs +1 -0
  34. package/dist/chunks/assistant-0.5.10-w55twa4a.mjs +1 -0
  35. package/dist/chunks/auth-0.5.10-dmv8dcy1.mjs +1 -0
  36. package/dist/chunks/auth-0.5.10-tqm37j6k.mjs +1 -0
  37. package/dist/chunks/autoMode-0.5.10-bew44c3j.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.5.10-dav9gs0x.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.5.10-rsyjn0x7.mjs +1 -0
  40. package/dist/chunks/branch-0.5.10-k81z6new.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.5.10-h727df9t.mjs +1 -0
  42. package/dist/chunks/btw-0.5.10-f1syxkz1.mjs +1 -0
  43. package/dist/chunks/buddy-0.5.10-a15r3a8e.mjs +3 -0
  44. package/dist/chunks/cacache-0.5.10-1hz9d6s8.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.5.10-fcxj2wy5.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.5.10-vedv1qp4.mjs +4 -0
  47. package/dist/chunks/caches-0.5.10-fmadrqb1.mjs +1 -0
  48. package/dist/chunks/claudeDesktop-0.5.10-mz1s1yqp.mjs +1 -0
  49. package/dist/chunks/claudemd-0.5.10-9mb95kbb.mjs +1 -0
  50. package/dist/chunks/clear-0.5.10-tshbmj0g.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.5.10-bjqnvfmf.mjs +1 -0
  52. package/dist/chunks/cli-0.5.10-0ar26ct8.mjs +2 -0
  53. package/dist/chunks/cli-0.5.10-0p24d24e.mjs +2 -0
  54. package/dist/chunks/cli-0.5.10-0sg20shr.mjs +2 -0
  55. package/dist/chunks/cli-0.5.10-0twjtft5.mjs +2 -0
  56. package/dist/chunks/cli-0.5.10-0vs5gmpe.mjs +4 -0
  57. package/dist/chunks/cli-0.5.10-0xb1405m.mjs +2 -0
  58. package/dist/chunks/cli-0.5.10-0yn5x3m6.mjs +2 -0
  59. package/dist/chunks/cli-0.5.10-1gafefn2.mjs +3 -0
  60. package/dist/chunks/cli-0.5.10-207502x5.mjs +2 -0
  61. package/dist/chunks/cli-0.5.10-20w5v1ja.mjs +2 -0
  62. package/dist/chunks/cli-0.5.10-20x96vwq.mjs +2 -0
  63. package/dist/chunks/cli-0.5.10-2c19pn7b.mjs +2 -0
  64. package/dist/chunks/cli-0.5.10-2es9q9n1.mjs +2 -0
  65. package/dist/chunks/cli-0.5.10-2fqes7gy.mjs +193 -0
  66. package/dist/chunks/cli-0.5.10-2qxn5ad9.mjs +2 -0
  67. package/dist/chunks/cli-0.5.10-2yqdkew6.mjs +3 -0
  68. package/dist/chunks/cli-0.5.10-2yrgbmd1.mjs +9 -0
  69. package/dist/chunks/cli-0.5.10-347yjq4a.mjs +2 -0
  70. package/dist/chunks/cli-0.5.10-3xnh04c6.mjs +2 -0
  71. package/dist/chunks/cli-0.5.10-4ekf1v4x.mjs +2 -0
  72. package/dist/chunks/cli-0.5.10-58erwwbz.mjs +3 -0
  73. package/dist/chunks/cli-0.5.10-5m76kmzk.mjs +2 -0
  74. package/dist/chunks/cli-0.5.10-5mp7dx81.mjs +2 -0
  75. package/dist/chunks/cli-0.5.10-5nzsgwh2.mjs +2 -0
  76. package/dist/chunks/cli-0.5.10-5stz3dbm.mjs +2 -0
  77. package/dist/chunks/cli-0.5.10-5w3eaafz.mjs +2 -0
  78. package/dist/chunks/cli-0.5.10-661g0gft.mjs +2 -0
  79. package/dist/chunks/cli-0.5.10-68wvhytx.mjs +10 -0
  80. package/dist/chunks/cli-0.5.10-6c055y30.mjs +2 -0
  81. package/dist/chunks/cli-0.5.10-6g0257t2.mjs +2 -0
  82. package/dist/chunks/cli-0.5.10-6jarntdq.mjs +2 -0
  83. package/dist/chunks/cli-0.5.10-6twsf5qs.mjs +2 -0
  84. package/dist/chunks/cli-0.5.10-6wzddpjt.mjs +42 -0
  85. package/dist/chunks/cli-0.5.10-6y9d3fye.mjs +45 -0
  86. package/dist/chunks/cli-0.5.10-6z4j2qja.mjs +24 -0
  87. package/dist/chunks/cli-0.5.10-6zwxmza2.mjs +4 -0
  88. package/dist/chunks/cli-0.5.10-7f5q1zvk.mjs +2 -0
  89. package/dist/chunks/cli-0.5.10-7j4590js.mjs +2 -0
  90. package/dist/chunks/cli-0.5.10-7shp24xv.mjs +3 -0
  91. package/dist/chunks/cli-0.5.10-7tpa30tv.mjs +3 -0
  92. package/dist/chunks/cli-0.5.10-84q7z5hq.mjs +2 -0
  93. package/dist/chunks/cli-0.5.10-84z0ztsf.mjs +18 -0
  94. package/dist/chunks/cli-0.5.10-87sd2pqh.mjs +3 -0
  95. package/dist/chunks/cli-0.5.10-8f53zcp3.mjs +2 -0
  96. package/dist/chunks/cli-0.5.10-8jjacn05.mjs +5262 -0
  97. package/dist/chunks/cli-0.5.10-8kpt6897.mjs +3 -0
  98. package/dist/chunks/cli-0.5.10-8wqagr68.mjs +4 -0
  99. package/dist/chunks/cli-0.5.10-8zwd1xme.mjs +25 -0
  100. package/dist/chunks/cli-0.5.10-948wwm63.mjs +2 -0
  101. package/dist/chunks/cli-0.5.10-9dazv3hg.mjs +2 -0
  102. package/dist/chunks/cli-0.5.10-9ek8f4vk.mjs +2 -0
  103. package/dist/chunks/cli-0.5.10-9h23hhgb.mjs +2 -0
  104. package/dist/chunks/cli-0.5.10-9mt7ynrh.mjs +2 -0
  105. package/dist/chunks/cli-0.5.10-9xc8zhxg.mjs +59 -0
  106. package/dist/chunks/cli-0.5.10-9ynpb3y0.mjs +21 -0
  107. package/dist/chunks/cli-0.5.10-a1hh6v31.mjs +2 -0
  108. package/dist/chunks/cli-0.5.10-a38pnxbz.mjs +2 -0
  109. package/dist/chunks/cli-0.5.10-a8ecfnq0.mjs +2 -0
  110. package/dist/chunks/cli-0.5.10-atkghjt0.mjs +2 -0
  111. package/dist/chunks/cli-0.5.10-ax0fmeqk.mjs +2 -0
  112. package/dist/chunks/cli-0.5.10-azhfv28d.mjs +2 -0
  113. package/dist/chunks/cli-0.5.10-b4j3x063.mjs +4 -0
  114. package/dist/chunks/cli-0.5.10-b761m5q2.mjs +2 -0
  115. package/dist/chunks/cli-0.5.10-b7r8mjbd.mjs +9 -0
  116. package/dist/chunks/cli-0.5.10-ba15gakh.mjs +2 -0
  117. package/dist/chunks/cli-0.5.10-bad3yv4c.mjs +2 -0
  118. package/dist/chunks/cli-0.5.10-bhb8rt9y.mjs +2 -0
  119. package/dist/chunks/cli-0.5.10-bj0bm26b.mjs +4 -0
  120. package/dist/chunks/cli-0.5.10-bmc43e4g.mjs +2 -0
  121. package/dist/chunks/cli-0.5.10-bsqvacka.mjs +2 -0
  122. package/dist/chunks/cli-0.5.10-c0xtw3q0.mjs +34 -0
  123. package/dist/chunks/cli-0.5.10-c82cgdm7.mjs +133 -0
  124. package/dist/chunks/cli-0.5.10-c9z4tdw2.mjs +2 -0
  125. package/dist/chunks/cli-0.5.10-cm0r4pkd.mjs +3 -0
  126. package/dist/chunks/cli-0.5.10-cw4ykvbj.mjs +2 -0
  127. package/dist/chunks/cli-0.5.10-cz6csv1p.mjs +2 -0
  128. package/dist/chunks/cli-0.5.10-d1y749qy.mjs +2 -0
  129. package/dist/chunks/cli-0.5.10-d2cw91xn.mjs +3 -0
  130. package/dist/chunks/cli-0.5.10-d4d9x2de.mjs +2 -0
  131. package/dist/chunks/cli-0.5.10-d609fanf.mjs +2 -0
  132. package/dist/chunks/cli-0.5.10-d64hr722.mjs +3 -0
  133. package/dist/chunks/cli-0.5.10-d9xf1jnz.mjs +12 -0
  134. package/dist/chunks/cli-0.5.10-dkt8bbmm.mjs +3 -0
  135. package/dist/chunks/cli-0.5.10-dmmckmyf.mjs +12 -0
  136. package/dist/chunks/cli-0.5.10-dvmddb7c.mjs +6 -0
  137. package/dist/chunks/cli-0.5.10-dz26120x.mjs +2 -0
  138. package/dist/chunks/cli-0.5.10-dzr8kmx4.mjs +2 -0
  139. package/dist/chunks/cli-0.5.10-e8tz9596.mjs +2 -0
  140. package/dist/chunks/cli-0.5.10-e8wz8kc0.mjs +58 -0
  141. package/dist/chunks/cli-0.5.10-eh9hq9n3.mjs +2 -0
  142. package/dist/chunks/cli-0.5.10-ewcdy4pj.mjs +2 -0
  143. package/dist/chunks/cli-0.5.10-f3fj7f3q.mjs +2 -0
  144. package/dist/chunks/cli-0.5.10-fcbrnw81.mjs +2 -0
  145. package/dist/chunks/cli-0.5.10-fjvz4bt0.mjs +8 -0
  146. package/dist/chunks/cli-0.5.10-fzx10svb.mjs +2 -0
  147. package/dist/chunks/cli-0.5.10-g4khh98h.mjs +2 -0
  148. package/dist/chunks/cli-0.5.10-gekw3xnm.mjs +2 -0
  149. package/dist/chunks/cli-0.5.10-gk9n4zev.mjs +2 -0
  150. package/dist/chunks/cli-0.5.10-gs8dx67v.mjs +2 -0
  151. package/dist/chunks/cli-0.5.10-hmp23q7z.mjs +2 -0
  152. package/dist/chunks/cli-0.5.10-hzh8tpg0.mjs +2 -0
  153. package/dist/chunks/cli-0.5.10-j1aznw8b.mjs +2 -0
  154. package/dist/chunks/cli-0.5.10-jd7ff66n.mjs +2 -0
  155. package/dist/chunks/cli-0.5.10-jhtht51h.mjs +4 -0
  156. package/dist/chunks/cli-0.5.10-jsnrvena.mjs +2 -0
  157. package/dist/chunks/cli-0.5.10-k0mnqs0g.mjs +15 -0
  158. package/dist/chunks/cli-0.5.10-k1s62rww.mjs +2 -0
  159. package/dist/chunks/cli-0.5.10-k3qbvfj5.mjs +2 -0
  160. package/dist/chunks/cli-0.5.10-kj2g5r8c.mjs +15 -0
  161. package/dist/chunks/cli-0.5.10-kyt82zt5.mjs +2 -0
  162. package/dist/chunks/cli-0.5.10-m0hghx42.mjs +2 -0
  163. package/dist/chunks/cli-0.5.10-mcw01p8b.mjs +2 -0
  164. package/dist/chunks/cli-0.5.10-mgkc1jay.mjs +15 -0
  165. package/dist/chunks/cli-0.5.10-mrgw2c00.mjs +2 -0
  166. package/dist/chunks/cli-0.5.10-mvckg6zv.mjs +17 -0
  167. package/dist/chunks/cli-0.5.10-mxzdkm6r.mjs +2 -0
  168. package/dist/chunks/cli-0.5.10-n70d8n1f.mjs +2 -0
  169. package/dist/chunks/cli-0.5.10-neaex6bh.mjs +2 -0
  170. package/dist/chunks/cli-0.5.10-npmmxjts.mjs +5 -0
  171. package/dist/chunks/cli-0.5.10-nqvng39w.mjs +2 -0
  172. package/dist/chunks/cli-0.5.10-nvmq8pez.mjs +2 -0
  173. package/dist/chunks/cli-0.5.10-nx3m5sa2.mjs +2 -0
  174. package/dist/chunks/cli-0.5.10-p3g04417.mjs +20 -0
  175. package/dist/chunks/cli-0.5.10-p4wmnjhz.mjs +6 -0
  176. package/dist/chunks/cli-0.5.10-p5j82v0t.mjs +2 -0
  177. package/dist/chunks/cli-0.5.10-p7jd1z33.mjs +2 -0
  178. package/dist/chunks/cli-0.5.10-p8hbe96w.mjs +133 -0
  179. package/dist/chunks/cli-0.5.10-pk91q3s6.mjs +4 -0
  180. package/dist/chunks/cli-0.5.10-pq8nhdeq.mjs +2 -0
  181. package/dist/chunks/cli-0.5.10-pr0nkqpw.mjs +2 -0
  182. package/dist/chunks/cli-0.5.10-pr8yqs5v.mjs +2 -0
  183. package/dist/chunks/cli-0.5.10-pxhw9mwz.mjs +2 -0
  184. package/dist/chunks/cli-0.5.10-qvp1fb5n.mjs +2 -0
  185. package/dist/chunks/cli-0.5.10-qw9y3mst.mjs +2 -0
  186. package/dist/chunks/cli-0.5.10-qx17jbqj.mjs +2 -0
  187. package/dist/chunks/cli-0.5.10-r0jt3zrj.mjs +2 -0
  188. package/dist/chunks/cli-0.5.10-rhmrff22.mjs +2 -0
  189. package/dist/chunks/cli-0.5.10-rk7at2tn.mjs +2 -0
  190. package/dist/chunks/cli-0.5.10-rq5mv7xq.mjs +2 -0
  191. package/dist/chunks/cli-0.5.10-rwqvbtg3.mjs +18 -0
  192. package/dist/chunks/cli-0.5.10-rxnwkka5.mjs +24 -0
  193. package/dist/chunks/cli-0.5.10-rzshk2m6.mjs +6 -0
  194. package/dist/chunks/cli-0.5.10-rzz4tgvw.mjs +12 -0
  195. package/dist/chunks/cli-0.5.10-s8bv5q7m.mjs +2 -0
  196. package/dist/chunks/cli-0.5.10-srd78kpc.mjs +7 -0
  197. package/dist/chunks/cli-0.5.10-syb1bnb2.mjs +4 -0
  198. package/dist/chunks/cli-0.5.10-t11my4jb.mjs +2 -0
  199. package/dist/chunks/cli-0.5.10-t9d916t1.mjs +39 -0
  200. package/dist/chunks/cli-0.5.10-tbpqmp1s.mjs +2 -0
  201. package/dist/chunks/cli-0.5.10-tkjtbv56.mjs +2 -0
  202. package/dist/chunks/cli-0.5.10-tqpg21eq.mjs +2 -0
  203. package/dist/chunks/cli-0.5.10-tqyytkxn.mjs +2 -0
  204. package/dist/chunks/cli-0.5.10-tr692cqd.mjs +2 -0
  205. package/dist/chunks/cli-0.5.10-v36c5nnr.mjs +2 -0
  206. package/dist/chunks/cli-0.5.10-v6kj3ej2.mjs +2 -0
  207. package/dist/chunks/cli-0.5.10-vhn14p7a.mjs +2 -0
  208. package/dist/chunks/cli-0.5.10-vhrqqvdz.mjs +5 -0
  209. package/dist/chunks/cli-0.5.10-vpfctkxf.mjs +2 -0
  210. package/dist/chunks/cli-0.5.10-vqkn3pgf.mjs +17 -0
  211. package/dist/chunks/cli-0.5.10-vqrqhas6.mjs +2 -0
  212. package/dist/chunks/cli-0.5.10-vyem3gpm.mjs +2 -0
  213. package/dist/chunks/cli-0.5.10-w29mv5e9.mjs +4 -0
  214. package/dist/chunks/cli-0.5.10-w41wxn5f.mjs +50 -0
  215. package/dist/chunks/cli-0.5.10-w698y5mp.mjs +5 -0
  216. package/dist/chunks/cli-0.5.10-w93v7bhm.mjs +2 -0
  217. package/dist/chunks/cli-0.5.10-xfqxbzc6.mjs +4 -0
  218. package/dist/chunks/cli-0.5.10-xg27xawf.mjs +2 -0
  219. package/dist/chunks/cli-0.5.10-xhy1yx61.mjs +2 -0
  220. package/dist/chunks/cli-0.5.10-xk6v4sy0.mjs +2 -0
  221. package/dist/chunks/cli-0.5.10-xnmg1qwd.mjs +2 -0
  222. package/dist/chunks/cli-0.5.10-xrwj7982.mjs +67 -0
  223. package/dist/chunks/cli-0.5.10-xy780m03.mjs +2 -0
  224. package/dist/chunks/cli-0.5.10-xyscak5q.mjs +16 -0
  225. package/dist/chunks/cli-0.5.10-y0sfzz9t.mjs +2 -0
  226. package/dist/chunks/cli-0.5.10-y0sr20nf.mjs +2 -0
  227. package/dist/chunks/cli-0.5.10-y4tn070k.mjs +1 -0
  228. package/dist/chunks/cli-0.5.10-y7j4tsb5.mjs +2 -0
  229. package/dist/chunks/cli-0.5.10-y9qd4psg.mjs +2 -0
  230. package/dist/chunks/cli-0.5.10-ytqna8q4.mjs +2 -0
  231. package/dist/chunks/cli-0.5.10-yvjnvgky.mjs +2 -0
  232. package/dist/chunks/cli-0.5.10-yxxbgd59.mjs +2 -0
  233. package/dist/chunks/cli-0.5.10-yzqkgb55.mjs +2 -0
  234. package/dist/chunks/cli-0.5.10-z4bzn8vh.mjs +2 -0
  235. package/dist/chunks/cli-0.5.10-z5ysspq8.mjs +2 -0
  236. package/dist/chunks/cli-0.5.10-zk1h67jm.mjs +2 -0
  237. package/dist/chunks/client-0.5.10-a5rmwz53.mjs +1 -0
  238. package/dist/chunks/color-0.5.10-3mtfm5rv.mjs +1 -0
  239. package/dist/chunks/compact-0.5.10-7zdm8hke.mjs +3 -0
  240. package/dist/chunks/config-0.5.10-ns9jcqxp.mjs +1 -0
  241. package/dist/chunks/config-0.5.10-vtf1kzhz.mjs +1 -0
  242. package/dist/chunks/context-0.5.10-qjjyyqx9.mjs +1 -0
  243. package/dist/chunks/context-noninteractive-0.5.10-244bgmbj.mjs +1 -0
  244. package/dist/chunks/conversation-0.5.10-zza66sgq.mjs +1 -0
  245. package/dist/chunks/copy-0.5.10-d6nstaxy.mjs +9 -0
  246. package/dist/chunks/cost-0.5.10-k89r76j7.mjs +1 -0
  247. package/dist/chunks/createSSHSession-0.5.10-xy3z3tdw.mjs +1 -0
  248. package/dist/chunks/createSession-0.5.10-ntrenxk4.mjs +1 -0
  249. package/dist/chunks/debug-0.5.10-bxkhvfc6.mjs +1 -0
  250. package/dist/chunks/defaultActionDeps-0.5.10-h673vq05.mjs +1177 -0
  251. package/dist/chunks/desktop-0.5.10-v0j5w6e8.mjs +1 -0
  252. package/dist/chunks/detectRepository-0.5.10-z29dy30r.mjs +1 -0
  253. package/dist/chunks/detection-0.5.10-jhy1kffq.mjs +1 -0
  254. package/dist/chunks/diff-0.5.10-14m8b77v.mjs +1 -0
  255. package/dist/chunks/doctor-0.5.10-pn374er7.mjs +1 -0
  256. package/dist/chunks/doctorDiagnostic-0.5.10-wkjtp4z5.mjs +1 -0
  257. package/dist/chunks/earlyInput-0.5.10-9nxfn64h.mjs +1 -0
  258. package/dist/chunks/effort-0.5.10-sjn55ka6.mjs +10 -0
  259. package/dist/chunks/envUtils-0.5.10-sdrg5j2r.mjs +1 -0
  260. package/dist/chunks/environmentSelection-0.5.10-nkxtjsa6.mjs +1 -0
  261. package/dist/chunks/environments-0.5.10-j3cwt63g.mjs +1 -0
  262. package/dist/chunks/errors-0.5.10-k3a2vs5j.mjs +1 -0
  263. package/dist/chunks/exampleCommands-0.5.10-s4q3ndpx.mjs +1 -0
  264. package/dist/chunks/exit-0.5.10-aaqjsrb3.mjs +1 -0
  265. package/dist/chunks/export-0.5.10-g3n84jha.mjs +2 -0
  266. package/dist/chunks/extra-usage-0.5.10-1k8453hn.mjs +1 -0
  267. package/dist/chunks/extra-usage-noninteractive-0.5.10-h0s4j23t.mjs +1 -0
  268. package/dist/chunks/fast-0.5.10-6jg8q83t.mjs +1 -0
  269. package/dist/chunks/feedback-0.5.10-f4cms77n.mjs +14 -0
  270. package/dist/chunks/firstPartyEventLogger-0.5.10-mtcdee5x.mjs +1 -0
  271. package/dist/chunks/git-0.5.10-5yr5z4ap.mjs +1 -0
  272. package/dist/chunks/githubModelsCredentials-0.5.10-pfeadzx7.mjs +1 -0
  273. package/dist/chunks/grove-0.5.10-4vzycmmm.mjs +1 -0
  274. package/dist/chunks/growthbook-0.5.10-nf8eqz7k.mjs +1 -0
  275. package/dist/chunks/headless-0.5.10-kqpgc4q6.mjs +2 -0
  276. package/dist/chunks/heapdump-0.5.10-zedkfpnn.mjs +6 -0
  277. package/dist/chunks/help-0.5.10-a3vhmv05.mjs +1 -0
  278. package/dist/chunks/hookChains-0.5.10-yc93jx3d.mjs +3 -0
  279. package/dist/chunks/hooks-0.5.10-negsdbpw.mjs +1 -0
  280. package/dist/chunks/hooks-0.5.10-t26wz67x.mjs +79 -0
  281. package/dist/chunks/ide-0.5.10-qsh8k0we.mjs +3 -0
  282. package/dist/chunks/image-processor-napi-0.5.10-8kz0m2nd.mjs +1 -0
  283. package/dist/chunks/index-0.5.10-0j9kz8a6.mjs +1 -0
  284. package/dist/chunks/index-0.5.10-0wzdjjzk.mjs +5 -0
  285. package/dist/chunks/index-0.5.10-5fsxcv9a.mjs +1 -0
  286. package/dist/chunks/index-0.5.10-6v1h8fb2.mjs +17 -0
  287. package/dist/chunks/index-0.5.10-7t36m4fw.mjs +30 -0
  288. package/dist/chunks/index-0.5.10-8t5phmpa.mjs +9 -0
  289. package/dist/chunks/index-0.5.10-ak9fnp4h.mjs +2 -0
  290. package/dist/chunks/index-0.5.10-asj7h5d6.mjs +9 -0
  291. package/dist/chunks/index-0.5.10-dxkhh5bg.mjs +1 -0
  292. package/dist/chunks/index-0.5.10-eh8w8ayw.mjs +2 -0
  293. package/dist/chunks/index-0.5.10-fjf8d5vq.mjs +1 -0
  294. package/dist/chunks/index-0.5.10-fyt0d84h.mjs +1 -0
  295. package/dist/chunks/index-0.5.10-m8cjzf6y.mjs +1 -0
  296. package/dist/chunks/index-0.5.10-marrtwvx.mjs +1 -0
  297. package/dist/chunks/index-0.5.10-n7zsm7mc.mjs +1 -0
  298. package/dist/chunks/index-0.5.10-p69q9n6x.mjs +1 -0
  299. package/dist/chunks/index-0.5.10-rv6kfzr0.mjs +1 -0
  300. package/dist/chunks/index-0.5.10-s5ttsdnm.mjs +1 -0
  301. package/dist/chunks/index-0.5.10-thyhdy51.mjs +1 -0
  302. package/dist/chunks/index-0.5.10-tncm271j.mjs +1 -0
  303. package/dist/chunks/index-0.5.10-wzxzkrhk.mjs +1 -0
  304. package/dist/chunks/index-0.5.10-x3apane6.mjs +1 -0
  305. package/dist/chunks/init-0.5.10-ef7yaw4p.mjs +1 -0
  306. package/dist/chunks/initReplBridge-0.5.10-we7sga8z.mjs +1 -0
  307. package/dist/chunks/ink-0.5.10-chpcjhk0.mjs +1 -0
  308. package/dist/chunks/insights-0.5.10-advkjwjk.mjs +870 -0
  309. package/dist/chunks/install-0.5.10-znt3x5wn.mjs +1 -0
  310. package/dist/chunks/install-github-app-0.5.10-jg0eqhv0.mjs +149 -0
  311. package/dist/chunks/install-slack-app-0.5.10-ryvy8j96.mjs +1 -0
  312. package/dist/chunks/instrumentation-0.5.10-36atfc3f.mjs +1 -0
  313. package/dist/chunks/interactiveHelpers-0.5.10-asvens6h.mjs +1 -0
  314. package/dist/chunks/keybindings-0.5.10-csc1yzpg.mjs +2 -0
  315. package/dist/chunks/knowledge-0.5.10-tg7cvbym.mjs +2 -0
  316. package/dist/chunks/latestVersionCache-0.5.10-wjt7dbqy.mjs +1 -0
  317. package/dist/chunks/loadAgentsDir-0.5.10-7zwxynjb.mjs +1 -0
  318. package/dist/chunks/loadPluginHooks-0.5.10-c8kk1n2h.mjs +1 -0
  319. package/dist/chunks/loadPluginHooks-0.5.10-qx8rwccw.mjs +1 -0
  320. package/dist/chunks/log-0.5.10-ews8b6yn.mjs +1 -0
  321. package/dist/chunks/main-0.5.10-dxwhwf46.mjs +1 -0
  322. package/dist/chunks/managedEnv-0.5.10-5jce9mqj.mjs +1 -0
  323. package/dist/chunks/mcp-0.5.10-1wxhgtsr.mjs +17 -0
  324. package/dist/chunks/mcp-0.5.10-5wsj8fv2.mjs +1 -0
  325. package/dist/chunks/mcp-0.5.10-ydcjrb4p.mjs +4 -0
  326. package/dist/chunks/mcpb-0.5.10-120rqrb1.mjs +1 -0
  327. package/dist/chunks/memory-0.5.10-0pqjdjed.mjs +3 -0
  328. package/dist/chunks/mobile-0.5.10-kp63nfej.mjs +2 -0
  329. package/dist/chunks/model-0.5.10-9zszn74v.mjs +2 -0
  330. package/dist/chunks/model-0.5.10-b64fg4gd.mjs +1 -0
  331. package/dist/chunks/node-0.5.10-tny076t5.mjs +12 -0
  332. package/dist/chunks/oauth-0.5.10-fccp2x7y.mjs +1 -0
  333. package/dist/chunks/openaiShim-0.5.10-gwjyjn7m.mjs +14 -0
  334. package/dist/chunks/output-style-0.5.10-526tregy.mjs +1 -0
  335. package/dist/chunks/package-D6422PQU-0.5.10-we8amhca.mjs +1 -0
  336. package/dist/chunks/parseConnectUrl-0.5.10-nhkxeakd.mjs +1 -0
  337. package/dist/chunks/parser-0.5.10-m4aj9jm7.mjs +1 -0
  338. package/dist/chunks/passes-0.5.10-vwhmhxn9.mjs +1 -0
  339. package/dist/chunks/permissions-0.5.10-b7p2zxt8.mjs +3 -0
  340. package/dist/chunks/plan-0.5.10-s8612fw1.mjs +1 -0
  341. package/dist/chunks/plist-0.5.10-e8k2gtwm.mjs +1 -0
  342. package/dist/chunks/plugin-0.5.10-pjh90f93.mjs +29 -0
  343. package/dist/chunks/pluginStartupCheck-0.5.10-mamzxaj6.mjs +1 -0
  344. package/dist/chunks/plugins-0.5.10-3zq96m7k.mjs +9 -0
  345. package/dist/chunks/preActionHook-0.5.10-6x12np60.mjs +2 -0
  346. package/dist/chunks/print-0.5.10-5a31vx9j.mjs +57 -0
  347. package/dist/chunks/privacy-settings-0.5.10-rdfd63af.mjs +1 -0
  348. package/dist/chunks/process-0.5.10-nf4cmk34.mjs +1 -0
  349. package/dist/chunks/processBashCommand-0.5.10-mw974xep.mjs +1 -0
  350. package/dist/chunks/processSlashCommand-0.5.10-e8c6n292.mjs +9 -0
  351. package/dist/chunks/prompt-0.5.10-6pbxq1g3.mjs +1 -0
  352. package/dist/chunks/prompt-0.5.10-n31de4d4.mjs +1 -0
  353. package/dist/chunks/prompts-0.5.10-0cxg5rvf.mjs +1 -0
  354. package/dist/chunks/protocolHandler-0.5.10-n15zj80n.mjs +13 -0
  355. package/dist/chunks/provider-0.5.10-0chtqqq3.mjs +2 -0
  356. package/dist/chunks/providerProfiles-0.5.10-kk39f15h.mjs +1 -0
  357. package/dist/chunks/providerValidation-0.5.10-5b2bmm6k.mjs +6 -0
  358. package/dist/chunks/rate-limit-options-0.5.10-qen28djd.mjs +1 -0
  359. package/dist/chunks/registerSubcommands-0.5.10-xmgpzx1a.mjs +34 -0
  360. package/dist/chunks/registry-0.5.10-q3yb1jt6.mjs +1 -0
  361. package/dist/chunks/release-notes-0.5.10-3m0mwzvq.mjs +5 -0
  362. package/dist/chunks/reload-plugins-0.5.10-2ngnamq3.mjs +2 -0
  363. package/dist/chunks/remote-env-0.5.10-gm9a4ms5.mjs +1 -0
  364. package/dist/chunks/remoteBridgeCore-0.5.10-s9tnpv93.mjs +1 -0
  365. package/dist/chunks/remoteSession-0.5.10-mk8be8a3.mjs +1 -0
  366. package/dist/chunks/rename-0.5.10-9ecwm2ar.mjs +1 -0
  367. package/dist/chunks/replBridgeHandle-0.5.10-9956kd4a.mjs +1 -0
  368. package/dist/chunks/replLauncher-0.5.10-94wyag0m.mjs +1 -0
  369. package/dist/chunks/resume-0.5.10-nc3z5h15.mjs +2 -0
  370. package/dist/chunks/rewind-0.5.10-wbs4stfg.mjs +1 -0
  371. package/dist/chunks/rootOptions-0.5.10-8ky1y6hv.mjs +1 -0
  372. package/dist/chunks/sandbox-adapter-0.5.10-jg0fj7ss.mjs +1 -0
  373. package/dist/chunks/sandbox-toggle-0.5.10-yy9272d9.mjs +1 -0
  374. package/dist/chunks/session-0.5.10-jqzxp3r3.mjs +2 -0
  375. package/dist/chunks/sessionDiscovery-0.5.10-7va0srxq.mjs +1 -0
  376. package/dist/chunks/sessionFileAccessHooks-0.5.10-bykpya1w.mjs +1 -0
  377. package/dist/chunks/sessionStorage-0.5.10-yy69cv78.mjs +1 -0
  378. package/dist/chunks/settings-0.5.10-kx3ep0z5.mjs +1 -0
  379. package/dist/chunks/setup-0.5.10-w0byw3fs.mjs +5 -0
  380. package/dist/chunks/sinks-0.5.10-289qngp8.mjs +1 -0
  381. package/dist/chunks/skills-0.5.10-6kvsqc69.mjs +1 -0
  382. package/dist/chunks/startupProfiler-0.5.10-e0mg4v8r.mjs +1 -0
  383. package/dist/chunks/startupUpdateCheck-0.5.10-08eextv5.mjs +1 -0
  384. package/dist/chunks/state-0.5.10-7xqjnrdw.mjs +1 -0
  385. package/dist/chunks/stats-0.5.10-fafdyc91.mjs +6 -0
  386. package/dist/chunks/status-0.5.10-y9t6rf31.mjs +1 -0
  387. package/dist/chunks/stickers-0.5.10-ta1pq624.mjs +1 -0
  388. package/dist/chunks/subprocessEnv-0.5.10-zv2wcv5q.mjs +1 -0
  389. package/dist/chunks/tasks-0.5.10-d0y0wvjj.mjs +1 -0
  390. package/dist/chunks/teamHelpers-0.5.10-qpwpfv94.mjs +1 -0
  391. package/dist/chunks/teammateModeSnapshot-0.5.10-92d1devr.mjs +1 -0
  392. package/dist/chunks/teleport-0.5.10-rkxj6c9z.mjs +1 -0
  393. package/dist/chunks/terminalSetup-0.5.10-xtrfcff1.mjs +1 -0
  394. package/dist/chunks/theme-0.5.10-5rz8k2g9.mjs +1 -0
  395. package/dist/chunks/thinkback-0.5.10-pmdfhfhz.mjs +1 -0
  396. package/dist/chunks/thinkback-play-0.5.10-051qtb4m.mjs +1 -0
  397. package/dist/chunks/toolPool-0.5.10-702w7qvh.mjs +1 -0
  398. package/dist/chunks/toolSearch-0.5.10-emqjgdkv.mjs +1 -0
  399. package/dist/chunks/tools-0.5.10-2msmk0nf.mjs +1 -0
  400. package/dist/chunks/trustedDevice-0.5.10-rc23c6gy.mjs +1 -0
  401. package/dist/chunks/turndown.cjs-0.5.10-a87sftz7.mjs +69 -0
  402. package/dist/chunks/ultrareviewCommand-0.5.10-z29nftnt.mjs +4 -0
  403. package/dist/chunks/update-0.5.10-52yyras3.mjs +86 -0
  404. package/dist/chunks/upgrade-0.5.10-xqdpemsf.mjs +1 -0
  405. package/dist/chunks/upstreamproxy-0.5.10-154q742m.mjs +14 -0
  406. package/dist/chunks/url-handler-napi-0.5.10-8af5etcc.mjs +1 -0
  407. package/dist/chunks/usage-0.5.10-hhg47trs.mjs +1 -0
  408. package/dist/chunks/util-0.5.10-0zqyyf2e.mjs +1 -0
  409. package/dist/chunks/utils-0.5.10-36gnsqbk.mjs +1 -0
  410. package/dist/chunks/vim-0.5.10-0zas1t6x.mjs +1 -0
  411. package/dist/chunks/watcher-0.5.10-9etw516s.mjs +1 -0
  412. package/dist/chunks/wiki-0.5.10-rwktf7fm.mjs +132 -0
  413. package/dist/chunks/worktree-0.5.10-afdnv059.mjs +1 -0
  414. package/dist/chunks/worktreeModeEnabled-0.5.10-n0bmqq02.mjs +1 -0
  415. package/dist/chunks/wrapper-0.5.10-0bca9c3g.mjs +7 -0
  416. package/dist/claudin-vscode.vsix +0 -0
  417. package/dist/cli.mjs +2 -2
  418. package/package.json +1 -1
  419. package/dist/chunks/AgentTool-0.5.9-560de9d1.mjs +0 -1
  420. package/dist/chunks/App-0.5.9-zsap2q4b.mjs +0 -1
  421. package/dist/chunks/ApproveApiKey-0.5.9-8zgzn0jw.mjs +0 -1
  422. package/dist/chunks/AssistantSessionChooser-0.5.9-92f16280.mjs +0 -1
  423. package/dist/chunks/AutoModeOptInDialog-0.5.9-708dpq05.mjs +0 -1
  424. package/dist/chunks/BypassPermissionsModeDialog-0.5.9-thv5358f.mjs +0 -1
  425. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.9-h0dan6qh.mjs +0 -1
  426. package/dist/chunks/ConsoleOAuthFlow-0.5.9-35ajv7zw.mjs +0 -1
  427. package/dist/chunks/DiffDialog-0.5.9-2gfy103v.mjs +0 -3
  428. package/dist/chunks/Doctor-0.5.9-wjw0w0c1.mjs +0 -1
  429. package/dist/chunks/Grove-0.5.9-hty0xzar.mjs +0 -1
  430. package/dist/chunks/ITermBackend-0.5.9-pch1zyqn.mjs +0 -1
  431. package/dist/chunks/InvalidConfigDialog-0.5.9-xjp9bdct.mjs +0 -1
  432. package/dist/chunks/InvalidSettingsDialog-0.5.9-t4wkfdrh.mjs +0 -1
  433. package/dist/chunks/MigrationDialog-0.5.9-12p8z825.mjs +0 -1
  434. package/dist/chunks/Onboarding-0.5.9-d02fdy7a.mjs +0 -1
  435. package/dist/chunks/ProviderManager-0.5.9-2h6pym7f.mjs +0 -1
  436. package/dist/chunks/REPL-0.5.9-fn63chv9.mjs +0 -1
  437. package/dist/chunks/ResumeConversation-0.5.9-wdc0fys1.mjs +0 -1
  438. package/dist/chunks/SnapshotUpdateDialog-0.5.9-ty7tvdf3.mjs +0 -1
  439. package/dist/chunks/TeleportProgress-0.5.9-th2cx2b2.mjs +0 -1
  440. package/dist/chunks/TeleportRepoMismatchDialog-0.5.9-gqyef6wv.mjs +0 -1
  441. package/dist/chunks/TeleportResumeWrapper-0.5.9-e4b9wj1z.mjs +0 -1
  442. package/dist/chunks/TmuxBackend-0.5.9-xx7btmxb.mjs +0 -9
  443. package/dist/chunks/ToolSearchTool-0.5.9-7h9j8zft.mjs +0 -1
  444. package/dist/chunks/TrustDialog-0.5.9-y0bxcnzx.mjs +0 -1
  445. package/dist/chunks/activeProvider-0.5.9-bqhnxdga.mjs +0 -1
  446. package/dist/chunks/add-dir-0.5.9-t52c4h9t.mjs +0 -1
  447. package/dist/chunks/agents-0.5.9-b270304w.mjs +0 -110
  448. package/dist/chunks/agents-0.5.9-h9dw36cp.mjs +0 -3
  449. package/dist/chunks/api-0.5.9-jnhtend7.mjs +0 -1
  450. package/dist/chunks/asciicast-0.5.9-hrjx2e4n.mjs +0 -1
  451. package/dist/chunks/assistant-0.5.9-ap4j82na.mjs +0 -1
  452. package/dist/chunks/auth-0.5.9-cna7nxzb.mjs +0 -1
  453. package/dist/chunks/auth-0.5.9-q8ejya3n.mjs +0 -1
  454. package/dist/chunks/autoMode-0.5.9-w9j324dc.mjs +0 -48
  455. package/dist/chunks/autoUpdater-0.5.9-3x3xcjhq.mjs +0 -1
  456. package/dist/chunks/backgroundHousekeeping-0.5.9-ngzjz5nf.mjs +0 -1
  457. package/dist/chunks/branch-0.5.9-4389y3jh.mjs +0 -4
  458. package/dist/chunks/bridgePointer-0.5.9-ph0vdzcm.mjs +0 -1
  459. package/dist/chunks/btw-0.5.9-kq7dda47.mjs +0 -1
  460. package/dist/chunks/buddy-0.5.9-3s5bz133.mjs +0 -3
  461. package/dist/chunks/cacache-0.5.9-k02nazjg.mjs +0 -1
  462. package/dist/chunks/cache-probe-0.5.9-vdfe8hkq.mjs +0 -21
  463. package/dist/chunks/cacheStats-0.5.9-89wd0xyf.mjs +0 -4
  464. package/dist/chunks/caches-0.5.9-kg4820wg.mjs +0 -1
  465. package/dist/chunks/claudeDesktop-0.5.9-7pt2wjt1.mjs +0 -1
  466. package/dist/chunks/claudemd-0.5.9-bhqwq7vs.mjs +0 -1
  467. package/dist/chunks/clear-0.5.9-5mg9gs8a.mjs +0 -1
  468. package/dist/chunks/clearTerminal-0.5.9-esamq102.mjs +0 -1
  469. package/dist/chunks/cli-0.5.9-00ms6tt7.mjs +0 -4
  470. package/dist/chunks/cli-0.5.9-02vwh5bc.mjs +0 -2
  471. package/dist/chunks/cli-0.5.9-0a5jxqra.mjs +0 -58
  472. package/dist/chunks/cli-0.5.9-0b1wx67c.mjs +0 -193
  473. package/dist/chunks/cli-0.5.9-0becvd5f.mjs +0 -2
  474. package/dist/chunks/cli-0.5.9-0w46b370.mjs +0 -3
  475. package/dist/chunks/cli-0.5.9-10ar539r.mjs +0 -2
  476. package/dist/chunks/cli-0.5.9-12gj3v8y.mjs +0 -12
  477. package/dist/chunks/cli-0.5.9-1ktmgzhb.mjs +0 -15
  478. package/dist/chunks/cli-0.5.9-1qkhnqnk.mjs +0 -4
  479. package/dist/chunks/cli-0.5.9-1zc8qwr4.mjs +0 -2
  480. package/dist/chunks/cli-0.5.9-248na0hf.mjs +0 -2
  481. package/dist/chunks/cli-0.5.9-2fcyavah.mjs +0 -17
  482. package/dist/chunks/cli-0.5.9-2jfbm2es.mjs +0 -12
  483. package/dist/chunks/cli-0.5.9-2txnqxd1.mjs +0 -2
  484. package/dist/chunks/cli-0.5.9-31f5vjyq.mjs +0 -2
  485. package/dist/chunks/cli-0.5.9-32fpvgpt.mjs +0 -2
  486. package/dist/chunks/cli-0.5.9-371mb3zf.mjs +0 -4
  487. package/dist/chunks/cli-0.5.9-3bsjckc3.mjs +0 -2
  488. package/dist/chunks/cli-0.5.9-3s1c44tz.mjs +0 -2
  489. package/dist/chunks/cli-0.5.9-41dpv5z9.mjs +0 -2
  490. package/dist/chunks/cli-0.5.9-42t3s85x.mjs +0 -2
  491. package/dist/chunks/cli-0.5.9-4aga12a5.mjs +0 -2
  492. package/dist/chunks/cli-0.5.9-4fdad25z.mjs +0 -3
  493. package/dist/chunks/cli-0.5.9-4m738pn1.mjs +0 -25
  494. package/dist/chunks/cli-0.5.9-4s8nynfd.mjs +0 -2
  495. package/dist/chunks/cli-0.5.9-4t8b91eb.mjs +0 -4
  496. package/dist/chunks/cli-0.5.9-4w9169na.mjs +0 -3
  497. package/dist/chunks/cli-0.5.9-5ah34c4c.mjs +0 -39
  498. package/dist/chunks/cli-0.5.9-5e3fhttm.mjs +0 -2
  499. package/dist/chunks/cli-0.5.9-5hzwn715.mjs +0 -2
  500. package/dist/chunks/cli-0.5.9-5s8vtyx6.mjs +0 -4
  501. package/dist/chunks/cli-0.5.9-5vdqnecb.mjs +0 -4
  502. package/dist/chunks/cli-0.5.9-5vj7cvdr.mjs +0 -2
  503. package/dist/chunks/cli-0.5.9-5ykvr12k.mjs +0 -2
  504. package/dist/chunks/cli-0.5.9-610r4gbg.mjs +0 -2
  505. package/dist/chunks/cli-0.5.9-637n1msd.mjs +0 -15
  506. package/dist/chunks/cli-0.5.9-671nz4d9.mjs +0 -2
  507. package/dist/chunks/cli-0.5.9-68rmtj23.mjs +0 -2
  508. package/dist/chunks/cli-0.5.9-6rrqt96f.mjs +0 -2
  509. package/dist/chunks/cli-0.5.9-72tax9cd.mjs +0 -2
  510. package/dist/chunks/cli-0.5.9-77nxjft3.mjs +0 -2
  511. package/dist/chunks/cli-0.5.9-7bq8wzr3.mjs +0 -18
  512. package/dist/chunks/cli-0.5.9-7hcka84h.mjs +0 -2
  513. package/dist/chunks/cli-0.5.9-7qcan18n.mjs +0 -2
  514. package/dist/chunks/cli-0.5.9-8h1qpeef.mjs +0 -2
  515. package/dist/chunks/cli-0.5.9-8kfemzbn.mjs +0 -2
  516. package/dist/chunks/cli-0.5.9-8ndgy03m.mjs +0 -4
  517. package/dist/chunks/cli-0.5.9-91gjew0x.mjs +0 -3
  518. package/dist/chunks/cli-0.5.9-9fgjryqc.mjs +0 -2
  519. package/dist/chunks/cli-0.5.9-9rrpczqk.mjs +0 -17
  520. package/dist/chunks/cli-0.5.9-a720c6hc.mjs +0 -9
  521. package/dist/chunks/cli-0.5.9-ajbjmz51.mjs +0 -2
  522. package/dist/chunks/cli-0.5.9-ap6gvqkx.mjs +0 -67
  523. package/dist/chunks/cli-0.5.9-apc46v07.mjs +0 -15
  524. package/dist/chunks/cli-0.5.9-awa1dtdz.mjs +0 -2
  525. package/dist/chunks/cli-0.5.9-b4t4xfpb.mjs +0 -2
  526. package/dist/chunks/cli-0.5.9-b4xgpen1.mjs +0 -5
  527. package/dist/chunks/cli-0.5.9-bax4dxrj.mjs +0 -2
  528. package/dist/chunks/cli-0.5.9-bc0wvx5b.mjs +0 -2
  529. package/dist/chunks/cli-0.5.9-bfn7177j.mjs +0 -2
  530. package/dist/chunks/cli-0.5.9-bp09b2xm.mjs +0 -2
  531. package/dist/chunks/cli-0.5.9-bv3m0yb8.mjs +0 -2
  532. package/dist/chunks/cli-0.5.9-bwdsfdf6.mjs +0 -2
  533. package/dist/chunks/cli-0.5.9-c54d94sv.mjs +0 -2
  534. package/dist/chunks/cli-0.5.9-cbgfqb0x.mjs +0 -2
  535. package/dist/chunks/cli-0.5.9-cy4sm0c2.mjs +0 -2
  536. package/dist/chunks/cli-0.5.9-d5rn9c6v.mjs +0 -12
  537. package/dist/chunks/cli-0.5.9-d66wktpd.mjs +0 -2
  538. package/dist/chunks/cli-0.5.9-d89n2ccx.mjs +0 -2
  539. package/dist/chunks/cli-0.5.9-da0mspn4.mjs +0 -2
  540. package/dist/chunks/cli-0.5.9-dszssq6z.mjs +0 -2
  541. package/dist/chunks/cli-0.5.9-dtbcqw2e.mjs +0 -2
  542. package/dist/chunks/cli-0.5.9-e1gk7v9y.mjs +0 -2
  543. package/dist/chunks/cli-0.5.9-e4sr85eg.mjs +0 -2
  544. package/dist/chunks/cli-0.5.9-e5ex267m.mjs +0 -2
  545. package/dist/chunks/cli-0.5.9-e7gc5p54.mjs +0 -2
  546. package/dist/chunks/cli-0.5.9-eagw660r.mjs +0 -2
  547. package/dist/chunks/cli-0.5.9-ejmv1n9p.mjs +0 -3
  548. package/dist/chunks/cli-0.5.9-ek649arf.mjs +0 -6
  549. package/dist/chunks/cli-0.5.9-ezc11axw.mjs +0 -2
  550. package/dist/chunks/cli-0.5.9-ezpjdejw.mjs +0 -2
  551. package/dist/chunks/cli-0.5.9-f9jt7awn.mjs +0 -2
  552. package/dist/chunks/cli-0.5.9-fn6ees65.mjs +0 -2
  553. package/dist/chunks/cli-0.5.9-fv4jrdef.mjs +0 -2
  554. package/dist/chunks/cli-0.5.9-g6qpvmj4.mjs +0 -133
  555. package/dist/chunks/cli-0.5.9-g9kt9aw7.mjs +0 -2
  556. package/dist/chunks/cli-0.5.9-ga0kqnkz.mjs +0 -5
  557. package/dist/chunks/cli-0.5.9-gbq794tt.mjs +0 -2
  558. package/dist/chunks/cli-0.5.9-gcsba93g.mjs +0 -18
  559. package/dist/chunks/cli-0.5.9-ghbax09k.mjs +0 -2
  560. package/dist/chunks/cli-0.5.9-gk1vb8nn.mjs +0 -2
  561. package/dist/chunks/cli-0.5.9-gp0bq7wk.mjs +0 -2
  562. package/dist/chunks/cli-0.5.9-gr8zgxwx.mjs +0 -2
  563. package/dist/chunks/cli-0.5.9-grgf8g99.mjs +0 -2
  564. package/dist/chunks/cli-0.5.9-h5d0zxek.mjs +0 -3
  565. package/dist/chunks/cli-0.5.9-h6nmz5e3.mjs +0 -2
  566. package/dist/chunks/cli-0.5.9-h7gh7ym5.mjs +0 -24
  567. package/dist/chunks/cli-0.5.9-h836a3wa.mjs +0 -2
  568. package/dist/chunks/cli-0.5.9-hg2qm56h.mjs +0 -4
  569. package/dist/chunks/cli-0.5.9-hpq0xehd.mjs +0 -2
  570. package/dist/chunks/cli-0.5.9-hwet4kvx.mjs +0 -2
  571. package/dist/chunks/cli-0.5.9-j2d1jct8.mjs +0 -2
  572. package/dist/chunks/cli-0.5.9-j8629kcy.mjs +0 -2
  573. package/dist/chunks/cli-0.5.9-j9ns2awb.mjs +0 -8
  574. package/dist/chunks/cli-0.5.9-jd8be7cd.mjs +0 -6
  575. package/dist/chunks/cli-0.5.9-jdzavz2g.mjs +0 -2
  576. package/dist/chunks/cli-0.5.9-jjtdefqj.mjs +0 -2
  577. package/dist/chunks/cli-0.5.9-jk4rx6zt.mjs +0 -4
  578. package/dist/chunks/cli-0.5.9-jnhyr1zg.mjs +0 -2
  579. package/dist/chunks/cli-0.5.9-jsxqd90d.mjs +0 -3
  580. package/dist/chunks/cli-0.5.9-k3prcbg9.mjs +0 -2
  581. package/dist/chunks/cli-0.5.9-k47s77hf.mjs +0 -2
  582. package/dist/chunks/cli-0.5.9-k6qxbj0d.mjs +0 -42
  583. package/dist/chunks/cli-0.5.9-k9yedz53.mjs +0 -5262
  584. package/dist/chunks/cli-0.5.9-kfpgp09g.mjs +0 -6
  585. package/dist/chunks/cli-0.5.9-knc0w8sn.mjs +0 -2
  586. package/dist/chunks/cli-0.5.9-krvpcgvw.mjs +0 -2
  587. package/dist/chunks/cli-0.5.9-ktxeg6my.mjs +0 -2
  588. package/dist/chunks/cli-0.5.9-m1y4hmzs.mjs +0 -2
  589. package/dist/chunks/cli-0.5.9-mcezkpp8.mjs +0 -2
  590. package/dist/chunks/cli-0.5.9-mhz9wt6a.mjs +0 -2
  591. package/dist/chunks/cli-0.5.9-mmvtbr39.mjs +0 -2
  592. package/dist/chunks/cli-0.5.9-mpqmy7zw.mjs +0 -2
  593. package/dist/chunks/cli-0.5.9-n08gkgng.mjs +0 -21
  594. package/dist/chunks/cli-0.5.9-ncjg30aq.mjs +0 -3
  595. package/dist/chunks/cli-0.5.9-nct7sarc.mjs +0 -2
  596. package/dist/chunks/cli-0.5.9-nfhfsnw6.mjs +0 -2
  597. package/dist/chunks/cli-0.5.9-nk3pacrn.mjs +0 -5
  598. package/dist/chunks/cli-0.5.9-nvf5kfmq.mjs +0 -9
  599. package/dist/chunks/cli-0.5.9-ppr1420k.mjs +0 -2
  600. package/dist/chunks/cli-0.5.9-q3wvc7qb.mjs +0 -2
  601. package/dist/chunks/cli-0.5.9-q69vj08a.mjs +0 -2
  602. package/dist/chunks/cli-0.5.9-q7a4xcwy.mjs +0 -3
  603. package/dist/chunks/cli-0.5.9-q9ne4r9p.mjs +0 -50
  604. package/dist/chunks/cli-0.5.9-qddf6zq9.mjs +0 -2
  605. package/dist/chunks/cli-0.5.9-qexy3mqr.mjs +0 -59
  606. package/dist/chunks/cli-0.5.9-qvvxrm93.mjs +0 -3
  607. package/dist/chunks/cli-0.5.9-qy6qkzwb.mjs +0 -2
  608. package/dist/chunks/cli-0.5.9-r9d405kc.mjs +0 -2
  609. package/dist/chunks/cli-0.5.9-rbjjfytb.mjs +0 -2
  610. package/dist/chunks/cli-0.5.9-rh5280xq.mjs +0 -2
  611. package/dist/chunks/cli-0.5.9-rhycyvwn.mjs +0 -2
  612. package/dist/chunks/cli-0.5.9-rjdhjn49.mjs +0 -20
  613. package/dist/chunks/cli-0.5.9-rm62v7hr.mjs +0 -34
  614. package/dist/chunks/cli-0.5.9-rpgjj6qg.mjs +0 -2
  615. package/dist/chunks/cli-0.5.9-rv2328c4.mjs +0 -2
  616. package/dist/chunks/cli-0.5.9-s2jh3scf.mjs +0 -3
  617. package/dist/chunks/cli-0.5.9-sd34jmva.mjs +0 -2
  618. package/dist/chunks/cli-0.5.9-sjcz03eb.mjs +0 -2
  619. package/dist/chunks/cli-0.5.9-ss870bda.mjs +0 -2
  620. package/dist/chunks/cli-0.5.9-syr6nffj.mjs +0 -2
  621. package/dist/chunks/cli-0.5.9-t2fy8t5r.mjs +0 -45
  622. package/dist/chunks/cli-0.5.9-tav5jmz1.mjs +0 -2
  623. package/dist/chunks/cli-0.5.9-tbz9s4h3.mjs +0 -2
  624. package/dist/chunks/cli-0.5.9-tj6dt3d6.mjs +0 -2
  625. package/dist/chunks/cli-0.5.9-tke5evvm.mjs +0 -2
  626. package/dist/chunks/cli-0.5.9-v1srrn02.mjs +0 -2
  627. package/dist/chunks/cli-0.5.9-v5mkedy5.mjs +0 -16
  628. package/dist/chunks/cli-0.5.9-v69cq6f1.mjs +0 -2
  629. package/dist/chunks/cli-0.5.9-ve2b6kmp.mjs +0 -2
  630. package/dist/chunks/cli-0.5.9-vkt9t3z8.mjs +0 -133
  631. package/dist/chunks/cli-0.5.9-w1g3tgzh.mjs +0 -2
  632. package/dist/chunks/cli-0.5.9-wc5gt1zw.mjs +0 -2
  633. package/dist/chunks/cli-0.5.9-whf5zybr.mjs +0 -2
  634. package/dist/chunks/cli-0.5.9-wjvc994v.mjs +0 -2
  635. package/dist/chunks/cli-0.5.9-wkhmkyaq.mjs +0 -2
  636. package/dist/chunks/cli-0.5.9-wrndf987.mjs +0 -2
  637. package/dist/chunks/cli-0.5.9-xbvqph1k.mjs +0 -2
  638. package/dist/chunks/cli-0.5.9-xcexsk79.mjs +0 -2
  639. package/dist/chunks/cli-0.5.9-xge969yd.mjs +0 -2
  640. package/dist/chunks/cli-0.5.9-xn1qcye7.mjs +0 -2
  641. package/dist/chunks/cli-0.5.9-xn369es1.mjs +0 -2
  642. package/dist/chunks/cli-0.5.9-xz1pg47z.mjs +0 -10
  643. package/dist/chunks/cli-0.5.9-yazhwsgb.mjs +0 -4
  644. package/dist/chunks/cli-0.5.9-yh7f5m4w.mjs +0 -2
  645. package/dist/chunks/cli-0.5.9-yqn35x2d.mjs +0 -2
  646. package/dist/chunks/cli-0.5.9-ywc7arzn.mjs +0 -2
  647. package/dist/chunks/cli-0.5.9-z87j725g.mjs +0 -2
  648. package/dist/chunks/cli-0.5.9-zb26tq1c.mjs +0 -2
  649. package/dist/chunks/cli-0.5.9-zerpef2t.mjs +0 -1
  650. package/dist/chunks/cli-0.5.9-zeskcndd.mjs +0 -24
  651. package/dist/chunks/cli-0.5.9-zqgkcx3g.mjs +0 -2
  652. package/dist/chunks/cli-0.5.9-zrcz538q.mjs +0 -2
  653. package/dist/chunks/cli-0.5.9-zwpt90q9.mjs +0 -7
  654. package/dist/chunks/client-0.5.9-bhc7ghsr.mjs +0 -1
  655. package/dist/chunks/color-0.5.9-5722xdf4.mjs +0 -1
  656. package/dist/chunks/compact-0.5.9-4cf807hc.mjs +0 -3
  657. package/dist/chunks/config-0.5.9-936tss5g.mjs +0 -1
  658. package/dist/chunks/config-0.5.9-kk16cygb.mjs +0 -1
  659. package/dist/chunks/context-0.5.9-b0afgp2c.mjs +0 -1
  660. package/dist/chunks/context-noninteractive-0.5.9-wj6fxcsj.mjs +0 -1
  661. package/dist/chunks/conversation-0.5.9-rtntf81h.mjs +0 -1
  662. package/dist/chunks/copy-0.5.9-93t8z0wz.mjs +0 -9
  663. package/dist/chunks/cost-0.5.9-2csvd1ae.mjs +0 -1
  664. package/dist/chunks/createSSHSession-0.5.9-0aqkvqad.mjs +0 -1
  665. package/dist/chunks/createSession-0.5.9-j9xdpffh.mjs +0 -1
  666. package/dist/chunks/debug-0.5.9-kd9n32y2.mjs +0 -1
  667. package/dist/chunks/defaultActionDeps-0.5.9-1f7mkn9m.mjs +0 -1177
  668. package/dist/chunks/desktop-0.5.9-ce65mt7y.mjs +0 -1
  669. package/dist/chunks/detectRepository-0.5.9-4nd76hbs.mjs +0 -1
  670. package/dist/chunks/detection-0.5.9-mpgxg1d5.mjs +0 -1
  671. package/dist/chunks/diff-0.5.9-89ny0sp6.mjs +0 -1
  672. package/dist/chunks/doctor-0.5.9-e8bxsm2r.mjs +0 -1
  673. package/dist/chunks/doctorDiagnostic-0.5.9-kwncc3yh.mjs +0 -1
  674. package/dist/chunks/earlyInput-0.5.9-cxrgrx2e.mjs +0 -1
  675. package/dist/chunks/effort-0.5.9-dbgsjfep.mjs +0 -10
  676. package/dist/chunks/envUtils-0.5.9-59e9sq5q.mjs +0 -1
  677. package/dist/chunks/environmentSelection-0.5.9-5tjt9mkd.mjs +0 -1
  678. package/dist/chunks/environments-0.5.9-ebm4yp6e.mjs +0 -1
  679. package/dist/chunks/errors-0.5.9-xp1e5xqp.mjs +0 -1
  680. package/dist/chunks/exampleCommands-0.5.9-dxv2wpk4.mjs +0 -1
  681. package/dist/chunks/exit-0.5.9-q7cpk25k.mjs +0 -1
  682. package/dist/chunks/export-0.5.9-1dpbp185.mjs +0 -2
  683. package/dist/chunks/extra-usage-0.5.9-ctd5dnsr.mjs +0 -1
  684. package/dist/chunks/extra-usage-noninteractive-0.5.9-hbmbvzb5.mjs +0 -1
  685. package/dist/chunks/fast-0.5.9-wagaw91z.mjs +0 -1
  686. package/dist/chunks/feedback-0.5.9-x37szs13.mjs +0 -14
  687. package/dist/chunks/firstPartyEventLogger-0.5.9-g8st730b.mjs +0 -1
  688. package/dist/chunks/git-0.5.9-zxdvsyxq.mjs +0 -1
  689. package/dist/chunks/githubModelsCredentials-0.5.9-mp51r114.mjs +0 -1
  690. package/dist/chunks/grove-0.5.9-grafpqtx.mjs +0 -1
  691. package/dist/chunks/growthbook-0.5.9-mr1nyz65.mjs +0 -1
  692. package/dist/chunks/headless-0.5.9-pxnbg1dh.mjs +0 -2
  693. package/dist/chunks/heapdump-0.5.9-58bmar8y.mjs +0 -6
  694. package/dist/chunks/help-0.5.9-x6ds3za0.mjs +0 -1
  695. package/dist/chunks/hookChains-0.5.9-1sz7vw7t.mjs +0 -3
  696. package/dist/chunks/hooks-0.5.9-4mjp8k78.mjs +0 -1
  697. package/dist/chunks/hooks-0.5.9-n14e2a57.mjs +0 -79
  698. package/dist/chunks/ide-0.5.9-gk5tarwc.mjs +0 -3
  699. package/dist/chunks/image-processor-napi-0.5.9-eept9e9s.mjs +0 -1
  700. package/dist/chunks/index-0.5.9-0n7mpzrj.mjs +0 -17
  701. package/dist/chunks/index-0.5.9-3ng34e8n.mjs +0 -2
  702. package/dist/chunks/index-0.5.9-4b9dgj2z.mjs +0 -9
  703. package/dist/chunks/index-0.5.9-4fzd2pns.mjs +0 -1
  704. package/dist/chunks/index-0.5.9-6awv6fyn.mjs +0 -1
  705. package/dist/chunks/index-0.5.9-6cbrcdyh.mjs +0 -1
  706. package/dist/chunks/index-0.5.9-725p0eby.mjs +0 -1
  707. package/dist/chunks/index-0.5.9-85ep6547.mjs +0 -30
  708. package/dist/chunks/index-0.5.9-8h5ceajb.mjs +0 -1
  709. package/dist/chunks/index-0.5.9-8ws7n6wv.mjs +0 -5
  710. package/dist/chunks/index-0.5.9-b3jm65x4.mjs +0 -1
  711. package/dist/chunks/index-0.5.9-cjjbeyt8.mjs +0 -1
  712. package/dist/chunks/index-0.5.9-gnac3s48.mjs +0 -1
  713. package/dist/chunks/index-0.5.9-m68jcsx2.mjs +0 -1
  714. package/dist/chunks/index-0.5.9-n91crv8a.mjs +0 -1
  715. package/dist/chunks/index-0.5.9-npkfayxd.mjs +0 -1
  716. package/dist/chunks/index-0.5.9-pbzzad7t.mjs +0 -9
  717. package/dist/chunks/index-0.5.9-thp631gs.mjs +0 -1
  718. package/dist/chunks/index-0.5.9-xcy5t1fw.mjs +0 -1
  719. package/dist/chunks/index-0.5.9-y07jxja1.mjs +0 -1
  720. package/dist/chunks/index-0.5.9-yjkfcf2g.mjs +0 -2
  721. package/dist/chunks/index-0.5.9-zb346057.mjs +0 -1
  722. package/dist/chunks/init-0.5.9-cmszfh8j.mjs +0 -1
  723. package/dist/chunks/initReplBridge-0.5.9-y2j594wz.mjs +0 -1
  724. package/dist/chunks/ink-0.5.9-km3f0tv6.mjs +0 -1
  725. package/dist/chunks/insights-0.5.9-fevx72ve.mjs +0 -870
  726. package/dist/chunks/install-0.5.9-6m05dpsa.mjs +0 -1
  727. package/dist/chunks/install-github-app-0.5.9-91syqpey.mjs +0 -149
  728. package/dist/chunks/install-slack-app-0.5.9-9rqmjej1.mjs +0 -1
  729. package/dist/chunks/instrumentation-0.5.9-55dt6kkh.mjs +0 -1
  730. package/dist/chunks/interactiveHelpers-0.5.9-47bhz9at.mjs +0 -1
  731. package/dist/chunks/keybindings-0.5.9-y134m89v.mjs +0 -2
  732. package/dist/chunks/knowledge-0.5.9-d1m7e2b4.mjs +0 -2
  733. package/dist/chunks/latestVersionCache-0.5.9-69z169gq.mjs +0 -1
  734. package/dist/chunks/loadAgentsDir-0.5.9-vtemqv8c.mjs +0 -1
  735. package/dist/chunks/loadPluginHooks-0.5.9-xxp0pj2x.mjs +0 -1
  736. package/dist/chunks/loadPluginHooks-0.5.9-zgq2s8sm.mjs +0 -1
  737. package/dist/chunks/log-0.5.9-8aszszjb.mjs +0 -1
  738. package/dist/chunks/main-0.5.9-cjg2h8yb.mjs +0 -1
  739. package/dist/chunks/managedEnv-0.5.9-nq2mbery.mjs +0 -1
  740. package/dist/chunks/mcp-0.5.9-g39bj87f.mjs +0 -17
  741. package/dist/chunks/mcp-0.5.9-h1sdm6zb.mjs +0 -4
  742. package/dist/chunks/mcp-0.5.9-vpwsq0wd.mjs +0 -1
  743. package/dist/chunks/mcpb-0.5.9-pavmx8mm.mjs +0 -1
  744. package/dist/chunks/memory-0.5.9-se036fe4.mjs +0 -3
  745. package/dist/chunks/mobile-0.5.9-57ycqdp3.mjs +0 -2
  746. package/dist/chunks/model-0.5.9-4e6fc1m4.mjs +0 -1
  747. package/dist/chunks/model-0.5.9-k0m86zrn.mjs +0 -2
  748. package/dist/chunks/node-0.5.9-ftk6pxmx.mjs +0 -12
  749. package/dist/chunks/oauth-0.5.9-bytwte72.mjs +0 -1
  750. package/dist/chunks/openaiShim-0.5.9-f9gdeama.mjs +0 -14
  751. package/dist/chunks/output-style-0.5.9-1wbqsbc0.mjs +0 -1
  752. package/dist/chunks/package-D6422PQU-0.5.9-4gkr65dy.mjs +0 -1
  753. package/dist/chunks/parseConnectUrl-0.5.9-d0t88r4n.mjs +0 -1
  754. package/dist/chunks/parser-0.5.9-j1kdtn15.mjs +0 -1
  755. package/dist/chunks/passes-0.5.9-w08t80rc.mjs +0 -1
  756. package/dist/chunks/permissions-0.5.9-mzx7w14f.mjs +0 -3
  757. package/dist/chunks/plan-0.5.9-trs5gepx.mjs +0 -1
  758. package/dist/chunks/plist-0.5.9-rzpv4ecn.mjs +0 -1
  759. package/dist/chunks/plugin-0.5.9-x1xsznkk.mjs +0 -29
  760. package/dist/chunks/pluginStartupCheck-0.5.9-qwkp82xp.mjs +0 -1
  761. package/dist/chunks/plugins-0.5.9-8yj1w6bf.mjs +0 -9
  762. package/dist/chunks/preActionHook-0.5.9-130eb4bx.mjs +0 -2
  763. package/dist/chunks/print-0.5.9-fm0q92d1.mjs +0 -57
  764. package/dist/chunks/privacy-settings-0.5.9-vhjhbccg.mjs +0 -1
  765. package/dist/chunks/process-0.5.9-syp1y7ym.mjs +0 -1
  766. package/dist/chunks/processBashCommand-0.5.9-admb0s9z.mjs +0 -1
  767. package/dist/chunks/processSlashCommand-0.5.9-x5wmbzr0.mjs +0 -9
  768. package/dist/chunks/prompt-0.5.9-6s763n7m.mjs +0 -1
  769. package/dist/chunks/prompt-0.5.9-fg1exp0e.mjs +0 -1
  770. package/dist/chunks/prompts-0.5.9-a6jrpexy.mjs +0 -1
  771. package/dist/chunks/protocolHandler-0.5.9-5920qvb2.mjs +0 -13
  772. package/dist/chunks/provider-0.5.9-ew50s03j.mjs +0 -2
  773. package/dist/chunks/providerProfiles-0.5.9-ygv5pxbq.mjs +0 -1
  774. package/dist/chunks/providerValidation-0.5.9-pebvjkk0.mjs +0 -6
  775. package/dist/chunks/rate-limit-options-0.5.9-p39mhxr9.mjs +0 -1
  776. package/dist/chunks/registerSubcommands-0.5.9-5576rw9k.mjs +0 -34
  777. package/dist/chunks/registry-0.5.9-tkmx5qgm.mjs +0 -1
  778. package/dist/chunks/release-notes-0.5.9-cmf1033z.mjs +0 -5
  779. package/dist/chunks/reload-plugins-0.5.9-ynqb4wwm.mjs +0 -2
  780. package/dist/chunks/remote-env-0.5.9-ddnwx90m.mjs +0 -1
  781. package/dist/chunks/remoteBridgeCore-0.5.9-br32ecze.mjs +0 -1
  782. package/dist/chunks/remoteSession-0.5.9-9ee3jy2n.mjs +0 -1
  783. package/dist/chunks/rename-0.5.9-h0npjxhv.mjs +0 -1
  784. package/dist/chunks/replBridgeHandle-0.5.9-4tjg5rct.mjs +0 -1
  785. package/dist/chunks/replLauncher-0.5.9-y4zkk3hb.mjs +0 -1
  786. package/dist/chunks/resume-0.5.9-5n9z570h.mjs +0 -2
  787. package/dist/chunks/rewind-0.5.9-cawzh2f5.mjs +0 -1
  788. package/dist/chunks/rootOptions-0.5.9-z7hher7x.mjs +0 -1
  789. package/dist/chunks/sandbox-adapter-0.5.9-m8dy3vak.mjs +0 -1
  790. package/dist/chunks/sandbox-toggle-0.5.9-d7hfb9dw.mjs +0 -1
  791. package/dist/chunks/session-0.5.9-spjfzb60.mjs +0 -2
  792. package/dist/chunks/sessionDiscovery-0.5.9-k8tw4apd.mjs +0 -1
  793. package/dist/chunks/sessionFileAccessHooks-0.5.9-kzd77836.mjs +0 -1
  794. package/dist/chunks/sessionStorage-0.5.9-5eaxh9e1.mjs +0 -1
  795. package/dist/chunks/settings-0.5.9-9y9yx2ep.mjs +0 -1
  796. package/dist/chunks/setup-0.5.9-cbnsjaz6.mjs +0 -5
  797. package/dist/chunks/sinks-0.5.9-3kes56y2.mjs +0 -1
  798. package/dist/chunks/skills-0.5.9-816ec23f.mjs +0 -1
  799. package/dist/chunks/startupProfiler-0.5.9-j5rdws5r.mjs +0 -1
  800. package/dist/chunks/startupUpdateCheck-0.5.9-wgd2amqq.mjs +0 -1
  801. package/dist/chunks/state-0.5.9-ssv90pdf.mjs +0 -1
  802. package/dist/chunks/stats-0.5.9-09jq1eez.mjs +0 -6
  803. package/dist/chunks/status-0.5.9-zm23czy4.mjs +0 -1
  804. package/dist/chunks/stickers-0.5.9-df1ha62e.mjs +0 -1
  805. package/dist/chunks/subprocessEnv-0.5.9-4bh9v7rk.mjs +0 -1
  806. package/dist/chunks/tasks-0.5.9-75eaj64t.mjs +0 -1
  807. package/dist/chunks/teamHelpers-0.5.9-a239c7as.mjs +0 -1
  808. package/dist/chunks/teammateModeSnapshot-0.5.9-gpfpnhg1.mjs +0 -1
  809. package/dist/chunks/teleport-0.5.9-jq0cm2ce.mjs +0 -1
  810. package/dist/chunks/terminalSetup-0.5.9-zscy8b5b.mjs +0 -1
  811. package/dist/chunks/theme-0.5.9-crkb4a1t.mjs +0 -1
  812. package/dist/chunks/thinkback-0.5.9-bqzpccev.mjs +0 -1
  813. package/dist/chunks/thinkback-play-0.5.9-avsgpz11.mjs +0 -1
  814. package/dist/chunks/toolPool-0.5.9-9k94r61g.mjs +0 -1
  815. package/dist/chunks/toolSearch-0.5.9-qm8rqvys.mjs +0 -1
  816. package/dist/chunks/tools-0.5.9-e5fa6xh1.mjs +0 -1
  817. package/dist/chunks/trustedDevice-0.5.9-dhpwn40g.mjs +0 -1
  818. package/dist/chunks/turndown.cjs-0.5.9-bwat06c0.mjs +0 -69
  819. package/dist/chunks/ultrareviewCommand-0.5.9-qfz8shw1.mjs +0 -4
  820. package/dist/chunks/update-0.5.9-yv6acwy6.mjs +0 -86
  821. package/dist/chunks/upgrade-0.5.9-3xpmapbj.mjs +0 -1
  822. package/dist/chunks/upstreamproxy-0.5.9-ebc62ytm.mjs +0 -14
  823. package/dist/chunks/url-handler-napi-0.5.9-ejbmjrv9.mjs +0 -1
  824. package/dist/chunks/usage-0.5.9-ze5694v0.mjs +0 -1
  825. package/dist/chunks/util-0.5.9-8517xr6w.mjs +0 -1
  826. package/dist/chunks/utils-0.5.9-tq5p3g26.mjs +0 -1
  827. package/dist/chunks/vim-0.5.9-3pwhv6s4.mjs +0 -1
  828. package/dist/chunks/watcher-0.5.9-ft2b96h8.mjs +0 -1
  829. package/dist/chunks/wiki-0.5.9-f96c34xg.mjs +0 -132
  830. package/dist/chunks/worktree-0.5.9-p28ne51h.mjs +0 -1
  831. package/dist/chunks/worktreeModeEnabled-0.5.9-4tgvrvd2.mjs +0 -1
  832. package/dist/chunks/wrapper-0.5.9-asjtntyw.mjs +0 -7
  833. /package/dist/chunks/{cli-0.5.9-ysvsqcpa.mjs → cli-0.5.10-1sd567wn.mjs} +0 -0
  834. /package/dist/chunks/{cli-0.5.9-ehe0yr95.mjs → cli-0.5.10-57andxje.mjs} +0 -0
  835. /package/dist/chunks/{cli-0.5.9-x9tg4bxs.mjs → cli-0.5.10-5kz0qdsz.mjs} +0 -0
  836. /package/dist/chunks/{cli-0.5.9-c91t0fys.mjs → cli-0.5.10-a542fww1.mjs} +0 -0
  837. /package/dist/chunks/{cli-0.5.9-4yxntpxv.mjs → cli-0.5.10-n8pz2na8.mjs} +0 -0
  838. /package/dist/chunks/{cli-0.5.9-1y9n9z2h.mjs → cli-0.5.10-ra711jkk.mjs} +0 -0
  839. /package/dist/chunks/{cli-0.5.9-mk69z06z.mjs → cli-0.5.10-t2s1mxyn.mjs} +0 -0
  840. /package/dist/chunks/{cli-0.5.9-an1j3dqv.mjs → cli-0.5.10-vsgznv7p.mjs} +0 -0
@@ -0,0 +1 @@
1
+ import{t5 as a}from"./cli-0.5.10-8zwd1xme.mjs";import"./cli-0.5.10-p3g04417.mjs";import"./cli-0.5.10-d2cw91xn.mjs";import"./cli-0.5.10-b7r8mjbd.mjs";import"./cli-0.5.10-0vs5gmpe.mjs";import"./cli-0.5.10-mvckg6zv.mjs";import"./cli-0.5.10-1sd567wn.mjs";export default a();
@@ -0,0 +1,2 @@
1
+ import{A5 as Et,B5 as $r,C5 as Is,D5 as Ar,E5 as Fr,F5 as hs,G5 as G,H5 as tt,I5 as pr,J5 as _r,L5 as Er,M5 as Sr,N5 as Rr,O5 as xr,P5 as vr,Q5 as Kt,R5 as kt,S5 as er,T5 as Ur,U5 as Mr,u5 as F,v5 as Nr,w5 as Dr,x5 as br,y5 as Ge,z5 as Zt}from"./cli-0.5.10-p3g04417.mjs";import{V5 as ps}from"./cli-0.5.10-d2cw91xn.mjs";import{W5 as we}from"./cli-0.5.10-xk6v4sy0.mjs";import{wna as dr,xna as Z,yna as Ce}from"./cli-0.5.10-b7r8mjbd.mjs";import{zna as ir}from"./cli-0.5.10-0vs5gmpe.mjs";import{Bna as Xe}from"./cli-0.5.10-mvckg6zv.mjs";import{Hna as ge,Jna as S,Lna as no,Mna as X}from"./cli-0.5.10-1sd567wn.mjs";var De=S((Zs)=>{var Ls=Z(),Ts=F(),p=Ce(),w=we(),zs=X("node:fs"),Hs=({logger:e,signingName:s}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!s)throw new p.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let t=Ts.getBearerTokenEnvKey(s);if(!(t in process.env))throw new p.TokenProviderError(`Token not present in '${t}' environment variable`,{logger:e});let o={token:process.env[t]};return Ls.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},Vs=300000,K="To refresh this SSO session run 'aws sso login' with the corresponding profile.",Bs=async(e,s={},t)=>{let{SSOOIDCClient:o}=await import("./index-0.5.10-fjf8d5vq.mjs").then((m)=>ge(m.default)),r=(c)=>s.clientConfig?.[c]??s.parentClientConfig?.[c]??t?.[c];return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:r("logger"),userAgentAppId:r("userAgentAppId")}))},Ys=async(e,s,t={},o)=>{let{CreateTokenCommand:r}=await import("./index-0.5.10-fjf8d5vq.mjs").then((m)=>ge(m.default));return(await Bs(s,t,o)).send(new r({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},Pe=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new p.TokenProviderError(`Token is expired. ${K}`,!1)},h=(e,s,t=!1)=>{if(typeof s>"u")throw new p.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${K}`,!1)},{writeFile:Qs}=zs.promises,Js=(e,s)=>{let t=w.getSSOTokenFilepath(e),o=JSON.stringify(s,null,2);return Qs(t,o)},ye=new Date(0),Ne=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let t=await w.parseKnownFiles(e),o=w.getProfileName({profile:e.profile??s?.profile}),r=t[o];if(!r)throw new p.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new p.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`);let n=r.sso_session,_=(await w.loadSsoSessionData(e))[n];if(!_)throw new p.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let a of["sso_start_url","sso_region"])if(!_[a])throw new p.TokenProviderError(`Sso session '${n}' is missing required property '${a}'.`,!1);_.sso_start_url;let d=_.sso_region,l;try{l=await w.getSSOTokenFromFile(n)}catch(a){throw new p.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${K}`,!1)}h("accessToken",l.accessToken),h("expiresAt",l.expiresAt);let{accessToken:u,expiresAt:C}=l,x={token:u,expiration:new Date(C)};if(x.expiration.getTime()-Date.now()>Vs)return x;if(Date.now()-ye.getTime()<30000)return Pe(x),x;h("clientId",l.clientId,!0),h("clientSecret",l.clientSecret,!0),h("refreshToken",l.refreshToken,!0);try{ye.setTime(Date.now());let a=await Ys(l,d,e,s);h("accessToken",a.accessToken),h("expiresIn",a.expiresIn);let v=new Date(Date.now()+a.expiresIn*1000);try{await Js(n,{...l,accessToken:a.accessToken,expiresAt:v.toISOString(),refreshToken:a.refreshToken})}catch(J){}return{token:a.accessToken,expiration:v}}catch(a){return Pe(x),x}},Ws=({token:e,logger:s})=>async()=>{if(s?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new p.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},Xs=(e={})=>p.memoize(p.chain(Ne(e),async()=>{throw new p.TokenProviderError("Could not load token from any providers",!1)}),(s)=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<300000,(s)=>s.expiration!==void 0);Zs.fromEnvSigningName=Hs;Zs.fromSso=Ne;Zs.fromStatic=Ws;Zs.nodeProvider=Xs});var ee=S((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.resolveHttpAuthSchemeConfig=be.defaultSSOHttpAuthSchemeProvider=be.defaultSSOHttpAuthSchemeParametersProvider=void 0;var rt=F(),k=tt(),ot=async(e,s,t)=>{return{operation:(0,k.getSmithyContext)(s).operation,region:await(0,k.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};be.defaultSSOHttpAuthSchemeParametersProvider=ot;function nt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}}function at(e){return{schemeId:"smithy.api#noAuth"}}var ct=(e)=>{let s=[];switch(e.operation){case"GetRoleCredentials":{s.push(at(e));break}default:s.push(nt(e))}return s};be.defaultSSOHttpAuthSchemeProvider=ct;var lt=(e)=>{let s=(0,rt.resolveAwsSdkSigV4Config)(e);return Object.assign(s,{authSchemePreference:(0,k.normalizeProvider)(e.authSchemePreference??[])})};be.resolveHttpAuthSchemeConfig=lt});var Te=S((je)=>{Object.defineProperty(je,"__esModule",{value:!0});je.bdd=void 0;var dt=Ge(),N="ref",f=-1,U=!0,Ae="isSet",me="PartitionResult",M="booleanEquals",se="getAttr",Fe={[N]:"Endpoint"},te={[N]:me},g={},Ue=[{[N]:"Region"}],Me={conditions:[[Ae,[Fe]],[Ae,Ue],["aws.partition",Ue,me],[M,[{[N]:"UseFIPS"},U]],[M,[{[N]:"UseDualStack"},U]],[M,[{fn:se,argv:[te,"supportsDualStack"]},U]],[M,[{fn:se,argv:[te,"supportsFIPS"]},U]],["stringEquals",[{fn:se,argv:[te,"name"]},"aws-us-gov"]]],results:[[f],[f,"Invalid Configuration: FIPS and custom endpoint are not supported"],[f,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Fe,g],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",g],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",g],[f,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",g],[f,"Invalid Configuration: Missing Region"]]},pt=2,i=1e8,_t=new Int32Array([-1,1,-1,0,13,3,1,4,i+12,2,5,i+12,3,8,6,4,7,i+11,5,i+9,i+10,4,11,9,6,10,i+8,7,i+6,i+7,5,12,i+5,6,i+4,i+5,3,i+1,14,4,i+2,i+3]);je.bdd=dt.BinaryDecisionDiagram.from(_t,pt,Me.conditions,Me.results)});var Ve=S((ze)=>{Object.defineProperty(ze,"__esModule",{value:!0});ze.defaultEndpointResolver=void 0;var St=Et(),re=Ge(),Rt=Te(),xt=new re.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vt=(e,s={})=>{return xt.get(e,()=>(0,re.decideEndpoint)(Rt.bdd,{endpointParams:e,logger:s.logger}))};ze.defaultEndpointResolver=vt;re.customEndpointFunctions.aws=St.awsEndpointFunctions});var m=S((ne)=>{Object.defineProperty(ne,"__esModule",{value:!0});ne.SSOServiceException=ne.__ServiceException=void 0;var Be=G();Object.defineProperty(ne,"__ServiceException",{enumerable:!0,get:function(){return Be.ServiceException}});class oe extends Be.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,oe.prototype)}}ne.SSOServiceException=oe});var ie=S((Qe)=>{Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UnauthorizedException=Qe.TooManyRequestsException=Qe.ResourceNotFoundException=Qe.InvalidRequestException=void 0;var j=m();class ae extends j.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,ae.prototype)}}Qe.InvalidRequestException=ae;class ce extends j.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ce.prototype)}}Qe.ResourceNotFoundException=ce;class le extends j.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}Qe.TooManyRequestsException=le;class ue extends j.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}Qe.UnauthorizedException=ue});var de=S((es)=>{Object.defineProperty(es,"__esModule",{value:!0});es.GetRoleCredentials$=es.RoleCredentials$=es.GetRoleCredentialsResponse$=es.GetRoleCredentialsRequest$=es.errorTypeRegistries=es.UnauthorizedException$=es.TooManyRequestsException$=es.ResourceNotFoundException$=es.InvalidRequestException$=es.SSOServiceException$=void 0;var ft="AccessTokenType",qt="GetRoleCredentials",Pt="GetRoleCredentialsRequest",yt="GetRoleCredentialsResponse",gt="InvalidRequestException",Ct="RoleCredentials",wt="ResourceNotFoundException",Nt="SecretAccessKeyType",Dt="SessionTokenType",bt="TooManyRequestsException",$t="UnauthorizedException",At="accountId",Ft="accessKeyId",Ut="accessToken",Mt="account_id",L="client",T="error",Gt="expiration",mt="http",z="httpError",jt="httpHeader",We="httpQuery",H="message",Lt="roleCredentials",Tt="roleName",zt="role_name",Ze="smithy.ts.sdk.synthetic.com.amazonaws.sso",Ht="secretAccessKey",Vt="sessionToken",Bt="x-amz-sso_bearer_token",E="com.amazonaws.sso",Ke=Xe(),V=ie(),Yt=m(),ke=Ke.TypeRegistry.for(Ze);es.SSOServiceException$=[-3,Ze,"SSOServiceException",0,[],[]];ke.registerError(es.SSOServiceException$,Yt.SSOServiceException);var D=Ke.TypeRegistry.for(E);es.InvalidRequestException$=[-3,E,gt,{[T]:L,[z]:400},[H],[0]];D.registerError(es.InvalidRequestException$,V.InvalidRequestException);es.ResourceNotFoundException$=[-3,E,wt,{[T]:L,[z]:404},[H],[0]];D.registerError(es.ResourceNotFoundException$,V.ResourceNotFoundException);es.TooManyRequestsException$=[-3,E,bt,{[T]:L,[z]:429},[H],[0]];D.registerError(es.TooManyRequestsException$,V.TooManyRequestsException);es.UnauthorizedException$=[-3,E,$t,{[T]:L,[z]:401},[H],[0]];D.registerError(es.UnauthorizedException$,V.UnauthorizedException);es.errorTypeRegistries=[ke,D];var Qt=[0,E,ft,8,0],Jt=[0,E,Nt,8,0],Wt=[0,E,Dt,8,0];es.GetRoleCredentialsRequest$=[3,E,Pt,0,[Tt,At,Ut],[[0,{[We]:zt}],[0,{[We]:Mt}],[()=>Qt,{[jt]:Bt}]],3];es.GetRoleCredentialsResponse$=[3,E,yt,0,[Lt],[[()=>es.RoleCredentials$,0]]];es.RoleCredentials$=[3,E,Ct,0,[Ft,Ht,Vt,Gt],[0,[()=>Jt,0],[()=>Wt,0],1]];es.GetRoleCredentials$=[9,E,qt,{[mt]:["GET","/federation/credentials",200]},()=>es.GetRoleCredentialsRequest$,()=>es.GetRoleCredentialsResponse$]});var Ss=S((_s)=>{Object.defineProperty(_s,"__esModule",{value:!0});_s.getRuntimeConfig=void 0;var sr=F(),tr=kt(),rr=ps(),or=G(),nr=Zt(),is=er(),ds=Kt(),ar=ee(),cr=Ve(),lr=de(),ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??is.fromBase64,base64Encoder:e?.base64Encoder??is.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??cr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ar.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new sr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new rr.NoAuthSigner}],logger:e?.logger??new or.NoOpLogger,protocol:e?.protocol??tr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:lr.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??nr.parseUrl,utf8Decoder:e?.utf8Decoder??ds.fromUtf8,utf8Encoder:e?.utf8Encoder??ds.toUtf8}};_s.getRuntimeConfig=ur});var Ps=S((fs)=>{Object.defineProperty(fs,"__esModule",{value:!0});fs.getRuntimeConfig=void 0;var Or=pr(),Ir=Or.__importDefault(_r()),hr=Z(),fr=F(),Rs=Er(),B=Is(),qr=Sr(),xs=hs(),q=Rr(),vs=ir(),Os=G(),Pr=xr(),yr=vr(),gr=dr(),Cr=Ss(),wr=(e)=>{(0,Os.emitWarningIfUnsupportedVersion)(process.version);let s=(0,yr.resolveDefaultsModeConfig)(e),t=()=>s().then(Os.loadConfigsForDefaultMode),o=(0,Cr.getRuntimeConfig)(e);(0,hr.emitWarningIfUnsupportedVersion)(process.version);let r={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:s,authSchemePreference:e?.authSchemePreference??(0,q.loadConfig)(fr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,r),bodyLengthChecker:e?.bodyLengthChecker??Pr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Rs.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:Ir.default.version}),maxAttempts:e?.maxAttempts??(0,q.loadConfig)(xs.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,q.loadConfig)(B.NODE_REGION_CONFIG_OPTIONS,{...B.NODE_REGION_CONFIG_FILE_OPTIONS,...r}),requestHandler:vs.NodeHttpHandler.create(e?.requestHandler??t),retryMode:e?.retryMode??(0,q.loadConfig)({...xs.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||gr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??qr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??vs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,q.loadConfig)(B.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,r),useFipsEndpoint:e?.useFipsEndpoint??(0,q.loadConfig)(B.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,r),userAgentAppId:e?.userAgentAppId??(0,q.loadConfig)(Rs.NODE_APP_ID_CONFIG_OPTIONS,r)}};fs.getRuntimeConfig=wr});var $s=S((O)=>{var ys=Nr(),Gr=Dr(),mr=br(),gs=$r(),jr=Is(),pe=ps(),Lr=Xe(),Tr=Ar(),bs=Fr(),Cs=hs(),P=G(),ws=ee(),zr=Ps(),Ns=Ur(),Ds=Mr(),b=de(),Y=ie(),Hr=m(),Vr=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Br={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Yr=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:t,credentials:o}=e;return{setHttpAuthScheme(r){let n=s.findIndex((c)=>c.schemeId===r.schemeId);if(n===-1)s.push(r);else s.splice(n,1,r)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){o=r},credentials(){return o}}},Qr=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},Jr=(e,s)=>{let t=Object.assign(Ns.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),Ds.getHttpHandlerExtensionConfiguration(e),Yr(e));return s.forEach((o)=>o.configure(t)),Object.assign(e,Ns.resolveAwsRegionExtensionConfiguration(t),P.resolveDefaultRuntimeConfig(t),Ds.resolveHttpHandlerRuntimeConfig(t),Qr(t))};class _e extends P.Client{config;constructor(...[e]){let s=zr.getRuntimeConfig(e||{});super(s);this.initConfig=s;let t=Vr(s),o=gs.resolveUserAgentConfig(t),r=Cs.resolveRetryConfig(o),n=jr.resolveRegionConfig(r),c=ys.resolveHostHeaderConfig(n),_=bs.resolveEndpointConfig(c),d=ws.resolveHttpAuthSchemeConfig(_),l=Jr(d,e?.extensions||[]);this.config=l,this.middlewareStack.use(Lr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(gs.getUserAgentPlugin(this.config)),this.middlewareStack.use(Cs.getRetryPlugin(this.config)),this.middlewareStack.use(Tr.getContentLengthPlugin(this.config)),this.middlewareStack.use(ys.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Gr.getLoggerPlugin(this.config)),this.middlewareStack.use(mr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(pe.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ws.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(u)=>new pe.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(pe.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Ee extends P.Command.classBuilder().ep(Br).m(function(e,s,t,o){return[bs.getEndpointPlugin(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(b.GetRoleCredentials$).build(){}var Wr={GetRoleCredentialsCommand:Ee};class Se extends _e{}P.createAggregatedClient(Wr,Se);O.$Command=P.Command;O.__Client=P.Client;O.SSOServiceException=Hr.SSOServiceException;O.GetRoleCredentialsCommand=Ee;O.SSO=Se;O.SSOClient=_e;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=b[e]});Object.prototype.hasOwnProperty.call(Y,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:Y.__proto__});Object.keys(Y).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=Y[e]})});var Fs=S((to)=>{var As=$s();to.GetRoleCredentialsCommand=As.GetRoleCredentialsCommand;to.SSOClient=As.SSOClient});var R,Q,Us,ao,Gs=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),$=!1,Ms=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:t,ssoRegion:o,ssoRoleName:r,ssoClient:n,clientConfig:c,parentClientConfig:_,callerClientConfig:d,profile:l,filepath:u,configFilepath:C,ignoreCache:x,logger:a})=>{let v,J="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let I=await ao.fromSso({profile:l,filepath:u,configFilepath:C,ignoreCache:x})();v={accessToken:I.token,expiresAt:new Date(I.expiration).toISOString()}}catch(I){throw new R.CredentialsProviderError(I.message,{tryNextLink:$,logger:a})}else try{v=await Q.getSSOTokenFromFile(e)}catch(I){throw new R.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a})}if(new Date(v.expiresAt).getTime()-Date.now()<=0)throw new R.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a});let{accessToken:Re}=v,{SSOClient:y,GetRoleCredentialsCommand:A}=await Promise.resolve().then(function(){return Fs()}),js=n||new y(Object.assign({},c??{},{logger:c?.logger??d?.logger??_?.logger,region:c?.region??o,userAgentAppId:c?.userAgentAppId??d?.userAgentAppId??_?.userAgentAppId})),xe;try{xe=await js.send(new A({accountId:t,roleName:r,accessToken:Re}))}catch(I){throw new R.CredentialsProviderError(I,{tryNextLink:$,logger:a})}let{roleCredentials:{accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:he,credentialScope:fe,accountId:qe}={}}=xe;if(!ve||!Oe||!Ie||!he)throw new R.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:$,logger:a});let W={accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:new Date(he),...fe&&{credentialScope:fe},...qe&&{accountId:qe}};if(s)Us.setCredentialFeature(W,"CREDENTIALS_SSO","s");else Us.setCredentialFeature(W,"CREDENTIALS_SSO_LEGACY","u");return W},ms=(e,s)=>{let{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:n}=e;if(!t||!o||!r||!n)throw new R.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e},co=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:t,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoSession:c}=e,{ssoClient:_}=e,d=Q.getProfileName({profile:e.profile??s?.profile});if(!t&&!o&&!r&&!n&&!c){let u=(await Q.parseKnownFiles(e))[d];if(!u)throw new R.CredentialsProviderError(`Profile ${d} was not found.`,{logger:e.logger});if(!Gs(u))throw new R.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`,{logger:e.logger});if(u?.sso_session){let y=(await Q.loadSsoSessionData(e))[u.sso_session],A=` configurations in profile ${d} and sso-session ${u.sso_session}`;if(r&&r!==y.sso_region)throw new R.CredentialsProviderError("Conflicting SSO region"+A,{tryNextLink:!1,logger:e.logger});if(t&&t!==y.sso_start_url)throw new R.CredentialsProviderError("Conflicting SSO start_url"+A,{tryNextLink:!1,logger:e.logger});u.sso_region=y.sso_region,u.sso_start_url=y.sso_start_url}let{sso_start_url:C,sso_account_id:x,sso_region:a,sso_role_name:v,sso_session:J}=ms(u,e.logger);return Ms({ssoStartUrl:C,ssoSession:J,ssoAccountId:x,ssoRegion:a,ssoRoleName:v,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!t||!o||!r||!n)throw new R.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return Ms({ssoStartUrl:t,ssoSession:c,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},lo,uo,io;var po=no(()=>{R=Ce(),Q=we(),Us=Z(),ao=De();lo=co,uo=Gs,io=ms});po();export{io as validateSsoProfile,uo as isSsoProfile,lo as fromSSO};export default {get validateSsoProfile(){return io},get isSsoProfile(){return uo},get fromSSO(){return lo}};
@@ -0,0 +1 @@
1
+ import{A5 as Rr,B5 as ao,C5 as _e,D5 as po,E5 as lo,F5 as ge,G5 as h,H5 as vr,I5 as Vt,J5 as Wt,L5 as Yt,M5 as Jt,N5 as Kt,O5 as Xt,P5 as Ct,Q5 as ft,R5 as Ft,S5 as $t,T5 as uo,U5 as Oo,u5 as w,v5 as so,w5 as no,x5 as co,y5 as ce,z5 as Rt}from"./cli-0.5.10-p3g04417.mjs";import{V5 as Ye}from"./cli-0.5.10-d2cw91xn.mjs";import{wna as Tt,xna as Bt}from"./cli-0.5.10-b7r8mjbd.mjs";import{zna as Lt}from"./cli-0.5.10-0vs5gmpe.mjs";import{Bna as xe}from"./cli-0.5.10-mvckg6zv.mjs";import{Jna as v}from"./cli-0.5.10-1sd567wn.mjs";var U=v((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.resolveHttpAuthSchemeConfig=re.defaultSSOOIDCHttpAuthSchemeProvider=re.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var Er=w(),j=vr(),Sr=async(e,r,i)=>{return{operation:(0,j.getSmithyContext)(r).operation,region:await(0,j.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};re.defaultSSOOIDCHttpAuthSchemeParametersProvider=Sr;function Ir(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,i)=>({signingProperties:{config:r,context:i}})}}function Pr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(Pr(e));break}default:r.push(Ir(e))}return r};re.defaultSSOOIDCHttpAuthSchemeProvider=xr;var Dr=(e)=>{let r=(0,Er.resolveAwsSdkSigV4Config)(e);return Object.assign(r,{authSchemePreference:(0,j.normalizeProvider)(e.authSchemePreference??[])})};re.resolveHttpAuthSchemeConfig=Dr});var le=v((ae)=>{Object.defineProperty(ae,"__esModule",{value:!0});ae.bdd=void 0;var yr=ce(),D="ref",S=-1,y=!0,oe="isSet",de="PartitionResult",N="booleanEquals",M="getAttr",ie={[D]:"Endpoint"},A={[D]:de},x={},se=[{[D]:"Region"}],ne={conditions:[[oe,[ie]],[oe,se],["aws.partition",se,de],[N,[{[D]:"UseFIPS"},y]],[N,[{[D]:"UseDualStack"},y]],[N,[{fn:M,argv:[A,"supportsDualStack"]},y]],[N,[{fn:M,argv:[A,"supportsFIPS"]},y]],["stringEquals",[{fn:M,argv:[A,"name"]},"aws-us-gov"]]],results:[[S],[S,"Invalid Configuration: FIPS and custom endpoint are not supported"],[S,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ie,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[S,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[S,"Invalid Configuration: Missing Region"]]},Nr=2,n=1e8,hr=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]);ae.bdd=yr.BinaryDecisionDiagram.from(hr,Nr,ne.conditions,ne.results)});var ve=v((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var fr=Rr(),G=ce(),Fr=le(),$r=new G.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),jr=(e,r={})=>{return $r.get(e,()=>(0,G.decideEndpoint)(Fr.bdd,{endpointParams:e,logger:r.logger}))};ue.defaultEndpointResolver=jr;G.customEndpointFunctions.aws=fr.awsEndpointFunctions});var R=v((z)=>{Object.defineProperty(z,"__esModule",{value:!0});z.SSOOIDCServiceException=z.__ServiceException=void 0;var Ee=h();Object.defineProperty(z,"__ServiceException",{enumerable:!0,get:function(){return Ee.ServiceException}});class m extends Ee.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,m.prototype)}}z.SSOOIDCServiceException=m});var Q=v((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.UnsupportedGrantTypeException=Ie.UnauthorizedClientException=Ie.SlowDownException=Ie.InvalidScopeException=Ie.InvalidRequestException=Ie.InvalidGrantException=Ie.InvalidClientException=Ie.InternalServerException=Ie.ExpiredTokenException=Ie.AuthorizationPendingException=Ie.AccessDeniedException=void 0;var a=R();class H extends a.SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.AccessDeniedException=H;class L extends a.SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.AuthorizationPendingException=L;class T extends a.SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.ExpiredTokenException=T;class B extends a.SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InternalServerException=B;class V extends a.SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidClientException=V;class W extends a.SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidGrantException=W;class Y extends a.SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.InvalidRequestException=Y;class J extends a.SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidScopeException=J;class K extends a.SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.SlowDownException=K;class X extends a.SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnauthorizedClientException=X;class C extends a.SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnsupportedGrantTypeException=C});var Z=v((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.CreateToken$=Re.CreateTokenResponse$=Re.CreateTokenRequest$=Re.errorTypeRegistries=Re.UnsupportedGrantTypeException$=Re.UnauthorizedClientException$=Re.SlowDownException$=Re.InvalidScopeException$=Re.InvalidRequestException$=Re.InvalidGrantException$=Re.InvalidClientException$=Re.InternalServerException$=Re.ExpiredTokenException$=Re.AuthorizationPendingException$=Re.AccessDeniedException$=Re.SSOOIDCServiceException$=void 0;var Br="AccessDeniedException",Vr="AuthorizationPendingException",Wr="AccessToken",Yr="ClientSecret",Jr="CreateToken",Kr="CreateTokenRequest",Xr="CreateTokenResponse",Cr="CodeVerifier",Qr="ExpiredTokenException",Zr="InvalidClientException",kr="InvalidGrantException",_r="InvalidRequestException",gr="InternalServerException",et="InvalidScopeException",rt="IdToken",tt="RefreshToken",ot="SlowDownException",it="UnauthorizedClientException",st="UnsupportedGrantTypeException",nt="accessToken",O="client",ct="clientId",dt="clientSecret",at="codeVerifier",pt="code",lt="deviceCode",t="error",ut="expiresIn",p="error_description",Ot="grantType",vt="http",l="httpError",Et="idToken",De="reason",be="refreshToken",St="redirectUri",qe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",It="scope",Pt="server",xt="tokenType",o="com.amazonaws.ssooidc",ye=xe(),u=Q(),Dt=R(),Ne=ye.TypeRegistry.for(qe);Re.SSOOIDCServiceException$=[-3,qe,"SSOOIDCServiceException",0,[],[]];Ne.registerError(Re.SSOOIDCServiceException$,Dt.SSOOIDCServiceException);var c=ye.TypeRegistry.for(o);Re.AccessDeniedException$=[-3,o,Br,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.AccessDeniedException$,u.AccessDeniedException);Re.AuthorizationPendingException$=[-3,o,Vr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.AuthorizationPendingException$,u.AuthorizationPendingException);Re.ExpiredTokenException$=[-3,o,Qr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.ExpiredTokenException$,u.ExpiredTokenException);Re.InternalServerException$=[-3,o,gr,{[t]:Pt,[l]:500},[t,p],[0,0]];c.registerError(Re.InternalServerException$,u.InternalServerException);Re.InvalidClientException$=[-3,o,Zr,{[t]:O,[l]:401},[t,p],[0,0]];c.registerError(Re.InvalidClientException$,u.InvalidClientException);Re.InvalidGrantException$=[-3,o,kr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidGrantException$,u.InvalidGrantException);Re.InvalidRequestException$=[-3,o,_r,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.InvalidRequestException$,u.InvalidRequestException);Re.InvalidScopeException$=[-3,o,et,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidScopeException$,u.InvalidScopeException);Re.SlowDownException$=[-3,o,ot,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.SlowDownException$,u.SlowDownException);Re.UnauthorizedClientException$=[-3,o,it,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnauthorizedClientException$,u.UnauthorizedClientException);Re.UnsupportedGrantTypeException$=[-3,o,st,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnsupportedGrantTypeException$,u.UnsupportedGrantTypeException);Re.errorTypeRegistries=[Ne,c];var bt=[0,o,Wr,8,0],qt=[0,o,Yr,8,0],yt=[0,o,Cr,8,0],Nt=[0,o,rt,8,0],he=[0,o,tt,8,0];Re.CreateTokenRequest$=[3,o,Kr,0,[ct,dt,Ot,lt,pt,be,It,St,at],[0,[()=>qt,0],0,0,0,[()=>he,0],64,0,[()=>yt,0]],3];Re.CreateTokenResponse$=[3,o,Xr,0,[nt,xt,ut,be,Et],[[()=>bt,0],0,1,[()=>he,0],[()=>Nt,0]]];Re.CreateToken$=[9,o,Jr,{[vt]:["POST","/token",200]},()=>Re.CreateTokenRequest$,()=>Re.CreateTokenResponse$]});var Xe=v((Je)=>{Object.defineProperty(Je,"__esModule",{value:!0});Je.getRuntimeConfig=void 0;var jt=w(),wt=Ft(),Ut=Ye(),Mt=h(),At=Rt(),Ve=$t(),We=ft(),Gt=U(),mt=ve(),zt=Z(),Ht=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ve.fromBase64,base64Encoder:e?.base64Encoder??Ve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??mt.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Gt.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new jt.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ut.NoAuthSigner}],logger:e?.logger??new Mt.NoOpLogger,protocol:e?.protocol??wt.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:zt.errorTypeRegistries,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??At.parseUrl,utf8Decoder:e?.utf8Decoder??We.fromUtf8,utf8Encoder:e?.utf8Encoder??We.toUtf8}};Je.getRuntimeConfig=Ht});var tr=v((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.getRuntimeConfig=void 0;var Qt=Vt(),Zt=Qt.__importDefault(Wt()),kt=Bt(),_t=w(),Ce=Yt(),f=_e(),gt=Jt(),Qe=ge(),I=Kt(),Ze=Lt(),ke=h(),eo=Xt(),ro=Ct(),to=Tt(),oo=Xe(),io=(e)=>{(0,ke.emitWarningIfUnsupportedVersion)(process.version);let r=(0,ro.resolveDefaultsModeConfig)(e),i=()=>r().then(ke.loadConfigsForDefaultMode),d=(0,oo.getRuntimeConfig)(e);(0,kt.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:r,authSchemePreference:e?.authSchemePreference??(0,I.loadConfig)(_t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??eo.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Ce.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Zt.default.version}),maxAttempts:e?.maxAttempts??(0,I.loadConfig)(Qe.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,I.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:Ze.NodeHttpHandler.create(e?.requestHandler??i),retryMode:e?.retryMode??(0,I.loadConfig)({...Qe.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||to.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??gt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ze.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,I.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,I.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,I.loadConfig)(Ce.NODE_APP_ID_CONFIG_OPTIONS,s)}};er.getRuntimeConfig=io});var zo=v((E)=>{var or=so(),vo=no(),Eo=co(),ir=ao(),So=_e(),k=Ye(),Io=xe(),Po=po(),ar=lo(),sr=ge(),P=h(),nr=U(),xo=tr(),cr=uo(),dr=Oo(),b=Z(),F=Q(),Do=R(),bo=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},qo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},yo=(e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:i,credentials:d}=e;return{setHttpAuthScheme(s){let q=r.findIndex(($)=>$.schemeId===s.schemeId);if(q===-1)r.push(s);else r.splice(q,1,s)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(s){i=s},httpAuthSchemeProvider(){return i},setCredentials(s){d=s},credentials(){return d}}},No=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ho=(e,r)=>{let i=Object.assign(cr.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),dr.getHttpHandlerExtensionConfiguration(e),yo(e));return r.forEach((d)=>d.configure(i)),Object.assign(e,cr.resolveAwsRegionExtensionConfiguration(i),P.resolveDefaultRuntimeConfig(i),dr.resolveHttpHandlerRuntimeConfig(i),No(i))};class _ extends P.Client{config;constructor(...[e]){let r=xo.getRuntimeConfig(e||{});super(r);this.initConfig=r;let i=bo(r),d=ir.resolveUserAgentConfig(i),s=sr.resolveRetryConfig(d),q=So.resolveRegionConfig(s),$=or.resolveHostHeaderConfig(q),pr=ar.resolveEndpointConfig($),lr=nr.resolveHttpAuthSchemeConfig(pr),ur=ho(lr,e?.extensions||[]);this.config=ur,this.middlewareStack.use(Io.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(ir.getUserAgentPlugin(this.config)),this.middlewareStack.use(sr.getRetryPlugin(this.config)),this.middlewareStack.use(Po.getContentLengthPlugin(this.config)),this.middlewareStack.use(or.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vo.getLoggerPlugin(this.config)),this.middlewareStack.use(Eo.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(k.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:nr.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Or)=>new k.DefaultIdentityProviderConfig({"aws.auth#sigv4":Or.credentials})})),this.middlewareStack.use(k.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends P.Command.classBuilder().ep(qo).m(function(e,r,i,d){return[ar.getEndpointPlugin(i,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(b.CreateToken$).build(){}var Ro={CreateTokenCommand:g};class ee extends _{}P.createAggregatedClient(Ro,ee);var fo={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Fo={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};E.$Command=P.Command;E.__Client=P.Client;E.SSOOIDCServiceException=Do.SSOOIDCServiceException;E.AccessDeniedExceptionReason=fo;E.CreateTokenCommand=g;E.InvalidRequestExceptionReason=Fo;E.SSOOIDC=ee;E.SSOOIDCClient=_;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=b[e]});Object.prototype.hasOwnProperty.call(F,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:F.__proto__});Object.keys(F).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=F[e]})});export default zo();
@@ -0,0 +1 @@
1
+ import{W5 as P}from"./cli-0.5.10-xk6v4sy0.mjs";import{xna as p,yna as w}from"./cli-0.5.10-b7r8mjbd.mjs";import"./cli-0.5.10-mvckg6zv.mjs";import{Lna as u,Mna as a}from"./cli-0.5.10-1sd567wn.mjs";var d,t,f,E,_,v=(r,e,s)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let i=new Date;if(new Date(e.Expiration)<i)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let o=e.AccountId;if(!o&&s?.[r]?.aws_account_id)o=s[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...o&&{accountId:o}};return _.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},x=async(r,e,s)=>{let o=e[r];if(e[r]){let n=o.credential_process;if(n!==void 0){let i=E.promisify(d.externalDataInterceptor?.getTokenRecord?.().exec??f.exec);try{let{stdout:c}=await i(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return v(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:s})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})},h=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await d.parseKnownFiles(r);return x(d.getProfileName({profile:r.profile??e?.profile}),s,r.logger)},y;var S=u(()=>{d=P(),t=w(),f=a("node:child_process"),E=a("node:util"),_=p();y=h});S();export{y as fromProcess};export default {get fromProcess(){return y}};
@@ -0,0 +1 @@
1
+ import{Fna as ls}from"./cli-0.5.10-mvckg6zv.mjs";import{Jna as z,Lna as hs,Mna as Xn}from"./cli-0.5.10-1sd567wn.mjs";var V=z((js,Z)=>{var _,nn,en,sn,tn,hn,ln,cn,yn,wn,Sn,an,fn,Q,F,bn,un,gn,T,Mn,Un,Bn,$n,In,On,zn,Nn,Gn,X,rn,Cn,Tn;(function(n){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(a){n(c(s,c(a)))});else if(typeof Z==="object"&&typeof js==="object")n(c(s,c(js)));else n(c(s));function c(a,w){if(a!==s)if(typeof Object.create==="function")Object.defineProperty(a,"__esModule",{value:!0});else a.__esModule=!0;return function(e,t){return a[e]=w?w(e,t):t}}})(function(n){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h))e[h]=t[h]};_=function(e,t){if(typeof t!=="function"&&t!==null)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");s(e,t);function h(){this.constructor=e}e.prototype=t===null?Object.create(t):(h.prototype=t.prototype,new h)},nn=Object.assign||function(e){for(var t,h=1,l=arguments.length;h<l;h++){t=arguments[h];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e},en=function(e,t){var h={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0)h[l]=e[l];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var i=0,l=Object.getOwnPropertySymbols(e);i<l.length;i++)if(t.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(e,l[i]))h[l[i]]=e[l[i]]}return h},sn=function(e,t,h,l){var i=arguments.length,y=i<3?t:l===null?l=Object.getOwnPropertyDescriptor(t,h):l,S;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")y=Reflect.decorate(e,t,h,l);else for(var b=e.length-1;b>=0;b--)if(S=e[b])y=(i<3?S(y):i>3?S(t,h,y):S(t,h))||y;return i>3&&y&&Object.defineProperty(t,h,y),y},tn=function(e,t){return function(h,l){t(h,l,e)}},hn=function(e,t,h,l,i,y){function S(r){if(r!==void 0&&typeof r!=="function")throw TypeError("Function expected");return r}var b=l.kind,g=b==="getter"?"get":b==="setter"?"set":"value",f=!t&&e?l.static?e:e.prototype:null,u=t||(f?Object.getOwnPropertyDescriptor(f,l.name):{}),U,B=!1;for(var M=h.length-1;M>=0;M--){var I={};for(var O in l)I[O]=O==="access"?{}:l[O];for(var O in l.access)I.access[O]=l.access[O];I.addInitializer=function(r){if(B)throw TypeError("Cannot add initializers after decoration has completed");y.push(S(r||null))};var $=(0,h[M])(b==="accessor"?{get:u.get,set:u.set}:u[g],I);if(b==="accessor"){if($===void 0)continue;if($===null||typeof $!=="object")throw TypeError("Object expected");if(U=S($.get))u.get=U;if(U=S($.set))u.set=U;if(U=S($.init))i.unshift(U)}else if(U=S($))if(b==="field")i.unshift(U);else u[g]=U}if(f)Object.defineProperty(f,l.name,u);B=!0},ln=function(e,t,h){var l=arguments.length>2;for(var i=0;i<t.length;i++)h=l?t[i].call(e,h):t[i].call(e);return l?h:void 0},cn=function(e){return typeof e==="symbol"?e:"".concat(e)},yn=function(e,t,h){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:h?"".concat(h," ",t):t})},wn=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},Sn=function(e,t,h,l){function i(y){return y instanceof h?y:new h(function(S){S(y)})}return new(h||(h=Promise))(function(y,S){function b(u){try{f(l.next(u))}catch(U){S(U)}}function g(u){try{f(l.throw(u))}catch(U){S(U)}}function f(u){u.done?y(u.value):i(u.value).then(b,g)}f((l=l.apply(e,t||[])).next())})},an=function(e,t){var h={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},l,i,y,S=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return S.next=b(0),S.throw=b(1),S.return=b(2),typeof Symbol==="function"&&(S[Symbol.iterator]=function(){return this}),S;function b(f){return function(u){return g([f,u])}}function g(f){if(l)throw TypeError("Generator is already executing.");while(S&&(S=0,f[0]&&(h=0)),h)try{if(l=1,i&&(y=f[0]&2?i.return:f[0]?i.throw||((y=i.return)&&y.call(i),0):i.next)&&!(y=y.call(i,f[1])).done)return y;if(i=0,y)f=[f[0]&2,y.value];switch(f[0]){case 0:case 1:y=f;break;case 4:return h.label++,{value:f[1],done:!1};case 5:h.label++,i=f[1],f=[0];continue;case 7:f=h.ops.pop(),h.trys.pop();continue;default:if((y=h.trys,!(y=y.length>0&&y[y.length-1]))&&(f[0]===6||f[0]===2)){h=0;continue}if(f[0]===3&&(!y||f[1]>y[0]&&f[1]<y[3])){h.label=f[1];break}if(f[0]===6&&h.label<y[1]){h.label=y[1],y=f;break}if(y&&h.label<y[2]){h.label=y[2],h.ops.push(f);break}if(y[2])h.ops.pop();h.trys.pop();continue}f=t.call(e,h)}catch(u){f=[6,u],i=0}finally{l=y=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},fn=function(e,t){for(var h in e)if(h!=="default"&&!Object.prototype.hasOwnProperty.call(t,h))X(t,e,h)},X=Object.create?function(e,t,h,l){if(l===void 0)l=h;var i=Object.getOwnPropertyDescriptor(t,h);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return t[h]}};Object.defineProperty(e,l,i)}:function(e,t,h,l){if(l===void 0)l=h;e[l]=t[h]},Q=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,h=t&&e[t],l=0;if(h)return h.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&l>=e.length)e=void 0;return{value:e&&e[l++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=function(e,t){var h=typeof Symbol==="function"&&e[Symbol.iterator];if(!h)return e;var l=h.call(e),i,y=[],S;try{while((t===void 0||t-- >0)&&!(i=l.next()).done)y.push(i.value)}catch(b){S={error:b}}finally{try{if(i&&!i.done&&(h=l.return))h.call(l)}finally{if(S)throw S.error}}return y},bn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(F(arguments[t]));return e},un=function(){for(var e=0,t=0,h=arguments.length;t<h;t++)e+=arguments[t].length;for(var l=Array(e),i=0,t=0;t<h;t++)for(var y=arguments[t],S=0,b=y.length;S<b;S++,i++)l[i]=y[S];return l},gn=function(e,t,h){if(h||arguments.length===2){for(var l=0,i=t.length,y;l<i;l++)if(y||!(l in t)){if(!y)y=Array.prototype.slice.call(t,0,l);y[l]=t[l]}}return e.concat(y||Array.prototype.slice.call(t))},T=function(e){return this instanceof T?(this.v=e,this):new T(e)},Mn=function(e,t,h){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var l=h.apply(e,t||[]),i,y=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),b("next"),b("throw"),b("return",S),i[Symbol.asyncIterator]=function(){return this},i;function S(M){return function(I){return Promise.resolve(I).then(M,U)}}function b(M,I){if(l[M]){if(i[M]=function(O){return new Promise(function($,r){y.push([M,O,$,r])>1||g(M,O)})},I)i[M]=I(i[M])}}function g(M,I){try{f(l[M](I))}catch(O){B(y[0][3],O)}}function f(M){M.value instanceof T?Promise.resolve(M.value.v).then(u,U):B(y[0][2],M)}function u(M){g("next",M)}function U(M){g("throw",M)}function B(M,I){if(M(I),y.shift(),y.length)g(y[0][0],y[0][1])}},Un=function(e){var t,h;return t={},l("next"),l("throw",function(i){throw i}),l("return"),t[Symbol.iterator]=function(){return this},t;function l(i,y){t[i]=e[i]?function(S){return(h=!h)?{value:T(e[i](S)),done:!1}:y?y(S):S}:y}},Bn=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],h;return t?t.call(e):(e=typeof Q==="function"?Q(e):e[Symbol.iterator](),h={},l("next"),l("throw"),l("return"),h[Symbol.asyncIterator]=function(){return this},h);function l(y){h[y]=e[y]&&function(S){return new Promise(function(b,g){S=e[y](S),i(b,g,S.done,S.value)})}}function i(y,S,b,g){Promise.resolve(g).then(function(f){y({value:f,done:b})},S)}},$n=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var c=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){return a=Object.getOwnPropertyNames||function(t){var h=[];for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l))h[h.length]=l;return h},a(e)};In=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var h=a(e),l=0;l<h.length;l++)if(h[l]!=="default")X(t,e,h[l])}return c(t,e),t},On=function(e){return e&&e.__esModule?e:{default:e}},zn=function(e,t,h,l){if(h==="a"&&!l)throw TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!l:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?l:h==="a"?l.call(e):l?l.value:t.get(e)},Nn=function(e,t,h,l,i){if(l==="m")throw TypeError("Private method is not writable");if(l==="a"&&!i)throw TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?i.call(e,h):i?i.value=h:t.set(e,h),h},Gn=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)},rn=function(e,t,h){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw TypeError("Object expected.");var l,i;if(h){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");l=t[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(l=t[Symbol.dispose],h)i=l}if(typeof l!=="function")throw TypeError("Object not disposable.");if(i)l=function(){try{i.call(this)}catch(y){return Promise.reject(y)}};e.stack.push({value:t,dispose:l,async:h})}else if(h)e.stack.push({async:!0});return t};var w=typeof SuppressedError==="function"?SuppressedError:function(e,t,h){var l=Error(h);return l.name="SuppressedError",l.error=e,l.suppressed=t,l};Cn=function(e){function t(y){e.error=e.hasError?new w(y,e.error,"An error was suppressed during disposal."):y,e.hasError=!0}var h,l=0;function i(){while(h=e.stack.pop())try{if(!h.async&&l===1)return l=0,e.stack.push(h),Promise.resolve().then(i);if(h.dispose){var y=h.dispose.call(h.value);if(h.async)return l|=2,Promise.resolve(y).then(i,function(S){return t(S),i()})}else l|=1}catch(S){t(S)}if(l===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()},Tn=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(h,l,i,y,S){return l?t?".jsx":".js":i&&(!y||!S)?h:i+y+"."+S.toLowerCase()+"js"});return e},n("__extends",_),n("__assign",nn),n("__rest",en),n("__decorate",sn),n("__param",tn),n("__esDecorate",hn),n("__runInitializers",ln),n("__propKey",cn),n("__setFunctionName",yn),n("__metadata",wn),n("__awaiter",Sn),n("__generator",an),n("__exportStar",fn),n("__createBinding",X),n("__values",Q),n("__read",F),n("__spread",bn),n("__spreadArrays",un),n("__spreadArray",gn),n("__await",T),n("__asyncGenerator",Mn),n("__asyncDelegator",Un),n("__asyncValues",Bn),n("__makeTemplateObject",$n),n("__importStar",In),n("__importDefault",On),n("__classPrivateFieldGet",zn),n("__classPrivateFieldSet",Nn),n("__classPrivateFieldIn",Gn),n("__addDisposableResource",rn),n("__disposeResources",Cn),n("__rewriteRelativeImportExtension",Tn)})});var Qn=z((Es,Wn)=>{var{defineProperty:H,getOwnPropertyDescriptor:fe,getOwnPropertyNames:be}=Object,ue=Object.prototype.hasOwnProperty,ge=(n,s)=>H(n,"name",{value:s,configurable:!0}),Me=(n,s)=>{for(var c in s)H(n,c,{get:s[c],enumerable:!0})},Ue=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of be(s))if(!ue.call(n,w)&&w!==c)H(n,w,{get:()=>s[w],enumerable:!(a=fe(s,w))||a.enumerable})}return n},Be=(n)=>Ue(H({},"__esModule",{value:!0}),n),Ln={};Me(Ln,{isArrayBuffer:()=>$e});Wn.exports=Be(Ln);var $e=ge((n)=>typeof ArrayBuffer==="function"&&n instanceof ArrayBuffer||Object.prototype.toString.call(n)==="[object ArrayBuffer]","isArrayBuffer")});var Kn=z((Ps,qn)=>{var{defineProperty:q,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:Oe}=Object,ze=Object.prototype.hasOwnProperty,Zn=(n,s)=>q(n,"name",{value:s,configurable:!0}),Ne=(n,s)=>{for(var c in s)q(n,c,{get:s[c],enumerable:!0})},Ge=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Oe(s))if(!ze.call(n,w)&&w!==c)q(n,w,{get:()=>s[w],enumerable:!(a=Ie(s,w))||a.enumerable})}return n},re=(n)=>Ge(q({},"__esModule",{value:!0}),n),Hn={};Ne(Hn,{fromArrayBuffer:()=>Te,fromString:()=>Le});qn.exports=re(Hn);var Ce=Qn(),J=Xn("buffer"),Te=Zn((n,s=0,c=n.byteLength-s)=>{if(!(0,Ce.isArrayBuffer)(n))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof n} (${n})`);return J.Buffer.from(n,s,c)},"fromArrayBuffer"),Le=Zn((n,s)=>{if(typeof n!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof n} (${n})`);return s?J.Buffer.from(n,s):J.Buffer.from(n)},"fromString")});var An=z((ks,mn)=>{var{defineProperty:K,getOwnPropertyDescriptor:We,getOwnPropertyNames:Qe}=Object,Xe=Object.prototype.hasOwnProperty,m=(n,s)=>K(n,"name",{value:s,configurable:!0}),Ze=(n,s)=>{for(var c in s)K(n,c,{get:s[c],enumerable:!0})},He=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Qe(s))if(!Xe.call(n,w)&&w!==c)K(n,w,{get:()=>s[w],enumerable:!(a=We(s,w))||a.enumerable})}return n},qe=(n)=>He(K({},"__esModule",{value:!0}),n),Fn={};Ze(Fn,{fromUtf8:()=>Jn,toUint8Array:()=>Ke,toUtf8:()=>Fe});mn.exports=qe(Fn);var Vn=Kn(),Jn=m((n)=>{let s=(0,Vn.fromString)(n,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Ke=m((n)=>{if(typeof n==="string")return Jn(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)},"toUint8Array"),Fe=m((n)=>{if(typeof n==="string")return n;if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Vn.fromArrayBuffer)(n.buffer,n.byteOffset,n.byteLength).toString("utf8")},"toUtf8")});var Dn=z((Rn)=>{Object.defineProperty(Rn,"__esModule",{value:!0});Rn.convertToBuffer=void 0;var Ve=An(),Je=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:Ve.fromUtf8;function me(n){if(n instanceof Uint8Array)return n;if(typeof n==="string")return Je(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)}Rn.convertToBuffer=me});var Pn=z((jn)=>{Object.defineProperty(jn,"__esModule",{value:!0});jn.isEmptyData=void 0;function Ae(n){if(typeof n==="string")return n.length===0;return n.byteLength===0}jn.isEmptyData=Ae});var dn=z((kn)=>{Object.defineProperty(kn,"__esModule",{value:!0});kn.numToUint8=void 0;function Re(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}kn.numToUint8=Re});var pn=z((on)=>{Object.defineProperty(on,"__esModule",{value:!0});on.uint32ArrayFrom=void 0;function Ye(n){if(!Uint32Array.from){var s=new Uint32Array(n.length),c=0;while(c<n.length)s[c]=n[c],c+=1;return s}return Uint32Array.from(n)}on.uint32ArrayFrom=Ye});var A=z((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.uint32ArrayFrom=L.numToUint8=L.isEmptyData=L.convertToBuffer=void 0;var De=Dn();Object.defineProperty(L,"convertToBuffer",{enumerable:!0,get:function(){return De.convertToBuffer}});var je=Pn();Object.defineProperty(L,"isEmptyData",{enumerable:!0,get:function(){return je.isEmptyData}});var Ee=dn();Object.defineProperty(L,"numToUint8",{enumerable:!0,get:function(){return Ee.numToUint8}});var Pe=pn();Object.defineProperty(L,"uint32ArrayFrom",{enumerable:!0,get:function(){return Pe.uint32ArrayFrom}})});var te=z((ee)=>{Object.defineProperty(ee,"__esModule",{value:!0});ee.AwsCrc32=void 0;var _n=V(),R=A(),ne=Y(),ve=function(){function n(){this.crc32=new ne.Crc32}return n.prototype.update=function(s){if((0,R.isEmptyData)(s))return;this.crc32.update((0,R.convertToBuffer)(s))},n.prototype.digest=function(){return _n.__awaiter(this,void 0,void 0,function(){return _n.__generator(this,function(s){return[2,(0,R.numToUint8)(this.crc32.digest())]})})},n.prototype.reset=function(){this.crc32=new ne.Crc32},n}();ee.AwsCrc32=ve});var Y=z((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.AwsCrc32=D.Crc32=D.crc32=void 0;var de=V(),oe=A();function xe(n){return new he().update(n).digest()}D.crc32=xe;var he=function(){function n(){this.checksum=4294967295}return n.prototype.update=function(s){var c,a;try{for(var w=de.__values(s),e=w.next();!e.done;e=w.next()){var t=e.value;this.checksum=this.checksum>>>8^_e[(this.checksum^t)&255]}}catch(h){c={error:h}}finally{try{if(e&&!e.done&&(a=w.return))a.call(w)}finally{if(c)throw c.error}}return this},n.prototype.digest=function(){return(this.checksum^4294967295)>>>0},n}();D.Crc32=he;var pe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],_e=(0,oe.uint32ArrayFrom)(pe),ns=te();Object.defineProperty(D,"AwsCrc32",{enumerable:!0,get:function(){return ns.AwsCrc32}})});class W{bytes;constructor(n){if(this.bytes=n,n.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776000||n<-9223372036854776000)throw Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let s=new Uint8Array(8);for(let c=7,a=Math.abs(Math.round(n));c>-1&&a>0;c--,a/=256)s[c]=a;if(n<0)le(s);return new W(s)}valueOf(){let n=this.bytes.slice(0),s=n[0]&128;if(s)le(n);return parseInt(N.toHex(n),16)*(s?-1:1)}toString(){return String(this.valueOf())}}function le(n){for(let s=0;s<8;s++)n[s]^=255;for(let s=7;s>-1;s--)if(n[s]++,n[s]!==0)break}class j{toUtf8;fromUtf8;constructor(n,s){this.toUtf8=n,this.fromUtf8=s}format(n){let s=[];for(let w of Object.keys(n)){let e=this.fromUtf8(w);s.push(Uint8Array.from([e.byteLength]),e,this.formatHeaderValue(n[w]))}let c=new Uint8Array(s.reduce((w,e)=>w+e.byteLength,0)),a=0;for(let w of s)c.set(w,a),a+=w.byteLength;return c}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,n.value,!1),new Uint8Array(s.buffer);case"integer":let c=new DataView(new ArrayBuffer(5));return c.setUint8(0,4),c.setInt32(1,n.value,!1),new Uint8Array(c.buffer);case"long":let a=new Uint8Array(9);return a[0]=5,a.set(n.value.bytes,1),a;case"binary":let w=new DataView(new ArrayBuffer(3+n.value.byteLength));w.setUint8(0,6),w.setUint16(1,n.value.byteLength,!1);let e=new Uint8Array(w.buffer);return e.set(n.value,3),e;case"string":let t=this.fromUtf8(n.value),h=new DataView(new ArrayBuffer(3+t.byteLength));h.setUint8(0,7),h.setUint16(1,t.byteLength,!1);let l=new Uint8Array(h.buffer);return l.set(t,3),l;case"timestamp":let i=new Uint8Array(9);return i[0]=8,i.set(W.fromNumber(n.value.valueOf()).bytes,1),i;case"uuid":if(!gs.test(n.value))throw Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set(N.fromHex(n.value.replace(/\-/g,"")),1),y}}parse(n){let s={},c=0;while(c<n.byteLength){let a=n.getUint8(c++),w=this.toUtf8(new Uint8Array(n.buffer,n.byteOffset+c,a));switch(c+=a,n.getUint8(c++)){case 0:s[w]={type:ye,value:!0};break;case 1:s[w]={type:ye,value:!1};break;case 2:s[w]={type:ys,value:n.getInt8(c++)};break;case 3:s[w]={type:is,value:n.getInt16(c,!1)},c+=2;break;case 4:s[w]={type:ws,value:n.getInt32(c,!1)},c+=4;break;case 5:s[w]={type:Ss,value:new W(new Uint8Array(n.buffer,n.byteOffset+c,8))},c+=8;break;case 6:let e=n.getUint16(c,!1);c+=2,s[w]={type:as,value:new Uint8Array(n.buffer,n.byteOffset+c,e)},c+=e;break;case 7:let t=n.getUint16(c,!1);c+=2,s[w]={type:fs,value:this.toUtf8(new Uint8Array(n.buffer,n.byteOffset+c,t))},c+=t;break;case 8:s[w]={type:bs,value:new Date(new W(new Uint8Array(n.buffer,n.byteOffset+c,8)).valueOf())},c+=8;break;case 9:let h=new Uint8Array(n.buffer,n.byteOffset+c,16);c+=16,s[w]={type:us,value:`${N.toHex(h.subarray(0,4))}-${N.toHex(h.subarray(4,6))}-${N.toHex(h.subarray(6,8))}-${N.toHex(h.subarray(8,10))}-${N.toHex(h.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return s}}function Us({byteLength:n,byteOffset:s,buffer:c}){if(n<Ms)throw Error("Provided message too short to accommodate event stream message overhead");let a=new DataView(c,s,n),w=a.getUint32(0,!1);if(n!==w)throw Error("Reported message length does not match received message length");let e=a.getUint32(we,!1),t=a.getUint32(G,!1),h=a.getUint32(n-C,!1),l=new ie.Crc32().update(new Uint8Array(c,s,G));if(t!==l.digest())throw Error(`The prelude checksum specified in the message (${t}) does not match the calculated CRC32 checksum (${l.digest()})`);if(l.update(new Uint8Array(c,s+G,n-(G+C))),h!==l.digest())throw Error(`The message checksum (${l.digest()}) did not match the expected value of ${h}`);return{headers:new DataView(c,s+G+C,e),body:new Uint8Array(c,s+G+C+e,w-e-(G+C+C))}}class E{headerMarshaller;messageBuffer;isEndOfStream;constructor(n,s){this.headerMarshaller=new j(n,s),this.messageBuffer=[],this.isEndOfStream=!1}feed(n){this.messageBuffer.push(this.decode(n))}endOfStream(){this.isEndOfStream=!0}getMessage(){let n=this.messageBuffer.pop(),s=this.isEndOfStream;return{getMessage(){return n},isEndOfStream(){return s}}}getAvailableMessages(){let n=this.messageBuffer;this.messageBuffer=[];let s=this.isEndOfStream;return{getMessages(){return n},isEndOfStream(){return s}}}encode({headers:n,body:s}){let c=this.headerMarshaller.format(n),a=c.byteLength+s.byteLength+16,w=new Uint8Array(a),e=new DataView(w.buffer,w.byteOffset,w.byteLength),t=new ie.Crc32;return e.setUint32(0,a,!1),e.setUint32(4,c.byteLength,!1),e.setUint32(8,t.update(w.subarray(0,8)).digest(),!1),w.set(c,12),w.set(s,c.byteLength+12),e.setUint32(a-4,t.update(w.subarray(8,a-4)).digest(),!1),w}decode(n){let{headers:s,body:c}=Us(n);return{headers:this.headerMarshaller.parse(s),body:c}}formatHeaders(n){return this.headerMarshaller.format(n)}}function Se(n){let s=0,c=0,a=null,w=null,e=(h)=>{if(typeof h!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+h);s=h,c=4,a=new Uint8Array(h),new DataView(a.buffer).setUint32(0,h,!1)},t=async function*(){let h=n[Symbol.asyncIterator]();while(!0){let{value:l,done:i}=await h.next();if(i){if(!s)return;else if(s===c)yield a;else throw Error("Truncated event message received.");return}let y=l.length,S=0;while(S<y){if(!a){let g=y-S;if(!w)w=new Uint8Array(4);let f=Math.min(4-c,g);if(w.set(l.slice(S,S+f),c),c+=f,S+=f,c<4)break;e(new DataView(w.buffer).getUint32(0,!1)),w=null}let b=Math.min(s-c,y-S);if(a.set(l.slice(S,S+b),c),c+=b,S+=b,s&&s===c)yield a,a=null,s=0,c=0}}};return{[Symbol.asyncIterator]:t}}function Bs(n,s){let c=o(s.deserializer,s.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let a of n){let w=s.eventStreamCodec.decode(a),e=await c(w);if(e===void 0)continue;yield e}}}}function o(n,s){return async function(c){let{value:a}=c.headers[":message-type"];if(a==="error"){let w=Error(c.headers[":error-message"].value||"UnknownError");throw w.name=c.headers[":error-code"].value,w}else if(a==="exception"){let w=c.headers[":exception-type"].value,e={[w]:c},t=await n(e);if(t.$unknown){let h=Error(s(c.body));throw h.name=w,h}throw t[w]}else if(a==="event"){let w={[c.headers[":event-type"].value]:c},e=await n(w);if(e.$unknown)return;return e}else throw Error(`Unrecognizable event type: ${c.headers[":event-type"].value}`)}}class p{universalMarshaller;constructor({utf8Encoder:n,utf8Decoder:s}){this.universalMarshaller=new x({utf8Decoder:s,utf8Encoder:n})}deserialize(n,s){let c=typeof n[Symbol.asyncIterator]==="function"?n:Os(n);return this.universalMarshaller.deserialize(c,s)}serialize(n,s){return cs.Readable.from(this.universalMarshaller.serialize(n,s))}}async function*Os(n){let s=!1,c=!1,a=[];n.on("error",(w)=>{if(!s)s=!0;if(w)throw w}),n.on("data",(w)=>{a.push(w)}),n.on("end",()=>{s=!0});while(!c){let w=await new Promise((e)=>setTimeout(()=>e(a.shift()),0));if(w)yield w;c=s&&a.length===0}}class ae{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:n,serializer:s,deserializer:c,serdeContext:a,defaultContentType:w}){this.marshaller=n,this.serializer=s,this.deserializer=c,this.serdeContext=a,this.defaultContentType=w}async serializeEventStream({eventStream:n,requestSchema:s,initialRequest:c}){let a=this.marshaller,w=s.getEventStreamMember(),e=s.getMemberSchema(w),t=this.serializer,h=this.defaultContentType,l=Symbol("initialRequestMarker"),i={async*[Symbol.asyncIterator](){if(c){let y={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:h}};t.write(s,c);let S=t.flush();yield{[l]:!0,headers:y,body:S}}for await(let y of n)yield y}};return a.serialize(i,(y)=>{if(y[l])return{headers:y.headers,body:y.body};let S="";for(let B in y)if(B!=="__type"){S=B;break}let{additionalHeaders:b,body:g,eventType:f,explicitPayloadContentType:u}=this.writeEventBody(S,e,y);return{headers:{":event-type":{type:"string",value:f},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u??h},...b},body:g}})}async deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:c}){let a=this.marshaller,w=s.getEventStreamMember(),t=s.getMemberSchema(w).getMemberSchemas(),h=Symbol("initialResponseMarker"),l=a.deserialize(n.body,async(S)=>{let b="";for(let f in S)if(f!=="__type"){b=f;break}let g=S[b].body;if(b==="initial-response"){let f=await this.deserializer.read(s,g);return delete f[w],{[h]:!0,...f}}else if(b in t){let f=t[b];if(f.isStructSchema()){let u={},U=!1;for(let[B,M]of f.structIterator()){let{eventHeader:I,eventPayload:O}=M.getMergedTraits();if(U=U||Boolean(I||O),O){if(M.isBlobSchema())u[B]=g;else if(M.isStringSchema())u[B]=(this.serdeContext?.utf8Encoder??N.toUtf8)(g);else if(M.isStructSchema())u[B]=await this.deserializer.read(M,g)}else if(I){let $=S[b].headers[B]?.value;if($!=null)if(M.isNumericSchema())if($&&typeof $==="object"&&"bytes"in $)u[B]=BigInt($.toString());else u[B]=Number($);else u[B]=$}}if(U)return{[b]:u};if(g.byteLength===0)return{[b]:{}}}return{[b]:await this.deserializer.read(f,g)}}else return{$unknown:S}}),i=l[Symbol.asyncIterator](),y=await i.next();if(y.done)return l;if(y.value?.[h]){if(!s)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let S in y.value)c[S]=y.value[S]}return{async*[Symbol.asyncIterator](){if(!y?.value?.[h])yield y.value;while(!0){let{done:S,value:b}=await i.next();if(S)break;yield b}}}}writeEventBody(n,s,c){let a=this.serializer,w=n,e=null,t,h=(()=>{return s.getSchema()[4].includes(n)})(),l={};if(!h){let[S,b]=c[n];w=S,a.write(15,b)}else{let S=s.getMemberSchema(n);if(S.isStructSchema()){for(let[b,g]of S.structIterator()){let{eventHeader:f,eventPayload:u}=g.getMergedTraits();if(u)e=b;else if(f){let U=c[n][b],B="binary";if(g.isNumericSchema())if(-2147483648<=U&&U<=2147483647)B="integer";else B="long";else if(g.isTimestampSchema())B="timestamp";else if(g.isStringSchema())B="string";else if(g.isBooleanSchema())B="boolean";if(U!=null)l[b]={type:B,value:U},delete c[n][b]}}if(e!==null){let b=S.getMemberSchema(e);if(b.isBlobSchema())t="application/octet-stream";else if(b.isStringSchema())t="text/plain";a.write(b,c[n][e])}else a.write(S,c[n])}else if(S.isUnitSchema())a.write(S,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let i=a.flush()??new Uint8Array;return{body:typeof i==="string"?(this.serdeContext?.utf8Decoder??N.fromUtf8)(i):i,eventType:w,explicitPayloadContentType:t,additionalHeaders:l}}}var ie,N,cs,ce,ye="boolean",ys="byte",is="short",ws="integer",Ss="long",as="binary",fs="string",bs="timestamp",us="uuid",gs,we=4,G,C=4,Ms,P,k,v,d,x=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:s,utf8Decoder:c}){this.eventStreamCodec=new E(s,c),this.utfEncoder=s}deserialize(s,c){let a=Se(s);return new v({messageStream:new P({inputStream:a,decoder:this.eventStreamCodec}),deserializer:o(c,this.utfEncoder)})}serialize(s,c){return new k({messageStream:new d({inputStream:s,serializer:c}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},$s=(n)=>new x(n),Is=(n)=>new p(n),zs=(n)=>({[Symbol.asyncIterator]:async function*(){let s=n.getReader();try{while(!0){let{done:c,value:a}=await s.read();if(c)return;yield a}}finally{s.releaseLock()}}}),Ns=(n)=>{let s=n[Symbol.asyncIterator]();return new ReadableStream({async pull(c){let{done:a,value:w}=await s.next();if(a)return c.close();c.enqueue(w)}})},Gs=(n)=>Object.assign(n,{eventStreamMarshaller:n.eventStreamSerdeProvider(n)}),rs,Cs,Ts,Ls,Ws,Qs,Xs,Zs,Hs,qs,Ks,Fs,Vs,Js,ms,As,Rs,Ys;var Ds=hs(()=>{ie=Y(),N=ls(),cs=Xn("node:stream");(function(n){n[n.boolTrue=0]="boolTrue",n[n.boolFalse=1]="boolFalse",n[n.byte=2]="byte",n[n.short=3]="short",n[n.integer=4]="integer",n[n.long=5]="long",n[n.byteArray=6]="byteArray",n[n.string=7]="string",n[n.timestamp=8]="timestamp",n[n.uuid=9]="uuid"})(ce||(ce={}));gs=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,G=we*2,Ms=G+C*2;P=class P{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.decoder.decode(n)}};k=class k{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream)yield this.options.encoder.encode(n);if(this.options.includeEndFrame)yield new Uint8Array(0)}};v=class v{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream){let s=await this.options.deserializer(n);if(s===void 0)continue;yield s}}};d=class d{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.serializer(n)}};rs=E,Cs=p,Ts=ae,Ls=j,Ws=W,Qs=P,Xs=k,Zs=v,Hs=d,qs=x,Ks=Is,Fs=Se,Vs=o,Js=Bs,ms=Ns,As=zs,Rs=Gs,Ys=$s});Ds();export{Ys as universalEventStreamSerdeProvider,Rs as resolveEventStreamSerdeConfig,As as readableStreamToIterable,ms as iterableToReadableStream,Js as getUnmarshalledStream,Vs as getMessageUnmarshaller,Fs as getChunkedStream,Ks as eventStreamSerdeProvider,qs as UniversalEventStreamMarshaller,Hs as SmithyMessageEncoderStream,Zs as SmithyMessageDecoderStream,Xs as MessageEncoderStream,Qs as MessageDecoderStream,Ws as Int64,Ls as HeaderMarshaller,Ts as EventStreamSerde,Cs as EventStreamMarshaller,rs as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Ys},get resolveEventStreamSerdeConfig(){return Rs},get readableStreamToIterable(){return As},get iterableToReadableStream(){return ms},get getUnmarshalledStream(){return Js},get getMessageUnmarshaller(){return Vs},get getChunkedStream(){return Fs},get eventStreamSerdeProvider(){return Ks},get UniversalEventStreamMarshaller(){return qs},get SmithyMessageEncoderStream(){return Hs},get SmithyMessageDecoderStream(){return Zs},get MessageEncoderStream(){return Xs},get MessageDecoderStream(){return Qs},get Int64(){return Ws},get HeaderMarshaller(){return Ls},get EventStreamSerde(){return Ts},get EventStreamMarshaller(){return Cs},get EventStreamCodec(){return rs}};
@@ -0,0 +1 @@
1
+ import{A5 as Ut,B5 as Vr,C5 as et,D5 as zr,E5 as hr,F5 as tt,G5 as D,H5 as St,I5 as Sr,J5 as Or,L5 as Ir,M5 as br,N5 as qr,O5 as Dr,P5 as Rr,Q5 as tr,R5 as rr,S5 as sr,T5 as Ar,U5 as Br,u5 as G,v5 as fr,w5 as Hr,x5 as Lr,y5 as oe,z5 as er}from"./cli-0.5.10-p3g04417.mjs";import{V5 as Qe}from"./cli-0.5.10-d2cw91xn.mjs";import{wna as Er,xna as Pr}from"./cli-0.5.10-b7r8mjbd.mjs";import{zna as vr}from"./cli-0.5.10-0vs5gmpe.mjs";import{Bna as we}from"./cli-0.5.10-mvckg6zv.mjs";import{Jna as a}from"./cli-0.5.10-1sd567wn.mjs";var $=a((_)=>{Object.defineProperty(_,"__esModule",{value:!0});_.resolveHttpAuthSchemeConfig=_.defaultSigninHttpAuthSchemeProvider=_.defaultSigninHttpAuthSchemeParametersProvider=void 0;var Ot=G(),g=St(),It=async(e,t,r)=>{return{operation:(0,g.getSmithyContext)(t).operation,region:await(0,g.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};_.defaultSigninHttpAuthSchemeParametersProvider=It;function bt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var Dt=(e)=>{let t=[];switch(e.operation){case"CreateOAuth2Token":{t.push(qt(e));break}default:t.push(bt(e))}return t};_.defaultSigninHttpAuthSchemeProvider=Dt;var Rt=(e)=>{let t=(0,Ot.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,g.normalizeProvider)(e.authSchemePreference??[])})};_.resolveHttpAuthSchemeConfig=Rt});var ae=a((ie)=>{Object.defineProperty(ie,"__esModule",{value:!0});ie.bdd=void 0;var Nt=oe(),P="ref",c=-1,b=!0,ee="isSet",ne="PartitionResult",q="booleanEquals",L="getAttr",f="stringEquals",te={[P]:"Endpoint"},V={[P]:ne},H={fn:L,argv:[V,"name"]},l={},re=[{[P]:"Region"}],se={conditions:[[ee,[te]],[ee,re],["aws.partition",re,ne],[q,[{[P]:"UseFIPS"},b]],[q,[{[P]:"UseDualStack"},b]],[q,[{fn:L,argv:[V,"supportsDualStack"]},b]],[q,[{fn:L,argv:[V,"supportsFIPS"]},b]],[f,[H,"aws"]],[f,[H,"aws-cn"]],[f,[H,"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[te,l],["https://{Region}.signin.aws.amazon.com",l],["https://{Region}.signin.amazonaws.cn",l],["https://{Region}.signin.amazonaws-us-gov.com",l],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",l],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",l],[c,"FIPS is enabled but this partition does not support FIPS"],["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",l],[c,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",l],[c,"Invalid Configuration: Missing Region"]]},Mt=2,s=1e8,wt=new Int32Array([-1,1,-1,0,15,3,1,4,s+14,2,5,s+14,3,11,6,4,10,7,7,s+4,8,8,s+5,9,9,s+6,s+13,5,s+11,s+12,4,13,12,6,s+9,s+10,5,14,s+8,6,s+7,s+8,3,s+1,16,4,s+2,s+3]);ie.bdd=Nt.BinaryDecisionDiagram.from(wt,Mt,se.conditions,se.results)});var pe=a((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var xt=Ut(),z=oe(),gt=ae(),Gt=new z.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),$t=(e,t={})=>{return Gt.get(e,()=>(0,z.decideEndpoint)(gt.bdd,{endpointParams:e,logger:t.logger}))};ue.defaultEndpointResolver=$t;z.customEndpointFunctions.aws=xt.awsEndpointFunctions});var R=a((A)=>{Object.defineProperty(A,"__esModule",{value:!0});A.SigninServiceException=A.__ServiceException=void 0;var ce=D();Object.defineProperty(A,"__ServiceException",{enumerable:!0,get:function(){return ce.ServiceException}});class h extends ce.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}A.SigninServiceException=h});var J=a((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ValidationException=Ee.TooManyRequestsError=Ee.InternalServerException=Ee.AccessDeniedException=void 0;var y=R();class B extends y.SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error}}Ee.AccessDeniedException=B;class W extends y.SigninServiceException{name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error}}Ee.InternalServerException=W;class Y extends y.SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error}}Ee.TooManyRequestsError=Y;class j extends y.SigninServiceException{name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype),this.error=e.error}}Ee.ValidationException=j});var Z=a(($e)=>{Object.defineProperty($e,"__esModule",{value:!0});$e.CreateOAuth2Token$=$e.CreateOAuth2TokenResponseBody$=$e.CreateOAuth2TokenResponse$=$e.CreateOAuth2TokenRequestBody$=$e.CreateOAuth2TokenRequest$=$e.AccessToken$=$e.errorTypeRegistries=$e.ValidationException$=$e.TooManyRequestsError$=$e.InternalServerException$=$e.AccessDeniedException$=$e.SigninServiceException$=void 0;var Vt="AccessDeniedException",zt="AccessToken",ht="CreateOAuth2Token",At="CreateOAuth2TokenRequest",Bt="CreateOAuth2TokenRequestBody",Wt="CreateOAuth2TokenResponseBody",Yt="CreateOAuth2TokenResponse",jt="InternalServerException",Jt="RefreshToken",Xt="TooManyRequestsError",Qt="ValidationException",Se="accessKeyId",Oe="accessToken",X="client",Ie="clientId",be="codeVerifier",Zt="code",p="error",qe="expiresIn",De="grantType",Kt="http",Q="httpError",Re="idToken",n="jsonName",N="message",F="refreshToken",ye="redirectUri",Ue="smithy.ts.sdk.synthetic.com.amazonaws.signin",Fe="secretAccessKey",Ne="sessionToken",Tt="server",mt="tokenInput",kt="tokenOutput",Me="tokenType",i="com.amazonaws.signin",xe=we(),M=J(),_t=R(),ge=xe.TypeRegistry.for(Ue);$e.SigninServiceException$=[-3,Ue,"SigninServiceException",0,[],[]];ge.registerError($e.SigninServiceException$,_t.SigninServiceException);var S=xe.TypeRegistry.for(i);$e.AccessDeniedException$=[-3,i,Vt,{[p]:X},[p,N],[0,0],2];S.registerError($e.AccessDeniedException$,M.AccessDeniedException);$e.InternalServerException$=[-3,i,jt,{[p]:Tt,[Q]:500},[p,N],[0,0],2];S.registerError($e.InternalServerException$,M.InternalServerException);$e.TooManyRequestsError$=[-3,i,Xt,{[p]:X,[Q]:429},[p,N],[0,0],2];S.registerError($e.TooManyRequestsError$,M.TooManyRequestsError);$e.ValidationException$=[-3,i,Qt,{[p]:X,[Q]:400},[p,N],[0,0],2];S.registerError($e.ValidationException$,M.ValidationException);$e.errorTypeRegistries=[ge,S];var Ge=[0,i,Jt,8,0];$e.AccessToken$=[3,i,zt,8,[Se,Fe,Ne],[[0,{[n]:Se}],[0,{[n]:Fe}],[0,{[n]:Ne}]],3];$e.CreateOAuth2TokenRequest$=[3,i,At,0,[mt],[[()=>$e.CreateOAuth2TokenRequestBody$,16]],1];$e.CreateOAuth2TokenRequestBody$=[3,i,Bt,0,[Ie,De,Zt,ye,be,F],[[0,{[n]:Ie}],[0,{[n]:De}],0,[0,{[n]:ye}],[0,{[n]:be}],[()=>Ge,{[n]:F}]],2];$e.CreateOAuth2TokenResponse$=[3,i,Yt,0,[kt],[[()=>$e.CreateOAuth2TokenResponseBody$,16]],1];$e.CreateOAuth2TokenResponseBody$=[3,i,Wt,0,[Oe,Me,qe,F,Re],[[()=>$e.AccessToken$,{[n]:Oe}],[0,{[n]:Me}],[1,{[n]:qe}],[()=>Ge,{[n]:F}],[0,{[n]:Re}]],4];$e.CreateOAuth2Token$=[9,i,ht,{[Kt]:["POST","/v1/token",200]},()=>$e.CreateOAuth2TokenRequest$,()=>$e.CreateOAuth2TokenResponse$]});var Te=a((Ze)=>{Object.defineProperty(Ze,"__esModule",{value:!0});Ze.getRuntimeConfig=void 0;var or=G(),nr=rr(),ir=Qe(),dr=D(),ar=er(),Je=sr(),Xe=tr(),ur=$(),lr=pe(),pr=Z(),cr=(e)=>{return{apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Je.fromBase64,base64Encoder:e?.base64Encoder??Je.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??lr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ur.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new or.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ir.NoAuthSigner}],logger:e?.logger??new dr.NoOpLogger,protocol:e?.protocol??nr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:pr.errorTypeRegistries,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",urlParser:e?.urlParser??ar.parseUrl,utf8Decoder:e?.utf8Decoder??Xe.fromUtf8,utf8Encoder:e?.utf8Encoder??Xe.toUtf8}};Ze.getRuntimeConfig=cr});var ot=a((rt)=>{Object.defineProperty(rt,"__esModule",{value:!0});rt.getRuntimeConfig=void 0;var yr=Sr(),Fr=yr.__importDefault(Or()),Nr=Pr(),Mr=G(),me=Ir(),w=et(),wr=br(),ke=tt(),v=qr(),_e=vr(),Ce=D(),Ur=Dr(),xr=Rr(),gr=Er(),Gr=Te(),$r=(e)=>{(0,Ce.emitWarningIfUnsupportedVersion)(process.version);let t=(0,xr.resolveDefaultsModeConfig)(e),r=()=>t().then(Ce.loadConfigsForDefaultMode),d=(0,Gr.getRuntimeConfig)(e);(0,Nr.emitWarningIfUnsupportedVersion)(process.version);let o={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,v.loadConfig)(Mr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??Ur.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,me.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Fr.default.version}),maxAttempts:e?.maxAttempts??(0,v.loadConfig)(ke.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,v.loadConfig)(w.NODE_REGION_CONFIG_OPTIONS,{...w.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:_e.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,v.loadConfig)({...ke.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||gr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??_e.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.loadConfig)(w.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,v.loadConfig)(w.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,v.loadConfig)(me.NODE_APP_ID_CONFIG_OPTIONS,o)}};rt.getRuntimeConfig=$r});var as=a((u)=>{var nt=fr(),Wr=Hr(),Yr=Lr(),it=Vr(),jr=et(),K=Qe(),Jr=we(),Xr=zr(),pt=hr(),dt=tt(),E=D(),at=$(),Qr=ot(),ut=Ar(),lt=Br(),O=Z(),U=J(),Zr=R(),Kr=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"})},Tr={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},mr=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:d}=e;return{setHttpAuthScheme(o){let I=t.findIndex((x)=>x.schemeId===o.schemeId);if(I===-1)t.push(o);else t.splice(I,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){d=o},credentials(){return d}}},kr=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},_r=(e,t)=>{let r=Object.assign(ut.getAwsRegionExtensionConfiguration(e),E.getDefaultExtensionConfiguration(e),lt.getHttpHandlerExtensionConfiguration(e),mr(e));return t.forEach((d)=>d.configure(r)),Object.assign(e,ut.resolveAwsRegionExtensionConfiguration(r),E.resolveDefaultRuntimeConfig(r),lt.resolveHttpHandlerRuntimeConfig(r),kr(r))};class T extends E.Client{config;constructor(...[e]){let t=Qr.getRuntimeConfig(e||{});super(t);this.initConfig=t;let r=Kr(t),d=it.resolveUserAgentConfig(r),o=dt.resolveRetryConfig(d),I=jr.resolveRegionConfig(o),x=nt.resolveHostHeaderConfig(I),ct=pt.resolveEndpointConfig(x),vt=at.resolveHttpAuthSchemeConfig(ct),Et=_r(vt,e?.extensions||[]);this.config=Et,this.middlewareStack.use(Jr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(it.getUserAgentPlugin(this.config)),this.middlewareStack.use(dt.getRetryPlugin(this.config)),this.middlewareStack.use(Xr.getContentLengthPlugin(this.config)),this.middlewareStack.use(nt.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Wr.getLoggerPlugin(this.config)),this.middlewareStack.use(Yr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(K.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:at.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Pt)=>new K.DefaultIdentityProviderConfig({"aws.auth#sigv4":Pt.credentials})})),this.middlewareStack.use(K.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class m extends E.Command.classBuilder().ep(Tr).m(function(e,t,r,d){return[pt.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(O.CreateOAuth2Token$).build(){}var Cr={CreateOAuth2TokenCommand:m};class k extends T{}E.createAggregatedClient(Cr,k);var es={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};u.$Command=E.Command;u.__Client=E.Client;u.SigninServiceException=Zr.SigninServiceException;u.CreateOAuth2TokenCommand=m;u.OAuth2ErrorCode=es;u.Signin=k;u.SigninClient=T;Object.prototype.hasOwnProperty.call(O,"__proto__")&&!Object.prototype.hasOwnProperty.call(u,"__proto__")&&Object.defineProperty(u,"__proto__",{enumerable:!0,value:O.__proto__});Object.keys(O).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(u,e))u[e]=O[e]});Object.prototype.hasOwnProperty.call(U,"__proto__")&&!Object.prototype.hasOwnProperty.call(u,"__proto__")&&Object.defineProperty(u,"__proto__",{enumerable:!0,value:U.__proto__});Object.keys(U).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(u,e))u[e]=U[e]})});export default as();
@@ -0,0 +1 @@
1
+ import{t5 as S}from"./cli-0.5.10-8zwd1xme.mjs";import"./cli-0.5.10-p3g04417.mjs";import"./cli-0.5.10-d2cw91xn.mjs";import{W5 as A}from"./cli-0.5.10-xk6v4sy0.mjs";import{xna as I,yna as h}from"./cli-0.5.10-b7r8mjbd.mjs";import"./cli-0.5.10-0vs5gmpe.mjs";import"./cli-0.5.10-mvckg6zv.mjs";import{Jna as p,Mna as F}from"./cli-0.5.10-1sd567wn.mjs";var d=p((n)=>{var w=n&&n.__createBinding||(Object.create?function(e,r,o,t){if(t===void 0)t=o;var _=Object.getOwnPropertyDescriptor(r,o);if(!_||("get"in _?!r.__esModule:_.writable||_.configurable))_={enumerable:!0,get:function(){return r[o]}};Object.defineProperty(e,t,_)}:function(e,r,o,t){if(t===void 0)t=o;e[t]=r[o]}),v=n&&n.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),j=n&&n.__importStar||function(){var e=function(r){return e=Object.getOwnPropertyNames||function(o){var t=[];for(var _ in o)if(Object.prototype.hasOwnProperty.call(o,_))t[t.length]=_;return t},e(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null){for(var t=e(r),_=0;_<t.length;_++)if(t[_]!=="default")w(o,r,t[_])}return v(o,r),o}}();Object.defineProperty(n,"__esModule",{value:!0});n.fromWebToken=void 0;var m=(e)=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:t,webIdentityToken:_,providerId:s,policyArns:y,policy:b,durationSeconds:T}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:N}=await Promise.resolve().then(()=>j(S()));l=N({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...r?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:_,ProviderId:s,PolicyArns:y,Policy:b,DurationSeconds:T})};n.fromWebToken=m});var u=p((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.fromTokenFile=void 0;var P=I(),g=h(),k=A(),R=F("node:fs"),q=d(),O="AWS_WEB_IDENTITY_TOKEN_FILE",L="AWS_ROLE_ARN",W="AWS_ROLE_SESSION_NAME",V=(e={})=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[O],t=e?.roleArn??process.env[L],_=e?.roleSessionName??process.env[W];if(!o||!t)throw new g.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let s=await(0,q.fromWebToken)({...e,webIdentityToken:k.externalDataInterceptor?.getTokenRecord?.()[o]??(0,R.readFileSync)(o,{encoding:"ascii"}),roleArn:t,roleSessionName:_})(r);if(o===process.env[O])(0,P.setCredentialFeature)(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};E.fromTokenFile=V});var x=p((c)=>{var i=u(),a=d();Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:i.__proto__});Object.keys(i).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=i[e]});Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:a.__proto__});Object.keys(a).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=a[e]})});export default x();
@@ -0,0 +1 @@
1
+ import{s5 as a}from"./cli-0.5.10-0yn5x3m6.mjs";import"./cli-0.5.10-b7r8mjbd.mjs";import"./cli-0.5.10-mvckg6zv.mjs";import"./cli-0.5.10-1sd567wn.mjs";export default a();
@@ -0,0 +1 @@
1
+ import{p4 as a}from"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-1sd567wn.mjs";export default a();
@@ -0,0 +1 @@
1
+ import{W5 as G}from"./cli-0.5.10-xk6v4sy0.mjs";import{xna as _,yna as U}from"./cli-0.5.10-b7r8mjbd.mjs";import{Gna as X}from"./cli-0.5.10-mvckg6zv.mjs";import{Hna as K,Jna as B,Lna as l,Mna as E}from"./cli-0.5.10-1sd567wn.mjs";var v=B((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.resolveHttpHandlerRuntimeConfig=k.getHttpHandlerExtensionConfiguration=k.isValidHostname=k.HttpResponse=k.HttpRequest=k.Fields=k.Field=void 0;var H=X();Object.defineProperty(k,"Field",{enumerable:!0,get:function(){return H.Field}});Object.defineProperty(k,"Fields",{enumerable:!0,get:function(){return H.Fields}});Object.defineProperty(k,"HttpRequest",{enumerable:!0,get:function(){return H.HttpRequest}});Object.defineProperty(k,"HttpResponse",{enumerable:!0,get:function(){return H.HttpResponse}});Object.defineProperty(k,"isValidHostname",{enumerable:!0,get:function(){return H.isValidHostname}});Object.defineProperty(k,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return H.getHttpHandlerExtensionConfiguration}});Object.defineProperty(k,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return H.resolveHttpHandlerRuntimeConfig}})});var J=B((C)=>{var Q=_(),T=U(),P=G(),W=v(),F=E("node:crypto"),q=E("node:fs"),Z=E("node:os"),A=E("node:path");class ${profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,n,t){this.profileData=e,this.init=n,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new T.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=e.accessToken,t=Date.now();if(new Date(n.expiresAt).getTime()-t<=$.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:n,CreateOAuth2TokenCommand:t}=await import("./index-0.5.10-marrtwvx.mjs").then((m)=>K(m.default)),{logger:s,userAgentAppId:c}=this.callerClientConfig??{},r=((h)=>{return h?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,a=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,i=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:a,requestHandler:r,logger:s,userAgentAppId:c,...this.init?.clientConfig});this.createDPoPInterceptor(i.middlewareStack);let x={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let h=await i.send(new t(x)),{accessKeyId:y,secretAccessKey:d,sessionToken:I}=h.tokenOutput?.accessToken??{},{refreshToken:S,expiresIn:m}=h.tokenOutput??{};if(!y||!d||!I||!S)throw new T.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(m??900)*1000,b=new Date(Date.now()+R),j={...e,accessToken:{...e.accessToken,accessKeyId:y,secretAccessKey:d,sessionToken:I,expiresAt:b.toISOString()},refreshToken:S};await this.saveToken(j);let o=j.accessToken;return{accessKeyId:o.accessKeyId,secretAccessKey:o.secretAccessKey,sessionToken:o.sessionToken,accountId:o.accountId,expiration:b}}catch(h){if(h.name==="AccessDeniedException"){let y=h.error,d;switch(y){case"TOKEN_EXPIRED":d="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":d="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":d="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:d=`Failed to refresh token: ${String(h)}. Please re-authenticate using \`aws login\``}throw new T.CredentialsProviderError(d,{logger:this.logger,tryNextLink:!1})}throw new T.CredentialsProviderError(`Failed to refresh token: ${String(h)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let n;try{n=await P.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{n=await q.promises.readFile(e,"utf8")}let t=JSON.parse(n),s=["accessToken","clientId","refreshToken","dpopKey"].filter((c)=>!t[c]);if(!t.accessToken?.accountId)s.push("accountId");if(s.length>0)throw new T.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(n){throw new T.CredentialsProviderError(`Failed to load token from ${e}: ${String(n)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let n=this.getTokenFilePath(),t=A.dirname(n);try{await q.promises.mkdir(t,{recursive:!0})}catch(s){}await q.promises.writeFile(n,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A.join(Z.homedir(),".aws","login","cache"),n=Buffer.from(this.loginSession,"utf8"),t=F.createHash("sha256").update(n).digest("hex");return A.join(e,`${t}.json`)}derToRawSignature(e){let n=2;if(e[n]!==2)throw Error("Invalid DER signature");n++;let t=e[n++],s=e.subarray(n,n+t);if(n+=t,e[n]!==2)throw Error("Invalid DER signature");n++;let c=e[n++],u=e.subarray(n,n+c);s=s[0]===0?s.subarray(1):s,u=u[0]===0?u.subarray(1):u;let r=Buffer.concat([Buffer.alloc(32-s.length),s]),a=Buffer.concat([Buffer.alloc(32-u.length),u]);return Buffer.concat([r,a])}createDPoPInterceptor(e){e.add((n)=>async(t)=>{if(W.HttpRequest.isInstance(t.request)){let s=t.request,c=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,u=await this.generateDpop(s.method,c);s.headers={...s.headers,DPoP:u}}return n(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",n){let t=await this.loadToken();try{let s=F.createPrivateKey({key:t.dpopKey,format:"pem",type:"sec1"}),u=F.createPublicKey(s).export({format:"der",type:"spki"}),r=-1;for(let b=0;b<u.length;b++)if(u[b]===4){r=b;break}let a=u.slice(r+1,r+33),i=u.slice(r+33,r+65),x={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:a.toString("base64url"),y:i.toString("base64url")}},h={jti:crypto.randomUUID(),htm:e,htu:n,iat:Math.floor(Date.now()/1000)},y=Buffer.from(JSON.stringify(x)).toString("base64url"),d=Buffer.from(JSON.stringify(h)).toString("base64url"),I=`${y}.${d}`,S=F.sign("sha256",Buffer.from(I),s),R=this.derToRawSignature(S).toString("base64url");return`${I}.${R}`}catch(s){throw new T.CredentialsProviderError(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}}var N=(e)=>async({callerClientConfig:n}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P.parseKnownFiles(e||{}),s=P.getProfileName({profile:e?.profile??n?.profile}),c=t[s];if(!c?.login_session)throw new T.CredentialsProviderError(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let r=await new $(c,e,n).loadCredentials();return Q.setCredentialFeature(r,"CREDENTIALS_LOGIN","AD")};C.fromLoginCredentials=N});var L,O,w,p,ee=(e,n,t)=>{let s={EcsContainer:async(c)=>{let{fromHttp:u}=await import("./index-0.5.10-0wzdjjzk.mjs").then((m)=>K(m.default,1)),{fromContainerMetadata:r}=await import("./index-0.5.10-ak9fnp4h.mjs");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>O.chain(u(c??{}),r(c))().then(D)},Ec2InstanceMetadata:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:u}=await import("./index-0.5.10-ak9fnp4h.mjs");return async()=>u(c)().then(D)},Environment:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:u}=await import("./index-0.5.10-p69q9n6x.mjs");return async()=>u(c)().then(D)}};if(e in s)return s[e];else throw new O.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},D=(e)=>w.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),te=(e,{profile:n="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(ne(e,{profile:n,logger:t})||se(e,{profile:n,logger:t}))},ne=(e,{profile:n,logger:t})=>{let s=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(s)t?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return s},se=(e,{profile:n,logger:t})=>{let s=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(s)t?.debug?.(` ${n} isCredentialSourceProfile credential_source=${e.credential_source}`);return s},re=async(e,n,t,s,c={},u)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let r=n[e],{source_profile:a,region:i}=r;if(!t.roleAssumer){let{getDefaultRoleAssumer:h}=await import("./index-0.5.10-dxkhh5bg.mjs").then((m)=>K(m.default,1));t.roleAssumer=h({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...s,...t?.parentClientConfig,region:i??t?.parentClientConfig?.region??s?.region}},t.clientPlugins)}if(a&&a in c)throw new O.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${L.getProfileName(t)}. Profiles visited: `+Object.keys(c).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${e}]`}`);let x=a?u(a,n,t,s,{...c,[a]:!0},V(n[a]??{})):(await ee(r.credential_source,e,t.logger)(t))();if(V(r))return x.then((h)=>w.setCredentialFeature(h,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let h={RoleArn:r.role_arn,RoleSessionName:r.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:r.external_id,DurationSeconds:parseInt(r.duration_seconds||"3600",10)},{mfa_serial:y}=r;if(y){if(!t.mfaCodeProvider)throw new O.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});h.SerialNumber=y,h.TokenCode=await t.mfaCodeProvider(y)}let d=await x;return t.roleAssumer(d,h).then((I)=>w.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},V=(e)=>{return!e.role_arn&&!!e.credential_source},ce=(e)=>{return Boolean(e&&e.login_session)},ue=async(e,n,t)=>{let s=await p.fromLoginCredentials({...n,profile:e})({callerClientConfig:t});return w.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")},he=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",ae=async(e,n)=>import("./index-0.5.10-fyt0d84h.mjs").then(({fromProcess:t})=>t({...e,profile:n})().then((s)=>w.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v"))),de=async(e,n,t={},s)=>{let{fromSSO:c}=await import("./index-0.5.10-eh8w8ayw.mjs");return c({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:s}).then((u)=>{if(n.sso_session)return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO","r");else return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},ye=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),Y=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,g=async(e,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return w.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")},ke=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,we=async(e,n,t)=>import("./index-0.5.10-n7zsm7mc.mjs").then((m)=>K(m.default,1)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:t}).then((c)=>w.setCredentialFeature(c,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),z=async(e,n,t,s,c={},u=!1)=>{let r=n[e];if(Object.keys(c).length>0&&Y(r))return g(r,t);if(u||te(r,{profile:e,logger:t.logger}))return re(e,n,t,s,c,z);if(Y(r))return g(r,t);if(ke(r))return we(r,t,s);if(he(r))return ae(t,e);if(ye(r))return await de(e,r,t,s);if(ce(r))return ue(e,t,s);throw new O.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})},Te=(e={})=>async({callerClientConfig:n}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await L.parseKnownFiles(e);return z(L.getProfileName({profile:e.profile??n?.profile}),t,e,n)},Ee;var Ie=l(()=>{L=G(),O=U(),w=_(),p=J();Ee=Te});Ie();export{Ee as fromIni};export default {get fromIni(){return Ee}};
@@ -0,0 +1 @@
1
+ import{q5 as a}from"./cli-0.5.10-68wvhytx.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-1sd567wn.mjs";export default a();
@@ -0,0 +1 @@
1
+ import{$4 as D,A4 as c,B4 as d,C4 as e,D4 as f,E4 as g,F4 as h,G4 as i,H4 as j,I4 as k,J4 as l,K4 as m,L4 as n,M4 as o,N4 as p,O4 as q,P4 as r,Q4 as s,R4 as t,S4 as u,T4 as v,U4 as w,V4 as x,W4 as y,X4 as z,Y4 as A,Z4 as B,_4 as C,a5 as E,b5 as F,c5 as G,d5 as H,e5 as I,f5 as J,g5 as K,h5 as L,i5 as M,j5 as N,k5 as O,l5 as P,m5 as Q,n5 as R,o5 as S,p5 as T,y4 as a,z4 as b}from"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-1sd567wn.mjs";T();export{u as zlibSync,t as zlib,M as zipSync,L as zip,y as unzlibSync,x as unzlib,S as unzipSync,R as unzip,F as strToU8,G as strFromU8,i as inflateSync,h as inflate,m as gzipSync,l as gzip,q as gunzipSync,p as gunzip,e as deflateSync,d as deflate,C as decompressSync,B as decompress,m as compressSync,l as compress,r as Zlib,H as ZipPassThrough,I as ZipDeflate,K as Zip,v as Unzlib,N as UnzipPassThrough,O as UnzipInflate,Q as Unzip,f as Inflate,j as Gzip,n as Gunzip,a as FlateErrorCode,E as EncodeUTF8,b as Deflate,z as Decompress,D as DecodeUTF8,j as Compress,s as AsyncZlib,J as AsyncZipDeflate,w as AsyncUnzlib,P as AsyncUnzipInflate,g as AsyncInflate,k as AsyncGzip,o as AsyncGunzip,c as AsyncDeflate,A as AsyncDecompress,k as AsyncCompress};
@@ -0,0 +1 @@
1
+ import{V5 as a}from"./cli-0.5.10-d2cw91xn.mjs";import"./cli-0.5.10-mvckg6zv.mjs";import"./cli-0.5.10-1sd567wn.mjs";export default a();
@@ -0,0 +1 @@
1
+ import{$ma as f,Wma as a,Xma as b,Yma as c,Zma as d,_ma as e,ana as g,bna as h,cna as i,dna as j,ena as k,fna as l,gna as m,hna as n,ina as o,jna as p,kna as q,lna as r,mna as s}from"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import"./cli-0.5.10-1sd567wn.mjs";s();export{l as toFormData,k as spread,q as mergeConfig,e as isCancel,j as isAxiosError,p as getAdapter,o as formToJSON,a as default,r as create,h as all,g as VERSION,n as HttpStatusCode,d as CanceledError,f as CancelToken,i as Cancel,m as AxiosHeaders,c as AxiosError,b as Axios};
@@ -0,0 +1 @@
1
+ import{da as a,ea as b}from"./cli-0.5.10-8kpt6897.mjs";import"./cli-0.5.10-9mt7ynrh.mjs";import"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import"./cli-0.5.10-1sd567wn.mjs";export{b as initializeTelemetryAfterTrust,a as init};
@@ -0,0 +1 @@
1
+ import{a as dJ,b as jZ,d as MQ}from"./cli-0.5.10-w698y5mp.mjs";import{f as VZ,g as FQ,h as fQ,i as lJ,j as wQ,k as DQ,l as EQ,m as CQ}from"./cli-0.5.10-58erwwbz.mjs";import"./cli-0.5.10-srd78kpc.mjs";import{Sa as cJ,Ta as yQ,Ua as PQ,Va as UQ,Wa as pJ,Xa as uJ}from"./cli-0.5.10-rhmrff22.mjs";import"./cli-0.5.10-ra711jkk.mjs";import{Ad as vJ,Cd as _Z}from"./cli-0.5.10-pr0nkqpw.mjs";import{Gd as iJ,Jd as gZ}from"./cli-0.5.10-fcbrnw81.mjs";import{fe as $Z,he as zZ,ie as KZ,je as dZ}from"./cli-0.5.10-a8ecfnq0.mjs";import{ke as OJ,le as BQ,me as RQ,ne as ZQ,oe as ZJ,pe as mJ}from"./cli-0.5.10-azhfv28d.mjs";import{qe as eQ,se as HJ,te as JZ,ue as uZ}from"./cli-0.5.10-661g0gft.mjs";import{xe as QZ,ye as ZZ,ze as lZ}from"./cli-0.5.10-mgkc1jay.mjs";import{Hf as oQ,If as nQ,Jf as sQ,Kf as rQ,Lf as pZ}from"./cli-0.5.10-20w5v1ja.mjs";import{Ak as IZ,DN as aZ,Di as dQ,PP as iZ,cP as yJ,fC as iQ,gC as tQ,iN as YZ,jC as cZ,pN as XZ,zk as gQ}from"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import{$Q as FZ,_Q as IJ}from"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import{pR as xQ,tR as fZ}from"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import{FT as AQ,HT as wZ}from"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import{BU as aQ,CU as LQ,DU as OQ,FU as _Q}from"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import{C0 as uQ,F0 as vZ,N2 as BJ,O2 as MZ,T3 as SZ,t3 as gJ,v3 as aJ,x3 as lQ}from"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import{Raa as bZ,e7 as vQ,eca as pQ,g7 as SQ,gca as mZ,uaa as IQ,w7 as kZ,x6 as _J,xaa as cQ,z6 as UZ}from"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import{Mda as mQ,Xda as TZ}from"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import{Oea as w,Qea as RZ}from"./cli-0.5.10-y9qd4psg.mjs";import{Qfa as J,Tea as HQ,Tfa as NQ,Vea as yZ}from"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import{iga as u,pga as qQ}from"./cli-0.5.10-8wqagr68.mjs";import{Dga as GQ,Fga as PZ,vga as WQ}from"./cli-0.5.10-jsnrvena.mjs";import{ama as hZ,jia as RJ,pia as bQ}from"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import{Wma as QJ,mna as OZ}from"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Mna as VQ}from"./cli-0.5.10-1sd567wn.mjs";hZ();TZ();vZ();cZ();SZ();bZ();NQ();mZ();qQ();kZ();gZ();aZ();iZ();lZ();IZ();uZ();pZ();dZ();mJ();import{hostname as tZ}from"os";import{randomUUID as YQ}from"crypto";OZ();mJ();_Z();var xZ="environments-2025-11-01",AZ=/^[a-zA-Z0-9_-]+$/;function g(K,$){if(!K||!AZ.test(K))throw Error(`Invalid ${$}: contains unsafe characters`);return K}class zJ extends Error{status;errorType;constructor(K,$,L){super(K);this.name="BridgeFatalError",this.status=$,this.errorType=L}}function $Q(K){function $(Q){K.onDebug?.(Q)}let L=0,N=100;function x(Q){let z={Authorization:`Bearer ${Q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":xZ,"x-environment-runner-version":K.runnerVersion},H=K.getTrustedDeviceToken?.();if(H)z["X-Trusted-Device-Token"]=H;return z}function m(){let Q=K.getAccessToken();if(!Q)throw Error(vJ);return Q}async function h(Q,z){let H=m(),X=await Q(H);if(X.status!==401)return X;if(!K.onAuth401)return $(`[bridge:api] ${z}: 401 received, no refresh handler`),X;if($(`[bridge:api] ${z}: 401 received, attempting token refresh`),await K.onAuth401(H)){$(`[bridge:api] ${z}: Token refreshed, retrying request`);let y=m(),o=await Q(y);if(o.status!==401)return o;$(`[bridge:api] ${z}: Retry after refresh also got 401`)}else $(`[bridge:api] ${z}: Token refresh failed`);return X}return{async registerBridgeEnvironment(Q){$(`[bridge:api] POST /v1/environments/bridge bridgeId=${Q.bridgeId}`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/environments/bridge`,{machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType},...Q.reuseEnvironmentId&&{environment_id:Q.reuseEnvironmentId}},{headers:x(H),timeout:15000,validateStatus:(X)=>X<500}),"Registration");return $J(z.status,z.data,"Registration"),$(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),$(`[bridge:api] >>> ${OJ({machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType}})}`),$(`[bridge:api] <<< ${OJ(z.data)}`),z.data},async pollForWork(Q,z,H,X){g(Q,"environmentId");let R=L;L=0;let y=await QJ.get(`${K.baseUrl}/v1/environments/${Q}/work/poll`,{headers:x(z),params:X!==void 0?{reclaim_older_than_ms:X}:void 0,timeout:1e4,signal:H,validateStatus:(o)=>o<500});if($J(y.status,y.data,"Poll"),!y.data){if(L=R+1,L===1||L%N===0)$(`[bridge:api] GET .../work/poll -> ${y.status} (no work, ${L} consecutive empty polls)`);return null}return $(`[bridge:api] GET .../work/poll -> ${y.status} workId=${y.data.id} type=${y.data.data?.type}${y.data.data?.id?` sessionId=${y.data.data.id}`:""}`),$(`[bridge:api] <<< ${OJ(y.data)}`),y.data},async acknowledgeWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/ack`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/ack`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"Acknowledge"),$(`[bridge:api] POST .../work/${z}/ack -> ${X.status}`)},async stopWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/stop force=${H}`);let X=await h((R)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/stop`,{force:H},{headers:x(R),timeout:1e4,validateStatus:(y)=>y<500}),"StopWork");$J(X.status,X.data,"StopWork"),$(`[bridge:api] POST .../work/${z}/stop -> ${X.status}`)},async deregisterEnvironment(Q){g(Q,"environmentId"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q}`);let z=await h((H)=>QJ.delete(`${K.baseUrl}/v1/environments/bridge/${Q}`,{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"Deregister");$J(z.status,z.data,"Deregister"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q} -> ${z.status}`)},async archiveSession(Q){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/archive`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/sessions/${Q}/archive`,{},{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"ArchiveSession");if(z.status===409){$(`[bridge:api] POST /v1/sessions/${Q}/archive -> 409 (already archived)`);return}$J(z.status,z.data,"ArchiveSession"),$(`[bridge:api] POST /v1/sessions/${Q}/archive -> ${z.status}`)},async reconnectSession(Q,z){g(Q,"environmentId"),g(z,"sessionId"),$(`[bridge:api] POST /v1/environments/${Q}/bridge/reconnect session_id=${z}`);let H=await h((X)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/bridge/reconnect`,{session_id:z},{headers:x(X),timeout:1e4,validateStatus:(R)=>R<500}),"ReconnectSession");$J(H.status,H.data,"ReconnectSession"),$(`[bridge:api] POST .../bridge/reconnect -> ${H.status}`)},async heartbeatWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/heartbeat`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/heartbeat`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});return $J(X.status,X.data,"Heartbeat"),$(`[bridge:api] POST .../work/${z}/heartbeat -> ${X.status} lease_extended=${X.data.lease_extended} state=${X.data.state}`),X.data},async sendPermissionResponseEvent(Q,z,H){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/events type=${z.type}`);let X=await QJ.post(`${K.baseUrl}/v1/sessions/${Q}/events`,{events:[z]},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"SendPermissionResponseEvent"),$(`[bridge:api] POST /v1/sessions/${Q}/events -> ${X.status}`),$(`[bridge:api] >>> ${OJ({events:[z]})}`),$(`[bridge:api] <<< ${OJ(X.data)}`)}}}function $J(K,$,L){if(K===200||K===204)return;let N=ZQ($),x=BZ($);switch(K){case 401:throw new zJ(`${L}: Authentication failed (401)${N?`: ${N}`:""}. ${vJ}`,401,x);case 403:throw new zJ(SJ(x)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${L}: Access denied (403)${N?`: ${N}`:""}. Check your organization permissions.`,403,x);case 404:throw new zJ(N??`${L}: Not found (404). Remote Control may not be available for this organization.`,404,x);case 410:throw new zJ(N??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,x??"environment_expired");case 429:throw Error(`${L}: Rate limited (429). Polling too frequently.`);default:throw Error(`${L}: Failed with status ${K}${N?`: ${N}`:""}`)}}function SJ(K){if(!K)return!1;return K.includes("expired")||K.includes("lifetime")}function zQ(K){if(K.status!==403)return!1;return K.message.includes("external_poll_sessions")||K.message.includes("environments:manage")}function BZ(K){if(K&&typeof K==="object"){if("error"in K&&K.error&&typeof K.error==="object"&&"type"in K.error&&typeof K.error.type==="string")return K.error.type}return}NQ();UZ();RZ();yZ();_Q();wZ();fZ();FZ();PZ();mJ();function KQ(K){let $=new AbortController;function L(){$.abort(),$=new AbortController}function N(){let x=new AbortController,m=()=>x.abort();if(K.aborted||$.signal.aborted)return x.abort(),{signal:x.signal,cleanup:()=>{}};K.addEventListener("abort",m,{once:!0});let h=$.signal;return h.addEventListener("abort",m,{once:!0}),{signal:x.signal,cleanup:()=>{K.removeEventListener("abort",m),h.removeEventListener("abort",m)}}}return{signal:N,wake:L}}qQ();MZ();var DZ=2000,XQ=60000,jQ=900000,EZ=0;async function hQ(K){let{dir:$,machineName:L,branch:N,gitRepoUrl:x,title:m,baseUrl:h,sessionIngressUrl:Q,workerType:z,getAccessToken:H,createSession:X,archiveSession:R,getCurrentTitle:y=()=>m,toSDKMessages:o=()=>{throw Error("BridgeCoreParams.toSDKMessages not provided. Pass it if you use writeMessages() or initialMessages — daemon callers that only use writeSdkMessages() never hit this path.")},onAuth401:T,getPollIntervalConfig:k=()=>dJ,initialHistoryCap:v=200,initialMessages:B,previouslyFlushedUUIDs:d,onInboundMessage:l,onPermissionResponse:KJ,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D,onStateChange:P,onUserMessage:a,perpetual:I,initialSSESequenceNum:s=0}=K,F=++EZ,{writeBridgePointer:c,clearBridgePointer:YJ,readBridgePointer:O}=await import("./bridgePointer-0.5.10-h727df9t.mjs"),A=I?await O($):null,W=A?.source==="repl"?A:null;J(`[bridge:repl] initBridgeCore #${F} starting (initialMessages=${B?.length??0}${W?` perpetual prior=env:${W.environmentId}`:""})`);let C=$Q({baseUrl:h,getAccessToken:H,runnerVersion:"99.0.0",onDebug:J,onAuth401:T,getTrustedDeviceToken:xQ}),XJ={dir:$,machineName:L,branch:N,gitRepoUrl:x,maxSessions:1,spawnMode:"single-session",verbose:!1,sandbox:!1,bridgeId:YQ(),workerType:z,environmentId:YQ(),reuseEnvironmentId:W?.environmentId,apiBaseUrl:h,sessionIngressUrl:Q},q,PJ;try{let Z=await C.registerBridgeEnvironment(XJ);q=Z.environment_id,PJ=Z.environment_secret}catch(Z){if(ZJ("registration_failed",`[bridge:repl] Environment registration failed: ${u(Z)}`),W)await YJ($);return P?.("failed",u(Z)),null}J(`[bridge:repl] Environment registered: ${q}`),_J("info","bridge_repl_env_registered"),w("tengu_bridge_repl_env_registered",{});async function tJ(Z,j){if(q!==Z)return J(`[bridge:repl] Env mismatch (requested ${Z}, got ${q}) — cannot reconnect in place`),!1;let U=OQ(j),G=U===j?[j]:[j,U];for(let E of G)try{return await C.reconnectSession(q,E),J(`[bridge:repl] Reconnected session ${E} in place on env ${q}`),!0}catch(r){J(`[bridge:repl] reconnectSession(${E}) failed: ${u(r)}`)}return J("[bridge:repl] reconnectSession exhausted — falling through to fresh session"),!1}let FJ=W?await tJ(W.environmentId,W.sessionId):!1;if(W&&!FJ)await YJ($);let V;if(FJ&&W){if(V=W.sessionId,J(`[bridge:repl] Perpetual session reused: ${V}`),B&&d)for(let Z of B)d.add(Z.uuid)}else{let Z=await X({environmentId:q,title:m,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!Z)return J("[bridge:repl] Session creation failed, deregistering environment"),w("tengu_bridge_repl_session_failed",{}),await C.deregisterEnvironment(q).catch(()=>{}),P?.("failed","Session creation failed"),null;V=Z,J(`[bridge:repl] Session created: ${V}`)}await c($,{sessionId:V,environmentId:q,source:"repl"}),_J("info","bridge_repl_session_created"),w("tengu_bridge_repl_started",{has_initial_messages:!!(B&&B.length>0),inProtectedNamespace:GQ()});let fJ=new Set;if(B)for(let Z of B)fJ.add(Z.uuid);let jJ=new uJ(2000);for(let Z of fJ)jJ.add(Z);let oJ=new uJ(2000),e=new AbortController,Y=null,WJ=0,i=FJ?s:0,p=null,GJ=null,nJ=KQ(e.signal),xJ=nJ.wake,HZ=nJ.signal,JJ=new CQ,wJ=!a,DJ=3,VJ=0,qJ=null;async function sJ(){if(qJ)return qJ;qJ=WZ();try{return await qJ}finally{qJ=null}}async function WZ(){if(VJ++,WJ++,J(`[bridge:repl] Reconnecting after env lost (attempt ${VJ}/${DJ})`),VJ>DJ)return J(`[bridge:repl] Environment reconnect limit reached (${DJ}), giving up`),!1;if(Y){let G=Y.getLastSequenceNum();if(G>i)i=G;Y.close(),Y=null}if(xJ(),JJ.drop(),p){let G=p;if(await C.stopWork(q,G,!1).catch(()=>{}),p!==G)return J("[bridge:repl] Poll loop recovered during stopWork await — deferring to it"),VJ=0,!0;p=null,GJ=null}if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted by teardown"),!1;let Z=q;XJ.reuseEnvironmentId=Z;try{let G=await C.registerBridgeEnvironment(XJ);q=G.environment_id,PJ=G.environment_secret}catch(G){return XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Environment re-registration failed: ${u(G)}`),!1}if(XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Re-registered: requested=${Z} got=${q}`),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after env registration, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;if(Y!==null)return J("[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it"),VJ=0,!0;if(await tJ(Z,V))return w("tengu_bridge_repl_reconnected_in_place",{}),VJ=0,!0;if(q!==Z)w("tengu_bridge_repl_env_expired_fresh_session",{});if(await R(V),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after archive, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;let j=y(),U=await X({environmentId:q,title:j,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!U)return J("[bridge:repl] Session creation failed during reconnection"),!1;if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted after session creation, cleaning up"),await R(U),!1;return V=U,AQ(LQ(U)).catch(()=>{}),i=0,oJ.clear(),wJ=!a,J(`[bridge:repl] Re-created session: ${V}`),await c($,{sessionId:V,environmentId:q,source:"repl"}),d?.clear(),VJ=0,!0}function EJ(){return H()}function rJ(){let Z=JJ.end();if(Z.length===0)return;if(!Y){J(`[bridge:repl] Cannot drain ${Z.length} pending message(s): no transport`);return}for(let G of Z)jJ.add(G.uuid);let U=o(Z).map((G)=>({...G,session_id:V}));J(`[bridge:repl] Drained ${Z.length} pending message(s) after flush`),Y.writeBatch(U)}let UJ=null;function CJ(){UJ?.()}function GZ(Z){if(J(`[bridge:repl] Transport permanently closed: code=${Z}`),w("tengu_bridge_repl_ws_closed",{code:Z}),Y){let U=Y.getLastSequenceNum();if(U>i)i=U;Y=null}xJ();let j=JJ.drop();if(j>0)J(`[bridge:repl] Dropping ${j} pending message(s) on transport close (code=${Z})`,{level:"warn"});if(Z===1000){P?.("failed","session ended"),e.abort(),CJ();return}P?.("reconnecting",`Remote Control connection lost (code ${Z})`),J(`[bridge:repl] Transport reconnect budget exhausted (code=${Z}), attempting env reconnect`),sJ().then((U)=>{if(U)return;if(e.signal.aborted)return;J("[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down"),w("tengu_bridge_repl_reconnect_failed",{close_code:Z}),P?.("failed","reconnection failed"),CJ()})}let qZ={api:C,getCredentials:()=>({environmentId:q,environmentSecret:PJ}),signal:e.signal,getPollIntervalConfig:k,onStateChange:P,getWsState:()=>Y?.getStateLabel()??"null",isAtCapacity:()=>Y!==null,capacitySignal:HZ,onFatalError:CJ,getHeartbeatInfo:()=>{if(!p||!GJ)return null;return{environmentId:q,workId:p,sessionToken:GJ}},onHeartbeatFatal:(Z)=>{if(J(`[bridge:repl] heartbeatWork fatal (status=${Z.status}) — tearing down work item for fast re-dispatch`),Y){let j=Y.getLastSequenceNum();if(j>i)i=j;Y.close(),Y=null}if(JJ.drop(),p)C.stopWork(q,p,!1).catch((j)=>{J(`[bridge:repl] stopWork after heartbeat fatal: ${u(j)}`)});p=null,GJ=null,xJ(),P?.("reconnecting","Work item lease expired, fetching fresh token")},async onEnvironmentLost(){if(!await sJ())return null;return{environmentId:q,environmentSecret:PJ}},onWorkReceived:(Z,j,U,G)=>{if(Y?.isConnectedStatus())J(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${U})`);if(J(`[bridge:repl] Work received: workId=${U} workSessionId=${Z} currentSessionId=${V} match=${lJ(Z,V)}`),c($,{sessionId:V,environmentId:q,source:"repl"}),!lJ(Z,V)){J(`[bridge:repl] Rejecting foreign session: expected=${V} got=${Z}`);return}p=U,GJ=j;let E=G||WQ(process.env.CLAUDE_BRIDGE_USE_CCR_V2),r;if(!E){if(r=EJ(),!r){J("[bridge:repl] No OAuth token available for session ingress, skipping work");return}IJ(r)}if(w("tengu_bridge_repl_work_received",{}),Y){let M=Y;Y=null;let f=M.getLastSequenceNum();if(f>i)i=f;M.close()}JJ.deactivate();let LZ=(M)=>UQ(M,{transport:Y,sessionId:V,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D}),bJ=!1,JQ=(M)=>{if(Y=M,M.setOnConnect(()=>{if(Y!==M)return;if(J("[bridge:repl] Ingress transport connected"),w("tengu_bridge_repl_ws_connected",{}),!E){let f=EJ();if(f)IJ(f)}if(kJ=!1,!bJ&&B&&B.length>0){bJ=!0;let f=v,t=B.filter((MJ)=>cJ(MJ)&&!d?.has(MJ.uuid)),NJ=f>0&&t.length>f?t.slice(-f):t;if(NJ.length<t.length)J(`[bridge:repl] Capped initial flush: ${t.length} -> ${NJ.length} (cap=${f})`),w("tengu_bridge_repl_history_capped",{eligible_count:t.length,capped_count:NJ.length});let AJ=o(NJ);if(AJ.length>0){J(`[bridge:repl] Flushing ${AJ.length} initial message(s) via transport`);let MJ=AJ.map((LJ)=>({...LJ,session_id:V})),QQ=M.droppedBatchCount;M.writeBatch(MJ).then(()=>{if(M.droppedBatchCount>QQ){J(`[bridge:repl] Initial flush dropped ${M.droppedBatchCount-QQ} batch(es) — not marking ${AJ.length} UUID(s) as flushed`);return}if(d){for(let LJ of AJ)if(LJ.uuid)d.add(LJ.uuid)}}).catch((LJ)=>J(`[bridge:repl] Initial flush failed: ${LJ}`)).finally(()=>{if(Y!==M)return;rJ(),P?.("connected")})}else rJ(),P?.("connected")}else if(!JJ.active)P?.("connected")}),M.setOnData((f)=>{PQ(f,jJ,oJ,l,KJ,LZ)}),M.setOnClose((f)=>{if(Y!==M)return;GZ(f)}),!bJ&&B&&B.length>0)JJ.start();M.connect()};if(WJ++,E){let M=wQ(h,Z),f=WJ;J(`[bridge:repl] CCR v2: sessionUrl=${M} session=${Z} gen=${f}`),EQ({sessionUrl:M,ingressToken:j,sessionId:Z,initialSequenceNum:i}).then((t)=>{if(e.signal.aborted){t.close();return}if(f!==WJ){J(`[bridge:repl] CCR v2: discarding stale handshake gen=${f} current=${WJ}`),t.close();return}JQ(t)},(t)=>{if(J(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${u(t)}`,{level:"error"}),w("tengu_bridge_repl_ccr_v2_init_failed",{}),f!==WJ)return;if(p)C.stopWork(q,p,!1).catch((NJ)=>{J(`[bridge:repl] stopWork after v2 init failure: ${u(NJ)}`)}),p=null,GJ=null;xJ()})}else{let M=fQ(Q,Z);J(`[bridge:repl] Ingress URL: ${M}`),J(`[bridge:repl] Creating HybridTransport: session=${Z}`);let f=r??"";JQ(DQ(new MQ(new URL(M),{Authorization:`Bearer ${f}`,"anthropic-version":"2023-06-01"},Z,()=>({Authorization:`Bearer ${EJ()??f}`,"anthropic-version":"2023-06-01"}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{P?.("reconnecting","Lost sync with Remote Control — events could not be delivered"),xJ()}})))}}};CZ(qZ);let hJ=I?setInterval(()=>{if(qJ)return;c($,{sessionId:V,environmentId:q,source:"repl"})},3600000):null;hJ?.unref?.();let eJ=k().session_keepalive_interval_v2_ms,TJ=eJ>0?setInterval(()=>{if(!Y)return;J("[bridge:repl] keep_alive sent"),Y.write({type:"keep_alive"}).catch((Z)=>{J(`[bridge:repl] keep_alive write failed: ${u(Z)}`)})},eJ):null;TJ?.unref?.();let kJ=!1;UJ=async()=>{if(kJ){J(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${q} session=${V}`);return}kJ=!0;let Z=Date.now();if(J(`[bridge:repl] Teardown starting: env=${q} session=${V} workId=${p??"none"} transportState=${Y?.getStateLabel()??"null"}`),hJ!==null)clearInterval(hJ);if(TJ!==null)clearInterval(TJ);if(e.abort(),J("[bridge:repl] Teardown: poll loop aborted"),Y){let G=Y.getLastSequenceNum();if(G>i)i=G}if(I){Y=null,JJ.drop(),await c($,{sessionId:V,environmentId:q,source:"repl"}),J(`[bridge:repl] Teardown (perpetual): leaving env=${q} session=${V} alive on server, duration=${Date.now()-Z}ms`);return}let j=Y;if(Y=null,JJ.drop(),j)j.write(pJ(V));let U=p?C.stopWork(q,p,!0).then(()=>{J("[bridge:repl] Teardown: stopWork completed")}).catch((G)=>{J(`[bridge:repl] Teardown stopWork failed: ${u(G)}`)}):Promise.resolve();await Promise.all([U,R(V)]),j?.close(),J("[bridge:repl] Teardown: transport closed"),await C.deregisterEnvironment(q).catch((G)=>{J(`[bridge:repl] Teardown deregister failed: ${u(G)}`)}),await YJ($),J(`[bridge:repl] Teardown complete: env=${q} duration=${Date.now()-Z}ms`)};let NZ=HQ(()=>UJ?.());return J(`[bridge:repl] Ready: env=${q} session=${V}`),P?.("ready"),{get bridgeSessionId(){return V},get environmentId(){return q},getSSESequenceNum(){let Z=Y?.getLastSequenceNum()??0;return Math.max(i,Z)},sessionIngressUrl:Q,writeMessages(Z){let j=Z.filter((E)=>cJ(E)&&!fJ.has(E.uuid)&&!jJ.has(E.uuid));if(j.length===0)return;if(!wJ)for(let E of j){let r=yQ(E);if(r!==void 0&&a?.(r,V)){wJ=!0;break}}if(JJ.enqueue(...j)){J(`[bridge:repl] Queued ${j.length} message(s) during initial flush`);return}if(!Y){let E=j.map((r)=>r.type).join(",");J(`[bridge:repl] Transport not configured, dropping ${j.length} message(s) [${E}] for session=${V}`,{level:"warn"});return}for(let E of j)jJ.add(E.uuid);J(`[bridge:repl] Sending ${j.length} message(s) via transport`);let G=o(j).map((E)=>({...E,session_id:V}));Y.writeBatch(G)},writeSdkMessages(Z){let j=Z.filter((G)=>!G.uuid||!jJ.has(G.uuid));if(j.length===0)return;if(!Y){J(`[bridge:repl] Transport not configured, dropping ${j.length} SDK message(s) for session=${V}`,{level:"warn"});return}for(let G of j)if(G.uuid)jJ.add(G.uuid);let U=j.map((G)=>({...G,session_id:V}));Y.writeBatch(U)},sendControlRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_request");return}let j={...Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_request request_id=${Z.request_id}`)},sendControlResponse(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_response");return}let j={...Z,session_id:V};Y.write(j),J("[bridge:repl] Sent control_response")},sendControlCancelRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_cancel_request");return}let j={type:"control_cancel_request",request_id:Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_cancel_request request_id=${Z}`)},sendResult(){if(!Y){J(`[bridge:repl] sendResult: skipping, transport not configured session=${V}`);return}Y.write(pJ(V)),J(`[bridge:repl] Sent result for session=${V}`)},async teardown(){NZ(),await UJ?.(),J("[bridge:repl] Torn down"),w("tengu_bridge_repl_teardown",{})}}}async function CZ({api:K,getCredentials:$,signal:L,onStateChange:N,onWorkReceived:x,onEnvironmentLost:m,getWsState:h,isAtCapacity:Q,capacitySignal:z,onFatalError:H,getPollIntervalConfig:X=()=>dJ,getHeartbeatInfo:R,onHeartbeatFatal:y}){J(`[bridge:repl] Starting work poll loop for env=${$().environmentId}`);let T=0,k=null,v=null,B=0,d=!1;while(!L.aborted){let{environmentId:l,environmentSecret:KJ}=$(),n=X();try{let _=await K.pollForWork(l,KJ,L,n.reclaim_older_than_ms);if(B=0,T>0)J(`[bridge:repl] Poll recovered after ${T} consecutive error(s)`),T=0,k=null,v=null,N?.("ready");if(!_){let D=d;if(d=!1,Q?.()&&z&&!D){let P=n.poll_interval_ms_at_capacity;if(n.non_exclusive_heartbeat_interval_ms>0&&R){w("tengu_bridge_heartbeat_mode_entered",{heartbeat_interval_ms:n.non_exclusive_heartbeat_interval_ms});let I=P>0?Date.now()+P:null,s=!1,F=0;while(!L.aborted&&Q()&&(I===null||Date.now()<I)){let YJ=X();if(YJ.non_exclusive_heartbeat_interval_ms<=0)break;let O=R();if(!O)break;let A=z();try{await K.heartbeatWork(O.environmentId,O.workId,O.sessionToken)}catch(W){if(J(`[bridge:repl:heartbeat] Failed: ${u(W)}`),W instanceof zJ){if(A.cleanup(),w("tengu_bridge_heartbeat_error",{status:W.status,error_type:W.status===401||W.status===403?"auth_failed":"fatal"}),y)y(W),J(`[bridge:repl:heartbeat] Fatal (status=${W.status}), work state cleared — fast-polling for re-dispatch`);else s=!0;break}}F++,await BJ(YJ.non_exclusive_heartbeat_interval_ms,A.signal),A.cleanup()}let c=s?"error":L.aborted?"shutdown":!Q()?"capacity_changed":I!==null&&Date.now()>=I?"poll_due":"config_disabled";if(w("tengu_bridge_heartbeat_mode_exited",{reason:c,heartbeat_cycles:F}),!s){if(c==="poll_due")J(`[bridge:repl] Heartbeat poll_due after ${F} cycles — falling through to pollForWork`);continue}}let a=P>0?P:n.non_exclusive_heartbeat_interval_ms;if(a>0){let I=z(),s=Date.now();await BJ(a,I.signal),I.cleanup();let F=Date.now()-s-a;if(F>60000)J(`[bridge:repl] At-capacity sleep overran by ${Math.round(F/1000)}s — process suspension detected, forcing one fast-poll cycle`),w("tengu_bridge_repl_suspension_detected",{overrun_ms:F}),d=!0}}else await BJ(n.poll_interval_ms_not_at_capacity,L);continue}let S;try{S=FQ(_.secret)}catch(D){J(`[bridge:repl] Failed to decode work secret: ${u(D)}`),w("tengu_bridge_repl_work_secret_failed",{}),await K.stopWork(l,_.id,!1).catch(()=>{});continue}J(`[bridge:repl] Acknowledging workId=${_.id}`);try{await K.acknowledgeWork(l,_.id,S.session_ingress_token)}catch(D){J(`[bridge:repl] Acknowledge failed workId=${_.id}: ${u(D)}`)}if(_.data.type==="healthcheck"){J("[bridge:repl] Healthcheck received");continue}if(_.data.type==="session"){let D=_.data.id;try{g(D,"session_id")}catch{J(`[bridge:repl] Invalid session_id in work: ${D}`);continue}x(D,S.session_ingress_token,_.id,S.use_code_sessions===!0),J("[bridge:repl] Work accepted, continuing poll loop")}}catch(_){if(L.aborted)break;if(_ instanceof zJ&&_.status===404&&m){let F=$().environmentId;if(l!==F){J(`[bridge:repl] Stale poll error for old env=${l}, current env=${F} — skipping onEnvironmentLost`),T=0,k=null;continue}if(B++,J(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${B}/3)`),w("tengu_bridge_repl_env_lost",{attempt:B}),B>3){J("[bridge:repl] Environment re-registration limit reached (3), giving up"),N?.("failed","Environment deleted and re-registration limit reached"),H?.();break}N?.("reconnecting","environment lost, recreating session");let c=await m();if(L.aborted)break;if(c){T=0,k=null,N?.("ready"),J(`[bridge:repl] Re-registered environment: ${c.environmentId}`);continue}N?.("failed","Environment deleted and re-registration failed"),H?.();break}if(_ instanceof zJ){let F=SJ(_.errorType),c=zQ(_);if(J(`[bridge:repl] Fatal poll error: ${_.message} (status=${_.status}, type=${_.errorType??"unknown"})${c?" (suppressed)":""}`),w("tengu_bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),_J(F?"info":"error","bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),!c)N?.("failed",F?"session expired · /remote-control to reconnect":_.message);H?.();break}let S=Date.now();if(v!==null&&S-v>XQ*2)J(`[bridge:repl] Detected system sleep (${Math.round((S-v)/1000)}s gap), resetting poll error budget`),_J("info","bridge_repl_poll_sleep_detected",{gapMs:S-v}),T=0,k=null;if(v=S,T++,k===null)k=S;let D=S-k,P=RQ(_),a=BQ(_),I=h?.()??"unknown";if(J(`[bridge:repl] Poll error (attempt ${T}, elapsed ${Math.round(D/1000)}s, ws=${I}): ${a}`),w("tengu_bridge_repl_poll_error",{status:P,consecutiveErrors:T,elapsedMs:D}),T===1)N?.("reconnecting",a);if(D>=jQ){J(`[bridge:repl] Poll failures exceeded ${jQ/1000}s (${T} errors), giving up`),_J("info","bridge_repl_poll_give_up"),w("tengu_bridge_repl_poll_give_up",{consecutiveErrors:T,elapsedMs:D,lastStatus:P}),N?.("failed","connection to server lost");break}let s=Math.min(DZ*2**(T-1),XQ);if(X().non_exclusive_heartbeat_interval_ms>0){let F=R?.();if(F)try{await K.heartbeatWork(F.environmentId,F.workId,F.sessionToken)}catch{}}await BJ(s,L)}}J(`[bridge:repl] Work poll loop ended (aborted=${L.aborted}) env=${$().environmentId}`)}_Q();async function i6(K){let{onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,initialMessages:z,getMessages:H,previouslyFlushedUUIDs:X,initialName:R,perpetual:y,outboundOnly:o,tags:T}=K??{};if(aQ(sQ),!await oQ())return ZJ("not_enabled","[bridge:repl] Skipping: bridge not enabled"),null;if(!HJ())return ZJ("no_oauth","[bridge:repl] Skipping: no OAuth tokens"),Q?.("failed","/login"),null;if(await iQ(),!tQ("allow_remote_control"))return ZJ("policy_denied","[bridge:repl] Skipping: allow_remote_control policy not allowed"),Q?.("failed","disabled by your organization's policy"),null;if(!eQ()){let O=cQ();if(O.bridgeOauthDeadExpiresAt!=null&&(O.bridgeOauthDeadFailCount??0)>=3&&gJ()?.expiresAt===O.bridgeOauthDeadExpiresAt)return J(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${O.bridgeOauthDeadFailCount} times)`),null;await lQ();let A=gJ();if(A&&A.expiresAt!==null&&A.expiresAt<=Date.now()){ZJ("oauth_expired_unrefreshable","[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)"),Q?.("failed","/login");let W=A.expiresAt;return IQ((b)=>({...b,bridgeOauthDeadExpiresAt:W,bridgeOauthDeadFailCount:b.bridgeOauthDeadExpiresAt===W?(b.bridgeOauthDeadFailCount??0)+1:1})),null}}let k=JZ(),v=`remote-control-${gQ()}`,B=!1,d=!1;if(R)v=R,B=!0,d=!0;else{let O=RJ(),A=O?yJ(O):void 0;if(A)v=A,B=!0,d=!0;else if(z&&z.length>0)for(let W=z.length-1;W>=0;W--){let b=z[W];if(b.type!=="user"||b.isMeta||b.toolUseResult||b.isCompactSummary||b.origin&&b.origin.kind!=="human"||YZ(b))continue;let C=dQ(b.message.content);if(!C)continue;let XJ=kQ(C);if(!XJ)continue;v=XJ,B=!0;break}}let l=0,KJ,n=0,_=(O,A,W)=>{B=!0,v=O,J(`[bridge:repl] derived title from message ${W}: ${O}`),KZ(A,O,{baseUrl:k,getAccessToken:HJ}).catch(()=>{})},S=(O,A)=>{let W=++n,b=l;ZZ(O,AbortSignal.timeout(15000)).then((C)=>{if(C&&W===n&&KJ===A&&!yJ(RJ()))_(C,A,b)})},D=(O,A)=>{if(d||yJ(RJ()))return!0;if(KJ!==void 0&&KJ!==A)l=0;if(KJ=A,l++,l===1&&!B){let W=kQ(O);if(W)_(W,A,l);S(O,A)}else if(l===3){let W=H?.(),b=W?QZ(XZ(W)):O;S(b,A)}return l>=3},P=mQ("tengu_bridge_initial_history_cap",200,300000),a=await uQ();if(!a)return ZJ("no_org_uuid","[bridge:repl] Skipping: no org UUID"),Q?.("failed","/login"),null;if(nQ()&&!y){let O=await VZ();if(O)return ZJ("version_too_old",`[bridge:repl] Skipping: ${O}`,!0),Q?.("failed","run `claude update` to upgrade"),null;J("[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)");let{initEnvLessBridgeCore:A}=await import("./remoteBridgeCore-0.5.10-s9tnpv93.mjs");return A({baseUrl:k,orgUUID:a,title:v,getAccessToken:HJ,onAuth401:aJ,toSDKMessages:iJ,initialHistoryCap:P,initialMessages:z,onInboundMessage:$,onUserMessage:D,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,outboundOnly:o,tags:T})}let I=rQ();if(I)return ZJ("version_too_old",`[bridge:repl] Skipping: ${I}`),Q?.("failed","run `claude update` to upgrade"),null;let s=await vQ(),F=await SQ(),c=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||k,YJ="claude_code";return hQ({dir:bQ(),machineName:tZ(),branch:s,gitRepoUrl:F,title:v,baseUrl:k,sessionIngressUrl:c,workerType:YJ,getAccessToken:HJ,createSession:(O)=>$Z({...O,events:[],baseUrl:k,getAccessToken:HJ}),archiveSession:(O)=>zZ(O,{baseUrl:k,getAccessToken:HJ,timeoutMs:1500}).catch((A)=>{J(`[bridge:repl] archiveBridgeSession threw: ${u(A)}`,{level:"error"})}),getCurrentTitle:()=>yJ(RJ())??v,onUserMessage:D,toSDKMessages:iJ,onAuth401:aJ,getPollIntervalConfig:jZ,initialHistoryCap:P,initialMessages:z,previouslyFlushedUUIDs:X,onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,perpetual:y})}var TQ=50;function kQ(K){let $=pQ(K),N=(/^(.*?[.!?])\s/.exec($)?.[1]??$).replace(/\s+/g," ").trim();if(!N)return;return N.length>TQ?N.slice(0,TQ-1)+"…":N}export{i6 as initReplBridge};
@@ -0,0 +1 @@
1
+ import{AX as F,BX as G,EX as H,FX as I,GX as J,HX as K,IW as m,IX as L,JV as a,JX as M,MV as b,NV as c,NW as n,PW as o,QV as d,TV as e,UV as f,VV as g,VW as p,WV as h,aX as q,cX as r,eX as s,fW as i,gW as j,iX as t,kX as u,lX as v,mX as w,nX as x,oX as y,pX as z,qW as k,qX as A,sX as B,tX as C,uW as l,yX as D,zX as E}from"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import"./cli-0.5.10-1sd567wn.mjs";M();export{k as wrapText,g as useThemeSetting,f as useTheme,A as useTerminalViewport,I as useTerminalTitle,m as useTerminalFocus,H as useTabStatus,d as useStdin,G as useSelection,h as usePreviewTheme,F as useInterval,D as useInput,C as useApp,E as useAnimationTimer,B as useAnimationFrame,a as supportsTabStatus,K as render,J as measureElement,L as createRoot,q as color,e as ThemeProvider,s as Text,j as TerminalFocusEvent,z as Spacer,y as RawAnsi,x as NoSelect,w as Newline,t as Link,i as InputEvent,l as FocusManager,c as EventEmitter,b as Event,p as ClickEvent,v as Button,r as Box,o as BaseText,n as BaseBox,u as Ansi};