@claudiolabs/claudin 1.1.23 → 1.1.25

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 (912) hide show
  1. package/dist/chunks/AgentTool-1.1.25-wemjscyz.mjs +1 -0
  2. package/dist/chunks/App-1.1.25-k5h3kma3.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.25-z8vqxm93.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.25-qmr6qf3r.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.25-78m4mvsv.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.25-htk8qebw.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.25-8evt7epy.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.25-3nbcvm6d.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.25-7n5581yw.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.25-zvcm13vd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.25-jazr0v5h.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.25-tb139x32.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.25-h27j1v12.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.25-7gxkqb1q.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.25-21kzry6a.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.25-z4ps8td0.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.25-dekvcwna.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.25-x77jymbq.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.25-z1n7c0cp.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.25-ye8czpf8.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.25-qy9dcwtf.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.25-se513tcw.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.25-shafx13k.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.25-q9jqjghn.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.25-c9b16qp6.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.25-4x0h3a7n.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.25-9z82gazg.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.25-3eark7aj.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.25-88qbcwen.mjs +1 -0
  30. package/dist/chunks/agents-1.1.25-58s95cy7.mjs +110 -0
  31. package/dist/chunks/agents-1.1.25-rprb9rf9.mjs +3 -0
  32. package/dist/chunks/api-1.1.25-ceedtxx2.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.25-dtyww79s.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.25-12s5z3q2.mjs +1 -0
  35. package/dist/chunks/auth-1.1.25-cd9y34xe.mjs +1 -0
  36. package/dist/chunks/auth-1.1.25-gphkwwnp.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.25-zdd4g2rn.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.25-17zj185q.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.25-tb3pf0cw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.25-mtctkars.mjs +1 -0
  41. package/dist/chunks/branch-1.1.25-ytfahhwq.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.25-kkjx4g4j.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.25-9h63taqc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.25-yq7hv80q.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.25-rmcdgp77.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.25-x3jjj2ek.mjs +1 -0
  47. package/dist/chunks/btw-1.1.25-xdh8rhdz.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.25-aj90p6ww.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.25-4wztx76s.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.25-9bd12my6.mjs +4 -0
  51. package/dist/chunks/caches-1.1.25-2ewrwm5x.mjs +1 -0
  52. package/dist/chunks/cd-1.1.25-9yhaw8rp.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.25-bw8arps4.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.25-f621m88g.mjs +1 -0
  55. package/dist/chunks/clear-1.1.25-jk3ztva0.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.25-7jtejen6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.25-0m4pyzaf.mjs +2 -0
  58. package/dist/chunks/cli-1.1.25-0q6rqkec.mjs +58 -0
  59. package/dist/chunks/cli-1.1.25-12b1rzfj.mjs +2 -0
  60. package/dist/chunks/cli-1.1.25-14jerc0x.mjs +2 -0
  61. package/dist/chunks/cli-1.1.25-1c4t0f2p.mjs +2 -0
  62. package/dist/chunks/cli-1.1.25-1c633j9v.mjs +2 -0
  63. package/dist/chunks/cli-1.1.25-1gz0w81n.mjs +2 -0
  64. package/dist/chunks/cli-1.1.25-1hx796kk.mjs +2 -0
  65. package/dist/chunks/cli-1.1.25-1s7ketx0.mjs +2 -0
  66. package/dist/chunks/cli-1.1.25-1sf51thg.mjs +3 -0
  67. package/dist/chunks/cli-1.1.25-221zdn3h.mjs +4 -0
  68. package/dist/chunks/cli-1.1.25-24f6az0s.mjs +2 -0
  69. package/dist/chunks/cli-1.1.25-2gjxmbsj.mjs +2 -0
  70. package/dist/chunks/cli-1.1.25-2gtabky3.mjs +60 -0
  71. package/dist/chunks/cli-1.1.25-2wd0qj2d.mjs +2 -0
  72. package/dist/chunks/cli-1.1.25-2we0778z.mjs +2 -0
  73. package/dist/chunks/cli-1.1.25-2zepg15b.mjs +2 -0
  74. package/dist/chunks/cli-1.1.25-32br2csx.mjs +2 -0
  75. package/dist/chunks/cli-1.1.25-32qfxqyg.mjs +2 -0
  76. package/dist/chunks/cli-1.1.25-348yqf3d.mjs +2 -0
  77. package/dist/chunks/cli-1.1.25-37rs38eq.mjs +2 -0
  78. package/dist/chunks/cli-1.1.25-3dd0c7xd.mjs +4 -0
  79. package/dist/chunks/cli-1.1.25-3ev2q4bm.mjs +4 -0
  80. package/dist/chunks/cli-1.1.25-3hnrfkxc.mjs +2 -0
  81. package/dist/chunks/cli-1.1.25-3nhwpx0q.mjs +3 -0
  82. package/dist/chunks/cli-1.1.25-3nm4kgwz.mjs +2 -0
  83. package/dist/chunks/cli-1.1.25-3qj0n5y0.mjs +21 -0
  84. package/dist/chunks/cli-1.1.25-3tnd3xyt.mjs +3 -0
  85. package/dist/chunks/cli-1.1.25-3v5624jg.mjs +2 -0
  86. package/dist/chunks/cli-1.1.25-3vtsr7s2.mjs +2 -0
  87. package/dist/chunks/cli-1.1.25-45mx738r.mjs +3 -0
  88. package/dist/chunks/cli-1.1.25-4cgvw7e3.mjs +2 -0
  89. package/dist/chunks/cli-1.1.25-4d1zk1ar.mjs +12 -0
  90. package/dist/chunks/cli-1.1.25-4h4yaa4x.mjs +2 -0
  91. package/dist/chunks/cli-1.1.25-4yjtqfa0.mjs +2 -0
  92. package/dist/chunks/cli-1.1.25-54q2vnck.mjs +2 -0
  93. package/dist/chunks/cli-1.1.25-5f8d8bx1.mjs +2 -0
  94. package/dist/chunks/cli-1.1.25-5g78avtr.mjs +2 -0
  95. package/dist/chunks/cli-1.1.25-5n21xpvc.mjs +16 -0
  96. package/dist/chunks/cli-1.1.25-5qknjpxc.mjs +2 -0
  97. package/dist/chunks/cli-1.1.25-5r495hn7.mjs +4 -0
  98. package/dist/chunks/cli-1.1.25-5s22yhkx.mjs +3 -0
  99. package/dist/chunks/cli-1.1.25-5s65r14h.mjs +2 -0
  100. package/dist/chunks/cli-1.1.25-5ye3ascx.mjs +2 -0
  101. package/dist/chunks/cli-1.1.25-639mzh6g.mjs +2 -0
  102. package/dist/chunks/cli-1.1.25-63kkff0g.mjs +2 -0
  103. package/dist/chunks/cli-1.1.25-683ggh08.mjs +2 -0
  104. package/dist/chunks/cli-1.1.25-687hxtdb.mjs +1 -0
  105. package/dist/chunks/cli-1.1.25-69shxnnp.mjs +2 -0
  106. package/dist/chunks/cli-1.1.25-6bb29bw7.mjs +2 -0
  107. package/dist/chunks/cli-1.1.25-6panntay.mjs +17 -0
  108. package/dist/chunks/cli-1.1.25-6pthkv1w.mjs +4 -0
  109. package/dist/chunks/cli-1.1.25-6r6r7rep.mjs +4 -0
  110. package/dist/chunks/cli-1.1.25-6t9phfap.mjs +2 -0
  111. package/dist/chunks/cli-1.1.25-6vwz5vma.mjs +2 -0
  112. package/dist/chunks/cli-1.1.25-6wcggeyr.mjs +25 -0
  113. package/dist/chunks/cli-1.1.25-6wjrv08c.mjs +6 -0
  114. package/dist/chunks/cli-1.1.25-746dypse.mjs +2 -0
  115. package/dist/chunks/cli-1.1.25-74ys7518.mjs +42 -0
  116. package/dist/chunks/cli-1.1.25-7d3fdbq5.mjs +17 -0
  117. package/dist/chunks/cli-1.1.25-7d7cptk6.mjs +10 -0
  118. package/dist/chunks/cli-1.1.25-7qert3s4.mjs +2 -0
  119. package/dist/chunks/cli-1.1.25-7qxwpfwh.mjs +2 -0
  120. package/dist/chunks/cli-1.1.25-7wsdhgky.mjs +2 -0
  121. package/dist/chunks/cli-1.1.25-82ht7pxh.mjs +2 -0
  122. package/dist/chunks/cli-1.1.25-8byrahks.mjs +2 -0
  123. package/dist/chunks/cli-1.1.25-8eznzbsa.mjs +5 -0
  124. package/dist/chunks/cli-1.1.25-8hv1dfrb.mjs +2 -0
  125. package/dist/chunks/cli-1.1.25-8k2bszzr.mjs +2 -0
  126. package/dist/chunks/cli-1.1.25-8v1gw0tw.mjs +9 -0
  127. package/dist/chunks/cli-1.1.25-8vqmp6g5.mjs +20 -0
  128. package/dist/chunks/cli-1.1.25-9f27xm90.mjs +25 -0
  129. package/dist/chunks/cli-1.1.25-9grz07r4.mjs +34 -0
  130. package/dist/chunks/cli-1.1.25-9m237kwt.mjs +2 -0
  131. package/dist/chunks/cli-1.1.25-9xqq9dsw.mjs +3 -0
  132. package/dist/chunks/cli-1.1.25-9yhnadye.mjs +24 -0
  133. package/dist/chunks/cli-1.1.25-9z7tyxc4.mjs +2 -0
  134. package/dist/chunks/cli-1.1.25-a0zejb5c.mjs +2 -0
  135. package/dist/chunks/cli-1.1.25-am98khq7.mjs +2 -0
  136. package/dist/chunks/cli-1.1.25-anhj1nnt.mjs +2 -0
  137. package/dist/chunks/cli-1.1.25-anvsm1cs.mjs +2 -0
  138. package/dist/chunks/cli-1.1.25-b1hj5x42.mjs +2 -0
  139. package/dist/chunks/cli-1.1.25-ba3yrxg9.mjs +2 -0
  140. package/dist/chunks/cli-1.1.25-bmjvmtgk.mjs +2 -0
  141. package/dist/chunks/cli-1.1.25-bvg3kwg7.mjs +4 -0
  142. package/dist/chunks/cli-1.1.25-cc10r97z.mjs +2 -0
  143. package/dist/chunks/cli-1.1.25-cmsea0j8.mjs +15 -0
  144. package/dist/chunks/cli-1.1.25-csgmna38.mjs +2 -0
  145. package/dist/chunks/cli-1.1.25-ctfh8503.mjs +2 -0
  146. package/dist/chunks/cli-1.1.25-d029ezbm.mjs +2 -0
  147. package/dist/chunks/cli-1.1.25-d15hk64v.mjs +2 -0
  148. package/dist/chunks/cli-1.1.25-d6ybhba5.mjs +2 -0
  149. package/dist/chunks/cli-1.1.25-dc92c5gy.mjs +2 -0
  150. package/dist/chunks/cli-1.1.25-df9x7s0j.mjs +2 -0
  151. package/dist/chunks/cli-1.1.25-dn7m24cg.mjs +2 -0
  152. package/dist/chunks/cli-1.1.25-drtfsgw8.mjs +3 -0
  153. package/dist/chunks/cli-1.1.25-dw0mshd5.mjs +2 -0
  154. package/dist/chunks/cli-1.1.25-e2ng6vcx.mjs +2 -0
  155. package/dist/chunks/cli-1.1.25-ed14rf9g.mjs +2 -0
  156. package/dist/chunks/cli-1.1.25-eqtpax1f.mjs +6 -0
  157. package/dist/chunks/cli-1.1.25-etb23y0w.mjs +4 -0
  158. package/dist/chunks/cli-1.1.25-ex6f69yn.mjs +2 -0
  159. package/dist/chunks/cli-1.1.25-f424x1de.mjs +2 -0
  160. package/dist/chunks/cli-1.1.25-f57233sm.mjs +8 -0
  161. package/dist/chunks/cli-1.1.25-f5ag59tm.mjs +4 -0
  162. package/dist/chunks/cli-1.1.25-f6w108cp.mjs +6 -0
  163. package/dist/chunks/cli-1.1.25-f9pk1asa.mjs +7 -0
  164. package/dist/chunks/cli-1.1.25-fr1nw6bz.mjs +2 -0
  165. package/dist/chunks/cli-1.1.25-fwh7d55c.mjs +2 -0
  166. package/dist/chunks/cli-1.1.25-g6y71why.mjs +24 -0
  167. package/dist/chunks/cli-1.1.25-gba9rrnp.mjs +15 -0
  168. package/dist/chunks/cli-1.1.25-gezpvyzq.mjs +2 -0
  169. package/dist/chunks/cli-1.1.25-gm5mfwmy.mjs +2 -0
  170. package/dist/chunks/cli-1.1.25-gmvcd8bm.mjs +2 -0
  171. package/dist/chunks/cli-1.1.25-gnsqbh0h.mjs +2 -0
  172. package/dist/chunks/cli-1.1.25-gsngwhfp.mjs +2 -0
  173. package/dist/chunks/cli-1.1.25-gz32rhhs.mjs +2 -0
  174. package/dist/chunks/cli-1.1.25-h164y8f5.mjs +2 -0
  175. package/dist/chunks/cli-1.1.25-h6ag26rc.mjs +2 -0
  176. package/dist/chunks/cli-1.1.25-hdgk2770.mjs +2 -0
  177. package/dist/chunks/cli-1.1.25-hjvawqyb.mjs +2 -0
  178. package/dist/chunks/cli-1.1.25-hjwttff4.mjs +2 -0
  179. package/dist/chunks/cli-1.1.25-hpfkk20r.mjs +2 -0
  180. package/dist/chunks/cli-1.1.25-j6x483np.mjs +2 -0
  181. package/dist/chunks/cli-1.1.25-jaz67hdc.mjs +2 -0
  182. package/dist/chunks/cli-1.1.25-jk7skh2n.mjs +2 -0
  183. package/dist/chunks/cli-1.1.25-jmv6jw6b.mjs +2 -0
  184. package/dist/chunks/cli-1.1.25-jsn4we2f.mjs +2 -0
  185. package/dist/chunks/cli-1.1.25-k6kqfxnq.mjs +2 -0
  186. package/dist/chunks/cli-1.1.25-k6v3tvg9.mjs +2 -0
  187. package/dist/chunks/cli-1.1.25-k9qcf2mf.mjs +2 -0
  188. package/dist/chunks/cli-1.1.25-kdamwjt1.mjs +2 -0
  189. package/dist/chunks/cli-1.1.25-kn1yv4f6.mjs +2 -0
  190. package/dist/chunks/cli-1.1.25-kpah4ttt.mjs +2 -0
  191. package/dist/chunks/cli-1.1.25-kpv8j6wf.mjs +2 -0
  192. package/dist/chunks/cli-1.1.25-kvwevqsc.mjs +18 -0
  193. package/dist/chunks/cli-1.1.25-m0h0ddew.mjs +2 -0
  194. package/dist/chunks/cli-1.1.25-m86a8tmc.mjs +2 -0
  195. package/dist/chunks/cli-1.1.25-n10jmzvk.mjs +2 -0
  196. package/dist/chunks/cli-1.1.25-n5gb4kx8.mjs +2 -0
  197. package/dist/chunks/cli-1.1.25-n6df4vnz.mjs +2 -0
  198. package/dist/chunks/cli-1.1.25-nh2xj15f.mjs +2 -0
  199. package/dist/chunks/cli-1.1.25-njrez2x5.mjs +12 -0
  200. package/dist/chunks/cli-1.1.25-nmw9agm4.mjs +133 -0
  201. package/dist/chunks/cli-1.1.25-nmxbk4dt.mjs +2 -0
  202. package/dist/chunks/cli-1.1.25-np8863pb.mjs +3 -0
  203. package/dist/chunks/cli-1.1.25-ntfm6tbg.mjs +2 -0
  204. package/dist/chunks/cli-1.1.25-nwdtve8h.mjs +2 -0
  205. package/dist/chunks/cli-1.1.25-nxvqf4sh.mjs +2 -0
  206. package/dist/chunks/cli-1.1.25-p2kmhxd3.mjs +3 -0
  207. package/dist/chunks/cli-1.1.25-p9j8prqh.mjs +2 -0
  208. package/dist/chunks/cli-1.1.25-pcamey8m.mjs +2 -0
  209. package/dist/chunks/cli-1.1.25-peepax79.mjs +66 -0
  210. package/dist/chunks/cli-1.1.25-pgs0x971.mjs +50 -0
  211. package/dist/chunks/cli-1.1.25-px1h2b7d.mjs +2 -0
  212. package/dist/chunks/cli-1.1.25-pxq7zyjb.mjs +2 -0
  213. package/dist/chunks/cli-1.1.25-pzp73p0x.mjs +2 -0
  214. package/dist/chunks/cli-1.1.25-q257pczz.mjs +133 -0
  215. package/dist/chunks/cli-1.1.25-q5qj0wfa.mjs +18 -0
  216. package/dist/chunks/cli-1.1.25-q5tqh3tz.mjs +2 -0
  217. package/dist/chunks/cli-1.1.25-q88hb4qg.mjs +5459 -0
  218. package/dist/chunks/cli-1.1.25-qd1b1zr7.mjs +3 -0
  219. package/dist/chunks/cli-1.1.25-qd1q5w85.mjs +2 -0
  220. package/dist/chunks/cli-1.1.25-qgnyys4j.mjs +6 -0
  221. package/dist/chunks/cli-1.1.25-qp9j9ma3.mjs +24 -0
  222. package/dist/chunks/cli-1.1.25-qpb14xj4.mjs +2 -0
  223. package/dist/chunks/cli-1.1.25-qtjt3cq9.mjs +2 -0
  224. package/dist/chunks/cli-1.1.25-r0dwt4a0.mjs +2 -0
  225. package/dist/chunks/cli-1.1.25-r2a8d0xg.mjs +26 -0
  226. package/dist/chunks/cli-1.1.25-rbapdr02.mjs +2 -0
  227. package/dist/chunks/cli-1.1.25-rbnjv023.mjs +2 -0
  228. package/dist/chunks/cli-1.1.25-rf05pze2.mjs +2 -0
  229. package/dist/chunks/cli-1.1.25-rf0c9c9r.mjs +3 -0
  230. package/dist/chunks/cli-1.1.25-rg5rxmym.mjs +9 -0
  231. package/dist/chunks/cli-1.1.25-rkh9pz84.mjs +2 -0
  232. package/dist/chunks/cli-1.1.25-rqzwndms.mjs +45 -0
  233. package/dist/chunks/cli-1.1.25-rwg08ga2.mjs +39 -0
  234. package/dist/chunks/cli-1.1.25-s1ykc389.mjs +2 -0
  235. package/dist/chunks/cli-1.1.25-s54emewd.mjs +206 -0
  236. package/dist/chunks/cli-1.1.25-s9sv7xk9.mjs +2 -0
  237. package/dist/chunks/cli-1.1.25-sjqg08ww.mjs +2 -0
  238. package/dist/chunks/cli-1.1.25-sm3q65hz.mjs +2 -0
  239. package/dist/chunks/cli-1.1.25-svtt1qhf.mjs +5 -0
  240. package/dist/chunks/cli-1.1.25-sz3dey5y.mjs +2 -0
  241. package/dist/chunks/cli-1.1.25-t6rdfhp9.mjs +3 -0
  242. package/dist/chunks/cli-1.1.25-t80ab9f0.mjs +7 -0
  243. package/dist/chunks/cli-1.1.25-tftyt531.mjs +3 -0
  244. package/dist/chunks/cli-1.1.25-tj3kqgbv.mjs +2 -0
  245. package/dist/chunks/cli-1.1.25-tz7k6gjy.mjs +2 -0
  246. package/dist/chunks/cli-1.1.25-vc7150xz.mjs +2 -0
  247. package/dist/chunks/cli-1.1.25-vkg5fb0z.mjs +2 -0
  248. package/dist/chunks/cli-1.1.25-vwe1fsde.mjs +2 -0
  249. package/dist/chunks/cli-1.1.25-wcw9vrkz.mjs +2 -0
  250. package/dist/chunks/cli-1.1.25-wd0p9nmj.mjs +24 -0
  251. package/dist/chunks/cli-1.1.25-wtrb99c9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.25-wy18zt7a.mjs +3 -0
  253. package/dist/chunks/cli-1.1.25-x26vkphq.mjs +6 -0
  254. package/dist/chunks/cli-1.1.25-x4ww7pe7.mjs +2 -0
  255. package/dist/chunks/cli-1.1.25-xbxtyfje.mjs +2 -0
  256. package/dist/chunks/cli-1.1.25-y0f45gyf.mjs +2 -0
  257. package/dist/chunks/cli-1.1.25-y4xjnn7w.mjs +2 -0
  258. package/dist/chunks/cli-1.1.25-ybe971qx.mjs +15 -0
  259. package/dist/chunks/cli-1.1.25-yctc3qt8.mjs +2 -0
  260. package/dist/chunks/cli-1.1.25-yf3nnsg1.mjs +2 -0
  261. package/dist/chunks/cli-1.1.25-z31z20wf.mjs +2 -0
  262. package/dist/chunks/cli-1.1.25-zk74mh7n.mjs +2 -0
  263. package/dist/chunks/cli-1.1.25-zpzhf7zc.mjs +2 -0
  264. package/dist/chunks/cli-1.1.25-zqqpy89q.mjs +6 -0
  265. package/dist/chunks/cli-1.1.25-zrj2zpkp.mjs +2 -0
  266. package/dist/chunks/client-1.1.25-08n7ywgz.mjs +1 -0
  267. package/dist/chunks/color-1.1.25-n45p3cdv.mjs +1 -0
  268. package/dist/chunks/compact-1.1.25-qqv3fce7.mjs +3 -0
  269. package/dist/chunks/config-1.1.25-bvznkf41.mjs +1 -0
  270. package/dist/chunks/config-1.1.25-n6dtcns2.mjs +1 -0
  271. package/dist/chunks/constants-1.1.25-g61cz55f.mjs +1 -0
  272. package/dist/chunks/context-1.1.25-e3n1bdyd.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.25-6drmca9m.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.25-5xfam12e.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.25-n3q0s4gz.mjs +1 -0
  276. package/dist/chunks/copy-1.1.25-wcjjc2td.mjs +9 -0
  277. package/dist/chunks/cost-1.1.25-czrc10qr.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.25-q7sr5mgy.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.25-abgdr9mn.mjs +1 -0
  280. package/dist/chunks/debug-1.1.25-4284each.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.25-bh5e3czf.mjs +1534 -0
  282. package/dist/chunks/desktop-1.1.25-kb98q9vj.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.25-a7pfgy12.mjs +1 -0
  284. package/dist/chunks/detection-1.1.25-8nzvw5jn.mjs +1 -0
  285. package/dist/chunks/diff-1.1.25-dhnj1tfb.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.25-0x83n5n5.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.25-qmg4yght.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.25-jz9ewwc0.mjs +1 -0
  289. package/dist/chunks/effort-1.1.25-6gemkp3j.mjs +13 -0
  290. package/dist/chunks/engine-1.1.25-hb7ppn8y.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.25-32s3yykr.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.25-trphmt1z.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.25-jew2phex.mjs +1 -0
  294. package/dist/chunks/environments-1.1.25-nkh2j8kv.mjs +1 -0
  295. package/dist/chunks/errors-1.1.25-0t1vtdpj.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.25-n2ktzve3.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.25-2f72pb95.mjs +1 -0
  298. package/dist/chunks/exit-1.1.25-302bsne4.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.25-f47vrcdd.mjs +1 -0
  300. package/dist/chunks/export-1.1.25-655jmasp.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.25-9f3dc9de.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.25-wjzcb1d3.mjs +1 -0
  303. package/dist/chunks/fast-1.1.25-k4a1t9tc.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.25-crmhd8kn.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.25-pr01pvjg.mjs +1 -0
  306. package/dist/chunks/git-1.1.25-r40xnnqg.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.25-8r84eppg.mjs +1 -0
  308. package/dist/chunks/goal-1.1.25-2fz16dne.mjs +4 -0
  309. package/dist/chunks/growthbook-1.1.25-vr1d3g20.mjs +1 -0
  310. package/dist/chunks/headless-1.1.25-b7ma19kx.mjs +2 -0
  311. package/dist/chunks/heapdump-1.1.25-s74fnvr9.mjs +6 -0
  312. package/dist/chunks/help-1.1.25-jphw3nwb.mjs +1 -0
  313. package/dist/chunks/hookChains-1.1.25-wad3j7ae.mjs +3 -0
  314. package/dist/chunks/hooks-1.1.25-5psxtbt2.mjs +79 -0
  315. package/dist/chunks/hooks-1.1.25-n6f1dkc7.mjs +1 -0
  316. package/dist/chunks/ide-1.1.25-21kw5qe1.mjs +3 -0
  317. package/dist/chunks/image-processor-napi-1.1.25-jymb540y.mjs +1 -0
  318. package/dist/chunks/import-1.1.25-71q60jx1.mjs +261 -0
  319. package/dist/chunks/inboundAttachments-1.1.25-qg5v4c4j.mjs +1 -0
  320. package/dist/chunks/index-1.1.25-0f94rjfd.mjs +1 -0
  321. package/dist/chunks/index-1.1.25-0n1ksx20.mjs +2 -0
  322. package/dist/chunks/index-1.1.25-1n597wy3.mjs +1 -0
  323. package/dist/chunks/index-1.1.25-1rwmhexf.mjs +1 -0
  324. package/dist/chunks/index-1.1.25-6160t93h.mjs +30 -0
  325. package/dist/chunks/index-1.1.25-645qcmbw.mjs +9 -0
  326. package/dist/chunks/index-1.1.25-70ggh135.mjs +1 -0
  327. package/dist/chunks/index-1.1.25-7nk5p28a.mjs +1 -0
  328. package/dist/chunks/index-1.1.25-7p7qd15b.mjs +23 -0
  329. package/dist/chunks/index-1.1.25-8z7y79bf.mjs +1 -0
  330. package/dist/chunks/index-1.1.25-affe6cxt.mjs +9 -0
  331. package/dist/chunks/index-1.1.25-bec2ajvp.mjs +1 -0
  332. package/dist/chunks/index-1.1.25-f64qrtc9.mjs +5 -0
  333. package/dist/chunks/index-1.1.25-g7v9zhk1.mjs +1 -0
  334. package/dist/chunks/index-1.1.25-g99896ns.mjs +1 -0
  335. package/dist/chunks/index-1.1.25-hcbmys9p.mjs +1 -0
  336. package/dist/chunks/index-1.1.25-j8rm4qgs.mjs +2 -0
  337. package/dist/chunks/index-1.1.25-kh02yd5c.mjs +1 -0
  338. package/dist/chunks/index-1.1.25-m6k2vy2a.mjs +1 -0
  339. package/dist/chunks/index-1.1.25-pmn6pnjv.mjs +1 -0
  340. package/dist/chunks/index-1.1.25-t0kaa1dy.mjs +1 -0
  341. package/dist/chunks/index-1.1.25-xfdfregs.mjs +1 -0
  342. package/dist/chunks/index-1.1.25-ychm6aj7.mjs +1 -0
  343. package/dist/chunks/init-1.1.25-x7cr3p65.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.25-zcgy02rq.mjs +1 -0
  345. package/dist/chunks/ink-1.1.25-evxr7syt.mjs +1 -0
  346. package/dist/chunks/insights-1.1.25-0zz5y2cs.mjs +870 -0
  347. package/dist/chunks/install-1.1.25-nghrpc4k.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.25-1tb3cz5k.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.25-vsp3sc6d.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.25-e9arjmhp.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.25-dvn7nkzf.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.25-7tf4nkft.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.25-gchxmcv2.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.25-gzy09f8s.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.25-3fvea40c.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.25-1b1z5t2x.mjs +1 -0
  357. package/dist/chunks/log-1.1.25-rhpcv45j.mjs +1 -0
  358. package/dist/chunks/main-1.1.25-hpaj9gzw.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.25-19sxqzbj.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.25-bkgk2vye.mjs +1 -0
  361. package/dist/chunks/mcp-1.1.25-n5bde32b.mjs +17 -0
  362. package/dist/chunks/mcp-1.1.25-wsfk73n2.mjs +4 -0
  363. package/dist/chunks/mcpb-1.1.25-jwd1ff98.mjs +1 -0
  364. package/dist/chunks/memory-1.1.25-ae4515h6.mjs +72 -0
  365. package/dist/chunks/model-1.1.25-kdc32s97.mjs +1 -0
  366. package/dist/chunks/model-1.1.25-x3hpj8mx.mjs +2 -0
  367. package/dist/chunks/node-1.1.25-bmakbgcc.mjs +15 -0
  368. package/dist/chunks/oauth-1.1.25-dpw2v0gf.mjs +1 -0
  369. package/dist/chunks/openaiShim-1.1.25-frxz7cxz.mjs +14 -0
  370. package/dist/chunks/output-style-1.1.25-ja0xn44t.mjs +1 -0
  371. package/dist/chunks/package-SHMK2LJE-1.1.25-n5senjea.mjs +1 -0
  372. package/dist/chunks/parseConnectUrl-1.1.25-2w1mb832.mjs +1 -0
  373. package/dist/chunks/parser-1.1.25-226xm2zk.mjs +1 -0
  374. package/dist/chunks/passes-1.1.25-3pbcz45a.mjs +1 -0
  375. package/dist/chunks/permissions-1.1.25-3yb8c211.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.25-g8395q9y.mjs +3 -0
  377. package/dist/chunks/plan-1.1.25-335rgqar.mjs +1 -0
  378. package/dist/chunks/plist-1.1.25-4gx9kzb9.mjs +1 -0
  379. package/dist/chunks/plugin-1.1.25-7twsr9qb.mjs +29 -0
  380. package/dist/chunks/pluginStartupCheck-1.1.25-h43rcveq.mjs +1 -0
  381. package/dist/chunks/plugins-1.1.25-36r120jp.mjs +9 -0
  382. package/dist/chunks/preActionHook-1.1.25-mq77hmkq.mjs +2 -0
  383. package/dist/chunks/print-1.1.25-nyqwpaw6.mjs +57 -0
  384. package/dist/chunks/process-1.1.25-40rkvfxz.mjs +1 -0
  385. package/dist/chunks/processBashCommand-1.1.25-4rt9wd52.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-1.1.25-50jz8vq4.mjs +9 -0
  387. package/dist/chunks/prompt-1.1.25-ab2m25ry.mjs +1 -0
  388. package/dist/chunks/prompt-1.1.25-tsf93p18.mjs +1 -0
  389. package/dist/chunks/prompts-1.1.25-7asah358.mjs +1 -0
  390. package/dist/chunks/protocolHandler-1.1.25-fjma0898.mjs +13 -0
  391. package/dist/chunks/provider-1.1.25-jcm6xct3.mjs +2 -0
  392. package/dist/chunks/providerProfiles-1.1.25-86yene25.mjs +1 -0
  393. package/dist/chunks/providerValidation-1.1.25-gbve71cz.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-1.1.25-n6v741p7.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-1.1.25-d988tp7q.mjs +26 -0
  396. package/dist/chunks/registry-1.1.25-jda5me4n.mjs +1 -0
  397. package/dist/chunks/release-notes-1.1.25-depx979r.mjs +5 -0
  398. package/dist/chunks/reload-plugins-1.1.25-nc27sfgy.mjs +2 -0
  399. package/dist/chunks/remote-env-1.1.25-adtemst2.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-1.1.25-vyw0r3a7.mjs +1 -0
  401. package/dist/chunks/remoteSession-1.1.25-f1hb7zcj.mjs +1 -0
  402. package/dist/chunks/rename-1.1.25-r9khtthn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-1.1.25-5tbm27ae.mjs +1 -0
  404. package/dist/chunks/replLauncher-1.1.25-dy1jxrha.mjs +1 -0
  405. package/dist/chunks/resume-1.1.25-qcctpvst.mjs +2 -0
  406. package/dist/chunks/rewind-1.1.25-2tpvsdz2.mjs +1 -0
  407. package/dist/chunks/rootOptions-1.1.25-6gjd4t0k.mjs +1 -0
  408. package/dist/chunks/runWorkflowHeadless-1.1.25-1x11b1xy.mjs +10 -0
  409. package/dist/chunks/sandbox-adapter-1.1.25-2qsj3g4r.mjs +1 -0
  410. package/dist/chunks/sandbox-toggle-1.1.25-tn86q9kj.mjs +1 -0
  411. package/dist/chunks/session-1.1.25-tpnhf7nk.mjs +2 -0
  412. package/dist/chunks/sessionDiscovery-1.1.25-z48aepj2.mjs +1 -0
  413. package/dist/chunks/sessionFileAccessHooks-1.1.25-w9mqv7x2.mjs +1 -0
  414. package/dist/chunks/sessionStorage-1.1.25-f61wmxkh.mjs +1 -0
  415. package/dist/chunks/settings-1.1.25-5f0ye0zf.mjs +1 -0
  416. package/dist/chunks/setup-1.1.25-hq096wz8.mjs +12 -0
  417. package/dist/chunks/sinks-1.1.25-k89ee9jd.mjs +1 -0
  418. package/dist/chunks/skills-1.1.25-zny3acfm.mjs +1 -0
  419. package/dist/chunks/startupProfiler-1.1.25-jrb54jgv.mjs +1 -0
  420. package/dist/chunks/startupUpdateCheck-1.1.25-0e8arnxt.mjs +1 -0
  421. package/dist/chunks/state-1.1.25-2f0mn1s8.mjs +1 -0
  422. package/dist/chunks/stats-1.1.25-w4v85n4m.mjs +1 -0
  423. package/dist/chunks/status-1.1.25-vyxf29s0.mjs +1 -0
  424. package/dist/chunks/stickers-1.1.25-db9b5d86.mjs +1 -0
  425. package/dist/chunks/subprocessEnv-1.1.25-b06h7dn5.mjs +1 -0
  426. package/dist/chunks/tasks-1.1.25-d44s3czy.mjs +1 -0
  427. package/dist/chunks/teamHelpers-1.1.25-yy2zwqy3.mjs +1 -0
  428. package/dist/chunks/teammateModeSnapshot-1.1.25-45w75v4y.mjs +1 -0
  429. package/dist/chunks/teleport-1.1.25-5be1s310.mjs +1 -0
  430. package/dist/chunks/terminalSetup-1.1.25-b5a4adgd.mjs +1 -0
  431. package/dist/chunks/theme-1.1.25-wkyf9b5k.mjs +1 -0
  432. package/dist/chunks/thinkback-1.1.25-6575xnpn.mjs +1 -0
  433. package/dist/chunks/thinkback-play-1.1.25-amw47kg0.mjs +1 -0
  434. package/dist/chunks/toolPool-1.1.25-h7pp3y85.mjs +1 -0
  435. package/dist/chunks/toolSearch-1.1.25-brpn0e66.mjs +1 -0
  436. package/dist/chunks/tools-1.1.25-t4rr3y1m.mjs +1 -0
  437. package/dist/chunks/trustedDevice-1.1.25-dgx4z9gb.mjs +1 -0
  438. package/dist/chunks/turndown.cjs-1.1.25-9c24hgzw.mjs +69 -0
  439. package/dist/chunks/types-1.1.25-tj3y8ycy.mjs +1 -0
  440. package/dist/chunks/ultrareviewCommand-1.1.25-kj7js02p.mjs +4 -0
  441. package/dist/chunks/update-1.1.25-fn4tnxnw.mjs +72 -0
  442. package/dist/chunks/upgrade-1.1.25-zd805a6y.mjs +1 -0
  443. package/dist/chunks/upload-1.1.25-nhsynsbb.mjs +7 -0
  444. package/dist/chunks/upstreamproxy-1.1.25-bh4an4es.mjs +14 -0
  445. package/dist/chunks/url-handler-napi-1.1.25-z7v66h19.mjs +1 -0
  446. package/dist/chunks/usage-1.1.25-0frq9der.mjs +1 -0
  447. package/dist/chunks/util-1.1.25-hqbcvpk3.mjs +1 -0
  448. package/dist/chunks/utils-1.1.25-mqy166xe.mjs +1 -0
  449. package/dist/chunks/vim-1.1.25-0gnwfzcy.mjs +1 -0
  450. package/dist/chunks/watchLoop-1.1.25-dnpy6c6e.mjs +13 -0
  451. package/dist/chunks/watcher-1.1.25-43n00zw0.mjs +1 -0
  452. package/dist/chunks/wiki-1.1.25-mvay6amg.mjs +132 -0
  453. package/dist/chunks/workflows-1.1.25-a2drn8b3.mjs +1 -0
  454. package/dist/chunks/worktree-1.1.25-cghd8r64.mjs +1 -0
  455. package/dist/chunks/worktreeModeEnabled-1.1.25-a15vww7v.mjs +1 -0
  456. package/dist/chunks/wrapper-1.1.25-chacpj74.mjs +7 -0
  457. package/dist/cli.mjs +2 -2
  458. package/package.json +9 -9
  459. package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +0 -1
  460. package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +0 -1
  461. package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +0 -1
  462. package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +0 -1
  463. package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +0 -1
  464. package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +0 -1
  465. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +0 -1
  466. package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +0 -1
  467. package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +0 -6
  468. package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +0 -1
  469. package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +0 -6
  470. package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +0 -1
  474. package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +0 -1
  475. package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +0 -1
  476. package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +0 -1
  484. package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +0 -1
  485. package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +0 -1
  486. package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +0 -1
  487. package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +0 -1
  488. package/dist/chunks/agents-1.1.23-13ae3y31.mjs +0 -110
  489. package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +0 -3
  490. package/dist/chunks/api-1.1.23-sadzsv9h.mjs +0 -1
  491. package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +0 -1
  492. package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +0 -1
  493. package/dist/chunks/auth-1.1.23-2mazt66r.mjs +0 -1
  494. package/dist/chunks/auth-1.1.23-f804wpq0.mjs +0 -1
  495. package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +0 -52
  496. package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +0 -44
  497. package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +0 -1
  498. package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +0 -1
  499. package/dist/chunks/branch-1.1.23-df4c0964.mjs +0 -4
  500. package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +0 -2
  501. package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +0 -1
  502. package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +0 -1
  503. package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +0 -88
  504. package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +0 -1
  505. package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +0 -1
  506. package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +0 -3
  507. package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +0 -21
  508. package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +0 -4
  509. package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +0 -1
  510. package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +0 -1
  511. package/dist/chunks/claudemd-1.1.23-av012etb.mjs +0 -1
  512. package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +0 -1
  513. package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +0 -1
  514. package/dist/chunks/cli-1.1.23-08g4ya29.mjs +0 -2
  515. package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +0 -4
  516. package/dist/chunks/cli-1.1.23-13w02myd.mjs +0 -2
  517. package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +0 -2
  518. package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +0 -5
  519. package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +0 -3
  520. package/dist/chunks/cli-1.1.23-1fexxp20.mjs +0 -2
  521. package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +0 -4
  522. package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +0 -2
  523. package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +0 -2
  524. package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +0 -2
  525. package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +0 -24
  526. package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +0 -4
  527. package/dist/chunks/cli-1.1.23-2g7503ny.mjs +0 -133
  528. package/dist/chunks/cli-1.1.23-2gax24jg.mjs +0 -2
  529. package/dist/chunks/cli-1.1.23-2swa87qn.mjs +0 -2
  530. package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +0 -2
  531. package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +0 -7
  532. package/dist/chunks/cli-1.1.23-3hnz7314.mjs +0 -2
  533. package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +0 -2
  534. package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +0 -2
  535. package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +0 -24
  536. package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +0 -2
  537. package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +0 -2
  538. package/dist/chunks/cli-1.1.23-4q364wmc.mjs +0 -26
  539. package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +0 -2
  540. package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +0 -3
  541. package/dist/chunks/cli-1.1.23-4z00tj56.mjs +0 -20
  542. package/dist/chunks/cli-1.1.23-534g4n3n.mjs +0 -2
  543. package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +0 -2
  544. package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +0 -2
  545. package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +0 -3
  546. package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +0 -2
  547. package/dist/chunks/cli-1.1.23-61q858yx.mjs +0 -24
  548. package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +0 -6
  549. package/dist/chunks/cli-1.1.23-6801e7pm.mjs +0 -34
  550. package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +0 -2
  551. package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +0 -2
  552. package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +0 -3
  553. package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +0 -2
  554. package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +0 -2
  555. package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +0 -2
  556. package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +0 -3
  557. package/dist/chunks/cli-1.1.23-6svwd47h.mjs +0 -2
  558. package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +0 -4
  559. package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +0 -2
  560. package/dist/chunks/cli-1.1.23-7081am2r.mjs +0 -60
  561. package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +0 -2
  562. package/dist/chunks/cli-1.1.23-7672wfdw.mjs +0 -2
  563. package/dist/chunks/cli-1.1.23-79fjt009.mjs +0 -2
  564. package/dist/chunks/cli-1.1.23-7btdskbp.mjs +0 -2
  565. package/dist/chunks/cli-1.1.23-7jpcmnjc.mjs +0 -2
  566. package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +0 -2
  567. package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +0 -2
  568. package/dist/chunks/cli-1.1.23-7p15pph2.mjs +0 -2
  569. package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +0 -2
  570. package/dist/chunks/cli-1.1.23-89dm39zw.mjs +0 -2
  571. package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +0 -2
  572. package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +0 -2
  573. package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +0 -1
  574. package/dist/chunks/cli-1.1.23-8tv84m75.mjs +0 -2
  575. package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +0 -4
  576. package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +0 -6
  577. package/dist/chunks/cli-1.1.23-913hrrgx.mjs +0 -2
  578. package/dist/chunks/cli-1.1.23-91n79mdp.mjs +0 -2
  579. package/dist/chunks/cli-1.1.23-971f3zzk.mjs +0 -2
  580. package/dist/chunks/cli-1.1.23-9b08qsth.mjs +0 -2
  581. package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +0 -2
  582. package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +0 -2
  583. package/dist/chunks/cli-1.1.23-9qe28y65.mjs +0 -16
  584. package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +0 -2
  585. package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +0 -2
  586. package/dist/chunks/cli-1.1.23-9zrhw582.mjs +0 -2
  587. package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +0 -12
  588. package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +0 -18
  589. package/dist/chunks/cli-1.1.23-a95wepyn.mjs +0 -66
  590. package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +0 -2
  591. package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +0 -7
  592. package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +0 -2
  593. package/dist/chunks/cli-1.1.23-akghy19s.mjs +0 -58
  594. package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +0 -2
  595. package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +0 -2
  596. package/dist/chunks/cli-1.1.23-beazn1ym.mjs +0 -45
  597. package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +0 -15
  598. package/dist/chunks/cli-1.1.23-bghc6n12.mjs +0 -2
  599. package/dist/chunks/cli-1.1.23-bkd2235z.mjs +0 -2
  600. package/dist/chunks/cli-1.1.23-bqb900hx.mjs +0 -2
  601. package/dist/chunks/cli-1.1.23-btem08d6.mjs +0 -2
  602. package/dist/chunks/cli-1.1.23-btq83yzw.mjs +0 -2
  603. package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +0 -2
  604. package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +0 -2
  605. package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +0 -2
  606. package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +0 -3
  607. package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +0 -2
  608. package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +0 -2
  609. package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +0 -2
  610. package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +0 -50
  611. package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +0 -2
  612. package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +0 -2
  613. package/dist/chunks/cli-1.1.23-dm6get34.mjs +0 -42
  614. package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +0 -2
  615. package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +0 -2
  616. package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +0 -2
  617. package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +0 -2
  618. package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +0 -2
  619. package/dist/chunks/cli-1.1.23-e3zf752q.mjs +0 -2
  620. package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +0 -2
  621. package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +0 -9
  622. package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +0 -2
  623. package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +0 -15
  624. package/dist/chunks/cli-1.1.23-f001cyx3.mjs +0 -2
  625. package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +0 -2
  626. package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +0 -2
  627. package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +0 -2
  628. package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +0 -3
  629. package/dist/chunks/cli-1.1.23-fxt20eva.mjs +0 -2
  630. package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +0 -2
  631. package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +0 -6
  632. package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +0 -2
  633. package/dist/chunks/cli-1.1.23-g6b9c447.mjs +0 -2
  634. package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +0 -2
  635. package/dist/chunks/cli-1.1.23-gm82gspk.mjs +0 -2
  636. package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +0 -2
  637. package/dist/chunks/cli-1.1.23-gqzmsste.mjs +0 -2
  638. package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +0 -25
  639. package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +0 -17
  640. package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +0 -17
  641. package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +0 -2
  642. package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +0 -2
  643. package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +0 -2
  644. package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +0 -2
  645. package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +0 -5456
  646. package/dist/chunks/cli-1.1.23-j1834bmw.mjs +0 -8
  647. package/dist/chunks/cli-1.1.23-j50f02dv.mjs +0 -3
  648. package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +0 -9
  649. package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +0 -2
  650. package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +0 -2
  651. package/dist/chunks/cli-1.1.23-jax91df0.mjs +0 -2
  652. package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +0 -2
  653. package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +0 -2
  654. package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +0 -4
  655. package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +0 -2
  656. package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +0 -6
  657. package/dist/chunks/cli-1.1.23-keftnbc6.mjs +0 -206
  658. package/dist/chunks/cli-1.1.23-kqechz3h.mjs +0 -3
  659. package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +0 -4
  660. package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +0 -4
  661. package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +0 -2
  662. package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +0 -2
  663. package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +0 -2
  664. package/dist/chunks/cli-1.1.23-n0182x8j.mjs +0 -2
  665. package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +0 -2
  666. package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +0 -2
  667. package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +0 -2
  668. package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +0 -2
  669. package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +0 -12
  670. package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +0 -2
  671. package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +0 -3
  672. package/dist/chunks/cli-1.1.23-qn9572e2.mjs +0 -2
  673. package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +0 -2
  674. package/dist/chunks/cli-1.1.23-r21frpa6.mjs +0 -6
  675. package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +0 -2
  676. package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +0 -2
  677. package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +0 -2
  678. package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +0 -25
  679. package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +0 -2
  680. package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +0 -2
  681. package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +0 -2
  682. package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +0 -2
  683. package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +0 -2
  684. package/dist/chunks/cli-1.1.23-s21f8qza.mjs +0 -2
  685. package/dist/chunks/cli-1.1.23-s2pn202f.mjs +0 -4
  686. package/dist/chunks/cli-1.1.23-s943evpq.mjs +0 -2
  687. package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +0 -21
  688. package/dist/chunks/cli-1.1.23-sch1s17t.mjs +0 -2
  689. package/dist/chunks/cli-1.1.23-se379e5e.mjs +0 -15
  690. package/dist/chunks/cli-1.1.23-swf2c8db.mjs +0 -2
  691. package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +0 -2
  692. package/dist/chunks/cli-1.1.23-v22erb37.mjs +0 -2
  693. package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +0 -5
  694. package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +0 -2
  695. package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +0 -3
  696. package/dist/chunks/cli-1.1.23-vdp0r91n.mjs +0 -2
  697. package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +0 -2
  698. package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +0 -2
  699. package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +0 -2
  700. package/dist/chunks/cli-1.1.23-vyf2j831.mjs +0 -2
  701. package/dist/chunks/cli-1.1.23-w16rdkte.mjs +0 -3
  702. package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +0 -3
  703. package/dist/chunks/cli-1.1.23-wd48c77m.mjs +0 -24
  704. package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +0 -18
  705. package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +0 -2
  706. package/dist/chunks/cli-1.1.23-wnxxa385.mjs +0 -4
  707. package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +0 -39
  708. package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +0 -2
  709. package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +0 -3
  710. package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +0 -2
  711. package/dist/chunks/cli-1.1.23-xgst7vty.mjs +0 -2
  712. package/dist/chunks/cli-1.1.23-xkt2056f.mjs +0 -2
  713. package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +0 -2
  714. package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +0 -2
  715. package/dist/chunks/cli-1.1.23-y3ea6683.mjs +0 -2
  716. package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +0 -2
  717. package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +0 -2
  718. package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +0 -133
  719. package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +0 -2
  720. package/dist/chunks/cli-1.1.23-zb8savhy.mjs +0 -6
  721. package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +0 -2
  722. package/dist/chunks/client-1.1.23-mcea9qxt.mjs +0 -1
  723. package/dist/chunks/color-1.1.23-e9h5ff51.mjs +0 -1
  724. package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +0 -3
  725. package/dist/chunks/config-1.1.23-j8frjsmx.mjs +0 -1
  726. package/dist/chunks/config-1.1.23-kedfvs1w.mjs +0 -1
  727. package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +0 -1
  728. package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +0 -1
  729. package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +0 -1
  730. package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +0 -1
  731. package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +0 -1
  732. package/dist/chunks/copy-1.1.23-vydqekfj.mjs +0 -9
  733. package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +0 -1
  734. package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +0 -1
  735. package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +0 -1
  736. package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +0 -1
  737. package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +0 -1534
  738. package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +0 -1
  739. package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +0 -1
  740. package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +0 -1
  741. package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +0 -1
  742. package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +0 -1
  743. package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +0 -1
  744. package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +0 -1
  745. package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +0 -13
  746. package/dist/chunks/engine-1.1.23-zted98hq.mjs +0 -1
  747. package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +0 -1
  748. package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +0 -1
  749. package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +0 -1
  750. package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +0 -1
  751. package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +0 -1
  752. package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +0 -1
  753. package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +0 -1
  754. package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +0 -1
  755. package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +0 -1
  756. package/dist/chunks/export-1.1.23-811x7m0f.mjs +0 -2
  757. package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +0 -1
  758. package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +0 -1
  759. package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +0 -1
  760. package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +0 -14
  761. package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +0 -1
  762. package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +0 -1
  763. package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +0 -1
  764. package/dist/chunks/goal-1.1.23-cmzk221k.mjs +0 -4
  765. package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +0 -1
  766. package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +0 -2
  767. package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +0 -6
  768. package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +0 -1
  769. package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +0 -3
  770. package/dist/chunks/hooks-1.1.23-nh96m542.mjs +0 -1
  771. package/dist/chunks/hooks-1.1.23-pggycv75.mjs +0 -79
  772. package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +0 -3
  773. package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +0 -1
  774. package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +0 -1
  775. package/dist/chunks/index-1.1.23-04w67ps4.mjs +0 -1
  776. package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +0 -2
  777. package/dist/chunks/index-1.1.23-16krzxwz.mjs +0 -1
  778. package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +0 -2
  779. package/dist/chunks/index-1.1.23-5xkpaxba.mjs +0 -1
  780. package/dist/chunks/index-1.1.23-87bctdxv.mjs +0 -1
  781. package/dist/chunks/index-1.1.23-894gw6j8.mjs +0 -1
  782. package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +0 -9
  783. package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +0 -1
  784. package/dist/chunks/index-1.1.23-hzafkcpn.mjs +0 -30
  785. package/dist/chunks/index-1.1.23-jfybaapb.mjs +0 -9
  786. package/dist/chunks/index-1.1.23-mbvmhq60.mjs +0 -1
  787. package/dist/chunks/index-1.1.23-nq44z8sn.mjs +0 -1
  788. package/dist/chunks/index-1.1.23-p84yrb6r.mjs +0 -1
  789. package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +0 -23
  790. package/dist/chunks/index-1.1.23-v3pvt45w.mjs +0 -1
  791. package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +0 -1
  792. package/dist/chunks/index-1.1.23-vw0ns36r.mjs +0 -1
  793. package/dist/chunks/index-1.1.23-xb876pe7.mjs +0 -5
  794. package/dist/chunks/index-1.1.23-xfzxwabm.mjs +0 -1
  795. package/dist/chunks/index-1.1.23-yjt3kte0.mjs +0 -1
  796. package/dist/chunks/index-1.1.23-ymq59t45.mjs +0 -1
  797. package/dist/chunks/index-1.1.23-ytps69pn.mjs +0 -1
  798. package/dist/chunks/init-1.1.23-68d7nbfy.mjs +0 -1
  799. package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +0 -1
  800. package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +0 -1
  801. package/dist/chunks/insights-1.1.23-hnbtjced.mjs +0 -870
  802. package/dist/chunks/install-1.1.23-ayas8qxr.mjs +0 -1
  803. package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +0 -149
  804. package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +0 -1
  805. package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +0 -1
  806. package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +0 -1
  807. package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +0 -2
  808. package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +0 -2
  809. package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +0 -1
  810. package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +0 -1
  811. package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +0 -1
  812. package/dist/chunks/log-1.1.23-raemwqxy.mjs +0 -1
  813. package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +0 -1
  814. package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +0 -1
  815. package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +0 -17
  816. package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +0 -4
  817. package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +0 -1
  818. package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +0 -1
  819. package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +0 -72
  820. package/dist/chunks/model-1.1.23-m65499d4.mjs +0 -1
  821. package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +0 -2
  822. package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +0 -14
  823. package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +0 -1
  824. package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +0 -14
  825. package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +0 -1
  826. package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +0 -1
  827. package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +0 -1
  828. package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +0 -1
  829. package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +0 -1
  830. package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +0 -3
  831. package/dist/chunks/permissions-1.1.23-r2894sce.mjs +0 -1
  832. package/dist/chunks/plan-1.1.23-z731dw1m.mjs +0 -1
  833. package/dist/chunks/plist-1.1.23-5761s0b4.mjs +0 -1
  834. package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +0 -29
  835. package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +0 -1
  836. package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +0 -9
  837. package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +0 -2
  838. package/dist/chunks/print-1.1.23-g988xjb3.mjs +0 -57
  839. package/dist/chunks/process-1.1.23-eh0mn414.mjs +0 -1
  840. package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +0 -1
  841. package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +0 -9
  842. package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +0 -1
  843. package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +0 -1
  844. package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +0 -1
  845. package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +0 -13
  846. package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +0 -2
  847. package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +0 -1
  848. package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +0 -6
  849. package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +0 -1
  850. package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +0 -26
  851. package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +0 -1
  852. package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +0 -5
  853. package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +0 -2
  854. package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +0 -1
  855. package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +0 -1
  856. package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +0 -1
  857. package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +0 -1
  858. package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +0 -1
  859. package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +0 -1
  860. package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +0 -2
  861. package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +0 -1
  862. package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +0 -1
  863. package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +0 -10
  864. package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +0 -1
  865. package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +0 -1
  866. package/dist/chunks/session-1.1.23-mws1tmy1.mjs +0 -2
  867. package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +0 -1
  868. package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +0 -1
  869. package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +0 -1
  870. package/dist/chunks/settings-1.1.23-3fm1v708.mjs +0 -1
  871. package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +0 -12
  872. package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +0 -1
  873. package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +0 -1
  874. package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +0 -1
  875. package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +0 -1
  876. package/dist/chunks/state-1.1.23-jxkq1t17.mjs +0 -1
  877. package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +0 -6
  878. package/dist/chunks/status-1.1.23-zkcmaawr.mjs +0 -1
  879. package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +0 -1
  880. package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +0 -1
  881. package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +0 -1
  882. package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +0 -1
  883. package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +0 -1
  884. package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +0 -1
  885. package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +0 -1
  886. package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +0 -1
  887. package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +0 -1
  888. package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +0 -1
  889. package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +0 -1
  890. package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +0 -1
  891. package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +0 -1
  892. package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +0 -1
  893. package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +0 -69
  894. package/dist/chunks/types-1.1.23-pca5g3df.mjs +0 -1
  895. package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +0 -4
  896. package/dist/chunks/update-1.1.23-3xmkkhns.mjs +0 -72
  897. package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +0 -1
  898. package/dist/chunks/upload-1.1.23-cx2aj445.mjs +0 -7
  899. package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +0 -14
  900. package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +0 -1
  901. package/dist/chunks/usage-1.1.23-bndk03g2.mjs +0 -1
  902. package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +0 -1
  903. package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +0 -1
  904. package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +0 -1
  905. package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +0 -13
  906. package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +0 -1
  907. package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +0 -132
  908. package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +0 -1
  909. package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +0 -1
  910. package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +0 -1
  911. package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +0 -7
  912. /package/dist/chunks/{cli-1.1.23-qgdfjtj2.mjs → cli-1.1.25-cpt1h3j8.mjs} +0 -0
