@claudiolabs/claudin 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (927) hide show
  1. package/README.md +3 -24
  2. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +1 -0
  3. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +1 -0
  31. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +110 -0
  32. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +3 -0
  33. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +1 -0
  36. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +1 -0
  37. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +1 -0
  41. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +1 -0
  47. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +4 -0
  51. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +1 -0
  54. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +1 -0
  56. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +2 -0
  57. package/dist/chunks/cli-1.1.13-0dha376x.mjs +3 -0
  58. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +7 -0
  59. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +3 -0
  60. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +2 -0
  61. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +2 -0
  62. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +2 -0
  64. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +24 -0
  65. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +6 -0
  66. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +2 -0
  67. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +2 -0
  68. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +2 -0
  69. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +2 -0
  70. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +2 -0
  71. package/dist/chunks/cli-1.1.13-24284zna.mjs +2 -0
  72. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +4 -0
  73. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +2 -0
  74. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +2 -0
  75. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +2 -0
  76. package/dist/chunks/cli-1.1.13-2m39r998.mjs +2 -0
  77. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +202 -0
  78. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +2 -0
  79. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +2 -0
  80. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +2 -0
  81. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +2 -0
  82. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +2 -0
  83. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +2 -0
  84. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +42 -0
  85. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +2 -0
  86. package/dist/chunks/cli-1.1.13-53ght581.mjs +3 -0
  87. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +2 -0
  88. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +6 -0
  89. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +2 -0
  90. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +2 -0
  91. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +12 -0
  92. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +2 -0
  94. package/dist/chunks/cli-1.1.13-6b845car.mjs +2 -0
  95. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +4 -0
  96. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +17 -0
  97. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +2 -0
  98. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +2 -0
  99. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +2 -0
  100. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +2 -0
  101. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +2 -0
  102. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +2 -0
  103. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +2 -0
  104. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +133 -0
  105. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +2 -0
  106. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +2 -0
  107. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +2 -0
  108. package/dist/chunks/cli-1.1.13-86kjp502.mjs +2 -0
  109. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +2 -0
  110. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +2 -0
  111. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +15 -0
  112. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +2 -0
  113. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +25 -0
  114. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +2 -0
  115. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +5 -0
  116. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +2 -0
  117. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +2 -0
  118. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +25 -0
  119. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +2 -0
  120. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +4 -0
  121. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +59 -0
  122. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +2 -0
  123. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +2 -0
  124. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +6 -0
  125. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +21 -0
  126. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +2 -0
  127. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +3 -0
  128. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +2 -0
  129. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +2 -0
  130. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +2 -0
  131. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +2 -0
  132. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +2 -0
  133. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +2 -0
  134. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +12 -0
  135. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +2 -0
  136. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +2 -0
  137. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +3 -0
  138. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +3 -0
  139. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +3 -0
  140. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +2 -0
  141. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +2 -0
  142. package/dist/chunks/cli-1.1.13-e4hsds4b.mjs +2 -0
  143. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +2 -0
  144. package/dist/chunks/cli-1.1.13-e68npf24.mjs +2 -0
  145. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +2 -0
  146. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +133 -0
  147. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +24 -0
  148. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +2 -0
  149. package/dist/chunks/cli-1.1.13-ey931psa.mjs +2 -0
  150. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +2 -0
  151. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +2 -0
  152. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +2 -0
  153. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +2 -0
  154. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +2 -0
  155. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +2 -0
  156. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +3 -0
  157. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +2 -0
  158. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +8 -0
  159. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +4 -0
  160. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +18 -0
  161. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +2 -0
  162. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +2 -0
  163. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +39 -0
  164. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +16 -0
  165. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +2 -0
  166. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +2 -0
  167. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +2 -0
  168. package/dist/chunks/cli-1.1.13-hb5bb8jk.mjs +3 -0
  169. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +6 -0
  170. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +2 -0
  171. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +2 -0
  172. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +2 -0
  173. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +15 -0
  174. package/dist/chunks/cli-1.1.13-jdcqc6bd.mjs +2 -0
  175. package/dist/chunks/cli-1.1.13-je6371k7.mjs +2 -0
  176. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +2 -0
  177. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +2 -0
  178. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +34 -0
  179. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +4 -0
  180. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +2 -0
  181. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +15 -0
  182. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +2 -0
  183. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +2 -0
  184. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +2 -0
  185. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +3 -0
  186. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +4 -0
  187. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +2 -0
  188. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +17 -0
  189. package/dist/chunks/cli-1.1.13-mzq23677.mjs +2 -0
  190. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +2 -0
  191. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +2 -0
  192. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +3 -0
  193. package/dist/chunks/cli-1.1.13-nr09192d.mjs +2 -0
  194. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +2 -0
  195. package/dist/chunks/cli-1.1.13-pam922jf.mjs +2 -0
  196. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +9 -0
  197. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +2 -0
  198. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +2 -0
  199. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +2 -0
  200. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +50 -0
  201. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +2 -0
  202. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +2 -0
  203. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +2 -0
  204. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +2 -0
  205. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +9 -0
  206. package/dist/chunks/cli-1.1.13-qr4adses.mjs +2 -0
  207. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +2 -0
  209. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +3 -0
  210. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +2 -0
  211. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +2 -0
  212. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +2 -0
  213. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +2 -0
  214. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +1 -0
  215. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +24 -0
  216. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +3 -0
  217. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +2 -0
  218. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +2 -0
  219. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +2 -0
  220. package/dist/chunks/cli-1.1.13-segzta4x.mjs +2 -0
  221. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +2 -0
  222. package/dist/chunks/cli-1.1.13-smefk747.mjs +2 -0
  223. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +2 -0
  224. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +2 -0
  225. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +3 -0
  226. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +2 -0
  227. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +4 -0
  228. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +2 -0
  229. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +2 -0
  230. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +24 -0
  231. package/dist/chunks/cli-1.1.13-v06xvs9s.mjs +2 -0
  232. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +2 -0
  233. package/dist/chunks/cli-1.1.13-v32emtk0.mjs +26 -0
  234. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +3 -0
  235. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +4 -0
  236. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +45 -0
  237. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +66 -0
  238. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +2 -0
  239. package/dist/chunks/cli-1.1.13-wje228e3.mjs +2 -0
  240. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +2 -0
  241. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +2 -0
  242. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +58 -0
  243. package/dist/chunks/cli-1.1.13-x663d461.mjs +2 -0
  244. package/dist/chunks/cli-1.1.13-x79qava2.mjs +5413 -0
  245. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +2 -0
  246. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +6 -0
  247. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +2 -0
  248. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +6 -0
  249. package/dist/chunks/cli-1.1.13-xpwxcmvd.mjs +2 -0
  250. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +2 -0
  251. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +4 -0
  253. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +2 -0
  254. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +2 -0
  255. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +20 -0
  256. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +2 -0
  257. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +2 -0
  258. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +4 -0
  259. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +4 -0
  260. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +2 -0
  261. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +18 -0
  262. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +5 -0
  263. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +2 -0
  264. package/dist/chunks/client-1.1.13-6axfwqya.mjs +1 -0
  265. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +1 -0
  266. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +3 -0
  267. package/dist/chunks/config-1.1.13-58bj6t43.mjs +1 -0
  268. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +1 -0
  269. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +1 -0
  270. package/dist/chunks/context-1.1.13-04y3svxc.mjs +1 -0
  271. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +1 -0
  272. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +1 -0
  273. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +1 -0
  274. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +9 -0
  275. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +1 -0
  276. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +1 -0
  277. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +1 -0
  278. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +1 -0
  279. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +1526 -0
  280. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +1 -0
  281. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +1 -0
  282. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +1 -0
  283. package/dist/chunks/diff-1.1.13-d31m696z.mjs +1 -0
  284. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +1 -0
  285. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +1 -0
  286. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +1 -0
  287. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +13 -0
  288. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +1 -0
  289. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +1 -0
  290. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +1 -0
  291. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +1 -0
  292. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +1 -0
  293. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +1 -0
  294. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +1 -0
  295. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +1 -0
  296. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +1 -0
  297. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +1 -0
  298. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +2 -0
  299. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +1 -0
  301. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +1 -0
  302. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +1 -0
  304. package/dist/chunks/git-1.1.13-n4743t7m.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +1 -0
  306. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +4 -0
  307. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +1 -0
  308. package/dist/chunks/headless-1.1.13-me11khs4.mjs +2 -0
  309. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +6 -0
  310. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +1 -0
  311. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +3 -0
  312. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +1 -0
  313. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +79 -0
  314. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +3 -0
  315. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +1 -0
  316. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +1 -0
  317. package/dist/chunks/index-1.1.13-1magnv9t.mjs +1 -0
  318. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +1 -0
  319. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +1 -0
  320. package/dist/chunks/index-1.1.13-5fffrw39.mjs +23 -0
  321. package/dist/chunks/index-1.1.13-7v1v2795.mjs +1 -0
  322. package/dist/chunks/index-1.1.13-89b63y1a.mjs +1 -0
  323. package/dist/chunks/index-1.1.13-9hmkds89.mjs +1 -0
  324. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +1 -0
  325. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +9 -0
  326. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +9 -0
  327. package/dist/chunks/index-1.1.13-pq81pd76.mjs +2 -0
  328. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +1 -0
  329. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +1 -0
  330. package/dist/chunks/index-1.1.13-qncvk76v.mjs +1 -0
  331. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +2 -0
  332. package/dist/chunks/index-1.1.13-sqz3new4.mjs +1 -0
  333. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +1 -0
  334. package/dist/chunks/index-1.1.13-tseyy72z.mjs +1 -0
  335. package/dist/chunks/index-1.1.13-v219xtkm.mjs +1 -0
  336. package/dist/chunks/index-1.1.13-vbws03kk.mjs +30 -0
  337. package/dist/chunks/index-1.1.13-vpewasbk.mjs +1 -0
  338. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +5 -0
  339. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +1 -0
  340. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +1 -0
  341. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +1 -0
  342. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +1 -0
  343. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +870 -0
  344. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +1 -0
  345. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +149 -0
  346. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +1 -0
  347. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +1 -0
  348. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +1 -0
  349. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +2 -0
  350. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +2 -0
  351. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +1 -0
  352. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +1 -0
  353. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +1 -0
  354. package/dist/chunks/log-1.1.13-j05vnw45.mjs +1 -0
  355. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +1 -0
  356. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +4 -0
  359. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +17 -0
  360. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +1 -0
  361. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +72 -0
  362. package/dist/chunks/model-1.1.13-e9231b6a.mjs +2 -0
  363. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +1 -0
  364. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +12 -0
  365. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +1 -0
  366. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +14 -0
  367. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +1 -0
  368. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +1 -0
  369. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +1 -0
  370. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +1 -0
  371. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +1 -0
  372. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +3 -0
  373. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +1 -0
  374. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +1 -0
  375. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +1 -0
  376. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +29 -0
  377. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +1 -0
  378. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +9 -0
  379. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +2 -0
  380. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +57 -0
  381. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +1 -0
  382. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +1 -0
  383. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +9 -0
  384. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +1 -0
  385. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +1 -0
  386. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +1 -0
  387. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +13 -0
  388. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +2 -0
  389. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +1 -0
  390. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +6 -0
  391. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +1 -0
  392. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +26 -0
  393. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +1 -0
  394. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +5 -0
  395. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +2 -0
  396. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +1 -0
  397. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +1 -0
  398. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +1 -0
  399. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +1 -0
  400. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +1 -0
  401. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +1 -0
  402. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +2 -0
  403. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +1 -0
  404. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +1 -0
  405. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +10 -0
  406. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +1 -0
  407. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +1 -0
  408. package/dist/chunks/session-1.1.13-je6e2q22.mjs +2 -0
  409. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +1 -0
  410. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +1 -0
  411. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +1 -0
  412. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +1 -0
  413. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +5 -0
  414. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +1 -0
  415. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +1 -0
  416. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +1 -0
  417. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +1 -0
  418. package/dist/chunks/state-1.1.13-m97vrspe.mjs +1 -0
  419. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +6 -0
  420. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +1 -0
  421. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +1 -0
  422. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +1 -0
  423. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +1 -0
  424. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +1 -0
  425. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +1 -0
  426. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +1 -0
  427. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +1 -0
  428. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +1 -0
  429. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +1 -0
  430. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +1 -0
  431. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +1 -0
  432. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +1 -0
  433. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +1 -0
  434. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +1 -0
  435. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +69 -0
  436. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +1 -0
  437. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +4 -0
  438. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +72 -0
  439. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +1 -0
  440. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +7 -0
  441. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +14 -0
  442. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +1 -0
  443. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +1 -0
  444. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +1 -0
  445. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +1 -0
  446. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +1 -0
  447. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +13 -0
  448. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +1 -0
  449. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +132 -0
  450. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +1 -0
  451. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +1 -0
  452. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +1 -0
  453. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +7 -0
  454. package/dist/cli.mjs +2 -2
  455. package/dist/help-agents.txt +1 -1
  456. package/dist/help-auth.txt +1 -1
  457. package/dist/help-auto-mode.txt +1 -1
  458. package/dist/help-doctor.txt +1 -1
  459. package/dist/help-install.txt +1 -1
  460. package/dist/help-mcp.txt +1 -1
  461. package/dist/help-plugin.txt +1 -1
  462. package/dist/help-plugins.txt +1 -1
  463. package/dist/help-setup-token.txt +1 -1
  464. package/dist/help-update.txt +1 -1
  465. package/dist/help-upgrade.txt +1 -1
  466. package/dist/help-workflow.txt +1 -1
  467. package/dist/help.txt +3 -4
  468. package/install.cjs +2 -2
  469. package/package.json +9 -9
  470. package/dist/chunks/AgentTool-1.1.12-z67tcj7m.mjs +0 -1
  471. package/dist/chunks/App-1.1.12-6m8fx08p.mjs +0 -1
  472. package/dist/chunks/ApproveApiKey-1.1.12-9rdxzxf0.mjs +0 -1
  473. package/dist/chunks/AssistantSessionChooser-1.1.12-6rckmhy4.mjs +0 -1
  474. package/dist/chunks/AutoModeOptInDialog-1.1.12-xdatx4qm.mjs +0 -1
  475. package/dist/chunks/BypassPermissionsModeDialog-1.1.12-p6nvmxpz.mjs +0 -1
  476. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.12-j1dkkgzh.mjs +0 -1
  477. package/dist/chunks/ConsoleOAuthFlow-1.1.12-9pjvfqhh.mjs +0 -1
  478. package/dist/chunks/DiffDialog-1.1.12-k3538pgr.mjs +0 -6
  479. package/dist/chunks/Doctor-1.1.12-8xnts7st.mjs +0 -1
  480. package/dist/chunks/ExplorerDialog-1.1.12-t2ees4c0.mjs +0 -6
  481. package/dist/chunks/Grove-1.1.12-z9nf34rs.mjs +0 -1
  482. package/dist/chunks/ITermBackend-1.1.12-dnkmjp57.mjs +0 -1
  483. package/dist/chunks/InvalidConfigDialog-1.1.12-hb5hwbwd.mjs +0 -1
  484. package/dist/chunks/InvalidSettingsDialog-1.1.12-7q3pvsg2.mjs +0 -1
  485. package/dist/chunks/MigrationDialog-1.1.12-w85qg0sk.mjs +0 -1
  486. package/dist/chunks/Onboarding-1.1.12-3p5fgrdr.mjs +0 -1
  487. package/dist/chunks/ProviderManager-1.1.12-sqzzs4qj.mjs +0 -1
  488. package/dist/chunks/REPL-1.1.12-ejf4py4g.mjs +0 -1
  489. package/dist/chunks/ResumeConversation-1.1.12-z1gm7qjh.mjs +0 -1
  490. package/dist/chunks/SnapshotUpdateDialog-1.1.12-ktkjmqt0.mjs +0 -1
  491. package/dist/chunks/TeleportProgress-1.1.12-df4xpg25.mjs +0 -1
  492. package/dist/chunks/TeleportRepoMismatchDialog-1.1.12-2jttx03a.mjs +0 -1
  493. package/dist/chunks/TeleportResumeWrapper-1.1.12-bsh7aza9.mjs +0 -1
  494. package/dist/chunks/TmuxBackend-1.1.12-1hm6hjzf.mjs +0 -9
  495. package/dist/chunks/ToolSearchTool-1.1.12-heqpnxfc.mjs +0 -1
  496. package/dist/chunks/TrustDialog-1.1.12-nqtr7drj.mjs +0 -1
  497. package/dist/chunks/activeProvider-1.1.12-36c5q5d7.mjs +0 -1
  498. package/dist/chunks/add-dir-1.1.12-4r3h4r9d.mjs +0 -1
  499. package/dist/chunks/agentTypes-1.1.12-xjtxhm9n.mjs +0 -1
  500. package/dist/chunks/agents-1.1.12-5a1wg8yy.mjs +0 -110
  501. package/dist/chunks/agents-1.1.12-yq791fds.mjs +0 -3
  502. package/dist/chunks/api-1.1.12-w7wkenbt.mjs +0 -1
  503. package/dist/chunks/asciicast-1.1.12-k7kngvg3.mjs +0 -1
  504. package/dist/chunks/assistant-1.1.12-n50thbh3.mjs +0 -1
  505. package/dist/chunks/auth-1.1.12-0qp19bt1.mjs +0 -1
  506. package/dist/chunks/auth-1.1.12-9a3a2p9d.mjs +0 -1
  507. package/dist/chunks/autoMode-1.1.12-zn10hew4.mjs +0 -48
  508. package/dist/chunks/autoUpdater-1.1.12-s1tcgwnw.mjs +0 -1
  509. package/dist/chunks/backgroundHousekeeping-1.1.12-6hfegmgt.mjs +0 -1
  510. package/dist/chunks/branch-1.1.12-92zy497f.mjs +0 -4
  511. package/dist/chunks/bridge-1.1.12-fmkkv0ft.mjs +0 -2
  512. package/dist/chunks/bridgeConfig-1.1.12-6ef9yk1w.mjs +0 -1
  513. package/dist/chunks/bridgeEnabled-1.1.12-h641n63k.mjs +0 -1
  514. package/dist/chunks/bridgeMain-1.1.12-4cgwnkv3.mjs +0 -88
  515. package/dist/chunks/bridgePointer-1.1.12-kfyejqjb.mjs +0 -1
  516. package/dist/chunks/btw-1.1.12-dnt55cvn.mjs +0 -1
  517. package/dist/chunks/buddy-1.1.12-2qy9cqkv.mjs +0 -3
  518. package/dist/chunks/cache-probe-1.1.12-y10v5wg0.mjs +0 -21
  519. package/dist/chunks/cacheStats-1.1.12-z78x71tj.mjs +0 -4
  520. package/dist/chunks/caches-1.1.12-rg9yrcpg.mjs +0 -1
  521. package/dist/chunks/claudeDesktop-1.1.12-4cwvvrgp.mjs +0 -1
  522. package/dist/chunks/claudemd-1.1.12-k6g88gh4.mjs +0 -1
  523. package/dist/chunks/clear-1.1.12-dbbxf36q.mjs +0 -1
  524. package/dist/chunks/clearTerminal-1.1.12-5t5v4w1p.mjs +0 -1
  525. package/dist/chunks/cli-1.1.12-03j3j1bx.mjs +0 -5
  526. package/dist/chunks/cli-1.1.12-03wcx04d.mjs +0 -4
  527. package/dist/chunks/cli-1.1.12-06rfexx7.mjs +0 -2
  528. package/dist/chunks/cli-1.1.12-074txgfh.mjs +0 -12
  529. package/dist/chunks/cli-1.1.12-0te4nxph.mjs +0 -3
  530. package/dist/chunks/cli-1.1.12-141j9tb0.mjs +0 -8
  531. package/dist/chunks/cli-1.1.12-14f97qyv.mjs +0 -2
  532. package/dist/chunks/cli-1.1.12-14n2vprd.mjs +0 -2
  533. package/dist/chunks/cli-1.1.12-1kpyfq9h.mjs +0 -3
  534. package/dist/chunks/cli-1.1.12-1n54vqtf.mjs +0 -1
  535. package/dist/chunks/cli-1.1.12-1v1j4j93.mjs +0 -2
  536. package/dist/chunks/cli-1.1.12-1w6d2zap.mjs +0 -3
  537. package/dist/chunks/cli-1.1.12-23j4qrhe.mjs +0 -24
  538. package/dist/chunks/cli-1.1.12-24hecrkb.mjs +0 -2
  539. package/dist/chunks/cli-1.1.12-2jkk9gdn.mjs +0 -2
  540. package/dist/chunks/cli-1.1.12-2nzqqw4h.mjs +0 -2
  541. package/dist/chunks/cli-1.1.12-2rsbwq0w.mjs +0 -2
  542. package/dist/chunks/cli-1.1.12-2sfgep06.mjs +0 -2
  543. package/dist/chunks/cli-1.1.12-30xcatmk.mjs +0 -2
  544. package/dist/chunks/cli-1.1.12-3avc8vy5.mjs +0 -2
  545. package/dist/chunks/cli-1.1.12-3nh3r36s.mjs +0 -2
  546. package/dist/chunks/cli-1.1.12-3rcvzpnf.mjs +0 -2
  547. package/dist/chunks/cli-1.1.12-3ytes8mc.mjs +0 -2
  548. package/dist/chunks/cli-1.1.12-4270h6mb.mjs +0 -2
  549. package/dist/chunks/cli-1.1.12-42p6d7f9.mjs +0 -2
  550. package/dist/chunks/cli-1.1.12-46wkbg3h.mjs +0 -24
  551. package/dist/chunks/cli-1.1.12-46xs6yv5.mjs +0 -2
  552. package/dist/chunks/cli-1.1.12-4q37r7c7.mjs +0 -2
  553. package/dist/chunks/cli-1.1.12-4v2wmqm5.mjs +0 -2
  554. package/dist/chunks/cli-1.1.12-4xwk18f5.mjs +0 -2
  555. package/dist/chunks/cli-1.1.12-52z4wbfk.mjs +0 -2
  556. package/dist/chunks/cli-1.1.12-53smjkkn.mjs +0 -2
  557. package/dist/chunks/cli-1.1.12-5c6amx7a.mjs +0 -2
  558. package/dist/chunks/cli-1.1.12-5dbxwy0d.mjs +0 -5408
  559. package/dist/chunks/cli-1.1.12-5ebdya2v.mjs +0 -2
  560. package/dist/chunks/cli-1.1.12-5epjf6b6.mjs +0 -2
  561. package/dist/chunks/cli-1.1.12-5n60hab1.mjs +0 -2
  562. package/dist/chunks/cli-1.1.12-5phn452s.mjs +0 -2
  563. package/dist/chunks/cli-1.1.12-5qar5rtd.mjs +0 -2
  564. package/dist/chunks/cli-1.1.12-5wda517s.mjs +0 -24
  565. package/dist/chunks/cli-1.1.12-6492m2bk.mjs +0 -3
  566. package/dist/chunks/cli-1.1.12-6h4jsnrb.mjs +0 -2
  567. package/dist/chunks/cli-1.1.12-6hs980bz.mjs +0 -4
  568. package/dist/chunks/cli-1.1.12-6kn2n3qt.mjs +0 -2
  569. package/dist/chunks/cli-1.1.12-6nk81f9n.mjs +0 -2
  570. package/dist/chunks/cli-1.1.12-6p7q4hd1.mjs +0 -3
  571. package/dist/chunks/cli-1.1.12-6w4t0de0.mjs +0 -66
  572. package/dist/chunks/cli-1.1.12-7009ycac.mjs +0 -2
  573. package/dist/chunks/cli-1.1.12-71evpmpb.mjs +0 -2
  574. package/dist/chunks/cli-1.1.12-7c33mey4.mjs +0 -17
  575. package/dist/chunks/cli-1.1.12-7fgcfdc9.mjs +0 -2
  576. package/dist/chunks/cli-1.1.12-7p6yz3vy.mjs +0 -2
  577. package/dist/chunks/cli-1.1.12-7v3c8nf8.mjs +0 -2
  578. package/dist/chunks/cli-1.1.12-7w47edrg.mjs +0 -2
  579. package/dist/chunks/cli-1.1.12-81527bdh.mjs +0 -2
  580. package/dist/chunks/cli-1.1.12-8e1x1ne0.mjs +0 -2
  581. package/dist/chunks/cli-1.1.12-8f8r3ncx.mjs +0 -6
  582. package/dist/chunks/cli-1.1.12-8fpt1x4e.mjs +0 -2
  583. package/dist/chunks/cli-1.1.12-8kym0ef6.mjs +0 -3
  584. package/dist/chunks/cli-1.1.12-8nsx4xmd.mjs +0 -2
  585. package/dist/chunks/cli-1.1.12-8vqxb580.mjs +0 -2
  586. package/dist/chunks/cli-1.1.12-916jr8n9.mjs +0 -3
  587. package/dist/chunks/cli-1.1.12-95neb0qs.mjs +0 -2
  588. package/dist/chunks/cli-1.1.12-9ebacb10.mjs +0 -2
  589. package/dist/chunks/cli-1.1.12-9f1q50xe.mjs +0 -5
  590. package/dist/chunks/cli-1.1.12-9rhhwnqq.mjs +0 -18
  591. package/dist/chunks/cli-1.1.12-9zcjp5sz.mjs +0 -25
  592. package/dist/chunks/cli-1.1.12-a5k4ztc0.mjs +0 -2
  593. package/dist/chunks/cli-1.1.12-aee47rfb.mjs +0 -2
  594. package/dist/chunks/cli-1.1.12-afkfmm9p.mjs +0 -4
  595. package/dist/chunks/cli-1.1.12-b2khpv7n.mjs +0 -2
  596. package/dist/chunks/cli-1.1.12-bc08z4xe.mjs +0 -2
  597. package/dist/chunks/cli-1.1.12-bjra5k78.mjs +0 -12
  598. package/dist/chunks/cli-1.1.12-bwz4w7h6.mjs +0 -2
  599. package/dist/chunks/cli-1.1.12-c2gz12r6.mjs +0 -6
  600. package/dist/chunks/cli-1.1.12-c2pssp70.mjs +0 -2
  601. package/dist/chunks/cli-1.1.12-c40rcer1.mjs +0 -133
  602. package/dist/chunks/cli-1.1.12-c4rttvkn.mjs +0 -6
  603. package/dist/chunks/cli-1.1.12-c5qeebez.mjs +0 -2
  604. package/dist/chunks/cli-1.1.12-c5qghmz7.mjs +0 -45
  605. package/dist/chunks/cli-1.1.12-cehv7hpf.mjs +0 -2
  606. package/dist/chunks/cli-1.1.12-cv3yy30x.mjs +0 -2
  607. package/dist/chunks/cli-1.1.12-cxgcszn5.mjs +0 -2
  608. package/dist/chunks/cli-1.1.12-d1nm8nza.mjs +0 -4
  609. package/dist/chunks/cli-1.1.12-d51fm3w8.mjs +0 -2
  610. package/dist/chunks/cli-1.1.12-d7rpenw1.mjs +0 -2
  611. package/dist/chunks/cli-1.1.12-dbebv805.mjs +0 -2
  612. package/dist/chunks/cli-1.1.12-ddtnjfs6.mjs +0 -2
  613. package/dist/chunks/cli-1.1.12-dgfste25.mjs +0 -3
  614. package/dist/chunks/cli-1.1.12-djycjsgd.mjs +0 -16
  615. package/dist/chunks/cli-1.1.12-dtv1b9yb.mjs +0 -2
  616. package/dist/chunks/cli-1.1.12-dyrae0ap.mjs +0 -17
  617. package/dist/chunks/cli-1.1.12-dz2c907x.mjs +0 -2
  618. package/dist/chunks/cli-1.1.12-e12y7jsd.mjs +0 -2
  619. package/dist/chunks/cli-1.1.12-ekjf9eqs.mjs +0 -2
  620. package/dist/chunks/cli-1.1.12-ep5dsvhp.mjs +0 -2
  621. package/dist/chunks/cli-1.1.12-eyp8nyhg.mjs +0 -9
  622. package/dist/chunks/cli-1.1.12-f9r3wz7j.mjs +0 -2
  623. package/dist/chunks/cli-1.1.12-fcmw5w0b.mjs +0 -2
  624. package/dist/chunks/cli-1.1.12-fhakaf4h.mjs +0 -2
  625. package/dist/chunks/cli-1.1.12-fkqwvtrq.mjs +0 -2
  626. package/dist/chunks/cli-1.1.12-fpn24m0s.mjs +0 -2
  627. package/dist/chunks/cli-1.1.12-fww07vcc.mjs +0 -20
  628. package/dist/chunks/cli-1.1.12-fx9tstdr.mjs +0 -4
  629. package/dist/chunks/cli-1.1.12-fy2fghxn.mjs +0 -6
  630. package/dist/chunks/cli-1.1.12-fzme9j9v.mjs +0 -2
  631. package/dist/chunks/cli-1.1.12-g42nmgyj.mjs +0 -2
  632. package/dist/chunks/cli-1.1.12-g74smv34.mjs +0 -2
  633. package/dist/chunks/cli-1.1.12-gcneaf27.mjs +0 -9
  634. package/dist/chunks/cli-1.1.12-gj4qv6k2.mjs +0 -2
  635. package/dist/chunks/cli-1.1.12-gj7b8n1z.mjs +0 -4
  636. package/dist/chunks/cli-1.1.12-gwf0e4mf.mjs +0 -2
  637. package/dist/chunks/cli-1.1.12-h7y15004.mjs +0 -21
  638. package/dist/chunks/cli-1.1.12-hg1d1fgx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.12-hz5fe64e.mjs +0 -2
  640. package/dist/chunks/cli-1.1.12-j5w0mkzd.mjs +0 -2
  641. package/dist/chunks/cli-1.1.12-j66wgyhx.mjs +0 -2
  642. package/dist/chunks/cli-1.1.12-jcdbxf8s.mjs +0 -2
  643. package/dist/chunks/cli-1.1.12-jespejyn.mjs +0 -2
  644. package/dist/chunks/cli-1.1.12-jjjbjcg7.mjs +0 -2
  645. package/dist/chunks/cli-1.1.12-jv4zbbhn.mjs +0 -2
  646. package/dist/chunks/cli-1.1.12-k11knrs8.mjs +0 -2
  647. package/dist/chunks/cli-1.1.12-k27ty3ar.mjs +0 -2
  648. package/dist/chunks/cli-1.1.12-kdwqa420.mjs +0 -4
  649. package/dist/chunks/cli-1.1.12-kv8ajcy1.mjs +0 -6
  650. package/dist/chunks/cli-1.1.12-kzy42jsj.mjs +0 -2
  651. package/dist/chunks/cli-1.1.12-ma7hkjc4.mjs +0 -2
  652. package/dist/chunks/cli-1.1.12-mbz4shze.mjs +0 -133
  653. package/dist/chunks/cli-1.1.12-mc1t8ngb.mjs +0 -2
  654. package/dist/chunks/cli-1.1.12-mr8fpbax.mjs +0 -2
  655. package/dist/chunks/cli-1.1.12-mrjjav4s.mjs +0 -59
  656. package/dist/chunks/cli-1.1.12-n1489021.mjs +0 -24
  657. package/dist/chunks/cli-1.1.12-n32xbyrn.mjs +0 -3
  658. package/dist/chunks/cli-1.1.12-n7zph2hg.mjs +0 -2
  659. package/dist/chunks/cli-1.1.12-nfb55a30.mjs +0 -3
  660. package/dist/chunks/cli-1.1.12-nfqrrpxy.mjs +0 -2
  661. package/dist/chunks/cli-1.1.12-ngk7eqab.mjs +0 -2
  662. package/dist/chunks/cli-1.1.12-p4fz1xfs.mjs +0 -58
  663. package/dist/chunks/cli-1.1.12-ph37v1jt.mjs +0 -2
  664. package/dist/chunks/cli-1.1.12-pyh14x7q.mjs +0 -2
  665. package/dist/chunks/cli-1.1.12-q1ejgfk9.mjs +0 -2
  666. package/dist/chunks/cli-1.1.12-q6ks02c2.mjs +0 -2
  667. package/dist/chunks/cli-1.1.12-q8d5kbeh.mjs +0 -2
  668. package/dist/chunks/cli-1.1.12-qv15ch44.mjs +0 -2
  669. package/dist/chunks/cli-1.1.12-r39m68an.mjs +0 -12
  670. package/dist/chunks/cli-1.1.12-r8d25p10.mjs +0 -2
  671. package/dist/chunks/cli-1.1.12-ra14et4a.mjs +0 -2
  672. package/dist/chunks/cli-1.1.12-rambm7kx.mjs +0 -2
  673. package/dist/chunks/cli-1.1.12-rhbwxyg7.mjs +0 -2
  674. package/dist/chunks/cli-1.1.12-rn91dahv.mjs +0 -2
  675. package/dist/chunks/cli-1.1.12-rpazm264.mjs +0 -2
  676. package/dist/chunks/cli-1.1.12-rpfw7xpx.mjs +0 -18
  677. package/dist/chunks/cli-1.1.12-rz34q5jj.mjs +0 -2
  678. package/dist/chunks/cli-1.1.12-rz9vy1pm.mjs +0 -4
  679. package/dist/chunks/cli-1.1.12-saf4srq3.mjs +0 -2
  680. package/dist/chunks/cli-1.1.12-sj6ttn0z.mjs +0 -2
  681. package/dist/chunks/cli-1.1.12-sjzxt59x.mjs +0 -26
  682. package/dist/chunks/cli-1.1.12-sk6tjvhy.mjs +0 -15
  683. package/dist/chunks/cli-1.1.12-sn2zpx90.mjs +0 -2
  684. package/dist/chunks/cli-1.1.12-ss7r3f1r.mjs +0 -50
  685. package/dist/chunks/cli-1.1.12-swkg0qbh.mjs +0 -2
  686. package/dist/chunks/cli-1.1.12-t5bn5vd1.mjs +0 -2
  687. package/dist/chunks/cli-1.1.12-t72ybt8s.mjs +0 -2
  688. package/dist/chunks/cli-1.1.12-t7wqmksj.mjs +0 -2
  689. package/dist/chunks/cli-1.1.12-tnbdhy9q.mjs +0 -3
  690. package/dist/chunks/cli-1.1.12-tr130hgr.mjs +0 -2
  691. package/dist/chunks/cli-1.1.12-tyfp1v92.mjs +0 -2
  692. package/dist/chunks/cli-1.1.12-v395vz88.mjs +0 -202
  693. package/dist/chunks/cli-1.1.12-v6t5mf9a.mjs +0 -2
  694. package/dist/chunks/cli-1.1.12-v92yevq8.mjs +0 -2
  695. package/dist/chunks/cli-1.1.12-vf9e6229.mjs +0 -2
  696. package/dist/chunks/cli-1.1.12-vmt4b9p8.mjs +0 -2
  697. package/dist/chunks/cli-1.1.12-w03v7m0a.mjs +0 -3
  698. package/dist/chunks/cli-1.1.12-w367zd8v.mjs +0 -15
  699. package/dist/chunks/cli-1.1.12-w43nkerm.mjs +0 -2
  700. package/dist/chunks/cli-1.1.12-w85y45c2.mjs +0 -2
  701. package/dist/chunks/cli-1.1.12-w932xt3k.mjs +0 -2
  702. package/dist/chunks/cli-1.1.12-wffm9a57.mjs +0 -2
  703. package/dist/chunks/cli-1.1.12-wgwn4sap.mjs +0 -2
  704. package/dist/chunks/cli-1.1.12-wkfkz74f.mjs +0 -2
  705. package/dist/chunks/cli-1.1.12-x31de1c9.mjs +0 -2
  706. package/dist/chunks/cli-1.1.12-xa0wj1br.mjs +0 -4
  707. package/dist/chunks/cli-1.1.12-xgpj2nyq.mjs +0 -3
  708. package/dist/chunks/cli-1.1.12-xkbvk7gy.mjs +0 -2
  709. package/dist/chunks/cli-1.1.12-xnc015zw.mjs +0 -39
  710. package/dist/chunks/cli-1.1.12-xs6j60cr.mjs +0 -2
  711. package/dist/chunks/cli-1.1.12-xsn6jnhb.mjs +0 -2
  712. package/dist/chunks/cli-1.1.12-xstqyy5j.mjs +0 -2
  713. package/dist/chunks/cli-1.1.12-y138q38p.mjs +0 -2
  714. package/dist/chunks/cli-1.1.12-ydnrj62w.mjs +0 -2
  715. package/dist/chunks/cli-1.1.12-yefhww7n.mjs +0 -25
  716. package/dist/chunks/cli-1.1.12-yk347gmt.mjs +0 -7
  717. package/dist/chunks/cli-1.1.12-ym0xwz0f.mjs +0 -2
  718. package/dist/chunks/cli-1.1.12-ynj3kc2v.mjs +0 -4
  719. package/dist/chunks/cli-1.1.12-yppz4ya2.mjs +0 -15
  720. package/dist/chunks/cli-1.1.12-ytbvkdpk.mjs +0 -2
  721. package/dist/chunks/cli-1.1.12-yy8193ev.mjs +0 -2
  722. package/dist/chunks/cli-1.1.12-z3m10b9z.mjs +0 -2
  723. package/dist/chunks/cli-1.1.12-z6ysegyx.mjs +0 -2
  724. package/dist/chunks/cli-1.1.12-zc3ybemp.mjs +0 -3
  725. package/dist/chunks/cli-1.1.12-zcapjmh1.mjs +0 -34
  726. package/dist/chunks/cli-1.1.12-zdc0tyd1.mjs +0 -4
  727. package/dist/chunks/cli-1.1.12-zdsde34g.mjs +0 -42
  728. package/dist/chunks/cli-1.1.12-zm8dmy4y.mjs +0 -2
  729. package/dist/chunks/cli-1.1.12-zntk4z6s.mjs +0 -2
  730. package/dist/chunks/cli-1.1.12-zpcxbqx6.mjs +0 -2
  731. package/dist/chunks/cli-1.1.12-zpzh9jxt.mjs +0 -2
  732. package/dist/chunks/cli-1.1.12-zrye84ef.mjs +0 -6
  733. package/dist/chunks/cli-1.1.12-zvv4a1gt.mjs +0 -2
  734. package/dist/chunks/cli-1.1.12-zx5fc844.mjs +0 -3
  735. package/dist/chunks/client-1.1.12-vcr1mkrr.mjs +0 -1
  736. package/dist/chunks/color-1.1.12-ct9ya3mq.mjs +0 -1
  737. package/dist/chunks/compact-1.1.12-6r7bss38.mjs +0 -3
  738. package/dist/chunks/config-1.1.12-qqtdd7an.mjs +0 -1
  739. package/dist/chunks/config-1.1.12-y8t2tjqd.mjs +0 -1
  740. package/dist/chunks/constants-1.1.12-cm63efby.mjs +0 -1
  741. package/dist/chunks/context-1.1.12-ygn6bxv9.mjs +0 -1
  742. package/dist/chunks/context-noninteractive-1.1.12-hgswa08e.mjs +0 -1
  743. package/dist/chunks/conversation-1.1.12-tphkevth.mjs +0 -1
  744. package/dist/chunks/copilotHeaders-1.1.12-829bfs3w.mjs +0 -1
  745. package/dist/chunks/copy-1.1.12-r9n6a65j.mjs +0 -9
  746. package/dist/chunks/cost-1.1.12-n2rdrg20.mjs +0 -1
  747. package/dist/chunks/createSSHSession-1.1.12-egtd3eaw.mjs +0 -1
  748. package/dist/chunks/createSession-1.1.12-7gxk01sr.mjs +0 -1
  749. package/dist/chunks/debug-1.1.12-b6cytcv1.mjs +0 -1
  750. package/dist/chunks/defaultActionDeps-1.1.12-rgcrme58.mjs +0 -1526
  751. package/dist/chunks/desktop-1.1.12-eckskas4.mjs +0 -1
  752. package/dist/chunks/detectRepository-1.1.12-ratnwpjs.mjs +0 -1
  753. package/dist/chunks/detection-1.1.12-395de1na.mjs +0 -1
  754. package/dist/chunks/diff-1.1.12-7fqs95xh.mjs +0 -1
  755. package/dist/chunks/doctor-1.1.12-xfvdw00n.mjs +0 -1
  756. package/dist/chunks/doctorDiagnostic-1.1.12-tx9s23b0.mjs +0 -1
  757. package/dist/chunks/earlyInput-1.1.12-61wn1eaf.mjs +0 -1
  758. package/dist/chunks/effort-1.1.12-5q04d93m.mjs +0 -13
  759. package/dist/chunks/engine-1.1.12-8xkrm2vj.mjs +0 -1
  760. package/dist/chunks/envLessBridgeConfig-1.1.12-75x734zy.mjs +0 -1
  761. package/dist/chunks/envUtils-1.1.12-r6n7156t.mjs +0 -1
  762. package/dist/chunks/environmentSelection-1.1.12-x8tyrfwf.mjs +0 -1
  763. package/dist/chunks/environments-1.1.12-dcnn1d4j.mjs +0 -1
  764. package/dist/chunks/errors-1.1.12-nwhp3qgf.mjs +0 -1
  765. package/dist/chunks/exampleCommands-1.1.12-hwkpkwfe.mjs +0 -1
  766. package/dist/chunks/execFileNoThrow-1.1.12-y0sj5esm.mjs +0 -1
  767. package/dist/chunks/exit-1.1.12-gxfn9nw3.mjs +0 -1
  768. package/dist/chunks/explorer-1.1.12-jcxv04by.mjs +0 -1
  769. package/dist/chunks/export-1.1.12-zxnph32a.mjs +0 -2
  770. package/dist/chunks/extra-usage-1.1.12-7w75gnnp.mjs +0 -1
  771. package/dist/chunks/extra-usage-noninteractive-1.1.12-n12v83qy.mjs +0 -1
  772. package/dist/chunks/fast-1.1.12-371erhxm.mjs +0 -1
  773. package/dist/chunks/feedback-1.1.12-s34ps1x1.mjs +0 -14
  774. package/dist/chunks/firstPartyEventLogger-1.1.12-0ncbc73w.mjs +0 -1
  775. package/dist/chunks/git-1.1.12-wxtpf7pf.mjs +0 -1
  776. package/dist/chunks/githubModelsCredentials-1.1.12-tttfpren.mjs +0 -1
  777. package/dist/chunks/goal-1.1.12-800r9esg.mjs +0 -4
  778. package/dist/chunks/grove-1.1.12-hv4r4hb8.mjs +0 -1
  779. package/dist/chunks/growthbook-1.1.12-wxg22631.mjs +0 -1
  780. package/dist/chunks/headless-1.1.12-w864zwd1.mjs +0 -2
  781. package/dist/chunks/heapdump-1.1.12-3jwp0863.mjs +0 -6
  782. package/dist/chunks/help-1.1.12-kzvzc554.mjs +0 -1
  783. package/dist/chunks/hookChains-1.1.12-fkv0v6gn.mjs +0 -3
  784. package/dist/chunks/hooks-1.1.12-p4z7dnw6.mjs +0 -79
  785. package/dist/chunks/hooks-1.1.12-xchahxt5.mjs +0 -1
  786. package/dist/chunks/ide-1.1.12-d8rscp4q.mjs +0 -3
  787. package/dist/chunks/image-processor-napi-1.1.12-s674xy0j.mjs +0 -1
  788. package/dist/chunks/inboundAttachments-1.1.12-x8zn544c.mjs +0 -1
  789. package/dist/chunks/index-1.1.12-02zxjhq3.mjs +0 -1
  790. package/dist/chunks/index-1.1.12-1vh2ahxx.mjs +0 -1
  791. package/dist/chunks/index-1.1.12-2pstq7tv.mjs +0 -9
  792. package/dist/chunks/index-1.1.12-3dbbn7w7.mjs +0 -1
  793. package/dist/chunks/index-1.1.12-5a7hynt4.mjs +0 -1
  794. package/dist/chunks/index-1.1.12-5mfghyec.mjs +0 -1
  795. package/dist/chunks/index-1.1.12-6vq9c1cr.mjs +0 -1
  796. package/dist/chunks/index-1.1.12-7p2zkyey.mjs +0 -1
  797. package/dist/chunks/index-1.1.12-7vsfkxfa.mjs +0 -2
  798. package/dist/chunks/index-1.1.12-9kvmaraj.mjs +0 -23
  799. package/dist/chunks/index-1.1.12-c8fpc37f.mjs +0 -1
  800. package/dist/chunks/index-1.1.12-d9r4f332.mjs +0 -1
  801. package/dist/chunks/index-1.1.12-earg3m7e.mjs +0 -1
  802. package/dist/chunks/index-1.1.12-es1dys6g.mjs +0 -1
  803. package/dist/chunks/index-1.1.12-nghq39nb.mjs +0 -1
  804. package/dist/chunks/index-1.1.12-pbgc1mh4.mjs +0 -1
  805. package/dist/chunks/index-1.1.12-py9kpda6.mjs +0 -30
  806. package/dist/chunks/index-1.1.12-q0mp0qzt.mjs +0 -1
  807. package/dist/chunks/index-1.1.12-rw9g1s3p.mjs +0 -5
  808. package/dist/chunks/index-1.1.12-s6pbqjnw.mjs +0 -1
  809. package/dist/chunks/index-1.1.12-sbwkw323.mjs +0 -1
  810. package/dist/chunks/index-1.1.12-x2xqtds2.mjs +0 -9
  811. package/dist/chunks/index-1.1.12-yqxq96cy.mjs +0 -2
  812. package/dist/chunks/init-1.1.12-t8gxxp63.mjs +0 -1
  813. package/dist/chunks/initReplBridge-1.1.12-bvd6m3pc.mjs +0 -1
  814. package/dist/chunks/ink-1.1.12-c5se9pvd.mjs +0 -1
  815. package/dist/chunks/insights-1.1.12-5keqwf7b.mjs +0 -870
  816. package/dist/chunks/install-1.1.12-623af2vt.mjs +0 -1
  817. package/dist/chunks/install-github-app-1.1.12-e87ed92t.mjs +0 -149
  818. package/dist/chunks/install-slack-app-1.1.12-v4bew01g.mjs +0 -1
  819. package/dist/chunks/instrumentation-1.1.12-0c5g9078.mjs +0 -1
  820. package/dist/chunks/interactiveHelpers-1.1.12-2qc63t4e.mjs +0 -1
  821. package/dist/chunks/keybindings-1.1.12-a0tmf36r.mjs +0 -2
  822. package/dist/chunks/knowledge-1.1.12-363c6h7r.mjs +0 -2
  823. package/dist/chunks/latestVersionCache-1.1.12-fqjqfvtm.mjs +0 -1
  824. package/dist/chunks/loadAgentsDir-1.1.12-ybqbmem8.mjs +0 -1
  825. package/dist/chunks/loadPluginHooks-1.1.12-0szntw6f.mjs +0 -1
  826. package/dist/chunks/log-1.1.12-qb76ahe6.mjs +0 -1
  827. package/dist/chunks/main-1.1.12-e4jqmbqy.mjs +0 -1
  828. package/dist/chunks/managedEnv-1.1.12-gn8k7e7q.mjs +0 -1
  829. package/dist/chunks/mcp-1.1.12-79yf4k4w.mjs +0 -4
  830. package/dist/chunks/mcp-1.1.12-f2qmv0zk.mjs +0 -1
  831. package/dist/chunks/mcp-1.1.12-zfjm905b.mjs +0 -17
  832. package/dist/chunks/mcpb-1.1.12-5ce16qgj.mjs +0 -1
  833. package/dist/chunks/memory-1.1.12-d08yzqtm.mjs +0 -72
  834. package/dist/chunks/model-1.1.12-cba9df5d.mjs +0 -1
  835. package/dist/chunks/model-1.1.12-qqs773ew.mjs +0 -2
  836. package/dist/chunks/node-1.1.12-rvzx843p.mjs +0 -12
  837. package/dist/chunks/oauth-1.1.12-fktc2gey.mjs +0 -1
  838. package/dist/chunks/openaiShim-1.1.12-fhkx69xv.mjs +0 -14
  839. package/dist/chunks/output-style-1.1.12-t539nvk9.mjs +0 -1
  840. package/dist/chunks/package-L37ZVTF4-1.1.12-fhh7sea5.mjs +0 -1
  841. package/dist/chunks/parseConnectUrl-1.1.12-98w20c9k.mjs +0 -1
  842. package/dist/chunks/parser-1.1.12-zafdjj8h.mjs +0 -1
  843. package/dist/chunks/passes-1.1.12-cfx78b3r.mjs +0 -1
  844. package/dist/chunks/permissions-1.1.12-7v81g5xj.mjs +0 -3
  845. package/dist/chunks/permissions-1.1.12-8r0rwpj3.mjs +0 -1
  846. package/dist/chunks/plan-1.1.12-68zd5zhz.mjs +0 -1
  847. package/dist/chunks/plist-1.1.12-qbs00pf8.mjs +0 -1
  848. package/dist/chunks/plugin-1.1.12-thq4hntn.mjs +0 -29
  849. package/dist/chunks/pluginStartupCheck-1.1.12-ewtmw9rh.mjs +0 -1
  850. package/dist/chunks/plugins-1.1.12-3cv1cq26.mjs +0 -9
  851. package/dist/chunks/preActionHook-1.1.12-d2y5qxhy.mjs +0 -2
  852. package/dist/chunks/print-1.1.12-28d4f6k1.mjs +0 -57
  853. package/dist/chunks/privacy-settings-1.1.12-b9svr4k8.mjs +0 -1
  854. package/dist/chunks/process-1.1.12-chcr08qr.mjs +0 -1
  855. package/dist/chunks/processBashCommand-1.1.12-d1yg1qp9.mjs +0 -1
  856. package/dist/chunks/processSlashCommand-1.1.12-yh9sm9jn.mjs +0 -9
  857. package/dist/chunks/prompt-1.1.12-eqqsbefq.mjs +0 -1
  858. package/dist/chunks/prompt-1.1.12-my1cpxq3.mjs +0 -1
  859. package/dist/chunks/prompts-1.1.12-xznb2ad4.mjs +0 -1
  860. package/dist/chunks/protocolHandler-1.1.12-40y37me1.mjs +0 -13
  861. package/dist/chunks/provider-1.1.12-8tmes6kx.mjs +0 -2
  862. package/dist/chunks/providerProfiles-1.1.12-k7xhy2fd.mjs +0 -1
  863. package/dist/chunks/providerValidation-1.1.12-yshek88b.mjs +0 -6
  864. package/dist/chunks/rate-limit-options-1.1.12-gxbek2zs.mjs +0 -1
  865. package/dist/chunks/registerSubcommands-1.1.12-s1q5g1ny.mjs +0 -34
  866. package/dist/chunks/registry-1.1.12-wkqn4ts6.mjs +0 -1
  867. package/dist/chunks/release-notes-1.1.12-qfbyqd13.mjs +0 -5
  868. package/dist/chunks/reload-plugins-1.1.12-5my0jgr4.mjs +0 -2
  869. package/dist/chunks/remote-env-1.1.12-wz3p1bq9.mjs +0 -1
  870. package/dist/chunks/remoteBridgeCore-1.1.12-anebgzqr.mjs +0 -1
  871. package/dist/chunks/remoteSession-1.1.12-4622xyt5.mjs +0 -1
  872. package/dist/chunks/rename-1.1.12-tqghxn33.mjs +0 -1
  873. package/dist/chunks/replBridgeHandle-1.1.12-qc15dz9b.mjs +0 -1
  874. package/dist/chunks/replLauncher-1.1.12-s2k2vt3c.mjs +0 -1
  875. package/dist/chunks/resume-1.1.12-ryzpjeqs.mjs +0 -2
  876. package/dist/chunks/rewind-1.1.12-1fe45fnp.mjs +0 -1
  877. package/dist/chunks/rootOptions-1.1.12-bxwa8e9d.mjs +0 -1
  878. package/dist/chunks/runWorkflowHeadless-1.1.12-8arepd3m.mjs +0 -10
  879. package/dist/chunks/sandbox-adapter-1.1.12-y5vfwm88.mjs +0 -1
  880. package/dist/chunks/sandbox-toggle-1.1.12-bmqzjkd8.mjs +0 -1
  881. package/dist/chunks/session-1.1.12-55r46xq4.mjs +0 -2
  882. package/dist/chunks/sessionDiscovery-1.1.12-dyw8e5zx.mjs +0 -1
  883. package/dist/chunks/sessionFileAccessHooks-1.1.12-xy8msffh.mjs +0 -1
  884. package/dist/chunks/sessionStorage-1.1.12-wt7grqer.mjs +0 -1
  885. package/dist/chunks/settings-1.1.12-qw143rxg.mjs +0 -1
  886. package/dist/chunks/setup-1.1.12-0vs8v1y9.mjs +0 -5
  887. package/dist/chunks/sinks-1.1.12-b8md831f.mjs +0 -1
  888. package/dist/chunks/skills-1.1.12-8axg6568.mjs +0 -1
  889. package/dist/chunks/startupProfiler-1.1.12-m1fc0a1m.mjs +0 -1
  890. package/dist/chunks/startupUpdateCheck-1.1.12-4p3bf4ag.mjs +0 -1
  891. package/dist/chunks/state-1.1.12-ckqt4tjb.mjs +0 -1
  892. package/dist/chunks/stats-1.1.12-wf77dajm.mjs +0 -6
  893. package/dist/chunks/status-1.1.12-901ytber.mjs +0 -1
  894. package/dist/chunks/stickers-1.1.12-aebpa8cn.mjs +0 -1
  895. package/dist/chunks/subprocessEnv-1.1.12-r8kpq95b.mjs +0 -1
  896. package/dist/chunks/tasks-1.1.12-gmrvpykv.mjs +0 -1
  897. package/dist/chunks/teamHelpers-1.1.12-xyywtqtf.mjs +0 -1
  898. package/dist/chunks/teammateModeSnapshot-1.1.12-njh39thh.mjs +0 -1
  899. package/dist/chunks/teleport-1.1.12-rh5bkep5.mjs +0 -1
  900. package/dist/chunks/terminalSetup-1.1.12-ct6aey8w.mjs +0 -1
  901. package/dist/chunks/theme-1.1.12-t5254zeg.mjs +0 -1
  902. package/dist/chunks/thinkback-1.1.12-z360yz4z.mjs +0 -1
  903. package/dist/chunks/thinkback-play-1.1.12-y1wq3m6b.mjs +0 -1
  904. package/dist/chunks/toolPool-1.1.12-p38eypkj.mjs +0 -1
  905. package/dist/chunks/toolSearch-1.1.12-1tghfpxm.mjs +0 -1
  906. package/dist/chunks/tools-1.1.12-ajkb4njh.mjs +0 -1
  907. package/dist/chunks/trustedDevice-1.1.12-yjnkzy41.mjs +0 -1
  908. package/dist/chunks/turndown.cjs-1.1.12-3hpr7sds.mjs +0 -69
  909. package/dist/chunks/types-1.1.12-p981e2xb.mjs +0 -1
  910. package/dist/chunks/ultrareviewCommand-1.1.12-mvab53j9.mjs +0 -4
  911. package/dist/chunks/update-1.1.12-tnmfcwxb.mjs +0 -72
  912. package/dist/chunks/upgrade-1.1.12-d1wcx9qz.mjs +0 -1
  913. package/dist/chunks/upload-1.1.12-pdryb6wx.mjs +0 -7
  914. package/dist/chunks/upstreamproxy-1.1.12-96ye5mxn.mjs +0 -14
  915. package/dist/chunks/url-handler-napi-1.1.12-d3qb4n7w.mjs +0 -1
  916. package/dist/chunks/usage-1.1.12-rbb8qhyy.mjs +0 -1
  917. package/dist/chunks/util-1.1.12-dmfb6s9t.mjs +0 -1
  918. package/dist/chunks/utils-1.1.12-aqwbefma.mjs +0 -1
  919. package/dist/chunks/vim-1.1.12-750k4yz3.mjs +0 -1
  920. package/dist/chunks/watchLoop-1.1.12-ex8pbh7f.mjs +0 -13
  921. package/dist/chunks/watcher-1.1.12-jnj825rr.mjs +0 -1
  922. package/dist/chunks/wiki-1.1.12-pqmnnn75.mjs +0 -132
  923. package/dist/chunks/workflows-1.1.12-81m0dz4r.mjs +0 -1
  924. package/dist/chunks/worktree-1.1.12-fnr58dd9.mjs +0 -1
  925. package/dist/chunks/worktreeModeEnabled-1.1.12-m3y6kfsn.mjs +0 -1
  926. package/dist/chunks/wrapper-1.1.12-gz9canae.mjs +0 -7
  927. /package/dist/chunks/{cli-1.1.12-r3fqsq5b.mjs → cli-1.1.13-8812dqjq.mjs} +0 -0
