@claudiolabs/claudin 0.5.7 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (842) hide show
  1. package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +1 -0
  2. package/dist/chunks/App-0.5.8-s4939y9q.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +1 -0
  29. package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +3 -0
  30. package/dist/chunks/agents-0.5.8-qg1s69va.mjs +110 -0
  31. package/dist/chunks/api-0.5.8-pcde65dc.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +1 -0
  34. package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +1 -0
  35. package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +1 -0
  39. package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +1 -0
  41. package/dist/chunks/btw-0.5.8-0yftty6m.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +4 -0
  46. package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +1 -0
  49. package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +1 -0
  51. package/dist/chunks/cli-0.5.8-01yjahnz.mjs +2 -0
  52. package/dist/chunks/cli-0.5.8-07dyymev.mjs +2 -0
  53. package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +2 -0
  54. package/dist/chunks/cli-0.5.8-0bys4xae.mjs +2 -0
  55. package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +2 -0
  56. package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +2 -0
  57. package/dist/chunks/cli-0.5.8-0hybhk72.mjs +2 -0
  58. package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +2 -0
  59. package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +2 -0
  60. package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +2 -0
  61. package/dist/chunks/cli-0.5.8-1heha1zs.mjs +2 -0
  62. package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +2 -0
  63. package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +2 -0
  64. package/dist/chunks/cli-0.5.8-221e7v67.mjs +2 -0
  65. package/dist/chunks/cli-0.5.8-23ep6z70.mjs +2 -0
  66. package/dist/chunks/cli-0.5.8-2bq72da9.mjs +2 -0
  67. package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +2 -0
  68. package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +2 -0
  69. package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +2 -0
  70. package/dist/chunks/cli-0.5.8-396k3ymm.mjs +25 -0
  71. package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +58 -0
  72. package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +2 -0
  73. package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +2 -0
  74. package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +2 -0
  75. package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +2 -0
  76. package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +2 -0
  77. package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +2 -0
  78. package/dist/chunks/cli-0.5.8-402vctdy.mjs +2 -0
  79. package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +2 -0
  80. package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +5286 -0
  81. package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +9 -0
  82. package/dist/chunks/cli-0.5.8-4mn881k7.mjs +2 -0
  83. package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +2 -0
  84. package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +6 -0
  85. package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +8 -0
  86. package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +2 -0
  87. package/dist/chunks/cli-0.5.8-510vqc09.mjs +4 -0
  88. package/dist/chunks/cli-0.5.8-57qan5v8.mjs +2 -0
  89. package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +2 -0
  90. package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +2 -0
  91. package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +2 -0
  92. package/dist/chunks/cli-0.5.8-5h92528m.mjs +4 -0
  93. package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +2 -0
  94. package/dist/chunks/cli-0.5.8-60e57smp.mjs +2 -0
  95. package/dist/chunks/cli-0.5.8-665mfjfq.mjs +5 -0
  96. package/dist/chunks/cli-0.5.8-69frkjjq.mjs +2 -0
  97. package/dist/chunks/cli-0.5.8-69swpyae.mjs +2 -0
  98. package/dist/chunks/cli-0.5.8-6epmns99.mjs +2 -0
  99. package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +3 -0
  100. package/dist/chunks/cli-0.5.8-6t480jt6.mjs +2 -0
  101. package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +2 -0
  102. package/dist/chunks/cli-0.5.8-78y711gq.mjs +7 -0
  103. package/dist/chunks/cli-0.5.8-7fm71y20.mjs +2 -0
  104. package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +3 -0
  105. package/dist/chunks/cli-0.5.8-7teqphwt.mjs +2 -0
  106. package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +2 -0
  107. package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +2 -0
  108. package/dist/chunks/cli-0.5.8-8b40nd32.mjs +3 -0
  109. package/dist/chunks/cli-0.5.8-8c0hade9.mjs +2 -0
  110. package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +2 -0
  111. package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +24 -0
  112. package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +2 -0
  113. package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +4 -0
  114. package/dist/chunks/cli-0.5.8-903jgg2t.mjs +2 -0
  115. package/dist/chunks/cli-0.5.8-959n5v33.mjs +44 -0
  116. package/dist/chunks/cli-0.5.8-96p83b7z.mjs +2 -0
  117. package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +2 -0
  118. package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +2 -0
  119. package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +2 -0
  120. package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +2 -0
  121. package/dist/chunks/cli-0.5.8-a03sqccb.mjs +2 -0
  122. package/dist/chunks/cli-0.5.8-at01jfw3.mjs +2 -0
  123. package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +2 -0
  124. package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +2 -0
  125. package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +2 -0
  126. package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +67 -0
  127. package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +18 -0
  128. package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +2 -0
  129. package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +2 -0
  130. package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +2 -0
  131. package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +12 -0
  132. package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +2 -0
  133. package/dist/chunks/cli-0.5.8-cctz1t07.mjs +2 -0
  134. package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +2 -0
  135. package/dist/chunks/cli-0.5.8-chb0m9py.mjs +17 -0
  136. package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +15 -0
  137. package/dist/chunks/cli-0.5.8-cm551a1y.mjs +2 -0
  138. package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +2 -0
  139. package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +2 -0
  140. package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +2 -0
  141. package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +2 -0
  142. package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +2 -0
  143. package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +39 -0
  144. package/dist/chunks/cli-0.5.8-edf7e65a.mjs +2 -0
  145. package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +133 -0
  146. package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +3 -0
  147. package/dist/chunks/cli-0.5.8-et8r95zv.mjs +15 -0
  148. package/dist/chunks/cli-0.5.8-etf1n11s.mjs +2 -0
  149. package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +3 -0
  150. package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +34 -0
  151. package/dist/chunks/cli-0.5.8-f1znt77k.mjs +2 -0
  152. package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +4 -0
  153. package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +2 -0
  154. package/dist/chunks/cli-0.5.8-fhebd13f.mjs +12 -0
  155. package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +18 -0
  156. package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +4 -0
  157. package/dist/chunks/cli-0.5.8-gf6svxra.mjs +27 -0
  158. package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +2 -0
  159. package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +3 -0
  160. package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +2 -0
  161. package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +21 -0
  162. package/dist/chunks/cli-0.5.8-haddssvq.mjs +17 -0
  163. package/dist/chunks/cli-0.5.8-he3sfaey.mjs +2 -0
  164. package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +2 -0
  165. package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +2 -0
  166. package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +2 -0
  167. package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +2 -0
  168. package/dist/chunks/cli-0.5.8-j77twbsq.mjs +2 -0
  169. package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +6 -0
  170. package/dist/chunks/cli-0.5.8-je6yq94p.mjs +2 -0
  171. package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +10 -0
  172. package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +9 -0
  173. package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +2 -0
  174. package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +2 -0
  175. package/dist/chunks/cli-0.5.8-kegk7gdp.mjs +3 -0
  176. package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +2 -0
  177. package/dist/chunks/cli-0.5.8-m3186fr3.mjs +5 -0
  178. package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +2 -0
  179. package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +4 -0
  180. package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +2 -0
  181. package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +3 -0
  182. package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +4 -0
  183. package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +59 -0
  184. package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +2 -0
  185. package/dist/chunks/cli-0.5.8-p596xr80.mjs +2 -0
  186. package/dist/chunks/cli-0.5.8-p72phgsn.mjs +2 -0
  187. package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +2 -0
  188. package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +2 -0
  189. package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +133 -0
  190. package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +2 -0
  191. package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +2 -0
  192. package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +2 -0
  193. package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +2 -0
  194. package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +193 -0
  195. package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +3 -0
  196. package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +2 -0
  197. package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +2 -0
  198. package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +2 -0
  199. package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +2 -0
  200. package/dist/chunks/cli-0.5.8-r88abafr.mjs +15 -0
  201. package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +16 -0
  202. package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +4 -0
  203. package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +2 -0
  204. package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +12 -0
  205. package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +3 -0
  206. package/dist/chunks/cli-0.5.8-s7px34xg.mjs +2 -0
  207. package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +2 -0
  208. package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +2 -0
  209. package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +2 -0
  210. package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +24 -0
  211. package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +4 -0
  212. package/dist/chunks/cli-0.5.8-v274erpp.mjs +2 -0
  213. package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +2 -0
  214. package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +2 -0
  215. package/dist/chunks/cli-0.5.8-vck50j66.mjs +2 -0
  216. package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +45 -0
  217. package/dist/chunks/cli-0.5.8-w36atn94.mjs +2 -0
  218. package/dist/chunks/cli-0.5.8-w75qbypx.mjs +2 -0
  219. package/dist/chunks/cli-0.5.8-w7g735pf.mjs +2 -0
  220. package/dist/chunks/cli-0.5.8-was67jgw.mjs +2 -0
  221. package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +50 -0
  222. package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +2 -0
  223. package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +3 -0
  224. package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +2 -0
  225. package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +2 -0
  226. package/dist/chunks/cli-0.5.8-wtz636rz.mjs +20 -0
  227. package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +2 -0
  228. package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +2 -0
  229. package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +6 -0
  230. package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +2 -0
  231. package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +2 -0
  232. package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +2 -0
  233. package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +2 -0
  234. package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +2 -0
  235. package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +2 -0
  236. package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +3 -0
  237. package/dist/chunks/cli-0.5.8-z447z8t0.mjs +2 -0
  238. package/dist/chunks/cli-0.5.8-zervw1k3.mjs +5 -0
  239. package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +1 -0
  240. package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +2 -0
  241. package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +2 -0
  242. package/dist/chunks/cli-0.5.8-zy590bkh.mjs +2 -0
  243. package/dist/chunks/client-0.5.8-9axd4w58.mjs +1 -0
  244. package/dist/chunks/color-0.5.8-resv1z9m.mjs +1 -0
  245. package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +3 -0
  246. package/dist/chunks/config-0.5.8-1j4xyj57.mjs +1 -0
  247. package/dist/chunks/config-0.5.8-ettscama.mjs +1 -0
  248. package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +1 -0
  249. package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +1 -0
  250. package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +1 -0
  251. package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +9 -0
  252. package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +1 -0
  254. package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +1 -0
  255. package/dist/chunks/debug-0.5.8-c84dbamw.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +1177 -0
  257. package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +1 -0
  259. package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +1 -0
  260. package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +1 -0
  261. package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +1 -0
  264. package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +10 -0
  265. package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +1 -0
  267. package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +1 -0
  268. package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +1 -0
  270. package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +1 -0
  271. package/dist/chunks/export-0.5.8-a8fg7991.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +1 -0
  274. package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +1 -0
  275. package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +1 -0
  277. package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +1 -0
  279. package/dist/chunks/grove-0.5.8-rewcpbks.mjs +1 -0
  280. package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +1 -0
  281. package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +2 -0
  282. package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +6 -0
  283. package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +1 -0
  284. package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +3 -0
  285. package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +1 -0
  286. package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +79 -0
  287. package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +3 -0
  288. package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +1 -0
  289. package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +9 -0
  290. package/dist/chunks/index-0.5.8-26yrjbk0.mjs +1 -0
  291. package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +1 -0
  292. package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +1 -0
  293. package/dist/chunks/index-0.5.8-b4p3af9y.mjs +1 -0
  294. package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +2 -0
  295. package/dist/chunks/index-0.5.8-bk6ejev9.mjs +1 -0
  296. package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +9 -0
  297. package/dist/chunks/index-0.5.8-egkksjaj.mjs +1 -0
  298. package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +1 -0
  299. package/dist/chunks/index-0.5.8-jf20nzsg.mjs +1 -0
  300. package/dist/chunks/index-0.5.8-m6exk6z6.mjs +30 -0
  301. package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +5 -0
  302. package/dist/chunks/index-0.5.8-nt058ay0.mjs +1 -0
  303. package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +10 -0
  304. package/dist/chunks/index-0.5.8-rdk757cq.mjs +1 -0
  305. package/dist/chunks/index-0.5.8-red1reev.mjs +1 -0
  306. package/dist/chunks/index-0.5.8-rehfpmcw.mjs +1 -0
  307. package/dist/chunks/index-0.5.8-s3k17n65.mjs +1 -0
  308. package/dist/chunks/index-0.5.8-xpaaycp7.mjs +1 -0
  309. package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +2 -0
  310. package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +1 -0
  311. package/dist/chunks/init-0.5.8-kmfn7vay.mjs +1 -0
  312. package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +1 -0
  313. package/dist/chunks/ink-0.5.8-y01565nf.mjs +1 -0
  314. package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +870 -0
  315. package/dist/chunks/install-0.5.8-se0j5qte.mjs +1 -0
  316. package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +149 -0
  317. package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +1 -0
  318. package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +1 -0
  319. package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +1 -0
  320. package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +2 -0
  321. package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +2 -0
  322. package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +1 -0
  323. package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +1 -0
  326. package/dist/chunks/log-0.5.8-78h0x7qg.mjs +1 -0
  327. package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +1 -0
  328. package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +1 -0
  329. package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +4 -0
  330. package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +17 -0
  331. package/dist/chunks/mcp-0.5.8-md6hzter.mjs +1 -0
  332. package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +1 -0
  333. package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +3 -0
  334. package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +2 -0
  335. package/dist/chunks/model-0.5.8-aqzt03nd.mjs +1 -0
  336. package/dist/chunks/model-0.5.8-nmcrv393.mjs +2 -0
  337. package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +14 -0
  339. package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +1 -0
  340. package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +1 -0
  342. package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +1 -0
  343. package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +1 -0
  344. package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +3 -0
  345. package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +1 -0
  346. package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +1 -0
  347. package/dist/chunks/plugin-0.5.8-meszp93t.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +1 -0
  349. package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +2 -0
  351. package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +1 -0
  353. package/dist/chunks/process-0.5.8-1yf78q4y.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +9 -0
  356. package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +1 -0
  357. package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +1 -0
  358. package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +13 -0
  360. package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +34 -0
  365. package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +1 -0
  366. package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +2 -0
  368. package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +1 -0
  371. package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +1 -0
  374. package/dist/chunks/resume-0.5.8-373epwyd.mjs +2 -0
  375. package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +1 -0
  379. package/dist/chunks/session-0.5.8-rxft524k.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +1 -0
  383. package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +1 -0
  384. package/dist/chunks/setup-0.5.8-769vnffz.mjs +5 -0
  385. package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +1 -0
  386. package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +1 -0
  389. package/dist/chunks/state-0.5.8-cppqmrbf.mjs +1 -0
  390. package/dist/chunks/stats-0.5.8-zcfm59db.mjs +6 -0
  391. package/dist/chunks/status-0.5.8-5v4y485z.mjs +1 -0
  392. package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +1 -0
  394. package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +1 -0
  397. package/dist/chunks/teleport-0.5.8-650m4rks.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +1 -0
  399. package/dist/chunks/theme-0.5.8-7a06760x.mjs +1 -0
  400. package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +1 -0
  402. package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +1 -0
  404. package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +4 -0
  408. package/dist/chunks/update-0.5.8-a285y5j4.mjs +86 -0
  409. package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +1 -0
  412. package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +1 -0
  413. package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +1 -0
  414. package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +1 -0
  415. package/dist/chunks/vim-0.5.8-pgsav8je.mjs +1 -0
  416. package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +1 -0
  417. package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +132 -0
  418. package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +1 -0
  420. package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -7
  423. package/dist/help-agents.txt +8 -0
  424. package/dist/help-auth.txt +12 -0
  425. package/dist/help-auto-mode.txt +14 -0
  426. package/dist/help-doctor.txt +8 -0
  427. package/dist/help-install.txt +8 -0
  428. package/dist/help-mcp.txt +31 -0
  429. package/dist/help-plugin.txt +20 -0
  430. package/dist/help-plugins.txt +20 -0
  431. package/dist/help-setup-token.txt +6 -0
  432. package/dist/help-update.txt +6 -0
  433. package/dist/help-upgrade.txt +6 -0
  434. package/dist/help.txt +68 -0
  435. package/package.json +4 -1
  436. package/scripts/postinstall-warmup.mjs +70 -0
  437. package/dist/chunks/AgentTool-0.5.7-0krqsszm.mjs +0 -1
  438. package/dist/chunks/App-0.5.7-k8c6xsbz.mjs +0 -1
  439. package/dist/chunks/ApproveApiKey-0.5.7-djmd358f.mjs +0 -1
  440. package/dist/chunks/AssistantSessionChooser-0.5.7-40f5p134.mjs +0 -1
  441. package/dist/chunks/AutoModeOptInDialog-0.5.7-dgpfkf7n.mjs +0 -1
  442. package/dist/chunks/BypassPermissionsModeDialog-0.5.7-m2n3zekg.mjs +0 -1
  443. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.7-8p2b9258.mjs +0 -1
  444. package/dist/chunks/ConsoleOAuthFlow-0.5.7-e11rkgsy.mjs +0 -1
  445. package/dist/chunks/DiffDialog-0.5.7-df3q0dyx.mjs +0 -3
  446. package/dist/chunks/Doctor-0.5.7-996gqph8.mjs +0 -1
  447. package/dist/chunks/Grove-0.5.7-7xphv8qp.mjs +0 -1
  448. package/dist/chunks/ITermBackend-0.5.7-rv5t26my.mjs +0 -1
  449. package/dist/chunks/InvalidConfigDialog-0.5.7-76awdeqe.mjs +0 -1
  450. package/dist/chunks/InvalidSettingsDialog-0.5.7-d59ky2sv.mjs +0 -1
  451. package/dist/chunks/MigrationDialog-0.5.7-nkkcryn5.mjs +0 -1
  452. package/dist/chunks/Onboarding-0.5.7-v3jtvbkn.mjs +0 -1
  453. package/dist/chunks/ProviderManager-0.5.7-92navbez.mjs +0 -1
  454. package/dist/chunks/REPL-0.5.7-6zag11mg.mjs +0 -1
  455. package/dist/chunks/ResumeConversation-0.5.7-hpgm4f1s.mjs +0 -1
  456. package/dist/chunks/SnapshotUpdateDialog-0.5.7-xrverbhp.mjs +0 -1
  457. package/dist/chunks/TeleportProgress-0.5.7-xn5z7dt4.mjs +0 -1
  458. package/dist/chunks/TeleportRepoMismatchDialog-0.5.7-s29rrsak.mjs +0 -1
  459. package/dist/chunks/TeleportResumeWrapper-0.5.7-3r5mn1za.mjs +0 -1
  460. package/dist/chunks/TmuxBackend-0.5.7-k3c0537z.mjs +0 -9
  461. package/dist/chunks/ToolSearchTool-0.5.7-mybq3qz5.mjs +0 -1
  462. package/dist/chunks/TrustDialog-0.5.7-r4dhznyf.mjs +0 -1
  463. package/dist/chunks/activeProvider-0.5.7-8emdm8j8.mjs +0 -1
  464. package/dist/chunks/add-dir-0.5.7-jwaavdc7.mjs +0 -1
  465. package/dist/chunks/agents-0.5.7-e7dajmrs.mjs +0 -110
  466. package/dist/chunks/agents-0.5.7-q2vtj7pt.mjs +0 -3
  467. package/dist/chunks/api-0.5.7-j8bn129y.mjs +0 -1
  468. package/dist/chunks/asciicast-0.5.7-rp1h8swq.mjs +0 -1
  469. package/dist/chunks/assistant-0.5.7-sfk22b3z.mjs +0 -1
  470. package/dist/chunks/auth-0.5.7-ez3n1qpx.mjs +0 -1
  471. package/dist/chunks/auth-0.5.7-khssh83t.mjs +0 -1
  472. package/dist/chunks/autoMode-0.5.7-ezn856pd.mjs +0 -48
  473. package/dist/chunks/autoUpdater-0.5.7-dkw2aw1e.mjs +0 -1
  474. package/dist/chunks/backgroundHousekeeping-0.5.7-9ejvx75r.mjs +0 -1
  475. package/dist/chunks/branch-0.5.7-cjbtbwg1.mjs +0 -4
  476. package/dist/chunks/bridgePointer-0.5.7-5z0vqchx.mjs +0 -1
  477. package/dist/chunks/btw-0.5.7-p3kbd1wf.mjs +0 -1
  478. package/dist/chunks/buddy-0.5.7-pa55rfb4.mjs +0 -3
  479. package/dist/chunks/cacache-0.5.7-anq54jwq.mjs +0 -1
  480. package/dist/chunks/cache-probe-0.5.7-6j5hzxc4.mjs +0 -21
  481. package/dist/chunks/cacheStats-0.5.7-e1byp2n2.mjs +0 -4
  482. package/dist/chunks/caches-0.5.7-w8n6wxaj.mjs +0 -1
  483. package/dist/chunks/claudeDesktop-0.5.7-5kkyx4pz.mjs +0 -1
  484. package/dist/chunks/claudemd-0.5.7-jb7byep9.mjs +0 -1
  485. package/dist/chunks/clear-0.5.7-tkh04z2c.mjs +0 -1
  486. package/dist/chunks/clearTerminal-0.5.7-mbqev32s.mjs +0 -1
  487. package/dist/chunks/cli-0.5.7-023jpnwm.mjs +0 -2
  488. package/dist/chunks/cli-0.5.7-08mn1pmc.mjs +0 -5
  489. package/dist/chunks/cli-0.5.7-0bv1xcbe.mjs +0 -21
  490. package/dist/chunks/cli-0.5.7-0df5m6td.mjs +0 -2
  491. package/dist/chunks/cli-0.5.7-0rvzfmhb.mjs +0 -2
  492. package/dist/chunks/cli-0.5.7-0s7wtvbz.mjs +0 -2
  493. package/dist/chunks/cli-0.5.7-1fmgwk5c.mjs +0 -2
  494. package/dist/chunks/cli-0.5.7-1kmeaqmc.mjs +0 -2
  495. package/dist/chunks/cli-0.5.7-20cz322w.mjs +0 -2
  496. package/dist/chunks/cli-0.5.7-23hg3t0h.mjs +0 -2
  497. package/dist/chunks/cli-0.5.7-258ytmbr.mjs +0 -2
  498. package/dist/chunks/cli-0.5.7-26pwg6gg.mjs +0 -2
  499. package/dist/chunks/cli-0.5.7-2h4rgwc9.mjs +0 -2
  500. package/dist/chunks/cli-0.5.7-2qxsy7jq.mjs +0 -12
  501. package/dist/chunks/cli-0.5.7-2tnvc3ka.mjs +0 -2
  502. package/dist/chunks/cli-0.5.7-2xm61gkr.mjs +0 -5
  503. package/dist/chunks/cli-0.5.7-2ytftsg5.mjs +0 -2
  504. package/dist/chunks/cli-0.5.7-31969syr.mjs +0 -2
  505. package/dist/chunks/cli-0.5.7-31hdc2nc.mjs +0 -2
  506. package/dist/chunks/cli-0.5.7-35yf0b84.mjs +0 -2
  507. package/dist/chunks/cli-0.5.7-3jrq7w6x.mjs +0 -2
  508. package/dist/chunks/cli-0.5.7-3xssm25z.mjs +0 -2
  509. package/dist/chunks/cli-0.5.7-469r2a5r.mjs +0 -193
  510. package/dist/chunks/cli-0.5.7-4eg4pktt.mjs +0 -2
  511. package/dist/chunks/cli-0.5.7-4gmpny6k.mjs +0 -133
  512. package/dist/chunks/cli-0.5.7-4zv4np07.mjs +0 -2
  513. package/dist/chunks/cli-0.5.7-500c5b8m.mjs +0 -4
  514. package/dist/chunks/cli-0.5.7-52mwnwy6.mjs +0 -58
  515. package/dist/chunks/cli-0.5.7-55zn2cct.mjs +0 -4
  516. package/dist/chunks/cli-0.5.7-5736yt36.mjs +0 -2
  517. package/dist/chunks/cli-0.5.7-5aghfr8k.mjs +0 -3
  518. package/dist/chunks/cli-0.5.7-5by4fby4.mjs +0 -2
  519. package/dist/chunks/cli-0.5.7-5e5xfeq6.mjs +0 -2
  520. package/dist/chunks/cli-0.5.7-5jaayymr.mjs +0 -17
  521. package/dist/chunks/cli-0.5.7-5jms2g5g.mjs +0 -2
  522. package/dist/chunks/cli-0.5.7-5kv9dgvn.mjs +0 -2
  523. package/dist/chunks/cli-0.5.7-5mrw857q.mjs +0 -4
  524. package/dist/chunks/cli-0.5.7-5q6tfz39.mjs +0 -2
  525. package/dist/chunks/cli-0.5.7-650e2qk4.mjs +0 -18
  526. package/dist/chunks/cli-0.5.7-67xxeffj.mjs +0 -2
  527. package/dist/chunks/cli-0.5.7-6d26vvaa.mjs +0 -2
  528. package/dist/chunks/cli-0.5.7-6g3w68ks.mjs +0 -2
  529. package/dist/chunks/cli-0.5.7-6gfay8ap.mjs +0 -2
  530. package/dist/chunks/cli-0.5.7-6gkpb0vw.mjs +0 -2
  531. package/dist/chunks/cli-0.5.7-6pssgqdn.mjs +0 -2
  532. package/dist/chunks/cli-0.5.7-6thqe6p4.mjs +0 -3
  533. package/dist/chunks/cli-0.5.7-73er78b7.mjs +0 -15
  534. package/dist/chunks/cli-0.5.7-7a9gq9ff.mjs +0 -2
  535. package/dist/chunks/cli-0.5.7-7hm7dxyp.mjs +0 -2
  536. package/dist/chunks/cli-0.5.7-7k456xwn.mjs +0 -3
  537. package/dist/chunks/cli-0.5.7-7mmyazqh.mjs +0 -34
  538. package/dist/chunks/cli-0.5.7-7rgsmfw7.mjs +0 -3
  539. package/dist/chunks/cli-0.5.7-7wyhqw17.mjs +0 -2
  540. package/dist/chunks/cli-0.5.7-82x8qaxx.mjs +0 -2
  541. package/dist/chunks/cli-0.5.7-89fcvfy0.mjs +0 -2
  542. package/dist/chunks/cli-0.5.7-8ac9d7r6.mjs +0 -2
  543. package/dist/chunks/cli-0.5.7-8ap24w7a.mjs +0 -2
  544. package/dist/chunks/cli-0.5.7-8e61g5bq.mjs +0 -10
  545. package/dist/chunks/cli-0.5.7-8sbq2qed.mjs +0 -2
  546. package/dist/chunks/cli-0.5.7-8sqyymdb.mjs +0 -2
  547. package/dist/chunks/cli-0.5.7-8ychjqct.mjs +0 -16
  548. package/dist/chunks/cli-0.5.7-93eaxn9a.mjs +0 -2
  549. package/dist/chunks/cli-0.5.7-93k1z52y.mjs +0 -2
  550. package/dist/chunks/cli-0.5.7-9acdh8nc.mjs +0 -2
  551. package/dist/chunks/cli-0.5.7-9jck3vts.mjs +0 -15
  552. package/dist/chunks/cli-0.5.7-9rbmn26q.mjs +0 -24
  553. package/dist/chunks/cli-0.5.7-9sysdak3.mjs +0 -2
  554. package/dist/chunks/cli-0.5.7-9ysat94v.mjs +0 -2
  555. package/dist/chunks/cli-0.5.7-9z55nm22.mjs +0 -3
  556. package/dist/chunks/cli-0.5.7-9zwbnq8g.mjs +0 -2
  557. package/dist/chunks/cli-0.5.7-a47hzz3r.mjs +0 -2
  558. package/dist/chunks/cli-0.5.7-aq7a3646.mjs +0 -2
  559. package/dist/chunks/cli-0.5.7-ayjrdmrk.mjs +0 -2
  560. package/dist/chunks/cli-0.5.7-b51h487f.mjs +0 -2
  561. package/dist/chunks/cli-0.5.7-bkptgahs.mjs +0 -4
  562. package/dist/chunks/cli-0.5.7-bnapjxz4.mjs +0 -2
  563. package/dist/chunks/cli-0.5.7-bzrvdrq4.mjs +0 -2
  564. package/dist/chunks/cli-0.5.7-c1mv1399.mjs +0 -2
  565. package/dist/chunks/cli-0.5.7-c9dtw94k.mjs +0 -2
  566. package/dist/chunks/cli-0.5.7-cakvh73p.mjs +0 -2
  567. package/dist/chunks/cli-0.5.7-d19d4v07.mjs +0 -2
  568. package/dist/chunks/cli-0.5.7-d4gtv7f7.mjs +0 -2
  569. package/dist/chunks/cli-0.5.7-de90yre1.mjs +0 -2
  570. package/dist/chunks/cli-0.5.7-dntg9qbj.mjs +0 -133
  571. package/dist/chunks/cli-0.5.7-dp3z7wkh.mjs +0 -2
  572. package/dist/chunks/cli-0.5.7-dr7n1fyv.mjs +0 -20
  573. package/dist/chunks/cli-0.5.7-e8eqdfnf.mjs +0 -2
  574. package/dist/chunks/cli-0.5.7-eer6xagb.mjs +0 -2
  575. package/dist/chunks/cli-0.5.7-esx85d2g.mjs +0 -2
  576. package/dist/chunks/cli-0.5.7-eyemfxtz.mjs +0 -2
  577. package/dist/chunks/cli-0.5.7-fx3gesdm.mjs +0 -2
  578. package/dist/chunks/cli-0.5.7-g2dd5t6j.mjs +0 -2
  579. package/dist/chunks/cli-0.5.7-g4n7dg2d.mjs +0 -9
  580. package/dist/chunks/cli-0.5.7-g7k0r0ea.mjs +0 -5
  581. package/dist/chunks/cli-0.5.7-g8dqk0se.mjs +0 -2
  582. package/dist/chunks/cli-0.5.7-gcnk0vke.mjs +0 -6
  583. package/dist/chunks/cli-0.5.7-gnq8vh0c.mjs +0 -2
  584. package/dist/chunks/cli-0.5.7-gy4csxb5.mjs +0 -2
  585. package/dist/chunks/cli-0.5.7-h9v4tqbs.mjs +0 -24
  586. package/dist/chunks/cli-0.5.7-hdcnw5y4.mjs +0 -2
  587. package/dist/chunks/cli-0.5.7-hhre0h51.mjs +0 -2
  588. package/dist/chunks/cli-0.5.7-hp25yk8y.mjs +0 -2
  589. package/dist/chunks/cli-0.5.7-hq4wbper.mjs +0 -11
  590. package/dist/chunks/cli-0.5.7-hw11qa05.mjs +0 -3
  591. package/dist/chunks/cli-0.5.7-hw3pyj8g.mjs +0 -2
  592. package/dist/chunks/cli-0.5.7-j7h72bgz.mjs +0 -2
  593. package/dist/chunks/cli-0.5.7-j8q5bja8.mjs +0 -2
  594. package/dist/chunks/cli-0.5.7-jf3f8gen.mjs +0 -2
  595. package/dist/chunks/cli-0.5.7-jga8kgpr.mjs +0 -2
  596. package/dist/chunks/cli-0.5.7-jptzskw1.mjs +0 -2
  597. package/dist/chunks/cli-0.5.7-jw2te6th.mjs +0 -2
  598. package/dist/chunks/cli-0.5.7-k11mzgcb.mjs +0 -2
  599. package/dist/chunks/cli-0.5.7-kctf48t4.mjs +0 -7
  600. package/dist/chunks/cli-0.5.7-knkzkqbw.mjs +0 -2
  601. package/dist/chunks/cli-0.5.7-kp9pg4sr.mjs +0 -2
  602. package/dist/chunks/cli-0.5.7-kvazvrra.mjs +0 -2
  603. package/dist/chunks/cli-0.5.7-ky5khwx2.mjs +0 -2
  604. package/dist/chunks/cli-0.5.7-m0841vt9.mjs +0 -2
  605. package/dist/chunks/cli-0.5.7-m4ekdyhj.mjs +0 -2
  606. package/dist/chunks/cli-0.5.7-m4wwfa6q.mjs +0 -2
  607. package/dist/chunks/cli-0.5.7-m5q27x96.mjs +0 -2
  608. package/dist/chunks/cli-0.5.7-m82d23hf.mjs +0 -2
  609. package/dist/chunks/cli-0.5.7-mdcw5fyw.mjs +0 -4
  610. package/dist/chunks/cli-0.5.7-mz4njeb9.mjs +0 -39
  611. package/dist/chunks/cli-0.5.7-mzfr99sc.mjs +0 -67
  612. package/dist/chunks/cli-0.5.7-p381d4sx.mjs +0 -3
  613. package/dist/chunks/cli-0.5.7-p4mv49ab.mjs +0 -25
  614. package/dist/chunks/cli-0.5.7-pse9qff7.mjs +0 -2
  615. package/dist/chunks/cli-0.5.7-pzjz115k.mjs +0 -2
  616. package/dist/chunks/cli-0.5.7-q0pq4367.mjs +0 -9
  617. package/dist/chunks/cli-0.5.7-q2e6xpch.mjs +0 -5281
  618. package/dist/chunks/cli-0.5.7-q6sgd9ng.mjs +0 -12
  619. package/dist/chunks/cli-0.5.7-q8v8naf8.mjs +0 -2
  620. package/dist/chunks/cli-0.5.7-qdcp748z.mjs +0 -2
  621. package/dist/chunks/cli-0.5.7-qdqrgv1q.mjs +0 -2
  622. package/dist/chunks/cli-0.5.7-qk0n5hqa.mjs +0 -9
  623. package/dist/chunks/cli-0.5.7-r4cdt1b9.mjs +0 -50
  624. package/dist/chunks/cli-0.5.7-ra5kv4tw.mjs +0 -2
  625. package/dist/chunks/cli-0.5.7-rb75eq83.mjs +0 -2
  626. package/dist/chunks/cli-0.5.7-rggstqv6.mjs +0 -2
  627. package/dist/chunks/cli-0.5.7-rr1yd8f3.mjs +0 -4
  628. package/dist/chunks/cli-0.5.7-rzts2ke3.mjs +0 -2
  629. package/dist/chunks/cli-0.5.7-s09knvta.mjs +0 -3
  630. package/dist/chunks/cli-0.5.7-s5nd54ga.mjs +0 -3
  631. package/dist/chunks/cli-0.5.7-sb3fjts4.mjs +0 -2
  632. package/dist/chunks/cli-0.5.7-sjd6g3n6.mjs +0 -15
  633. package/dist/chunks/cli-0.5.7-sjx0wm99.mjs +0 -2
  634. package/dist/chunks/cli-0.5.7-skfm51ta.mjs +0 -44
  635. package/dist/chunks/cli-0.5.7-sx7pr75m.mjs +0 -2
  636. package/dist/chunks/cli-0.5.7-t6mtpr04.mjs +0 -2
  637. package/dist/chunks/cli-0.5.7-t8z48kc2.mjs +0 -4
  638. package/dist/chunks/cli-0.5.7-tbga87q3.mjs +0 -2
  639. package/dist/chunks/cli-0.5.7-tc3vm4ra.mjs +0 -2
  640. package/dist/chunks/cli-0.5.7-tgq7dtyz.mjs +0 -2
  641. package/dist/chunks/cli-0.5.7-tpjjm1z2.mjs +0 -45
  642. package/dist/chunks/cli-0.5.7-tqn2ged5.mjs +0 -2
  643. package/dist/chunks/cli-0.5.7-twqt7rxq.mjs +0 -6
  644. package/dist/chunks/cli-0.5.7-vgc7nzef.mjs +0 -2
  645. package/dist/chunks/cli-0.5.7-vk8p3n59.mjs +0 -2
  646. package/dist/chunks/cli-0.5.7-vn5aht50.mjs +0 -2
  647. package/dist/chunks/cli-0.5.7-vvrg78m6.mjs +0 -2
  648. package/dist/chunks/cli-0.5.7-vy4r02pg.mjs +0 -4
  649. package/dist/chunks/cli-0.5.7-vyxaeh82.mjs +0 -2
  650. package/dist/chunks/cli-0.5.7-w024nwsf.mjs +0 -2
  651. package/dist/chunks/cli-0.5.7-w16wj21h.mjs +0 -2
  652. package/dist/chunks/cli-0.5.7-w1bf9y93.mjs +0 -3
  653. package/dist/chunks/cli-0.5.7-w2fb8g6y.mjs +0 -2
  654. package/dist/chunks/cli-0.5.7-w50j12vv.mjs +0 -2
  655. package/dist/chunks/cli-0.5.7-w6nex68w.mjs +0 -2
  656. package/dist/chunks/cli-0.5.7-wz2cbwxt.mjs +0 -4
  657. package/dist/chunks/cli-0.5.7-x0n9mq65.mjs +0 -2
  658. package/dist/chunks/cli-0.5.7-x1azmh1g.mjs +0 -2
  659. package/dist/chunks/cli-0.5.7-x1w96j6d.mjs +0 -59
  660. package/dist/chunks/cli-0.5.7-x7dabprd.mjs +0 -2
  661. package/dist/chunks/cli-0.5.7-x8t1aeey.mjs +0 -2
  662. package/dist/chunks/cli-0.5.7-xepvraxn.mjs +0 -2
  663. package/dist/chunks/cli-0.5.7-xn6deh04.mjs +0 -6
  664. package/dist/chunks/cli-0.5.7-y2vc4xb6.mjs +0 -12
  665. package/dist/chunks/cli-0.5.7-y3pa8ttm.mjs +0 -2
  666. package/dist/chunks/cli-0.5.7-yaywev87.mjs +0 -2
  667. package/dist/chunks/cli-0.5.7-ycj2xr53.mjs +0 -3
  668. package/dist/chunks/cli-0.5.7-yzncgfs4.mjs +0 -18
  669. package/dist/chunks/cli-0.5.7-z1n09m4p.mjs +0 -2
  670. package/dist/chunks/cli-0.5.7-z97pranc.mjs +0 -2
  671. package/dist/chunks/cli-0.5.7-za19q18c.mjs +0 -2
  672. package/dist/chunks/cli-0.5.7-zb8ztx8p.mjs +0 -2
  673. package/dist/chunks/cli-0.5.7-zkw2fx86.mjs +0 -2
  674. package/dist/chunks/client-0.5.7-bqw74z29.mjs +0 -1
  675. package/dist/chunks/color-0.5.7-v1s3bvcj.mjs +0 -1
  676. package/dist/chunks/compact-0.5.7-7kxsprp5.mjs +0 -3
  677. package/dist/chunks/config-0.5.7-e41nnxnm.mjs +0 -1
  678. package/dist/chunks/config-0.5.7-q40ykcbb.mjs +0 -1
  679. package/dist/chunks/context-0.5.7-qvcehmj5.mjs +0 -1
  680. package/dist/chunks/context-noninteractive-0.5.7-02tkje0w.mjs +0 -1
  681. package/dist/chunks/conversation-0.5.7-h7r20gzw.mjs +0 -1
  682. package/dist/chunks/copy-0.5.7-p3xxq9b3.mjs +0 -9
  683. package/dist/chunks/cost-0.5.7-s3rzm0vd.mjs +0 -1
  684. package/dist/chunks/createSSHSession-0.5.7-s9fc5f1h.mjs +0 -1
  685. package/dist/chunks/createSession-0.5.7-4e64teqm.mjs +0 -1
  686. package/dist/chunks/debug-0.5.7-v8bqkmzm.mjs +0 -1
  687. package/dist/chunks/desktop-0.5.7-tna0yskx.mjs +0 -1
  688. package/dist/chunks/detectRepository-0.5.7-3dy7yz89.mjs +0 -1
  689. package/dist/chunks/detection-0.5.7-39zsjy8t.mjs +0 -1
  690. package/dist/chunks/diff-0.5.7-9ywmnxmx.mjs +0 -1
  691. package/dist/chunks/doctor-0.5.7-ty5zxpem.mjs +0 -1
  692. package/dist/chunks/doctorDiagnostic-0.5.7-g458bh9g.mjs +0 -1
  693. package/dist/chunks/earlyInput-0.5.7-x73yj3dn.mjs +0 -1
  694. package/dist/chunks/effort-0.5.7-h76k43fj.mjs +0 -10
  695. package/dist/chunks/envUtils-0.5.7-w1t7akfc.mjs +0 -1
  696. package/dist/chunks/environmentSelection-0.5.7-5dsnr0sv.mjs +0 -1
  697. package/dist/chunks/environments-0.5.7-pqh2gnjb.mjs +0 -1
  698. package/dist/chunks/errors-0.5.7-pa0hz043.mjs +0 -1
  699. package/dist/chunks/exampleCommands-0.5.7-3dtjxdad.mjs +0 -1
  700. package/dist/chunks/exit-0.5.7-0wrw77gk.mjs +0 -1
  701. package/dist/chunks/export-0.5.7-zw9rbf4j.mjs +0 -2
  702. package/dist/chunks/extra-usage-0.5.7-rfya84j0.mjs +0 -1
  703. package/dist/chunks/extra-usage-noninteractive-0.5.7-a1b9ndnm.mjs +0 -1
  704. package/dist/chunks/fast-0.5.7-2p6srbep.mjs +0 -1
  705. package/dist/chunks/feedback-0.5.7-181z18rn.mjs +0 -14
  706. package/dist/chunks/firstPartyEventLogger-0.5.7-xndd9dd0.mjs +0 -1
  707. package/dist/chunks/git-0.5.7-7gyptyxn.mjs +0 -1
  708. package/dist/chunks/githubModelsCredentials-0.5.7-9zhn44n6.mjs +0 -1
  709. package/dist/chunks/growthbook-0.5.7-1mynkk8j.mjs +0 -1
  710. package/dist/chunks/headless-0.5.7-9f87m6f5.mjs +0 -2
  711. package/dist/chunks/heapdump-0.5.7-ns6mqawv.mjs +0 -6
  712. package/dist/chunks/help-0.5.7-px56h6fs.mjs +0 -1
  713. package/dist/chunks/hookChains-0.5.7-1a6qvexe.mjs +0 -3
  714. package/dist/chunks/hooks-0.5.7-azm2m6rs.mjs +0 -79
  715. package/dist/chunks/hooks-0.5.7-fyp8e3f5.mjs +0 -1
  716. package/dist/chunks/ide-0.5.7-v9hbn8cp.mjs +0 -3
  717. package/dist/chunks/image-processor-napi-0.5.7-e41p58ef.mjs +0 -1
  718. package/dist/chunks/index-0.5.7-0tncgnn3.mjs +0 -1
  719. package/dist/chunks/index-0.5.7-30mrmtkn.mjs +0 -1
  720. package/dist/chunks/index-0.5.7-62s7cp1b.mjs +0 -1
  721. package/dist/chunks/index-0.5.7-69akvbm4.mjs +0 -1
  722. package/dist/chunks/index-0.5.7-6y6f5cws.mjs +0 -1
  723. package/dist/chunks/index-0.5.7-7w3agvzm.mjs +0 -10
  724. package/dist/chunks/index-0.5.7-8jwymzr6.mjs +0 -1
  725. package/dist/chunks/index-0.5.7-8m53gyr6.mjs +0 -9
  726. package/dist/chunks/index-0.5.7-ct6jw15p.mjs +0 -2
  727. package/dist/chunks/index-0.5.7-dr470b86.mjs +0 -1
  728. package/dist/chunks/index-0.5.7-e4rvp0fn.mjs +0 -1
  729. package/dist/chunks/index-0.5.7-fkw6rn8z.mjs +0 -1
  730. package/dist/chunks/index-0.5.7-h1xjcbtb.mjs +0 -1
  731. package/dist/chunks/index-0.5.7-ma3xmxv3.mjs +0 -2
  732. package/dist/chunks/index-0.5.7-qn7zmh31.mjs +0 -9
  733. package/dist/chunks/index-0.5.7-rd44m0e6.mjs +0 -30
  734. package/dist/chunks/index-0.5.7-te1s21zz.mjs +0 -5
  735. package/dist/chunks/index-0.5.7-vm9zmzmr.mjs +0 -1
  736. package/dist/chunks/index-0.5.7-wpffxvtn.mjs +0 -1
  737. package/dist/chunks/index-0.5.7-wwfn7x53.mjs +0 -1
  738. package/dist/chunks/index-0.5.7-ybcvbcjt.mjs +0 -1
  739. package/dist/chunks/index-0.5.7-yw3tp60c.mjs +0 -1
  740. package/dist/chunks/initReplBridge-0.5.7-xpy8ap8n.mjs +0 -1
  741. package/dist/chunks/ink-0.5.7-dwmx157s.mjs +0 -1
  742. package/dist/chunks/insights-0.5.7-5fpd27dr.mjs +0 -870
  743. package/dist/chunks/install-0.5.7-6sc73ew8.mjs +0 -1
  744. package/dist/chunks/install-github-app-0.5.7-jcyktynf.mjs +0 -149
  745. package/dist/chunks/install-slack-app-0.5.7-mk4a14ww.mjs +0 -1
  746. package/dist/chunks/instrumentation-0.5.7-116w6tf4.mjs +0 -1
  747. package/dist/chunks/interactiveHelpers-0.5.7-zbfkwcsb.mjs +0 -1
  748. package/dist/chunks/keybindings-0.5.7-k2s0bryc.mjs +0 -2
  749. package/dist/chunks/knowledge-0.5.7-55b2ckth.mjs +0 -2
  750. package/dist/chunks/latestVersionCache-0.5.7-k9pyxzrk.mjs +0 -1
  751. package/dist/chunks/loadAgentsDir-0.5.7-9bmbg04z.mjs +0 -1
  752. package/dist/chunks/loadPluginHooks-0.5.7-bcdwwerp.mjs +0 -1
  753. package/dist/chunks/loadPluginHooks-0.5.7-mdt3yvfc.mjs +0 -1
  754. package/dist/chunks/log-0.5.7-wcft0eyv.mjs +0 -1
  755. package/dist/chunks/main-0.5.7-9sxhszx9.mjs +0 -1236
  756. package/dist/chunks/managedEnv-0.5.7-k4gyyt60.mjs +0 -1
  757. package/dist/chunks/mcp-0.5.7-9z74evcf.mjs +0 -1
  758. package/dist/chunks/mcp-0.5.7-djz3mjw4.mjs +0 -4
  759. package/dist/chunks/mcp-0.5.7-n62qd49c.mjs +0 -17
  760. package/dist/chunks/mcpb-0.5.7-bqt73vjr.mjs +0 -1
  761. package/dist/chunks/memory-0.5.7-chxjrvf2.mjs +0 -3
  762. package/dist/chunks/mobile-0.5.7-y0cn32br.mjs +0 -2
  763. package/dist/chunks/model-0.5.7-7mt2xn7w.mjs +0 -1
  764. package/dist/chunks/model-0.5.7-fdhr0cwa.mjs +0 -2
  765. package/dist/chunks/oauth-0.5.7-xf0qbv6v.mjs +0 -1
  766. package/dist/chunks/openaiShim-0.5.7-0cejk3sb.mjs +0 -14
  767. package/dist/chunks/output-style-0.5.7-t5qc5jxe.mjs +0 -1
  768. package/dist/chunks/package-APBHZ5F3-0.5.7-7bp8s9sg.mjs +0 -1
  769. package/dist/chunks/parseConnectUrl-0.5.7-903apk0t.mjs +0 -1
  770. package/dist/chunks/parser-0.5.7-jnq01hth.mjs +0 -1
  771. package/dist/chunks/passes-0.5.7-nk3fgxyh.mjs +0 -1
  772. package/dist/chunks/permissions-0.5.7-q7whkp76.mjs +0 -3
  773. package/dist/chunks/plan-0.5.7-w5hgy3s7.mjs +0 -1
  774. package/dist/chunks/plist-0.5.7-jwz5qjtz.mjs +0 -1
  775. package/dist/chunks/plugin-0.5.7-x7xcey6d.mjs +0 -29
  776. package/dist/chunks/pluginStartupCheck-0.5.7-gy2e0dge.mjs +0 -1
  777. package/dist/chunks/plugins-0.5.7-2ehzph1a.mjs +0 -9
  778. package/dist/chunks/print-0.5.7-mjx6j0dk.mjs +0 -57
  779. package/dist/chunks/privacy-settings-0.5.7-rkmc34t8.mjs +0 -1
  780. package/dist/chunks/process-0.5.7-8c0qwpv6.mjs +0 -1
  781. package/dist/chunks/processBashCommand-0.5.7-czwzjsj9.mjs +0 -1
  782. package/dist/chunks/processSlashCommand-0.5.7-512rz16m.mjs +0 -9
  783. package/dist/chunks/prompt-0.5.7-r8ewyzer.mjs +0 -1
  784. package/dist/chunks/prompt-0.5.7-z98k679g.mjs +0 -1
  785. package/dist/chunks/prompts-0.5.7-g8mh8as5.mjs +0 -1
  786. package/dist/chunks/protocolHandler-0.5.7-p86as7s6.mjs +0 -13
  787. package/dist/chunks/provider-0.5.7-x4t1g0nh.mjs +0 -2
  788. package/dist/chunks/providerProfiles-0.5.7-dz70g8ys.mjs +0 -1
  789. package/dist/chunks/rate-limit-options-0.5.7-n282sweb.mjs +0 -1
  790. package/dist/chunks/registry-0.5.7-h8q8eay6.mjs +0 -1
  791. package/dist/chunks/release-notes-0.5.7-2h20frk0.mjs +0 -5
  792. package/dist/chunks/reload-plugins-0.5.7-z50apk74.mjs +0 -2
  793. package/dist/chunks/remote-env-0.5.7-08abe77m.mjs +0 -1
  794. package/dist/chunks/remoteBridgeCore-0.5.7-jdasqn18.mjs +0 -1
  795. package/dist/chunks/remoteSession-0.5.7-nq05jhdv.mjs +0 -1
  796. package/dist/chunks/rename-0.5.7-812j1w4d.mjs +0 -1
  797. package/dist/chunks/replBridgeHandle-0.5.7-aa3cp3ea.mjs +0 -1
  798. package/dist/chunks/resume-0.5.7-weq0rn3m.mjs +0 -2
  799. package/dist/chunks/rewind-0.5.7-y54y78kx.mjs +0 -1
  800. package/dist/chunks/sandbox-adapter-0.5.7-tb5qenm4.mjs +0 -1
  801. package/dist/chunks/sandbox-toggle-0.5.7-nxcpekeq.mjs +0 -1
  802. package/dist/chunks/session-0.5.7-ky2s0856.mjs +0 -2
  803. package/dist/chunks/sessionDiscovery-0.5.7-wr82xcxs.mjs +0 -1
  804. package/dist/chunks/sessionFileAccessHooks-0.5.7-0j8f4we0.mjs +0 -1
  805. package/dist/chunks/sessionStorage-0.5.7-qghsxmr2.mjs +0 -1
  806. package/dist/chunks/settings-0.5.7-xa4hccmb.mjs +0 -1
  807. package/dist/chunks/setup-0.5.7-s4yfpbyd.mjs +0 -5
  808. package/dist/chunks/sinks-0.5.7-feq030bq.mjs +0 -1
  809. package/dist/chunks/skills-0.5.7-h2r9d209.mjs +0 -1
  810. package/dist/chunks/startupProfiler-0.5.7-f44bsnqn.mjs +0 -1
  811. package/dist/chunks/startupUpdateCheck-0.5.7-7ff14fag.mjs +0 -1
  812. package/dist/chunks/state-0.5.7-cwk8b4cx.mjs +0 -1
  813. package/dist/chunks/stats-0.5.7-wd077xj7.mjs +0 -6
  814. package/dist/chunks/status-0.5.7-5qy7pnk9.mjs +0 -1
  815. package/dist/chunks/stickers-0.5.7-7s145w6d.mjs +0 -1
  816. package/dist/chunks/subprocessEnv-0.5.7-5dv3w3xn.mjs +0 -1
  817. package/dist/chunks/tasks-0.5.7-q79z0h3e.mjs +0 -1
  818. package/dist/chunks/teamHelpers-0.5.7-b8qf5f0d.mjs +0 -1
  819. package/dist/chunks/teammateModeSnapshot-0.5.7-kvmjwag8.mjs +0 -1
  820. package/dist/chunks/teleport-0.5.7-x740q45r.mjs +0 -1
  821. package/dist/chunks/terminalSetup-0.5.7-z8ytqt6q.mjs +0 -1
  822. package/dist/chunks/theme-0.5.7-9asaqpc9.mjs +0 -1
  823. package/dist/chunks/thinkback-0.5.7-6bzqdm8h.mjs +0 -1
  824. package/dist/chunks/thinkback-play-0.5.7-5m54zaez.mjs +0 -1
  825. package/dist/chunks/toolPool-0.5.7-5rd6jp71.mjs +0 -1
  826. package/dist/chunks/toolSearch-0.5.7-wgqasfmq.mjs +0 -1
  827. package/dist/chunks/trustedDevice-0.5.7-5qbzragc.mjs +0 -1
  828. package/dist/chunks/turndown.cjs-0.5.7-3fjybn8j.mjs +0 -69
  829. package/dist/chunks/ultrareviewCommand-0.5.7-98p7mn4r.mjs +0 -4
  830. package/dist/chunks/update-0.5.7-2jgnt5gj.mjs +0 -86
  831. package/dist/chunks/upgrade-0.5.7-1fa84f4g.mjs +0 -1
  832. package/dist/chunks/upstreamproxy-0.5.7-1p7vn612.mjs +0 -14
  833. package/dist/chunks/url-handler-napi-0.5.7-312p1719.mjs +0 -1
  834. package/dist/chunks/usage-0.5.7-qrsabcka.mjs +0 -1
  835. package/dist/chunks/util-0.5.7-tpzcah5j.mjs +0 -1
  836. package/dist/chunks/utils-0.5.7-8a2ekyr5.mjs +0 -1
  837. package/dist/chunks/vim-0.5.7-w4e8vpjf.mjs +0 -1
  838. package/dist/chunks/watcher-0.5.7-cj50b60x.mjs +0 -1
  839. package/dist/chunks/wiki-0.5.7-ccjdtg8v.mjs +0 -132
  840. package/dist/chunks/worktree-0.5.7-g8wrf9zf.mjs +0 -1
  841. package/dist/chunks/worktreeModeEnabled-0.5.7-w4jdaq8p.mjs +0 -1
  842. package/dist/chunks/wrapper-0.5.7-8k82xd0n.mjs +0 -7
