@claudiolabs/claudin 0.6.7 → 0.6.9

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 (890) hide show
  1. package/dist/chunks/AgentTool-0.6.9-9rxkpd2w.mjs +1 -0
  2. package/dist/chunks/App-0.6.9-2sr69sb6.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.9-qhjbrc90.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.9-btaax7hk.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.9-4a8grmg8.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.9-jxa6nz5k.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.9-nn288md6.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.9-vbwtn6dq.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.9-hpv62yd3.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.9-tjmn7d05.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.9-xm77z99k.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.9-avg93sya.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.9-pk67e59n.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.9-hjj8wzba.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.9-pp8agzjc.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.9-gqa8pkn6.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.9-192qpt8b.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.9-ba2cfwrw.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.9-gzw0s80y.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.9-s38qycda.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.9-kxmns9zh.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.9-kr1yf6k8.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.9-zmv3c62q.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.9-m4jf5dr0.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.9-b9ax9m6j.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.9-kjse2jv1.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.9-dahc1ev9.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.9-5jwr5wg3.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.9-yfzy34qb.mjs +1 -0
  30. package/dist/chunks/agents-0.6.9-0n6mcvce.mjs +110 -0
  31. package/dist/chunks/agents-0.6.9-b31sawy3.mjs +3 -0
  32. package/dist/chunks/api-0.6.9-zdddwgzx.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.9-bzqqwjta.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.9-7g8mz1p5.mjs +1 -0
  35. package/dist/chunks/auth-0.6.9-hjd8znw9.mjs +1 -0
  36. package/dist/chunks/auth-0.6.9-y5g1mgmg.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.9-rxq8ymw3.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.9-bpak4p67.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.9-asafysjv.mjs +1 -0
  40. package/dist/chunks/branch-0.6.9-7nbx2ywt.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.9-1yc7bj8p.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.9-m23yzban.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.9-7njgh7m2.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.9-8py5synr.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.9-j9cxeww1.mjs +1 -0
  46. package/dist/chunks/btw-0.6.9-ma7pmkk5.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.9-1mkd3gdj.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.9-24ya96gj.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.9-gsvngvjh.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.9-mafdpb09.mjs +4 -0
  51. package/dist/chunks/caches-0.6.9-6j6tyf4b.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.9-h7d8r8vt.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.9-51rn86v1.mjs +1 -0
  54. package/dist/chunks/clear-0.6.9-6tv28ch2.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.9-0gh4v4ga.mjs +1 -0
  56. package/dist/chunks/cli-0.6.9-05w6ne3v.mjs +4 -0
  57. package/dist/chunks/cli-0.6.9-0f11memf.mjs +59 -0
  58. package/dist/chunks/cli-0.6.9-0j0w045z.mjs +2 -0
  59. package/dist/chunks/cli-0.6.9-0pfvh3w1.mjs +2 -0
  60. package/dist/chunks/cli-0.6.9-0qtkkmfq.mjs +2 -0
  61. package/dist/chunks/cli-0.6.9-0s223s8s.mjs +18 -0
  62. package/dist/chunks/cli-0.6.9-0t9pwgch.mjs +2 -0
  63. package/dist/chunks/cli-0.6.9-0wmp1q7a.mjs +2 -0
  64. package/dist/chunks/cli-0.6.9-0zey0wyh.mjs +2 -0
  65. package/dist/chunks/cli-0.6.9-143kz7xy.mjs +2 -0
  66. package/dist/chunks/cli-0.6.9-177spsqy.mjs +2 -0
  67. package/dist/chunks/cli-0.6.9-1a1q6vnc.mjs +9 -0
  68. package/dist/chunks/cli-0.6.9-1g9smwnt.mjs +2 -0
  69. package/dist/chunks/cli-0.6.9-268fcggy.mjs +3 -0
  70. package/dist/chunks/cli-0.6.9-2fe32k5y.mjs +2 -0
  71. package/dist/chunks/cli-0.6.9-2ffve69q.mjs +2 -0
  72. package/dist/chunks/cli-0.6.9-2nc79qh3.mjs +2 -0
  73. package/dist/chunks/cli-0.6.9-2zwgc8vn.mjs +2 -0
  74. package/dist/chunks/cli-0.6.9-30djh7wy.mjs +2 -0
  75. package/dist/chunks/cli-0.6.9-31dtrem4.mjs +2 -0
  76. package/dist/chunks/cli-0.6.9-31vx6nd6.mjs +2 -0
  77. package/dist/chunks/cli-0.6.9-35z6rask.mjs +2 -0
  78. package/dist/chunks/cli-0.6.9-3c6mqdk0.mjs +3 -0
  79. package/dist/chunks/cli-0.6.9-47kxmw0y.mjs +3 -0
  80. package/dist/chunks/cli-0.6.9-4e82zcfv.mjs +3 -0
  81. package/dist/chunks/cli-0.6.9-4hmydq2g.mjs +2 -0
  82. package/dist/chunks/cli-0.6.9-4mt6vz89.mjs +2 -0
  83. package/dist/chunks/cli-0.6.9-4nh8xyg8.mjs +3 -0
  84. package/dist/chunks/cli-0.6.9-4tdxta31.mjs +2 -0
  85. package/dist/chunks/cli-0.6.9-4vf40ybe.mjs +2 -0
  86. package/dist/chunks/cli-0.6.9-53jmw39d.mjs +2 -0
  87. package/dist/chunks/cli-0.6.9-5bs313jv.mjs +2 -0
  88. package/dist/chunks/cli-0.6.9-5ssjdjpx.mjs +2 -0
  89. package/dist/chunks/cli-0.6.9-5tam8r4f.mjs +2 -0
  90. package/dist/chunks/cli-0.6.9-618nhe26.mjs +2 -0
  91. package/dist/chunks/cli-0.6.9-64syz6hg.mjs +25 -0
  92. package/dist/chunks/cli-0.6.9-67m8zq43.mjs +2 -0
  93. package/dist/chunks/cli-0.6.9-67ms6qe8.mjs +2 -0
  94. package/dist/chunks/cli-0.6.9-6baq8t33.mjs +6 -0
  95. package/dist/chunks/cli-0.6.9-6c09kxnr.mjs +6 -0
  96. package/dist/chunks/cli-0.6.9-6czn2nk0.mjs +2 -0
  97. package/dist/chunks/cli-0.6.9-6vtgxtwc.mjs +2 -0
  98. package/dist/chunks/cli-0.6.9-703ts6mp.mjs +2 -0
  99. package/dist/chunks/cli-0.6.9-72pqdgfp.mjs +2 -0
  100. package/dist/chunks/cli-0.6.9-72xw2978.mjs +17 -0
  101. package/dist/chunks/cli-0.6.9-75m2z0pe.mjs +2 -0
  102. package/dist/chunks/cli-0.6.9-7c5zf7vm.mjs +2 -0
  103. package/dist/chunks/cli-0.6.9-7cm1vhs1.mjs +2 -0
  104. package/dist/chunks/cli-0.6.9-7e7zn9nj.mjs +42 -0
  105. package/dist/chunks/cli-0.6.9-7jptdarn.mjs +2 -0
  106. package/dist/chunks/cli-0.6.9-7ke3x92f.mjs +2 -0
  107. package/dist/chunks/cli-0.6.9-7p077nar.mjs +2 -0
  108. package/dist/chunks/cli-0.6.9-7s8ys0y7.mjs +2 -0
  109. package/dist/chunks/cli-0.6.9-7zyvegv3.mjs +2 -0
  110. package/dist/chunks/cli-0.6.9-83gnr7zb.mjs +3 -0
  111. package/dist/chunks/cli-0.6.9-8709kpq4.mjs +2 -0
  112. package/dist/chunks/cli-0.6.9-88y94bf5.mjs +2 -0
  113. package/dist/chunks/cli-0.6.9-8984d2qb.mjs +133 -0
  114. package/dist/chunks/cli-0.6.9-8amemx3r.mjs +2 -0
  115. package/dist/chunks/cli-0.6.9-8c45ksaw.mjs +2 -0
  116. package/dist/chunks/cli-0.6.9-8hye8y46.mjs +2 -0
  117. package/dist/chunks/cli-0.6.9-8v4sw3p1.mjs +2 -0
  118. package/dist/chunks/cli-0.6.9-8xxpa4ep.mjs +2 -0
  119. package/dist/chunks/cli-0.6.9-8ymt6nd1.mjs +2 -0
  120. package/dist/chunks/cli-0.6.9-8zqra5w7.mjs +18 -0
  121. package/dist/chunks/cli-0.6.9-97n772v9.mjs +3 -0
  122. package/dist/chunks/cli-0.6.9-9eyrhanm.mjs +3 -0
  123. package/dist/chunks/cli-0.6.9-9tvvnszt.mjs +15 -0
  124. package/dist/chunks/cli-0.6.9-9wvb59y3.mjs +8 -0
  125. package/dist/chunks/cli-0.6.9-9x9r4f8d.mjs +2 -0
  126. package/dist/chunks/cli-0.6.9-9zz415nm.mjs +2 -0
  127. package/dist/chunks/cli-0.6.9-a5zs8qb2.mjs +2 -0
  128. package/dist/chunks/cli-0.6.9-a91pdpbf.mjs +2 -0
  129. package/dist/chunks/cli-0.6.9-acekzr9a.mjs +15 -0
  130. package/dist/chunks/cli-0.6.9-aenf6vb7.mjs +2 -0
  131. package/dist/chunks/cli-0.6.9-ahdefj2b.mjs +2 -0
  132. package/dist/chunks/cli-0.6.9-aqma59cn.mjs +2 -0
  133. package/dist/chunks/cli-0.6.9-az6jyck0.mjs +24 -0
  134. package/dist/chunks/cli-0.6.9-b0y0kf38.mjs +2 -0
  135. package/dist/chunks/cli-0.6.9-bk34v13s.mjs +2 -0
  136. package/dist/chunks/cli-0.6.9-bkvwt4w3.mjs +12 -0
  137. package/dist/chunks/cli-0.6.9-bn2xtan6.mjs +2 -0
  138. package/dist/chunks/cli-0.6.9-cky5efqh.mjs +4 -0
  139. package/dist/chunks/cli-0.6.9-cp5fabjc.mjs +28 -0
  140. package/dist/chunks/cli-0.6.9-csbrfz7b.mjs +2 -0
  141. package/dist/chunks/cli-0.6.9-da750ce8.mjs +2 -0
  142. package/dist/chunks/cli-0.6.9-dhg2zjfr.mjs +2 -0
  143. package/dist/chunks/cli-0.6.9-dvd8t953.mjs +4 -0
  144. package/dist/chunks/cli-0.6.9-ejvhaena.mjs +2 -0
  145. package/dist/chunks/cli-0.6.9-ex3m411t.mjs +2 -0
  146. package/dist/chunks/cli-0.6.9-ey0mcqwk.mjs +2 -0
  147. package/dist/chunks/cli-0.6.9-f8vcjjc6.mjs +2 -0
  148. package/dist/chunks/cli-0.6.9-fc9vqmnf.mjs +2 -0
  149. package/dist/chunks/cli-0.6.9-fd6q2n8f.mjs +5 -0
  150. package/dist/chunks/cli-0.6.9-fepacdf9.mjs +2 -0
  151. package/dist/chunks/cli-0.6.9-fgkzcrmd.mjs +2 -0
  152. package/dist/chunks/cli-0.6.9-fqh9t0h9.mjs +58 -0
  153. package/dist/chunks/cli-0.6.9-fr4y4c0h.mjs +2 -0
  154. package/dist/chunks/cli-0.6.9-frq5etv7.mjs +4 -0
  155. package/dist/chunks/cli-0.6.9-g8vpamhp.mjs +2 -0
  156. package/dist/chunks/cli-0.6.9-gercjmay.mjs +5350 -0
  157. package/dist/chunks/cli-0.6.9-gfqjq2qe.mjs +2 -0
  158. package/dist/chunks/cli-0.6.9-ghdrkvmy.mjs +2 -0
  159. package/dist/chunks/cli-0.6.9-gvkq5xs9.mjs +2 -0
  160. package/dist/chunks/cli-0.6.9-h66ktwkz.mjs +2 -0
  161. package/dist/chunks/cli-0.6.9-h9kchbsc.mjs +6 -0
  162. package/dist/chunks/cli-0.6.9-hk5yv924.mjs +3 -0
  163. package/dist/chunks/cli-0.6.9-hx2vghp7.mjs +50 -0
  164. package/dist/chunks/cli-0.6.9-j94027pe.mjs +2 -0
  165. package/dist/chunks/cli-0.6.9-jfyk8906.mjs +6 -0
  166. package/dist/chunks/cli-0.6.9-jm1v5d99.mjs +2 -0
  167. package/dist/chunks/cli-0.6.9-jvqzvbrh.mjs +2 -0
  168. package/dist/chunks/cli-0.6.9-k0gktpk5.mjs +15 -0
  169. package/dist/chunks/cli-0.6.9-k14bgd9g.mjs +2 -0
  170. package/dist/chunks/cli-0.6.9-k9v9gdzp.mjs +2 -0
  171. package/dist/chunks/cli-0.6.9-kanmrra0.mjs +2 -0
  172. package/dist/chunks/cli-0.6.9-khjkzjgr.mjs +2 -0
  173. package/dist/chunks/cli-0.6.9-knasgz9g.mjs +2 -0
  174. package/dist/chunks/cli-0.6.9-kv2gx7he.mjs +2 -0
  175. package/dist/chunks/cli-0.6.9-kxe1p7p9.mjs +2 -0
  176. package/dist/chunks/cli-0.6.9-m0fs2cnk.mjs +2 -0
  177. package/dist/chunks/cli-0.6.9-m9n8nvmz.mjs +7 -0
  178. package/dist/chunks/cli-0.6.9-mb7kx11j.mjs +2 -0
  179. package/dist/chunks/cli-0.6.9-me596055.mjs +5 -0
  180. package/dist/chunks/cli-0.6.9-mhcym441.mjs +2 -0
  181. package/dist/chunks/cli-0.6.9-mjx2tx8w.mjs +2 -0
  182. package/dist/chunks/cli-0.6.9-mn3sjrek.mjs +2 -0
  183. package/dist/chunks/cli-0.6.9-mn808zcz.mjs +2 -0
  184. package/dist/chunks/cli-0.6.9-n52xxa1k.mjs +3 -0
  185. package/dist/chunks/cli-0.6.9-nahjphjz.mjs +2 -0
  186. package/dist/chunks/cli-0.6.9-njaeg8jw.mjs +4 -0
  187. package/dist/chunks/cli-0.6.9-nm598kmg.mjs +2 -0
  188. package/dist/chunks/cli-0.6.9-ns77j0rb.mjs +2 -0
  189. package/dist/chunks/cli-0.6.9-nyn27tc4.mjs +2 -0
  190. package/dist/chunks/cli-0.6.9-p05qz9pw.mjs +2 -0
  191. package/dist/chunks/cli-0.6.9-p61nt01z.mjs +4 -0
  192. package/dist/chunks/cli-0.6.9-p9sazvks.mjs +2 -0
  193. package/dist/chunks/cli-0.6.9-pc08dfva.mjs +2 -0
  194. package/dist/chunks/cli-0.6.9-pgqqhqcb.mjs +2 -0
  195. package/dist/chunks/cli-0.6.9-prq3ecgt.mjs +2 -0
  196. package/dist/chunks/cli-0.6.9-psmra04s.mjs +2 -0
  197. package/dist/chunks/cli-0.6.9-pxnbcvjk.mjs +2 -0
  198. package/dist/chunks/cli-0.6.9-pyzfty1h.mjs +1 -0
  199. package/dist/chunks/cli-0.6.9-pzdzwxv3.mjs +2 -0
  200. package/dist/chunks/cli-0.6.9-q1k864q5.mjs +24 -0
  201. package/dist/chunks/cli-0.6.9-q1sngnn9.mjs +2 -0
  202. package/dist/chunks/cli-0.6.9-q95j0sxq.mjs +2 -0
  203. package/dist/chunks/cli-0.6.9-qef0vmv4.mjs +2 -0
  204. package/dist/chunks/cli-0.6.9-qfk8bh8k.mjs +20 -0
  205. package/dist/chunks/cli-0.6.9-qq2p34an.mjs +2 -0
  206. package/dist/chunks/cli-0.6.9-qwk9n0r3.mjs +4 -0
  207. package/dist/chunks/cli-0.6.9-r3p8fksb.mjs +2 -0
  208. package/dist/chunks/cli-0.6.9-r46qknk7.mjs +2 -0
  209. package/dist/chunks/cli-0.6.9-r81h8n5p.mjs +2 -0
  210. package/dist/chunks/cli-0.6.9-rcmd16qm.mjs +2 -0
  211. package/dist/chunks/cli-0.6.9-rmmwn2p7.mjs +2 -0
  212. package/dist/chunks/cli-0.6.9-s03y3b3q.mjs +2 -0
  213. package/dist/chunks/cli-0.6.9-s1r1tza8.mjs +133 -0
  214. package/dist/chunks/cli-0.6.9-s2pyty79.mjs +2 -0
  215. package/dist/chunks/cli-0.6.9-s4cwpcyg.mjs +2 -0
  216. package/dist/chunks/cli-0.6.9-sa2fxctp.mjs +2 -0
  217. package/dist/chunks/cli-0.6.9-sd2hp4aq.mjs +2 -0
  218. package/dist/chunks/cli-0.6.9-sg9116zb.mjs +17 -0
  219. package/dist/chunks/cli-0.6.9-sr9jy37c.mjs +3 -0
  220. package/dist/chunks/cli-0.6.9-sx115432.mjs +12 -0
  221. package/dist/chunks/cli-0.6.9-t2yrab6t.mjs +2 -0
  222. package/dist/chunks/cli-0.6.9-tae7g2d9.mjs +2 -0
  223. package/dist/chunks/cli-0.6.9-td7kr6wd.mjs +2 -0
  224. package/dist/chunks/cli-0.6.9-tenfy5s3.mjs +21 -0
  225. package/dist/chunks/cli-0.6.9-tkvj57rn.mjs +2 -0
  226. package/dist/chunks/cli-0.6.9-tn4basxv.mjs +2 -0
  227. package/dist/chunks/cli-0.6.9-tnf75x7v.mjs +2 -0
  228. package/dist/chunks/cli-0.6.9-tt8mt40f.mjs +2 -0
  229. package/dist/chunks/cli-0.6.9-tya05wpq.mjs +2 -0
  230. package/dist/chunks/cli-0.6.9-v3a8d4n8.mjs +12 -0
  231. package/dist/chunks/cli-0.6.9-v3yecwhs.mjs +34 -0
  232. package/dist/chunks/cli-0.6.9-vbzp917y.mjs +3 -0
  233. package/dist/chunks/cli-0.6.9-w56gxnbb.mjs +67 -0
  234. package/dist/chunks/cli-0.6.9-w6ee6p28.mjs +4 -0
  235. package/dist/chunks/cli-0.6.9-wr8a7whz.mjs +2 -0
  236. package/dist/chunks/cli-0.6.9-wrs935pe.mjs +3 -0
  237. package/dist/chunks/cli-0.6.9-x4xhf8vr.mjs +2 -0
  238. package/dist/chunks/cli-0.6.9-x9vbsw98.mjs +2 -0
  239. package/dist/chunks/cli-0.6.9-xd2h9tsn.mjs +2 -0
  240. package/dist/chunks/cli-0.6.9-xdzfwf1n.mjs +2 -0
  241. package/dist/chunks/cli-0.6.9-xpvddrex.mjs +4 -0
  242. package/dist/chunks/cli-0.6.9-y0wg39nk.mjs +2 -0
  243. package/dist/chunks/cli-0.6.9-yh3sfvca.mjs +2 -0
  244. package/dist/chunks/cli-0.6.9-yhp352r8.mjs +193 -0
  245. package/dist/chunks/cli-0.6.9-ymxkw0j9.mjs +5 -0
  246. package/dist/chunks/cli-0.6.9-ynh6kjv5.mjs +2 -0
  247. package/dist/chunks/cli-0.6.9-ytpaqmsk.mjs +45 -0
  248. package/dist/chunks/cli-0.6.9-z2400j8e.mjs +2 -0
  249. package/dist/chunks/cli-0.6.9-z3wh6pmj.mjs +4 -0
  250. package/dist/chunks/cli-0.6.9-z6aaad8t.mjs +10 -0
  251. package/dist/chunks/cli-0.6.9-zsnw0941.mjs +39 -0
  252. package/dist/chunks/cli-0.6.9-zzzn3e8b.mjs +16 -0
  253. package/dist/chunks/client-0.6.9-cz438b8v.mjs +1 -0
  254. package/dist/chunks/color-0.6.9-vdsgnwjj.mjs +1 -0
  255. package/dist/chunks/compact-0.6.9-gp0w7v9s.mjs +3 -0
  256. package/dist/chunks/config-0.6.9-f50cq2by.mjs +1 -0
  257. package/dist/chunks/config-0.6.9-zezbmxp9.mjs +1 -0
  258. package/dist/chunks/constants-0.6.9-d7fjn6ym.mjs +1 -0
  259. package/dist/chunks/context-0.6.9-vs4wf3qj.mjs +1 -0
  260. package/dist/chunks/context-noninteractive-0.6.9-3v8697je.mjs +1 -0
  261. package/dist/chunks/conversation-0.6.9-sq5hwdze.mjs +1 -0
  262. package/dist/chunks/copilotHeaders-0.6.9-kf7a254d.mjs +1 -0
  263. package/dist/chunks/copy-0.6.9-qfs2e58z.mjs +9 -0
  264. package/dist/chunks/cost-0.6.9-w97qsa6d.mjs +1 -0
  265. package/dist/chunks/createSSHSession-0.6.9-9r9vyh4c.mjs +1 -0
  266. package/dist/chunks/createSession-0.6.9-w8bj9hkr.mjs +1 -0
  267. package/dist/chunks/debug-0.6.9-p5c3pfsj.mjs +1 -0
  268. package/dist/chunks/defaultActionDeps-0.6.9-g6wka3f7.mjs +1367 -0
  269. package/dist/chunks/desktop-0.6.9-szcfghe5.mjs +1 -0
  270. package/dist/chunks/detectRepository-0.6.9-sv4rn6e9.mjs +1 -0
  271. package/dist/chunks/detection-0.6.9-avkk26gv.mjs +1 -0
  272. package/dist/chunks/diff-0.6.9-6qtw4swj.mjs +1 -0
  273. package/dist/chunks/doctor-0.6.9-wemp2503.mjs +1 -0
  274. package/dist/chunks/doctorDiagnostic-0.6.9-n4wcbma8.mjs +1 -0
  275. package/dist/chunks/earlyInput-0.6.9-7t2yxx2k.mjs +1 -0
  276. package/dist/chunks/effort-0.6.9-ad6129tk.mjs +10 -0
  277. package/dist/chunks/envLessBridgeConfig-0.6.9-9276szv2.mjs +1 -0
  278. package/dist/chunks/envUtils-0.6.9-ynm3aqgf.mjs +1 -0
  279. package/dist/chunks/environmentSelection-0.6.9-cjwzdh51.mjs +1 -0
  280. package/dist/chunks/environments-0.6.9-s5d4xqep.mjs +1 -0
  281. package/dist/chunks/errors-0.6.9-w9kte9cs.mjs +1 -0
  282. package/dist/chunks/exampleCommands-0.6.9-4056c0dz.mjs +1 -0
  283. package/dist/chunks/exit-0.6.9-j72je7w6.mjs +1 -0
  284. package/dist/chunks/explorer-0.6.9-98k1atn1.mjs +1 -0
  285. package/dist/chunks/export-0.6.9-s9zpgv4f.mjs +2 -0
  286. package/dist/chunks/extra-usage-0.6.9-6nj4st4n.mjs +1 -0
  287. package/dist/chunks/extra-usage-noninteractive-0.6.9-nwh6dbn1.mjs +1 -0
  288. package/dist/chunks/fast-0.6.9-r5349jvd.mjs +1 -0
  289. package/dist/chunks/feedback-0.6.9-ssn1fmcb.mjs +14 -0
  290. package/dist/chunks/firstPartyEventLogger-0.6.9-pm4x6st7.mjs +1 -0
  291. package/dist/chunks/git-0.6.9-y91x52y1.mjs +1 -0
  292. package/dist/chunks/githubModelsCredentials-0.6.9-kfr0nk73.mjs +1 -0
  293. package/dist/chunks/goal-0.6.9-3gwvk3bv.mjs +4 -0
  294. package/dist/chunks/grove-0.6.9-wmv3gysg.mjs +1 -0
  295. package/dist/chunks/growthbook-0.6.9-7ajmx6eh.mjs +1 -0
  296. package/dist/chunks/headless-0.6.9-6ab7stx4.mjs +2 -0
  297. package/dist/chunks/heapdump-0.6.9-1kx1h3ba.mjs +6 -0
  298. package/dist/chunks/help-0.6.9-rf486d17.mjs +1 -0
  299. package/dist/chunks/hookChains-0.6.9-pxna9psh.mjs +3 -0
  300. package/dist/chunks/hooks-0.6.9-wav1pakb.mjs +1 -0
  301. package/dist/chunks/hooks-0.6.9-zc69g73d.mjs +79 -0
  302. package/dist/chunks/ide-0.6.9-kgqwyzh1.mjs +3 -0
  303. package/dist/chunks/image-processor-napi-0.6.9-pa1ny79r.mjs +1 -0
  304. package/dist/chunks/inboundAttachments-0.6.9-jjfdegyr.mjs +1 -0
  305. package/dist/chunks/index-0.6.9-0nqhy7sy.mjs +1 -0
  306. package/dist/chunks/index-0.6.9-1bq0hpw2.mjs +1 -0
  307. package/dist/chunks/index-0.6.9-2snpdxy3.mjs +1 -0
  308. package/dist/chunks/index-0.6.9-5k23gfe9.mjs +1 -0
  309. package/dist/chunks/index-0.6.9-619t4kvv.mjs +9 -0
  310. package/dist/chunks/index-0.6.9-8kfhzkpy.mjs +1 -0
  311. package/dist/chunks/index-0.6.9-902sjqyc.mjs +9 -0
  312. package/dist/chunks/index-0.6.9-a2ssd4wq.mjs +30 -0
  313. package/dist/chunks/index-0.6.9-aqfgsev2.mjs +1 -0
  314. package/dist/chunks/index-0.6.9-arpthr5q.mjs +2 -0
  315. package/dist/chunks/index-0.6.9-bngr20xg.mjs +2 -0
  316. package/dist/chunks/index-0.6.9-ck4qgvty.mjs +1 -0
  317. package/dist/chunks/index-0.6.9-d2vjtgqs.mjs +1 -0
  318. package/dist/chunks/index-0.6.9-e3szhjja.mjs +1 -0
  319. package/dist/chunks/index-0.6.9-efqgg2fb.mjs +1 -0
  320. package/dist/chunks/index-0.6.9-ewht5a34.mjs +5 -0
  321. package/dist/chunks/index-0.6.9-g43bx48w.mjs +1 -0
  322. package/dist/chunks/index-0.6.9-jq16aq9c.mjs +1 -0
  323. package/dist/chunks/index-0.6.9-n4d1shjt.mjs +1 -0
  324. package/dist/chunks/index-0.6.9-r63gj39n.mjs +1 -0
  325. package/dist/chunks/index-0.6.9-rry8n9vj.mjs +1 -0
  326. package/dist/chunks/index-0.6.9-v2xp35sf.mjs +1 -0
  327. package/dist/chunks/index-0.6.9-vev4s22g.mjs +1 -0
  328. package/dist/chunks/init-0.6.9-h8jwxt6h.mjs +1 -0
  329. package/dist/chunks/initReplBridge-0.6.9-c10qt3gn.mjs +1 -0
  330. package/dist/chunks/ink-0.6.9-49s4s9jc.mjs +1 -0
  331. package/dist/chunks/insights-0.6.9-sag6cjh3.mjs +870 -0
  332. package/dist/chunks/install-0.6.9-s1h2dkak.mjs +1 -0
  333. package/dist/chunks/install-github-app-0.6.9-rgv15r8t.mjs +149 -0
  334. package/dist/chunks/install-slack-app-0.6.9-cpn9fgkg.mjs +1 -0
  335. package/dist/chunks/instrumentation-0.6.9-265vgh29.mjs +1 -0
  336. package/dist/chunks/interactiveHelpers-0.6.9-5p2xm7b4.mjs +1 -0
  337. package/dist/chunks/keybindings-0.6.9-8755gwzd.mjs +2 -0
  338. package/dist/chunks/knowledge-0.6.9-vv9d2yhp.mjs +2 -0
  339. package/dist/chunks/latestVersionCache-0.6.9-acef14hs.mjs +1 -0
  340. package/dist/chunks/loadAgentsDir-0.6.9-s5zmmsmj.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.9-e65pc8g0.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.6.9-k2ddma7b.mjs +1 -0
  343. package/dist/chunks/log-0.6.9-bb1wwfr9.mjs +1 -0
  344. package/dist/chunks/main-0.6.9-xp3yb12z.mjs +1 -0
  345. package/dist/chunks/managedEnv-0.6.9-9vjjgckq.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.9-3k9qwk6b.mjs +17 -0
  347. package/dist/chunks/mcp-0.6.9-74q0zmbx.mjs +1 -0
  348. package/dist/chunks/mcp-0.6.9-hnmfw09m.mjs +4 -0
  349. package/dist/chunks/mcpb-0.6.9-npmecrdw.mjs +1 -0
  350. package/dist/chunks/memory-0.6.9-r9amy13p.mjs +3 -0
  351. package/dist/chunks/model-0.6.9-j7qkjsh4.mjs +1 -0
  352. package/dist/chunks/model-0.6.9-qvbhjt5a.mjs +2 -0
  353. package/dist/chunks/node-0.6.9-7618k0cs.mjs +12 -0
  354. package/dist/chunks/oauth-0.6.9-10e6vje5.mjs +1 -0
  355. package/dist/chunks/openaiShim-0.6.9-pke3rkx3.mjs +14 -0
  356. package/dist/chunks/output-style-0.6.9-5dww84zv.mjs +1 -0
  357. package/dist/chunks/package-FMOR3ELU-0.6.9-tqcy00ry.mjs +1 -0
  358. package/dist/chunks/parseConnectUrl-0.6.9-rzx7fgrs.mjs +1 -0
  359. package/dist/chunks/parser-0.6.9-r5r8db6m.mjs +1 -0
  360. package/dist/chunks/passes-0.6.9-9ntxdmjs.mjs +1 -0
  361. package/dist/chunks/permissions-0.6.9-06k3424m.mjs +1 -0
  362. package/dist/chunks/permissions-0.6.9-qg4repwk.mjs +3 -0
  363. package/dist/chunks/plan-0.6.9-2bgtj9s7.mjs +1 -0
  364. package/dist/chunks/plist-0.6.9-qwz1tx1x.mjs +1 -0
  365. package/dist/chunks/plugin-0.6.9-tptgr2qf.mjs +29 -0
  366. package/dist/chunks/pluginStartupCheck-0.6.9-9dfate68.mjs +1 -0
  367. package/dist/chunks/plugins-0.6.9-qmzrjgkm.mjs +9 -0
  368. package/dist/chunks/preActionHook-0.6.9-kcp5zkcc.mjs +2 -0
  369. package/dist/chunks/print-0.6.9-m3fbd53e.mjs +57 -0
  370. package/dist/chunks/privacy-settings-0.6.9-16gpzrax.mjs +1 -0
  371. package/dist/chunks/process-0.6.9-3e3f5r17.mjs +1 -0
  372. package/dist/chunks/processBashCommand-0.6.9-542d591h.mjs +1 -0
  373. package/dist/chunks/processSlashCommand-0.6.9-esx1dxzr.mjs +9 -0
  374. package/dist/chunks/prompt-0.6.9-r0j2sxeh.mjs +1 -0
  375. package/dist/chunks/prompt-0.6.9-yqs9hbe5.mjs +1 -0
  376. package/dist/chunks/prompts-0.6.9-aejx76by.mjs +1 -0
  377. package/dist/chunks/protocolHandler-0.6.9-6f15y1bc.mjs +13 -0
  378. package/dist/chunks/provider-0.6.9-cq128p4x.mjs +2 -0
  379. package/dist/chunks/providerProfiles-0.6.9-angsmcpe.mjs +1 -0
  380. package/dist/chunks/providerValidation-0.6.9-jvq9j27j.mjs +6 -0
  381. package/dist/chunks/rate-limit-options-0.6.9-bb7szjxd.mjs +1 -0
  382. package/dist/chunks/registerSubcommands-0.6.9-ntgxbjdf.mjs +34 -0
  383. package/dist/chunks/registry-0.6.9-g3jk5jc0.mjs +1 -0
  384. package/dist/chunks/release-notes-0.6.9-za6qss4x.mjs +5 -0
  385. package/dist/chunks/reload-plugins-0.6.9-4kq8n1bm.mjs +2 -0
  386. package/dist/chunks/remote-env-0.6.9-zf6vx3hg.mjs +1 -0
  387. package/dist/chunks/remoteBridgeCore-0.6.9-pz9x9kkp.mjs +1 -0
  388. package/dist/chunks/remoteSession-0.6.9-b0yejcdh.mjs +1 -0
  389. package/dist/chunks/rename-0.6.9-v12x6k3n.mjs +1 -0
  390. package/dist/chunks/replBridgeHandle-0.6.9-5dnpvxp7.mjs +1 -0
  391. package/dist/chunks/replLauncher-0.6.9-b9vwe3a0.mjs +1 -0
  392. package/dist/chunks/resume-0.6.9-bd2pqpzx.mjs +2 -0
  393. package/dist/chunks/rewind-0.6.9-mtghn6v6.mjs +1 -0
  394. package/dist/chunks/rootOptions-0.6.9-kthybc4f.mjs +1 -0
  395. package/dist/chunks/sandbox-adapter-0.6.9-xy35en8q.mjs +1 -0
  396. package/dist/chunks/sandbox-toggle-0.6.9-5xezm83a.mjs +1 -0
  397. package/dist/chunks/session-0.6.9-m7jcvyhf.mjs +2 -0
  398. package/dist/chunks/sessionDiscovery-0.6.9-xtq2azg8.mjs +1 -0
  399. package/dist/chunks/sessionFileAccessHooks-0.6.9-cw7p2vz4.mjs +1 -0
  400. package/dist/chunks/sessionStorage-0.6.9-cf9hvj5p.mjs +1 -0
  401. package/dist/chunks/settings-0.6.9-3yt2knq2.mjs +1 -0
  402. package/dist/chunks/setup-0.6.9-zyhhsegx.mjs +5 -0
  403. package/dist/chunks/sinks-0.6.9-37az99sx.mjs +1 -0
  404. package/dist/chunks/skills-0.6.9-pmayt9xm.mjs +1 -0
  405. package/dist/chunks/startupProfiler-0.6.9-rqf2vjrq.mjs +1 -0
  406. package/dist/chunks/startupUpdateCheck-0.6.9-2n5g00f9.mjs +1 -0
  407. package/dist/chunks/state-0.6.9-6bv4xar6.mjs +1 -0
  408. package/dist/chunks/stats-0.6.9-vm6c7j7g.mjs +6 -0
  409. package/dist/chunks/status-0.6.9-fm5f7dvn.mjs +1 -0
  410. package/dist/chunks/stickers-0.6.9-wqd21rwz.mjs +1 -0
  411. package/dist/chunks/subprocessEnv-0.6.9-42b0wsjg.mjs +1 -0
  412. package/dist/chunks/tasks-0.6.9-f6fah65x.mjs +1 -0
  413. package/dist/chunks/teamHelpers-0.6.9-0azp8kbe.mjs +1 -0
  414. package/dist/chunks/teammateModeSnapshot-0.6.9-1b3b44py.mjs +1 -0
  415. package/dist/chunks/teleport-0.6.9-y0314abd.mjs +1 -0
  416. package/dist/chunks/terminalSetup-0.6.9-wp4j4emr.mjs +1 -0
  417. package/dist/chunks/theme-0.6.9-wd132tma.mjs +1 -0
  418. package/dist/chunks/thinkback-0.6.9-s2hgsb3p.mjs +1 -0
  419. package/dist/chunks/thinkback-play-0.6.9-n9nbpvnr.mjs +1 -0
  420. package/dist/chunks/toolPool-0.6.9-q3tw4r65.mjs +1 -0
  421. package/dist/chunks/toolSearch-0.6.9-d6we1981.mjs +1 -0
  422. package/dist/chunks/tools-0.6.9-a8ce0ts5.mjs +1 -0
  423. package/dist/chunks/trustedDevice-0.6.9-5mvbmmaw.mjs +1 -0
  424. package/dist/chunks/turndown.cjs-0.6.9-spamn9kh.mjs +69 -0
  425. package/dist/chunks/types-0.6.9-9jzm5cwt.mjs +1 -0
  426. package/dist/chunks/ultrareviewCommand-0.6.9-bpefwyej.mjs +4 -0
  427. package/dist/chunks/update-0.6.9-pxbtnmt1.mjs +86 -0
  428. package/dist/chunks/upgrade-0.6.9-1yghety6.mjs +1 -0
  429. package/dist/chunks/upload-0.6.9-g09ng6tg.mjs +7 -0
  430. package/dist/chunks/upstreamproxy-0.6.9-dk2q7qk2.mjs +14 -0
  431. package/dist/chunks/url-handler-napi-0.6.9-rh07p4qq.mjs +1 -0
  432. package/dist/chunks/usage-0.6.9-z5y3f792.mjs +1 -0
  433. package/dist/chunks/util-0.6.9-fzw6284w.mjs +1 -0
  434. package/dist/chunks/utils-0.6.9-0rg7h5a5.mjs +1 -0
  435. package/dist/chunks/vim-0.6.9-pjkbr7kq.mjs +1 -0
  436. package/dist/chunks/watcher-0.6.9-0r6bzvm6.mjs +1 -0
  437. package/dist/chunks/wiki-0.6.9-v7kdrm8t.mjs +132 -0
  438. package/dist/chunks/worktree-0.6.9-ef4xspe2.mjs +1 -0
  439. package/dist/chunks/worktreeModeEnabled-0.6.9-kvm9x26k.mjs +1 -0
  440. package/dist/chunks/wrapper-0.6.9-b63s2yhh.mjs +7 -0
  441. package/dist/claudin-vscode.vsix +0 -0
  442. package/dist/cli.mjs +2 -2
  443. package/package.json +1 -1
  444. package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +0 -1
  445. package/dist/chunks/App-0.6.7-9x70f9jb.mjs +0 -1
  446. package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +0 -1
  447. package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +0 -1
  448. package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +0 -1
  449. package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +0 -1
  450. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +0 -1
  451. package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +0 -1
  452. package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +0 -7
  453. package/dist/chunks/Doctor-0.6.7-smded214.mjs +0 -1
  454. package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +0 -6
  455. package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +0 -1
  456. package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +0 -1
  457. package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +0 -1
  458. package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +0 -1
  459. package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +0 -1
  460. package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +0 -1
  461. package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +0 -1
  462. package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +0 -1
  463. package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +0 -1
  464. package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +0 -1
  465. package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +0 -1
  466. package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +0 -1
  467. package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +0 -1
  468. package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +0 -9
  469. package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +0 -1
  470. package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +0 -1
  471. package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +0 -1
  472. package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +0 -1
  473. package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +0 -110
  474. package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +0 -3
  475. package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +0 -1
  476. package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +0 -1
  477. package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +0 -1
  478. package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +0 -1
  479. package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +0 -1
  480. package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +0 -48
  481. package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +0 -1
  482. package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +0 -1
  483. package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +0 -4
  484. package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +0 -2
  485. package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +0 -1
  486. package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +0 -1
  487. package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +0 -88
  488. package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +0 -1
  489. package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +0 -1
  490. package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +0 -3
  491. package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +0 -1
  492. package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +0 -21
  493. package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +0 -4
  494. package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +0 -1
  495. package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +0 -1
  496. package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +0 -1
  497. package/dist/chunks/clear-0.6.7-b2weanr6.mjs +0 -1
  498. package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +0 -1
  499. package/dist/chunks/cli-0.6.7-09aymh1b.mjs +0 -2
  500. package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +0 -28
  501. package/dist/chunks/cli-0.6.7-0a406bqw.mjs +0 -2
  502. package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +0 -2
  503. package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +0 -2
  504. package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +0 -2
  505. package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +0 -42
  506. package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +0 -2
  507. package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +0 -2
  508. package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +0 -2
  509. package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +0 -2
  510. package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +0 -1
  511. package/dist/chunks/cli-0.6.7-105zxdx5.mjs +0 -2
  512. package/dist/chunks/cli-0.6.7-11a89p5q.mjs +0 -2
  513. package/dist/chunks/cli-0.6.7-15mn3n46.mjs +0 -2
  514. package/dist/chunks/cli-0.6.7-17dafwxd.mjs +0 -2
  515. package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +0 -7
  516. package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +0 -2
  517. package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +0 -12
  518. package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +0 -2
  519. package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +0 -2
  520. package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +0 -2
  521. package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +0 -2
  522. package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +0 -2
  523. package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +0 -2
  524. package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +0 -133
  525. package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +0 -2
  526. package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +0 -5348
  527. package/dist/chunks/cli-0.6.7-30y87jp9.mjs +0 -3
  528. package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +0 -2
  529. package/dist/chunks/cli-0.6.7-37a1n221.mjs +0 -2
  530. package/dist/chunks/cli-0.6.7-393mf77x.mjs +0 -2
  531. package/dist/chunks/cli-0.6.7-3anc14y3.mjs +0 -2
  532. package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +0 -2
  533. package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +0 -2
  534. package/dist/chunks/cli-0.6.7-3w59rctc.mjs +0 -2
  535. package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +0 -2
  536. package/dist/chunks/cli-0.6.7-417g4eq7.mjs +0 -2
  537. package/dist/chunks/cli-0.6.7-4723xt8g.mjs +0 -4
  538. package/dist/chunks/cli-0.6.7-4qezg54y.mjs +0 -2
  539. package/dist/chunks/cli-0.6.7-4qv89taa.mjs +0 -2
  540. package/dist/chunks/cli-0.6.7-4r8s96as.mjs +0 -18
  541. package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +0 -2
  542. package/dist/chunks/cli-0.6.7-4y6eh566.mjs +0 -2
  543. package/dist/chunks/cli-0.6.7-568qkrtn.mjs +0 -2
  544. package/dist/chunks/cli-0.6.7-5jkermx7.mjs +0 -2
  545. package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +0 -2
  546. package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +0 -2
  547. package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +0 -67
  548. package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +0 -2
  549. package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +0 -17
  550. package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +0 -2
  551. package/dist/chunks/cli-0.6.7-7hqt2520.mjs +0 -2
  552. package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +0 -2
  553. package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +0 -4
  554. package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +0 -4
  555. package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +0 -5
  556. package/dist/chunks/cli-0.6.7-895afk0q.mjs +0 -39
  557. package/dist/chunks/cli-0.6.7-8hg68yde.mjs +0 -3
  558. package/dist/chunks/cli-0.6.7-8npy06pd.mjs +0 -2
  559. package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +0 -2
  560. package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +0 -2
  561. package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +0 -2
  562. package/dist/chunks/cli-0.6.7-986a2c9a.mjs +0 -20
  563. package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +0 -2
  564. package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +0 -59
  565. package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +0 -2
  566. package/dist/chunks/cli-0.6.7-a49h84jx.mjs +0 -2
  567. package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +0 -2
  568. package/dist/chunks/cli-0.6.7-ad305tsz.mjs +0 -2
  569. package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +0 -2
  570. package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +0 -4
  571. package/dist/chunks/cli-0.6.7-askr0gdn.mjs +0 -12
  572. package/dist/chunks/cli-0.6.7-axgab18a.mjs +0 -2
  573. package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +0 -50
  574. package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +0 -4
  575. package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +0 -2
  576. package/dist/chunks/cli-0.6.7-bvke740f.mjs +0 -58
  577. package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +0 -45
  578. package/dist/chunks/cli-0.6.7-c9drqby8.mjs +0 -5
  579. package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +0 -2
  580. package/dist/chunks/cli-0.6.7-csw6s95q.mjs +0 -2
  581. package/dist/chunks/cli-0.6.7-cykfmytk.mjs +0 -2
  582. package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +0 -2
  583. package/dist/chunks/cli-0.6.7-d513frqa.mjs +0 -2
  584. package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +0 -2
  585. package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +0 -2
  586. package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +0 -2
  587. package/dist/chunks/cli-0.6.7-e96htnt8.mjs +0 -2
  588. package/dist/chunks/cli-0.6.7-egf9dysz.mjs +0 -2
  589. package/dist/chunks/cli-0.6.7-ej85ys91.mjs +0 -133
  590. package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +0 -25
  591. package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +0 -6
  592. package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +0 -3
  593. package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +0 -2
  594. package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +0 -2
  595. package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +0 -12
  596. package/dist/chunks/cli-0.6.7-g4r471w6.mjs +0 -15
  597. package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +0 -21
  598. package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +0 -2
  599. package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +0 -2
  600. package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +0 -2
  601. package/dist/chunks/cli-0.6.7-hd512c6x.mjs +0 -2
  602. package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +0 -2
  603. package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +0 -2
  604. package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +0 -2
  605. package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +0 -2
  606. package/dist/chunks/cli-0.6.7-jayzyra3.mjs +0 -2
  607. package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +0 -18
  608. package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +0 -3
  609. package/dist/chunks/cli-0.6.7-jvyry09r.mjs +0 -3
  610. package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +0 -3
  611. package/dist/chunks/cli-0.6.7-k69edthm.mjs +0 -2
  612. package/dist/chunks/cli-0.6.7-k7qq705k.mjs +0 -2
  613. package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +0 -17
  614. package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +0 -24
  615. package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +0 -3
  616. package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +0 -2
  617. package/dist/chunks/cli-0.6.7-me667czz.mjs +0 -2
  618. package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +0 -2
  619. package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +0 -2
  620. package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +0 -2
  621. package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +0 -16
  622. package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +0 -34
  623. package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +0 -2
  624. package/dist/chunks/cli-0.6.7-msab4rsa.mjs +0 -3
  625. package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +0 -2
  626. package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +0 -2
  627. package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +0 -3
  628. package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +0 -2
  629. package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +0 -2
  630. package/dist/chunks/cli-0.6.7-nembqgq6.mjs +0 -4
  631. package/dist/chunks/cli-0.6.7-njtz9caz.mjs +0 -2
  632. package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +0 -3
  633. package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +0 -2
  634. package/dist/chunks/cli-0.6.7-nmasp64q.mjs +0 -2
  635. package/dist/chunks/cli-0.6.7-nsaek892.mjs +0 -2
  636. package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +0 -2
  637. package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +0 -3
  638. package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +0 -2
  639. package/dist/chunks/cli-0.6.7-p140ghs7.mjs +0 -4
  640. package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +0 -2
  641. package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +0 -193
  642. package/dist/chunks/cli-0.6.7-p77b3p80.mjs +0 -4
  643. package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +0 -10
  644. package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +0 -6
  645. package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +0 -2
  646. package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +0 -2
  647. package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +0 -2
  648. package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +0 -2
  649. package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +0 -2
  650. package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +0 -2
  651. package/dist/chunks/cli-0.6.7-qkzax44g.mjs +0 -2
  652. package/dist/chunks/cli-0.6.7-qnpad07x.mjs +0 -15
  653. package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +0 -2
  654. package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +0 -9
  655. package/dist/chunks/cli-0.6.7-r2phypw4.mjs +0 -2
  656. package/dist/chunks/cli-0.6.7-r4494gs0.mjs +0 -2
  657. package/dist/chunks/cli-0.6.7-r4njgjve.mjs +0 -2
  658. package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +0 -4
  659. package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +0 -2
  660. package/dist/chunks/cli-0.6.7-rgfh878z.mjs +0 -2
  661. package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +0 -2
  662. package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +0 -2
  663. package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +0 -2
  664. package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +0 -2
  665. package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +0 -2
  666. package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +0 -2
  667. package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +0 -2
  668. package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +0 -2
  669. package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +0 -2
  670. package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +0 -2
  671. package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +0 -2
  672. package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +0 -5
  673. package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +0 -8
  674. package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +0 -2
  675. package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +0 -2
  676. package/dist/chunks/cli-0.6.7-tthw17vc.mjs +0 -6
  677. package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +0 -4
  678. package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +0 -2
  679. package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +0 -6
  680. package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +0 -2
  681. package/dist/chunks/cli-0.6.7-vdks0afp.mjs +0 -3
  682. package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +0 -2
  683. package/dist/chunks/cli-0.6.7-vy64g49j.mjs +0 -2
  684. package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +0 -2
  685. package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +0 -15
  686. package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +0 -2
  687. package/dist/chunks/cli-0.6.7-wyped9p6.mjs +0 -2
  688. package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +0 -2
  689. package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +0 -3
  690. package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +0 -2
  691. package/dist/chunks/cli-0.6.7-ybk07j40.mjs +0 -2
  692. package/dist/chunks/cli-0.6.7-z26mhn5a.mjs +0 -2
  693. package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +0 -2
  694. package/dist/chunks/cli-0.6.7-z7jett9s.mjs +0 -2
  695. package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +0 -24
  696. package/dist/chunks/client-0.6.7-445v9987.mjs +0 -1
  697. package/dist/chunks/color-0.6.7-856m55kg.mjs +0 -1
  698. package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +0 -3
  699. package/dist/chunks/config-0.6.7-8cp9wg00.mjs +0 -1
  700. package/dist/chunks/config-0.6.7-h357gwre.mjs +0 -1
  701. package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +0 -1
  702. package/dist/chunks/context-0.6.7-52mqtjt5.mjs +0 -1
  703. package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +0 -1
  704. package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +0 -1
  705. package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +0 -1
  706. package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +0 -9
  707. package/dist/chunks/cost-0.6.7-mcmacwts.mjs +0 -1
  708. package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +0 -1
  709. package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +0 -1
  710. package/dist/chunks/debug-0.6.7-40mxhr43.mjs +0 -1
  711. package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +0 -1367
  712. package/dist/chunks/desktop-0.6.7-m8hceses.mjs +0 -1
  713. package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +0 -1
  714. package/dist/chunks/detection-0.6.7-796dd7my.mjs +0 -1
  715. package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +0 -1
  716. package/dist/chunks/doctor-0.6.7-69xecv72.mjs +0 -1
  717. package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +0 -1
  718. package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +0 -1
  719. package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +0 -10
  720. package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +0 -1
  721. package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +0 -1
  722. package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +0 -1
  723. package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +0 -1
  724. package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +0 -1
  725. package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +0 -1
  726. package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +0 -1
  727. package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +0 -1
  728. package/dist/chunks/export-0.6.7-nxr4yk69.mjs +0 -2
  729. package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +0 -1
  730. package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +0 -1
  731. package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +0 -1
  732. package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +0 -14
  733. package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +0 -1
  734. package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +0 -1
  735. package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +0 -1
  736. package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +0 -4
  737. package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +0 -1
  738. package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +0 -1
  739. package/dist/chunks/headless-0.6.7-35yksmzv.mjs +0 -2
  740. package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +0 -6
  741. package/dist/chunks/help-0.6.7-xe78z9ep.mjs +0 -1
  742. package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +0 -3
  743. package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +0 -79
  744. package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +0 -1
  745. package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +0 -3
  746. package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +0 -1
  747. package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +0 -1
  748. package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +0 -1
  749. package/dist/chunks/index-0.6.7-1ngjds1q.mjs +0 -30
  750. package/dist/chunks/index-0.6.7-269433vt.mjs +0 -2
  751. package/dist/chunks/index-0.6.7-299hd0kq.mjs +0 -1
  752. package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +0 -9
  753. package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +0 -1
  754. package/dist/chunks/index-0.6.7-938hete3.mjs +0 -1
  755. package/dist/chunks/index-0.6.7-9qxbggwj.mjs +0 -1
  756. package/dist/chunks/index-0.6.7-adw6e99t.mjs +0 -1
  757. package/dist/chunks/index-0.6.7-da5n32m6.mjs +0 -1
  758. package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +0 -1
  759. package/dist/chunks/index-0.6.7-fewh0t9g.mjs +0 -1
  760. package/dist/chunks/index-0.6.7-jyep217e.mjs +0 -1
  761. package/dist/chunks/index-0.6.7-mmh99nq4.mjs +0 -1
  762. package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +0 -2
  763. package/dist/chunks/index-0.6.7-pspakten.mjs +0 -1
  764. package/dist/chunks/index-0.6.7-qy50jasm.mjs +0 -5
  765. package/dist/chunks/index-0.6.7-r7sewgza.mjs +0 -1
  766. package/dist/chunks/index-0.6.7-tet87444.mjs +0 -1
  767. package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +0 -1
  768. package/dist/chunks/index-0.6.7-xhxjqdft.mjs +0 -1
  769. package/dist/chunks/index-0.6.7-yc13tnk8.mjs +0 -1
  770. package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +0 -9
  771. package/dist/chunks/init-0.6.7-9mxee8s9.mjs +0 -1
  772. package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +0 -1
  773. package/dist/chunks/ink-0.6.7-24swqw8m.mjs +0 -1
  774. package/dist/chunks/insights-0.6.7-wf368crb.mjs +0 -870
  775. package/dist/chunks/install-0.6.7-a9dezzjy.mjs +0 -1
  776. package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +0 -149
  777. package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +0 -1
  778. package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +0 -1
  779. package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +0 -1
  780. package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +0 -2
  781. package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +0 -2
  782. package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +0 -1
  783. package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +0 -1
  784. package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +0 -1
  786. package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +0 -1
  787. package/dist/chunks/main-0.6.7-epme77xk.mjs +0 -1
  788. package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +0 -17
  790. package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +0 -4
  791. package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +0 -1
  792. package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +0 -1
  793. package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +0 -3
  794. package/dist/chunks/model-0.6.7-bnf162h5.mjs +0 -2
  795. package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +0 -1
  796. package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +0 -12
  797. package/dist/chunks/oauth-0.6.7-ecry38es.mjs +0 -1
  798. package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +0 -14
  799. package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +0 -1
  800. package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +0 -1
  801. package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +0 -1
  802. package/dist/chunks/parser-0.6.7-dwxttek7.mjs +0 -1
  803. package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +0 -1
  804. package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +0 -3
  805. package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +0 -1
  806. package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +0 -1
  807. package/dist/chunks/plist-0.6.7-vcn459ke.mjs +0 -1
  808. package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +0 -29
  809. package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +0 -1
  810. package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +0 -9
  811. package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +0 -2
  812. package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +0 -57
  813. package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +0 -1
  814. package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +0 -1
  815. package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +0 -1
  816. package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +0 -9
  817. package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +0 -1
  818. package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +0 -1
  819. package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +0 -1
  820. package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +0 -13
  821. package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +0 -2
  822. package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +0 -1
  823. package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +0 -6
  824. package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +0 -1
  825. package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +0 -34
  826. package/dist/chunks/registry-0.6.7-vnf153w2.mjs +0 -1
  827. package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +0 -5
  828. package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +0 -2
  829. package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +0 -1
  830. package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +0 -1
  831. package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +0 -1
  832. package/dist/chunks/rename-0.6.7-9hky49hm.mjs +0 -1
  833. package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +0 -1
  834. package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +0 -1
  835. package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +0 -2
  836. package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +0 -1
  837. package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +0 -1
  838. package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +0 -1
  839. package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +0 -1
  840. package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +0 -2
  841. package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +0 -1
  842. package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +0 -1
  843. package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +0 -1
  844. package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +0 -1
  845. package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +0 -5
  846. package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +0 -1
  847. package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +0 -1
  848. package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +0 -1
  849. package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +0 -1
  850. package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +0 -1
  851. package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +0 -6
  852. package/dist/chunks/status-0.6.7-4dybregh.mjs +0 -1
  853. package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +0 -1
  854. package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +0 -1
  855. package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +0 -1
  856. package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +0 -1
  857. package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +0 -1
  858. package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +0 -1
  859. package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +0 -1
  860. package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +0 -1
  861. package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +0 -1
  862. package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +0 -1
  863. package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +0 -1
  864. package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +0 -1
  865. package/dist/chunks/tools-0.6.7-w23c68c1.mjs +0 -1
  866. package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +0 -1
  867. package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +0 -69
  868. package/dist/chunks/types-0.6.7-q8m8v654.mjs +0 -1
  869. package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +0 -4
  870. package/dist/chunks/update-0.6.7-gwfz54bh.mjs +0 -86
  871. package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +0 -1
  872. package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +0 -7
  873. package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +0 -14
  874. package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +0 -1
  875. package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +0 -1
  876. package/dist/chunks/util-0.6.7-3z6r92wt.mjs +0 -1
  877. package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +0 -1
  878. package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +0 -1
  879. package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +0 -1
  880. package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +0 -132
  881. package/dist/chunks/worktree-0.6.7-214cy52d.mjs +0 -1
  882. package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +0 -1
  883. package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +0 -7
  884. /package/dist/chunks/{cli-0.6.7-nzdwcqxv.mjs → cli-0.6.9-2kd0dsnv.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.7-790sqdfy.mjs → cli-0.6.9-bvsdx3f8.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.7-pgcg3w1c.mjs → cli-0.6.9-jj198dy3.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.7-32sp32ph.mjs → cli-0.6.9-kf28v99d.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.7-zwf5adf9.mjs → cli-0.6.9-r1m7xdaq.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.7-7ggj90ge.mjs → cli-0.6.9-r7fnwtpb.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.7-04v8p8ay.mjs → cli-0.6.9-yt963aje.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{$x as I,Yo as W,Zo as n,ay as P,dy as t}from"./cli-0.6.7-2rxv4h2n.mjs";import{R1 as H,S1 as p}from"./cli-0.6.7-a49h84jx.mjs";import{T1 as C,V1 as i}from"./cli-0.6.7-z7jett9s.mjs";import{B2 as S,G2 as c,S5 as R,Y5 as V,q6 as l,r5 as v}from"./cli-0.6.7-mjkd8p19.mjs";import{Gda as T,Hca as O,Hda as Y,Iba as q,Jba as u,Nda as y,Qda as k,Tda as g,dea as D,jca as E,lea as m,mca as X}from"./cli-0.6.7-p76h2hj4.mjs";import{Qfa as G,Sfa as f,Tfa as $,Ufa as h}from"./cli-0.6.7-6ezmhmp0.mjs";import{Ega as Z,Jga as _,Kga as M}from"./cli-0.6.7-tnrt8ht0.mjs";import{Oha as x,Rha as b}from"./cli-0.6.7-v82zs0dw.mjs";import{$oa as Q,rpa as A}from"./cli-0.6.7-0a04vzzk.mjs";import{Lpa as U}from"./cli-0.6.7-z26mhn5a.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
- export{Yj as gc,r as hc};
@@ -1,2 +0,0 @@
1
- import{Lpa as g}from"./cli-0.6.7-z26mhn5a.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
- export{Bq as mU,d as nU,$J as oU,DJ as pU,GJ as qU};
@@ -1,2 +0,0 @@
1
- import{Nd as j,Od as E}from"./cli-0.6.7-p77b3p80.mjs";import{$J as Z,Oo as W,QJ as X,Ro as v,SJ as Y,bK as w,fK as _,hK as $,mK as f}from"./cli-0.6.7-2rxv4h2n.mjs";import{Hca as A,S$ as Q,daa as T,dea as V,lea as N,vca as S}from"./cli-0.6.7-p76h2hj4.mjs";import{Oha as B,Rha as R}from"./cli-0.6.7-v82zs0dw.mjs";import{gia as L,nia as K}from"./cli-0.6.7-p140ghs7.mjs";import{Lpa as y}from"./cli-0.6.7-z26mhn5a.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:Q(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(S()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){V(q)}})()}var J=null,G=null;var U=y(()=>{E();A();R();K();N();f();w();v();T()});
2
- export{d as jd,P as kd,t as ld,U as md};
@@ -1,2 +0,0 @@
1
- import{DX as u,DZ as a,LY as QQ,MY as uQ,YY as g,_Y as h,eZ as RQ,nZ as jQ,oZ as aQ,sZ as d}from"./cli-0.6.7-9qjmzyph.mjs";import{J1 as S,K1 as k,L1 as f}from"./cli-0.6.7-hsf1v92p.mjs";import{M1 as v}from"./cli-0.6.7-417g4eq7.mjs";import{_1 as n,a2 as t,f2 as YV}from"./cli-0.6.7-8rckbxrq.mjs";import{X5 as $Q,_5 as P,b6 as bQ,q6 as XV}from"./cli-0.6.7-mjkd8p19.mjs";import{Hca as QV,Iba as fQ,Jba as eQ,dea as CQ,jca as mQ,lea as VV,mca as x}from"./cli-0.6.7-p76h2hj4.mjs";import{qea as AQ,rea as sQ}from"./cli-0.6.7-7p1zvk1f.mjs";import{Jga as r,Kga as nQ}from"./cli-0.6.7-tnrt8ht0.mjs";import{Oha as D,Rha as iQ}from"./cli-0.6.7-v82zs0dw.mjs";import{$oa as i,rpa as tQ}from"./cli-0.6.7-0a04vzzk.mjs";import{Hpa as M,Lpa as F}from"./cli-0.6.7-z26mhn5a.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{XQ as nW,YQ as oW,GQ as pW,yQ as qW,l as rW,BV as sW,qQ as tW,LQ as uW,zQ as vW,BQ as wW,MV as xW,y as yW,SV as zW,UQ as AW,TV as BW,OQ as CW,_Q as DW,o as EW,WQ as FW,$V as GW,oQ as HW,s as IW,IQ as JW,pV as KW,xV as LW,KQ as MW,EQ as NW,DQ as OW,oV as PW,rQ as QW,ZX as RW,JX as SW,GX as TW,qX as UW,LX as VW,GV as WW,HX as XW,qV as YW};
@@ -1,5 +0,0 @@
1
- import{lb as U}from"./cli-0.6.7-1jmt8r8f.mjs";import{xs as N,ys as b}from"./cli-0.6.7-2rxv4h2n.mjs";import{AU as F,DU as d,EU as _,FU as M,KU as I}from"./cli-0.6.7-r4494gs0.mjs";import{E6 as x,F6 as H,K6 as v,u6 as B,x6 as T}from"./cli-0.6.7-g3bdwra6.mjs";import{j8 as Z,l8 as P}from"./cli-0.6.7-p76h2hj4.mjs";import{Lga as O,Oga as D}from"./cli-0.6.7-pd4qacrw.mjs";import{Oha as Y,Rha as A,rha as z,wha as S}from"./cli-0.6.7-v82zs0dw.mjs";import{Dia as f,tia as L}from"./cli-0.6.7-d6md6s9z.mjs";import{$oa as y,rpa as i}from"./cli-0.6.7-0a04vzzk.mjs";import{Mpa as k}from"./cli-0.6.7-z26mhn5a.mjs";i();A();P();d();D();b();A();P();f();T();v();I();S();var C=`{"type":"keep_alive"}
2
- `,u=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(u)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:B()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.6.7-h3kjv9nf.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...B()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)O("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)O("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let V=this.refreshHeaders();Object.assign(this.headers,V),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)O("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=z($)+`
3
- `;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=z(J)+`
4
- `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(C),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:V}=$??{};this.postUrl=r(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(j,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:j,failures:q}),V?.(j,q)},send:(j)=>this.postOnce(j)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=F();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
- export{W as _a,n as $a};
@@ -1,8 +0,0 @@
1
- import{Ra as b}from"./cli-0.6.7-pgcg3w1c.mjs";import{$e as zK,ef as dK}from"./cli-0.6.7-30y87jp9.mjs";import{DK as ez,FK as cK,ON as Ez,WI as wz,XN as FK,aA as oz,cA as sz,cJ as MK,dA as fK,eI as hK,fI as mK,mw as Cz,nK as tz,nS as j,oK as pK,pS as uK,pm as rz,rm as bK,so as M,to as vK,tw as xK,vo as iz,zo as SK}from"./cli-0.6.7-2rxv4h2n.mjs";import{lX as Kz,qX as AK,rX as Qz,sX as GK}from"./cli-0.6.7-9qjmzyph.mjs";import{B2 as U,C4 as I,E4 as _z,G2 as O,J4 as k,U4 as nz,Y4 as jK,c6 as Tz,e6 as Mz,g6 as R,q4 as Uz,q6 as xz,r4 as lz,x4 as Dz}from"./cli-0.6.7-mjkd8p19.mjs";import{M6 as G,N6 as _K}from"./cli-0.6.7-tthw17vc.mjs";import{F_ as e,H8 as $z,Hca as L,J8 as TK,J_ as UK,Q8 as cz,Q_ as zz,S_ as DK,b8 as Zz,c8 as RK,dca as gz,dea as V,e9 as dz,hba as q,j8 as T,jba as H,jca as $,l8 as CK,l9 as EK,lba as uz,lea as A,mba as S,mca as W,nba as kz,qba as Jz,sca as Wz,tca as Bz,u_ as t,uca as az,wba as _,z_ as LK}from"./cli-0.6.7-p76h2hj4.mjs";import{Nea as E,Sea as kK}from"./cli-0.6.7-7p1zvk1f.mjs";import{Xfa as pz,Yfa as PK}from"./cli-0.6.7-a8d5a7gy.mjs";import{Lga as Z,Oga as N}from"./cli-0.6.7-pd4qacrw.mjs";import{Aha as o,Eha as BK,uha as r,wha as WK,xha as i}from"./cli-0.6.7-v82zs0dw.mjs";import{Wha as s,Xha as NK}from"./cli-0.6.7-y6pqw2vj.mjs";import{gia as y,iia as n,nia as VK}from"./cli-0.6.7-p140ghs7.mjs";import{Bia as mz,Dia as yK,sia as C,tia as v,via as hz}from"./cli-0.6.7-d6md6s9z.mjs";import{Gma as l,Wla as Sz,_ja as F,cka as JK,eoa as w,gma as fz,nma as a,sla as Iz,tla as bz,ula as Oz,wla as vz}from"./cli-0.6.7-1mvkcg2k.mjs";import{Ipa as wK}from"./cli-0.6.7-z26mhn5a.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
- `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
- `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
- `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
- `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
- `);return[K,Q].filter(Boolean).join(`
7
- `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
- export{ZQ as x,$Q as y,qQ as z,HQ as A,nX as B,rX as C,iX as D,oX as E,sX as F,tX as G,eX as H,zY as I,KY as J,QY as K};
@@ -1,2 +0,0 @@
1
- import{Lpa as M}from"./cli-0.6.7-z26mhn5a.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
- export{W as Bga,Q as Cga,K as Dga,X as Ega,Y as Fga,Z as Gga,y as Hga,G as Iga,h as Jga,w as Kga};
@@ -1,2 +0,0 @@
1
- import{J1 as v,L1 as D}from"./cli-0.6.7-hsf1v92p.mjs";import{Mpa as B}from"./cli-0.6.7-z26mhn5a.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.6.7-9x70f9jb.mjs"),J=z??import("./REPL-0.6.7-q0nc0w32.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
- export{N as Sa,O as Ta};
@@ -1,6 +0,0 @@
1
- import{Lpa as j}from"./cli-0.6.7-z26mhn5a.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
- `:`
3
- `)+z,H=D+1,D=q.indexOf(`
4
- `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
- `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
- export{o as L6,O1 as M6,e as N6};
@@ -1,4 +0,0 @@
1
- import{Gpa as Z}from"./cli-0.6.7-kfm63wm2.mjs";import{Jpa as Y,Mpa as O}from"./cli-0.6.7-z26mhn5a.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
- export{ye as zpa};
@@ -1,2 +0,0 @@
1
- import{_5 as Z,b6 as T,h6 as f,q6 as WB}from"./cli-0.6.7-mjkd8p19.mjs";import{Hca as QB,Y_ as _,Z_ as KB,b8 as O,c8 as BB,mca as A,yca as v}from"./cli-0.6.7-p76h2hj4.mjs";import{Xfa as w,Yfa as JB}from"./cli-0.6.7-a8d5a7gy.mjs";import{Dia as e,tia as F}from"./cli-0.6.7-d6md6s9z.mjs";import{Gja as M,Hja as m,Qia as S,Ria as s,eoa as a,hka as R,uja as I,vja as c}from"./cli-0.6.7-1mvkcg2k.mjs";import{Doa as q,Eoa as t}from"./cli-0.6.7-hsxghzzr.mjs";import{Lpa as K}from"./cli-0.6.7-z26mhn5a.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
2
- export{kB as ZS,r as _S,vB as $S,TB as aT,g as bT,ZB as cT};
@@ -1,6 +0,0 @@
1
- import{Uha as ZX,Xha as y8}from"./cli-0.6.7-y6pqw2vj.mjs";import{hia as r,nia as R8}from"./cli-0.6.7-p140ghs7.mjs";import{Dia as j8,qia as $X,tia as NJ}from"./cli-0.6.7-d6md6s9z.mjs";import{$ia as LQ,Aja as O,Bja as GJ,Eia as dQ,Fia as P6,Kia as qJ,Lia as oX,Oia as eJ,Pia as fX,Qia as fQ,Ria as T6,Sia as $Q,Tia as cX,Wia as JQ,Xia as pX,Yia as g,Zia as oJ,_ia as n,cja as pQ,dja as v6,eoa as sQ,gja as l,hja as wQ,hka as XX,ija as w,jja as kQ,mja as yJ,nja as OX,oja as h,pja as vJ,qja as tJ,rja as hX,sja as hJ,tja as wX,uja as y,vja as OJ,wja as gQ,xja as m6}from"./cli-0.6.7-1mvkcg2k.mjs";import{Doa as V,Eoa as xJ,foa as SJ,goa as CX,loa as cJ,moa as TX,noa as HJ,ooa as J6,roa as L,soa as XJ,xoa as LJ,yoa as zX}from"./cli-0.6.7-hsxghzzr.mjs";import{Kpa as uJ,Lpa as U,Npa as N,Opa as W}from"./cli-0.6.7-z26mhn5a.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
2
- `)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
3
- `);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
4
- `))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
5
- `;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
6
- export{zJ as Pga,BJ as Qga,IJ as Rga,r8 as Sga,CJ as Tga,e as Uga,_J as Vga,m as Wga,JJ as Xga,j as Yga,QJ as Zga,R as _ga,k as $ga,_ as aha,d as bha,$J as cha,lJ as dha,iJ as eha,rJ as fha,b as gha,ZJ as hha,ZQ as iha,YQ as jha,BQ as kha,IQ as lha,RQ as mha,AQ as nha,nQ as oha,lQ as pha,E as qha,KJ as rha,I8 as sha,C8 as tha,F8 as uha,V8 as vha,UJ as wha,JX as xha,H1 as yha,G1 as zha,s as Aha,K1 as Bha,U1 as Cha,N1 as Dha,QX as Eha,g8 as Fha,T as Gha,L1 as Hha,b8 as Iha,GX as Jha,KX as Kha,_1 as Lha,S1 as Mha,O1 as Nha,D8 as Oha,UX as Pha,w1 as Qha,aQ as Rha};
@@ -1,2 +0,0 @@
1
- import{rha as E,sha as F,wha as M}from"./cli-0.6.7-v82zs0dw.mjs";import{$oa as H,rpa as N}from"./cli-0.6.7-0a04vzzk.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 pb,W as qb,X as rb,Y as sb,Z as tb};
@@ -1,3 +0,0 @@
1
- import{DX as t,DZ as o,MX as p,WY as j,XY as s,YY as F,_Y as V}from"./cli-0.6.7-9qjmzyph.mjs";import{J1 as w,K1 as g,L1 as y}from"./cli-0.6.7-hsf1v92p.mjs";import{Y7 as $,Z7 as a,d8 as _,e8 as n}from"./cli-0.6.7-p76h2hj4.mjs";import{Hpa as i,Lpa as v}from"./cli-0.6.7-z26mhn5a.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
- `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as cg,Mq as dg};
@@ -1,2 +0,0 @@
1
- import{nd as Z,od as _,pd as $,sd as O}from"./cli-0.6.7-4qezg54y.mjs";import{Jd as Y,Od as x}from"./cli-0.6.7-p77b3p80.mjs";import{TJ as U,YJ as W,bK as S,cK as X,mK as V}from"./cli-0.6.7-2rxv4h2n.mjs";import{Oha as R,Rha as K}from"./cli-0.6.7-v82zs0dw.mjs";import{gia as Q,nia as C}from"./cli-0.6.7-p140ghs7.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as Ia};
@@ -1,2 +0,0 @@
1
- import{B2 as G,F2 as W,G2 as V,S5 as j,q6 as f,t5 as M}from"./cli-0.6.7-mjkd8p19.mjs";import{Iba as x,Jba as B,M9 as w,N9 as z,Q9 as Y}from"./cli-0.6.7-p76h2hj4.mjs";import{Cga as J,Kga as F}from"./cli-0.6.7-tnrt8ht0.mjs";import{Lpa as Z}from"./cli-0.6.7-z26mhn5a.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
- export{g as sS,p as tS,X as uS,S as vS,y as wS,I as xS,b as yS};
@@ -1,2 +0,0 @@
1
- import{R8 as Y,l9 as x,v8 as X,z8 as k}from"./cli-0.6.7-p76h2hj4.mjs";import{Iea as $}from"./cli-0.6.7-7p1zvk1f.mjs";import{Lpa as Z}from"./cli-0.6.7-z26mhn5a.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
- export{H as Hb,M as Ib};
@@ -1,15 +0,0 @@
1
- import{Jpa as T,Lpa as J5,Mpa as M}from"./cli-0.6.7-z26mhn5a.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
- ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
- Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
- Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
- The chosen QR Code version cannot contain this amount of data.
6
- Minimum version required to store current data is: `+F+`.
7
- `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
- `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
- `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
- `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
- `}if(U+=R+`
12
- `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
- `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
- `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
- export{T5 as De,X5 as Ee};
@@ -1,2 +0,0 @@
1
- import{Kpa as Q,Lpa as U}from"./cli-0.6.7-z26mhn5a.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
- export{K as spa,w as tpa,L as upa};
@@ -1,2 +0,0 @@
1
- import{Q1 as K,S1 as Z}from"./cli-0.6.7-a49h84jx.mjs";import{T1 as J,V1 as Y}from"./cli-0.6.7-z7jett9s.mjs";import{S5 as D,X5 as F,Y5 as G,_2 as B,d3 as W,q6 as X}from"./cli-0.6.7-mjkd8p19.mjs";import{Jga as y,Kga as Q}from"./cli-0.6.7-tnrt8ht0.mjs";import{$oa as z,rpa as V}from"./cli-0.6.7-0a04vzzk.mjs";import{Lpa as N}from"./cli-0.6.7-z26mhn5a.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 Bi,_ as Ci};