@claudiolabs/claudin 0.7.4 → 0.7.5

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 (902) hide show
  1. package/README.md +6 -5
  2. package/dist/chunks/AgentTool-0.7.5-xc9zjfz7.mjs +1 -0
  3. package/dist/chunks/App-0.7.5-acjfhz7f.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.7.5-k8xp8shh.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.7.5-b586ydqn.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.7.5-4vrmrdr7.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.7.5-0dfen1xs.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.5-ngb74vnm.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.7.5-0kerpb2w.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.7.5-srnpt7vg.mjs +7 -0
  11. package/dist/chunks/Doctor-0.7.5-4sb6exd1.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-0.7.5-4epxtpqm.mjs +6 -0
  13. package/dist/chunks/Grove-0.7.5-mq5kyerq.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.7.5-2gsr5w8r.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.7.5-0pyrr9nf.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.7.5-h5by8vz0.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.7.5-3w71fa3y.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.7.5-b7vhm3se.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.7.5-aerbfw66.mjs +1 -0
  20. package/dist/chunks/REPL-0.7.5-vtg3m5vj.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.7.5-y1z299bf.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.7.5-j019aekp.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.7.5-svv1q02p.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.7.5-58j0azyf.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.7.5-bc8j445x.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.7.5-cjf1ngxx.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.7.5-ebcazye5.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.7.5-152ydvn7.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.7.5-0kfzwxhb.mjs +1 -0
  30. package/dist/chunks/add-dir-0.7.5-35b90wc9.mjs +1 -0
  31. package/dist/chunks/agentTypes-0.7.5-wrskj5tn.mjs +1 -0
  32. package/dist/chunks/agents-0.7.5-4qcppggm.mjs +110 -0
  33. package/dist/chunks/agents-0.7.5-xq7kprd6.mjs +3 -0
  34. package/dist/chunks/api-0.7.5-fcbv21bw.mjs +1 -0
  35. package/dist/chunks/asciicast-0.7.5-d28172s4.mjs +1 -0
  36. package/dist/chunks/assistant-0.7.5-f95dwf9p.mjs +1 -0
  37. package/dist/chunks/auth-0.7.5-10gj2nsp.mjs +1 -0
  38. package/dist/chunks/auth-0.7.5-gdt0tbr7.mjs +1 -0
  39. package/dist/chunks/autoMode-0.7.5-rh9k8nn2.mjs +48 -0
  40. package/dist/chunks/autoUpdater-0.7.5-tfhznsk1.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-0.7.5-sj02xapc.mjs +1 -0
  42. package/dist/chunks/branch-0.7.5-5j5akkrn.mjs +4 -0
  43. package/dist/chunks/bridge-0.7.5-8y0xqq28.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-0.7.5-nme7hkby.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-0.7.5-py8rybz2.mjs +1 -0
  46. package/dist/chunks/bridgeMain-0.7.5-5kat8nm9.mjs +88 -0
  47. package/dist/chunks/bridgePointer-0.7.5-5wgvs16s.mjs +1 -0
  48. package/dist/chunks/btw-0.7.5-yawwzr37.mjs +1 -0
  49. package/dist/chunks/buddy-0.7.5-qmp34ccf.mjs +3 -0
  50. package/dist/chunks/cacache-0.7.5-7844wbd2.mjs +1 -0
  51. package/dist/chunks/cache-probe-0.7.5-8jthv18c.mjs +21 -0
  52. package/dist/chunks/cacheStats-0.7.5-77ds68g1.mjs +4 -0
  53. package/dist/chunks/caches-0.7.5-qsf7gskj.mjs +1 -0
  54. package/dist/chunks/claudeDesktop-0.7.5-98s74wma.mjs +1 -0
  55. package/dist/chunks/claudemd-0.7.5-yemjch22.mjs +1 -0
  56. package/dist/chunks/clear-0.7.5-m1tdyhpp.mjs +1 -0
  57. package/dist/chunks/clearTerminal-0.7.5-z4zv01xp.mjs +1 -0
  58. package/dist/chunks/cli-0.7.5-0bsdv5z9.mjs +2 -0
  59. package/dist/chunks/cli-0.7.5-0wyg5tbv.mjs +2 -0
  60. package/dist/chunks/cli-0.7.5-10stvena.mjs +2 -0
  61. package/dist/chunks/cli-0.7.5-1130jhj6.mjs +5469 -0
  62. package/dist/chunks/cli-0.7.5-137tt9mn.mjs +42 -0
  63. package/dist/chunks/cli-0.7.5-1raty5m9.mjs +2 -0
  64. package/dist/chunks/cli-0.7.5-1s8z73wz.mjs +2 -0
  65. package/dist/chunks/cli-0.7.5-1tw92v7f.mjs +17 -0
  66. package/dist/chunks/cli-0.7.5-1w5f2dfy.mjs +2 -0
  67. package/dist/chunks/cli-0.7.5-1z5n1s3z.mjs +2 -0
  68. package/dist/chunks/cli-0.7.5-20s4s7eq.mjs +2 -0
  69. package/dist/chunks/cli-0.7.5-2czfx8da.mjs +2 -0
  70. package/dist/chunks/cli-0.7.5-2f55fq7s.mjs +2 -0
  71. package/dist/chunks/cli-0.7.5-2kqm2cm6.mjs +3 -0
  72. package/dist/chunks/cli-0.7.5-3e9fty2f.mjs +2 -0
  73. package/dist/chunks/cli-0.7.5-3mhw32x1.mjs +2 -0
  74. package/dist/chunks/cli-0.7.5-40m9mj91.mjs +133 -0
  75. package/dist/chunks/cli-0.7.5-49b2vx6q.mjs +2 -0
  76. package/dist/chunks/cli-0.7.5-49f39qnb.mjs +2 -0
  77. package/dist/chunks/cli-0.7.5-4mvg3dke.mjs +59 -0
  78. package/dist/chunks/cli-0.7.5-4pc187my.mjs +2 -0
  79. package/dist/chunks/cli-0.7.5-4pekv38x.mjs +2 -0
  80. package/dist/chunks/cli-0.7.5-4s3wj4db.mjs +2 -0
  81. package/dist/chunks/cli-0.7.5-510b39kd.mjs +3 -0
  82. package/dist/chunks/cli-0.7.5-529cdx0d.mjs +2 -0
  83. package/dist/chunks/cli-0.7.5-56navtps.mjs +3 -0
  84. package/dist/chunks/cli-0.7.5-57cepgzg.mjs +4 -0
  85. package/dist/chunks/cli-0.7.5-5a315ky8.mjs +17 -0
  86. package/dist/chunks/cli-0.7.5-5nkj9199.mjs +2 -0
  87. package/dist/chunks/cli-0.7.5-5pg00eg2.mjs +15 -0
  88. package/dist/chunks/cli-0.7.5-5pxnxmzj.mjs +2 -0
  89. package/dist/chunks/cli-0.7.5-5r8ygwxv.mjs +3 -0
  90. package/dist/chunks/cli-0.7.5-5w2rj0hg.mjs +3 -0
  91. package/dist/chunks/cli-0.7.5-5z67f2be.mjs +18 -0
  92. package/dist/chunks/cli-0.7.5-60age1v3.mjs +3 -0
  93. package/dist/chunks/cli-0.7.5-614rpqd6.mjs +2 -0
  94. package/dist/chunks/cli-0.7.5-6g85h6sa.mjs +34 -0
  95. package/dist/chunks/cli-0.7.5-6mf5dxyw.mjs +2 -0
  96. package/dist/chunks/cli-0.7.5-6mmfvszc.mjs +2 -0
  97. package/dist/chunks/cli-0.7.5-6s7zhdt4.mjs +2 -0
  98. package/dist/chunks/cli-0.7.5-6v0bgn02.mjs +2 -0
  99. package/dist/chunks/cli-0.7.5-6wvc1yjw.mjs +2 -0
  100. package/dist/chunks/cli-0.7.5-7bd3ngaj.mjs +2 -0
  101. package/dist/chunks/cli-0.7.5-7ezb8apr.mjs +2 -0
  102. package/dist/chunks/cli-0.7.5-7gkjs4wv.mjs +2 -0
  103. package/dist/chunks/cli-0.7.5-7h3tq3wc.mjs +6 -0
  104. package/dist/chunks/cli-0.7.5-7zd2bp43.mjs +45 -0
  105. package/dist/chunks/cli-0.7.5-80je81v4.mjs +2 -0
  106. package/dist/chunks/cli-0.7.5-81aasr9m.mjs +2 -0
  107. package/dist/chunks/cli-0.7.5-84ksc40j.mjs +25 -0
  108. package/dist/chunks/cli-0.7.5-85hyf5qe.mjs +15 -0
  109. package/dist/chunks/cli-0.7.5-90k5jpxh.mjs +2 -0
  110. package/dist/chunks/cli-0.7.5-92scwwjf.mjs +24 -0
  111. package/dist/chunks/cli-0.7.5-975by9n8.mjs +3 -0
  112. package/dist/chunks/cli-0.7.5-987zbyps.mjs +2 -0
  113. package/dist/chunks/cli-0.7.5-99wdc670.mjs +24 -0
  114. package/dist/chunks/cli-0.7.5-9na53kvh.mjs +2 -0
  115. package/dist/chunks/cli-0.7.5-9pd9feb4.mjs +5 -0
  116. package/dist/chunks/cli-0.7.5-9v3pjabj.mjs +133 -0
  117. package/dist/chunks/cli-0.7.5-9y8fgxfa.mjs +2 -0
  118. package/dist/chunks/cli-0.7.5-a36ctp71.mjs +6 -0
  119. package/dist/chunks/cli-0.7.5-acfkszsn.mjs +8 -0
  120. package/dist/chunks/cli-0.7.5-akxpdesn.mjs +2 -0
  121. package/dist/chunks/cli-0.7.5-aphrc23w.mjs +2 -0
  122. package/dist/chunks/cli-0.7.5-apycan2y.mjs +2 -0
  123. package/dist/chunks/cli-0.7.5-aq0c8awk.mjs +2 -0
  124. package/dist/chunks/cli-0.7.5-atzfkz67.mjs +2 -0
  125. package/dist/chunks/cli-0.7.5-az0dwafe.mjs +2 -0
  126. package/dist/chunks/cli-0.7.5-b8wc44ze.mjs +2 -0
  127. package/dist/chunks/cli-0.7.5-ba83wc9t.mjs +2 -0
  128. package/dist/chunks/cli-0.7.5-be0fn3rp.mjs +2 -0
  129. package/dist/chunks/cli-0.7.5-bkep7yw1.mjs +2 -0
  130. package/dist/chunks/cli-0.7.5-bzrmp2wf.mjs +2 -0
  131. package/dist/chunks/cli-0.7.5-c0qhtrbh.mjs +2 -0
  132. package/dist/chunks/cli-0.7.5-c3w496ap.mjs +3 -0
  133. package/dist/chunks/cli-0.7.5-c6xa3se4.mjs +2 -0
  134. package/dist/chunks/cli-0.7.5-ca0xearm.mjs +2 -0
  135. package/dist/chunks/cli-0.7.5-cbkmf04v.mjs +2 -0
  136. package/dist/chunks/cli-0.7.5-cd6cs7q9.mjs +2 -0
  137. package/dist/chunks/cli-0.7.5-crbzqw8b.mjs +20 -0
  138. package/dist/chunks/cli-0.7.5-d8kenjfw.mjs +2 -0
  139. package/dist/chunks/cli-0.7.5-dc34hzge.mjs +12 -0
  140. package/dist/chunks/cli-0.7.5-ddpksb1g.mjs +2 -0
  141. package/dist/chunks/cli-0.7.5-dp4tresm.mjs +2 -0
  142. package/dist/chunks/cli-0.7.5-dx6zs9qf.mjs +2 -0
  143. package/dist/chunks/cli-0.7.5-dzyyype0.mjs +2 -0
  144. package/dist/chunks/cli-0.7.5-e7mb7d0a.mjs +10 -0
  145. package/dist/chunks/cli-0.7.5-e8m1fhax.mjs +2 -0
  146. package/dist/chunks/cli-0.7.5-eeb6rjs0.mjs +2 -0
  147. package/dist/chunks/cli-0.7.5-ek1sq6b5.mjs +2 -0
  148. package/dist/chunks/cli-0.7.5-f5jj9gaq.mjs +2 -0
  149. package/dist/chunks/cli-0.7.5-f8j1xqbv.mjs +2 -0
  150. package/dist/chunks/cli-0.7.5-f9jr5v5w.mjs +5 -0
  151. package/dist/chunks/cli-0.7.5-f9v35634.mjs +2 -0
  152. package/dist/chunks/cli-0.7.5-fjd3yr3y.mjs +2 -0
  153. package/dist/chunks/cli-0.7.5-fsr31z4k.mjs +12 -0
  154. package/dist/chunks/cli-0.7.5-ftngeevg.mjs +2 -0
  155. package/dist/chunks/cli-0.7.5-fzamc565.mjs +3 -0
  156. package/dist/chunks/cli-0.7.5-fzktcx0s.mjs +4 -0
  157. package/dist/chunks/cli-0.7.5-fzqampqh.mjs +4 -0
  158. package/dist/chunks/cli-0.7.5-g3ejs520.mjs +2 -0
  159. package/dist/chunks/cli-0.7.5-gb57bm0v.mjs +2 -0
  160. package/dist/chunks/cli-0.7.5-gbz8thht.mjs +50 -0
  161. package/dist/chunks/cli-0.7.5-gd8wcttv.mjs +3 -0
  162. package/dist/chunks/cli-0.7.5-gdadd4x4.mjs +2 -0
  163. package/dist/chunks/cli-0.7.5-gfq85y17.mjs +2 -0
  164. package/dist/chunks/cli-0.7.5-gh00zb08.mjs +18 -0
  165. package/dist/chunks/cli-0.7.5-ghq2axmf.mjs +194 -0
  166. package/dist/chunks/cli-0.7.5-gmew5n1p.mjs +2 -0
  167. package/dist/chunks/cli-0.7.5-gpbvs2kz.mjs +2 -0
  168. package/dist/chunks/cli-0.7.5-h3p8qw3f.mjs +2 -0
  169. package/dist/chunks/cli-0.7.5-h6e17t7j.mjs +2 -0
  170. package/dist/chunks/cli-0.7.5-h9s62ky5.mjs +2 -0
  171. package/dist/chunks/cli-0.7.5-hb39f7nj.mjs +2 -0
  172. package/dist/chunks/cli-0.7.5-hbgzm4wt.mjs +9 -0
  173. package/dist/chunks/cli-0.7.5-hce2yd4f.mjs +2 -0
  174. package/dist/chunks/cli-0.7.5-hcxagyjb.mjs +2 -0
  175. package/dist/chunks/cli-0.7.5-hd1mkmqa.mjs +2 -0
  176. package/dist/chunks/cli-0.7.5-hfej6gk7.mjs +2 -0
  177. package/dist/chunks/cli-0.7.5-hfvrp8qk.mjs +2 -0
  178. package/dist/chunks/cli-0.7.5-hh8ynv80.mjs +2 -0
  179. package/dist/chunks/cli-0.7.5-hp8g8gw0.mjs +2 -0
  180. package/dist/chunks/cli-0.7.5-htnhe6mt.mjs +2 -0
  181. package/dist/chunks/cli-0.7.5-hxk7g9fk.mjs +2 -0
  182. package/dist/chunks/cli-0.7.5-hyyd4eh8.mjs +2 -0
  183. package/dist/chunks/cli-0.7.5-j27qn7ks.mjs +2 -0
  184. package/dist/chunks/cli-0.7.5-jc93grn1.mjs +2 -0
  185. package/dist/chunks/cli-0.7.5-jwcpd0fz.mjs +2 -0
  186. package/dist/chunks/cli-0.7.5-jx9x8eh7.mjs +2 -0
  187. package/dist/chunks/cli-0.7.5-k2nqj3ry.mjs +39 -0
  188. package/dist/chunks/cli-0.7.5-kj54k6vh.mjs +4 -0
  189. package/dist/chunks/cli-0.7.5-krbmx93g.mjs +2 -0
  190. package/dist/chunks/cli-0.7.5-kzmgwzjq.mjs +7 -0
  191. package/dist/chunks/cli-0.7.5-m8cf1p72.mjs +2 -0
  192. package/dist/chunks/cli-0.7.5-medd7tha.mjs +2 -0
  193. package/dist/chunks/cli-0.7.5-mftmyrxg.mjs +2 -0
  194. package/dist/chunks/cli-0.7.5-mhdkfw8w.mjs +2 -0
  195. package/dist/chunks/cli-0.7.5-mk1nsvev.mjs +2 -0
  196. package/dist/chunks/cli-0.7.5-mkypasee.mjs +3 -0
  197. package/dist/chunks/cli-0.7.5-mtaq950q.mjs +2 -0
  198. package/dist/chunks/cli-0.7.5-myvw92ta.mjs +2 -0
  199. package/dist/chunks/cli-0.7.5-n8nsc1fy.mjs +4 -0
  200. package/dist/chunks/cli-0.7.5-p72rah24.mjs +2 -0
  201. package/dist/chunks/cli-0.7.5-pd9x4y8x.mjs +2 -0
  202. package/dist/chunks/cli-0.7.5-pm9grnq1.mjs +67 -0
  203. package/dist/chunks/cli-0.7.5-pmsw8q6q.mjs +2 -0
  204. package/dist/chunks/cli-0.7.5-pxj8y53k.mjs +2 -0
  205. package/dist/chunks/cli-0.7.5-q4nf1yjd.mjs +2 -0
  206. package/dist/chunks/cli-0.7.5-qpqfdmsk.mjs +4 -0
  207. package/dist/chunks/cli-0.7.5-qxdvdw89.mjs +3 -0
  208. package/dist/chunks/cli-0.7.5-qzhygzzn.mjs +5 -0
  209. package/dist/chunks/cli-0.7.5-rahmqve7.mjs +2 -0
  210. package/dist/chunks/cli-0.7.5-rbv538zg.mjs +2 -0
  211. package/dist/chunks/cli-0.7.5-rc47zyrc.mjs +2 -0
  212. package/dist/chunks/cli-0.7.5-rg2nrraj.mjs +2 -0
  213. package/dist/chunks/cli-0.7.5-rpnr09s5.mjs +2 -0
  214. package/dist/chunks/cli-0.7.5-rqvar6g7.mjs +16 -0
  215. package/dist/chunks/cli-0.7.5-s65rbrvj.mjs +58 -0
  216. package/dist/chunks/cli-0.7.5-sq0v922e.mjs +6 -0
  217. package/dist/chunks/cli-0.7.5-t77nd6kj.mjs +2 -0
  218. package/dist/chunks/cli-0.7.5-tbrfr6hj.mjs +2 -0
  219. package/dist/chunks/cli-0.7.5-tqwr1q73.mjs +4 -0
  220. package/dist/chunks/cli-0.7.5-tzc3pn7w.mjs +2 -0
  221. package/dist/chunks/cli-0.7.5-v85dx0nq.mjs +2 -0
  222. package/dist/chunks/cli-0.7.5-v8apq7df.mjs +15 -0
  223. package/dist/chunks/cli-0.7.5-vhkgs6h9.mjs +2 -0
  224. package/dist/chunks/cli-0.7.5-vktpnz25.mjs +2 -0
  225. package/dist/chunks/cli-0.7.5-vmr9xqzs.mjs +6 -0
  226. package/dist/chunks/cli-0.7.5-vzssapx0.mjs +2 -0
  227. package/dist/chunks/cli-0.7.5-w2vyrb4j.mjs +18 -0
  228. package/dist/chunks/cli-0.7.5-wd0yxrvg.mjs +2 -0
  229. package/dist/chunks/cli-0.7.5-wj3w13az.mjs +2 -0
  230. package/dist/chunks/cli-0.7.5-wjpv5xmb.mjs +4 -0
  231. package/dist/chunks/cli-0.7.5-wpgtmkvc.mjs +2 -0
  232. package/dist/chunks/cli-0.7.5-x2z686xj.mjs +25 -0
  233. package/dist/chunks/cli-0.7.5-xbqxjykr.mjs +2 -0
  234. package/dist/chunks/cli-0.7.5-xfxxbwbm.mjs +12 -0
  235. package/dist/chunks/cli-0.7.5-xg32zg8k.mjs +24 -0
  236. package/dist/chunks/cli-0.7.5-xgdba5yp.mjs +2 -0
  237. package/dist/chunks/cli-0.7.5-xt0mqg4f.mjs +2 -0
  238. package/dist/chunks/cli-0.7.5-xv3vs7j9.mjs +2 -0
  239. package/dist/chunks/cli-0.7.5-xv6ra0kw.mjs +2 -0
  240. package/dist/chunks/cli-0.7.5-xvveqsx1.mjs +2 -0
  241. package/dist/chunks/cli-0.7.5-xwzejhw4.mjs +3 -0
  242. package/dist/chunks/cli-0.7.5-y3yqkc5p.mjs +12 -0
  243. package/dist/chunks/cli-0.7.5-y58r6dq0.mjs +2 -0
  244. package/dist/chunks/cli-0.7.5-y7ehmef8.mjs +1 -0
  245. package/dist/chunks/cli-0.7.5-ydfgf7qv.mjs +21 -0
  246. package/dist/chunks/cli-0.7.5-yjwnjtvn.mjs +2 -0
  247. package/dist/chunks/cli-0.7.5-yr70t57x.mjs +2 -0
  248. package/dist/chunks/cli-0.7.5-z2yexv2e.mjs +2 -0
  249. package/dist/chunks/cli-0.7.5-z3dzj7v3.mjs +2 -0
  250. package/dist/chunks/cli-0.7.5-z40jp8ew.mjs +4 -0
  251. package/dist/chunks/cli-0.7.5-zde1m2ej.mjs +4 -0
  252. package/dist/chunks/cli-0.7.5-zdq0vv92.mjs +2 -0
  253. package/dist/chunks/cli-0.7.5-zftjc44p.mjs +2 -0
  254. package/dist/chunks/cli-0.7.5-zj0xcj80.mjs +2 -0
  255. package/dist/chunks/cli-0.7.5-zpmehtjz.mjs +2 -0
  256. package/dist/chunks/cli-0.7.5-zsmx06gy.mjs +2 -0
  257. package/dist/chunks/client-0.7.5-w36k0xa4.mjs +1 -0
  258. package/dist/chunks/color-0.7.5-6q028b6j.mjs +1 -0
  259. package/dist/chunks/compact-0.7.5-brw7r66h.mjs +3 -0
  260. package/dist/chunks/config-0.7.5-23y0vmxv.mjs +1 -0
  261. package/dist/chunks/config-0.7.5-scfm2ghv.mjs +1 -0
  262. package/dist/chunks/constants-0.7.5-gtkzq93a.mjs +1 -0
  263. package/dist/chunks/context-0.7.5-5sr5p20h.mjs +1 -0
  264. package/dist/chunks/context-noninteractive-0.7.5-478h1wv5.mjs +1 -0
  265. package/dist/chunks/conversation-0.7.5-qmek5yn5.mjs +1 -0
  266. package/dist/chunks/copilotHeaders-0.7.5-hbgm40tm.mjs +1 -0
  267. package/dist/chunks/copy-0.7.5-1j6r3503.mjs +9 -0
  268. package/dist/chunks/cost-0.7.5-qmhkw8cf.mjs +1 -0
  269. package/dist/chunks/createSSHSession-0.7.5-km7csf59.mjs +1 -0
  270. package/dist/chunks/createSession-0.7.5-4ry726v4.mjs +1 -0
  271. package/dist/chunks/debug-0.7.5-f7ay5633.mjs +1 -0
  272. package/dist/chunks/defaultActionDeps-0.7.5-fahgw2xf.mjs +1446 -0
  273. package/dist/chunks/desktop-0.7.5-177ca2xz.mjs +1 -0
  274. package/dist/chunks/detectRepository-0.7.5-9tagnw7m.mjs +1 -0
  275. package/dist/chunks/detection-0.7.5-g5p116dy.mjs +1 -0
  276. package/dist/chunks/diff-0.7.5-gwzyav0v.mjs +1 -0
  277. package/dist/chunks/doctor-0.7.5-eqrnfehr.mjs +1 -0
  278. package/dist/chunks/doctorDiagnostic-0.7.5-wtjp576r.mjs +1 -0
  279. package/dist/chunks/earlyInput-0.7.5-cbbxamm6.mjs +1 -0
  280. package/dist/chunks/effort-0.7.5-h1m1pcsc.mjs +10 -0
  281. package/dist/chunks/engine-0.7.5-3s2wmkmq.mjs +1 -0
  282. package/dist/chunks/envLessBridgeConfig-0.7.5-6kr19meq.mjs +1 -0
  283. package/dist/chunks/envUtils-0.7.5-gna3tn15.mjs +1 -0
  284. package/dist/chunks/environmentSelection-0.7.5-ax80y2br.mjs +1 -0
  285. package/dist/chunks/environments-0.7.5-vzttb5rv.mjs +1 -0
  286. package/dist/chunks/errors-0.7.5-39sxdk37.mjs +1 -0
  287. package/dist/chunks/exampleCommands-0.7.5-xsrm4x8y.mjs +1 -0
  288. package/dist/chunks/exit-0.7.5-bkbd5npx.mjs +1 -0
  289. package/dist/chunks/explorer-0.7.5-19gvmqgr.mjs +1 -0
  290. package/dist/chunks/export-0.7.5-34j4n9kh.mjs +2 -0
  291. package/dist/chunks/extra-usage-0.7.5-b97sj0ap.mjs +1 -0
  292. package/dist/chunks/extra-usage-noninteractive-0.7.5-xd1mr1j5.mjs +1 -0
  293. package/dist/chunks/fast-0.7.5-0wqk7a9x.mjs +1 -0
  294. package/dist/chunks/feedback-0.7.5-vtbcry18.mjs +14 -0
  295. package/dist/chunks/firstPartyEventLogger-0.7.5-xqazh0ye.mjs +1 -0
  296. package/dist/chunks/git-0.7.5-e2235c1t.mjs +1 -0
  297. package/dist/chunks/githubModelsCredentials-0.7.5-rv73mazg.mjs +1 -0
  298. package/dist/chunks/goal-0.7.5-cqb7e1pf.mjs +4 -0
  299. package/dist/chunks/grove-0.7.5-qsvaz9x8.mjs +1 -0
  300. package/dist/chunks/growthbook-0.7.5-3qfr8h94.mjs +1 -0
  301. package/dist/chunks/headless-0.7.5-wbtxesec.mjs +2 -0
  302. package/dist/chunks/heapdump-0.7.5-nc48tbvw.mjs +6 -0
  303. package/dist/chunks/help-0.7.5-6jm9nrcy.mjs +1 -0
  304. package/dist/chunks/hookChains-0.7.5-khy46vaw.mjs +3 -0
  305. package/dist/chunks/hooks-0.7.5-167mv9th.mjs +1 -0
  306. package/dist/chunks/hooks-0.7.5-nx4910ga.mjs +79 -0
  307. package/dist/chunks/ide-0.7.5-n6hvszan.mjs +3 -0
  308. package/dist/chunks/image-processor-napi-0.7.5-ndmd493b.mjs +1 -0
  309. package/dist/chunks/inboundAttachments-0.7.5-1nbx425g.mjs +1 -0
  310. package/dist/chunks/index-0.7.5-5j4305xq.mjs +1 -0
  311. package/dist/chunks/index-0.7.5-63xhx5j4.mjs +1 -0
  312. package/dist/chunks/index-0.7.5-7e5rqqh4.mjs +9 -0
  313. package/dist/chunks/index-0.7.5-a12krakj.mjs +2 -0
  314. package/dist/chunks/index-0.7.5-bsq6e16w.mjs +1 -0
  315. package/dist/chunks/index-0.7.5-caethvnv.mjs +1 -0
  316. package/dist/chunks/index-0.7.5-cx1vr981.mjs +17 -0
  317. package/dist/chunks/index-0.7.5-dcd3w04q.mjs +1 -0
  318. package/dist/chunks/index-0.7.5-ekrwk3jz.mjs +9 -0
  319. package/dist/chunks/index-0.7.5-h4cbsc0a.mjs +2 -0
  320. package/dist/chunks/index-0.7.5-hvzcp0kn.mjs +5 -0
  321. package/dist/chunks/index-0.7.5-kh3ebxx0.mjs +1 -0
  322. package/dist/chunks/index-0.7.5-kzhpap3n.mjs +1 -0
  323. package/dist/chunks/index-0.7.5-njd4yt57.mjs +1 -0
  324. package/dist/chunks/index-0.7.5-r1ny63xd.mjs +1 -0
  325. package/dist/chunks/index-0.7.5-ry24w7t2.mjs +1 -0
  326. package/dist/chunks/index-0.7.5-syzp921n.mjs +30 -0
  327. package/dist/chunks/index-0.7.5-t7jx62n3.mjs +1 -0
  328. package/dist/chunks/index-0.7.5-wj36e6k0.mjs +1 -0
  329. package/dist/chunks/index-0.7.5-yv1dtnpt.mjs +1 -0
  330. package/dist/chunks/index-0.7.5-yzrfjy23.mjs +1 -0
  331. package/dist/chunks/index-0.7.5-zfker4t5.mjs +1 -0
  332. package/dist/chunks/index-0.7.5-zxrxsyxj.mjs +1 -0
  333. package/dist/chunks/init-0.7.5-hh6v113j.mjs +1 -0
  334. package/dist/chunks/initReplBridge-0.7.5-c1za6hde.mjs +1 -0
  335. package/dist/chunks/ink-0.7.5-56yev9n3.mjs +1 -0
  336. package/dist/chunks/insights-0.7.5-qz9bb1ry.mjs +870 -0
  337. package/dist/chunks/install-0.7.5-sbxfgz0w.mjs +1 -0
  338. package/dist/chunks/install-github-app-0.7.5-7txny4wr.mjs +149 -0
  339. package/dist/chunks/install-slack-app-0.7.5-69pj36yh.mjs +1 -0
  340. package/dist/chunks/instrumentation-0.7.5-q9v6ptmg.mjs +1 -0
  341. package/dist/chunks/interactiveHelpers-0.7.5-40q6avjg.mjs +1 -0
  342. package/dist/chunks/keybindings-0.7.5-wj2ms9t5.mjs +2 -0
  343. package/dist/chunks/knowledge-0.7.5-t1ay4xsf.mjs +2 -0
  344. package/dist/chunks/latestVersionCache-0.7.5-2sn56g0f.mjs +1 -0
  345. package/dist/chunks/loadAgentsDir-0.7.5-fw6g0k2f.mjs +1 -0
  346. package/dist/chunks/loadPluginHooks-0.7.5-32j9xrwe.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-0.7.5-wex6715a.mjs +1 -0
  348. package/dist/chunks/log-0.7.5-ksrcjwgt.mjs +1 -0
  349. package/dist/chunks/main-0.7.5-y3x6nz9x.mjs +1 -0
  350. package/dist/chunks/managedEnv-0.7.5-8t44hgy8.mjs +1 -0
  351. package/dist/chunks/mcp-0.7.5-60fgv34x.mjs +1 -0
  352. package/dist/chunks/mcp-0.7.5-mbfzrcm8.mjs +4 -0
  353. package/dist/chunks/mcp-0.7.5-rkaypthk.mjs +17 -0
  354. package/dist/chunks/mcpb-0.7.5-v66xmybr.mjs +1 -0
  355. package/dist/chunks/memory-0.7.5-fvpt844c.mjs +3 -0
  356. package/dist/chunks/model-0.7.5-tsr4h9g8.mjs +2 -0
  357. package/dist/chunks/model-0.7.5-z5fcqt5b.mjs +1 -0
  358. package/dist/chunks/node-0.7.5-ym7zwnx3.mjs +12 -0
  359. package/dist/chunks/oauth-0.7.5-pp4rkjfe.mjs +1 -0
  360. package/dist/chunks/openaiShim-0.7.5-vtkg5q0g.mjs +14 -0
  361. package/dist/chunks/output-style-0.7.5-13fnqr6c.mjs +1 -0
  362. package/dist/chunks/package-ZZWOLTXM-0.7.5-16qd12nt.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-0.7.5-s8jq90n0.mjs +1 -0
  364. package/dist/chunks/parser-0.7.5-eefzgrd7.mjs +1 -0
  365. package/dist/chunks/passes-0.7.5-4axt111x.mjs +1 -0
  366. package/dist/chunks/permissions-0.7.5-s0m3z1fe.mjs +3 -0
  367. package/dist/chunks/permissions-0.7.5-xdxqnd7w.mjs +1 -0
  368. package/dist/chunks/plan-0.7.5-wwgtg3j2.mjs +1 -0
  369. package/dist/chunks/plist-0.7.5-sqqsbn3c.mjs +1 -0
  370. package/dist/chunks/plugin-0.7.5-1d2gra71.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-0.7.5-5z80320b.mjs +1 -0
  372. package/dist/chunks/plugins-0.7.5-0a9ytst2.mjs +9 -0
  373. package/dist/chunks/preActionHook-0.7.5-pe8h6p21.mjs +2 -0
  374. package/dist/chunks/print-0.7.5-9ejsfw3k.mjs +57 -0
  375. package/dist/chunks/privacy-settings-0.7.5-d9ptjk2d.mjs +1 -0
  376. package/dist/chunks/process-0.7.5-fgwhv8bw.mjs +1 -0
  377. package/dist/chunks/processBashCommand-0.7.5-c619z7fd.mjs +1 -0
  378. package/dist/chunks/processSlashCommand-0.7.5-75p45f0t.mjs +9 -0
  379. package/dist/chunks/prompt-0.7.5-51c6hnqr.mjs +1 -0
  380. package/dist/chunks/prompt-0.7.5-cy0v1vqr.mjs +1 -0
  381. package/dist/chunks/prompts-0.7.5-wmn5bdx5.mjs +1 -0
  382. package/dist/chunks/protocolHandler-0.7.5-eeqecgkp.mjs +13 -0
  383. package/dist/chunks/provider-0.7.5-y0gpvctq.mjs +2 -0
  384. package/dist/chunks/providerProfiles-0.7.5-jrmjbp5b.mjs +1 -0
  385. package/dist/chunks/providerValidation-0.7.5-jgdgbk4q.mjs +6 -0
  386. package/dist/chunks/rate-limit-options-0.7.5-29f89kh1.mjs +1 -0
  387. package/dist/chunks/registerSubcommands-0.7.5-c36hzdav.mjs +34 -0
  388. package/dist/chunks/registry-0.7.5-whsh7x53.mjs +1 -0
  389. package/dist/chunks/release-notes-0.7.5-ptvapnr0.mjs +5 -0
  390. package/dist/chunks/reload-plugins-0.7.5-ka0e8hq5.mjs +2 -0
  391. package/dist/chunks/remote-env-0.7.5-qjxje9ma.mjs +1 -0
  392. package/dist/chunks/remoteBridgeCore-0.7.5-k3f68b7h.mjs +1 -0
  393. package/dist/chunks/remoteSession-0.7.5-rape7yd4.mjs +1 -0
  394. package/dist/chunks/rename-0.7.5-ktcd7rtq.mjs +1 -0
  395. package/dist/chunks/replBridgeHandle-0.7.5-phh34y8h.mjs +1 -0
  396. package/dist/chunks/replLauncher-0.7.5-sq476c2a.mjs +1 -0
  397. package/dist/chunks/resume-0.7.5-6tvrgh8j.mjs +2 -0
  398. package/dist/chunks/rewind-0.7.5-vd47v5rv.mjs +1 -0
  399. package/dist/chunks/rootOptions-0.7.5-wqt2k4rc.mjs +1 -0
  400. package/dist/chunks/sandbox-adapter-0.7.5-ky898f3m.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-0.7.5-7hkar7r5.mjs +1 -0
  402. package/dist/chunks/session-0.7.5-hkxz3wye.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-0.7.5-y04m8ab9.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-0.7.5-f5rgs672.mjs +1 -0
  405. package/dist/chunks/sessionStorage-0.7.5-18q303bk.mjs +1 -0
  406. package/dist/chunks/settings-0.7.5-4hqnkkc8.mjs +1 -0
  407. package/dist/chunks/setup-0.7.5-y5xxwxbd.mjs +5 -0
  408. package/dist/chunks/sinks-0.7.5-cvxvp35v.mjs +1 -0
  409. package/dist/chunks/skills-0.7.5-kwgf9qjq.mjs +1 -0
  410. package/dist/chunks/startupProfiler-0.7.5-za7tk2tk.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-0.7.5-czmgq418.mjs +1 -0
  412. package/dist/chunks/state-0.7.5-ak36peq3.mjs +1 -0
  413. package/dist/chunks/stats-0.7.5-er3ye8yh.mjs +6 -0
  414. package/dist/chunks/status-0.7.5-c5cjb8e4.mjs +1 -0
  415. package/dist/chunks/stickers-0.7.5-j3k2cxdh.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-0.7.5-c9cn3hdx.mjs +1 -0
  417. package/dist/chunks/tasks-0.7.5-63j9r8xa.mjs +1 -0
  418. package/dist/chunks/teamHelpers-0.7.5-m7f40cd8.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-0.7.5-p9m6xw5v.mjs +1 -0
  420. package/dist/chunks/teleport-0.7.5-eznfwa79.mjs +1 -0
  421. package/dist/chunks/terminalSetup-0.7.5-jh6gn62d.mjs +1 -0
  422. package/dist/chunks/theme-0.7.5-ybd8jwyk.mjs +1 -0
  423. package/dist/chunks/thinkback-0.7.5-n7szmggb.mjs +1 -0
  424. package/dist/chunks/thinkback-play-0.7.5-7zmp1768.mjs +1 -0
  425. package/dist/chunks/toolPool-0.7.5-3086ep19.mjs +1 -0
  426. package/dist/chunks/toolSearch-0.7.5-ksvb5jn8.mjs +1 -0
  427. package/dist/chunks/tools-0.7.5-a8e705rj.mjs +1 -0
  428. package/dist/chunks/trustedDevice-0.7.5-skv46tba.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-0.7.5-bv92xw4e.mjs +69 -0
  430. package/dist/chunks/types-0.7.5-63qbfwst.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-0.7.5-8skwm5gw.mjs +4 -0
  432. package/dist/chunks/update-0.7.5-g0qcx3kr.mjs +86 -0
  433. package/dist/chunks/upgrade-0.7.5-gka5mmvk.mjs +1 -0
  434. package/dist/chunks/upload-0.7.5-6kw8akzx.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-0.7.5-97n9j2vs.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-0.7.5-2gqe7mr0.mjs +1 -0
  437. package/dist/chunks/usage-0.7.5-36hanm9f.mjs +1 -0
  438. package/dist/chunks/util-0.7.5-90a4jn87.mjs +1 -0
  439. package/dist/chunks/utils-0.7.5-8rhszmzb.mjs +1 -0
  440. package/dist/chunks/vim-0.7.5-nptszgna.mjs +1 -0
  441. package/dist/chunks/watcher-0.7.5-pqe6cg42.mjs +1 -0
  442. package/dist/chunks/wiki-0.7.5-zngdktge.mjs +132 -0
  443. package/dist/chunks/workflows-0.7.5-efk35dv0.mjs +1 -0
  444. package/dist/chunks/worktree-0.7.5-ptj9226d.mjs +1 -0
  445. package/dist/chunks/worktreeModeEnabled-0.7.5-whaev58q.mjs +1 -0
  446. package/dist/chunks/wrapper-0.7.5-dfb28jc5.mjs +7 -0
  447. package/dist/claudin-vscode.vsix +0 -0
  448. package/dist/cli.mjs +2 -2
  449. package/package.json +3 -11
  450. package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +0 -1
  451. package/dist/chunks/App-0.7.4-f82nhj4b.mjs +0 -1
  452. package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +0 -1
  453. package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +0 -1
  454. package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +0 -1
  455. package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +0 -1
  456. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +0 -1
  457. package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +0 -1
  458. package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +0 -7
  459. package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +0 -1
  460. package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +0 -6
  461. package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +0 -1
  462. package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +0 -1
  463. package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +0 -1
  464. package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +0 -1
  465. package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +0 -1
  466. package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +0 -1
  467. package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +0 -1
  468. package/dist/chunks/REPL-0.7.4-n38hda18.mjs +0 -1
  469. package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +0 -1
  470. package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +0 -1
  471. package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +0 -1
  472. package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +0 -1
  473. package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +0 -1
  474. package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +0 -9
  475. package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +0 -1
  476. package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +0 -1
  477. package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +0 -1
  478. package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +0 -1
  479. package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +0 -1
  480. package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +0 -110
  481. package/dist/chunks/agents-0.7.4-eart70kj.mjs +0 -3
  482. package/dist/chunks/api-0.7.4-eqsmhts7.mjs +0 -1
  483. package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +0 -1
  484. package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +0 -1
  485. package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +0 -1
  486. package/dist/chunks/auth-0.7.4-tzph01c0.mjs +0 -1
  487. package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +0 -48
  488. package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +0 -1
  489. package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +0 -1
  490. package/dist/chunks/branch-0.7.4-29eypmvg.mjs +0 -4
  491. package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +0 -2
  492. package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +0 -1
  493. package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +0 -1
  494. package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +0 -88
  495. package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +0 -1
  496. package/dist/chunks/btw-0.7.4-rw5186va.mjs +0 -1
  497. package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +0 -3
  498. package/dist/chunks/cacache-0.7.4-254mqspw.mjs +0 -1
  499. package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +0 -21
  500. package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +0 -4
  501. package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +0 -1
  502. package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +0 -1
  503. package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +0 -1
  504. package/dist/chunks/clear-0.7.4-2qt378q0.mjs +0 -1
  505. package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +0 -1
  506. package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +0 -3
  507. package/dist/chunks/cli-0.7.4-0a7934k3.mjs +0 -21
  508. package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +0 -2
  509. package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +0 -2
  510. package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +0 -2
  511. package/dist/chunks/cli-0.7.4-0thtf513.mjs +0 -2
  512. package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +0 -2
  513. package/dist/chunks/cli-0.7.4-12k33ng9.mjs +0 -2
  514. package/dist/chunks/cli-0.7.4-15xs793c.mjs +0 -2
  515. package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +0 -42
  516. package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +0 -5469
  517. package/dist/chunks/cli-0.7.4-2apswqf5.mjs +0 -59
  518. package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +0 -6
  519. package/dist/chunks/cli-0.7.4-2haqz80h.mjs +0 -16
  520. package/dist/chunks/cli-0.7.4-2p5w6279.mjs +0 -45
  521. package/dist/chunks/cli-0.7.4-33k7j18b.mjs +0 -3
  522. package/dist/chunks/cli-0.7.4-3e7assg4.mjs +0 -2
  523. package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +0 -2
  524. package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +0 -2
  525. package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +0 -2
  526. package/dist/chunks/cli-0.7.4-489pp4nd.mjs +0 -2
  527. package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +0 -133
  528. package/dist/chunks/cli-0.7.4-4br84c8j.mjs +0 -2
  529. package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +0 -2
  530. package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +0 -18
  531. package/dist/chunks/cli-0.7.4-4sh782tn.mjs +0 -2
  532. package/dist/chunks/cli-0.7.4-507dp6s1.mjs +0 -2
  533. package/dist/chunks/cli-0.7.4-510c371d.mjs +0 -12
  534. package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +0 -2
  535. package/dist/chunks/cli-0.7.4-53k7apn9.mjs +0 -2
  536. package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +0 -2
  537. package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +0 -2
  538. package/dist/chunks/cli-0.7.4-61etrp8x.mjs +0 -2
  539. package/dist/chunks/cli-0.7.4-61svw97d.mjs +0 -3
  540. package/dist/chunks/cli-0.7.4-6265e9tz.mjs +0 -2
  541. package/dist/chunks/cli-0.7.4-62ac47x8.mjs +0 -2
  542. package/dist/chunks/cli-0.7.4-66p94pps.mjs +0 -3
  543. package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +0 -3
  544. package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +0 -15
  545. package/dist/chunks/cli-0.7.4-6n295sx3.mjs +0 -2
  546. package/dist/chunks/cli-0.7.4-6sqa761d.mjs +0 -2
  547. package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +0 -2
  548. package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +0 -2
  549. package/dist/chunks/cli-0.7.4-729n63er.mjs +0 -2
  550. package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +0 -1
  551. package/dist/chunks/cli-0.7.4-7mzefe20.mjs +0 -2
  552. package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +0 -2
  553. package/dist/chunks/cli-0.7.4-7tr153ha.mjs +0 -2
  554. package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +0 -2
  555. package/dist/chunks/cli-0.7.4-85txq06q.mjs +0 -2
  556. package/dist/chunks/cli-0.7.4-8hskaxte.mjs +0 -2
  557. package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +0 -25
  558. package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +0 -2
  559. package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +0 -2
  560. package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +0 -18
  561. package/dist/chunks/cli-0.7.4-90d95m4d.mjs +0 -2
  562. package/dist/chunks/cli-0.7.4-9kf16ber.mjs +0 -2
  563. package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +0 -2
  564. package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +0 -6
  565. package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +0 -2
  566. package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +0 -2
  567. package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +0 -2
  568. package/dist/chunks/cli-0.7.4-ae96heq4.mjs +0 -2
  569. package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +0 -2
  570. package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +0 -4
  571. package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +0 -2
  572. package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +0 -2
  573. package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +0 -2
  574. package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +0 -4
  575. package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +0 -2
  576. package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +0 -2
  577. package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +0 -2
  578. package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +0 -24
  579. package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +0 -2
  580. package/dist/chunks/cli-0.7.4-d82gqb10.mjs +0 -2
  581. package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +0 -2
  582. package/dist/chunks/cli-0.7.4-da69w12w.mjs +0 -3
  583. package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +0 -2
  584. package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +0 -2
  585. package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +0 -2
  586. package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +0 -2
  587. package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +0 -24
  588. package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +0 -2
  589. package/dist/chunks/cli-0.7.4-egc286gx.mjs +0 -2
  590. package/dist/chunks/cli-0.7.4-ejm88apc.mjs +0 -2
  591. package/dist/chunks/cli-0.7.4-emdbzgja.mjs +0 -2
  592. package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +0 -2
  593. package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +0 -2
  594. package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +0 -39
  595. package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +0 -4
  596. package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +0 -2
  597. package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +0 -2
  598. package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +0 -4
  599. package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +0 -2
  600. package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +0 -2
  601. package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +0 -2
  602. package/dist/chunks/cli-0.7.4-gr1feczd.mjs +0 -2
  603. package/dist/chunks/cli-0.7.4-gxccpbef.mjs +0 -3
  604. package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +0 -2
  605. package/dist/chunks/cli-0.7.4-h24m11yy.mjs +0 -2
  606. package/dist/chunks/cli-0.7.4-h5274d0h.mjs +0 -2
  607. package/dist/chunks/cli-0.7.4-h57hq23q.mjs +0 -2
  608. package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +0 -9
  609. package/dist/chunks/cli-0.7.4-h94hrj45.mjs +0 -2
  610. package/dist/chunks/cli-0.7.4-hayqy916.mjs +0 -2
  611. package/dist/chunks/cli-0.7.4-hegk157e.mjs +0 -6
  612. package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +0 -2
  613. package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +0 -17
  614. package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +0 -24
  615. package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +0 -194
  616. package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +0 -3
  617. package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +0 -2
  618. package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +0 -2
  619. package/dist/chunks/cli-0.7.4-jgg33mak.mjs +0 -2
  620. package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +0 -3
  621. package/dist/chunks/cli-0.7.4-k735e5sg.mjs +0 -133
  622. package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +0 -58
  623. package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +0 -5
  624. package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +0 -2
  625. package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +0 -2
  626. package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +0 -15
  627. package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +0 -2
  628. package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +0 -2
  629. package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +0 -4
  630. package/dist/chunks/cli-0.7.4-mdv26096.mjs +0 -6
  631. package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +0 -2
  632. package/dist/chunks/cli-0.7.4-mmzkb167.mjs +0 -2
  633. package/dist/chunks/cli-0.7.4-mq3qzben.mjs +0 -2
  634. package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +0 -4
  635. package/dist/chunks/cli-0.7.4-n9arxrya.mjs +0 -12
  636. package/dist/chunks/cli-0.7.4-naanktx2.mjs +0 -34
  637. package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +0 -2
  638. package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +0 -2
  639. package/dist/chunks/cli-0.7.4-p85h0qry.mjs +0 -17
  640. package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +0 -2
  641. package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +0 -2
  642. package/dist/chunks/cli-0.7.4-pyyaz246.mjs +0 -2
  643. package/dist/chunks/cli-0.7.4-q23avgwg.mjs +0 -2
  644. package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +0 -2
  645. package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +0 -2
  646. package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +0 -10
  647. package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +0 -2
  648. package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +0 -2
  649. package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +0 -2
  650. package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +0 -2
  651. package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +0 -2
  652. package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +0 -2
  653. package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +0 -2
  654. package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +0 -2
  655. package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +0 -2
  656. package/dist/chunks/cli-0.7.4-rskynrc5.mjs +0 -4
  657. package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +0 -3
  658. package/dist/chunks/cli-0.7.4-rts5twex.mjs +0 -2
  659. package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +0 -2
  660. package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +0 -4
  661. package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +0 -2
  662. package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +0 -67
  663. package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +0 -2
  664. package/dist/chunks/cli-0.7.4-sxvnky38.mjs +0 -2
  665. package/dist/chunks/cli-0.7.4-syg2nab8.mjs +0 -18
  666. package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +0 -2
  667. package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +0 -2
  668. package/dist/chunks/cli-0.7.4-te9nvehv.mjs +0 -2
  669. package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +0 -2
  670. package/dist/chunks/cli-0.7.4-tme1sywb.mjs +0 -2
  671. package/dist/chunks/cli-0.7.4-tny04z8h.mjs +0 -2
  672. package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +0 -2
  673. package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +0 -3
  674. package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +0 -2
  675. package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +0 -5
  676. package/dist/chunks/cli-0.7.4-vq696c8w.mjs +0 -2
  677. package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +0 -2
  678. package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +0 -2
  679. package/dist/chunks/cli-0.7.4-wa74g17n.mjs +0 -2
  680. package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +0 -2
  681. package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +0 -5
  682. package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +0 -12
  683. package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +0 -2
  684. package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +0 -50
  685. package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +0 -12
  686. package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +0 -4
  687. package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +0 -2
  688. package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +0 -2
  689. package/dist/chunks/cli-0.7.4-xt87yshe.mjs +0 -20
  690. package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +0 -8
  691. package/dist/chunks/cli-0.7.4-y4w46256.mjs +0 -2
  692. package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +0 -2
  693. package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +0 -4
  694. package/dist/chunks/cli-0.7.4-yces9dz7.mjs +0 -2
  695. package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +0 -2
  696. package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +0 -3
  697. package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +0 -2
  698. package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +0 -25
  699. package/dist/chunks/cli-0.7.4-z48enz4n.mjs +0 -2
  700. package/dist/chunks/cli-0.7.4-z88n7a08.mjs +0 -2
  701. package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +0 -3
  702. package/dist/chunks/cli-0.7.4-zaa684f4.mjs +0 -15
  703. package/dist/chunks/cli-0.7.4-zbdceewq.mjs +0 -7
  704. package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +0 -2
  705. package/dist/chunks/client-0.7.4-hxpb2apz.mjs +0 -1
  706. package/dist/chunks/color-0.7.4-pkanvtan.mjs +0 -1
  707. package/dist/chunks/compact-0.7.4-sjz49brs.mjs +0 -3
  708. package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +0 -1
  709. package/dist/chunks/config-0.7.4-mc1mvka6.mjs +0 -1
  710. package/dist/chunks/constants-0.7.4-q426cgcp.mjs +0 -1
  711. package/dist/chunks/context-0.7.4-ssay296s.mjs +0 -1
  712. package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +0 -1
  713. package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +0 -1
  714. package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +0 -1
  715. package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +0 -9
  716. package/dist/chunks/cost-0.7.4-r3td1n69.mjs +0 -1
  717. package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +0 -1
  718. package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +0 -1
  719. package/dist/chunks/debug-0.7.4-0nebad2s.mjs +0 -1
  720. package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +0 -1446
  721. package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +0 -1
  722. package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +0 -1
  723. package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +0 -1
  724. package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +0 -1
  725. package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +0 -1
  726. package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +0 -1
  727. package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +0 -1
  728. package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +0 -10
  729. package/dist/chunks/engine-0.7.4-gz82afzv.mjs +0 -1
  730. package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +0 -1
  731. package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +0 -1
  732. package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +0 -1
  733. package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +0 -1
  734. package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +0 -1
  735. package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +0 -1
  736. package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +0 -1
  737. package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +0 -1
  738. package/dist/chunks/export-0.7.4-8b909kg4.mjs +0 -2
  739. package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +0 -1
  740. package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +0 -1
  741. package/dist/chunks/fast-0.7.4-7d198jes.mjs +0 -1
  742. package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +0 -14
  743. package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +0 -1
  744. package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +0 -1
  745. package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +0 -1
  746. package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +0 -4
  747. package/dist/chunks/grove-0.7.4-20a0nspg.mjs +0 -1
  748. package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +0 -1
  749. package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +0 -2
  750. package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +0 -6
  751. package/dist/chunks/help-0.7.4-aw6p8ena.mjs +0 -1
  752. package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +0 -3
  753. package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +0 -79
  754. package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +0 -1
  755. package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +0 -3
  756. package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +0 -1
  757. package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +0 -1
  758. package/dist/chunks/index-0.7.4-0atnj624.mjs +0 -1
  759. package/dist/chunks/index-0.7.4-3yc5n58n.mjs +0 -1
  760. package/dist/chunks/index-0.7.4-46qessxk.mjs +0 -1
  761. package/dist/chunks/index-0.7.4-5x44zrgw.mjs +0 -2
  762. package/dist/chunks/index-0.7.4-97t4afz3.mjs +0 -1
  763. package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +0 -1
  764. package/dist/chunks/index-0.7.4-9z6mgm05.mjs +0 -2
  765. package/dist/chunks/index-0.7.4-adfj0wz0.mjs +0 -1
  766. package/dist/chunks/index-0.7.4-bv491fah.mjs +0 -5
  767. package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +0 -1
  768. package/dist/chunks/index-0.7.4-d7jstqgp.mjs +0 -1
  769. package/dist/chunks/index-0.7.4-fxa74szv.mjs +0 -1
  770. package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +0 -1
  771. package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +0 -9
  772. package/dist/chunks/index-0.7.4-n3dcdt88.mjs +0 -1
  773. package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +0 -1
  774. package/dist/chunks/index-0.7.4-pamx7cgj.mjs +0 -17
  775. package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +0 -1
  776. package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +0 -1
  777. package/dist/chunks/index-0.7.4-rzztd31r.mjs +0 -1
  778. package/dist/chunks/index-0.7.4-sajaaw7k.mjs +0 -30
  779. package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +0 -1
  780. package/dist/chunks/index-0.7.4-z3z8qmah.mjs +0 -9
  781. package/dist/chunks/init-0.7.4-4e9zty2q.mjs +0 -1
  782. package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +0 -1
  783. package/dist/chunks/ink-0.7.4-r1261h4c.mjs +0 -1
  784. package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +0 -870
  785. package/dist/chunks/install-0.7.4-09cxj9vb.mjs +0 -1
  786. package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +0 -149
  787. package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +0 -1
  788. package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +0 -1
  789. package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +0 -1
  790. package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +0 -2
  791. package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +0 -2
  792. package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +0 -1
  793. package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +0 -1
  794. package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +0 -1
  796. package/dist/chunks/log-0.7.4-12x7gw8q.mjs +0 -1
  797. package/dist/chunks/main-0.7.4-q6k044gc.mjs +0 -1
  798. package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +0 -1
  799. package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +0 -17
  800. package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +0 -4
  801. package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +0 -1
  802. package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +0 -1
  803. package/dist/chunks/memory-0.7.4-541b29se.mjs +0 -3
  804. package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +0 -2
  805. package/dist/chunks/model-0.7.4-nc7qk972.mjs +0 -1
  806. package/dist/chunks/node-0.7.4-hg387vyg.mjs +0 -12
  807. package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +0 -1
  808. package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +0 -14
  809. package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +0 -1
  810. package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +0 -1
  812. package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +0 -1
  813. package/dist/chunks/passes-0.7.4-182xeaj4.mjs +0 -1
  814. package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +0 -3
  815. package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +0 -1
  816. package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +0 -1
  817. package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +0 -1
  818. package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +0 -1
  820. package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +0 -9
  821. package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +0 -2
  822. package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +0 -57
  823. package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +0 -1
  824. package/dist/chunks/process-0.7.4-bh0fjdst.mjs +0 -1
  825. package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +0 -1
  826. package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +0 -9
  827. package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +0 -1
  828. package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +0 -1
  829. package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +0 -1
  830. package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +0 -13
  831. package/dist/chunks/provider-0.7.4-jvtch160.mjs +0 -2
  832. package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +0 -1
  833. package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +0 -6
  834. package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +0 -1
  835. package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +0 -34
  836. package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +0 -1
  837. package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +0 -5
  838. package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +0 -2
  839. package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +0 -1
  840. package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +0 -1
  841. package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +0 -1
  842. package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +0 -1
  843. package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +0 -1
  844. package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +0 -1
  845. package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +0 -2
  846. package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +0 -1
  847. package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +0 -1
  848. package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +0 -1
  850. package/dist/chunks/session-0.7.4-vc75bjkq.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +0 -1
  853. package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +0 -1
  854. package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +0 -1
  855. package/dist/chunks/setup-0.7.4-ad98h634.mjs +0 -5
  856. package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +0 -1
  857. package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +0 -1
  858. package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +0 -1
  860. package/dist/chunks/state-0.7.4-vjqm3ded.mjs +0 -1
  861. package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +0 -6
  862. package/dist/chunks/status-0.7.4-e09aw5s3.mjs +0 -1
  863. package/dist/chunks/stickers-0.7.4-356twswm.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +0 -1
  865. package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +0 -1
  866. package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +0 -1
  868. package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +0 -1
  869. package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +0 -1
  870. package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +0 -1
  871. package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +0 -1
  872. package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +0 -1
  873. package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +0 -1
  874. package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +0 -1
  875. package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +0 -1
  876. package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +0 -69
  878. package/dist/chunks/types-0.7.4-cybkwcw1.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +0 -4
  880. package/dist/chunks/update-0.7.4-9hphbpbx.mjs +0 -86
  881. package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +0 -1
  882. package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +0 -1
  885. package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +0 -1
  886. package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +0 -1
  887. package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +0 -1
  888. package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +0 -1
  889. package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +0 -1
  890. package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +0 -132
  891. package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +0 -1
  892. package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +0 -1
  893. package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +0 -1
  894. package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +0 -7
  895. /package/dist/chunks/{cli-0.7.4-58p1wenr.mjs → cli-0.7.5-012a6zfk.mjs} +0 -0
  896. /package/dist/chunks/{cli-0.7.4-533hdyc8.mjs → cli-0.7.5-88bh6s1x.mjs} +0 -0
  897. /package/dist/chunks/{cli-0.7.4-wes9w04e.mjs → cli-0.7.5-hj89dnh6.mjs} +0 -0
  898. /package/dist/chunks/{cli-0.7.4-a8qv9b1x.mjs → cli-0.7.5-jk7d368h.mjs} +0 -0
  899. /package/dist/chunks/{cli-0.7.4-7ftm6c0s.mjs → cli-0.7.5-paykwdd9.mjs} +0 -0
  900. /package/dist/chunks/{cli-0.7.4-hz7s1rtn.mjs → cli-0.7.5-r5ckgfah.mjs} +0 -0
  901. /package/dist/chunks/{cli-0.7.4-zdkph0g9.mjs → cli-0.7.5-wjfmb762.mjs} +0 -0
  902. /package/dist/chunks/{cli-0.7.4-nst28yat.mjs → cli-0.7.5-x4kb7k70.mjs} +0 -0
