@claudiolabs/claudin 0.6.12 → 0.6.13

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 (889) hide show
  1. package/dist/chunks/AgentTool-0.6.13-372t6jvm.mjs +1 -0
  2. package/dist/chunks/App-0.6.13-qvfyfba9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.13-61en5qve.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +1 -0
  30. package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +3 -0
  31. package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +110 -0
  32. package/dist/chunks/api-0.6.13-1s3mg09p.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +1 -0
  35. package/dist/chunks/auth-0.6.13-586trvnj.mjs +1 -0
  36. package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +1 -0
  40. package/dist/chunks/branch-0.6.13-nncg27cq.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +1 -0
  46. package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +4 -0
  51. package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +1 -0
  54. package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +1 -0
  56. package/dist/chunks/cli-0.6.13-004msxtb.mjs +2 -0
  57. package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +24 -0
  58. package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +2 -0
  59. package/dist/chunks/cli-0.6.13-0602v59h.mjs +2 -0
  60. package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +2 -0
  61. package/dist/chunks/cli-0.6.13-0k53jyws.mjs +2 -0
  62. package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +2 -0
  63. package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +3 -0
  64. package/dist/chunks/cli-0.6.13-15925v1q.mjs +2 -0
  65. package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +3 -0
  66. package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +24 -0
  67. package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +18 -0
  68. package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +2 -0
  69. package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +2 -0
  70. package/dist/chunks/cli-0.6.13-27ey3345.mjs +17 -0
  71. package/dist/chunks/cli-0.6.13-2999v1f0.mjs +5 -0
  72. package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +2 -0
  73. package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +2 -0
  74. package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +5420 -0
  75. package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +2 -0
  76. package/dist/chunks/cli-0.6.13-35rszksn.mjs +2 -0
  77. package/dist/chunks/cli-0.6.13-3812a7q8.mjs +34 -0
  78. package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +3 -0
  79. package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +2 -0
  80. package/dist/chunks/cli-0.6.13-45x35nyh.mjs +2 -0
  81. package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +2 -0
  82. package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +2 -0
  83. package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +2 -0
  84. package/dist/chunks/cli-0.6.13-56b3061c.mjs +18 -0
  85. package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +42 -0
  86. package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +4 -0
  87. package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +2 -0
  88. package/dist/chunks/cli-0.6.13-643zsnv9.mjs +2 -0
  89. package/dist/chunks/cli-0.6.13-667dsr1w.mjs +2 -0
  90. package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +2 -0
  91. package/dist/chunks/cli-0.6.13-79mne5jt.mjs +2 -0
  92. package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +2 -0
  93. package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +2 -0
  94. package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +3 -0
  95. package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +2 -0
  96. package/dist/chunks/cli-0.6.13-82datd4w.mjs +2 -0
  97. package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +2 -0
  98. package/dist/chunks/cli-0.6.13-881js45c.mjs +2 -0
  99. package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +2 -0
  100. package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +3 -0
  101. package/dist/chunks/cli-0.6.13-949racwr.mjs +7 -0
  102. package/dist/chunks/cli-0.6.13-94nwan0d.mjs +2 -0
  103. package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +2 -0
  104. package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +2 -0
  105. package/dist/chunks/cli-0.6.13-9wktvaax.mjs +50 -0
  106. package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +58 -0
  107. package/dist/chunks/cli-0.6.13-aekttw5a.mjs +2 -0
  108. package/dist/chunks/cli-0.6.13-ajc8203j.mjs +2 -0
  109. package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +2 -0
  110. package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +2 -0
  111. package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +16 -0
  112. package/dist/chunks/cli-0.6.13-b55baxv4.mjs +2 -0
  113. package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +2 -0
  114. package/dist/chunks/cli-0.6.13-c3452432.mjs +5 -0
  115. package/dist/chunks/cli-0.6.13-cc118njq.mjs +2 -0
  116. package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +2 -0
  117. package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +2 -0
  118. package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +2 -0
  119. package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +2 -0
  120. package/dist/chunks/cli-0.6.13-da6fhpes.mjs +133 -0
  121. package/dist/chunks/cli-0.6.13-dada1afp.mjs +6 -0
  122. package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +2 -0
  123. package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +2 -0
  124. package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +2 -0
  125. package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +2 -0
  126. package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +2 -0
  127. package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +2 -0
  128. package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +2 -0
  129. package/dist/chunks/cli-0.6.13-esv4y00y.mjs +2 -0
  130. package/dist/chunks/cli-0.6.13-etytm730.mjs +2 -0
  131. package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +4 -0
  132. package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +6 -0
  133. package/dist/chunks/cli-0.6.13-f67v536f.mjs +59 -0
  134. package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +2 -0
  135. package/dist/chunks/cli-0.6.13-fkaxh655.mjs +2 -0
  136. package/dist/chunks/cli-0.6.13-fspszw8w.mjs +2 -0
  137. package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +10 -0
  138. package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +2 -0
  139. package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +2 -0
  140. package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +4 -0
  141. package/dist/chunks/cli-0.6.13-g65dfg11.mjs +6 -0
  142. package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +2 -0
  143. package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +2 -0
  144. package/dist/chunks/cli-0.6.13-grrshx1z.mjs +2 -0
  145. package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +2 -0
  146. package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +2 -0
  147. package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +2 -0
  148. package/dist/chunks/cli-0.6.13-h5dej6se.mjs +3 -0
  149. package/dist/chunks/cli-0.6.13-hd0sd535.mjs +193 -0
  150. package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +12 -0
  151. package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +3 -0
  152. package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +2 -0
  153. package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +4 -0
  154. package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +133 -0
  155. package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +2 -0
  156. package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +2 -0
  157. package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +3 -0
  158. package/dist/chunks/cli-0.6.13-k0kyv254.mjs +2 -0
  159. package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +2 -0
  160. package/dist/chunks/cli-0.6.13-kdm4832x.mjs +2 -0
  161. package/dist/chunks/cli-0.6.13-kekrwb08.mjs +45 -0
  162. package/dist/chunks/cli-0.6.13-kmg491hy.mjs +2 -0
  163. package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +12 -0
  164. package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +3 -0
  165. package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +2 -0
  166. package/dist/chunks/cli-0.6.13-me17wefv.mjs +2 -0
  167. package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +2 -0
  168. package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +39 -0
  169. package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +2 -0
  170. package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +2 -0
  171. package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +15 -0
  172. package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +4 -0
  173. package/dist/chunks/cli-0.6.13-nqd696hv.mjs +2 -0
  174. package/dist/chunks/cli-0.6.13-nvcr131g.mjs +4 -0
  175. package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +8 -0
  176. package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +2 -0
  177. package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +3 -0
  178. package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +2 -0
  179. package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +3 -0
  180. package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +2 -0
  181. package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +2 -0
  182. package/dist/chunks/cli-0.6.13-prh9py3z.mjs +2 -0
  183. package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +2 -0
  184. package/dist/chunks/cli-0.6.13-q161snt1.mjs +2 -0
  185. package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +2 -0
  186. package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +2 -0
  187. package/dist/chunks/cli-0.6.13-q8qzja14.mjs +2 -0
  188. package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +2 -0
  189. package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +4 -0
  190. package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +2 -0
  191. package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +2 -0
  192. package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +2 -0
  193. package/dist/chunks/cli-0.6.13-qyd73z97.mjs +2 -0
  194. package/dist/chunks/cli-0.6.13-r043ksv1.mjs +1 -0
  195. package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +4 -0
  196. package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +2 -0
  197. package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +2 -0
  198. package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +2 -0
  199. package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +6 -0
  200. package/dist/chunks/cli-0.6.13-s2vxndky.mjs +2 -0
  201. package/dist/chunks/cli-0.6.13-s3r638fw.mjs +2 -0
  202. package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +4 -0
  203. package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +3 -0
  204. package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +2 -0
  205. package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +15 -0
  206. package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +2 -0
  207. package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +2 -0
  208. package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +2 -0
  209. package/dist/chunks/cli-0.6.13-tss2yk53.mjs +2 -0
  210. package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +2 -0
  211. package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +2 -0
  212. package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +17 -0
  213. package/dist/chunks/cli-0.6.13-v05nfcar.mjs +2 -0
  214. package/dist/chunks/cli-0.6.13-v160yjcc.mjs +2 -0
  215. package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +2 -0
  216. package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +2 -0
  217. package/dist/chunks/cli-0.6.13-v824ppa4.mjs +3 -0
  218. package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +2 -0
  219. package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +2 -0
  220. package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +2 -0
  221. package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +2 -0
  222. package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +2 -0
  223. package/dist/chunks/cli-0.6.13-w039mymy.mjs +2 -0
  224. package/dist/chunks/cli-0.6.13-w0qrn825.mjs +2 -0
  225. package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +2 -0
  226. package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +2 -0
  227. package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +5 -0
  228. package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +20 -0
  229. package/dist/chunks/cli-0.6.13-wtc8585b.mjs +2 -0
  230. package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +2 -0
  231. package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +2 -0
  232. package/dist/chunks/cli-0.6.13-xdedyafk.mjs +12 -0
  233. package/dist/chunks/cli-0.6.13-xf37gba3.mjs +21 -0
  234. package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +2 -0
  235. package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +2 -0
  236. package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +2 -0
  237. package/dist/chunks/cli-0.6.13-y20earfr.mjs +2 -0
  238. package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +2 -0
  239. package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +28 -0
  240. package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +2 -0
  241. package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +67 -0
  242. package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +2 -0
  243. package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +2 -0
  244. package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +2 -0
  245. package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +2 -0
  246. package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +9 -0
  247. package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +25 -0
  248. package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +15 -0
  249. package/dist/chunks/cli-0.6.13-ze0ah657.mjs +4 -0
  250. package/dist/chunks/cli-0.6.13-zktd03aq.mjs +2 -0
  251. package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +2 -0
  252. package/dist/chunks/client-0.6.13-apag8p3w.mjs +1 -0
  253. package/dist/chunks/color-0.6.13-m7e3xes9.mjs +1 -0
  254. package/dist/chunks/compact-0.6.13-064k380y.mjs +3 -0
  255. package/dist/chunks/config-0.6.13-2gskfa7r.mjs +1 -0
  256. package/dist/chunks/config-0.6.13-m7tbch3j.mjs +1 -0
  257. package/dist/chunks/constants-0.6.13-bq183whd.mjs +1 -0
  258. package/dist/chunks/context-0.6.13-4jm66js8.mjs +1 -0
  259. package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +1 -0
  260. package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +1 -0
  261. package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +1 -0
  262. package/dist/chunks/copy-0.6.13-11ksdws3.mjs +9 -0
  263. package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +1 -0
  264. package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +1 -0
  265. package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +1 -0
  266. package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +1 -0
  267. package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +1367 -0
  268. package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +1 -0
  269. package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +1 -0
  270. package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +1 -0
  271. package/dist/chunks/diff-0.6.13-3qr723e3.mjs +1 -0
  272. package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +1 -0
  273. package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +1 -0
  274. package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +1 -0
  275. package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +10 -0
  276. package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +1 -0
  277. package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +1 -0
  278. package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +1 -0
  279. package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +1 -0
  280. package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +1 -0
  281. package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +1 -0
  282. package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +1 -0
  283. package/dist/chunks/explorer-0.6.13-g670396m.mjs +1 -0
  284. package/dist/chunks/export-0.6.13-zytxcpn5.mjs +2 -0
  285. package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +1 -0
  286. package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +1 -0
  287. package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +1 -0
  288. package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +14 -0
  289. package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +1 -0
  290. package/dist/chunks/git-0.6.13-r45r70q4.mjs +1 -0
  291. package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +1 -0
  292. package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +4 -0
  293. package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +1 -0
  294. package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +1 -0
  295. package/dist/chunks/headless-0.6.13-gfageb5h.mjs +2 -0
  296. package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +6 -0
  297. package/dist/chunks/help-0.6.13-781b4zzf.mjs +1 -0
  298. package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +3 -0
  299. package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +1 -0
  300. package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +79 -0
  301. package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +3 -0
  302. package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +1 -0
  303. package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +1 -0
  304. package/dist/chunks/index-0.6.13-22g8yp33.mjs +1 -0
  305. package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +1 -0
  306. package/dist/chunks/index-0.6.13-3yrze12y.mjs +2 -0
  307. package/dist/chunks/index-0.6.13-4mx71hjt.mjs +2 -0
  308. package/dist/chunks/index-0.6.13-68g8rnf9.mjs +1 -0
  309. package/dist/chunks/index-0.6.13-6t8yz88d.mjs +1 -0
  310. package/dist/chunks/index-0.6.13-af1dgcmj.mjs +1 -0
  311. package/dist/chunks/index-0.6.13-afmvxwx2.mjs +1 -0
  312. package/dist/chunks/index-0.6.13-by0wfak3.mjs +9 -0
  313. package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +1 -0
  314. package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +1 -0
  315. package/dist/chunks/index-0.6.13-jte6phkv.mjs +1 -0
  316. package/dist/chunks/index-0.6.13-m632g3gy.mjs +1 -0
  317. package/dist/chunks/index-0.6.13-mwpm4arf.mjs +5 -0
  318. package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +30 -0
  319. package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +1 -0
  320. package/dist/chunks/index-0.6.13-ptnyngf8.mjs +1 -0
  321. package/dist/chunks/index-0.6.13-q3shbg14.mjs +1 -0
  322. package/dist/chunks/index-0.6.13-qbgadtxv.mjs +1 -0
  323. package/dist/chunks/index-0.6.13-sv4q66cp.mjs +1 -0
  324. package/dist/chunks/index-0.6.13-waxz0ekk.mjs +1 -0
  325. package/dist/chunks/index-0.6.13-why7ggz3.mjs +9 -0
  326. package/dist/chunks/index-0.6.13-y16k48ab.mjs +1 -0
  327. package/dist/chunks/init-0.6.13-4hnytb22.mjs +1 -0
  328. package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +1 -0
  329. package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +1 -0
  330. package/dist/chunks/insights-0.6.13-jydg844c.mjs +870 -0
  331. package/dist/chunks/install-0.6.13-n2sd9y79.mjs +1 -0
  332. package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +149 -0
  333. package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +1 -0
  334. package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +1 -0
  335. package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +1 -0
  336. package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +2 -0
  337. package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +2 -0
  338. package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +1 -0
  339. package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +1 -0
  340. package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +1 -0
  342. package/dist/chunks/log-0.6.13-k8w72xt1.mjs +1 -0
  343. package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +1 -0
  344. package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +1 -0
  345. package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +4 -0
  347. package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +17 -0
  348. package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +1 -0
  349. package/dist/chunks/memory-0.6.13-atsckryz.mjs +3 -0
  350. package/dist/chunks/model-0.6.13-0atttv57.mjs +1 -0
  351. package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +2 -0
  352. package/dist/chunks/node-0.6.13-x2bbeer9.mjs +12 -0
  353. package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +1 -0
  354. package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +14 -0
  355. package/dist/chunks/output-style-0.6.13-m28me769.mjs +1 -0
  356. package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +1 -0
  357. package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +1 -0
  358. package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +1 -0
  359. package/dist/chunks/passes-0.6.13-q60h610m.mjs +1 -0
  360. package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +3 -0
  361. package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +1 -0
  362. package/dist/chunks/plan-0.6.13-jnph14bx.mjs +1 -0
  363. package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +1 -0
  364. package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +29 -0
  365. package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +1 -0
  366. package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +9 -0
  367. package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +2 -0
  368. package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +57 -0
  369. package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +1 -0
  370. package/dist/chunks/process-0.6.13-38dsvzca.mjs +1 -0
  371. package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +1 -0
  372. package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +9 -0
  373. package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +1 -0
  374. package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +1 -0
  375. package/dist/chunks/prompts-0.6.13-702ak30b.mjs +1 -0
  376. package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +13 -0
  377. package/dist/chunks/provider-0.6.13-2sx115qq.mjs +2 -0
  378. package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +1 -0
  379. package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +6 -0
  380. package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +1 -0
  381. package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +34 -0
  382. package/dist/chunks/registry-0.6.13-pstf339a.mjs +1 -0
  383. package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +5 -0
  384. package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +2 -0
  385. package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +1 -0
  386. package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +1 -0
  387. package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +1 -0
  388. package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +1 -0
  389. package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +1 -0
  390. package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +1 -0
  391. package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +2 -0
  392. package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +1 -0
  393. package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +1 -0
  394. package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +1 -0
  395. package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +1 -0
  396. package/dist/chunks/session-0.6.13-83jr96cj.mjs +2 -0
  397. package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +1 -0
  398. package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +1 -0
  399. package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +1 -0
  400. package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +1 -0
  401. package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +5 -0
  402. package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +1 -0
  403. package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +1 -0
  404. package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +1 -0
  405. package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +1 -0
  406. package/dist/chunks/state-0.6.13-257cjw4h.mjs +1 -0
  407. package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +6 -0
  408. package/dist/chunks/status-0.6.13-cefspgtr.mjs +1 -0
  409. package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +1 -0
  410. package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +1 -0
  411. package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +1 -0
  412. package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +1 -0
  413. package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +1 -0
  414. package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +1 -0
  415. package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +1 -0
  416. package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +1 -0
  417. package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +1 -0
  418. package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +1 -0
  419. package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +1 -0
  420. package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +1 -0
  421. package/dist/chunks/tools-0.6.13-heefxcxe.mjs +1 -0
  422. package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +1 -0
  423. package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +69 -0
  424. package/dist/chunks/types-0.6.13-26eegce9.mjs +1 -0
  425. package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +4 -0
  426. package/dist/chunks/update-0.6.13-tj94pp6r.mjs +86 -0
  427. package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +1 -0
  428. package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +7 -0
  429. package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +14 -0
  430. package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +1 -0
  431. package/dist/chunks/usage-0.6.13-whrgny68.mjs +1 -0
  432. package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +1 -0
  433. package/dist/chunks/utils-0.6.13-jybbphy0.mjs +1 -0
  434. package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +1 -0
  435. package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +1 -0
  436. package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +132 -0
  437. package/dist/chunks/worktree-0.6.13-efnvp677.mjs +1 -0
  438. package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +1 -0
  439. package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +7 -0
  440. package/dist/claudin-vscode.vsix +0 -0
  441. package/dist/cli.mjs +2 -2
  442. package/package.json +1 -1
  443. package/dist/chunks/AgentTool-0.6.12-b2gfz5kv.mjs +0 -1
  444. package/dist/chunks/App-0.6.12-mh1ysgxg.mjs +0 -1
  445. package/dist/chunks/ApproveApiKey-0.6.12-r2wj56g6.mjs +0 -1
  446. package/dist/chunks/AssistantSessionChooser-0.6.12-vg6y5ha1.mjs +0 -1
  447. package/dist/chunks/AutoModeOptInDialog-0.6.12-dhx63scb.mjs +0 -1
  448. package/dist/chunks/BypassPermissionsModeDialog-0.6.12-rpt2b1wj.mjs +0 -1
  449. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.12-2arvz9mf.mjs +0 -1
  450. package/dist/chunks/ConsoleOAuthFlow-0.6.12-5htdzb3m.mjs +0 -1
  451. package/dist/chunks/DiffDialog-0.6.12-ta0sjcsf.mjs +0 -7
  452. package/dist/chunks/Doctor-0.6.12-mwbqw1rj.mjs +0 -1
  453. package/dist/chunks/ExplorerDialog-0.6.12-58rcsfy9.mjs +0 -6
  454. package/dist/chunks/Grove-0.6.12-tnpptv0x.mjs +0 -1
  455. package/dist/chunks/ITermBackend-0.6.12-ez4cgygb.mjs +0 -1
  456. package/dist/chunks/InvalidConfigDialog-0.6.12-d7dkg0t5.mjs +0 -1
  457. package/dist/chunks/InvalidSettingsDialog-0.6.12-f05fw15j.mjs +0 -1
  458. package/dist/chunks/MigrationDialog-0.6.12-rr1km3wx.mjs +0 -1
  459. package/dist/chunks/Onboarding-0.6.12-75ts37c4.mjs +0 -1
  460. package/dist/chunks/ProviderManager-0.6.12-ggazg3xb.mjs +0 -1
  461. package/dist/chunks/REPL-0.6.12-230gxwk3.mjs +0 -1
  462. package/dist/chunks/ResumeConversation-0.6.12-b6w9nxwe.mjs +0 -1
  463. package/dist/chunks/SnapshotUpdateDialog-0.6.12-1jqm9wpr.mjs +0 -1
  464. package/dist/chunks/TeleportProgress-0.6.12-5rky61kj.mjs +0 -1
  465. package/dist/chunks/TeleportRepoMismatchDialog-0.6.12-zep0xyc2.mjs +0 -1
  466. package/dist/chunks/TeleportResumeWrapper-0.6.12-wfr7mfew.mjs +0 -1
  467. package/dist/chunks/TmuxBackend-0.6.12-v453hg0b.mjs +0 -9
  468. package/dist/chunks/ToolSearchTool-0.6.12-p0s6m4y8.mjs +0 -1
  469. package/dist/chunks/TrustDialog-0.6.12-k76hznv2.mjs +0 -1
  470. package/dist/chunks/activeProvider-0.6.12-sv3z8anm.mjs +0 -1
  471. package/dist/chunks/add-dir-0.6.12-wnbxt7vy.mjs +0 -1
  472. package/dist/chunks/agents-0.6.12-b9dy00ag.mjs +0 -110
  473. package/dist/chunks/agents-0.6.12-ycqzf9j5.mjs +0 -3
  474. package/dist/chunks/api-0.6.12-14eqhy3z.mjs +0 -1
  475. package/dist/chunks/asciicast-0.6.12-vbsq9mgp.mjs +0 -1
  476. package/dist/chunks/assistant-0.6.12-5p1f9bbw.mjs +0 -1
  477. package/dist/chunks/auth-0.6.12-pa89ctgf.mjs +0 -1
  478. package/dist/chunks/auth-0.6.12-wk2y5d3t.mjs +0 -1
  479. package/dist/chunks/autoMode-0.6.12-y4rjrey5.mjs +0 -48
  480. package/dist/chunks/autoUpdater-0.6.12-shtexsmc.mjs +0 -1
  481. package/dist/chunks/backgroundHousekeeping-0.6.12-r98xwf4x.mjs +0 -1
  482. package/dist/chunks/branch-0.6.12-bwqzpwr3.mjs +0 -4
  483. package/dist/chunks/bridge-0.6.12-j1y5hhxp.mjs +0 -2
  484. package/dist/chunks/bridgeConfig-0.6.12-jedyxebh.mjs +0 -1
  485. package/dist/chunks/bridgeEnabled-0.6.12-15wd9gtx.mjs +0 -1
  486. package/dist/chunks/bridgeMain-0.6.12-02c465aw.mjs +0 -88
  487. package/dist/chunks/bridgePointer-0.6.12-nmffskv4.mjs +0 -1
  488. package/dist/chunks/btw-0.6.12-zvse57mq.mjs +0 -1
  489. package/dist/chunks/buddy-0.6.12-2qsbgdn6.mjs +0 -3
  490. package/dist/chunks/cacache-0.6.12-fhcd4wsf.mjs +0 -1
  491. package/dist/chunks/cache-probe-0.6.12-n2cm80z4.mjs +0 -21
  492. package/dist/chunks/cacheStats-0.6.12-h45pnvr7.mjs +0 -4
  493. package/dist/chunks/caches-0.6.12-cfaw7jb1.mjs +0 -1
  494. package/dist/chunks/claudeDesktop-0.6.12-6rnj0zw7.mjs +0 -1
  495. package/dist/chunks/claudemd-0.6.12-e90nb8vx.mjs +0 -1
  496. package/dist/chunks/clear-0.6.12-gadvgvp6.mjs +0 -1
  497. package/dist/chunks/clearTerminal-0.6.12-91ykpa58.mjs +0 -1
  498. package/dist/chunks/cli-0.6.12-0ghv260y.mjs +0 -2
  499. package/dist/chunks/cli-0.6.12-0hjd35q4.mjs +0 -12
  500. package/dist/chunks/cli-0.6.12-0t5tsk2y.mjs +0 -2
  501. package/dist/chunks/cli-0.6.12-0xpfj4aq.mjs +0 -4
  502. package/dist/chunks/cli-0.6.12-127pt3vk.mjs +0 -2
  503. package/dist/chunks/cli-0.6.12-14b2bpdj.mjs +0 -2
  504. package/dist/chunks/cli-0.6.12-175knjzx.mjs +0 -2
  505. package/dist/chunks/cli-0.6.12-1c92shz1.mjs +0 -2
  506. package/dist/chunks/cli-0.6.12-1f7vq52y.mjs +0 -2
  507. package/dist/chunks/cli-0.6.12-1qrp0zx7.mjs +0 -2
  508. package/dist/chunks/cli-0.6.12-1rc09wxd.mjs +0 -2
  509. package/dist/chunks/cli-0.6.12-21j45ejg.mjs +0 -59
  510. package/dist/chunks/cli-0.6.12-25h7f74n.mjs +0 -24
  511. package/dist/chunks/cli-0.6.12-263jrtsj.mjs +0 -58
  512. package/dist/chunks/cli-0.6.12-2g0n7jpe.mjs +0 -5
  513. package/dist/chunks/cli-0.6.12-2pyqs7x9.mjs +0 -2
  514. package/dist/chunks/cli-0.6.12-2stzmmb2.mjs +0 -4
  515. package/dist/chunks/cli-0.6.12-2vrk1saq.mjs +0 -2
  516. package/dist/chunks/cli-0.6.12-33ff6hv9.mjs +0 -4
  517. package/dist/chunks/cli-0.6.12-36dzac4h.mjs +0 -2
  518. package/dist/chunks/cli-0.6.12-3wqd066g.mjs +0 -2
  519. package/dist/chunks/cli-0.6.12-47h7weys.mjs +0 -2
  520. package/dist/chunks/cli-0.6.12-49tkzshk.mjs +0 -2
  521. package/dist/chunks/cli-0.6.12-4d51yvzh.mjs +0 -2
  522. package/dist/chunks/cli-0.6.12-4ty0ah2n.mjs +0 -2
  523. package/dist/chunks/cli-0.6.12-4x5vs5t2.mjs +0 -2
  524. package/dist/chunks/cli-0.6.12-5abky5z4.mjs +0 -50
  525. package/dist/chunks/cli-0.6.12-5kxkvnxa.mjs +0 -2
  526. package/dist/chunks/cli-0.6.12-5qypvh7v.mjs +0 -2
  527. package/dist/chunks/cli-0.6.12-5ybc0q7n.mjs +0 -2
  528. package/dist/chunks/cli-0.6.12-609r2xeh.mjs +0 -21
  529. package/dist/chunks/cli-0.6.12-63zpmh9f.mjs +0 -2
  530. package/dist/chunks/cli-0.6.12-679e9ptm.mjs +0 -2
  531. package/dist/chunks/cli-0.6.12-70c7xde0.mjs +0 -2
  532. package/dist/chunks/cli-0.6.12-741zt03r.mjs +0 -2
  533. package/dist/chunks/cli-0.6.12-74k7zjxx.mjs +0 -3
  534. package/dist/chunks/cli-0.6.12-75ddftht.mjs +0 -9
  535. package/dist/chunks/cli-0.6.12-78e7hkq9.mjs +0 -5
  536. package/dist/chunks/cli-0.6.12-7bg5rk6a.mjs +0 -3
  537. package/dist/chunks/cli-0.6.12-7eeaap1p.mjs +0 -4
  538. package/dist/chunks/cli-0.6.12-7g6v5zs9.mjs +0 -3
  539. package/dist/chunks/cli-0.6.12-7mz9jxfa.mjs +0 -2
  540. package/dist/chunks/cli-0.6.12-7nbe9chc.mjs +0 -3
  541. package/dist/chunks/cli-0.6.12-865yx2ff.mjs +0 -133
  542. package/dist/chunks/cli-0.6.12-8fpq2hqy.mjs +0 -2
  543. package/dist/chunks/cli-0.6.12-8k03anbf.mjs +0 -6
  544. package/dist/chunks/cli-0.6.12-8mb2h24g.mjs +0 -2
  545. package/dist/chunks/cli-0.6.12-8q4g5rxc.mjs +0 -133
  546. package/dist/chunks/cli-0.6.12-8sxh430a.mjs +0 -2
  547. package/dist/chunks/cli-0.6.12-90nvdzxq.mjs +0 -45
  548. package/dist/chunks/cli-0.6.12-967g034j.mjs +0 -2
  549. package/dist/chunks/cli-0.6.12-96crx44d.mjs +0 -2
  550. package/dist/chunks/cli-0.6.12-9jpps9qw.mjs +0 -2
  551. package/dist/chunks/cli-0.6.12-9prkktd2.mjs +0 -2
  552. package/dist/chunks/cli-0.6.12-9qh2mjjb.mjs +0 -3
  553. package/dist/chunks/cli-0.6.12-9wj4jg9w.mjs +0 -2
  554. package/dist/chunks/cli-0.6.12-ad7k9env.mjs +0 -2
  555. package/dist/chunks/cli-0.6.12-aj7y0fr6.mjs +0 -2
  556. package/dist/chunks/cli-0.6.12-b3ehvfjb.mjs +0 -3
  557. package/dist/chunks/cli-0.6.12-b6d9622b.mjs +0 -2
  558. package/dist/chunks/cli-0.6.12-babce7kt.mjs +0 -2
  559. package/dist/chunks/cli-0.6.12-bc05z2sq.mjs +0 -2
  560. package/dist/chunks/cli-0.6.12-bcqvraap.mjs +0 -2
  561. package/dist/chunks/cli-0.6.12-bgfgcewx.mjs +0 -2
  562. package/dist/chunks/cli-0.6.12-bpd9xvrz.mjs +0 -39
  563. package/dist/chunks/cli-0.6.12-bv0tm3x4.mjs +0 -2
  564. package/dist/chunks/cli-0.6.12-bvynx2vs.mjs +0 -2
  565. package/dist/chunks/cli-0.6.12-bxdnb5bn.mjs +0 -2
  566. package/dist/chunks/cli-0.6.12-byvhqye2.mjs +0 -67
  567. package/dist/chunks/cli-0.6.12-c3qdck87.mjs +0 -2
  568. package/dist/chunks/cli-0.6.12-c4ssk0t1.mjs +0 -17
  569. package/dist/chunks/cli-0.6.12-c6tjtcxh.mjs +0 -3
  570. package/dist/chunks/cli-0.6.12-c864w559.mjs +0 -2
  571. package/dist/chunks/cli-0.6.12-c8b2fkt8.mjs +0 -2
  572. package/dist/chunks/cli-0.6.12-cq322qyb.mjs +0 -2
  573. package/dist/chunks/cli-0.6.12-cwy83z24.mjs +0 -2
  574. package/dist/chunks/cli-0.6.12-d2b8dptv.mjs +0 -2
  575. package/dist/chunks/cli-0.6.12-dad03em9.mjs +0 -4
  576. package/dist/chunks/cli-0.6.12-dawxz0j1.mjs +0 -2
  577. package/dist/chunks/cli-0.6.12-dgfgahne.mjs +0 -4
  578. package/dist/chunks/cli-0.6.12-dhessv32.mjs +0 -2
  579. package/dist/chunks/cli-0.6.12-dj4f3bx0.mjs +0 -2
  580. package/dist/chunks/cli-0.6.12-dknasxzd.mjs +0 -2
  581. package/dist/chunks/cli-0.6.12-dqagenjb.mjs +0 -2
  582. package/dist/chunks/cli-0.6.12-dtv1qnk9.mjs +0 -2
  583. package/dist/chunks/cli-0.6.12-dywed27z.mjs +0 -2
  584. package/dist/chunks/cli-0.6.12-ecgg0rmc.mjs +0 -42
  585. package/dist/chunks/cli-0.6.12-ecm9vh62.mjs +0 -193
  586. package/dist/chunks/cli-0.6.12-eghq631e.mjs +0 -2
  587. package/dist/chunks/cli-0.6.12-er4p2njc.mjs +0 -2
  588. package/dist/chunks/cli-0.6.12-f62r5f5z.mjs +0 -2
  589. package/dist/chunks/cli-0.6.12-fdy5s675.mjs +0 -2
  590. package/dist/chunks/cli-0.6.12-fm6zkr7d.mjs +0 -4
  591. package/dist/chunks/cli-0.6.12-fmf3vjw6.mjs +0 -2
  592. package/dist/chunks/cli-0.6.12-fr0rb7xk.mjs +0 -2
  593. package/dist/chunks/cli-0.6.12-fwnpcanc.mjs +0 -2
  594. package/dist/chunks/cli-0.6.12-g971w5pv.mjs +0 -5420
  595. package/dist/chunks/cli-0.6.12-g9dxg935.mjs +0 -2
  596. package/dist/chunks/cli-0.6.12-gcedgh1v.mjs +0 -6
  597. package/dist/chunks/cli-0.6.12-ged5ahj0.mjs +0 -2
  598. package/dist/chunks/cli-0.6.12-gf7chq9d.mjs +0 -2
  599. package/dist/chunks/cli-0.6.12-gr3edfs9.mjs +0 -15
  600. package/dist/chunks/cli-0.6.12-gr4j664p.mjs +0 -10
  601. package/dist/chunks/cli-0.6.12-gxszq2d0.mjs +0 -15
  602. package/dist/chunks/cli-0.6.12-gxtrhp03.mjs +0 -2
  603. package/dist/chunks/cli-0.6.12-gzh08zb9.mjs +0 -2
  604. package/dist/chunks/cli-0.6.12-h48nkjwv.mjs +0 -2
  605. package/dist/chunks/cli-0.6.12-h9ajwy84.mjs +0 -2
  606. package/dist/chunks/cli-0.6.12-hzjwqj4g.mjs +0 -2
  607. package/dist/chunks/cli-0.6.12-k0skdwrx.mjs +0 -28
  608. package/dist/chunks/cli-0.6.12-k20w6gxz.mjs +0 -2
  609. package/dist/chunks/cli-0.6.12-k2x52jw2.mjs +0 -2
  610. package/dist/chunks/cli-0.6.12-k5wkfa00.mjs +0 -18
  611. package/dist/chunks/cli-0.6.12-kkjabccp.mjs +0 -2
  612. package/dist/chunks/cli-0.6.12-krgdc9xv.mjs +0 -2
  613. package/dist/chunks/cli-0.6.12-kt60hyrz.mjs +0 -2
  614. package/dist/chunks/cli-0.6.12-kxgn5260.mjs +0 -34
  615. package/dist/chunks/cli-0.6.12-m1rdexn7.mjs +0 -2
  616. package/dist/chunks/cli-0.6.12-m652pj3f.mjs +0 -2
  617. package/dist/chunks/cli-0.6.12-m8br9xce.mjs +0 -3
  618. package/dist/chunks/cli-0.6.12-mxrs3myx.mjs +0 -4
  619. package/dist/chunks/cli-0.6.12-myvzbb0a.mjs +0 -2
  620. package/dist/chunks/cli-0.6.12-myxkk9nw.mjs +0 -18
  621. package/dist/chunks/cli-0.6.12-n87dgp00.mjs +0 -2
  622. package/dist/chunks/cli-0.6.12-nb71rkte.mjs +0 -2
  623. package/dist/chunks/cli-0.6.12-ndg5saae.mjs +0 -17
  624. package/dist/chunks/cli-0.6.12-nqh7eeq7.mjs +0 -2
  625. package/dist/chunks/cli-0.6.12-nsthg20j.mjs +0 -24
  626. package/dist/chunks/cli-0.6.12-nwdx223d.mjs +0 -25
  627. package/dist/chunks/cli-0.6.12-p29k66pp.mjs +0 -2
  628. package/dist/chunks/cli-0.6.12-p86keq4d.mjs +0 -2
  629. package/dist/chunks/cli-0.6.12-pb83k360.mjs +0 -2
  630. package/dist/chunks/cli-0.6.12-pbhgk1s7.mjs +0 -2
  631. package/dist/chunks/cli-0.6.12-pf3jff0s.mjs +0 -15
  632. package/dist/chunks/cli-0.6.12-pgpcv7kg.mjs +0 -2
  633. package/dist/chunks/cli-0.6.12-ptm6c9k7.mjs +0 -2
  634. package/dist/chunks/cli-0.6.12-qmryt9rx.mjs +0 -2
  635. package/dist/chunks/cli-0.6.12-qwcckae9.mjs +0 -2
  636. package/dist/chunks/cli-0.6.12-qysrg51y.mjs +0 -12
  637. package/dist/chunks/cli-0.6.12-r5az487p.mjs +0 -2
  638. package/dist/chunks/cli-0.6.12-rgecbw6c.mjs +0 -3
  639. package/dist/chunks/cli-0.6.12-rhbff3mp.mjs +0 -2
  640. package/dist/chunks/cli-0.6.12-rkfcw3gr.mjs +0 -2
  641. package/dist/chunks/cli-0.6.12-rn39da8q.mjs +0 -2
  642. package/dist/chunks/cli-0.6.12-ry6292t5.mjs +0 -2
  643. package/dist/chunks/cli-0.6.12-s3nsyxya.mjs +0 -16
  644. package/dist/chunks/cli-0.6.12-s762dex9.mjs +0 -2
  645. package/dist/chunks/cli-0.6.12-sdb5bx5s.mjs +0 -2
  646. package/dist/chunks/cli-0.6.12-shnqhhm8.mjs +0 -2
  647. package/dist/chunks/cli-0.6.12-sp1yd4kb.mjs +0 -2
  648. package/dist/chunks/cli-0.6.12-ssk9wgyc.mjs +0 -2
  649. package/dist/chunks/cli-0.6.12-t6e17b69.mjs +0 -2
  650. package/dist/chunks/cli-0.6.12-tqh55964.mjs +0 -2
  651. package/dist/chunks/cli-0.6.12-v1k9yxjk.mjs +0 -2
  652. package/dist/chunks/cli-0.6.12-ve0yf7bb.mjs +0 -2
  653. package/dist/chunks/cli-0.6.12-vmm9x1sf.mjs +0 -6
  654. package/dist/chunks/cli-0.6.12-vtwd2qms.mjs +0 -2
  655. package/dist/chunks/cli-0.6.12-vvxje0rc.mjs +0 -2
  656. package/dist/chunks/cli-0.6.12-w58bx1s8.mjs +0 -2
  657. package/dist/chunks/cli-0.6.12-w7rsc2wy.mjs +0 -2
  658. package/dist/chunks/cli-0.6.12-w8a3jzmm.mjs +0 -2
  659. package/dist/chunks/cli-0.6.12-wbta805y.mjs +0 -2
  660. package/dist/chunks/cli-0.6.12-wdv94m1r.mjs +0 -2
  661. package/dist/chunks/cli-0.6.12-whhyvv1p.mjs +0 -6
  662. package/dist/chunks/cli-0.6.12-wj4xsk58.mjs +0 -4
  663. package/dist/chunks/cli-0.6.12-wq16rd87.mjs +0 -2
  664. package/dist/chunks/cli-0.6.12-wt1j42v1.mjs +0 -2
  665. package/dist/chunks/cli-0.6.12-wt28w88h.mjs +0 -3
  666. package/dist/chunks/cli-0.6.12-x4px6ebg.mjs +0 -2
  667. package/dist/chunks/cli-0.6.12-x60ha982.mjs +0 -2
  668. package/dist/chunks/cli-0.6.12-x94fe36b.mjs +0 -2
  669. package/dist/chunks/cli-0.6.12-xm6axcxk.mjs +0 -2
  670. package/dist/chunks/cli-0.6.12-xm90zy0d.mjs +0 -4
  671. package/dist/chunks/cli-0.6.12-xmnemm5p.mjs +0 -2
  672. package/dist/chunks/cli-0.6.12-xn7761gp.mjs +0 -12
  673. package/dist/chunks/cli-0.6.12-xtdnjw66.mjs +0 -5
  674. package/dist/chunks/cli-0.6.12-xwf1dh5d.mjs +0 -1
  675. package/dist/chunks/cli-0.6.12-xz3jwj4y.mjs +0 -2
  676. package/dist/chunks/cli-0.6.12-xzaf2m9a.mjs +0 -2
  677. package/dist/chunks/cli-0.6.12-y1tqcbp0.mjs +0 -3
  678. package/dist/chunks/cli-0.6.12-y22js5cj.mjs +0 -2
  679. package/dist/chunks/cli-0.6.12-y3jb5s3q.mjs +0 -2
  680. package/dist/chunks/cli-0.6.12-y8en6j6s.mjs +0 -7
  681. package/dist/chunks/cli-0.6.12-y972k2tw.mjs +0 -2
  682. package/dist/chunks/cli-0.6.12-ycr2zjz2.mjs +0 -3
  683. package/dist/chunks/cli-0.6.12-ydaqyt5e.mjs +0 -2
  684. package/dist/chunks/cli-0.6.12-yf87hj21.mjs +0 -2
  685. package/dist/chunks/cli-0.6.12-ygsvrmh6.mjs +0 -2
  686. package/dist/chunks/cli-0.6.12-yn5d7xfc.mjs +0 -3
  687. package/dist/chunks/cli-0.6.12-ythpt06e.mjs +0 -2
  688. package/dist/chunks/cli-0.6.12-ytv10xs6.mjs +0 -2
  689. package/dist/chunks/cli-0.6.12-yznryqep.mjs +0 -2
  690. package/dist/chunks/cli-0.6.12-z2t6eay6.mjs +0 -8
  691. package/dist/chunks/cli-0.6.12-z3mxk8qb.mjs +0 -2
  692. package/dist/chunks/cli-0.6.12-zqn1amfd.mjs +0 -2
  693. package/dist/chunks/cli-0.6.12-zys3gk6x.mjs +0 -20
  694. package/dist/chunks/client-0.6.12-phc6xwmp.mjs +0 -1
  695. package/dist/chunks/color-0.6.12-3bm7m3a7.mjs +0 -1
  696. package/dist/chunks/compact-0.6.12-5d6s9rmk.mjs +0 -3
  697. package/dist/chunks/config-0.6.12-3p83m4s1.mjs +0 -1
  698. package/dist/chunks/config-0.6.12-5mzt69kt.mjs +0 -1
  699. package/dist/chunks/constants-0.6.12-1a88z0wh.mjs +0 -1
  700. package/dist/chunks/context-0.6.12-ejp5j50g.mjs +0 -1
  701. package/dist/chunks/context-noninteractive-0.6.12-93sjsnbj.mjs +0 -1
  702. package/dist/chunks/conversation-0.6.12-zjm6wgxd.mjs +0 -1
  703. package/dist/chunks/copilotHeaders-0.6.12-ergymbrz.mjs +0 -1
  704. package/dist/chunks/copy-0.6.12-ae40pdpw.mjs +0 -9
  705. package/dist/chunks/cost-0.6.12-0zft9dxk.mjs +0 -1
  706. package/dist/chunks/createSSHSession-0.6.12-eawy0hjj.mjs +0 -1
  707. package/dist/chunks/createSession-0.6.12-k2ybhmnf.mjs +0 -1
  708. package/dist/chunks/debug-0.6.12-qwsc3zve.mjs +0 -1
  709. package/dist/chunks/defaultActionDeps-0.6.12-z3bbhkka.mjs +0 -1367
  710. package/dist/chunks/desktop-0.6.12-mbqzwz1w.mjs +0 -1
  711. package/dist/chunks/detectRepository-0.6.12-0c1bdxe1.mjs +0 -1
  712. package/dist/chunks/detection-0.6.12-fatrvr7b.mjs +0 -1
  713. package/dist/chunks/diff-0.6.12-jgkz8t70.mjs +0 -1
  714. package/dist/chunks/doctor-0.6.12-sgdd9y17.mjs +0 -1
  715. package/dist/chunks/doctorDiagnostic-0.6.12-262gvntg.mjs +0 -1
  716. package/dist/chunks/earlyInput-0.6.12-1hqzzwqc.mjs +0 -1
  717. package/dist/chunks/effort-0.6.12-td2qdqtd.mjs +0 -10
  718. package/dist/chunks/envLessBridgeConfig-0.6.12-yq8zz1ms.mjs +0 -1
  719. package/dist/chunks/envUtils-0.6.12-41m24c9y.mjs +0 -1
  720. package/dist/chunks/environmentSelection-0.6.12-96z66p9g.mjs +0 -1
  721. package/dist/chunks/environments-0.6.12-g4zawvgx.mjs +0 -1
  722. package/dist/chunks/errors-0.6.12-pwgn10xz.mjs +0 -1
  723. package/dist/chunks/exampleCommands-0.6.12-abwdmv10.mjs +0 -1
  724. package/dist/chunks/exit-0.6.12-1zstjg69.mjs +0 -1
  725. package/dist/chunks/explorer-0.6.12-ekq5bptv.mjs +0 -1
  726. package/dist/chunks/export-0.6.12-2g1y7yq2.mjs +0 -2
  727. package/dist/chunks/extra-usage-0.6.12-r3tx0z4q.mjs +0 -1
  728. package/dist/chunks/extra-usage-noninteractive-0.6.12-1b6v7jrh.mjs +0 -1
  729. package/dist/chunks/fast-0.6.12-8ycyb7jh.mjs +0 -1
  730. package/dist/chunks/feedback-0.6.12-6rmervrh.mjs +0 -14
  731. package/dist/chunks/firstPartyEventLogger-0.6.12-k7t19wv3.mjs +0 -1
  732. package/dist/chunks/git-0.6.12-wd8h5tre.mjs +0 -1
  733. package/dist/chunks/githubModelsCredentials-0.6.12-kew470a1.mjs +0 -1
  734. package/dist/chunks/goal-0.6.12-ax8sm39h.mjs +0 -4
  735. package/dist/chunks/grove-0.6.12-gnc0890q.mjs +0 -1
  736. package/dist/chunks/growthbook-0.6.12-bp7gexrs.mjs +0 -1
  737. package/dist/chunks/headless-0.6.12-cttcwev7.mjs +0 -2
  738. package/dist/chunks/heapdump-0.6.12-zmkxywxh.mjs +0 -6
  739. package/dist/chunks/help-0.6.12-j1xp96ch.mjs +0 -1
  740. package/dist/chunks/hookChains-0.6.12-anh2pzvv.mjs +0 -3
  741. package/dist/chunks/hooks-0.6.12-9hm2ddcn.mjs +0 -1
  742. package/dist/chunks/hooks-0.6.12-a0gr31xg.mjs +0 -79
  743. package/dist/chunks/ide-0.6.12-gt24sqed.mjs +0 -3
  744. package/dist/chunks/image-processor-napi-0.6.12-fd06htw3.mjs +0 -1
  745. package/dist/chunks/inboundAttachments-0.6.12-24vvap3x.mjs +0 -1
  746. package/dist/chunks/index-0.6.12-2qgg1wff.mjs +0 -1
  747. package/dist/chunks/index-0.6.12-41vfjsr6.mjs +0 -1
  748. package/dist/chunks/index-0.6.12-73amkcbt.mjs +0 -1
  749. package/dist/chunks/index-0.6.12-avj6qyfm.mjs +0 -1
  750. package/dist/chunks/index-0.6.12-b80wbjtw.mjs +0 -1
  751. package/dist/chunks/index-0.6.12-ctpn09qp.mjs +0 -1
  752. package/dist/chunks/index-0.6.12-g637f9fx.mjs +0 -5
  753. package/dist/chunks/index-0.6.12-g802mnr6.mjs +0 -1
  754. package/dist/chunks/index-0.6.12-nmadn3pq.mjs +0 -1
  755. package/dist/chunks/index-0.6.12-pd2j0wnb.mjs +0 -30
  756. package/dist/chunks/index-0.6.12-pger0v41.mjs +0 -1
  757. package/dist/chunks/index-0.6.12-phsd1x3s.mjs +0 -1
  758. package/dist/chunks/index-0.6.12-q59k8jj7.mjs +0 -1
  759. package/dist/chunks/index-0.6.12-rdmcmvt7.mjs +0 -1
  760. package/dist/chunks/index-0.6.12-rtthmj5w.mjs +0 -2
  761. package/dist/chunks/index-0.6.12-rtv5gkng.mjs +0 -1
  762. package/dist/chunks/index-0.6.12-sk1hsbbd.mjs +0 -1
  763. package/dist/chunks/index-0.6.12-w302e6b5.mjs +0 -2
  764. package/dist/chunks/index-0.6.12-wxr6k8p3.mjs +0 -1
  765. package/dist/chunks/index-0.6.12-ydb5e4ax.mjs +0 -9
  766. package/dist/chunks/index-0.6.12-z4mv30qj.mjs +0 -1
  767. package/dist/chunks/index-0.6.12-zn2sw41t.mjs +0 -1
  768. package/dist/chunks/index-0.6.12-zztf50tf.mjs +0 -9
  769. package/dist/chunks/init-0.6.12-hzpcvtax.mjs +0 -1
  770. package/dist/chunks/initReplBridge-0.6.12-19h8ek32.mjs +0 -1
  771. package/dist/chunks/ink-0.6.12-wntqc47k.mjs +0 -1
  772. package/dist/chunks/insights-0.6.12-ehv9w1sm.mjs +0 -870
  773. package/dist/chunks/install-0.6.12-ek5e219m.mjs +0 -1
  774. package/dist/chunks/install-github-app-0.6.12-f8ks7z1p.mjs +0 -149
  775. package/dist/chunks/install-slack-app-0.6.12-xy3ka7xx.mjs +0 -1
  776. package/dist/chunks/instrumentation-0.6.12-k5x3bf7b.mjs +0 -1
  777. package/dist/chunks/interactiveHelpers-0.6.12-8kc6febh.mjs +0 -1
  778. package/dist/chunks/keybindings-0.6.12-4nm3sthz.mjs +0 -2
  779. package/dist/chunks/knowledge-0.6.12-94kf7zkv.mjs +0 -2
  780. package/dist/chunks/latestVersionCache-0.6.12-4hzsqy8q.mjs +0 -1
  781. package/dist/chunks/loadAgentsDir-0.6.12-r6w36jvz.mjs +0 -1
  782. package/dist/chunks/loadPluginHooks-0.6.12-7jgfnzk9.mjs +0 -1
  783. package/dist/chunks/loadPluginHooks-0.6.12-g28czpqy.mjs +0 -1
  784. package/dist/chunks/log-0.6.12-n2qz9rqw.mjs +0 -1
  785. package/dist/chunks/main-0.6.12-z3w0x1v7.mjs +0 -1
  786. package/dist/chunks/managedEnv-0.6.12-96ytmrqz.mjs +0 -1
  787. package/dist/chunks/mcp-0.6.12-k6fx8h8x.mjs +0 -4
  788. package/dist/chunks/mcp-0.6.12-wzy270hy.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.12-y0dw59te.mjs +0 -17
  790. package/dist/chunks/mcpb-0.6.12-67ahhcye.mjs +0 -1
  791. package/dist/chunks/memory-0.6.12-gym7m96x.mjs +0 -3
  792. package/dist/chunks/model-0.6.12-5p83mwxc.mjs +0 -1
  793. package/dist/chunks/model-0.6.12-ez8h0awr.mjs +0 -2
  794. package/dist/chunks/node-0.6.12-m9nrbmtq.mjs +0 -12
  795. package/dist/chunks/oauth-0.6.12-bzsfe61y.mjs +0 -1
  796. package/dist/chunks/openaiShim-0.6.12-0wwtx5pq.mjs +0 -14
  797. package/dist/chunks/output-style-0.6.12-4z477r8f.mjs +0 -1
  798. package/dist/chunks/package-FMOR3ELU-0.6.12-8kng3f73.mjs +0 -1
  799. package/dist/chunks/parseConnectUrl-0.6.12-nfvmk4rg.mjs +0 -1
  800. package/dist/chunks/parser-0.6.12-d3k043gq.mjs +0 -1
  801. package/dist/chunks/passes-0.6.12-ne11kyby.mjs +0 -1
  802. package/dist/chunks/permissions-0.6.12-atkdd074.mjs +0 -3
  803. package/dist/chunks/permissions-0.6.12-gp1rkkw5.mjs +0 -1
  804. package/dist/chunks/plan-0.6.12-nps961gw.mjs +0 -1
  805. package/dist/chunks/plist-0.6.12-sn7z1bfm.mjs +0 -1
  806. package/dist/chunks/plugin-0.6.12-t8w4em2b.mjs +0 -29
  807. package/dist/chunks/pluginStartupCheck-0.6.12-detthxd9.mjs +0 -1
  808. package/dist/chunks/plugins-0.6.12-jsyfj14z.mjs +0 -9
  809. package/dist/chunks/preActionHook-0.6.12-5z3qaz2c.mjs +0 -2
  810. package/dist/chunks/print-0.6.12-7snrawae.mjs +0 -57
  811. package/dist/chunks/privacy-settings-0.6.12-67vpkknh.mjs +0 -1
  812. package/dist/chunks/process-0.6.12-9kdkqzvq.mjs +0 -1
  813. package/dist/chunks/processBashCommand-0.6.12-vq198s4m.mjs +0 -1
  814. package/dist/chunks/processSlashCommand-0.6.12-pqm77gwv.mjs +0 -9
  815. package/dist/chunks/prompt-0.6.12-q902mafh.mjs +0 -1
  816. package/dist/chunks/prompt-0.6.12-xd40dw3n.mjs +0 -1
  817. package/dist/chunks/prompts-0.6.12-wa0zakkp.mjs +0 -1
  818. package/dist/chunks/protocolHandler-0.6.12-s9g03fmy.mjs +0 -13
  819. package/dist/chunks/provider-0.6.12-0rkb5my1.mjs +0 -2
  820. package/dist/chunks/providerProfiles-0.6.12-c8560hh3.mjs +0 -1
  821. package/dist/chunks/providerValidation-0.6.12-p7a4pezy.mjs +0 -6
  822. package/dist/chunks/rate-limit-options-0.6.12-m4yzkb1s.mjs +0 -1
  823. package/dist/chunks/registerSubcommands-0.6.12-4ympw4qx.mjs +0 -34
  824. package/dist/chunks/registry-0.6.12-me5c4ees.mjs +0 -1
  825. package/dist/chunks/release-notes-0.6.12-c98aaef6.mjs +0 -5
  826. package/dist/chunks/reload-plugins-0.6.12-9bjvvf1t.mjs +0 -2
  827. package/dist/chunks/remote-env-0.6.12-ssv38t07.mjs +0 -1
  828. package/dist/chunks/remoteBridgeCore-0.6.12-499kczq5.mjs +0 -1
  829. package/dist/chunks/remoteSession-0.6.12-0z14sh5j.mjs +0 -1
  830. package/dist/chunks/rename-0.6.12-e27tv0xn.mjs +0 -1
  831. package/dist/chunks/replBridgeHandle-0.6.12-s8xm10k3.mjs +0 -1
  832. package/dist/chunks/replLauncher-0.6.12-b0tmf29d.mjs +0 -1
  833. package/dist/chunks/resume-0.6.12-m9xp6af3.mjs +0 -2
  834. package/dist/chunks/rewind-0.6.12-r48k3bke.mjs +0 -1
  835. package/dist/chunks/rootOptions-0.6.12-xg4e2npc.mjs +0 -1
  836. package/dist/chunks/sandbox-adapter-0.6.12-c0jg2mha.mjs +0 -1
  837. package/dist/chunks/sandbox-toggle-0.6.12-qngt56vd.mjs +0 -1
  838. package/dist/chunks/session-0.6.12-3kqbq47j.mjs +0 -2
  839. package/dist/chunks/sessionDiscovery-0.6.12-azdg6zpm.mjs +0 -1
  840. package/dist/chunks/sessionFileAccessHooks-0.6.12-smrf94x8.mjs +0 -1
  841. package/dist/chunks/sessionStorage-0.6.12-3s4xgk72.mjs +0 -1
  842. package/dist/chunks/settings-0.6.12-qgf2vk7t.mjs +0 -1
  843. package/dist/chunks/setup-0.6.12-rmgv0hja.mjs +0 -5
  844. package/dist/chunks/sinks-0.6.12-a76rjjna.mjs +0 -1
  845. package/dist/chunks/skills-0.6.12-97wwzbqg.mjs +0 -1
  846. package/dist/chunks/startupProfiler-0.6.12-n7dwbws3.mjs +0 -1
  847. package/dist/chunks/startupUpdateCheck-0.6.12-zz72ygxt.mjs +0 -1
  848. package/dist/chunks/state-0.6.12-k8svntgp.mjs +0 -1
  849. package/dist/chunks/stats-0.6.12-6eqvrdcf.mjs +0 -6
  850. package/dist/chunks/status-0.6.12-89m9h2d5.mjs +0 -1
  851. package/dist/chunks/stickers-0.6.12-nkgkxve6.mjs +0 -1
  852. package/dist/chunks/subprocessEnv-0.6.12-aeb0xfq8.mjs +0 -1
  853. package/dist/chunks/tasks-0.6.12-768gy8rf.mjs +0 -1
  854. package/dist/chunks/teamHelpers-0.6.12-p30ye095.mjs +0 -1
  855. package/dist/chunks/teammateModeSnapshot-0.6.12-9ckbra11.mjs +0 -1
  856. package/dist/chunks/teleport-0.6.12-a7phvh8w.mjs +0 -1
  857. package/dist/chunks/terminalSetup-0.6.12-v1mmftfk.mjs +0 -1
  858. package/dist/chunks/theme-0.6.12-pk44vevh.mjs +0 -1
  859. package/dist/chunks/thinkback-0.6.12-h129pk9c.mjs +0 -1
  860. package/dist/chunks/thinkback-play-0.6.12-0q1h69xk.mjs +0 -1
  861. package/dist/chunks/toolPool-0.6.12-6btnc350.mjs +0 -1
  862. package/dist/chunks/toolSearch-0.6.12-6w6c2d0k.mjs +0 -1
  863. package/dist/chunks/tools-0.6.12-payt8j1x.mjs +0 -1
  864. package/dist/chunks/trustedDevice-0.6.12-3cf6rrwr.mjs +0 -1
  865. package/dist/chunks/turndown.cjs-0.6.12-vpz9aqc1.mjs +0 -69
  866. package/dist/chunks/types-0.6.12-89db9fm7.mjs +0 -1
  867. package/dist/chunks/ultrareviewCommand-0.6.12-71j89ba5.mjs +0 -4
  868. package/dist/chunks/update-0.6.12-b1am0643.mjs +0 -86
  869. package/dist/chunks/upgrade-0.6.12-cnrv3v3c.mjs +0 -1
  870. package/dist/chunks/upload-0.6.12-sgdhvzs6.mjs +0 -7
  871. package/dist/chunks/upstreamproxy-0.6.12-jebzvamj.mjs +0 -14
  872. package/dist/chunks/url-handler-napi-0.6.12-qmbaskxk.mjs +0 -1
  873. package/dist/chunks/usage-0.6.12-4rpa911e.mjs +0 -1
  874. package/dist/chunks/util-0.6.12-p6wjnsvs.mjs +0 -1
  875. package/dist/chunks/utils-0.6.12-zg7kvysm.mjs +0 -1
  876. package/dist/chunks/vim-0.6.12-jp06y1w1.mjs +0 -1
  877. package/dist/chunks/watcher-0.6.12-46f463g8.mjs +0 -1
  878. package/dist/chunks/wiki-0.6.12-338ffyp8.mjs +0 -132
  879. package/dist/chunks/worktree-0.6.12-e32fmtrw.mjs +0 -1
  880. package/dist/chunks/worktreeModeEnabled-0.6.12-89pgcps3.mjs +0 -1
  881. package/dist/chunks/wrapper-0.6.12-h92v93hb.mjs +0 -7
  882. /package/dist/chunks/{cli-0.6.12-epgpn2nw.mjs → cli-0.6.13-1dwgndg5.mjs} +0 -0
  883. /package/dist/chunks/{cli-0.6.12-6bdrnprg.mjs → cli-0.6.13-5qvssn7h.mjs} +0 -0
  884. /package/dist/chunks/{cli-0.6.12-rcpf2m27.mjs → cli-0.6.13-e3h2z83b.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.12-k3a537sa.mjs → cli-0.6.13-h2yxttam.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.12-x7na0qcv.mjs → cli-0.6.13-p839x5sj.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.12-zgydst6p.mjs → cli-0.6.13-rmzzvjt2.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.12-femcgqwt.mjs → cli-0.6.13-s9yqkgwe.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.12-e3smy1wy.mjs → cli-0.6.13-tsz6mx5f.mjs} +0 -0