@@ -0,0 +1,9 @@
1
+ import{qna as V_,rna as su,tna as K_,una as f_}from"./cli-0.5.8-haddssvq.mjs";import{Ana as $_,xna as H}from"./cli-0.5.8-hkfwdsmy.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 jna,D_ as kna,yu as lna,ou as mna};
@@ -0,0 +1,2 @@
1
+ import{XY as v,ZY as D}from"./cli-0.5.8-zkn5gecs.mjs";import{Ana as B}from"./cli-0.5.8-hkfwdsmy.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.5.8-s4939y9q.mjs"),J=z??import("./REPL-0.5.8-sf0q46pa.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
+ export{N as tb,O as ub};
@@ -0,0 +1,2 @@
1
+ import{SI as C,aJ as N,jJ as $,kJ as k,qJ as V}from"./cli-0.5.8-4hvxb5dp.mjs";import{RW as f,TW as t,XW as v,wX as D,yV as P}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as n,YY as i,ZY as M}from"./cli-0.5.8-zkn5gecs.mjs";import{vna as w,zna as L}from"./cli-0.5.8-hkfwdsmy.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
+ export{J as yg,z as zg};
@@ -0,0 +1,6 @@
1
+ import{zna as j}from"./cli-0.5.8-hkfwdsmy.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
+ `:`
3
+ `)+z,H=D+1,D=q.indexOf(`
4
+ `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
+ `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
+ export{o as X3,O1 as Y3,e as Z3};
@@ -0,0 +1,8 @@
1
+ import{kb as b}from"./cli-0.5.8-xwzk13b3.mjs";import{lf as zK,qf as dK}from"./cli-0.5.8-qgd7he6r.mjs";import{Bu as Cz,GI as ez,II as cK,Iu as xK,RL as Ez,ZG as wz,_L as FK,bl as rz,dl as bK,en as M,fH as MK,fn as vK,hn as iz,jG as hK,kG as mK,ln as SK,mQ as j,ny as oz,oQ as uK,py as sz,qI as tz,qy as fK,rI as pK}from"./cli-0.5.8-4hvxb5dp.mjs";import{gV as Kz,lV as AK,mV as Qz,nV as GK}from"./cli-0.5.8-nwe7yne9.mjs";import{C1 as Uz,C3 as xz,D1 as lz,J1 as Dz,MZ as U,O1 as I,Q1 as _z,RZ as O,V1 as k,e2 as nz,i2 as jK,o3 as Tz,q3 as Mz,s3 as R}from"./cli-0.5.8-rddkqxh8.mjs";import{Y3 as G,Z3 as _K}from"./cli-0.5.8-4rgg1zqd.mjs";import{$_ as Jz,B8 as DK,Kba as V,O$ as gz,P5 as Zz,P6 as dz,Q5 as RK,S_ as q,Sba as A,U$ as $,U_ as H,W6 as EK,W_ as uz,X$ as W,X5 as T,X_ as S,Y_ as kz,Z5 as CK,baa as Wz,caa as Bz,d8 as t,daa as az,f$ as _,i8 as LK,o8 as e,paa as L,s8 as UK,t6 as $z,v6 as TK,z6 as cz,z8 as zz}from"./cli-0.5.8-qf19nfhv.mjs";import{sca as E,xca as kK}from"./cli-0.5.8-5h92528m.mjs";import{yda as pz,zda as PK}from"./cli-0.5.8-w7g735pf.mjs";import{mea as Z,oea as N}from"./cli-0.5.8-9fpm1ms3.mjs";import{Wea as r,Yea as WK,Zea as i,afa as o,efa as BK}from"./cli-0.5.8-xs1gy1tk.mjs";import{wfa as s,xfa as NK}from"./cli-0.5.8-qvy0n26p.mjs";import{Rfa as y,Tfa as n,Yfa as VK}from"./cli-0.5.8-959n5v33.mjs";import{bga as C,cga as v,ega as hz,kga as mz,mga as yK}from"./cli-0.5.8-gm4jqzfs.mjs";import{Fja as Sz,Jha as F,Jla as w,Nha as JK,Rja as fz,Yja as a,bja as Iz,cja as bz,dja as Oz,fja as vz,pka as l}from"./cli-0.5.8-bhc8vwxd.mjs";import{wna as wK}from"./cli-0.5.8-hkfwdsmy.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
+ `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
+ `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
+ `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
+ `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
+ `);return[K,Q].filter(Boolean).join(`
7
+ `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
+ export{ZQ as M,$Q as N,qQ as O,HQ as P,nX as Q,rX as R,iX as S,oX as T,sX as U,tX as V,eX as W,zY as X,KY as Y,QY as Z};
@@ -0,0 +1,2 @@
1
+ import{fF as U,gF as w}from"./cli-0.5.8-4hvxb5dp.mjs";import{RW as N,TW as O,wX as k,yV as f}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as M,YY as H,ZY as R}from"./cli-0.5.8-zkn5gecs.mjs";import{vna as Y,zna as Z}from"./cli-0.5.8-hkfwdsmy.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
2
+ export{_ as Qg,A as Rg};
@@ -0,0 +1,4 @@
1
+ import{Dh as dJ,GN as TJ,Ym as DJ,_m as cJ,cO as jJ,dO as ZV,gH as IJ,hH as BJ,iH as pJ}from"./cli-0.5.8-4hvxb5dp.mjs";import{Kba as L,Sba as hJ,W6 as fJ,X$ as NJ,X_ as WJ,a6 as c,b6 as PJ,d7 as qJ,f$ as gJ,h7 as mJ,paa as uJ,w6 as VJ,y6 as p}from"./cli-0.5.8-qf19nfhv.mjs";import{yda as j,zda as kJ}from"./cli-0.5.8-w7g735pf.mjs";import{mea as f,oea as zJ}from"./cli-0.5.8-9fpm1ms3.mjs";import{afa as JJ,efa as bJ,ofa as Q,rfa as yJ}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as e,Yfa as SJ}from"./cli-0.5.8-959n5v33.mjs";import{Oha as AJ,Pha as wJ}from"./cli-0.5.8-bhc8vwxd.mjs";import{vna as LJ,zna as XJ}from"./cli-0.5.8-hkfwdsmy.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await y(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let H=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,H)W(),H=!1;await y(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let H=W.charCodeAt(Y);if(H>=97&&H<=122)V|=1<<H-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),H=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);H[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,X=[],N=-1/0,{paths:D,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?D[M]:q[M],E=B.indexOf(H[0]);if(E===-1)continue;b[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(H[A],u+1),E===-1)continue J;b[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(X.length===W&&_+g-R<=N)continue;let S=D[M],UJ=U[M],T=Y*16+g-R;T+=HJ(S,b[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,b[A],!1);if(T+=Math.max(0,32-(UJ>>2)),X.length<W){if(X.push({path:S,fuzzScore:T}),X.length===W)X.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=X[0].fuzzScore}else if(T>N){let A=0,F=X.length;while(A<F){let h=A+F>>1;if(X[h].fuzzScore<T)A=h+1;else F=h}X.splice(A,0,{path:S,fuzzScore:T}),X.shift(),N=X[0].fuzzScore}}X.sort((M,B)=>B.fuzzScore-M.fuzzScore);let I=X.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let B=X[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function y(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let H=Y.length;for(let _=0;_<Y.length;_++){let X=Y.charCodeAt(_);if(X===47||X===92){H=_;break}}let $=Y.slice(0,H);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,H)=>{let $=Y.length-H.length;if($!==0)return $;return Y<H?-1:Y>H?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,b;var QJ=XJ(()=>{b=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let H=J[Y];for(let $=0;$<H.length;$++)V=(V^H.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let H=0;H<Y.length;H++)V=(V^Y.charCodeAt(H))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],H=[...new Set([J,W])],$=KJ.default(),_=!1,X=H.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(X.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${X[q]}`)}let D=_?$:null;return n=D,s=Z,D}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),H=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-H}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
+ `).filter(Boolean),X=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=X.length;X=N.filter(X),Q(`[FileIndex] applied ignore patterns: ${q} -> ${X.length} files`)}C=X;let D=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${X.length} tracked files in ${D}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:X.length,tracked_count:X.length,untracked_count:0,duration_ms:D}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
3
+ `).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),sJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return X}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await y(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let H=O.dirname(J[Y]);while(H!=="."&&!V.has(H)){let $=O.dirname(H);if($===H)break;V.add(H),H=$}}}async function iJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await DJ(Y,".",J)).map((X)=>O.relative(j(),X)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,H=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(H)]);ZJ=_;let X=[...$,..._],N=await FJ(X);$J=N;let D=[...N,...X],q=xJ(D);if(q!==i)await W.loadFromFileListAsync(D).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function vV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{return(await J.readdir(W)).map((V)=>{let Y=O.join(W,V.name),H=O.relative(W,Y);return V.isDirectory()?H+O.sep:H})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,H="."+O.sep;if(J.startsWith(H))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,H){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let X=V+$.length;H(X)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=15,VV=5000;var YV=XJ(()=>{pJ();QJ();zJ();uJ();kJ();yJ();SJ();PJ();bJ();fJ();ZV();hJ();mJ();cJ();gJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
4
+ export{jV as Eg,UV as Fg,vV as Gg,EJ as Hg,GV as Ig,RV as Jg,YV as Kg};
@@ -0,0 +1,2 @@
1
+ import{rna as n}from"./cli-0.5.8-haddssvq.mjs";import{xna as r}from"./cli-0.5.8-hkfwdsmy.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
+ export{i as u5};
@@ -0,0 +1,2 @@
1
+ import{C3 as d,c3 as f,l0 as j,o0 as I,w2 as b,x2 as c}from"./cli-0.5.8-rddkqxh8.mjs";import{A5 as F,B5 as D}from"./cli-0.5.8-edf7e65a.mjs";import{Kba as y,Sba as T}from"./cli-0.5.8-qf19nfhv.mjs";import{$ca as E,Yca as $,Zca as R,_ca as _}from"./cli-0.5.8-bjqx8j31.mjs";import{kea as q,lea as m}from"./cli-0.5.8-qdnr3r07.mjs";import{Tea as M,Yea as U,ofa as W,rfa as z}from"./cli-0.5.8-xs1gy1tk.mjs";import{Qfa as k,Rfa as Y,Yfa as O}from"./cli-0.5.8-959n5v33.mjs";import{Ama as h,ima as X}from"./cli-0.5.8-fmyr9f7x.mjs";import{zna as A}from"./cli-0.5.8-hkfwdsmy.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function NJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=F(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function WJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function GJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function vJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J="ccr-byoc-2025-07-29",BJ;var g=A(()=>{h();m();I();R();d();z();D();O();E();T();c();U();S=[2000,4000,8000,16000],x=S.length;BJ=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
2
+ export{$J as iZ,p as jZ,u as kZ,BJ as lZ,C as mZ,NJ as nZ,L as oZ,WJ as pZ,GJ as qZ,vJ as rZ,XJ as sZ,g as tZ};
@@ -0,0 +1,2 @@
1
+ import{TC as R,UC as E,VC as l,WC as i,XC as c,YC as w,ZC as O,bD as y,cD as e}from"./cli-0.5.8-4hvxb5dp.mjs";import{GU as x,HU as s}from"./cli-0.5.8-60e57smp.mjs";import{GW as j,HW as r,RW as k,TW as W,lX as Q,wX as K,yV as n}from"./cli-0.5.8-nwe7yne9.mjs";import{WY as A,XY as V,YY as D,ZY as v}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as t}from"./cli-0.5.8-6epmns99.mjs";import{vna as q,zna as p}from"./cli-0.5.8-hkfwdsmy.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
2
+ export{X1 as Zf,u as _f,W1 as $f,B1 as ag};
@@ -0,0 +1,2 @@
1
+ import{yV as f}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as p,ZY as c}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as M}from"./cli-0.5.8-6epmns99.mjs";import{vna as o}from"./cli-0.5.8-hkfwdsmy.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
+ export{a as Eb,l as Fb};
@@ -0,0 +1,4 @@
1
+ import{Cca as w,Dca as L,Eca as _,yca as X}from"./cli-0.5.8-1x4w18nq.mjs";import{mea as MD,oea as cD}from"./cli-0.5.8-9fpm1ms3.mjs";import{Wea as jD,Yea as rD,afa as ND,efa as aD,ofa as x,rfa as dD}from"./cli-0.5.8-xs1gy1tk.mjs";import{$fa as zD,cga as HD,mga as mD}from"./cli-0.5.8-gm4jqzfs.mjs";import{Jla as PD,Sha as UD}from"./cli-0.5.8-bhc8vwxd.mjs";import{Ana as hD,vna as LD,xna as bD,zna as V}from"./cli-0.5.8-hkfwdsmy.mjs";var T=bD((Cu,S)=>{S.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});var W=161,f=1114109,p,l=12288,g=65510,h,P=4352,c=262141,N;var m=V(()=>{p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],h=[12288,12288,65281,65376,65504,65510],N=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var K=(D,F)=>{let u=0,C=Math.floor(D.length/2)-1;while(u<=C){let E=Math.floor((u+C)/2),B=E*2;if(F<D[B])C=E-1;else if(F>D[B+1])u=E+1;else return!0}return!1};var r=()=>{};function kD(D){let F=D[0],u=D[1];for(let C=0;C<D.length;C+=2){let E=D[C],B=D[C+1];if(a>=E&&a<=B)return[E,B];if(B-E>u-F)F=E,u=B}return[F,u]}var a=19968,_D,yD,d=(D)=>{if(D<W||D>f)return!1;return K(p,D)},s=(D)=>{if(D<l||D>g)return!1;return K(h,D)},n=(D)=>{if(D>=_D&&D<=yD)return!0;if(D<P||D>c)return!1;return K(N,D)};var i=V(()=>{m();r();[_D,yD]=kD(N)});function RD(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function v(D,{ambiguousAsWide:F=!1}={}){if(RD(D),s(D)||n(D)||F&&d(D))return 2;return 1}var o=V(()=>{i()});function G({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var e=()=>{};function O(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);if(!D.includes("\x1B")&&!D.includes("›"))return D;return D.replace(wD,"")}var wD;var t=V(()=>{e();wD=G()});function BD(D){let F=0,u=D.replace(ID,()=>{return F++,""});return{count:F,stripped:u}}function AD(D){if(typeof D!=="string"||D.length===0)return 0;if(D.includes(ED)){let{count:C,stripped:E}=BD(D);return C+AD(E)}let F=!0;for(let C=0;C<D.length;C++){let E=D.charCodeAt(C);if(E>=127||E===27){F=!1;break}}if(F){let C=0;for(let E=0;E<D.length;E++)if(D.charCodeAt(E)>31)C++;return C}if(D.includes("\x1B")){if(D=O(D),D.length===0)return 0}if(!xD(D)){let C=0;for(let E of D){let B=E.codePointAt(0);if(!uD(B))C+=v(B,{ambiguousAsWide:!1})}return C}let u=0;for(let{segment:C}of X().segment(D)){if(DD.lastIndex=0,DD.test(C)){u+=SD(C);continue}for(let E of C){let B=E.codePointAt(0);if(!uD(B)){u+=v(B,{ambiguousAsWide:!1});break}}}return u}function xD(D){for(let F of D){let u=F.codePointAt(0);if(u>=127744&&u<=129791)return!0;if(u>=9728&&u<=10175)return!0;if(u>=127462&&u<=127487)return!0;if(u>=65024&&u<=65039)return!0;if(u===8205)return!0}return!1}function SD(D){let F=D.codePointAt(0);if(F>=127462&&F<=127487){let u=0;for(let C of D)u++;return u===1?1:2}if(D.length===2){if(D.codePointAt(1)===65039&&(F>=48&&F<=57||F===35||F===42))return 1}return 2}function uD(D){if(D>=32&&D<127)return!1;if(D>=160&&D<768)return D===173;if(D<=31||D>=127&&D<=159)return!0;if(D>=8203&&D<=8205||D===65279||D>=8288&&D<=8292)return!0;if(D>=65024&&D<=65039||D>=917760&&D<=917999)return!0;if(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)return!0;if(D>=2304&&D<=3407){let F=D&127;if(F<=3)return!0;if(F>=58&&F<=79)return!0;if(F>=81&&F<=87)return!0;if(F>=98&&F<=99)return!0}if(D===3633||D>=3636&&D<=3642||D>=3655&&D<=3662||D===3761||D>=3764&&D<=3772||D>=3784&&D<=3789)return!0;if(D>=1536&&D<=1541||D===1757||D===1807||D===2274)return!0;if(D>=55296&&D<=57343)return!0;if(D>=917504&&D<=917631)return!0;return!1}var CD,DD,ED="\uDBFB\uDEEE",ID,b,FD,$;var QD=V(()=>{o();t();_();CD=LD(T(),1),DD=CD.default(),ID=/\u{10EEEE}\p{M}{0,3}/gu;b=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,FD={ambiguousIsNarrow:!0},$=b?(D)=>{if(D.includes(ED)){let{count:F,stripped:u}=BD(D);return F+(u.length>0?b(u,FD):0)}return b(D,FD)}:AD});function TD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"…";if(F<5)return U(u,F);let C=u.lastIndexOf("/"),E=C>=0?u.slice(C):u,B=C>=0?u.slice(0,C):"",A=$(E);if(A>=F-1)return y(D,F);let Q=F-1-A;if(Q<=0)return y(E,F);return VD(B,Q)+"…"+E}function U(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F-1)break;E+=B,C+=A}return E+"…"}function y(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=[...X().segment(u)],E=0,B=C.length;for(let A=C.length-1;A>=0;A--){let Q=$(C[A].segment);if(E+Q>F-1)break;E+=Q,B=A}return"…"+C.slice(B).map((A)=>A.segment).join("")}function VD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F)break;E+=B,C+=A}return E}function WD(D,F,u=!1){let C=D??"";if(C==="")return"";let E=C;if(u){let B=C.indexOf(`
2
+ `);if(B!==-1){if(E=C.substring(0,B),$(E)+1>F)return U(E,F);return`${E}…`}}if($(E)<=F)return E;return U(E,F)}var $D=V(()=>{QD();_()});function M(D){let F=D/1024;if(F<1)return`${D} bytes`;if(F<1024)return`${F.toFixed(1).replace(/\.0$/,"")}KB`;let u=F/1024;if(u<1024)return`${u.toFixed(1).replace(/\.0$/,"")}MB`;return`${(u/1024).toFixed(1).replace(/\.0$/,"")}GB`}function wu(D){return`${(D/1000).toFixed(1)}s`}function Lu(D,F){if(D<60000){if(D===0)return"0s";if(D<1)return`${(D/1000).toFixed(1)}s`;return`${Math.floor(D/1000).toString()}s`}let u=Math.floor(D/86400000),C=Math.floor(D%86400000/3600000),E=Math.floor(D%3600000/60000),B=Math.round(D%60000/1000);if(B===60)B=0,E++;if(E===60)E=0,C++;if(C===24)C=0,u++;let A=F?.hideTrailingZeros;if(F?.mostSignificantOnly){if(u>0)return`${u}d`;if(C>0)return`${C}h`;if(E>0)return`${E}m`;return`${B}s`}if(u>0){if(A&&C===0&&E===0)return`${u}d`;if(A&&E===0)return`${u}d ${C}h`;return`${u}d ${C}h ${E}m`}if(C>0){if(A&&E===0&&B===0)return`${C}h`;if(A&&B===0)return`${C}h ${E}m`;return`${C}h ${E}m ${B}s`}if(E>0){if(A&&B===0)return`${E}m`;return`${E}m ${B}s`}return`${B}s`}function pD(D){let F=D>=1000;return fD(F).format(D).toLowerCase()}function Iu(D){return pD(D).replace(".0","")}function qD(D,F={}){let{style:u="narrow",numeric:C="always",now:E=new Date}=F,B=D.getTime()-E.getTime(),A=Math.trunc(B/1000),Q=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:q,seconds:Y,shortUnit:j}of Q)if(Math.abs(A)>=Y){let J=Math.trunc(A/Y);if(u==="narrow")return A<0?`${Math.abs(J)}${j} ago`:`in ${J}${j}`;return w("long",C).format(J,q)}if(u==="narrow")return A<=0?"0s ago":"in 0s";return w(u,C).format(0,"second")}function lD(D,F={}){let{now:u=new Date,...C}=F;if(D>u)return qD(D,{...C,now:u});return qD(D,{...C,numeric:"always",now:u})}function xu(D){let F=D.fileSize!==void 0?M(D.fileSize):`${D.messageCount} messages`,u=[lD(D.modified,{style:"short"}),...D.gitBranch?[D.gitBranch]:[],F];if(D.tag)u.push(`#${D.tag}`);if(D.agentSetting)u.push(`@${D.agentSetting}`);if(D.prNumber)u.push(D.prRepository?`${D.prRepository}#${D.prNumber}`:`#${D.prNumber}`);return u.join(" · ")}function gD(D,F=!1,u=!0){if(!D)return;let C=new Date(D*1000),E=new Date,B=C.getMinutes();if((C.getTime()-E.getTime())/3600000>24){let q={month:"short",day:"numeric",hour:u?"numeric":void 0,minute:!u||B===0?void 0:"2-digit",hour12:u?!0:void 0};if(C.getFullYear()!==E.getFullYear())q.year="numeric";return C.toLocaleString("en-US",q).replace(/ ([AP]M)/i,(j,J)=>J.toLowerCase())+(F?` (${L()})`:"")}return C.toLocaleTimeString("en-US",{hour:"numeric",minute:B===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(q,Y)=>Y.toLowerCase())+(F?` (${L()})`:"")}function Su(D,F=!1,u=!0){let C=new Date(D);return`${gD(Math.floor(C.getTime()/1000),F,u)}`}var k=null,R=null,fD=(D)=>{if(D){if(!k)k=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return k}else{if(!R)R=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return R}};var XD=V(()=>{_();$D()});function H(){if(!I)I=hD("perf_hooks").performance;return I}function z(D){return D.toFixed(3)}function YD(D,F,u,C,E,B,A=""){let Q=C?` | RSS: ${M(C.rss)}, Heap: ${M(C.heapUsed)}`:"";return`[+${z(D).padStart(E)}ms] (+${z(F).padStart(B)}ms) ${u}${A}${Q}`}var I=null;var JD=V(()=>{XD()});import{dirname as sD,join as nD}from"path";function eD(D){if(!GD)return;if(H().mark(D),Z)OD.push(process.memoryUsage())}function ZD(){if(!Z)return"Startup profiling not enabled";let F=H().getEntriesByType("mark");if(F.length===0)return"No profiling checkpoints recorded";let u=[];u.push("=".repeat(80)),u.push("STARTUP PROFILING REPORT"),u.push("=".repeat(80)),u.push("");let C=0;for(let[B,A]of F.entries())u.push(YD(A.startTime,A.startTime-C,A.name,OD[B],8,7)),C=A.startTime;let E=F[F.length-1];return u.push(""),u.push(`Total startup time: ${z(E?.startTime??0)}ms`),u.push("=".repeat(80)),u.join(`
3
+ `)}function tD(){if(KD)return;if(KD=!0,uu(),Z){let D=Du(),F=sD(D);ND().mkdirSync(F),jD(D,ZD(),{encoding:"utf8",flush:!0}),x("Startup profiling report:"),x(ZD())}}function du(){return Z}function Du(){return nD(zD(),"startup-perf",`${UD()}.txt`)}function uu(){if(!vD)return;let F=H().getEntriesByType("mark");if(F.length===0)return;let u=new Map;for(let E of F)u.set(E.name,E.startTime);let C={};for(let[E,[B,A]]of Object.entries(oD)){let Q=u.get(B),q=u.get(A);if(Q!==void 0&&q!==void 0)C[`${E}_ms`]=Math.round(q-Q)}C.checkpoint_count=F.length,MD("tengu_startup_perf",C)}var Z,iD=0.005,vD,GD,OD,oD,KD=!1;var Fu=V(()=>{PD();cD();dD();mD();aD();JD();rD();Z=HD(process.env.CLAUDE_CODE_PROFILE_STARTUP),vD=Math.random()<iD,GD=Z||vD,OD=[],oD={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(GD)eD("profiler_initialized"),process.on("exit",()=>{try{tD()}catch{}})});
4
+ export{v as Tba,o as Uba,O as Vba,t as Wba,$ as Xba,QD as Yba,TD as Zba,U as _ba,y as $ba,VD as aca,WD as bca,$D as cca,M as dca,wu as eca,Lu as fca,pD as gca,Iu as hca,qD as ica,lD as jca,xu as kca,gD as lca,Su as mca,XD as nca,H as oca,z as pca,YD as qca,JD as rca,eD as sca,tD as tca,du as uca,Du as vca,uu as wca,Fu as xca};
@@ -0,0 +1,2 @@
1
+ import{Ju as T,PL as f,QL as L,_L as r,dA as K,dO as i,fA as I,gA as _,iA as p,mz as P,sz as b,yz as j}from"./cli-0.5.8-4hvxb5dp.mjs";import{PS as A,QS as n}from"./cli-0.5.8-xvf56w0z.mjs";import{mea as E,oea as C}from"./cli-0.5.8-9fpm1ms3.mjs";import{afa as M,efa as m,ofa as Z,rea as F,rfa as u,tea as S}from"./cli-0.5.8-xs1gy1tk.mjs";import{Jla as c,Oha as Y,Pha as k,qla as v}from"./cli-0.5.8-bhc8vwxd.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
+ export{Zq as jb};
@@ -0,0 +1,2 @@
1
+ import{EW as k,FW as FQ,RW as p,TW as u,ZW as UQ,lX as h,wX as y,yV as m}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as S,YY as $,ZY as j}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as f}from"./cli-0.5.8-6epmns99.mjs";import{Xba as GQ,Yba as PQ}from"./cli-0.5.8-5h92528m.mjs";import{vna as W,zna as P}from"./cli-0.5.8-hkfwdsmy.mjs";function d(){let X=c.useContext(k);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var c;var a=P(()=>{FQ();c=W(f(),1)});function o(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var s=()=>{};function r(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function IQ(X){if(X===" ")return[r("space")];return X.trim().split(/\s+/).map(r)}function BQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=EQ(X.key);return Q.push(V),Q.join("+")}function EQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function b(X){return X.map(BQ).join(" ")}function jQ(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:IQ(Z),action:Y,context:V.context});return Q}var i=()=>{};function n(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?b(Z.chord):void 0}function zQ(X,Q){let V=o(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function t(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function NQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!t(Z,Y))return!1}return!0}function SQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!t(Z,Y))return!1}return!0}function e(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=zQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),I=Z.filter((U)=>q.has(U.context)),F=new Map;for(let U of I)if(U.chord.length>G.length&&NQ(G,U))F.set(b(U.chord),U.action);let B=!1;for(let U of F.values())if(U!==null){B=!0;break}if(B)return{type:"chord_started",pending:G};let H;for(let U of I)if(SQ(G,U))H=U;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var QQ=P(()=>{s();i()});function $Q(X){let Q=x.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:I,handlerRegistryRef:F,children:B}=X,H;if(Q[0]!==V)H=(L,O)=>n(L,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let U=H,_;if(Q[2]!==F)_=(L)=>{let O=F.current;if(!O)return _Q;if(!O.has(L.action))O.set(L.action,new Set);return O.get(L.action).add(L),()=>{let D=O.get(L.action);if(D){if(D.delete(L),D.size===0)O.delete(L.action)}}},Q[2]=F,Q[3]=_;else _=Q[3];let v=_,A;if(Q[4]!==G||Q[5]!==F)A=(L)=>{let O=F.current;if(!O)return!1;let D=O.get(L);if(!D||D.size===0)return!1;for(let g of D)if(G.has(g.context))return g.handler(),!0;return!1},Q[4]=G,Q[5]=F,Q[6]=A;else A=Q[6];let R=A,z;if(Q[7]!==V||Q[8]!==Z)z=(L,O,D)=>e(L,O,D,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=z;else z=Q[9];let w;if(Q[10]!==G||Q[11]!==V||Q[12]!==U||Q[13]!==R||Q[14]!==Y||Q[15]!==q||Q[16]!==v||Q[17]!==J||Q[18]!==z||Q[19]!==I)w={resolve:z,setPendingChord:J,getDisplayText:U,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:I,registerHandler:v,invokeAction:R},Q[10]=G,Q[11]=V,Q[12]=U,Q[13]=R,Q[14]=Y,Q[15]=q,Q[16]=v,Q[17]=J,Q[18]=z,Q[19]=I,Q[20]=w;else w=Q[20];let N=w,E;if(Q[21]!==B||Q[22]!==N)E=S(VQ.Provider,{value:N,children:B}),Q[21]=B,Q[22]=N,Q[23]=E;else E=Q[23];return E}function _Q(){}function C(){return T.useContext(VQ)}function pQ(X,Q){let V=x.c(5),Z=Q===void 0?!0:Q,Y=C(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];T.useLayoutEffect(J,G)}var x,T,VQ;var XQ=P(()=>{QQ();j();x=W(m(),1),T=W(f(),1),VQ=T.createContext(null)});function lQ(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=C();M.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=M.useCallback((q,I,F)=>{if(!J)return;let B=[...J.activeContexts,Z,"Global"],H=[...new Set(B)],U=J.resolve(q,I,H);switch(U.type){case"match":if(J.setPendingChord(null),U.action===X){if(Q()!==!1)F.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(U.pending),F.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),F.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);h(G,{isActive:Y})}function gQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=C();M.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,I]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:I}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=M.useCallback((G,q,I)=>{if(!Y)return;let F=[...Y.activeContexts,V,"Global"],B=[...new Set(F)],H=Y.resolve(G,q,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let U=X[H.action];if(U&&U()!==!1)I.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),I.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),I.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);h(J,{isActive:Z})}var M;var DQ=P(()=>{y();XQ();M=W(f(),1)});function ZQ(){return K.useContext(l)!==null}function cQ(X){let Q=YQ.c(3),V=K.useContext(l),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function dQ(){return K.useContext(l)?.scrollRef??null}var YQ,K,l;var JQ=P(()=>{YQ=W(m(),1),K=W(f(),1),l=K.createContext(null)});function HQ(X){let Q=qQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,I=J===void 0?0:J,{columns:F}=d(),B=Math.max(0,(V??F)-I);if(G){let v=GQ(G)+2,A=Math.max(0,B-v),R=Math.floor(A/2),z=A-R,w=!Z,N;if(Q[0]!==q||Q[1]!==R)N=q.repeat(R),Q[0]=q,Q[1]=R,Q[2]=N;else N=Q[2];let E;if(Q[3]!==G)E=S(u,{dimColor:!0,children:S(UQ,{children:G})}),Q[3]=G,Q[4]=E;else E=Q[4];let L;if(Q[5]!==q||Q[6]!==z)L=q.repeat(z),Q[5]=q,Q[6]=z,Q[7]=L;else L=Q[7];let O;if(Q[8]!==Z||Q[9]!==w||Q[10]!==N||Q[11]!==E||Q[12]!==L)O=$(u,{color:Z,dimColor:w,children:[N," ",E," ",L]}),Q[8]=Z,Q[9]=w,Q[10]=N,Q[11]=E,Q[12]=L,Q[13]=O;else O=Q[13];return O}let H=!Z,U;if(Q[14]!==q||Q[15]!==B)U=q.repeat(B),Q[14]=q,Q[15]=B,Q[16]=U;else U=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==U)_=S(u,{color:Z,dimColor:H,children:U}),Q[17]=Z,Q[18]=H,Q[19]=U,Q[20]=_;else _=Q[20];return _}var qQ;var LQ=P(()=>{a();PQ();y();j();qQ=W(m(),1)});function VV(X){let Q=OQ.c(9),{children:V,color:Z}=X;if(ZQ()){let q;if(Q[0]!==V)q=S(p,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(HQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(p,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=$(p,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var OQ;var RQ=P(()=>{JQ();y();LQ();j();OQ=W(m(),1)});
2
+ export{d as GU,a as HU,r as IU,IQ as JU,b as KU,jQ as LU,i as MU,n as NU,e as OU,QQ as PU,$Q as QU,C as RU,pQ as SU,XQ as TU,lQ as UU,gQ as VU,DQ as WU,l as XU,ZQ as YU,cQ as ZU,dQ as _U,JQ as $U,HQ as aV,LQ as bV,VV as cV,RQ as dV};
@@ -0,0 +1,5 @@
1
+ import{xna as tZ}from"./cli-0.5.8-hkfwdsmy.mjs";var u0=tZ((g0,LZ)=>{function JZ(Z){if(Z instanceof Map)Z.clear=Z.delete=Z.set=function(){throw Error("map is read-only")};else if(Z instanceof Set)Z.add=Z.clear=Z.delete=function(){throw Error("set is read-only")};return Object.freeze(Z),Object.getOwnPropertyNames(Z).forEach(function(J){var z=Z[J];if(typeof z=="object"&&!Object.isFrozen(z))JZ(z)}),Z}var yZ=JZ,aZ=JZ;yZ.default=aZ;class ZZ{constructor(Z){if(Z.data===void 0)Z.data={};this.data=Z.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function M(Z){return Z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function x(Z,...J){let z=Object.create(null);for(let $ in Z)z[$]=Z[$];return J.forEach(function($){for(let P in $)z[P]=$[P]}),z}var oZ="</span>",GZ=(Z)=>{return!!Z.kind};class HZ{constructor(Z,J){this.buffer="",this.classPrefix=J.classPrefix,Z.walk(this)}addText(Z){this.buffer+=M(Z)}openNode(Z){if(!GZ(Z))return;let J=Z.kind;if(!Z.sublanguage)J=`${this.classPrefix}${J}`;this.span(J)}closeNode(Z){if(!GZ(Z))return;this.buffer+=oZ}value(){return this.buffer}span(Z){this.buffer+=`<span class="${Z}">`}}class QZ{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Z){this.top.children.push(Z)}openNode(Z){let J={kind:Z,children:[]};this.add(J),this.stack.push(J)}closeNode(){if(this.stack.length>1)return this.stack.pop();return}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Z){return this.constructor._walk(Z,this.rootNode)}static _walk(Z,J){if(typeof J==="string")Z.addText(J);else if(J.children)Z.openNode(J),J.children.forEach((z)=>this._walk(Z,z)),Z.closeNode(J);return Z}static _collapse(Z){if(typeof Z==="string")return;if(!Z.children)return;if(Z.children.every((J)=>typeof J==="string"))Z.children=[Z.children.join("")];else Z.children.forEach((J)=>{QZ._collapse(J)})}}class BZ extends QZ{constructor(Z){super();this.options=Z}addKeyword(Z,J){if(Z==="")return;this.openNode(J),this.addText(Z),this.closeNode()}addText(Z){if(Z==="")return;this.add(Z)}addSublanguage(Z,J){let z=Z.root;z.kind=J,z.sublanguage=!0,this.add(z)}toHTML(){return new HZ(this,this.options).value()}finalize(){return!0}}function eZ(Z){return new RegExp(Z.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function E(Z){if(!Z)return null;if(typeof Z==="string")return Z;return Z.source}function Z0(...Z){return Z.map((z)=>E(z)).join("")}function q0(...Z){return"("+Z.map((z)=>E(z)).join("|")+")"}function J0(Z){return new RegExp(Z.toString()+"|").exec("").length-1}function Q0(Z,J){let z=Z&&Z.exec(J);return z&&z.index===0}var X0=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function V0(Z,J="|"){let z=0;return Z.map(($)=>{z+=1;let P=z,v=E($),D="";while(v.length>0){let Q=X0.exec(v);if(!Q){D+=v;break}if(D+=v.substring(0,Q.index),v=v.substring(Q.index+Q[0].length),Q[0][0]==="\\"&&Q[1])D+="\\"+String(Number(Q[1])+P);else if(D+=Q[0],Q[0]==="(")z++}return D}).map(($)=>`(${$})`).join(J)}var z0=/\b\B/,DZ="[a-zA-Z]\\w*",XZ="[a-zA-Z_]\\w*",VZ="\\b\\d+(\\.\\d+)?",CZ="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",kZ="\\b(0b[01]+)",Y0="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",W0=(Z={})=>{let J=/^#![ ]*\//;if(Z.binary)Z.begin=Z0(J,/.*\b/,Z.binary,/\b.*/);return x({className:"meta",begin:J,end:/$/,relevance:0,"on:begin":(z,$)=>{if(z.index!==0)$.ignoreMatch()}},Z)},p={begin:"\\\\[\\s\\S]",relevance:0},$0={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[p]},F0={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[p]},jZ={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},r=function(Z,J,z={}){let $=x({className:"comment",begin:Z,end:J,contains:[]},z);return $.contains.push(jZ),$.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),$},G0=r("//","$"),U0=r("/\\*","\\*/"),K0=r("#","$"),I0={className:"number",begin:VZ,relevance:0},P0={className:"number",begin:CZ,relevance:0},v0={className:"number",begin:kZ,relevance:0},y0={className:"number",begin:VZ+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},H0={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[p,{begin:/\[/,end:/\]/,relevance:0,contains:[p]}]}]},B0={className:"title",begin:DZ,relevance:0},D0={className:"title",begin:XZ,relevance:0},C0={begin:"\\.\\s*"+XZ,relevance:0},k0=function(Z){return Object.assign(Z,{"on:begin":(J,z)=>{z.data._beginMatch=J[1]},"on:end":(J,z)=>{if(z.data._beginMatch!==J[1])z.ignoreMatch()}})},i=Object.freeze({__proto__:null,MATCH_NOTHING_RE:z0,IDENT_RE:DZ,UNDERSCORE_IDENT_RE:XZ,NUMBER_RE:VZ,C_NUMBER_RE:CZ,BINARY_NUMBER_RE:kZ,RE_STARTERS_RE:Y0,SHEBANG:W0,BACKSLASH_ESCAPE:p,APOS_STRING_MODE:$0,QUOTE_STRING_MODE:F0,PHRASAL_WORDS_MODE:jZ,COMMENT:r,C_LINE_COMMENT_MODE:G0,C_BLOCK_COMMENT_MODE:U0,HASH_COMMENT_MODE:K0,NUMBER_MODE:I0,C_NUMBER_MODE:P0,BINARY_NUMBER_MODE:v0,CSS_NUMBER_MODE:y0,REGEXP_MODE:H0,TITLE_MODE:B0,UNDERSCORE_TITLE_MODE:D0,METHOD_GUARD:C0,END_SAME_AS_BEGIN:k0});function j0(Z,J){if(Z.input[Z.index-1]===".")J.ignoreMatch()}function A0(Z,J){if(!J)return;if(!Z.beginKeywords)return;if(Z.begin="\\b("+Z.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Z.__beforeBegin=j0,Z.keywords=Z.keywords||Z.beginKeywords,delete Z.beginKeywords,Z.relevance===void 0)Z.relevance=0}function w0(Z,J){if(!Array.isArray(Z.illegal))return;Z.illegal=q0(...Z.illegal)}function L0(Z,J){if(!Z.match)return;if(Z.begin||Z.end)throw Error("begin & end are not supported with match");Z.begin=Z.match,delete Z.match}function O0(Z,J){if(Z.relevance===void 0)Z.relevance=1}var T0=["of","and","for","in","not","or","if","then","parent","list","value"],R0="keyword";function AZ(Z,J,z=R0){let $={};if(typeof Z==="string")P(z,Z.split(" "));else if(Array.isArray(Z))P(z,Z);else Object.keys(Z).forEach(function(v){Object.assign($,AZ(Z[v],J,v))});return $;function P(v,D){if(J)D=D.map((Q)=>Q.toLowerCase());D.forEach(function(Q){let X=Q.split("|");$[X[0]]=[v,S0(X[0],X[1])]})}}function S0(Z,J){if(J)return Number(J);return _0(Z)?0:1}function _0(Z){return T0.includes(Z.toLowerCase())}function x0(Z,{plugins:J}){function z(Q,X){return new RegExp(E(Q),"m"+(Z.case_insensitive?"i":"")+(X?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Q,X){X.position=this.position++,this.matchIndexes[this.matchAt]=X,this.regexes.push([X,Q]),this.matchAt+=J0(Q)+1}compile(){if(this.regexes.length===0)this.exec=()=>null;let Q=this.regexes.map((X)=>X[1]);this.matcherRe=z(V0(Q),!0),this.lastIndex=0}exec(Q){this.matcherRe.lastIndex=this.lastIndex;let X=this.matcherRe.exec(Q);if(!X)return null;let I=X.findIndex((k,S)=>S>0&&k!==void 0),U=this.matchIndexes[I];return X.splice(0,I),Object.assign(X,U)}}class P{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Q){if(this.multiRegexes[Q])return this.multiRegexes[Q];let X=new $;return this.rules.slice(Q).forEach(([I,U])=>X.addRule(I,U)),X.compile(),this.multiRegexes[Q]=X,X}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Q,X){if(this.rules.push([Q,X]),X.type==="begin")this.count++}exec(Q){let X=this.getMatcher(this.regexIndex);X.lastIndex=this.lastIndex;let I=X.exec(Q);if(this.resumingScanAtSamePosition())if(I&&I.index===this.lastIndex);else{let U=this.getMatcher(0);U.lastIndex=this.lastIndex+1,I=U.exec(Q)}if(I){if(this.regexIndex+=I.position+1,this.regexIndex===this.count)this.considerAll()}return I}}function v(Q){let X=new P;if(Q.contains.forEach((I)=>X.addRule(I.begin,{rule:I,type:"begin"})),Q.terminatorEnd)X.addRule(Q.terminatorEnd,{type:"end"});if(Q.illegal)X.addRule(Q.illegal,{type:"illegal"});return X}function D(Q,X){let I=Q;if(Q.isCompiled)return I;[L0].forEach((k)=>k(Q,X)),Z.compilerExtensions.forEach((k)=>k(Q,X)),Q.__beforeBegin=null,[A0,w0,O0].forEach((k)=>k(Q,X)),Q.isCompiled=!0;let U=null;if(typeof Q.keywords==="object")U=Q.keywords.$pattern,delete Q.keywords.$pattern;if(Q.keywords)Q.keywords=AZ(Q.keywords,Z.case_insensitive);if(Q.lexemes&&U)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");if(U=U||Q.lexemes||/\w+/,I.keywordPatternRe=z(U,!0),X){if(!Q.begin)Q.begin=/\B|\b/;if(I.beginRe=z(Q.begin),Q.endSameAsBegin)Q.end=Q.begin;if(!Q.end&&!Q.endsWithParent)Q.end=/\B|\b/;if(Q.end)I.endRe=z(Q.end);if(I.terminatorEnd=E(Q.end)||"",Q.endsWithParent&&X.terminatorEnd)I.terminatorEnd+=(Q.end?"|":"")+X.terminatorEnd}if(Q.illegal)I.illegalRe=z(Q.illegal);if(!Q.contains)Q.contains=[];if(Q.contains=[].concat(...Q.contains.map(function(k){return f0(k==="self"?Q:k)})),Q.contains.forEach(function(k){D(k,I)}),Q.starts)D(Q.starts,X);return I.matcher=v(I),I}if(!Z.compilerExtensions)Z.compilerExtensions=[];if(Z.contains&&Z.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Z.classNameAliases=x(Z.classNameAliases||{}),D(Z)}function wZ(Z){if(!Z)return!1;return Z.endsWithParent||wZ(Z.starts)}function f0(Z){if(Z.variants&&!Z.cachedVariants)Z.cachedVariants=Z.variants.map(function(J){return x(Z,{variants:null},J)});if(Z.cachedVariants)return Z.cachedVariants;if(wZ(Z))return x(Z,{starts:Z.starts?x(Z.starts):null});if(Object.isFrozen(Z))return x(Z);return Z}var b0="10.7.3";function N0(Z){return Boolean(Z||Z==="")}function M0(Z){let J={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){if(this.unknownLanguage)return"";return"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!Z.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,M(this.code);let $={};if(this.autoDetect)$=Z.highlightAuto(this.code),this.detectedLanguage=$.language;else $=Z.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language;return $.value},autoDetect(){return!this.language||N0(this.autodetect)},ignoreIllegals(){return!0}},render($){return $("pre",{},[$("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:J,VuePlugin:{install($){$.component("highlightjs",J)}}}}var E0={"after:highlightElement":({el:Z,result:J,text:z})=>{let $=UZ(Z);if(!$.length)return;let P=document.createElement("div");P.innerHTML=J.value,J.value=p0($,UZ(P),z)}};function qZ(Z){return Z.nodeName.toLowerCase()}function UZ(Z){let J=[];return function z($,P){for(let v=$.firstChild;v;v=v.nextSibling)if(v.nodeType===3)P+=v.nodeValue.length;else if(v.nodeType===1){if(J.push({event:"start",offset:P,node:v}),P=z(v,P),!qZ(v).match(/br|hr|img|input/))J.push({event:"stop",offset:P,node:v})}return P}(Z,0),J}function p0(Z,J,z){let $=0,P="",v=[];function D(){if(!Z.length||!J.length)return Z.length?Z:J;if(Z[0].offset!==J[0].offset)return Z[0].offset<J[0].offset?Z:J;return J[0].event==="start"?Z:J}function Q(U){function k(S){return" "+S.nodeName+'="'+M(S.value)+'"'}P+="<"+qZ(U)+[].map.call(U.attributes,k).join("")+">"}function X(U){P+="</"+qZ(U)+">"}function I(U){(U.event==="start"?Q:X)(U.node)}while(Z.length||J.length){let U=D();if(P+=M(z.substring($,U[0].offset)),$=U[0].offset,U===Z){v.reverse().forEach(X);do I(U.splice(0,1)[0]),U=D();while(U===Z&&U.length&&U[0].offset===$);v.reverse().forEach(Q)}else{if(U[0].event==="start")v.push(U[0].node);else v.pop();I(U.splice(0,1)[0])}}return P+M(z.substr($))}var KZ={},o=(Z)=>{console.error(Z)},IZ=(Z,...J)=>{console.log(`WARN: ${Z}`,...J)},w=(Z,J)=>{if(KZ[`${Z}/${J}`])return;console.log(`Deprecated as of ${Z}. ${J}`),KZ[`${Z}/${J}`]=!0},e=M,PZ=x,vZ=Symbol("nomatch"),h0=function(Z){let J=Object.create(null),z=Object.create(null),$=[],P=!0,v=/(^(<[^>]+>|\t|)+|\n)/gm,D="Could not find the language '{}', did you forget to load/include a language module?",Q={disableAutodetect:!0,name:"Plain text",contains:[]},X={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:BZ};function I(q){return X.noHighlightRe.test(q)}function U(q){let V=q.className+" ";V+=q.parentNode?q.parentNode.className:"";let K=X.languageDetectRe.exec(V);if(K){let H=R(K[1]);if(!H)IZ(D.replace("{}",K[1])),IZ("Falling back to no-highlight mode for this block.",q);return H?K[1]:"no-highlight"}return V.split(/\s+/).find((H)=>I(H)||R(H))}function k(q,V,K,H){let C="",f="";if(typeof V==="object")C=q,K=V.ignoreIllegals,f=V.language,H=void 0;else w("10.7.0","highlight(lang, code, ...args) has been deprecated."),w("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),f=q,C=V;let L={code:C,language:f};c("before:highlight",L);let O=L.result?L.result:S(L.language,L.code,K,H);return O.code=L.code,c("after:highlight",O),O}function S(q,V,K,H){function C(Y,W){let G=b.case_insensitive?W[0].toLowerCase():W[0];return Object.prototype.hasOwnProperty.call(Y.keywords,G)&&Y.keywords[G]}function f(){if(!F.keywords){j.addText(B);return}let Y=0;F.keywordPatternRe.lastIndex=0;let W=F.keywordPatternRe.exec(B),G="";while(W){G+=B.substring(Y,W.index);let y=C(F,W);if(y){let[A,s]=y;if(j.addText(G),G="",g+=s,A.startsWith("_"))G+=W[0];else{let nZ=b.classNameAliases[A]||A;j.addKeyword(W[0],nZ)}}else G+=W[0];Y=F.keywordPatternRe.lastIndex,W=F.keywordPatternRe.exec(B)}G+=B.substr(Y),j.addText(G)}function L(){if(B==="")return;let Y=null;if(typeof F.subLanguage==="string"){if(!J[F.subLanguage]){j.addText(B);return}Y=S(F.subLanguage,B,!0,FZ[F.subLanguage]),FZ[F.subLanguage]=Y.top}else Y=l(B,F.subLanguage.length?F.subLanguage:null);if(F.relevance>0)g+=Y.relevance;j.addSublanguage(Y.emitter,Y.language)}function O(){if(F.subLanguage!=null)L();else f();B=""}function T(Y){if(Y.className)j.openNode(b.classNameAliases[Y.className]||Y.className);return F=Object.create(Y,{parent:{value:F}}),F}function _(Y,W,G){let y=Q0(Y.endRe,G);if(y){if(Y["on:end"]){let A=new ZZ(Y);if(Y["on:end"](W,A),A.isMatchIgnored)y=!1}if(y){while(Y.endsParent&&Y.parent)Y=Y.parent;return Y}}if(Y.endsWithParent)return _(Y.parent,W,G)}function iZ(Y){if(F.matcher.regexIndex===0)return B+=Y[0],1;else return a=!0,0}function rZ(Y){let W=Y[0],G=Y.rule,y=new ZZ(G),A=[G.__beforeBegin,G["on:begin"]];for(let s of A){if(!s)continue;if(s(Y,y),y.isMatchIgnored)return iZ(W)}if(G&&G.endSameAsBegin)G.endRe=eZ(W);if(G.skip)B+=W;else{if(G.excludeBegin)B+=W;if(O(),!G.returnBegin&&!G.excludeBegin)B=W}return T(G),G.returnBegin?0:W.length}function lZ(Y){let W=Y[0],G=V.substr(Y.index),y=_(F,Y,G);if(!y)return vZ;let A=F;if(A.skip)B+=W;else{if(!(A.returnEnd||A.excludeEnd))B+=W;if(O(),A.excludeEnd)B=W}do{if(F.className)j.closeNode();if(!F.skip&&!F.subLanguage)g+=F.relevance;F=F.parent}while(F!==y.parent);if(y.starts){if(y.endSameAsBegin)y.starts.endRe=y.endRe;T(y.starts)}return A.returnEnd?0:W.length}function dZ(){let Y=[];for(let W=F;W!==b;W=W.parent)if(W.className)Y.unshift(W.className);Y.forEach((W)=>j.openNode(W))}let u={};function $Z(Y,W){let G=W&&W[0];if(B+=Y,G==null)return O(),0;if(u.type==="begin"&&W.type==="end"&&u.index===W.index&&G===""){if(B+=V.slice(W.index,W.index+1),!P){let y=Error("0 width match regex");throw y.languageName=q,y.badRule=u.rule,y}return 1}if(u=W,W.type==="begin")return rZ(W);else if(W.type==="illegal"&&!K){let y=Error('Illegal lexeme "'+G+'" for mode "'+(F.className||"<unnamed>")+'"');throw y.mode=F,y}else if(W.type==="end"){let y=lZ(W);if(y!==vZ)return y}if(W.type==="illegal"&&G==="")return 1;if(t>1e5&&t>W.index*3)throw Error("potential infinite loop, way more iterations than matches");return B+=G,G.length}let b=R(q);if(!b)throw o(D.replace("{}",q)),Error('Unknown language: "'+q+'"');let mZ=x0(b,{plugins:$}),n="",F=H||mZ,FZ={},j=new X.__emitter(X);dZ();let B="",g=0,N=0,t=0,a=!1;try{F.matcher.considerAll();for(;;){if(t++,a)a=!1;else F.matcher.considerAll();F.matcher.lastIndex=N;let Y=F.matcher.exec(V);if(!Y)break;let W=V.substring(N,Y.index),G=$Z(W,Y);N=Y.index+G}return $Z(V.substr(N)),j.closeAllNodes(),j.finalize(),n=j.toHTML(),{relevance:Math.floor(g),value:n,language:q,illegal:!1,emitter:j,top:F}}catch(Y){if(Y.message&&Y.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Y.message,context:V.slice(N-100,N+100),mode:Y.mode},sofar:n,relevance:0,value:e(V),emitter:j};else if(P)return{illegal:!1,relevance:0,value:e(V),emitter:j,language:q,top:F,errorRaised:Y};else throw Y}}function OZ(q){let V={relevance:0,emitter:new X.__emitter(X),value:e(q),illegal:!1,top:Q};return V.emitter.addText(q),V}function l(q,V){V=V||X.languages||Object.keys(J);let K=OZ(q),H=V.filter(R).filter(WZ).map((T)=>S(T,q,!1));H.unshift(K);let C=H.sort((T,_)=>{if(T.relevance!==_.relevance)return _.relevance-T.relevance;if(T.language&&_.language){if(R(T.language).supersetOf===_.language)return 1;else if(R(_.language).supersetOf===T.language)return-1}return 0}),[f,L]=C,O=f;return O.second_best=L,O}function TZ(q){if(!(X.tabReplace||X.useBR))return q;return q.replace(v,(V)=>{if(V===`
3
+ `)return X.useBR?"<br>":V;else if(X.tabReplace)return V.replace(/\t/g,X.tabReplace);return V})}function RZ(q,V,K){let H=V?z[V]:K;if(q.classList.add("hljs"),H)q.classList.add(H)}let SZ={"before:highlightElement":({el:q})=>{if(X.useBR)q.innerHTML=q.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
4
+ `)},"after:highlightElement":({result:q})=>{if(X.useBR)q.value=q.value.replace(/\n/g,"<br>")}},_Z=/^(<[^>]+>|\t)+/gm,xZ={"after:highlightElement":({result:q})=>{if(X.tabReplace)q.value=q.value.replace(_Z,(V)=>V.replace(/\t/g,X.tabReplace))}};function h(q){let V=null,K=U(q);if(I(K))return;c("before:highlightElement",{el:q,language:K}),V=q;let H=V.textContent,C=K?k(H,{language:K,ignoreIllegals:!0}):l(H);if(c("after:highlightElement",{el:q,result:C,text:H}),q.innerHTML=C.value,RZ(q,K,C.language),q.result={language:C.language,re:C.relevance,relavance:C.relevance},C.second_best)q.second_best={language:C.second_best.language,re:C.second_best.relevance,relavance:C.second_best.relevance}}function fZ(q){if(q.useBR)w("10.3.0","'useBR' will be removed entirely in v11.0"),w("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559");X=PZ(X,q)}let d=()=>{if(d.called)return;d.called=!0,w("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(h)};function bZ(){w("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),m=!0}let m=!1;function zZ(){if(document.readyState==="loading"){m=!0;return}document.querySelectorAll("pre code").forEach(h)}function NZ(){if(m)zZ()}if(typeof window<"u"&&window.addEventListener)window.addEventListener("DOMContentLoaded",NZ,!1);function MZ(q,V){let K=null;try{K=V(Z)}catch(H){if(o("Language definition for '{}' could not be registered.".replace("{}",q)),!P)throw H;else o(H);K=Q}if(!K.name)K.name=q;if(J[q]=K,K.rawDefinition=V.bind(null,Z),K.aliases)YZ(K.aliases,{languageName:q})}function EZ(q){delete J[q];for(let V of Object.keys(z))if(z[V]===q)delete z[V]}function pZ(){return Object.keys(J)}function hZ(q){w("10.4.0","requireLanguage will be removed entirely in v11."),w("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");let V=R(q);if(V)return V;throw Error("The '{}' language is required, but not loaded.".replace("{}",q))}function R(q){return q=(q||"").toLowerCase(),J[q]||J[z[q]]}function YZ(q,{languageName:V}){if(typeof q==="string")q=[q];q.forEach((K)=>{z[K.toLowerCase()]=V})}function WZ(q){let V=R(q);return V&&!V.disableAutodetect}function cZ(q){if(q["before:highlightBlock"]&&!q["before:highlightElement"])q["before:highlightElement"]=(V)=>{q["before:highlightBlock"](Object.assign({block:V.el},V))};if(q["after:highlightBlock"]&&!q["after:highlightElement"])q["after:highlightElement"]=(V)=>{q["after:highlightBlock"](Object.assign({block:V.el},V))}}function uZ(q){cZ(q),$.push(q)}function c(q,V){let K=q;$.forEach(function(H){if(H[K])H[K](V)})}function gZ(q){return w("10.2.0","fixMarkup will be removed entirely in v11.0"),w("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),TZ(q)}function sZ(q){return w("10.7.0","highlightBlock will be removed entirely in v12.0"),w("10.7.0","Please use highlightElement now."),h(q)}Object.assign(Z,{highlight:k,highlightAuto:l,highlightAll:zZ,fixMarkup:gZ,highlightElement:h,highlightBlock:sZ,configure:fZ,initHighlighting:d,initHighlightingOnLoad:bZ,registerLanguage:MZ,unregisterLanguage:EZ,listLanguages:pZ,getLanguage:R,registerAliases:YZ,requireLanguage:hZ,autoDetection:WZ,inherit:PZ,addPlugin:uZ,vuePlugin:M0(Z).VuePlugin}),Z.debugMode=function(){P=!1},Z.safeMode=function(){P=!0},Z.versionString=b0;for(let q in i)if(typeof i[q]==="object")yZ(i[q]);return Object.assign(Z,i),Z.addPlugin(SZ),Z.addPlugin(E0),Z.addPlugin(xZ),Z},c0=h0({});LZ.exports=c0});
5
+ export{u0 as r5};
@@ -0,0 +1,2 @@
1
+ import{Qc as L,Rc as m}from"./cli-0.5.8-20gjzt7v.mjs";import{Xc as O,Yc as G,Zc as u}from"./cli-0.5.8-cc6m9nm7.mjs";import{C3 as E,N2 as U,R2 as k,W2 as A}from"./cli-0.5.8-rddkqxh8.mjs";import{Daa as _,Eaa as $,Kba as y,Maa as x,Sba as C,U$ as F,U_ as N,X$ as D,caa as Q,f$ as g,h9 as K,i9 as Z,o9 as P,paa as h,xaa as R}from"./cli-0.5.8-qf19nfhv.mjs";import{Qfa as Y,Yfa as f}from"./cli-0.5.8-959n5v33.mjs";import{Jla as b,dja as J}from"./cli-0.5.8-bhc8vwxd.mjs";import{zna as T}from"./cli-0.5.8-hkfwdsmy.mjs";function n(){V=!0}function M(){if(!V)return!1;return V=!1,!0}function a(j){return(z)=>({...z,...typeof j.permission_mode==="string"?{toolPermissionContext:{...z.toolPermissionContext,mode:Z(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function t({newState:j,oldState:z}){let W=M(),X=z.toolPermissionContext.mode,H=j.toolPermissionContext.mode;if(X!==H){let q=K(X),B=K(H);if(q!==B){let I=B==="plan"&&j.isUltraplanMode&&!z.isUltraplanMode?!0:null;O({permission_mode:B,is_ultraplan_mode:I})}G(H)}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel===null){if(J(null),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:void 0}));else N("userSettings",{model:void 0}),$()}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel!==null){if(J(j.mainLoopModel),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:j.mainLoopModel??void 0}));else N("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)F((I)=>({...I,showExpandedTodos:q,showSpinnerTree:B}))}if(j.verbose!==z.verbose&&D().verbose!==j.verbose){let q=j.verbose;F((B)=>({...B,verbose:q}))}if(j.collapseSubagentProgress!==z.collapseSubagentProgress&&D().collapseSubagentProgress!==j.collapseSubagentProgress){let q=j.collapseSubagentProgress;F((B)=>({...B,collapseSubagentProgress:q}))}if(j.settings!==z.settings)try{if(U(),k(),A(),j.settings.env!==z.settings.env)L()}catch(q){y(Y(q))}}var V=!1;var c=T(()=>{b();E();h();f();C();m();x();P();u();g()});
2
+ export{n as Lc,a as Mc,t as Nc,c as Oc};
@@ -0,0 +1,2 @@
1
+ import{zna as f}from"./cli-0.5.8-hkfwdsmy.mjs";function j(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function V(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function k(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(x);if(K){let W=Number(K[1]),$=Number(K[2]);if(W===10)return!0;if(W===172&&$>=16&&$<=31)return!0;if(W===192&&$===168)return!0;if(W===127)return!0;if(W===169&&$===254)return!0;if(W===100&&$>=64&&$<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||L.test(B)||Y.test(B))return!0;return!1}function C(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(k(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function A(q){if(!q||typeof q!=="object")return 0;let z=q,B=j(z.cache_read_input_tokens);if(B>0)return B;let K=j(V(q,["input_tokens_details","cached_tokens"]))||j(V(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=j(z.cached_tokens);if(W>0)return W;let $=j(z.prompt_cache_hit_tokens);if($>0)return $;let Q=j(z.cached_content_token_count);if(Q>0)return Q;return 0}function M(q){let z=A(q),B=q??{},K=j(B.input_tokens)||j(B.prompt_tokens),W=K>=z?K-z:K,$=j(B.output_tokens)||j(B.completion_tokens);return{input_tokens:W,output_tokens:$,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function U(q,z){if(!q||typeof q!=="object")return G;let B=q,K=j(B.cache_read_input_tokens),W=j(B.cache_creation_input_tokens),$=j(B.input_tokens);if(z==="copilot"||z==="ollama")return G;if(z==="self-hosted"&&K===0&&W===0)return G;let Q=K+W+$;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function w(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${H(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${H(q.read)}`,`created=${H(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function H(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(F,"")}k`;return`${(q/1e6).toFixed(1).replace(F,"")}m`}function Z(q,z){if(!q.supported&&!z.supported)return G;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var G,x,L,Y,F;var y=f(()=>{G={read:0,created:0,total:0,hitRate:null,supported:!1};x=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,L=/^fc[0-9a-f]{0,2}:/,Y=/^fd[0-9a-f]{0,2}:/,F=/\.0$/});function O(q){return{currentTurn:X,session:X,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function _(q,z){J.currentTurn=Z(J.currentTurn,q),J.session=Z(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function E(){J.currentTurn=X}function g(){J.currentTurn=X,J.session=X,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function N(){return J.currentTurn}function R(){return J.session}function b(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var D=500,X,J;var S=f(()=>{y();X={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(D)});
2
+ export{C as HY,M as IY,U as JY,w as KY,I as LY,y as MY,_ as NY,E as OY,g as PY,N as QY,R as RY,b as SY,S as TY};
@@ -0,0 +1,2 @@
1
+ import{xna as j}from"./cli-0.5.8-hkfwdsmy.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.6"});
2
+ export{Lt as _Y};
@@ -0,0 +1,3 @@
1
+ import{q as j,r as v}from"./cli-0.5.8-78y711gq.mjs";import{Lf as C}from"./cli-0.5.8-bv6qegpr.mjs";import{$Q as b,_Q as S}from"./cli-0.5.8-z14ncgt9.mjs";import{qY as R,sY as E}from"./cli-0.5.8-je6yq94p.mjs";import{$ca as z,Xca as Z,Zca as U,_ca as w}from"./cli-0.5.8-bjqx8j31.mjs";import{ida as L,vda as I}from"./cli-0.5.8-7fm71y20.mjs";import{Tea as D,Uea as T,Yea as u,ofa as M,rfa as l}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as f,Yfa as p}from"./cli-0.5.8-959n5v33.mjs";import{Ama as h,ima as k}from"./cli-0.5.8-fmyr9f7x.mjs";U();I();z();E();C();var F={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},m=w(()=>Z.object({init_retry_max_attempts:Z.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:Z.number().int().min(100).default(500),init_retry_jitter_fraction:Z.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:Z.number().int().min(500).default(4000),http_timeout_ms:Z.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:Z.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:Z.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:Z.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:Z.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:Z.number().int().min(500).max(2000).default(1500),connect_timeout_ms:Z.number().int().min(5000).max(60000).default(15000),min_version:Z.string().refine((J)=>{try{return R(J,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:Z.boolean().default(!1)}));async function y(){let J=await L("tengu_bridge_repl_v2_config",F),K=m().safeParse(J);return K.success?K.data:F}async function o(){let J=await y();if(J.min_version&&R("99.0.0",J.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
+ Version ${J.min_version} or higher is required. Run \`claudin update\` to update.`;return null}h();u();function JJ(J){let K=Buffer.from(J,"base64url").toString("utf-8"),X=T(K);if(!X||typeof X!=="object"||!("version"in X)||X.version!==1)throw Error(`Unsupported work secret version: ${X&&typeof X==="object"&&"version"in X?X.version:"unknown"}`);let Y=X;if(typeof Y.session_ingress_token!=="string"||Y.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof Y.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return X}function KJ(J,K){let X=new URL(J).hostname,Y=X==="localhost"||X==="127.0.0.1",x=Y?"ws":"wss",H=Y?"v2":"v1",P=J.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${x}://${P}/${H}/session_ingress/ws/${K}`}function QJ(J,K){if(J===K)return!0;let X=J.slice(J.lastIndexOf("_")+1),Y=K.slice(K.lastIndexOf("_")+1);return X.length>=4&&X===Y}function XJ(J,K){return`${J.replace(/\/+$/,"")}/v1/code/sessions/${K}`}async function B(J,K){let X=await k.post(`${J}/worker/register`,{},{headers:{Authorization:`Bearer ${K}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),Y=X.data?.worker_epoch,x=typeof Y==="string"?Number(Y):Y;if(typeof x!=="number"||!Number.isFinite(x)||!Number.isSafeInteger(x))throw Error(`registerWorker: invalid worker_epoch in response: ${D(X.data)}`);return x}l();p();b();function WJ(J){return{write:(K)=>J.write(K),writeBatch:(K)=>J.writeBatch(K),close:()=>J.close(),isConnectedStatus:()=>J.isConnectedStatus(),getStateLabel:()=>J.getStateLabel(),setOnData:(K)=>J.setOnData(K),setOnClose:(K)=>J.setOnClose(K),setOnConnect:(K)=>J.setOnConnect(K),connect:()=>void J.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return J.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function HJ(J){let{sessionUrl:K,ingressToken:X,sessionId:Y,initialSequenceNum:x,getAuthToken:H}=J,P;if(H)P=()=>{let Q=H();if(!Q)return{};return{Authorization:`Bearer ${Q}`}};else S(X);let O=J.epoch??await B(K,X);M(`[bridge:repl] CCR v2: worker sessionId=${Y} epoch=${O}${J.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(K);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let q=new v(V,{},Y,void 0,x,P),G,$=new j(q,new URL(K),{getAuthHeaders:P,heartbeatIntervalMs:J.heartbeatIntervalMs,heartbeatJitterFraction:J.heartbeatJitterFraction,onEpochMismatch:()=>{M("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{$.close(),q.close(),G?.(4090)}catch(Q){M(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${f(Q)}`,{level:"error"})}throw Error("epoch superseded")}});q.setOnEvent((Q)=>{$.reportDelivery(Q.event_id,"received"),$.reportDelivery(Q.event_id,"processed")});let _,N=!1,A=!1;return{write(Q){return $.writeEvent(Q)},async writeBatch(Q){for(let W of Q){if(A)break;await $.writeEvent(W)}},close(){A=!0,$.close(),q.close()},isConnectedStatus(){return N},getStateLabel(){if(q.isClosedStatus())return"closed";if(q.isConnectedStatus())return N?"connected":"init";return"connecting"},setOnData(Q){q.setOnData(Q)},setOnClose(Q){G=Q,q.setOnClose((W)=>{$.close(),Q(W??4092)})},setOnConnect(Q){_=Q},getLastSequenceNum(){return q.getLastSequenceNum()},droppedBatchCount:0,reportState(Q){$.reportState(Q)},reportMetadata(Q){$.reportMetadata(Q)},reportDelivery(Q,W){$.reportDelivery(Q,W)},flush(){return $.flush()},connect(){if(!J.outboundOnly)q.connect();$.initialize(O).then(()=>{N=!0,M(`[bridge:repl] v2 transport ready for writes (epoch=${O}, sse=${q.isConnectedStatus()?"open":"opening"})`),_?.()},(Q)=>{M(`[bridge:repl] CCR v2 initialize failed: ${f(Q)}`,{level:"error"}),$.close(),q.close(),G?.(4091)})}}}class g{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...J){if(!this._active)return!1;return this._pending.push(...J),!0}drop(){this._active=!1;let J=this._pending.length;return this._pending.length=0,J}deactivate(){this._active=!1}}
3
+ export{y as e,o as f,JJ as g,KJ as h,QJ as i,XJ as j,WJ as k,HJ as l,g as m};
@@ -0,0 +1,2 @@
1
+ import{Ud as j,Vd as E}from"./cli-0.5.8-f54hhqdn.mjs";import{An as W,Dn as v,TH as X,VH as Y,cI as Z,eI as w,iI as _,kI as $,pI as f}from"./cli-0.5.8-4hvxb5dp.mjs";import{B9 as Q,Kba as V,O9 as T,Sba as N,eaa as S,paa as A}from"./cli-0.5.8-qf19nfhv.mjs";import{ofa as B,rfa as R}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as L,Yfa as K}from"./cli-0.5.8-959n5v33.mjs";import{zna as y}from"./cli-0.5.8-hkfwdsmy.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:Q(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(S()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){V(q)}})()}var J=null,G=null;var U=y(()=>{E();A();R();K();N();f();w();v();T()});
2
+ export{d as Wb,P as Xb,t as Yb,U as Zb};
@@ -0,0 +1,2 @@
1
+ import{zna as b}from"./cli-0.5.8-hkfwdsmy.mjs";var j="Remote Control is only available with claude.ai subscriptions. Please use `/login` to sign in with your claude.ai account.",k="Remote Control disconnected.";var g=()=>{};
2
+ export{j as xd,k as yd,g as zd};
@@ -0,0 +1,7 @@
1
+ import{$Q as a,YQ as t,ZQ as E,aR as o,bR as s,gR as GQ}from"./cli-0.5.8-z14ncgt9.mjs";import{fZ as N,hZ as r}from"./cli-0.5.8-he3sfaey.mjs";import{w2 as U,x2 as I}from"./cli-0.5.8-rddkqxh8.mjs";import{P3 as n,W3 as KQ}from"./cli-0.5.8-jtqyf6nz.mjs";import{X5 as Y,Z5 as h}from"./cli-0.5.8-qf19nfhv.mjs";import{mea as u,oea as ZQ}from"./cli-0.5.8-9fpm1ms3.mjs";import{Tea as k,Uea as R,Yea as y,ofa as K,rfa as b}from"./cli-0.5.8-xs1gy1tk.mjs";import{Rfa as H,Sfa as i,Yfa as F}from"./cli-0.5.8-959n5v33.mjs";import{Ama as jQ,ima as e}from"./cli-0.5.8-fmyr9f7x.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();a();I();r();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=t(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}jQ();b();h();F();a();I();y();r();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
2
+
3
+ `,Z))!==-1){let $=Q.slice(Z,z);if(Z=z+2,!$.trim())continue;let J={},G=!1;for(let X of $.split(`
4
+ `)){if(X.startsWith(":")){G=!0;continue}let q=X.indexOf(":");if(q===-1)continue;let L=X.slice(0,q),O=X[q+1]===" "?X.slice(q+2):X.slice(q+1);switch(L){case"event":J.event=O;break;case"id":J.id=O;break;case"data":J.data=J.data?J.data+`
5
+ `+O:O;break}}if(J.data||G)W.push(J)}return{frames:W,remaining:Q.slice(Z)}}class _Q{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(Q,W={},Z,z,$,J){this.url=Q;if(this.headers=W,this.sessionId=Z,this.refreshHeaders=z,this.getAuthHeaders=J??E,this.postUrl=RQ(Q),$!==void 0&&$>0)this.lastSequenceNum=$;K(`SSETransport: SSE URL = ${Q.href}`),K(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){K(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let Q=Date.now(),W=new URL(this.url.href);if(this.lastSequenceNum>0)W.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Z=this.getAuthHeaders(),z={...this.headers,...Z,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":N()};if(Z.Cookie)delete z.Authorization;if(this.lastSequenceNum>0)z["Last-Event-ID"]=String(this.lastSequenceNum);K(`SSETransport: Opening ${W.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(W.href,{headers:z,signal:this.abortController.signal});if(!$.ok){let G=PQ.has($.status);if(K(`SSETransport: HTTP ${$.status}${G?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:$.status}),G){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){K("SSETransport: No response body"),this.handleConnectionError();return}let J=Date.now()-Q;K("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:J}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Connection error: ${H($)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(Q){let W=Q.getReader(),Z=new TextDecoder,z="";try{while(!0){let{done:$,value:J}=await W.read();if($)break;z+=Z.decode(J,kQ);let{frames:G,remaining:X}=AQ(z);z=X;for(let q of G){if(this.resetLivenessTimer(),q.id){let L=parseInt(q.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))K(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let O=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<O)this.seenSequenceNums.delete(_)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(q.event&&q.data)this.handleSSEFrame(q.event,q.data);else if(q.data)K("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{W.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")K("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(Q,W){if(Q!=="client_event"){K(`SSETransport: Unexpected SSE event type '${Q}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:Q});return}let Z;try{Z=R(W)}catch($){K(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let z=Z.payload;if(z&&typeof z==="object"&&"type"in z){let $=this.sessionId?` session=${this.sessionId}`:"";K(`SSETransport: Event seq=${Z.sequence_num} event_id=${Z.event_id} event_type=${Z.event_type} payload_type=${String(z.type)}${$}`),Y("info","cli_sse_message_received"),this.onData?.(k(z)+`
6
+ `)}else K(`SSETransport: Ignoring client_event with no type in payload: event_id=${Z.event_id}`);this.onEventCallback?.(Z)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;let W=Q-this.reconnectStartTime;if(W<UQ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),K("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Z=Math.min(BQ*Math.pow(2,this.reconnectAttempts-1),HQ),z=Math.max(0,Z+Z*0.25*(2*Math.random()-1));K(`SSETransport: Reconnecting in ${Math.round(z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(W/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},z)}else K(`SSETransport: Reconnection time budget exhausted after ${Math.round(W/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:W}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,K("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,CQ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0){K("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Z={...W,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()};K(`SSETransport: POST body keys=${Object.keys(Q).join(",")}`);for(let z=1;z<=A;z++){try{let J=await e.post(this.postUrl,Q,{headers:Z,validateStatus:xQ});if(J.status===200||J.status===201){K(`SSETransport: POST success type=${Q.type}`);return}if(K(`SSETransport: POST ${J.status} body=${k(J.data).slice(0,200)}`),J.status>=400&&J.status<500&&J.status!==429){K(`SSETransport: POST returned ${J.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:J.status});return}K(`SSETransport: POST returned ${J.status}, attempt ${z}/${A}`),Y("warn","cli_sse_post_retryable_error",{status:J.status,attempt:z})}catch(J){K(`SSETransport: POST error: ${J.message}, attempt ${z}/${A}`),Y("warn","cli_sse_post_network_error",{attempt:z})}if(z===A){K(`SSETransport: POST failed after ${A} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(TQ*Math.pow(2,z-1),NQ);await U($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(Q){this.onData=Q}setOnClose(Q){this.onCloseCallback=Q}setOnEvent(Q){this.onEventCallback=Q}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function RQ(Q){let W=Q.pathname;if(W.endsWith("/stream"))W=W.slice(0,-7);return`${Q.protocol}//${Q.host}${W}`}
7
+ export{FQ as n,x as o,M as p,OQ as q,_Q as r};
@@ -0,0 +1,2 @@
1
+ import{zna as C}from"./cli-0.5.8-hkfwdsmy.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15}});
2
+ export{O as ada,Q as bda,R as cda,S as dda,T as eda,U as fda,W as gda,X as hda,Y as ida,Z as jda,$ as kda,v as lda,w as mda,P as nda,B as oda,D as pda,h as qda,N as rda,m as sda,c as tda,F as uda,J as vda};
@@ -0,0 +1,3 @@
1
+ import{L as A}from"./cli-0.5.8-j77twbsq.mjs";import{Bba as $,Cba as F,Iba as z,Jba as H,Sba as P}from"./cli-0.5.8-qf19nfhv.mjs";import{Tea as O,Yea as w,afa as V,efa as C,ofa as X,pea as _,qea as N,rea as B,rfa as E,tea as W}from"./cli-0.5.8-xs1gy1tk.mjs";import{Jla as L,Sha as Z}from"./cli-0.5.8-bhc8vwxd.mjs";import{Ama as y,ima as q}from"./cli-0.5.8-fmyr9f7x.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
2
+ `)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
3
+ export{e as J};
@@ -0,0 +1,2 @@
1
+ import{zna as q}from"./cli-0.5.8-hkfwdsmy.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
+ export{x as ce,y as de,w as ee};