@@ -1,24 +0,0 @@
1
- import{eY as T,pY as u}from"./cli-1.1.12-2jkk9gdn.mjs";import{H2 as x,K2 as d}from"./cli-1.1.12-mc1t8ngb.mjs";import{Q_ as B,R$ as y,S$ as c,S_ as V,T_ as w}from"./cli-1.1.12-v395vz88.mjs";import{Rka as Y,Uja as R,Uka as h,Wja as D,uka as K,vka as v,zka as m}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as X,ula as W,wla as F}from"./cli-1.1.12-fx9tstdr.mjs";import{Mla as S,zla as N}from"./cli-1.1.12-pyh14x7q.mjs";import{pra as j,qna as O,una as U,wna as k}from"./cli-1.1.12-fpn24m0s.mjs";import{bta as H}from"./cli-1.1.12-2nzqqw4h.mjs";function E(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,G=10){if(process.platform==="win32"){let L=`
2
- $pid = ${String(q)}
3
- $ancestors = @()
4
- for ($i = 0; $i -lt ${G}; $i++) {
5
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
- if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
- $pid = $proc.ParentProcessId
8
- $ancestors += $pid
9
- }
10
- $ancestors -join ','
11
- `.trim(),Q=await V("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map(($)=>parseInt($,10)).filter(($)=>!isNaN($))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await V("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
- `).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function e(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=B(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,G=10){if(process.platform==="win32"){let L=`
13
- $currentPid = ${String(q)}
14
- $commands = @()
15
- for ($i = 0; $i -lt ${G}; $i++) {
16
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
- if (-not $proc) { break }
18
- if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
- if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
- $currentPid = $proc.ParentProcessId
21
- }
22
- $commands -join [char]0
23
- `.trim(),Q=await V("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await V("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var M=H(()=>{w()});import{chmod as g,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as I}from"fs/promises";import{join as Z}from"path";function _(){return Z(N(),"sessions")}function o(){return}async function _q(){if(T()!=null)return!1;let q=o()??"interactive",G=_(),J=Z(G,`${process.pid}.json`);R(async()=>{try{await P(J)}catch{}});try{return await a(G,{recursive:!0,mode:448}),await g(G,448),await I(J,K({pid:process.pid,sessionId:O(),cwd:k(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),U((z)=>{A({sessionId:z})}),!0}catch(z){return Y(`[concurrentSessions] register failed: ${X(z)}`),!1}}async function A(q){let G=Z(_(),`${process.pid}.json`);try{let J=v(await p(G,"utf8"));await I(G,K({...J,...q}))}catch(J){Y(`[concurrentSessions] updatePidFile failed: ${X(J)}`)}}async function Aq(q){if(!q)return;await A({name:q})}async function b(q){await A({bridgeSessionId:q})}async function Bq(){let q=_(),G;try{G=await l(q)}catch(z){if(!W(z))Y(`[concurrentSessions] readdir failed: ${X(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(E(L))J++;else if(y()!=="wsl")P(Z(q,z)).catch(()=>{})}return J}var C=H(()=>{j();D();h();S();F();M();c();m();u()});function Uq(q){f=q,b(r()??null).catch(()=>{})}function n(){return f}function r(){let q=n();return q?x(q.bridgeSessionId):void 0}var f=null;var t=H(()=>{C();d()});
24
- export{E as LX,i as MX,e as NX,qq as OX,M as PX,_q as QX,Aq as RX,b as SX,Bq as TX,C as UX,Uq as VX,n as WX,r as XX,t as YX};
@@ -1,3 +0,0 @@
1
- function j(b){if(b)console.error(b);process.exit(1);return}function k(b){if(b)process.stdout.write(b+`
2
- `);process.exit(0);return}
3
- export{j as n,k as o};
@@ -1,2 +0,0 @@
1
- import{Cla as w,Mla as F}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as D}from"./cli-1.1.12-2nzqqw4h.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
- export{Q as uV,V as vV,L as wV};
@@ -1,3 +0,0 @@
1
- import{Bha as N,Fha as T}from"./cli-1.1.12-3ytes8mc.mjs";import{bta as Q}from"./cli-1.1.12-2nzqqw4h.mjs";function X(){if(!process.stdin.isTTY||F||process.argv.includes("-p")||process.argv.includes("--print"))return;F=!0,A="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),J=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")U(q);q=process.stdin.read()}},process.stdin.on("readable",J)}catch{F=!1}}function U(q){let v=0;while(v<q.length){let M=q[v],z=M.charCodeAt(0);if(z===3){K(),process.exit(130);return}if(z===4){K();return}if(z===127||z===8){if(A.length>0){let O=N(A);A=A.slice(0,-(O.length||1))}v++;continue}if(z===27){v++;while(v<q.length&&!(q.charCodeAt(v)>=64&&q.charCodeAt(v)<=126))v++;if(v<q.length)v++;continue}if(z<32&&z!==9&&z!==10&&z!==13){v++;continue}if(z===13){A+=`
2
- `,v++;continue}A+=M,v++}}function K(){if(!F)return;if(F=!1,J)process.stdin.removeListener("readable",J),J=null}function Y(){K();let q=A.trim();return A="",q}function Z(q){A=q}var A="",F=!1,J=null;var V=Q(()=>{T()});
3
- export{X as L1,K as M1,Y as N1,Z as O1,V as P1};
@@ -1,2 +0,0 @@
1
- function e(){return[]}async function i(){}
2
- export{e as qb,i as rb};
@@ -1,2 +0,0 @@
1
- import{Ud as j,Vd as E}from"./cli-1.1.12-6hs980bz.mjs";import{SL as X,UL as Y,bM as Z,dM as w,hM as _,jM as $,oM as f,pp as W,sp as v}from"./cli-1.1.12-5dbxwy0d.mjs";import{Kca as T,Mga as V,Uga as N,afa as S,mfa as A,xca as Q}from"./cli-1.1.12-v395vz88.mjs";import{Rka as B,Uka as R}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as L,wla as K}from"./cli-1.1.12-fx9tstdr.mjs";import{bta as y}from"./cli-1.1.12-2nzqqw4h.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:Q(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(S()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){V(q)}})()}var J=null,G=null;var U=y(()=>{E();A();R();K();N();f();w();v();T()});
2
- export{d as qd,P as rd,t as sd,U as td};
@@ -1,58 +0,0 @@
1
- import{QR as P,cD as A,dD as p,ej as $,hS as s,hj as T,kB as U,lB as I,mK as F,vr as O,yr as m}from"./cli-1.1.12-5dbxwy0d.mjs";import{U4 as b,V4 as h}from"./cli-1.1.12-djycjsgd.mjs";import{Dka as S,Hka as C}from"./cli-1.1.12-fy2fghxn.mjs";import{ula as k,wla as M}from"./cli-1.1.12-fx9tstdr.mjs";import{Mla as x,zla as y}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as N}from"./cli-1.1.12-2nzqqw4h.mjs";import{join as E}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
-
3
- Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
-
5
- The file {{docPath}} has already been read for you. Here are its current contents:
6
- <current_doc_content>
7
- {{docContents}}
8
- </current_doc_content>
9
-
10
- Document title: {{docTitle}}
11
- {{customInstructions}}
12
-
13
- Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
-
15
- CRITICAL RULES FOR EDITING:
16
- - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
- - If there's an italicized line immediately after the header, preserve it exactly as-is
18
- - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
- - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
- - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
- - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
- - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
- - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
-
25
- DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
- - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
- - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
- - Do NOT duplicate information that's already obvious from reading the source code
29
- - Do NOT document every function, parameter, or line number reference
30
- - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
- - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
-
33
- What TO document:
34
- - High-level architecture and system design
35
- - Non-obvious patterns, conventions, or gotchas
36
- - Key entry points and where to start reading code
37
- - Important design decisions and their rationale
38
- - Critical dependencies or integration points
39
- - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
-
41
- What NOT to document:
42
- - Anything obvious from reading the code itself
43
- - Exhaustive lists of files, functions, or parameters
44
- - Step-by-step implementation details
45
- - Low-level code mechanics
46
- - Information already in CLAUDE.md or other project docs
47
-
48
- Use the Edit tool with file_path: {{docPath}}
49
-
50
- REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function f(){let w=S(),z=E(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function g(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await f(),K=J?`
51
-
52
- DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
- The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
-
55
- "${J}"
56
-
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return g(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{x();C()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=O(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(k(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let L=await R(q,w.path,H.title,H.instructions),_=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of U({agentDefinition:l(),promptMessages:[F({content:L})],toolUseContext:Z,canUseTool:_,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var a=N(()=>{I();T();p();M();m();s();h();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=b(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(P(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
- export{Xw as Wh,Zw as Xh,a as Yh};
@@ -1,2 +0,0 @@
1
- import{Xa as c}from"./cli-1.1.12-v6t5mf9a.mjs";import{vd as v,zd as Wq}from"./cli-1.1.12-2rsbwq0w.mjs";import{Dd as I,Ed as S,Fd as $,Gd as Xq}from"./cli-1.1.12-06rfexx7.mjs";import{Az as Gq,BF as E,CF as Qq,EM as P,HM as Vq,ay as L,by as h,dy as qq,gp as C,ip as r,jD as M,mL as f,nL as Tq,pD as Jq,tz as A,uz as Bq,yu as N,yz as _,zu as e}from"./cli-1.1.12-5dbxwy0d.mjs";import{q4 as s}from"./cli-1.1.12-e12y7jsd.mjs";import{M_ as D,Mga as F,O_ as n,Uga as a,uaa as w,waa as t}from"./cli-1.1.12-v395vz88.mjs";import{Oja as x,Rja as d}from"./cli-1.1.12-k27ty3ar.mjs";import{Rka as j,Uka as o}from"./cli-1.1.12-fy2fghxn.mjs";import{ola as y,wla as l}from"./cli-1.1.12-fx9tstdr.mjs";import{Zsa as p}from"./cli-1.1.12-2nzqqw4h.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.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...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,2 +0,0 @@
1
- import{Ora as M,Pra as Y}from"./cli-1.1.12-fkqwvtrq.mjs";import{bta as W}from"./cli-1.1.12-2nzqqw4h.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
- export{$ as xla,N as yla,X as zla,_ as Ala,j as Bla,U as Cla,I as Dla,S as Ela,T as Fla,c as Gla,L as Hla,w as Ila,z as Jla,O as Kla,x as Lla,k as Mla};
@@ -1,2 +0,0 @@
1
- import{GZ as f,I1 as X,K1 as k,u1 as W}from"./cli-1.1.12-mrjjav4s.mjs";import{m4 as V,n4 as J,p4 as K}from"./cli-1.1.12-gwf0e4mf.mjs";import{q4 as P}from"./cli-1.1.12-e12y7jsd.mjs";import{Xga as U,Yga as O}from"./cli-1.1.12-d1nm8nza.mjs";import{Zsa as Q,bta as L}from"./cli-1.1.12-2nzqqw4h.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as de,N as ee,j as fe};
@@ -1,2 +0,0 @@
1
- import{bta as y}from"./cli-1.1.12-2nzqqw4h.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
2
- export{N as _2,P as $2,M as a3,C as b3,I as c3,L as d3,w as e3,T as f3,R as g3,b as h3,g as i3,l as j3,k as k3};
@@ -1,2 +0,0 @@
1
- import{bta as j}from"./cli-1.1.12-2nzqqw4h.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
- export{q as C3,A as D3,B as E3,D as F3,F as G3,G as H3,H as I3,k as J3};
@@ -1,2 +0,0 @@
1
- import{Fd as x,Gd as o}from"./cli-1.1.12-06rfexx7.mjs";import{Az as u,BL as i,EM as W,HM as t,Tu as Z,Zu as v,gA as K,gp as Y,iA as m,ip as g,jD as M,mL as O,nL as a,pD as l,tz as $,uz as d,yL as R,yz as y}from"./cli-1.1.12-5dbxwy0d.mjs";import{Mga as X,Uga as h}from"./cli-1.1.12-v395vz88.mjs";import{Rka as I,Uka as c}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as V,wla as f}from"./cli-1.1.12-fx9tstdr.mjs";import{pra as _,wna as U}from"./cli-1.1.12-fpn24m0s.mjs";import{bta as C}from"./cli-1.1.12-2nzqqw4h.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
2
- export{Lj as Bd,p as Cd};
@@ -1,12 +0,0 @@
1
- import{w9 as D}from"./cli-1.1.12-mbz4shze.mjs";import{Dka as L,Hka as JG,Rka as W,Uka as a}from"./cli-1.1.12-fy2fghxn.mjs";import{Bla as c,Cla as jG,Mla as GG}from"./cli-1.1.12-pyh14x7q.mjs";import{Ora as U,Pra as g}from"./cli-1.1.12-fkqwvtrq.mjs";import{Bsa as RG,jsa as H}from"./cli-1.1.12-5wda517s.mjs";import{Isa as wG}from"./cli-1.1.12-c2gz12r6.mjs";import{Zsa as WG,bta as j,cta as e}from"./cli-1.1.12-2nzqqw4h.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
- \r
4
- `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
- `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
- `;let $=n(K);K.write(`${w}\r
8
- `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
- `;let V=n(Y);Y.write(`${$}\r
11
- `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.12-d9r4f332.mjs"),import("./index-1.1.12-2pstq7tv.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
- export{hG as $8,p as a9,F as b9,gG as c9,aG as d9,pG as e9,KG as f9,MJ as g9,HJ as h9,OG as i9,I as j9,h as k9,qJ as l9,jJ as m9,UJ as n9,_J as o9,FJ as p9,NJ as q9,TJ as r9,vG as s9};
@@ -1,2 +0,0 @@
1
- import{Bz as Uq,Cz as mq,js as Hq,ks as pq}from"./cli-1.1.12-5dbxwy0d.mjs";import{A4 as Bq,C4 as dq}from"./cli-1.1.12-fzme9j9v.mjs";import{A8 as c,E8 as S,U7 as Nq,V7 as yq,_8 as gq,h5 as Wq,m5 as jq,n5 as Sq}from"./cli-1.1.12-djycjsgd.mjs";import{Aea as Xq,Dea as Lq,L$ as M,P$ as $q,uaa as Gq,waa as Pq,wea as Yq,xea as Dq,yea as k}from"./cli-1.1.12-v395vz88.mjs";import{Tia as N,Via as bq,Wia as E,Xia as Cq}from"./cli-1.1.12-6w4t0de0.mjs";import{Fja as Kq,Gja as Qq,Hja as Vq,Mja as Zq,Nja as Rq}from"./cli-1.1.12-rz34q5jj.mjs";import{Oja as _,Rja as e}from"./cli-1.1.12-k27ty3ar.mjs";import{Rka as Y,Uja as Fq,Uka as Jq,Wja as $J,uka as m,zka as Eq}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as C,vla as P,wla as qq}from"./cli-1.1.12-fx9tstdr.mjs";import{Bsa as kq,jsa as z}from"./cli-1.1.12-5wda517s.mjs";import{ata as ZJ,bta as d,cta as Tq}from"./cli-1.1.12-2nzqqw4h.mjs";var fq,r,s;var t=d(()=>{bq();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 cq,readdir as iq,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(Wq()!=="firstParty"||!jq())return!1;let q=c();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=c();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:i,validateStatus:(L)=>L===200||L===304||L===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 X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}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:i,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,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}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:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,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:X}=P(Q),L=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:X,errorType:L,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 iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.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"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];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 Xq($)}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 cq(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 v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(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 v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))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 L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.12-k6g88gh4.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,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 M();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 L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){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:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.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:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.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:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=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 ${L+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 v(q,K){_("tengu_team_mem_sync_pull",{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){_("tengu_team_mem_sync_push",{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 i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(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"}),vq(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"}),_("tengu_team_mem_push_suppressed",{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 b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.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()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){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 Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=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 Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
2
- export{vq as p,NJ as q,BJ as r,Mq as s,HJ as t,UJ as u,OJ as v,wJ as w};
@@ -1,2 +0,0 @@
1
- import{$n as y,ao as p,tG as O,vG as j}from"./cli-1.1.12-5dbxwy0d.mjs";import{GZ as S,K1 as v,d1 as F,f1 as I,j1 as R}from"./cli-1.1.12-mrjjav4s.mjs";import{n4 as Z,o4 as N,p4 as U}from"./cli-1.1.12-gwf0e4mf.mjs";import{q4 as d}from"./cli-1.1.12-e12y7jsd.mjs";import{Qda as M,aea as E}from"./cli-1.1.12-v395vz88.mjs";import{Oja as H,Rja as b}from"./cli-1.1.12-k27ty3ar.mjs";import{Zsa as k}from"./cli-1.1.12-2nzqqw4h.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
2
- export{x as Ya,l as Za};
@@ -1,2 +0,0 @@
1
- import{Ac as m,Dc as u,Ec as y,zc as l}from"./cli-1.1.12-jespejyn.mjs";import{tG as p,vG as b}from"./cli-1.1.12-5dbxwy0d.mjs";import{K1 as C,d1 as s,f1 as e}from"./cli-1.1.12-mrjjav4s.mjs";import{n4 as i,o4 as r,p4 as g}from"./cli-1.1.12-gwf0e4mf.mjs";import{q4 as M}from"./cli-1.1.12-e12y7jsd.mjs";import{Zsa as h,bta as f}from"./cli-1.1.12-2nzqqw4h.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
- export{T as xc,w as yc};
@@ -1,2 +0,0 @@
1
- import{Kc as k,Lc as P}from"./cli-1.1.12-vf9e6229.mjs";import{Rc as O,Sc as A,Tc as f}from"./cli-1.1.12-saf4srq3.mjs";import{_8 as E,j8 as U,n8 as V,s8 as j}from"./cli-1.1.12-djycjsgd.mjs";import{Kfa as h,Mga as K,Qea as N,Tea as J,Uga as b,_ea as Y,dca as X,eca as H,kca as x,mfa as G,tfa as I}from"./cli-1.1.12-v395vz88.mjs";import{ola as F,wla as L}from"./cli-1.1.12-fx9tstdr.mjs";import{Foa as W,pra as T}from"./cli-1.1.12-fpn24m0s.mjs";import{bta as y}from"./cli-1.1.12-2nzqqw4h.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
- export{d as Fc,l as Gc,S as Hc,u as Ic};
@@ -1,2 +0,0 @@
1
- import{ZX as Xq,bY as wq,fY as vq,gY as c,hY as Sq,pY as Yq}from"./cli-1.1.12-2jkk9gdn.mjs";import{C3 as Cq,J3 as Nq}from"./cli-1.1.12-q8d5kbeh.mjs";import{Mga as p,P$ as Fq,S_ as Oq,T_ as Lq,Uga as jq,jea as z,lea as yq,r$ as xq}from"./cli-1.1.12-v395vz88.mjs";import{Tia as R,Via as Qq,Wia as w,Xia as Vq}from"./cli-1.1.12-6w4t0de0.mjs";import{Rka as G,Uka as Jq,uka as S,vka as j,zka as qq}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as W,qla as v,wla as e}from"./cli-1.1.12-fx9tstdr.mjs";import{Ala as I,Cla as t,Mla as a,zla as s}from"./cli-1.1.12-pyh14x7q.mjs";import{fpa as i,mna as r,nna as Mq,pra as m,qna as d,zqa as h}from"./cli-1.1.12-fpn24m0s.mjs";import{bta as T,cta as Uq}from"./cli-1.1.12-2nzqqw4h.mjs";import{mkdir as Dq,readdir as l,readFile as Zq,unlink as $q,writeFile as u}from"fs/promises";import{join as D}from"path";function _J(q){if(y===q)return;y=q,B()}function WJ(){if(y===void 0)return;y=void 0,B()}function B(){try{Gq.emit()}catch{}}function Kq(q){return D(E(q),bq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await u(Q,String(J))}function HJ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function BJ(q){let J=E(q),Q=await o(q),V;try{V=await z(Q,P);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await l(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}B()}finally{if(V)await V()}}async function UJ(q){let J=await f(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await C(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||y||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(q){return D(s(),"tasks",_q(q))}function A(q,J){return D(E(q),`${_q(J)}.json`)}async function pq(q){let J=E(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=E(q),Q;try{Q=await l(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function xJ(q,J){let Q=await o(q),V;try{V=await z(Q,P);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=A(q,X);return await u($,S(Z,null,2)),B(),X}finally{if(V)await V()}}async function O(q,J){let Q=A(q,J);try{let V=await Zq(Q,"utf-8"),Y=j(V),X=fq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(v(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),p(V),null}}async function Eq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=A(q,J);return await u(X,S(Y,null,2)),B(),Y}async function C(q,J,Q){let V=A(q,J);if(!await O(q,J))return null;let X;try{return X=await z(V,P),await Eq(q,J,Q)}finally{await X?.()}}async function CJ(q,J){let Q=A(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(v(X)==="ENOENT")return!1;throw X}let Y=await f(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await C(q,X.id,{blocks:Z,blockedBy:$})}return B(),!0}catch{return!1}}async function f(q){let J=E(q),Q;try{Q=await l(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function vJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await C(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await C(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function uq(q){return D(E(q),".lock")}async function o(q){await pq(q);let J=uq(q);try{await u(J,"",{flag:"wx"})}catch{}return J}async function SJ(q,J,Q,V={}){let Y=A(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return hq(q,J,Q);let Z;try{Z=await z(Y,P);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await f(q),U=new Set(K.filter((M)=>M.status!=="completed").map((M)=>M.id)),N=$.blockedBy.filter((M)=>U.has(M));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Eq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),p($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function hq(q,J,Q){let V=await o(q),Y;try{Y=await z(V,P);let X=await f(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let U=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(U.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:U.map((_)=>_.id)};return{success:!0,task:await C(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),p(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function zJ(q,J,Q,V){let X=(await f(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await C(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((U)=>`#${U.id} "${U.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,y,EJ,Pq,fq,bq=".highwatermark",P;var Hq=T(()=>{Qq();m();Jq();a();e();Vq();yq();jq();Mq();qq();Yq();wq();Gq=r();EJ=Gq.subscribe;Pq=w(()=>R.enum(["pending","in_progress","completed"])),fq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:Pq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Bq=()=>{};import{mkdirSync as Tq,readFileSync as Iq,writeFileSync as lq}from"fs";import{mkdir as gq,readFile as zq,rm as k,writeFile as oq}from"fs/promises";import{join as b}from"path";function Aq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return b(I(),Aq(q))}function F(q){return b(L(q),"config.json")}function H(q){try{let J=Iq(F(q),"utf-8");return j(J)}catch(J){if(v(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await zq(F(q),"utf-8");return j(J)}catch(J){if(v(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function x(q,J){let Q=L(q);Tq(Q,{recursive:!0}),lq(F(q),S(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),S(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=H(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return x(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=H(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,x(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=H(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,x(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=H(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return x(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=H(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),x(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=H(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return x(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!Sq())return;let Q=J??c(),V=vq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=H(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)x(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=b(q,".git"),Q=null;try{let Y=(await zq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=b(X,"..","..");Q=b(Z,"..")}}catch{}if(Q){let V=await Oq(xq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){h().add(q)}function aJ(q){h().delete(q)}async function eJ(){let q=h();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=H(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==Cq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.12-wkqn4ts6.mjs"),import("./detection-1.1.12-395de1na.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Aq(q),Q=H(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=E(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),B()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var lJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Hq();Yq();Bq();Nq();lJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{_J as xV,WJ as yV,EJ as zV,Pq as AV,HJ as BV,BJ as CV,UJ as DV,OJ as EV,_q as FV,E as GV,pq as HV,xJ as IV,O as JV,C as KV,CJ as LV,f as MV,vJ as NV,SJ as OV,zJ as PV,Hq as QV,n as RV,Bq as SV,lJ as TV,Aq as UV,gJ as VV,L as WV,F as XV,H as YV,nq as ZV,kq as _V,oJ as $V,nJ as aW,kJ as bW,rJ as cW,dJ as dW,rq as eW,iJ as fW,mJ as gW,sJ as hW,tJ as iW,aJ as jW,eJ as kW,mq as lW,sq as mW};
@@ -1,2 +0,0 @@
1
- import{bta as J}from"./cli-1.1.12-2nzqqw4h.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
2
- export{K as Hh,Y as Ih,Z as Jh,V as Kh};
@@ -1,18 +0,0 @@
1
- import{Te as kZ,Ze as XX}from"./cli-1.1.12-w85y45c2.mjs";import{bf as YZ,cf as gQ}from"./cli-1.1.12-mr8fpbax.mjs";import{$H as WZ,$n as n,AI as kJ,As as LQ,BI as JZ,Bl as MX,CA as F0,CI as OJ,DA as i0,DI as WJ,Dk as dZ,Dn as HJ,EA as fJ,EI as ZZ,Ek as tQ,En as DQ,Ey as yZ,FA as BX,FI as QZ,Fy as iQ,GI as XZ,GK as $0,Gq as MZ,Gw as NQ,Hs as U0,II as p0,JI as _0,JK as FZ,Jk as r0,Jq as lQ,KI as PJ,Lk as GZ,MA as mZ,Mk as UJ,Mw as CX,NA as ZX,Rn as GQ,Rs as vQ,Sn as EX,Tn as l,Un as A0,Vx as WQ,Ws as d0,Wx as bX,Xn as Z0,YR as lZ,Yn as B0,Zs as hQ,_E as HQ,aI as RZ,ao as I0,ay as zJ,bF as hX,bI as s0,bS as iZ,bk as VZ,by as RQ,dI as MJ,dy as AX,dz as NZ,ez as rQ,hS as LZ,hz as a0,iB as IX,iz as CZ,jB as DX,jE as FQ,jt as VQ,kE as vX,mt as KX,nG as OQ,qG as gX,tG as j0,uG as QX,uk as u0,vk as pJ,vs as aZ,xI as pZ,ys as FX,zl as qQ,zs as TJ}from"./cli-1.1.12-5dbxwy0d.mjs";import{FY as q0,GY as g0,qY as QJ,rY as nZ}from"./cli-1.1.12-dtv1b9yb.mjs";import{GZ as R0,K1 as f0,PZ as l0,d1 as C,f1 as V,j1 as JJ,t1 as wZ}from"./cli-1.1.12-mrjjav4s.mjs";import{C3 as hJ,J3 as yX}from"./cli-1.1.12-q8d5kbeh.mjs";import{m4 as o,n4 as f,o4 as W,p4 as $}from"./cli-1.1.12-gwf0e4mf.mjs";import{q4 as o0}from"./cli-1.1.12-e12y7jsd.mjs";import{D4 as mJ,N4 as MQ}from"./cli-1.1.12-w43nkerm.mjs";import{P4 as DJ,Q4 as JX}from"./cli-1.1.12-tnbdhy9q.mjs";import{U7 as NJ,V7 as wQ,c5 as tJ,d5 as IQ}from"./cli-1.1.12-djycjsgd.mjs";import{$ba as m0,A_ as t0,B_ as TZ,Mga as eJ,Uba as z0,Uga as BQ,Vba as w0,Vca as cZ,Wca as uZ,Yca as eQ,jda as Q0,rda as IJ,taa as fQ,uaa as M0,waa as CJ}from"./cli-1.1.12-v395vz88.mjs";import{aha as y0,dha as b0,fha as oZ,hha as e0,iha as x0,pha as h0}from"./cli-1.1.12-d1nm8nza.mjs";import{Sha as sJ,cia as AQ}from"./cli-1.1.12-jjjbjcg7.mjs";import{Oja as t,Rja as _J}from"./cli-1.1.12-k27ty3ar.mjs";import{Fka as $Z,Hka as RX,Rka as D0,Uka as dJ}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as v0,wla as aJ}from"./cli-1.1.12-fx9tstdr.mjs";import{Zsa as J0,_sa as FJ,ata as $J,bta as a}from"./cli-1.1.12-2nzqqw4h.mjs";function c0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:TJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&c0(Y)&&Y.retain,q=c0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),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(!c0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!c0(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]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var cJ=a(()=>{_J();LQ()});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===u0)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 G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(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,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(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 KQ(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 CQ(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 uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 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 jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function cQ(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 uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({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 H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function mQ(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 fZ(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 LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),U0({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 pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);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:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
15
- `);U0({value:`ultraplan: cannot launch remote session —
16
- ${U}`,mode:"task-notification"});return}let O=cQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,TQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),TQ=_Q;WY={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=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(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 H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=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,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{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]!==p||J[43]!==T)_=W(C,{flexDirection:"column",children:[b,p,T]}),J[41]=b,J[42]=p,J[43]=T,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let c;if(J[51]!==w||J[52]!==j)c=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=c;else c=J[53];return c}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),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 yJ(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 G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.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=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{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=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}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,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}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=f(H0,{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=f(H0,{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=f(H0,{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=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),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,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}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 G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=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]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,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 G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=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]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(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]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||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),p=b.slice(-nQ),T=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let c;if(J[35]!==Z.filesTouched.length)c=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=c;else c=J[36];if(J[37]!==G||J[38]!==j||J[39]!==c||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,c]}),J[37]=G,J[38]=j,J[39]=c,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[T>0&&W(V,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),p.map(aQ)]}),J[8]=G,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]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||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"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,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 y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{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]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,T;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)T=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,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]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let c;if(J[47]!==D)c=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=c;else c=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==T||J[55]!==_||J[56]!==c||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:T,children:[_,c,g]}),J[52]=X,J[53]=p,J[54]=T,J[55]=_,J[56]=c,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"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: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=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(H++,P=e,e.name===cZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,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 y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(T0)=>{if(T0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let T=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==T||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",T," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=T,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let c;if(J[40]!==A)c=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=c;else c=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,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=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==c||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,c,k,V0]}),J[61]=j,J[62]=c,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(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 NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{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]=N;else N=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=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{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&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let T;if(J[39]!==U||J[40]!==p)T=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=T;else T=J[41];let _;if(J[42]!==b||J[43]!==T)_=W(C,{flexDirection:"column",children:[b,T]}),J[42]=b,J[43]=T,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let c;if(J[48]!==d||J[49]!==_||J[50]!==j)c=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=c;else c=J[51];let g;if(J[52]!==w||J[53]!==c||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:c}),J[52]=w,J[53]=c,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>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},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{TZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["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,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);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,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{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]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=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 d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",T;if(J[34]!==p)T=f(V,{bold:!0,children:p}),J[34]=p,J[35]=T;else T=J[35];let _;if(J[36]!==I||J[37]!==T)_=W(V,{wrap:"wrap",children:[T," ",I]}),J[36]=I,J[37]=T,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let c;if(J[43]===Symbol.for("react.memo_cache_sentinel"))c=f(V,{bold:!0,children:"Output:"}),J[43]=c;else c=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[c,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
17
- `,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=RQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let T0=i.status,jJ=L0.status;if(T0==="running"&&jJ!=="running")return-1;if(T0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await NQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=WQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),T=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...T>0?[W(V,{children:[T," ",T!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),c=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:c})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(TX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.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}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function TX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(cX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(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 cX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{TZ();MX();bX();nZ();AX();cJ();vX();CX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
18
- export{GJ as Ke,VJ as Le,xX as Me,cJ as Ne,LJ as Oe,pQ as Pe,qZ as Qe,Sf as Re,dX as Se};
@@ -1,2 +0,0 @@
1
- import{bta as M}from"./cli-1.1.12-2nzqqw4h.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
- export{W as Eja,Q as Fja,K as Gja,X as Hja,Y as Ija,Z as Jja,y as Kja,G as Lja,h as Mja,w as Nja};
@@ -1,4 +0,0 @@
1
- import{JS as jJ,KS as $V,No as IJ,Po as pJ,Zi as cJ,fL as DJ,gL as BJ,hL as lJ,kS as UJ}from"./cli-1.1.12-5dbxwy0d.mjs";import{Mga as G,P$ as mJ,S_ as p,T_ as fJ,Tda as m,Tea as YJ,Uga as dJ,Y$ as qJ,aaa as gJ,aea as uJ,m$ as WJ,mfa as hJ,r$ as l}from"./cli-1.1.12-v395vz88.mjs";import{_ia as U,aja as PJ}from"./cli-1.1.12-3avc8vy5.mjs";import{Oja as f,Rja as SJ}from"./cli-1.1.12-k27ty3ar.mjs";import{Dka as VJ,Hka as bJ,Rka as Q,Uka as kJ}from"./cli-1.1.12-fy2fghxn.mjs";import{pla as JJ,wla as yJ}from"./cli-1.1.12-fx9tstdr.mjs";import{mna as AJ,nna as zJ}from"./cli-1.1.12-fpn24m0s.mjs";import{Zsa as wJ,bta as _J}from"./cli-1.1.12-2nzqqw4h.mjs";class c{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],q=-1/0,{paths:I,lowerPaths:A,charBits:F,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((F[M]&$)!==$)continue;let B=Z?I[M]:A[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let N=1;N<Y;N++){if(E=B.indexOf(X[N],h+1),E===-1)continue J;y[N]=E;let K=E-h-1;if(K===0)u+=4;else C+=3+K*1;h=E}if(H.length===W&&_+u-C<=q)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=HJ(S,y[N],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((N,K)=>N.fuzzScore-K.fuzzScore),q=H[0].fuzzScore}else if(T>q){let N=0,K=H.length;while(N<K){let d=N+K>>1;if(H[d].fuzzScore<T)N=d+1;else K=d}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!x)x=new c;return x}function vV(){x=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function FJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!x||L.length===0)return;let W=await KJ(J),Z=[...L,...$J,...XJ,...J,...W],V=FJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await x.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=xJ.default(),_=!1,H=X.flatMap((A)=>Y.map((F)=>O.join(A,F))),q=await Promise.all(H.map((A)=>V.readFile(A,{encoding:"utf8"}).catch(()=>null)));for(let[A,F]of q.entries()){if(F===null)continue;$.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await p(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
- `).filter(Boolean),H=OJ(_,V,Y),q=await EJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=p(l(),A,{timeout:1e4,cwd:V}).then(async(j)=>{if(F!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
- `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function KJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],q=await KJ(H);XJ=q;let I=[...q,...H],A=FJ(I);if(A!==r)await W.loadFromFileListAsync(I).done,r=A,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function NJ(){if(v)return;let J=sJ();if(x){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return NJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;NJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=x?VV(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var xJ,x=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();pJ();uJ();zJ();xJ=wJ(cJ(),1);ZJ=AJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
- export{c as di,MJ as ei,jV as fi,vV as gi,RV as hi,GV as ii,NJ as ji,CV as ki,LV as li,ZV as mi};
@@ -1,2 +0,0 @@
1
- import{Ss as I,Vs as X}from"./cli-1.1.12-5dbxwy0d.mjs";import{Cla as H,Mla as W}from"./cli-1.1.12-pyh14x7q.mjs";import{bta as V}from"./cli-1.1.12-2nzqqw4h.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
- export{q as Mc,F as Nc,K as Oc,Q as Pc,R as Qc,_ as Rc,j as Sc,Y as Tc};