@@ -1,4 +0,0 @@
1
- import{$Q as jJ,Ao as IJ,CQ as UJ,Co as pJ,Oi as cJ,aR as $V,nK as DJ,oK as BJ,pK as lJ}from"./cli-0.7.4-1tkzz9x6.mjs";import{B9 as WJ,Bda as hJ,G9 as l,Zea as G,c_ as mJ,f9 as p,fca as m,ffa as dJ,g9 as fJ,gda as YJ,l_ as NJ,p_ as gJ,pca as uJ}from"./cli-0.7.4-hvnzwb5v.mjs";import{Rga as U,Sga as PJ}from"./cli-0.7.4-r1ebyx3p.mjs";import{Fha as f,Iha as SJ}from"./cli-0.7.4-d9y5wx3y.mjs";import{Iia as Q,Lia as kJ,uia as VJ,yia as bJ}from"./cli-0.7.4-hegk157e.mjs";import{gja as JJ,nja as yJ}from"./cli-0.7.4-g9w5x5ns.mjs";import{dla as qJ,ela as zJ}from"./cli-0.7.4-7wr3z77e.mjs";import{Lqa as wJ,Pqa as _J}from"./cli-0.7.4-58p1wenr.mjs";class c{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let X=0;X<J.length;X++){let _=J[X];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if((X&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let $=!0;for(let X=0;X<V.length;X++)if(this.indexPath(X),(X&255)===255&&performance.now()-Y>4){if(this.readyCount=X+1,$)W(),$=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let $=W.charCodeAt(Y);if($>=97&&$<=122)V|=1<<$-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),$=Array(Y),X=0;for(let M=0;M<Y;M++){let B=V.charAt(M);$[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)X|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&X)!==X)continue;let B=Z?I[M]:q[M],E=B.indexOf($[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf($[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let $=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){$=_;break}}let X=Y.slice(0,$);if(X.length>0){if(Z.add(X),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,$)=>{let X=Y.length-$.length;if(X!==0)return X;return Y<$?-1:Y>$?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new c;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let $=J[Y];for(let X=0;X<$.length;X++)V=(V^$.charCodeAt(X))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let $=0;$<Y.length;$++)V=(V^Y.charCodeAt($))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],$=[...new Set([J,W])],X=KJ.default(),_=!1,H=$.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;X.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?X:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),$=Date.now(),X=await p(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-$}ms`),X.code!==0)return Q(`[FileIndex] git ls-files failed (code=${X.code}, stderr=${X.stderr}), falling back to ripgrep`),null;let _=X.stdout.trim().split(`
2
- `).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=p(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
- `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let $=O.dirname(J[Y]);while($!=="."&&!V.has($)){let X=O.dirname($);if(X===$)break;V.add($),$=X}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let $=(await IJ(V,".",J)).map((_)=>O.relative(U(),_)),X=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${X}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:X}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,$=U(),[X,_]=await Promise.all([tJ(J,Y),rJ($)]);$J=_;let H=[...X,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let $=V.isDirectory(),X=Y.isDirectory();if($!==X)return $?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),$=O.relative(W,Y);return V.isDirectory()?$+O.sep:$})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,$="."+O.sep;if(J.startsWith($))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let X=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${X.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:X.length,query_length:J.length}),X}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,$){let X=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+X+W.substring(V+Z.length);Y(_);let H=V+X.length;$(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();pJ();uJ();zJ();KJ=wJ(cJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
- export{c as Kg,MJ as Lg,jV as Mg,vV as Ng,RV as Og,GV as Pg,AJ as Qg,CV as Rg,LV as Sg,ZV as Tg};
@@ -1,2 +0,0 @@
1
- import{re as R,te as d}from"./cli-0.7.4-vtnqj21e.mjs";import{s1 as j,v1 as c}from"./cli-0.7.4-abs9vv3n.mjs";import{Iia as K,Lia as D}from"./cli-0.7.4-hegk157e.mjs";import{gja as C,nja as h}from"./cli-0.7.4-g9w5x5ns.mjs";import{Pqa as I,Qqa as J}from"./cli-0.7.4-58p1wenr.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.7.4-ccf1t8td.mjs"),{getOrganizationUUID:Z}=await import("./client-0.7.4-hxpb2apz.mjs"),{getOauthConfig:V}=await import("./oauth-0.7.4-e4sc7m0w.mjs"),{getOAuthHeaders:P}=await import("./api-0.7.4-eqsmhts7.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.7.4-qse5a13f.mjs"),{getDefaultBranch:_}=await import("./git-0.7.4-qm9bjwe1.mjs"),{getMainLoopModel:M}=await import("./model-0.7.4-nc7qk972.mjs"),{default:T}=await import("./index-0.7.4-adfj0wz0.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.7.4-qse5a13f.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.4-ccf1t8td.mjs"),{getOrganizationUUID:$}=await import("./client-0.7.4-hxpb2apz.mjs"),{getOauthConfig:Y}=await import("./oauth-0.7.4-e4sc7m0w.mjs"),{getOAuthHeaders:z}=await import("./api-0.7.4-eqsmhts7.mjs"),{default:G}=await import("./index-0.7.4-adfj0wz0.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.4-ccf1t8td.mjs"),{getOrganizationUUID:$}=await import("./client-0.7.4-hxpb2apz.mjs"),{getOauthConfig:Y}=await import("./oauth-0.7.4-e4sc7m0w.mjs"),{getOAuthHeaders:z}=await import("./api-0.7.4-eqsmhts7.mjs"),{default:G}=await import("./index-0.7.4-adfj0wz0.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.7.4-ccf1t8td.mjs"),{getOrganizationUUID:Y}=await import("./client-0.7.4-hxpb2apz.mjs"),{getOauthConfig:z}=await import("./oauth-0.7.4-e4sc7m0w.mjs"),{getOAuthHeaders:G}=await import("./api-0.7.4-eqsmhts7.mjs"),{default:L}=await import("./index-0.7.4-adfj0wz0.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
- export{i as ie,r as je,t as ke,o as le,p as me};
@@ -1,2 +0,0 @@
1
- import{C2 as V,y2 as y}from"./cli-0.7.4-m2yz2rtr.mjs";import{Q$ as q,S$ as Q,e9 as p,g9 as K}from"./cli-0.7.4-hvnzwb5v.mjs";import{Pqa as J}from"./cli-0.7.4-58p1wenr.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
2
- export{j as m2,D as n2,P as o2,w as p2,E as q2,Y as r2,F as s2,G as t2,Z as u2};
@@ -1,3 +0,0 @@
1
- import{IY as p,SZ as j,TZ as s,UZ as F,WZ as V,z0 as o,zY as t}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as w,G2 as g,H2 as y}from"./cli-0.7.4-hnfm0p8b.mjs";import{P8 as $,Q8 as a,W8 as _,X8 as n}from"./cli-0.7.4-hvnzwb5v.mjs";import{Lqa as i,Pqa as v}from"./cli-0.7.4-58p1wenr.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
- `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as kg,Mq as lg};
@@ -1,2 +0,0 @@
1
- import{Bd as Z,Cd as _,Dd as $,Gd as O}from"./cli-0.7.4-qcqz94w2.mjs";import{Qd as Y,Vd as x}from"./cli-0.7.4-mqbmk6y6.mjs";import{bL as U,gL as W,lL as S,mL as X,wL as V}from"./cli-0.7.4-1tkzz9x6.mjs";import{Iia as R,Lia as K}from"./cli-0.7.4-hegk157e.mjs";import{gja as Q,nja as C}from"./cli-0.7.4-g9w5x5ns.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as Ma};
@@ -1,25 +0,0 @@
1
- import{$7 as bl,Z7 as nt,_7 as hl,a8 as ml,b8 as fn,c8 as $c,d8 as fu,e8 as Al,f8 as ys,g8 as El,h8 as st,i8 as hs,j8 as k,k8 as ur,l8 as Qc,m8 as Bc,n8 as ra,o8 as Xc,p8 as Yc,q8 as Zc,r8 as Jc,s8 as el,t8 as Hc,u8 as cr,v8 as Cc,w8 as Ts,x8 as gl}from"./cli-0.7.4-xt87yshe.mjs";import{y8 as ie}from"./cli-0.7.4-hvs3h0hc.mjs";import{Aqa as kc,Bqa as Le}from"./cli-0.7.4-h5wxsd2h.mjs";import{Dqa as Vc}from"./cli-0.7.4-x5fcmgcd.mjs";import{Fqa as Fe,Gqa as ve,Jqa as De,Kqa as ee}from"./cli-0.7.4-p85h0qry.mjs";import{Nqa as E,Qqa as Bs}from"./cli-0.7.4-58p1wenr.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
2
- ${this.getCanonicalPath(e)}
3
- ${er(e)}
4
- ${n.map((s)=>`${s}:${t[s]}`).join(`
5
- `)}
6
-
7
- ${n.join(";")}
8
- ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
9
- ${e}
10
- ${t}
11
- ${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
12
- `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
13
- `+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
14
- ${this.getCanonicalPath(e)}
15
- ${Xr(e)}
16
- ${n.map((s)=>`${s}:${t[s]}`).join(`
17
- `)}
18
-
19
- ${n.join(";")}
20
- ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
21
- ${e}
22
- ${t}
23
- ${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
24
- `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
25
- export{zl as Y7};
@@ -1,2 +0,0 @@
1
- import{Ko as S,Po as Zq,no as E,oo as m,op as l,po as Xq,qp as Rq,rp as i,sp as Aq}from"./cli-0.7.4-1tkzz9x6.mjs";import{Naa as u,Paa as g,Saa as h,Taa as n,Yaa as vq,Zea as D,ffa as Qq}from"./cli-0.7.4-hvnzwb5v.mjs";import{Kga as d,Mga as Uq}from"./cli-0.7.4-sm8wf8qx.mjs";import{Iia as V,Lia as e,lia as P,mia as v,qia as f,uia as M,yia as y}from"./cli-0.7.4-hegk157e.mjs";import{gja as W,hja as O,ija as C,nja as _}from"./cli-0.7.4-g9w5x5ns.mjs";import{_pa as p,qqa as qq}from"./cli-0.7.4-8xxafyv0.mjs";import{Pqa as N}from"./cli-0.7.4-58p1wenr.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
- export{Fq as pd,r as qd,nq as rd,lq as sd,Oq as td,QQ as ud,XQ as vd,Dq as wd};
@@ -1,2 +0,0 @@
1
- import{Pqa as q}from"./cli-0.7.4-58p1wenr.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
- export{x as ce,y as de,w as ee};
@@ -1,3 +0,0 @@
1
- import{ZV as W,cW as p}from"./cli-0.7.4-68dbzpkf.mjs";import{B1 as P,z1 as H}from"./cli-0.7.4-sw7nh3hq.mjs";import{ega as M,rga as Z}from"./cli-0.7.4-h57hq23q.mjs";import{Kga as q,Mga as $,Nga as Q,Oga as k}from"./cli-0.7.4-sm8wf8qx.mjs";import{Pqa as Y}from"./cli-0.7.4-58p1wenr.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
3
- export{K as Vb,X as Wb,V as Xb,b as Yb,O as Zb};
@@ -1,15 +0,0 @@
1
- import{DN as f,FN as z,Gy as L,Hy as k,Xj as J,zQ as _}from"./cli-0.7.4-1tkzz9x6.mjs";import{n$ as F,s$ as A}from"./cli-0.7.4-hvnzwb5v.mjs";import{Kga as Y,Mga as h,Nga as H,Oga as X}from"./cli-0.7.4-sm8wf8qx.mjs";import{Fha as W,Iha as M}from"./cli-0.7.4-d9y5wx3y.mjs";import{Iia as D,Lia as R}from"./cli-0.7.4-hegk157e.mjs";import{Wma as q,epa as C}from"./cli-0.7.4-7wr3z77e.mjs";import{Pqa as V}from"./cli-0.7.4-58p1wenr.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
- `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
-
4
- Return JSON with a single "title" field.
5
-
6
- Good examples:
7
- {"title": "Fix login button on mobile"}
8
- {"title": "Add OAuth authentication"}
9
- {"title": "Debug failing CI tests"}
10
- {"title": "Refactor API client error handling"}
11
-
12
- Bad (too vague): {"title": "Code changes"}
13
- Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
- Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
15
- export{S as we,T as xe,I as ye};
@@ -1,7 +0,0 @@
1
- import{Jb as d}from"./cli-0.7.4-r0nqh5aw.mjs";import{EV as y,FV as U,HV as f,IV as h,JV as c,OV as i}from"./cli-0.7.4-dwjhqjan.mjs";import{P2 as O,R2 as b}from"./cli-0.7.4-tsf2s2bg.mjs";import{g6 as B,h6 as M}from"./cli-0.7.4-2haqz80h.mjs";import{G7 as u,z7 as I}from"./cli-0.7.4-n9arxrya.mjs";import{a9 as V,c9 as v}from"./cli-0.7.4-hvnzwb5v.mjs";import{Iia as G,Lia as D,lia as H,mia as m,qia as T}from"./cli-0.7.4-hegk157e.mjs";import{gja as q,hja as S,nja as F}from"./cli-0.7.4-g9w5x5ns.mjs";import{_pa as p,qqa as s}from"./cli-0.7.4-8xxafyv0.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
-
3
- `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
- `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
- `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
- `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
- export{R as Ab,k as Bb,a as Cb,YJ as Db};
@@ -1,2 +0,0 @@
1
- import{Dja as V,tja as B,uja as H}from"./cli-0.7.4-h0ze5j97.mjs";import{Pqa as Q}from"./cli-0.7.4-58p1wenr.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
- export{$ as Xh,Y as Yh};
@@ -1 +0,0 @@
1
- import{$3 as m,P3 as a,Q3 as b,R3 as c,S3 as d,T3 as e,U3 as f,V3 as g,W3 as h,X3 as i,Y3 as j,Z3 as k,_3 as l}from"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import"./cli-0.7.4-58p1wenr.mjs";m();export{l as storeOAuthAccountInfo,a as shouldUseClaudeAIAuth,e as refreshOAuthToken,k as populateOAuthAccountInfoIfNeeded,b as parseScopes,h as isOAuthTokenExpired,j as getOrganizationUUID,i as fetchProfileInfo,f as fetchAndStoreUserRoles,d as exchangeCodeForTokens,g as createAndStoreApiKey,c as buildAuthUrl};
@@ -1 +0,0 @@
1
- import{Jt as w,MS as f,Nt as Z,fS as H,rj as F}from"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import{BW as K,JW as Y}from"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import"./cli-0.7.4-hnfm0p8b.mjs";import"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import{epa as X,hla as B}from"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import{Pqa as W}from"./cli-0.7.4-58p1wenr.mjs";async function h(q,J,y){if(K())return q("Cannot set color: This session is a swarm teammate. Teammate colors are assigned by the team leader.",{display:"system"}),null;if(!y||y.trim()===""){let b=w.join(", ");return q(`Please provide a color. Available colors: ${b}, default`,{display:"system"}),null}let k=y.trim().toLowerCase();if($.includes(k)){let b=B(),V=F();return await H(b,"default",V),J.setAppState((z)=>({...z,standaloneAgentContext:{...z.standaloneAgentContext,name:z.standaloneAgentContext?.name??"",color:void 0}})),q("Session color reset to default",{display:"system"}),null}if(!w.includes(k)){let b=w.join(", ");return q(`Invalid color "${k}". Available colors: ${b}, default`,{display:"system"}),null}let Q=B(),U=F();return await H(Q,k,U),J.setAppState((b)=>({...b,standaloneAgentContext:{...b.standaloneAgentContext,name:b.standaloneAgentContext?.name??"",color:k}})),q(`Session color set to: ${k}`,{display:"system"}),null}var $;var M=W(()=>{X();Z();f();Y();$=["default","reset","none","gray","grey"]});M();export{h as call};
@@ -1,3 +0,0 @@
1
- import{AO as P,BO as e,CB as f,JC as Y,KC as I,LC as Z,MC as $,NC as O,OC as _,QC as n,ZH as y,_H as c,aR as zj,dv as A,ev as u,ey as N,ez as b,fz as x,gO as B,gy as m,hO as s,iy as X,jT as R,jy as a,kT as W,lP as l,lQ as C,lT as Hj,ly as U,mO as k,ny as r,uP as qj,yO as o,zQ as wj}from"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import"./cli-0.7.4-hnfm0p8b.mjs";import"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import{I7 as h,J7 as p}from"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import{Zea as D,ffa as g}from"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import{eja as v,nja as E}from"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import{epa as i,kma as T}from"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import{Pqa as M}from"./cli-0.7.4-58p1wenr.mjs";async function t(q,j,H,w){j.onCompactProgress?.({type:"hooks_start",hookType:"pre_compact"}),j.setSDKStatus?.("compacting");try{let[z,J]=await Promise.all([f({trigger:"manual",customInstructions:H||null},j.abortController.signal),d(j,q)]),Q=O(H,z.newCustomInstructions);j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_start"});let K=await w.reactiveCompactOnPromptTooLong(q,J,{customInstructions:Q,trigger:"manual"});if(!K.ok)switch(K.reason){case"too_few_groups":throw Error(Y);case"aborted":throw Error(I);case"exhausted":case"error":case"media_unstrippable":throw Error(Z)}k(void 0);let F=$(K.result);B(void 0,F,j.contentReplacementState),X(),W.cache.clear?.();let V=[z.userDisplayMessage,K.result.userDisplayMessage].filter(Boolean).join(`
2
- `)||void 0;return{type:"compact",compactionResult:{...K.result,userDisplayMessage:V},displayText:L(j,V)}}finally{j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_end"}),j.setSDKStatus?.(null)}}function L(q,j){let H=b("tip"),w=A("app:toggleTranscript","Global","ctrl+o"),z=[...q.options.verbose?[]:[`(${w} to see full summary)`],...j?[j]:[],...H?[H]:[]];return h.dim("Compacted "+z.join(`
3
- `))}async function d(q,j){let H=q.getAppState(),w=await l(q.options.tools,q.options.mainLoopModel,Array.from(H.toolPermissionContext.additionalWorkingDirectories.keys()),q.options.mcpClients),z=y({mainThreadAgentDefinition:void 0,toolUseContext:q,customSystemPrompt:q.options.customSystemPrompt,defaultSystemPrompt:w,appendSystemPrompt:q.options.appendSystemPrompt}),[J,Q]=await Promise.all([W(),R()]);return{systemPrompt:z,userContext:J,systemContext:Q,toolUseContext:q,forkContextMessages:j}}var G=null,Aj=async(q,j)=>{let{abortController:H}=j,{messages:w}=j;if(w=C(w),w.length===0)throw Error("No messages to compact");let z=q.trim();try{if(!z){let V=await P(w,j.agentId);if(V){W.cache.clear?.();let S=$(V);return B(void 0,S,j.contentReplacementState),N(j.options.querySource??"compact",j.agentId),T(),X(),{type:"compact",compactionResult:V,displayText:L(j)}}}if(G?.isReactiveOnlyMode())return await t(w,j,z,G);let Q=(await U(w,j)).messages,K=await _(Q,j,await d(j,Q),!1,z,!1);k(void 0),X(),W.cache.clear?.();let F=$(K);return B(void 0,F,j.contentReplacementState),{type:"compact",compactionResult:K,displayText:L(j,K.userDisplayMessage)}}catch(J){if(H.signal.aborted)throw Error("Compaction canceled.");else if(v(J,Y))throw Error(Y);else if(v(J,Z))throw Error(Z);else throw D(J),Error(`Error during compaction: ${J}`)}};var jj=M(()=>{p();i();qj();Hj();u();m();n();a();r();s();e();o();E();zj();g();wj();x();c()});jj();export{Aj as call};
@@ -1 +0,0 @@
1
- import{$ca as k,Ada as L,Bda as M,Jca as a,Kca as b,Tca as c,Uca as d,Vca as e,Wca as f,Xca as g,Yca as h,Zca as i,_ca as j,ada as l,bda as m,cda as n,dda as o,eda as p,fda as q,gda as r,hda as s,ida as t,jda as u,kda as v,lda as w,mda as x,nda as y,oda as z,pda as A,qda as B,rda as C,sda as D,tda as E,uda as F,vda as G,wda as H,xda as I,yda as J,zda as K}from"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-58p1wenr.mjs";M();export{A as shouldSkipPluginAutoupdate,o as saveGlobalConfig,y as saveCurrentProjectConfig,h as resetTrustDialogAcceptedCacheForTesting,l as resetProjectConfigForTests,k as resetGlobalConfigForTests,E as recordFirstStartTime,n as onGlobalConfigChange,m as isProjectConfigKey,j as isPathTrusted,f as isGlobalConfigKey,u as isConfigReadingAllowed,z as isAutoUpdaterDisabled,H as getUserClaudeRulesDir,s as getRemoteControlAtStartup,w as getProjectPathForConfig,D as getOrCreateUserID,F as getMemoryPath,G as getManagedClaudeRulesDir,p as getGlobalConfigWriteCount,r as getGlobalConfig,t as getCustomApiKeyStatus,x as getCurrentProjectConfig,C as getAutoUpdaterDisabledReason,B as formatAutoUpdaterDisabledReason,v as enableConfigs,i as checkHasTrustDialogAccepted,J as _wouldLoseAuthStateForTesting,L as _setGlobalConfigCacheForTesting,I as _getConfigForTesting,K as _buildWrittenGlobalConfig,c as SHOW_CACHE_STATS_MODES,g as PROJECT_CONFIG_KEYS,a as NOTIFICATION_CHANNELS,e as GLOBAL_CONFIG_KEYS,b as EDITOR_MODES,d as DEFAULT_GLOBAL_CONFIG,q as CONFIG_WRITE_DISPLAY_THRESHOLD};
@@ -1 +0,0 @@
1
- import{Yg as f,Zg as q}from"./cli-0.7.4-61svw97d.mjs";import"./cli-0.7.4-emdbzgja.mjs";import"./cli-0.7.4-489pp4nd.mjs";import"./cli-0.7.4-xhw7cmg0.mjs";import"./cli-0.7.4-g9hc44qq.mjs";import"./cli-0.7.4-8wbk60h9.mjs";import"./cli-0.7.4-6tvnyqjj.mjs";import"./cli-0.7.4-zzze6t7f.mjs";import"./cli-0.7.4-aswaa5m4.mjs";import"./cli-0.7.4-hw93j7vq.mjs";import"./cli-0.7.4-q23avgwg.mjs";import"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import{F2 as d,H2 as b}from"./cli-0.7.4-hnfm0p8b.mjs";import"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import{Pqa as l}from"./cli-0.7.4-58p1wenr.mjs";var y=async(h,k)=>{return d(f,{onClose:h,context:k,defaultTab:"Config"})};var v=l(()=>{q();b()});v();export{y as call};
@@ -1 +0,0 @@
1
- import{L7 as a,M7 as b,N7 as c,O7 as d,P7 as e,Q7 as f,R7 as g,S7 as h,T7 as i,U7 as j,V7 as k,W7 as l}from"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-58p1wenr.mjs";l();export{k as SENSITIVE_URL_QUERY_PARAM_NAMES,f as MOONSHOT_API_HOSTS,g as KIMI_CODE_API_HOST,h as GLM_API_HOSTS,a as GITHUB_COPILOT_BASE,b as GITHUB_429_MAX_RETRIES,d as GITHUB_429_MAX_DELAY_SEC,c as GITHUB_429_BASE_DELAY_SEC,e as GEMINI_API_HOST,i as DEEPSEEK_API_HOSTS,j as COPILOT_HEADERS};
@@ -1 +0,0 @@
1
- import{Fh as O0,Gh as Hv}from"./cli-0.7.4-at2fkgpk.mjs";import{Ri as b0,Si as r0,Ti as w0,Ui as a0,Zi as Y0,_i as o0,jk as L0,kk as e0,lQ as m0,ly as p0,ny as dv,wP as g0,xP as lv,zQ as cv}from"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import{CX as k0,DX as pv}from"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import{UZ as H,WZ as z,o0 as u0,z0 as F0,zY as S0}from"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import{F2 as K,G2 as Z,H2 as T}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as kv}from"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import{C$ as Vv,Fba as Yv,P8 as P0,Q8 as Kv,X_ as Z0,j$ as I0,v$ as y0}from"./cli-0.7.4-hvnzwb5v.mjs";import{Cfa as V0,wfa as V}from"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import{Lqa as q0,Pqa as X0}from"./cli-0.7.4-58p1wenr.mjs";function D0(J){let v=[];return Jv(J,v),Qv(J,v),Zv(J,v),zv(J,v),Wv(J,v),v.sort((Q,X)=>{if(Q.severity!==X.severity)return Q.severity==="warning"?-1:1;return(X.savingsTokens??0)-(Q.savingsTokens??0)}),v}function Jv(J,v){if(J.percentage>=h0)v.push({severity:"warning",title:`Context is ${J.percentage}% full`,detail:J.isAutoCompactEnabled?"Autocompact will trigger soon, which discards older messages. Use /compact now to control what gets kept.":"Autocompact is disabled. Use /compact to free space, or enable autocompact in /config."})}function Qv(J,v){if(!J.messageBreakdown)return;for(let Q of J.messageBreakdown.toolCallsByType){let X=Q.callTokens+Q.resultTokens,U=X/J.rawMaxTokens*100;if(U<N0||X<U0)continue;let W=Xv(Q.name,X,U);if(W)v.push(W)}}function Xv(J,v,Q){let X=V(v);switch(J){case b0:return{severity:"warning",title:`Bash results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files — use Read with offset/limit instead.",savingsTokens:Math.floor(v*0.5)};case Y0:return{severity:"info",title:`Read results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Use offset and limit parameters to read only the sections you need. Avoid re-reading entire files when you only need a few lines.",savingsTokens:Math.floor(v*0.3)};case w0:return{severity:"info",title:`Grep results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",savingsTokens:Math.floor(v*0.3)};case L0:return{severity:"info",title:`WebFetch results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Web page content can be very large. Consider extracting only the specific information needed.",savingsTokens:Math.floor(v*0.4)};default:if(Q>=20)return{severity:"info",title:`${J} using ${X} tokens (${Q.toFixed(0)}%)`,detail:"This tool is consuming a significant portion of context.",savingsTokens:Math.floor(v*0.2)};return null}}function Zv(J,v){if(!J.messageBreakdown)return;let X=J.messageBreakdown.toolCallsByType.find((F)=>F.name===Y0);if(!X)return;let U=X.callTokens+X.resultTokens,W=U/J.rawMaxTokens*100,Y=X.resultTokens/J.rawMaxTokens*100;if(W>=N0&&U>=U0)return;if(Y>=s0&&X.resultTokens>=U0)v.push({severity:"info",title:`File reads using ${V(X.resultTokens)} tokens (${Y.toFixed(0)}%)`,detail:"If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",savingsTokens:Math.floor(X.resultTokens*0.3)})}function zv(J,v){let Q=J.memoryFiles.reduce((U,W)=>U+W.tokens,0),X=Q/J.rawMaxTokens*100;if(X>=t0&&Q>=vv){let U=[...J.memoryFiles].sort((W,Y)=>Y.tokens-W.tokens).slice(0,3).map((W)=>{return`${Z0(W.path)} (${V(W.tokens)})`}).join(", ");v.push({severity:"info",title:`Memory files using ${V(Q)} tokens (${X.toFixed(0)}%)`,detail:`Largest: ${U}. Use /memory to review and prune stale entries.`,savingsTokens:Math.floor(Q*0.3)})}}function Wv(J,v){if(!J.isAutoCompactEnabled&&J.percentage>=50&&J.percentage<h0)v.push({severity:"info",title:"Autocompact is disabled",detail:"Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."})}var N0=15,U0=1e4,s0=5,h0=80,t0=5,vv=5000;var C0=X0(()=>{r0();o0();a0();e0();I0();V0()});function f0(J){let v=A0.c(5),{suggestions:Q}=J;if(Q.length===0)return null;let X;if(v[0]===Symbol.for("react.memo_cache_sentinel"))X=K(z,{bold:!0,children:"Suggestions"}),v[0]=X;else X=v[0];let U;if(v[1]!==Q)U=Q.map(Uv),v[1]=Q,v[2]=U;else U=v[2];let W;if(v[3]!==U)W=Z(H,{flexDirection:"column",marginTop:1,children:[X,U]}),v[3]=U,v[4]=W;else W=v[4];return W}function Uv(J,v){return Z(H,{flexDirection:"column",marginTop:v===0?0:1,children:[Z(H,{children:[K(O0,{status:J.severity,withSpace:!0}),K(z,{bold:!0,children:J.title}),J.savingsTokens?Z(z,{dimColor:!0,children:[" ",P0.arrowRight," save ~",V(J.savingsTokens)]}):null]}),K(H,{marginLeft:2,children:K(z,{dimColor:!0,children:J.detail})})]},v)}var A0;var M0=X0(()=>{Kv();F0();V0();Hv();T();A0=q0(S0(),1)});function $(J,v){return J===v.length-1?"└":"├"}function qv(){let J=G0.c(2);return null}function B0(J){let v=new Map;for(let X of J){let U=y0(X.source),W=v.get(U)||[];W.push(X),v.set(U,W)}for(let[X,U]of v.entries())v.set(X,U.sort((W,Y)=>Y.tokens-W.tokens));let Q=new Map;for(let X of Fv){let U=v.get(X);if(U)Q.set(X,U)}return Q}function R0(J){let v=G0.c(87),{data:Q}=J,{categories:X,totalTokens:U,rawMaxTokens:W,percentage:Y,gridRows:F,model:G,memoryFiles:I,mcpTools:q,deferredBuiltinTools:x,systemTools:r,systemPromptSections:a,agents:o,skills:n,messageBreakdown:W0}=Q,h,D,C,P,b,S,O,A,w,L;if(v[0]!==X||v[1]!==F||v[2]!==q||v[3]!==G||v[4]!==Y||v[5]!==W||v[6]!==r||v[7]!==x||v[8]!==U){let j0=x===void 0?[]:x,l0=X.filter(uv),s;if(v[19]!==X)s=X.some(Ev),v[19]=X,v[20]=s;else s=v[20];let _=s,c0=j0.length>0,p=X.find(Rv);if(D=H,O="column",A=1,v[21]===Symbol.for("react.memo_cache_sentinel"))w=K(z,{bold:!0,children:"Context Usage"}),v[21]=w;else w=v[21];let d;if(v[22]!==F)d=F.map(Bv),v[22]=F,v[23]=d;else d=v[23];let g;if(v[24]!==d)g=K(H,{flexDirection:"column",flexShrink:0,marginLeft:-1,children:d}),v[24]=d,v[25]=g;else g=v[25];let m;if(v[26]!==U)m=V(U),v[26]=U,v[27]=m;else m=v[27];let j;if(v[28]!==W)j=V(W),v[28]=W,v[29]=j;else j=v[29];let l;if(v[30]!==G||v[31]!==Y||v[32]!==m||v[33]!==j)l=Z(z,{dimColor:!0,children:[G," · ",m,"/",j," ","tokens (",Y,"%)"]}),v[30]=G,v[31]=Y,v[32]=m,v[33]=j,v[34]=l;else l=v[34];let t,v0,J0;if(v[35]===Symbol.for("react.memo_cache_sentinel"))t=K(qv,{}),v0=K(z,{children:" "}),J0=K(z,{dimColor:!0,italic:!0,children:"Estimated usage by category"}),v[35]=t,v[36]=v0,v[37]=J0;else t=v[35],v0=v[36],J0=v[37];let Q0;if(v[38]!==W)Q0=(N,i0)=>{let T0=V(N.tokens),$0=N.isDeferred?"N/A":`${(N.tokens/W*100).toFixed(1)}%`,n0=N.name===z0,_0=N.name,x0=N.isDeferred?" ":n0?"⛝":"⛁";return Z(H,{children:[K(z,{color:N.color,children:x0}),Z(z,{children:[" ",_0,": "]}),Z(z,{dimColor:!0,children:[T0," tokens (",$0,")"]})]},i0)},v[38]=W,v[39]=Q0;else Q0=v[39];let K0=l0.map(Q0),c;if(v[40]!==X||v[41]!==W)c=(X.find(Mv)?.tokens??0)>0&&Z(H,{children:[K(z,{dimColor:!0,children:"⛶"}),K(z,{children:" Free space: "}),Z(z,{dimColor:!0,children:[V(X.find(fv)?.tokens||0)," ","(",((X.find(Av)?.tokens||0)/W*100).toFixed(1),"%)"]})]}),v[40]=X,v[41]=W,v[42]=c;else c=v[42];let H0=p&&p.tokens>0&&Z(H,{children:[K(z,{color:p.color,children:"⛝"}),Z(z,{dimColor:!0,children:[" ",p.name,": "]}),Z(z,{dimColor:!0,children:[V(p.tokens)," tokens (",(p.tokens/W*100).toFixed(1),"%)"]})]}),i;if(v[43]!==l||v[44]!==K0||v[45]!==c||v[46]!==H0)i=Z(H,{flexDirection:"column",gap:0,flexShrink:0,children:[l,t,v0,J0,K0,c,H0]}),v[43]=l,v[44]=K0,v[45]=c,v[46]=H0,v[47]=i;else i=v[47];if(v[48]!==g||v[49]!==i)L=Z(H,{flexDirection:"row",gap:2,children:[g,i]}),v[48]=g,v[49]=i,v[50]=L;else L=v[50];if(h=H,C="column",P=-1,v[51]!==_||v[52]!==q)b=q.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"MCP tools"}),Z(z,{dimColor:!0,children:[" ","· /mcp",_?" (loaded on-demand)":""]})]}),q.some(Ov)&&Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:"Loaded"}),q.filter(Sv).map(Pv)]}),_&&q.some(Cv)&&Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:"Available"}),q.filter(Dv).map(hv)]}),!_&&q.map(Nv)]}),v[51]=_,v[52]=q,v[53]=b;else b=v[53];S=(r&&r.length>0||c0)&&!1,v[0]=X,v[1]=F,v[2]=q,v[3]=G,v[4]=Y,v[5]=W,v[6]=r,v[7]=x,v[8]=U,v[9]=h,v[10]=D,v[11]=C,v[12]=P,v[13]=b,v[14]=S,v[15]=O,v[16]=A,v[17]=w,v[18]=L}else h=v[9],D=v[10],C=v[11],P=v[12],b=v[13],S=v[14],O=v[15],A=v[16],w=v[17],L=v[18];let f;if(v[54]!==a)f=a&&a.length>0&&!1,v[54]=a,v[55]=f;else f=v[55];let M;if(v[56]!==o)M=o.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Custom agents"}),K(z,{dimColor:!0,children:" · /agents"})]}),Array.from(B0(o).entries()).map(wv)]}),v[56]=o,v[57]=M;else M=v[57];let B;if(v[58]!==I)B=I.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Memory files"}),K(z,{dimColor:!0,children:" · /memory"})]}),I.map(bv)]}),v[58]=I,v[59]=B;else B=v[59];let y;if(v[60]!==n)y=n&&n.tokens>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Skills"}),K(z,{dimColor:!0,children:" · /skills"})]}),Array.from(B0(n.skillFrontmatter).entries()).map(Gv)]}),v[60]=n,v[61]=y;else y=v[61];let R;if(v[62]!==W0)R=W0&&!1,v[62]=W0,v[63]=R;else R=v[63];let E;if(v[64]!==h||v[65]!==f||v[66]!==M||v[67]!==B||v[68]!==y||v[69]!==R||v[70]!==C||v[71]!==P||v[72]!==b||v[73]!==S)E=Z(h,{flexDirection:C,marginLeft:P,children:[b,S,f,M,B,y,R]}),v[64]=h,v[65]=f,v[66]=M,v[67]=B,v[68]=y,v[69]=R,v[70]=C,v[71]=P,v[72]=b,v[73]=S,v[74]=E;else E=v[74];let u;if(v[75]!==Q)u=D0(Q),v[75]=Q,v[76]=u;else u=v[76];let k;if(v[77]!==u)k=K(f0,{suggestions:u}),v[77]=u,v[78]=k;else k=v[78];let e;if(v[79]!==D||v[80]!==E||v[81]!==k||v[82]!==O||v[83]!==A||v[84]!==w||v[85]!==L)e=Z(D,{flexDirection:O,paddingLeft:A,children:[w,L,E,k]}),v[79]=D,v[80]=E,v[81]=k,v[82]=O,v[83]=A,v[84]=w,v[85]=L,v[86]=e;else e=v[86];return e}function Gv(J){let[v,Q]=J;return Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:v}),Q.map(Iv)]},v)}function Iv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function bv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",Z0(J.path),": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function wv(J){let[v,Q]=J;return Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:v}),Q.map(Lv)]},v)}function Lv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.agentType,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function Nv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function hv(J,v,Q){return K(H,{children:Z(z,{dimColor:!0,children:[$(v,Q)," ",J.name]})},v)}function Dv(J){return!J.isLoaded}function Cv(J){return!J.isLoaded}function Pv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function Sv(J){return J.isLoaded}function Ov(J){return J.isLoaded}function Av(J){return J.name==="Free space"}function fv(J){return J.name==="Free space"}function Mv(J){return J.name==="Free space"}function Bv(J,v){return K(H,{flexDirection:"row",children:J.map(yv)},v)}function yv(J,v){if(J.categoryName==="Free space")return K(z,{dimColor:!0,children:"⛶ "},v);if(J.categoryName===z0)return K(z,{color:J.color,children:"⛝ "},v);return K(z,{color:J.color,children:J.squareFullness>=0.7?"⛁ ":"⛀ "},v)}function Rv(J){return J.name===z0}function Ev(J){return J.isDeferred&&J.name.includes("MCP")}function uv(J){return J.tokens>0&&J.name!=="Free space"&&J.name!==z0&&!J.isDeferred}var G0,z0="Autocompact buffer",Fv;var E0=X0(()=>{F0();C0();I0();V0();Vv();Yv();M0();T();G0=q0(S0(),1);Fv=["Project","User","Managed","Plugin","Built-in"]});function gv({data:J,onDone:v}){let Q=d0.useCallback(()=>v("Context dialog dismissed",{display:"system"}),[v]),X=k0(Q);return u0((U,W)=>{if(W.escape||W.return)Q()}),Z(H,{flexDirection:"column",children:[K(R0,{data:J}),K(z,{dimColor:!0,children:X.pending?`Press ${X.keyName} again to exit`:"Press esc or enter to close"})]})}function mv(J){return m0(J)}async function LJ(J,v){let{messages:Q,getAppState:X,options:{mainLoopModel:U,tools:W}}=v,Y=mv(Q),{messages:F}=await p0(Y),G=process.stdout.columns||80,I=X(),q=await g0(F,U,async()=>I.toolPermissionContext,W,I.agentDefinitions,G,v,void 0,Y);return K(gv,{data:q,onDone:J})}var d0;var jv=X0(()=>{F0();E0();pv();dv();lv();cv();T();d0=q0(kv(),1)});jv();export{LJ as call};
@@ -1 +0,0 @@
1
- import{Hh as a,Ih as b,Jh as c}from"./cli-0.7.4-f23ty9s6.mjs";import"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import"./cli-0.7.4-hnfm0p8b.mjs";import"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import"./cli-0.7.4-58p1wenr.mjs";c();export{a as collectContextData,b as call};
@@ -1 +0,0 @@
1
- import{xg as a,yg as b}from"./cli-0.7.4-507dp6s1.mjs";import"./cli-0.7.4-12k33ng9.mjs";import"./cli-0.7.4-syg2nab8.mjs";import"./cli-0.7.4-k7s78hkt.mjs";import"./cli-0.7.4-ybvnfxcf.mjs";import"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import"./cli-0.7.4-hnfm0p8b.mjs";import"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import"./cli-0.7.4-hvnzwb5v.mjs";import"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import"./cli-0.7.4-58p1wenr.mjs";b();export{a as clearConversation};
@@ -1 +0,0 @@
1
- import{ui as a,vi as b,wi as c,xi as d,yi as e}from"./cli-0.7.4-7t2zsdm5.mjs";import"./cli-0.7.4-58p1wenr.mjs";e();export{d as wrapFetchWithCopilotHeaders,b as messagesContainImage,a as detectCopilotInitiator,c as buildCopilotDynamicHeaders};
@@ -1,9 +0,0 @@
1
- import{FF as n,GF as Fq,Gn as T,Hn as Nq,Kn as l,Ln as Iq,Pi as d,Qi as Yq,Sj as a,Xj as i,zQ as Tq}from"./cli-0.7.4-1tkzz9x6.mjs";import"./cli-0.7.4-ge77h9d7.mjs";import"./cli-0.7.4-e2bhfh6d.mjs";import"./cli-0.7.4-6cft4ytf.mjs";import"./cli-0.7.4-jgg33mak.mjs";import"./cli-0.7.4-qcc7kfkv.mjs";import"./cli-0.7.4-hsa9khw7.mjs";import"./cli-0.7.4-62ac47x8.mjs";import"./cli-0.7.4-rn8x06p3.mjs";import"./cli-0.7.4-4ee9swqr.mjs";import"./cli-0.7.4-15xs793c.mjs";import"./cli-0.7.4-ahm3gnaw.mjs";import"./cli-0.7.4-dwjhqjan.mjs";import"./cli-0.7.4-gjn70n3p.mjs";import"./cli-0.7.4-68dbzpkf.mjs";import"./cli-0.7.4-ee9ansx1.mjs";import"./cli-0.7.4-m1f3fc2v.mjs";import"./cli-0.7.4-kmxpdkne.mjs";import"./cli-0.7.4-deyaxrbc.mjs";import{LX as s,MX as vq}from"./cli-0.7.4-wtz9ed9r.mjs";import"./cli-0.7.4-naanktx2.mjs";import{UZ as c,WZ as u,tY as $,yY as zq,z0 as Mq,zY as Hq}from"./cli-0.7.4-2apswqf5.mjs";import"./cli-0.7.4-jgswqtvj.mjs";import"./cli-0.7.4-vq696c8w.mjs";import"./cli-0.7.4-abs9vv3n.mjs";import"./cli-0.7.4-sw7nh3hq.mjs";import"./cli-0.7.4-tny04z8h.mjs";import"./cli-0.7.4-tkcchh6p.mjs";import"./cli-0.7.4-mdv26096.mjs";import"./cli-0.7.4-rts5twex.mjs";import"./cli-0.7.4-yjqyy8n2.mjs";import"./cli-0.7.4-m2yz2rtr.mjs";import"./cli-0.7.4-wh44hxq2.mjs";import{F2 as I,G2 as h,H2 as k}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as Gq}from"./cli-0.7.4-85txq06q.mjs";import"./cli-0.7.4-wb89zsbs.mjs";import"./cli-0.7.4-tsf2s2bg.mjs";import"./cli-0.7.4-h94hrj45.mjs";import"./cli-0.7.4-da69w12w.mjs";import"./cli-0.7.4-2haqz80h.mjs";import"./cli-0.7.4-n9arxrya.mjs";import"./cli-0.7.4-9r1s7xtv.mjs";import"./cli-0.7.4-k735e5sg.mjs";import"./cli-0.7.4-47nyf9j2.mjs";import"./cli-0.7.4-7tr153ha.mjs";import{Bda as Xq,Fba as Uq,dda as r,gda as _,zba as b}from"./cli-0.7.4-hvnzwb5v.mjs";import{kfa as f,lfa as Zq}from"./cli-0.7.4-rskynrc5.mjs";import"./cli-0.7.4-sxvnky38.mjs";import"./cli-0.7.4-ghq0kwkv.mjs";import"./cli-0.7.4-h57hq23q.mjs";import"./cli-0.7.4-sm8wf8qx.mjs";import"./cli-0.7.4-r1ebyx3p.mjs";import"./cli-0.7.4-nbnqrjgm.mjs";import{Fha as P,Iha as Vq}from"./cli-0.7.4-d9y5wx3y.mjs";import"./cli-0.7.4-hegk157e.mjs";import"./cli-0.7.4-9kf16ber.mjs";import"./cli-0.7.4-g9w5x5ns.mjs";import"./cli-0.7.4-h0ze5j97.mjs";import"./cli-0.7.4-7wr3z77e.mjs";import"./cli-0.7.4-jg5ajbyb.mjs";import"./cli-0.7.4-1ba5bwdq.mjs";import"./cli-0.7.4-8xxafyv0.mjs";import"./cli-0.7.4-wmw8fpv7.mjs";import"./cli-0.7.4-nnd4g2nm.mjs";import{Lqa as g,Pqa as Qq}from"./cli-0.7.4-58p1wenr.mjs";import{mkdir as Kq,writeFile as Rq}from"fs/promises";import{tmpdir as Oq}from"os";import{join as t}from"path";function Pq(Q){let q=d.lexer(a(Q)),V=[];for(let J of q)if(J.type==="code"){let Z=J;V.push({code:Z.text,lang:Z.lang})}return V}function wq(Q){let q=[];for(let V=Q.length-1;V>=0&&q.length<Wq;V--){let J=Q[V];if(J?.type!=="assistant"||J.isApiErrorMessage)continue;let Z=J.message.content;if(!Array.isArray(Z))continue;let U=i(Z,`
2
-
3
- `);if(U)q.push(U)}return q}function yq(Q){if(Q){let q=Q.replace(/[^a-zA-Z0-9]/g,"");if(q&&q!=="plaintext")return`.${q}`}return".txt"}async function Jq(Q,q){let V=t(x,q);return await Kq(x,{recursive:!0}),await Rq(V,Q,"utf-8"),V}async function m(Q,q){let V=await $(Q);if(V)process.stdout.write(V);let J=b(Q,`
4
- `)+1,Z=Q.length;try{let U=await Jq(Q,q);return`Copied to clipboard (${Z} characters, ${J} lines)
5
- Also written to ${U}`}catch{return`Copied to clipboard (${Z} characters, ${J} lines)`}}function Aq(Q,q){let V=Q.split(`
6
- `)[0]??"";if(f(V)<=q)return V;let J="",Z=0,U=q-1;for(let H of V){let G=f(H);if(Z+G>U)break;J+=H,Z+=G}return J+"…"}function pq(Q){let q=o.c(33),{fullText:V,codeBlocks:J,messageAge:Z,onDone:U}=Q,H=e.useRef("full"),G=`${V.length} chars, ${b(V,`
7
- `)+1} lines`,M;if(q[0]!==G)M={label:"Full response",value:"full",description:G},q[0]=G,q[1]=M;else M=q[1];let z;if(q[2]!==J||q[3]!==M){let Y;if(q[5]===Symbol.for("react.memo_cache_sentinel"))Y={label:"Always copy full response",value:"always",description:"Skip this picker in the future (revert via /config)"},q[5]=Y;else Y=q[5];z=[M,...J.map(Lq),Y],q[2]=J,q[3]=M,q[4]=z}else z=q[4];let B=z,w;if(q[6]!==J||q[7]!==V)w=function(N){if(N==="full"||N==="always")return{text:V,filename:qq};let X=J[N];return{text:X.code,filename:`copy${yq(X.lang)}`,blockIndex:N}},q[6]=J,q[7]=V,q[8]=w;else w=q[8];let v=w,y;if(q[9]!==J.length||q[10]!==v||q[11]!==Z||q[12]!==U)y=async function(N){let X=v(N);if(N==="always"){if(!_().copyFullResponse)r(Eq);P("tengu_copy",{block_count:J.length,always:!0,message_age:Z});let W=await m(X.text,X.filename);U(`${W}
8
- Preference saved. Use /config to change copyFullResponse`);return}P("tengu_copy",{selected_block:X.blockIndex,block_count:J.length,message_age:Z});let O=await m(X.text,X.filename);U(O)},q[9]=J.length,q[10]=v,q[11]=Z,q[12]=U,q[13]=y;else y=q[13];let S=y,A;if(q[14]!==J.length||q[15]!==v||q[16]!==Z||q[17]!==U){let Y=async function(X){let O=v(X);P("tengu_copy",{selected_block:O.blockIndex,block_count:J.length,message_age:Z,write_shortcut:!0});try{let W=await Jq(O.text,O.filename);U(`Written to ${W}`)}catch(W){let D=W;U(`Failed to write file: ${D instanceof Error?D.message:D}`)}};A=function(X){if(X.key==="w")X.preventDefault(),Y(H.current)},q[14]=J.length,q[15]=v,q[16]=Z,q[17]=U,q[18]=A}else A=q[18];let C=A,p;if(q[19]===Symbol.for("react.memo_cache_sentinel"))p=I(u,{dimColor:!0,children:"Select content to copy:"}),q[19]=p;else p=q[19];let E;if(q[20]===Symbol.for("react.memo_cache_sentinel"))E=(Y)=>{H.current=Y},q[20]=E;else E=q[20];let F;if(q[21]!==S)F=(Y)=>{S(Y)},q[21]=S,q[22]=F;else F=q[22];let K;if(q[23]!==U)K=()=>{U("Copy cancelled",{display:"system"})},q[23]=U,q[24]=K;else K=q[24];let R;if(q[25]!==B||q[26]!==K||q[27]!==F)R=I(n,{options:B,hideIndexes:!1,onFocus:E,onChange:F,onCancel:K}),q[25]=B,q[26]=K,q[27]=F,q[28]=R;else R=q[28];let L;if(q[29]===Symbol.for("react.memo_cache_sentinel"))L=I(u,{dimColor:!0,children:h(l,{children:[I(T,{shortcut:"enter",action:"copy"}),I(T,{shortcut:"w",action:"write to file"}),I(T,{shortcut:"esc",action:"cancel"})]})}),q[29]=L;else L=q[29];let j;if(q[30]!==C||q[31]!==R)j=I(s,{children:h(c,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:C,children:[p,R,L]})}),q[30]=C,q[31]=R,q[32]=j;else j=q[32];return j}function Eq(Q){return{...Q,copyFullResponse:!0}}function Lq(Q,q){let V=b(Q.code,`
9
- `)+1;return{label:Aq(Q.code,60),value:q,description:[Q.lang,V>1?`${V} lines`:void 0].filter(Boolean).join(", ")||void 0}}var o,e,x,qq="response.md",Wq=20,aq=async(Q,q,V)=>{let J=wq(q.messages);if(J.length===0)return Q("No assistant message to copy"),null;let Z=0,U=V?.trim();if(U){let z=Number(U);if(!Number.isInteger(z)||z<1)return Q(`Usage: /copy [N] where N is 1 (latest), 2, 3, … Got: ${U}`),null;if(z>J.length)return Q(`Only ${J.length} assistant ${J.length===1?"message":"messages"} available to copy`),null;Z=z-1}let H=J[Z],G=Pq(H),M=_();if(G.length===0||M.copyFullResponse){P("tengu_copy",{always:M.copyFullResponse,block_count:G.length,message_age:Z});let z=await m(H,qq);return Q(z),null}return I(pq,{fullText:H,codeBlocks:G,messageAge:Z,onDone:Q})};var jq=Qq(()=>{Yq();Fq();Iq();Nq();vq();Zq();zq();Mq();Vq();Xq();Tq();Uq();k();o=g(Hq(),1),e=g(Gq(),1),x=t(Oq(),"claude")});jq();export{yq as fileExtension,wq as collectRecentAssistantTexts,aq as call};