@claudiolabs/claudin 1.0.4 → 1.0.6

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 (904) hide show
  1. package/dist/chunks/AgentTool-1.0.6-y5ddd6rm.mjs +1 -0
  2. package/dist/chunks/App-1.0.6-z0cfvsx2.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.6-bp76pand.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.6-kb0x64qd.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.6-jcaqgq16.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.6-0q6kspv2.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.6-jk4g19kb.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.6-s65h1n7v.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.6-6751p16k.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.6-cc0tqw44.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.6-eebwjw79.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.6-tyg11yr0.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.6-qgb1csqa.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.6-jgmn19nt.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.6-wxwzxegj.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.6-zpt6cx2n.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.6-4008ytyb.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.6-c76hkbn2.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.6-hg7cv046.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.6-2t7j6b2h.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.6-mtnwwa4g.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.6-6k63h37y.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.6-nwebb6gp.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.6-fkq6szhk.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.6-c6m3x448.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.6-44972q2z.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.6-g641zp1y.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.6-ae177xqc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.6-eyaavpv6.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.6-qbt1z3ca.mjs +1 -0
  31. package/dist/chunks/agents-1.0.6-sz53kang.mjs +3 -0
  32. package/dist/chunks/agents-1.0.6-takpvk31.mjs +110 -0
  33. package/dist/chunks/api-1.0.6-00s3w079.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.6-rh0sh1w1.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.6-7mq19whz.mjs +1 -0
  36. package/dist/chunks/auth-1.0.6-a3z8ybme.mjs +1 -0
  37. package/dist/chunks/auth-1.0.6-bzqx8ws6.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.6-m7pgefxn.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.6-yrfw3qnm.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.6-n12f3xrc.mjs +1 -0
  41. package/dist/chunks/branch-1.0.6-ezwk5k5a.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.6-b8v3yt2n.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.6-nj1zx2fk.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.6-qm5685ej.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.6-8sw3n3ad.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.6-2smhh25w.mjs +1 -0
  47. package/dist/chunks/btw-1.0.6-cyy1eqy9.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.6-jye799sc.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.6-x530c1sq.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.6-j9g3r3t3.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.6-wn9n7a2f.mjs +4 -0
  52. package/dist/chunks/caches-1.0.6-jb6nfzzy.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.6-nbedzb68.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.6-k0ksrf4g.mjs +1 -0
  55. package/dist/chunks/clear-1.0.6-mwca7g57.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.6-yxdbxzxq.mjs +1 -0
  57. package/dist/chunks/cli-1.0.6-0g5ayqzn.mjs +2 -0
  58. package/dist/chunks/cli-1.0.6-0htc91yb.mjs +2 -0
  59. package/dist/chunks/cli-1.0.6-0n0gtcr0.mjs +2 -0
  60. package/dist/chunks/cli-1.0.6-0ndt02kt.mjs +2 -0
  61. package/dist/chunks/cli-1.0.6-0rh0a1m1.mjs +3 -0
  62. package/dist/chunks/cli-1.0.6-0v6s0baw.mjs +2 -0
  63. package/dist/chunks/cli-1.0.6-0z6jg1dt.mjs +2 -0
  64. package/dist/chunks/cli-1.0.6-0zy5g0r0.mjs +3 -0
  65. package/dist/chunks/cli-1.0.6-1a002r86.mjs +16 -0
  66. package/dist/chunks/cli-1.0.6-1eet2296.mjs +2 -0
  67. package/dist/chunks/cli-1.0.6-1mxskrvk.mjs +2 -0
  68. package/dist/chunks/cli-1.0.6-1pmvs0sa.mjs +2 -0
  69. package/dist/chunks/cli-1.0.6-2216bkc9.mjs +18 -0
  70. package/dist/chunks/cli-1.0.6-256zr6e0.mjs +2 -0
  71. package/dist/chunks/cli-1.0.6-2kk9k86d.mjs +2 -0
  72. package/dist/chunks/cli-1.0.6-2ktan1c1.mjs +6 -0
  73. package/dist/chunks/cli-1.0.6-2q17d8ej.mjs +2 -0
  74. package/dist/chunks/cli-1.0.6-2taykcm3.mjs +2 -0
  75. package/dist/chunks/cli-1.0.6-2y4xs66t.mjs +2 -0
  76. package/dist/chunks/cli-1.0.6-34y44ns8.mjs +2 -0
  77. package/dist/chunks/cli-1.0.6-36s91tek.mjs +2 -0
  78. package/dist/chunks/cli-1.0.6-39ebgej3.mjs +9 -0
  79. package/dist/chunks/cli-1.0.6-3fqch3zx.mjs +2 -0
  80. package/dist/chunks/cli-1.0.6-3jkvpjb7.mjs +2 -0
  81. package/dist/chunks/cli-1.0.6-3rnmt44c.mjs +199 -0
  82. package/dist/chunks/cli-1.0.6-429sbhhn.mjs +2 -0
  83. package/dist/chunks/cli-1.0.6-43ajeraf.mjs +2 -0
  84. package/dist/chunks/cli-1.0.6-4jw1053r.mjs +2 -0
  85. package/dist/chunks/cli-1.0.6-4kafzdd3.mjs +2 -0
  86. package/dist/chunks/cli-1.0.6-4m8qf7d9.mjs +2 -0
  87. package/dist/chunks/cli-1.0.6-4pez6ae9.mjs +2 -0
  88. package/dist/chunks/cli-1.0.6-4pmn22p0.mjs +12 -0
  89. package/dist/chunks/cli-1.0.6-4r68vt91.mjs +4 -0
  90. package/dist/chunks/cli-1.0.6-4shdcvhj.mjs +2 -0
  91. package/dist/chunks/cli-1.0.6-4w9smp0a.mjs +4 -0
  92. package/dist/chunks/cli-1.0.6-52vkzgxe.mjs +2 -0
  93. package/dist/chunks/cli-1.0.6-53rqxxkh.mjs +2 -0
  94. package/dist/chunks/cli-1.0.6-55csqcct.mjs +2 -0
  95. package/dist/chunks/cli-1.0.6-5esxakc4.mjs +2 -0
  96. package/dist/chunks/cli-1.0.6-5fd5qjm7.mjs +2 -0
  97. package/dist/chunks/cli-1.0.6-5kmwcmd1.mjs +25 -0
  98. package/dist/chunks/cli-1.0.6-5qyfr732.mjs +17 -0
  99. package/dist/chunks/cli-1.0.6-5tx13t22.mjs +2 -0
  100. package/dist/chunks/cli-1.0.6-61qpjst5.mjs +2 -0
  101. package/dist/chunks/cli-1.0.6-620sz5j0.mjs +2 -0
  102. package/dist/chunks/cli-1.0.6-6a9gyk3y.mjs +12 -0
  103. package/dist/chunks/cli-1.0.6-6g4hkpj7.mjs +4 -0
  104. package/dist/chunks/cli-1.0.6-6h5a9gax.mjs +2 -0
  105. package/dist/chunks/cli-1.0.6-6hs6qqxv.mjs +2 -0
  106. package/dist/chunks/cli-1.0.6-6x2aqc5w.mjs +3 -0
  107. package/dist/chunks/cli-1.0.6-6zh1kz2j.mjs +2 -0
  108. package/dist/chunks/cli-1.0.6-6zqt7f43.mjs +59 -0
  109. package/dist/chunks/cli-1.0.6-74km5nc4.mjs +2 -0
  110. package/dist/chunks/cli-1.0.6-77j29wff.mjs +2 -0
  111. package/dist/chunks/cli-1.0.6-78gtt741.mjs +2 -0
  112. package/dist/chunks/cli-1.0.6-7dcdpthr.mjs +2 -0
  113. package/dist/chunks/cli-1.0.6-7ebqg37b.mjs +2 -0
  114. package/dist/chunks/cli-1.0.6-7qta6sp0.mjs +12 -0
  115. package/dist/chunks/cli-1.0.6-7rxsh83h.mjs +2 -0
  116. package/dist/chunks/cli-1.0.6-7sc6kks8.mjs +2 -0
  117. package/dist/chunks/cli-1.0.6-7wtv8nwt.mjs +2 -0
  118. package/dist/chunks/cli-1.0.6-80ts2fsy.mjs +2 -0
  119. package/dist/chunks/cli-1.0.6-831s2dg1.mjs +2 -0
  120. package/dist/chunks/cli-1.0.6-85rq113c.mjs +2 -0
  121. package/dist/chunks/cli-1.0.6-86chdw6e.mjs +2 -0
  122. package/dist/chunks/cli-1.0.6-8k0axbmg.mjs +3 -0
  123. package/dist/chunks/cli-1.0.6-8kamwh44.mjs +15 -0
  124. package/dist/chunks/cli-1.0.6-8svdc6qx.mjs +2 -0
  125. package/dist/chunks/cli-1.0.6-8tj1qeak.mjs +2 -0
  126. package/dist/chunks/cli-1.0.6-8v7ggr2e.mjs +6 -0
  127. package/dist/chunks/cli-1.0.6-8xtkd26m.mjs +2 -0
  128. package/dist/chunks/cli-1.0.6-8zcjrs1k.mjs +2 -0
  129. package/dist/chunks/cli-1.0.6-93qsrgeq.mjs +2 -0
  130. package/dist/chunks/cli-1.0.6-967pphy3.mjs +3 -0
  131. package/dist/chunks/cli-1.0.6-9be2xem8.mjs +4 -0
  132. package/dist/chunks/cli-1.0.6-9m9h23m8.mjs +2 -0
  133. package/dist/chunks/cli-1.0.6-9p90g9dg.mjs +7 -0
  134. package/dist/chunks/cli-1.0.6-9pj529zy.mjs +2 -0
  135. package/dist/chunks/cli-1.0.6-a9n4dj4c.mjs +2 -0
  136. package/dist/chunks/cli-1.0.6-a9z7f8hm.mjs +2 -0
  137. package/dist/chunks/cli-1.0.6-aasgkcf0.mjs +3 -0
  138. package/dist/chunks/cli-1.0.6-anxd75mm.mjs +2 -0
  139. package/dist/chunks/cli-1.0.6-apvttvwc.mjs +3 -0
  140. package/dist/chunks/cli-1.0.6-bghnbyek.mjs +2 -0
  141. package/dist/chunks/cli-1.0.6-bjz810zw.mjs +2 -0
  142. package/dist/chunks/cli-1.0.6-c3q3ytrc.mjs +2 -0
  143. package/dist/chunks/cli-1.0.6-cbv9sb7j.mjs +4 -0
  144. package/dist/chunks/cli-1.0.6-chfda1vf.mjs +2 -0
  145. package/dist/chunks/cli-1.0.6-ckyrvbe3.mjs +2 -0
  146. package/dist/chunks/cli-1.0.6-ct081pz5.mjs +2 -0
  147. package/dist/chunks/cli-1.0.6-d3y2kbdq.mjs +2 -0
  148. package/dist/chunks/cli-1.0.6-d4d0xfxp.mjs +5 -0
  149. package/dist/chunks/cli-1.0.6-d8gyb25m.mjs +15 -0
  150. package/dist/chunks/cli-1.0.6-d9ryhkjn.mjs +2 -0
  151. package/dist/chunks/cli-1.0.6-dk4qdtxs.mjs +2 -0
  152. package/dist/chunks/cli-1.0.6-e3cstemm.mjs +67 -0
  153. package/dist/chunks/cli-1.0.6-f4f6x83j.mjs +24 -0
  154. package/dist/chunks/cli-1.0.6-f80wk918.mjs +2 -0
  155. package/dist/chunks/cli-1.0.6-f82p2yzk.mjs +39 -0
  156. package/dist/chunks/cli-1.0.6-fggt191f.mjs +2 -0
  157. package/dist/chunks/cli-1.0.6-fj626dhh.mjs +2 -0
  158. package/dist/chunks/cli-1.0.6-g4v1k4vj.mjs +2 -0
  159. package/dist/chunks/cli-1.0.6-g9s2ts6j.mjs +2 -0
  160. package/dist/chunks/cli-1.0.6-gjtt9hjc.mjs +5471 -0
  161. package/dist/chunks/cli-1.0.6-hcq3hbzz.mjs +3 -0
  162. package/dist/chunks/cli-1.0.6-hjqc9sb8.mjs +2 -0
  163. package/dist/chunks/cli-1.0.6-hkaszwz8.mjs +2 -0
  164. package/dist/chunks/cli-1.0.6-hn9p22wz.mjs +2 -0
  165. package/dist/chunks/cli-1.0.6-hv2dry5y.mjs +2 -0
  166. package/dist/chunks/cli-1.0.6-j12sf764.mjs +2 -0
  167. package/dist/chunks/cli-1.0.6-j3b1c7v8.mjs +2 -0
  168. package/dist/chunks/cli-1.0.6-j5xkwr5w.mjs +17 -0
  169. package/dist/chunks/cli-1.0.6-j6sxw4gg.mjs +2 -0
  170. package/dist/chunks/cli-1.0.6-jfnnwqdv.mjs +4 -0
  171. package/dist/chunks/cli-1.0.6-jqa1byr3.mjs +2 -0
  172. package/dist/chunks/cli-1.0.6-jrrb4qbg.mjs +2 -0
  173. package/dist/chunks/cli-1.0.6-jwysg2r7.mjs +2 -0
  174. package/dist/chunks/cli-1.0.6-jyqjk8ym.mjs +2 -0
  175. package/dist/chunks/cli-1.0.6-kajb476n.mjs +2 -0
  176. package/dist/chunks/cli-1.0.6-kgver18c.mjs +2 -0
  177. package/dist/chunks/cli-1.0.6-khth3f6c.mjs +1 -0
  178. package/dist/chunks/cli-1.0.6-kx801kag.mjs +4 -0
  179. package/dist/chunks/cli-1.0.6-m747en7y.mjs +50 -0
  180. package/dist/chunks/cli-1.0.6-m96da95q.mjs +2 -0
  181. package/dist/chunks/cli-1.0.6-mapf4yym.mjs +2 -0
  182. package/dist/chunks/cli-1.0.6-mgb1vzp0.mjs +6 -0
  183. package/dist/chunks/cli-1.0.6-mgk6361j.mjs +4 -0
  184. package/dist/chunks/cli-1.0.6-mt3y4qmj.mjs +18 -0
  185. package/dist/chunks/cli-1.0.6-mwb4199d.mjs +3 -0
  186. package/dist/chunks/cli-1.0.6-mzqatpet.mjs +6 -0
  187. package/dist/chunks/cli-1.0.6-n3apbtd5.mjs +2 -0
  188. package/dist/chunks/cli-1.0.6-n6yd76q7.mjs +2 -0
  189. package/dist/chunks/cli-1.0.6-n9zhw61e.mjs +2 -0
  190. package/dist/chunks/cli-1.0.6-nb4f2zfq.mjs +2 -0
  191. package/dist/chunks/cli-1.0.6-nbxf3acf.mjs +2 -0
  192. package/dist/chunks/cli-1.0.6-njnv92az.mjs +2 -0
  193. package/dist/chunks/cli-1.0.6-nke3e3mv.mjs +2 -0
  194. package/dist/chunks/cli-1.0.6-nphrz836.mjs +34 -0
  195. package/dist/chunks/cli-1.0.6-npng9y9t.mjs +2 -0
  196. package/dist/chunks/cli-1.0.6-nyh2gact.mjs +133 -0
  197. package/dist/chunks/cli-1.0.6-p2syhbmk.mjs +24 -0
  198. package/dist/chunks/cli-1.0.6-pem0rvy0.mjs +2 -0
  199. package/dist/chunks/cli-1.0.6-pgc0vpjm.mjs +2 -0
  200. package/dist/chunks/cli-1.0.6-pgwdn1q5.mjs +2 -0
  201. package/dist/chunks/cli-1.0.6-px4bsvf6.mjs +2 -0
  202. package/dist/chunks/cli-1.0.6-q2yz709r.mjs +2 -0
  203. package/dist/chunks/cli-1.0.6-q79ba7ng.mjs +24 -0
  204. package/dist/chunks/cli-1.0.6-qnmkmcq4.mjs +2 -0
  205. package/dist/chunks/cli-1.0.6-qp2em1hm.mjs +2 -0
  206. package/dist/chunks/cli-1.0.6-qt11m0ak.mjs +2 -0
  207. package/dist/chunks/cli-1.0.6-r0n4r13f.mjs +18 -0
  208. package/dist/chunks/cli-1.0.6-r2508q6q.mjs +2 -0
  209. package/dist/chunks/cli-1.0.6-r6mzt599.mjs +3 -0
  210. package/dist/chunks/cli-1.0.6-rkbbyfm8.mjs +21 -0
  211. package/dist/chunks/cli-1.0.6-rm2htcb3.mjs +2 -0
  212. package/dist/chunks/cli-1.0.6-rp7q90tp.mjs +42 -0
  213. package/dist/chunks/cli-1.0.6-rsj4zt4n.mjs +2 -0
  214. package/dist/chunks/cli-1.0.6-rwke4nxh.mjs +3 -0
  215. package/dist/chunks/cli-1.0.6-rx5w7fx8.mjs +2 -0
  216. package/dist/chunks/cli-1.0.6-ry340c4k.mjs +133 -0
  217. package/dist/chunks/cli-1.0.6-s333n5zg.mjs +8 -0
  218. package/dist/chunks/cli-1.0.6-s8neseq2.mjs +4 -0
  219. package/dist/chunks/cli-1.0.6-shakqp36.mjs +2 -0
  220. package/dist/chunks/cli-1.0.6-snj1v3kf.mjs +2 -0
  221. package/dist/chunks/cli-1.0.6-sq2d4y85.mjs +2 -0
  222. package/dist/chunks/cli-1.0.6-sw7g4tgd.mjs +2 -0
  223. package/dist/chunks/cli-1.0.6-sws40pv9.mjs +2 -0
  224. package/dist/chunks/cli-1.0.6-t9r7rn29.mjs +2 -0
  225. package/dist/chunks/cli-1.0.6-tnt5gdq6.mjs +3 -0
  226. package/dist/chunks/cli-1.0.6-tw4tv5c3.mjs +2 -0
  227. package/dist/chunks/cli-1.0.6-v08hd9y9.mjs +2 -0
  228. package/dist/chunks/cli-1.0.6-va933r6s.mjs +2 -0
  229. package/dist/chunks/cli-1.0.6-vmwnjv3e.mjs +12 -0
  230. package/dist/chunks/cli-1.0.6-vpwqryae.mjs +45 -0
  231. package/dist/chunks/cli-1.0.6-vw4q8h8f.mjs +20 -0
  232. package/dist/chunks/cli-1.0.6-w3ewev2t.mjs +2 -0
  233. package/dist/chunks/cli-1.0.6-w3xpmc0m.mjs +2 -0
  234. package/dist/chunks/cli-1.0.6-wc676ed5.mjs +2 -0
  235. package/dist/chunks/cli-1.0.6-wgprm90p.mjs +2 -0
  236. package/dist/chunks/cli-1.0.6-wqqq5eh9.mjs +2 -0
  237. package/dist/chunks/cli-1.0.6-wvn01egx.mjs +2 -0
  238. package/dist/chunks/cli-1.0.6-x2m8wf3s.mjs +15 -0
  239. package/dist/chunks/cli-1.0.6-x6q5yg4p.mjs +2 -0
  240. package/dist/chunks/cli-1.0.6-xgntnn4t.mjs +2 -0
  241. package/dist/chunks/cli-1.0.6-xhmby05p.mjs +2 -0
  242. package/dist/chunks/cli-1.0.6-xk2ttvjs.mjs +2 -0
  243. package/dist/chunks/cli-1.0.6-xr79bf4b.mjs +58 -0
  244. package/dist/chunks/cli-1.0.6-xsbxh0be.mjs +2 -0
  245. package/dist/chunks/cli-1.0.6-xx7yggj6.mjs +2 -0
  246. package/dist/chunks/cli-1.0.6-y406hq26.mjs +2 -0
  247. package/dist/chunks/cli-1.0.6-y7y63cz5.mjs +25 -0
  248. package/dist/chunks/cli-1.0.6-y84yqp9s.mjs +9 -0
  249. package/dist/chunks/cli-1.0.6-yfs94tn1.mjs +2 -0
  250. package/dist/chunks/cli-1.0.6-ykfbjap8.mjs +4 -0
  251. package/dist/chunks/cli-1.0.6-ypbzk2re.mjs +2 -0
  252. package/dist/chunks/cli-1.0.6-ytd9vx4t.mjs +5 -0
  253. package/dist/chunks/cli-1.0.6-z06mmyvr.mjs +6 -0
  254. package/dist/chunks/cli-1.0.6-z1vvz38s.mjs +2 -0
  255. package/dist/chunks/cli-1.0.6-z6c3g4jy.mjs +2 -0
  256. package/dist/chunks/cli-1.0.6-zbbh8d20.mjs +2 -0
  257. package/dist/chunks/cli-1.0.6-zcnjjez0.mjs +3 -0
  258. package/dist/chunks/client-1.0.6-n3e1kq6z.mjs +1 -0
  259. package/dist/chunks/color-1.0.6-949mf4t9.mjs +1 -0
  260. package/dist/chunks/compact-1.0.6-pk763zz3.mjs +3 -0
  261. package/dist/chunks/config-1.0.6-bysc6622.mjs +1 -0
  262. package/dist/chunks/config-1.0.6-tgr3szh4.mjs +1 -0
  263. package/dist/chunks/constants-1.0.6-2ytt6s63.mjs +1 -0
  264. package/dist/chunks/context-1.0.6-c6a94j19.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.6-rs66dgc4.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.6-jg2wrz10.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.6-pqtevy6f.mjs +1 -0
  268. package/dist/chunks/copy-1.0.6-8q0c5rxd.mjs +9 -0
  269. package/dist/chunks/cost-1.0.6-99qahzn2.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.6-d9m8hpvm.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.6-bst3zcfv.mjs +1 -0
  272. package/dist/chunks/debug-1.0.6-sp18ckyq.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.6-264e52qb.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.6-8f041exs.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.6-5xtpjm37.mjs +1 -0
  276. package/dist/chunks/detection-1.0.6-rqwbmfnt.mjs +1 -0
  277. package/dist/chunks/diff-1.0.6-2tfee48c.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.6-8cd8a94q.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.6-2waz13fa.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.6-xz3zmash.mjs +1 -0
  281. package/dist/chunks/effort-1.0.6-sxass88w.mjs +10 -0
  282. package/dist/chunks/engine-1.0.6-m67y6tar.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.6-96am9ft2.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.6-rwrw23sx.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.6-eafb1t40.mjs +1 -0
  286. package/dist/chunks/environments-1.0.6-4rbtnxhr.mjs +1 -0
  287. package/dist/chunks/errors-1.0.6-tw2j2j5x.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.6-nme5mfvh.mjs +1 -0
  289. package/dist/chunks/exit-1.0.6-0nhvqr67.mjs +1 -0
  290. package/dist/chunks/explorer-1.0.6-9va9rmay.mjs +1 -0
  291. package/dist/chunks/export-1.0.6-42k6mg0d.mjs +2 -0
  292. package/dist/chunks/extra-usage-1.0.6-1ts30zcb.mjs +1 -0
  293. package/dist/chunks/extra-usage-noninteractive-1.0.6-ccj017df.mjs +1 -0
  294. package/dist/chunks/fast-1.0.6-hng6hkgq.mjs +1 -0
  295. package/dist/chunks/feedback-1.0.6-5xpevqgs.mjs +14 -0
  296. package/dist/chunks/firstPartyEventLogger-1.0.6-y50d073s.mjs +1 -0
  297. package/dist/chunks/git-1.0.6-vdebxyc7.mjs +1 -0
  298. package/dist/chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs +1 -0
  299. package/dist/chunks/goal-1.0.6-ragq8khs.mjs +4 -0
  300. package/dist/chunks/grove-1.0.6-94e2ae96.mjs +1 -0
  301. package/dist/chunks/growthbook-1.0.6-q95706fh.mjs +1 -0
  302. package/dist/chunks/headless-1.0.6-2jvpkaj6.mjs +2 -0
  303. package/dist/chunks/heapdump-1.0.6-6mqe5yjj.mjs +6 -0
  304. package/dist/chunks/help-1.0.6-3f56hs2r.mjs +1 -0
  305. package/dist/chunks/hookChains-1.0.6-bsdqvn2p.mjs +3 -0
  306. package/dist/chunks/hooks-1.0.6-2ymh39cf.mjs +79 -0
  307. package/dist/chunks/hooks-1.0.6-d56f9xmd.mjs +1 -0
  308. package/dist/chunks/ide-1.0.6-0hyhzmhe.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.0.6-xf9rg916.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.0.6-fz8n9ms8.mjs +1 -0
  311. package/dist/chunks/index-1.0.6-2bck3pt4.mjs +30 -0
  312. package/dist/chunks/index-1.0.6-3g0nsrkv.mjs +17 -0
  313. package/dist/chunks/index-1.0.6-3y7jxvhy.mjs +1 -0
  314. package/dist/chunks/index-1.0.6-478y2m6e.mjs +2 -0
  315. package/dist/chunks/index-1.0.6-4b1e7s1x.mjs +1 -0
  316. package/dist/chunks/index-1.0.6-58j0s67x.mjs +1 -0
  317. package/dist/chunks/index-1.0.6-5bgvzt3z.mjs +1 -0
  318. package/dist/chunks/index-1.0.6-5vphvdyy.mjs +1 -0
  319. package/dist/chunks/index-1.0.6-66q2r5rv.mjs +1 -0
  320. package/dist/chunks/index-1.0.6-7eqcsb13.mjs +9 -0
  321. package/dist/chunks/index-1.0.6-7mybgpvp.mjs +9 -0
  322. package/dist/chunks/index-1.0.6-9h6qgr9j.mjs +1 -0
  323. package/dist/chunks/index-1.0.6-a1je2hj0.mjs +5 -0
  324. package/dist/chunks/index-1.0.6-dzem1xyw.mjs +1 -0
  325. package/dist/chunks/index-1.0.6-h1kbzgbr.mjs +1 -0
  326. package/dist/chunks/index-1.0.6-jr8edr28.mjs +1 -0
  327. package/dist/chunks/index-1.0.6-kb626zfj.mjs +1 -0
  328. package/dist/chunks/index-1.0.6-scap8ztx.mjs +1 -0
  329. package/dist/chunks/index-1.0.6-sfn887je.mjs +1 -0
  330. package/dist/chunks/index-1.0.6-trrzmzqw.mjs +2 -0
  331. package/dist/chunks/index-1.0.6-vxgxky1j.mjs +1 -0
  332. package/dist/chunks/index-1.0.6-xw59t9mn.mjs +1 -0
  333. package/dist/chunks/index-1.0.6-zefh4dqr.mjs +1 -0
  334. package/dist/chunks/init-1.0.6-ceew1r40.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.0.6-q0q0cs0q.mjs +1 -0
  336. package/dist/chunks/ink-1.0.6-egfpysk6.mjs +1 -0
  337. package/dist/chunks/insights-1.0.6-2jg25rtq.mjs +870 -0
  338. package/dist/chunks/install-1.0.6-g2wbzhrp.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.0.6-wkch2k0a.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.0.6-t0yx4g99.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.0.6-rchtz4a0.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.0.6-y17rjqq1.mjs +1 -0
  343. package/dist/chunks/keybindings-1.0.6-fwfn3ph3.mjs +2 -0
  344. package/dist/chunks/knowledge-1.0.6-ec5ygwxq.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.0.6-v868fdtg.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.0.6-tqjw33x8.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.0.6-0ep8t6k1.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.6-qnt1qmw9.mjs +1 -0
  349. package/dist/chunks/log-1.0.6-k9cgc2n4.mjs +1 -0
  350. package/dist/chunks/main-1.0.6-nqg7gj8m.mjs +1 -0
  351. package/dist/chunks/managedEnv-1.0.6-5ew1phra.mjs +1 -0
  352. package/dist/chunks/mcp-1.0.6-3knsgg6d.mjs +17 -0
  353. package/dist/chunks/mcp-1.0.6-na22t28a.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.6-zkyhgas3.mjs +4 -0
  355. package/dist/chunks/mcpb-1.0.6-g3b1zqxb.mjs +1 -0
  356. package/dist/chunks/memory-1.0.6-atzzmaad.mjs +3 -0
  357. package/dist/chunks/model-1.0.6-57z0x37s.mjs +1 -0
  358. package/dist/chunks/model-1.0.6-843dkkfz.mjs +2 -0
  359. package/dist/chunks/node-1.0.6-vxbhm4hf.mjs +12 -0
  360. package/dist/chunks/oauth-1.0.6-cfc8agdv.mjs +1 -0
  361. package/dist/chunks/openaiShim-1.0.6-zsb0hbxr.mjs +14 -0
  362. package/dist/chunks/output-style-1.0.6-qbmq3rnf.mjs +1 -0
  363. package/dist/chunks/package-ZZWOLTXM-1.0.6-tkz3dr14.mjs +1 -0
  364. package/dist/chunks/parseConnectUrl-1.0.6-j4d5nn9v.mjs +1 -0
  365. package/dist/chunks/parser-1.0.6-v2vwmn92.mjs +1 -0
  366. package/dist/chunks/passes-1.0.6-n7gy2bm9.mjs +1 -0
  367. package/dist/chunks/permissions-1.0.6-p5k4trnb.mjs +3 -0
  368. package/dist/chunks/permissions-1.0.6-sdaqy7tv.mjs +1 -0
  369. package/dist/chunks/plan-1.0.6-dsq3488z.mjs +1 -0
  370. package/dist/chunks/plist-1.0.6-gpg0h2dj.mjs +1 -0
  371. package/dist/chunks/plugin-1.0.6-kj0t0xry.mjs +29 -0
  372. package/dist/chunks/pluginStartupCheck-1.0.6-tr3d9de5.mjs +1 -0
  373. package/dist/chunks/plugins-1.0.6-7kctwa0e.mjs +9 -0
  374. package/dist/chunks/preActionHook-1.0.6-qfq4qcnx.mjs +2 -0
  375. package/dist/chunks/print-1.0.6-9k27napw.mjs +57 -0
  376. package/dist/chunks/privacy-settings-1.0.6-pmkcm2k6.mjs +1 -0
  377. package/dist/chunks/process-1.0.6-yjr9qgm0.mjs +1 -0
  378. package/dist/chunks/processBashCommand-1.0.6-hjsegdwx.mjs +1 -0
  379. package/dist/chunks/processSlashCommand-1.0.6-qtste297.mjs +9 -0
  380. package/dist/chunks/prompt-1.0.6-3pz6ez1b.mjs +1 -0
  381. package/dist/chunks/prompt-1.0.6-gz6pqd71.mjs +1 -0
  382. package/dist/chunks/prompts-1.0.6-dds21kka.mjs +1 -0
  383. package/dist/chunks/protocolHandler-1.0.6-0ks875v7.mjs +13 -0
  384. package/dist/chunks/provider-1.0.6-9a1x17c8.mjs +2 -0
  385. package/dist/chunks/providerProfiles-1.0.6-rk717k78.mjs +1 -0
  386. package/dist/chunks/providerValidation-1.0.6-e3rpsc9f.mjs +6 -0
  387. package/dist/chunks/rate-limit-options-1.0.6-90etm2re.mjs +1 -0
  388. package/dist/chunks/registerSubcommands-1.0.6-nvtknss4.mjs +34 -0
  389. package/dist/chunks/registry-1.0.6-g4g3tqbv.mjs +1 -0
  390. package/dist/chunks/release-notes-1.0.6-1s9np58q.mjs +5 -0
  391. package/dist/chunks/reload-plugins-1.0.6-3dd0aedh.mjs +2 -0
  392. package/dist/chunks/remote-env-1.0.6-gyn1ez8r.mjs +1 -0
  393. package/dist/chunks/remoteBridgeCore-1.0.6-g9538ytn.mjs +1 -0
  394. package/dist/chunks/remoteSession-1.0.6-mta0cnmb.mjs +1 -0
  395. package/dist/chunks/rename-1.0.6-q495btpz.mjs +1 -0
  396. package/dist/chunks/replBridgeHandle-1.0.6-v46krtrw.mjs +1 -0
  397. package/dist/chunks/replLauncher-1.0.6-cc276asy.mjs +1 -0
  398. package/dist/chunks/resume-1.0.6-f7sxdm3s.mjs +2 -0
  399. package/dist/chunks/rewind-1.0.6-6stqe269.mjs +1 -0
  400. package/dist/chunks/rootOptions-1.0.6-j78xfj1y.mjs +1 -0
  401. package/dist/chunks/sandbox-adapter-1.0.6-901t5paa.mjs +1 -0
  402. package/dist/chunks/sandbox-toggle-1.0.6-vc10zpq8.mjs +1 -0
  403. package/dist/chunks/session-1.0.6-gjwdmj9d.mjs +2 -0
  404. package/dist/chunks/sessionDiscovery-1.0.6-r2ydd9s8.mjs +1 -0
  405. package/dist/chunks/sessionFileAccessHooks-1.0.6-9dvjq66r.mjs +1 -0
  406. package/dist/chunks/sessionStorage-1.0.6-6xf0298f.mjs +1 -0
  407. package/dist/chunks/settings-1.0.6-369qbnap.mjs +1 -0
  408. package/dist/chunks/setup-1.0.6-n8ec75ht.mjs +5 -0
  409. package/dist/chunks/sinks-1.0.6-h7v83r07.mjs +1 -0
  410. package/dist/chunks/skills-1.0.6-srbnw6db.mjs +1 -0
  411. package/dist/chunks/startupProfiler-1.0.6-bt2rwgd4.mjs +1 -0
  412. package/dist/chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs +1 -0
  413. package/dist/chunks/state-1.0.6-3m5c8zpc.mjs +1 -0
  414. package/dist/chunks/stats-1.0.6-df87fq0j.mjs +6 -0
  415. package/dist/chunks/status-1.0.6-0wmbys8d.mjs +1 -0
  416. package/dist/chunks/stickers-1.0.6-rn50x1rq.mjs +1 -0
  417. package/dist/chunks/subprocessEnv-1.0.6-1p34363n.mjs +1 -0
  418. package/dist/chunks/tasks-1.0.6-n9dy1nvm.mjs +1 -0
  419. package/dist/chunks/teamHelpers-1.0.6-sbqr7ebq.mjs +1 -0
  420. package/dist/chunks/teammateModeSnapshot-1.0.6-shsz85kr.mjs +1 -0
  421. package/dist/chunks/teleport-1.0.6-thxx543v.mjs +1 -0
  422. package/dist/chunks/terminalSetup-1.0.6-2abyvwnm.mjs +1 -0
  423. package/dist/chunks/theme-1.0.6-3q8wm8dd.mjs +1 -0
  424. package/dist/chunks/thinkback-1.0.6-sk8ykxzt.mjs +1 -0
  425. package/dist/chunks/thinkback-play-1.0.6-6202g18m.mjs +1 -0
  426. package/dist/chunks/toolPool-1.0.6-7f9ny265.mjs +1 -0
  427. package/dist/chunks/toolSearch-1.0.6-r927q3n6.mjs +1 -0
  428. package/dist/chunks/tools-1.0.6-49vtha15.mjs +1 -0
  429. package/dist/chunks/trustedDevice-1.0.6-12zgjreg.mjs +1 -0
  430. package/dist/chunks/turndown.cjs-1.0.6-m88jykaz.mjs +69 -0
  431. package/dist/chunks/types-1.0.6-qcw5ptd7.mjs +1 -0
  432. package/dist/chunks/ultrareviewCommand-1.0.6-34s8eh57.mjs +4 -0
  433. package/dist/chunks/update-1.0.6-10vds9r4.mjs +88 -0
  434. package/dist/chunks/upgrade-1.0.6-sdwjc086.mjs +1 -0
  435. package/dist/chunks/upload-1.0.6-tk83fcy2.mjs +7 -0
  436. package/dist/chunks/upstreamproxy-1.0.6-8d54f9fn.mjs +14 -0
  437. package/dist/chunks/url-handler-napi-1.0.6-ph7g08x7.mjs +1 -0
  438. package/dist/chunks/usage-1.0.6-3m17gzhd.mjs +1 -0
  439. package/dist/chunks/util-1.0.6-wh7h4a5g.mjs +1 -0
  440. package/dist/chunks/utils-1.0.6-5e17hs3n.mjs +1 -0
  441. package/dist/chunks/vim-1.0.6-4mjggnma.mjs +1 -0
  442. package/dist/chunks/watcher-1.0.6-6p1xkebx.mjs +1 -0
  443. package/dist/chunks/wiki-1.0.6-aysp0kpj.mjs +132 -0
  444. package/dist/chunks/workflows-1.0.6-rnjxwhns.mjs +1 -0
  445. package/dist/chunks/worktree-1.0.6-8nfcjmff.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs +1 -0
  447. package/dist/chunks/wrapper-1.0.6-crv0bjsj.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/install.cjs +6 -2
  450. package/package.json +10 -10
  451. package/dist/chunks/AgentTool-1.0.4-hb5yf83k.mjs +0 -1
  452. package/dist/chunks/App-1.0.4-ee5phav9.mjs +0 -1
  453. package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +0 -1
  454. package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +0 -1
  455. package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +0 -1
  456. package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +0 -1
  457. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +0 -1
  458. package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +0 -1
  459. package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +0 -7
  460. package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +0 -1
  461. package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +0 -6
  462. package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +0 -1
  463. package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +0 -1
  464. package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +0 -1
  465. package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +0 -1
  466. package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +0 -1
  467. package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +0 -1
  468. package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +0 -1
  469. package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +0 -1
  470. package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +0 -1
  471. package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +0 -1
  472. package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +0 -1
  473. package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +0 -1
  474. package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +0 -1
  475. package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +0 -9
  476. package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +0 -1
  477. package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +0 -1
  478. package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +0 -1
  479. package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +0 -1
  480. package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +0 -1
  481. package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +0 -110
  482. package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +0 -3
  483. package/dist/chunks/api-1.0.4-h4pnj11w.mjs +0 -1
  484. package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +0 -1
  485. package/dist/chunks/assistant-1.0.4-cezj138d.mjs +0 -1
  486. package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +0 -1
  487. package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +0 -1
  488. package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +0 -48
  489. package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +0 -1
  490. package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +0 -1
  491. package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +0 -4
  492. package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +0 -2
  493. package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +0 -1
  494. package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +0 -1
  495. package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +0 -88
  496. package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +0 -1
  497. package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +0 -1
  498. package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +0 -3
  499. package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +0 -1
  500. package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +0 -21
  501. package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +0 -4
  502. package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +0 -1
  503. package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +0 -1
  504. package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +0 -1
  505. package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +0 -1
  506. package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +0 -1
  507. package/dist/chunks/cli-1.0.4-08e3sn18.mjs +0 -2
  508. package/dist/chunks/cli-1.0.4-092qjm5g.mjs +0 -25
  509. package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +0 -2
  510. package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +0 -2
  511. package/dist/chunks/cli-1.0.4-0pqf799x.mjs +0 -2
  512. package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +0 -16
  513. package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +0 -67
  514. package/dist/chunks/cli-1.0.4-1bg07n68.mjs +0 -4
  515. package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +0 -2
  516. package/dist/chunks/cli-1.0.4-1j122zyj.mjs +0 -2
  517. package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +0 -20
  518. package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +0 -2
  519. package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +0 -2
  520. package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +0 -2
  521. package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +0 -50
  522. package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +0 -2
  523. package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +0 -2
  524. package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +0 -2
  525. package/dist/chunks/cli-1.0.4-2vrfse65.mjs +0 -2
  526. package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +0 -24
  527. package/dist/chunks/cli-1.0.4-3289hbrr.mjs +0 -6
  528. package/dist/chunks/cli-1.0.4-34jdejmp.mjs +0 -2
  529. package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +0 -2
  530. package/dist/chunks/cli-1.0.4-3b0061a4.mjs +0 -2
  531. package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +0 -3
  532. package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +0 -3
  533. package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +0 -2
  534. package/dist/chunks/cli-1.0.4-4sfp975c.mjs +0 -2
  535. package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +0 -24
  536. package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +0 -2
  537. package/dist/chunks/cli-1.0.4-5663sqrh.mjs +0 -2
  538. package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +0 -2
  539. package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +0 -2
  540. package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +0 -2
  541. package/dist/chunks/cli-1.0.4-618n4yb3.mjs +0 -2
  542. package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +0 -2
  543. package/dist/chunks/cli-1.0.4-75pszwff.mjs +0 -12
  544. package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +0 -2
  545. package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +0 -39
  546. package/dist/chunks/cli-1.0.4-7jd24agk.mjs +0 -2
  547. package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +0 -4
  548. package/dist/chunks/cli-1.0.4-80hrkybp.mjs +0 -2
  549. package/dist/chunks/cli-1.0.4-85cb91sn.mjs +0 -4
  550. package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +0 -2
  551. package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +0 -3
  552. package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +0 -8
  553. package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +0 -2
  554. package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +0 -2
  555. package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +0 -2
  556. package/dist/chunks/cli-1.0.4-95nw81kz.mjs +0 -2
  557. package/dist/chunks/cli-1.0.4-982xabhy.mjs +0 -2
  558. package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +0 -2
  559. package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +0 -59
  560. package/dist/chunks/cli-1.0.4-9re52te8.mjs +0 -2
  561. package/dist/chunks/cli-1.0.4-9w88pg39.mjs +0 -12
  562. package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +0 -2
  563. package/dist/chunks/cli-1.0.4-a14svdr8.mjs +0 -1
  564. package/dist/chunks/cli-1.0.4-avmcefxg.mjs +0 -10
  565. package/dist/chunks/cli-1.0.4-azntz5z2.mjs +0 -2
  566. package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +0 -133
  567. package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +0 -2
  568. package/dist/chunks/cli-1.0.4-bneycyws.mjs +0 -2
  569. package/dist/chunks/cli-1.0.4-bnsdazas.mjs +0 -3
  570. package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +0 -2
  571. package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +0 -2
  572. package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +0 -58
  573. package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +0 -2
  574. package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +0 -2
  575. package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +0 -2
  576. package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +0 -2
  577. package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +0 -2
  578. package/dist/chunks/cli-1.0.4-e26gm32b.mjs +0 -2
  579. package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +0 -2
  580. package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +0 -2
  581. package/dist/chunks/cli-1.0.4-e86sgy00.mjs +0 -3
  582. package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +0 -2
  583. package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +0 -5
  584. package/dist/chunks/cli-1.0.4-ef5asahs.mjs +0 -4
  585. package/dist/chunks/cli-1.0.4-emp66cxw.mjs +0 -2
  586. package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +0 -6
  587. package/dist/chunks/cli-1.0.4-ex22h376.mjs +0 -2
  588. package/dist/chunks/cli-1.0.4-f0t68sye.mjs +0 -2
  589. package/dist/chunks/cli-1.0.4-f20q38cw.mjs +0 -2
  590. package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +0 -15
  591. package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +0 -2
  592. package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +0 -2
  593. package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +0 -2
  594. package/dist/chunks/cli-1.0.4-f965h6gd.mjs +0 -7
  595. package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +0 -2
  596. package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +0 -3
  597. package/dist/chunks/cli-1.0.4-fcswm1md.mjs +0 -2
  598. package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +0 -2
  599. package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +0 -2
  600. package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +0 -2
  601. package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +0 -2
  602. package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +0 -2
  603. package/dist/chunks/cli-1.0.4-genhzh1b.mjs +0 -2
  604. package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +0 -5
  605. package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +0 -2
  606. package/dist/chunks/cli-1.0.4-ghzbww61.mjs +0 -34
  607. package/dist/chunks/cli-1.0.4-gqc15qng.mjs +0 -6
  608. package/dist/chunks/cli-1.0.4-gssg75hx.mjs +0 -2
  609. package/dist/chunks/cli-1.0.4-gyjecspm.mjs +0 -2
  610. package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +0 -2
  611. package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +0 -2
  612. package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +0 -2
  613. package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +0 -2
  614. package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +0 -2
  615. package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +0 -3
  616. package/dist/chunks/cli-1.0.4-hwje79ka.mjs +0 -2
  617. package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +0 -3
  618. package/dist/chunks/cli-1.0.4-j17mhs88.mjs +0 -18
  619. package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +0 -5471
  620. package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +0 -2
  621. package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +0 -2
  622. package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +0 -2
  623. package/dist/chunks/cli-1.0.4-k20sr786.mjs +0 -3
  624. package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +0 -2
  625. package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +0 -3
  626. package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +0 -2
  627. package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +0 -2
  628. package/dist/chunks/cli-1.0.4-m240wvtt.mjs +0 -9
  629. package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +0 -2
  630. package/dist/chunks/cli-1.0.4-ndy339bx.mjs +0 -2
  631. package/dist/chunks/cli-1.0.4-nfpfve45.mjs +0 -2
  632. package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +0 -2
  633. package/dist/chunks/cli-1.0.4-nws4fp34.mjs +0 -2
  634. package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +0 -18
  635. package/dist/chunks/cli-1.0.4-p618f4eb.mjs +0 -2
  636. package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +0 -18
  637. package/dist/chunks/cli-1.0.4-pxqvx117.mjs +0 -3
  638. package/dist/chunks/cli-1.0.4-q00a51mt.mjs +0 -4
  639. package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +0 -199
  640. package/dist/chunks/cli-1.0.4-q97cke3f.mjs +0 -2
  641. package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +0 -5
  642. package/dist/chunks/cli-1.0.4-qka1j546.mjs +0 -4
  643. package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +0 -2
  644. package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +0 -25
  645. package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +0 -17
  646. package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +0 -42
  647. package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +0 -2
  648. package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +0 -2
  649. package/dist/chunks/cli-1.0.4-rhq4w2pj.mjs +0 -2
  650. package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +0 -12
  651. package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +0 -2
  652. package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +0 -12
  653. package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +0 -2
  654. package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +0 -24
  655. package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +0 -2
  656. package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +0 -4
  657. package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +0 -2
  658. package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +0 -2
  659. package/dist/chunks/cli-1.0.4-s6m720bj.mjs +0 -2
  660. package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +0 -2
  661. package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +0 -2
  662. package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +0 -2
  663. package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +0 -2
  664. package/dist/chunks/cli-1.0.4-t915kvpv.mjs +0 -2
  665. package/dist/chunks/cli-1.0.4-th3f10e2.mjs +0 -2
  666. package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +0 -2
  667. package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +0 -3
  668. package/dist/chunks/cli-1.0.4-v2973j5k.mjs +0 -15
  669. package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +0 -2
  670. package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +0 -4
  671. package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +0 -2
  672. package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +0 -3
  673. package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +0 -6
  674. package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +0 -15
  675. package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +0 -2
  676. package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +0 -4
  677. package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +0 -2
  678. package/dist/chunks/cli-1.0.4-wb91dheq.mjs +0 -2
  679. package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +0 -2
  680. package/dist/chunks/cli-1.0.4-wryebn9y.mjs +0 -2
  681. package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +0 -2
  682. package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +0 -2
  683. package/dist/chunks/cli-1.0.4-xcegbj23.mjs +0 -21
  684. package/dist/chunks/cli-1.0.4-xjef6vra.mjs +0 -2
  685. package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +0 -45
  686. package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +0 -2
  687. package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +0 -2
  688. package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +0 -2
  689. package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +0 -2
  690. package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +0 -2
  691. package/dist/chunks/cli-1.0.4-ya22eazw.mjs +0 -2
  692. package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +0 -2
  693. package/dist/chunks/cli-1.0.4-ygedgw05.mjs +0 -2
  694. package/dist/chunks/cli-1.0.4-yp6300fv.mjs +0 -2
  695. package/dist/chunks/cli-1.0.4-yq119gwk.mjs +0 -2
  696. package/dist/chunks/cli-1.0.4-yq19e16e.mjs +0 -4
  697. package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +0 -2
  698. package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +0 -17
  699. package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +0 -2
  700. package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +0 -133
  701. package/dist/chunks/cli-1.0.4-z5zmw573.mjs +0 -2
  702. package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +0 -2
  703. package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +0 -2
  704. package/dist/chunks/cli-1.0.4-znj63zs7.mjs +0 -2
  705. package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +0 -2
  706. package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +0 -2
  707. package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +0 -2
  708. package/dist/chunks/client-1.0.4-tejrj09r.mjs +0 -1
  709. package/dist/chunks/color-1.0.4-148b97be.mjs +0 -1
  710. package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +0 -3
  711. package/dist/chunks/config-1.0.4-a5enjc0b.mjs +0 -1
  712. package/dist/chunks/config-1.0.4-q23nqw9d.mjs +0 -1
  713. package/dist/chunks/constants-1.0.4-635bzfez.mjs +0 -1
  714. package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +0 -1
  715. package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +0 -1
  716. package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +0 -1
  717. package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +0 -1
  718. package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +0 -9
  719. package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +0 -1
  720. package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +0 -1
  721. package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +0 -1
  722. package/dist/chunks/debug-1.0.4-dym46dbc.mjs +0 -1
  723. package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +0 -1446
  724. package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +0 -1
  725. package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +0 -1
  726. package/dist/chunks/detection-1.0.4-02gwawhp.mjs +0 -1
  727. package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +0 -1
  728. package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +0 -1
  729. package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +0 -1
  730. package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +0 -1
  731. package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +0 -10
  732. package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +0 -1
  733. package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +0 -1
  734. package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +0 -1
  735. package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +0 -1
  736. package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +0 -1
  737. package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +0 -1
  738. package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +0 -1
  739. package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +0 -1
  740. package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +0 -1
  741. package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +0 -2
  742. package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +0 -1
  743. package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +0 -1
  744. package/dist/chunks/fast-1.0.4-qb539j3d.mjs +0 -1
  745. package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +0 -14
  746. package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +0 -1
  747. package/dist/chunks/git-1.0.4-ag4cdf47.mjs +0 -1
  748. package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +0 -1
  749. package/dist/chunks/goal-1.0.4-w76hde3j.mjs +0 -4
  750. package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +0 -1
  751. package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +0 -1
  752. package/dist/chunks/headless-1.0.4-4htsajcx.mjs +0 -2
  753. package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +0 -6
  754. package/dist/chunks/help-1.0.4-mb80yzdd.mjs +0 -1
  755. package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +0 -3
  756. package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +0 -1
  757. package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +0 -79
  758. package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +0 -3
  759. package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +0 -1
  760. package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +0 -1
  761. package/dist/chunks/index-1.0.4-0ds0yar8.mjs +0 -2
  762. package/dist/chunks/index-1.0.4-0swpjsxv.mjs +0 -1
  763. package/dist/chunks/index-1.0.4-1adr1cev.mjs +0 -1
  764. package/dist/chunks/index-1.0.4-2cqwak8f.mjs +0 -1
  765. package/dist/chunks/index-1.0.4-45r2p2fr.mjs +0 -1
  766. package/dist/chunks/index-1.0.4-578fqjbt.mjs +0 -5
  767. package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +0 -1
  768. package/dist/chunks/index-1.0.4-bq00jtej.mjs +0 -1
  769. package/dist/chunks/index-1.0.4-d3963jrf.mjs +0 -1
  770. package/dist/chunks/index-1.0.4-db6y9w6p.mjs +0 -9
  771. package/dist/chunks/index-1.0.4-eqa6324a.mjs +0 -30
  772. package/dist/chunks/index-1.0.4-fgtct7wa.mjs +0 -1
  773. package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +0 -1
  774. package/dist/chunks/index-1.0.4-kkxqenx5.mjs +0 -17
  775. package/dist/chunks/index-1.0.4-m48vcxbj.mjs +0 -2
  776. package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +0 -9
  777. package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +0 -1
  778. package/dist/chunks/index-1.0.4-qj0raz1t.mjs +0 -1
  779. package/dist/chunks/index-1.0.4-rb8h15jh.mjs +0 -1
  780. package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +0 -1
  781. package/dist/chunks/index-1.0.4-xadhy3m9.mjs +0 -1
  782. package/dist/chunks/index-1.0.4-ynqjejnh.mjs +0 -1
  783. package/dist/chunks/index-1.0.4-zw32d5rq.mjs +0 -1
  784. package/dist/chunks/init-1.0.4-tdv5z99g.mjs +0 -1
  785. package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +0 -1
  786. package/dist/chunks/ink-1.0.4-w371tr8m.mjs +0 -1
  787. package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +0 -870
  788. package/dist/chunks/install-1.0.4-k86wrfgy.mjs +0 -1
  789. package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +0 -149
  790. package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +0 -1
  791. package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +0 -1
  792. package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +0 -1
  793. package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +0 -2
  794. package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +0 -2
  795. package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +0 -1
  796. package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +0 -1
  797. package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +0 -1
  798. package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +0 -1
  799. package/dist/chunks/log-1.0.4-q4mkknks.mjs +0 -1
  800. package/dist/chunks/main-1.0.4-fpq69x53.mjs +0 -1
  801. package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +0 -1
  802. package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +0 -1
  803. package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +0 -17
  804. package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +0 -4
  805. package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +0 -1
  806. package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +0 -3
  807. package/dist/chunks/model-1.0.4-7q33dte0.mjs +0 -2
  808. package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +0 -1
  809. package/dist/chunks/node-1.0.4-t61fwtvv.mjs +0 -12
  810. package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +0 -1
  811. package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +0 -14
  812. package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +0 -1
  813. package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +0 -1
  814. package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +0 -1
  815. package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +0 -1
  816. package/dist/chunks/passes-1.0.4-kvwashgz.mjs +0 -1
  817. package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +0 -3
  818. package/dist/chunks/permissions-1.0.4-pmabr578.mjs +0 -1
  819. package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +0 -1
  820. package/dist/chunks/plist-1.0.4-de9w52d2.mjs +0 -1
  821. package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +0 -29
  822. package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +0 -1
  823. package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +0 -9
  824. package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +0 -2
  825. package/dist/chunks/print-1.0.4-zg0pxx71.mjs +0 -57
  826. package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +0 -1
  827. package/dist/chunks/process-1.0.4-trh5g80m.mjs +0 -1
  828. package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +0 -1
  829. package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +0 -9
  830. package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +0 -1
  831. package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +0 -1
  832. package/dist/chunks/prompts-1.0.4-an41ccab.mjs +0 -1
  833. package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +0 -13
  834. package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +0 -2
  835. package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +0 -1
  836. package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +0 -6
  837. package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +0 -1
  838. package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +0 -34
  839. package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +0 -1
  840. package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +0 -5
  841. package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +0 -2
  842. package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +0 -1
  843. package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +0 -1
  844. package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +0 -1
  845. package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +0 -1
  846. package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +0 -1
  847. package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +0 -1
  848. package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +0 -2
  849. package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +0 -1
  850. package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +0 -1
  851. package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +0 -1
  852. package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +0 -1
  853. package/dist/chunks/session-1.0.4-4fb52nd1.mjs +0 -2
  854. package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +0 -1
  855. package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +0 -1
  856. package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +0 -1
  857. package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +0 -1
  858. package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +0 -5
  859. package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +0 -1
  860. package/dist/chunks/skills-1.0.4-www28gn6.mjs +0 -1
  861. package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +0 -1
  862. package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +0 -1
  863. package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +0 -1
  864. package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +0 -6
  865. package/dist/chunks/status-1.0.4-zymfx8mp.mjs +0 -1
  866. package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +0 -1
  867. package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +0 -1
  868. package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +0 -1
  869. package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +0 -1
  870. package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +0 -1
  871. package/dist/chunks/teleport-1.0.4-x93h61td.mjs +0 -1
  872. package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +0 -1
  873. package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +0 -1
  874. package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +0 -1
  875. package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +0 -1
  876. package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +0 -1
  877. package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +0 -1
  878. package/dist/chunks/tools-1.0.4-606qnn5t.mjs +0 -1
  879. package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +0 -1
  880. package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +0 -69
  881. package/dist/chunks/types-1.0.4-1kpkjthf.mjs +0 -1
  882. package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +0 -4
  883. package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +0 -86
  884. package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +0 -1
  885. package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +0 -7
  886. package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +0 -14
  887. package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +0 -1
  888. package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +0 -1
  889. package/dist/chunks/util-1.0.4-3cjy2f82.mjs +0 -1
  890. package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +0 -1
  891. package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +0 -1
  892. package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +0 -1
  893. package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +0 -132
  894. package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +0 -1
  895. package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +0 -1
  896. package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +0 -1
  897. package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +0 -7
  898. /package/dist/chunks/{cli-1.0.4-sx5bf3zy.mjs → cli-1.0.6-eqj39b7c.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.0.4-a2brsa8c.mjs → cli-1.0.6-esf6g2hg.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.0.4-1eb2472e.mjs → cli-1.0.6-hg7rd6z8.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.0.4-jrvveh6t.mjs → cli-1.0.6-m86933bc.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.0.4-rh4j3s0t.mjs → cli-1.0.6-ntwqb73s.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.0.4-zjh4h68p.mjs → cli-1.0.6-tefnf8bf.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.4-fyekx70j.mjs → cli-1.0.6-xbk4dr3g.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{JY as f}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as p,s3 as c}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as M}from"./cli-1.0.6-6zh1kz2j.mjs";import{vra as o}from"./cli-1.0.6-c3q3ytrc.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
