@claudiolabs/claudin 1.1.24 → 1.1.26

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 (910) hide show
  1. package/dist/chunks/AgentTool-1.1.26-pww3rzse.mjs +1 -0
  2. package/dist/chunks/App-1.1.26-4vaezrz4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +1 -0
  30. package/dist/chunks/agents-1.1.26-dasaamxr.mjs +3 -0
  31. package/dist/chunks/agents-1.1.26-p33pq694.mjs +110 -0
  32. package/dist/chunks/api-1.1.26-msb1jnzq.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +1 -0
  35. package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +1 -0
  36. package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +1 -0
  41. package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +1 -0
  47. package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.26-20xpa564.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +4 -0
  51. package/dist/chunks/caches-1.1.26-g9aneehb.mjs +1 -0
  52. package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +1 -0
  55. package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.26-01erqdx7.mjs +6 -0
  58. package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +6 -0
  59. package/dist/chunks/cli-1.1.26-132vkvj1.mjs +2 -0
  60. package/dist/chunks/cli-1.1.26-14kc3afb.mjs +3 -0
  61. package/dist/chunks/cli-1.1.26-14n169e4.mjs +2 -0
  62. package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +2 -0
  63. package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +2 -0
  64. package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +2 -0
  65. package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +21 -0
  66. package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +24 -0
  67. package/dist/chunks/cli-1.1.26-28qe790b.mjs +2 -0
  68. package/dist/chunks/cli-1.1.26-2dzytde4.mjs +2 -0
  69. package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +4 -0
  70. package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +2 -0
  71. package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +2 -0
  72. package/dist/chunks/cli-1.1.26-2msjf68r.mjs +2 -0
  73. package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +2 -0
  74. package/dist/chunks/cli-1.1.26-31negda3.mjs +2 -0
  75. package/dist/chunks/cli-1.1.26-32vewh62.mjs +6 -0
  76. package/dist/chunks/cli-1.1.26-38m8cha0.mjs +2 -0
  77. package/dist/chunks/cli-1.1.26-3c44vscp.mjs +2 -0
  78. package/dist/chunks/cli-1.1.26-3gepexgn.mjs +66 -0
  79. package/dist/chunks/cli-1.1.26-3hemew00.mjs +3 -0
  80. package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +2 -0
  81. package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +2 -0
  82. package/dist/chunks/cli-1.1.26-3p2ch222.mjs +2 -0
  83. package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +24 -0
  84. package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +2 -0
  85. package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +2 -0
  86. package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +17 -0
  87. package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +2 -0
  88. package/dist/chunks/cli-1.1.26-516p6zzp.mjs +2 -0
  89. package/dist/chunks/cli-1.1.26-55ayan24.mjs +133 -0
  90. package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +2 -0
  91. package/dist/chunks/cli-1.1.26-5p6865dd.mjs +2 -0
  92. package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +5 -0
  93. package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +2 -0
  94. package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +2 -0
  95. package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +3 -0
  96. package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +2 -0
  97. package/dist/chunks/cli-1.1.26-73s95190.mjs +4 -0
  98. package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +4 -0
  99. package/dist/chunks/cli-1.1.26-79j24jxp.mjs +2 -0
  100. package/dist/chunks/cli-1.1.26-7h1213xq.mjs +1 -0
  101. package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +2 -0
  102. package/dist/chunks/cli-1.1.26-7ssnr221.mjs +4 -0
  103. package/dist/chunks/cli-1.1.26-851khk0n.mjs +2 -0
  104. package/dist/chunks/cli-1.1.26-89reg5gc.mjs +2 -0
  105. package/dist/chunks/cli-1.1.26-8h5tr358.mjs +2 -0
  106. package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +2 -0
  107. package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +2 -0
  108. package/dist/chunks/cli-1.1.26-945rz3ns.mjs +2 -0
  109. package/dist/chunks/cli-1.1.26-97w71raz.mjs +2 -0
  110. package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +2 -0
  111. package/dist/chunks/cli-1.1.26-9mg6k159.mjs +2 -0
  112. package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +2 -0
  113. package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +2 -0
  114. package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +7 -0
  115. package/dist/chunks/cli-1.1.26-agrrdhst.mjs +12 -0
  116. package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +2 -0
  117. package/dist/chunks/cli-1.1.26-arx4za97.mjs +2 -0
  118. package/dist/chunks/cli-1.1.26-avyt487s.mjs +4 -0
  119. package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +24 -0
  120. package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +2 -0
  121. package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +4 -0
  122. package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +2 -0
  123. package/dist/chunks/cli-1.1.26-bs6j2409.mjs +2 -0
  124. package/dist/chunks/cli-1.1.26-bv6bd469.mjs +2 -0
  125. package/dist/chunks/cli-1.1.26-c1s0antn.mjs +2 -0
  126. package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +4 -0
  127. package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +6 -0
  128. package/dist/chunks/cli-1.1.26-chwpygff.mjs +2 -0
  129. package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +4 -0
  130. package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +2 -0
  131. package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +2 -0
  132. package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +2 -0
  133. package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +2 -0
  134. package/dist/chunks/cli-1.1.26-e807ek7h.mjs +3 -0
  135. package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +2 -0
  136. package/dist/chunks/cli-1.1.26-eb90p21t.mjs +10 -0
  137. package/dist/chunks/cli-1.1.26-edg965cj.mjs +2 -0
  138. package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +2 -0
  139. package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +3 -0
  140. package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +3 -0
  141. package/dist/chunks/cli-1.1.26-f624n21e.mjs +2 -0
  142. package/dist/chunks/cli-1.1.26-fcnssbje.mjs +2 -0
  143. package/dist/chunks/cli-1.1.26-ft1bty40.mjs +45 -0
  144. package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +3 -0
  145. package/dist/chunks/cli-1.1.26-g1a27741.mjs +3 -0
  146. package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +2 -0
  147. package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +2 -0
  148. package/dist/chunks/cli-1.1.26-g825efx8.mjs +3 -0
  149. package/dist/chunks/cli-1.1.26-grerq74y.mjs +4 -0
  150. package/dist/chunks/cli-1.1.26-gt65gs27.mjs +2 -0
  151. package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +2 -0
  152. package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +34 -0
  153. package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +2 -0
  154. package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +2 -0
  155. package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +2 -0
  156. package/dist/chunks/cli-1.1.26-hkn2maax.mjs +12 -0
  157. package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +20 -0
  158. package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +24 -0
  159. package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +2 -0
  160. package/dist/chunks/cli-1.1.26-j0pfn318.mjs +2 -0
  161. package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +25 -0
  162. package/dist/chunks/cli-1.1.26-j522h2zj.mjs +2 -0
  163. package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +2 -0
  164. package/dist/chunks/cli-1.1.26-jaq75h39.mjs +2 -0
  165. package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +2 -0
  166. package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +2 -0
  167. package/dist/chunks/cli-1.1.26-jstehae2.mjs +25 -0
  168. package/dist/chunks/cli-1.1.26-jv1escq9.mjs +9 -0
  169. package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +2 -0
  170. package/dist/chunks/cli-1.1.26-k287xjcs.mjs +2 -0
  171. package/dist/chunks/cli-1.1.26-k827q3s7.mjs +2 -0
  172. package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +15 -0
  173. package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +2 -0
  174. package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +50 -0
  175. package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +2 -0
  176. package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +2 -0
  177. package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +5459 -0
  178. package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +20 -0
  179. package/dist/chunks/cli-1.1.26-kz0et72d.mjs +2 -0
  180. package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +2 -0
  181. package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +6 -0
  182. package/dist/chunks/cli-1.1.26-m8mebydd.mjs +3 -0
  183. package/dist/chunks/cli-1.1.26-mb749hsh.mjs +2 -0
  184. package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +2 -0
  185. package/dist/chunks/cli-1.1.26-mvjefec1.mjs +206 -0
  186. package/dist/chunks/cli-1.1.26-n0thzakv.mjs +2 -0
  187. package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +2 -0
  188. package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +2 -0
  189. package/dist/chunks/cli-1.1.26-nkp41vem.mjs +2 -0
  190. package/dist/chunks/cli-1.1.26-np0se5jr.mjs +2 -0
  191. package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +6 -0
  192. package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +60 -0
  193. package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +2 -0
  194. package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +2 -0
  195. package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +2 -0
  196. package/dist/chunks/cli-1.1.26-pf85an2q.mjs +2 -0
  197. package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +2 -0
  198. package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +39 -0
  199. package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +2 -0
  200. package/dist/chunks/cli-1.1.26-pttr45sa.mjs +2 -0
  201. package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +2 -0
  202. package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +2 -0
  203. package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +2 -0
  204. package/dist/chunks/cli-1.1.26-q9msymy9.mjs +7 -0
  205. package/dist/chunks/cli-1.1.26-qf02kggq.mjs +2 -0
  206. package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +2 -0
  207. package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +17 -0
  208. package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +2 -0
  209. package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +3 -0
  210. package/dist/chunks/cli-1.1.26-rbxsj403.mjs +8 -0
  211. package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +2 -0
  212. package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +2 -0
  213. package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +2 -0
  214. package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +2 -0
  215. package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +9 -0
  216. package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +2 -0
  217. package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +2 -0
  218. package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +15 -0
  219. package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +2 -0
  220. package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +2 -0
  221. package/dist/chunks/cli-1.1.26-swdk2n55.mjs +2 -0
  222. package/dist/chunks/cli-1.1.26-sx40y42s.mjs +2 -0
  223. package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +18 -0
  224. package/dist/chunks/cli-1.1.26-t05x8de5.mjs +2 -0
  225. package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +3 -0
  226. package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +2 -0
  227. package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +16 -0
  228. package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +42 -0
  229. package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +2 -0
  230. package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +2 -0
  231. package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +58 -0
  232. package/dist/chunks/cli-1.1.26-v440gznh.mjs +3 -0
  233. package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +2 -0
  234. package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +2 -0
  235. package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +2 -0
  236. package/dist/chunks/cli-1.1.26-vne421we.mjs +133 -0
  237. package/dist/chunks/cli-1.1.26-vpdrb404.mjs +2 -0
  238. package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +2 -0
  239. package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +5 -0
  240. package/dist/chunks/cli-1.1.26-w94mate8.mjs +2 -0
  241. package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +2 -0
  242. package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +2 -0
  243. package/dist/chunks/cli-1.1.26-x64s4kth.mjs +2 -0
  244. package/dist/chunks/cli-1.1.26-x82tpywr.mjs +2 -0
  245. package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +15 -0
  246. package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +2 -0
  247. package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +2 -0
  248. package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +2 -0
  249. package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +2 -0
  250. package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +2 -0
  251. package/dist/chunks/cli-1.1.26-xwryqq86.mjs +2 -0
  252. package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +2 -0
  253. package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +2 -0
  254. package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +2 -0
  255. package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +2 -0
  256. package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +3 -0
  257. package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +2 -0
  258. package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +2 -0
  259. package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +2 -0
  260. package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +2 -0
  261. package/dist/chunks/client-1.1.26-5m13dtqt.mjs +1 -0
  262. package/dist/chunks/color-1.1.26-hc4gee57.mjs +1 -0
  263. package/dist/chunks/compact-1.1.26-k29q801r.mjs +3 -0
  264. package/dist/chunks/config-1.1.26-20jye461.mjs +1 -0
  265. package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +1 -0
  266. package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +1 -0
  267. package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +1 -0
  269. package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +1 -0
  271. package/dist/chunks/copy-1.1.26-t50s90xg.mjs +9 -0
  272. package/dist/chunks/cost-1.1.26-9hp3110j.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +1 -0
  274. package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +1 -0
  275. package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +1534 -0
  277. package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +1 -0
  279. package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +1 -0
  280. package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +1 -0
  281. package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +1 -0
  284. package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +13 -0
  285. package/dist/chunks/engine-1.1.26-jt09gh12.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +1 -0
  287. package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +1 -0
  289. package/dist/chunks/environments-1.1.26-fz5c214j.mjs +1 -0
  290. package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +1 -0
  292. package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +1 -0
  293. package/dist/chunks/exit-1.1.26-55716s6k.mjs +1 -0
  294. package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +1 -0
  295. package/dist/chunks/export-1.1.26-mgccr0ea.mjs +2 -0
  296. package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +1 -0
  297. package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +1 -0
  298. package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +1 -0
  299. package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +14 -0
  300. package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +1 -0
  301. package/dist/chunks/git-1.1.26-0he7ww02.mjs +1 -0
  302. package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +1 -0
  303. package/dist/chunks/goal-1.1.26-n5s850gv.mjs +4 -0
  304. package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +1 -0
  305. package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +6 -0
  307. package/dist/chunks/help-1.1.26-brf53t1m.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +1 -0
  310. package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +79 -0
  311. package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +1 -0
  313. package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +261 -0
  314. package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +1 -0
  315. package/dist/chunks/index-1.1.26-1xcc10z3.mjs +1 -0
  316. package/dist/chunks/index-1.1.26-46seym0e.mjs +1 -0
  317. package/dist/chunks/index-1.1.26-4qsakkwp.mjs +1 -0
  318. package/dist/chunks/index-1.1.26-62wb3t76.mjs +5 -0
  319. package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +2 -0
  320. package/dist/chunks/index-1.1.26-924a690m.mjs +1 -0
  321. package/dist/chunks/index-1.1.26-9hqzzjph.mjs +1 -0
  322. package/dist/chunks/index-1.1.26-bmzaqft1.mjs +1 -0
  323. package/dist/chunks/index-1.1.26-cpb34jqj.mjs +9 -0
  324. package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +1 -0
  325. package/dist/chunks/index-1.1.26-gyna59qe.mjs +1 -0
  326. package/dist/chunks/index-1.1.26-h45zww68.mjs +30 -0
  327. package/dist/chunks/index-1.1.26-matsx1ed.mjs +1 -0
  328. package/dist/chunks/index-1.1.26-pm334xks.mjs +1 -0
  329. package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +1 -0
  330. package/dist/chunks/index-1.1.26-sh5v696c.mjs +1 -0
  331. package/dist/chunks/index-1.1.26-srjepzh3.mjs +2 -0
  332. package/dist/chunks/index-1.1.26-syyhrh9b.mjs +23 -0
  333. package/dist/chunks/index-1.1.26-te4885d9.mjs +1 -0
  334. package/dist/chunks/index-1.1.26-tyjd8na6.mjs +1 -0
  335. package/dist/chunks/index-1.1.26-vk1z10tp.mjs +1 -0
  336. package/dist/chunks/index-1.1.26-vpyv4546.mjs +9 -0
  337. package/dist/chunks/index-1.1.26-xc6bagza.mjs +1 -0
  338. package/dist/chunks/init-1.1.26-bnpznn1w.mjs +1 -0
  339. package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +1 -0
  340. package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +1 -0
  341. package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +870 -0
  342. package/dist/chunks/install-1.1.26-4y132asw.mjs +1 -0
  343. package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +149 -0
  344. package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +1 -0
  345. package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +1 -0
  346. package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +1 -0
  347. package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +2 -0
  348. package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +2 -0
  349. package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +1 -0
  350. package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +1 -0
  352. package/dist/chunks/log-1.1.26-esy3mc70.mjs +1 -0
  353. package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +17 -0
  356. package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +1 -0
  359. package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +72 -0
  360. package/dist/chunks/model-1.1.26-fhssfrx1.mjs +1 -0
  361. package/dist/chunks/model-1.1.26-v4t85ag1.mjs +2 -0
  362. package/dist/chunks/node-1.1.26-y7ck63cv.mjs +15 -0
  363. package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +1 -0
  366. package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +1 -0
  368. package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +1 -0
  369. package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +3 -0
  372. package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +1 -0
  373. package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +2 -0
  378. package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +57 -0
  379. package/dist/chunks/process-1.1.26-nkvbv24g.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +9 -0
  382. package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +1 -0
  383. package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +1 -0
  384. package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +13 -0
  386. package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +26 -0
  391. package/dist/chunks/registry-1.1.26-z88679pc.mjs +1 -0
  392. package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +2 -0
  394. package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +1 -0
  397. package/dist/chunks/rename-1.1.26-vp06xehr.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +1 -0
  400. package/dist/chunks/resume-1.1.26-agfxxd17.mjs +2 -0
  401. package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +1 -0
  403. package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +10 -0
  404. package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +1 -0
  405. package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +1 -0
  406. package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +2 -0
  407. package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +1 -0
  408. package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +1 -0
  409. package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +1 -0
  410. package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +1 -0
  411. package/dist/chunks/setup-1.1.26-2qatx87q.mjs +12 -0
  412. package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +1 -0
  413. package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +1 -0
  414. package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +1 -0
  415. package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +1 -0
  416. package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +1 -0
  417. package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +1 -0
  418. package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +1 -0
  419. package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +1 -0
  420. package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +1 -0
  421. package/dist/chunks/tasks-1.1.26-05xaegas.mjs +1 -0
  422. package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +1 -0
  423. package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +1 -0
  424. package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +1 -0
  425. package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +1 -0
  426. package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +1 -0
  427. package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +1 -0
  428. package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +1 -0
  429. package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +1 -0
  430. package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +1 -0
  431. package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +1 -0
  432. package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +1 -0
  433. package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +69 -0
  434. package/dist/chunks/types-1.1.26-myrve966.mjs +1 -0
  435. package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +4 -0
  436. package/dist/chunks/update-1.1.26-96yjt7je.mjs +72 -0
  437. package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +1 -0
  438. package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +7 -0
  439. package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +14 -0
  440. package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +1 -0
  441. package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +1 -0
  442. package/dist/chunks/util-1.1.26-f55brgp6.mjs +1 -0
  443. package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +1 -0
  444. package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +1 -0
  445. package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +13 -0
  446. package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +1 -0
  447. package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +132 -0
  448. package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +1 -0
  449. package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +1 -0
  450. package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +1 -0
  451. package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +7 -0
  452. package/dist/cli.mjs +2 -2
  453. package/package.json +9 -9
  454. package/dist/chunks/AgentTool-1.1.24-qv4fnna8.mjs +0 -1
  455. package/dist/chunks/App-1.1.24-say2rpmy.mjs +0 -1
  456. package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +0 -1
  457. package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +0 -1
  458. package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +0 -1
  459. package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +0 -1
  460. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +0 -1
  461. package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +0 -1
  462. package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +0 -6
  463. package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +0 -1
  464. package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +0 -6
  465. package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +0 -1
  471. package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +0 -1
  481. package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +0 -1
  483. package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +0 -110
  484. package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +0 -3
  485. package/dist/chunks/api-1.1.24-dkqpat59.mjs +0 -1
  486. package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +0 -1
  487. package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +0 -1
  488. package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +0 -1
  489. package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +0 -1
  490. package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +0 -52
  491. package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +0 -44
  492. package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +0 -1
  493. package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +0 -1
  494. package/dist/chunks/branch-1.1.24-3df7e69c.mjs +0 -4
  495. package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +0 -2
  496. package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +0 -1
  497. package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +0 -1
  498. package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +0 -88
  499. package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +0 -1
  500. package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +0 -1
  501. package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +0 -3
  502. package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +0 -4
  504. package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +0 -1
  505. package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +0 -3
  506. package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +0 -1
  507. package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +0 -1
  508. package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +0 -1
  509. package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +0 -1
  510. package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +0 -2
  511. package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +0 -2
  512. package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +0 -2
  513. package/dist/chunks/cli-1.1.24-12hfxy63.mjs +0 -12
  514. package/dist/chunks/cli-1.1.24-14842nvc.mjs +0 -2
  515. package/dist/chunks/cli-1.1.24-190psky8.mjs +0 -2
  516. package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +0 -2
  517. package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +0 -2
  518. package/dist/chunks/cli-1.1.24-228jgyfg.mjs +0 -2
  519. package/dist/chunks/cli-1.1.24-241znxsf.mjs +0 -2
  520. package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +0 -2
  521. package/dist/chunks/cli-1.1.24-2d5h000x.mjs +0 -2
  522. package/dist/chunks/cli-1.1.24-2g0372f8.mjs +0 -2
  523. package/dist/chunks/cli-1.1.24-2md121ma.mjs +0 -2
  524. package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +0 -5456
  525. package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +0 -2
  526. package/dist/chunks/cli-1.1.24-308y9m4j.mjs +0 -2
  527. package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +0 -3
  528. package/dist/chunks/cli-1.1.24-36c9cxby.mjs +0 -25
  529. package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +0 -2
  530. package/dist/chunks/cli-1.1.24-3n53gv32.mjs +0 -2
  531. package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +0 -12
  532. package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +0 -2
  533. package/dist/chunks/cli-1.1.24-47657dtc.mjs +0 -2
  534. package/dist/chunks/cli-1.1.24-4cre60p8.mjs +0 -2
  535. package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +0 -2
  536. package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +0 -2
  537. package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +0 -2
  538. package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +0 -2
  539. package/dist/chunks/cli-1.1.24-5jpkct15.mjs +0 -2
  540. package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +0 -2
  541. package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +0 -2
  542. package/dist/chunks/cli-1.1.24-5vw5z579.mjs +0 -2
  543. package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +0 -2
  544. package/dist/chunks/cli-1.1.24-6gj496xe.mjs +0 -4
  545. package/dist/chunks/cli-1.1.24-6hqn628p.mjs +0 -2
  546. package/dist/chunks/cli-1.1.24-6mm894jd.mjs +0 -5
  547. package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +0 -2
  548. package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +0 -6
  549. package/dist/chunks/cli-1.1.24-6rneem3p.mjs +0 -2
  550. package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +0 -2
  551. package/dist/chunks/cli-1.1.24-707k0kc7.mjs +0 -133
  552. package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +0 -2
  553. package/dist/chunks/cli-1.1.24-7ahqssha.mjs +0 -2
  554. package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.24-7ga8r482.mjs +0 -2
  556. package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +0 -4
  557. package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +0 -2
  558. package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +0 -2
  559. package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +0 -2
  560. package/dist/chunks/cli-1.1.24-8d439hr1.mjs +0 -2
  561. package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +0 -7
  562. package/dist/chunks/cli-1.1.24-8n6b217h.mjs +0 -50
  563. package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +0 -2
  564. package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +0 -2
  565. package/dist/chunks/cli-1.1.24-8xvf355a.mjs +0 -2
  566. package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +0 -2
  567. package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +0 -2
  568. package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +0 -2
  569. package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +0 -2
  570. package/dist/chunks/cli-1.1.24-9414cm38.mjs +0 -2
  571. package/dist/chunks/cli-1.1.24-985tmwb6.mjs +0 -2
  572. package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +0 -3
  573. package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +0 -2
  574. package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +0 -2
  575. package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +0 -2
  576. package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +0 -58
  577. package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +0 -2
  578. package/dist/chunks/cli-1.1.24-aaym95m1.mjs +0 -2
  579. package/dist/chunks/cli-1.1.24-abyr5pge.mjs +0 -2
  580. package/dist/chunks/cli-1.1.24-agq0y77k.mjs +0 -9
  581. package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +0 -4
  582. package/dist/chunks/cli-1.1.24-b3nksc62.mjs +0 -2
  583. package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +0 -2
  584. package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +0 -2
  585. package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +0 -2
  586. package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +0 -2
  587. package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +0 -2
  588. package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +0 -4
  589. package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +0 -2
  590. package/dist/chunks/cli-1.1.24-c0j54zba.mjs +0 -25
  591. package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +0 -2
  592. package/dist/chunks/cli-1.1.24-c7007hz6.mjs +0 -2
  593. package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +0 -2
  594. package/dist/chunks/cli-1.1.24-chach6xd.mjs +0 -39
  595. package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +0 -4
  596. package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +0 -2
  597. package/dist/chunks/cli-1.1.24-d371v1bp.mjs +0 -42
  598. package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +0 -18
  599. package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +0 -16
  600. package/dist/chunks/cli-1.1.24-e21q73az.mjs +0 -2
  601. package/dist/chunks/cli-1.1.24-e960m296.mjs +0 -2
  602. package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +0 -4
  603. package/dist/chunks/cli-1.1.24-ex7hr389.mjs +0 -3
  604. package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +0 -133
  605. package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +0 -2
  606. package/dist/chunks/cli-1.1.24-f2exw52y.mjs +0 -2
  607. package/dist/chunks/cli-1.1.24-f942w88t.mjs +0 -2
  608. package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +0 -18
  609. package/dist/chunks/cli-1.1.24-fqh8r338.mjs +0 -2
  610. package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +0 -2
  611. package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +0 -34
  612. package/dist/chunks/cli-1.1.24-gb39akdj.mjs +0 -2
  613. package/dist/chunks/cli-1.1.24-gbya20sv.mjs +0 -2
  614. package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +0 -2
  615. package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +0 -2
  616. package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +0 -2
  617. package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +0 -2
  618. package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +0 -4
  619. package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +0 -24
  620. package/dist/chunks/cli-1.1.24-hty94kzp.mjs +0 -2
  621. package/dist/chunks/cli-1.1.24-jetxd54w.mjs +0 -2
  622. package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +0 -2
  623. package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +0 -3
  624. package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +0 -3
  625. package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +0 -2
  626. package/dist/chunks/cli-1.1.24-k1dhj122.mjs +0 -2
  627. package/dist/chunks/cli-1.1.24-k2cach52.mjs +0 -2
  628. package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +0 -2
  629. package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +0 -2
  630. package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +0 -21
  631. package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +0 -2
  632. package/dist/chunks/cli-1.1.24-mgndv90z.mjs +0 -24
  633. package/dist/chunks/cli-1.1.24-mwva78xt.mjs +0 -2
  634. package/dist/chunks/cli-1.1.24-myqjptqw.mjs +0 -2
  635. package/dist/chunks/cli-1.1.24-n18majmw.mjs +0 -8
  636. package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +0 -3
  637. package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +0 -2
  638. package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +0 -2
  640. package/dist/chunks/cli-1.1.24-nhz403dg.mjs +0 -3
  641. package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +0 -2
  642. package/dist/chunks/cli-1.1.24-nsggarp4.mjs +0 -2
  643. package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +0 -2
  644. package/dist/chunks/cli-1.1.24-p2a545ga.mjs +0 -3
  645. package/dist/chunks/cli-1.1.24-p71y388t.mjs +0 -2
  646. package/dist/chunks/cli-1.1.24-pe23qamd.mjs +0 -206
  647. package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +0 -6
  648. package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +0 -2
  649. package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +0 -2
  650. package/dist/chunks/cli-1.1.24-prprq6xe.mjs +0 -2
  651. package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +0 -6
  652. package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +0 -2
  653. package/dist/chunks/cli-1.1.24-qn608pma.mjs +0 -2
  654. package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +0 -2
  655. package/dist/chunks/cli-1.1.24-s241cgaj.mjs +0 -3
  656. package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +0 -2
  657. package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +0 -2
  658. package/dist/chunks/cli-1.1.24-skqekybx.mjs +0 -2
  659. package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +0 -17
  660. package/dist/chunks/cli-1.1.24-sv60tfze.mjs +0 -2
  661. package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +0 -9
  662. package/dist/chunks/cli-1.1.24-t811r68k.mjs +0 -2
  663. package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +0 -24
  664. package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +0 -2
  665. package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +0 -15
  666. package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +0 -2
  667. package/dist/chunks/cli-1.1.24-v322mn8d.mjs +0 -6
  668. package/dist/chunks/cli-1.1.24-vandpwa9.mjs +0 -2
  669. package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +0 -60
  670. package/dist/chunks/cli-1.1.24-vg493phv.mjs +0 -2
  671. package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +0 -2
  672. package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +0 -3
  673. package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +0 -17
  674. package/dist/chunks/cli-1.1.24-vz1y844w.mjs +0 -2
  675. package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +0 -2
  676. package/dist/chunks/cli-1.1.24-w828y1cd.mjs +0 -2
  677. package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +0 -4
  678. package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +0 -3
  679. package/dist/chunks/cli-1.1.24-wmzctccq.mjs +0 -4
  680. package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +0 -2
  681. package/dist/chunks/cli-1.1.24-wshydefj.mjs +0 -2
  682. package/dist/chunks/cli-1.1.24-ww5zft49.mjs +0 -20
  683. package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +0 -2
  684. package/dist/chunks/cli-1.1.24-wygwske9.mjs +0 -2
  685. package/dist/chunks/cli-1.1.24-x1wayra7.mjs +0 -7
  686. package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +0 -2
  687. package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +0 -2
  688. package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +0 -2
  689. package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +0 -1
  690. package/dist/chunks/cli-1.1.24-xdhm369m.mjs +0 -15
  691. package/dist/chunks/cli-1.1.24-xmtasnec.mjs +0 -2
  692. package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +0 -3
  693. package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +0 -2
  694. package/dist/chunks/cli-1.1.24-y4gprept.mjs +0 -2
  695. package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +0 -2
  696. package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +0 -2
  697. package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +0 -4
  698. package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +0 -2
  699. package/dist/chunks/cli-1.1.24-yh801h84.mjs +0 -2
  700. package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +0 -5
  701. package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +0 -6
  702. package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +0 -2
  703. package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +0 -45
  704. package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +0 -2
  705. package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +0 -2
  706. package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +0 -3
  707. package/dist/chunks/cli-1.1.24-z5t424fy.mjs +0 -15
  708. package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +0 -24
  709. package/dist/chunks/cli-1.1.24-zey4mks2.mjs +0 -6
  710. package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +0 -66
  711. package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +0 -2
  712. package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +0 -2
  713. package/dist/chunks/cli-1.1.24-zzy8r310.mjs +0 -3
  714. package/dist/chunks/client-1.1.24-04048dd4.mjs +0 -1
  715. package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +0 -1
  716. package/dist/chunks/compact-1.1.24-191dct4e.mjs +0 -3
  717. package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +0 -1
  718. package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +0 -1
  719. package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +0 -1
  720. package/dist/chunks/context-1.1.24-m2nks3pf.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +0 -1
  724. package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +0 -9
  725. package/dist/chunks/cost-1.1.24-n2977gae.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.24-jmw71620.mjs +0 -1
  728. package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +0 -1534
  730. package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +0 -1
  732. package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +0 -1
  733. package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +0 -1
  737. package/dist/chunks/effort-1.1.24-pj04350n.mjs +0 -13
  738. package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +0 -1
  742. package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +0 -1
  743. package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +0 -1
  746. package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +0 -1
  748. package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +0 -1
  751. package/dist/chunks/fast-1.1.24-b97zvms4.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +0 -1
  754. package/dist/chunks/git-1.1.24-g44mqdr1.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +0 -1
  756. package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +0 -4
  757. package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +0 -1
  758. package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +0 -2
  759. package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +0 -6
  760. package/dist/chunks/help-1.1.24-4pb60ggc.mjs +0 -1
  761. package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +0 -3
  762. package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +0 -79
  763. package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +0 -1
  764. package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +0 -3
  765. package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +0 -1
  766. package/dist/chunks/import-1.1.24-bpnr0awz.mjs +0 -261
  767. package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +0 -1
  768. package/dist/chunks/index-1.1.24-1qfnahpf.mjs +0 -5
  769. package/dist/chunks/index-1.1.24-2c5tqanw.mjs +0 -1
  770. package/dist/chunks/index-1.1.24-3pkassck.mjs +0 -1
  771. package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +0 -30
  772. package/dist/chunks/index-1.1.24-5kf8n97z.mjs +0 -1
  773. package/dist/chunks/index-1.1.24-7nn95an1.mjs +0 -2
  774. package/dist/chunks/index-1.1.24-8005ram7.mjs +0 -1
  775. package/dist/chunks/index-1.1.24-80m0ydka.mjs +0 -2
  776. package/dist/chunks/index-1.1.24-931bwhyw.mjs +0 -9
  777. package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +0 -1
  778. package/dist/chunks/index-1.1.24-bvewx84q.mjs +0 -1
  779. package/dist/chunks/index-1.1.24-hvxes6d7.mjs +0 -1
  780. package/dist/chunks/index-1.1.24-j4v31wtc.mjs +0 -1
  781. package/dist/chunks/index-1.1.24-jt13vzsz.mjs +0 -1
  782. package/dist/chunks/index-1.1.24-k9m56w47.mjs +0 -1
  783. package/dist/chunks/index-1.1.24-ksthp5f5.mjs +0 -1
  784. package/dist/chunks/index-1.1.24-p0dh0w23.mjs +0 -1
  785. package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +0 -1
  786. package/dist/chunks/index-1.1.24-ry33qapt.mjs +0 -23
  787. package/dist/chunks/index-1.1.24-wrwbr5my.mjs +0 -1
  788. package/dist/chunks/index-1.1.24-x476ts8e.mjs +0 -1
  789. package/dist/chunks/index-1.1.24-yz1p3g13.mjs +0 -1
  790. package/dist/chunks/index-1.1.24-zpd6455g.mjs +0 -9
  791. package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +0 -1
  793. package/dist/chunks/ink-1.1.24-n7wnynts.mjs +0 -1
  794. package/dist/chunks/insights-1.1.24-brh3tfms.mjs +0 -870
  795. package/dist/chunks/install-1.1.24-bnszrzxv.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +0 -1
  805. package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +0 -1
  806. package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +0 -1
  807. package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +0 -1
  808. package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +0 -4
  809. package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +0 -17
  810. package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +0 -1
  811. package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +0 -1
  812. package/dist/chunks/memory-1.1.24-dvn88stz.mjs +0 -72
  813. package/dist/chunks/model-1.1.24-jqp66a34.mjs +0 -1
  814. package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +0 -2
  815. package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +0 -15
  816. package/dist/chunks/oauth-1.1.24-5v87662s.mjs +0 -1
  817. package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +0 -14
  818. package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +0 -1
  819. package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +0 -1
  820. package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +0 -1
  821. package/dist/chunks/parser-1.1.24-r4f154gw.mjs +0 -1
  822. package/dist/chunks/passes-1.1.24-znx7myf5.mjs +0 -1
  823. package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +0 -3
  824. package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +0 -1
  825. package/dist/chunks/plan-1.1.24-vhaqffge.mjs +0 -1
  826. package/dist/chunks/plist-1.1.24-a5racx0y.mjs +0 -1
  827. package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +0 -29
  828. package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +0 -1
  829. package/dist/chunks/plugins-1.1.24-mza746hr.mjs +0 -9
  830. package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +0 -2
  831. package/dist/chunks/print-1.1.24-3xs40xg6.mjs +0 -57
  832. package/dist/chunks/process-1.1.24-7znk7nvb.mjs +0 -1
  833. package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +0 -1
  834. package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +0 -9
  835. package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +0 -1
  836. package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +0 -1
  837. package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +0 -1
  838. package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +0 -13
  839. package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +0 -2
  840. package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +0 -1
  841. package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +0 -6
  842. package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +0 -1
  843. package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +0 -26
  844. package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +0 -1
  845. package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +0 -5
  846. package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +0 -2
  847. package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +0 -1
  848. package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +0 -1
  849. package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +0 -1
  850. package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +0 -1
  851. package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +0 -1
  852. package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +0 -1
  853. package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +0 -2
  854. package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +0 -1
  855. package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +0 -1
  856. package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +0 -10
  857. package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +0 -1
  858. package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +0 -1
  859. package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +0 -2
  860. package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +0 -1
  861. package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +0 -1
  862. package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +0 -1
  863. package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +0 -1
  864. package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +0 -12
  865. package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +0 -1
  866. package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +0 -1
  867. package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +0 -1
  868. package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +0 -1
  869. package/dist/chunks/state-1.1.24-5c4debwf.mjs +0 -1
  870. package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +0 -6
  871. package/dist/chunks/status-1.1.24-abhqj5mw.mjs +0 -1
  872. package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +0 -1
  873. package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +0 -1
  874. package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +0 -1
  875. package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +0 -1
  876. package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +0 -1
  877. package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +0 -1
  878. package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +0 -1
  879. package/dist/chunks/theme-1.1.24-x6419d8v.mjs +0 -1
  880. package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +0 -1
  881. package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +0 -1
  882. package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +0 -1
  883. package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +0 -1
  884. package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +0 -1
  885. package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +0 -1
  886. package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +0 -69
  887. package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +0 -1
  888. package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +0 -4
  889. package/dist/chunks/update-1.1.24-der2v1xy.mjs +0 -72
  890. package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +0 -1
  891. package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +0 -7
  892. package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +0 -14
  893. package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +0 -1
  894. package/dist/chunks/usage-1.1.24-69x06f48.mjs +0 -1
  895. package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +0 -1
  896. package/dist/chunks/utils-1.1.24-sr136rh9.mjs +0 -1
  897. package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +0 -1
  898. package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +0 -13
  899. package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +0 -1
  900. package/dist/chunks/wiki-1.1.24-aevd508s.mjs +0 -132
  901. package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +0 -1
  902. package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +0 -1
  904. package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +0 -7
  905. /package/dist/chunks/{cli-1.1.24-qt5m4501.mjs → cli-1.1.26-6g0bq6h6.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.1.24-x19qr19f.mjs → cli-1.1.26-7q7jw0ck.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.1.24-vwmxvbv9.mjs → cli-1.1.26-nqygxkhw.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.24-k5cs55nk.mjs → cli-1.1.26-rbz29dt9.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.24-1mx8wjec.mjs → cli-1.1.26-sgj6knz9.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.24-a33s2dcr.mjs → cli-1.1.26-t8fgt5kw.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{_ta as H}from"./cli-1.1.24-hty94kzp.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
- export{F as oia,K as pia,M as qia,N as ria,O as sia,P as tia,J as uia};
@@ -1,2 +0,0 @@
1
- import{Eh as SJ,Fh as YQ}from"./cli-1.1.24-8nrya8sx.mjs";import{di as S,ei as CJ}from"./cli-1.1.24-25bjk4fa.mjs";import{$G as zQ,Cr as QJ,Er as fq,Ex as wJ,Fx as QQ,Hr as MJ,Ir as ZJ,Qy as Sq,Ry as _q,Sy as gJ,_G as FJ,bo as IJ,co as oJ,hr as xq,jr as h,kr as jJ,no as DJ,oo as tJ,po as LJ,py as bq,qo as eJ,qy as BJ,ro as RJ,so as qQ,sy as ZQ,tr as NJ,wr as TJ,yr as OJ}from"./cli-1.1.24-2qkkzsk3.mjs";import{fZ as AJ,gZ as lJ,jZ as PJ,kZ as aJ,sZ as VJ,tZ as JQ}from"./cli-1.1.24-4p3bjzm5.mjs";import{F1 as M,H1 as V,J1 as sq,K1 as EJ,g0 as hJ,k2 as rJ}from"./cli-1.1.24-vf59rwy3.mjs";import{H4 as GJ,I4 as D,J4 as T,K4 as YJ}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as sJ}from"./cli-1.1.24-ys3jea4v.mjs";import{$7 as AQ,A6 as mq,B6 as WJ,D6 as gq,D7 as p,G7 as Cq,K7 as dJ,P6 as HJ,U6 as nJ,W7 as _J,_8 as kJ,r7 as uq,t7 as r,t9 as PQ}from"./cli-1.1.24-dw6eynz7.mjs";import{P9 as X,Q9 as yJ}from"./cli-1.1.24-6ptbgma9.mjs";import{Aca as qJ,Bca as JJ,Mca as cJ,wca as aq,xca as tq,yca as vq,zca as eq}from"./cli-1.1.24-pe23qamd.mjs";import{Eka as UJ,Hka as pJ}from"./cli-1.1.24-prprq6xe.mjs";import{Wta as XJ,_ta as Dq}from"./cli-1.1.24-hty94kzp.mjs";function rq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function Y(J,q,Q){if(q.startsWith("ansi:")){let z=q.slice(5),K=J;if(Q==="fg")return K[z]??J;let U=`bg${z[0].toUpperCase()}${z.slice(1)}`;return K[U]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let z=parseInt(q.slice(8));return Q==="fg"?J.ansi256(z):J.bgAnsi256(z)}let Z=$J.exec(q);if(Z){let[z,K,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(z,K,U):J.bgRgb(z,K,U)}return J}function NQ(J,q,Q,Z,z){if(!S())return fJ(J,q,Q,Z,z);let{suggestion:K,messageActionsBackground:U}=z,H=U==="ansi:white"||U==="ansi:whiteBright"?z.inactive:U,G=z.inverseText,A=z.suggestion,L=Y(Y(X,K,"bg"),G,"fg").bold,I=Y(Y(X,K,"fg"),H,"bg"),P=Y(Y(X,H,"bg"),A,"fg"),R=Y(X,H,"fg"),w=Y(X,K,"fg"),j=L(` ${J} `);if(q){if(j+=I(F),j+=P(` ${hq} ${q}`),Q>0||Z>0){if(j+=P(" ("),Q>0)j+=Y(Y(X,H,"bg"),z.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)j+=P(" ");if(Z>0)j+=Y(Y(X,H,"bg"),z.warning,"fg")(`↓${Z}`);j+=P(")")}j+=P(" "),j+=R(F)}else j+=w(F);return j}function TQ(J,q,Q){if(!S()){let H=Y(X,q.suggestion,"fg").bold;return`[ ${H(J)} ]`}let{suggestion:Z,inverseText:z}=q,K=Y(Y(X,Z,"bg"),z,"fg").bold,U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J} `)+U(F)}function OQ(J,q,Q){if(!J)return"";if(!S()){let H=Y(X,q.suggestion,"fg").bold;return`[ ${H(J.trim())} ]`}let{suggestion:Z,inverseText:z}=q,K=Y(Y(X,Z,"bg"),z,"fg").bold,U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J}`)+U(F)}function MQ(J,q,Q){if(!J)return"";if(!S())return`[ ${Y(X,q.suggestion,"fg")(J.trim())} ]`;let Z=rq(q),z=q.suggestion,K=Y(Y(X,Z,"bg"),z,"fg"),U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J}`)+U(F)}function oq(J,q,Q){if(!J)return"";if(!S())return`[ ${J} ]`;let Z=Y(Y(X,q,"bg"),Q.inverseText,"fg").bold,z=Y(X,q,"fg");return Z(` ${J} `)+z(F)}function uJ(J,q,Q,Z){if(!S())return"";let z=J+q;if(z<=0)return"";let K=Math.round(J/z*kq);return Q(nq.repeat(K))+Z(nq.repeat(kq-K))}function wQ(J,q,Q=Number.POSITIVE_INFINITY){let Z=Y(X,q.success,"fg"),z=Y(X,q.error,"fg"),K=Y(X,q.inactive,"fg"),U=J.branch,H=U?{count:U,ref:U.base}:J.uncommitted?{count:J.uncommitted,ref:"HEAD"}:{count:J.session},{count:G,ref:A}=H;if(G.added<=0&&G.removed<=0)return null;let L=[],I=0;if(A)L.push(K(A)),I+=A.length;if(G.added>0){let w=`+${G.added}`;L.push(Z(w)),I+=w.length}if(G.removed>0){let w=`-${G.removed}`;L.push(z(w)),I+=w.length}let P=uJ(G.added,G.removed,Z,z);if(P)L.push(P),I+=kq;let R=I+L.length-1+4;if(R>Q)return null;return{text:`${K("[")} ${L.join(" ")} ${K("]")}`,width:R}}function BQ(J,q,Q,Z,z){if(!J)return"";if(!S()){let I=Y(X,Z.suggestion,"fg")(J);if(q>0||Q>0){if(I+=" (",q>0)I+=Y(X,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=" ";if(Q>0)I+=Y(X,Z.warning,"fg")(`↓${Q}`);I+=")"}return`[ ${I} ]`}let K=rq(Z),U=Z.suggestion,H=Y(Y(X,K,"bg"),U,"fg"),G=z?Y(Y(X,z,"bg"),K,"fg"):Y(X,K,"fg"),A=H(` ${hq} ${J}`);if(q>0||Q>0){if(A+=H(" ("),q>0)A+=Y(Y(X,K,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)A+=H(" ");if(Q>0)A+=Y(Y(X,K,"bg"),Z.warning,"fg")(`↓${Q}`);A+=H(")")}return A+=H(" "),A+=G(F),A}function dq(J,q){if(!q||!sq())return J;return`${Sq}${q}${_q}${J}${Sq}${_q}`}function FQ(J,q,Q,Z="PR",z){if(!S()){let L=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,I=dq(Y(X,L,"fg")(`#${J}`),z);return`[ ${Y(X,Q.inactive,"fg")(Z)} ${I} ]`}let K=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,H=Y(Y(X,K,"bg"),Q.inactive,"fg"),G=Y(Y(X,K,"bg"),U,"fg"),A=Y(X,K,"fg");return H(` ${bJ} `)+dq(G(`#${J}`),z)+H(" ")+A(F)}function fJ(J,q,Q,Z,z){let K=Y(X,z.suggestion,"fg").bold,U=`[ ${K(J)} ]`;if(q){let G=Y(X,z.suggestion,"fg")(q);if(Q>0||Z>0){if(G+=" (",Q>0)G+=Y(X,z.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)G+=" ";if(Z>0)G+=Y(X,z.warning,"fg")(`↓${Z}`);G+=")"}U+=` [ ${G} ]`}return U}var F="",hq="",bJ="",$J,kq=4,nq="■";var lq=Dq(()=>{yJ();EJ();gJ();CJ();$J=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function iJ(J,q){if(xq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function xQ(J,q,Q){if(!h(q))return;let Z=QJ(q,J),z=iJ(Z,Q);return{pill:oq(`${yq(Z)} ${Z}`,z,Q),bg:z}}function yq(J){if(xq(J))return JJ;switch(J){case"low":return aq;case"medium":return tq;case"high":return vq;case"xhigh":return eq;case"max":return qJ;default:return vq}}var zJ=Dq(()=>{cJ();ZJ();lq()});function tQ(J){let q=cq.c(82),{initial:Q,sessionModel:Z,onSelect:z,onCancel:K,isStandaloneCommand:U,showFastModeNotice:H,headerText:G,skipSettingsWrite:A}=J,L=BJ(),I=PJ(),P=Q===null?n:Q,[R,w]=Lq.useState(P),j=bq(HQ),[_,vJ]=Lq.useState(!1),k=bq(WQ),o;if(q[0]!==k)o=k!==void 0?fq(k):void 0,q[0]=k,q[1]=o;else o=q[1];let[v,iq]=Lq.useState(o),Rq=j??!1,l;if(q[2]!==Rq)l=wJ(Rq),q[2]=Rq,q[3]=l;else l=q[3];let d=l,Vq;q:{if(Q!==null&&!d.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return r(p(String(W.value)))===r(p(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=Cq(Q),q[4]=Q,q[5]=W;else W=q[5];let N;if(q[6]!==Q||q[7]!==W)N={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=N;else N=q[8];let x;if(q[9]!==d||q[10]!==N)x=[...d,N],q[9]=d,q[10]=N,q[11]=x;else x=q[11];Vq=x;break q}Vq=d}let jq=Vq,a;if(q[12]!==jq)a=jq.map(UQ),q[12]=jq,q[13]=a;else a=q[13];let O=a,t;if(q[14]!==P||q[15]!==O)t=O.find((W)=>{if(W.value===P)return!0;if(P===n||W.value===null)return!1;try{return r(p(String(W.value)))===r(p(String(P)))}catch{return!1}})?.value??O[0]?.value??void 0,q[14]=P,q[15]=O,q[16]=t;else t=q[16];let Nq=t,Tq=Math.min(10,O.length),e=0,qq;if(q[17]!==R||q[18]!==O)qq=O.find((W)=>W.value===R)?.label,q[17]=R,q[18]=O,q[19]=qq;else qq=q[19];let Jq=qq,B,Qq;if(q[20]!==R){let W=$q(R);B=W?h(W):!1,Qq=W?jJ(W):!1,q[20]=R,q[21]=B,q[22]=Qq}else B=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==R)zq=Eq(R),q[23]=R,q[24]=zq;else zq=q[24];let y=zq,s=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==k||q[26]!==_)Yq=(W)=>{if(w(W),!_&&k===void 0)iq(Eq(W))},q[25]=k,q[26]=_,q[27]=Yq;else Yq=q[27];let Oq=Yq,Kq;if(q[28]!==y||q[29]!==B||q[30]!==Zq)Kq=(W)=>{if(!B)return;iq((N)=>GQ(N??y,W,Zq)),vJ(!0)},q[28]=y,q[29]=B,q[30]=Zq,q[31]=Kq;else Kq=q[31];let Xq=Kq,Uq;if(q[32]!==Xq)Uq={"modelPicker:decreaseEffort":()=>Xq("left"),"modelPicker:increaseEffort":()=>Xq("right")},q[32]=Xq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];AJ(Uq,Wq);let Hq;if(q[35]!==v||q[36]!==_||q[37]!==z||q[38]!==L||q[39]!==A)Hq=function(N){if(UJ("",{effort:v}),!A){let Fq=OJ(v,Eq(N),TJ(),_);if(Fq!==void 0)NJ(Fq);L((xJ)=>({...xJ,effortValue:Fq}))}let x=$q(N),pq=_&&x&&h(x)?v:void 0;if(N===n){z(null,pq);return}z(N,pq)},q[35]=v,q[36]=_,q[37]=z,q[38]=L,q[39]=A,q[40]=Hq;else Hq=q[40];let Mq=Hq,Gq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Gq=D(V,{color:"remember",bold:!0,children:"Select model"}),q[41]=Gq;else Gq=q[41];let wq=G??"Switch between Claude models. Applies to this session and future Claudin sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=D(V,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let g;if(q[44]!==Z)g=Z&&T(V,{dimColor:!0,children:["Currently using ",Cq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=g;else g=q[45];let C;if(q[46]!==E||q[47]!==g)C=T(M,{marginBottom:1,flexDirection:"column",children:[Gq,E,g]}),q[46]=E,q[47]=g,q[48]=C;else C=q[48];let Bq=K??XQ,b;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Nq||q[52]!==P||q[53]!==O||q[54]!==Bq||q[55]!==Tq)b=D(M,{flexDirection:"column",children:D(FJ,{defaultValue:P,defaultFocusValue:Nq,options:O,onChange:Mq,onFocus:Oq,onCancel:Bq,visibleOptionCount:Tq,favorites:KQ,searchPlaceholder:"Search models…",showOverflowCount:!0})}),q[49]=Oq,q[50]=Mq,q[51]=Nq,q[52]=P,q[53]=O,q[54]=Bq,q[55]=Tq,q[56]=b;else b=q[56];let $;if(q[57]!==e)$=e>0&&D(M,{paddingLeft:3,children:T(V,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=$;else $=q[58];let m;if(q[59]!==b||q[60]!==$)m=T(M,{flexDirection:"column",marginBottom:1,children:[b,$]}),q[59]=b,q[60]=$,q[61]=m;else m=q[61];let u;if(q[62]!==s||q[63]!==y||q[64]!==Jq||q[65]!==B)u=D(M,{marginBottom:1,flexDirection:"column",children:B?T(V,{dimColor:!0,children:[D(KJ,{effort:s})," ",IJ(s)," effort",s===y?" (default)":""," ",D(V,{color:"subtle",children:"← → to adjust"})]}):T(V,{color:"subtle",children:[D(KJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=s,q[63]=y,q[64]=Jq,q[65]=B,q[66]=u;else u=q[66];let f;if(q[67]!==H)f=mq()?H?D(M,{marginBottom:1,children:T(V,{dimColor:!0,children:["Fast mode is ",D(V,{bold:!0,children:"ON"})," and available with"," ",gq," only (/fast). Switching to other models turn off fast mode."]})}):WJ()&&!HJ()?D(M,{marginBottom:1,children:T(V,{dimColor:!0,children:["Use ",D(V,{bold:!0,children:"/fast"})," to turn on Fast mode (",gq," only)."]})}):null:null,q[67]=H,q[68]=f;else f=q[68];let c;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==f)c=T(M,{flexDirection:"column",children:[C,m,u,f]}),q[69]=C,q[70]=m,q[71]=u,q[72]=f,q[73]=c;else c=q[73];let i;if(q[74]!==I||q[75]!==U)i=U&&D(V,{dimColor:!0,italic:!0,children:I.pending?T(GJ,{children:["Press ",I.keyName," again to exit"]}):T(RJ,{children:[D(DJ,{shortcut:"Enter",action:"confirm"}),D(LJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=I,q[75]=U,q[76]=i;else i=q[76];let Iq;if(q[77]!==c||q[78]!==i)Iq=T(M,{flexDirection:"column",children:[c,i]}),q[77]=c,q[78]=i,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Pq;if(q[80]!==Aq)Pq=D(VJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Pq;else Pq=q[81];return Pq}function XQ(){}function UQ(J){return{...J,value:J.value===null?n:J.value}}function WQ(J){return J.effortValue}function HQ(J){return mq()?J.fastMode:!1}function $q(J){if(!J)return;return J===n?uq():p(J)}function KJ(J){let q=cq.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",z=Q??"low",K;if(q[0]!==z)K=yq(z),q[0]=z,q[1]=K;else K=q[1];let U;if(q[2]!==Z||q[3]!==K)U=D(V,{color:Z,children:K}),q[2]=Z,q[3]=K,q[4]=U;else U=q[4];return U}function GQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],z=Z.indexOf(J),K=z!==-1?z:Z.indexOf("high");if(q==="right")return Z[(K+1)%Z.length];else return Z[(K-1+Z.length)%Z.length]}function Eq(J){let q=$q(J)??uq(),Q=MJ(q);return Q!==void 0?fq(Q):"high"}var cq,Lq,n="__NO_PREFERENCE__",KQ;var IQ=Dq(()=>{oJ();aJ();pJ();nJ();rJ();lJ();ZQ();ZJ();dJ();QQ();eJ();zQ();YQ();qQ();tJ();JQ();zJ();YJ();cq=XJ(hJ(),1),Lq=XJ(sJ(),1),KQ=SJ("model",(J)=>J===n?null:J)});function ZZ(J,q,Q){if(!kJ())return!1;if(q)return!0;if(J===null||!_J(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),z=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),K=Z==="sonnet"||Z.includes("sonnet-4-6");if(z&&Q)return!1;return z||K}var DQ=Dq(()=>{PQ();AQ()});
2
- export{rq as nh,mJ as oh,NQ as ph,TQ as qh,OQ as rh,MQ as sh,wQ as th,BQ as uh,FQ as vh,lq as wh,xQ as xh,yq as yh,zJ as zh,tQ as Ah,IQ as Bh,ZZ as Ch,DQ as Dh};
@@ -1,2 +0,0 @@
1
- import{Bx as t,Vp as W,Wp as n,wx as I,xx as P}from"./cli-1.1.24-2qkkzsk3.mjs";import{Q4 as H,R4 as p}from"./cli-1.1.24-c80wbwvr.mjs";import{V4 as C,X4 as i}from"./cli-1.1.24-5pkkmh85.mjs";import{$8 as V,C5 as S,I5 as c,V8 as R,t9 as l,u8 as v}from"./cli-1.1.24-dw6eynz7.mjs";import{Bha as D,Ffa as E,Ifa as X,Jha as m,bfa as q,bga as O,bha as T,cfa as u,dha as Y,jha as y,mha as k,pha as g}from"./cli-1.1.24-pe23qamd.mjs";import{Jja as G,Lja as f,Mja as $,Nja as h}from"./cli-1.1.24-zjc9nfba.mjs";import{Cka as _,Dka as M,xka as Z}from"./cli-1.1.24-7ae9t2qz.mjs";import{Hla as x,Kla as b}from"./cli-1.1.24-zey4mks2.mjs";import{gta as Q,yta as A}from"./cli-1.1.24-zc49jxpp.mjs";import{_ta as U}from"./cli-1.1.24-hty94kzp.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
- export{Yj as hc,r as ic};
@@ -1,18 +0,0 @@
1
- import{Xd as kZ,be as XX}from"./cli-1.1.24-nhr9sjgz.mjs";import{fe as YZ,ge as SQ}from"./cli-1.1.24-7qe2p4yb.mjs";import{$k as LJ,$s as fQ,Bt as vQ,DS as iZ,FI as NZ,GI as FZ,HI as s0,JI as MJ,JS as fZ,Nt as WQ,OF as PQ,OG as OQ,Ok as d0,Pk as mJ,QB as pZ,Qt as yX,RB as ZX,RF as vX,RG as SX,Rl as GQ,Sk as cZ,Tk as tQ,Tl as MX,Tw as HQ,Ty as KZ,UG as g0,Uy as iQ,VG as QX,Ws as aZ,Yk as r0,ZE as RQ,Zn as PJ,Zs as RX,Zw as bX,_E as hX,_k as VZ,_n as DQ,_s as TJ,bJ as mZ,cr as MZ,eJ as kJ,fJ as JZ,fr as lQ,gJ as OJ,gt as L0,hC as IX,hJ as NJ,iB as R0,iC as DX,iJ as ZZ,iy as NQ,jB as i0,jJ as QZ,jy as AX,kJ as XZ,lo as VQ,mJ as m0,mo as EX,nJ as _0,no as l,oJ as UJ,oo as A0,pL as $0,py as zJ,qt as hQ,qy as FQ,ro as Z0,rt as qJ,sL as RZ,so as B0,st as CX,sy as BX,sz as HZ,tz as rQ,vk as WZ,vo as n,wo as I0,wz as a0,xt as c0,xz as yZ,yS as lZ}from"./cli-1.1.24-2qkkzsk3.mjs";import{SY as QJ,TY as nZ,fZ as G0,gZ as S0}from"./cli-1.1.24-4p3bjzm5.mjs";import{F1 as y,H1 as W,L1 as JJ,V1 as wZ,g0 as F0,k2 as q0,p0 as l0}from"./cli-1.1.24-vf59rwy3.mjs";import{X3 as vJ,c4 as KX}from"./cli-1.1.24-a6q6r9em.mjs";import{H4 as o,I4 as q,J4 as N,K4 as $}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as o0}from"./cli-1.1.24-ys3jea4v.mjs";import{Y4 as pJ,g5 as MQ}from"./cli-1.1.24-8zb03vbp.mjs";import{i5 as DJ,j5 as JX}from"./cli-1.1.24-32h2wd2e.mjs";import{n8 as HJ,o8 as wQ,x5 as tJ,y5 as IQ}from"./cli-1.1.24-dw6eynz7.mjs";import{Bha as eJ,Fca as z0,Gca as w0,Gda as uZ,Hda as dZ,Jda as eQ,Jha as BQ,Mca as p0,Vaa as qQ,Waa as M0,Wda as Q0,Yaa as yJ,a$ as t0,b$ as TZ,cea as IJ}from"./cli-1.1.24-pe23qamd.mjs";import{Rha as K0,Uha as b0,Wha as oZ,Yha as e0,Zha as x0,eia as v0}from"./cli-1.1.24-bph6jjd7.mjs";import{Hia as sJ,Tia as AQ}from"./cli-1.1.24-gb39akdj.mjs";import{Eka as t,Hka as _J}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as D0,Kla as cJ,vla as $Z,xla as FX}from"./cli-1.1.24-zey4mks2.mjs";import{fma as h0,mma as aJ}from"./cli-1.1.24-eh4c00hd.mjs";import{Wta as J0,Xta as RJ,Zta as $J,_ta as a}from"./cli-1.1.24-hty94kzp.mjs";function u0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function GJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:TJ(Q.status)?Date.now()+LQ:void 0}}function VJ(Q,J){t("",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,V=z!==void 0&&z!==Q&&u0(Y)&&Y.retain,G=u0(X)&&(!X.retain||X.evictAfter!==void 0),F=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!G&&!F&&!V)return Z;let R=Z.tasks;if(V||G){if(R={...Z.tasks},V)R[z]=GJ(Y);if(G)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function WJ(Q){t("",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!u0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:GJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!u0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...GJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var LQ=30000;var uJ=a(()=>{_J();fQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===d0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let V=CQ(Y.content);Z=V!==null?{kind:"teleport",plan:V}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:yQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,V=null,G=0,F="running";while(Date.now()<z){if(X?.())throw new N0("poll stopped by caller","stopped",Y.rejectCount);let R,O;try{let f=await kJ(Q,V);R=f.newEvents,V=f.lastEventId,O=f.sessionStatus,G=0}catch(f){if(!pJ(f)||++G>=KQ)throw new N0(f instanceof Error?f.message:String(f),"network_or_unknown",Y.rejectCount,{cause:f});await HJ(dJ);continue}let P;try{P=Y.ingest(R)}catch(f){throw new N0(f instanceof Error?f.message:String(f),"extract_marker_missing",Y.rejectCount)}if(P.kind==="approved")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(P.kind==="teleport")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(P.kind==="terminated")throw new N0(`remote session ended (${P.subtype}) before plan approval`,"terminated",Y.rejectCount);let U=(O==="idle"||O==="requires_action")&&R.length===0,w=Y.hasPendingPlan?"plan_ready":U?"needs_input":"running";if(w!==F)D0(`[ultraplan] phase ${F} → ${w}`),F=w,Z?.(w);await HJ(dJ)}throw new N0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function CQ(Q){let J=lJ(Q),Z=`${EQ}
2
- `,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function yQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
3
- `,`## Approved Plan:
4
- `];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var dJ=3000,KQ=5,N0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{mJ();cJ();wQ();MQ();NJ();N0=class N0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
5
- `;var nJ=()=>{};function gQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function uQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(TQ),Q)Z.push("",Q);return Z.join(`
6
- `)}function dQ(Q,J,Z,X,z){let Y=Date.now(),V=!1;(async()=>{try{let{plan:G,rejectCount:F,executionTarget:R}=await rJ(J,jQ,(O)=>{if(O==="needs_input")t("",{});c0(Q,z,(P)=>{if(P.status!=="running")return P;let U=O==="running"?void 0:O;return P.ultraplanPhase===U?P:{...P,ultraplanPhase:U}})},()=>X().tasks?.[Q]?.status!=="running");if(t("",{duration_ms:Date.now()-Y,plan_length:G.length,reject_count:F,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;c0(Q,z,(P)=>P.status!=="running"?P:{...P,status:"completed",endTime:Date.now()}),z((P)=>P.ultraplanSessionUrl===Z?{...P,ultraplanSessionUrl:void 0}:P),L0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
7
- `),mode:"task-notification"})}else z((O)=>{let P=O.tasks?.[Q];if(!P||P.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:G,sessionId:J,taskId:Q}}})}catch(G){if(X().tasks?.[Q]?.status!=="running")return;V=!0,t("",{duration_ms:Date.now()-Y,reason:G instanceof N0?G.reason:"network_or_unknown",reject_count:G instanceof N0?G.rejectCount:void 0}),L0({value:`Ultraplan failed: ${h0(G)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((R)=>D0(`ultraplan archive failed: ${String(R)}`)),z((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(V)c0(Q,z,(G)=>G.status!=="running"?G:{...G,status:"failed",endTime:Date.now()})}})()}function cQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function pQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
11
- You can continue working — when the ${z0} fills, press ↓ to view results`}function qZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function fJ(Q,J,Z){await m0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=PJ(J,process.env.SESSION_INGRESS_URL);L0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),L0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function mQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:V,onSessionReady:G}=Q,{ultraplanSessionUrl:F,ultraplanLaunching:R}=X();if(F||R)return t("",{reason:F?"already_polling":"already_launching"}),qZ(F);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
14
- `);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}),cQ(V)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:V}=Q,G;try{let F=gQ(),R=await ZZ();if(!R.eligible){t("",{reason:"precondition",precondition_errors:R.errors.map((C)=>C.type).join(",")});let L=R.errors.map(QZ).join(`
15
- `);L0({value:`ultraplan: cannot launch remote session —
16
- ${L}`,mode:"task-notification"});return}let O=uQ(J,Z),P,U=await JZ({initialMessage:O,description:J||"Refine local plan",model:F,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(L)=>{P=L}});if(!U){t("",{reason:P?"bundle_fail":"teleport_null"}),L0({value:`ultraplan: session creation failed${P?` — ${P}`:""}. See --debug for details.`,mode:"task-notification"});return}G=U.id;let w=PJ(U.id,process.env.SESSION_INGRESS_URL);z((L)=>({...L,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),V?.(pQ(w)),t("",{has_seed_plan:Boolean(Z),model:F});let{taskId:f}=XZ({remoteTaskType:"ultraplan",session:{id:U.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});dQ(f,U.id,w,X,z)}catch(F){if(eJ(F),t("",{reason:"unexpected_error"}),L0({value:`ultraplan: unexpected error — ${h0(F)}`,mode:"task-notification"}),G)OJ(G).catch((R)=>D0("ultraplan: failed to archive orphaned session",R)),z((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{z((F)=>F.ultraplanLaunching?{...F,ultraplanLaunching:void 0}:F)}}var jQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",FJ,_Q,TQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let V=await mQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(V,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("",{reason:z?"already_polling":"already_launching"}),Q(qZ(z),{display:"system"}),null;return J.setAppState((V)=>({...V,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},NY;var GZ=a(()=>{SQ();p0();DQ();AQ();_J();UJ();cJ();aJ();BQ();hQ();IQ();vQ();NJ();iJ();FJ=(nJ(),RJ(oJ)),_Q=(typeof FJ==="string"?FJ:FJ.default).trimEnd(),TQ=_Q;NY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=VZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},V=X.userFacingName(Y);if(!V)return Q.toolName;let G=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(G)return N(W,{children:[V,"(",G,")"]});return V}catch{return Q.toolName}}var wJ=a(()=>{q0();LJ();$()});function OZ(Q){let J=PZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[V]=l0(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=$0(r0()),J[0]=G;else G=J[0];let F=G,R=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];G0(O,P);let U;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)U=(S)=>{if(S.key===" ")S.preventDefault(),X();else if(S.key==="left"&&Y)S.preventDefault(),Y();else if(S.key==="x"&&Z.status==="running"&&z)S.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=U;else U=J[8];let w=U,f;if(J[9]!==Z.prompt)f=WZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=f;else f=J[10];let L=f,C=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,h=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==h||J[12]!==D)I=N(W,{children:[h," ›"," ",D]}),J[11]=h,J[12]=D,J[13]=I;else I=J[13];let K=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&N(W,{color:FZ(Z.status),children:[NZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let p;if(J[16]!==E)p=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=p;else p=J[17];let d;if(J[18]!==A)d=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=d;else d=J[19];let j;if(J[20]!==R||J[21]!==p||J[22]!==d)j=N(W,{dimColor:!0,children:[R,p,d]}),J[20]=R,J[21]=p,J[22]=d,J[23]=j;else j=J[23];let x;if(J[24]!==j||J[25]!==B)x=N(W,{children:[B,j]}),J[24]=j,J[25]=B,J[26]=x;else x=J[26];let c=x,v;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)v=(S)=>S.pending?N(W,{children:["Press ",S.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=v;else v=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==V)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((S,k)=>N(W,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(S,F,V)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=V,J[34]=b;else b=J[34];let m;if(J[35]!==C||J[36]!==L)m=L?q(y,{marginTop:1,children:q(HZ,{addMargin:!1,planContent:L})}):N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,dimColor:!0,children:"Prompt"}),q(W,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=L,J[37]=m;else m=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=T;else T=J[40];let _;if(J[41]!==b||J[42]!==m||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,m,T]}),J[41]=b,J[42]=m,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==X||J[46]!==c||J[47]!==v||J[48]!==_||J[49]!==K)g=q(n,{title:K,subtitle:c,onCancel:X,color:"background",inputGuide:v,children:_}),J[45]=X,J[46]=c,J[47]=v,J[48]=_,J[49]=K,J[50]=g;else g=J[50];let u;if(J[51]!==w||J[52]!==g)u=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:g}),J[51]=w,J[52]=g,J[53]=u;else u=J[53];return u}var PZ;var UZ=a(()=>{i0();q0();S0();LJ();RZ();v0();fZ();B0();I0();A0();rQ();wJ();MJ();$();PZ=J0(F0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function KJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let V;if(J[2]!==z||J[3]!==Y)V=q(o,{children:Y.map((G,F)=>q(W,{color:MZ(F+z),children:G},F))}),J[2]=z,J[3]=Y,J[4]=V;else V=J[4];return V}function EJ(Q,J,Z){let X=CJ.useRef(Q),z=CJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=KZ().prefersReducedMotion??!1,Y=Z.reviewProgress,V=Z.status==="running",[,G]=wZ(V&&!z?LZ:null),F=Y?.bugsFound??0,R=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,P=z||!V,U=EJ(F,G,P),w=EJ(R,G,P),f=EJ(O,G,P),L=Math.floor(G/(LZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),q(W,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),N(W,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let C;if(J[2]!==U||J[3]!==Y||J[4]!==f||J[5]!==w)C=!Y?"setting up":bJ(Y.stage,U,w,f),J[2]=U,J[3]=Y,J[4]=f,J[5]=w,J[6]=C;else C=J[6];let E=C,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=N(W,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let h=V?L:0,D;if(J[8]!==h)D=q(KJ,{text:"ultrareview",phase:h}),J[8]=h,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=N(W,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let K;if(J[12]!==D||J[13]!==I)K=N(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=K;else K=J[14];return K}function j0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let G;if(J[0]!==Z)G=q($Q,{session:Z}),J[0]=Z,J[1]=G;else G=J[1];return G}if(Z.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Z.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Z.todoList.length){let G;if(J[4]!==Z.status)G=N(W,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=G;else G=J[5];return G}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,V;if(J[8]!==z||J[9]!==Y)V=N(W,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=V;else V=J[10];return V}function oQ(Q){return Q.status==="completed"}var n0,CJ,LZ=80;var AJ=a(()=>{p0();iQ();q0();yJ();lQ();$();n0=J0(F0(),1),CJ=J0(o0(),1)});function P0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,V=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,G;if(J[0]!==V||J[1]!==Y||J[2]!==z)G=N(W,{color:V,dimColor:!0,children:["(",Y,z,")"]}),J[0]=V,J[1]=Y,J[2]=z,J[3]=G;else G=J[3];return G}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var CZ=a(()=>{q0();$();BJ=J0(F0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,V;if(J[0]!==z||J[1]!==Y)V=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=V;else V=J[2];let G;if(J[3]!==Z)G=q(EZ,{shell:Z}),J[3]=Z,J[4]=G;else G=J[4];let F;if(J[5]!==V||J[6]!==G)F=N(W,{children:[V," ",G]}),J[5]=V,J[6]=G,J[7]=F;else F=J[7];return F}case"remote_agent":{if(Z.isRemoteReview){let U;if(J[8]!==Z)U=q(W,{children:q(j0,{session:Z})}),J[8]=Z,J[9]=U;else U=J[9];return U}let V=Z.status==="running"||Z.status==="pending"?z0:w0,G;if(J[10]!==V)G=N(W,{dimColor:!0,children:[V," "]}),J[10]=V,J[11]=G;else G=J[11];let F;if(J[12]!==z||J[13]!==Z.title)F=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=F;else F=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" · "}),J[15]=R;else R=J[15];let O;if(J[16]!==Z)O=q(j0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let P;if(J[18]!==G||J[19]!==F||J[20]!==O)P=N(W,{children:[G,F,R,O]}),J[18]=G,J[19]=F,J[20]=O,J[21]=P;else P=J[21];return P}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[25]!==V||J[26]!==G||J[27]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[25]=V,J[26]=G,J[27]=Z.status,J[28]=F;else F=J[28];let R;if(J[29]!==Y||J[30]!==F)R=N(W,{children:[Y," ",F]}),J[29]=Y,J[30]=F,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let Y,V,G,F,R,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);V=W;let f;if(J[40]!==Z.identity.color)f=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Z.identity.agentName)O=N(W,{color:f,children:["@",Z.identity.agentName]}),J[42]=f,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=W,G=!0,F=": ",R=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=V,J[36]=G,J[37]=F,J[38]=R,J[39]=O}else Y=J[34],V=J[35],G=J[36],F=J[37],R=J[38],O=J[39];let P;if(J[45]!==Y||J[46]!==G||J[47]!==F||J[48]!==R)P=N(Y,{dimColor:G,children:[F,R]}),J[45]=Y,J[46]=G,J[47]=F,J[48]=R,J[49]=P;else P=J[49];let U;if(J[50]!==V||J[51]!==O||J[52]!==P)U=N(V,{children:[O,P]}),J[50]=V,J[51]=O,J[52]=P,J[53]=U;else U=J[53];return U}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,V;if(J[54]!==z||J[55]!==Y)V=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=V;else V=J[56];let G;if(J[57]!==Z.agentCount||J[58]!==Z.status)G=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=G;else G=J[59];let F=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==G||J[61]!==F||J[62]!==Z.status)R=q(P0,{status:Z.status,label:G,suffix:F}),J[60]=G,J[61]=F,J[62]=Z.status,J[63]=R;else R=J[63];let O;if(J[64]!==V||J[65]!==R)O=N(W,{children:[V," ",R]}),J[64]=V,J[65]=R,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[70]!==V||J[71]!==G||J[72]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[70]=V,J[71]=G,J[72]=Z.status,J[73]=F;else F=J[73];let R;if(J[74]!==Y||J[75]!==F)R=N(W,{children:[Y," ",F]}),J[74]=Y,J[75]=F,J[76]=R;else R=J[76];return R}case"dream":{let Y=Z.filesTouched.length,V;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)V=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=V;else V=J[80];let G=V,F;if(J[81]!==G||J[82]!==Z.phase)F=N(W,{dimColor:!0,children:["· ",Z.phase," · ",G]}),J[81]=G,J[82]=Z.phase,J[83]=F;else F=J[83];let R=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,P;if(J[84]!==R||J[85]!==O||J[86]!==Z.status)P=q(P0,{status:Z.status,label:R,suffix:O}),J[84]=R,J[85]=O,J[86]=Z.status,J[87]=P;else P=J[87];let U;if(J[88]!==F||J[89]!==P||J[90]!==Z.description)U=N(W,{children:[Z.description," ",F," ",P]}),J[88]=F,J[89]=P,J[90]=Z.description,J[91]=U;else U=J[91];return U}}}var bZ;var BZ=a(()=>{q0();v0();yZ();IJ();p0();AJ();CZ();MJ();$();bZ=J0(F0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,V=R0(Z.startTime,Z.status==="running",1000,0),G;if(J[0]!==X)G={"confirm:yes":X},J[0]=X,J[1]=G;else G=J[1];let F;if(J[2]===Symbol.for("react.memo_cache_sentinel"))F={context:"Confirmation"},J[2]=F;else F=J[2];G0(G,F);let R;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)R=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=R;else R=J[7];let O=R,P,U,w,f,L,C,E,A,h,D,I,K,B,p,d,j;if(J[8]!==V||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),m=b.slice(-nQ),T=b.length-m.length;w=y,E="column",A=0,h=!0,D=O,U=n,d="Memory consolidation";let _=Z.sessionsReviewing,g;if(J[33]!==Z.sessionsReviewing)g=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=g;else g=J[34];let u;if(J[35]!==Z.filesTouched.length)u=Z.filesTouched.length>0&&N(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=u;else u=J[36];if(J[37]!==V||J[38]!==g||J[39]!==u||J[40]!==Z.sessionsReviewing)j=N(W,{dimColor:!0,children:[V," · reviewing ",_," ",g,u]}),J[37]=V,J[38]=g,J[39]=u,J[40]=Z.sessionsReviewing,J[41]=j;else j=J[41];if(f=X,L="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)C=(k)=>k.pending?N(W,{children:["Press ",k.keyName," again to exit"]}):N(Z0,{children:[z&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&q(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=C;else C=J[45];P=y,I="column",K=1;let S;if(J[46]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{bold:!0,children:"Status:"}),J[46]=S;else S=J[46];if(J[47]!==Z.status)B=N(W,{children:[S," ",Z.status==="running"?q(W,{color:"background",children:"running"}):Z.status==="completed"?q(W,{color:"success",children:Z.status}):q(W,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];p=m.length===0?q(W,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):N(o,{children:[T>0&&N(W,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),m.map(aQ)]}),J[8]=V,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=P,J[18]=U,J[19]=w,J[20]=f,J[21]=L,J[22]=C,J[23]=E,J[24]=A,J[25]=h,J[26]=D,J[27]=I,J[28]=K,J[29]=B,J[30]=p,J[31]=d,J[32]=j}else P=J[17],U=J[18],w=J[19],f=J[20],L=J[21],C=J[22],E=J[23],A=J[24],h=J[25],D=J[26],I=J[27],K=J[28],B=J[29],p=J[30],d=J[31],j=J[32];let x;if(J[49]!==P||J[50]!==I||J[51]!==K||J[52]!==B||J[53]!==p)x=N(P,{flexDirection:I,gap:K,children:[B,p]}),J[49]=P,J[50]=I,J[51]=K,J[52]=B,J[53]=p,J[54]=x;else x=J[54];let c;if(J[55]!==U||J[56]!==f||J[57]!==L||J[58]!==C||J[59]!==x||J[60]!==d||J[61]!==j)c=q(U,{title:d,subtitle:j,onCancel:f,color:L,inputGuide:C,children:x}),J[55]=U,J[56]=f,J[57]=L,J[58]=C,J[59]=x,J[60]=d,J[61]=j,J[62]=c;else c=J[62];let v;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==h||J[67]!==D||J[68]!==c)v=q(w,{flexDirection:E,tabIndex:A,autoFocus:h,onKeyDown:D,children:c}),J[63]=w,J[64]=E,J[65]=A,J[66]=h,J[67]=D,J[68]=c,J[69]=v;else v=J[69];return v}function aQ(Q,J){return N(y,{flexDirection:"column",children:[q(W,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&N(W,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var hZ=a(()=>{i0();q0();S0();IJ();B0();I0();A0();$();IZ=J0(F0(),1)});function SZ(Q){let J=vZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:V}=Q,[G]=l0(),F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=$0(r0()),J[0]=F;else F=J[0];let R=F,O=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),P;if(J[1]!==X)P={"confirm:yes":X},J[1]=X,J[2]=P;else P=J[2];let U;if(J[3]===Symbol.for("react.memo_cache_sentinel"))U={context:"Confirmation"},J[3]=U;else U=J[3];G0(P,U);let w;if(J[4]!==Y||J[5]!==X||J[6]!==V||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&V)M.preventDefault(),V()},J[4]=Y,J[5]=X,J[6]=V,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let f=w,L;if(J[10]!==Z)L=s0(Z),J[10]=Z,J[11]=L;else L=J[11];let C=L,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,h;if(J[12]!==Z.prompt)h=K0(Z.prompt,300),J[12]=Z.prompt,J[13]=h;else h=J[13];let D=h,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let K;if(J[16]!==I||J[17]!==Z.identity.agentName)K=N(W,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=K;else K=J[18];let B;if(J[19]!==C)B=C&&N(W,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=B;else B=J[20];let p;if(J[21]!==K||J[22]!==B)p=N(W,{children:[K,B]}),J[21]=K,J[22]=B,J[23]=p;else p=J[23];let d=p,j;if(J[24]!==Z.status)j=Z.status!=="running"&&N(W,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=j;else j=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let c;if(J[28]!==A)c=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=c;else c=J[29];let v;if(J[30]!==O||J[31]!==x||J[32]!==c)v=N(W,{dimColor:!0,children:[O,x,c]}),J[30]=O,J[31]=x,J[32]=c,J[33]=v;else v=J[33];let b;if(J[34]!==j||J[35]!==v)b=N(W,{children:[j,v]}),J[34]=j,J[35]=v,J[36]=b;else b=J[36];let m=b,T;if(J[37]!==Y||J[38]!==V||J[39]!==z||J[40]!==Z.status)T=(M)=>M.pending?N(W,{children:["Press ",M.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&V&&q(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=V,J[39]=z,J[40]=Z.status,J[41]=T;else T=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==G)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>N(W,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,R,G)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=G,J[45]=_;else _=J[45];let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=q(W,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=g;else g=J[46];let u;if(J[47]!==D)u=N(y,{flexDirection:"column",marginTop:1,children:[g,q(W,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=u;else u=J[48];let S;if(J[49]!==Z.error||J[50]!==Z.status)S=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=S;else S=J[51];let k;if(J[52]!==X||J[53]!==m||J[54]!==T||J[55]!==_||J[56]!==u||J[57]!==S||J[58]!==d)k=N(n,{title:d,subtitle:m,onCancel:X,color:"background",inputGuide:T,children:[_,u,S]}),J[52]=X,J[53]=m,J[54]=T,J[55]=_,J[56]=u,J[57]=S,J[58]=d,J[59]=k;else k=J[59];let H;if(J[60]!==f||J[61]!==k)H=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:k}),J[60]=f,J[61]=k,J[62]=H;else H=J[62];return H}var vZ;var jZ=a(()=>{i0();q0();S0();LJ();RZ();v0();yZ();B0();I0();A0();wJ();MJ();$();vZ=J0(F0(),1)});function YX(Q,J){if(Q===d0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===cZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${K0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${K0(X,60)}`}return Q}function GX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="running"||Z.status==="pending",G=Z.ultraplanPhase,F=V?G?zX[G]:"running":Z.status,R=R0(Z.startTime,V,1000,0,Z.endTime),O=0,P=0,U=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(P++,U=e,e.name===uZ||e.name===dZ)O++}}let w=1+O,f;if(J[0]!==U)f=U?YX(U.name,U.input):null,J[0]=U,J[1]=f;else f=J[1];let L;if(J[2]!==P||J[3]!==w||J[4]!==f)L={agentsWorking:w,toolCalls:P,lastToolCall:f},J[2]=P,J[3]=w,J[4]=f,J[5]=L;else L=J[5];let{agentsWorking:C,toolCalls:E,lastToolCall:A}=L,h;if(J[6]!==Z.sessionId)h=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=h;else h=J[7];let D=h,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let K=I,[B,p]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>p(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=q(W,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let y0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))y0={label:"Terminate session",value:"stop"},J[13]=y0;else y0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[y0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let f0;if(J[15]!==K||J[16]!==Y)f0=q(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[e,q(g0,{options:i,onChange:(T0)=>{if(T0==="stop")Y?.(),K();else p(!1)}})]})}),J[15]=K,J[16]=Y,J[17]=f0;else f0=J[17];return f0}let d=G==="plan_ready"?w0:z0,j;if(J[18]!==d)j=N(W,{color:"background",children:[d," "]}),J[18]=d,J[19]=j;else j=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=q(W,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let c;if(J[21]!==R||J[22]!==F)c=N(W,{dimColor:!0,children:[" · ",R," · ",F]}),J[21]=R,J[22]=F,J[23]=c;else c=J[23];let v;if(J[24]!==j||J[25]!==c)v=N(W,{children:[j,x,c]}),J[24]=j,J[25]=c,J[26]=v;else v=J[26];let b;if(J[27]!==G)b=G==="plan_ready"&&N(W,{color:"success",children:[t0.tick," "]}),J[27]=G,J[28]=b;else b=J[28];let m;if(J[29]!==C)m=Q0(C,"agent"),J[29]=C,J[30]=m;else m=J[30];let T=G?qX[G]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let g;if(J[33]!==C||J[34]!==b||J[35]!==m||J[36]!==T||J[37]!==_||J[38]!==E)g=N(W,{children:[b,C," ",m," ",T," · ",E," tool"," ",_]}),J[33]=C,J[34]=b,J[35]=m,J[36]=T,J[37]=_,J[38]=E,J[39]=g;else g=J[39];let u;if(J[40]!==A)u=A&&q(W,{dimColor:!0,children:A}),J[40]=A,J[41]=u;else u=J[41];let S;if(J[42]!==D)S=q(W,{dimColor:!0,children:D}),J[42]=D,J[43]=S;else S=J[43];let k;if(J[44]!==D||J[45]!==S)k=q(JJ,{url:D,children:S}),J[44]=D,J[45]=S,J[46]=k;else k=J[46];let H;if(J[47]===Symbol.for("react.memo_cache_sentinel"))H={label:"Review in Claude Code on the web",value:"open"},J[47]=H;else H=J[47];let M;if(J[48]!==Y||J[49]!==V)M=Y&&V?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=V,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[H,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==K||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{p(!0);return}case"back":{K();return}}},J[54]=K,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let W0;if(J[58]!==s||J[59]!==Y0)W0=q(g0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=W0;else W0=J[60];let H0;if(J[61]!==g||J[62]!==u||J[63]!==k||J[64]!==W0)H0=N(y,{flexDirection:"column",gap:1,children:[g,u,k,W0]}),J[61]=g,J[62]=u,J[63]=k,J[64]=W0,J[65]=H0;else H0=J[65];let C0;if(J[66]!==K||J[67]!==v||J[68]!==H0)C0=q(n,{title:v,onCancel:K,color:"background",children:H0}),J[66]=K,J[67]=v,J[68]=H0,J[69]=C0;else C0=J[69];return C0}function VX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?gZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let V=Y,G=!X&&!z,F;if(J[2]!==G)F=G?q(W,{color:"background",children:"Setup"}):q(W,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=F;else F=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" → "}),J[4]=R;else R=J[4];let O;if(J[5]!==X||J[6]!==V||J[7]!==G)O=gZ.map((w,f)=>{let L=!X&&!G&&f===V;return N(O0.default.Fragment,{children:[f>0&&q(W,{dimColor:!0,children:" → "}),L?q(W,{color:"background",children:_Z[w]}):q(W,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=V,J[7]=G,J[8]=O;else O=J[8];let P;if(J[9]!==X)P=X&&q(W,{color:"success",children:" ✓"}),J[9]=X,J[10]=P;else P=J[10];let U;if(J[11]!==F||J[12]!==O||J[13]!==P)U=N(W,{children:[F,R,O,P]}),J[11]=F,J[12]=O,J[13]=P,J[14]=U;else U=J[14];return U}function WX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function HX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="completed",G=Z.status==="running"||Z.status==="pending",[F,R]=O0.useState(!1),O=R0(Z.startTime,G,1000,0,Z.endTime),P;if(J[0]!==X)P=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=P;else P=J[1];let U=P,w=z??U,f;if(J[2]!==Z.sessionId)f=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=f;else f=J[3];let L=f,C=V?"ready":G?"running":Z.status;if(F){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>R(!1),J[4]=k;else k=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=q(W,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=H;else H=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=q(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[H,q(g0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else R(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==V||J[12]!==Y||J[13]!==G)E=V?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=V,J[12]=Y,J[13]=G,J[14]=E;else E=J[14];let A=E,h;if(J[15]!==w||J[16]!==U||J[17]!==X||J[18]!==L)h=(k)=>{J:switch(k){case"open":{DJ(L),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":U()}},J[15]=w,J[16]=U,J[17]=X,J[18]=L,J[19]=h;else h=J[19];let D=h,I=V?w0:z0,K;if(J[20]!==I)K=N(W,{color:"background",children:[I," "]}),J[20]=I,J[21]=K;else K=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=q(W,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let p;if(J[23]!==O||J[24]!==C)p=N(W,{dimColor:!0,children:[" · ",O," · ",C]}),J[23]=O,J[24]=C,J[25]=p;else p=J[25];let d;if(J[26]!==K||J[27]!==p)d=N(W,{children:[K,B,p]}),J[26]=K,J[27]=p,J[28]=d;else d=J[28];let j=Z.reviewProgress?.stage,x=!!Z.reviewProgress,c;if(J[29]!==V||J[30]!==j||J[31]!==x)c=q(VX,{stage:j,completed:V,hasProgress:x}),J[29]=V,J[30]=j,J[31]=x,J[32]=c;else c=J[32];let v;if(J[33]!==Z)v=WX(Z),J[33]=Z,J[34]=v;else v=J[34];let b;if(J[35]!==v)b=q(W,{children:v}),J[35]=v,J[36]=b;else b=J[36];let m;if(J[37]!==L)m=q(W,{dimColor:!0,children:L}),J[37]=L,J[38]=m;else m=J[38];let T;if(J[39]!==L||J[40]!==m)T=q(JJ,{url:L,children:m}),J[39]=L,J[40]=m,J[41]=T;else T=J[41];let _;if(J[42]!==b||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,T]}),J[42]=b,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==D||J[46]!==A)g=q(g0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=g;else g=J[47];let u;if(J[48]!==c||J[49]!==_||J[50]!==g)u=N(y,{flexDirection:"column",gap:1,children:[c,_,g]}),J[48]=c,J[49]=_,J[50]=g,J[51]=u;else u=J[51];let S;if(J[52]!==w||J[53]!==u||J[54]!==d)S=q(n,{title:d,onCancel:w,color:"background",inputGuide:NX,children:u}),J[52]=w,J[53]=u,J[54]=d,J[55]=S;else S=J[55];return S}function NX(Q){return Q.pending?N(W,{children:["Press ",Q.keyName," again to exit"]}):N(Z0,{children:[q(l,{shortcut:"Enter",action:"select"}),q(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,V]=O0.useState(!1),[G,F]=O0.useState(null),R=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((L)=>L.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return q(GX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return q(HX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),P=(L)=>{if(L.key===" ")L.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(L.key==="left"&&X)L.preventDefault(),X();else if(L.key==="t"&&!Y)L.preventDefault(),U();else if(L.key==="return")L.preventDefault(),O()};async function U(){V(!0),F(null);try{await mZ(Q.sessionId)}catch(L){F(h0(L))}finally{V(!1)}}let w=K0(Q.title,50),f=Q.status==="pending"?"starting":Q.status;return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:N(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(L)=>L.pending?N(W,{children:["Press ",L.keyName," again to exit"]}):N(Z0,{children:[X&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&q(l,{shortcut:"t",action:"teleport"})]}),children:[N(y,{flexDirection:"column",children:[N(W,{children:[q(W,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?q(W,{color:"background",children:f}):f==="completed"?q(W,{color:"success",children:f}):q(W,{color:"error",children:f})]}),N(W,{children:[q(W,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),N(W,{wrap:"truncate-end",children:[q(W,{bold:!0,children:"Title"}),": ",w]}),N(W,{children:[q(W,{bold:!0,children:"Progress"}),":"," ",q(j0,{session:Q})]}),N(W,{children:[q(W,{bold:!0,children:"Session URL"}),":"," ",q(JJ,{url:_0(Q.sessionId),children:q(W,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&N(y,{flexDirection:"column",marginTop:1,children:[N(W,{children:[q(W,{bold:!0,children:"Recent messages"}),":"]}),q(y,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((L,C)=>q(pZ,{message:L,lookups:iZ,addMargin:C>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},C))}),q(y,{marginTop:1,children:N(W,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]})})]}),G&&q(y,{marginTop:1,children:N(W,{color:"error",children:["Teleport failed: ",G]})}),Y&&q(W,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,qX,gZ,_Z;var rZ=a(()=>{TZ();p0();i0();q0();UJ();eQ();tQ();mJ();JX();aJ();v0();XX();fZ();IJ();NJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(F0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},qX={needs_input:"waiting",plan_ready:"done"};gZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,PX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=hJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:V}=QJ(),G;if(J[0]!==Z)G=()=>sZ(Z),J[0]=Z,J[1]=G;else G=J[1];let[F,R]=V0.useState(G),O=V0.useDeferredValue(F),P;if(J[2]!==Z)P=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,R,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=P;else P=J[3];let U;if(J[4]!==Z.id||J[5]!==Z.status)U=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=U;else U=J[6];V0.useEffect(P,U);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let f=w,L;if(J[9]!==f)L={"confirm:yes":f},J[9]=f,J[10]=L;else L=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];G0(L,C);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,h=Z.kind==="monitor",D;if(J[17]!==Z.command)D=K0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,K=h?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?N(W,{children:["Press ",r.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=q(W,{bold:!0,children:"Status:"}),J[23]=p;else p=J[23];let d;if(J[24]!==Z.result||J[25]!==Z.status)d=N(W,{children:[p," ",Z.status==="running"?N(W,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?N(W,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):N(W,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=d;else d=J[26];let j;if(J[27]===Symbol.for("react.memo_cache_sentinel"))j=q(W,{bold:!0,children:"Runtime:"}),J[27]=j;else j=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let c=x-Z.startTime,v;if(J[30]!==c)v=e0(c),J[30]=c,J[31]=v;else v=J[31];let b;if(J[32]!==v)b=N(W,{children:[j," ",v]}),J[32]=v,J[33]=b;else b=J[33];let m=h?"Script:":"Command:",T;if(J[34]!==m)T=q(W,{bold:!0,children:m}),J[34]=m,J[35]=T;else T=J[35];let _;if(J[36]!==I||J[37]!==T)_=N(W,{wrap:"wrap",children:[T," ",I]}),J[36]=I,J[37]=T,J[38]=_;else _=J[38];let g;if(J[39]!==d||J[40]!==b||J[41]!==_)g=N(y,{flexDirection:"column",children:[d,b,_]}),J[39]=d,J[40]=b,J[41]=_,J[42]=g;else g=J[42];let u;if(J[43]===Symbol.for("react.memo_cache_sentinel"))u=q(W,{bold:!0,children:"Output:"}),J[43]=u;else u=J[43];let S;if(J[44]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{dimColor:!0,children:"Loading output…"}),J[44]=S;else S=J[44];let k;if(J[45]!==V||J[46]!==O)k=N(y,{flexDirection:"column",children:[u,q(V0.Suspense,{fallback:S,children:q(UX,{outputPromise:O,columns:V})})]}),J[45]=V,J[46]=O,J[47]=k;else k=J[47];let H;if(J[48]!==f||J[49]!==B||J[50]!==g||J[51]!==k||J[52]!==K)H=N(n,{title:K,onCancel:f,color:"background",inputGuide:B,children:[g,k]}),J[48]=f,J[49]=B,J[50]=g,J[51]=k,J[52]=K,J[53]=H;else H=J[53];let M;if(J[54]!==A||J[55]!==H)M=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:H}),J[54]=A,J[55]=H,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function UX(Q){let J=hJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=V0.use(Z);if(!z){let L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=q(W,{dimColor:!0,children:"No output available"}),J[0]=L;else L=J[0];return L}let V,G;if(J[1]!==Y||J[2]!==z){let L=[],C=z.length;for(let E=0;E<10&&C>0;E++){let A=z.lastIndexOf(`
17
- `,C-1);L.push(A+1),C=A}L.reverse(),V=Y>z.length,G=[];for(let E=0;E<L.length;E++){let A=L[E],h=E<L.length-1?L[E+1]-1:z.length,D=z.slice(A,h);if(D)G.push(D)}J[1]=Y,J[2]=z,J[3]=V,J[4]=G}else V=J[3],G=J[4];let F=X-6,R;if(J[5]!==G)R=G.map(fX),J[5]=G,J[6]=R;else R=J[6];let O;if(J[7]!==F||J[8]!==R)O=q(y,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:F,children:R}),J[7]=F,J[8]=R,J[9]=O;else O=J[9];let P=`Showing ${G.length} lines`,U;if(J[10]!==Y||J[11]!==V)U=V?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=V,J[12]=U;else U=J[12];let w;if(J[13]!==P||J[14]!==U)w=N(W,{dimColor:!0,italic:!0,children:[P,U]}),J[13]=P,J[14]=U,J[15]=w;else w=J[15];let f;if(J[16]!==O||J[17]!==w)f=N(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=f;else f=J[18];return f}function fX(Q,J){return q(W,{wrap:"truncate-end",children:Q},J)}var hJ,V0,PX=8192;var tZ=a(()=>{nZ();q0();S0();v0();FX();RX();B0();I0();A0();$();hJ=J0(F0(),1),V0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var LX=()=>null,wX;var ZQ=a(()=>{wX=LX});function gX(Q,J){return Object.values(Q??{}).filter(qJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function jq({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((H)=>H.tasks),z=zJ((H)=>H.foregroundedTaskId),Y=zJ((H)=>H.expandedView)==="teammates",V=FQ(),G=VQ("chat:killAgents","Chat","ctrl+x ctrl+k"),F=X,R=U0.useRef(!1),[O,P]=U0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let H=gX(F,z);if(H.length===1)return R.current=!0,{mode:"detail",itemId:H[0].id};return{mode:"list"}}),[U,w]=U0.useState(0);OQ("background-tasks-dialog");let{bashTasks:f,remoteSessions:L,agentTasks:C,teammateTasks:E,workflowTasks:A,mcpMonitors:h,dreamTasks:D,allSelectableItems:I}=U0.useMemo(()=>{let r=Object.values(F??{}).filter(qJ).map(_X).sort((i,f0)=>{let T0=i.status,gJ=f0.status;if(T0==="running"&&gJ!=="running")return-1;if(T0!=="running"&&gJ==="running")return 1;let UQ="task"in i?i.task.startTime:0;return("task"in f0?f0.task.startTime:0)-UQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),W0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),H0=r.filter((i)=>i.type==="local_workflow"),C0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),y0=e.length>0?[{id:"__leader__",type:"leader",label:`@${vJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:W0,workflowTasks:H0,mcpMonitors:C0,dreamTasks:X0,teammateTasks:[...y0,...e],allSelectableItems:[...y0,...e,...s,...C0,...Y0,...W0,...H0,...X0]}},[F,z,Y]),K=I[U]??null;G0({"confirm:previous":()=>w((H)=>Math.max(0,H-1)),"confirm:next":()=>w((H)=>Math.min(I.length-1,H+1)),"confirm:yes":()=>{let H=I[U];if(H)if(H.type==="leader")WJ(V),Q("Viewing leader",{display:"system"});else P({mode:"detail",itemId:H.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(H)=>{if(O.mode!=="list")return;if(H.key==="left"){H.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[U];if(!M)return;if(H.key==="x"){if(H.preventDefault(),M.type==="local_bash"&&M.status==="running")p(M.id);else if(M.type==="local_agent"&&M.status==="running")d(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")j(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,V);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,V);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)fJ(M.id,M.task.sessionId,V);else c(M.id)}if(H.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")H.preventDefault(),VJ(M.id,V),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")H.preventDefault(),WJ(V),Q("Viewing leader",{display:"system"})}};async function p(H){await WQ.kill(H,V)}async function d(H){await PQ.kill(H,V)}async function j(H){await HQ.kill(H,V)}async function x(H){await RQ.kill(H,V)}async function c(H){await m0.kill(H,V)}let v=NQ(Q);U0.useEffect(()=>{if(O.mode!=="list"){let M=(F??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!qJ(M))if(R.current)v("Background tasks dialog dismissed",{display:"system"});else P({mode:"list"})}let H=I.length;if(U>=H&&H>0)w(H-1)},[O,F,U,I,v]);let b=()=>{if(R.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,P({mode:"list"})};if(O.mode!=="list"&&F){let H=F[O.itemId];if(!H)return null;switch(H.type){case"local_bash":return q(eZ,{shell:H,onDone:Q,onKillShell:()=>void p(H.id),onBack:b},`shell-${H.id}`);case"local_agent":return q(OZ,{agent:H,onDone:Q,onKillAgent:()=>void d(H.id),onBack:b},`agent-${H.id}`);case"remote_agent":return q(xZ,{session:H,onDone:Q,toolUseContext:J,onBack:b,onKill:H.status!=="running"?void 0:H.isUltraplan?()=>void fJ(H.id,H.sessionId,V):()=>void c(H.id)},`session-${H.id}`);case"in_process_teammate":return q(SZ,{teammate:H,onDone:Q,onKill:H.status==="running"?()=>void j(H.id):void 0,onBack:b,onForeground:H.status==="running"?()=>{VJ(H.id,V),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${H.id}`);case"local_workflow":if(!QQ)return null;return q(QQ,{workflow:H,onDone:Q,onKill:H.status==="running"&&XJ?()=>XJ(H.id,V):void 0,onSkipAgent:H.status==="running"&&XQ?(M)=>XQ(H.id,M,V):void 0,onRetryAgent:H.status==="running"&&YQ?(M)=>YQ(H.id,M,V):void 0,onBack:b},`workflow-${H.id}`);case"monitor_mcp":if(!zQ)return null;return q(zQ,{task:H,onKill:H.status==="running"&&YJ?()=>YJ(H.id,V):void 0,onBack:b},`monitor-mcp-${H.id}`);case"dream":return q(DZ,{task:H,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:H.status==="running"?()=>void x(H.id):void 0},`dream-${H.id}`)}}let m=M0(f,(H)=>H.status==="running"),T=M0(L,(H)=>H.status==="running"||H.status==="pending")+M0(C,(H)=>H.status==="running"),_=M0(E,(H)=>H.status==="running"),g=qQ([..._>0?[N(W,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...m>0?[N(W,{children:[m," ",m!==1?"active shells":"active shell"]},"shells")]:[],...T>0?[N(W,{children:[T," ",T!==1?"active agents":"active agent"]},"agents")]:[]],(H)=>q(W,{children:" · "},`separator-${H}`)),u=[q(l,{shortcut:"↑/↓",action:"select"},"upDown"),q(l,{shortcut:"Enter",action:"view"},"enter"),...K?.type==="in_process_teammate"&&K.status==="running"?[q(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(K?.type==="local_bash"||K?.type==="local_agent"||K?.type==="in_process_teammate"||K?.type==="local_workflow"||K?.type==="monitor_mcp"||K?.type==="dream"||K?.type==="remote_agent")&&K.status==="running"?[q(l,{shortcut:"x",action:"stop"},"kill")]:[],...C.some((H)=>H.status==="running")?[q(l,{shortcut:G,action:"stop all agents"},"kill-all")]:[],q(l,{shortcut:"←/Esc",action:"close"},"esc")],S=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(H){if(H.pending)return N(W,{children:["Press ",H.keyName," again to exit"]});return q(Z0,{children:u})}return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:q(n,{title:"Background tasks",subtitle:q(o,{children:g}),onCancel:S,color:"background",inputGuide:k,children:I.length===0?q(W,{dimColor:!0,children:"No tasks currently running"}):N(y,{flexDirection:"column",children:[E.length>0&&N(y,{flexDirection:"column",children:[(f.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Agents"]})," (",M0(E,(H)=>H.type!=="leader"),")"]}),q(y,{flexDirection:"column",children:q(TX,{teammateTasks:E,currentSelectionId:K?.id})})]}),f.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),q(y,{flexDirection:"column",children:f.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),h.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Monitors"]})," (",h.length,")"]}),q(y,{flexDirection:"column",children:h.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),L.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Remote agents"]})," (",L.length,")"]}),q(y,{flexDirection:"column",children:L.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),C.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),q(y,{flexDirection:"column",children:C.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),A.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),q(y,{flexDirection:"column",children:A.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),D.length>0&&q(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0||A.length>0?1:0,children:q(y,{flexDirection:"column",children:D.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q};default:throw Error(`toListItem: unhandled task type ${String(Q.type)}`)}}function E0(Q){let J=SJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),V;if(J[0]===Symbol.for("react.memo_cache_sentinel"))V=GQ(),J[0]=V;else V=J[0];let G=V,F=G&&X,R=X?t0.pointer+" ":" ",O;if(J[1]!==F||J[2]!==R)O=q(W,{dimColor:F,children:R}),J[1]=F,J[2]=R,J[3]=O;else O=J[3];let P=X&&!G?"suggestion":void 0,U;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)U=Z.type==="leader"?N(W,{children:["@",vJ]}):q(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=U;else U=J[7];let w;if(J[8]!==P||J[9]!==U)w=q(W,{color:P,children:U}),J[8]=P,J[9]=U,J[10]=w;else w=J[10];let f;if(J[11]!==O||J[12]!==w)f=N(y,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=f;else f=J[13];return f}function TX(Q){let J=SJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(dX),V=Z.filter(uX),G=new Map;for(let R of V){let O=R.task.identity.teamName,P=G.get(O);if(P)P.push(R);else G.set(O,[R])}let F=[...G.entries()];z=q(o,{children:F.map((R)=>{let[O,P]=R,U=P.length+Y.length;return N(y,{flexDirection:"column",children:[N(W,{dimColor:!0,children:[" ","Team: ",O," (",U,")"]}),Y.map((w)=>q(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),P.map((w)=>q(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function uX(Q){return Q.type==="in_process_teammate"}function dX(Q){return Q.type==="leader"}var SJ,U0,QQ=null,jJ=null,XJ,XQ,YQ,jX,YJ,zQ;var cX=a(()=>{TZ();MX();AX();nZ();BX();uJ();hX();bX();vX();yX();UJ();CX();yJ();KX();GZ();SX();q0();S0();EX();yJ();B0();I0();A0();UZ();BZ();hZ();jZ();rZ();tZ();$();SJ=J0(F0(),1),U0=J0(o0(),1),XJ=jJ?.killWorkflowTask??null,XQ=jJ?.skipWorkflowAgent??null,YQ=jJ?.retryWorkflowAgent??null,jX=(DX(),RJ(IX)),YJ=jX?.killMonitorMcp??null,zQ=(ZQ(),RJ(JQ)).MonitorMcpDetailDialog});
18
- export{VJ as Od,WJ as Pd,xX as Qd,uJ as Rd,fJ as Sd,mQ as Td,GZ as Ud,jq as Vd,cX as Wd};
@@ -1,2 +0,0 @@
1
- import{rY as H,tY as M}from"./cli-1.1.24-4t3rdp3k.mjs";import{Eea as D,Iba as y,Rba as K,Rea as L,zea as B}from"./cli-1.1.24-pe23qamd.mjs";import{_ta as J}from"./cli-1.1.24-hty94kzp.mjs";async function Z(){let b=await H();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let x=D()?.remote?.defaultEnvironmentId,z=b.find((q)=>q.kind!=="bridge")??b[0],A=null;if(x){let q=b.find((k)=>k.environment_id===x);if(q){z=q;for(let k=y.length-1;k>=0;k--){let w=y[k];if(!w||w==="flagSettings")continue;if(B(w)?.remote?.defaultEnvironmentId===x){A=w;break}}}}return{availableEnvironments:b,selectedEnvironment:z,selectedEnvironmentSource:A}}var P=J(()=>{K();L();M()});
2
- export{Z as jc,P as kc};
@@ -1,2 +0,0 @@
1
- import{_ta as $}from"./cli-1.1.24-hty94kzp.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function A(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function N(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function m(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function q(z=1){return z===0?"":J(z,"A")}function D(z=1){return z===0?"":J(z,"B")}function M(z=1){return z===0?"":J(z,"C")}function W(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function b(z,Q){let V="";if(z<0)V+=W(-z);else if(z>0)V+=M(z);if(Q<0)V+=q(-Q);else if(Q>0)V+=D(Q);return V}function S(){return J("K")}function l(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=q(1);return Q+=k,Q}function o(z=1){return z===0?"":J(z,"S")}function y(z=1){return z===0?"":J(z,"T")}function a(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,k,v,F,K,E,c,t,n,i,r,e,s,zz,Jz;var X=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];k=J("G");v=J("H");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");c=J("r"),t=J("200~"),n=J("201~"),i=J("I"),r=J("O"),e=J(">1u"),s=J("<u"),zz=J(">4;2m"),Jz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+v}var P,Zz;var f=$(()=>{X();P=J(0,"f");Zz=T()});
2
- export{d as q2,Y as r2,h as s2,j as t2,H as u2,w as v2,L as w2,A as x2,N as y2,m as z2,J as A2,g as B2,I as C2,_ as D2,u as E2,R as F2,C as G2,v as H2,b as I2,S as J2,K as K2,l as L2,o as M2,y as N2,a as O2,c as P2,t as Q2,n as R2,i as S2,r as T2,e as U2,s as V2,zz as W2,Jz as X2,X as Y2,T as Z2,Zz as _2,f as $2};
@@ -1,34 +0,0 @@
1
- import{D1 as z,J1 as Bq,K1 as xq,k2 as Aq}from"./cli-1.1.24-vf59rwy3.mjs";import{P9 as H,Q9 as Rq}from"./cli-1.1.24-6ptbgma9.mjs";import{Bha as v,Dba as Zq,Ffa as _,Gba as $q,Hba as Mq,Ifa as R,Jha as a,Ofa as N,Pfa as m,bga as b,gfa as l,ifa as Gq,nca as W,pba as p,pca as jq,r$ as G,raa as Yq,saa as wq,t$ as o,wba as zq}from"./cli-1.1.24-pe23qamd.mjs";import{Qja as T,Sja as Wq}from"./cli-1.1.24-n7r6kv9g.mjs";import{kla as Qq,lla as Xq,pla as _q,tla as c,xla as Hq}from"./cli-1.1.24-zey4mks2.mjs";import{kma as E,mma as Uq}from"./cli-1.1.24-eh4c00hd.mjs";import{Csa as s,Dsa as Lq}from"./cli-1.1.24-yz5bzn1k.mjs";import{_ta as A}from"./cli-1.1.24-hty94kzp.mjs";function h(){let q=l(T(),c().existsSync)!==null,J=p(T());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:J},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:q,isCompletable:!0,isEnabled:!J}]}function I(){return h().filter(({isCompletable:q,isEnabled:J})=>q&&J).every(({isComplete:q})=>q)}var y=A(()=>{Wq();zq();Hq();Gq()});function i(){if(N().hasCompletedProjectOnboarding)return;if(I())m((q)=>({...q,hasCompletedProjectOnboarding:!0}))}var lq;var n=A(()=>{Lq();b();y();y();lq=s(()=>{let q=N();if(q.hasCompletedProjectOnboarding||q.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!I()})});import{stat as r}from"fs/promises";import{homedir as Vq}from"os";import{join as vq}from"path";function Oq(q){_((J)=>({...J,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:q}))}function U(){_((q)=>({...q,appleTerminalSetupInProgress:!1}))}function Fq(){let q=R();return{inProgress:q.appleTerminalSetupInProgress??!1,backupPath:q.appleTerminalBackupPath||null}}function w(){return vq(Vq(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let q=w(),J=`${q}.bak`;try{let{code:K}=await G("defaults",["export","com.apple.Terminal",q]);if(K!==0)return null;try{await r(q)}catch{return null}return await G("defaults",["export","com.apple.Terminal",J]),Oq(J),J}catch(K){return v(K),null}}async function e(){let{inProgress:q,backupPath:J}=Fq();if(!q)return{status:"no_backup"};if(!J)return U(),{status:"no_backup"};try{await r(J)}catch{return U(),{status:"no_backup"}}try{let{code:K}=await G("defaults",["import","com.apple.Terminal",J]);if(K!==0)return{status:"failed",backupPath:J};return await G("killall",["cfprefsd"]),U(),{status:"restored"}}catch(K){return v(Error(`Failed to restore Terminal.app settings with: ${K}`)),U(),{status:"failed",backupPath:J}}}var qq=A(()=>{b();o();a()});import{randomBytes as k}from"crypto";import{copyFile as g,mkdir as f,readFile as u,writeFile as P}from"fs/promises";import{homedir as d,platform as S}from"os";import{dirname as Iq,join as O}from"path";import{pathToFileURL as Sq}from"url";function Dq(){let q=process.env.VSCODE_GIT_ASKPASS_MAIN??"",J=process.env.PATH??"";return q.includes(".vscode-server")||q.includes(".cursor-server")||q.includes(".windsurf-server")||J.includes(".vscode-server")||J.includes(".cursor-server")||J.includes(".windsurf-server")}function FJ(){if(!W.terminal||!(W.terminal in D))return null;return D[W.terminal]??null}function L(q){if(!Bq())return q;return`\x1B]8;;${Sq(q).href}\x07${q}\x1B]8;;\x07`}function Eq(){return S()==="darwin"&&W.terminal==="Apple_Terminal"||W.terminal==="vscode"||W.terminal==="cursor"||W.terminal==="windsurf"||W.terminal==="alacritty"||W.terminal==="zed"}async function Tq(q){let J="";switch(W.terminal){case"Apple_Terminal":J=await yq(q);break;case"vscode":J=await C("VSCode",q);break;case"cursor":J=await C("Cursor",q);break;case"windsurf":J=await C("Windsurf",q);break;case"alacritty":J=await Nq(q);break;case"zed":J=await bq(q);break;case null:break}return _((K)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(W.terminal??"")){if(K.shiftEnterKeyBindingInstalled===!0)return K;return{...K,shiftEnterKeyBindingInstalled:!0}}else if(W.terminal==="Apple_Terminal"){if(K.optionAsMetaKeyInstalled===!0)return K;return{...K,optionAsMetaKeyInstalled:!0}}return K}),i(),J}function UJ(){return R().shiftEnterKeyBindingInstalled===!0}function _J(){return R().hasUsedBackslashReturn===!0}function RJ(){if(!R().hasUsedBackslashReturn)_((J)=>({...J,hasUsedBackslashReturn:!0}))}async function wJ(q,J,K){if(W.terminal&&W.terminal in D){let X=`Shift+Enter is natively supported in ${D[W.terminal]}.
2
-
3
- No configuration needed. Just use Shift+Enter to add newlines.`;return q(X),null}if(!Eq()){let X=W.terminal||"your current terminal",Y=Yq(),B="";if(Y==="macos")B=` • macOS: Apple Terminal
4
- `;else if(Y==="windows")B=` • Windows: Windows Terminal
5
- `;let Z=`Terminal setup cannot be run from ${X}.
6
-
7
- This command configures a convenient Shift+Enter shortcut for multi-line prompts.
8
- ${H.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
9
-
10
- To set up the shortcut (optional):
11
- 1. Exit tmux/screen temporarily
12
- 2. Run /terminal-setup directly in one of these terminals:
13
- ${B} • IDE: VSCode, Cursor, Windsurf, Zed
14
- • Other: Alacritty
15
- 3. Return to tmux/screen - settings will persist
16
-
17
- ${H.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return q(Z),null}let $=await Tq(J.options.theme);return q($),null}async function C(q="VSCode",J){if(Dq())return`${z("warning",J)(`Cannot install keybindings from a remote ${q} session.`)}${Q}${Q}${q} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${q} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${H.dim(`[
18
- {
19
- "key": "shift+enter",
20
- "command": "workbench.action.terminal.sendSequence",
21
- "args": { "text": "\\u001b\\r" },
22
- "when": "terminalFocus"
23
- }
24
- ]`)}${Q}`;let K=q==="VSCode"?"Code":q,$=O(d(),S()==="win32"?O("AppData","Roaming",K,"User"):S()==="darwin"?O("Library","Application Support",K,"User"):O(".config",K,"User")),X=O($,"keybindings.json");try{await f($,{recursive:!0});let Y="[]",B=[],Z=!1;try{Y=await u(X,{encoding:"utf-8"}),Z=!0,B=Zq(Y)??[]}catch(V){if(!E(V))throw V}if(Z){let V=k(4).toString("hex"),x=`${X}.${V}.bak`;try{await g(X,x)}catch{return`${z("warning",J)(`Error backing up existing ${q} terminal keybindings. Bailing out.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(x)}`)}${Q}`}}if(B.find((V)=>V.key==="shift+enter"&&V.command==="workbench.action.terminal.sendSequence"&&V.when==="terminalFocus"))return`${z("warning",J)(`Found existing ${q} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let j=$q(Y,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await P(X,j,{encoding:"utf-8"}),`${z("success",J)(`Installed ${q} terminal Shift+Enter key binding`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Y){throw v(Y),Error(`Failed to install ${q} terminal Shift+Enter key binding`)}}async function Jq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':useOptionAsMetaKey bool true`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':useOptionAsMetaKey true`,w()]);if(K!==0)return v(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${q}`)),!1}return!0}async function Kq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':Bell bool false`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':Bell false`,w()]);if(K!==0)return v(Error(`Failed to disable audio bell for Terminal.app profile: ${q}`)),!1}return!0}async function yq(q){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:K,code:$}=await G("defaults",["read","com.apple.Terminal","Default Window Settings"]);if($!==0||!K.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:X,code:Y}=await G("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(Y!==0||!X.trim())throw Error("Failed to read startup Terminal.app profile");let B=!1,Z=K.trim(),F=await Jq(Z),M=await Kq(Z);if(F||M)B=!0;let j=X.trim();if(j!==Z){let V=await Jq(j),x=await Kq(j);if(V||x)B=!0}if(!B)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await G("killall",["cfprefsd"]),U(),`${z("success",q)("Configured Terminal.app settings:")}${Q}${z("success",q)('- Enabled "Use Option as Meta key"')}${Q}${z("success",q)("- Switched to visual bell")}${Q}${H.dim("Option+Enter will now enter a newline.")}${Q}${H.dim("You must restart Terminal.app for changes to take effect.",q)}${Q}`}catch(J){v(J);let K=await e(),$="Failed to enable Option as Meta key for Terminal.app.";if(K.status==="restored")throw Error(`${$} Your settings have been restored from backup.`);else if(K.status==="failed")throw Error(`${$} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${K.backupPath}`);else throw Error(`${$} No backup was available to restore from.`)}}async function Nq(q){let K=[],$=process.env.XDG_CONFIG_HOME;if($)K.push(O($,"alacritty","alacritty.toml"));else K.push(O(d(),".config","alacritty","alacritty.toml"));if(S()==="win32"){let Z=process.env.APPDATA;if(Z)K.push(O(Z,"alacritty","alacritty.toml"))}let X=null,Y="",B=!1;for(let Z of K)try{Y=await u(Z,{encoding:"utf-8"}),X=Z,B=!0;break}catch(F){if(!E(F))throw F}if(!X)X=K[0]??null;if(!X)throw Error("No valid config path found for Alacritty");try{if(B){if(Y.includes('mods = "Shift"')&&Y.includes('key = "Return"'))return`${z("warning",q)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let F=k(4).toString("hex"),M=`${X}.${F}.bak`;try{await g(X,M)}catch{return`${z("warning",q)("Error backing up existing Alacritty config. Bailing out.")}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(M)}`)}${Q}`}}else await f(Iq(X),{recursive:!0});let Z=Y;if(Y&&!Y.endsWith(`
25
- `))Z+=`
26
- `;return Z+=`
27
- [[keyboard.bindings]]
28
- key = "Return"
29
- mods = "Shift"
30
- chars = "\\u001B\\r"
31
- `,await P(X,Z,{encoding:"utf-8"}),`${z("success",q)("Installed Alacritty Shift+Enter key binding")}${Q}${z("success",q)("You may need to restart Alacritty for changes to take effect")}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Z){throw v(Z),Error("Failed to install Alacritty Shift+Enter key binding")}}async function bq(q){let J=O(d(),".config","zed"),K=O(J,"keymap.json");try{await f(J,{recursive:!0});let $="[]",X=!1;try{$=await u(K,{encoding:"utf-8"}),X=!0}catch(B){if(!E(B))throw B}if(X){if($.includes("shift-enter"))return`${z("warning",q)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(K)}`)}${Q}`;let B=k(4).toString("hex"),Z=`${K}.${B}.bak`;try{await g(K,Z)}catch{return`${z("warning",q)("Error backing up existing Zed keymap. Bailing out.")}${Q}${H.dim(`See ${L(K)}`)}${Q}${H.dim(`Backup path: ${L(Z)}`)}${Q}`}}let Y;try{if(Y=Xq($),!Array.isArray(Y))Y=[]}catch{Y=[]}return Y.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await P(K,Qq(Y,null,2)+`
32
- `,{encoding:"utf-8"}),`${z("success",q)("Installed Zed Shift+Enter key binding")}${Q}${H.dim(`See ${L(K)}`)}${Q}`}catch($){throw v($),Error("Failed to install Zed Shift+Enter key binding")}}var Q=`
33
- `,D;var Cq=A(()=>{Rq();xq();Aq();n();qq();b();jq();Uq();o();Mq();a();wq();_q();D={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
34
- export{i as CZ,n as DZ,e as EZ,qq as FZ,FJ as GZ,Eq as HZ,Tq as IZ,UJ as JZ,_J as KZ,RJ as LZ,wJ as MZ,Cq as NZ};
@@ -1,2 +0,0 @@
1
- import{_ta as C}from"./cli-1.1.24-hty94kzp.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
2
- export{O as yia,Q as zia,R as Aia,S as Bia,T as Cia,U as Dia,W as Eia,X as Fia,Y as Gia,Z as Hia,$ as Iia,v as Jia,w as Kia,P as Lia,B as Mia,D as Nia,h as Oia,N as Pia,m as Qia,c as Ria,F as Sia,J as Tia};
@@ -1,2 +0,0 @@
1
- import{mi as g,ni as Uf}from"./cli-1.1.24-0zt6ghdg.mjs";import{ui as A,wi as Kf}from"./cli-1.1.24-dt22ehz1.mjs";import{$T as k,$m as Vf,Em as N,GD as I,HD as $f,HT as S,KF as v,KS as l,Km as Qf,Kt as h,Lt as Yf,RF as Df,Sl as Bf,Tl as Gf,UT as p,Uz as C,Vv as m,Wm as L,Wv as Zf,Xs as E,Ys as P,Yz as T,Zl as y,Zs as Xf,aA as _f,bk as W,kT as Ff,lU as Hf,mU as d,ok as w,pk as zf,rD as M,sE as u,sm as Jf,uF as c,vE as bf,vF as jf}from"./cli-1.1.24-2qkkzsk3.mjs";import{Bha as R,Jha as ff}from"./cli-1.1.24-pe23qamd.mjs";import{Eka as O,Hka as e}from"./cli-1.1.24-prprq6xe.mjs";import{Uqa as H,dsa as s,eoa as U,foa as q,fpa as F,koa as x}from"./cli-1.1.24-bnm1yphs.mjs";import{Xta as K,_ta as t}from"./cli-1.1.24-hty94kzp.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:c(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as ki,xf as li};
@@ -1,2 +0,0 @@
1
- import{$G as _,UG as I,vo as T,wo as j}from"./cli-1.1.24-2qkkzsk3.mjs";import{F1 as P,H1 as J,L1 as C,g0 as S,k2 as g}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as G,J4 as H,K4 as R}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as v}from"./cli-1.1.24-ys3jea4v.mjs";import{Pfa as B,bga as h}from"./cli-1.1.24-pe23qamd.mjs";import{Eka as W,Hka as D}from"./cli-1.1.24-prprq6xe.mjs";import{Wta as f,_ta as p}from"./cli-1.1.24-hty94kzp.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
2
- export{l as eh,r as fh};
@@ -1,2 +0,0 @@
1
- import{Cf as EG,Df as iG,Jf as rG}from"./cli-1.1.24-wf4vw9fr.mjs";import{AO as f,BO as s,Bn as YG,CN as l,CO as c,Cn as FG,DO as v,EO as i,GN as qG,Gn as VG,HO as u,IN as y,JN as o,KN as aG,LO as cG,MN as kG,Qn as fG,RN as bG,Ts as vG,_N as lG,gO as _G,hG as KG,hO as oG,iG as mG,py as a,qt as uG,qy as jG,rN as LG,ry as HG,sN as WG,sy as dG,tO as $G,uN as pG,wN as BG,wO as sG,xN as DG}from"./cli-1.1.24-2qkkzsk3.mjs";import{g0 as OJ}from"./cli-1.1.24-vf59rwy3.mjs";import{I4 as wG,K4 as PG}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as zG}from"./cli-1.1.24-ys3jea4v.mjs";import{Ada as ZG,Fda as CG,Fha as R,Gha as b,Jha as gG}from"./cli-1.1.24-pe23qamd.mjs";import{Tia as NG}from"./cli-1.1.24-gb39akdj.mjs";import{Eka as A,Hka as MG}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as XG,Kla as SG,pla as yG}from"./cli-1.1.24-zey4mks2.mjs";import{fma as h,mma as TG}from"./cli-1.1.24-eh4c00hd.mjs";import{dsa as QG,eoa as OG}from"./cli-1.1.24-bnm1yphs.mjs";import{Wta as r,_ta as p}from"./cli-1.1.24-hty94kzp.mjs";var e=p(()=>{yG();NG()});function GG(X){let Z="plugin"in X?X.plugin:"no-plugin";return`${X.type}:${X.source}:${Z}`}function JG(X,Z){if(Z.length===0)return;X((k)=>{let U=new Set(k.plugins.errors.map((j)=>GG(j))),_=Z.filter((j)=>!U.has(GG(j)));if(_.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,..._]}}})}function GJ(X,Z,k,U){let _=Z==="disabled"?U??[]:U;if(_===void 0)return X;let j=new Map;for(let B of _)if(B.name!==void 0)j.set(B.name,B);let V=[],P=new Set;for(let B of X){if(!B.name?.startsWith(k)){V.push(B);continue}let w=j.get(B.name);if(w)V.push(w),P.add(B.name)}for(let B of _)if(B.name===void 0||!P.has(B.name))V.push(B);return V}function IG(X,Z=!1){let k=HG(),U=a((G)=>G.authVersion),_=a((G)=>G.mcp.pluginReconnectKey),j=jG(),V=q.useRef(new Map),P=q.useRef(new Set),B=q.useRef(null);q.useEffect(()=>{},[j]);let{addNotification:w}=KG(),RG=16,d=q.useRef([]),N=q.useRef(null),C=q.useCallback(()=>{N.current=null;let G=d.current;if(G.length===0)return;d.current=[],j((z)=>{let Y=z.mcp;for(let W of G){let{tools:Q,commands:H,resources:D,...J}=W,K=J.type==="disabled"||J.type==="failed"?H??[]:H,O=J.type==="disabled"||J.type==="failed"?D??[]:D,F=ZG(J.name),I=Y.clients.findIndex((M)=>M.name===J.name)===-1?[...Y.clients,J]:Y.clients.map((M)=>M.name===J.name?J:M),g=GJ(Y.tools,J.type,F,Q),x=K===void 0?Y.commands:[..._G(Y.commands,(M)=>kG(M,J.name)),...K],m=O===void 0?Y.resources:{...Y.resources,...O.length>0?{[J.name]:O}:EG(Y.resources,J.name)};Y={...Y,clients:I,tools:g,commands:x,resources:m}}return{...z,mcp:Y}})},[j]),$=q.useCallback((G)=>{if(d.current.push(G),N.current===null)N.current=setTimeout(C,RG)},[C]),E=q.useCallback(({client:G,tools:z,commands:Y,resources:W})=>{switch($({...G,tools:z,commands:Y,resources:W}),G.type){case"connected":{if($G(G.client,G.name,j),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{XG(`Failed to invalidate the server cache: ${G.name}`)}),y(G.name)){b(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let H=JJ(Q);b(G.name,`${H} transport closed/disconnected, attempting automatic reconnection`);let D=V.current.get(G.name);if(D)clearTimeout(D),V.current.delete(G.name);(async()=>{for(let K=1;K<=T;K++){if(y(G.name)){b(G.name,"Server disabled during reconnection, stopping retry"),V.current.delete(G.name);return}$({...G,type:"pending",reconnectAttempt:K,maxReconnectAttempts:T});let O=Date.now();try{let L=await v(G.name,G.config),I=Date.now()-O;if(L.client.type==="connected"){b(G.name,`${H} reconnection successful after ${I}ms (attempt ${K})`),V.current.delete(G.name),E(L);return}if(b(G.name,`${H} reconnection attempt ${K} completed with status: ${L.client.type}`),K===T){b(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),E(L);return}}catch(L){let I=Date.now()-O;if(R(G.name,`${H} reconnection attempt ${K} failed after ${I}ms: ${L}`),K===T){b(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),$({...G,type:"failed"});return}}let F=Math.min(tG*Math.pow(2,K-1),eG);b(G.name,`Scheduling reconnection attempt ${K+1} in ${F}ms`),await new Promise((L)=>{let I=setTimeout(L,F);V.current.set(G.name,I)})}})()}else $({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{b(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=f.cache.get(G.name);f.cache.delete(G.name);let H=await f(G),D=H.length;if(Q)Q.then((J)=>{A("",{type:"tools",previousCount:J.length,newCount:D})},()=>{A("",{type:"tools",newCount:D})});else A("",{type:"tools",newCount:D});$({...G,tools:H})}catch(Q){R(G.name,`Failed to refresh tools after list_changed notification: ${h(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(FG,async()=>{b(G.name,"Received prompts/list_changed notification, refreshing prompts"),A("",{type:"prompts"});try{c.cache.delete(G.name);let[Q,H]=await Promise.all([c(G),Promise.resolve([])]);$({...G,commands:[...Q,...H]}),nG?.()}catch(Q){R(G.name,`Failed to refresh prompts after list_changed notification: ${h(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(YG,async()=>{b(G.name,"Received resources/list_changed notification, refreshing resources"),A("",{type:"resources"});try{s.cache.delete(G.name);{let Q=await s(G);$({...G,resources:Q})}}catch(Q){R(G.name,`Failed to refresh resources after list_changed notification: ${h(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[$]),t=OG();q.useEffect(()=>{async function G(){let{servers:z,errors:Y}=Z?{servers:{},errors:[]}:await l(X),W={...z,...X};JG(j,Y),j((Q)=>{let{stale:H,...D}=bG(Q.mcp,W);for(let O of H){let F=V.current.get(O.name);if(F)clearTimeout(F),V.current.delete(O.name);if(O.type==="connected")O.client.onclose=void 0,u(O.name,O.config).catch(()=>{})}let J=new Set(D.clients.map((O)=>O.name)),K=Object.entries(W).filter(([O])=>!J.has(O)).map(([O,F])=>({name:O,type:y(O)?"disabled":"pending",config:F}));if(K.length===0&&H.length===0)return Q;return{...Q,mcp:{...Q.mcp,...D,clients:[...D.clients,...K]}}})}G().catch((z)=>{R("useManageMCPConnections",`Failed to initialize servers as pending: ${h(z)}`)})},[Z,X,j,t,_]),q.useEffect(()=>{let G=!1;async function z(){let Y;if(Z||qG())Y=Promise.resolve({});else WG(),Y=LG();let{servers:W,errors:Q}=Z?{servers:{},errors:[]}:await l(X,Y);if(G)return;JG(j,Q);let H={...W,...X},D=Object.fromEntries(Object.entries(H).filter(([F])=>!y(F)));i(E,D).catch((F)=>{R("useManageMcpConnections",`Failed to get MCP resources: ${h(F)}`)});let J={};if(!Z){if(J=DG(await Y).allowed,G)return;if(Object.keys(J).length>0){let{servers:F}=BG(J,H);J=F}if(Object.keys(J).length>0){j((L)=>{let I=new Set(L.mcp.clients.map((x)=>x.name)),g=Object.entries(J).filter(([x])=>!I.has(x)).map(([x,m])=>({name:x,type:y(x)?"disabled":"pending",config:m}));if(g.length===0)return L;return{...L,mcp:{...L.mcp,clients:[...L.mcp.clients,...g]}}});let F=Object.fromEntries(Object.entries(J).filter(([L])=>!y(L)));i(E,F).catch((L)=>{R("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${h(L)}`)})}}let K={...H,...J},O={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let F of Object.values(K))if(F.scope==="enterprise")O.enterprise++;else if(F.scope==="user")O.global++;else if(F.scope==="project")O.project++;else if(F.scope==="local")O.user++;else if(F.scope==="dynamic")O.plugin++;else if(F.scope==="claudeai")O.claudeai++;A("",{...O})}return z(),()=>{G=!0}},[Z,X,E,j,U,t,_]),q.useEffect(()=>{let G=V.current;return()=>{for(let z of G.values())clearTimeout(z);if(G.clear(),N.current!==null)clearTimeout(N.current),N.current=null,C()}},[C]);let AG=q.useCallback(async(G)=>{let z=k.getState().mcp.clients.find((Q)=>Q.name===G);if(!z)throw Error(`MCP server ${G} not found`);let Y=V.current.get(G);if(Y)clearTimeout(Y),V.current.delete(G);let W=await v(G,z.config);return E(W),W},[k,E]),hG=q.useCallback(async(G)=>{let z=k.getState().mcp.clients.find((W)=>W.name===G);if(!z)throw Error(`MCP server ${G} not found`);if(z.type!=="disabled"){let W=V.current.get(G);if(W)clearTimeout(W),V.current.delete(G);if(o(G,!1),z.type==="connected")await u(G,z.config);$({name:G,type:"disabled",config:z.config})}else{o(G,!0),$({name:G,type:"pending",config:z.config});let W=await v(G,z.config);E(W)}},[k,$,E]);return{reconnectMcpServer:AG,toggleMcpServer:hG}}function JJ(X){switch(X){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,nG=null,T=5,tG=1000,eG=30000;var UG=p(()=>{QG();cG();fG();iG();oG();MG();aG();SG();QG();mG();dG();TG();gG();uG();rG();e();pG();sG();CG();lG();vG();q=r(zG(),1)});function lJ(){let X=S.useContext(n);if(!X)throw Error("useMcpReconnect must be used within MCPConnectionManager");return X.reconnectMcpServer}function oJ(){let X=S.useContext(n);if(!X)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return X.toggleMcpServer}function sJ(X){let Z=xG.c(6),{children:k,dynamicMcpConfig:U,isStrictMcpConfig:_}=X,{reconnectMcpServer:j,toggleMcpServer:V}=IG(U,_),P;if(Z[0]!==j||Z[1]!==V)P={reconnectMcpServer:j,toggleMcpServer:V},Z[0]=j,Z[1]=V,Z[2]=P;else P=Z[2];let B=P,w;if(Z[3]!==k||Z[4]!==B)w=wG(n.Provider,{value:B,children:k}),Z[3]=k,Z[4]=B,Z[5]=w;else w=Z[5];return w}var xG,S,n;var QJ=p(()=>{UG();PG();xG=r(OJ(),1),S=r(zG(),1),n=S.createContext(null)});
2
- export{e as xf,lJ as yf,oJ as zf,sJ as Af,QJ as Bf};
@@ -1,2 +0,0 @@
1
- import{_ta as o}from"./cli-1.1.24-hty94kzp.mjs";var t=3,n=1,i=32,_="generativelanguage.googleapis.com",s,c="api.kimi.com",p,r,a,E;var e=o(()=>{s=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),r=new Set(["api.deepseek.com"]),a={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
- export{t as Z9,n as _9,i as $9,_ as a_,s as b_,c as c_,p as d_,r as e_,a as f_,E as g_,e as h_};
@@ -1,2 +0,0 @@
1
- import{i5 as M,j5 as D}from"./cli-1.1.24-32h2wd2e.mjs";import{Cga as L,Dga as c,gga as F,mha as S,oga as _,pha as p,zga as l}from"./cli-1.1.24-pe23qamd.mjs";import{Ama as m,uma as Y}from"./cli-1.1.24-8s7nf1y6.mjs";import{_ta as B}from"./cli-1.1.24-hty94kzp.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:T}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||E}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,j=J?.scope?.trim()||C,$=j===C?[j]:[j,C],z="Device code request failed.",y=b(R(J?.domain));for(let V of $){let W=await Z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let x=await W.text().catch(()=>"");z=`Device code request failed: ${W.status} ${x}`;let k=/invalid_scope/i.test(x);if(V!==C&&k)continue;throw new q(z)}let X=await W.json(),N=X.device_code,K=X.user_code,w=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof w!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:w,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(z)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let j=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,z=Q?.fetchImpl??fetch,y=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(j*1000);continue}if(N==="slow_down"){j=typeof X.interval==="number"?X.interval:j+5,await P(j*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},j=Z.fetchImpl??fetch,$=h(R(Z.domain)),z=await j($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!z.ok){let K=await z.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${z.status} ${K}`)}let y=await z.json(),V=y.token,W=y.expires_at,X=y.refresh_in,N=y.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var E="Iv1.b507a08c87ecfe98",T="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{D();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function g(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),z=$+"=".repeat((4-$.length%4)%4),y=Buffer.from(z,"base64").toString("utf8"),V=JSON.parse(y);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function jJ(){if(!g())return;if(Y())return;if(a())return}async function yJ(){if(!g())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,j=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!j&&!$)return!1;if((j?d(j):"expired")==="valid")return!1;if(!$)return!1;let y=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:y});if(!n(V.token,$,y).success)return!1;let X=F().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)_(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let j=J.trim();if(!j)return{success:!1,warning:"Token is empty."};let $=L(),z=$.read()||{},y=z[U],V=Q?.trim(),W={accessToken:j};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(y?.oauthAccessToken?.trim())W.oauthAccessToken=y.oauthAccessToken.trim();let N=Z?.trim()||y?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...z,[U]:W};return $.update(X)}function zJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
- export{R as l3,r as m3,o as n3,e as o3,I as p3,O as q3,U as r3,VJ as s3,a as t3,WJ as u3,jJ as v3,yJ as w3,n as x3,zJ as y3,s as z3};
@@ -1,4 +0,0 @@
1
- import{lh as g,mh as Py}from"./cli-1.1.24-bskn8qpc.mjs";import{jj as s,lj as d,mj as $y}from"./cli-1.1.24-sdsp22c3.mjs";import{Ao as L,Co as V,EM as n,Eo as Y,Fl as F,Fy as q,Gy as Zy,Ho as D,Io as M,Ir as Qy,Jl as Iy,Jo as C,Lo as T,OM as vy,Ro as Ky,ST as c,Tr as E,VM as x,Xr as Wy,Yt as O,ZM as Ny,eu as Xy,jr as f,mU as py,nQ as l,sr as u,vM as Q,wM as Ry,zr as A}from"./cli-1.1.24-2qkkzsk3.mjs";import{UX as i,VX as Oy}from"./cli-1.1.24-tbzjj2e8.mjs";import{BZ as Uy,vZ as _,wZ as a,xZ as t}from"./cli-1.1.24-4p3bjzm5.mjs";import{HZ as o,NZ as hy}from"./cli-1.1.24-fwb0d06k.mjs";import{D1 as k,E1 as Jy}from"./cli-1.1.24-vf59rwy3.mjs";import{K7 as qy,a9 as Z,j7 as m,k7 as B,t9 as zy}from"./cli-1.1.24-dw6eynz7.mjs";import{P9 as p,Q9 as ry}from"./cli-1.1.24-6ptbgma9.mjs";import{Eea as K,Ffa as R,Ifa as w,Rea as ky,U$ as h,bga as v,iaa as H,nca as j,paa as wy,pca as jy,raa as X,saa as Sy,zea as b}from"./cli-1.1.24-pe23qamd.mjs";import{Hia as z,Tia as Gy}from"./cli-1.1.24-gb39akdj.mjs";import{Hla as U,Kla as yy}from"./cli-1.1.24-zey4mks2.mjs";v();function Vy(y){let r=w().numStartups;R((G)=>{let S=G.tipsHistory??{};if(S[y]===r)return G;return{...G,tipsHistory:{...S,[y]:r}}})}function N(y){let r=w(),G=r.tipsHistory?.[y];if(!G)return 1/0;return r.numStartups-G}ry();yy();Xy();ky();hy();Jy();Py();Zy();Iy();zy();Oy();v();Qy();jy();Wy();wy();Ky();qy();Sy();Ny();vy();Ry();py();Gy();$y();Uy();var W;async function Hy(){if(W!==void 0)return W;let y=await n();return W=Q in y,W}async function P(y,r,G){if(!await Hy())return!1;if(x(`${y}@${Q}`))return!1;let{bashTools:S}=r??{};if(G.cli&&S?.size){if(G.cli.some((I)=>S.has(I)))return!0}if(G.filePath&&r?.readFileState){if(E(r.readFileState).some(($)=>G.filePath.test($)))return!0}return!1}var by=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return w().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=w();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=w(),r=K(),G=Boolean(y.lastPlanModeUse),S=Boolean(r?.permissions?.defaultMode);return G&&!S}catch(y){return U(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=w();return await H()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${q("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await h()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${q("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await h()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${q("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=w();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(c())return!1;return await i()>=2}},{id:"terminal-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=w();if(j.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>j.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=w();return Boolean((j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!o())return!1;let y=w();return!(j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return w().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&p.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDIN_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>X()==="windows"&&process.env.CLAUDIN_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>K().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return w().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${j.terminal==="vscode"?"code":j.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!L())return!1;if(X()!=="macos")return!1;switch(j.terminal){case"vscode":return!await C();case"cursor":return!await D();case"windsurf":return!await M();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(V())return!1;if((await Y()).length!==0)return!1;return(await T()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!w().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!w().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return w().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!j.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>X()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>l()&&w().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return w().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${q("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=w(),G=m()==="opusplan",S=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return G&&S>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
- ${k("suggestion",y.theme)(`/plugin install frontend-design@${Q}`)}`},cooldownSessions:3,isRelevant:async(y)=>P("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
- ${k("suggestion",y.theme)(`/plugin install vercel@${Q}`)}`},cooldownSessions:3,isRelevant:async(y)=>P("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let G=k("suggestion",y.theme)("/effort high");return z("tengu_tide_elm","off")==="copy_b"?`Use ${G} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${G} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;if(!f(B()))return!1;if(b("policySettings")?.effortLevel!==void 0)return!1;if(A()!==void 0)return!1;let y=u();if(y==="high"||y==="max")return!1;return z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${r("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${r('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;return z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_timber_lark","off")==="copy_b"?`Use ${r("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${r("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;if(!F())return!1;return z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let r=k("claude",y.theme),G=t();return G?`Share Claudin and earn ${r(a(G))} of extra usage · ${r("/passes")}`:`You have free guest passes to share · ${r("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(w().hasVisitedPasses)return!1;let{eligible:r}=_();return r}},{id:"overage-credit",content:async(y)=>{let r=k("claude",y.theme),G=s(),S=G?d(G):null;if(!S)return"";return`${r(`${S} in extra usage, on us`)} · third-party apps · ${r("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>g()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return w().numStartups>5}}],my=[];function By(){let r=K().spinnerTipsOverride;if(!r?.tips?.length)return[];return r.tips.map((G,S)=>({id:`custom-tip-${S}`,content:async()=>G,cooldownSessions:0,isRelevant:async()=>!0}))}async function kr(y){let G=K().spinnerTipsOverride,S=By();if(G?.excludeDefault&&S.length>0)return S;let I=[...by,...my],$=await Promise.all(I.map((J)=>J.isRelevant(y)));return[...I.filter((J,e)=>$[e]).filter((J)=>N(J.id)>=J.cooldownSessions),...S]}
4
- export{Vy as wb,N as xb,kr as yb};
@@ -1,24 +0,0 @@
1
- import{Hb as qY}from"./cli-1.1.24-vwmxvbv9.mjs";import{rd as LY,ud as rQ}from"./cli-1.1.24-x77tmaf2.mjs";import{vi as X0,wi as p6}from"./cli-1.1.24-dt22ehz1.mjs";import{Ui as IY,Vi as J6}from"./cli-1.1.24-3cgaxth4.mjs";import{$t as b0,Al as Y0,Aw as NQ,BM as P9,Bl as D9,CB as HY,Cl as A9,Cz as bY,DB as aQ,DM as F9,Dk as $Y,Dl as sY,FE as NY,Fz as K6,GE as nQ,HM as b9,IB as yY,JS as OZ,KB as V6,MI as C0,NI as s9,OM as o6,PC as CY,QC as H6,QE as n,Ru as S0,SE as B6,Su as GQ,TL as rY,TQ as hY,Tu as JY,UG as I0,Uu as lQ,VG as o9,Vp as $9,Vu as FY,WB as MY,WL as O6,WS as xY,Wp as r6,Wq as iZ,XK as s,Xq as cY,YB as G6,Yq as FZ,Yt as F0,Zq as PY,aR as SY,au as fZ,bL as TY,cR as kY,dT as uY,eP as BY,eu as i9,fD as RY,gD as N6,gP as iQ,gR as L6,hT as zY,hn as UZ,iL as fY,jw as x0,kT as vY,kn as EZ,kw as u0,ln as h0,lw as p0,mw as c0,nw as m0,oS as kZ,ow as d0,pB as jY,pw as pZ,py as M0,qB as OY,qw as cZ,rB as X6,rw as g0,sS as xZ,sl as L9,sw as l0,sy as r9,tl as u6,tw as a0,ul as z9,uw as n0,vk as KZ,vl as v9,vw as i0,wl as MZ,ww as r0,xl as Z0,xw as o0,yk as O0,yl as q9,yw as s0,zl as XZ,zw as t0}from"./cli-1.1.24-2qkkzsk3.mjs";import{MX as Q9,QX as T6}from"./cli-1.1.24-tbzjj2e8.mjs";import{SY as y0,TY as g9,eZ as U0,fZ as E0,gZ as l9,jZ as $0,kZ as a9,qZ as P0,rZ as n9}from"./cli-1.1.24-4p3bjzm5.mjs";import{F1 as p,H1 as b,g0 as m9,k2 as d9}from"./cli-1.1.24-vf59rwy3.mjs";import{H4 as a,I4 as y,J4 as M,K4 as G0}from"./cli-1.1.24-9dnr05fm.mjs";import{L4 as c9}from"./cli-1.1.24-ys3jea4v.mjs";import{Q6 as nY,U6 as w6,t9 as j6,w8 as iY}from"./cli-1.1.24-dw6eynz7.mjs";import{$aa as U9,Bha as e,Cba as Y9,Eea as aY,Gda as gY,Hba as R6,Hda as lY,Jda as A6,Jha as j0,P$ as y9,Rea as _6,Waa as RZ,Yaa as x9,a$ as _Z,b$ as k9,m$ as GY,o$ as gQ,oda as E9,paa as a6,uha as w0,vda as i6,wba as n6,xha as p9}from"./cli-1.1.24-pe23qamd.mjs";import{Uha as N0,aia as B0,eia as S9}from"./cli-1.1.24-bph6jjd7.mjs";import{Iia as oY,Tia as E6}from"./cli-1.1.24-gb39akdj.mjs";import{Jja as Y,Kja as S,Lja as HZ,Mja as D,Nja as yZ}from"./cli-1.1.24-zjc9nfba.mjs";import{Qja as dY,Sja as D6,Uja as TZ,Xja as L0,Yja as z0,Zja as v0,_ja as q0,aka as D0,bka as A0,nka as _0,tka as u9}from"./cli-1.1.24-n7r6kv9g.mjs";import{Eka as g,Hka as jZ}from"./cli-1.1.24-prprq6xe.mjs";import{Hla as I,Kka as Z9,Kla as JZ,Mka as C6,kla as ZZ,lla as WY,pla as PZ}from"./cli-1.1.24-zey4mks2.mjs";import{Mla as KY,Qla as dQ}from"./cli-1.1.24-ctw3hzrp.mjs";import{Tla as VY,fma as O9,gma as sZ,mma as gZ}from"./cli-1.1.24-eh4c00hd.mjs";import{Nqa as J9,Oqa as qZ,Pqa as H9,Rqa as N9,Sqa as Q0,Uqa as B9,asa as wY,dsa as NZ,eoa as BZ,koa as V0,loa as eY,vpa as mY}from"./cli-1.1.24-bnm1yphs.mjs";import{$ta as nZ,Wta as H0,Zta as SZ,_ta as wZ}from"./cli-1.1.24-hty94kzp.mjs";var WQ={};SZ(WQ,{selectableUserMessagesFilter:()=>f0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function hZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:W,onSummarize:V,onClose:H,preselectedMessage:G}){let K=M0((j)=>j.fileHistory),[B,z]=R.useState(void 0),J=F0(),L=R.useMemo(t9,[]),_=R.useMemo(()=>[...Q.filter(f0),{...s({content:""}),uuid:L}],[Q,L]),[O,q]=R.useState(_.length-1),P=Math.max(0,Math.min(O-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[v,F]=R.useState(G),[U,h]=R.useState(void 0);R.useEffect(()=>{if(!G||!J)return;let j=!1;return fZ(K,G.uuid).then((T)=>{if(!j)h(T)}),()=>{j=!0}},[G,J,K]);let[E,w]=R.useState(!1),[c,r]=R.useState(null),[o,C]=R.useState("both"),[k,x]=R.useState(""),[A,$]=R.useState("");function N(j){let T=j?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],m={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return T.push({value:"summarize",label:"Summarize from here",...m,onChange:x}),T.push({value:"nevermind",label:"Never mind"}),T}R.useEffect(()=>{g("",{})},[]);async function u(j){Z(),w(!0);try{await X(j),w(!1),H()}catch(T){e(T),w(!1),z(`Failed to restore the conversation:
2
- ${T}`)}}async function l(j){let T=Q.indexOf(j),m=Q.length-1-T;if(g("",{index_from_end:m,message_type:j.type,is_current_prompt:!1}),!Q.includes(j)){H();return}if(!J){await u(j);return}let d=await fZ(K,j.uuid);F(j),h(d)}async function VZ(j){if(g("",{option:j}),!v){z("Message not found.");return}if(j==="nevermind"){if(G)H();else F(void 0);return}if(hZ(j)){Z(),w(!0),r(j),z(void 0);try{let d=j==="summarize_up_to"?"up_to":"from",YZ=(d==="up_to"?A:k).trim()||void 0;await V(v,YZ,d),w(!1),r(null),F(void 0),H()}catch(d){e(d),w(!1),r(null),F(void 0),z(`Failed to summarize:
3
- ${d}`)}return}Z(),w(!0),z(void 0);let T=null,m=null;if(j==="code"||j==="both")try{await W(v)}catch(d){T=d,e(T)}if(j==="conversation"||j==="both")try{await X(v)}catch(d){m=d,e(m)}if(w(!1),F(void 0),m&&T)z(`Failed to restore the conversation and code:
4
- ${m}
5
- ${T}`);else if(m)z(`Failed to restore the conversation:
6
- ${m}`);else if(T)z(`Failed to restore the code:
7
- ${T}`);else H()}let WZ=$0(),t=R.useCallback(()=>{if(v&&!G){F(void 0);return}g("",{}),H()},[H,v,G]),I9=R.useCallback(()=>q((j)=>Math.max(0,j-1)),[]),C9=R.useCallback(()=>q((j)=>Math.min(_.length-1,j+1)),[_.length]),R9=R.useCallback(()=>q(0),[]),T9=R.useCallback(()=>q(_.length-1),[_.length]),f9=R.useCallback(()=>{let j=_[O];if(j)l(j)},[_,O,l]);U0("confirm:no",t,{context:"Confirmation",isActive:!v}),E0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":R9,"messageSelector:bottom":T9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!E&&!B&&!v&&f});let[W0,K0]=R.useState({});R.useEffect(()=>{async function j(){if(!J)return;Promise.all(_.map(async(T,m)=>{if(T.uuid!==L){let d=b0(K,T.uuid),YZ=_.at(m+1),AZ=d?XQ(Q,T.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)K0((i)=>({...i,[m]:AZ}));else K0((i)=>({...i,[m]:void 0}))}}))}j()},[_,Q,L,K,J]);let DZ=J&&U?.filesChanged&&U.filesChanged.length>0,h9=!B&&!v&&!G&&f;return M(p,{flexDirection:"column",width:"100%",children:[y(P0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[y(b,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(a,{children:M(b,{color:"error",children:["Error: ",B]})}),!f&&y(a,{children:y(b,{children:"Nothing to rewind to yet."})}),!B&&v&&f&&M(a,{children:[M(b,{children:["Confirm you want to restore"," ",!U&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(J0,{userMessage:v,color:"text",isCurrent:!1}),M(b,{dimColor:!0,children:["(",B0(new Date(v.timestamp)),")"]})]}),y(YQ,{selectedRestoreOption:o,canRestoreCode:!!DZ,diffStatsForRestore:U}),E&&hZ(c)?M(p,{flexDirection:"row",gap:1,children:[y(C0,{}),y(b,{children:"Summarizing…"})]}):y(I0,{isDisabled:E,options:N(!!DZ),defaultFocusValue:DZ?"both":"conversation",onFocus:(j)=>C(j),onChange:(j)=>VZ(j),onCancel:()=>G?H():F(void 0)}),DZ&&y(p,{marginBottom:1,children:M(b,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),h9&&M(a,{children:[J?y(b,{children:"Restore the code and/or conversation to the point before…"}):y(b,{children:"Restore and fork the conversation to the point before…"}),y(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((j,T)=>{let m=P+T,d=m===O,YZ=j.uuid===L,AZ=m in W0,i=W0[m],IZ=i?.filesChanged&&i.filesChanged.length;return M(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(p,{width:2,minWidth:2,children:d?M(b,{color:"permission",bold:!0,children:[_Z.pointer," "]}):y(b,{children:" "})}),M(p,{flexDirection:"column",children:[y(p,{flexShrink:1,height:1,overflow:"hidden",children:y(J0,{userMessage:j,color:d?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&y(p,{height:1,flexDirection:"row",children:i?y(a,{children:y(b,{dimColor:!d,color:"inactive",children:IZ?M(a,{children:[IZ===1&&i.filesChanged[0]?`${QZ.basename(i.filesChanged[0])} `:`${IZ} files changed `,y(T0,{diffStats:i})]}):y(a,{children:"No code changes"})})}):M(b,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},j.uuid)})})]}),!v&&y(b,{dimColor:!0,italic:!0,children:WZ.pending?M(a,{children:["Press ",WZ.keyName," again to exit"]}):M(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:W,diffStatsForRestore:V}=Q,H=W&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=y(b,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==V||Z[5]!==X||Z[6]!==H)B=!hZ(X)&&(H?y(QQ,{diffStatsForRestore:V}):y(b,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=M(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=y(b,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let W=X.filesChanged.length,V;if(W===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];V=K}else if(W===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];V=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=y(T0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==V||Z[12]!==H)G=y(a,{children:M(b,{dimColor:!0,children:["The code will be restored"," ",H," in ",V,"."]})}),Z[11]=V,Z[12]=H,Z[13]=G;else G=Z[13];return G}function T0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let W;if(Z[0]!==X.insertions)W=M(b,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=W;else W=Z[1];let V;if(Z[2]!==X.deletions)V=M(b,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=V;else V=Z[3];let H;if(Z[4]!==W||Z[5]!==V)H=M(a,{children:[W,V]}),Z[4]=W,Z[5]=V,Z[6]=H;else H=Z[6];return H}function J0(Q){let Z=GZ.c(31),{userMessage:X,color:W,dimColor:V,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let h;if(Z[0]!==W||Z[1]!==V)h=y(p,{width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"(current)"})}),Z[0]=W,Z[1]=V,Z[2]=h;else h=Z[2];return h}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,O,q,P,f,v;if(Z[3]!==W||Z[4]!==K||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==G){v=Symbol.for("react.early_return_sentinel");Z:{let h=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",E=w0(h);if(O0(E)){let w;if(Z[17]!==W||Z[18]!==V)w=y(p,{flexDirection:"row",width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"((empty message))"})}),Z[17]=W,Z[18]=V,Z[19]=w;else w=Z[19];v=w;break Z}if(E.includes("<bash-input>")){let w=KZ(E,"bash-input");if(w){let c;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))c=y(b,{color:"bashBorder",children:"!"}),Z[20]=c;else c=Z[20];v=M(p,{flexDirection:"row",width:"100%",children:[c,M(b,{color:W,dimColor:V,children:[" ",w]})]});break Z}}if(E.includes(`<${TZ}>`)){let w=KZ(E,TZ),c=KZ(E,"command-args"),r=KZ(E,"skill-format")==="true";if(w)if(r){v=y(p,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["Skill(",w,")"]})});break Z}else{v=y(p,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["/",w," ",c]})});break Z}}L=p,P="row",f="100%",J=b,_=W,O=V,q=G?N0(E,K-G,!0):E.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=W,Z[4]=K,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=O,Z[13]=q,Z[14]=P,Z[15]=f,Z[16]=v}else J=Z[9],L=Z[10],_=Z[11],O=Z[12],q=Z[13],P=Z[14],f=Z[15],v=Z[16];if(v!==Symbol.for("react.early_return_sentinel"))return v;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==O||Z[24]!==q)F=y(J,{color:_,dimColor:O,children:q}),Z[21]=J,Z[22]=_,Z[23]=O,Z[24]=q,Z[25]=F;else F=Z[25];let U;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)U=y(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=U;else U=Z[30];return U}function XQ(Q,Z,X){let W=Q.findIndex((B)=>B.uuid===Z);if(W===-1)return;let V=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(V===-1)V=Q.length;let H=[],G=0,K=0;for(let B=W+1;B<V;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=RZ(L.lines,(q)=>q.startsWith("+")),O=RZ(L.lines,(q)=>q.startsWith("-"));G+=_,K+=O}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function f0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],W=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(W.indexOf(`<${v0}>`)!==-1||W.indexOf(`<${q0}>`)!==-1||W.indexOf(`<${L0}>`)!==-1||W.indexOf(`<${z0}>`)!==-1||W.indexOf(`<${A0}>`)!==-1||W.indexOf(`<${D0}>`)!==-1||W.indexOf(`<${_0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let W=Q[X];if(!W)continue;if(kZ(W))continue;if(xZ(W))continue;if(W.type==="progress")continue;if(W.type==="system")continue;if(W.type==="attachment")continue;if(W.type==="user"&&W.isMeta)continue;if(W.type==="assistant"){let V=W.message.content;if(Array.isArray(V)){if(V.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(W.type==="user")return!1}return!0}var GZ,R,CZ=7;var KQ=wZ(()=>{k9();jZ();r9();i9();j0();a9();d9();l9();p9();OZ();o9();s9();g9();u9();x9();S9();n9();G0();GZ=H0(m9(),1),R=H0(c9(),1)});var M6={};SZ(M6,{getCronJitterConfig:()=>b6});function b6(){let Q=oY("tengu_kairos_cron_config",XZ,$6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var $6=60000,rZ=1800000,P6=2592000000,F6;var I6=wZ(()=>{HZ();E6();sY();yZ();F6=D(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(rZ),oneShotMaxMs:Y.number().int().min(0).max(rZ),oneShotFloorMs:Y.number().int().min(0).max(rZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as h6,unlink as X9,writeFile as tZ}from"fs/promises";import{dirname as S6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await h6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),W=ZZ(Q);try{return await tZ(X,W,{flag:"wx"}),!0}catch(V){let H=sZ(V);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(S6(X),{recursive:!0});try{return await tZ(X,W,{flag:"wx"}),!0}catch(G){if(sZ(G)==="EEXIST")return!1;throw G}}throw V}}function oZ(Q){bZ?.(),bZ=Z9(async()=>{await vZ(Q)})}async function eZ(Q){let Z=Q?.dir,X=Q?.lockIdentity??BZ(),W={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(W,Z))return LZ=void 0,oZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await W9(Z);if(V?.sessionId===X){if(V.pid!==process.pid)await tZ(zZ(Z),ZZ(W)),oZ(Q);return!0}if(V&&Q9(V.pid)){if(LZ!==V.sessionId)LZ=V.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(W,Z))return LZ=void 0,oZ(Q),!0;return!1}async function vZ(Q){bZ?.(),bZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??BZ(),W=await W9(Z);if(!W||W.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,bZ,LZ;var K9=wZ(()=>{HZ();NZ();C6();JZ();gZ();T6();R6();yZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=D(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var g6={};SZ(g6,{takeDueSessionWakeup:()=>w9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>d6,buildMissedTaskNotification:()=>j9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function w9(Q){let Z=Q0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:X0(Z.prompt),reason:Z.reason}}function d6(Q){let{onFire:Z,isLoading:X,assistantMode:W=!1,onFireTask:V,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,O=[],q=new Map,P=new Set,f=new Set,v=null,F=null,U=null,h=null,E=!1,w=!1;async function c(C){let k=await v9(K);if(E)return;if(O=k,!C)return;let x=Date.now(),A=A9(k,x).filter(($)=>!$.recurring&&!P.has($.id)&&(!L||L($)));if(A.length>0){for(let $ of A)P.add($.id),q.set($.id,1/0);if(g("",{count:A.length,taskIds:A.map(($)=>$.id).join(",")}),H)H(A);else Z(j9(A));Z0(A.map(($)=>$.id),K).catch(($)=>I(`[ScheduledTasks] failed to remove missed tasks: ${$}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function r(){if(J?.())return;if(X()&&!W)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function $(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=q.get(N.id);if(l===void 0)l=N.recurring?Y0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:D9(N.cron,N.createdAt,N.id,A)??1/0,q.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?X0(N.prompt,void 0,N.agentId):N.prompt;if(V)V(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Y0(N.cron,C,N.id,A)??1/0;if(q.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),q.delete(N.id);else f.add(N.id),Z0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),q.delete(N.id)}if(w){for(let N of O)$(N,!1);if(x.length>0){for(let N of x)f.add(N);q9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())$(u,!0);let N=w9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){q.clear();return}for(let N of q.keys())if(!k.has(N))q.delete(N)}async function o(){if(E)return;if(v)clearInterval(v),v=null;let{default:C}=await import("./index-1.1.24-p0dh0w23.mjs");if(E)return;if(w=await eZ(_).catch(()=>!1),E){if(w)w=!1,vZ(_);return}if(!w)U=setInterval(()=>{eZ(_).then((x)=>{if(E){if(x)vZ(_);return}if(x){if(w=!0,U)clearInterval(U),U=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),U.unref?.();c(!0);let k=z9(K);h=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),h.on("add",()=>void c(!1)),h.on("change",()=>void c(!1)),h.on("unlink",()=>{if(!E)O=[],q.clear()}),F=setInterval(r,G9),F.unref?.()}return{start(){if(E=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${MZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${qZ()}, hasTasks=${MZ()}`),!qZ()&&(W||MZ()))J9(!0);if(qZ()){o();return}v=setInterval((C)=>{if(qZ())C()},G9,o),v.unref?.()},stop(){if(E=!0,v)clearInterval(v),v=null;if(F)clearInterval(F),F=null;if(U)clearInterval(U),U=null;if(h?.close(),h=null,w)w=!1,vZ(_)},getNextFireTime(){let C=1/0;for(let k of q.values())if(k<C)C=k;if(K===void 0){let k=Q0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function j9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,W=Q.map((V)=>{let H=`[${L9(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,G=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
- ${K}
13
- ${V.prompt}
14
- ${K}`});return`${X}
15
-
16
- ${W.join(`
17
-
18
- `)}`}var G9=1000,c6=300,m6=5000;var l6=wZ(()=>{NZ();jZ();u6();sY();K9();JZ();p6()});HZ();JZ();yZ();h0();GQ();var EX=D(()=>S.object({tool_name:S.string().describe("The name of the tool requesting permission"),input:S.record(S.string(),S.unknown()).describe("The input for the tool"),tool_use_id:S.string().optional().describe("The unique tool use request ID")})),k0=D(()=>S.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),JQ=D(()=>S.object({behavior:S.literal("allow"),updatedInput:S.record(S.string(),S.unknown()),updatedPermissions:S.array(S0()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:S.string().optional(),decisionClassification:k0()})),HQ=D(()=>S.object({behavior:S.literal("deny"),message:S.string(),interrupt:S.boolean().optional(),toolUseID:S.string().optional(),decisionClassification:k0()})),uZ=D(()=>S.union([JQ(),HQ()]));function $Z(Q,Z,X,W){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)W.setAppState((K)=>({...K,toolPermissionContext:UZ(K.toolPermissionContext,H)})),EZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),W.abortController.abort();return{...Q,decisionReason:V}}import{randomUUID as dZ}from"crypto";HZ();yZ();NQ();var BQ=D(()=>Y.unknown()),LQ=D(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),zQ=D(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(m0(),Y.array(LQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),a0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),MX=D(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(g0()),account:l0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:t0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),vQ=D(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),qQ=D(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(p0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),DQ=D(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:c0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),AQ=D(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),_Q=D(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),wQ=D(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),jQ=D(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),OQ=D(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),yQ=D(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),IX=D(()=>Y.object({categories:Y.array(OQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(yQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=D(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),EQ=D(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),$Q=D(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),PQ=D(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:d0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),FQ=D(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:BQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),bQ=D(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),x0())}).describe("Replaces the set of dynamically managed MCP servers.")),CX=D(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),MQ=D(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),RX=D(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(u0()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),IQ=D(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),CQ=D(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),RQ=D(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),TQ=D(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),fQ=D(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),TX=D(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),hQ=D(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),e0=D(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),SQ=D(()=>Y.union([vQ(),qQ(),zQ(),DQ(),AQ(),_Q(),wQ(),jQ(),PQ(),FQ(),UQ(),EQ(),$Q(),bQ(),MQ(),IQ(),CQ(),RQ(),TQ(),fQ(),hQ()])),mZ=D(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:SQ()})),kQ=D(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),xQ=D(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),ZY=D(()=>Y.object({type:Y.literal("control_response"),response:Y.union([kQ(),xQ()])})),uQ=D(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),YY=D(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),pQ=D(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),fX=D(()=>Y.union([s0(),i0(),r0(),o0(),ZY(),mZ(),uQ(),YY()])),hX=D(()=>Y.union([n0(),mZ(),ZY(),YY(),pQ()]));lQ();JZ();gQ();gZ();iQ();dQ();PZ();HZ();nQ();vY();h0();rQ();PZ();aQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,W){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:X,request_id:W,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new HY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
20
- `);if(X===-1)break;let W=Q.slice(0,X);Q=Q.slice(X+1);let V=await this.processLine(W);if(V)GY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let W=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(W))}catch(V){X.reject(V)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=qY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[V,H]of Object.entries(Z.variables))process.env[V]=H;I(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)NY(W,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let H=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(H))}catch(G){V.reject(G)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let X=Z.message;if(X.role!=="user")XY(`Error: Expected message role 'user', got '${String(X.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
21
- `)}async sendRequest(Q,Z,X,W=dZ()){let V={type:"control_request",request_id:W,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:W});let G=this.pendingRequests.get(W);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(W,{request:{type:"control_request",request_id:W,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(W)}}createCanUseTool(Q){return async(Z,X,W,V,H,G)=>{let K=G??await BY(Z,X,W,V,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=W.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,W,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let O=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:W.agentId},uZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),q=await Promise.race([L,O]);if(q.source==="hook"){if(q.decision)return O.catch(()=>{}),B.abort(),q.decision;let P=await O;return $Z(P.result,Z,X,W)}return $Z(q.result,Z,X,W)}catch(L){return $Z({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,W)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,W,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:W||void 0},JY(),V)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,W,V,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:H,elicitation_id:G,requested_schema:X},e0(),W)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},uZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,W,V){let G=W.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,W,G,V,W.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let _=W.getAppState(),O=UZ(_.toolPermissionContext,L);W.setAppState((q)=>{if(q.toolPermissionContext===O)return q;return{...q,toolPermissionContext:O}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}var DY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function Q6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let W=[],V=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(V){if(V==="["&&L==="["){H=J;continue}if(L!==DY[V])continue;if(V==="'"&&G(Q[J+1]))continue;W.push({start:H,end:J+1}),V=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in DY)V=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(W.some((P)=>L>=P.start&&L<P.end))continue;let O=Q[L-1],q=Q[_];if(O==="/"||O==="\\"||O==="-")continue;if(q==="/"||q==="\\"||q==="-"||q==="?")continue;if(q==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function WV(Q){return Q6(Q,"ultrareview")}jZ();OZ();L6();H6();N6();G6();vY();PY();K6();OZ();B6();J6();import{randomUUID as z6}from"crypto";NZ();jZ();OZ();X6();V6();import{randomUUID as W6}from"crypto";function AY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function _Y(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function UY(Q,Z,X,W,V,H,G){let K=W6();wY(K);let B=typeof Q==="string"?Q:Q.find((O)=>O.type==="text")?.text||"";yY(B);let z=typeof Q==="string"?Q:Q.findLast((O)=>O.type==="text")?.text||"";if(z)OY("user_prompt",{prompt_length:String(z.length),prompt:jY(z),"prompt.id":K});let J=AY(B),L=_Y(B);if(g("",{is_negative:J,is_keep_going:L}),Z.length>0){let O=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...O,...Z],uuid:V,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}async function TV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:W,context:V,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:O,bridgeOrigin:q,isMeta:P,skipAttachments:f}){let v=typeof Q==="string"?Q:null;if(X==="prompt"&&v!==null&&!P)B?.(v);n("query_process_user_input_base_start");let F=V.getAppState(),U=await v6(Q,X,W,V,H,G,K,z,J,L,_,F.toolPermissionContext.mode,O,q,P,f,Z);if(n("query_process_user_input_base_end"),!U.shouldQuery)return U;n("query_hooks_start");let h=$Y(Q)||"";for await(let E of uY(h,F.toolPermissionContext.mode,V,V.requestPrompt)){if(E.message?.type==="progress")continue;if(E.blockingError){let c=xY(E.blockingError);return{messages:[TY(`${c}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:U.allowedTools}}if(E.preventContinuation){let c=E.stopReason?`Operation stopped by hook: ${E.stopReason}`:"Operation stopped by hook";return U.messages.push(s({content:c})),U.shouldQuery=!1,U}if(E.additionalContexts&&E.additionalContexts.length>0)U.messages.push(FY({type:"hook_additional_context",content:E.additionalContexts.map(EY),hookName:"UserPromptSubmit",toolUseID:`hook-${z6()}`,hookEvent:"UserPromptSubmit"}));let w=E.message;if(w&&w.type==="attachment")switch(w.attachment.type){case"hook_success":if(!w.attachment.content)break;U.messages.push({...w,attachment:{...w.attachment,content:EY(w.attachment.content)}});break;default:U.messages.push(w);break}else if(w)U.messages.push(w)}return n("query_hooks_end"),U}var lZ=1e4;function EY(Q){if(Q.length>lZ)return`${Q.substring(0,lZ)}… [output truncated - exceeded ${lZ} characters]`;return Q}async function v6(Q,Z,X,W,V,H,G,K,B,z,J,L,_,O,q,P,f){let v=null,F=[],U=[],h=Q;if(typeof Q==="string")v=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)U.push(l)}A.push(u.block)}else A.push(N);h=A,n("query_image_processing_end");let $=A[A.length-1];if($?.type==="text")v=$.text,F=A.slice(0,-1);else F=A}if(v===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let E=V?Object.values(V).filter(CY):[],w=E.map((A)=>A.id),c=V?await bY(V):new Map;n("query_pasted_image_processing_start");let r=await Promise.all(E.map(async(A)=>{let $={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("",{original_size_bytes:A.content.length}),{resized:await iZ($),originalDimensions:A.dimensions,sourcePath:A.sourcePath??c.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:$,sourcePath:N}of r){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)U.push(u)}else if($){let u=FZ($,N);if(u)U.push(u)}else if(N)U.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(O&&v!==null&&v.startsWith("/")){let A=IY(v),$=A?kY(A.commandName,W.options.commands):void 0;if($)if(SY($))C=!1;else{let N=`/${hY($)} isn't available over Remote Control.`;return{messages:[s({content:v,uuid:K}),fY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&v!==null&&(Z!=="prompt"||C||!v.startsWith("/"));n("query_attachment_loading_start");let x=k?await MY(RY(v,W,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),v!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.1.24-454rvsw5.mjs");return aZ(await A(v,F,x,W,X),U)}if(v!==null&&!C&&v.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.1.24-8k5m3gk9.mjs"),$=await A(v,F,o,x,W,X,K,B,J);return aZ($,U)}if(v!==null&&Z==="prompt"){let A=v.trim(),$=x.find((N)=>N.attachment.type==="agent_mention");if($){let N=`@agent-${$.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("",{is_subagent_only:u,is_prefix:l})}}return aZ(UY(h,o,w,x,K,L,q),U)}function aZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}PY();function SV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?q6(Z):Z,uuid:X}}function q6(Q){if(!Q.some(pY))return Q;return Q.map((Z)=>{if(!pY(Z))return Z;let X=Z.source,W=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:cY(Z.source.data);return{...Z,source:{type:"base64",media_type:W,data:Z.source.data}}})}function pY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}NZ();O6();A6();j6();D6();w6();_6();import{randomUUID as y6}from"crypto";function U6(Q){return Q===gY?lY:Q}function aV(Q){let X=aY()?.outputStyle??rY,W={type:"system",subtype:"init",cwd:dY(),session_id:BZ(),tools:Q.tools.map((V)=>U6(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:iY().source,betas:mY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:y6()};return W.fast_mode_state=nY(Q.model,Q.fastMode),W}r6();NZ();JZ();gZ();n6();a6();j0();o6();i6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let W=[],V=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=M9(K.source,X?.projectRoot);if(!B)W.push(G);else if(K.sourceIsFallback)H.push(G);else if(!$9(z,B.source))V.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:W,sourceChanged:V,upToDate:H}}async function FW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let W=e6(Z,X,{projectRoot:V0()}),V=[...W.missing.map((J)=>({name:J,source:M9(Z[J].source),action:"install"})),...W.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of V){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&E9(J.source)&&!await U9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:W.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:O}=G[J];Q?.onProgress?.({type:"installing",name:L,action:O,index:J+1,total:G.length});try{let q=await b9(_);if(O==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:q.alreadyMaterialized})}catch(q){let P=O9(q);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(q)}}return{installed:K,updated:B,failed:z,upToDate:W.upToDate,skipped:H}}function M9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??V0(),W=y9(X);return{...Q,path:t6(W??X,Q.path)}}return Q}
24
- export{uZ as La,$Z as Ma,QY as Na,oQ as Oa,Z6 as Pa,e9 as Qa,f0 as Ra,VQ as Sa,WQ as Ta,KQ as Ua,WV as Va,TV as Wa,SV as Xa,U6 as Ya,aV as Za,e6 as _a,FW as $a,b6 as ab,M6 as bb,I6 as cb,d6 as db,g6 as eb,l6 as fb};