@claudiolabs/claudin 0.5.7 → 0.5.8

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 (842) hide show
  1. package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +1 -0
  2. package/dist/chunks/App-0.5.8-s4939y9q.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +1 -0
  29. package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +3 -0
  30. package/dist/chunks/agents-0.5.8-qg1s69va.mjs +110 -0
  31. package/dist/chunks/api-0.5.8-pcde65dc.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +1 -0
  34. package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +1 -0
  35. package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +1 -0
  39. package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +1 -0
  41. package/dist/chunks/btw-0.5.8-0yftty6m.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +4 -0
  46. package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +1 -0
  49. package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +1 -0
  51. package/dist/chunks/cli-0.5.8-01yjahnz.mjs +2 -0
  52. package/dist/chunks/cli-0.5.8-07dyymev.mjs +2 -0
  53. package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +2 -0
  54. package/dist/chunks/cli-0.5.8-0bys4xae.mjs +2 -0
  55. package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +2 -0
  56. package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +2 -0
  57. package/dist/chunks/cli-0.5.8-0hybhk72.mjs +2 -0
  58. package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +2 -0
  59. package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +2 -0
  60. package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +2 -0
  61. package/dist/chunks/cli-0.5.8-1heha1zs.mjs +2 -0
  62. package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +2 -0
  63. package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +2 -0
  64. package/dist/chunks/cli-0.5.8-221e7v67.mjs +2 -0
  65. package/dist/chunks/cli-0.5.8-23ep6z70.mjs +2 -0
  66. package/dist/chunks/cli-0.5.8-2bq72da9.mjs +2 -0
  67. package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +2 -0
  68. package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +2 -0
  69. package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +2 -0
  70. package/dist/chunks/cli-0.5.8-396k3ymm.mjs +25 -0
  71. package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +58 -0
  72. package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +2 -0
  73. package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +2 -0
  74. package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +2 -0
  75. package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +2 -0
  76. package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +2 -0
  77. package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +2 -0
  78. package/dist/chunks/cli-0.5.8-402vctdy.mjs +2 -0
  79. package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +2 -0
  80. package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +5286 -0
  81. package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +9 -0
  82. package/dist/chunks/cli-0.5.8-4mn881k7.mjs +2 -0
  83. package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +2 -0
  84. package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +6 -0
  85. package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +8 -0
  86. package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +2 -0
  87. package/dist/chunks/cli-0.5.8-510vqc09.mjs +4 -0
  88. package/dist/chunks/cli-0.5.8-57qan5v8.mjs +2 -0
  89. package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +2 -0
  90. package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +2 -0
  91. package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +2 -0
  92. package/dist/chunks/cli-0.5.8-5h92528m.mjs +4 -0
  93. package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +2 -0
  94. package/dist/chunks/cli-0.5.8-60e57smp.mjs +2 -0
  95. package/dist/chunks/cli-0.5.8-665mfjfq.mjs +5 -0
  96. package/dist/chunks/cli-0.5.8-69frkjjq.mjs +2 -0
  97. package/dist/chunks/cli-0.5.8-69swpyae.mjs +2 -0
  98. package/dist/chunks/cli-0.5.8-6epmns99.mjs +2 -0
  99. package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +3 -0
  100. package/dist/chunks/cli-0.5.8-6t480jt6.mjs +2 -0
  101. package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +2 -0
  102. package/dist/chunks/cli-0.5.8-78y711gq.mjs +7 -0
  103. package/dist/chunks/cli-0.5.8-7fm71y20.mjs +2 -0
  104. package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +3 -0
  105. package/dist/chunks/cli-0.5.8-7teqphwt.mjs +2 -0
  106. package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +2 -0
  107. package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +2 -0
  108. package/dist/chunks/cli-0.5.8-8b40nd32.mjs +3 -0
  109. package/dist/chunks/cli-0.5.8-8c0hade9.mjs +2 -0
  110. package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +2 -0
  111. package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +24 -0
  112. package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +2 -0
  113. package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +4 -0
  114. package/dist/chunks/cli-0.5.8-903jgg2t.mjs +2 -0
  115. package/dist/chunks/cli-0.5.8-959n5v33.mjs +44 -0
  116. package/dist/chunks/cli-0.5.8-96p83b7z.mjs +2 -0
  117. package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +2 -0
  118. package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +2 -0
  119. package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +2 -0
  120. package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +2 -0
  121. package/dist/chunks/cli-0.5.8-a03sqccb.mjs +2 -0
  122. package/dist/chunks/cli-0.5.8-at01jfw3.mjs +2 -0
  123. package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +2 -0
  124. package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +2 -0
  125. package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +2 -0
  126. package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +67 -0
  127. package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +18 -0
  128. package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +2 -0
  129. package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +2 -0
  130. package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +2 -0
  131. package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +12 -0
  132. package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +2 -0
  133. package/dist/chunks/cli-0.5.8-cctz1t07.mjs +2 -0
  134. package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +2 -0
  135. package/dist/chunks/cli-0.5.8-chb0m9py.mjs +17 -0
  136. package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +15 -0
  137. package/dist/chunks/cli-0.5.8-cm551a1y.mjs +2 -0
  138. package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +2 -0
  139. package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +2 -0
  140. package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +2 -0
  141. package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +2 -0
  142. package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +2 -0
  143. package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +39 -0
  144. package/dist/chunks/cli-0.5.8-edf7e65a.mjs +2 -0
  145. package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +133 -0
  146. package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +3 -0
  147. package/dist/chunks/cli-0.5.8-et8r95zv.mjs +15 -0
  148. package/dist/chunks/cli-0.5.8-etf1n11s.mjs +2 -0
  149. package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +3 -0
  150. package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +34 -0
  151. package/dist/chunks/cli-0.5.8-f1znt77k.mjs +2 -0
  152. package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +4 -0
  153. package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +2 -0
  154. package/dist/chunks/cli-0.5.8-fhebd13f.mjs +12 -0
  155. package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +18 -0
  156. package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +4 -0
  157. package/dist/chunks/cli-0.5.8-gf6svxra.mjs +27 -0
  158. package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +2 -0
  159. package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +3 -0
  160. package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +2 -0
  161. package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +21 -0
  162. package/dist/chunks/cli-0.5.8-haddssvq.mjs +17 -0
  163. package/dist/chunks/cli-0.5.8-he3sfaey.mjs +2 -0
  164. package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +2 -0
  165. package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +2 -0
  166. package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +2 -0
  167. package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +2 -0
  168. package/dist/chunks/cli-0.5.8-j77twbsq.mjs +2 -0
  169. package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +6 -0
  170. package/dist/chunks/cli-0.5.8-je6yq94p.mjs +2 -0
  171. package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +10 -0
  172. package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +9 -0
  173. package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +2 -0
  174. package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +2 -0
  175. package/dist/chunks/cli-0.5.8-kegk7gdp.mjs +3 -0
  176. package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +2 -0
  177. package/dist/chunks/cli-0.5.8-m3186fr3.mjs +5 -0
  178. package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +2 -0
  179. package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +4 -0
  180. package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +2 -0
  181. package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +3 -0
  182. package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +4 -0
  183. package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +59 -0
  184. package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +2 -0
  185. package/dist/chunks/cli-0.5.8-p596xr80.mjs +2 -0
  186. package/dist/chunks/cli-0.5.8-p72phgsn.mjs +2 -0
  187. package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +2 -0
  188. package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +2 -0
  189. package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +133 -0
  190. package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +2 -0
  191. package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +2 -0
  192. package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +2 -0
  193. package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +2 -0
  194. package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +193 -0
  195. package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +3 -0
  196. package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +2 -0
  197. package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +2 -0
  198. package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +2 -0
  199. package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +2 -0
  200. package/dist/chunks/cli-0.5.8-r88abafr.mjs +15 -0
  201. package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +16 -0
  202. package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +4 -0
  203. package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +2 -0
  204. package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +12 -0
  205. package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +3 -0
  206. package/dist/chunks/cli-0.5.8-s7px34xg.mjs +2 -0
  207. package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +2 -0
  208. package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +2 -0
  209. package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +2 -0
  210. package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +24 -0
  211. package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +4 -0
  212. package/dist/chunks/cli-0.5.8-v274erpp.mjs +2 -0
  213. package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +2 -0
  214. package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +2 -0
  215. package/dist/chunks/cli-0.5.8-vck50j66.mjs +2 -0
  216. package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +45 -0
  217. package/dist/chunks/cli-0.5.8-w36atn94.mjs +2 -0
  218. package/dist/chunks/cli-0.5.8-w75qbypx.mjs +2 -0
  219. package/dist/chunks/cli-0.5.8-w7g735pf.mjs +2 -0
  220. package/dist/chunks/cli-0.5.8-was67jgw.mjs +2 -0
  221. package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +50 -0
  222. package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +2 -0
  223. package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +3 -0
  224. package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +2 -0
  225. package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +2 -0
  226. package/dist/chunks/cli-0.5.8-wtz636rz.mjs +20 -0
  227. package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +2 -0
  228. package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +2 -0
  229. package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +6 -0
  230. package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +2 -0
  231. package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +2 -0
  232. package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +2 -0
  233. package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +2 -0
  234. package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +2 -0
  235. package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +2 -0
  236. package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +3 -0
  237. package/dist/chunks/cli-0.5.8-z447z8t0.mjs +2 -0
  238. package/dist/chunks/cli-0.5.8-zervw1k3.mjs +5 -0
  239. package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +1 -0
  240. package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +2 -0
  241. package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +2 -0
  242. package/dist/chunks/cli-0.5.8-zy590bkh.mjs +2 -0
  243. package/dist/chunks/client-0.5.8-9axd4w58.mjs +1 -0
  244. package/dist/chunks/color-0.5.8-resv1z9m.mjs +1 -0
  245. package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +3 -0
  246. package/dist/chunks/config-0.5.8-1j4xyj57.mjs +1 -0
  247. package/dist/chunks/config-0.5.8-ettscama.mjs +1 -0
  248. package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +1 -0
  249. package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +1 -0
  250. package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +1 -0
  251. package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +9 -0
  252. package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +1 -0
  254. package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +1 -0
  255. package/dist/chunks/debug-0.5.8-c84dbamw.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +1177 -0
  257. package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +1 -0
  259. package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +1 -0
  260. package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +1 -0
  261. package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +1 -0
  264. package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +10 -0
  265. package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +1 -0
  267. package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +1 -0
  268. package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +1 -0
  270. package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +1 -0
  271. package/dist/chunks/export-0.5.8-a8fg7991.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +1 -0
  274. package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +1 -0
  275. package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +1 -0
  277. package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +1 -0
  279. package/dist/chunks/grove-0.5.8-rewcpbks.mjs +1 -0
  280. package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +1 -0
  281. package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +2 -0
  282. package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +6 -0
  283. package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +1 -0
  284. package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +3 -0
  285. package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +1 -0
  286. package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +79 -0
  287. package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +3 -0
  288. package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +1 -0
  289. package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +9 -0
  290. package/dist/chunks/index-0.5.8-26yrjbk0.mjs +1 -0
  291. package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +1 -0
  292. package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +1 -0
  293. package/dist/chunks/index-0.5.8-b4p3af9y.mjs +1 -0
  294. package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +2 -0
  295. package/dist/chunks/index-0.5.8-bk6ejev9.mjs +1 -0
  296. package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +9 -0
  297. package/dist/chunks/index-0.5.8-egkksjaj.mjs +1 -0
  298. package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +1 -0
  299. package/dist/chunks/index-0.5.8-jf20nzsg.mjs +1 -0
  300. package/dist/chunks/index-0.5.8-m6exk6z6.mjs +30 -0
  301. package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +5 -0
  302. package/dist/chunks/index-0.5.8-nt058ay0.mjs +1 -0
  303. package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +10 -0
  304. package/dist/chunks/index-0.5.8-rdk757cq.mjs +1 -0
  305. package/dist/chunks/index-0.5.8-red1reev.mjs +1 -0
  306. package/dist/chunks/index-0.5.8-rehfpmcw.mjs +1 -0
  307. package/dist/chunks/index-0.5.8-s3k17n65.mjs +1 -0
  308. package/dist/chunks/index-0.5.8-xpaaycp7.mjs +1 -0
  309. package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +2 -0
  310. package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +1 -0
  311. package/dist/chunks/init-0.5.8-kmfn7vay.mjs +1 -0
  312. package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +1 -0
  313. package/dist/chunks/ink-0.5.8-y01565nf.mjs +1 -0
  314. package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +870 -0
  315. package/dist/chunks/install-0.5.8-se0j5qte.mjs +1 -0
  316. package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +149 -0
  317. package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +1 -0
  318. package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +1 -0
  319. package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +1 -0
  320. package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +2 -0
  321. package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +2 -0
  322. package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +1 -0
  323. package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +1 -0
  326. package/dist/chunks/log-0.5.8-78h0x7qg.mjs +1 -0
  327. package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +1 -0
  328. package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +1 -0
  329. package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +4 -0
  330. package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +17 -0
  331. package/dist/chunks/mcp-0.5.8-md6hzter.mjs +1 -0
  332. package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +1 -0
  333. package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +3 -0
  334. package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +2 -0
  335. package/dist/chunks/model-0.5.8-aqzt03nd.mjs +1 -0
  336. package/dist/chunks/model-0.5.8-nmcrv393.mjs +2 -0
  337. package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +14 -0
  339. package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +1 -0
  340. package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +1 -0
  342. package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +1 -0
  343. package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +1 -0
  344. package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +3 -0
  345. package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +1 -0
  346. package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +1 -0
  347. package/dist/chunks/plugin-0.5.8-meszp93t.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +1 -0
  349. package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +2 -0
  351. package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +1 -0
  353. package/dist/chunks/process-0.5.8-1yf78q4y.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +9 -0
  356. package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +1 -0
  357. package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +1 -0
  358. package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +13 -0
  360. package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +34 -0
  365. package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +1 -0
  366. package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +2 -0
  368. package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +1 -0
  371. package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +1 -0
  374. package/dist/chunks/resume-0.5.8-373epwyd.mjs +2 -0
  375. package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +1 -0
  379. package/dist/chunks/session-0.5.8-rxft524k.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +1 -0
  383. package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +1 -0
  384. package/dist/chunks/setup-0.5.8-769vnffz.mjs +5 -0
  385. package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +1 -0
  386. package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +1 -0
  389. package/dist/chunks/state-0.5.8-cppqmrbf.mjs +1 -0
  390. package/dist/chunks/stats-0.5.8-zcfm59db.mjs +6 -0
  391. package/dist/chunks/status-0.5.8-5v4y485z.mjs +1 -0
  392. package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +1 -0
  394. package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +1 -0
  397. package/dist/chunks/teleport-0.5.8-650m4rks.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +1 -0
  399. package/dist/chunks/theme-0.5.8-7a06760x.mjs +1 -0
  400. package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +1 -0
  402. package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +1 -0
  404. package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +4 -0
  408. package/dist/chunks/update-0.5.8-a285y5j4.mjs +86 -0
  409. package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +1 -0
  412. package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +1 -0
  413. package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +1 -0
  414. package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +1 -0
  415. package/dist/chunks/vim-0.5.8-pgsav8je.mjs +1 -0
  416. package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +1 -0
  417. package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +132 -0
  418. package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +1 -0
  420. package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -7
  423. package/dist/help-agents.txt +8 -0
  424. package/dist/help-auth.txt +12 -0
  425. package/dist/help-auto-mode.txt +14 -0
  426. package/dist/help-doctor.txt +8 -0
  427. package/dist/help-install.txt +8 -0
  428. package/dist/help-mcp.txt +31 -0
  429. package/dist/help-plugin.txt +20 -0
  430. package/dist/help-plugins.txt +20 -0
  431. package/dist/help-setup-token.txt +6 -0
  432. package/dist/help-update.txt +6 -0
  433. package/dist/help-upgrade.txt +6 -0
  434. package/dist/help.txt +68 -0
  435. package/package.json +4 -1
  436. package/scripts/postinstall-warmup.mjs +70 -0
  437. package/dist/chunks/AgentTool-0.5.7-0krqsszm.mjs +0 -1
  438. package/dist/chunks/App-0.5.7-k8c6xsbz.mjs +0 -1
  439. package/dist/chunks/ApproveApiKey-0.5.7-djmd358f.mjs +0 -1
  440. package/dist/chunks/AssistantSessionChooser-0.5.7-40f5p134.mjs +0 -1
  441. package/dist/chunks/AutoModeOptInDialog-0.5.7-dgpfkf7n.mjs +0 -1
  442. package/dist/chunks/BypassPermissionsModeDialog-0.5.7-m2n3zekg.mjs +0 -1
  443. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.7-8p2b9258.mjs +0 -1
  444. package/dist/chunks/ConsoleOAuthFlow-0.5.7-e11rkgsy.mjs +0 -1
  445. package/dist/chunks/DiffDialog-0.5.7-df3q0dyx.mjs +0 -3
  446. package/dist/chunks/Doctor-0.5.7-996gqph8.mjs +0 -1
  447. package/dist/chunks/Grove-0.5.7-7xphv8qp.mjs +0 -1
  448. package/dist/chunks/ITermBackend-0.5.7-rv5t26my.mjs +0 -1
  449. package/dist/chunks/InvalidConfigDialog-0.5.7-76awdeqe.mjs +0 -1
  450. package/dist/chunks/InvalidSettingsDialog-0.5.7-d59ky2sv.mjs +0 -1
  451. package/dist/chunks/MigrationDialog-0.5.7-nkkcryn5.mjs +0 -1
  452. package/dist/chunks/Onboarding-0.5.7-v3jtvbkn.mjs +0 -1
  453. package/dist/chunks/ProviderManager-0.5.7-92navbez.mjs +0 -1
  454. package/dist/chunks/REPL-0.5.7-6zag11mg.mjs +0 -1
  455. package/dist/chunks/ResumeConversation-0.5.7-hpgm4f1s.mjs +0 -1
  456. package/dist/chunks/SnapshotUpdateDialog-0.5.7-xrverbhp.mjs +0 -1
  457. package/dist/chunks/TeleportProgress-0.5.7-xn5z7dt4.mjs +0 -1
  458. package/dist/chunks/TeleportRepoMismatchDialog-0.5.7-s29rrsak.mjs +0 -1
  459. package/dist/chunks/TeleportResumeWrapper-0.5.7-3r5mn1za.mjs +0 -1
  460. package/dist/chunks/TmuxBackend-0.5.7-k3c0537z.mjs +0 -9
  461. package/dist/chunks/ToolSearchTool-0.5.7-mybq3qz5.mjs +0 -1
  462. package/dist/chunks/TrustDialog-0.5.7-r4dhznyf.mjs +0 -1
  463. package/dist/chunks/activeProvider-0.5.7-8emdm8j8.mjs +0 -1
  464. package/dist/chunks/add-dir-0.5.7-jwaavdc7.mjs +0 -1
  465. package/dist/chunks/agents-0.5.7-e7dajmrs.mjs +0 -110
  466. package/dist/chunks/agents-0.5.7-q2vtj7pt.mjs +0 -3
  467. package/dist/chunks/api-0.5.7-j8bn129y.mjs +0 -1
  468. package/dist/chunks/asciicast-0.5.7-rp1h8swq.mjs +0 -1
  469. package/dist/chunks/assistant-0.5.7-sfk22b3z.mjs +0 -1
  470. package/dist/chunks/auth-0.5.7-ez3n1qpx.mjs +0 -1
  471. package/dist/chunks/auth-0.5.7-khssh83t.mjs +0 -1
  472. package/dist/chunks/autoMode-0.5.7-ezn856pd.mjs +0 -48
  473. package/dist/chunks/autoUpdater-0.5.7-dkw2aw1e.mjs +0 -1
  474. package/dist/chunks/backgroundHousekeeping-0.5.7-9ejvx75r.mjs +0 -1
  475. package/dist/chunks/branch-0.5.7-cjbtbwg1.mjs +0 -4
  476. package/dist/chunks/bridgePointer-0.5.7-5z0vqchx.mjs +0 -1
  477. package/dist/chunks/btw-0.5.7-p3kbd1wf.mjs +0 -1
  478. package/dist/chunks/buddy-0.5.7-pa55rfb4.mjs +0 -3
  479. package/dist/chunks/cacache-0.5.7-anq54jwq.mjs +0 -1
  480. package/dist/chunks/cache-probe-0.5.7-6j5hzxc4.mjs +0 -21
  481. package/dist/chunks/cacheStats-0.5.7-e1byp2n2.mjs +0 -4
  482. package/dist/chunks/caches-0.5.7-w8n6wxaj.mjs +0 -1
  483. package/dist/chunks/claudeDesktop-0.5.7-5kkyx4pz.mjs +0 -1
  484. package/dist/chunks/claudemd-0.5.7-jb7byep9.mjs +0 -1
  485. package/dist/chunks/clear-0.5.7-tkh04z2c.mjs +0 -1
  486. package/dist/chunks/clearTerminal-0.5.7-mbqev32s.mjs +0 -1
  487. package/dist/chunks/cli-0.5.7-023jpnwm.mjs +0 -2
  488. package/dist/chunks/cli-0.5.7-08mn1pmc.mjs +0 -5
  489. package/dist/chunks/cli-0.5.7-0bv1xcbe.mjs +0 -21
  490. package/dist/chunks/cli-0.5.7-0df5m6td.mjs +0 -2
  491. package/dist/chunks/cli-0.5.7-0rvzfmhb.mjs +0 -2
  492. package/dist/chunks/cli-0.5.7-0s7wtvbz.mjs +0 -2
  493. package/dist/chunks/cli-0.5.7-1fmgwk5c.mjs +0 -2
  494. package/dist/chunks/cli-0.5.7-1kmeaqmc.mjs +0 -2
  495. package/dist/chunks/cli-0.5.7-20cz322w.mjs +0 -2
  496. package/dist/chunks/cli-0.5.7-23hg3t0h.mjs +0 -2
  497. package/dist/chunks/cli-0.5.7-258ytmbr.mjs +0 -2
  498. package/dist/chunks/cli-0.5.7-26pwg6gg.mjs +0 -2
  499. package/dist/chunks/cli-0.5.7-2h4rgwc9.mjs +0 -2
  500. package/dist/chunks/cli-0.5.7-2qxsy7jq.mjs +0 -12
  501. package/dist/chunks/cli-0.5.7-2tnvc3ka.mjs +0 -2
  502. package/dist/chunks/cli-0.5.7-2xm61gkr.mjs +0 -5
  503. package/dist/chunks/cli-0.5.7-2ytftsg5.mjs +0 -2
  504. package/dist/chunks/cli-0.5.7-31969syr.mjs +0 -2
  505. package/dist/chunks/cli-0.5.7-31hdc2nc.mjs +0 -2
  506. package/dist/chunks/cli-0.5.7-35yf0b84.mjs +0 -2
  507. package/dist/chunks/cli-0.5.7-3jrq7w6x.mjs +0 -2
  508. package/dist/chunks/cli-0.5.7-3xssm25z.mjs +0 -2
  509. package/dist/chunks/cli-0.5.7-469r2a5r.mjs +0 -193
  510. package/dist/chunks/cli-0.5.7-4eg4pktt.mjs +0 -2
  511. package/dist/chunks/cli-0.5.7-4gmpny6k.mjs +0 -133
  512. package/dist/chunks/cli-0.5.7-4zv4np07.mjs +0 -2
  513. package/dist/chunks/cli-0.5.7-500c5b8m.mjs +0 -4
  514. package/dist/chunks/cli-0.5.7-52mwnwy6.mjs +0 -58
  515. package/dist/chunks/cli-0.5.7-55zn2cct.mjs +0 -4
  516. package/dist/chunks/cli-0.5.7-5736yt36.mjs +0 -2
  517. package/dist/chunks/cli-0.5.7-5aghfr8k.mjs +0 -3
  518. package/dist/chunks/cli-0.5.7-5by4fby4.mjs +0 -2
  519. package/dist/chunks/cli-0.5.7-5e5xfeq6.mjs +0 -2
  520. package/dist/chunks/cli-0.5.7-5jaayymr.mjs +0 -17
  521. package/dist/chunks/cli-0.5.7-5jms2g5g.mjs +0 -2
  522. package/dist/chunks/cli-0.5.7-5kv9dgvn.mjs +0 -2
  523. package/dist/chunks/cli-0.5.7-5mrw857q.mjs +0 -4
  524. package/dist/chunks/cli-0.5.7-5q6tfz39.mjs +0 -2
  525. package/dist/chunks/cli-0.5.7-650e2qk4.mjs +0 -18
  526. package/dist/chunks/cli-0.5.7-67xxeffj.mjs +0 -2
  527. package/dist/chunks/cli-0.5.7-6d26vvaa.mjs +0 -2
  528. package/dist/chunks/cli-0.5.7-6g3w68ks.mjs +0 -2
  529. package/dist/chunks/cli-0.5.7-6gfay8ap.mjs +0 -2
  530. package/dist/chunks/cli-0.5.7-6gkpb0vw.mjs +0 -2
  531. package/dist/chunks/cli-0.5.7-6pssgqdn.mjs +0 -2
  532. package/dist/chunks/cli-0.5.7-6thqe6p4.mjs +0 -3
  533. package/dist/chunks/cli-0.5.7-73er78b7.mjs +0 -15
  534. package/dist/chunks/cli-0.5.7-7a9gq9ff.mjs +0 -2
  535. package/dist/chunks/cli-0.5.7-7hm7dxyp.mjs +0 -2
  536. package/dist/chunks/cli-0.5.7-7k456xwn.mjs +0 -3
  537. package/dist/chunks/cli-0.5.7-7mmyazqh.mjs +0 -34
  538. package/dist/chunks/cli-0.5.7-7rgsmfw7.mjs +0 -3
  539. package/dist/chunks/cli-0.5.7-7wyhqw17.mjs +0 -2
  540. package/dist/chunks/cli-0.5.7-82x8qaxx.mjs +0 -2
  541. package/dist/chunks/cli-0.5.7-89fcvfy0.mjs +0 -2
  542. package/dist/chunks/cli-0.5.7-8ac9d7r6.mjs +0 -2
  543. package/dist/chunks/cli-0.5.7-8ap24w7a.mjs +0 -2
  544. package/dist/chunks/cli-0.5.7-8e61g5bq.mjs +0 -10
  545. package/dist/chunks/cli-0.5.7-8sbq2qed.mjs +0 -2
  546. package/dist/chunks/cli-0.5.7-8sqyymdb.mjs +0 -2
  547. package/dist/chunks/cli-0.5.7-8ychjqct.mjs +0 -16
  548. package/dist/chunks/cli-0.5.7-93eaxn9a.mjs +0 -2
  549. package/dist/chunks/cli-0.5.7-93k1z52y.mjs +0 -2
  550. package/dist/chunks/cli-0.5.7-9acdh8nc.mjs +0 -2
  551. package/dist/chunks/cli-0.5.7-9jck3vts.mjs +0 -15
  552. package/dist/chunks/cli-0.5.7-9rbmn26q.mjs +0 -24
  553. package/dist/chunks/cli-0.5.7-9sysdak3.mjs +0 -2
  554. package/dist/chunks/cli-0.5.7-9ysat94v.mjs +0 -2
  555. package/dist/chunks/cli-0.5.7-9z55nm22.mjs +0 -3
  556. package/dist/chunks/cli-0.5.7-9zwbnq8g.mjs +0 -2
  557. package/dist/chunks/cli-0.5.7-a47hzz3r.mjs +0 -2
  558. package/dist/chunks/cli-0.5.7-aq7a3646.mjs +0 -2
  559. package/dist/chunks/cli-0.5.7-ayjrdmrk.mjs +0 -2
  560. package/dist/chunks/cli-0.5.7-b51h487f.mjs +0 -2
  561. package/dist/chunks/cli-0.5.7-bkptgahs.mjs +0 -4
  562. package/dist/chunks/cli-0.5.7-bnapjxz4.mjs +0 -2
  563. package/dist/chunks/cli-0.5.7-bzrvdrq4.mjs +0 -2
  564. package/dist/chunks/cli-0.5.7-c1mv1399.mjs +0 -2
  565. package/dist/chunks/cli-0.5.7-c9dtw94k.mjs +0 -2
  566. package/dist/chunks/cli-0.5.7-cakvh73p.mjs +0 -2
  567. package/dist/chunks/cli-0.5.7-d19d4v07.mjs +0 -2
  568. package/dist/chunks/cli-0.5.7-d4gtv7f7.mjs +0 -2
  569. package/dist/chunks/cli-0.5.7-de90yre1.mjs +0 -2
  570. package/dist/chunks/cli-0.5.7-dntg9qbj.mjs +0 -133
  571. package/dist/chunks/cli-0.5.7-dp3z7wkh.mjs +0 -2
  572. package/dist/chunks/cli-0.5.7-dr7n1fyv.mjs +0 -20
  573. package/dist/chunks/cli-0.5.7-e8eqdfnf.mjs +0 -2
  574. package/dist/chunks/cli-0.5.7-eer6xagb.mjs +0 -2
  575. package/dist/chunks/cli-0.5.7-esx85d2g.mjs +0 -2
  576. package/dist/chunks/cli-0.5.7-eyemfxtz.mjs +0 -2
  577. package/dist/chunks/cli-0.5.7-fx3gesdm.mjs +0 -2
  578. package/dist/chunks/cli-0.5.7-g2dd5t6j.mjs +0 -2
  579. package/dist/chunks/cli-0.5.7-g4n7dg2d.mjs +0 -9
  580. package/dist/chunks/cli-0.5.7-g7k0r0ea.mjs +0 -5
  581. package/dist/chunks/cli-0.5.7-g8dqk0se.mjs +0 -2
  582. package/dist/chunks/cli-0.5.7-gcnk0vke.mjs +0 -6
  583. package/dist/chunks/cli-0.5.7-gnq8vh0c.mjs +0 -2
  584. package/dist/chunks/cli-0.5.7-gy4csxb5.mjs +0 -2
  585. package/dist/chunks/cli-0.5.7-h9v4tqbs.mjs +0 -24
  586. package/dist/chunks/cli-0.5.7-hdcnw5y4.mjs +0 -2
  587. package/dist/chunks/cli-0.5.7-hhre0h51.mjs +0 -2
  588. package/dist/chunks/cli-0.5.7-hp25yk8y.mjs +0 -2
  589. package/dist/chunks/cli-0.5.7-hq4wbper.mjs +0 -11
  590. package/dist/chunks/cli-0.5.7-hw11qa05.mjs +0 -3
  591. package/dist/chunks/cli-0.5.7-hw3pyj8g.mjs +0 -2
  592. package/dist/chunks/cli-0.5.7-j7h72bgz.mjs +0 -2
  593. package/dist/chunks/cli-0.5.7-j8q5bja8.mjs +0 -2
  594. package/dist/chunks/cli-0.5.7-jf3f8gen.mjs +0 -2
  595. package/dist/chunks/cli-0.5.7-jga8kgpr.mjs +0 -2
  596. package/dist/chunks/cli-0.5.7-jptzskw1.mjs +0 -2
  597. package/dist/chunks/cli-0.5.7-jw2te6th.mjs +0 -2
  598. package/dist/chunks/cli-0.5.7-k11mzgcb.mjs +0 -2
  599. package/dist/chunks/cli-0.5.7-kctf48t4.mjs +0 -7
  600. package/dist/chunks/cli-0.5.7-knkzkqbw.mjs +0 -2
  601. package/dist/chunks/cli-0.5.7-kp9pg4sr.mjs +0 -2
  602. package/dist/chunks/cli-0.5.7-kvazvrra.mjs +0 -2
  603. package/dist/chunks/cli-0.5.7-ky5khwx2.mjs +0 -2
  604. package/dist/chunks/cli-0.5.7-m0841vt9.mjs +0 -2
  605. package/dist/chunks/cli-0.5.7-m4ekdyhj.mjs +0 -2
  606. package/dist/chunks/cli-0.5.7-m4wwfa6q.mjs +0 -2
  607. package/dist/chunks/cli-0.5.7-m5q27x96.mjs +0 -2
  608. package/dist/chunks/cli-0.5.7-m82d23hf.mjs +0 -2
  609. package/dist/chunks/cli-0.5.7-mdcw5fyw.mjs +0 -4
  610. package/dist/chunks/cli-0.5.7-mz4njeb9.mjs +0 -39
  611. package/dist/chunks/cli-0.5.7-mzfr99sc.mjs +0 -67
  612. package/dist/chunks/cli-0.5.7-p381d4sx.mjs +0 -3
  613. package/dist/chunks/cli-0.5.7-p4mv49ab.mjs +0 -25
  614. package/dist/chunks/cli-0.5.7-pse9qff7.mjs +0 -2
  615. package/dist/chunks/cli-0.5.7-pzjz115k.mjs +0 -2
  616. package/dist/chunks/cli-0.5.7-q0pq4367.mjs +0 -9
  617. package/dist/chunks/cli-0.5.7-q2e6xpch.mjs +0 -5281
  618. package/dist/chunks/cli-0.5.7-q6sgd9ng.mjs +0 -12
  619. package/dist/chunks/cli-0.5.7-q8v8naf8.mjs +0 -2
  620. package/dist/chunks/cli-0.5.7-qdcp748z.mjs +0 -2
  621. package/dist/chunks/cli-0.5.7-qdqrgv1q.mjs +0 -2
  622. package/dist/chunks/cli-0.5.7-qk0n5hqa.mjs +0 -9
  623. package/dist/chunks/cli-0.5.7-r4cdt1b9.mjs +0 -50
  624. package/dist/chunks/cli-0.5.7-ra5kv4tw.mjs +0 -2
  625. package/dist/chunks/cli-0.5.7-rb75eq83.mjs +0 -2
  626. package/dist/chunks/cli-0.5.7-rggstqv6.mjs +0 -2
  627. package/dist/chunks/cli-0.5.7-rr1yd8f3.mjs +0 -4
  628. package/dist/chunks/cli-0.5.7-rzts2ke3.mjs +0 -2
  629. package/dist/chunks/cli-0.5.7-s09knvta.mjs +0 -3
  630. package/dist/chunks/cli-0.5.7-s5nd54ga.mjs +0 -3
  631. package/dist/chunks/cli-0.5.7-sb3fjts4.mjs +0 -2
  632. package/dist/chunks/cli-0.5.7-sjd6g3n6.mjs +0 -15
  633. package/dist/chunks/cli-0.5.7-sjx0wm99.mjs +0 -2
  634. package/dist/chunks/cli-0.5.7-skfm51ta.mjs +0 -44
  635. package/dist/chunks/cli-0.5.7-sx7pr75m.mjs +0 -2
  636. package/dist/chunks/cli-0.5.7-t6mtpr04.mjs +0 -2
  637. package/dist/chunks/cli-0.5.7-t8z48kc2.mjs +0 -4
  638. package/dist/chunks/cli-0.5.7-tbga87q3.mjs +0 -2
  639. package/dist/chunks/cli-0.5.7-tc3vm4ra.mjs +0 -2
  640. package/dist/chunks/cli-0.5.7-tgq7dtyz.mjs +0 -2
  641. package/dist/chunks/cli-0.5.7-tpjjm1z2.mjs +0 -45
  642. package/dist/chunks/cli-0.5.7-tqn2ged5.mjs +0 -2
  643. package/dist/chunks/cli-0.5.7-twqt7rxq.mjs +0 -6
  644. package/dist/chunks/cli-0.5.7-vgc7nzef.mjs +0 -2
  645. package/dist/chunks/cli-0.5.7-vk8p3n59.mjs +0 -2
  646. package/dist/chunks/cli-0.5.7-vn5aht50.mjs +0 -2
  647. package/dist/chunks/cli-0.5.7-vvrg78m6.mjs +0 -2
  648. package/dist/chunks/cli-0.5.7-vy4r02pg.mjs +0 -4
  649. package/dist/chunks/cli-0.5.7-vyxaeh82.mjs +0 -2
  650. package/dist/chunks/cli-0.5.7-w024nwsf.mjs +0 -2
  651. package/dist/chunks/cli-0.5.7-w16wj21h.mjs +0 -2
  652. package/dist/chunks/cli-0.5.7-w1bf9y93.mjs +0 -3
  653. package/dist/chunks/cli-0.5.7-w2fb8g6y.mjs +0 -2
  654. package/dist/chunks/cli-0.5.7-w50j12vv.mjs +0 -2
  655. package/dist/chunks/cli-0.5.7-w6nex68w.mjs +0 -2
  656. package/dist/chunks/cli-0.5.7-wz2cbwxt.mjs +0 -4
  657. package/dist/chunks/cli-0.5.7-x0n9mq65.mjs +0 -2
  658. package/dist/chunks/cli-0.5.7-x1azmh1g.mjs +0 -2
  659. package/dist/chunks/cli-0.5.7-x1w96j6d.mjs +0 -59
  660. package/dist/chunks/cli-0.5.7-x7dabprd.mjs +0 -2
  661. package/dist/chunks/cli-0.5.7-x8t1aeey.mjs +0 -2
  662. package/dist/chunks/cli-0.5.7-xepvraxn.mjs +0 -2
  663. package/dist/chunks/cli-0.5.7-xn6deh04.mjs +0 -6
  664. package/dist/chunks/cli-0.5.7-y2vc4xb6.mjs +0 -12
  665. package/dist/chunks/cli-0.5.7-y3pa8ttm.mjs +0 -2
  666. package/dist/chunks/cli-0.5.7-yaywev87.mjs +0 -2
  667. package/dist/chunks/cli-0.5.7-ycj2xr53.mjs +0 -3
  668. package/dist/chunks/cli-0.5.7-yzncgfs4.mjs +0 -18
  669. package/dist/chunks/cli-0.5.7-z1n09m4p.mjs +0 -2
  670. package/dist/chunks/cli-0.5.7-z97pranc.mjs +0 -2
  671. package/dist/chunks/cli-0.5.7-za19q18c.mjs +0 -2
  672. package/dist/chunks/cli-0.5.7-zb8ztx8p.mjs +0 -2
  673. package/dist/chunks/cli-0.5.7-zkw2fx86.mjs +0 -2
  674. package/dist/chunks/client-0.5.7-bqw74z29.mjs +0 -1
  675. package/dist/chunks/color-0.5.7-v1s3bvcj.mjs +0 -1
  676. package/dist/chunks/compact-0.5.7-7kxsprp5.mjs +0 -3
  677. package/dist/chunks/config-0.5.7-e41nnxnm.mjs +0 -1
  678. package/dist/chunks/config-0.5.7-q40ykcbb.mjs +0 -1
  679. package/dist/chunks/context-0.5.7-qvcehmj5.mjs +0 -1
  680. package/dist/chunks/context-noninteractive-0.5.7-02tkje0w.mjs +0 -1
  681. package/dist/chunks/conversation-0.5.7-h7r20gzw.mjs +0 -1
  682. package/dist/chunks/copy-0.5.7-p3xxq9b3.mjs +0 -9
  683. package/dist/chunks/cost-0.5.7-s3rzm0vd.mjs +0 -1
  684. package/dist/chunks/createSSHSession-0.5.7-s9fc5f1h.mjs +0 -1
  685. package/dist/chunks/createSession-0.5.7-4e64teqm.mjs +0 -1
  686. package/dist/chunks/debug-0.5.7-v8bqkmzm.mjs +0 -1
  687. package/dist/chunks/desktop-0.5.7-tna0yskx.mjs +0 -1
  688. package/dist/chunks/detectRepository-0.5.7-3dy7yz89.mjs +0 -1
  689. package/dist/chunks/detection-0.5.7-39zsjy8t.mjs +0 -1
  690. package/dist/chunks/diff-0.5.7-9ywmnxmx.mjs +0 -1
  691. package/dist/chunks/doctor-0.5.7-ty5zxpem.mjs +0 -1
  692. package/dist/chunks/doctorDiagnostic-0.5.7-g458bh9g.mjs +0 -1
  693. package/dist/chunks/earlyInput-0.5.7-x73yj3dn.mjs +0 -1
  694. package/dist/chunks/effort-0.5.7-h76k43fj.mjs +0 -10
  695. package/dist/chunks/envUtils-0.5.7-w1t7akfc.mjs +0 -1
  696. package/dist/chunks/environmentSelection-0.5.7-5dsnr0sv.mjs +0 -1
  697. package/dist/chunks/environments-0.5.7-pqh2gnjb.mjs +0 -1
  698. package/dist/chunks/errors-0.5.7-pa0hz043.mjs +0 -1
  699. package/dist/chunks/exampleCommands-0.5.7-3dtjxdad.mjs +0 -1
  700. package/dist/chunks/exit-0.5.7-0wrw77gk.mjs +0 -1
  701. package/dist/chunks/export-0.5.7-zw9rbf4j.mjs +0 -2
  702. package/dist/chunks/extra-usage-0.5.7-rfya84j0.mjs +0 -1
  703. package/dist/chunks/extra-usage-noninteractive-0.5.7-a1b9ndnm.mjs +0 -1
  704. package/dist/chunks/fast-0.5.7-2p6srbep.mjs +0 -1
  705. package/dist/chunks/feedback-0.5.7-181z18rn.mjs +0 -14
  706. package/dist/chunks/firstPartyEventLogger-0.5.7-xndd9dd0.mjs +0 -1
  707. package/dist/chunks/git-0.5.7-7gyptyxn.mjs +0 -1
  708. package/dist/chunks/githubModelsCredentials-0.5.7-9zhn44n6.mjs +0 -1
  709. package/dist/chunks/growthbook-0.5.7-1mynkk8j.mjs +0 -1
  710. package/dist/chunks/headless-0.5.7-9f87m6f5.mjs +0 -2
  711. package/dist/chunks/heapdump-0.5.7-ns6mqawv.mjs +0 -6
  712. package/dist/chunks/help-0.5.7-px56h6fs.mjs +0 -1
  713. package/dist/chunks/hookChains-0.5.7-1a6qvexe.mjs +0 -3
  714. package/dist/chunks/hooks-0.5.7-azm2m6rs.mjs +0 -79
  715. package/dist/chunks/hooks-0.5.7-fyp8e3f5.mjs +0 -1
  716. package/dist/chunks/ide-0.5.7-v9hbn8cp.mjs +0 -3
  717. package/dist/chunks/image-processor-napi-0.5.7-e41p58ef.mjs +0 -1
  718. package/dist/chunks/index-0.5.7-0tncgnn3.mjs +0 -1
  719. package/dist/chunks/index-0.5.7-30mrmtkn.mjs +0 -1
  720. package/dist/chunks/index-0.5.7-62s7cp1b.mjs +0 -1
  721. package/dist/chunks/index-0.5.7-69akvbm4.mjs +0 -1
  722. package/dist/chunks/index-0.5.7-6y6f5cws.mjs +0 -1
  723. package/dist/chunks/index-0.5.7-7w3agvzm.mjs +0 -10
  724. package/dist/chunks/index-0.5.7-8jwymzr6.mjs +0 -1
  725. package/dist/chunks/index-0.5.7-8m53gyr6.mjs +0 -9
  726. package/dist/chunks/index-0.5.7-ct6jw15p.mjs +0 -2
  727. package/dist/chunks/index-0.5.7-dr470b86.mjs +0 -1
  728. package/dist/chunks/index-0.5.7-e4rvp0fn.mjs +0 -1
  729. package/dist/chunks/index-0.5.7-fkw6rn8z.mjs +0 -1
  730. package/dist/chunks/index-0.5.7-h1xjcbtb.mjs +0 -1
  731. package/dist/chunks/index-0.5.7-ma3xmxv3.mjs +0 -2
  732. package/dist/chunks/index-0.5.7-qn7zmh31.mjs +0 -9
  733. package/dist/chunks/index-0.5.7-rd44m0e6.mjs +0 -30
  734. package/dist/chunks/index-0.5.7-te1s21zz.mjs +0 -5
  735. package/dist/chunks/index-0.5.7-vm9zmzmr.mjs +0 -1
  736. package/dist/chunks/index-0.5.7-wpffxvtn.mjs +0 -1
  737. package/dist/chunks/index-0.5.7-wwfn7x53.mjs +0 -1
  738. package/dist/chunks/index-0.5.7-ybcvbcjt.mjs +0 -1
  739. package/dist/chunks/index-0.5.7-yw3tp60c.mjs +0 -1
  740. package/dist/chunks/initReplBridge-0.5.7-xpy8ap8n.mjs +0 -1
  741. package/dist/chunks/ink-0.5.7-dwmx157s.mjs +0 -1
  742. package/dist/chunks/insights-0.5.7-5fpd27dr.mjs +0 -870
  743. package/dist/chunks/install-0.5.7-6sc73ew8.mjs +0 -1
  744. package/dist/chunks/install-github-app-0.5.7-jcyktynf.mjs +0 -149
  745. package/dist/chunks/install-slack-app-0.5.7-mk4a14ww.mjs +0 -1
  746. package/dist/chunks/instrumentation-0.5.7-116w6tf4.mjs +0 -1
  747. package/dist/chunks/interactiveHelpers-0.5.7-zbfkwcsb.mjs +0 -1
  748. package/dist/chunks/keybindings-0.5.7-k2s0bryc.mjs +0 -2
  749. package/dist/chunks/knowledge-0.5.7-55b2ckth.mjs +0 -2
  750. package/dist/chunks/latestVersionCache-0.5.7-k9pyxzrk.mjs +0 -1
  751. package/dist/chunks/loadAgentsDir-0.5.7-9bmbg04z.mjs +0 -1
  752. package/dist/chunks/loadPluginHooks-0.5.7-bcdwwerp.mjs +0 -1
  753. package/dist/chunks/loadPluginHooks-0.5.7-mdt3yvfc.mjs +0 -1
  754. package/dist/chunks/log-0.5.7-wcft0eyv.mjs +0 -1
  755. package/dist/chunks/main-0.5.7-9sxhszx9.mjs +0 -1236
  756. package/dist/chunks/managedEnv-0.5.7-k4gyyt60.mjs +0 -1
  757. package/dist/chunks/mcp-0.5.7-9z74evcf.mjs +0 -1
  758. package/dist/chunks/mcp-0.5.7-djz3mjw4.mjs +0 -4
  759. package/dist/chunks/mcp-0.5.7-n62qd49c.mjs +0 -17
  760. package/dist/chunks/mcpb-0.5.7-bqt73vjr.mjs +0 -1
  761. package/dist/chunks/memory-0.5.7-chxjrvf2.mjs +0 -3
  762. package/dist/chunks/mobile-0.5.7-y0cn32br.mjs +0 -2
  763. package/dist/chunks/model-0.5.7-7mt2xn7w.mjs +0 -1
  764. package/dist/chunks/model-0.5.7-fdhr0cwa.mjs +0 -2
  765. package/dist/chunks/oauth-0.5.7-xf0qbv6v.mjs +0 -1
  766. package/dist/chunks/openaiShim-0.5.7-0cejk3sb.mjs +0 -14
  767. package/dist/chunks/output-style-0.5.7-t5qc5jxe.mjs +0 -1
  768. package/dist/chunks/package-APBHZ5F3-0.5.7-7bp8s9sg.mjs +0 -1
  769. package/dist/chunks/parseConnectUrl-0.5.7-903apk0t.mjs +0 -1
  770. package/dist/chunks/parser-0.5.7-jnq01hth.mjs +0 -1
  771. package/dist/chunks/passes-0.5.7-nk3fgxyh.mjs +0 -1
  772. package/dist/chunks/permissions-0.5.7-q7whkp76.mjs +0 -3
  773. package/dist/chunks/plan-0.5.7-w5hgy3s7.mjs +0 -1
  774. package/dist/chunks/plist-0.5.7-jwz5qjtz.mjs +0 -1
  775. package/dist/chunks/plugin-0.5.7-x7xcey6d.mjs +0 -29
  776. package/dist/chunks/pluginStartupCheck-0.5.7-gy2e0dge.mjs +0 -1
  777. package/dist/chunks/plugins-0.5.7-2ehzph1a.mjs +0 -9
  778. package/dist/chunks/print-0.5.7-mjx6j0dk.mjs +0 -57
  779. package/dist/chunks/privacy-settings-0.5.7-rkmc34t8.mjs +0 -1
  780. package/dist/chunks/process-0.5.7-8c0qwpv6.mjs +0 -1
  781. package/dist/chunks/processBashCommand-0.5.7-czwzjsj9.mjs +0 -1
  782. package/dist/chunks/processSlashCommand-0.5.7-512rz16m.mjs +0 -9
  783. package/dist/chunks/prompt-0.5.7-r8ewyzer.mjs +0 -1
  784. package/dist/chunks/prompt-0.5.7-z98k679g.mjs +0 -1
  785. package/dist/chunks/prompts-0.5.7-g8mh8as5.mjs +0 -1
  786. package/dist/chunks/protocolHandler-0.5.7-p86as7s6.mjs +0 -13
  787. package/dist/chunks/provider-0.5.7-x4t1g0nh.mjs +0 -2
  788. package/dist/chunks/providerProfiles-0.5.7-dz70g8ys.mjs +0 -1
  789. package/dist/chunks/rate-limit-options-0.5.7-n282sweb.mjs +0 -1
  790. package/dist/chunks/registry-0.5.7-h8q8eay6.mjs +0 -1
  791. package/dist/chunks/release-notes-0.5.7-2h20frk0.mjs +0 -5
  792. package/dist/chunks/reload-plugins-0.5.7-z50apk74.mjs +0 -2
  793. package/dist/chunks/remote-env-0.5.7-08abe77m.mjs +0 -1
  794. package/dist/chunks/remoteBridgeCore-0.5.7-jdasqn18.mjs +0 -1
  795. package/dist/chunks/remoteSession-0.5.7-nq05jhdv.mjs +0 -1
  796. package/dist/chunks/rename-0.5.7-812j1w4d.mjs +0 -1
  797. package/dist/chunks/replBridgeHandle-0.5.7-aa3cp3ea.mjs +0 -1
  798. package/dist/chunks/resume-0.5.7-weq0rn3m.mjs +0 -2
  799. package/dist/chunks/rewind-0.5.7-y54y78kx.mjs +0 -1
  800. package/dist/chunks/sandbox-adapter-0.5.7-tb5qenm4.mjs +0 -1
  801. package/dist/chunks/sandbox-toggle-0.5.7-nxcpekeq.mjs +0 -1
  802. package/dist/chunks/session-0.5.7-ky2s0856.mjs +0 -2
  803. package/dist/chunks/sessionDiscovery-0.5.7-wr82xcxs.mjs +0 -1
  804. package/dist/chunks/sessionFileAccessHooks-0.5.7-0j8f4we0.mjs +0 -1
  805. package/dist/chunks/sessionStorage-0.5.7-qghsxmr2.mjs +0 -1
  806. package/dist/chunks/settings-0.5.7-xa4hccmb.mjs +0 -1
  807. package/dist/chunks/setup-0.5.7-s4yfpbyd.mjs +0 -5
  808. package/dist/chunks/sinks-0.5.7-feq030bq.mjs +0 -1
  809. package/dist/chunks/skills-0.5.7-h2r9d209.mjs +0 -1
  810. package/dist/chunks/startupProfiler-0.5.7-f44bsnqn.mjs +0 -1
  811. package/dist/chunks/startupUpdateCheck-0.5.7-7ff14fag.mjs +0 -1
  812. package/dist/chunks/state-0.5.7-cwk8b4cx.mjs +0 -1
  813. package/dist/chunks/stats-0.5.7-wd077xj7.mjs +0 -6
  814. package/dist/chunks/status-0.5.7-5qy7pnk9.mjs +0 -1
  815. package/dist/chunks/stickers-0.5.7-7s145w6d.mjs +0 -1
  816. package/dist/chunks/subprocessEnv-0.5.7-5dv3w3xn.mjs +0 -1
  817. package/dist/chunks/tasks-0.5.7-q79z0h3e.mjs +0 -1
  818. package/dist/chunks/teamHelpers-0.5.7-b8qf5f0d.mjs +0 -1
  819. package/dist/chunks/teammateModeSnapshot-0.5.7-kvmjwag8.mjs +0 -1
  820. package/dist/chunks/teleport-0.5.7-x740q45r.mjs +0 -1
  821. package/dist/chunks/terminalSetup-0.5.7-z8ytqt6q.mjs +0 -1
  822. package/dist/chunks/theme-0.5.7-9asaqpc9.mjs +0 -1
  823. package/dist/chunks/thinkback-0.5.7-6bzqdm8h.mjs +0 -1
  824. package/dist/chunks/thinkback-play-0.5.7-5m54zaez.mjs +0 -1
  825. package/dist/chunks/toolPool-0.5.7-5rd6jp71.mjs +0 -1
  826. package/dist/chunks/toolSearch-0.5.7-wgqasfmq.mjs +0 -1
  827. package/dist/chunks/trustedDevice-0.5.7-5qbzragc.mjs +0 -1
  828. package/dist/chunks/turndown.cjs-0.5.7-3fjybn8j.mjs +0 -69
  829. package/dist/chunks/ultrareviewCommand-0.5.7-98p7mn4r.mjs +0 -4
  830. package/dist/chunks/update-0.5.7-2jgnt5gj.mjs +0 -86
  831. package/dist/chunks/upgrade-0.5.7-1fa84f4g.mjs +0 -1
  832. package/dist/chunks/upstreamproxy-0.5.7-1p7vn612.mjs +0 -14
  833. package/dist/chunks/url-handler-napi-0.5.7-312p1719.mjs +0 -1
  834. package/dist/chunks/usage-0.5.7-qrsabcka.mjs +0 -1
  835. package/dist/chunks/util-0.5.7-tpzcah5j.mjs +0 -1
  836. package/dist/chunks/utils-0.5.7-8a2ekyr5.mjs +0 -1
  837. package/dist/chunks/vim-0.5.7-w4e8vpjf.mjs +0 -1
  838. package/dist/chunks/watcher-0.5.7-cj50b60x.mjs +0 -1
  839. package/dist/chunks/wiki-0.5.7-ccjdtg8v.mjs +0 -132
  840. package/dist/chunks/worktree-0.5.7-g8wrf9zf.mjs +0 -1
  841. package/dist/chunks/worktreeModeEnabled-0.5.7-w4jdaq8p.mjs +0 -1
  842. package/dist/chunks/wrapper-0.5.7-8k82xd0n.mjs +0 -7
