@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
@@ -1,12 +0,0 @@
1
- import{rf as SZ,sf as kZ,tf as vz}from"./cli-0.5.7-dp3z7wkh.mjs";import{xg as JJ,yg as tQ}from"./cli-0.5.7-1fmgwk5c.mjs";import{Wg as ZJ,Xg as oQ}from"./cli-0.5.7-eyemfxtz.mjs";import{$x as IJ,AN as FZ,Bk as JQ,Bt as GQ,Ct as LQ,Dt as vQ,Ek as yZ,Et as yQ,It as FQ,Jt as KQ,Nl as aJ,Ol as bz,Oq as qJ,Ps as CQ,Qk as rJ,Sq as Bz,TM as hQ,Vl as bQ,Vs as WX,Vt as _Q,Wl as zX,Wx as EZ,Xx as CZ,Yt as qX,Yx as bZ,Zx as kJ,_x as IQ,aj as xZ,bj as JX,fy as o0,gy as TJ,hi as UZ,hy as hJ,iN as RQ,ii as MQ,iy as RJ,jm as oJ,jx as SQ,jy as wz,kx as YX,lm as _Z,mN as xQ,nN as $Q,pN as $Z,qN as fQ,qi as UJ,ri as jJ,rx as kQ,sN as d0,sx as VX,tN as uQ,vN as gJ,vm as tJ,wN as mJ,xN as pQ,xk as lJ,yN as dQ,yi as SJ,zm as Cz}from"./cli-0.5.7-q2e6xpch.mjs";import{AU as oZ,QU as tZ,UU as rQ,VU as OZ,WU as XX,zU as BZ}from"./cli-0.5.7-7a9gq9ff.mjs";import{DW as EQ,EW as QX,IV as p0,KW as C,LW as HQ,MV as PZ,MW as g,NW as gz,ZU as aZ,_U as lQ,pX as f0,rV as x0}from"./cli-0.5.7-x1w96j6d.mjs";import{OY as $0,PY as B,QY as $,RY as L0}from"./cli-0.5.7-vgc7nzef.mjs";import{SY as R0}from"./cli-0.5.7-8sbq2qed.mjs";import{mZ as sZ,nZ as eZ,oZ as aQ}from"./cli-0.5.7-6pssgqdn.mjs";import{B2 as s0,B3 as Ez,E2 as e0,Y2 as nJ,g3 as iJ,v2 as BQ,w2 as cz}from"./cli-0.5.7-8ychjqct.mjs";import{X3 as RZ,Y3 as ZX}from"./cli-0.5.7-xn6deh04.mjs";import{Haa as wZ,K6 as v0,L6 as lZ,R9 as ez,Z_ as VZ,_aa as ZQ,f$ as rZ,z9 as jQ}from"./cli-0.5.7-469r2a5r.mjs";import{Pca as NZ,Qca as MJ,_ca as t0,fda as Mz}from"./cli-0.5.7-5mrw857q.mjs";import{Cea as Vz,Zda as vZ,_da as jz,kea as HZ,pea as GZ,qea as LZ}from"./cli-0.5.7-sjx0wm99.mjs";import{Pfa as c0,Sfa as dz}from"./cli-0.5.7-twqt7rxq.mjs";import{cga as UQ,mga as sz}from"./cli-0.5.7-tqn2ged5.mjs";import{Kla as DQ,ima as tz}from"./cli-0.5.7-hp25yk8y.mjs";import{Vma as A0,Zma as N0}from"./cli-0.5.7-258ytmbr.mjs";function cZ(J){let Z=qZ.c(6),{children:Q}=J,[z,X]=F0.useState(null),[W,q]=F0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(pZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(uZ.Provider,{value:X,children:B(dZ.Provider,{value:q,children:B(fZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function gZ(){return F0.useContext(fZ)}function mZ(){return F0.useContext(pZ)}function DX(J){let Z=qZ.c(8),Q=F0.useContext(uZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}function UX(J){let Z=qZ.c(8),Q=F0.useContext(dZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}var qZ,F0,fZ,uZ,pZ,dZ;var nZ=N0(()=>{L0();qZ=A0(x0(),1),F0=A0(R0(),1),fZ=F0.createContext(null),uZ=F0.createContext(null),pZ=F0.createContext(null),dZ=F0.createContext(null)});function YZ(J){return J.type==="attachment"&&iQ.has(J.attachment.type)}var nQ,iQ;var AZ=N0(()=>{nQ=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],iQ=new Set(nQ)});import{fileURLToPath as sQ}from"url";function pX(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function eQ(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Zz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Zz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function dX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||YZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=eQ(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function cX(J){let Z=i0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:b}=BZ(),[_,N]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:N},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??zz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,S;if(Z[3]!==K||Z[4]!==Y)S=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=S;else S=Z[5];let H0=q0.useSyncExternalStore(E,S),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Jz,Y0),p0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Wz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let w0=Q0?0:1,T;if(Z[9]!==Q)T=B(DZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==w0)i=$(JJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:w0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=w0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Xz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(C,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let k;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)k=$(C,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=k;else k=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(qz,{}),w=B(Yz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=$(C,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(C,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==b||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(tZ,{value:{rows:O-iZ-1,columns:b-4,scrollRef:V??null},children:$(C,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-iZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(C,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(b)})}),B(C,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=b,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==k||Z[39]!==U||Z[40]!==R)s=$(cZ,{children:[k,U,R]}),Z[38]=k,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$($0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Jz(){if(!p0())return;let J=aZ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Qz,()=>{J.onHyperlinkClick=void 0}}function Qz(J){if(J.startsWith("file:"))try{sZ(sQ(J))}catch{}else eZ(J)}function zz(){}function Xz(J){let Z=i0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${VZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(C,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(C,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Wz(J){let Z=i0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(C,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function qz(){let J=i0.c(4),Z=gZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(ZJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Yz(){let J=i0.c(2),Z=mZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var i0,q0,iZ=2,DZ;var QJ=N0(()=>{lZ();rQ();nZ();oZ();tQ();lQ();f0();aQ();PZ();rZ();AZ();oQ();L0();i0=A0(x0(),1),q0=A0(R0(),1),DZ=q0.createContext({setStickyPrompt:()=>{}})});function zJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var XJ=()=>{};function WJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${HZ}`))return!1;if(UZ(Z.text,GZ)!=="completed")return!1;return UZ(Z.text,LZ)?.startsWith(qJ)??!1}function YJ(J,Z){if(!p0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(WJ(X)){let W=0;while(z<J.length&&WJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${HZ}><${GZ}>completed</${GZ}><${LZ}>${W} background commands completed</${LZ}></${HZ}>`}]}})}else Q.push(X),z++}return Q}var VJ=N0(()=>{Vz();Bz();PZ();FZ()});function BJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function HJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(BJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!BJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var GJ=()=>{};function LJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function FJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(LJ(z)){let X=0;while(Q<J.length&&LJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var KJ=()=>{};function Hz(J){let Z=NJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),NJ.set(J,Z);return Z}function jZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function wJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Hz(Z),X=new Map;for(let F of J){let P=jZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=jZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=jZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let b=O.message.content[0].id,_=V.get(b);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var NJ;var OJ=N0(()=>{NJ=new WeakMap});function KZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Gz(J).toLowerCase();return DJ.set(J,Q),Q}function Gz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=PJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!PJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Fz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Lz(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(AJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+AJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Lz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function Fz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var AJ="</system-reminder>",PJ,DJ;var MZ=N0(()=>{FZ();PJ=new Set([UJ,jJ]),DJ=new WeakMap});function bJ(J){let Z=EJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Kz)))return null;let W=NZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(C,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Kz(J){return J.type==="text"}var EJ;var CJ=N0(()=>{MJ();f0();L0();EJ=A0(x0(),1)});function yJ(J){let Z=vJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(Nz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=C,V=NZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function Nz(J){return J.type==="text"}var vJ;var _J=N0(()=>{MJ();f0();L0();vJ=A0(x0(),1)});function fJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(EZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(EZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function Oz(J){let Z=xJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,b=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)D=N&&(bZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?kJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,S;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)S=_||N?[]:mJ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=S;else S=Z[14];let H0=S,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let k=_||N?SJ:gJ(Q,O);Y0=dJ(Q,K,Y,k,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let k;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let U=w.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];k=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=k}else k=Z[25];h=k}else if(N){let k;if(Z[28]!==Y||Z[29]!==Q)k=bZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=k;else k=Z[30];h=k}else{let k;if(Z[31]!==Y||Z[32]!==Q){let W0=d0(Q);k=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=k}else k=Z[33];h=k}let z0;if(Z[34]!==E||Z[35]!==b)z0=b&&E.type==="assistant"&&E.message.content.some(Az)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=b,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,w0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==b||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==w0||Z[52]!==W||Z[53]!==V)T=B(RJ,{message:Q,lookups:O,addMargin:X0,containerWidth:w0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:b,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=b,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=w0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let k;if(Z[55]!==i)k=B(o0,{children:i}),Z[55]=i,Z[56]=k;else k=Z[56];return k}let o;if(Z[57]!==E||Z[58]!==b)o=$(C,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(yJ,{message:E,isTranscriptMode:b}),B(bJ,{message:E,isTranscriptMode:b})]}),Z[57]=E,Z[58]=b,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(o0,{children:$(C,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function Az(J){return J.type==="text"}function Pz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).some((X)=>Z.has(X));let Q=d0(J);return!!Q&&Z.has(Q)}function Dz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=d0(J);return!Q||Z.has(Q)}function Uz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&hJ(Z.message))return!1;let X=Pz(J.message,J.streamingToolUseIDs),W=Dz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var xJ,$J,uJ;var pJ=N0(()=>{f0();IJ();FZ();wz();CJ();cJ();_J();TJ();L0();xJ=A0(x0(),1),$J=A0(R0(),1);uJ=$J.memo(Oz,Uz)});import{relative as yz}from"path";function sJ(J){return Rz.filter((Z)=>Z.isActive(J))}var _z,Sz,kz,Iz,Tz,hz,Rz;var eJ=N0(()=>{f0();rJ();lZ();jz();Mz();Ez();vz();Cz();bz();L0();_z={id:"large-memory-files",type:"warning",isActive:(J)=>yZ(J.memoryFiles).length>0,render:(J)=>{let Z=yZ(J.memoryFiles);return B($0,{children:Z.map((Q)=>{let z=Q.path.startsWith(vZ())?yz(vZ(),Q.path):Q.path;return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",t0(Q.content.length)," chars >"," ",t0(lJ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},Sz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=s0();return iJ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=s0();return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},kz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return!!nJ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},Iz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return $(C,{flexDirection:"column",marginTop:1,children:[$(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(C,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},Tz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return kZ(J.agentDefinitions)>SZ},render:(J)=>{let Z=kZ(J.agentDefinitions);return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",t0(Z)," tokens >"," ",t0(SZ),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},hz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!oJ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=_Z();return Q!==null&&!aJ(Q)},render:()=>{let J=_Z(),Z=tJ(J);return $(C,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},Rz=[_z,Tz,Sz,kz,Iz,hz]});async function xz(){if(ZZ)return ZZ;return ZZ=JQ().then((J)=>{JZ=J}).finally(()=>{ZZ=null}),ZZ}function zQ(J){let Z=QQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=l0.useState(JZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(JZ.length>0){X(JZ);return}xz().then(()=>{X(JZ)})},Z[0]=W;else W=Z[0];l0.useEffect(W,[W]);let V={config:wZ(),agentDefinitions:Q,memoryFiles:z},Y=sJ(V);if(Y.length===0)return null;let K=C,F="column",P=1,v=Y.map((I)=>B(l0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var QQ,l0,JZ,ZZ=null;var XQ=N0(()=>{f0();rJ();ZQ();eJ();L0();QQ=A0(x0(),1),l0=A0(R0(),1),JZ=[]});function WQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??pz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let U=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(U/uz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,b=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),U=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let w=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);w[0]=0;for(let U=0;U<D;U++)w[U+1]=w[U]+(z.current.get(Z[U])??$z);q.current={arr:w,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,S;if(M)[E,S]=M,E=Math.min(E,D),S=Math.min(S,D);else if(_===0||O<0)E=Math.max(0,D-fz),S=D;else{if(N){let V0=_+r0;E=D;while(E>0&&J0-p[E-1]<V0)E--;S=D}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+b),g0=Math.max(O,O+b),y0=g0-M0,D0=y0>G0?b<0?g0-G0:M0:M0,I0=D0+Math.min(y0,G0),m0=Math.max(0,D0-V0),T0=I0-V0,b0=m0-r0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let n0=_+2*r0,a0=Math.min(D,E+QZ),_0=0;S=E;while(S<a0&&(_0<n0||p[S]<T0+_+r0))_0+=z.current.get(Z[S])??IZ,S++}let w=_+2*r0,U=Math.max(0,S-QZ),R=0;for(let V0=E;V0<S;V0++)R+=z.current.get(Z[V0])??IZ;while(E>U&&R<w)E--,R+=z.current.get(Z[E])??IZ;let s=P.current,O0=Math.abs(O-W.current)+Math.abs(b);if(s&&O0>_*2){let[V0,G0]=s;if(E<V0-zZ)E=V0-zZ;if(S>G0+zZ)S=G0+zZ;if(E>S)S=Math.min(E+zZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,S];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(S),l=E<H0?H0:E,h=S>Y0?Y0:S;if(l>h||N)l=E,h=S;if(b>0)h=S;if(h-l>QZ){let w=(p[l]+p[h])/2;if(O-I.current<w)h=l+QZ;else l=h-QZ}let z0=I.current,Q0=p[l],X0=l===0?0:Q0+z0,w0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,w0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let O0=s.yogaNode;if(!O0)continue;let V0=O0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(O0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((w)=>{let U=Y.current.get(w);if(!U)U=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let O0=s.getComputedHeight();if((O0>0||s.getComputedWidth()>0)&&z.current.get(w)!==O0)z.current.set(w,O0),X.current++}V.current.delete(w)}},Y.current.set(w,U);return U},[]),i=m.useCallback((w)=>{let U=V.current.get(Z[w])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),k=m.useCallback((w)=>{let U=q.current;if(w<0||w>=U.n)return;J.current?.scrollTo(U.arr[w]+I.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:k}}var m,$z=3,r0=80,fz=30,uz,IZ=1,QZ=300,zZ=25,pz=()=>{};var qQ=N0(()=>{m=A0(R0(),1),uz=r0>>1});function mz(J){let Z=YQ.get(J);if(Z!==void 0)return Z;let Q=KZ(J);return YQ.set(J,Q),Q}function iz(J){let Z=VQ.get(J);if(Z!==void 0)return Z;let Q=lz(J);return VQ.set(J,Q),Q}function lz(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=FQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function rz(J){let Z=NQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let b;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)b=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=b;else b=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let D;if(Z[19]!==_||Z[20]!==N)D=B(HQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==b||Z[28]!==D)p=B(C,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:b,children:D}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=b,Z[28]=D,Z[29]=p;else p=Z[29];return p}function wQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=mz,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),b=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==b.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));b.current=J,_.current=z;let N=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:S,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=WQ(Z,N,Q),[Q0,X0]=D,w0=y.useCallback((H)=>{if(h(H)===0)return!1;return GQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(f)=>v?.({uuid:f.uuid,msgType:f.type,expanded:!1,toolName:LQ(f)?.name}),L=F??-1,A=(f,n,a=w0)=>{for(let c=f;c>=0&&c<J.length;c+=n)if(a(c))return H(J[c]),!0;return!1},x=(f)=>w0(f)&&J[f].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,w0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),k=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),O0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-TZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let f=Math.max(0,Math.min(H,x.length-1)),n=x[f],a=T.current.getItemTop(A),c=L.getViewportTop(),e=a-L.getScrollTop(),h0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+h0)L.scrollTo(Math.max(0,a+n.row-TZ)),e=a-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:f});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+f+1;I?.(U0,j0),c0(`highlight(i=${A}, ord=${f}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,g0]=y.useState(0),y0=y.useCallback(()=>g0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,f=Z.current;if(!f)return;let{getItemElement:n,getItemTop:a,scrollToIndex:c}=T.current,e=n(L),h0=e?.yogaNode?.getComputedHeight()??0;if(!e||h0===0){if(x>1){i.current=null,c0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,f.scrollTo(Math.max(0,a(L)-TZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},c0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++k.current>20){k.current=0;return}w.current(A?-1:1);return}k.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,w.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:f,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let a=f(H),c=a?.yogaNode?.getComputedHeight()??0;if(a&&c>0)A.scrollTo(V0(H));else n(H);y0()}function I0(H){let L=R.current,{matches:A,prefixSum:x}=L,f=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,a=L.screenOrd+H;if(a>=0&&a<n.length){L.screenOrd=a,G0(a),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,c0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??f:x[c]+1;I?.(f,e)}w.current=I0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let S0=Y(U0[j0]),G=S0.indexOf(L),j=0;while(G>=0)j++,G=S0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let f=x.at(-1),n=0,a=Z.current,{offsets:c,start:e,getItemTop:h0}=T.current,P0=h0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&a){let U0=s.current>=0?s.current:a.getScrollTop(),j0=1/0;for(let S0=0;S0<A.length;S0++){let G=Math.abs(E0+c[A[S0]]-U0);if(G<=j0)j0=G,n=S0}c0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&a)a.scrollTo(s.current);I?.(f,A.length>0?x[n+1]??f:0)},nextMatch:()=>I0(1),prevMatch:()=>I0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(O0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await BQ(0);let a=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-a}let f=Math.round(performance.now()-x);return c0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${f}ms chunks=${Math.ceil(H.length/L)}`),O0.current=!0,Math.round(A)}}),[Z]);let[m0,T0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:T0});b0.current={onItemClick:W,setHoveredKey:T0};let n0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),a0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $($0,{children:[B(C,{ref:S,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],f=!!W&&(q?.(H)??!0),n=f&&m0===x,a=V?.(H);return B(rz,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:a,hovered:n,clickable:f,onClickK:n0,onEnterK:a0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(C,{height:J0,flexShrink:0}),K&&B(oz,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function oz({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(DZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??az,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let D=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let N=Q-1;N>=Z;N--){let D=X(N);if(D>=0){if(D<F)break;v=D}P=N}let M=-1,I=null;if(P>0&&!K)for(let N=P-1;N>=0;N--){let D=iz(J[N]);if(D===null)continue;let p=X(N);if(p>=0&&p+1>=F)continue;M=N,I=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),b=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(b.current==="armed"){b.current="force";return}let N=b.current==="force";if(b.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let D=I.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,nz).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,S=d;V({text:J0,scrollTo:()=>{V("clicked"),b.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(S),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var NQ,y,TZ=3,YQ,nz=500,VQ,az=()=>{};var OQ=N0(()=>{qQ();f0();gz();QJ();dz();cz();MZ();KQ();L0();NQ=A0(x0(),1),y=A0(R0(),1),YQ=new WeakMap;VQ=new WeakMap});function LX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function FX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function wX(J,Z,Q=KX,z=NX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function PQ(J){return(J.type==="assistant"||J.type==="user"?d0(J):null)??J.uuid}function AX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function dJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=d0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(pQ(q,"PostToolUse",W))return!1;return zJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var TQ,XZ,u,BX,HX=null,AQ=null,GX=null,hZ=30,KX=200,NX=50,OX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,streamingText:b,isBriefOnly:_=!1,unseenDivider:N,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=BZ(),w0=bQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=u.useMemo(()=>$Z(J).filter(RQ),[J]),i=u.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=u.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let r=B0.length-1;r>=0;r--)if(B0[r]?.type==="thinking")return`${j.uuid}:${r}`}else if(j?.type==="user"){if(!j.message.content.some((r)=>r.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=u.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let r of B0)if(r.type==="text"){let K0=r.text;if(K0.startsWith("<bash-stdout")||K0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),k=u.useMemo(()=>dQ(T),[T]),W0=u.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!k.has(G.contentBlock.id)),[F,q,k]),w=u.useMemo(()=>W0.flatMap((G)=>{let j=hQ({content:[G.contentBlock]});return j.uuid=MQ(G.contentBlock.id,0),$Z([j])}),[W0]),U=K==="transcript",R=u.useMemo(()=>UQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,O0=U&&!P&&!s,V0=u.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:g0,hiddenMessageCount:y0}=u.useMemo(()=>{let G=z||p0()?T:xQ(T,{includeSnipped:!0}),j=fQ(G.filter((k0)=>k0.type!=="progress").filter((k0)=>!YZ(k0)).filter((k0)=>$Q(k0,U)),w),B0=[AQ,GX].filter((k0)=>k0!==null),r=[AQ].filter((k0)=>k0!==null),K0=B0.length>0&&!U?_?LX(j,B0):r.length>0?FX(j,r):j:j,C0=O0?K0.slice(-hZ):K0,WZ=O0&&K0.length>hZ,{messages:u0}=wJ(C0,Z,z),cQ=YJ(HJ(FJ(IQ(u0,Z))),z),gQ=uQ(T,C0),mQ=j.length-hZ;return{collapsed:cQ,lookups:gQ,hasTruncatedMessages:WZ,hiddenMessageCount:mQ}},[z,T,U,w,O0,Z,_]),D0=u.useMemo(()=>{let j=!s&&!Y0?wX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),I0=u.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),m0=_Q((G)=>G.tasks),T0=M0.asyncLaunchedToolUseIDs,b0=u.useMemo(()=>{if(T0.size===0)return null;let G=new Set;for(let[j,B0]of T0){let r=m0?.[B0]?.status;if(r==="running"||r==="requested"||r==="queued")G.add(j)}return G.size>0?G:null},[m0,T0]),n0=u.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),a0=u.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[N,D0]),_0=u.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=u.useState(()=>new Set),A=u.useCallback((G)=>{let j=PQ(G);L((B0)=>{let r=new Set(B0);if(r.has(j))r.delete(j);else r.add(j);return r})},[]),x=u.useCallback((G)=>H.size>0&&H.has(PQ(G)),[H]),f=u.useRef(M0);f.current=M0;let n=u.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let K0=G.message.content[0];return K0!=null&&CQ(K0)&&K0.type==="advisor_tool_result"&&K0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=f.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?xZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),a=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=n0.size>0,{progress:e}=EQ(),h0=u.useRef(null),P0=wZ().terminalProgressBarEnabled&&!DQ()&&!(HX?.isProactiveActive()??!1);u.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(h0.current===G)return;h0.current=G,e(G)},[e,P0,c]),u.useEffect(()=>{return()=>e(null)},[e]);let E0=u.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,r=G.type==="user"&&B0==="user",K0=G.type==="collapsed_read_search"&&(!!b||fJ(D0,j,Z,I0)),C0=E0(G),WZ=B(uJ,{message:G,isUserContinuation:r,hasContentAfter:K0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:n0,streamingToolUseIDs:I0,screen:K,canAnimate:a,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),u0=B(vQ.Provider,{value:j===_0,children:WZ},C0);if(N&&j===a0)return[B(C,{marginTop:1,children:B(OZ,{title:`${N.count} new ${VZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),u0];return u0},j0=u.useRef(new WeakMap),S0=u.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=KZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let K0=G.message.content.find((C0)=>C0.type==="tool_result");if(K0&&"tool_use_id"in K0){let C0=M0.toolUseByToolUseID.get(K0.tool_use_id),u0=(C0&&xZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(u0!==void 0)B0=u0}}let r=B0.toLowerCase();return j0.current.set(G,r),r},[Z,M0]);return $($0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(BX,{agentDefinitions:v}),g0&&B(OZ,{title:`${w0} to show ${RZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(OZ,{title:`${w0} to hide ${RZ.bold(y0)} previous messages`,width:X0}),s?B(yQ.Provider,{value:!0,children:B(wQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,extractSearchText:S0})}):D0.flatMap(U0),b&&!_&&B(C,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(C,{flexDirection:"row",children:[B(C,{minWidth:2,children:B(g,{color:"text",children:jQ})}),B(C,{flexDirection:"column",children:B(SQ,{children:b})})]})}),i&&O&&!_&&B(C,{marginTop:1,children:B(kQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},C8;var cJ=N0(()=>{ZX();XJ();tz();ez();oZ();QX();f0();zX();qX();JX();WX();VJ();GJ();IJ();KJ();ZQ();sz();PZ();OJ();FZ();rZ();MZ();XX();YX();pJ();KQ();VX();AZ();TJ();XQ();OQ();L0();TQ=A0(x0(),1),XZ=A0(R0(),1),u=A0(R0(),1),BX=XZ.memo(function(Z){let Q=TQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(o0,{children:$(C,{flexDirection:"column",gap:1,children:[X,B(XZ.Suspense,{fallback:null,children:B(zQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});C8=XZ.memo(OX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(AX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{DX as we,UX as xe,nZ as ye,pX as ze,dX as Ae,cX as Be,QJ as Ce,C8 as De,cJ as Ee};
@@ -1,2 +0,0 @@
1
- import{AN as R,Ci as Q,Di as I,Qj as W,TM as Y,Tj as P}from"./cli-0.5.7-q2e6xpch.mjs";import{Nca as J,Oca as F}from"./cli-0.5.7-5mrw857q.mjs";import{Cea as f,fea as B,gea as H}from"./cli-0.5.7-sjx0wm99.mjs";import{ima as $,ria as v}from"./cli-0.5.7-hp25yk8y.mjs";import{Zma as Z}from"./cli-0.5.7-258ytmbr.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=J(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();f();I();F();R();P()});
2
- export{S as Qd,V as Rd,X as Sd,r as Td,w as Ud,T as Vd,G as Wd};
@@ -1,2 +0,0 @@
1
- import{Cd as L,Dd as O,Ed as u}from"./cli-0.5.7-2ytftsg5.mjs";import{qh as G,rh as m}from"./cli-0.5.7-hhre0h51.mjs";import{B3 as E,M2 as U,Q2 as k,V2 as A}from"./cli-0.5.7-8ychjqct.mjs";import{B6 as Z,Eaa as N,G$ as K,Haa as D,J6 as P,Naa as Q,T$ as C,X9 as J,Y9 as _,_aa as h,c_ as T,gba as R,mba as $,nba as y,vba as x}from"./cli-0.5.7-469r2a5r.mjs";import{Fga as Y,Nga as f}from"./cli-0.5.7-skfm51ta.mjs";import{Eja as I,ima as g}from"./cli-0.5.7-hp25yk8y.mjs";import{Zma as b}from"./cli-0.5.7-258ytmbr.mjs";function n(){V=!0}function c(){if(!V)return!1;return V=!1,!0}function a(j){return(z)=>({...z,...typeof j.permission_mode==="string"?{toolPermissionContext:{...z.toolPermissionContext,mode:_(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function t({newState:j,oldState:z}){let W=c(),X=z.toolPermissionContext.mode,F=j.toolPermissionContext.mode;if(X!==F){let q=J(X),B=J(F);if(q!==B){let H=B==="plan"&&j.isUltraplanMode&&!z.isUltraplanMode?!0:null;L({permission_mode:B,is_ultraplan_mode:H})}O(F)}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel===null){if(I(null),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:void 0}));else K("userSettings",{model:void 0}),y()}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel!==null){if(I(j.mainLoopModel),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:j.mainLoopModel??void 0}));else K("userSettings",{model:j.mainLoopModel}),$(j.mainLoopModel)}if(j.expandedView!==z.expandedView){let q=j.expandedView==="tasks",B=j.expandedView==="teammates";if(D().showExpandedTodos!==q||D().showSpinnerTree!==B)N((H)=>({...H,showExpandedTodos:q,showSpinnerTree:B}))}if(j.verbose!==z.verbose&&D().verbose!==j.verbose){let q=j.verbose;N((B)=>({...B,verbose:q}))}if(j.settings!==z.settings)try{if(U(),k(),A(),j.settings.env!==z.settings.env)G()}catch(q){Z(Y(q))}}var V=!1;var M=b(()=>{g();E();h();f();P();m();x();T();u();C()});
2
- export{n as td,a as ud,t as vd,M as wd};
@@ -1,2 +0,0 @@
1
- import{B3 as D,b3 as q}from"./cli-0.5.7-8ychjqct.mjs";import{Lea as m,Mea as z}from"./cli-0.5.7-xepvraxn.mjs";import{Zma as x}from"./cli-0.5.7-258ytmbr.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
2
- export{E as ge,F as he,K as ie,M as je,G as ke};
@@ -1,9 +0,0 @@
1
- import{Qma as V_,Rma as su,Tma as K_,Uma as f_}from"./cli-0.5.7-5jaayymr.mjs";import{Xma as H,_ma as $_}from"./cli-0.5.7-258ytmbr.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
- versions published after the first week of January 2027
3
- will require node >=${E}. You are running node ${_}.
4
-
5
- To continue receiving updates to AWS services, bug fixes,
6
- and security updates please upgrade to node >=${E}.
7
-
8
- More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
9
- export{W_ as Jma,D_ as Kma,yu as Lma,ou as Mma};
@@ -1,50 +0,0 @@
1
- import{ld as la,md as fc}from"./cli-0.5.7-g2dd5t6j.mjs";import{nd as lt,od as Tn,pd as wn,qd as ra,sd as _c}from"./cli-0.5.7-w024nwsf.mjs";import{td as un,wd as Ac}from"./cli-0.5.7-qdcp748z.mjs";import{$D as Kt,Cw as ha,Dw as oa,Ew as gc,HD as G,ID as Xa,JD as Oc,Mo as ca,No as Cc,Wt as ua,YD as Jt,Yt as bc,ZD as tc,_D as Zt,aE as Et,bE as ac,kF as qt,lF as Ha,nF as zc,oF as Rc,xD as Mn,yD as wc}from"./cli-0.5.7-q2e6xpch.mjs";import{$T as Rt,_T as zt,aU as At,bU as _t,cU as Qa,fU as ft,jU as kt,kU as aa,lU as pt}from"./cli-0.5.7-pzjz115k.mjs";import{NU as hn,PU as sc,XU as ta,YU as yc}from"./cli-0.5.7-7a9gq9ff.mjs";import{KW as w,MW as o,pX as Ot}from"./cli-0.5.7-x1w96j6d.mjs";import{OY as yn,PY as h,QY as C,RY as Sn}from"./cli-0.5.7-vgc7nzef.mjs";import{SY as In}from"./cli-0.5.7-8sbq2qed.mjs";import{nZ as xt,oZ as rc}from"./cli-0.5.7-6pssgqdn.mjs";import{$aa as vt,Gba as vn,Hba as Vt,Iba as Yt,Jba as Ln,K6 as an,Kba as nt,L6 as ec,Lba as Qt,Mba as Dn,Nba as Xt,Oba as Ht,Pba as nc,Qba as ot,Rba as Pt,Sba as rt,Uba as It,Wba as na,aba as cn,bba as mc,cba as Fn,dba as P,fba as Q,gba as $n,hca as dc,iba as gn,jba as ct,kba as nn,lba as dn,pba as sn,qba as ut,rba as ht,vba as wt}from"./cli-0.5.7-469r2a5r.mjs";import{ega as bn,mga as Wt}from"./cli-0.5.7-tqn2ged5.mjs";import{Vma as Pn,Wma as ic,Zma as v}from"./cli-0.5.7-258ytmbr.mjs";function Za(n,a=Wn){let c=P().find((r)=>r.provider==="openai"&&r.extras?.githubToken!==void 0);if(c)return dn(c.id,{provider:"openai",name:c.name,baseUrl:c.baseUrl,model:c.model||a,apiKey:n,extras:{...c.extras,githubToken:n}}),sn(c.id),{mode:"updated"};return nn({provider:"openai",name:"GitHub Copilot",baseUrl:Ja,model:a,apiKey:n,extras:{githubToken:n}},{makeActive:!0}),{mode:"created"}}function St({onDone:n,onBack:a,onChangeAPIKey:c}){let r=ft()?.trim()?"already-authed":"menu",[e,m]=W.useState(r),[_,z]=W.useState(null),[L,k]=W.useState(null),R=W.useCallback(async(A,p=Wn,y)=>{let H=kt(A,y);if(!H.success){z(H.warning??"Could not save token to secure storage."),m("error");return}Za(A,p),c?.(),n("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[c,n]),N=W.useCallback(async()=>{m("device-busy"),z(null),k(null);try{let A=await zt();k({user_code:A.user_code,verification_uri:A.verification_uri}),await At(A.verification_uri);let p=await Rt(A.device_code,{initialInterval:A.interval,timeoutSeconds:A.expires_in}),y=await _t(p);await R(y.token,Wn,p)}catch(A){z(A instanceof Error?A.message:String(A)),m("error")}},[R]);if(e==="already-authed")return C(w,{flexDirection:"column",gap:1,children:[h(o,{bold:!0,children:"GitHub Copilot"}),h(o,{children:"You are already signed in to GitHub Copilot."}),h(o,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),h(G,{options:[{label:"Sign in again",value:"sign-in-again"},{label:a?"Back to /provider menu":"Cancel",value:"back"}],onChange:(p)=>{if(p==="sign-in-again"){N();return}if(a){a();return}n("GitHub onboard cancelled",{display:"system"})}})]});if(e==="error"&&_)return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"red",children:_}),h(G,{options:[{label:a?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(p)=>{if(p==="back"){if(a){a();return}m("menu"),z(null);return}n("GitHub onboard cancelled",{display:"system"})}})]});if(e==="device-busy")return C(w,{flexDirection:"column",gap:1,children:[h(o,{children:"GitHub Copilot sign-in"}),L?C(yn,{children:[C(o,{children:["Enter code ",h(o,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),h(o,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):h(o,{dimColor:!0,children:"Requesting device code from GitHub..."}),h(qt,{})]});return C(w,{flexDirection:"column",gap:1,children:[h(o,{bold:!0,children:"GitHub Copilot setup"}),h(o,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),h(G,{options:[{label:"Sign in with browser",value:"device"},{label:a?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(A)=>{if(A==="cancel"){if(a){a();return}n("GitHub onboard cancelled",{display:"system"});return}N()}})]})}var W,Wn="github:copilot",Ja="https://api.githubcopilot.com";var Lt=v(()=>{Xa();Ha();Ot();Qa();pt();wt();Sn();W=Pn(In(),1)});function $t(n){return[n.name,n.family??"",...n.families??[],n.parameterSize??"",n.quantizationLevel??""].join(" ").toLowerCase()}function Cn(n,a){return a.some((c)=>n.includes(c))}function Wa(n){return!Cn($t(n),Nt)}function Pa(n){return n.find(Wa)??null}function xn(n){let c=`${n.parameterSize??""} ${n.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(c?.[1])return Number(c[1]);if(typeof n.sizeBytes==="number"&&n.sizeBytes>0)return Number((n.sizeBytes/1e9).toFixed(1));return null}function Ia(n){return(n.quantizationLevel??n.name).toLowerCase()}function xa(n,a,c){if(n===null)return c.push("unknown size"),0;if(a==="latency"){if(n<=4)return c.push("tiny model for low latency"),32;if(n<=8)return c.push("small model for fast responses"),26;if(n<=14)return c.push("mid-sized model with acceptable latency"),16;if(n<=24)return c.push("larger model may be slower"),8;return c.push("large model likely slower locally"),n<=40?0:-8}if(a==="coding"){if(n>=7&&n<=14)return c.push("strong coding size tier"),24;if(n>14&&n<=34)return c.push("large coding-capable size tier"),28;if(n>34)return c.push("very large model with higher quality potential"),18;return c.push("compact model may trade off coding depth"),12}if(n>=7&&n<=14)return c.push("great balanced size tier"),26;if(n>=3&&n<7)return c.push("compact balanced size tier"),18;if(n>14&&n<=24)return c.push("high quality balanced size tier"),20;if(n>24)return c.push("large model for quality-first usage"),10;return c.push("very small model for general usage"),8}function ja(n,a,c){let r=Ia(n);if(r.includes("q4"))return c.push("efficient Q4 quantization"),a==="latency"?8:4;if(r.includes("q5"))return c.push("balanced Q5 quantization"),a==="latency"?6:5;if(r.includes("q8"))return c.push("higher quality Q8 quantization"),a==="latency"?2:5;return 0}function Ba(n,a,c){if(a.score!==n.score)return a.score-n.score;let r=xn(n)??Number.POSITIVE_INFINITY,e=xn(a)??Number.POSITIVE_INFINITY;if(c==="latency")return r-e;if(c==="coding")return e-r;let m=14;return Math.abs(r-m)-Math.abs(e-m)}function jn(n,a){return n.map((c)=>{let r=$t(c),e=[],m=0;if(Cn(r,Nt))m-=40,e.push("not a chat-first model");if(Cn(r,Ka))m+=a==="coding"?24:a==="balanced"?10:4,e.push("coding-oriented model family");if(Cn(r,Ea))m+=a==="latency"?4:a==="coding"?6:8,e.push("strong general-purpose model family");if(Cn(r,Ua))m+=a==="latency"?2:6,e.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))m-=2,e.push("vision model adds extra overhead");m+=xa(xn(c),a,e),m+=ja(c,a,e);let _=e.slice(0,3).join(", ");return{...c,score:m,reasons:e,summary:_}}).sort((c,r)=>Ba(c,r,a))}function Mt(n,a){return Pa(jn(n,a))}var Ka,Ea,Ua,Nt;var Tt=v(()=>{Ka=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Ea=["llama","qwen","mistral","gemma","phi","deepseek"],Ua=["instruct","chat","assistant"],Nt=["embed","embedding","rerank","bge","whisper"]});function va(n){let a=n.toLowerCase();return Da.some((c)=>a.includes(c))}function Bn(n){try{let a=new URL(n);if(a.username)a.username="redacted";if(a.password)a.password="redacted";for(let c of a.searchParams.keys())if(va(c))a.searchParams.set(c,"redacted");return a.toString()}catch{return n.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Da;var Ft=v(()=>{Da=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function cc(n){let a=`http://localhost:${n.port}/auth/callback`,c=new URL(`${vn}/oauth/authorize`);return c.searchParams.append("response_type","code"),c.searchParams.append("client_id",nt()),c.searchParams.append("redirect_uri",a),c.searchParams.append("scope",Vt),c.searchParams.append("code_challenge",n.codeChallenge),c.searchParams.append("code_challenge_method","S256"),c.searchParams.append("id_token_add_organizations","true"),c.searchParams.append("codex_cli_simplified_flow","true"),c.searchParams.append("state",n.state),c.searchParams.append("originator",Yt),c.toString()}function uc(){return`<!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Codex Login Complete</title>
6
- <style>
7
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
- h1 { margin: 0 0 12px; font-size: 22px; }
9
- p { margin: 0 0 10px; }
10
- </style>
11
- </head>
12
- <body>
13
- <h1>Codex login complete</h1>
14
- <p>You can return to Claudin now.</p>
15
- <p>Claudin will finish activating your new Codex OAuth login.</p>
16
- </body>
17
- </html>`}function hc(n){return`<!doctype html>
18
- <html lang="en">
19
- <head>
20
- <meta charset="utf-8" />
21
- <title>Codex Login Failed</title>
22
- <style>
23
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
- h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
- p { margin: 0 0 10px; }
26
- </style>
27
- </head>
28
- <body>
29
- <h1>Codex login failed</h1>
30
- <p>${Xt(n)}</p>
31
- <p>You can close this window and try again in Claudin.</p>
32
- </body>
33
- </html>`}function Gt(){return`<!doctype html>
34
- <html lang="en">
35
- <head>
36
- <meta charset="utf-8" />
37
- <title>Codex Login Cancelled</title>
38
- <style>
39
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
- h1 { margin: 0 0 12px; font-size: 22px; }
41
- p { margin: 0 0 10px; }
42
- </style>
43
- </head>
44
- <body>
45
- <h1>Codex login cancelled</h1>
46
- <p>You can close this window and retry in Claudin.</p>
47
- </body>
48
- </html>`}async function oc(n){let a=`http://localhost:${n.port}/auth/callback`,c=new URLSearchParams({grant_type:"authorization_code",code:n.authorizationCode,redirect_uri:a,client_id:nt(),code_verifier:n.codeVerifier}),r=await fetch(`${vn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c,signal:n.signal?AbortSignal.any([n.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let k=await r.text().catch(()=>"");throw Error(k.trim()?`Codex OAuth token exchange failed (${r.status}): ${k.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let e=await r.json(),m=Ln(e.access_token),_=Ln(e.refresh_token);if(!m||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let z=Ln(e.id_token);return{apiKey:z?await Ht(z).catch(()=>{return}):void 0,accessToken:m,refreshToken:_,idToken:z,accountId:Dn(z)??Dn(m)}}class tt{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(n){let a=Zt(),c=Qt(),r=new Jt("/auth/callback");this.authCodeListener=r,this.port=null;try{let e=await r.start(c);this.port=e;let m=Et(),_=await Kt(a),z=cc({port:e,codeChallenge:_,state:m});try{let L=await r.waitForAuthorization(m,async()=>{await n(z)}),k=new AbortController;this.tokenExchangeAbortController=k;let R;try{R=await oc({authorizationCode:L,codeVerifier:a,port:e,signal:k.signal})}finally{if(this.tokenExchangeAbortController===k)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(N)=>{N.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),N.end(uc())}),R}catch(L){let k=this.authCodeListener===r?L:this.buildCancellationError();if(r.hasPendingResponse()){let R=k instanceof Error&&k.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((N)=>{N.writeHead(R?200:400,{"Content-Type":"text/html; charset=utf-8"}),N.end(R?Gt():hc(k instanceof Error?k.message:String(k)))})}throw k}finally{this.cleanup()}}catch(e){let m=e instanceof Error?e.message:String(e);if(m.includes("EADDRINUSE")||m.includes(String(c)))throw Error(`Codex OAuth needs localhost:${c} for its callback. Close any app already using that port and try again.`);throw e}}cleanup(){let n=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(n),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((a)=>{a.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),a.end(Gt())});this.authCodeListener?.cancelPendingAuthorization(n),this.authCodeListener=null,this.port=null}}var Ut=v(()=>{tc();ac();nc()});function lc(){return new tt}function jt(n){let{onAuthenticated:a}=n,c=n.deps?.createOAuthService??lc,r=n.deps?.openBrowser??xt,e=n.deps?.saveCodexCredentials??Pt,m=n.deps?.isBareMode??bn,[_,z]=Nn.useState({state:"starting"});return Nn.useEffect(()=>{if(m()){z({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let L=!1,k=c();return k.startOAuthFlow(async(R)=>{if(L)return;z({state:"waiting",authUrl:R,browserOpened:null});let N=await r(R);if(L)return;z({state:"waiting",authUrl:R,browserOpened:N})}).then(async(R)=>{if(L)return;await a(R,(on)=>{let A=e({apiKey:R.apiKey,accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,accountId:R.accountId,profileId:on?.profileId});if(!A.success)throw Error(A.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(L)return;z({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{L=!0,k.cleanup()}},[c,m,a,r,e]),_}var Nn;var Bt=v(()=>{Ut();rc();It();Wt();Nn=Pn(In(),1)});function qc(n){return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function Sc(n){let a=Fn(n);return{name:a.name,baseUrl:a.baseUrl,model:a.model,apiKey:a.apiKey??""}}function Lc(n){let a={};for(let c of n.split(/\r?\n/)){let r=c.trim();if(!r)continue;let e=r.indexOf(":");if(e<=0)continue;let m=r.slice(0,e).trim(),_=r.slice(e+1).trim();if(m&&_)a[m]=_}return a}function Nc(n){if(!n)return"";return Object.entries(n).map(([a,c])=>`${a}: ${c}`).join(`
49
- `)}function $c(n,a){let c={},r=n.awsRegion?.trim();if(r)c.awsRegion=r;let e=n.gcpProject?.trim();if(e)c.gcpProject=e;let m=n.gcpRegion?.trim();if(m)c.gcpRegion=m;let _=n.azureResource?.trim();if(_)c.azureResource=_;let z=Lc(a);if(Object.keys(z).length>0)c.customHeaders=z;return Object.keys(c).length>0?c:void 0}function Tc(n,a){let c=a?" (active)":"",r=n.apiKey?"key set":"no key",e=n.provider==="anthropic"?"anthropic":"openai-compatible",m=vt(n.model),_=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${e} · ${n.baseUrl} · ${_} · ${r}${c}`}function Fc(n,a){if(n.state==="unreachable")return`Could not reach Atomic Chat at ${Bn(a)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(n.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function Gc(n,a){if(n.state==="unreachable")return`Could not reach Ollama at ${Bn(a)}. Start Ollama first, or enter the endpoint manually.`;if(n.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(n.state==="generation_failed"){let c=n.probeModel??"the selected model",r=n.detail?` Details: ${n.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${c}.${r} Run "ollama run ${c}" once and retry, or enter details manually.`}return""}function at(n,a){if(!a)return;return n.find((c)=>c.id===a)}function Dt(n,a){return Boolean(n&&a&&n.id===a)}function Vc({onBack:n,onConfigured:a}){let c=s.useCallback(async(e,m)=>{await a(e,m)},[a]);hn("confirm:no",n,[n]);let r=jt({onAuthenticated:c});if(r.state==="error")return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"error",bold:!0,children:"Codex OAuth failed"}),h(o,{children:r.message}),h(o,{dimColor:!0,children:"Press Enter or Esc to go back."}),h(G,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:n,onCancel:n,visibleOptionCount:1})]});return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Codex OAuth"}),h(o,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?h(o,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?C(yn,{children:[h(o,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),h(o,{children:r.authUrl})]}):r.browserOpened===!0?C(yn,{children:[h(o,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),h(o,{children:r.authUrl})]}):h(o,{dimColor:!0,children:"Opening your browser..."}),h(o,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ku({mode:n,onDone:a}){let c=ua(),[r,e]=s.useState([]),[m,_]=s.useState(),[z,L]=s.useState(),[k,R]=s.useState(!1),[N,on]=s.useState(),A=s.useRef(0),[p,y]=s.useState(n==="first-run"?"select-preset":"menu"),[H,Gn]=s.useState(null),[it,et]=s.useState("openai"),[T,K]=s.useState(()=>Sc("ollama")),[Vn,On]=s.useState({}),[mt,Yn]=s.useState(""),[ia,ea]=s.useState(0),[ma,da]=s.useState(0),[Qn,dt]=s.useState(null),[I,rn]=s.useState(0),[x,E]=s.useState(0),[sa,U]=s.useState(0),[st,S]=s.useState(),[j,O]=s.useState(),[ya,Ca]=s.useState(),[yt,zn]=s.useState(!1),[ln,en]=s.useState(),[J,Rn]=s.useState({state:"idle"}),[Z,An]=s.useState({state:"idle"}),[ba,ga]=s.useState(!0),[wa,Y]=s.useState(!1),Xn=s.useRef(!1),[Hn,Jn]=s.useState(()=>wn()),[Ct,Oa]=s.useState(()=>ra());s.useEffect(()=>{queueMicrotask(()=>{let t=P(),u=Q()?.id;e(t),_(u),L($n()),on(ct()),R(gn()),ga(!1)})},[]);let B=tn[x]??tn[0],_n=B.key,za=T[_n],Zn=r.length>0,fn=Zn,bt=s.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...Hn?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:N?`Currently: ${r.find((t)=>t.id===N)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!fn},{value:"activate-project",label:"Set active provider (Project)",description:z?`Currently: ${r.find((t)=>t.id===z)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!fn},...k?[{value:"clear-project-override",label:"Clear project provider override",description:z?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!Zn},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!fn},...yt?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[fn,Zn,yt,Hn,N,z,r]),Kn=s.useCallback(()=>{if(bn()){A.current+=1,zn(!1),en(void 0);return}let t=++A.current;(async()=>{let u=await ot();if(t!==A.current)return;zn(Boolean(u?.apiKey||u?.accessToken||u?.refreshToken||u?.idToken)),en(u?.profileId)})()},[]);s.useEffect(()=>{return Kn(),()=>{A.current+=1}},[Kn]),s.useEffect(()=>{if(p!=="select-ollama-model")return;let t=!1;return Rn({state:"loading"}),(async()=>{let u=await oa({baseUrl:T.baseUrl});if(u.state!=="ready"){if(!t)Rn({state:"unavailable",message:Gc(u,T.baseUrl)});return}let i=jn(u.models,"balanced"),l=Mt(u.models,"balanced");if(!t)Rn({state:"ready",defaultValue:l?.name??i[0]?.name,options:i.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{t=!0}},[T.baseUrl,p]),s.useEffect(()=>{if(p!=="select-atomic-chat-model")return;let t=!1;return An({state:"loading"}),(async()=>{let u=await ha({baseUrl:T.baseUrl});if(u.state!=="ready"){if(!t)An({state:"unavailable",message:Fc(u,T.baseUrl)});return}if(!t)An({state:"ready",defaultValue:u.models[0],options:u.models.map((i)=>({label:i,value:i}))})})(),()=>{t=!0}},[T.baseUrl,p]);function $(){if(Xn.current)return;Xn.current=!0,queueMicrotask(()=>{let t=P();e(t),_(Q()?.id),L($n()),on(ct()),R(gn()),Kn(),Xn.current=!1})}function D(){return null}function En(t){if(t.activationWarning)return`${t.prefix}. Saved for next startup. Warning: ${t.warnings.join("; ")}.`;if(t.warnings.length>0)return`${t.prefix}. Claudin switched to it for this session with warnings: ${t.warnings.join("; ")}.`;return`${t.prefix}. Claudin switched to it for this session.`}async function Un(t){if(t?.accessToken&&t.accountId)return null;let u=await ot();if(!u)return"stored Codex OAuth credentials could not be loaded";if(!u.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function gt(){ca()}async function Ra(t){let u="provider";Y(!0),S("Activating provider...");try{await new Promise((mn)=>queueMicrotask(mn));let i=gn(),l=sn(t);if(!l){O("Could not change active provider."),Y(!1),f();return}let d=i?Q()??l:l,b=cn(d.model);if(!i)c((mn)=>({...mn,mainLoopModel:b,mainLoopModelForSession:null}));u=l.name;let g=D(),F=Dt(l,ln),q=F?await Un():null;$();let V=i&&d.id!==l.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",X=F?En({prefix:`Active provider: ${l.name}${V}`,activationWarning:q,warnings:[q,g?`could not clear startup provider override (${g})`:null].filter((mn)=>Boolean(mn))}):g?`Active provider: ${l.name}${V}. Warning: could not clear startup provider override (${g}).`:`Active provider: ${l.name}${V}`;S(X),Y(!1),a({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:b,message:`Provider switched to ${l.name} (${b})`}),f()}catch(i){$(),S(void 0),Y(!1);let l=i instanceof Error?i.message:String(i);O(`Could not finish activating ${u}: ${l}`),f()}}async function Aa(){Y(!0),S("Clearing project provider override...");try{await new Promise((u)=>queueMicrotask(u)),ut(null),$();let t=Q();if(t){let u=cn(t.model);un(),c((i)=>({...i,mainLoopModel:u,mainLoopModelForSession:null})),S(`Project override cleared. Using global default: ${t.name}.`),Y(!1),a({action:"activated",activeProfileId:t.id,activeProviderName:t.name,activeProviderModel:u,message:`Project override cleared — using ${t.name} (${u})`}),f()}else S("Project provider override cleared. No global default set."),Y(!1),a({action:"saved",message:"Project provider override cleared. No global default set."}),f()}catch(t){$(),S(void 0),Y(!1);let u=t instanceof Error?t.message:String(t);O(`Could not clear project provider override: ${u}`),f()}}async function _a(t){let u="provider";Y(!0),S("Setting provider for this project...");try{await new Promise((X)=>queueMicrotask(X));let i=$n(),l=ut(t);if(!l){O("Could not set project provider override."),Y(!1),f();return}let d=cn(l.model);if(i===l.id)un();c((X)=>({...X,mainLoopModel:d,mainLoopModelForSession:null})),u=l.name;let b=D(),g=Dt(l,ln),F=g?await Un():null;$();let q=`Active provider for this project: ${l.name}. Other projects keep the global default.`,V=g?En({prefix:q,activationWarning:F,warnings:[F,b?`could not clear startup provider override (${b})`:null].filter((X)=>Boolean(X))}):b?`${q} Warning: could not clear startup provider override (${b}).`:q;S(V),Y(!1),a({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:d,message:`Provider switched to ${l.name} (${d}) for this project`}),f()}catch(i){$(),S(void 0),Y(!1);let l=i instanceof Error?i.message:String(i);O(`Could not finish setting ${u} for this project: ${l}`),f()}}function f(){Ca("done"),y("menu")}function kn(t){a({action:"cancelled",message:t})}function fa(t){let u=Fn(t),i={name:u.name,baseUrl:u.baseUrl,model:u.model,apiKey:u.apiKey??""};if(Gn(null),et(u.provider??"openai"),K(i),On({}),Yn(""),dt(t),E(0),rn(0),U(i.name.length),O(void 0),t==="ollama"){Rn({state:"loading"}),y("select-ollama-model");return}if(t==="atomic-chat"){An({state:"loading"}),y("select-atomic-chat-model");return}if(t==="anthropic"){y("anthropic-auth-choice");return}if(t==="bedrock"||t==="vertex"||t==="foundry"){y("cloud-extras");return}y("form")}function ka(t){let u=r.find((l)=>l.id===t);if(!u)return;let i=qc(u);Gn(t),et(u.provider??"openai"),K(i),On({awsRegion:u.extras?.awsRegion,gcpProject:u.extras?.gcpProject,gcpRegion:u.extras?.gcpRegion,azureResource:u.extras?.azureResource}),Yn(Nc(u.extras?.customHeaders)),dt(null),E(0),rn(0),U(i.name.length),O(void 0),y("form")}function pn(t=T){let u=$c(Vn,mt),i={provider:it,name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey,extras:u},l=H?dn(H,i):nn(i,{makeActive:!0});if(!l){O("Could not save provider. Fill all required fields.");return}let d=Q()?.id===l.id;if(d)un(),c((V)=>({...V,mainLoopModel:cn(l.model),mainLoopModelForSession:null}));let b=d?D():null;$();let g=!H&&gn()&&!d,F=g?Q()?.name??"override target":null,q=H?`Updated provider: ${l.name}`:g?`Added provider: ${l.name} (now global default — project keeps using ${F}; use "Clear project provider override" to apply here)`:`Added provider: ${l.name} (now active)`;if(S(b?`${q}. Warning: could not clear startup provider override (${b}).`:q),n==="first-run"){a({action:"saved",activeProfileId:l.id,message:`Provider configured: ${l.name}`});return}Gn(null),E(0),O(void 0),f()}function pa(){if(Z.state==="loading"||Z.state==="idle")return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),h(o,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(Z.state==="unavailable")return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Atomic Chat setup"}),h(o,{dimColor:!0,children:Z.message}),h(G,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(t)=>{if(t==="manual"){E(0),U(T.name.length),y("form");return}y("select-preset")},onCancel:()=>y("select-preset"),visibleOptionCount:2})]});return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),h(o,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),h(G,{options:Z.options,defaultValue:Z.defaultValue,defaultFocusValue:Z.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Z.options.length),onChange:(t)=>{let u={...T,model:t};K(u),pn(u)},onCancel:()=>y("select-preset")})]})}function qa(){if(J.state==="loading"||J.state==="idle")return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Checking Ollama"}),h(o,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(J.state==="unavailable")return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Ollama setup"}),h(o,{dimColor:!0,children:J.message}),h(G,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(t)=>{if(t==="manual"){E(0),U(T.name.length),y("form");return}y("select-preset")},onCancel:()=>y("select-preset"),visibleOptionCount:2})]});return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Choose an Ollama model"}),h(o,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),h(G,{options:J.options,defaultValue:J.defaultValue,defaultFocusValue:J.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,J.options.length),onChange:(t)=>{let u={...T,model:t};K(u),pn(u)},onCancel:()=>y("select-preset")})]})}function Sa(t){let u=t.trim();if(!B.optional&&u.length===0){O(`${B.label} is required.`);return}let i={...T,[_n]:u};if(K(i),O(void 0),x<tn.length-1){let l=x+1,d=tn[l]?.key??"name";E(l),U(i[d].length);return}if((Qn==="anthropic"||Qn==="custom")&&p==="form"){K(i),y("custom-headers");return}pn(i)}function La(){if(O(void 0),x>0){let t=x-1,u=tn[t]?.key??"name";E(t),U(T[u].length);return}if(n==="first-run"){y("select-preset");return}f()}hn("confirm:no",La,{context:"Settings",isActive:p==="form"});function Na(){if(O(void 0),I>0){rn(I-1);return}y("select-preset")}hn("confirm:no",Na,{context:"Settings",isActive:p==="cloud-extras"}),hn("confirm:no",()=>y("form"),{context:"Settings",isActive:p==="custom-headers"}),hn("confirm:no",()=>y("select-preset"),{context:"Settings",isActive:p==="anthropic-auth-choice"||p==="anthropic-oauth"});function $a(){let t=!bn(),u=[...Hn?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},...t?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...n==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:n==="first-run"?"Set up provider":"Choose provider preset"}),h(o,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),h(G,{options:u,onChange:(i)=>{if(i==="skip"){kn("Provider setup skipped");return}if(i==="codex-oauth"){y("codex-oauth");return}if(i==="github-onboard"){y("github-onboard");return}if(i==="import-legacy"){(async()=>{let l=await lt({force:!0});Jn(wn()),$();let d=Tn(l);if(l.errors.length>0){O(d);return}let b=Q();if(n==="first-run"&&b){a({action:"saved",activeProfileId:b.id,activeProviderName:b.name,activeProviderModel:b.model,message:d});return}if(S(d),O(void 0),n==="manage")f()})();return}fa(i)},onCancel:()=>{if(n==="first-run"){kn("Provider setup skipped");return}f()},visibleOptionCount:Math.min(13,u.length)})]})}function Ma(){return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),h(o,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),h(G,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(t)=>{if(t==="oauth"){y("anthropic-oauth");return}if(t==="apiKey"){y("form");return}y("select-preset")},onCancel:()=>y("select-preset"),visibleOptionCount:3})]})}function Ta(){let t=(Rc(),ic(zc)).ConsoleOAuthFlow;return h(w,{flexDirection:"column",gap:1,children:h(t,{mode:"login",onDone:()=>{let u=Fn("anthropic"),i={provider:"anthropic",name:u.name,baseUrl:u.baseUrl,model:u.model},l=nn(i,{makeActive:!0});if(!l){O("OAuth completed, but the Anthropic profile could not be saved."),y("select-preset");return}let d=`Anthropic OAuth configured: ${l.name}`;if($(),n==="first-run"){a({action:"saved",activeProfileId:l.id,message:d});return}S(d),O(void 0),f()}})})}function Fa(){let t=Qn;if(t!=="bedrock"&&t!=="vertex"&&t!=="foundry")return null;let u=Mc[t],i=u[I]??u[0],l=Vn[i.key]??"";function d(b){let g=b.trim();if(g.length===0){O(`${i.label} is required.`);return}let F={...Vn,[i.key]:g};if(On(F),O(void 0),I<u.length-1){rn(I+1);return}rn(0),y("form")}return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:`${t==="bedrock"?"AWS Bedrock":t==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),h(o,{dimColor:!0,children:i.helpText}),C(o,{dimColor:!0,children:["Step ",I+1," of ",u.length,": ",i.label]}),C(w,{flexDirection:"row",gap:1,children:[h(o,{children:an.pointer}),h(Mn,{value:l,onChange:(b)=>On((g)=>({...g,[i.key]:b})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${i.placeholder}${an.ellipsis}`,columns:80,cursorOffset:ia,onChangeCursorOffset:ea})]}),j&&h(o,{color:"error",children:j}),h(o,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Ga(){return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Custom headers (optional)"}),C(o,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",h(o,{children:"Header: Value"}),". Leave empty to skip."]}),C(w,{flexDirection:"row",gap:1,children:[h(o,{children:an.pointer}),h(Mn,{value:mt,onChange:Yn,onSubmit:()=>pn(T),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:ma,onChangeCursorOffset:da})]}),j&&h(o,{color:"error",children:j}),h(o,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function Va(){return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:H?"Edit provider profile":"Create provider profile"}),h(o,{dimColor:!0,children:B.helpText}),C(o,{dimColor:!0,children:["Provider type:"," ",it==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),C(o,{dimColor:!0,children:["Step ",x+1," of ",tn.length,": ",B.label]}),C(w,{flexDirection:"row",gap:1,children:[h(o,{children:an.pointer}),h(Mn,{value:za,onChange:(t)=>K((u)=>({...u,[_n]:t})),onSubmit:Sa,focus:!0,showCursor:!0,placeholder:`${B.placeholder}${an.ellipsis}`,mask:_n==="apiKey"?"*":void 0,columns:80,cursorOffset:sa,onChangeCursorOffset:U})]}),j&&h(o,{color:"error",children:j}),h(o,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Ya(){let t=r.length>0,u=t;return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Provider manager"}),h(o,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),st&&h(o,{children:st}),h(w,{flexDirection:"column",children:r.length===0?h(o,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((i)=>C(o,{dimColor:!0,children:["- ",i.name,": ",Tc(i,i.id===m)]},i.id))}),h(G,{options:bt,onChange:(i)=>{switch(O(void 0),i){case"add":y("select-preset");break;case"import-legacy":{(async()=>{let l=await lt({force:!0});if(Jn(wn()),$(),l.errors.length>0)O(Tn(l));else S(Tn(l))})();break}case"activate":if(u)y("select-active");break;case"activate-project":if(u)y("select-active-project");break;case"clear-project-override":Aa();break;case"edit":if(t)y("select-edit");break;case"delete":if(u)y("select-delete");break;case"logout-codex-oauth":{let l=rt();if(!l.success){O(l.warning??"Could not clear Codex OAuth credentials.");break}zn(!1),en(void 0);let d=at(P(),ln),b=null;if(d){let g=ht(d.id);if(!g.removed){O("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),$();break}gt(),b=g.activeProfileId?D():null}$(),S(b?`Codex OAuth logged out. Warning: could not clear startup provider override (${b}).`:"Codex OAuth logged out.");break}default:kn("Provider manager closed");break}},onCancel:()=>kn("Provider manager closed"),defaultFocusValue:ya,visibleOptionCount:bt.length})]})}function qn(t,u,i){let l=r.map((d)=>{let b=[];if(d.id===m)b.push("active");if(z&&d.id===z)b.push("this project");if(N&&d.id===N)b.push("global default");let g=b.length>0?` (${b.join(", ")})`:"";return{value:d.id,label:`${d.name}${g}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(l.length===0)return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:t}),h(o,{dimColor:!0,children:u}),h(G,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>f(),onCancel:()=>f(),visibleOptionCount:1})]});return C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:t}),h(G,{options:l,onChange:i,onCancel:()=>f(),visibleOptionCount:Math.min(10,Math.max(2,l.length))})]})}let M;switch(p){case"select-preset":M=$a();break;case"select-ollama-model":M=qa();break;case"select-atomic-chat-model":M=pa();break;case"codex-oauth":M=h(Vc,{onBack:()=>y("select-preset"),onConfigured:async(t,u)=>{let i={provider:"openai",name:kc,baseUrl:na,model:pc,apiKey:""},l=at(P(),ln),d=l?dn(l.id,i):nn(i,{makeActive:!0});if(!d){O("Codex OAuth login finished, but the provider profile could not be saved."),f();return}let b=l&&m!==d.id?sn(d.id):d;if(!b){O("Codex OAuth login finished, but the provider could not be set as the startup provider."),f();return}u({profileId:d.id});let g=D(),F=await Un(t);zn(!0),en(d.id),$();let q=[F,g?`could not clear startup provider override (${g})`:null].filter((X)=>Boolean(X)),V=En({prefix:"Codex OAuth configured",activationWarning:F,warnings:q});if(n==="first-run"){a({action:"saved",activeProfileId:b.id,message:V});return}S(V),O(void 0),f()}});break;case"github-onboard":M=h(St,{onDone:(t)=>{if(t)S(t),O(void 0);$(),f()},onBack:()=>y("select-preset"),onChangeAPIKey:$});break;case"anthropic-auth-choice":M=Ma();break;case"anthropic-oauth":M=Ta();break;case"cloud-extras":M=Fa();break;case"custom-headers":M=Ga();break;case"form":M=Va();break;case"select-active":M=qn("Set active provider (Global)","No providers available. Add one first.",(t)=>{Ra(t)});break;case"select-active-project":M=qn("Set active provider (Project)","No providers available. Add one first.",(t)=>{_a(t)});break;case"select-edit":M=qn("Edit provider","No providers available. Add one first.",(t)=>{ka(t)});break;case"select-delete":M=qn("Delete provider","No providers available. Add one first.",(t)=>{let u=r.find((g)=>g.id===t),i=u?.provider==="openai"&&u?.extras?.githubToken!==void 0,l=at(r,ln)?.id===t,d=Q()?.id===t,b=ht(t);if(!b.removed)O("Could not delete provider.");else{let g=[];if(l){let q=rt();if(!q.success)g.push(q.warning??"could not clear Codex OAuth credentials");else en(void 0);gt()}if(i){let q=aa();if(!q.success)g.push(q.warning??"could not clear GitHub Copilot token")}let F=b.activeProfileId?D():null;if(F)g.push(`could not clear startup provider override (${F})`);if($(),d){let q=Q();if(q)un(),c((V)=>({...V,mainLoopModel:cn(q.model),mainLoopModelForSession:null}));else un(),c((V)=>({...V,mainLoopModel:null,mainLoopModelForSession:null}))}S(g.length>0?`Provider deleted. Warning: ${g.join("; ")}.`:"Provider deleted")}f()});break;case"menu":default:M=Ya();break}return C(ta,{color:"permission",children:[h(la,{enabled:Ct,onDismiss:(t)=>{Jn(wn()),Oa(!1),$();let u=Q();if(t==="migrated"&&n==="first-run"&&u)a({action:"saved",activeProfileId:u.id,activeProviderName:u.name,activeProviderModel:u.model})}}),Ct?null:ba?C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Loading providers..."}),h(o,{dimColor:!0,children:"Reading provider profiles from disk."})]}):wa?C(w,{flexDirection:"column",gap:1,children:[h(o,{color:"remember",bold:!0,children:"Activating provider..."}),h(o,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):M]})}var s,tn,kc="Codex OAuth",pc="codexplan",Mc;var Yc=v(()=>{ec();Lt();dc();Ot();sc();bc();Ac();It();Wt();mc();Cc();wt();pt();gc();Tt();Ft();Oc();yc();fc();wc();Bt();_c();Sn();s=Pn(In(),1),tn=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0}];Mc={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
- export{Bn as gd,Ft as hd,Lc as id,ku as jd,Yc as kd};
@@ -1,2 +0,0 @@
1
- import{Ai as W,IK as O,JK as P,KK as Q,LK as U,OK as X,zi as M}from"./cli-0.5.7-q2e6xpch.mjs";import{Zma as V}from"./cli-0.5.7-258ytmbr.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
- export{F as pf,$ as qf};
@@ -1,2 +0,0 @@
1
- import{Jw as U,Kw as V,Nw as f,es as R,fs as T,gs as $}from"./cli-0.5.7-q2e6xpch.mjs";import{l1 as Q,m1 as _}from"./cli-0.5.7-8ychjqct.mjs";import{B6 as G,J6 as Y,b9 as L,i9 as Z}from"./cli-0.5.7-469r2a5r.mjs";import{Zma as X}from"./cli-0.5.7-258ytmbr.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Y();Z();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
2
- export{O as Kb,S as Lb,I as Mb,N as Nb,P as Ob,h as Pb};
@@ -1,2 +0,0 @@
1
- import{Zma as aH}from"./cli-0.5.7-258ytmbr.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 _3,s as $3,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 A4,OJ as B4,MJ as C4,$C as D4,nH as E4,oC as F4,LJ as G4,PJ as H4,jJ as I4,GJ as J4,TJ as K4,VJ as L4,ZJ as M4,UJ as N4,IJ as O4,AJ as P4,DJ as Q4,XJ as R4};
@@ -1,4 +0,0 @@
1
- import{Nc as c,Tc as Eq}from"./cli-0.5.7-m82d23hf.mjs";import{AH as v,AI as vq,BH as m,BI as y,CI as Qq,DH as Oq,DI as Xq,EI as Yq,FI as $q,GI as d,JI as Dq,Qm as s,Rm as Tq,Um as t,WH as n,Wm as Mq,_m as i,aI as e,an as Rq,bI as P,en as A,fI as jq,gI as O,gn as D,hI as qq,hn as Aq,hr as l,in as h,ir as wq,jI as I,jn as S,kI as Gq,kn as Fq,qI as Cq,tI as b,uI as Lq,xI as Hq,yI as Jq}from"./cli-0.5.7-q2e6xpch.mjs";import{B6 as a,E$ as F,G$ as L,J6 as Kq,T$ as Bq,Z_ as V,f$ as _q}from"./cli-0.5.7-469r2a5r.mjs";import{Bfa as p,Ffa as Wq}from"./cli-0.5.7-twqt7rxq.mjs";import{Fga as o,Iga as N,Nga as Uq}from"./cli-0.5.7-skfm51ta.mjs";import{ima as xq,xia as f}from"./cli-0.5.7-hp25yk8y.mjs";import{Zma as Zq}from"./cli-0.5.7-258ytmbr.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Kq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();Bq();_q();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as Ac,HG as Bc,JG as Cc,QG as Dc,kq as Ec,XG as Fc,YG as Gc,$G as Hc,zG as Ic,ZG as Jc,xG as Kc,hq as Lc};
@@ -1,2 +0,0 @@
1
- var o=()=>null,t=o,l=o;
2
- export{l as kb,t as lb};