@@ -1,24 +0,0 @@
1
- import{Cb as DY}from"./cli-0.6.12-e3smy1wy.mjs";import{Jc as LY,Mc as iQ}from"./cli-0.6.12-gf7chq9d.mjs";import{Nh as V0,Oh as p6}from"./cli-0.6.12-myxkk9nw.mjs";import{li as pY,mi as A6}from"./cli-0.6.12-shnqhhm8.mjs";import{$w as h0,$z as uY,AP as xZ,Az as D6,Bs as r9,KC as HY,Kk as L9,LC as aQ,Lk as u6,Mj as KZ,Mk as z9,Mp as iZ,Nk as q9,Np as AY,Ok as bZ,Op as FZ,Pj as E0,Pk as Y0,Pp as _Y,Qk as D9,RP as wZ,Rk as XZ,Sk as Q0,Tk as v9,UM as BY,UN as gY,Uj as hY,Uk as A9,Vk as sY,WC as NY,WM as rQ,XC as nQ,YC as RY,_C as z6,aK as P9,ax as uZ,bA as v6,bO as dY,bx as k0,cD as n,cK as F9,cQ as rY,cx as x0,dO as lY,dx as u0,eD as U6,ex as p0,fB as cY,fx as pZ,gB as _6,gK as M9,gx as cZ,hA as CY,hO as w6,hp as j9,hx as c0,iA as TY,iP as s,ip as i6,ix as m0,jA as L6,jx as g0,kB as mY,kx as d0,lB as O6,lQ as iY,lx as l0,mH as T0,mt as ZY,mx as a0,nH as s9,nK as o6,nt as xQ,nx as n0,oP as aY,ot as JY,ox as r0,pQ as zY,pt as lQ,px as i0,qt as kY,qx as GQ,sJ as PY,sQ as qY,ts as M0,vJ as J6,vP as nY,vm as yZ,vv as I0,wP as kZ,ws as b0,xF as C0,xs as fZ,xz as xY,yF as o9,ym as $Z,yv as i9,zm as e0}from"./cli-0.6.12-g971w5pv.mjs";import{TV as Q9,XV as R6}from"./cli-0.6.12-nsthg20j.mjs";import{$W as F0,BW as y0,CW as d9,PW as $0,QW as j0,RW as l9,UW as P0,VW as a9,aX as n9}from"./cli-0.6.12-n87dgp00.mjs";import{RX as m9,RZ as g9,kZ as p,mZ as M}from"./cli-0.6.12-21j45ejg.mjs";import{W1 as a,X1 as E,Y1 as b,Z1 as J0}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as c9}from"./cli-0.6.12-bc05z2sq.mjs";import{E6 as G6,H5 as jY,d4 as $Y,h4 as K6}from"./cli-0.6.12-s3nsyxya.mjs";import{$9 as TZ,B_ as n6,Baa as V6,E_ as Y9,Gba as W6,J_ as T6,U8 as E9,b_ as x9,e_ as y9,f8 as _Z,g8 as k9,gaa as $9,gea as U0,jea as p9,naa as r6,nea as e,s8 as GY,u8 as dQ,u9 as a6,vea as w0,xba as yY,yaa as wY,zaa as EY}from"./cli-0.6.12-ecm9vh62.mjs";import{Gea as B0,Oea as L0,Sea as h9}from"./cli-0.6.12-7eeaap1p.mjs";import{Hfa as $6,wfa as oY}from"./cli-0.6.12-ytv10xs6.mjs";import{$fa as h,_fa as Y,aga as JZ,bga as q,cga as EZ}from"./cli-0.6.12-byvhqye2.mjs";import{Ega as O0,Kga as u9,fga as UY,gga as X6,iga as RZ,lga as z0,mga as q0,nga as D0,oga as v0,rga as A0,sga as _0}from"./cli-0.6.12-zqn1amfd.mjs";import{Vga as g,Yga as UZ}from"./cli-0.6.12-9wj4jg9w.mjs";import{$ga as Z9,$ha as HZ,Bha as ZZ,Cha as WY,Gha as PZ,Yha as I,bha as C6}from"./cli-0.6.12-whhyvv1p.mjs";import{bia as KY,fia as gQ}from"./cli-0.6.12-hzjwqj4g.mjs";import{iia as VY,qia as w9,ria as tZ,xia as lZ}from"./cli-0.6.12-2stzmmb2.mjs";import{Gla as OY,Yma as J9,Zma as DZ,_ma as H9,ana as N9,bna as X0,dna as B9,loa as IY,ooa as BZ,rka as NZ,xka as W0,yka as eY}from"./cli-0.6.12-4x5vs5t2.mjs";import{Rpa as N0,Upa as hZ,Vpa as OZ,Wpa as rZ}from"./cli-0.6.12-6bdrnprg.mjs";var WQ={};hZ(WQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function SZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:V,onSummarize:W,onClose:H,preselectedMessage:G}){let K=I0((U)=>U.fileHistory),[B,z]=T.useState(void 0),J=M0(),L=T.useMemo(t9,[]),_=T.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[w,v]=T.useState(_.length-1),P=Math.max(0,Math.min(w-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[D,F]=T.useState(G),[y,S]=T.useState(void 0);T.useEffect(()=>{if(!G||!J)return;let U=!1;return fZ(K,G.uuid).then((R)=>{if(!U)S(R)}),()=>{U=!0}},[G,J,K]);let[O,$]=T.useState(!1),[d,i]=T.useState(null),[o,C]=T.useState("both"),[k,x]=T.useState(""),[A,j]=T.useState("");function N(U){let R=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}T.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function u(U){Z(),$(!0);try{await X(U),$(!1),H()}catch(R){e(R),$(!1),z(`Failed to restore the conversation:
2
- ${R}`)}}async function l(U){let R=Q.indexOf(U),c=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:c,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){H();return}if(!J){await u(U);return}let m=await fZ(K,U.uuid);F(U),S(m)}async function VZ(U){if(g("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(G)H();else F(void 0);return}if(SZ(U)){Z(),$(!0),i(U),z(void 0);try{let m=U==="summarize_up_to"?"up_to":"from",YZ=(m==="up_to"?A:k).trim()||void 0;await W(D,YZ,m),$(!1),i(null),F(void 0),H()}catch(m){e(m),$(!1),i(null),F(void 0),z(`Failed to summarize:
3
- ${m}`)}return}Z(),$(!0),z(void 0);let R=null,c=null;if(U==="code"||U==="both")try{await V(D)}catch(m){R=m,e(R)}if(U==="conversation"||U==="both")try{await X(D)}catch(m){c=m,e(c)}if($(!1),F(void 0),c&&R)z(`Failed to restore the conversation and code:
4
- ${c}
5
- ${R}`);else if(c)z(`Failed to restore the conversation:
6
- ${c}`);else if(R)z(`Failed to restore the code:
7
- ${R}`);else H()}let WZ=P0(),t=T.useCallback(()=>{if(D&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,D,G]),I9=T.useCallback(()=>v((U)=>Math.max(0,U-1)),[]),C9=T.useCallback(()=>v((U)=>Math.min(_.length-1,U+1)),[_.length]),T9=T.useCallback(()=>v(0),[]),R9=T.useCallback(()=>v(_.length-1),[_.length]),f9=T.useCallback(()=>{let U=_[w];if(U)l(U)},[_,w,l]);$0("confirm:no",t,{context:"Confirmation",isActive:!D}),j0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":T9,"messageSelector:bottom":R9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!O&&!B&&!D&&f});let[K0,G0]=T.useState({});T.useEffect(()=>{async function U(){if(!J)return;Promise.all(_.map(async(R,c)=>{if(R.uuid!==L){let m=b0(K,R.uuid),YZ=_.at(c+1),AZ=m?XQ(Q,R.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)G0((r)=>({...r,[c]:AZ}));else G0((r)=>({...r,[c]:void 0}))}}))}U()},[_,Q,L,K,J]);let vZ=J&&y?.filesChanged&&y.filesChanged.length>0,S9=!B&&!D&&!G&&f;return b(p,{flexDirection:"column",width:"100%",children:[E(F0,{color:"suggestion"}),b(p,{flexDirection:"column",marginX:1,gap:1,children:[E(M,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:b(M,{color:"error",children:["Error: ",B]})}),!f&&E(a,{children:E(M,{children:"Nothing to rewind to yet."})}),!B&&D&&f&&b(a,{children:[b(M,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),b(M,{dimColor:!0,children:["(",L0(new Date(D.timestamp)),")"]})]}),E(YQ,{selectedRestoreOption:o,canRestoreCode:!!vZ,diffStatsForRestore:y}),O&&SZ(d)?b(p,{flexDirection:"row",gap:1,children:[E(T0,{}),E(M,{children:"Summarizing…"})]}):E(C0,{isDisabled:O,options:N(!!vZ),defaultFocusValue:vZ?"both":"conversation",onFocus:(U)=>C(U),onChange:(U)=>VZ(U),onCancel:()=>G?H():F(void 0)}),vZ&&E(p,{marginBottom:1,children:b(M,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),S9&&b(a,{children:[J?E(M,{children:"Restore the code and/or conversation to the point before…"}):E(M,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((U,R)=>{let c=P+R,m=c===w,YZ=U.uuid===L,AZ=c in K0,r=K0[c],IZ=r?.filesChanged&&r.filesChanged.length;return b(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:m?b(M,{color:"permission",bold:!0,children:[_Z.pointer," "]}):E(M,{children:" "})}),b(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:m?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&E(p,{height:1,flexDirection:"row",children:r?E(a,{children:E(M,{dimColor:!m,color:"inactive",children:IZ?b(a,{children:[IZ===1&&r.filesChanged[0]?`${QZ.basename(r.filesChanged[0])} `:`${IZ} files changed `,E(f0,{diffStats:r})]}):E(a,{children:"No code changes"})})}):b(M,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(M,{dimColor:!0,italic:!0,children:WZ.pending?b(a,{children:["Press ",WZ.keyName," again to exit"]}):b(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:V,diffStatsForRestore:W}=Q,H=V&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=E(M,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==W||Z[5]!==X||Z[6]!==H)B=!SZ(X)&&(H?E(QQ,{diffStatsForRestore:W}):E(M,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=W,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=b(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=E(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let V=X.filesChanged.length,W;if(V===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];W=K}else if(V===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];W=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];W=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=E(f0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==W||Z[12]!==H)G=E(a,{children:b(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",W,"."]})}),Z[11]=W,Z[12]=H,Z[13]=G;else G=Z[13];return G}function f0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let V;if(Z[0]!==X.insertions)V=b(M,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=V;else V=Z[1];let W;if(Z[2]!==X.deletions)W=b(M,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=W;else W=Z[3];let H;if(Z[4]!==V||Z[5]!==W)H=b(a,{children:[V,W]}),Z[4]=V,Z[5]=W,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=GZ.c(31),{userMessage:X,color:V,dimColor:W,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let S;if(Z[0]!==V||Z[1]!==W)S=E(p,{width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"(current)"})}),Z[0]=V,Z[1]=W,Z[2]=S;else S=Z[2];return S}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,w,v,P,f,D;if(Z[3]!==V||Z[4]!==K||Z[5]!==B||Z[6]!==W||Z[7]!==z||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Z:{let S=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=U0(S);if(E0(O)){let $;if(Z[17]!==V||Z[18]!==W)$=E(p,{flexDirection:"row",width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"((empty message))"})}),Z[17]=V,Z[18]=W,Z[19]=$;else $=Z[19];D=$;break Z}if(O.includes("<bash-input>")){let $=KZ(O,"bash-input");if($){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=E(M,{color:"bashBorder",children:"!"}),Z[20]=d;else d=Z[20];D=b(p,{flexDirection:"row",width:"100%",children:[d,b(M,{color:V,dimColor:W,children:[" ",$]})]});break Z}}if(O.includes(`<${RZ}>`)){let $=KZ(O,RZ),d=KZ(O,"command-args"),i=KZ(O,"skill-format")==="true";if($)if(i){D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["Skill(",$,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["/",$," ",d]})});break Z}}L=p,P="row",f="100%",J=M,_=V,w=W,v=G?B0(O,K-G,!0):O.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=V,Z[4]=K,Z[5]=B,Z[6]=W,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=w,Z[13]=v,Z[14]=P,Z[15]=f,Z[16]=D}else J=Z[9],L=Z[10],_=Z[11],w=Z[12],v=Z[13],P=Z[14],f=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==w||Z[24]!==v)F=E(J,{color:_,dimColor:w,children:v}),Z[21]=J,Z[22]=_,Z[23]=w,Z[24]=v,Z[25]=F;else F=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)y=E(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=y;else y=Z[30];return y}function XQ(Q,Z,X){let V=Q.findIndex((B)=>B.uuid===Z);if(V===-1)return;let W=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(W===-1)W=Q.length;let H=[],G=0,K=0;for(let B=V+1;B<W;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=TZ(L.lines,(v)=>v.startsWith("+")),w=TZ(L.lines,(v)=>v.startsWith("-"));G+=_,K+=w}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],V=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(V.indexOf(`<${D0}>`)!==-1||V.indexOf(`<${v0}>`)!==-1||V.indexOf(`<${z0}>`)!==-1||V.indexOf(`<${q0}>`)!==-1||V.indexOf(`<${_0}>`)!==-1||V.indexOf(`<${A0}>`)!==-1||V.indexOf(`<${O0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let V=Q[X];if(!V)continue;if(kZ(V))continue;if(xZ(V))continue;if(V.type==="progress")continue;if(V.type==="system")continue;if(V.type==="attachment")continue;if(V.type==="user"&&V.isMeta)continue;if(V.type==="assistant"){let W=V.message.content;if(Array.isArray(W)){if(W.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(V.type==="user")return!1}return!0}var GZ,T,CZ=7;var KQ=OZ(()=>{k9();UZ();i9();r9();w0();a9();g9();l9();p9();wZ();o9();s9();d9();u9();x9();h9();n9();J0();GZ=N0(m9(),1),T=N0(c9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>M6});function M6(){let Q=oY("tengu_kairos_cron_config",XZ,j6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var j6=60000,oZ=1800000,P6=2592000000,F6;var I6=OZ(()=>{JZ();$6();sY();EZ();F6=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(oZ),oneShotMaxMs:Y.number().int().min(0).max(oZ),oneShotFloorMs:Y.number().int().min(0).max(oZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as S6,unlink as X9,writeFile as eZ}from"fs/promises";import{dirname as h6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await S6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),V=ZZ(Q);try{return await eZ(X,V,{flag:"wx"}),!0}catch(W){let H=tZ(W);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(h6(X),{recursive:!0});try{return await eZ(X,V,{flag:"wx"}),!0}catch(G){if(tZ(G)==="EEXIST")return!1;throw G}}throw W}}function sZ(Q){MZ?.(),MZ=Z9(async()=>{await qZ(Q)})}async function Z0(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(V,Z))return LZ=void 0,sZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let W=await W9(Z);if(W?.sessionId===X){if(W.pid!==process.pid)await eZ(zZ(Z),ZZ(V)),sZ(Q);return!0}if(W&&Q9(W.pid)){if(LZ!==W.sessionId)LZ=W.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${W.sessionId} (PID ${W.pid})`);return!1}if(W)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${W.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(V,Z))return LZ=void 0,sZ(Q),!0;return!1}async function qZ(Q){MZ?.(),MZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V=await W9(Z);if(!V||V.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,MZ,LZ;var K9=OZ(()=>{JZ();BZ();C6();HZ();lZ();R6();T6();EZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>O9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>g6,buildMissedTaskNotification:()=>U9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function O9(Q){let Z=X0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:V0(Z.prompt),reason:Z.reason}}function g6(Q){let{onFire:Z,isLoading:X,assistantMode:V=!1,onFireTask:W,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,w=[],v=new Map,P=new Set,f=new Set,D=null,F=null,y=null,S=null,O=!1,$=!1;async function d(C){let k=await q9(K);if(O)return;if(w=k,!C)return;let x=Date.now(),A=A9(k,x).filter((j)=>!j.recurring&&!P.has(j.id)&&(!L||L(j)));if(A.length>0){for(let j of A)P.add(j.id),v.set(j.id,1/0);if(g("tengu_scheduled_task_missed",{count:A.length,taskIds:A.map((j)=>j.id).join(",")}),H)H(A);else Z(U9(A));Y0(A.map((j)=>j.id),K).catch((j)=>I(`[ScheduledTasks] failed to remove missed tasks: ${j}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!V)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function j(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=v.get(N.id);if(l===void 0)l=N.recurring?Q0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:v9(N.cron,N.createdAt,N.id,A)??1/0,v.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?V0(N.prompt,void 0,N.agentId):N.prompt;if(W)W(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Q0(N.cron,C,N.id,A)??1/0;if(v.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),v.delete(N.id);else f.add(N.id),Y0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),v.delete(N.id)}if($){for(let N of w)j(N,!1);if(x.length>0){for(let N of x)f.add(N);D9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())j(u,!0);let N=O9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("tengu_schedule_wakeup_fire",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){v.clear();return}for(let N of v.keys())if(!k.has(N))v.delete(N)}async function o(){if(O)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-0.6.12-41vfjsr6.mjs");if(O)return;if($=await Z0(_).catch(()=>!1),O){if($)$=!1,qZ(_);return}if(!$)y=setInterval(()=>{Z0(_).then((x)=>{if(O){if(x)qZ(_);return}if(x){if($=!0,y)clearInterval(y),y=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),y.unref?.();d(!0);let k=z9(K);S=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),S.on("add",()=>void d(!1)),S.on("change",()=>void d(!1)),S.on("unlink",()=>{if(!O)w=[],v.clear()}),F=setInterval(i,G9),F.unref?.()}return{start(){if(O=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${DZ()}, hasTasks=${bZ()}`),!DZ()&&(V||bZ()))J9(!0);if(DZ()){o();return}D=setInterval((C)=>{if(DZ())C()},G9,o),D.unref?.()},stop(){if(O=!0,D)clearInterval(D),D=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(S?.close(),S=null,$)$=!1,qZ(_)},getNextFireTime(){let C=1/0;for(let k of v.values())if(k<C)C=k;if(K===void 0){let k=X0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function U9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,V=Q.map((W)=>{let H=`[${L9(W.cron)}, created ${new Date(W.createdAt).toLocaleString()}]`,G=(W.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
- ${K}
13
- ${W.prompt}
14
- ${K}`});return`${X}
15
-
16
- ${V.join(`
17
-
18
- `)}`}var G9=1000,c6=300,m6=5000;var l6=OZ(()=>{BZ();UZ();u6();sY();K9();HZ();p6()});import{randomUUID as dZ}from"crypto";JZ();EZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),g0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),EX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:m0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:i0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(k0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:x0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),yX=q(()=>Y.object({mcpServers:Y.array(uZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),$X=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),jX=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),wQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),PX=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:p0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),jQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),h0())}).describe("Replaces the set of dynamically managed MCP servers.")),FX=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),PQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),MX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(uZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),bX=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),o0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),$Q(),UQ(),wQ(),EQ(),jQ(),PQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),s0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),t0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),IX=q(()=>Y.union([r0(),l0(),a0(),n0(),s0(),mZ(),hQ(),t0()])),CX=q(()=>Y.union([d0(),mZ(),s0(),t0(),kQ()]));lQ();HZ();dQ();lZ();JZ();HZ();EZ();e0();xQ();var xX=q(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),YY=q(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),uQ=q(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(ZY()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:YY()})),pQ=q(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:YY()})),gZ=q(()=>h.union([uQ(),pQ()]));function jZ(Q,Z,X,V){let W={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)V.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),$Z(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:W}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),V.abortController.abort();return{...Q,decisionReason:W}}rQ();gQ();PZ();JZ();aQ();qY();e0();iQ();PZ();nQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,V){let W;try{W=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{W=Q.name}return{tool_name:Q.name,action_description:W,tool_use_id:X,request_id:V,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new NY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
20
- `);if(X===-1)break;let V=Q.slice(0,X);Q=Q.slice(X+1);let W=await this.processLine(V);if(W)GY("info","cli_stdin_message_parsed",{type:W.type}),yield W}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let V=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(W){X.reject(W)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[V,W]of Object.entries(Z.variables))process.env[V]=W;I(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)HY(X,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let W=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(W))}catch(H){V.reject(H)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")XY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
21
- `)}async sendRequest(Q,Z,X,V=dZ()){let W={type:"control_request",request_id:V,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(W),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(W);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:V});let G=this.pendingRequests.get(V);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(V,{request:{type:"control_request",request_id:V,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(V)}}createCanUseTool(Q){return async(Z,X,V,W,H,G)=>{let K=G??await BY(Z,X,V,W,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=V.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,V,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let w=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:V.agentId},gZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),v=await Promise.race([L,w]);if(v.source==="hook"){if(v.decision)return w.catch(()=>{}),B.abort(),v.decision;let P=await w;return jZ(P.result,Z,X,V)}return jZ(v.result,Z,X,V)}catch(L){return jZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,V)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,V,W)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:V||void 0},JY(),W)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,V,W,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:W,url:H,elicitation_id:G,requested_schema:X},o0(),V)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},gZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,V,W){let G=V.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,V,G,W,V.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){$Z(L);let _=V.getAppState(),w=yZ(_.toolPermissionContext,L);V.setAppState((v)=>{if(v.toolPermissionContext===w)return v;return{...v,toolPermissionContext:w}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Y();function HV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?Q6(Z):Z,uuid:X}}function Q6(Q){if(!Q.some(vY))return Q;return Q.map((Z)=>{if(!vY(Z))return Z;let X=Z.source,V=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:AY(Z.source.data);return{...Z,source:{type:"base64",media_type:V,data:Z.source.data}}})}function vY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}BZ();J6();V6();G6();X6();K6();W6();import{randomUUID as H6}from"crypto";function N6(Q){return Q===wY?EY:Q}function OV(Q){let X=yY()?.outputStyle??PY,V={type:"system",subtype:"init",cwd:UY(),session_id:NZ(),tools:Q.tools.map((W)=>N6(W.name)),mcp_servers:Q.mcpClients.map((W)=>({name:W.name,status:W.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),apiKeySource:jY().source,betas:OY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((W)=>W.agentType),skills:Q.skills.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),plugins:Q.plugins.map((W)=>({name:W.name,path:W.path,source:W.source})),uuid:H6()};return V.fast_mode_state=$Y(Q.model,Q.fastMode),V}var FY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function B6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let V=[],W=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(W){if(W==="["&&L==="["){H=J;continue}if(L!==FY[W])continue;if(W==="'"&&G(Q[J+1]))continue;V.push({start:H,end:J+1}),W=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in FY)W=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(V.some((P)=>L>=P.start&&L<P.end))continue;let w=Q[L-1],v=Q[_];if(w==="/"||w==="\\"||w==="-")continue;if(v==="/"||v==="\\"||v==="-"||v==="?")continue;if(v==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function wV(Q){return B6(Q,"ultrareview")}UZ();wZ();w6();_6();O6();v6();qY();_Y();D6();wZ();U6();A6();import{randomUUID as E6}from"crypto";BZ();UZ();wZ();L6();z6();import{randomUUID as q6}from"crypto";function MY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function bY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function fY(Q,Z,X,V,W,H,G){let K=q6();IY(K);let B=typeof Q==="string"?Q:Q.find((w)=>w.type==="text")?.text||"";RY(B);let z=typeof Q==="string"?Q:Q.findLast((w)=>w.type==="text")?.text||"";if(z)TY("user_prompt",{prompt_length:String(z.length),prompt:CY(z),"prompt.id":K});let J=MY(B),L=bY(B);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:L}),Z.length>0){let w=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...w,...Z],uuid:W,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}return{messages:[s({content:Q,uuid:W,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}async function iV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:V,context:W,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:w,bridgeOrigin:v,isMeta:P,skipAttachments:f}){let D=typeof Q==="string"?Q:null;if(X==="prompt"&&D!==null&&!P)B?.(D);n("query_process_user_input_base_start");let F=W.getAppState(),y=await y6(Q,X,V,W,H,G,K,z,J,L,_,F.toolPermissionContext.mode,w,v,P,f,Z);if(n("query_process_user_input_base_end"),!y.shouldQuery)return y;n("query_hooks_start");let S=hY(Q)||"";for await(let O of iY(S,F.toolPermissionContext.mode,W,W.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let $=rY(O.blockingError);return{messages:[aY(`${$}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let $=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:$})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(kY({type:"hook_additional_context",content:O.additionalContexts.map(SY),hookName:"UserPromptSubmit",toolUseID:`hook-${E6()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:SY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return n("query_hooks_end"),y}var aZ=1e4;function SY(Q){if(Q.length>aZ)return`${Q.substring(0,aZ)}… [output truncated - exceeded ${aZ} characters]`;return Q}async function y6(Q,Z,X,V,W,H,G,K,B,z,J,L,_,w,v,P,f){let D=null,F=[],y=[],S=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)y.push(l)}A.push(u.block)}else A.push(N);S=A,n("query_image_processing_end");let j=A[A.length-1];if(j?.type==="text")D=j.text,F=A.slice(0,-1);else F=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=W?Object.values(W).filter(cY):[],$=O.map((A)=>A.id),d=W?await xY(W):new Map;n("query_pasted_image_processing_start");let i=await Promise.all(O.map(async(A)=>{let j={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await iZ(j),originalDimensions:A.dimensions,sourcePath:A.sourcePath??d.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:j,sourcePath:N}of i){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)y.push(u)}else if(j){let u=FZ(j,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(w&&D!==null&&D.startsWith("/")){let A=pY(D),j=A?lY(A.commandName,V.options.commands):void 0;if(j)if(dY(j))C=!1;else{let N=`/${gY(j)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:K}),nY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&D!==null&&(Z!=="prompt"||C||!D.startsWith("/"));n("query_attachment_loading_start");let x=k?await uY(mY(D,V,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.6.12-vq198s4m.mjs");return nZ(await A(D,F,x,V,X),y)}if(D!==null&&!C&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.6.12-pqm77gwv.mjs"),j=await A(D,F,o,x,V,X,K,B,J);return nZ(j,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),j=x.find((N)=>N.attachment.type==="agent_mention");if(j){let N=`@agent-${j.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("tengu_subagent_at_mention",{is_subagent_only:u,is_prefix:l})}}return nZ(fY(S,o,$,x,K,L,v),y)}function nZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}i6();BZ();HZ();lZ();n6();a6();w0();o6();r6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let V=[],W=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)V.push(G);else if(K.sourceIsFallback)H.push(G);else if(!j9(z,B.source))W.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:V,sourceChanged:W,upToDate:H}}async function IW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let V=e6(Z,X,{projectRoot:W0()}),W=[...V.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...V.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of W){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&$9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:V.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:w}=G[J];Q?.onProgress?.({type:"installing",name:L,action:w,index:J+1,total:G.length});try{let v=await M9(_);if(w==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:v.alreadyMaterialized})}catch(v){let P=w9(v);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(v)}}return{installed:K,updated:B,failed:z,upToDate:V.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??W0(),V=E9(X);return{...Q,path:t6(V??X,Q.path)}}return Q}
24
- export{HV as Z,N6 as _,OV as $,e9 as aa,S0 as ba,VQ as ca,WQ as da,KQ as ea,wV as fa,iV as ga,gZ as ha,jZ as ia,QY as ja,oQ as ka,Z6 as la,e6 as ma,IW as na,M6 as oa,b6 as pa,I6 as qa,g6 as ra,d6 as sa,l6 as ta};
@@ -1,58 +0,0 @@
1
- import{RP as a,Ri as $,Tw as U,Ui as m,Vw as h,iC as A,iP as F,jC as p,tA as k,uA as I,yP as L}from"./cli-0.6.12-g971w5pv.mjs";import{A2 as O,B2 as f}from"./cli-0.6.12-s3nsyxya.mjs";import{Kha as S,Oha as E}from"./cli-0.6.12-whhyvv1p.mjs";import{via as b,xia as T}from"./cli-0.6.12-2stzmmb2.mjs";import{Aia as y,Nia as C}from"./cli-0.6.12-967g034j.mjs";import{Vpa as N}from"./cli-0.6.12-6bdrnprg.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
-
3
- Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
-
5
- The file {{docPath}} has already been read for you. Here are its current contents:
6
- <current_doc_content>
7
- {{docContents}}
8
- </current_doc_content>
9
-
10
- Document title: {{docTitle}}
11
- {{customInstructions}}
12
-
13
- Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
-
15
- CRITICAL RULES FOR EDITING:
16
- - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
- - If there's an italicized line immediately after the header, preserve it exactly as-is
18
- - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
- - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
- - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
- - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
- - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
- - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
-
25
- DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
- - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
- - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
- - Do NOT duplicate information that's already obvious from reading the source code
29
- - Do NOT document every function, parameter, or line number reference
30
- - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
- - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
-
33
- What TO document:
34
- - High-level architecture and system design
35
- - Non-obvious patterns, conventions, or gotchas
36
- - Key entry points and where to start reading code
37
- - Important design decisions and their rationale
38
- - Critical dependencies or integration points
39
- - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
-
41
- What NOT to document:
42
- - Anything obvious from reading the code itself
43
- - Exhaustive lists of files, functions, or parameters
44
- - Step-by-step implementation details
45
- - Low-level code mechanics
46
- - Information already in CLAUDE.md or other project docs
47
-
48
- Use the Edit tool with file_path: {{docPath}}
49
-
50
- REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
-
52
- DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
- The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
-
55
- "${J}"
56
-
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
- export{Xw as Ph,Zw as Qh,s as Rh};
@@ -1,5 +0,0 @@
1
- import{lb as U}from"./cli-0.6.12-y8en6j6s.mjs";import{Is as N,Js as b}from"./cli-0.6.12-g971w5pv.mjs";import{OU as F,RU as d,SU as _,TU as M,YU as I}from"./cli-0.6.12-0t5tsk2y.mjs";import{I6 as B,L6 as T,S6 as x,T6 as H,Y6 as v}from"./cli-0.6.12-0hjd35q4.mjs";import{s8 as Z,u8 as P}from"./cli-0.6.12-ecm9vh62.mjs";import{Vga as O,Yga as D}from"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as A,Bha as z,Gha as S,Yha as Y}from"./cli-0.6.12-whhyvv1p.mjs";import{Dia as L,Nia as f}from"./cli-0.6.12-967g034j.mjs";import{Bpa as i,jpa as y}from"./cli-0.6.12-k0skdwrx.mjs";import{Wpa as k}from"./cli-0.6.12-6bdrnprg.mjs";i();A();P();d();D();b();A();P();f();T();v();I();S();var C=`{"type":"keep_alive"}
2
- `,u=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(u)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:B()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.6.12-h92v93hb.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...B()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)O("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)O("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let V=this.refreshHeaders();Object.assign(this.headers,V),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)O("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=z($)+`
3
- `;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=z(J)+`
4
- `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(C),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:V}=$??{};this.postUrl=r(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(j,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:j,failures:q}),V?.(j,q)},send:(j)=>this.postOnce(j)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=F();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
- export{W as _a,n as $a};
@@ -1,2 +0,0 @@
1
- import{yi as W,zi as B}from"./cli-0.6.12-pbhgk1s7.mjs";import{X1 as U,Z1 as J}from"./cli-0.6.12-g9dxg935.mjs";import{v2 as V,w2 as v}from"./cli-0.6.12-c6tjtcxh.mjs";import{E6 as $,d3 as N,e3 as _,e6 as Q,j6 as R}from"./cli-0.6.12-s3nsyxya.mjs";import{nea as K,vea as Z}from"./cli-0.6.12-ecm9vh62.mjs";import{Vpa as Y}from"./cli-0.6.12-6bdrnprg.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
2
- export{w as Ub,E as Vb};
@@ -1,4 +0,0 @@
1
- import{Uoa as K,hpa as Y}from"./cli-0.6.12-ecgg0rmc.mjs";import{Vpa as X}from"./cli-0.6.12-6bdrnprg.mjs";function T(j){return j instanceof Q||j instanceof K||j instanceof Error&&j.name==="AbortError"}function D(j,z){return j instanceof Error&&j.message===z}function U(j){return j instanceof Error?j:Error(String(j))}function B(j){return j instanceof Error?j.message:String(j)}function V(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function O(j){return V(j)==="ENOENT"}function P(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function R(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
2
- `),H=G[0]??j.message,J=G.slice(1).filter((W)=>W.trim().startsWith("at "));if(J.length<=z)return j.stack;return[H,...J.slice(0,z)].join(`
3
- `)}function b(j){let z=V(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function N(j){let z=B(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var Z,_,Q,$,q,v,w;var I=X(()=>{Y();Z=class Z extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};_=class _ extends Error{};Q=class Q extends Error{constructor(j){super(j);this.name="AbortError"}};$=class $ extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};q=class q extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};v=class v extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};w=class w extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
4
- export{Z as gia,_ as hia,Q as iia,T as jia,$ as kia,q as lia,v as mia,w as nia,D as oia,U as pia,B as qia,V as ria,O as sia,P as tia,R as uia,b as via,N as wia,I as xia};
@@ -1,2 +0,0 @@
1
- import{Hh as g,Ih as Uf}from"./cli-0.6.12-xzaf2m9a.mjs";import{Mh as A,Oh as Kf}from"./cli-0.6.12-myxkk9nw.mjs";import{AC as jf,BR as k,Fj as w,Gj as zf,Gw as M,Hw as $f,Kl as Jf,LB as c,MB as bf,SP as l,WD as v,Wl as N,am as Qf,au as m,bE as Df,bS as Hf,bu as Zf,cS as d,fs as h,gs as Yf,hR as S,il as Bf,im as L,jl as Gf,nm as Vf,pl as y,qu as C,sQ as Ff,sj as W,uR as p,uu as T,wB as I,wr as E,xC as u,xr as P,yr as Xf,yu as _f}from"./cli-0.6.12-g971w5pv.mjs";import{nea as R,vea as ff}from"./cli-0.6.12-ecm9vh62.mjs";import{Vga as O,Yga as e}from"./cli-0.6.12-9wj4jg9w.mjs";import{dna as H,ooa as s,qla as F,rka as U,ska as q,xka as x}from"./cli-0.6.12-4x5vs5t2.mjs";import{Spa as K,Vpa as t}from"./cli-0.6.12-6bdrnprg.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await I("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(M(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),c(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:m(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();$f();Df();Yf();zf();_f();Zf();Ff();ff();Kf();Qf();bf();jf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as Fh,xf as Gh};
@@ -1,4 +0,0 @@
1
- import{cg as LJ,dg as WQ}from"./cli-0.6.12-74k7zjxx.mjs";import{eg as hJ,fg as RQ}from"./cli-0.6.12-c3qdck87.mjs";import{gg as PJ,hg as hQ}from"./cli-0.6.12-xmnemm5p.mjs";import{ig as aq,jg as lJ}from"./cli-0.6.12-175knjzx.mjs";import{kg as Fq,lg as iq,mg as $J}from"./cli-0.6.12-m652pj3f.mjs";import{ng as WJ,og as HQ}from"./cli-0.6.12-yf87hj21.mjs";import{$F as vq,AI as wQ,BO as iJ,Do as P,Eo as Tq,Ks as KJ,Ls as VQ,Ms as VJ,Ns as XJ,Os as XQ,PO as Aq,SO as oJ,Tu as uq,Uu as mq,Wu as pq,Xu as fJ,aG as BQ,bG as UJ,cG as FJ,dG as wJ,eG as FQ,fS as wq,go as GJ,ho as KQ,jS as sq,mS as tq,vv as g,yI as HJ,yS as nJ,yv as yQ,zI as RJ,zO as eq}from"./cli-0.6.12-g971w5pv.mjs";import{fT as yJ,hT as NJ,kT as NQ}from"./cli-0.6.12-pf3jff0s.mjs";import{nV as BJ,rV as UQ}from"./cli-0.6.12-sdb5bx5s.mjs";import{QW as zJ,RW as zQ,UW as YJ,VW as YQ,bX as Mq,cX as GQ}from"./cli-0.6.12-n87dgp00.mjs";import{RX as Pq,RZ as Oq,kZ as y,mZ as Q}from"./cli-0.6.12-21j45ejg.mjs";import{W1 as h,X1 as Y,Y1 as Z,Z1 as c}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as ZQ}from"./cli-0.6.12-bc05z2sq.mjs";import{X4 as cJ,j5 as ZJ,k5 as QQ,y4 as rq}from"./cli-0.6.12-s3nsyxya.mjs";import{B_ as qQ,Gba as JQ,Kaa as gq,Laa as dJ,Oaa as xq,Waa as TJ,e_ as Iq,f8 as $,g8 as tJ,wba as QJ}from"./cli-0.6.12-ecm9vh62.mjs";import{Aia as JJ,Nia as sJ}from"./cli-0.6.12-967g034j.mjs";import{ooa as eJ,xka as qJ}from"./cli-0.6.12-4x5vs5t2.mjs";import{Rpa as Bq,Vpa as Uq}from"./cli-0.6.12-6bdrnprg.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function gJ(){let J=tq(await sq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function xJ(J){if(!J)return null;let q=iq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function rJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await eq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function aJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=aq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function oq(J,q,V){let[G,K,X,B]=await Promise.all([gJ(),xJ(q),rJ(J,V,q),aJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var nq=Uq(()=>{oJ();iJ();nJ();cJ();dJ();lJ();Tq();$J();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);YJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:XJ,upperLimit:VJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-8")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudin","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await oq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),UJ()){let Lq=bq(BJ(),"claude","locks"),DJ=wJ(Lq),SJ=FJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
- `)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
3
- `)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",GJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=KJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?NJ:yJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();GQ();RQ();$q();WQ();hQ();YQ();Oq();zQ();yQ();KQ();NQ();nq();BQ();VQ();qQ();FQ();JQ();XQ();wQ();UQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
4
- export{pZ as ag,cQ as bg};
@@ -1,2 +0,0 @@
1
- import{Bha as E,Cha as F,Gha as M}from"./cli-0.6.12-whhyvv1p.mjs";import{Bpa as N,jpa as H}from"./cli-0.6.12-k0skdwrx.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
2
- export{V as pb,W as qb,X as rb,Y as sb,Z as tb};
@@ -1,2 +0,0 @@
1
- import{CY as T,DY as X,EY as I,GY as Y,HY as p,UY as v,VY as Z,WY as D}from"./cli-0.6.12-21j45ejg.mjs";import{X1 as P,Z1 as V}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as H}from"./cli-0.6.12-bc05z2sq.mjs";import{ooa as F,xla as W}from"./cli-0.6.12-4x5vs5t2.mjs";import{Rpa as A,Vpa as C}from"./cli-0.6.12-6bdrnprg.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
- export{u as Dh,M as Eh};
@@ -1,2 +0,0 @@
1
- import{Vpa as e}from"./cli-0.6.12-6bdrnprg.mjs";function o(){return!0}var t=()=>{};
2
- export{o as ES,t as FS};
@@ -1,2 +0,0 @@
1
- import{Vpa as o}from"./cli-0.6.12-6bdrnprg.mjs";var t="https://api.githubcopilot.com",i=3,n=1,s=32,c="generativelanguage.googleapis.com",r,a="api.kimi.com",p,_,S,E;var e=o(()=>{r=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),_=new Set(["api.deepseek.com"]),S={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
- export{t as b7,i as c7,n as d7,s as e7,c as f7,r as g7,a as h7,p as i7,_ as j7,S as k7,E as l7,e as m7};
@@ -1,2 +0,0 @@
1
- import{Ff as N0,Gf as U0,If as VP}from"./cli-0.6.12-1c92shz1.mjs";import{Bn as h,Cn as c0,Dn as p,En as w0,Fn as r,Gn as W0,Jn as O0,Kn as EP,WL as ZP,XL as m0,ZL as qP,aL as WP,cM as CP,jL as cP,kL as fP,mH as G0,mL as M0,nF as XP,nH as YP,nL as h0,oF as mP,oL as T0,pL as d0,sL as R0,tM as C0,vv as J0,wv as QP,xF as L0,xM as pP,yv as j0,zF as i0,zL as u0}from"./cli-0.6.12-g971w5pv.mjs";import{BW as JP,CW as hP,PW as z0,RW as TP,UW as D0,VW as LP}from"./cli-0.6.12-n87dgp00.mjs";import{GZ as GP,LX as PP,QX as AP,RX as I0,RZ as q0,_X as k0,iZ as C,kZ as X,mZ as L,qZ as F0}from"./cli-0.6.12-21j45ejg.mjs";import{W1 as n,X1 as J,Y1 as Q,Z1 as a}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as $0}from"./cli-0.6.12-bc05z2sq.mjs";import{v2 as A0,w2 as dP}from"./cli-0.6.12-c6tjtcxh.mjs";import{E6 as gP,m6 as e0}from"./cli-0.6.12-s3nsyxya.mjs";import{Naa as H0,Oaa as zP,Waa as p0,f8 as _,g8 as r0,sea as s0,vaa as y0,vea as SP,waa as B0,xaa as KP}from"./cli-0.6.12-ecm9vh62.mjs";import{Tga as g0,Uga as _P}from"./cli-0.6.12-gzh08zb9.mjs";import{Vga as m,Yga as IP}from"./cli-0.6.12-9wj4jg9w.mjs";import{qia as f0,xia as t0}from"./cli-0.6.12-2stzmmb2.mjs";import{Rpa as e,Vpa as P0}from"./cli-0.6.12-6bdrnprg.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
2
- export{bG as wf,$P as xf,uG as yf,jP as zf,tG as Af,uP as Bf,VJ as Cf,aP as Df};
@@ -1,2 +0,0 @@
1
- import{X1 as v,Z1 as D}from"./cli-0.6.12-g9dxg935.mjs";import{Wpa as B}from"./cli-0.6.12-6bdrnprg.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.6.12-mh1ysgxg.mjs"),J=z??import("./REPL-0.6.12-230gxwk3.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
- export{N as Sa,O as Ta};
@@ -1,2 +0,0 @@
1
- import{Aoa as a,Boa as n5,Coa as e8,Doa as R5,Eoa as _8,Foa as E,Goa as h8,Hoa as P,Ioa as x1,Joa as d,Koa as xQ,Loa as r,Moa as UQ,Noa as T5,Ooa as UY,poa as _Q,qoa as YJ,roa as v,soa as P1,toa as Y5,uoa as w8,voa as q,woa as y,xoa as S,yoa as kQ,zoa as L}from"./cli-0.6.12-rkfcw3gr.mjs";import{Upa as aQ,Vpa as X}from"./cli-0.6.12-6bdrnprg.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();DQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=q.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=S?S.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function qJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=qJ});var DJ,w;var M=X(()=>{DJ=Array.isArray,w=DJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{mQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();m();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();m();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,SJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?q.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,SJ=yJ||cQ,A=SJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?mJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var mJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();m();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||D8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var q8,D8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();q8=Object.prototype,D8=q8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{_8();J1();q5=k8});function E8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var S1=X(()=>{x5();F5();D5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var m1;var O5=X(()=>{yQ();bQ();S1();m1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=m1(Q),B=U.length,K=m1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var S8,U1;var L5=X(()=>{x1();y();S8=P(q,"DataView"),U1=S8});var m8,K1;var f5=X(()=>{x1();y();m8=P(q,"Promise"),K1=m8});var A8,G1;var P5=X(()=>{x1();y();A8=P(q,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(q,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,S5;var m5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();S1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();m();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var q1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function qY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var D1;var b1=X(()=>{M();q1();s5();X$();D1=qY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();q1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as SY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=SY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,S$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,S$(Q)}function S$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function q9(){return $.directConnectServerUrl}function D9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){return Date.now()-$.startTime}function I9(){return $.totalAPIDurationWithoutRetries}function C9(){return $.totalToolDuration}function _9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function k9(){return $.turnHookDurationMs}function E9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function v9(){$.turnHookDurationMs=0,$.turnHookCount=0}function d9(){return $.turnHookCount}function g9(){return $.turnToolDurationMs}function p9(){$.turnToolDurationMs=0,$.turnToolCount=0}function y9(){return $.turnToolCount}function S9(){return $.turnClassifierDurationMs}function m9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function A9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function j9(){return $.turnClassifierCount}function h9(){return $.statsStore}function n9(Q){$.statsStore=Q}function b9(Q){if(Q)m$();else s1=!0}function i9(){if(s1)m$()}function m$(){$.lastInteractionTime=Date.now(),s1=!1}function u9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function l9(){return $.totalLinesAdded}function T9(){return $.totalLinesRemoved}function c9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function r9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function o9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function s9(){return b(Object.values($.modelUsage),"webSearchRequests")}function a9(){return A$()-a1}function t9(){return t1}function e9(Q){a1=A$(),t1=Q,f1=0}function QH(){return f1}function $H(){f1++}function JH(){$.hasUnknownModelCost=!0}function YH(){return $.hasUnknownModelCost}function ZH(){return $.lastMainRequestId}function XH(Q){$.lastMainRequestId=Q}function HH(){return $.lastApiCompletionTimestamp}function WH(Q){$.lastApiCompletionTimestamp=Q}function xH(){$.pendingPostCompaction=!0}function UH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function KH(){return $.lastInteractionTime}function GH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function BH(){return M1}async function NH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function wH(){return $.modelUsage}function zH(Q){return $.modelUsage[Q]}function FH(){return $.mainLoopModelOverride}function RH(){return $.initialMainLoopModel}function qH(Q){$.mainLoopModelOverride=Q}function DH(Q){$.initialMainLoopModel=Q}function OH(){return $.sdkBetas}function VH(Q){$.sdkBetas=Q}function MH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function LH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function fH(){throw Error("resetStateForTests can only be called in tests")}function PH(){return $.modelStrings}function IH(Q){$.modelStrings=Q}function CH(){$.modelStrings=null}function _H(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function kH(){return $.meter}function EH(){return $.sessionCounter}function vH(){return $.locCounter}function dH(){return $.prCounter}function gH(){return $.commitCounter}function pH(){return $.costCounter}function yH(){return $.tokenCounter}function SH(){return $.codeEditToolDecisionCounter}function mH(){return $.activeTimeCounter}function AH(){return $.loggerProvider}function jH(Q){$.loggerProvider=Q}function hH(){return $.eventLogger}function nH(Q){$.eventLogger=Q}function bH(){return $.meterProvider}function iH(Q){$.meterProvider=Q}function uH(){return $.tracerProvider}function lH(Q){$.tracerProvider=Q}function mY(){return!$.isInteractive}function TH(){return $.isInteractive}function cH(Q){$.isInteractive=Q}function rH(){return $.clientType}function oH(Q){$.clientType=Q}function sH(){return $.sdkAgentProgressSummariesEnabled}function aH(Q){$.sdkAgentProgressSummariesEnabled=Q}function tH(){return $.kairosActive}function eH(Q){$.kairosActive=Q,L1()}function Q4(){return $.strictToolResultPairing}function $4(Q){$.strictToolResultPairing=Q}function J4(){return $.userMsgOptIn}function Y4(Q){$.userMsgOptIn=Q,L1()}function Z4(){return $.sessionSource}function X4(Q){$.sessionSource=Q}function H4(){return $.questionPreviewFormat}function W4(Q){$.questionPreviewFormat=Q}function x4(){return $.agentColorMap}function U4(){return $.flagSettingsPath}function K4(Q){$.flagSettingsPath=Q}function G4(){return $.flagSettingsInline}function B4(Q){$.flagSettingsInline=Q}function N4(){return $.sessionIngressToken}function w4(Q){$.sessionIngressToken=Q}function z4(){return $.oauthTokenFromFd}function F4(Q){$.oauthTokenFromFd=Q}function R4(){return $.apiKeyFromFd}function q4(Q){$.apiKeyFromFd=Q}function D4(Q){$.lastAPIRequest=Q}function O4(){return $.lastAPIRequest}function V4(Q){$.lastAPIRequestMessages=Q}function M4(){return $.lastAPIRequestMessages}function L4(Q){$.lastClassifierRequests=Q}function f4(){return $.lastClassifierRequests}function P4(Q){$.cachedClaudeMdContent=Q}function I4(){return $.cachedClaudeMdContent}function C4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function _4(){return $.allowedSettingSources}function k4(Q){$.allowedSettingSources=Q}function E4(){return mY()&&$.clientType!=="claude-vscode"}function v4(Q){$.inlinePlugins=Q}function d4(){return $.inlinePlugins}function g4(Q){$.useCoworkPlugins=Q,E$()}function p4(){return $.useCoworkPlugins}function y4(Q){$.sessionBypassPermissionsMode=Q}function S4(){return $.sessionBypassPermissionsMode}function m4(Q){$.scheduledTasksEnabled=Q}function A4(){return $.scheduledTasksEnabled}function j4(){return $.sessionCronTasks}function h4(Q){$.sessionCronTasks.push(Q)}function n4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function b4(){return $.pendingSessionWakeup}function i4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function u4(){$.pendingSessionWakeup=null}function l4(Q){$.sessionTrustAccepted=Q}function T4(){return $.sessionTrustAccepted}function c4(Q){$.sessionPersistenceDisabled=Q}function r4(){return $.sessionPersistenceDisabled}function o4(){return $.hasExitedPlanMode}function s4(Q){$.hasExitedPlanMode=Q}function a4(){return $.needsPlanModeExitAttachment}function t4(Q){$.needsPlanModeExitAttachment=Q}function e4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function Q3(){return $.needsAutoModeExitAttachment}function $3(Q){$.needsAutoModeExitAttachment=Q}function J3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function Y3(Q){$.initJsonSchema=Q}function Z3(){return $.initJsonSchema}function X3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function H3(){return $.registeredHooks}function W3(){$.registeredHooks=null}function x3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function U3(){$.initJsonSchema=null,$.registeredHooks=null}function K3(){return $.planSlugCache}function G3(){return $.sessionCreatedTeams}function B3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function N3(){return $.teleportedSessionInfo}function w3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function z3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function F3(){return $.invokedSkills}function R3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function q3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function D3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function O3(Q,J){}function V3(){return AY}function M3(){return $.mainThreadAgentType}function L3(Q){$.mainThreadAgentType=Q}function f3(){return $.isRemoteMode}function P3(Q){$.isRemoteMode=Q}function I3(){return $.systemPromptSectionCache}function C3(Q,J){$.systemPromptSectionCache.set(Q,J)}function _3(){$.systemPromptSectionCache.clear()}function k3(){return $.lastEmittedDate}function E3(Q){$.lastEmittedDate=Q}function v3(){return $.additionalDirectoriesForClaudeMd}function d3(Q){$.additionalDirectoriesForClaudeMd=Q}function g3(){return $.allowedChannels}function p3(Q){$.allowedChannels=Q,L1()}function y3(){return $.hasDevChannels}function S3(Q){$.hasDevChannels=Q}function m3(){return $.largeSystemPromptDetected}function A3(Q){$.largeSystemPromptDetected=Q}function j3(){return $.afkModeHeaderLatched}function h3(Q){$.afkModeHeaderLatched=Q}function n3(){return $.fastModeHeaderLatched}function b3(Q){$.fastModeHeaderLatched=Q}function i3(){return $.thinkingClearLatched}function u3(Q){$.thinkingClearLatched=Q}function l3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function T3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function c3(){return $.deferredDeltaLegacySession}function r3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function o3(){return $.sessionEpochMs}function s3(){return $.promptId}function a3(Q){$.promptId=Q}function t3(){return!1}function e3(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
- export{p as Oia,I1 as Pia,FQ as Qia,RQ as Ria,OQ as Sia,VQ as Tia,_1 as Uia,MQ as Via,PQ as Wia,IQ as Xia,dQ as Yia,gQ as Zia,w as _ia,M as $ia,pQ as aja,yQ as bja,SQ as cja,mQ as dja,AQ as eja,jQ as fja,nQ as gja,bQ as hja,O as ija,m as jja,t as kja,v1 as lja,A as mja,d1 as nja,$1 as oja,g1 as pja,$5 as qja,J5 as rja,X1 as sja,X5 as tja,H1 as uja,y1 as vja,W5 as wja,x5 as xja,U5 as yja,K5 as zja,G5 as Aja,B5 as Bja,q5 as Cja,D5 as Dja,W1 as Eja,S1 as Fja,m1 as Gja,O5 as Hja,G1 as Ija,P5 as Jja,A1 as Kja,d5 as Lja,w1 as Mja,j1 as Nja,h as Oja,R1 as Pja,a5 as Qja,t5 as Rja,Z$ as Sja,X$ as Tja,D1 as Uja,b1 as Vja,I as Wja,u as Xja,O1 as Yja,i1 as Zja,F$ as _ja,R$ as $ja,f$ as aka,P$ as bka,nX as cka,bX as dka,iX as eka,uX as fka,lX as gka,TX as hka,E$ as ika,cX as jka,rX as kka,oX as lka,v$ as mka,d$ as nka,g$ as oka,Z9 as pka,X9 as qka,H9 as rka,W9 as ska,x9 as tka,U9 as uka,K9 as vka,G9 as wka,B9 as xka,N9 as yka,w9 as zka,z9 as Aka,F9 as Bka,R9 as Cka,q9 as Dka,D9 as Eka,O9 as Fka,V9 as Gka,M9 as Hka,L9 as Ika,f9 as Jka,P9 as Kka,I9 as Lka,C9 as Mka,_9 as Nka,k9 as Oka,E9 as Pka,v9 as Qka,d9 as Rka,g9 as Ska,p9 as Tka,y9 as Uka,S9 as Vka,m9 as Wka,A9 as Xka,j9 as Yka,h9 as Zka,n9 as _ka,b9 as $ka,i9 as ala,u9 as bla,l9 as cla,T9 as dla,c9 as ela,A$ as fla,r9 as gla,o9 as hla,s9 as ila,a9 as jla,t9 as kla,e9 as lla,QH as mla,$H as nla,JH as ola,YH as pla,ZH as qla,XH as rla,HH as sla,WH as tla,xH as ula,UH as vla,KH as wla,GH as xla,BH as yla,NH as zla,wH as Ala,zH as Bla,FH as Cla,RH as Dla,qH as Ela,DH as Fla,OH as Gla,VH as Hla,MH as Ila,LH as Jla,fH as Kla,PH as Lla,IH as Mla,CH as Nla,_H as Ola,kH as Pla,EH as Qla,vH as Rla,dH as Sla,gH as Tla,pH as Ula,yH as Vla,SH as Wla,mH as Xla,AH as Yla,jH as Zla,hH as _la,nH as $la,bH as ama,iH as bma,uH as cma,lH as dma,mY as ema,TH as fma,cH as gma,rH as hma,oH as ima,sH as jma,aH as kma,tH as lma,eH as mma,Q4 as nma,$4 as oma,J4 as pma,Y4 as qma,Z4 as rma,X4 as sma,H4 as tma,W4 as uma,x4 as vma,U4 as wma,K4 as xma,G4 as yma,B4 as zma,N4 as Ama,w4 as Bma,z4 as Cma,F4 as Dma,R4 as Ema,q4 as Fma,D4 as Gma,O4 as Hma,V4 as Ima,M4 as Jma,L4 as Kma,f4 as Lma,P4 as Mma,I4 as Nma,C4 as Oma,_4 as Pma,k4 as Qma,E4 as Rma,v4 as Sma,d4 as Tma,g4 as Uma,p4 as Vma,y4 as Wma,S4 as Xma,m4 as Yma,A4 as Zma,j4 as _ma,h4 as $ma,n4 as ana,b4 as bna,i4 as cna,u4 as dna,l4 as ena,T4 as fna,c4 as gna,r4 as hna,o4 as ina,s4 as jna,a4 as kna,t4 as lna,e4 as mna,Q3 as nna,$3 as ona,J3 as pna,Y3 as qna,Z3 as rna,X3 as sna,H3 as tna,W3 as una,x3 as vna,U3 as wna,K3 as xna,G3 as yna,B3 as zna,N3 as Ana,w3 as Bna,z3 as Cna,F3 as Dna,R3 as Ena,q3 as Fna,D3 as Gna,O3 as Hna,V3 as Ina,M3 as Jna,L3 as Kna,f3 as Lna,P3 as Mna,I3 as Nna,C3 as Ona,_3 as Pna,k3 as Qna,E3 as Rna,v3 as Sna,d3 as Tna,g3 as Una,p3 as Vna,y3 as Wna,S3 as Xna,m3 as Yna,A3 as Zna,j3 as _na,h3 as $na,n3 as aoa,b3 as boa,i3 as coa,u3 as doa,l3 as eoa,T3 as foa,c3 as goa,r3 as hoa,jY as ioa,o3 as joa,s3 as koa,a3 as loa,t3 as moa,e3 as noa,hY as ooa};