@@ -0,0 +1,2 @@
1
+ import{zna as aH}from"./cli-0.5.8-hkfwdsmy.mjs";import{createRequire as cH}from"module";function NC(H,C){if(typeof H=="function")C=H,H={};return this.ondata=C,H}function CJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC],function(K){return XC(fC(K.data[0],K.data[1]))},0,J)}function fC(H,C){return RC(H,C||{},0,0)}function mH(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC],function(K){return XC(yC(K.data[0],VH(K.data[1])))},1,J)}function yC(H,C){return wC(H,{i:2},C&&C.out,C&&C.dictionary)}function NJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,yH,function(){return[qH]}],function(K){return XC(qH(K.data[0],K.data[1]))},2,J)}function qH(H,C){if(!C)C={};var J=GC(),K=H.length;J.p(H);var Q=RC(H,C,$H(C),8),V=Q.length;return XH(Q,C),g(Q,V-8,J.d()),g(Q,V-4,K),Q}function JJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC,vH,function(){return[tC]}],function(K){return XC(tC(K.data[0],K.data[1]))},3,J)}function tC(H,C){var J=YH(H);if(J+8>H.length)B(6,"invalid gzip data");return wC(H.subarray(J,-8),{i:2},C&&C.out||new Z(_H(H)),C&&C.dictionary)}function WJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,kH,function(){return[MH]}],function(K){return XC(MH(K.data[0],K.data[1]))},4,J)}function MH(H,C){if(!C)C={};var J=eC();J.p(H);var K=RC(H,C,C.dictionary?6:2,4);return RH(K,C),g(K,K.length-4,J.d()),K}function QJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC,hH,function(){return[HH]}],function(K){return XC(HH(K.data[0],VH(K.data[1])))},5,J)}function HH(H,C){return wC(H.subarray(NH(H,C&&C.dictionary),-4),{i:2},C&&C.out,C&&C.dictionary)}function FJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return H[0]==31&&H[1]==139&&H[2]==8?JJ(H,C,J):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?mH(H,C,J):QJ(H,C,J)}function qJ(H,C){return H[0]==31&&H[1]==139&&H[2]==8?tC(H,C):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?yC(H,C):HH(H,C)}function $C(H,C){if(C){var J=new Z(H.length);for(var K=0;K<H.length;++K)J[K]=H.charCodeAt(K);return J}if(PH)return PH.encode(H);var Q=H.length,V=new Z(H.length+(H.length>>1)),X=0,Y=function($){V[X++]=$};for(var K=0;K<Q;++K){if(X+5>V.length){var E=new Z(X+8+(Q-K<<1));E.set(V),V=E}var R=H.charCodeAt(K);if(R<128||C)Y(R);else if(R<2048)Y(192|R>>6),Y(128|R&63);else if(R>55295&&R<57344)R=65536+(R&1047552)|H.charCodeAt(++K)&1023,Y(240|R>>18),Y(128|R>>12&63),Y(128|R>>6&63),Y(128|R&63);else Y(224|R>>12),Y(128|R>>6&63),Y(128|R&63)}return d(V,0,X)}function nH(H,C){if(C){var J="";for(var K=0;K<H.length;K+=16384)J+=String.fromCharCode.apply(null,H.subarray(K,K+16384));return J}else if(JH)return JH.decode(H);else{var Q=pH(H),V=Q.s,J=Q.r;if(J.length)B(8);return V}}function GJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K={};EH(H,"",K,C);var Q=Object.keys(K),V=Q.length,X=0,Y=0,E=V,R=Array(V),$=[],N=function(){for(var F=0;F<$.length;++F)$[F]()},W=function(F,P){bC(function(){J(F,P)})};bC(function(){W=J});var T=function(){var F=new Z(Y+22),P=X,I=Y-X;Y=0;for(var G=0;G<E;++G){var O=R[G];try{var x=O.c.length;MC(F,Y,O,O.f,O.u,x);var w=30+O.f.length+VC(O.extra),D=Y+w;F.set(O.c,D),MC(F,X,O,O.f,O.u,x,Y,O.m),X+=16+w+(O.m?O.m.length:0),Y=D+x}catch(M){return W(M,null)}}WH(F,X,R.length,I,P),W(null,F)};if(!V)T();var L=function(F){var P=Q[F],I=K[P],G=I[0],O=I[1],x=GC(),w=G.length;x.p(G);var D=$C(P),M=D.length,q=O.comment,A=q&&$C(q),S=A&&A.length,v=VC(O.extra),m=O.level==0?0:8,y=function(h,k){if(h)N(),W(h,null);else{var z=k.length;if(R[F]=zC(O,{size:w,crc:x.d(),c:k,f:D,m:A,u:M!=P.length||A&&q.length!=S,compression:m}),X+=30+M+v+z,Y+=76+2*(M+v)+(S||0)+z,!--V)T()}};if(M>65535)y(B(11,0,1),null);if(!m)y(null,G);else if(w<160000)try{y(null,fC(G,O))}catch(h){y(h,null)}else $.push(CJ(G,O,y))};for(var j=0;j<E;++j)L(j);return N}function TJ(H,C){if(!C)C={};var J={},K=[];EH(H,"",J,C);var Q=0,V=0;for(var X in J){var Y=J[X],E=Y[0],R=Y[1],$=R.level==0?0:8,N=$C(X),W=N.length,T=R.comment,L=T&&$C(T),j=L&&L.length,F=VC(R.extra);if(W>65535)B(11);var P=$?fC(E,R):E,I=P.length,G=GC();G.p(E),K.push(zC(R,{size:E.length,crc:G.d(),c:P,f:N,m:L,u:W!=X.length||L&&T.length!=j,o:Q,compression:$})),Q+=30+W+F+I,V+=76+2*(W+F)+(j||0)+I}var O=new Z(V+22),x=Q,w=V-Q;for(var D=0;D<K.length;++D){var N=K[D];MC(O,N.o,N,N.f,N.u,N.c.length);var M=30+N.f.length+VC(N.extra);O.set(N.c,N.o+M),MC(O,Q,N,N.f,N.u,N.c.length,N.o,N.m),Q+=16+M+(N.m?N.m.length:0)}return WH(O,Q,K.length,w,x),O}function AJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K=[],Q=function(){for(var F=0;F<K.length;++F)K[F]()},V={},X=function(F,P){bC(function(){J(F,P)})};bC(function(){X=J});var Y=H.length-22;for(;u(H,Y)!=101010256;--Y)if(!Y||H.length-Y>65558)return X(B(13,0,1),null),Q;var E=n(H,Y+8);if(E){var R=E,$=u(H,Y+16),N=$==4294967295||R==65535;if(N){var W=u(H,Y-12);if(N=u(H,W)==101075792,N)R=E=u(H,W+32),$=u(H,W+48)}var T=C&&C.filter,L=function(F){var P=eH(H,$,N),I=P[0],G=P[1],O=P[2],x=P[3],w=P[4],D=P[5],M=bH(H,D);$=w;var q=function(S,v){if(S)Q(),X(S,null);else{if(v)V[x]=v;if(!--E)X(null,V)}};if(!T||T({name:x,size:G,originalSize:O,compression:I}))if(!I)q(null,d(H,M,M+G));else if(I==8){var A=H.subarray(M,M+G);if(O<524288||G>0.8*O)try{q(null,yC(A,{out:new Z(O)}))}catch(S){q(S,null)}else K.push(mH(A,{size:O},q))}else q(B(14,"unknown compression type "+I,1),null);else q(null,null)};for(var j=0;j<R;++j)L(j)}else X(null,{});return Q}function DJ(H,C){var J={},K=H.length-22;for(;u(H,K)!=101010256;--K)if(!K||H.length-K>65558)B(13);var Q=n(H,K+8);if(!Q)return{};var V=u(H,K+16),X=V==4294967295||Q==65535;if(X){var Y=u(H,K-12);if(X=u(H,Y)==101075792,X)Q=u(H,Y+32),V=u(H,Y+48)}var E=C&&C.filter;for(var R=0;R<Q;++R){var $=eH(H,V,X),N=$[0],W=$[1],T=$[2],L=$[3],j=$[4],F=$[5],P=bH(H,F);if(V=j,!E||E({name:L,size:W,originalSize:T,compression:N}))if(!N)J[L]=d(H,P,P+W);else if(N==8)J[L]=yC(H.subarray(P,P+W),{out:new Z(T)});else B(14,"unknown compression type "+N)}return J}var lH,_C,dH=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",iH,Z,o,xC,LC,PC,SC,jH=function(H,C){var J=new o(31);for(var K=0;K<31;++K)J[K]=C+=1<<H[K-1];var Q=new xC(J[30]);for(var K=1;K<30;++K)for(var V=J[K];V<J[K+1];++V)Q[V]=V-J[K]<<5|K;return{b:J,r:Q}},GH,KH,pC,TH,ZH,lC,gC,CC,U,l=function(H,C,J){var K=H.length,Q=0,V=new o(C);for(;Q<K;++Q)if(H[Q])++V[H[Q]-1];var X=new o(C);for(Q=1;Q<C;++Q)X[Q]=X[Q-1]+V[Q-1]<<1;var Y;if(J){Y=new o(1<<C);var E=15-C;for(Q=0;Q<K;++Q)if(H[Q]){var R=Q<<4|H[Q],$=C-H[Q],N=X[H[Q]-1]++<<$;for(var W=N|(1<<$)-1;N<=W;++N)Y[gC[N]>>E]=R}}else{Y=new o(K);for(Q=0;Q<K;++Q)if(H[Q])Y[Q]=gC[X[H[Q]-1]++]>>15-H[Q]}return Y},KC,U,U,U,U,OC,U,UH,IH,AH,DH,uC=function(H){var C=H[0];for(var J=1;J<H.length;++J)if(H[J]>C)C=H[J];return C},c=function(H,C,J){var K=C/8|0;return(H[K]|H[K+1]<<8)>>(C&7)&J},mC=function(H,C){var J=C/8|0;return(H[J]|H[J+1]<<8|H[J+2]<<16)>>(C&7)},jC=function(H){return(H+7)/8|0},d=function(H,C,J){if(C==null||C<0)C=0;if(J==null||J>H.length)J=H.length;return new Z(H.subarray(C,J))},$J,SH,B=function(H,C,J){var K=Error(C||SH[H]);if(K.code=H,Error.captureStackTrace)Error.captureStackTrace(K,B);if(!J)throw K;return K},wC=function(H,C,J,K){var Q=H.length,V=K?K.length:0;if(!Q||C.f&&!C.l)return J||new Z(0);var X=!J,Y=X||C.i!=2,E=C.i;if(X)J=new Z(Q*3);var R=function(AC){var DC=J.length;if(AC>DC){var BC=new Z(Math.max(DC*2,AC));BC.set(J),J=BC}},$=C.f||0,N=C.p||0,W=C.b||0,T=C.l,L=C.d,j=C.m,F=C.n,P=Q*8;do{if(!T){$=c(H,N,1);var I=c(H,N+1,3);if(N+=3,!I){var G=jC(N)+4,O=H[G-4]|H[G-3]<<8,x=G+O;if(x>Q){if(E)B(0);break}if(Y)R(W+O);J.set(H.subarray(G,x),W),C.b=W+=O,C.p=N=x*8,C.f=$;continue}else if(I==1)T=IH,L=DH,j=9,F=5;else if(I==2){var w=c(H,N,31)+257,D=c(H,N+10,15)+4,M=w+c(H,N+5,31)+1;N+=14;var q=new Z(M),A=new Z(19);for(var S=0;S<D;++S)A[SC[S]]=c(H,N+S*3,7);N+=D*3;var v=uC(A),m=(1<<v)-1,y=l(A,v,1);for(var S=0;S<M;){var h=y[c(H,N,m)];N+=h&15;var G=h>>4;if(G<16)q[S++]=G;else{var k=0,z=0;if(G==16)z=3+c(H,N,3),N+=2,k=q[S-1];else if(G==17)z=3+c(H,N,7),N+=3;else if(G==18)z=11+c(H,N,127),N+=7;while(z--)q[S++]=k}}var p=q.subarray(0,w),r=q.subarray(w);j=uC(p),F=uC(r),T=l(p,j,1),L=l(r,F,1)}else B(1);if(N>P){if(E)B(0);break}}if(Y)R(W+131072);var YC=(1<<j)-1,b=(1<<F)-1,JC=N;for(;;JC=N){var k=T[mC(H,N)&YC],e=k>>4;if(N+=k&15,N>P){if(E)B(0);break}if(!k)B(2);if(e<256)J[W++]=e;else if(e==256){JC=N,T=null;break}else{var f=e-254;if(e>264){var S=e-257,_=LC[S];f=c(H,N,(1<<_)-1)+KH[S],N+=_}var t=L[mC(H,N)&b],EC=t>>4;if(!t)B(3);N+=t&15;var r=ZH[EC];if(EC>3){var _=PC[EC];r+=mC(H,N)&(1<<_)-1,N+=_}if(N>P){if(E)B(0);break}if(Y)R(W+131072);var WC=W+f;if(W<r){var vC=V-r,kC=Math.min(r,WC);if(vC+W<0)B(3);for(;W<kC;++W)J[W]=K[vC+W]}for(;W<WC;++W)J[W]=J[W-r]}}if(C.l=T,C.p=JC,C.b=W,C.f=$,T)$=1,C.m=j,C.d=L,C.n=F}while(!$);return W!=J.length&&X?d(J,0,W):J.subarray(0,W)},HC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8},FC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8,H[K+2]|=J>>16},rC=function(H,C){var J=[];for(var K=0;K<H.length;++K)if(H[K])J.push({s:K,f:H[K]});var Q=J.length,V=J.slice();if(!Q)return{t:QC,l:0};if(Q==1){var X=new Z(J[0].s+1);return X[J[0].s]=1,{t:X,l:1}}J.sort(function(x,w){return x.f-w.f}),J.push({s:-1,f:25001});var Y=J[0],E=J[1],R=0,$=1,N=2;J[0]={s:-1,f:Y.f+E.f,l:Y,r:E};while($!=Q-1)Y=J[J[R].f<J[N].f?R++:N++],E=J[R!=$&&J[R].f<J[N].f?R++:N++],J[$++]={s:-1,f:Y.f+E.f,l:Y,r:E};var W=V[0].s;for(var K=1;K<Q;++K)if(V[K].s>W)W=V[K].s;var T=new o(W+1),L=nC(J[$-1],T,0);if(L>C){var K=0,j=0,F=L-C,P=1<<F;V.sort(function(w,D){return T[D.s]-T[w.s]||w.f-D.f});for(;K<Q;++K){var I=V[K].s;if(T[I]>C)j+=P-(1<<L-T[I]),T[I]=C;else break}j>>=F;while(j>0){var G=V[K].s;if(T[G]<C)j-=1<<C-T[G]++-1;else++K}for(;K>=0&&j;--K){var O=V[K].s;if(T[O]==C)--T[O],++j}L=C}return{t:new Z(T),l:L}},nC=function(H,C,J){return H.s==-1?Math.max(nC(H.l,C,J+1),nC(H.r,C,J+1)):C[H.s]=J},dC=function(H){var C=H.length;while(C&&!H[--C]);var J=new o(++C),K=0,Q=H[0],V=1,X=function(E){J[K++]=E};for(var Y=1;Y<=C;++Y)if(H[Y]==Q&&Y!=C)++V;else{if(!Q&&V>2){for(;V>138;V-=138)X(32754);if(V>2)X(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){X(Q),--V;for(;V>6;V-=6)X(8304);if(V>2)X(V-3<<5|8208),V=0}while(V--)X(Q);V=1,Q=H[Y]}return{c:J.subarray(0,K),n:C}},qC=function(H,C){var J=0;for(var K=0;K<C.length;++K)J+=H[K]*C[K];return J},QH=function(H,C,J){var K=J.length,Q=jC(C+2);H[Q]=K&255,H[Q+1]=K>>8,H[Q+2]=H[Q]^255,H[Q+3]=H[Q+1]^255;for(var V=0;V<K;++V)H[Q+V+4]=J[V];return(Q+4+K)*8},iC=function(H,C,J,K,Q,V,X,Y,E,R,$){HC(C,$++,J),++Q[256];var N=rC(Q,15),W=N.t,T=N.l,L=rC(V,15),j=L.t,F=L.l,P=dC(W),I=P.c,G=P.n,O=dC(j),x=O.c,w=O.n,D=new o(19);for(var M=0;M<I.length;++M)++D[I[M]&31];for(var M=0;M<x.length;++M)++D[x[M]&31];var q=rC(D,7),A=q.t,S=q.l,v=19;for(;v>4&&!A[SC[v-1]];--v);var m=R+5<<3,y=qC(Q,KC)+qC(V,OC)+X,h=qC(Q,W)+qC(V,j)+X+14+3*v+qC(D,A)+2*D[16]+3*D[17]+7*D[18];if(E>=0&&m<=y&&m<=h)return QH(C,$,H.subarray(E,E+R));var k,z,p,r;if(HC(C,$,1+(h<y)),$+=2,h<y){k=l(W,T,0),z=W,p=l(j,F,0),r=j;var YC=l(A,S,0);HC(C,$,G-257),HC(C,$+5,w-1),HC(C,$+10,v-4),$+=14;for(var M=0;M<v;++M)HC(C,$+3*M,A[SC[M]]);$+=3*v;var b=[I,x];for(var JC=0;JC<2;++JC){var e=b[JC];for(var M=0;M<e.length;++M){var f=e[M]&31;if(HC(C,$,YC[f]),$+=A[f],f>15)HC(C,$,e[M]>>5&127),$+=e[M]>>12}}}else k=UH,z=KC,p=AH,r=OC;for(var M=0;M<Y;++M){var _=K[M];if(_>255){var f=_>>18&31;if(FC(C,$,k[f+257]),$+=z[f+257],f>7)HC(C,$,_>>23&31),$+=LC[f];var t=_&31;if(FC(C,$,p[t]),$+=r[t],t>3)FC(C,$,_>>5&8191),$+=PC[t]}else FC(C,$,k[_]),$+=z[_]}return FC(C,$,k[256]),$+z[256]},gH,QC,xH=function(H,C,J,K,Q,V){var X=V.z||H.length,Y=new Z(K+X+5*(1+Math.ceil(X/7000))+Q),E=Y.subarray(K,Y.length-Q),R=V.l,$=(V.r||0)&7;if(C){if($)E[0]=V.r>>3;var N=gH[C-1],W=N>>13,T=N&8191,L=(1<<J)-1,j=V.p||new o(32768),F=V.h||new o(L+1),P=Math.ceil(J/3),I=2*P,G=function(aC){return(H[aC]^H[aC+1]<<P^H[aC+2]<<I)&L},O=new xC(25000),x=new o(288),w=new o(32),D=0,M=0,q=V.i||0,A=0,S=V.w||0,v=0;for(;q+2<X;++q){var m=G(q),y=q&32767,h=F[m];if(j[y]=h,F[m]=y,S<=q){var k=X-q;if((D>7000||A>24576)&&(k>423||!R)){$=iC(H,E,0,O,x,w,M,A,v,q-v,$),A=D=M=0,v=q;for(var z=0;z<286;++z)x[z]=0;for(var z=0;z<30;++z)w[z]=0}var p=2,r=0,YC=T,b=y-h&32767;if(k>2&&m==G(q-b)){var JC=Math.min(W,k)-1,e=Math.min(32767,q),f=Math.min(258,k);while(b<=e&&--YC&&y!=h){if(H[q+p]==H[q+p-b]){var _=0;for(;_<f&&H[q+_]==H[q+_-b];++_);if(_>p){if(p=_,r=b,_>JC)break;var t=Math.min(b,_-2),EC=0;for(var z=0;z<t;++z){var WC=q-b+z&32767,vC=j[WC],kC=WC-vC&32767;if(kC>EC)EC=kC,h=WC}}}y=h,h=j[y],b+=y-h&32767}}if(r){O[A++]=268435456|pC[p]<<18|lC[r];var AC=pC[p]&31,DC=lC[r]&31;M+=LC[AC]+PC[DC],++x[257+AC],++w[DC],S=q+p,++D}else O[A++]=H[q],++x[H[q]]}}for(q=Math.max(q,S);q<X;++q)O[A++]=H[q],++x[H[q]];if($=iC(H,E,R,O,x,w,M,A,v,q-v,$),!R)V.r=$&7|E[$/8|0]<<3,$-=7,V.h=F,V.p=j,V.i=q,V.w=S}else{for(var q=V.w||0;q<X+R;q+=65535){var BC=q+65535;if(BC>=X)E[$/8|0]=R,BC=X;$=QH(E,$+1,H.subarray(q,BC))}V.i=X}return d(Y,0,K+jC($)+Q)},wH,GC=function(){var H=-1;return{p:function(C){var J=H;for(var K=0;K<C.length;++K)J=wH[J&255^C[K]]^J>>>8;H=J},d:function(){return~H}}},eC=function(){var H=1,C=0;return{p:function(J){var K=H,Q=C,V=J.length|0;for(var X=0;X!=V;){var Y=Math.min(X+2655,V);for(;X<Y;++X)Q+=K+=J[X];K=(K&65535)+15*(K>>16),Q=(Q&65535)+15*(Q>>16)}H=K,C=Q},d:function(){return H%=65521,C%=65521,(H&255)<<24|(H&65280)<<8|(C&255)<<8|C>>8}}},RC=function(H,C,J,K,Q){if(!Q){if(Q={l:1},C.dictionary){var V=C.dictionary.subarray(-32768),X=new Z(V.length+H.length);X.set(V),X.set(H,V.length),H=X,Q.w=V.length}}return xH(H,C.level==null?6:C.level,C.mem==null?Q.l?Math.ceil(Math.max(8,Math.min(13,Math.log(H.length)))*1.5):20:12+C.mem,J,K,Q)},zC=function(H,C){var J={};for(var K in H)J[K]=H[K];for(var K in C)J[K]=C[K];return J},BH=function(H,C,J){var K=H(),Q=H.toString(),V=Q.slice(Q.indexOf("[")+1,Q.lastIndexOf("]")).replace(/\s+/g,"").split(",");for(var X=0;X<K.length;++X){var Y=K[X],E=V[X];if(typeof Y=="function"){C+=";"+E+"=";var R=Y.toString();if(Y.prototype)if(R.indexOf("[native code]")!=-1){var $=R.indexOf(" ",8)+1;C+=R.slice($,R.indexOf("(",$))}else{C+=R;for(var N in Y.prototype)C+=";"+E+".prototype."+N+"="+Y.prototype[N].toString()}else C+=R}else J[E]=Y}return C},hC,sH=function(H){var C=[];for(var J in H)if(H[J].buffer)C.push((H[J]=new H[J].constructor(H[J])).buffer);return C},zH=function(H,C,J,K){if(!hC[J]){var Q="",V={},X=H.length-1;for(var Y=0;Y<X;++Y)Q=BH(H[Y],Q,V);hC[J]={c:BH(H[X],Q,V),e:V}}var E=zC({},hC[J].e);return iH(hC[J].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+C.toString()+"}",J,E,sH(E),K)},TC=function(){return[Z,o,xC,LC,PC,SC,KH,ZH,IH,DH,gC,SH,l,uC,c,mC,jC,d,B,wC,yC,XC,VH]},ZC=function(){return[Z,o,xC,LC,PC,SC,pC,lC,UH,KC,AH,OC,gC,gH,QC,l,HC,FC,rC,nC,dC,qC,QH,iC,jC,d,xH,RC,fC,XC]},yH=function(){return[XH,$H,g,GC,wH]},vH=function(){return[YH,_H]},kH=function(){return[RH,g,eC]},hH=function(){return[NH]},XC=function(H){return postMessage(H,[H.buffer])},VH=function(H){return H&&{out:H.size&&new Z(H.size),dictionary:H.dictionary}},UC=function(H,C,J,K,Q,V){var X=zH(J,K,Q,function(Y,E){X.terminate(),V(Y,E)});return X.postMessage([H,C],C.consume?[H.buffer]:[]),function(){X.terminate()}},i=function(H){return H.ondata=function(C,J){return postMessage([C,J],[C.buffer])},function(C){if(C.data.length)H.push(C.data[0],C.data[1]),postMessage([C.data[0].length]);else H.flush()}},IC=function(H,C,J,K,Q,V,X){var Y,E=zH(H,K,Q,function(R,$){if(R)E.terminate(),C.ondata.call(C,R);else if(!Array.isArray($))X($);else if($.length==1){if(C.queuedSize-=$[0],C.ondrain)C.ondrain($[0])}else{if($[1])E.terminate();C.ondata.call(C,R,$[0],$[1])}});if(E.postMessage(J),C.queuedSize=0,C.push=function(R,$){if(!C.ondata)B(5);if(Y)C.ondata(B(4,0,1),null,!!$);C.queuedSize+=R.length,E.postMessage([R,Y=$],[R.buffer])},C.terminate=function(){E.terminate()},V)C.flush=function(){E.postMessage([])}},n=function(H,C){return H[C]|H[C+1]<<8},u=function(H,C){return(H[C]|H[C+1]<<8|H[C+2]<<16|H[C+3]<<24)>>>0},cC=function(H,C){return u(H,C)+u(H,C+4)*4294967296},g=function(H,C,J){for(;J;++C)H[C]=J,J>>>=8},XH=function(H,C){var J=C.filename;if(H[0]=31,H[1]=139,H[2]=8,H[8]=C.level<2?4:C.level==9?2:0,H[9]=3,C.mtime!=0)g(H,4,Math.floor(new Date(C.mtime||Date.now())/1000));if(J){H[3]=8;for(var K=0;K<=J.length;++K)H[K+10]=J.charCodeAt(K)}},YH=function(H){if(H[0]!=31||H[1]!=139||H[2]!=8)B(6,"invalid gzip data");var C=H[3],J=10;if(C&4)J+=(H[10]|H[11]<<8)+2;for(var K=(C>>3&1)+(C>>4&1);K>0;K-=!H[J++]);return J+(C&2)},_H=function(H){var C=H.length;return(H[C-4]|H[C-3]<<8|H[C-2]<<16|H[C-1]<<24)>>>0},$H=function(H){return 10+(H.filename?H.filename.length+1:0)},RH=function(H,C){var J=C.level,K=J==0?0:J<6?1:J==9?3:2;if(H[0]=120,H[1]=K<<6|(C.dictionary&&32),H[1]|=31-(H[0]<<8|H[1])%31,C.dictionary){var Q=eC();Q.p(C.dictionary),g(H,2,Q.d())}},NH=function(H,C){if((H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31)B(6,"invalid zlib data");if((H[1]>>5&1)==+!C)B(6,"invalid zlib data: "+(H[1]&32?"need":"unexpected")+" dictionary");return(H[1]>>3&4)+2},s,tH,a,uH,FH,RJ,sC,HJ,OH,EJ,CH,KJ,LH,BJ,EH=function(H,C,J,K){for(var Q in H){var V=H[Q],X=C+Q,Y=K;if(Array.isArray(V))Y=zC(K,V[1]),V=V[0];if(V instanceof Z)J[X]=[V,Y];else J[X+="/"]=[new Z(0),Y],EH(V,X,J,K)}},PH,JH,rH=0,pH=function(H){for(var C="",J=0;;){var K=H[J++],Q=(K>127)+(K>223)+(K>239);if(J+Q>H.length)return{s:C,r:d(H,J-1)};if(!Q)C+=String.fromCharCode(K);else if(Q==3)K=((K&15)<<18|(H[J++]&63)<<12|(H[J++]&63)<<6|H[J++]&63)-65536,C+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Q&1)C+=String.fromCharCode((K&31)<<6|H[J++]&63);else C+=String.fromCharCode((K&15)<<12|(H[J++]&63)<<6|H[J++]&63)}},OJ,MJ,oH=function(H){return H==1?3:H<6?2:H==9?1:0},bH=function(H,C){return C+30+n(H,C+26)+n(H,C+28)},eH=function(H,C,J){var K=n(H,C+28),Q=nH(H.subarray(C+46,C+46+K),!(n(H,C+8)&2048)),V=C+46+K,X=u(H,C+20),Y=J&&X==4294967295?fH(H,V):[X,u(H,C+24),u(H,C+42)],E=Y[0],R=Y[1],$=Y[2];return[n(H,C+10),E,R,Q,V+n(H,C+30)+n(H,C+32),$]},fH=function(H,C){for(;n(H,C)!=1;C+=4+n(H,C+2));return[cC(H,C+12),cC(H,C+4),cC(H,C+20)]},VC=function(H){var C=0;if(H)for(var J in H){var K=H[J].length;if(K>65535)B(9);C+=K+4}return C},MC=function(H,C,J,K,Q,V,X,Y){var E=K.length,R=J.extra,$=Y&&Y.length,N=VC(R);if(g(H,C,X!=null?33639248:67324752),C+=4,X!=null)H[C++]=20,H[C++]=J.os;H[C]=20,C+=2,H[C++]=J.flag<<1|(V<0&&8),H[C++]=Q&&8,H[C++]=J.compression&255,H[C++]=J.compression>>8;var W=new Date(J.mtime==null?Date.now():J.mtime),T=W.getFullYear()-1980;if(T<0||T>119)B(10);if(g(H,C,T<<25|W.getMonth()+1<<21|W.getDate()<<16|W.getHours()<<11|W.getMinutes()<<5|W.getSeconds()>>1),C+=4,V!=-1)g(H,C,J.crc),g(H,C+4,V<0?-V-2:V),g(H,C+8,J.size);if(g(H,C+12,E),g(H,C+14,N),C+=16,X!=null)g(H,C,$),g(H,C+6,J.attrs),g(H,C+10,X),C+=14;if(H.set(K,C),C+=E,N)for(var L in R){var j=R[L],F=j.length;g(H,C,+L),g(H,C+2,F),H.set(j,C+4),C+=4+F}if($)H.set(Y,C),C+=$;return C},WH=function(H,C,J,K,Q){g(H,C,101010256),g(H,C+8,J),g(H,C+10,J),g(H,C+12,K),g(H,C+16,Q)},oC,LJ,PJ,jJ,VJ,ZJ,UJ,IJ,bC;var XJ=aH(()=>{lH=cH("/");try{_C=lH("worker_threads").Worker}catch(H){}iH=_C?function(H,C,J,K,Q){var V=!1,X=new _C(H+dH,{eval:!0}).on("error",function(Y){return Q(Y,null)}).on("message",function(Y){return Q(null,Y)}).on("exit",function(Y){if(Y&&!V)Q(Error("exited with code "+Y),null)});return X.postMessage(J,K),X.terminate=function(){return V=!0,_C.prototype.terminate.call(X)},X}:function(H,C,J,K,Q){setImmediate(function(){return Q(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var V=function(){};return{terminate:V,postMessage:V}},Z=Uint8Array,o=Uint16Array,xC=Int32Array,LC=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),PC=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),SC=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GH=jH(LC,2),KH=GH.b,pC=GH.r;KH[28]=258,pC[258]=28;TH=jH(PC,0),ZH=TH.b,lC=TH.r,gC=new o(32768);for(U=0;U<32768;++U)CC=(U&43690)>>1|(U&21845)<<1,CC=(CC&52428)>>2|(CC&13107)<<2,CC=(CC&61680)>>4|(CC&3855)<<4,gC[U]=((CC&65280)>>8|(CC&255)<<8)>>1;KC=new Z(288);for(U=0;U<144;++U)KC[U]=8;for(U=144;U<256;++U)KC[U]=9;for(U=256;U<280;++U)KC[U]=7;for(U=280;U<288;++U)KC[U]=8;OC=new Z(32);for(U=0;U<32;++U)OC[U]=5;UH=l(KC,9,0),IH=l(KC,9,1),AH=l(OC,5,0),DH=l(OC,5,1),$J={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},SH=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],gH=new xC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),QC=new Z(0),wH=function(){var H=new Int32Array(256);for(var C=0;C<256;++C){var J=C,K=9;while(--K)J=(J&1&&-306674912)^J>>>1;H[C]=J}return H}(),hC=[];s=function(){function H(C,J){if(typeof C=="function")J=C,C={};if(this.ondata=J,this.o=C||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Z(98304),this.o.dictionary){var K=this.o.dictionary.subarray(-32768);this.b.set(K,32768-K.length),this.s.i=32768-K.length}}return H.prototype.p=function(C,J){this.ondata(RC(C,this.o,0,0,this.s),J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.s.l)B(4);var K=C.length+this.s.z;if(K>this.b.length){if(K>2*this.b.length-32768){var Q=new Z(K&-32768);Q.set(this.b.subarray(0,this.s.z)),this.b=Q}var V=this.b.length-this.s.z;this.b.set(C.subarray(0,V),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(C.subarray(V),32768),this.s.z=C.length-V+32768,this.s.i=32766,this.s.w=32768}else this.b.set(C,this.s.z),this.s.z+=C.length;if(this.s.l=J&1,this.s.z>this.s.w+8191||J)this.p(this.b,J||!1),this.s.w=this.s.i,this.s.i-=2},H.prototype.flush=function(){if(!this.ondata)B(5);if(this.s.l)B(4);this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},H}(),tH=function(){function H(C,J){IC([ZC,function(){return[i,s]}],this,NC.call(this,C,J),function(K){var Q=new s(K.data);onmessage=i(Q)},6,1)}return H}();a=function(){function H(C,J){if(typeof C=="function")J=C,C={};this.ondata=J;var K=C&&C.dictionary&&C.dictionary.subarray(-32768);if(this.s={i:0,b:K?K.length:0},this.o=new Z(32768),this.p=new Z(0),K)this.o.set(K)}return H.prototype.e=function(C){if(!this.ondata)B(5);if(this.d)B(4);if(!this.p.length)this.p=C;else if(C.length){var J=new Z(this.p.length+C.length);J.set(this.p),J.set(C,this.p.length),this.p=J}},H.prototype.c=function(C){this.s.i=+(this.d=C||!1);var J=this.s.b,K=wC(this.p,this.s,this.o);this.ondata(d(K,J,this.s.b),this.d),this.o=d(K,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},H.prototype.push=function(C,J){this.e(C),this.c(J)},H}(),uH=function(){function H(C,J){IC([TC,function(){return[i,a]}],this,NC.call(this,C,J),function(K){var Q=new a(K.data);onmessage=i(Q)},7,0)}return H}();FH=function(){function H(C,J){this.c=GC(),this.l=0,this.v=1,s.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),this.l+=C.length,s.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&$H(this.o),J&&8,this.s);if(this.v)XH(K,this.o),this.v=0;if(J)g(K,K.length-8,this.c.d()),g(K,K.length-4,this.l);this.ondata(K,J)},H.prototype.flush=function(){s.prototype.flush.call(this)},H}(),RJ=function(){function H(C,J){IC([ZC,yH,function(){return[i,s,FH]}],this,NC.call(this,C,J),function(K){var Q=new FH(K.data);onmessage=i(Q)},8,1)}return H}();sC=function(){function H(C,J){this.v=1,this.r=0,a.call(this,C,J)}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.r+=C.length,this.v){var K=this.p.subarray(this.v-1),Q=K.length>3?YH(K):4;if(Q>K.length){if(!J)return}else if(this.v>1&&this.onmember)this.onmember(this.r-K.length);this.p=K.subarray(Q),this.v=0}if(a.prototype.c.call(this,J),this.s.f&&!this.s.l&&!J)this.v=jC(this.s.p)+9,this.s={i:0},this.o=new Z(0),this.push(new Z(0),J)},H}(),HJ=function(){function H(C,J){var K=this;IC([TC,vH,function(){return[i,a,sC]}],this,NC.call(this,C,J),function(Q){var V=new sC(Q.data);V.onmember=function(X){return postMessage(X)},onmessage=i(V)},9,0,function(Q){return K.onmember&&K.onmember(Q)})}return H}();OH=function(){function H(C,J){this.c=eC(),this.v=1,s.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),s.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&(this.o.dictionary?6:2),J&&4,this.s);if(this.v)RH(K,this.o),this.v=0;if(J)g(K,K.length-4,this.c.d());this.ondata(K,J)},H.prototype.flush=function(){s.prototype.flush.call(this)},H}(),EJ=function(){function H(C,J){IC([ZC,kH,function(){return[i,s,OH]}],this,NC.call(this,C,J),function(K){var Q=new OH(K.data);onmessage=i(Q)},10,1)}return H}();CH=function(){function H(C,J){a.call(this,C,J),this.v=C&&C.dictionary?2:1}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.v){if(this.p.length<6&&!J)return;this.p=this.p.subarray(NH(this.p,this.v-1)),this.v=0}if(J){if(this.p.length<4)B(6,"invalid zlib data");this.p=this.p.subarray(0,-4)}a.prototype.c.call(this,J)},H}(),KJ=function(){function H(C,J){IC([TC,hH,function(){return[i,a,CH]}],this,NC.call(this,C,J),function(K){var Q=new CH(K.data);onmessage=i(Q)},11,0)}return H}();LH=function(){function H(C,J){this.o=NC.call(this,C,J)||{},this.G=sC,this.I=a,this.Z=CH}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K){C.ondata(J,K)}},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(!this.s){if(this.p&&this.p.length){var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length)}else this.p=C;if(this.p.length>2)this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,J),this.p=null}else this.s.push(C,J)},H}(),BJ=function(){function H(C,J){LH.call(this,C,J),this.queuedSize=0,this.G=HJ,this.I=uH,this.Z=KJ}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K,Q){C.ondata(J,K,Q)},this.s.ondrain=function(J){if(C.queuedSize-=J,C.ondrain)C.ondrain(J)}},H.prototype.push=function(C,J){this.queuedSize+=C.length,LH.prototype.push.call(this,C,J)},H}();PH=typeof TextEncoder<"u"&&new TextEncoder,JH=typeof TextDecoder<"u"&&new TextDecoder;try{JH.decode(QC,{stream:!0}),rH=1}catch(H){}OJ=function(){function H(C){if(this.ondata=C,rH)this.t=new TextDecoder;else this.p=QC}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(J=!!J,this.t){if(this.ondata(this.t.decode(C,{stream:!0}),J),J){if(this.t.decode().length)B(8);this.t=null}return}if(!this.p)B(4);var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length);var Q=pH(K),V=Q.s,X=Q.r;if(J){if(X.length)B(8);this.p=null}else this.p=X;this.ondata(V,J)},H}(),MJ=function(){function H(C){this.ondata=C}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.d)B(4);this.ondata($C(C),this.d=J||!1)},H}();oC=function(){function H(C){this.filename=C,this.c=GC(),this.size=0,this.compression=0}return H.prototype.process=function(C,J){this.ondata(null,C,J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.c.p(C),this.size+=C.length,J)this.crc=this.c.d();this.process(C,J||!1)},H}(),LJ=function(){function H(C,J){var K=this;if(!J)J={};oC.call(this,C),this.d=new s(J,function(Q,V){K.ondata(null,Q,V)}),this.compression=8,this.flag=oH(J.level)}return H.prototype.process=function(C,J){try{this.d.push(C,J)}catch(K){this.ondata(K,null,J)}},H.prototype.push=function(C,J){oC.prototype.push.call(this,C,J)},H}(),PJ=function(){function H(C,J){var K=this;if(!J)J={};oC.call(this,C),this.d=new tH(J,function(Q,V,X){K.ondata(Q,V,X)}),this.compression=8,this.flag=oH(J.level),this.terminate=this.d.terminate}return H.prototype.process=function(C,J){this.d.push(C,J)},H.prototype.push=function(C,J){oC.prototype.push.call(this,C,J)},H}(),jJ=function(){function H(C){this.ondata=C,this.u=[],this.d=1}return H.prototype.add=function(C){var J=this;if(!this.ondata)B(5);if(this.d&2)this.ondata(B(4+(this.d&1)*8,0,1),null,!1);else{var K=$C(C.filename),Q=K.length,V=C.comment,X=V&&$C(V),Y=Q!=C.filename.length||X&&V.length!=X.length,E=Q+VC(C.extra)+30;if(Q>65535)this.ondata(B(11,0,1),null,!1);var R=new Z(E);MC(R,0,C,K,Y,-1);var $=[R],N=function(){for(var F=0,P=$;F<P.length;F++){var I=P[F];J.ondata(null,I,!1)}$=[]},W=this.d;this.d=0;var T=this.u.length,L=zC(C,{f:K,u:Y,o:X,t:function(){if(C.terminate)C.terminate()},r:function(){if(N(),W){var F=J.u[T+1];if(F)F.r();else J.d=1}W=1}}),j=0;C.ondata=function(F,P,I){if(F)J.ondata(F,P,I),J.terminate();else if(j+=P.length,$.push(P),I){var G=new Z(16);if(g(G,0,134695760),g(G,4,C.crc),g(G,8,j),g(G,12,C.size),$.push(G),L.c=j,L.b=E+j+16,L.crc=C.crc,L.size=C.size,W)L.r();W=1}else if(W)N()},this.u.push(L)}},H.prototype.end=function(){var C=this;if(this.d&2){this.ondata(B(4+(this.d&1)*8,0,1),null,!0);return}if(this.d)this.e();else this.u.push({r:function(){if(!(C.d&1))return;C.u.splice(-1,1),C.e()},t:function(){}});this.d=3},H.prototype.e=function(){var C=0,J=0,K=0;for(var Q=0,V=this.u;Q<V.length;Q++){var X=V[Q];K+=46+X.f.length+VC(X.extra)+(X.o?X.o.length:0)}var Y=new Z(K+22);for(var E=0,R=this.u;E<R.length;E++){var X=R[E];MC(Y,C,X,X.f,X.u,-X.c-2,J,X.o),C+=46+X.f.length+VC(X.extra)+(X.o?X.o.length:0),J+=X.b}WH(Y,C,this.u.length,K,J),this.ondata(null,Y,!0),this.d=2},H.prototype.terminate=function(){for(var C=0,J=this.u;C<J.length;C++){var K=J[C];K.t()}this.d=2},H}();VJ=function(){function H(){}return H.prototype.push=function(C,J){this.ondata(null,C,J)},H.compression=0,H}(),ZJ=function(){function H(){var C=this;this.i=new a(function(J,K){C.ondata(null,J,K)})}return H.prototype.push=function(C,J){try{this.i.push(C,J)}catch(K){this.ondata(K,null,J)}},H.compression=8,H}(),UJ=function(){function H(C,J){var K=this;if(J<320000)this.i=new a(function(Q,V){K.ondata(null,Q,V)});else this.i=new uH(function(Q,V,X){K.ondata(Q,V,X)}),this.terminate=this.i.terminate}return H.prototype.push=function(C,J){if(this.i.terminate)C=d(C,0);this.i.push(C,J)},H.compression=8,H}(),IJ=function(){function H(C){this.onfile=C,this.k=[],this.o={0:VJ},this.p=QC}return H.prototype.push=function(C,J){var K=this;if(!this.onfile)B(5);if(!this.p)B(4);if(this.c>0){var Q=Math.min(this.c,C.length),V=C.subarray(0,Q);if(this.c-=Q,this.d)this.d.push(V,!this.c);else this.k[0].push(V);if(C=C.subarray(Q),C.length)return this.push(C,J)}else{var X=0,Y=0,E=void 0,R=void 0;if(!this.p.length)R=C;else if(!C.length)R=this.p;else R=new Z(this.p.length+C.length),R.set(this.p),R.set(C,this.p.length);var $=R.length,N=this.c,W=N&&this.d,T=function(){var P,I=u(R,Y);if(I==67324752){X=1,E=Y,L.d=null,L.c=0;var G=n(R,Y+6),O=n(R,Y+8),x=G&2048,w=G&8,D=n(R,Y+26),M=n(R,Y+28);if($>Y+30+D+M){var q=[];L.k.unshift(q),X=2;var A=u(R,Y+18),S=u(R,Y+22),v=nH(R.subarray(Y+30,Y+=30+D),!x);if(A==4294967295)P=w?[-2]:fH(R,Y),A=P[0],S=P[1];else if(w)A=-1;Y+=M,L.c=A;var m,y={name:v,compression:O,start:function(){if(!y.ondata)B(5);if(!A)y.ondata(null,QC,!0);else{var h=K.o[O];if(!h)y.ondata(B(14,"unknown compression type "+O,1),null,!1);m=A<0?new h(v):new h(v,A,S),m.ondata=function(r,YC,b){y.ondata(r,YC,b)};for(var k=0,z=q;k<z.length;k++){var p=z[k];m.push(p,!1)}if(K.k[0]==q&&K.c)K.d=m;else m.push(QC,!0)}},terminate:function(){if(m&&m.terminate)m.terminate()}};if(A>=0)y.size=A,y.originalSize=S;L.onfile(y)}return"break"}else if(N){if(I==134695760)return E=Y+=12+(N==-2&&8),X=3,L.c=0,"break";else if(I==33639248)return E=Y-=4,X=3,L.c=0,"break"}},L=this;for(;Y<$-4;++Y){var j=T();if(j==="break")break}if(this.p=QC,N<0){var F=X?R.subarray(0,E-12-(N==-2&&8)-(u(R,E-16)==134695760&&4)):R.subarray(0,Y);if(W)W.push(F,!!X);else this.k[+(X==2)].push(F)}if(X&2)return this.push(R.subarray(Y),J);this.p=R.subarray(Y)}if(J){if(this.c)B(13);this.p=null}},H.prototype.register=function(C){this.o[C.compression]=C},H}(),bC=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(H){H()}});
2
+ export{$J as y4,s as z4,tH as A4,CJ as B4,fC as C4,a as D4,uH as E4,mH as F4,yC as G4,FH as H4,RJ as I4,NJ as J4,qH as K4,sC as L4,HJ as M4,JJ as N4,tC as O4,OH as P4,EJ as Q4,WJ as R4,MH as S4,CH as T4,KJ as U4,QJ as V4,HH as W4,LH as X4,BJ as Y4,FJ as Z4,qJ as _4,OJ as $4,MJ as a5,$C as b5,nH as c5,oC as d5,LJ as e5,PJ as f5,jJ as g5,GJ as h5,TJ as i5,VJ as j5,ZJ as k5,UJ as l5,IJ as m5,AJ as n5,DJ as o5,XJ as p5};
@@ -0,0 +1,2 @@
1
+ import{yJ as Q,zJ as $}from"./cli-0.5.8-4hvxb5dp.mjs";import{Aga as P,Bha as W,Cha as E,zga as V}from"./cli-0.5.8-bhc8vwxd.mjs";import{zna as L}from"./cli-0.5.8-hkfwdsmy.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as kd,C as ld};
@@ -0,0 +1,6 @@
1
+ import{ufa as ZX,xfa as y8}from"./cli-0.5.8-qvy0n26p.mjs";import{Sfa as r,Yfa as R8}from"./cli-0.5.8-959n5v33.mjs";import{$fa as $X,cga as NJ,mga as j8}from"./cli-0.5.8-gm4jqzfs.mjs";import{$ga as tJ,Aga as T6,Bga as $Q,Cga as cX,Fga as JQ,Gga as pX,Hga as g,Iga as oJ,Jga as n,Jla as sQ,Kga as LQ,Nga as pQ,Oga as v6,Rga as l,Sga as wQ,Sha as XX,Tga as w,Uga as kQ,Xga as yJ,Yga as OX,Zga as h,_ga as vJ,aha as hX,bha as hJ,cha as wX,dha as y,eha as OJ,fha as gQ,gha as m6,jha as O,kha as GJ,nga as dQ,oga as P6,tga as qJ,uga as oX,xga as eJ,yga as fX,zga as fQ}from"./cli-0.5.8-bhc8vwxd.mjs";import{Kla as SJ,Lla as CX,Qla as cJ,Rla as TX,Sla as HJ,Tla as J6,Wla as L,Xla as XJ,ama as LJ,bma as zX,gma as V,hma as xJ}from"./cli-0.5.8-8h4z9e0a.mjs";import{Bna as N,Cna as W,yna as uJ,zna as U}from"./cli-0.5.8-hkfwdsmy.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 pea,BJ as qea,IJ as rea,r8 as sea,CJ as tea,e as uea,_J as vea,m as wea,JJ as xea,j as yea,QJ as zea,R as Aea,k as Bea,_ as Cea,d as Dea,$J as Eea,lJ as Fea,iJ as Gea,rJ as Hea,b as Iea,ZJ as Jea,ZQ as Kea,YQ as Lea,BQ as Mea,IQ as Nea,RQ as Oea,AQ as Pea,nQ as Qea,lQ as Rea,E as Sea,KJ as Tea,I8 as Uea,C8 as Vea,F8 as Wea,V8 as Xea,UJ as Yea,JX as Zea,H1 as _ea,G1 as $ea,s as afa,K1 as bfa,U1 as cfa,N1 as dfa,QX as efa,g8 as ffa,T as gfa,L1 as hfa,b8 as ifa,GX as jfa,KX as kfa,_1 as lfa,S1 as mfa,O1 as nfa,D8 as ofa,UX as pfa,w1 as qfa,aQ as rfa};
@@ -0,0 +1,2 @@
1
+ import{zna as g}from"./cli-0.5.8-hkfwdsmy.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 MS,d as NS,$J as OS,DJ as PS,GJ as QS};
@@ -0,0 +1,2 @@
1
+ import{K as b}from"./cli-0.5.8-j77twbsq.mjs";import{U as L}from"./cli-0.5.8-4xn4yjaa.mjs";import{ib as T}from"./cli-0.5.8-tp8vvk8a.mjs";import{jb as j}from"./cli-0.5.8-5zqpfyqq.mjs";import{Vm as G,Wm as M,Zm as O,_m as m,nQ as F,oQ as p}from"./cli-0.5.8-4hvxb5dp.mjs";import{lR as k,oR as U}from"./cli-0.5.8-f1znt77k.mjs";import{C3 as z,MZ as W,RZ as S,W1 as _,X1 as h,X2 as $,Y2 as w}from"./cli-0.5.8-rddkqxh8.mjs";import{vba as Z,yba as C}from"./cli-0.5.8-qf19nfhv.mjs";import{yda as Y,zda as I}from"./cli-0.5.8-w7g735pf.mjs";import{ofa as J,rfa as P}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as Q,Yfa as D}from"./cli-0.5.8-959n5v33.mjs";import{cga as H,ega as K,mga as B}from"./cli-0.5.8-gm4jqzfs.mjs";import{Ama as R,ima as V}from"./cli-0.5.8-fmyr9f7x.mjs";B();U();p();C();z();m();I();R();P();D();S();var v=void 0;function y(q){try{let E=new URL(q);return E.search="",E.toString().replace(/\/$/,"")}catch{return}}async function X(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;if(W()!=="firstParty")return;try{let q=await V.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),E=new Set;for(let x of q.data.servers)for(let A of x.server.remotes??[]){let N=y(A.url);if(N)E.add(N)}v=E,J(`[mcp-registry] Loaded ${E.size} official MCP URLs`)}catch(q){J(`Failed to fetch MCP registry: ${Q(q)}`,{level:"error"})}}h();M();function Nq(){if(H(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||K())return;k(),F(),L(),T();let q=Z()?.transport;if(q==="bedrock"&&!H(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))w();if(q==="vertex"&&!H(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))$();if(O(Y(),AbortSignal.timeout(3000),[]),b(),X(),_(),G.initialize(),!K())j.initialize()}
2
+ export{Nq as I};
@@ -0,0 +1,2 @@
1
+ function B(z,q=process.argv){for(let k=0;k<q.length;k++){let A=q[k];if(A?.startsWith(`${z}=`))return A.slice(z.length+1);if(A===z&&k+1<q.length)return q[k+1]}return}
2
+ export{B as kb};
@@ -0,0 +1,2 @@
1
+ import{Wa as Y}from"./cli-0.5.8-96p83b7z.mjs";import{hR as N,iR as C}from"./cli-0.5.8-z14ncgt9.mjs";import{Eba as A,Gba as w}from"./cli-0.5.8-qf19nfhv.mjs";import{mea as B,oea as k}from"./cli-0.5.8-9fpm1ms3.mjs";import{Uea as L,Yea as E,ofa as W,rfa as j}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as G,Yfa as K}from"./cli-0.5.8-959n5v33.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as Qa,q as Ra,p as Sa,g as Ta,d as Ua,R as Va};
@@ -0,0 +1,2 @@
1
+ import{zna as n}from"./cli-0.5.8-hkfwdsmy.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
2
+ export{o as LR,e as MR,i as NR,g as OR,r as PR,u as QR,f as RR,l as SR,t as TR};
@@ -0,0 +1,2 @@
1
+ import{p0 as H,q0 as _,r0 as Y,s0 as y}from"./cli-0.5.8-rddkqxh8.mjs";import{X5 as M,Z5 as f}from"./cli-0.5.8-qf19nfhv.mjs";import{afa as P,efa as p,ofa as x,rea as F,rfa as S,tea as b}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as V,Yfa as R}from"./cli-0.5.8-959n5v33.mjs";import{cga as U,mga as g}from"./cli-0.5.8-gm4jqzfs.mjs";import{$ja as D,Jla as A,aka as W}from"./cli-0.5.8-bhc8vwxd.mjs";import{zna as L}from"./cli-0.5.8-hkfwdsmy.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function s(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function o(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var h=L(()=>{b();f();g();Z=new Map});var $q;var m=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
2
+ export{k as YQ,s as ZQ,o as _Q,u as $Q,e as aR,qq as bR,Gq as cR,Jq as dR,Kq as eR,Qq as fR,h as gR,$q as hR,m as iR};
@@ -0,0 +1,3 @@
1
+ import{Pc as m,Qc as v,Rc as wk}from"./cli-0.5.8-20gjzt7v.mjs";import{$K as e,As as l,Bs as Vk,FD as n,GD as V,HD as i,KD as Tk,SK as o,UK as t,XK as Dk,Yl as p,Zl as zk,aL as Uk,dC as g,eC as a,eO as r,fO as kk,gy as s,hy as Gk,jC as Lk,jO as jk}from"./cli-0.5.8-4hvxb5dp.mjs";import{MZ as T,RZ as Jk,m0 as d,o0 as Ok}from"./cli-0.5.8-rddkqxh8.mjs";import{I3 as f,J3 as Ik,T3 as c,W3 as Mk}from"./cli-0.5.8-jtqyf6nz.mjs";import{B5 as _k,w5 as S}from"./cli-0.5.8-edf7e65a.mjs";import{$$ as b,S_ as j,X$ as x,X5 as K,Z5 as Zk,_6 as P,c7 as $k,f$ as Kk,iaa as u,paa as $,vba as _,yba as Hk}from"./cli-0.5.8-qf19nfhv.mjs";import{sca as J,xca as Yk}from"./cli-0.5.8-5h92528m.mjs";import{kea as L,lea as Bk}from"./cli-0.5.8-qdnr3r07.mjs";import{ofa as B,rea as O,rfa as U,tea as Rk}from"./cli-0.5.8-xs1gy1tk.mjs";import{Lfa as h,Rfa as Y,Yfa as Xk}from"./cli-0.5.8-959n5v33.mjs";import{cga as E,mga as Wk}from"./cli-0.5.8-gm4jqzfs.mjs";import{Fja as w,Jla as z,nja as F,pja as y}from"./cli-0.5.8-bhc8vwxd.mjs";import{gma as A,hma as Qk}from"./cli-0.5.8-8h4z9e0a.mjs";import{Ana as W}from"./cli-0.5.8-hkfwdsmy.mjs";Yk();z();$();Qk();z();z();Vk();Ok();Lk();Tk();Bk();Hk();Jk();var G=!1;function D(){if(G)return;if(G=!0,T()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||L().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();U();Kk();function C(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=x()?.env,Q=j("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();U();_k();Zk();zk();Wk();Xk();jk();wk();Ik();Dk();Mk();Uk();Gk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(m(),C(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-0.5.8-tmpw0mgj.mjs"),import("./growthbook-0.5.8-tt3wbrct.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),d(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),V())n();if(a())g();J("init_after_remote_settings_check"),u();let Q=Date.now();B("[init] configureGlobalMTLS starting"),f(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),c(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),D(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-0.5.8-6a2g1s50.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-0.5.8-wf4cta06.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-0.5.8-vcng2y7m.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(w()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
2
+ `),kk(1);return}return import("./InvalidConfigDialog-0.5.8-98nc303h.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(V()){if(w()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),v(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await xk()}catch(k){throw I=!1,k}}async function xk(){let{initializeTelemetry:k}=await import("./instrumentation-0.5.8-gbnaaqp3.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
3
+ export{Yq as da,Zq as ea};
@@ -0,0 +1,2 @@
1
+ import{HV as Z,RW as Y,TW as u,wX as e2,yV as u2}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as t,YY as o,ZY as U}from"./cli-0.5.8-zkn5gecs.mjs";import{G8 as X,I8 as j}from"./cli-0.5.8-qf19nfhv.mjs";import{vna as s}from"./cli-0.5.8-hkfwdsmy.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.5.8"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.5.8"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.5.8"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.5.8"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as ba};
@@ -0,0 +1,5 @@
1
+ import{o as f}from"./cli-0.5.8-78y711gq.mjs";import{ar as F,br as i}from"./cli-0.5.8-4hvxb5dp.mjs";import{$Q as e,YQ as T,aR as k,bR as z,gR as d}from"./cli-0.5.8-z14ncgt9.mjs";import{G3 as W,J3 as m,Q3 as y,R3 as U,W3 as c}from"./cli-0.5.8-jtqyf6nz.mjs";import{X5 as Z,Z5 as R}from"./cli-0.5.8-qf19nfhv.mjs";import{$ca as v,Xca as V,Zca as I,_ca as N}from"./cli-0.5.8-bjqx8j31.mjs";import{kda as E,vda as b}from"./cli-0.5.8-7fm71y20.mjs";import{mea as q,oea as h}from"./cli-0.5.8-9fpm1ms3.mjs";import{Tea as O,Yea as p,ofa as Y,rfa as _}from"./cli-0.5.8-xs1gy1tk.mjs";import{cga as H,mga as w}from"./cli-0.5.8-gm4jqzfs.mjs";import{Ama as s,ima as S}from"./cli-0.5.8-fmyr9f7x.mjs";import{Ana as u}from"./cli-0.5.8-hkfwdsmy.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();h();i();_();R();w();m();c();d();p();var g=`{"type":"keep_alive"}
2
+ `,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{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 F(t)}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:U(this.url.href),tls:W()||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.5.8-kmv5mk0m.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});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)q("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(),k(()=>{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(),z(),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)q("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&&a.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>A)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<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),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)q("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(),z(),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=O($)+`
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=O(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>A){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")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),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")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),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(),JJ);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,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();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 S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}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 YJ(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{j as a,BJ as b,L as c,XJ as d};
@@ -0,0 +1 @@
1
+ import{$ca as B,Xca as q,Zca as A,_ca as x}from"./cli-0.5.8-bjqx8j31.mjs";import{Yea as J}from"./cli-0.5.8-xs1gy1tk.mjs";import{Yfa as G}from"./cli-0.5.8-959n5v33.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,2 @@
1
+ import{Rd as Jq,Vd as Tq}from"./cli-0.5.8-f54hhqdn.mjs";import{ae as zq,be as bq}from"./cli-0.5.8-1heha1zs.mjs";import{CH as Nq,FI as D,II as Cq,NH as s,OH as _q,SH as a,VH as l,ZH as t,cI as e,eI as Rq,fF as u,gF as fq,km as n,lI as qq,lm as yq,pI as Fq,uD as r,vD as Gq,zH as S}from"./cli-0.5.8-4hvxb5dp.mjs";import{RW as F,TW as C,oV as i,pV as Kq,wX as Oq,yV as Bq}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as v,YY as R,ZY as p}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as Lq}from"./cli-0.5.8-6epmns99.mjs";import{$5 as $,G7 as x,Kba as m,P5 as g,Q5 as Zq,Sba as wq,Y6 as o,Z6 as Hq,a8 as vq,b6 as Xq}from"./cli-0.5.8-qf19nfhv.mjs";import{ofa as B,rfa as Yq}from"./cli-0.5.8-xs1gy1tk.mjs";import{Qfa as P,Tfa as h,Yfa as Wq}from"./cli-0.5.8-959n5v33.mjs";import{vna as d,zna as Vq}from"./cli-0.5.8-hkfwdsmy.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Hd,Yz as Id,Dq as Jd};
@@ -0,0 +1,2 @@
1
+ import{zna as l}from"./cli-0.5.8-hkfwdsmy.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as WY,E as XY,a as YY,c as ZY};
@@ -0,0 +1,2 @@
1
+ import{am as Q,at as Pq,bm as Sq,et as hq}from"./cli-0.5.8-4hvxb5dp.mjs";import{AU as _q,wU as Uq,xU as Iq}from"./cli-0.5.8-f0cc21nk.mjs";import{RW as J,TW as L,wX as nq,yV as jq}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as H,YY as O,ZY as vq}from"./cli-0.5.8-zkn5gecs.mjs";import{M0 as bq,N0 as Mq,e1 as yq}from"./cli-0.5.8-rddkqxh8.mjs";import{G8 as Nq,I8 as gq,X$ as Rq,Y6 as Xq,Z6 as kq,paa as fq}from"./cli-0.5.8-qf19nfhv.mjs";import{vda as Bq}from"./cli-0.5.8-7fm71y20.mjs";import{vna as pq,zna as Gq}from"./cli-0.5.8-hkfwdsmy.mjs";function xq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function mq(V,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return V.length>0&&!/^\s/.test(V)&&!V.startsWith("\x1B")}var Wq=Gq(()=>{_q();fq();gq()});function T(V){return V.replace(/\+/g," + ")}function qD(V){let q=Eq.c(99),{dimColor:D,fixedWidth:Aq,gap:x,paddingX:m}=V,l=Q("app:toggleTranscript","Global","ctrl+o"),_;if(q[0]!==l)_=T(l),q[0]=l,q[1]=_;else _=q[1];let e=_,d=Q("app:toggleTodos","Global","ctrl+t"),p;if(q[2]!==d)p=T(d),q[2]=d,q[3]=p;else p=q[3];let s=p,i=Q("chat:undo","Chat","ctrl+_"),B;if(q[4]!==i)B=T(i),q[4]=i,q[5]=B;else B=q[5];let r=B,$=Q("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=T($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=Q("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=T(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Dq=Q("chat:modelPicker","Chat","alt+p"),j;if(q[10]!==Dq)j=T(Dq),q[10]=Dq,q[11]=j;else j=q[11];let Hq=j,Jq=Q("chat:fastMode","Chat","alt+o"),n;if(q[12]!==Jq)n=T(Jq),q[12]=Jq,q[13]=n;else n=q[13];let Lq=n,Oq=Q("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Oq)S=T(Oq),q[14]=Oq,q[15]=S;else S=q[15];let Qq=S,Tq=Q("app:toggleTerminal","Global","meta+j"),h;if(q[16]!==Tq)h=T(Tq),q[16]=Tq,q[17]=h;else h=q[17];let Fq=h,Vq=Q("chat:imagePaste","Chat","ctrl+v"),a;if(q[18]!==Vq)a=T(Vq),q[18]=Vq,q[19]=a;else a=q[19];let Yq=a,C;if(q[20]!==D||q[21]!==Fq)C=null,q[20]=D,q[21]=Fq,q[22]=C;else C=q[22];let Zq=C,wq=Aq?24:void 0,Y;if(q[23]!==D)Y=H(J,{children:H(L,{dimColor:D,children:"! for bash mode"})}),q[23]=D,q[24]=Y;else Y=q[24];let Z;if(q[25]!==D)Z=H(J,{children:H(L,{dimColor:D,children:"/ for commands"})}),q[25]=D,q[26]=Z;else Z=q[26];let w;if(q[27]!==D)w=H(J,{children:H(L,{dimColor:D,children:"@ for file paths"})}),q[27]=D,q[28]=w;else w=q[28];let z;if(q[29]!==D)z=H(J,{children:H(L,{dimColor:D,children:"& for background"})}),q[29]=D,q[30]=z;else z=q[30];let A;if(q[31]!==D)A=H(J,{children:H(L,{dimColor:D,children:"/btw for side question"})}),q[31]=D,q[32]=A;else A=q[32];let F;if(q[33]!==wq||q[34]!==Y||q[35]!==Z||q[36]!==w||q[37]!==z||q[38]!==A)F=O(J,{flexDirection:"column",width:wq,children:[Y,Z,w,z,A]}),q[33]=wq,q[34]=Y,q[35]=Z,q[36]=w,q[37]=z,q[38]=A,q[39]=F;else F=q[39];let zq=Aq?35:void 0,G;if(q[40]!==D)G=H(J,{children:H(L,{dimColor:D,children:"double tap esc to clear input"})}),q[40]=D,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==D)N=H(J,{children:O(L,{dimColor:D,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=D,q[44]=N;else N=q[44];let R;if(q[45]!==D||q[46]!==e)R=H(J,{children:O(L,{dimColor:D,children:[e," for verbose output"]})}),q[45]=D,q[46]=e,q[47]=R;else R=q[47];let U;if(q[48]!==D||q[49]!==s)U=H(J,{children:O(L,{dimColor:D,children:[s," to toggle tasks"]})}),q[48]=D,q[49]=s,q[50]=U;else U=q[50];let c;if(q[51]===Symbol.for("react.memo_cache_sentinel"))c=Kq(),q[51]=c;else c=q[51];let I;if(q[52]!==D)I=H(J,{children:H(L,{dimColor:D,children:c})}),q[52]=D,q[53]=I;else I=q[53];let K;if(q[54]!==zq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==Zq)K=O(J,{flexDirection:"column",width:zq,children:[G,N,R,U,Zq,I]}),q[54]=zq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=Zq,q[61]=K;else K=q[61];let W;if(q[62]!==D||q[63]!==r)W=H(J,{children:O(L,{dimColor:D,children:[r," to undo"]})}),q[62]=D,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==D)v=Xq()!=="windows"&&H(J,{children:H(L,{dimColor:D,children:"ctrl + z to suspend"})}),q[65]=D,q[66]=v;else v=q[66];let X;if(q[67]!==D||q[68]!==Yq)X=H(J,{children:O(L,{dimColor:D,children:[Yq," to paste images"]})}),q[67]=D,q[68]=Yq,q[69]=X;else X=q[69];let b;if(q[70]!==D||q[71]!==Hq)b=H(J,{children:O(L,{dimColor:D,children:[Hq," to switch model"]})}),q[70]=D,q[71]=Hq,q[72]=b;else b=q[72];let M;if(q[73]!==D||q[74]!==Lq)M=bq()&&Mq()&&H(J,{children:O(L,{dimColor:D,children:[Lq," to toggle fast mode"]})}),q[73]=D,q[74]=Lq,q[75]=M;else M=q[75];let P;if(q[76]!==D||q[77]!==o)P=H(J,{children:O(L,{dimColor:D,children:[o," to stash prompt"]})}),q[76]=D,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==D||q[80]!==Qq)E=H(J,{children:O(L,{dimColor:D,children:[Qq," to edit in $EDITOR"]})}),q[79]=D,q[80]=Qq,q[81]=E;else E=q[81];let g;if(q[82]!==D)g=Pq()&&H(J,{children:H(L,{dimColor:D,children:"/keybindings to customize"})}),q[82]=D,q[83]=g;else g=q[83];let f;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)f=O(J,{flexDirection:"column",children:[W,v,X,b,M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=f;else f=q[92];let u;if(q[93]!==x||q[94]!==m||q[95]!==F||q[96]!==K||q[97]!==f)u=O(J,{paddingX:m,flexDirection:"row",gap:x,children:[F,K,f]}),q[93]=x,q[94]=m,q[95]=F,q[96]=K,q[97]=f,q[98]=u;else u=q[98];return u}var Eq;var aq=Gq(()=>{nq();kq();hq();Sq();Bq();yq();Wq();vq();Eq=pq(jq(),1)});
2
+ export{xq as rf,mq as sf,Wq as tf,qD as uf,aq as vf};
@@ -0,0 +1 @@
1
+ import{c0 as a,d0 as b,e0 as c,f0 as d,g0 as e,h0 as f,i0 as g,j0 as h,k0 as i,l0 as j,m0 as k,n0 as l,o0 as m}from"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import"./cli-0.5.8-hkfwdsmy.mjs";m();export{l as storeOAuthAccountInfo,a as shouldUseClaudeAIAuth,e as refreshOAuthToken,k as populateOAuthAccountInfoIfNeeded,b as parseScopes,h as isOAuthTokenExpired,j as getOrganizationUUID,i as fetchProfileInfo,f as fetchAndStoreUserRoles,d as exchangeCodeForTokens,g as createAndStoreApiKey,c as buildAuthUrl};
@@ -0,0 +1 @@
1
+ import{Or as w,PP as f,Sr as Z,_h as F,iP as H}from"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import{$T as Y,TT as K}from"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import"./cli-0.5.8-zkn5gecs.mjs";import"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import{Jla as X,Sha as B}from"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import{zna as W}from"./cli-0.5.8-hkfwdsmy.mjs";async function h(q,J,y){if(K())return q("Cannot set color: This session is a swarm teammate. Teammate colors are assigned by the team leader.",{display:"system"}),null;if(!y||y.trim()===""){let b=w.join(", ");return q(`Please provide a color. Available colors: ${b}, default`,{display:"system"}),null}let k=y.trim().toLowerCase();if($.includes(k)){let b=B(),V=F();return await H(b,"default",V),J.setAppState((z)=>({...z,standaloneAgentContext:{...z.standaloneAgentContext,name:z.standaloneAgentContext?.name??"",color:void 0}})),q("Session color reset to default",{display:"system"}),null}if(!w.includes(k)){let b=w.join(", ");return q(`Invalid color "${k}". Available colors: ${b}, default`,{display:"system"}),null}let Q=B(),U=F();return await H(Q,k,U),J.setAppState((b)=>({...b,standaloneAgentContext:{...b.standaloneAgentContext,name:b.standaloneAgentContext?.name??"",color:k}})),q(`Session color set to: ${k}`,{display:"system"}),null}var $;var M=W(()=>{X();Z();f();Y();$=["default","reset","none","gray","grey"]});M();export{h as call};
@@ -0,0 +1,3 @@
1
+ import{CA as Y,DA as I,DN as wj,EA as Z,FA as $,GA as O,HA as _,JA as n,KF as y,LF as c,Zw as b,_w as x,aw as N,bL as B,cL as s,cw as m,dO as zj,ew as X,ft as A,fw as a,gM as l,gt as u,hL as k,hw as U,iw as r,mQ as R,nM as qj,nQ as W,oQ as Hj,pN as C,tL as o,vL as P,vz as f,wL as e}from"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import"./cli-0.5.8-zkn5gecs.mjs";import"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import{Y3 as h,Z3 as p}from"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import{Kba as D,Sba as g}from"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import{Pfa as v,Yfa as E}from"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import{Jla as i,Via as T}from"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import{zna as M}from"./cli-0.5.8-hkfwdsmy.mjs";async function t(q,j,H,w){j.onCompactProgress?.({type:"hooks_start",hookType:"pre_compact"}),j.setSDKStatus?.("compacting");try{let[z,J]=await Promise.all([f({trigger:"manual",customInstructions:H||null},j.abortController.signal),d(j,q)]),Q=O(H,z.newCustomInstructions);j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_start"});let K=await w.reactiveCompactOnPromptTooLong(q,J,{customInstructions:Q,trigger:"manual"});if(!K.ok)switch(K.reason){case"too_few_groups":throw Error(Y);case"aborted":throw Error(I);case"exhausted":case"error":case"media_unstrippable":throw Error(Z)}k(void 0);let F=$(K.result);B(void 0,F,j.contentReplacementState),X(),W.cache.clear?.();let V=[z.userDisplayMessage,K.result.userDisplayMessage].filter(Boolean).join(`
2
+ `)||void 0;return{type:"compact",compactionResult:{...K.result,userDisplayMessage:V},displayText:L(j,V)}}finally{j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_end"}),j.setSDKStatus?.(null)}}function L(q,j){let H=b("tip"),w=A("app:toggleTranscript","Global","ctrl+o"),z=[...q.options.verbose?[]:[`(${w} to see full summary)`],...j?[j]:[],...H?[H]:[]];return h.dim("Compacted "+z.join(`
3
+ `))}async function d(q,j){let H=q.getAppState(),w=await l(q.options.tools,q.options.mainLoopModel,Array.from(H.toolPermissionContext.additionalWorkingDirectories.keys()),q.options.mcpClients),z=y({mainThreadAgentDefinition:void 0,toolUseContext:q,customSystemPrompt:q.options.customSystemPrompt,defaultSystemPrompt:w,appendSystemPrompt:q.options.appendSystemPrompt}),[J,Q]=await Promise.all([W(),R()]);return{systemPrompt:z,userContext:J,systemContext:Q,toolUseContext:q,forkContextMessages:j}}var G=null,Aj=async(q,j)=>{let{abortController:H}=j,{messages:w}=j;if(w=C(w),w.length===0)throw Error("No messages to compact");let z=q.trim();try{if(!z){let V=await P(w,j.agentId);if(V){W.cache.clear?.();let S=$(V);return B(void 0,S,j.contentReplacementState),N(j.options.querySource??"compact",j.agentId),T(),X(),{type:"compact",compactionResult:V,displayText:L(j)}}}if(G?.isReactiveOnlyMode())return await t(w,j,z,G);let Q=(await U(w,j)).messages,K=await _(Q,j,await d(j,Q),!1,z,!1);k(void 0),X(),W.cache.clear?.();let F=$(K);return B(void 0,F,j.contentReplacementState),{type:"compact",compactionResult:K,displayText:L(j,K.userDisplayMessage)}}catch(J){if(H.signal.aborted)throw Error("Compaction canceled.");else if(v(J,Y))throw Error(Y);else if(v(J,Z))throw Error(Z);else throw D(J),Error(`Error during compaction: ${J}`)}};var jj=M(()=>{p();i();qj();Hj();u();m();n();a();r();s();e();o();E();zj();g();wj();x();c()});jj();export{Aj as call};
@@ -0,0 +1 @@
1
+ import{$$ as v,A$ as b,I$ as c,J$ as d,K$ as e,L$ as f,M$ as g,N$ as h,O$ as i,P$ as j,Q$ as k,R$ as l,S$ as m,T$ as n,U$ as o,V$ as p,W$ as q,X$ as r,Y$ as s,Z$ as t,_$ as u,aaa as w,baa as x,caa as y,daa as z,eaa as A,faa as B,gaa as C,haa as D,iaa as E,jaa as F,kaa as G,laa as H,maa as I,naa as J,oaa as K,paa as L,z$ as a}from"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-hkfwdsmy.mjs";L();export{A as shouldSkipPluginAutoupdate,o as saveGlobalConfig,y as saveCurrentProjectConfig,h as resetTrustDialogAcceptedCacheForTesting,l as resetProjectConfigForTests,k as resetGlobalConfigForTests,E as recordFirstStartTime,n as onGlobalConfigChange,m as isProjectConfigKey,j as isPathTrusted,f as isGlobalConfigKey,u as isConfigReadingAllowed,z as isAutoUpdaterDisabled,H as getUserClaudeRulesDir,s as getRemoteControlAtStartup,w as getProjectPathForConfig,D as getOrCreateUserID,F as getMemoryPath,G as getManagedClaudeRulesDir,p as getGlobalConfigWriteCount,r as getGlobalConfig,t as getCustomApiKeyStatus,x as getCurrentProjectConfig,C as getAutoUpdaterDisabledReason,B as formatAutoUpdaterDisabledReason,v as enableConfigs,i as checkHasTrustDialogAccepted,J as _wouldLoseAuthStateForTesting,K as _setGlobalConfigCacheForTesting,I as _getConfigForTesting,c as SHOW_CACHE_STATS_MODES,g as PROJECT_CONFIG_KEYS,a as NOTIFICATION_CHANNELS,e as GLOBAL_CONFIG_KEYS,b as EDITOR_MODES,d as DEFAULT_GLOBAL_CONFIG,q as CONFIG_WRITE_DISPLAY_THRESHOLD};
@@ -0,0 +1 @@
1
+ import{Cf as f,Df as q}from"./cli-0.5.8-erk0zvwn.mjs";import"./cli-0.5.8-j5n54z7y.mjs";import"./cli-0.5.8-bv6qegpr.mjs";import"./cli-0.5.8-7wzh55d5.mjs";import"./cli-0.5.8-r3zjfgs5.mjs";import"./cli-0.5.8-p2n1sz9e.mjs";import"./cli-0.5.8-5bdfv4z2.mjs";import"./cli-0.5.8-gp6x9qmw.mjs";import"./cli-0.5.8-99pnpzq7.mjs";import"./cli-0.5.8-r3r9r1x8.mjs";import"./cli-0.5.8-9ffdsmw1.mjs";import"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import{XY as d,ZY as b}from"./cli-0.5.8-zkn5gecs.mjs";import"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import{zna as l}from"./cli-0.5.8-hkfwdsmy.mjs";var y=async(h,k)=>{return d(f,{onClose:h,context:k,defaultTab:"Config"})};var v=l(()=>{q();b()});v();export{y as call};
@@ -0,0 +1 @@
1
+ import{gg as O0,hg as Hv}from"./cli-0.5.8-8c0hade9.mjs";import{DN as cv,Gh as b0,Hh as r0,Ih as w0,Jh as a0,Oh as Y0,Ph as o0,Qi as L0,Ri as e0,hw as p0,iw as dv,pM as g0,pN as m0,qM as lv}from"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import{fU as k0,gU as pv}from"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import{RW as H,TW as z,lX as u0,wX as F0,yV as S0}from"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import{XY as K,YY as Z,ZY as T}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as kv}from"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import{K5 as P0,L5 as Kv,P7 as Z0,a8 as I0,l8 as y0,s8 as Vv,v_ as Yv}from"./cli-0.5.8-qf19nfhv.mjs";import{hca as V,nca as V0}from"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import{vna as q0,zna as X0}from"./cli-0.5.8-hkfwdsmy.mjs";function D0(J){let v=[];return Jv(J,v),Qv(J,v),Zv(J,v),zv(J,v),Wv(J,v),v.sort((Q,X)=>{if(Q.severity!==X.severity)return Q.severity==="warning"?-1:1;return(X.savingsTokens??0)-(Q.savingsTokens??0)}),v}function Jv(J,v){if(J.percentage>=h0)v.push({severity:"warning",title:`Context is ${J.percentage}% full`,detail:J.isAutoCompactEnabled?"Autocompact will trigger soon, which discards older messages. Use /compact now to control what gets kept.":"Autocompact is disabled. Use /compact to free space, or enable autocompact in /config."})}function Qv(J,v){if(!J.messageBreakdown)return;for(let Q of J.messageBreakdown.toolCallsByType){let X=Q.callTokens+Q.resultTokens,U=X/J.rawMaxTokens*100;if(U<N0||X<U0)continue;let W=Xv(Q.name,X,U);if(W)v.push(W)}}function Xv(J,v,Q){let X=V(v);switch(J){case b0:return{severity:"warning",title:`Bash results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files — use Read with offset/limit instead.",savingsTokens:Math.floor(v*0.5)};case Y0:return{severity:"info",title:`Read results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Use offset and limit parameters to read only the sections you need. Avoid re-reading entire files when you only need a few lines.",savingsTokens:Math.floor(v*0.3)};case w0:return{severity:"info",title:`Grep results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",savingsTokens:Math.floor(v*0.3)};case L0:return{severity:"info",title:`WebFetch results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Web page content can be very large. Consider extracting only the specific information needed.",savingsTokens:Math.floor(v*0.4)};default:if(Q>=20)return{severity:"info",title:`${J} using ${X} tokens (${Q.toFixed(0)}%)`,detail:"This tool is consuming a significant portion of context.",savingsTokens:Math.floor(v*0.2)};return null}}function Zv(J,v){if(!J.messageBreakdown)return;let X=J.messageBreakdown.toolCallsByType.find((F)=>F.name===Y0);if(!X)return;let U=X.callTokens+X.resultTokens,W=U/J.rawMaxTokens*100,Y=X.resultTokens/J.rawMaxTokens*100;if(W>=N0&&U>=U0)return;if(Y>=s0&&X.resultTokens>=U0)v.push({severity:"info",title:`File reads using ${V(X.resultTokens)} tokens (${Y.toFixed(0)}%)`,detail:"If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",savingsTokens:Math.floor(X.resultTokens*0.3)})}function zv(J,v){let Q=J.memoryFiles.reduce((U,W)=>U+W.tokens,0),X=Q/J.rawMaxTokens*100;if(X>=t0&&Q>=vv){let U=[...J.memoryFiles].sort((W,Y)=>Y.tokens-W.tokens).slice(0,3).map((W)=>{return`${Z0(W.path)} (${V(W.tokens)})`}).join(", ");v.push({severity:"info",title:`Memory files using ${V(Q)} tokens (${X.toFixed(0)}%)`,detail:`Largest: ${U}. Use /memory to review and prune stale entries.`,savingsTokens:Math.floor(Q*0.3)})}}function Wv(J,v){if(!J.isAutoCompactEnabled&&J.percentage>=50&&J.percentage<h0)v.push({severity:"info",title:"Autocompact is disabled",detail:"Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."})}var N0=15,U0=1e4,s0=5,h0=80,t0=5,vv=5000;var C0=X0(()=>{r0();o0();a0();e0();I0();V0()});function f0(J){let v=A0.c(5),{suggestions:Q}=J;if(Q.length===0)return null;let X;if(v[0]===Symbol.for("react.memo_cache_sentinel"))X=K(z,{bold:!0,children:"Suggestions"}),v[0]=X;else X=v[0];let U;if(v[1]!==Q)U=Q.map(Uv),v[1]=Q,v[2]=U;else U=v[2];let W;if(v[3]!==U)W=Z(H,{flexDirection:"column",marginTop:1,children:[X,U]}),v[3]=U,v[4]=W;else W=v[4];return W}function Uv(J,v){return Z(H,{flexDirection:"column",marginTop:v===0?0:1,children:[Z(H,{children:[K(O0,{status:J.severity,withSpace:!0}),K(z,{bold:!0,children:J.title}),J.savingsTokens?Z(z,{dimColor:!0,children:[" ",P0.arrowRight," save ~",V(J.savingsTokens)]}):null]}),K(H,{marginLeft:2,children:K(z,{dimColor:!0,children:J.detail})})]},v)}var A0;var M0=X0(()=>{Kv();F0();V0();Hv();T();A0=q0(S0(),1)});function $(J,v){return J===v.length-1?"└":"├"}function qv(){let J=G0.c(2);return null}function B0(J){let v=new Map;for(let X of J){let U=y0(X.source),W=v.get(U)||[];W.push(X),v.set(U,W)}for(let[X,U]of v.entries())v.set(X,U.sort((W,Y)=>Y.tokens-W.tokens));let Q=new Map;for(let X of Fv){let U=v.get(X);if(U)Q.set(X,U)}return Q}function R0(J){let v=G0.c(87),{data:Q}=J,{categories:X,totalTokens:U,rawMaxTokens:W,percentage:Y,gridRows:F,model:G,memoryFiles:I,mcpTools:q,deferredBuiltinTools:x,systemTools:r,systemPromptSections:a,agents:o,skills:n,messageBreakdown:W0}=Q,h,D,C,P,b,S,O,A,w,L;if(v[0]!==X||v[1]!==F||v[2]!==q||v[3]!==G||v[4]!==Y||v[5]!==W||v[6]!==r||v[7]!==x||v[8]!==U){let j0=x===void 0?[]:x,l0=X.filter(uv),s;if(v[19]!==X)s=X.some(Ev),v[19]=X,v[20]=s;else s=v[20];let _=s,c0=j0.length>0,p=X.find(Rv);if(D=H,O="column",A=1,v[21]===Symbol.for("react.memo_cache_sentinel"))w=K(z,{bold:!0,children:"Context Usage"}),v[21]=w;else w=v[21];let d;if(v[22]!==F)d=F.map(Bv),v[22]=F,v[23]=d;else d=v[23];let g;if(v[24]!==d)g=K(H,{flexDirection:"column",flexShrink:0,children:d}),v[24]=d,v[25]=g;else g=v[25];let m;if(v[26]!==U)m=V(U),v[26]=U,v[27]=m;else m=v[27];let j;if(v[28]!==W)j=V(W),v[28]=W,v[29]=j;else j=v[29];let l;if(v[30]!==G||v[31]!==Y||v[32]!==m||v[33]!==j)l=Z(z,{dimColor:!0,children:[G," · ",m,"/",j," ","tokens (",Y,"%)"]}),v[30]=G,v[31]=Y,v[32]=m,v[33]=j,v[34]=l;else l=v[34];let t,v0,J0;if(v[35]===Symbol.for("react.memo_cache_sentinel"))t=K(qv,{}),v0=K(z,{children:" "}),J0=K(z,{dimColor:!0,italic:!0,children:"Estimated usage by category"}),v[35]=t,v[36]=v0,v[37]=J0;else t=v[35],v0=v[36],J0=v[37];let Q0;if(v[38]!==W)Q0=(N,i0)=>{let T0=V(N.tokens),$0=N.isDeferred?"N/A":`${(N.tokens/W*100).toFixed(1)}%`,n0=N.name===z0,_0=N.name,x0=N.isDeferred?" ":n0?"⛝":"⛁";return Z(H,{children:[K(z,{color:N.color,children:x0}),Z(z,{children:[" ",_0,": "]}),Z(z,{dimColor:!0,children:[T0," tokens (",$0,")"]})]},i0)},v[38]=W,v[39]=Q0;else Q0=v[39];let K0=l0.map(Q0),c;if(v[40]!==X||v[41]!==W)c=(X.find(Mv)?.tokens??0)>0&&Z(H,{children:[K(z,{dimColor:!0,children:"⛶"}),K(z,{children:" Free space: "}),Z(z,{dimColor:!0,children:[V(X.find(fv)?.tokens||0)," ","(",((X.find(Av)?.tokens||0)/W*100).toFixed(1),"%)"]})]}),v[40]=X,v[41]=W,v[42]=c;else c=v[42];let H0=p&&p.tokens>0&&Z(H,{children:[K(z,{color:p.color,children:"⛝"}),Z(z,{dimColor:!0,children:[" ",p.name,": "]}),Z(z,{dimColor:!0,children:[V(p.tokens)," tokens (",(p.tokens/W*100).toFixed(1),"%)"]})]}),i;if(v[43]!==l||v[44]!==K0||v[45]!==c||v[46]!==H0)i=Z(H,{flexDirection:"column",gap:0,flexShrink:0,children:[l,t,v0,J0,K0,c,H0]}),v[43]=l,v[44]=K0,v[45]=c,v[46]=H0,v[47]=i;else i=v[47];if(v[48]!==g||v[49]!==i)L=Z(H,{flexDirection:"row",gap:2,children:[g,i]}),v[48]=g,v[49]=i,v[50]=L;else L=v[50];if(h=H,C="column",P=-1,v[51]!==_||v[52]!==q)b=q.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"MCP tools"}),Z(z,{dimColor:!0,children:[" ","· /mcp",_?" (loaded on-demand)":""]})]}),q.some(Ov)&&Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:"Loaded"}),q.filter(Sv).map(Pv)]}),_&&q.some(Cv)&&Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:"Available"}),q.filter(Dv).map(hv)]}),!_&&q.map(Nv)]}),v[51]=_,v[52]=q,v[53]=b;else b=v[53];S=(r&&r.length>0||c0)&&!1,v[0]=X,v[1]=F,v[2]=q,v[3]=G,v[4]=Y,v[5]=W,v[6]=r,v[7]=x,v[8]=U,v[9]=h,v[10]=D,v[11]=C,v[12]=P,v[13]=b,v[14]=S,v[15]=O,v[16]=A,v[17]=w,v[18]=L}else h=v[9],D=v[10],C=v[11],P=v[12],b=v[13],S=v[14],O=v[15],A=v[16],w=v[17],L=v[18];let f;if(v[54]!==a)f=a&&a.length>0&&!1,v[54]=a,v[55]=f;else f=v[55];let M;if(v[56]!==o)M=o.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Custom agents"}),K(z,{dimColor:!0,children:" · /agents"})]}),Array.from(B0(o).entries()).map(wv)]}),v[56]=o,v[57]=M;else M=v[57];let B;if(v[58]!==I)B=I.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Memory files"}),K(z,{dimColor:!0,children:" · /memory"})]}),I.map(bv)]}),v[58]=I,v[59]=B;else B=v[59];let y;if(v[60]!==n)y=n&&n.tokens>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Skills"}),K(z,{dimColor:!0,children:" · /skills"})]}),Array.from(B0(n.skillFrontmatter).entries()).map(Gv)]}),v[60]=n,v[61]=y;else y=v[61];let R;if(v[62]!==W0)R=W0&&!1,v[62]=W0,v[63]=R;else R=v[63];let E;if(v[64]!==h||v[65]!==f||v[66]!==M||v[67]!==B||v[68]!==y||v[69]!==R||v[70]!==C||v[71]!==P||v[72]!==b||v[73]!==S)E=Z(h,{flexDirection:C,marginLeft:P,children:[b,S,f,M,B,y,R]}),v[64]=h,v[65]=f,v[66]=M,v[67]=B,v[68]=y,v[69]=R,v[70]=C,v[71]=P,v[72]=b,v[73]=S,v[74]=E;else E=v[74];let u;if(v[75]!==Q)u=D0(Q),v[75]=Q,v[76]=u;else u=v[76];let k;if(v[77]!==u)k=K(f0,{suggestions:u}),v[77]=u,v[78]=k;else k=v[78];let e;if(v[79]!==D||v[80]!==E||v[81]!==k||v[82]!==O||v[83]!==A||v[84]!==w||v[85]!==L)e=Z(D,{flexDirection:O,paddingLeft:A,children:[w,L,E,k]}),v[79]=D,v[80]=E,v[81]=k,v[82]=O,v[83]=A,v[84]=w,v[85]=L,v[86]=e;else e=v[86];return e}function Gv(J){let[v,Q]=J;return Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:v}),Q.map(Iv)]},v)}function Iv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function bv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",Z0(J.path),": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function wv(J){let[v,Q]=J;return Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:v}),Q.map(Lv)]},v)}function Lv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.agentType,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function Nv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function hv(J,v,Q){return K(H,{children:Z(z,{dimColor:!0,children:[$(v,Q)," ",J.name]})},v)}function Dv(J){return!J.isLoaded}function Cv(J){return!J.isLoaded}function Pv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function Sv(J){return J.isLoaded}function Ov(J){return J.isLoaded}function Av(J){return J.name==="Free space"}function fv(J){return J.name==="Free space"}function Mv(J){return J.name==="Free space"}function Bv(J,v){return K(H,{flexDirection:"row",marginLeft:-1,children:J.map(yv)},v)}function yv(J,v){if(J.categoryName==="Free space")return K(z,{dimColor:!0,children:"⛶ "},v);if(J.categoryName===z0)return K(z,{color:J.color,children:"⛝ "},v);return K(z,{color:J.color,children:J.squareFullness>=0.7?"⛁ ":"⛀ "},v)}function Rv(J){return J.name===z0}function Ev(J){return J.isDeferred&&J.name.includes("MCP")}function uv(J){return J.tokens>0&&J.name!=="Free space"&&J.name!==z0&&!J.isDeferred}var G0,z0="Autocompact buffer",Fv;var E0=X0(()=>{F0();C0();I0();V0();Vv();Yv();M0();T();G0=q0(S0(),1);Fv=["Project","User","Managed","Plugin","Built-in"]});function gv({data:J,onDone:v}){let Q=d0.useCallback(()=>v("Context dialog dismissed",{display:"system"}),[v]),X=k0(Q);return u0((U,W)=>{if(W.escape||W.return)Q()}),Z(H,{flexDirection:"column",children:[K(R0,{data:J}),K(z,{dimColor:!0,children:X.pending?`Press ${X.keyName} again to exit`:"Press esc or enter to close"})]})}function mv(J){return m0(J)}async function LJ(J,v){let{messages:Q,getAppState:X,options:{mainLoopModel:U,tools:W}}=v,Y=mv(Q),{messages:F}=await p0(Y),G=process.stdout.columns||80,I=X(),q=await g0(F,U,async()=>I.toolPermissionContext,W,I.agentDefinitions,G,v,void 0,Y);return K(gv,{data:q,onDone:J})}var d0;var jv=X0(()=>{F0();E0();pv();dv();lv();cv();T();d0=q0(kv(),1)});jv();export{LJ as call};
@@ -0,0 +1 @@
1
+ import{ig as a,jg as b,kg as c}from"./cli-0.5.8-e6gpyhnf.mjs";import"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import"./cli-0.5.8-zkn5gecs.mjs";import"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import"./cli-0.5.8-hkfwdsmy.mjs";c();export{a as collectContextData,b as call};
@@ -0,0 +1 @@
1
+ import{Ag as a,Bg as b}from"./cli-0.5.8-42eyjvs8.mjs";import"./cli-0.5.8-mf9m22v5.mjs";import"./cli-0.5.8-510vqc09.mjs";import"./cli-0.5.8-3a6g7wmx.mjs";import"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import"./cli-0.5.8-zkn5gecs.mjs";import"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import"./cli-0.5.8-hkfwdsmy.mjs";b();export{a as clearConversation};
@@ -0,0 +1,9 @@
1
+ import{Ci as i,DN as Tq,Eh as d,Fh as Yq,cm as T,dm as Nq,gm as l,hm as Iq,uD as n,vD as Fq,xi as a}from"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import{cV as s,dV as vq}from"./cli-0.5.8-60e57smp.mjs";import{RW as c,TW as u,sV as $,wX as Mq,xV as zq,yV as Hq}from"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import{XY as I,YY as h,ZY as k}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as Gq}from"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import{U$ as r,X$ as _,p_ as b,paa as Xq,v_ as Uq}from"./cli-0.5.8-qf19nfhv.mjs";import{Xba as f,Yba as Zq}from"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import{mea as P,oea as Vq}from"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import{vna as g,zna as Qq}from"./cli-0.5.8-hkfwdsmy.mjs";import{mkdir as Kq,writeFile as Rq}from"fs/promises";import{tmpdir as Oq}from"os";import{join as t}from"path";function Pq(Q){let q=d.lexer(a(Q)),V=[];for(let J of q)if(J.type==="code"){let Z=J;V.push({code:Z.text,lang:Z.lang})}return V}function wq(Q){let q=[];for(let V=Q.length-1;V>=0&&q.length<Wq;V--){let J=Q[V];if(J?.type!=="assistant"||J.isApiErrorMessage)continue;let Z=J.message.content;if(!Array.isArray(Z))continue;let U=i(Z,`
2
+
3
+ `);if(U)q.push(U)}return q}function yq(Q){if(Q){let q=Q.replace(/[^a-zA-Z0-9]/g,"");if(q&&q!=="plaintext")return`.${q}`}return".txt"}async function Jq(Q,q){let V=t(x,q);return await Kq(x,{recursive:!0}),await Rq(V,Q,"utf-8"),V}async function m(Q,q){let V=await $(Q);if(V)process.stdout.write(V);let J=b(Q,`
4
+ `)+1,Z=Q.length;try{let U=await Jq(Q,q);return`Copied to clipboard (${Z} characters, ${J} lines)
5
+ Also written to ${U}`}catch{return`Copied to clipboard (${Z} characters, ${J} lines)`}}function Aq(Q,q){let V=Q.split(`
6
+ `)[0]??"";if(f(V)<=q)return V;let J="",Z=0,U=q-1;for(let H of V){let G=f(H);if(Z+G>U)break;J+=H,Z+=G}return J+"…"}function pq(Q){let q=o.c(33),{fullText:V,codeBlocks:J,messageAge:Z,onDone:U}=Q,H=e.useRef("full"),G=`${V.length} chars, ${b(V,`
7
+ `)+1} lines`,M;if(q[0]!==G)M={label:"Full response",value:"full",description:G},q[0]=G,q[1]=M;else M=q[1];let z;if(q[2]!==J||q[3]!==M){let Y;if(q[5]===Symbol.for("react.memo_cache_sentinel"))Y={label:"Always copy full response",value:"always",description:"Skip this picker in the future (revert via /config)"},q[5]=Y;else Y=q[5];z=[M,...J.map(Lq),Y],q[2]=J,q[3]=M,q[4]=z}else z=q[4];let B=z,w;if(q[6]!==J||q[7]!==V)w=function(N){if(N==="full"||N==="always")return{text:V,filename:qq};let X=J[N];return{text:X.code,filename:`copy${yq(X.lang)}`,blockIndex:N}},q[6]=J,q[7]=V,q[8]=w;else w=q[8];let v=w,y;if(q[9]!==J.length||q[10]!==v||q[11]!==Z||q[12]!==U)y=async function(N){let X=v(N);if(N==="always"){if(!_().copyFullResponse)r(Eq);P("tengu_copy",{block_count:J.length,always:!0,message_age:Z});let W=await m(X.text,X.filename);U(`${W}
8
+ Preference saved. Use /config to change copyFullResponse`);return}P("tengu_copy",{selected_block:X.blockIndex,block_count:J.length,message_age:Z});let O=await m(X.text,X.filename);U(O)},q[9]=J.length,q[10]=v,q[11]=Z,q[12]=U,q[13]=y;else y=q[13];let S=y,A;if(q[14]!==J.length||q[15]!==v||q[16]!==Z||q[17]!==U){let Y=async function(X){let O=v(X);P("tengu_copy",{selected_block:O.blockIndex,block_count:J.length,message_age:Z,write_shortcut:!0});try{let W=await Jq(O.text,O.filename);U(`Written to ${W}`)}catch(W){let D=W;U(`Failed to write file: ${D instanceof Error?D.message:D}`)}};A=function(X){if(X.key==="w")X.preventDefault(),Y(H.current)},q[14]=J.length,q[15]=v,q[16]=Z,q[17]=U,q[18]=A}else A=q[18];let C=A,p;if(q[19]===Symbol.for("react.memo_cache_sentinel"))p=I(u,{dimColor:!0,children:"Select content to copy:"}),q[19]=p;else p=q[19];let E;if(q[20]===Symbol.for("react.memo_cache_sentinel"))E=(Y)=>{H.current=Y},q[20]=E;else E=q[20];let F;if(q[21]!==S)F=(Y)=>{S(Y)},q[21]=S,q[22]=F;else F=q[22];let K;if(q[23]!==U)K=()=>{U("Copy cancelled",{display:"system"})},q[23]=U,q[24]=K;else K=q[24];let R;if(q[25]!==B||q[26]!==K||q[27]!==F)R=I(n,{options:B,hideIndexes:!1,onFocus:E,onChange:F,onCancel:K}),q[25]=B,q[26]=K,q[27]=F,q[28]=R;else R=q[28];let L;if(q[29]===Symbol.for("react.memo_cache_sentinel"))L=I(u,{dimColor:!0,children:h(l,{children:[I(T,{shortcut:"enter",action:"copy"}),I(T,{shortcut:"w",action:"write to file"}),I(T,{shortcut:"esc",action:"cancel"})]})}),q[29]=L;else L=q[29];let j;if(q[30]!==C||q[31]!==R)j=I(s,{children:h(c,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:C,children:[p,R,L]})}),q[30]=C,q[31]=R,q[32]=j;else j=q[32];return j}function Eq(Q){return{...Q,copyFullResponse:!0}}function Lq(Q,q){let V=b(Q.code,`
9
+ `)+1;return{label:Aq(Q.code,60),value:q,description:[Q.lang,V>1?`${V} lines`:void 0].filter(Boolean).join(", ")||void 0}}var o,e,x,qq="response.md",Wq=20,aq=async(Q,q,V)=>{let J=wq(q.messages);if(J.length===0)return Q("No assistant message to copy"),null;let Z=0,U=V?.trim();if(U){let z=Number(U);if(!Number.isInteger(z)||z<1)return Q(`Usage: /copy [N] where N is 1 (latest), 2, 3, … Got: ${U}`),null;if(z>J.length)return Q(`Only ${J.length} assistant ${J.length===1?"message":"messages"} available to copy`),null;Z=z-1}let H=J[Z],G=Pq(H),M=_();if(G.length===0||M.copyFullResponse){P("tengu_copy",{always:M.copyFullResponse,block_count:G.length,message_age:Z});let z=await m(H,qq);return Q(z),null}return I(pq,{fullText:H,codeBlocks:G,messageAge:Z,onDone:Q})};var jq=Qq(()=>{Yq();Fq();Iq();Nq();vq();Zq();zq();Mq();Vq();Xq();Tq();Uq();k();o=g(Hq(),1),e=g(Gq(),1),x=t(Oq(),"claude")});jq();export{yq as fileExtension,wq as collectRecentAssistantTexts,aq as call};
@@ -0,0 +1 @@
1
+ import{Js as q,Ks as z,Vo as p,Zo as y}from"./cli-0.5.8-4hvxb5dp.mjs";import"./cli-0.5.8-ppmhyhcf.mjs";import"./cli-0.5.8-kmzftyt4.mjs";import"./cli-0.5.8-et8r95zv.mjs";import"./cli-0.5.8-z14ncgt9.mjs";import"./cli-0.5.8-f1znt77k.mjs";import"./cli-0.5.8-23ep6z70.mjs";import"./cli-0.5.8-a03sqccb.mjs";import"./cli-0.5.8-chb0m9py.mjs";import"./cli-0.5.8-ywfvs57d.mjs";import"./cli-0.5.8-v274erpp.mjs";import"./cli-0.5.8-0hybhk72.mjs";import"./cli-0.5.8-xvf56w0z.mjs";import"./cli-0.5.8-3qjtx8w8.mjs";import"./cli-0.5.8-bfynw1rm.mjs";import"./cli-0.5.8-tknpvwjq.mjs";import"./cli-0.5.8-m7f68vhz.mjs";import"./cli-0.5.8-vck50j66.mjs";import"./cli-0.5.8-3fnpjffd.mjs";import"./cli-0.5.8-f0cc21nk.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-60e57smp.mjs";import"./cli-0.5.8-nwe7yne9.mjs";import"./cli-0.5.8-s3j6qsck.mjs";import"./cli-0.5.8-kbjtm14d.mjs";import"./cli-0.5.8-je6yq94p.mjs";import"./cli-0.5.8-cctz1t07.mjs";import"./cli-0.5.8-69swpyae.mjs";import"./cli-0.5.8-jcm5hsqp.mjs";import"./cli-0.5.8-zkn5gecs.mjs";import"./cli-0.5.8-6epmns99.mjs";import"./cli-0.5.8-1gm5vdye.mjs";import"./cli-0.5.8-he3sfaey.mjs";import"./cli-0.5.8-5a9k7mja.mjs";import"./cli-0.5.8-cm551a1y.mjs";import{C3 as x,h3 as k}from"./cli-0.5.8-rddkqxh8.mjs";import"./cli-0.5.8-jtqyf6nz.mjs";import"./cli-0.5.8-4rgg1zqd.mjs";import"./cli-0.5.8-eq34z9xf.mjs";import"./cli-0.5.8-etf1n11s.mjs";import"./cli-0.5.8-07dyymev.mjs";import"./cli-0.5.8-hz85a3w7.mjs";import"./cli-0.5.8-x8fzgqvs.mjs";import"./cli-0.5.8-665mfjfq.mjs";import"./cli-0.5.8-edf7e65a.mjs";import"./cli-0.5.8-qf19nfhv.mjs";import"./cli-0.5.8-5h92528m.mjs";import"./cli-0.5.8-1x4w18nq.mjs";import"./cli-0.5.8-bjqx8j31.mjs";import"./cli-0.5.8-7fm71y20.mjs";import"./cli-0.5.8-w7g735pf.mjs";import"./cli-0.5.8-qdnr3r07.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-fmyr9f7x.mjs";import"./cli-0.5.8-bwsasv3j.mjs";import"./cli-0.5.8-fbja9vc0.mjs";import{zna as w}from"./cli-0.5.8-hkfwdsmy.mjs";var G=async()=>{if(k()){let g;if(p.isUsingOverage)g="You are currently using your overages to power your Claude Code usage. We will automatically switch you back to your subscription rate limits when they reset";else g="You are currently using your subscription to power your Claude Code usage";return{type:"text",value:g}}return{type:"text",value:q()}};var B=w(()=>{z();y();x()});B();export{G as call};
@@ -0,0 +1 @@
1
+ import"./cli-0.5.8-hkfwdsmy.mjs";var o=()=>null,n=o;export{n as default};
@@ -0,0 +1 @@
1
+ import{fe as a,ge as b,he as c,ie as d,je as e}from"./cli-0.5.8-wm9jby2t.mjs";import"./cli-0.5.8-tc6ssmvg.mjs";import"./cli-0.5.8-p72phgsn.mjs";import"./cli-0.5.8-9fpm1ms3.mjs";import"./cli-0.5.8-xs1gy1tk.mjs";import"./cli-0.5.8-qvy0n26p.mjs";import"./cli-0.5.8-959n5v33.mjs";import"./cli-0.5.8-gm4jqzfs.mjs";import"./cli-0.5.8-bhc8vwxd.mjs";import"./cli-0.5.8-8h4z9e0a.mjs";import"./cli-0.5.8-hkfwdsmy.mjs";e();export{d as updateBridgeSessionTitle,b as getBridgeSession,a as createBridgeSession,c as archiveBridgeSession};