+ export{a as nb,l as ob};
@@ -0,0 +1,2 @@
1
+ import{x3 as K,z3 as Z}from"./cli-1.0.6-snj1v3kf.mjs";import{A3 as J,C3 as Y}from"./cli-1.0.6-tw4tv5c3.mjs";import{E7 as F,F7 as G,H4 as B,M4 as W,Z7 as X,z7 as D}from"./cli-1.0.6-1a002r86.mjs";import{nia as y,oia as Q}from"./cli-1.0.6-2taykcm3.mjs";import{Kqa as z,ara as V}from"./cli-1.0.6-r0n4r13f.mjs";import{zra as N}from"./cli-1.0.6-c3q3ytrc.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
+ export{P as Mi,_ as Ni};
@@ -0,0 +1,2 @@
1
+ import{Xia as E,Yia as F,aja as M}from"./cli-1.0.6-z06mmyvr.mjs";import{Kqa as H,ara as N}from"./cli-1.0.6-r0n4r13f.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
2
+ export{V as Mb,W as Nb,X as Ob,Y as Pb,Z as Qb};
@@ -0,0 +1,2 @@
1
+ import{zra as j}from"./cli-1.0.6-c3q3ytrc.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{x as F2,y as G2,z as H2,A as I2,B as J2,C as K2,D as L2,k as M2};
@@ -0,0 +1,2 @@
1
+ import{Nea as $,Oea as y,e_ as Z,g_ as f,vfa as B,yfa as K}from"./cli-1.0.6-3rnmt44c.mjs";import{fka as Y,nka as E}from"./cli-1.0.6-77j29wff.mjs";import{Ara as x,zra as N}from"./cli-1.0.6-c3q3ytrc.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
2
+ export{D as ti,s as ui,g as vi};
@@ -0,0 +1,2 @@
1
+ import{dka as w,nka as F}from"./cli-1.0.6-77j29wff.mjs";import{zra as D}from"./cli-1.0.6-c3q3ytrc.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
+ export{Q as AU,V as BU,L as CU};
@@ -0,0 +1,12 @@
1
+ import{ug as $Z,vg as uZ,wg as fz}from"./cli-1.0.6-5tx13t22.mjs";import{Ch as HJ,Dh as Vz}from"./cli-1.0.6-g4v1k4vj.mjs";import{Nh as GJ,Oh as Bz}from"./cli-1.0.6-jwysg2r7.mjs";import{$j as TQ,$x as EQ,$z as cJ,AQ as g0,As as NJ,BQ as rQ,Bx as $Q,DQ as eJ,EQ as ZQ,Es as Uz,Ex as AX,FJ as gQ,FQ as oQ,GQ as tQ,Gn as zQ,Hn as $z,IQ as OZ,Ik as mZ,Jk as FX,On as RQ,Pn as wX,Tx as UQ,Ux as jQ,Vx as uQ,Wx as fQ,Wz as SZ,Xz as hZ,YS as VQ,Yz as TZ,Zz as dJ,_j as _Z,_x as MQ,_z as cQ,aT as KQ,co as XQ,dT as fZ,eo as xZ,fA as e0,gA as gJ,hA as mJ,hk as IJ,iA as nJ,ik as SJ,jA as yz,ly as pQ,my as PX,oo as WQ,pT as BQ,pk as pJ,qQ as nQ,so as uz,ty as dQ,uQ as iQ,uy as DX,vQ as lQ,xQ as nZ,yQ as aQ}from"./cli-1.0.6-gjtt9hjc.mjs";import{qU as xQ,zU as OX}from"./cli-1.0.6-5qyfr732.mjs";import{OX as YJ,SX as qz,TX as UZ,UX as NX,tX as FZ,uX as qJ}from"./cli-1.0.6-2kk9k86d.mjs";import{AY as Wz,GZ as jZ,HZ as Jz,J0 as p0,JY as u0,XZ as hQ,YZ as KX,c0 as b,d0 as DQ,dZ as c0,e0 as g,f0 as JX,hZ as vZ,zY as WJ}from"./cli-1.0.6-6zqt7f43.mjs";import{p3 as f0,q3 as B,r3 as $,s3 as F0}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as S0}from"./cli-1.0.6-6zh1kz2j.mjs";import{P3 as VJ,Q3 as BJ,R3 as Yz}from"./cli-1.0.6-aasgkcf0.mjs";import{E7 as QQ,T6 as PQ,U6 as ZX,Z6 as JZ,Z7 as xz,a7 as QZ,u7 as JQ}from"./cli-1.0.6-1a002r86.mjs";import{t8 as gZ,u8 as GX}from"./cli-1.0.6-mgb1vzp0.mjs";import{A9 as v0,B9 as zJ,Eaa as SQ,Tda as DZ,_aa as LX,ica as LZ,mea as HQ,qca as XJ}from"./cli-1.0.6-3rnmt44c.mjs";import{Xfa as PZ,Yfa as TJ,gga as ZZ,nga as hz}from"./cli-1.0.6-9be2xem8.mjs";import{Cha as RZ,Dha as Rz,Oha as KZ,Tha as wZ,Uha as NZ,eia as Dz}from"./cli-1.0.6-sws40pv9.mjs";import{sja as m0,vja as ez}from"./cli-1.0.6-z06mmyvr.mjs";import{dka as IQ,nka as HX}from"./cli-1.0.6-77j29wff.mjs";import{Qpa as BX,lpa as kQ}from"./cli-1.0.6-8zcjrs1k.mjs";import{vra as N0,zra as L0}from"./cli-1.0.6-c3q3ytrc.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
+ `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
+ `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
+ `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
+ `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
+ `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
+ `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
+ `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
+ `))}return Q.join(`
10
+ `)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(SZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(r0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??rz);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,rz=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
+ `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var mQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let a of B0)if(a.type==="text"){let w0=a.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=gQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=$Q((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B(uQ.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return j0.current.set(G,a),a},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(fQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();mQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
+ export{s0 as Be,TX as Ce,lZ as De,xX as Ee,$X as Fe,JJ as Ge,QW as He,zW as Ie,XW as Je,LJ as Ke,g8 as Le,sJ as Me};
@@ -0,0 +1,4 @@
1
+ import{Jqa as w,tqa as Q,uqa as V,vqa as W,wqa as X,xqa as Y,yqa as Z}from"./cli-1.0.6-rp7q90tp.mjs";import{zra as v}from"./cli-1.0.6-c3q3ytrc.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
2
+ `),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
3
+ `)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
4
+ export{B as Cja,L as Dja,_ as Eja,S as Fja,k as Gja,F as Hja,D as Ija,P as Jja,x as Kja,y as Lja,T as Mja,O as Nja,R as Oja,U as Pja,f as Qja,N as Rja,I as Sja,$ as Tja,A as Uja,p as Vja,C as Wja,h as Xja,E as Yja,b as Zja};
@@ -0,0 +1,2 @@
1
+ import{$q as Hq,ar as pq,az as Uq,bz as mq}from"./cli-1.0.6-gjtt9hjc.mjs";import{A3 as Bq,C3 as dq}from"./cli-1.0.6-tw4tv5c3.mjs";import{D7 as S,T6 as Nq,U6 as yq,Z7 as gq,i4 as Wq,m4 as jq,n4 as Sq,z7 as c}from"./cli-1.0.6-1a002r86.mjs";import{Ada as Xq,Dda as Lq,L_ as M,P_ as $q,u$ as Gq,w$ as Pq,wda as Yq,xda as Dq,yda as k}from"./cli-1.0.6-3rnmt44c.mjs";import{vha as N,xha as bq,yha as E,zha as Cq}from"./cli-1.0.6-e3cstemm.mjs";import{gia as Kq,hia as Qq,iia as Vq,nia as Zq,oia as Rq}from"./cli-1.0.6-2taykcm3.mjs";import{pia as _,sia as e}from"./cli-1.0.6-xx7yggj6.mjs";import{Xia as m,aja as Eq,sja as Y,via as Fq,vja as Jq,xia as $J}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as C,Yja as P,Zja as qq}from"./cli-1.0.6-4r68vt91.mjs";import{Kqa as z,ara as kq}from"./cli-1.0.6-r0n4r13f.mjs";import{Ara as Tq,yra as ZJ,zra as d}from"./cli-1.0.6-c3q3ytrc.mjs";var fq,r,s;var t=d(()=>{bq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as cq,readdir as iq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Wq()!=="firstParty"||!jq())return!1;let q=c();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=c();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:i,validateStatus:(L)=>L===200||L===304||L===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:i,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:X}=P(Q),L=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:X,errorType:L,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Xq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await cq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.0.6-k0ksrf4g.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await M();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${L+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function v(q,K){_("tengu_team_mem_sync_pull",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("tengu_team_mem_sync_push",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),vq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("tengu_team_mem_push_suppressed",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
2
+ export{vq as i,NJ as j,BJ as k,Mq as l,HJ as m,UJ as n,OJ as o,wJ as p};
@@ -0,0 +1,4 @@
1
+ import{Cn as R,Dn as BJ,aE as k,bE as HJ,mp as G,pp as a,rs as D,ss as hJ}from"./cli-1.0.6-gjtt9hjc.mjs";import{K7 as $J,Z7 as bJ,z7 as ZJ}from"./cli-1.0.6-1a002r86.mjs";import{Nca as WJ,ada as jJ,d$ as C,e$ as GJ,f$ as h,g$ as FJ,h$ as u,i$ as kJ}from"./cli-1.0.6-3rnmt44c.mjs";import{Sga as x,cha as gJ}from"./cli-1.0.6-61qpjst5.mjs";import{vha as q,xha as s,yha as Y,zha as r}from"./cli-1.0.6-e3cstemm.mjs";import{$ha as M,eia as yJ}from"./cli-1.0.6-sws40pv9.mjs";import{Eia as o,Fia as CJ,Oia as n,Pia as EJ,Uia as l,Via as TJ}from"./cli-1.0.6-z06mmyvr.mjs";import{Aka as A,Bka as wJ,Mka as f,Nka as PJ,Qpa as mJ,qla as c,rla as OJ,ula as H,upa as QJ,vla as F,wla as I,xla as YJ,yka as g,yla as P,zka as zJ,zla as XJ}from"./cli-1.0.6-8zcjrs1k.mjs";import{Zpa as K,_pa as DJ}from"./cli-1.0.6-7sc6kks8.mjs";import{zra as B}from"./cli-1.0.6-c3q3ytrc.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
+ ${Q}
3
+ </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
+ export{NQ as Tf,_J as Uf,JJ as Vf,bQ as Wf,uQ as Xf,cJ as Yf,iQ as Zf,oJ as _f};
@@ -0,0 +1,2 @@
1
+ import{Ii as R,Ki as y,Li as v}from"./cli-1.0.6-86chdw6e.mjs";import{J0 as E,JY as c,e0 as K}from"./cli-1.0.6-6zqt7f43.mjs";import{p3 as O,q3 as N,r3 as M,s3 as U}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as G}from"./cli-1.0.6-6zh1kz2j.mjs";import{Tda as L,mea as b}from"./cli-1.0.6-3rnmt44c.mjs";import{bga as Z,nga as W}from"./cli-1.0.6-9be2xem8.mjs";import{sia as p}from"./cli-1.0.6-xx7yggj6.mjs";import{vra as F,zra as j}from"./cli-1.0.6-c3q3ytrc.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
2
+ export{f as Ng,r as Og,n as Pg,l as Qg};
@@ -0,0 +1,2 @@
1
+ import{zra as M}from"./cli-1.0.6-c3q3ytrc.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
2
+ export{V as wi,W as xi,X as yi,Z as zi,Y as Ai};
@@ -0,0 +1,2 @@
1
+ import{zra as j}from"./cli-1.0.6-c3q3ytrc.mjs";var q,v,z;var w=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],v=[...q,"auto"],z=v});
2
+ export{q as Fga,v as Gga,z as Hga,w as Iga};
@@ -0,0 +1,2 @@
1
+ import{pia as X,sia as z}from"./cli-1.0.6-xx7yggj6.mjs";import{Xia as Z,aja as O,sja as $,vja as P}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as Y,Zja as H}from"./cli-1.0.6-4r68vt91.mjs";import{zra as x}from"./cli-1.0.6-c3q3ytrc.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{N as uf,R as vf,U as wf,j as xf,D as yf,L as zf,m as Af};
@@ -0,0 +1,2 @@
1
+ import{yw as o,zw as n}from"./cli-1.0.6-gjtt9hjc.mjs";import{zra as e}from"./cli-1.0.6-c3q3ytrc.mjs";function i(m){t.setState(()=>[...m])}var t,r=()=>t.getState(),d;var s=e(()=>{n();t=o([]),d=t.subscribe});
2
+ export{r as Gd,d as Hd,i as Id,s as Jd};
@@ -0,0 +1,25 @@
1
+ import{$8 as Xc,K8 as nt,L8 as hl,M8 as bl,N8 as ml,O8 as fn,P8 as $c,Q8 as fu,R8 as Al,S8 as ys,T8 as El,U8 as st,V8 as hs,W8 as k,X8 as ur,Y8 as Qc,Z8 as Bc,_8 as ra,a9 as Yc,b9 as Zc,c9 as Jc,d9 as el,e9 as Hc,f9 as cr,g9 as Cc,h9 as Ts,i9 as gl}from"./cli-1.0.6-vw4q8h8f.mjs";import{j9 as ie}from"./cli-1.0.6-mwb4199d.mjs";import{kra as kc,lra as Le}from"./cli-1.0.6-39ebgej3.mjs";import{nra as Vc}from"./cli-1.0.6-kx801kag.mjs";import{pra as Fe,qra as ve,tra as De,ura as ee}from"./cli-1.0.6-j5xkwr5w.mjs";import{Ara as Bs,xra as E}from"./cli-1.0.6-c3q3ytrc.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 J8};
@@ -0,0 +1,17 @@
1
+ import{M6 as x,S6 as K}from"./cli-1.0.6-1a002r86.mjs";import{Sca as w,ada as J}from"./cli-1.0.6-3rnmt44c.mjs";import{Sga as v,cha as I}from"./cli-1.0.6-61qpjst5.mjs";import{dka as q,nka as G}from"./cli-1.0.6-77j29wff.mjs";import{zra as z}from"./cli-1.0.6-c3q3ytrc.mjs";function W(b){return b.type==="advisor_tool_result"||b.type==="server_tool_use"&&b.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let b=j();return k()&&!N()&&b.baseModel&&b.advisorModel?{baseModel:b.baseModel,advisorModel:b.advisorModel}:void 0}function Z(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-5")||h.includes("sonnet-4-6")}function $(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-5")||h.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(b){let h=b.iterations;if(!h)return[];return h.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as qU,k as rU,N as sU,X as tU,Z as uU,$ as vU,B as wU,D as xU,F as yU,O as zU};
@@ -0,0 +1,2 @@
1
+ import{UP as x,XP as B}from"./cli-1.0.6-gjtt9hjc.mjs";import{zra as z}from"./cli-1.0.6-c3q3ytrc.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
2
+ export{G as ug,H as vg,A as wg};
@@ -0,0 +1,2 @@
1
+ import{zra as C}from"./cli-1.0.6-c3q3ytrc.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
2
+ export{O as Jga,Q as Kga,R as Lga,S as Mga,T as Nga,U as Oga,W as Pga,X as Qga,Y as Rga,Z as Sga,$ as Tga,v as Uga,w as Vga,P as Wga,B as Xga,D as Yga,h as Zga,N as _ga,m as $ga,c as aha,F as bha,J as cha};
@@ -0,0 +1,2 @@
1
+ import{zra as C}from"./cli-1.0.6-c3q3ytrc.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
2
+ export{L as Oi,M as Pi,N as Qi,H as Ri};
@@ -0,0 +1,12 @@
1
+ import{v8 as D}from"./cli-1.0.6-ry340c4k.mjs";import{eja as L,ija as JG,sja as W,vja as a}from"./cli-1.0.6-z06mmyvr.mjs";import{cka as c,dka as jG,nka as GG}from"./cli-1.0.6-77j29wff.mjs";import{nqa as U,oqa as g}from"./cli-1.0.6-7sc6kks8.mjs";import{Kqa as H,ara as RG}from"./cli-1.0.6-r0n4r13f.mjs";import{era as wG}from"./cli-1.0.6-7qta6sp0.mjs";import{Ara as e,vra as WG,zra as j}from"./cli-1.0.6-c3q3ytrc.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
+ \r
4
+ `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
+ `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
+ `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
+ `;let $=n(K);K.write(`${w}\r
8
+ `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
+ `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
+ `;let V=n(Y);Y.write(`${$}\r
11
+ `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.0.6-kb626zfj.mjs"),import("./index-1.0.6-7mybgpvp.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
+ export{hG as _7,p as $7,F as a8,gG as b8,aG as c8,pG as d8,KG as e8,MJ as f8,HJ as g8,OG as h8,I as i8,h as j8,qJ as k8,jJ as l8,UJ as m8,_J as n8,FJ as o8,NJ as p8,TJ as q8,vG as r8};