@@ -1,18 +0,0 @@
1
- import{Se as kZ,Ye as XX}from"./cli-1.1.23-e7vvcy9q.mjs";import{af as YZ,bf as SQ}from"./cli-1.1.23-08g4ya29.mjs";import{$n as EX,AB as ZX,AF as vX,AG as SX,Bk as d0,Bt as yX,Ck as mJ,DG as g0,EG as QX,El as GQ,Ew as HQ,Ey as KZ,Fk as cZ,Fy as iQ,Gk as tQ,Gl as MX,Hs as aZ,IE as RQ,JE as hX,Ks as RX,Kw as bX,Lk as r0,Ls as TJ,MI as mZ,Mn as PJ,Ms as fQ,Nk as VZ,Nn as DQ,Ok as LJ,PI as kJ,Pq as MZ,QI as JZ,RI as OJ,SB as IX,SI as NJ,Sq as lQ,TA as R0,TB as DX,TI as ZZ,Ts as L0,UA as i0,UI as QZ,VI as XZ,Vx as NQ,Wx as AX,XI as m0,YI as _0,ZI as UJ,_K as $0,_n as VQ,ao as l,ay as zJ,bL as RZ,bo as A0,bt as hQ,by as FQ,ct as qJ,dt as CX,dy as BX,dz as HZ,eo as Z0,ez as rQ,fS as lZ,fo as B0,hz as a0,ik as WZ,io as n,it as c0,iz as yZ,jo as I0,kS as iZ,mt as vQ,oI as NZ,pI as FZ,qI as s0,qS as fZ,sI as MJ,xF as PQ,xG as OQ,yt as WQ,zB as pZ}from"./cli-1.1.23-hynrf6x1.mjs";import{AY as nZ,OY as G0,PY as S0,zY as QJ}from"./cli-1.1.23-ah6fas1q.mjs";import{C1 as wZ,PZ as F0,T1 as q0,YZ as l0,m1 as y,o1 as W,s1 as JJ}from"./cli-1.1.23-7081am2r.mjs";import{E3 as vJ,L3 as KX}from"./cli-1.1.23-g6b9c447.mjs";import{o4 as o,p4 as q,q4 as N,r4 as $}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as o0}from"./cli-1.1.23-534g4n3n.mjs";import{F4 as pJ,P4 as MQ}from"./cli-1.1.23-vns1fwxz.mjs";import{R4 as DJ,S4 as JX}from"./cli-1.1.23-4tcfdexs.mjs";import{W7 as HJ,X7 as wQ,e5 as tJ,f5 as IQ}from"./cli-1.1.23-9qe28y65.mjs";import{Bda as Q0,Caa as qQ,Daa as M0,Faa as yJ,J_ as t0,Jda as IJ,K_ as TZ,gha as eJ,kca as z0,lca as w0,lda as uZ,mda as dZ,oda as eQ,oha as BQ,rca as p0}from"./cli-1.1.23-keftnbc6.mjs";import{Bha as oZ,Dha as e0,Eha as x0,Lha as v0,wha as K0,zha as b0}from"./cli-1.1.23-2cqrzcwp.mjs";import{mia as sJ,yia as AQ}from"./cli-1.1.23-e3g5ahaf.mjs";import{jka as t,mka as _J}from"./cli-1.1.23-j9tza8qb.mjs";import{ala as $Z,cla as FX,mla as D0,pla as cJ}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as h0,Tla as aJ}from"./cli-1.1.23-6vn61k3h.mjs";import{Bta as J0,Cta as RJ,Eta as $J,Fta as a}from"./cli-1.1.23-bdj1ne1r.mjs";function u0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function GJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:TJ(Q.status)?Date.now()+LQ:void 0}}function VJ(Q,J){t("",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,V=z!==void 0&&z!==Q&&u0(Y)&&Y.retain,G=u0(X)&&(!X.retain||X.evictAfter!==void 0),F=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!G&&!F&&!V)return Z;let R=Z.tasks;if(V||G){if(R={...Z.tasks},V)R[z]=GJ(Y);if(G)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function WJ(Q){t("",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!u0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:GJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!u0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...GJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var LQ=30000;var uJ=a(()=>{_J();fQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===d0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let V=CQ(Y.content);Z=V!==null?{kind:"teleport",plan:V}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:yQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,V=null,G=0,F="running";while(Date.now()<z){if(X?.())throw new N0("poll stopped by caller","stopped",Y.rejectCount);let R,O;try{let f=await kJ(Q,V);R=f.newEvents,V=f.lastEventId,O=f.sessionStatus,G=0}catch(f){if(!pJ(f)||++G>=KQ)throw new N0(f instanceof Error?f.message:String(f),"network_or_unknown",Y.rejectCount,{cause:f});await HJ(dJ);continue}let P;try{P=Y.ingest(R)}catch(f){throw new N0(f instanceof Error?f.message:String(f),"extract_marker_missing",Y.rejectCount)}if(P.kind==="approved")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(P.kind==="teleport")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(P.kind==="terminated")throw new N0(`remote session ended (${P.subtype}) before plan approval`,"terminated",Y.rejectCount);let U=(O==="idle"||O==="requires_action")&&R.length===0,w=Y.hasPendingPlan?"plan_ready":U?"needs_input":"running";if(w!==F)D0(`[ultraplan] phase ${F} → ${w}`),F=w,Z?.(w);await HJ(dJ)}throw new N0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function CQ(Q){let J=lJ(Q),Z=`${EQ}
2
- `,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function yQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
3
- `,`## Approved Plan:
4
- `];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var dJ=3000,KQ=5,N0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{mJ();cJ();wQ();MQ();NJ();N0=class N0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
5
- `;var nJ=()=>{};function gQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function uQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(TQ),Q)Z.push("",Q);return Z.join(`
6
- `)}function dQ(Q,J,Z,X,z){let Y=Date.now(),V=!1;(async()=>{try{let{plan:G,rejectCount:F,executionTarget:R}=await rJ(J,jQ,(O)=>{if(O==="needs_input")t("",{});c0(Q,z,(P)=>{if(P.status!=="running")return P;let U=O==="running"?void 0:O;return P.ultraplanPhase===U?P:{...P,ultraplanPhase:U}})},()=>X().tasks?.[Q]?.status!=="running");if(t("",{duration_ms:Date.now()-Y,plan_length:G.length,reject_count:F,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;c0(Q,z,(P)=>P.status!=="running"?P:{...P,status:"completed",endTime:Date.now()}),z((P)=>P.ultraplanSessionUrl===Z?{...P,ultraplanSessionUrl:void 0}:P),L0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
7
- `),mode:"task-notification"})}else z((O)=>{let P=O.tasks?.[Q];if(!P||P.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:G,sessionId:J,taskId:Q}}})}catch(G){if(X().tasks?.[Q]?.status!=="running")return;V=!0,t("",{duration_ms:Date.now()-Y,reason:G instanceof N0?G.reason:"network_or_unknown",reject_count:G instanceof N0?G.rejectCount:void 0}),L0({value:`Ultraplan failed: ${h0(G)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((R)=>D0(`ultraplan archive failed: ${String(R)}`)),z((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(V)c0(Q,z,(G)=>G.status!=="running"?G:{...G,status:"failed",endTime:Date.now()})}})()}function cQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function pQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
11
- You can continue working — when the ${z0} fills, press ↓ to view results`}function qZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function fJ(Q,J,Z){await m0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=PJ(J,process.env.SESSION_INGRESS_URL);L0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),L0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function mQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:V,onSessionReady:G}=Q,{ultraplanSessionUrl:F,ultraplanLaunching:R}=X();if(F||R)return t("",{reason:F?"already_polling":"already_launching"}),qZ(F);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
14
- `);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}),cQ(V)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:V}=Q,G;try{let F=gQ(),R=await ZZ();if(!R.eligible){t("",{reason:"precondition",precondition_errors:R.errors.map((C)=>C.type).join(",")});let L=R.errors.map(QZ).join(`
15
- `);L0({value:`ultraplan: cannot launch remote session —
16
- ${L}`,mode:"task-notification"});return}let O=uQ(J,Z),P,U=await JZ({initialMessage:O,description:J||"Refine local plan",model:F,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(L)=>{P=L}});if(!U){t("",{reason:P?"bundle_fail":"teleport_null"}),L0({value:`ultraplan: session creation failed${P?` — ${P}`:""}. See --debug for details.`,mode:"task-notification"});return}G=U.id;let w=PJ(U.id,process.env.SESSION_INGRESS_URL);z((L)=>({...L,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),V?.(pQ(w)),t("",{has_seed_plan:Boolean(Z),model:F});let{taskId:f}=XZ({remoteTaskType:"ultraplan",session:{id:U.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});dQ(f,U.id,w,X,z)}catch(F){if(eJ(F),t("",{reason:"unexpected_error"}),L0({value:`ultraplan: unexpected error — ${h0(F)}`,mode:"task-notification"}),G)OJ(G).catch((R)=>D0("ultraplan: failed to archive orphaned session",R)),z((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{z((F)=>F.ultraplanLaunching?{...F,ultraplanLaunching:void 0}:F)}}var jQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",FJ,_Q,TQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let V=await mQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(V,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("",{reason:z?"already_polling":"already_launching"}),Q(qZ(z),{display:"system"}),null;return J.setAppState((V)=>({...V,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},NY;var GZ=a(()=>{SQ();p0();DQ();AQ();_J();UJ();cJ();aJ();BQ();hQ();IQ();vQ();NJ();iJ();FJ=(nJ(),RJ(oJ)),_Q=(typeof FJ==="string"?FJ:FJ.default).trimEnd(),TQ=_Q;NY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=VZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},V=X.userFacingName(Y);if(!V)return Q.toolName;let G=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(G)return N(W,{children:[V,"(",G,")"]});return V}catch{return Q.toolName}}var wJ=a(()=>{q0();LJ();$()});function OZ(Q){let J=PZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[V]=l0(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=$0(r0()),J[0]=G;else G=J[0];let F=G,R=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];G0(O,P);let U;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)U=(S)=>{if(S.key===" ")S.preventDefault(),X();else if(S.key==="left"&&Y)S.preventDefault(),Y();else if(S.key==="x"&&Z.status==="running"&&z)S.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=U;else U=J[8];let w=U,f;if(J[9]!==Z.prompt)f=WZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=f;else f=J[10];let L=f,C=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,h=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==h||J[12]!==D)I=N(W,{children:[h," ›"," ",D]}),J[11]=h,J[12]=D,J[13]=I;else I=J[13];let K=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&N(W,{color:FZ(Z.status),children:[NZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let p;if(J[16]!==E)p=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=p;else p=J[17];let d;if(J[18]!==A)d=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=d;else d=J[19];let j;if(J[20]!==R||J[21]!==p||J[22]!==d)j=N(W,{dimColor:!0,children:[R,p,d]}),J[20]=R,J[21]=p,J[22]=d,J[23]=j;else j=J[23];let x;if(J[24]!==j||J[25]!==B)x=N(W,{children:[B,j]}),J[24]=j,J[25]=B,J[26]=x;else x=J[26];let c=x,v;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)v=(S)=>S.pending?N(W,{children:["Press ",S.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=v;else v=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==V)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((S,k)=>N(W,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(S,F,V)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=V,J[34]=b;else b=J[34];let m;if(J[35]!==C||J[36]!==L)m=L?q(y,{marginTop:1,children:q(HZ,{addMargin:!1,planContent:L})}):N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,dimColor:!0,children:"Prompt"}),q(W,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=L,J[37]=m;else m=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=T;else T=J[40];let _;if(J[41]!==b||J[42]!==m||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,m,T]}),J[41]=b,J[42]=m,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==X||J[46]!==c||J[47]!==v||J[48]!==_||J[49]!==K)g=q(n,{title:K,subtitle:c,onCancel:X,color:"background",inputGuide:v,children:_}),J[45]=X,J[46]=c,J[47]=v,J[48]=_,J[49]=K,J[50]=g;else g=J[50];let u;if(J[51]!==w||J[52]!==g)u=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:g}),J[51]=w,J[52]=g,J[53]=u;else u=J[53];return u}var PZ;var UZ=a(()=>{i0();q0();S0();LJ();RZ();v0();fZ();B0();I0();A0();rQ();wJ();MJ();$();PZ=J0(F0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function KJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let V;if(J[2]!==z||J[3]!==Y)V=q(o,{children:Y.map((G,F)=>q(W,{color:MZ(F+z),children:G},F))}),J[2]=z,J[3]=Y,J[4]=V;else V=J[4];return V}function EJ(Q,J,Z){let X=CJ.useRef(Q),z=CJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=KZ().prefersReducedMotion??!1,Y=Z.reviewProgress,V=Z.status==="running",[,G]=wZ(V&&!z?LZ:null),F=Y?.bugsFound??0,R=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,P=z||!V,U=EJ(F,G,P),w=EJ(R,G,P),f=EJ(O,G,P),L=Math.floor(G/(LZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),q(W,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),N(W,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let C;if(J[2]!==U||J[3]!==Y||J[4]!==f||J[5]!==w)C=!Y?"setting up":bJ(Y.stage,U,w,f),J[2]=U,J[3]=Y,J[4]=f,J[5]=w,J[6]=C;else C=J[6];let E=C,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=N(W,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let h=V?L:0,D;if(J[8]!==h)D=q(KJ,{text:"ultrareview",phase:h}),J[8]=h,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=N(W,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let K;if(J[12]!==D||J[13]!==I)K=N(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=K;else K=J[14];return K}function j0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let G;if(J[0]!==Z)G=q($Q,{session:Z}),J[0]=Z,J[1]=G;else G=J[1];return G}if(Z.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Z.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Z.todoList.length){let G;if(J[4]!==Z.status)G=N(W,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=G;else G=J[5];return G}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,V;if(J[8]!==z||J[9]!==Y)V=N(W,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=V;else V=J[10];return V}function oQ(Q){return Q.status==="completed"}var n0,CJ,LZ=80;var AJ=a(()=>{p0();iQ();q0();yJ();lQ();$();n0=J0(F0(),1),CJ=J0(o0(),1)});function P0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,V=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,G;if(J[0]!==V||J[1]!==Y||J[2]!==z)G=N(W,{color:V,dimColor:!0,children:["(",Y,z,")"]}),J[0]=V,J[1]=Y,J[2]=z,J[3]=G;else G=J[3];return G}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var CZ=a(()=>{q0();$();BJ=J0(F0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,V;if(J[0]!==z||J[1]!==Y)V=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=V;else V=J[2];let G;if(J[3]!==Z)G=q(EZ,{shell:Z}),J[3]=Z,J[4]=G;else G=J[4];let F;if(J[5]!==V||J[6]!==G)F=N(W,{children:[V," ",G]}),J[5]=V,J[6]=G,J[7]=F;else F=J[7];return F}case"remote_agent":{if(Z.isRemoteReview){let U;if(J[8]!==Z)U=q(W,{children:q(j0,{session:Z})}),J[8]=Z,J[9]=U;else U=J[9];return U}let V=Z.status==="running"||Z.status==="pending"?z0:w0,G;if(J[10]!==V)G=N(W,{dimColor:!0,children:[V," "]}),J[10]=V,J[11]=G;else G=J[11];let F;if(J[12]!==z||J[13]!==Z.title)F=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=F;else F=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" · "}),J[15]=R;else R=J[15];let O;if(J[16]!==Z)O=q(j0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let P;if(J[18]!==G||J[19]!==F||J[20]!==O)P=N(W,{children:[G,F,R,O]}),J[18]=G,J[19]=F,J[20]=O,J[21]=P;else P=J[21];return P}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[25]!==V||J[26]!==G||J[27]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[25]=V,J[26]=G,J[27]=Z.status,J[28]=F;else F=J[28];let R;if(J[29]!==Y||J[30]!==F)R=N(W,{children:[Y," ",F]}),J[29]=Y,J[30]=F,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let Y,V,G,F,R,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);V=W;let f;if(J[40]!==Z.identity.color)f=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Z.identity.agentName)O=N(W,{color:f,children:["@",Z.identity.agentName]}),J[42]=f,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=W,G=!0,F=": ",R=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=V,J[36]=G,J[37]=F,J[38]=R,J[39]=O}else Y=J[34],V=J[35],G=J[36],F=J[37],R=J[38],O=J[39];let P;if(J[45]!==Y||J[46]!==G||J[47]!==F||J[48]!==R)P=N(Y,{dimColor:G,children:[F,R]}),J[45]=Y,J[46]=G,J[47]=F,J[48]=R,J[49]=P;else P=J[49];let U;if(J[50]!==V||J[51]!==O||J[52]!==P)U=N(V,{children:[O,P]}),J[50]=V,J[51]=O,J[52]=P,J[53]=U;else U=J[53];return U}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,V;if(J[54]!==z||J[55]!==Y)V=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=V;else V=J[56];let G;if(J[57]!==Z.agentCount||J[58]!==Z.status)G=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=G;else G=J[59];let F=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==G||J[61]!==F||J[62]!==Z.status)R=q(P0,{status:Z.status,label:G,suffix:F}),J[60]=G,J[61]=F,J[62]=Z.status,J[63]=R;else R=J[63];let O;if(J[64]!==V||J[65]!==R)O=N(W,{children:[V," ",R]}),J[64]=V,J[65]=R,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[70]!==V||J[71]!==G||J[72]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[70]=V,J[71]=G,J[72]=Z.status,J[73]=F;else F=J[73];let R;if(J[74]!==Y||J[75]!==F)R=N(W,{children:[Y," ",F]}),J[74]=Y,J[75]=F,J[76]=R;else R=J[76];return R}case"dream":{let Y=Z.filesTouched.length,V;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)V=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=V;else V=J[80];let G=V,F;if(J[81]!==G||J[82]!==Z.phase)F=N(W,{dimColor:!0,children:["· ",Z.phase," · ",G]}),J[81]=G,J[82]=Z.phase,J[83]=F;else F=J[83];let R=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,P;if(J[84]!==R||J[85]!==O||J[86]!==Z.status)P=q(P0,{status:Z.status,label:R,suffix:O}),J[84]=R,J[85]=O,J[86]=Z.status,J[87]=P;else P=J[87];let U;if(J[88]!==F||J[89]!==P||J[90]!==Z.description)U=N(W,{children:[Z.description," ",F," ",P]}),J[88]=F,J[89]=P,J[90]=Z.description,J[91]=U;else U=J[91];return U}}}var bZ;var BZ=a(()=>{q0();v0();yZ();IJ();p0();AJ();CZ();MJ();$();bZ=J0(F0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,V=R0(Z.startTime,Z.status==="running",1000,0),G;if(J[0]!==X)G={"confirm:yes":X},J[0]=X,J[1]=G;else G=J[1];let F;if(J[2]===Symbol.for("react.memo_cache_sentinel"))F={context:"Confirmation"},J[2]=F;else F=J[2];G0(G,F);let R;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)R=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=R;else R=J[7];let O=R,P,U,w,f,L,C,E,A,h,D,I,K,B,p,d,j;if(J[8]!==V||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),m=b.slice(-nQ),T=b.length-m.length;w=y,E="column",A=0,h=!0,D=O,U=n,d="Memory consolidation";let _=Z.sessionsReviewing,g;if(J[33]!==Z.sessionsReviewing)g=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=g;else g=J[34];let u;if(J[35]!==Z.filesTouched.length)u=Z.filesTouched.length>0&&N(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=u;else u=J[36];if(J[37]!==V||J[38]!==g||J[39]!==u||J[40]!==Z.sessionsReviewing)j=N(W,{dimColor:!0,children:[V," · reviewing ",_," ",g,u]}),J[37]=V,J[38]=g,J[39]=u,J[40]=Z.sessionsReviewing,J[41]=j;else j=J[41];if(f=X,L="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)C=(k)=>k.pending?N(W,{children:["Press ",k.keyName," again to exit"]}):N(Z0,{children:[z&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&q(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=C;else C=J[45];P=y,I="column",K=1;let S;if(J[46]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{bold:!0,children:"Status:"}),J[46]=S;else S=J[46];if(J[47]!==Z.status)B=N(W,{children:[S," ",Z.status==="running"?q(W,{color:"background",children:"running"}):Z.status==="completed"?q(W,{color:"success",children:Z.status}):q(W,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];p=m.length===0?q(W,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):N(o,{children:[T>0&&N(W,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),m.map(aQ)]}),J[8]=V,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=P,J[18]=U,J[19]=w,J[20]=f,J[21]=L,J[22]=C,J[23]=E,J[24]=A,J[25]=h,J[26]=D,J[27]=I,J[28]=K,J[29]=B,J[30]=p,J[31]=d,J[32]=j}else P=J[17],U=J[18],w=J[19],f=J[20],L=J[21],C=J[22],E=J[23],A=J[24],h=J[25],D=J[26],I=J[27],K=J[28],B=J[29],p=J[30],d=J[31],j=J[32];let x;if(J[49]!==P||J[50]!==I||J[51]!==K||J[52]!==B||J[53]!==p)x=N(P,{flexDirection:I,gap:K,children:[B,p]}),J[49]=P,J[50]=I,J[51]=K,J[52]=B,J[53]=p,J[54]=x;else x=J[54];let c;if(J[55]!==U||J[56]!==f||J[57]!==L||J[58]!==C||J[59]!==x||J[60]!==d||J[61]!==j)c=q(U,{title:d,subtitle:j,onCancel:f,color:L,inputGuide:C,children:x}),J[55]=U,J[56]=f,J[57]=L,J[58]=C,J[59]=x,J[60]=d,J[61]=j,J[62]=c;else c=J[62];let v;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==h||J[67]!==D||J[68]!==c)v=q(w,{flexDirection:E,tabIndex:A,autoFocus:h,onKeyDown:D,children:c}),J[63]=w,J[64]=E,J[65]=A,J[66]=h,J[67]=D,J[68]=c,J[69]=v;else v=J[69];return v}function aQ(Q,J){return N(y,{flexDirection:"column",children:[q(W,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&N(W,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var hZ=a(()=>{i0();q0();S0();IJ();B0();I0();A0();$();IZ=J0(F0(),1)});function SZ(Q){let J=vZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:V}=Q,[G]=l0(),F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=$0(r0()),J[0]=F;else F=J[0];let R=F,O=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),P;if(J[1]!==X)P={"confirm:yes":X},J[1]=X,J[2]=P;else P=J[2];let U;if(J[3]===Symbol.for("react.memo_cache_sentinel"))U={context:"Confirmation"},J[3]=U;else U=J[3];G0(P,U);let w;if(J[4]!==Y||J[5]!==X||J[6]!==V||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&V)M.preventDefault(),V()},J[4]=Y,J[5]=X,J[6]=V,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let f=w,L;if(J[10]!==Z)L=s0(Z),J[10]=Z,J[11]=L;else L=J[11];let C=L,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,h;if(J[12]!==Z.prompt)h=K0(Z.prompt,300),J[12]=Z.prompt,J[13]=h;else h=J[13];let D=h,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let K;if(J[16]!==I||J[17]!==Z.identity.agentName)K=N(W,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=K;else K=J[18];let B;if(J[19]!==C)B=C&&N(W,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=B;else B=J[20];let p;if(J[21]!==K||J[22]!==B)p=N(W,{children:[K,B]}),J[21]=K,J[22]=B,J[23]=p;else p=J[23];let d=p,j;if(J[24]!==Z.status)j=Z.status!=="running"&&N(W,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=j;else j=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let c;if(J[28]!==A)c=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=c;else c=J[29];let v;if(J[30]!==O||J[31]!==x||J[32]!==c)v=N(W,{dimColor:!0,children:[O,x,c]}),J[30]=O,J[31]=x,J[32]=c,J[33]=v;else v=J[33];let b;if(J[34]!==j||J[35]!==v)b=N(W,{children:[j,v]}),J[34]=j,J[35]=v,J[36]=b;else b=J[36];let m=b,T;if(J[37]!==Y||J[38]!==V||J[39]!==z||J[40]!==Z.status)T=(M)=>M.pending?N(W,{children:["Press ",M.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&V&&q(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=V,J[39]=z,J[40]=Z.status,J[41]=T;else T=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==G)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>N(W,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,R,G)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=G,J[45]=_;else _=J[45];let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=q(W,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=g;else g=J[46];let u;if(J[47]!==D)u=N(y,{flexDirection:"column",marginTop:1,children:[g,q(W,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=u;else u=J[48];let S;if(J[49]!==Z.error||J[50]!==Z.status)S=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=S;else S=J[51];let k;if(J[52]!==X||J[53]!==m||J[54]!==T||J[55]!==_||J[56]!==u||J[57]!==S||J[58]!==d)k=N(n,{title:d,subtitle:m,onCancel:X,color:"background",inputGuide:T,children:[_,u,S]}),J[52]=X,J[53]=m,J[54]=T,J[55]=_,J[56]=u,J[57]=S,J[58]=d,J[59]=k;else k=J[59];let H;if(J[60]!==f||J[61]!==k)H=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:k}),J[60]=f,J[61]=k,J[62]=H;else H=J[62];return H}var vZ;var jZ=a(()=>{i0();q0();S0();LJ();RZ();v0();yZ();B0();I0();A0();wJ();MJ();$();vZ=J0(F0(),1)});function YX(Q,J){if(Q===d0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===cZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${K0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${K0(X,60)}`}return Q}function GX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="running"||Z.status==="pending",G=Z.ultraplanPhase,F=V?G?zX[G]:"running":Z.status,R=R0(Z.startTime,V,1000,0,Z.endTime),O=0,P=0,U=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(P++,U=e,e.name===uZ||e.name===dZ)O++}}let w=1+O,f;if(J[0]!==U)f=U?YX(U.name,U.input):null,J[0]=U,J[1]=f;else f=J[1];let L;if(J[2]!==P||J[3]!==w||J[4]!==f)L={agentsWorking:w,toolCalls:P,lastToolCall:f},J[2]=P,J[3]=w,J[4]=f,J[5]=L;else L=J[5];let{agentsWorking:C,toolCalls:E,lastToolCall:A}=L,h;if(J[6]!==Z.sessionId)h=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=h;else h=J[7];let D=h,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let K=I,[B,p]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>p(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=q(W,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let y0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))y0={label:"Terminate session",value:"stop"},J[13]=y0;else y0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[y0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let f0;if(J[15]!==K||J[16]!==Y)f0=q(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[e,q(g0,{options:i,onChange:(T0)=>{if(T0==="stop")Y?.(),K();else p(!1)}})]})}),J[15]=K,J[16]=Y,J[17]=f0;else f0=J[17];return f0}let d=G==="plan_ready"?w0:z0,j;if(J[18]!==d)j=N(W,{color:"background",children:[d," "]}),J[18]=d,J[19]=j;else j=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=q(W,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let c;if(J[21]!==R||J[22]!==F)c=N(W,{dimColor:!0,children:[" · ",R," · ",F]}),J[21]=R,J[22]=F,J[23]=c;else c=J[23];let v;if(J[24]!==j||J[25]!==c)v=N(W,{children:[j,x,c]}),J[24]=j,J[25]=c,J[26]=v;else v=J[26];let b;if(J[27]!==G)b=G==="plan_ready"&&N(W,{color:"success",children:[t0.tick," "]}),J[27]=G,J[28]=b;else b=J[28];let m;if(J[29]!==C)m=Q0(C,"agent"),J[29]=C,J[30]=m;else m=J[30];let T=G?qX[G]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let g;if(J[33]!==C||J[34]!==b||J[35]!==m||J[36]!==T||J[37]!==_||J[38]!==E)g=N(W,{children:[b,C," ",m," ",T," · ",E," tool"," ",_]}),J[33]=C,J[34]=b,J[35]=m,J[36]=T,J[37]=_,J[38]=E,J[39]=g;else g=J[39];let u;if(J[40]!==A)u=A&&q(W,{dimColor:!0,children:A}),J[40]=A,J[41]=u;else u=J[41];let S;if(J[42]!==D)S=q(W,{dimColor:!0,children:D}),J[42]=D,J[43]=S;else S=J[43];let k;if(J[44]!==D||J[45]!==S)k=q(JJ,{url:D,children:S}),J[44]=D,J[45]=S,J[46]=k;else k=J[46];let H;if(J[47]===Symbol.for("react.memo_cache_sentinel"))H={label:"Review in Claude Code on the web",value:"open"},J[47]=H;else H=J[47];let M;if(J[48]!==Y||J[49]!==V)M=Y&&V?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=V,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[H,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==K||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{p(!0);return}case"back":{K();return}}},J[54]=K,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let W0;if(J[58]!==s||J[59]!==Y0)W0=q(g0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=W0;else W0=J[60];let H0;if(J[61]!==g||J[62]!==u||J[63]!==k||J[64]!==W0)H0=N(y,{flexDirection:"column",gap:1,children:[g,u,k,W0]}),J[61]=g,J[62]=u,J[63]=k,J[64]=W0,J[65]=H0;else H0=J[65];let C0;if(J[66]!==K||J[67]!==v||J[68]!==H0)C0=q(n,{title:v,onCancel:K,color:"background",children:H0}),J[66]=K,J[67]=v,J[68]=H0,J[69]=C0;else C0=J[69];return C0}function VX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?gZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let V=Y,G=!X&&!z,F;if(J[2]!==G)F=G?q(W,{color:"background",children:"Setup"}):q(W,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=F;else F=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" → "}),J[4]=R;else R=J[4];let O;if(J[5]!==X||J[6]!==V||J[7]!==G)O=gZ.map((w,f)=>{let L=!X&&!G&&f===V;return N(O0.default.Fragment,{children:[f>0&&q(W,{dimColor:!0,children:" → "}),L?q(W,{color:"background",children:_Z[w]}):q(W,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=V,J[7]=G,J[8]=O;else O=J[8];let P;if(J[9]!==X)P=X&&q(W,{color:"success",children:" ✓"}),J[9]=X,J[10]=P;else P=J[10];let U;if(J[11]!==F||J[12]!==O||J[13]!==P)U=N(W,{children:[F,R,O,P]}),J[11]=F,J[12]=O,J[13]=P,J[14]=U;else U=J[14];return U}function WX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function HX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="completed",G=Z.status==="running"||Z.status==="pending",[F,R]=O0.useState(!1),O=R0(Z.startTime,G,1000,0,Z.endTime),P;if(J[0]!==X)P=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=P;else P=J[1];let U=P,w=z??U,f;if(J[2]!==Z.sessionId)f=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=f;else f=J[3];let L=f,C=V?"ready":G?"running":Z.status;if(F){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>R(!1),J[4]=k;else k=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=q(W,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=H;else H=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=q(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[H,q(g0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else R(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==V||J[12]!==Y||J[13]!==G)E=V?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=V,J[12]=Y,J[13]=G,J[14]=E;else E=J[14];let A=E,h;if(J[15]!==w||J[16]!==U||J[17]!==X||J[18]!==L)h=(k)=>{J:switch(k){case"open":{DJ(L),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":U()}},J[15]=w,J[16]=U,J[17]=X,J[18]=L,J[19]=h;else h=J[19];let D=h,I=V?w0:z0,K;if(J[20]!==I)K=N(W,{color:"background",children:[I," "]}),J[20]=I,J[21]=K;else K=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=q(W,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let p;if(J[23]!==O||J[24]!==C)p=N(W,{dimColor:!0,children:[" · ",O," · ",C]}),J[23]=O,J[24]=C,J[25]=p;else p=J[25];let d;if(J[26]!==K||J[27]!==p)d=N(W,{children:[K,B,p]}),J[26]=K,J[27]=p,J[28]=d;else d=J[28];let j=Z.reviewProgress?.stage,x=!!Z.reviewProgress,c;if(J[29]!==V||J[30]!==j||J[31]!==x)c=q(VX,{stage:j,completed:V,hasProgress:x}),J[29]=V,J[30]=j,J[31]=x,J[32]=c;else c=J[32];let v;if(J[33]!==Z)v=WX(Z),J[33]=Z,J[34]=v;else v=J[34];let b;if(J[35]!==v)b=q(W,{children:v}),J[35]=v,J[36]=b;else b=J[36];let m;if(J[37]!==L)m=q(W,{dimColor:!0,children:L}),J[37]=L,J[38]=m;else m=J[38];let T;if(J[39]!==L||J[40]!==m)T=q(JJ,{url:L,children:m}),J[39]=L,J[40]=m,J[41]=T;else T=J[41];let _;if(J[42]!==b||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,T]}),J[42]=b,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==D||J[46]!==A)g=q(g0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=g;else g=J[47];let u;if(J[48]!==c||J[49]!==_||J[50]!==g)u=N(y,{flexDirection:"column",gap:1,children:[c,_,g]}),J[48]=c,J[49]=_,J[50]=g,J[51]=u;else u=J[51];let S;if(J[52]!==w||J[53]!==u||J[54]!==d)S=q(n,{title:d,onCancel:w,color:"background",inputGuide:NX,children:u}),J[52]=w,J[53]=u,J[54]=d,J[55]=S;else S=J[55];return S}function NX(Q){return Q.pending?N(W,{children:["Press ",Q.keyName," again to exit"]}):N(Z0,{children:[q(l,{shortcut:"Enter",action:"select"}),q(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,V]=O0.useState(!1),[G,F]=O0.useState(null),R=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((L)=>L.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return q(GX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return q(HX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),P=(L)=>{if(L.key===" ")L.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(L.key==="left"&&X)L.preventDefault(),X();else if(L.key==="t"&&!Y)L.preventDefault(),U();else if(L.key==="return")L.preventDefault(),O()};async function U(){V(!0),F(null);try{await mZ(Q.sessionId)}catch(L){F(h0(L))}finally{V(!1)}}let w=K0(Q.title,50),f=Q.status==="pending"?"starting":Q.status;return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:N(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(L)=>L.pending?N(W,{children:["Press ",L.keyName," again to exit"]}):N(Z0,{children:[X&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&q(l,{shortcut:"t",action:"teleport"})]}),children:[N(y,{flexDirection:"column",children:[N(W,{children:[q(W,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?q(W,{color:"background",children:f}):f==="completed"?q(W,{color:"success",children:f}):q(W,{color:"error",children:f})]}),N(W,{children:[q(W,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),N(W,{wrap:"truncate-end",children:[q(W,{bold:!0,children:"Title"}),": ",w]}),N(W,{children:[q(W,{bold:!0,children:"Progress"}),":"," ",q(j0,{session:Q})]}),N(W,{children:[q(W,{bold:!0,children:"Session URL"}),":"," ",q(JJ,{url:_0(Q.sessionId),children:q(W,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&N(y,{flexDirection:"column",marginTop:1,children:[N(W,{children:[q(W,{bold:!0,children:"Recent messages"}),":"]}),q(y,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((L,C)=>q(pZ,{message:L,lookups:iZ,addMargin:C>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},C))}),q(y,{marginTop:1,children:N(W,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]})})]}),G&&q(y,{marginTop:1,children:N(W,{color:"error",children:["Teleport failed: ",G]})}),Y&&q(W,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,qX,gZ,_Z;var rZ=a(()=>{TZ();p0();i0();q0();UJ();eQ();tQ();mJ();JX();aJ();v0();XX();fZ();IJ();NJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(F0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},qX={needs_input:"waiting",plan_ready:"done"};gZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,PX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=hJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:V}=QJ(),G;if(J[0]!==Z)G=()=>sZ(Z),J[0]=Z,J[1]=G;else G=J[1];let[F,R]=V0.useState(G),O=V0.useDeferredValue(F),P;if(J[2]!==Z)P=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,R,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=P;else P=J[3];let U;if(J[4]!==Z.id||J[5]!==Z.status)U=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=U;else U=J[6];V0.useEffect(P,U);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let f=w,L;if(J[9]!==f)L={"confirm:yes":f},J[9]=f,J[10]=L;else L=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];G0(L,C);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,h=Z.kind==="monitor",D;if(J[17]!==Z.command)D=K0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,K=h?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?N(W,{children:["Press ",r.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=q(W,{bold:!0,children:"Status:"}),J[23]=p;else p=J[23];let d;if(J[24]!==Z.result||J[25]!==Z.status)d=N(W,{children:[p," ",Z.status==="running"?N(W,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?N(W,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):N(W,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=d;else d=J[26];let j;if(J[27]===Symbol.for("react.memo_cache_sentinel"))j=q(W,{bold:!0,children:"Runtime:"}),J[27]=j;else j=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let c=x-Z.startTime,v;if(J[30]!==c)v=e0(c),J[30]=c,J[31]=v;else v=J[31];let b;if(J[32]!==v)b=N(W,{children:[j," ",v]}),J[32]=v,J[33]=b;else b=J[33];let m=h?"Script:":"Command:",T;if(J[34]!==m)T=q(W,{bold:!0,children:m}),J[34]=m,J[35]=T;else T=J[35];let _;if(J[36]!==I||J[37]!==T)_=N(W,{wrap:"wrap",children:[T," ",I]}),J[36]=I,J[37]=T,J[38]=_;else _=J[38];let g;if(J[39]!==d||J[40]!==b||J[41]!==_)g=N(y,{flexDirection:"column",children:[d,b,_]}),J[39]=d,J[40]=b,J[41]=_,J[42]=g;else g=J[42];let u;if(J[43]===Symbol.for("react.memo_cache_sentinel"))u=q(W,{bold:!0,children:"Output:"}),J[43]=u;else u=J[43];let S;if(J[44]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{dimColor:!0,children:"Loading output…"}),J[44]=S;else S=J[44];let k;if(J[45]!==V||J[46]!==O)k=N(y,{flexDirection:"column",children:[u,q(V0.Suspense,{fallback:S,children:q(UX,{outputPromise:O,columns:V})})]}),J[45]=V,J[46]=O,J[47]=k;else k=J[47];let H;if(J[48]!==f||J[49]!==B||J[50]!==g||J[51]!==k||J[52]!==K)H=N(n,{title:K,onCancel:f,color:"background",inputGuide:B,children:[g,k]}),J[48]=f,J[49]=B,J[50]=g,J[51]=k,J[52]=K,J[53]=H;else H=J[53];let M;if(J[54]!==A||J[55]!==H)M=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:H}),J[54]=A,J[55]=H,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function UX(Q){let J=hJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=V0.use(Z);if(!z){let L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=q(W,{dimColor:!0,children:"No output available"}),J[0]=L;else L=J[0];return L}let V,G;if(J[1]!==Y||J[2]!==z){let L=[],C=z.length;for(let E=0;E<10&&C>0;E++){let A=z.lastIndexOf(`
17
- `,C-1);L.push(A+1),C=A}L.reverse(),V=Y>z.length,G=[];for(let E=0;E<L.length;E++){let A=L[E],h=E<L.length-1?L[E+1]-1:z.length,D=z.slice(A,h);if(D)G.push(D)}J[1]=Y,J[2]=z,J[3]=V,J[4]=G}else V=J[3],G=J[4];let F=X-6,R;if(J[5]!==G)R=G.map(fX),J[5]=G,J[6]=R;else R=J[6];let O;if(J[7]!==F||J[8]!==R)O=q(y,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:F,children:R}),J[7]=F,J[8]=R,J[9]=O;else O=J[9];let P=`Showing ${G.length} lines`,U;if(J[10]!==Y||J[11]!==V)U=V?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=V,J[12]=U;else U=J[12];let w;if(J[13]!==P||J[14]!==U)w=N(W,{dimColor:!0,italic:!0,children:[P,U]}),J[13]=P,J[14]=U,J[15]=w;else w=J[15];let f;if(J[16]!==O||J[17]!==w)f=N(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=f;else f=J[18];return f}function fX(Q,J){return q(W,{wrap:"truncate-end",children:Q},J)}var hJ,V0,PX=8192;var tZ=a(()=>{nZ();q0();S0();v0();FX();RX();B0();I0();A0();$();hJ=J0(F0(),1),V0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var LX=()=>null,wX;var ZQ=a(()=>{wX=LX});function gX(Q,J){return Object.values(Q??{}).filter(qJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function jq({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((H)=>H.tasks),z=zJ((H)=>H.foregroundedTaskId),Y=zJ((H)=>H.expandedView)==="teammates",V=FQ(),G=VQ("chat:killAgents","Chat","ctrl+x ctrl+k"),F=X,R=U0.useRef(!1),[O,P]=U0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let H=gX(F,z);if(H.length===1)return R.current=!0,{mode:"detail",itemId:H[0].id};return{mode:"list"}}),[U,w]=U0.useState(0);OQ("background-tasks-dialog");let{bashTasks:f,remoteSessions:L,agentTasks:C,teammateTasks:E,workflowTasks:A,mcpMonitors:h,dreamTasks:D,allSelectableItems:I}=U0.useMemo(()=>{let r=Object.values(F??{}).filter(qJ).map(_X).sort((i,f0)=>{let T0=i.status,gJ=f0.status;if(T0==="running"&&gJ!=="running")return-1;if(T0!=="running"&&gJ==="running")return 1;let UQ="task"in i?i.task.startTime:0;return("task"in f0?f0.task.startTime:0)-UQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),W0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),H0=r.filter((i)=>i.type==="local_workflow"),C0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),y0=e.length>0?[{id:"__leader__",type:"leader",label:`@${vJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:W0,workflowTasks:H0,mcpMonitors:C0,dreamTasks:X0,teammateTasks:[...y0,...e],allSelectableItems:[...y0,...e,...s,...C0,...Y0,...W0,...H0,...X0]}},[F,z,Y]),K=I[U]??null;G0({"confirm:previous":()=>w((H)=>Math.max(0,H-1)),"confirm:next":()=>w((H)=>Math.min(I.length-1,H+1)),"confirm:yes":()=>{let H=I[U];if(H)if(H.type==="leader")WJ(V),Q("Viewing leader",{display:"system"});else P({mode:"detail",itemId:H.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(H)=>{if(O.mode!=="list")return;if(H.key==="left"){H.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[U];if(!M)return;if(H.key==="x"){if(H.preventDefault(),M.type==="local_bash"&&M.status==="running")p(M.id);else if(M.type==="local_agent"&&M.status==="running")d(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")j(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,V);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,V);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)fJ(M.id,M.task.sessionId,V);else c(M.id)}if(H.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")H.preventDefault(),VJ(M.id,V),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")H.preventDefault(),WJ(V),Q("Viewing leader",{display:"system"})}};async function p(H){await WQ.kill(H,V)}async function d(H){await PQ.kill(H,V)}async function j(H){await HQ.kill(H,V)}async function x(H){await RQ.kill(H,V)}async function c(H){await m0.kill(H,V)}let v=NQ(Q);U0.useEffect(()=>{if(O.mode!=="list"){let M=(F??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!qJ(M))if(R.current)v("Background tasks dialog dismissed",{display:"system"});else P({mode:"list"})}let H=I.length;if(U>=H&&H>0)w(H-1)},[O,F,U,I,v]);let b=()=>{if(R.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,P({mode:"list"})};if(O.mode!=="list"&&F){let H=F[O.itemId];if(!H)return null;switch(H.type){case"local_bash":return q(eZ,{shell:H,onDone:Q,onKillShell:()=>void p(H.id),onBack:b},`shell-${H.id}`);case"local_agent":return q(OZ,{agent:H,onDone:Q,onKillAgent:()=>void d(H.id),onBack:b},`agent-${H.id}`);case"remote_agent":return q(xZ,{session:H,onDone:Q,toolUseContext:J,onBack:b,onKill:H.status!=="running"?void 0:H.isUltraplan?()=>void fJ(H.id,H.sessionId,V):()=>void c(H.id)},`session-${H.id}`);case"in_process_teammate":return q(SZ,{teammate:H,onDone:Q,onKill:H.status==="running"?()=>void j(H.id):void 0,onBack:b,onForeground:H.status==="running"?()=>{VJ(H.id,V),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${H.id}`);case"local_workflow":if(!QQ)return null;return q(QQ,{workflow:H,onDone:Q,onKill:H.status==="running"&&XJ?()=>XJ(H.id,V):void 0,onSkipAgent:H.status==="running"&&XQ?(M)=>XQ(H.id,M,V):void 0,onRetryAgent:H.status==="running"&&YQ?(M)=>YQ(H.id,M,V):void 0,onBack:b},`workflow-${H.id}`);case"monitor_mcp":if(!zQ)return null;return q(zQ,{task:H,onKill:H.status==="running"&&YJ?()=>YJ(H.id,V):void 0,onBack:b},`monitor-mcp-${H.id}`);case"dream":return q(DZ,{task:H,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:H.status==="running"?()=>void x(H.id):void 0},`dream-${H.id}`)}}let m=M0(f,(H)=>H.status==="running"),T=M0(L,(H)=>H.status==="running"||H.status==="pending")+M0(C,(H)=>H.status==="running"),_=M0(E,(H)=>H.status==="running"),g=qQ([..._>0?[N(W,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...m>0?[N(W,{children:[m," ",m!==1?"active shells":"active shell"]},"shells")]:[],...T>0?[N(W,{children:[T," ",T!==1?"active agents":"active agent"]},"agents")]:[]],(H)=>q(W,{children:" · "},`separator-${H}`)),u=[q(l,{shortcut:"↑/↓",action:"select"},"upDown"),q(l,{shortcut:"Enter",action:"view"},"enter"),...K?.type==="in_process_teammate"&&K.status==="running"?[q(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(K?.type==="local_bash"||K?.type==="local_agent"||K?.type==="in_process_teammate"||K?.type==="local_workflow"||K?.type==="monitor_mcp"||K?.type==="dream"||K?.type==="remote_agent")&&K.status==="running"?[q(l,{shortcut:"x",action:"stop"},"kill")]:[],...C.some((H)=>H.status==="running")?[q(l,{shortcut:G,action:"stop all agents"},"kill-all")]:[],q(l,{shortcut:"←/Esc",action:"close"},"esc")],S=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(H){if(H.pending)return N(W,{children:["Press ",H.keyName," again to exit"]});return q(Z0,{children:u})}return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:q(n,{title:"Background tasks",subtitle:q(o,{children:g}),onCancel:S,color:"background",inputGuide:k,children:I.length===0?q(W,{dimColor:!0,children:"No tasks currently running"}):N(y,{flexDirection:"column",children:[E.length>0&&N(y,{flexDirection:"column",children:[(f.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Agents"]})," (",M0(E,(H)=>H.type!=="leader"),")"]}),q(y,{flexDirection:"column",children:q(TX,{teammateTasks:E,currentSelectionId:K?.id})})]}),f.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),q(y,{flexDirection:"column",children:f.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),h.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Monitors"]})," (",h.length,")"]}),q(y,{flexDirection:"column",children:h.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),L.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Remote agents"]})," (",L.length,")"]}),q(y,{flexDirection:"column",children:L.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),C.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),q(y,{flexDirection:"column",children:C.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),A.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),q(y,{flexDirection:"column",children:A.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),D.length>0&&q(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0||A.length>0?1:0,children:q(y,{flexDirection:"column",children:D.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q};default:throw Error(`toListItem: unhandled task type ${String(Q.type)}`)}}function E0(Q){let J=SJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),V;if(J[0]===Symbol.for("react.memo_cache_sentinel"))V=GQ(),J[0]=V;else V=J[0];let G=V,F=G&&X,R=X?t0.pointer+" ":" ",O;if(J[1]!==F||J[2]!==R)O=q(W,{dimColor:F,children:R}),J[1]=F,J[2]=R,J[3]=O;else O=J[3];let P=X&&!G?"suggestion":void 0,U;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)U=Z.type==="leader"?N(W,{children:["@",vJ]}):q(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=U;else U=J[7];let w;if(J[8]!==P||J[9]!==U)w=q(W,{color:P,children:U}),J[8]=P,J[9]=U,J[10]=w;else w=J[10];let f;if(J[11]!==O||J[12]!==w)f=N(y,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=f;else f=J[13];return f}function TX(Q){let J=SJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(dX),V=Z.filter(uX),G=new Map;for(let R of V){let O=R.task.identity.teamName,P=G.get(O);if(P)P.push(R);else G.set(O,[R])}let F=[...G.entries()];z=q(o,{children:F.map((R)=>{let[O,P]=R,U=P.length+Y.length;return N(y,{flexDirection:"column",children:[N(W,{dimColor:!0,children:[" ","Team: ",O," (",U,")"]}),Y.map((w)=>q(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),P.map((w)=>q(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function uX(Q){return Q.type==="in_process_teammate"}function dX(Q){return Q.type==="leader"}var SJ,U0,QQ=null,jJ=null,XJ,XQ,YQ,jX,YJ,zQ;var cX=a(()=>{TZ();MX();AX();nZ();BX();uJ();hX();bX();vX();yX();UJ();CX();yJ();KX();GZ();SX();q0();S0();EX();yJ();B0();I0();A0();UZ();BZ();hZ();jZ();rZ();tZ();$();SJ=J0(F0(),1),U0=J0(o0(),1),XJ=jJ?.killWorkflowTask??null,XQ=jJ?.skipWorkflowAgent??null,YQ=jJ?.retryWorkflowAgent??null,jX=(DX(),RJ(IX)),YJ=jX?.killMonitorMcp??null,zQ=(ZQ(),RJ(JQ)).MonitorMcpDetailDialog});
18
- export{VJ as Je,WJ as Ke,xX as Le,uJ as Me,fJ as Ne,mQ as Oe,GZ as Pe,jq as Qe,cX as Re};
@@ -1,2 +0,0 @@
1
- import{$ra as E,Lra as CQ,Mra as YJ,Nra as v,Ora as P1,Pra as J5,Qra as w8,Rra as D,Sra as y,Tra as m,Ura as _Q,Vra as L,Wra as a,Xra as h5,Yra as e8,Zra as F5,_ra as _8,asa as h8,bsa as P,csa as x1,dsa as d,esa as WQ,fsa as o,gsa as xQ,hsa as l5,isa as UY}from"./cli-1.1.23-rpxkp0kh.mjs";import{Eta as sQ,Fta as X}from"./cli-1.1.23-bdj1ne1r.mjs";function h$(){this.__data__=new v,this.size=0}var e1;var QQ=X(()=>{P1();e1=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var $Q;var JQ=X(()=>{$Q=n$});function b$(Q){return this.__data__.get(Q)}var YQ;var ZQ=X(()=>{YQ=b$});function i$(Q){return this.__data__.has(Q)}var XQ;var HQ=X(()=>{XQ=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 o(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,UQ;var KQ=X(()=>{P1();WQ();xQ();UQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();QQ();JQ();ZQ();HQ();KQ();g.prototype.clear=e1;g.prototype.delete=$Q;g.prototype.get=YQ;g.prototype.has=XQ;g.prototype.set=UQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var BQ=X(()=>{GQ=c$});function o$(Q){return this.__data__.has(Q)}var NQ;var wQ=X(()=>{NQ=o$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var zQ;var FQ=X(()=>{xQ();BQ();wQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=NQ;zQ=r});function r$(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 RQ;var DQ=X(()=>{RQ=r$});function s$(Q,J){return Q.has(J)}var qQ;var OQ=X(()=>{qQ=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 zQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!RQ(J,function(C,_){if(!qQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{FQ();DQ();OQ();s=e$});var QJ,_1;var VQ=X(()=>{y();QJ=D.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 MQ;var LQ=X(()=>{MQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var fQ;var PQ=X(()=>{fQ=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 CQ(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=MQ;case BJ:var B=Z&ZJ;if(U||(U=fQ),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]",IQ,k1,kQ;var EQ=X(()=>{_Q();VQ();YJ();C1();LQ();PQ();IQ=m?m.prototype:void 0,k1=IQ?IQ.valueOf:void 0;kQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var vQ;var dQ=X(()=>{vQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:vQ(Z,Y(Q))}var gQ;var pQ=X(()=>{dQ();M();gQ=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 yQ;var mQ=X(()=>{yQ=VJ});function MJ(){return[]}var SQ;var AQ=X(()=>{SQ=MJ});var LJ,fJ,jQ,PJ,hQ;var nQ=X(()=>{mQ();AQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,PJ=!jQ?SQ:function(Q){if(Q==null)return[];return Q=Object(Q),yQ(jQ(Q),function(J){return fJ.call(Q,J)})},hQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var bQ;var iQ=X(()=>{bQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var uQ=X(()=>{a();S();E1=kJ});var lQ,EJ,vJ,dJ,t;var v1=X(()=>{uQ();S();lQ=Object.prototype,EJ=lQ.hasOwnProperty,vJ=lQ.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 TQ;var cQ=X(()=>{TQ=gJ});var Q1={};sQ(Q1,{default:()=>A});var aQ,oQ,pJ,rQ,yJ,mJ,A;var d1=X(()=>{y();cQ();aQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=aQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===aQ,rQ=pJ?D.Buffer:void 0,yJ=rQ?rQ.isBuffer:void 0,mJ=yJ||TQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=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]",oJ="[object Map]",rJ="[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,tQ;var eQ=X(()=>{a();J1();S();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[oJ]=G[rJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;tQ=B8});function N8(Q){return function(J){return Q(J)}}var Q5;var $5=X(()=>{Q5=N8});var Z1={};sQ(Z1,{default:()=>X1});var Y5,i,z8,p1,F8,X1;var Z5=X(()=>{w8();Y5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Y5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Y5,p1=z8&&J5.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 X5,R8,H1;var y1=X(()=>{eQ();$5();Z5();X5=X1&&X1.isTypedArray,R8=X5?Q5(X5):tQ,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?bQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.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 D8,q8,H5;var W5=X(()=>{iQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;H5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,x5;var U5=X(()=>{V8=Object.prototype;x5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var K5;var G5=X(()=>{K5=L8});var f8,B5;var N5=X(()=>{G5();f8=K5(Object.keys,Object),B5=f8});function C8(Q){if(!x5(Q))return B5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,w5;var z5=X(()=>{U5();N5();P8=Object.prototype,I8=P8.hasOwnProperty;w5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!F5(Q)}var R5;var D5=X(()=>{_8();J1();R5=k8});function E8(Q){return R5(Q)?H5(Q):w5(Q)}var W1;var m1=X(()=>{W5();z5();D5();W1=E8});function v8(Q){return gQ(Q,W1,hQ)}var S1;var q5=X(()=>{pQ();nQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(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 q=!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 t1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(t1===void 0?C===_||H(C,_,Y,Z,W):t1)){q=!1;break}f||(f=N=="constructor")}if(q&&!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))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,O5;var V5=X(()=>{q5();g8=Object.prototype,p8=g8.hasOwnProperty;O5=y8});var m8,U1;var M5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var L5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var f5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var P5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var I5="[object Map]",n8="[object Object]",C5="[object Promise]",_5="[object Set]",k5="[object WeakMap]",E5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var v5=X(()=>{M5();WQ();L5();f5();P5();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)))!=E5||d&&k(new d)!=I5||K1&&k(K1.resolve())!=C5||G1&&k(new G1)!=_5||B1&&k(new B1)!=k5)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 E5;case i8:return I5;case u8:return C5;case l8:return _5;case T8:return k5}return J};A1=k});function r8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?g5:A1(Q),K=U?g5:A1(J);B=B==d5?N1:B,K=K==d5?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):kQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&p5.call(Q,"__wrapped__"),R=z&&p5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),O5(Q,J,Y,Z,H,W)}var c8=1,d5="[object Arguments]",g5="[object Array]",N1="[object Object]",o8,p5,y5;var m5=X(()=>{I1();C1();EQ();V5();v5();M();d1();y1();o8=Object.prototype,p5=o8.hasOwnProperty;y5=r8});function S5(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 y5(Q,J,Y,Z,S5,H)}var w1;var j1=X(()=>{m5();S();w1=S5});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,A5;var j5=X(()=>{I1();j1();A5=t8});function QY(Q){return Q===Q&&!h5(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 n5;var b5=X(()=>{h1();m1();n5=$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=n5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||A5(Y,Q,J)}}var i5;var u5=X(()=>{j5();b5();n1();i5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();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 D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=l5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,T5;var c5=X(()=>{UY();T5=GY});var BY,NY,wY,o5;var r5=X(()=>{c5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=T5(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 s5;var a5=X(()=>{s5=zY});function Q$(Q){if(typeof Q=="string")return Q;if(w(Q))return s5(Q,Q$)+"";if(h(Q))return e5?e5.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,t5,e5,$$;var J$=X(()=>{_Q();a5();M();R1();t5=m?m.prototype:void 0,e5=t5?t5.toString:void 0;$$=Q$});function RY(Q){return Q==null?"":$$(Q)}var Y$;var Z$=X(()=>{J$();Y$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Y$(Q))}var q1;var b1=X(()=>{M();D1();r5();Z$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(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 X$;var H$=X(()=>{i1();X$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var W$;var x$=X(()=>{W$=LY});function fY(Q,J,Y){J=q1(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 U$;var K$=X(()=>{b1();v1();M();g1();J1();u();U$=fY});function PY(Q,J){return Q!=null&&U$(Q,J,W$)}var G$;var B$=X(()=>{x$();K$();G$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=X$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,N$;var w$=X(()=>{j1();H$();B$();D1();h1();n1();u();N$=_Y});function kY(Q){return Q}var z$;var F$=X(()=>{z$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var R$;var D$=X(()=>{R$=EY});function vY(Q){return function(J){return O1(J,Q)}}var q$;var O$=X(()=>{i1();q$=vY});function dY(Q){return n(Q)?R$(I(Q)):q$(Q)}var V$;var M$=X(()=>{D$();O$();D1();u();V$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return z$;if(typeof Q=="object")return w(Q)?N$(Q[0],Q[1]):i5(Q);return V$(Q)}var L$;var f$=X(()=>{u5();w$();F$();M();M$();L$=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 P$;var I$=X(()=>{P$=pY});function yY(Q,J){return Q&&Q.length?P$(Q,L$(J,2)):0}var b;var C$=X(()=>{f$();I$();b=yY});import{randomUUID as u1}from"crypto";var _$=()=>{};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 k$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function oX(Q){c1=Q}function rX(){c1=void 0}var l1=null,V1,T1,c1;var E$=X(()=>{V1=new Map;T1=new Map});function v$(){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 d$=()=>{};import{realpathSync as g$}from"fs";import{cwd as mY}from"process";function Z9(Q){return o1.add(Q),()=>o1.delete(Q)}function X9(){L1()}function L1(){for(let Q of o1)try{Q()}catch{}}function p$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof g$==="function"){let Y=mY();try{Q=g$(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(),activeDurationMs:0,turnActiveSince:null,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,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),y$.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 D9(){return $.directConnectServerUrl}function q9(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(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else r1=!0}function l9(){if(r1)S$()}function S$(){$.lastInteractionTime=Date.now(),r1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function o9(){return $.totalLinesRemoved}function r9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-s1}function QH(){return a1}function $H(Q){s1=A$(),a1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({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;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(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 vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function oH(){return $.isInteractive}function rH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,k$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(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 u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function o4(){return $.sessionTrustAccepted}function r4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(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 X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(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 x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){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 G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(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 O3(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 V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function o3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function r3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var o1,$,y$,K9,r1=!1,s1=0,a1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{C$();_$();E$();d$();o1=new Set;$=p$();y$=v$();K9=y$.subscribe;AY=[]});
2
- export{p as gma,I1 as hma,zQ as ima,FQ as jma,qQ as kma,OQ as lma,_1 as mma,VQ as nma,fQ as oma,PQ as pma,vQ as qma,dQ as rma,w as sma,M as tma,gQ as uma,pQ as vma,yQ as wma,mQ as xma,SQ as yma,AQ as zma,hQ as Ama,nQ as Bma,O as Cma,S as Dma,t as Ema,v1 as Fma,A as Gma,d1 as Hma,$1 as Ima,g1 as Jma,Q5 as Kma,$5 as Lma,X1 as Mma,Z5 as Nma,H1 as Oma,y1 as Pma,H5 as Qma,W5 as Rma,x5 as Sma,U5 as Tma,K5 as Uma,G5 as Vma,R5 as Wma,D5 as Xma,W1 as Yma,m1 as Zma,S1 as _ma,q5 as $ma,G1 as ana,f5 as bna,A1 as cna,v5 as dna,w1 as ena,j1 as fna,h as gna,R1 as hna,s5 as ina,a5 as jna,Y$ as kna,Z$ as lna,q1 as mna,b1 as nna,I as ona,u as pna,O1 as qna,i1 as rna,z$ as sna,F$ as tna,L$ as una,f$ as vna,nX as wna,bX as xna,iX as yna,uX as zna,lX as Ana,TX as Bna,k$ as Cna,cX as Dna,oX as Ena,rX as Fna,E$ as Gna,v$ as Hna,d$ as Ina,Z9 as Jna,X9 as Kna,H9 as Lna,W9 as Mna,x9 as Nna,U9 as Ona,K9 as Pna,G9 as Qna,B9 as Rna,N9 as Sna,w9 as Tna,z9 as Una,F9 as Vna,R9 as Wna,D9 as Xna,q9 as Yna,O9 as Zna,V9 as _na,M9 as $na,L9 as aoa,f9 as boa,P9 as coa,I9 as doa,C9 as eoa,_9 as foa,k9 as goa,E9 as hoa,v9 as ioa,d9 as joa,g9 as koa,p9 as loa,y9 as moa,m9 as noa,S9 as ooa,A9 as poa,j9 as qoa,h9 as roa,n9 as soa,b9 as toa,i9 as uoa,u9 as voa,l9 as woa,T9 as xoa,c9 as yoa,o9 as zoa,r9 as Aoa,A$ as Boa,s9 as Coa,a9 as Doa,t9 as Eoa,e9 as Foa,QH as Goa,$H as Hoa,JH as Ioa,YH as Joa,ZH as Koa,XH as Loa,HH as Moa,WH as Noa,xH as Ooa,UH as Poa,KH as Qoa,GH as Roa,BH as Soa,NH as Toa,wH as Uoa,zH as Voa,FH as Woa,RH as Xoa,DH as Yoa,qH as Zoa,OH as _oa,VH as $oa,MH as apa,LH as bpa,fH as cpa,PH as dpa,IH as epa,CH as fpa,_H as gpa,kH as hpa,EH as ipa,vH as jpa,dH as kpa,gH as lpa,pH as mpa,yH as npa,mH as opa,SH as ppa,AH as qpa,jH as rpa,hH as spa,nH as tpa,bH as upa,iH as vpa,uH as wpa,lH as xpa,TH as ypa,cH as zpa,SY as Apa,oH as Bpa,rH as Cpa,sH as Dpa,aH as Epa,tH as Fpa,eH as Gpa,Q4 as Hpa,$4 as Ipa,J4 as Jpa,Y4 as Kpa,Z4 as Lpa,X4 as Mpa,H4 as Npa,W4 as Opa,x4 as Ppa,U4 as Qpa,K4 as Rpa,G4 as Spa,B4 as Tpa,N4 as Upa,w4 as Vpa,z4 as Wpa,F4 as Xpa,R4 as Ypa,D4 as Zpa,q4 as _pa,O4 as $pa,V4 as aqa,M4 as bqa,L4 as cqa,f4 as dqa,P4 as eqa,I4 as fqa,C4 as gqa,_4 as hqa,k4 as iqa,E4 as jqa,v4 as kqa,d4 as lqa,g4 as mqa,p4 as nqa,y4 as oqa,m4 as pqa,S4 as qqa,A4 as rqa,j4 as sqa,h4 as tqa,n4 as uqa,b4 as vqa,i4 as wqa,u4 as xqa,l4 as yqa,T4 as zqa,c4 as Aqa,o4 as Bqa,r4 as Cqa,s4 as Dqa,a4 as Eqa,t4 as Fqa,e4 as Gqa,Q3 as Hqa,$3 as Iqa,J3 as Jqa,Y3 as Kqa,Z3 as Lqa,X3 as Mqa,H3 as Nqa,W3 as Oqa,x3 as Pqa,U3 as Qqa,K3 as Rqa,G3 as Sqa,B3 as Tqa,N3 as Uqa,w3 as Vqa,z3 as Wqa,F3 as Xqa,R3 as Yqa,D3 as Zqa,q3 as _qa,O3 as $qa,V3 as ara,M3 as bra,L3 as cra,f3 as dra,P3 as era,I3 as fra,C3 as gra,_3 as hra,k3 as ira,E3 as jra,v3 as kra,d3 as lra,g3 as mra,p3 as nra,y3 as ora,m3 as pra,S3 as qra,A3 as rra,j3 as sra,h3 as tra,n3 as ura,b3 as vra,i3 as wra,u3 as xra,l3 as yra,T3 as zra,c3 as Ara,o3 as Bra,r3 as Cra,s3 as Dra,jY as Era,a3 as Fra,t3 as Gra,e3 as Hra,QW as Ira,$W as Jra,hY as Kra};
@@ -1,4 +0,0 @@
1
- import{$g as Py,_g as g}from"./cli-1.1.23-dspgg8gk.mjs";import{$i as $y,Yi as s,_i as d}from"./cli-1.1.23-rjt1xt8g.mjs";import{EM as x,Eo as Ky,Er as E,IM as Ny,Ir as Wy,Jt as O,Rt as Xy,VT as py,WP as l,Wq as f,dr as u,eM as Q,fM as Ry,kr as A,nM as n,no as L,po as V,qy as q,ro as Y,ry as Zy,sl as F,tr as Qy,uo as D,vo as M,wl as Iy,wo as C,xM as vy,yo as T,zT as c}from"./cli-1.1.23-hynrf6x1.mjs";import{aY as i,bY as Oy}from"./cli-1.1.23-3tbvgbsz.mjs";import{cZ as _,dZ as a,eZ as t,iZ as Uy}from"./cli-1.1.23-ah6fas1q.mjs";import{oZ as o,uZ as hy}from"./cli-1.1.23-6801e7pm.mjs";import{k1 as k,l1 as Jy}from"./cli-1.1.23-7081am2r.mjs";import{J8 as Z,S6 as m,T6 as B,a9 as zy,r7 as qy}from"./cli-1.1.23-9qe28y65.mjs";import{w9 as p,x9 as ry}from"./cli-1.1.23-r21frpa6.mjs";import{$$ as Sy,B$ as h,Ifa as v,R$ as H,Uba as j,Wba as jy,Y$ as wy,_$ as X,eea as b,jea as K,kfa as R,nfa as w,wea as ky}from"./cli-1.1.23-keftnbc6.mjs";import{mia as z,yia as Gy}from"./cli-1.1.23-e3g5ahaf.mjs";import{mla as U,pla as yy}from"./cli-1.1.23-kc1tbe8y.mjs";v();function Vy(y){let r=w().numStartups;R((G)=>{let S=G.tipsHistory??{};if(S[y]===r)return G;return{...G,tipsHistory:{...S,[y]:r}}})}function N(y){let r=w(),G=r.tipsHistory?.[y];if(!G)return 1/0;return r.numStartups-G}ry();yy();Xy();ky();hy();Jy();Py();Zy();Iy();zy();Oy();v();Qy();jy();Wy();wy();Ky();qy();Sy();Ny();vy();Ry();py();Gy();$y();Uy();var W;async function Hy(){if(W!==void 0)return W;let y=await n();return W=Q in y,W}async function P(y,r,G){if(!await Hy())return!1;if(x(`${y}@${Q}`))return!1;let{bashTools:S}=r??{};if(G.cli&&S?.size){if(G.cli.some((I)=>S.has(I)))return!0}if(G.filePath&&r?.readFileState){if(E(r.readFileState).some(($)=>G.filePath.test($)))return!0}return!1}var by=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return w().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=w();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=w(),r=K(),G=Boolean(y.lastPlanModeUse),S=Boolean(r?.permissions?.defaultMode);return G&&!S}catch(y){return U(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=w();return await H()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${q("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await h()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${q("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await h()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${q("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=w();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(c())return!1;return await i()>=2}},{id:"terminal-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=w();if(j.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>j.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=w();return Boolean((j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!o())return!1;let y=w();return!(j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return w().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&p.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDIN_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>X()==="windows"&&process.env.CLAUDIN_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>K().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return w().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${j.terminal==="vscode"?"code":j.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!L())return!1;if(X()!=="macos")return!1;switch(j.terminal){case"vscode":return!await C();case"cursor":return!await D();case"windsurf":return!await M();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(V())return!1;if((await Y()).length!==0)return!1;return(await T()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!w().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!w().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return w().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!j.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>X()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>l()&&w().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return w().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${q("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=w(),G=m()==="opusplan",S=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return G&&S>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
- ${k("suggestion",y.theme)(`/plugin install frontend-design@${Q}`)}`},cooldownSessions:3,isRelevant:async(y)=>P("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
- ${k("suggestion",y.theme)(`/plugin install vercel@${Q}`)}`},cooldownSessions:3,isRelevant:async(y)=>P("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let G=k("suggestion",y.theme)("/effort high");return z("tengu_tide_elm","off")==="copy_b"?`Use ${G} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${G} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;if(!f(B()))return!1;if(b("policySettings")?.effortLevel!==void 0)return!1;if(A()!==void 0)return!1;let y=u();if(y==="high"||y==="max")return!1;return z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${r("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${r('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;return z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_timber_lark","off")==="copy_b"?`Use ${r("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${r("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;if(!F())return!1;return z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let r=k("claude",y.theme),G=t();return G?`Share Claudin and earn ${r(a(G))} of extra usage · ${r("/passes")}`:`You have free guest passes to share · ${r("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(w().hasVisitedPasses)return!1;let{eligible:r}=_();return r}},{id:"overage-credit",content:async(y)=>{let r=k("claude",y.theme),G=s(),S=G?d(G):null;if(!S)return"";return`${r(`${S} in extra usage, on us`)} · third-party apps · ${r("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>g()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return w().numStartups>5}}],my=[];function By(){let r=K().spinnerTipsOverride;if(!r?.tips?.length)return[];return r.tips.map((G,S)=>({id:`custom-tip-${S}`,content:async()=>G,cooldownSessions:0,isRelevant:async()=>!0}))}async function kr(y){let G=K().spinnerTipsOverride,S=By();if(G?.excludeDefault&&S.length>0)return S;let I=[...by,...my],$=await Promise.all(I.map((J)=>J.isRelevant(y)));return[...I.filter((J,e)=>$[e]).filter((J)=>N(J.id)>=J.cooldownSessions),...S]}
4
- export{Vy as Ya,N as Za,kr as _a};
@@ -1,39 +0,0 @@
1
- import{bx as B,cS as N,dx as U,nR as L,oR as w,qS as M}from"./cli-1.1.23-hynrf6x1.mjs";import{Jda as P,pba as z,wba as F}from"./cli-1.1.23-keftnbc6.mjs";import{Fha as I,Lha as v}from"./cli-1.1.23-2cqrzcwp.mjs";import{Fta as j}from"./cli-1.1.23-bdj1ne1r.mjs";async function V(W){let{messages:J,getAppState:Q,options:{mainLoopModel:K,tools:Z,agentDefinitions:_,customSystemPrompt:X,appendSystemPrompt:Y}}=W,R=N(J),{messages:O}=await B(R),q=Q();return L(O,K,async()=>q.toolPermissionContext,Z,_,void 0,{options:{customSystemPrompt:X,appendSystemPrompt:Y}},void 0,R)}async function g(W,J){let Q=await V(J);return{type:"text",value:b(Q)}}function b(W){let{categories:J,totalTokens:Q,rawMaxTokens:K,percentage:Z,model:_,memoryFiles:X,mcpTools:Y,agents:R,skills:O}=W,q=`## Context Usage
2
-
3
- `;q+=`**Model:** ${_}
4
- `,q+=`**Tokens:** ${I(Q)} / ${I(K)} (${Z}%)
5
- `,q+=`
6
- `;let $=J.filter((E)=>E.tokens>0&&E.name!=="Free space"&&E.name!=="Autocompact buffer");if($.length>0){q+=`### Estimated usage by category
7
-
8
- `,q+=`| Category | Tokens | Percentage |
9
- `,q+=`|----------|--------|------------|
10
- `;for(let H of $){let h=(H.tokens/K*100).toFixed(1);q+=`| ${H.name} | ${I(H.tokens)} | ${h}% |
11
- `}let E=J.find((H)=>H.name==="Free space");if(E&&E.tokens>0){let H=(E.tokens/K*100).toFixed(1);q+=`| Free space | ${I(E.tokens)} | ${H}% |
12
- `}let G=J.find((H)=>H.name==="Autocompact buffer");if(G&&G.tokens>0){let H=(G.tokens/K*100).toFixed(1);q+=`| Autocompact buffer | ${I(G.tokens)} | ${H}% |
13
- `}q+=`
14
- `}if(Y.length>0){q+=`### MCP Tools
15
-
16
- `,q+=`| Tool | Server | Tokens |
17
- `,q+=`|------|--------|--------|
18
- `;for(let E of Y)q+=`| ${E.name} | ${E.serverName} | ${I(E.tokens)} |
19
- `;q+=`
20
- `}if(R.length>0){q+=`### Custom Agents
21
-
22
- `,q+=`| Agent Type | Source | Tokens |
23
- `,q+=`|------------|--------|--------|
24
- `;for(let E of R){let G;switch(E.source){case"projectSettings":G="Project";break;case"userSettings":G="User";break;case"localSettings":G="Local";break;case"flagSettings":G="Flag";break;case"policySettings":G="Policy";break;case"plugin":G="Plugin";break;case"built-in":G="Built-in";break;default:G=String(E.source)}q+=`| ${E.agentType} | ${G} | ${I(E.tokens)} |
25
- `}q+=`
26
- `}if(X.length>0){q+=`### Memory Files
27
-
28
- `,q+=`| Type | Path | Tokens |
29
- `,q+=`|------|------|--------|
30
- `;for(let E of X)q+=`| ${E.type} | ${E.path} | ${I(E.tokens)} |
31
- `;q+=`
32
- `}if(O&&O.tokens>0&&O.skillFrontmatter.length>0){q+=`### Skills
33
-
34
- `,q+=`| Skill | Source | Tokens |
35
- `,q+=`|-------|--------|--------|
36
- `;for(let E of O.skillFrontmatter)q+=`| ${E.name} | ${z(E.source)} | ${I(E.tokens)} |
37
- `;q+=`
38
- `}return q}var A=j(()=>{U();w();v();M();F();P()});
39
- export{V as Ch,g as Dh,A as Eh};
@@ -1,2 +0,0 @@
1
- import{Xa as c}from"./cli-1.1.23-fd4gay6z.mjs";import{vd as v,zd as Wq}from"./cli-1.1.23-xyjeajm2.mjs";import{Cd as I,Dd as S,Ed as $,Fd as Xq}from"./cli-1.1.23-bqb900hx.mjs";import{$D as Jq,$M as Vq,Az as Gq,GL as f,HL as Tq,Nu as N,Ou as e,SF as E,TF as Qq,VD as M,YM as P,ay as L,by as h,dy as qq,pp as C,rp as r,tz as A,uz as Bq,yz as _}from"./cli-1.1.23-hynrf6x1.mjs";import{s4 as s}from"./cli-1.1.23-534g4n3n.mjs";import{Daa as w,Faa as t,V_ as D,X_ as n,gha as F,oha as a}from"./cli-1.1.23-keftnbc6.mjs";import{jka as x,mka as d}from"./cli-1.1.23-j9tza8qb.mjs";import{mla as j,pla as o}from"./cli-1.1.23-kc1tbe8y.mjs";import{Lla as y,Tla as l}from"./cli-1.1.23-6vn61k3h.mjs";import{Bta as p}from"./cli-1.1.23-bdj1ne1r.mjs";Qq();d();Gq();qq();Xq();t();o();n();l();a();e();Tq();Jq();Bq();r();var V=p(s(),1);Wq();Vq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=E(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await P();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await f(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await M()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};x("",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{hq as Wa};
@@ -1,3 +0,0 @@
1
- import{nX as Q,sX as w}from"./cli-1.1.23-5nf6hd1y.mjs";import{M2 as x,O2 as j}from"./cli-1.1.23-8qrr5zea.mjs";import{lia as K,yia as Y}from"./cli-1.1.23-e3g5ahaf.mjs";import{oja as k,qja as Z,rja as M,sja as $}from"./cli-1.1.23-a95wepyn.mjs";import{Fta as X}from"./cli-1.1.23-bdj1ne1r.mjs";async function W(){let q=await K("tengu_bridge_repl_v2_config",J),H=y().safeParse(q);return H.success?H.data:J}async function p(){let q=await W();if(q.min_version&&x("99.0.0",q.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${q.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function A(){if(!Q())return!1;return(await W()).should_show_app_upgrade_message}var J,y;var P=X(()=>{Z();Y();$();j();w();J={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},y=M(()=>k.object({init_retry_max_attempts:k.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:k.number().int().min(100).default(500),init_retry_jitter_fraction:k.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:k.number().int().min(500).default(4000),http_timeout_ms:k.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:k.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:k.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:k.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:k.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:k.number().int().min(500).max(2000).default(1500),connect_timeout_ms:k.number().int().min(5000).max(60000).default(15000),min_version:k.string().refine((q)=>{try{return x(q,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:k.boolean().default(!1)}))});
3
- export{J as ec,W as fc,p as gc,A as hc,P as ic};
@@ -1,2 +0,0 @@
1
- import{Xh as Vq,Yh as fq}from"./cli-1.1.23-9vqnsq1x.mjs";import{AY as mq,OY as o,PY as pq,VY as Qq,XY as Uq,YY as Hq,zY as Pq}from"./cli-1.1.23-ah6fas1q.mjs";import{PZ as Sq,T1 as Wq,m1 as M,o1 as g}from"./cli-1.1.23-7081am2r.mjs";import{p4 as Z,q4 as F,r4 as Jq}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as _q}from"./cli-1.1.23-534g4n3n.mjs";import{tha as s,uha as jq}from"./cli-1.1.23-2cqrzcwp.mjs";import{Bta as Lq,Fta as wq}from"./cli-1.1.23-bdj1ne1r.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
- export{lq as vh,oq as wh,sq as xh,aq as yh,Tq as zh};
@@ -1,2 +0,0 @@
1
- import{K as F}from"./cli-1.1.23-7jpcmnjc.mjs";import{U as k}from"./cli-1.1.23-j1834bmw.mjs";import{_a as x}from"./cli-1.1.23-wnxxa385.mjs";import{$a as O}from"./cli-1.1.23-bghc6n12.mjs";import{To as G,Uo as U,Xo as L,Yo as d,vU as b,wU as p}from"./cli-1.1.23-hynrf6x1.mjs";import{iV as R,lV as u}from"./cli-1.1.23-dd8dp11f.mjs";import{a9 as m,j5 as Y,p5 as D,s7 as j,t7 as z,v8 as w,w8 as E}from"./cli-1.1.23-9qe28y65.mjs";import{Iea as X,Jea as B,Tga as $,Wga as M}from"./cli-1.1.23-keftnbc6.mjs";import{vja as _,xja as I}from"./cli-1.1.23-7ke90t8x.mjs";import{mla as K,pla as y}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as V,Tla as v}from"./cli-1.1.23-6vn61k3h.mjs";import{$la as N,Zla as J,fma as C}from"./cli-1.1.23-fxyf1cph.mjs";import{Nsa as W,dta as A}from"./cli-1.1.23-61q858yx.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
2
- export{Xq as I};
@@ -1,2 +0,0 @@
1
- import{pb as d}from"./cli-1.1.23-gm82gspk.mjs";import{AT as c,Fz as C,Gz as D,HT as p,IT as X,Jk as $,Kk as n,Lz as Gj,MK as f,Ml as P,Nl as R,Pm as E,Pt as h,Qm as e,Rt as qj,Sk as v,Tk as r,VT as Vj,ak as O,ck as o,eF as Jj,eU as F,fm as s,fv as k,iv as V,nT as m,oT as S,ov as zj,pD as I,pT as A,pv as w,qD as Hj,qS as Qj,qv as Bj,rU as Xj,sm as y,xm as t}from"./cli-1.1.23-hynrf6x1.mjs";import{KV as W,ZV as jj}from"./cli-1.1.23-pjmjhm4y.mjs";import{_X as x,bY as Kj}from"./cli-1.1.23-3tbvgbsz.mjs";import{k7 as T,r7 as u}from"./cli-1.1.23-9qe28y65.mjs";import{vja as Z,xja as i}from"./cli-1.1.23-7ke90t8x.mjs";import{mla as b,pla as l}from"./cli-1.1.23-kc1tbe8y.mjs";import{Kra as g,Lna as U,Ona as _,Tna as Y,Yoa as M,_oa as N,era as K}from"./cli-1.1.23-wkvjbzna.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
2
- export{aj as Pa,Pj as Qa,Rj as Ra,Ej as Sa,gj as Ta,lj as Ua};
@@ -1,2 +0,0 @@
1
- import{ep as Q,jp as f}from"./cli-1.1.23-hynrf6x1.mjs";import{gha as B,oha as M}from"./cli-1.1.23-keftnbc6.mjs";import{Rka as W,Ska as Z,Wka as X,_ka as $,cla as Y,mla as b,pla as A}from"./cli-1.1.23-kc1tbe8y.mjs";import{Fta as U}from"./cli-1.1.23-bdj1ne1r.mjs";import{randomBytes as G}from"crypto";import{readFile as L,rename as N,unlink as j,writeFile as S}from"fs/promises";import{join as T}from"path";function R(){return T(Q(),_)}function E(q){let v=Z(q);if(typeof v!=="object"||v===null||!("plugins"in v)||typeof v.plugins!=="object"||v.plugins===null)return{};let x=v.plugins,C={};for(let[J,H]of Object.entries(x))if(H&&typeof H==="object"&&"flaggedAt"in H&&typeof H.flaggedAt==="string"){let V={flaggedAt:H.flaggedAt};if("seenAt"in H&&typeof H.seenAt==="string")V.seenAt=H.seenAt;C[J]=V}return C}async function K(){try{let q=await L(R(),{encoding:"utf-8"});return E(q)}catch{return{}}}async function O(q){let v=R(),x=`${v}.${G(8).toString("hex")}.tmp`;try{await $().mkdir(Q());let C=W({plugins:q},null,2);await S(x,C,{encoding:"utf-8",mode:384}),await N(x,v),z=q}catch(C){B(C);try{await j(x)}catch{}}}async function u(){let q=await K(),v=Date.now(),x=!1;for(let[C,J]of Object.entries(q))if(J.seenAt&&v-new Date(J.seenAt).getTime()>=w)delete q[C],x=!0;if(z=q,x)await O(q)}function p(){return z??{}}async function c(q){if(z===null)z=await K();let v={...z,[q]:{flaggedAt:new Date().toISOString()}};await O(v),b(`Flagged plugin: ${q}`)}async function g(q){if(z===null)z=await K();let v=new Date().toISOString(),x=!1,C={...z};for(let J of q){let H=C[J];if(H&&!H.seenAt)C[J]={...H,seenAt:v},x=!0}if(x)await O(C)}async function d(q){if(z===null)z=await K();if(!(q in z))return;let{[q]:v,...x}=z;z=x,await O(x)}var _="flagged-plugins.json",w=172800000,z=null;var k=U(()=>{A();Y();M();X();f()});
2
- export{u as ud,p as vd,c as wd,g as xd,d as yd,k as zd};
@@ -1,2 +0,0 @@
1
- import{bd as Q,cd as Y}from"./cli-1.1.23-13w02myd.mjs";import{Al as H,BN as K,Bl as B,Fl as U,Gl as V,JN as X,Pp as J,Qp as W}from"./cli-1.1.23-hynrf6x1.mjs";import{Cta as q,Fta as v}from"./cli-1.1.23-bdj1ne1r.mjs";function P(k){return x.some((h)=>k.endsWith(h))}function C(k){return k.filter((h)=>H.has(h.name)||P(h.name))}function A(k,h,E){let[Z,$]=Q(J([...k,...h],"name"),K),w=(g,j)=>g.name.localeCompare(j.name),z=[...$.sort(w),...Z.sort(w)];if(G){if(G.isCoordinatorMode())return C(z)}return z}var x,G;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];G=(V(),q(U))});
2
- export{P as Zc,C as _c,A as $c,D as ad};
@@ -1,2 +0,0 @@
1
- import{Of as EG,Pf as iG,Vf as rG}from"./cli-1.1.23-1fy18jhn.mjs";import{AN as bG,Dn as fG,Es as vG,JN as lG,RN as _G,SF as KG,SN as oG,TF as mG,aN as LG,ay as a,bN as WG,bt as uG,by as jG,cO as $G,cy as HG,dN as pG,dy as dG,fN as BG,fO as sG,gN as DG,jO as f,kO as s,lN as l,lO as c,mO as v,nO as i,on as YG,pN as qG,pn as FG,qO as u,rN as y,sN as o,tN as aG,tn as VG,uO as cG,vN as kG}from"./cli-1.1.23-hynrf6x1.mjs";import{PZ as OJ}from"./cli-1.1.23-7081am2r.mjs";import{p4 as wG,r4 as PG}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as zG}from"./cli-1.1.23-534g4n3n.mjs";import{fda as ZG,kda as CG,kha as R,lha as b,oha as gG}from"./cli-1.1.23-keftnbc6.mjs";import{yia as NG}from"./cli-1.1.23-e3g5ahaf.mjs";import{jka as A,mka as MG}from"./cli-1.1.23-j9tza8qb.mjs";import{Wka as yG,mla as XG,pla as SG}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as h,Tla as TG}from"./cli-1.1.23-6vn61k3h.mjs";import{Kra as QG,Lna as OG}from"./cli-1.1.23-wkvjbzna.mjs";import{Bta as r,Fta as p}from"./cli-1.1.23-bdj1ne1r.mjs";var e=p(()=>{yG();NG()});function GG(X){let Z="plugin"in X?X.plugin:"no-plugin";return`${X.type}:${X.source}:${Z}`}function JG(X,Z){if(Z.length===0)return;X((k)=>{let U=new Set(k.plugins.errors.map((j)=>GG(j))),_=Z.filter((j)=>!U.has(GG(j)));if(_.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,..._]}}})}function GJ(X,Z,k,U){let _=Z==="disabled"?U??[]:U;if(_===void 0)return X;let j=new Map;for(let B of _)if(B.name!==void 0)j.set(B.name,B);let V=[],P=new Set;for(let B of X){if(!B.name?.startsWith(k)){V.push(B);continue}let w=j.get(B.name);if(w)V.push(w),P.add(B.name)}for(let B of _)if(B.name===void 0||!P.has(B.name))V.push(B);return V}function IG(X,Z=!1){let k=HG(),U=a((G)=>G.authVersion),_=a((G)=>G.mcp.pluginReconnectKey),j=jG(),V=q.useRef(new Map),P=q.useRef(new Set),B=q.useRef(null);q.useEffect(()=>{},[j]);let{addNotification:w}=KG(),RG=16,d=q.useRef([]),N=q.useRef(null),C=q.useCallback(()=>{N.current=null;let G=d.current;if(G.length===0)return;d.current=[],j((z)=>{let Y=z.mcp;for(let W of G){let{tools:Q,commands:H,resources:D,...J}=W,K=J.type==="disabled"||J.type==="failed"?H??[]:H,O=J.type==="disabled"||J.type==="failed"?D??[]:D,F=ZG(J.name),I=Y.clients.findIndex((M)=>M.name===J.name)===-1?[...Y.clients,J]:Y.clients.map((M)=>M.name===J.name?J:M),g=GJ(Y.tools,J.type,F,Q),x=K===void 0?Y.commands:[..._G(Y.commands,(M)=>kG(M,J.name)),...K],m=O===void 0?Y.resources:{...Y.resources,...O.length>0?{[J.name]:O}:EG(Y.resources,J.name)};Y={...Y,clients:I,tools:g,commands:x,resources:m}}return{...z,mcp:Y}})},[j]),$=q.useCallback((G)=>{if(d.current.push(G),N.current===null)N.current=setTimeout(C,RG)},[C]),E=q.useCallback(({client:G,tools:z,commands:Y,resources:W})=>{switch($({...G,tools:z,commands:Y,resources:W}),G.type){case"connected":{if($G(G.client,G.name,j),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{XG(`Failed to invalidate the server cache: ${G.name}`)}),y(G.name)){b(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let H=JJ(Q);b(G.name,`${H} transport closed/disconnected, attempting automatic reconnection`);let D=V.current.get(G.name);if(D)clearTimeout(D),V.current.delete(G.name);(async()=>{for(let K=1;K<=T;K++){if(y(G.name)){b(G.name,"Server disabled during reconnection, stopping retry"),V.current.delete(G.name);return}$({...G,type:"pending",reconnectAttempt:K,maxReconnectAttempts:T});let O=Date.now();try{let L=await v(G.name,G.config),I=Date.now()-O;if(L.client.type==="connected"){b(G.name,`${H} reconnection successful after ${I}ms (attempt ${K})`),V.current.delete(G.name),E(L);return}if(b(G.name,`${H} reconnection attempt ${K} completed with status: ${L.client.type}`),K===T){b(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),E(L);return}}catch(L){let I=Date.now()-O;if(R(G.name,`${H} reconnection attempt ${K} failed after ${I}ms: ${L}`),K===T){b(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),$({...G,type:"failed"});return}}let F=Math.min(tG*Math.pow(2,K-1),eG);b(G.name,`Scheduling reconnection attempt ${K+1} in ${F}ms`),await new Promise((L)=>{let I=setTimeout(L,F);V.current.set(G.name,I)})}})()}else $({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{b(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=f.cache.get(G.name);f.cache.delete(G.name);let H=await f(G),D=H.length;if(Q)Q.then((J)=>{A("",{type:"tools",previousCount:J.length,newCount:D})},()=>{A("",{type:"tools",newCount:D})});else A("",{type:"tools",newCount:D});$({...G,tools:H})}catch(Q){R(G.name,`Failed to refresh tools after list_changed notification: ${h(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(FG,async()=>{b(G.name,"Received prompts/list_changed notification, refreshing prompts"),A("",{type:"prompts"});try{c.cache.delete(G.name);let[Q,H]=await Promise.all([c(G),Promise.resolve([])]);$({...G,commands:[...Q,...H]}),nG?.()}catch(Q){R(G.name,`Failed to refresh prompts after list_changed notification: ${h(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(YG,async()=>{b(G.name,"Received resources/list_changed notification, refreshing resources"),A("",{type:"resources"});try{s.cache.delete(G.name);{let Q=await s(G);$({...G,resources:Q})}}catch(Q){R(G.name,`Failed to refresh resources after list_changed notification: ${h(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[$]),t=OG();q.useEffect(()=>{async function G(){let{servers:z,errors:Y}=Z?{servers:{},errors:[]}:await l(X),W={...z,...X};JG(j,Y),j((Q)=>{let{stale:H,...D}=bG(Q.mcp,W);for(let O of H){let F=V.current.get(O.name);if(F)clearTimeout(F),V.current.delete(O.name);if(O.type==="connected")O.client.onclose=void 0,u(O.name,O.config).catch(()=>{})}let J=new Set(D.clients.map((O)=>O.name)),K=Object.entries(W).filter(([O])=>!J.has(O)).map(([O,F])=>({name:O,type:y(O)?"disabled":"pending",config:F}));if(K.length===0&&H.length===0)return Q;return{...Q,mcp:{...Q.mcp,...D,clients:[...D.clients,...K]}}})}G().catch((z)=>{R("useManageMCPConnections",`Failed to initialize servers as pending: ${h(z)}`)})},[Z,X,j,t,_]),q.useEffect(()=>{let G=!1;async function z(){let Y;if(Z||qG())Y=Promise.resolve({});else WG(),Y=LG();let{servers:W,errors:Q}=Z?{servers:{},errors:[]}:await l(X,Y);if(G)return;JG(j,Q);let H={...W,...X},D=Object.fromEntries(Object.entries(H).filter(([F])=>!y(F)));i(E,D).catch((F)=>{R("useManageMcpConnections",`Failed to get MCP resources: ${h(F)}`)});let J={};if(!Z){if(J=DG(await Y).allowed,G)return;if(Object.keys(J).length>0){let{servers:F}=BG(J,H);J=F}if(Object.keys(J).length>0){j((L)=>{let I=new Set(L.mcp.clients.map((x)=>x.name)),g=Object.entries(J).filter(([x])=>!I.has(x)).map(([x,m])=>({name:x,type:y(x)?"disabled":"pending",config:m}));if(g.length===0)return L;return{...L,mcp:{...L.mcp,clients:[...L.mcp.clients,...g]}}});let F=Object.fromEntries(Object.entries(J).filter(([L])=>!y(L)));i(E,F).catch((L)=>{R("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${h(L)}`)})}}let K={...H,...J},O={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let F of Object.values(K))if(F.scope==="enterprise")O.enterprise++;else if(F.scope==="user")O.global++;else if(F.scope==="project")O.project++;else if(F.scope==="local")O.user++;else if(F.scope==="dynamic")O.plugin++;else if(F.scope==="claudeai")O.claudeai++;A("",{...O})}return z(),()=>{G=!0}},[Z,X,E,j,U,t,_]),q.useEffect(()=>{let G=V.current;return()=>{for(let z of G.values())clearTimeout(z);if(G.clear(),N.current!==null)clearTimeout(N.current),N.current=null,C()}},[C]);let AG=q.useCallback(async(G)=>{let z=k.getState().mcp.clients.find((Q)=>Q.name===G);if(!z)throw Error(`MCP server ${G} not found`);let Y=V.current.get(G);if(Y)clearTimeout(Y),V.current.delete(G);let W=await v(G,z.config);return E(W),W},[k,E]),hG=q.useCallback(async(G)=>{let z=k.getState().mcp.clients.find((W)=>W.name===G);if(!z)throw Error(`MCP server ${G} not found`);if(z.type!=="disabled"){let W=V.current.get(G);if(W)clearTimeout(W),V.current.delete(G);if(o(G,!1),z.type==="connected")await u(G,z.config);$({name:G,type:"disabled",config:z.config})}else{o(G,!0),$({name:G,type:"pending",config:z.config});let W=await v(G,z.config);E(W)}},[k,$,E]);return{reconnectMcpServer:AG,toggleMcpServer:hG}}function JJ(X){switch(X){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,nG=null,T=5,tG=1000,eG=30000;var UG=p(()=>{QG();cG();fG();iG();oG();MG();aG();SG();QG();mG();dG();TG();gG();uG();rG();e();pG();sG();CG();lG();vG();q=r(zG(),1)});function lJ(){let X=S.useContext(n);if(!X)throw Error("useMcpReconnect must be used within MCPConnectionManager");return X.reconnectMcpServer}function oJ(){let X=S.useContext(n);if(!X)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return X.toggleMcpServer}function sJ(X){let Z=xG.c(6),{children:k,dynamicMcpConfig:U,isStrictMcpConfig:_}=X,{reconnectMcpServer:j,toggleMcpServer:V}=IG(U,_),P;if(Z[0]!==j||Z[1]!==V)P={reconnectMcpServer:j,toggleMcpServer:V},Z[0]=j,Z[1]=V,Z[2]=P;else P=Z[2];let B=P,w;if(Z[3]!==k||Z[4]!==B)w=wG(n.Provider,{value:B,children:k}),Z[3]=k,Z[4]=B,Z[5]=w;else w=Z[5];return w}var xG,S,n;var QJ=p(()=>{UG();PG();xG=r(OJ(),1),S=r(zG(),1),n=S.createContext(null)});
2
- export{e as Jf,lJ as Kf,oJ as Lf,sJ as Mf,QJ as Nf};
@@ -1,2 +0,0 @@
1
- import{Fta as K}from"./cli-1.1.23-bdj1ne1r.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
- export{M as qla,N as rla,Q as sla,R as tla,S as ula,L as vla};
@@ -1,2 +0,0 @@
1
- import{Bz as Uq,Cz as mq,ts as Hq,us as pq}from"./cli-1.1.23-hynrf6x1.mjs";import{C4 as Bq,E4 as dq}from"./cli-1.1.23-z1mvb05m.mjs";import{C8 as i,G8 as S,W7 as Nq,X7 as yq,a9 as gq,j5 as Lq,o5 as jq,p5 as Sq}from"./cli-1.1.23-9qe28y65.mjs";import{Daa as Gq,Faa as Pq,Sea as Yq,Tea as Dq,U$ as b,Uea as k,Wea as Wq,Y$ as $q,Zea as Xq}from"./cli-1.1.23-keftnbc6.mjs";import{oja as N,qja as Mq,rja as E,sja as Cq}from"./cli-1.1.23-a95wepyn.mjs";import{aka as Kq,bka as Qq,cka as Vq,hka as Zq,ika as Rq}from"./cli-1.1.23-nr6xamsd.mjs";import{jka as _,mka as e}from"./cli-1.1.23-j9tza8qb.mjs";import{Rka as m,Wka as Eq,mla as Y,pka as Fq,pla as Jq,rka as $J}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as C,Sla as P,Tla as qq}from"./cli-1.1.23-6vn61k3h.mjs";import{Nsa as z,dta as kq}from"./cli-1.1.23-61q858yx.mjs";import{Eta as ZJ,Fta as d,Gta as Tq}from"./cli-1.1.23-bdj1ne1r.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.23-av012etb.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
2
- export{Aq as p,NJ as q,BJ as r,bq as s,HJ as t,UJ as u,OJ as v,wJ as w};