@claudiolabs/claudin 0.5.7

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 (413) hide show
  1. package/LICENSE +207 -0
  2. package/README.md +91 -0
  3. package/bin/claudin +152 -0
  4. package/dist/chunks/AgentTool-0.5.7-0krqsszm.mjs +1 -0
  5. package/dist/chunks/App-0.5.7-k8c6xsbz.mjs +1 -0
  6. package/dist/chunks/ApproveApiKey-0.5.7-djmd358f.mjs +1 -0
  7. package/dist/chunks/AssistantSessionChooser-0.5.7-40f5p134.mjs +1 -0
  8. package/dist/chunks/AutoModeOptInDialog-0.5.7-dgpfkf7n.mjs +1 -0
  9. package/dist/chunks/BypassPermissionsModeDialog-0.5.7-m2n3zekg.mjs +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.7-8p2b9258.mjs +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-0.5.7-e11rkgsy.mjs +1 -0
  12. package/dist/chunks/DiffDialog-0.5.7-df3q0dyx.mjs +3 -0
  13. package/dist/chunks/Doctor-0.5.7-996gqph8.mjs +1 -0
  14. package/dist/chunks/Grove-0.5.7-7xphv8qp.mjs +1 -0
  15. package/dist/chunks/ITermBackend-0.5.7-rv5t26my.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.5.7-76awdeqe.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.5.7-d59ky2sv.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.5.7-nkkcryn5.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.5.7-v3jtvbkn.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.5.7-92navbez.mjs +1 -0
  21. package/dist/chunks/REPL-0.5.7-6zag11mg.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.5.7-hpgm4f1s.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.5.7-xrverbhp.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.5.7-xn5z7dt4.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.5.7-s29rrsak.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.5.7-3r5mn1za.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.5.7-k3c0537z.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.5.7-mybq3qz5.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.5.7-r4dhznyf.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.5.7-8emdm8j8.mjs +1 -0
  31. package/dist/chunks/add-dir-0.5.7-jwaavdc7.mjs +1 -0
  32. package/dist/chunks/agents-0.5.7-e7dajmrs.mjs +110 -0
  33. package/dist/chunks/agents-0.5.7-q2vtj7pt.mjs +3 -0
  34. package/dist/chunks/api-0.5.7-j8bn129y.mjs +1 -0
  35. package/dist/chunks/asciicast-0.5.7-rp1h8swq.mjs +1 -0
  36. package/dist/chunks/assistant-0.5.7-sfk22b3z.mjs +1 -0
  37. package/dist/chunks/auth-0.5.7-ez3n1qpx.mjs +1 -0
  38. package/dist/chunks/auth-0.5.7-khssh83t.mjs +1 -0
  39. package/dist/chunks/autoMode-0.5.7-ezn856pd.mjs +48 -0
  40. package/dist/chunks/autoUpdater-0.5.7-dkw2aw1e.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-0.5.7-9ejvx75r.mjs +1 -0
  42. package/dist/chunks/branch-0.5.7-cjbtbwg1.mjs +4 -0
  43. package/dist/chunks/bridgePointer-0.5.7-5z0vqchx.mjs +1 -0
  44. package/dist/chunks/btw-0.5.7-p3kbd1wf.mjs +1 -0
  45. package/dist/chunks/buddy-0.5.7-pa55rfb4.mjs +3 -0
  46. package/dist/chunks/cacache-0.5.7-anq54jwq.mjs +1 -0
  47. package/dist/chunks/cache-probe-0.5.7-6j5hzxc4.mjs +21 -0
  48. package/dist/chunks/cacheStats-0.5.7-e1byp2n2.mjs +4 -0
  49. package/dist/chunks/caches-0.5.7-w8n6wxaj.mjs +1 -0
  50. package/dist/chunks/claudeDesktop-0.5.7-5kkyx4pz.mjs +1 -0
  51. package/dist/chunks/claudemd-0.5.7-jb7byep9.mjs +1 -0
  52. package/dist/chunks/clear-0.5.7-tkh04z2c.mjs +1 -0
  53. package/dist/chunks/clearTerminal-0.5.7-mbqev32s.mjs +1 -0
  54. package/dist/chunks/cli-0.5.7-023jpnwm.mjs +2 -0
  55. package/dist/chunks/cli-0.5.7-08mn1pmc.mjs +5 -0
  56. package/dist/chunks/cli-0.5.7-0bv1xcbe.mjs +21 -0
  57. package/dist/chunks/cli-0.5.7-0df5m6td.mjs +2 -0
  58. package/dist/chunks/cli-0.5.7-0rvzfmhb.mjs +2 -0
  59. package/dist/chunks/cli-0.5.7-0s7wtvbz.mjs +2 -0
  60. package/dist/chunks/cli-0.5.7-1fmgwk5c.mjs +2 -0
  61. package/dist/chunks/cli-0.5.7-1kmeaqmc.mjs +2 -0
  62. package/dist/chunks/cli-0.5.7-20cz322w.mjs +2 -0
  63. package/dist/chunks/cli-0.5.7-23hg3t0h.mjs +2 -0
  64. package/dist/chunks/cli-0.5.7-258ytmbr.mjs +2 -0
  65. package/dist/chunks/cli-0.5.7-26pwg6gg.mjs +2 -0
  66. package/dist/chunks/cli-0.5.7-2h4rgwc9.mjs +2 -0
  67. package/dist/chunks/cli-0.5.7-2qxsy7jq.mjs +12 -0
  68. package/dist/chunks/cli-0.5.7-2tnvc3ka.mjs +2 -0
  69. package/dist/chunks/cli-0.5.7-2xm61gkr.mjs +5 -0
  70. package/dist/chunks/cli-0.5.7-2ytftsg5.mjs +2 -0
  71. package/dist/chunks/cli-0.5.7-31969syr.mjs +2 -0
  72. package/dist/chunks/cli-0.5.7-31hdc2nc.mjs +2 -0
  73. package/dist/chunks/cli-0.5.7-35yf0b84.mjs +2 -0
  74. package/dist/chunks/cli-0.5.7-3jrq7w6x.mjs +2 -0
  75. package/dist/chunks/cli-0.5.7-3xssm25z.mjs +2 -0
  76. package/dist/chunks/cli-0.5.7-469r2a5r.mjs +193 -0
  77. package/dist/chunks/cli-0.5.7-4eg4pktt.mjs +2 -0
  78. package/dist/chunks/cli-0.5.7-4gmpny6k.mjs +133 -0
  79. package/dist/chunks/cli-0.5.7-4zv4np07.mjs +2 -0
  80. package/dist/chunks/cli-0.5.7-500c5b8m.mjs +4 -0
  81. package/dist/chunks/cli-0.5.7-52mwnwy6.mjs +58 -0
  82. package/dist/chunks/cli-0.5.7-55zn2cct.mjs +4 -0
  83. package/dist/chunks/cli-0.5.7-5736yt36.mjs +2 -0
  84. package/dist/chunks/cli-0.5.7-5aghfr8k.mjs +3 -0
  85. package/dist/chunks/cli-0.5.7-5by4fby4.mjs +2 -0
  86. package/dist/chunks/cli-0.5.7-5e5xfeq6.mjs +2 -0
  87. package/dist/chunks/cli-0.5.7-5jaayymr.mjs +17 -0
  88. package/dist/chunks/cli-0.5.7-5jms2g5g.mjs +2 -0
  89. package/dist/chunks/cli-0.5.7-5kv9dgvn.mjs +2 -0
  90. package/dist/chunks/cli-0.5.7-5mrw857q.mjs +4 -0
  91. package/dist/chunks/cli-0.5.7-5q6tfz39.mjs +2 -0
  92. package/dist/chunks/cli-0.5.7-650e2qk4.mjs +18 -0
  93. package/dist/chunks/cli-0.5.7-67xxeffj.mjs +2 -0
  94. package/dist/chunks/cli-0.5.7-6d26vvaa.mjs +2 -0
  95. package/dist/chunks/cli-0.5.7-6g3w68ks.mjs +2 -0
  96. package/dist/chunks/cli-0.5.7-6gfay8ap.mjs +2 -0
  97. package/dist/chunks/cli-0.5.7-6gkpb0vw.mjs +2 -0
  98. package/dist/chunks/cli-0.5.7-6pssgqdn.mjs +2 -0
  99. package/dist/chunks/cli-0.5.7-6thqe6p4.mjs +3 -0
  100. package/dist/chunks/cli-0.5.7-73er78b7.mjs +15 -0
  101. package/dist/chunks/cli-0.5.7-7a9gq9ff.mjs +2 -0
  102. package/dist/chunks/cli-0.5.7-7hm7dxyp.mjs +2 -0
  103. package/dist/chunks/cli-0.5.7-7k456xwn.mjs +3 -0
  104. package/dist/chunks/cli-0.5.7-7mmyazqh.mjs +34 -0
  105. package/dist/chunks/cli-0.5.7-7rgsmfw7.mjs +3 -0
  106. package/dist/chunks/cli-0.5.7-7wyhqw17.mjs +2 -0
  107. package/dist/chunks/cli-0.5.7-82x8qaxx.mjs +2 -0
  108. package/dist/chunks/cli-0.5.7-89fcvfy0.mjs +2 -0
  109. package/dist/chunks/cli-0.5.7-8ac9d7r6.mjs +2 -0
  110. package/dist/chunks/cli-0.5.7-8ap24w7a.mjs +2 -0
  111. package/dist/chunks/cli-0.5.7-8e61g5bq.mjs +10 -0
  112. package/dist/chunks/cli-0.5.7-8sbq2qed.mjs +2 -0
  113. package/dist/chunks/cli-0.5.7-8sqyymdb.mjs +2 -0
  114. package/dist/chunks/cli-0.5.7-8ychjqct.mjs +16 -0
  115. package/dist/chunks/cli-0.5.7-93eaxn9a.mjs +2 -0
  116. package/dist/chunks/cli-0.5.7-93k1z52y.mjs +2 -0
  117. package/dist/chunks/cli-0.5.7-9acdh8nc.mjs +2 -0
  118. package/dist/chunks/cli-0.5.7-9jck3vts.mjs +15 -0
  119. package/dist/chunks/cli-0.5.7-9rbmn26q.mjs +24 -0
  120. package/dist/chunks/cli-0.5.7-9sysdak3.mjs +2 -0
  121. package/dist/chunks/cli-0.5.7-9ysat94v.mjs +2 -0
  122. package/dist/chunks/cli-0.5.7-9z55nm22.mjs +3 -0
  123. package/dist/chunks/cli-0.5.7-9zwbnq8g.mjs +2 -0
  124. package/dist/chunks/cli-0.5.7-a47hzz3r.mjs +2 -0
  125. package/dist/chunks/cli-0.5.7-aq7a3646.mjs +2 -0
  126. package/dist/chunks/cli-0.5.7-ayjrdmrk.mjs +2 -0
  127. package/dist/chunks/cli-0.5.7-b51h487f.mjs +2 -0
  128. package/dist/chunks/cli-0.5.7-bkptgahs.mjs +4 -0
  129. package/dist/chunks/cli-0.5.7-bnapjxz4.mjs +2 -0
  130. package/dist/chunks/cli-0.5.7-bzrvdrq4.mjs +2 -0
  131. package/dist/chunks/cli-0.5.7-c1mv1399.mjs +2 -0
  132. package/dist/chunks/cli-0.5.7-c9dtw94k.mjs +2 -0
  133. package/dist/chunks/cli-0.5.7-cakvh73p.mjs +2 -0
  134. package/dist/chunks/cli-0.5.7-d19d4v07.mjs +2 -0
  135. package/dist/chunks/cli-0.5.7-d4gtv7f7.mjs +2 -0
  136. package/dist/chunks/cli-0.5.7-de90yre1.mjs +2 -0
  137. package/dist/chunks/cli-0.5.7-dntg9qbj.mjs +133 -0
  138. package/dist/chunks/cli-0.5.7-dp3z7wkh.mjs +2 -0
  139. package/dist/chunks/cli-0.5.7-dr7n1fyv.mjs +20 -0
  140. package/dist/chunks/cli-0.5.7-e8eqdfnf.mjs +2 -0
  141. package/dist/chunks/cli-0.5.7-eer6xagb.mjs +2 -0
  142. package/dist/chunks/cli-0.5.7-esx85d2g.mjs +2 -0
  143. package/dist/chunks/cli-0.5.7-eyemfxtz.mjs +2 -0
  144. package/dist/chunks/cli-0.5.7-fx3gesdm.mjs +2 -0
  145. package/dist/chunks/cli-0.5.7-g2dd5t6j.mjs +2 -0
  146. package/dist/chunks/cli-0.5.7-g4n7dg2d.mjs +9 -0
  147. package/dist/chunks/cli-0.5.7-g7k0r0ea.mjs +5 -0
  148. package/dist/chunks/cli-0.5.7-g8dqk0se.mjs +2 -0
  149. package/dist/chunks/cli-0.5.7-gcnk0vke.mjs +6 -0
  150. package/dist/chunks/cli-0.5.7-gnq8vh0c.mjs +2 -0
  151. package/dist/chunks/cli-0.5.7-gy4csxb5.mjs +2 -0
  152. package/dist/chunks/cli-0.5.7-h9v4tqbs.mjs +24 -0
  153. package/dist/chunks/cli-0.5.7-hdcnw5y4.mjs +2 -0
  154. package/dist/chunks/cli-0.5.7-hhre0h51.mjs +2 -0
  155. package/dist/chunks/cli-0.5.7-hp25yk8y.mjs +2 -0
  156. package/dist/chunks/cli-0.5.7-hq4wbper.mjs +11 -0
  157. package/dist/chunks/cli-0.5.7-hw11qa05.mjs +3 -0
  158. package/dist/chunks/cli-0.5.7-hw3pyj8g.mjs +2 -0
  159. package/dist/chunks/cli-0.5.7-j7h72bgz.mjs +2 -0
  160. package/dist/chunks/cli-0.5.7-j8q5bja8.mjs +2 -0
  161. package/dist/chunks/cli-0.5.7-jf3f8gen.mjs +2 -0
  162. package/dist/chunks/cli-0.5.7-jga8kgpr.mjs +2 -0
  163. package/dist/chunks/cli-0.5.7-jptzskw1.mjs +2 -0
  164. package/dist/chunks/cli-0.5.7-jw2te6th.mjs +2 -0
  165. package/dist/chunks/cli-0.5.7-k11mzgcb.mjs +2 -0
  166. package/dist/chunks/cli-0.5.7-kctf48t4.mjs +7 -0
  167. package/dist/chunks/cli-0.5.7-knkzkqbw.mjs +2 -0
  168. package/dist/chunks/cli-0.5.7-kp9pg4sr.mjs +2 -0
  169. package/dist/chunks/cli-0.5.7-kvazvrra.mjs +2 -0
  170. package/dist/chunks/cli-0.5.7-ky5khwx2.mjs +2 -0
  171. package/dist/chunks/cli-0.5.7-m0841vt9.mjs +2 -0
  172. package/dist/chunks/cli-0.5.7-m4ekdyhj.mjs +2 -0
  173. package/dist/chunks/cli-0.5.7-m4wwfa6q.mjs +2 -0
  174. package/dist/chunks/cli-0.5.7-m5q27x96.mjs +2 -0
  175. package/dist/chunks/cli-0.5.7-m82d23hf.mjs +2 -0
  176. package/dist/chunks/cli-0.5.7-mdcw5fyw.mjs +4 -0
  177. package/dist/chunks/cli-0.5.7-mz4njeb9.mjs +39 -0
  178. package/dist/chunks/cli-0.5.7-mzfr99sc.mjs +67 -0
  179. package/dist/chunks/cli-0.5.7-p381d4sx.mjs +3 -0
  180. package/dist/chunks/cli-0.5.7-p4mv49ab.mjs +25 -0
  181. package/dist/chunks/cli-0.5.7-pse9qff7.mjs +2 -0
  182. package/dist/chunks/cli-0.5.7-pzjz115k.mjs +2 -0
  183. package/dist/chunks/cli-0.5.7-q0pq4367.mjs +9 -0
  184. package/dist/chunks/cli-0.5.7-q2e6xpch.mjs +5281 -0
  185. package/dist/chunks/cli-0.5.7-q6sgd9ng.mjs +12 -0
  186. package/dist/chunks/cli-0.5.7-q8v8naf8.mjs +2 -0
  187. package/dist/chunks/cli-0.5.7-qdcp748z.mjs +2 -0
  188. package/dist/chunks/cli-0.5.7-qdqrgv1q.mjs +2 -0
  189. package/dist/chunks/cli-0.5.7-qk0n5hqa.mjs +9 -0
  190. package/dist/chunks/cli-0.5.7-r4cdt1b9.mjs +50 -0
  191. package/dist/chunks/cli-0.5.7-ra5kv4tw.mjs +2 -0
  192. package/dist/chunks/cli-0.5.7-rb75eq83.mjs +2 -0
  193. package/dist/chunks/cli-0.5.7-rggstqv6.mjs +2 -0
  194. package/dist/chunks/cli-0.5.7-rr1yd8f3.mjs +4 -0
  195. package/dist/chunks/cli-0.5.7-rzts2ke3.mjs +2 -0
  196. package/dist/chunks/cli-0.5.7-s09knvta.mjs +3 -0
  197. package/dist/chunks/cli-0.5.7-s5nd54ga.mjs +3 -0
  198. package/dist/chunks/cli-0.5.7-sb3fjts4.mjs +2 -0
  199. package/dist/chunks/cli-0.5.7-sjd6g3n6.mjs +15 -0
  200. package/dist/chunks/cli-0.5.7-sjx0wm99.mjs +2 -0
  201. package/dist/chunks/cli-0.5.7-skfm51ta.mjs +44 -0
  202. package/dist/chunks/cli-0.5.7-sx7pr75m.mjs +2 -0
  203. package/dist/chunks/cli-0.5.7-t6mtpr04.mjs +2 -0
  204. package/dist/chunks/cli-0.5.7-t8z48kc2.mjs +4 -0
  205. package/dist/chunks/cli-0.5.7-tbga87q3.mjs +2 -0
  206. package/dist/chunks/cli-0.5.7-tc3vm4ra.mjs +2 -0
  207. package/dist/chunks/cli-0.5.7-tgq7dtyz.mjs +2 -0
  208. package/dist/chunks/cli-0.5.7-tpjjm1z2.mjs +45 -0
  209. package/dist/chunks/cli-0.5.7-tqn2ged5.mjs +2 -0
  210. package/dist/chunks/cli-0.5.7-twqt7rxq.mjs +6 -0
  211. package/dist/chunks/cli-0.5.7-vgc7nzef.mjs +2 -0
  212. package/dist/chunks/cli-0.5.7-vk8p3n59.mjs +2 -0
  213. package/dist/chunks/cli-0.5.7-vn5aht50.mjs +2 -0
  214. package/dist/chunks/cli-0.5.7-vvrg78m6.mjs +2 -0
  215. package/dist/chunks/cli-0.5.7-vy4r02pg.mjs +4 -0
  216. package/dist/chunks/cli-0.5.7-vyxaeh82.mjs +2 -0
  217. package/dist/chunks/cli-0.5.7-w024nwsf.mjs +2 -0
  218. package/dist/chunks/cli-0.5.7-w16wj21h.mjs +2 -0
  219. package/dist/chunks/cli-0.5.7-w1bf9y93.mjs +3 -0
  220. package/dist/chunks/cli-0.5.7-w2fb8g6y.mjs +2 -0
  221. package/dist/chunks/cli-0.5.7-w50j12vv.mjs +2 -0
  222. package/dist/chunks/cli-0.5.7-w6nex68w.mjs +2 -0
  223. package/dist/chunks/cli-0.5.7-wz2cbwxt.mjs +4 -0
  224. package/dist/chunks/cli-0.5.7-x0n9mq65.mjs +2 -0
  225. package/dist/chunks/cli-0.5.7-x1azmh1g.mjs +2 -0
  226. package/dist/chunks/cli-0.5.7-x1w96j6d.mjs +59 -0
  227. package/dist/chunks/cli-0.5.7-x7dabprd.mjs +2 -0
  228. package/dist/chunks/cli-0.5.7-x8t1aeey.mjs +2 -0
  229. package/dist/chunks/cli-0.5.7-xepvraxn.mjs +2 -0
  230. package/dist/chunks/cli-0.5.7-xn6deh04.mjs +6 -0
  231. package/dist/chunks/cli-0.5.7-y2vc4xb6.mjs +12 -0
  232. package/dist/chunks/cli-0.5.7-y3pa8ttm.mjs +2 -0
  233. package/dist/chunks/cli-0.5.7-yaywev87.mjs +2 -0
  234. package/dist/chunks/cli-0.5.7-ycj2xr53.mjs +3 -0
  235. package/dist/chunks/cli-0.5.7-yzncgfs4.mjs +18 -0
  236. package/dist/chunks/cli-0.5.7-z1n09m4p.mjs +2 -0
  237. package/dist/chunks/cli-0.5.7-z97pranc.mjs +2 -0
  238. package/dist/chunks/cli-0.5.7-za19q18c.mjs +2 -0
  239. package/dist/chunks/cli-0.5.7-zb8ztx8p.mjs +2 -0
  240. package/dist/chunks/cli-0.5.7-zkw2fx86.mjs +2 -0
  241. package/dist/chunks/client-0.5.7-bqw74z29.mjs +1 -0
  242. package/dist/chunks/color-0.5.7-v1s3bvcj.mjs +1 -0
  243. package/dist/chunks/compact-0.5.7-7kxsprp5.mjs +3 -0
  244. package/dist/chunks/config-0.5.7-e41nnxnm.mjs +1 -0
  245. package/dist/chunks/config-0.5.7-q40ykcbb.mjs +1 -0
  246. package/dist/chunks/context-0.5.7-qvcehmj5.mjs +1 -0
  247. package/dist/chunks/context-noninteractive-0.5.7-02tkje0w.mjs +1 -0
  248. package/dist/chunks/conversation-0.5.7-h7r20gzw.mjs +1 -0
  249. package/dist/chunks/copy-0.5.7-p3xxq9b3.mjs +9 -0
  250. package/dist/chunks/cost-0.5.7-s3rzm0vd.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.5.7-s9fc5f1h.mjs +1 -0
  252. package/dist/chunks/createSession-0.5.7-4e64teqm.mjs +1 -0
  253. package/dist/chunks/debug-0.5.7-v8bqkmzm.mjs +1 -0
  254. package/dist/chunks/desktop-0.5.7-tna0yskx.mjs +1 -0
  255. package/dist/chunks/detectRepository-0.5.7-3dy7yz89.mjs +1 -0
  256. package/dist/chunks/detection-0.5.7-39zsjy8t.mjs +1 -0
  257. package/dist/chunks/diff-0.5.7-9ywmnxmx.mjs +1 -0
  258. package/dist/chunks/doctor-0.5.7-ty5zxpem.mjs +1 -0
  259. package/dist/chunks/doctorDiagnostic-0.5.7-g458bh9g.mjs +1 -0
  260. package/dist/chunks/earlyInput-0.5.7-x73yj3dn.mjs +1 -0
  261. package/dist/chunks/effort-0.5.7-h76k43fj.mjs +10 -0
  262. package/dist/chunks/envUtils-0.5.7-w1t7akfc.mjs +1 -0
  263. package/dist/chunks/environmentSelection-0.5.7-5dsnr0sv.mjs +1 -0
  264. package/dist/chunks/environments-0.5.7-pqh2gnjb.mjs +1 -0
  265. package/dist/chunks/errors-0.5.7-pa0hz043.mjs +1 -0
  266. package/dist/chunks/exampleCommands-0.5.7-3dtjxdad.mjs +1 -0
  267. package/dist/chunks/exit-0.5.7-0wrw77gk.mjs +1 -0
  268. package/dist/chunks/export-0.5.7-zw9rbf4j.mjs +2 -0
  269. package/dist/chunks/extra-usage-0.5.7-rfya84j0.mjs +1 -0
  270. package/dist/chunks/extra-usage-noninteractive-0.5.7-a1b9ndnm.mjs +1 -0
  271. package/dist/chunks/fast-0.5.7-2p6srbep.mjs +1 -0
  272. package/dist/chunks/feedback-0.5.7-181z18rn.mjs +14 -0
  273. package/dist/chunks/firstPartyEventLogger-0.5.7-xndd9dd0.mjs +1 -0
  274. package/dist/chunks/git-0.5.7-7gyptyxn.mjs +1 -0
  275. package/dist/chunks/githubModelsCredentials-0.5.7-9zhn44n6.mjs +1 -0
  276. package/dist/chunks/growthbook-0.5.7-1mynkk8j.mjs +1 -0
  277. package/dist/chunks/headless-0.5.7-9f87m6f5.mjs +2 -0
  278. package/dist/chunks/heapdump-0.5.7-ns6mqawv.mjs +6 -0
  279. package/dist/chunks/help-0.5.7-px56h6fs.mjs +1 -0
  280. package/dist/chunks/hookChains-0.5.7-1a6qvexe.mjs +3 -0
  281. package/dist/chunks/hooks-0.5.7-azm2m6rs.mjs +79 -0
  282. package/dist/chunks/hooks-0.5.7-fyp8e3f5.mjs +1 -0
  283. package/dist/chunks/ide-0.5.7-v9hbn8cp.mjs +3 -0
  284. package/dist/chunks/image-processor-napi-0.5.7-e41p58ef.mjs +1 -0
  285. package/dist/chunks/index-0.5.7-0tncgnn3.mjs +1 -0
  286. package/dist/chunks/index-0.5.7-30mrmtkn.mjs +1 -0
  287. package/dist/chunks/index-0.5.7-62s7cp1b.mjs +1 -0
  288. package/dist/chunks/index-0.5.7-69akvbm4.mjs +1 -0
  289. package/dist/chunks/index-0.5.7-6y6f5cws.mjs +1 -0
  290. package/dist/chunks/index-0.5.7-7w3agvzm.mjs +10 -0
  291. package/dist/chunks/index-0.5.7-8jwymzr6.mjs +1 -0
  292. package/dist/chunks/index-0.5.7-8m53gyr6.mjs +9 -0
  293. package/dist/chunks/index-0.5.7-ct6jw15p.mjs +2 -0
  294. package/dist/chunks/index-0.5.7-dr470b86.mjs +1 -0
  295. package/dist/chunks/index-0.5.7-e4rvp0fn.mjs +1 -0
  296. package/dist/chunks/index-0.5.7-fkw6rn8z.mjs +1 -0
  297. package/dist/chunks/index-0.5.7-h1xjcbtb.mjs +1 -0
  298. package/dist/chunks/index-0.5.7-ma3xmxv3.mjs +2 -0
  299. package/dist/chunks/index-0.5.7-qn7zmh31.mjs +9 -0
  300. package/dist/chunks/index-0.5.7-rd44m0e6.mjs +30 -0
  301. package/dist/chunks/index-0.5.7-te1s21zz.mjs +5 -0
  302. package/dist/chunks/index-0.5.7-vm9zmzmr.mjs +1 -0
  303. package/dist/chunks/index-0.5.7-wpffxvtn.mjs +1 -0
  304. package/dist/chunks/index-0.5.7-wwfn7x53.mjs +1 -0
  305. package/dist/chunks/index-0.5.7-ybcvbcjt.mjs +1 -0
  306. package/dist/chunks/index-0.5.7-yw3tp60c.mjs +1 -0
  307. package/dist/chunks/initReplBridge-0.5.7-xpy8ap8n.mjs +1 -0
  308. package/dist/chunks/ink-0.5.7-dwmx157s.mjs +1 -0
  309. package/dist/chunks/insights-0.5.7-5fpd27dr.mjs +870 -0
  310. package/dist/chunks/install-0.5.7-6sc73ew8.mjs +1 -0
  311. package/dist/chunks/install-github-app-0.5.7-jcyktynf.mjs +149 -0
  312. package/dist/chunks/install-slack-app-0.5.7-mk4a14ww.mjs +1 -0
  313. package/dist/chunks/instrumentation-0.5.7-116w6tf4.mjs +1 -0
  314. package/dist/chunks/interactiveHelpers-0.5.7-zbfkwcsb.mjs +1 -0
  315. package/dist/chunks/keybindings-0.5.7-k2s0bryc.mjs +2 -0
  316. package/dist/chunks/knowledge-0.5.7-55b2ckth.mjs +2 -0
  317. package/dist/chunks/latestVersionCache-0.5.7-k9pyxzrk.mjs +1 -0
  318. package/dist/chunks/loadAgentsDir-0.5.7-9bmbg04z.mjs +1 -0
  319. package/dist/chunks/loadPluginHooks-0.5.7-bcdwwerp.mjs +1 -0
  320. package/dist/chunks/loadPluginHooks-0.5.7-mdt3yvfc.mjs +1 -0
  321. package/dist/chunks/log-0.5.7-wcft0eyv.mjs +1 -0
  322. package/dist/chunks/main-0.5.7-9sxhszx9.mjs +1236 -0
  323. package/dist/chunks/managedEnv-0.5.7-k4gyyt60.mjs +1 -0
  324. package/dist/chunks/mcp-0.5.7-9z74evcf.mjs +1 -0
  325. package/dist/chunks/mcp-0.5.7-djz3mjw4.mjs +4 -0
  326. package/dist/chunks/mcp-0.5.7-n62qd49c.mjs +17 -0
  327. package/dist/chunks/mcpb-0.5.7-bqt73vjr.mjs +1 -0
  328. package/dist/chunks/memory-0.5.7-chxjrvf2.mjs +3 -0
  329. package/dist/chunks/mobile-0.5.7-y0cn32br.mjs +2 -0
  330. package/dist/chunks/model-0.5.7-7mt2xn7w.mjs +1 -0
  331. package/dist/chunks/model-0.5.7-fdhr0cwa.mjs +2 -0
  332. package/dist/chunks/oauth-0.5.7-xf0qbv6v.mjs +1 -0
  333. package/dist/chunks/openaiShim-0.5.7-0cejk3sb.mjs +14 -0
  334. package/dist/chunks/output-style-0.5.7-t5qc5jxe.mjs +1 -0
  335. package/dist/chunks/package-APBHZ5F3-0.5.7-7bp8s9sg.mjs +1 -0
  336. package/dist/chunks/parseConnectUrl-0.5.7-903apk0t.mjs +1 -0
  337. package/dist/chunks/parser-0.5.7-jnq01hth.mjs +1 -0
  338. package/dist/chunks/passes-0.5.7-nk3fgxyh.mjs +1 -0
  339. package/dist/chunks/permissions-0.5.7-q7whkp76.mjs +3 -0
  340. package/dist/chunks/plan-0.5.7-w5hgy3s7.mjs +1 -0
  341. package/dist/chunks/plist-0.5.7-jwz5qjtz.mjs +1 -0
  342. package/dist/chunks/plugin-0.5.7-x7xcey6d.mjs +29 -0
  343. package/dist/chunks/pluginStartupCheck-0.5.7-gy2e0dge.mjs +1 -0
  344. package/dist/chunks/plugins-0.5.7-2ehzph1a.mjs +9 -0
  345. package/dist/chunks/print-0.5.7-mjx6j0dk.mjs +57 -0
  346. package/dist/chunks/privacy-settings-0.5.7-rkmc34t8.mjs +1 -0
  347. package/dist/chunks/process-0.5.7-8c0qwpv6.mjs +1 -0
  348. package/dist/chunks/processBashCommand-0.5.7-czwzjsj9.mjs +1 -0
  349. package/dist/chunks/processSlashCommand-0.5.7-512rz16m.mjs +9 -0
  350. package/dist/chunks/prompt-0.5.7-r8ewyzer.mjs +1 -0
  351. package/dist/chunks/prompt-0.5.7-z98k679g.mjs +1 -0
  352. package/dist/chunks/prompts-0.5.7-g8mh8as5.mjs +1 -0
  353. package/dist/chunks/protocolHandler-0.5.7-p86as7s6.mjs +13 -0
  354. package/dist/chunks/provider-0.5.7-x4t1g0nh.mjs +2 -0
  355. package/dist/chunks/providerProfiles-0.5.7-dz70g8ys.mjs +1 -0
  356. package/dist/chunks/rate-limit-options-0.5.7-n282sweb.mjs +1 -0
  357. package/dist/chunks/registry-0.5.7-h8q8eay6.mjs +1 -0
  358. package/dist/chunks/release-notes-0.5.7-2h20frk0.mjs +5 -0
  359. package/dist/chunks/reload-plugins-0.5.7-z50apk74.mjs +2 -0
  360. package/dist/chunks/remote-env-0.5.7-08abe77m.mjs +1 -0
  361. package/dist/chunks/remoteBridgeCore-0.5.7-jdasqn18.mjs +1 -0
  362. package/dist/chunks/remoteSession-0.5.7-nq05jhdv.mjs +1 -0
  363. package/dist/chunks/rename-0.5.7-812j1w4d.mjs +1 -0
  364. package/dist/chunks/replBridgeHandle-0.5.7-aa3cp3ea.mjs +1 -0
  365. package/dist/chunks/resume-0.5.7-weq0rn3m.mjs +2 -0
  366. package/dist/chunks/rewind-0.5.7-y54y78kx.mjs +1 -0
  367. package/dist/chunks/sandbox-adapter-0.5.7-tb5qenm4.mjs +1 -0
  368. package/dist/chunks/sandbox-toggle-0.5.7-nxcpekeq.mjs +1 -0
  369. package/dist/chunks/session-0.5.7-ky2s0856.mjs +2 -0
  370. package/dist/chunks/sessionDiscovery-0.5.7-wr82xcxs.mjs +1 -0
  371. package/dist/chunks/sessionFileAccessHooks-0.5.7-0j8f4we0.mjs +1 -0
  372. package/dist/chunks/sessionStorage-0.5.7-qghsxmr2.mjs +1 -0
  373. package/dist/chunks/settings-0.5.7-xa4hccmb.mjs +1 -0
  374. package/dist/chunks/setup-0.5.7-s4yfpbyd.mjs +5 -0
  375. package/dist/chunks/sinks-0.5.7-feq030bq.mjs +1 -0
  376. package/dist/chunks/skills-0.5.7-h2r9d209.mjs +1 -0
  377. package/dist/chunks/startupProfiler-0.5.7-f44bsnqn.mjs +1 -0
  378. package/dist/chunks/startupUpdateCheck-0.5.7-7ff14fag.mjs +1 -0
  379. package/dist/chunks/state-0.5.7-cwk8b4cx.mjs +1 -0
  380. package/dist/chunks/stats-0.5.7-wd077xj7.mjs +6 -0
  381. package/dist/chunks/status-0.5.7-5qy7pnk9.mjs +1 -0
  382. package/dist/chunks/stickers-0.5.7-7s145w6d.mjs +1 -0
  383. package/dist/chunks/subprocessEnv-0.5.7-5dv3w3xn.mjs +1 -0
  384. package/dist/chunks/tasks-0.5.7-q79z0h3e.mjs +1 -0
  385. package/dist/chunks/teamHelpers-0.5.7-b8qf5f0d.mjs +1 -0
  386. package/dist/chunks/teammateModeSnapshot-0.5.7-kvmjwag8.mjs +1 -0
  387. package/dist/chunks/teleport-0.5.7-x740q45r.mjs +1 -0
  388. package/dist/chunks/terminalSetup-0.5.7-z8ytqt6q.mjs +1 -0
  389. package/dist/chunks/theme-0.5.7-9asaqpc9.mjs +1 -0
  390. package/dist/chunks/thinkback-0.5.7-6bzqdm8h.mjs +1 -0
  391. package/dist/chunks/thinkback-play-0.5.7-5m54zaez.mjs +1 -0
  392. package/dist/chunks/toolPool-0.5.7-5rd6jp71.mjs +1 -0
  393. package/dist/chunks/toolSearch-0.5.7-wgqasfmq.mjs +1 -0
  394. package/dist/chunks/trustedDevice-0.5.7-5qbzragc.mjs +1 -0
  395. package/dist/chunks/turndown.cjs-0.5.7-3fjybn8j.mjs +69 -0
  396. package/dist/chunks/ultrareviewCommand-0.5.7-98p7mn4r.mjs +4 -0
  397. package/dist/chunks/update-0.5.7-2jgnt5gj.mjs +86 -0
  398. package/dist/chunks/upgrade-0.5.7-1fa84f4g.mjs +1 -0
  399. package/dist/chunks/upstreamproxy-0.5.7-1p7vn612.mjs +14 -0
  400. package/dist/chunks/url-handler-napi-0.5.7-312p1719.mjs +1 -0
  401. package/dist/chunks/usage-0.5.7-qrsabcka.mjs +1 -0
  402. package/dist/chunks/util-0.5.7-tpzcah5j.mjs +1 -0
  403. package/dist/chunks/utils-0.5.7-8a2ekyr5.mjs +1 -0
  404. package/dist/chunks/vim-0.5.7-w4e8vpjf.mjs +1 -0
  405. package/dist/chunks/watcher-0.5.7-cj50b60x.mjs +1 -0
  406. package/dist/chunks/wiki-0.5.7-ccjdtg8v.mjs +132 -0
  407. package/dist/chunks/worktree-0.5.7-g8wrf9zf.mjs +1 -0
  408. package/dist/chunks/worktreeModeEnabled-0.5.7-w4jdaq8p.mjs +1 -0
  409. package/dist/chunks/wrapper-0.5.7-8k82xd0n.mjs +7 -0
  410. package/dist/claudin-vscode.vsix +0 -0
  411. package/dist/cli.mjs +7 -0
  412. package/package.json +141 -0
  413. package/scripts/v8cache-gc.mjs +84 -0
@@ -0,0 +1,5 @@
1
+ import{Lma as ve,Mma as L}from"./cli-0.5.7-qk0n5hqa.mjs";import{Nma as _e}from"./cli-0.5.7-55zn2cct.mjs";import{Qma as Ke,Tma as he,Uma as Se}from"./cli-0.5.7-5jaayymr.mjs";import{Xma as H,_ma as xe}from"./cli-0.5.7-258ytmbr.mjs";var le=H((yt,V)=>{var J,$,G,Q,X,Y,Z,z,s,p,k,x,_,U,q,v,ee,te,I,ne,re,ue,ce,fe,be,ie,ae,me,W,Pe,ge,Oe;(function(f){var j=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(g){f(d(j,d(g)))});else if(typeof V==="object"&&typeof yt==="object")f(d(j,d(yt)));else f(d(j));function d(g,O){if(g!==j)if(typeof Object.create==="function")Object.defineProperty(g,"__esModule",{value:!0});else g.__esModule=!0;return function(e,t){return g[e]=O?O(e,t):t}}})(function(f){var j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};J=function(e,t){if(typeof t!=="function"&&t!==null)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");j(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)},$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u))e[u]=t[u]}return e},G=function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)if(t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u]))n[r[u]]=e[r[u]]}return n},Q=function(e,t,n,r){var u=arguments.length,c=u<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")c=Reflect.decorate(e,t,n,r);else for(var P=e.length-1;P>=0;P--)if(i=e[P])c=(u<3?i(c):u>3?i(t,n,c):i(t,n))||c;return u>3&&c&&Object.defineProperty(t,n,c),c},X=function(e,t){return function(n,r){t(n,r,e)}},Y=function(e,t,n,r,u,c){function i(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var P=r.kind,h=P==="getter"?"get":P==="setter"?"set":"value",a=!t&&e?r.static?e:e.prototype:null,S=t||(a?Object.getOwnPropertyDescriptor(a,r.name):{}),C,M=!1;for(var l=n.length-1;l>=0;l--){var T={};for(var E in r)T[E]=E==="access"?{}:r[E];for(var E in r.access)T.access[E]=r.access[E];T.addInitializer=function(N){if(M)throw TypeError("Cannot add initializers after decoration has completed");c.push(i(N||null))};var D=(0,n[l])(P==="accessor"?{get:S.get,set:S.set}:S[h],T);if(P==="accessor"){if(D===void 0)continue;if(D===null||typeof D!=="object")throw TypeError("Object expected");if(C=i(D.get))S.get=C;if(C=i(D.set))S.set=C;if(C=i(D.init))u.unshift(C)}else if(C=i(D))if(P==="field")u.unshift(C);else S[h]=C}if(a)Object.defineProperty(a,r.name,S);M=!0},Z=function(e,t,n){var r=arguments.length>2;for(var u=0;u<t.length;u++)n=r?t[u].call(e,n):t[u].call(e);return r?n:void 0},z=function(e){return typeof e==="symbol"?e:"".concat(e)},s=function(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},p=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},k=function(e,t,n,r){function u(c){return c instanceof n?c:new n(function(i){i(c)})}return new(n||(n=Promise))(function(c,i){function P(S){try{a(r.next(S))}catch(C){i(C)}}function h(S){try{a(r.throw(S))}catch(C){i(C)}}function a(S){S.done?c(S.value):u(S.value).then(P,h)}a((r=r.apply(e,t||[])).next())})},x=function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,u,c,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=P(0),i.throw=P(1),i.return=P(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function P(a){return function(S){return h([a,S])}}function h(a){if(r)throw TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(n=0)),n)try{if(r=1,u&&(c=a[0]&2?u.return:a[0]?u.throw||((c=u.return)&&c.call(u),0):u.next)&&!(c=c.call(u,a[1])).done)return c;if(u=0,c)a=[a[0]&2,c.value];switch(a[0]){case 0:case 1:c=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,u=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if((c=n.trys,!(c=c.length>0&&c[c.length-1]))&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!c||a[1]>c[0]&&a[1]<c[3])){n.label=a[1];break}if(a[0]===6&&n.label<c[1]){n.label=c[1],c=a;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(a);break}if(c[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(S){a=[6,S],u=0}finally{r=c=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},_=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))W(t,e,n)},W=Object.create?function(e,t,n,r){if(r===void 0)r=n;var u=Object.getOwnPropertyDescriptor(t,n);if(!u||("get"in u?!t.__esModule:u.writable||u.configurable))u={enumerable:!0,get:function(){return t[n]}};Object.defineProperty(e,r,u)}:function(e,t,n,r){if(r===void 0)r=n;e[r]=t[n]},U=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},q=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),u,c=[],i;try{while((t===void 0||t-- >0)&&!(u=r.next()).done)c.push(u.value)}catch(P){i={error:P}}finally{try{if(u&&!u.done&&(n=r.return))n.call(r)}finally{if(i)throw i.error}}return c},v=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(q(arguments[t]));return e},ee=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),u=0,t=0;t<n;t++)for(var c=arguments[t],i=0,P=c.length;i<P;i++,u++)r[u]=c[i];return r},te=function(e,t,n){if(n||arguments.length===2){for(var r=0,u=t.length,c;r<u;r++)if(c||!(r in t)){if(!c)c=Array.prototype.slice.call(t,0,r);c[r]=t[r]}}return e.concat(c||Array.prototype.slice.call(t))},I=function(e){return this instanceof I?(this.v=e,this):new I(e)},ne=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),u,c=[];return u=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),P("next"),P("throw"),P("return",i),u[Symbol.asyncIterator]=function(){return this},u;function i(l){return function(T){return Promise.resolve(T).then(l,C)}}function P(l,T){if(r[l]){if(u[l]=function(E){return new Promise(function(D,N){c.push([l,E,D,N])>1||h(l,E)})},T)u[l]=T(u[l])}}function h(l,T){try{a(r[l](T))}catch(E){M(c[0][3],E)}}function a(l){l.value instanceof I?Promise.resolve(l.value.v).then(S,C):M(c[0][2],l)}function S(l){h("next",l)}function C(l){h("throw",l)}function M(l,T){if(l(T),c.shift(),c.length)h(c[0][0],c[0][1])}},re=function(e){var t,n;return t={},r("next"),r("throw",function(u){throw u}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(u,c){t[u]=e[u]?function(i){return(n=!n)?{value:I(e[u](i)),done:!1}:c?c(i):i}:c}},ue=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof U==="function"?U(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(c){n[c]=e[c]&&function(i){return new Promise(function(P,h){i=e[c](i),u(P,h,i.done,i.value)})}}function u(c,i,P,h){Promise.resolve(h).then(function(a){c({value:a,done:P})},i)}},ce=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var d=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},g=function(e){return g=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))n[n.length]=r;return n},g(e)};fe=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n=g(e),r=0;r<n.length;r++)if(n[r]!=="default")W(t,e,n[r])}return d(t,e),t},be=function(e){return e&&e.__esModule?e:{default:e}},ie=function(e,t,n,r){if(n==="a"&&!r)throw TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ae=function(e,t,n,r,u){if(r==="m")throw TypeError("Private method is not writable");if(r==="a"&&!u)throw TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!u:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?u.call(e,n):u?u.value=n:t.set(e,n),n},me=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)},Pe=function(e,t,n){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw TypeError("Object expected.");var r,u;if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(r=t[Symbol.dispose],n)u=r}if(typeof r!=="function")throw TypeError("Object not disposable.");if(u)r=function(){try{u.call(this)}catch(c){return Promise.reject(c)}};e.stack.push({value:t,dispose:r,async:n})}else if(n)e.stack.push({async:!0});return t};var O=typeof SuppressedError==="function"?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};ge=function(e){function t(c){e.error=e.hasError?new O(c,e.error,"An error was suppressed during disposal."):c,e.hasError=!0}var n,r=0;function u(){while(n=e.stack.pop())try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(u);if(n.dispose){var c=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(c).then(u,function(i){return t(i),u()})}else r|=1}catch(i){t(i)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return u()},Oe=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,u,c,i){return r?t?".jsx":".js":u&&(!c||!i)?n:u+c+"."+i.toLowerCase()+"js"});return e},f("__extends",J),f("__assign",$),f("__rest",G),f("__decorate",Q),f("__param",X),f("__esDecorate",Y),f("__runInitializers",Z),f("__propKey",z),f("__setFunctionName",s),f("__metadata",p),f("__awaiter",k),f("__generator",x),f("__exportStar",_),f("__createBinding",W),f("__values",U),f("__read",q),f("__spread",v),f("__spreadArrays",ee),f("__spreadArray",te),f("__await",I),f("__asyncGenerator",ne),f("__asyncDelegator",re),f("__asyncValues",ue),f("__makeTemplateObject",ce),f("__importStar",fe),f("__importDefault",be),f("__classPrivateFieldGet",ie),f("__classPrivateFieldSet",ae),f("__classPrivateFieldIn",me),f("__addDisposableResource",Pe),f("__disposeResources",ge),f("__rewriteRelativeImportExtension",Oe)})});var je=H((ye)=>{Object.defineProperty(ye,"__esModule",{value:!0});ye.checkUrl=void 0;var We=L(),Ve="169.254.170.2",qe="169.254.170.23",Le="[fd00:ec2::23]",Ae=(f,j)=>{if(f.protocol==="https:")return;if(f.hostname===Ve||f.hostname===qe||f.hostname===Le)return;if(f.hostname.includes("[")){if(f.hostname==="[::1]"||f.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(f.hostname==="localhost")return;let d=f.hostname.split("."),g=(O)=>{let e=parseInt(O,10);return 0<=e&&e<=255};if(d[0]==="127"&&g(d[1])&&g(d[2])&&g(d[3])&&d.length===4)return}throw new We.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
2
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
3
+ - ECS container host 169.254.170.2
4
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:j})};ye.checkUrl=Ae});var Ce=H((B)=>{Object.defineProperty(B,"__esModule",{value:!0});B.resolveHttpHandlerRuntimeConfig=B.getHttpHandlerExtensionConfiguration=B.isValidHostname=B.HttpResponse=B.HttpRequest=B.Fields=B.Field=void 0;var F=Se();Object.defineProperty(B,"Field",{enumerable:!0,get:function(){return F.Field}});Object.defineProperty(B,"Fields",{enumerable:!0,get:function(){return F.Fields}});Object.defineProperty(B,"HttpRequest",{enumerable:!0,get:function(){return F.HttpRequest}});Object.defineProperty(B,"HttpResponse",{enumerable:!0,get:function(){return F.HttpResponse}});Object.defineProperty(B,"isValidHostname",{enumerable:!0,get:function(){return F.isValidHostname}});Object.defineProperty(B,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return F.getHttpHandlerExtensionConfiguration}});Object.defineProperty(B,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return F.resolveHttpHandlerRuntimeConfig}})});var Te=H((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.createAggregatedClient=b.convertMap=b._json=b.ServiceException=b.SENSITIVE_STRING=b.NoOpLogger=b.Command=b.Client=b.strictParseShort=b.strictParseLong=b.strictParseInt32=b.strictParseInt=b.strictParseFloat32=b.strictParseFloat=b.strictParseDouble=b.strictParseByte=b.splitHeader=b.splitEvery=b.quoteHeader=b.parseRfc7231DateTime=b.parseRfc3339DateTimeWithOffset=b.parseRfc3339DateTime=b.parseEpochTimestamp=b.parseBoolean=b.nv=b.logger=b.limitedParseFloat32=b.limitedParseFloat=b.limitedParseDouble=b.handleFloat=b.generateIdempotencyToken=b.expectUnion=b.expectString=b.expectShort=b.expectObject=b.expectNumber=b.expectNonNull=b.expectLong=b.expectInt32=b.expectInt=b.expectFloat32=b.expectByte=b.expectBoolean=b.dateToUtcString=b.copyDocumentWithTransform=b._parseRfc7231DateTime=b._parseRfc3339DateTimeWithOffset=b._parseEpochTimestamp=b.NumericValue=b.LazyJsonString=void 0;b.resolvedPath=b.extendedEncodeURIComponent=b.collectBody=b.withBaseException=b.throwDefaultError=b.take=b.serializeFloat=b.serializeDateTime=b.resolveDefaultRuntimeConfig=b.map=b.loadConfigsForDefaultMode=b.isSerializableHeaderValue=b.getValueFromTextNode=b.getDefaultExtensionConfiguration=b.getDefaultClientConfiguration=b.getArrayIfSingleItem=b.emitWarningIfUnsupportedVersion=b.decorateServiceException=void 0;var m=he();Object.defineProperty(b,"LazyJsonString",{enumerable:!0,get:function(){return m.LazyJsonString}});Object.defineProperty(b,"NumericValue",{enumerable:!0,get:function(){return m.NumericValue}});Object.defineProperty(b,"_parseEpochTimestamp",{enumerable:!0,get:function(){return m._parseEpochTimestamp}});Object.defineProperty(b,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return m._parseRfc3339DateTimeWithOffset}});Object.defineProperty(b,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return m._parseRfc7231DateTime}});Object.defineProperty(b,"copyDocumentWithTransform",{enumerable:!0,get:function(){return m.copyDocumentWithTransform}});Object.defineProperty(b,"dateToUtcString",{enumerable:!0,get:function(){return m.dateToUtcString}});Object.defineProperty(b,"expectBoolean",{enumerable:!0,get:function(){return m.expectBoolean}});Object.defineProperty(b,"expectByte",{enumerable:!0,get:function(){return m.expectByte}});Object.defineProperty(b,"expectFloat32",{enumerable:!0,get:function(){return m.expectFloat32}});Object.defineProperty(b,"expectInt",{enumerable:!0,get:function(){return m.expectInt}});Object.defineProperty(b,"expectInt32",{enumerable:!0,get:function(){return m.expectInt32}});Object.defineProperty(b,"expectLong",{enumerable:!0,get:function(){return m.expectLong}});Object.defineProperty(b,"expectNonNull",{enumerable:!0,get:function(){return m.expectNonNull}});Object.defineProperty(b,"expectNumber",{enumerable:!0,get:function(){return m.expectNumber}});Object.defineProperty(b,"expectObject",{enumerable:!0,get:function(){return m.expectObject}});Object.defineProperty(b,"expectShort",{enumerable:!0,get:function(){return m.expectShort}});Object.defineProperty(b,"expectString",{enumerable:!0,get:function(){return m.expectString}});Object.defineProperty(b,"expectUnion",{enumerable:!0,get:function(){return m.expectUnion}});Object.defineProperty(b,"generateIdempotencyToken",{enumerable:!0,get:function(){return m.generateIdempotencyToken}});Object.defineProperty(b,"handleFloat",{enumerable:!0,get:function(){return m.handleFloat}});Object.defineProperty(b,"limitedParseDouble",{enumerable:!0,get:function(){return m.limitedParseDouble}});Object.defineProperty(b,"limitedParseFloat",{enumerable:!0,get:function(){return m.limitedParseFloat}});Object.defineProperty(b,"limitedParseFloat32",{enumerable:!0,get:function(){return m.limitedParseFloat32}});Object.defineProperty(b,"logger",{enumerable:!0,get:function(){return m.logger}});Object.defineProperty(b,"nv",{enumerable:!0,get:function(){return m.nv}});Object.defineProperty(b,"parseBoolean",{enumerable:!0,get:function(){return m.parseBoolean}});Object.defineProperty(b,"parseEpochTimestamp",{enumerable:!0,get:function(){return m.parseEpochTimestamp}});Object.defineProperty(b,"parseRfc3339DateTime",{enumerable:!0,get:function(){return m.parseRfc3339DateTime}});Object.defineProperty(b,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return m.parseRfc3339DateTimeWithOffset}});Object.defineProperty(b,"parseRfc7231DateTime",{enumerable:!0,get:function(){return m.parseRfc7231DateTime}});Object.defineProperty(b,"quoteHeader",{enumerable:!0,get:function(){return m.quoteHeader}});Object.defineProperty(b,"splitEvery",{enumerable:!0,get:function(){return m.splitEvery}});Object.defineProperty(b,"splitHeader",{enumerable:!0,get:function(){return m.splitHeader}});Object.defineProperty(b,"strictParseByte",{enumerable:!0,get:function(){return m.strictParseByte}});Object.defineProperty(b,"strictParseDouble",{enumerable:!0,get:function(){return m.strictParseDouble}});Object.defineProperty(b,"strictParseFloat",{enumerable:!0,get:function(){return m.strictParseFloat}});Object.defineProperty(b,"strictParseFloat32",{enumerable:!0,get:function(){return m.strictParseFloat32}});Object.defineProperty(b,"strictParseInt",{enumerable:!0,get:function(){return m.strictParseInt}});Object.defineProperty(b,"strictParseInt32",{enumerable:!0,get:function(){return m.strictParseInt32}});Object.defineProperty(b,"strictParseLong",{enumerable:!0,get:function(){return m.strictParseLong}});Object.defineProperty(b,"strictParseShort",{enumerable:!0,get:function(){return m.strictParseShort}});var y=Ke();Object.defineProperty(b,"Client",{enumerable:!0,get:function(){return y.Client}});Object.defineProperty(b,"Command",{enumerable:!0,get:function(){return y.Command}});Object.defineProperty(b,"NoOpLogger",{enumerable:!0,get:function(){return y.NoOpLogger}});Object.defineProperty(b,"SENSITIVE_STRING",{enumerable:!0,get:function(){return y.SENSITIVE_STRING}});Object.defineProperty(b,"ServiceException",{enumerable:!0,get:function(){return y.ServiceException}});Object.defineProperty(b,"_json",{enumerable:!0,get:function(){return y._json}});Object.defineProperty(b,"convertMap",{enumerable:!0,get:function(){return y.convertMap}});Object.defineProperty(b,"createAggregatedClient",{enumerable:!0,get:function(){return y.createAggregatedClient}});Object.defineProperty(b,"decorateServiceException",{enumerable:!0,get:function(){return y.decorateServiceException}});Object.defineProperty(b,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return y.emitWarningIfUnsupportedVersion}});Object.defineProperty(b,"getArrayIfSingleItem",{enumerable:!0,get:function(){return y.getArrayIfSingleItem}});Object.defineProperty(b,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return y.getDefaultClientConfiguration}});Object.defineProperty(b,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return y.getDefaultExtensionConfiguration}});Object.defineProperty(b,"getValueFromTextNode",{enumerable:!0,get:function(){return y.getValueFromTextNode}});Object.defineProperty(b,"isSerializableHeaderValue",{enumerable:!0,get:function(){return y.isSerializableHeaderValue}});Object.defineProperty(b,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return y.loadConfigsForDefaultMode}});Object.defineProperty(b,"map",{enumerable:!0,get:function(){return y.map}});Object.defineProperty(b,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return y.resolveDefaultRuntimeConfig}});Object.defineProperty(b,"serializeDateTime",{enumerable:!0,get:function(){return y.serializeDateTime}});Object.defineProperty(b,"serializeFloat",{enumerable:!0,get:function(){return y.serializeFloat}});Object.defineProperty(b,"take",{enumerable:!0,get:function(){return y.take}});Object.defineProperty(b,"throwDefaultError",{enumerable:!0,get:function(){return y.throwDefaultError}});Object.defineProperty(b,"withBaseException",{enumerable:!0,get:function(){return y.withBaseException}});var A=Se();Object.defineProperty(b,"collectBody",{enumerable:!0,get:function(){return A.collectBody}});Object.defineProperty(b,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return A.extendedEncodeURIComponent}});Object.defineProperty(b,"resolvedPath",{enumerable:!0,get:function(){return A.resolvedPath}})});var oe=H((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.isBlob=o.isReadableStream=o.splitStream=o.sdkStreamMixin=o.headStream=o.getAwsChunkedEncodingStream=o.createBufferedReadable=o.createChecksumStream=o.ChecksumStream=o.Uint8ArrayBlobAdapter=void 0;var R=he();Object.defineProperty(o,"Uint8ArrayBlobAdapter",{enumerable:!0,get:function(){return R.Uint8ArrayBlobAdapter}});Object.defineProperty(o,"ChecksumStream",{enumerable:!0,get:function(){return R.ChecksumStream}});Object.defineProperty(o,"createChecksumStream",{enumerable:!0,get:function(){return R.createChecksumStream}});Object.defineProperty(o,"createBufferedReadable",{enumerable:!0,get:function(){return R.createBufferedReadable}});Object.defineProperty(o,"getAwsChunkedEncodingStream",{enumerable:!0,get:function(){return R.getAwsChunkedEncodingStream}});Object.defineProperty(o,"headStream",{enumerable:!0,get:function(){return R.headStream}});Object.defineProperty(o,"sdkStreamMixin",{enumerable:!0,get:function(){return R.sdkStreamMixin}});Object.defineProperty(o,"splitStream",{enumerable:!0,get:function(){return R.splitStream}});Object.defineProperty(o,"isReadableStream",{enumerable:!0,get:function(){return R.isReadableStream}});Object.defineProperty(o,"isBlob",{enumerable:!0,get:function(){return R.isBlob}})});var Re=H((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.createGetRequest=Ze;Ee.getCredentials=ze;var w=L(),Qe=Ce(),Xe=Te(),Ye=oe();function Ze(f){return new Qe.HttpRequest({protocol:f.protocol,hostname:f.hostname,port:Number(f.port),path:f.pathname,query:Array.from(f.searchParams.entries()).reduce((j,[d,g])=>{return j[d]=g,j},{}),fragment:f.hash})}async function ze(f,j){let g=await(0,Ye.sdkStreamMixin)(f.body).transformToString();if(f.statusCode===200){let O=JSON.parse(g);if(typeof O.AccessKeyId!=="string"||typeof O.SecretAccessKey!=="string"||typeof O.Token!=="string"||typeof O.Expiration!=="string")throw new w.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:j});return{accessKeyId:O.AccessKeyId,secretAccessKey:O.SecretAccessKey,sessionToken:O.Token,expiration:(0,Xe.parseRfc3339DateTime)(O.Expiration)}}if(f.statusCode>=400&&f.statusCode<500){let O={};try{O=JSON.parse(g)}catch(e){}throw Object.assign(new w.CredentialsProviderError(`Server responded with status: ${f.statusCode}`,{logger:j}),{Code:O.Code,Message:O.Message})}throw new w.CredentialsProviderError(`Server responded with status: ${f.statusCode}`,{logger:j})}});var Be=H((De)=>{Object.defineProperty(De,"__esModule",{value:!0});De.retryWrapper=void 0;var ke=(f,j,d)=>{return async()=>{for(let g=0;g<j;++g)try{return await f()}catch(O){await new Promise((e)=>setTimeout(e,d))}return await f()}};De.retryWrapper=ke});var Ue=H((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.fromHttp=void 0;var et=le(),tt=ve(),nt=_e(),Ne=L(),rt=et.__importDefault(xe("node:fs/promises")),ut=je(),Fe=Re(),ct=Be(),ft="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",bt="http://169.254.170.2",it="AWS_CONTAINER_CREDENTIALS_FULL_URI",at="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",mt="AWS_CONTAINER_AUTHORIZATION_TOKEN",Pt=(f={})=>{f.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let j,d=f.awsContainerCredentialsRelativeUri??process.env[ft],g=f.awsContainerCredentialsFullUri??process.env[it],O=f.awsContainerAuthorizationToken??process.env[mt],e=f.awsContainerAuthorizationTokenFile??process.env[at],t=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?.warn?console.warn:f.logger.warn.bind(f.logger);if(d&&g)t("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),t("awsContainerCredentialsFullUri will take precedence.");if(O&&e)t("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),t("awsContainerAuthorizationToken will take precedence.");if(g)j=g;else if(d)j=`${bt}${d}`;else throw new Ne.CredentialsProviderError(`No HTTP credential provider host provided.
5
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:f.logger});let n=new URL(j);(0,ut.checkUrl)(n,f.logger);let r=nt.NodeHttpHandler.create({requestTimeout:f.timeout??1000,connectionTimeout:f.timeout??1000});return(0,ct.retryWrapper)(async()=>{let u=(0,Fe.createGetRequest)(n);if(O)u.headers.Authorization=O;else if(e)u.headers.Authorization=(await rt.default.readFile(e)).toString();try{let c=await r.handle(u);return(0,Fe.getCredentials)(c.response).then((i)=>(0,tt.setCredentialFeature)(i,"CREDENTIALS_HTTP","z"))}catch(c){throw new Ne.CredentialsProviderError(String(c),{logger:f.logger})}},f.maxRetries??3,f.timeout??1000)};Ie.fromHttp=Pt});var lt=H((K)=>{Object.defineProperty(K,"__esModule",{value:!0});K.fromHttp=void 0;var gt=Ue();Object.defineProperty(K,"fromHttp",{enumerable:!0,get:function(){return gt.fromHttp}})});export default lt();
@@ -0,0 +1 @@
1
+ import{AR as c,BR as d,CR as e,yR as a,zR as b}from"./cli-0.5.7-zb8ztx8p.mjs";import"./cli-0.5.7-258ytmbr.mjs";e();export{c as watch,d as default,a as WatchHelper,b as FSWatcher};
@@ -0,0 +1 @@
1
+ import{Tma as ls}from"./cli-0.5.7-5jaayymr.mjs";import{Xma as z,Zma as hs,_ma as Xn}from"./cli-0.5.7-258ytmbr.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{T4 as a}from"./cli-0.5.7-p4mv49ab.mjs";import"./cli-0.5.7-dr7n1fyv.mjs";import"./cli-0.5.7-ycj2xr53.mjs";import"./cli-0.5.7-qk0n5hqa.mjs";import"./cli-0.5.7-55zn2cct.mjs";import"./cli-0.5.7-5jaayymr.mjs";import"./cli-0.5.7-258ytmbr.mjs";export default a();
@@ -0,0 +1 @@
1
+ import{$4 as Vr,U4 as G,V4 as fr,W4 as Hr,X4 as Lr,Y4 as oe,Z4 as er,_4 as Ut,a5 as et,b5 as zr,c5 as hr,d5 as tt,e5 as D,f5 as St,g5 as Sr,h5 as Or,j5 as Ir,k5 as br,l5 as qr,m5 as Dr,n5 as Rr,o5 as tr,p5 as rr,q5 as sr,r5 as Ar,s5 as Br}from"./cli-0.5.7-dr7n1fyv.mjs";import{t5 as Qe}from"./cli-0.5.7-ycj2xr53.mjs";import{Kma as Er,Lma as Pr}from"./cli-0.5.7-qk0n5hqa.mjs";import{Nma as vr}from"./cli-0.5.7-55zn2cct.mjs";import{Pma as we}from"./cli-0.5.7-5jaayymr.mjs";import{Xma as a}from"./cli-0.5.7-258ytmbr.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{F5 as a,G5 as b,H5 as c,I5 as d,J5 as e,K5 as f,L5 as g,M5 as h,N5 as i,O5 as j,P5 as k,Q5 as l,R5 as m,S5 as n,T5 as o,U5 as p,V5 as q,W5 as r,X5 as s}from"./cli-0.5.7-yzncgfs4.mjs";import"./cli-0.5.7-2qxsy7jq.mjs";import"./cli-0.5.7-89fcvfy0.mjs";import"./cli-0.5.7-258ytmbr.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{a as dJ,b as jZ,d as MQ}from"./cli-0.5.7-2xm61gkr.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.7-s5nd54ga.mjs";import"./cli-0.5.7-kctf48t4.mjs";import{Ra as cJ,Sa as yQ,Ta as PQ,Ua as UQ,Va as pJ,Wa as uJ}from"./cli-0.5.7-b51h487f.mjs";import"./cli-0.5.7-x1azmh1g.mjs";import{Nd as vJ,Pd as _Z}from"./cli-0.5.7-ayjrdmrk.mjs";import{Td as iJ,Wd as gZ}from"./cli-0.5.7-q8v8naf8.mjs";import{$d as dZ,Xd as $Z,Zd as zZ,_d as KZ}from"./cli-0.5.7-6g3w68ks.mjs";import{ae as OJ,be as BQ,ce as RQ,de as ZQ,ee as ZJ,fe as mJ}from"./cli-0.5.7-w2fb8g6y.mjs";import{ge as eQ,ie as HJ,je as JZ,ke as uZ}from"./cli-0.5.7-qdqrgv1q.mjs";import{ne as QZ,oe as ZZ,pe as lZ}from"./cli-0.5.7-sjd6g3n6.mjs";import{Qf as oQ,Rf as nQ,Sf as sQ,Tf as rQ,Uf as pZ}from"./cli-0.5.7-za19q18c.mjs";import{AN as aZ,Jj as gQ,Kj as IZ,eP as iZ,fN as YZ,mN as XZ,pi as dQ,sC as iQ,tC as tQ,tO as yJ,wC as cZ}from"./cli-0.5.7-q2e6xpch.mjs";import{XP as IJ,YP as FZ}from"./cli-0.5.7-w16wj21h.mjs";import{gQ as xQ,kQ as fZ}from"./cli-0.5.7-tc3vm4ra.mjs";import"./cli-0.5.7-7hm7dxyp.mjs";import"./cli-0.5.7-gy4csxb5.mjs";import"./cli-0.5.7-bzrvdrq4.mjs";import"./cli-0.5.7-gnq8vh0c.mjs";import"./cli-0.5.7-93k1z52y.mjs";import"./cli-0.5.7-zb8ztx8p.mjs";import"./cli-0.5.7-w50j12vv.mjs";import"./cli-0.5.7-93eaxn9a.mjs";import{VR as AQ,XR as wZ}from"./cli-0.5.7-h9v4tqbs.mjs";import"./cli-0.5.7-vyxaeh82.mjs";import"./cli-0.5.7-31969syr.mjs";import"./cli-0.5.7-73er78b7.mjs";import"./cli-0.5.7-sb3fjts4.mjs";import"./cli-0.5.7-hq4wbper.mjs";import"./cli-0.5.7-yaywev87.mjs";import"./cli-0.5.7-7mmyazqh.mjs";import{VT as aQ,WT as LQ,XT as OQ,ZT as _Q}from"./cli-0.5.7-aq7a3646.mjs";import"./cli-0.5.7-pzjz115k.mjs";import"./cli-0.5.7-tbga87q3.mjs";import"./cli-0.5.7-7a9gq9ff.mjs";import"./cli-0.5.7-x1w96j6d.mjs";import"./cli-0.5.7-9z55nm22.mjs";import"./cli-0.5.7-0rvzfmhb.mjs";import"./cli-0.5.7-kp9pg4sr.mjs";import"./cli-0.5.7-gcnk0vke.mjs";import"./cli-0.5.7-6d26vvaa.mjs";import"./cli-0.5.7-e8eqdfnf.mjs";import"./cli-0.5.7-9acdh8nc.mjs";import"./cli-0.5.7-g7k0r0ea.mjs";import"./cli-0.5.7-vgc7nzef.mjs";import"./cli-0.5.7-8sbq2qed.mjs";import"./cli-0.5.7-jw2te6th.mjs";import"./cli-0.5.7-20cz322w.mjs";import"./cli-0.5.7-m5q27x96.mjs";import"./cli-0.5.7-6pssgqdn.mjs";import"./cli-0.5.7-5e5xfeq6.mjs";import{B3 as SZ,b3 as gJ,d3 as aJ,f3 as lQ,h0 as uQ,k0 as vZ,v2 as BJ,w2 as MZ}from"./cli-0.5.7-8ychjqct.mjs";import"./cli-0.5.7-g4n7dg2d.mjs";import"./cli-0.5.7-xn6deh04.mjs";import"./cli-0.5.7-dntg9qbj.mjs";import"./cli-0.5.7-rggstqv6.mjs";import"./cli-0.5.7-0df5m6td.mjs";import{F5 as QJ,X5 as OZ}from"./cli-0.5.7-yzncgfs4.mjs";import"./cli-0.5.7-2qxsy7jq.mjs";import"./cli-0.5.7-89fcvfy0.mjs";import{Eaa as cQ,Haa as pQ,M7 as bZ,_aa as mZ,k6 as _J,m6 as PZ,t6 as vQ,u7 as SQ,v6 as kZ,w7 as IQ}from"./cli-0.5.7-469r2a5r.mjs";import"./cli-0.5.7-mzfr99sc.mjs";import"./cli-0.5.7-5mrw857q.mjs";import"./cli-0.5.7-c9dtw94k.mjs";import"./cli-0.5.7-0s7wtvbz.mjs";import{Lda as mQ,Wda as TZ}from"./cli-0.5.7-35yf0b84.mjs";import"./cli-0.5.7-sjx0wm99.mjs";import"./cli-0.5.7-xepvraxn.mjs";import{Nea as w,Pea as UZ}from"./cli-0.5.7-26pwg6gg.mjs";import{Pfa as J,Sfa as NQ,cfa as GQ,efa as yZ}from"./cli-0.5.7-twqt7rxq.mjs";import"./cli-0.5.7-pse9qff7.mjs";import{cga as HQ,kga as WQ,mga as RZ}from"./cli-0.5.7-tqn2ged5.mjs";import{Gga as u,Nga as qQ}from"./cli-0.5.7-skfm51ta.mjs";import{ima as hZ,ria as RJ,xia as bQ}from"./cli-0.5.7-hp25yk8y.mjs";import"./cli-0.5.7-m4wwfa6q.mjs";import{_ma as VQ}from"./cli-0.5.7-258ytmbr.mjs";hZ();TZ();vZ();cZ();SZ();mZ();NQ();kZ();qQ();bZ();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();PZ();UZ();yZ();_Q();wZ();fZ();FZ();RZ();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.7-5z0vqchx.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:WQ()});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||HQ(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=GQ(()=>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=pQ();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 cQ((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.7-jdasqn18.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 SQ(),F=await IQ(),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 $=vQ(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{$W as C,AV as f,BV as g,BW as p,CV as h,IW as q,KW as r,MW as s,NV as i,OV as j,QW as t,SW as u,TW as v,UW as w,VW as x,WW as y,XW as z,YV as k,YW as A,_W as B,aW as l,eX as D,fX as E,gX as F,hX as G,kX as H,lX as I,mX as J,nX as K,oW as m,oX as L,pV as a,pX as M,sV as b,tV as c,tW as n,vW as o,wV as d,zV as e}from"./cli-0.5.7-x1w96j6d.mjs";import"./cli-0.5.7-9z55nm22.mjs";import"./cli-0.5.7-0rvzfmhb.mjs";import"./cli-0.5.7-kp9pg4sr.mjs";import"./cli-0.5.7-vgc7nzef.mjs";import"./cli-0.5.7-8sbq2qed.mjs";import"./cli-0.5.7-xn6deh04.mjs";import"./cli-0.5.7-89fcvfy0.mjs";import"./cli-0.5.7-469r2a5r.mjs";import"./cli-0.5.7-mzfr99sc.mjs";import"./cli-0.5.7-5mrw857q.mjs";import"./cli-0.5.7-c9dtw94k.mjs";import"./cli-0.5.7-0s7wtvbz.mjs";import"./cli-0.5.7-35yf0b84.mjs";import"./cli-0.5.7-sjx0wm99.mjs";import"./cli-0.5.7-xepvraxn.mjs";import"./cli-0.5.7-26pwg6gg.mjs";import"./cli-0.5.7-twqt7rxq.mjs";import"./cli-0.5.7-pse9qff7.mjs";import"./cli-0.5.7-tqn2ged5.mjs";import"./cli-0.5.7-skfm51ta.mjs";import"./cli-0.5.7-hp25yk8y.mjs";import"./cli-0.5.7-m4wwfa6q.mjs";import"./cli-0.5.7-258ytmbr.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};