@claudiolabs/claudin 1.0.6 → 1.0.7

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 (906) hide show
  1. package/dist/chunks/AgentTool-1.0.7-syk5wnkb.mjs +1 -0
  2. package/dist/chunks/App-1.0.7-9xht4gsa.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.7-dnv7dmn7.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.7-q24ws7x8.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.7-e3kma94j.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.7-2m1y9b7f.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.7-1gpcb873.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.7-pyrnmhtt.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.7-whkynyby.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.7-3yedapcw.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.7-99ytgtp8.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.7-c6wygjxb.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.7-a8a42yx1.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.7-0e1f33ss.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.7-141f7djg.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.7-scbcqde5.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.7-9f7rpy9p.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.7-6mjnccee.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.7-3xhews8d.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.7-qq2sfpfr.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.7-x9djv2x5.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.7-f6caprdb.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.7-b511561j.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.7-9twx384a.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.7-x3j2hxpn.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.7-1y7h6yxr.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.7-na359dm9.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.7-2vx6krky.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.7-r9eb0fmb.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.7-v46w2p6e.mjs +1 -0
  31. package/dist/chunks/agents-1.0.7-ekjscjc4.mjs +3 -0
  32. package/dist/chunks/agents-1.0.7-v22jz68n.mjs +110 -0
  33. package/dist/chunks/api-1.0.7-v520kz7p.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.7-r61pgxmk.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.7-c12zzeyg.mjs +1 -0
  36. package/dist/chunks/auth-1.0.7-gv0th62c.mjs +1 -0
  37. package/dist/chunks/auth-1.0.7-y9sxvs6e.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.7-yq0m3sf6.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.7-6fqzjxwg.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.7-7mzhb52b.mjs +1 -0
  41. package/dist/chunks/branch-1.0.7-66ms82bv.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.7-cd3w20b9.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.7-wztmwmxc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.7-046e65f0.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.7-knt8h92j.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.7-v2crbecf.mjs +1 -0
  47. package/dist/chunks/btw-1.0.7-eg973xg5.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.7-ypvr18ck.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.7-0tzh2dcw.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.7-hhfr94gj.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.7-51t2bh05.mjs +4 -0
  52. package/dist/chunks/caches-1.0.7-mvqghhkx.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.7-1mrhcxq6.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.7-kgynnx5a.mjs +1 -0
  55. package/dist/chunks/clear-1.0.7-08jf28zt.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.7-z4gkskcj.mjs +1 -0
  57. package/dist/chunks/cli-1.0.7-01cbaw74.mjs +2 -0
  58. package/dist/chunks/cli-1.0.7-05enwpnp.mjs +2 -0
  59. package/dist/chunks/cli-1.0.7-073ekpkk.mjs +21 -0
  60. package/dist/chunks/cli-1.0.7-0dmnsy4c.mjs +2 -0
  61. package/dist/chunks/cli-1.0.7-0qbp0ac0.mjs +17 -0
  62. package/dist/chunks/cli-1.0.7-15qvkn0q.mjs +15 -0
  63. package/dist/chunks/cli-1.0.7-16wdg8r0.mjs +18 -0
  64. package/dist/chunks/cli-1.0.7-1fwxyw8s.mjs +2 -0
  65. package/dist/chunks/cli-1.0.7-1j68v2d8.mjs +3 -0
  66. package/dist/chunks/cli-1.0.7-1mkaw3aw.mjs +2 -0
  67. package/dist/chunks/cli-1.0.7-1r1y3a1c.mjs +2 -0
  68. package/dist/chunks/cli-1.0.7-1rw3xdy0.mjs +58 -0
  69. package/dist/chunks/cli-1.0.7-1s12ckef.mjs +2 -0
  70. package/dist/chunks/cli-1.0.7-1sgef4sw.mjs +2 -0
  71. package/dist/chunks/cli-1.0.7-1ty38mre.mjs +2 -0
  72. package/dist/chunks/cli-1.0.7-1xe7m9s1.mjs +4 -0
  73. package/dist/chunks/cli-1.0.7-1y8xdp9n.mjs +2 -0
  74. package/dist/chunks/cli-1.0.7-2438cvr1.mjs +3 -0
  75. package/dist/chunks/cli-1.0.7-2cajdt14.mjs +2 -0
  76. package/dist/chunks/cli-1.0.7-2csh6jt3.mjs +2 -0
  77. package/dist/chunks/cli-1.0.7-2k1bt916.mjs +2 -0
  78. package/dist/chunks/cli-1.0.7-2pyjzmpq.mjs +2 -0
  79. package/dist/chunks/cli-1.0.7-2wm3s497.mjs +2 -0
  80. package/dist/chunks/cli-1.0.7-2xw882yk.mjs +2 -0
  81. package/dist/chunks/cli-1.0.7-39nnxy0p.mjs +2 -0
  82. package/dist/chunks/cli-1.0.7-3arv8y4s.mjs +12 -0
  83. package/dist/chunks/cli-1.0.7-3fx5xqzq.mjs +2 -0
  84. package/dist/chunks/cli-1.0.7-3ke0fbeq.mjs +6 -0
  85. package/dist/chunks/cli-1.0.7-3kmf6s21.mjs +67 -0
  86. package/dist/chunks/cli-1.0.7-3p608q44.mjs +2 -0
  87. package/dist/chunks/cli-1.0.7-3pqhf5bj.mjs +4 -0
  88. package/dist/chunks/cli-1.0.7-3qnpcgyc.mjs +2 -0
  89. package/dist/chunks/cli-1.0.7-3s41c41h.mjs +20 -0
  90. package/dist/chunks/cli-1.0.7-3s4ccas2.mjs +2 -0
  91. package/dist/chunks/cli-1.0.7-3xrc45nn.mjs +2 -0
  92. package/dist/chunks/cli-1.0.7-3z1z90gf.mjs +4 -0
  93. package/dist/chunks/cli-1.0.7-41jm6paw.mjs +2 -0
  94. package/dist/chunks/cli-1.0.7-45px4q2q.mjs +12 -0
  95. package/dist/chunks/cli-1.0.7-4a67zfe7.mjs +2 -0
  96. package/dist/chunks/cli-1.0.7-4qwjg996.mjs +2 -0
  97. package/dist/chunks/cli-1.0.7-538yatrk.mjs +2 -0
  98. package/dist/chunks/cli-1.0.7-5f0y2nxn.mjs +2 -0
  99. package/dist/chunks/cli-1.0.7-5h2vgm7b.mjs +2 -0
  100. package/dist/chunks/cli-1.0.7-5kc9g0m9.mjs +3 -0
  101. package/dist/chunks/cli-1.0.7-5rxjz9r1.mjs +2 -0
  102. package/dist/chunks/cli-1.0.7-65xw81pn.mjs +7 -0
  103. package/dist/chunks/cli-1.0.7-67z7m1zx.mjs +15 -0
  104. package/dist/chunks/cli-1.0.7-6ncp8ban.mjs +2 -0
  105. package/dist/chunks/cli-1.0.7-6r3vkkzw.mjs +2 -0
  106. package/dist/chunks/cli-1.0.7-6wm7jzey.mjs +2 -0
  107. package/dist/chunks/cli-1.0.7-6yr2e385.mjs +2 -0
  108. package/dist/chunks/cli-1.0.7-73e5dz55.mjs +2 -0
  109. package/dist/chunks/cli-1.0.7-757ex32c.mjs +199 -0
  110. package/dist/chunks/cli-1.0.7-7egbzjdg.mjs +12 -0
  111. package/dist/chunks/cli-1.0.7-7gmv86pv.mjs +25 -0
  112. package/dist/chunks/cli-1.0.7-7qm9503t.mjs +4 -0
  113. package/dist/chunks/cli-1.0.7-7xhry9cz.mjs +8 -0
  114. package/dist/chunks/cli-1.0.7-7yrvwwdb.mjs +2 -0
  115. package/dist/chunks/cli-1.0.7-84dx5y2m.mjs +2 -0
  116. package/dist/chunks/cli-1.0.7-8fj15s8a.mjs +2 -0
  117. package/dist/chunks/cli-1.0.7-8hepstgz.mjs +2 -0
  118. package/dist/chunks/cli-1.0.7-8pfh7aha.mjs +2 -0
  119. package/dist/chunks/cli-1.0.7-96mb1gmj.mjs +2 -0
  120. package/dist/chunks/cli-1.0.7-96qpk0ct.mjs +2 -0
  121. package/dist/chunks/cli-1.0.7-97fqbfff.mjs +2 -0
  122. package/dist/chunks/cli-1.0.7-9p7hfa00.mjs +2 -0
  123. package/dist/chunks/cli-1.0.7-9pc6jb5f.mjs +2 -0
  124. package/dist/chunks/cli-1.0.7-9ws1j17m.mjs +2 -0
  125. package/dist/chunks/cli-1.0.7-a32vv8nk.mjs +2 -0
  126. package/dist/chunks/cli-1.0.7-a78rj0kd.mjs +9 -0
  127. package/dist/chunks/cli-1.0.7-a7fahcda.mjs +2 -0
  128. package/dist/chunks/cli-1.0.7-a808xdj3.mjs +3 -0
  129. package/dist/chunks/cli-1.0.7-aa7vfbxa.mjs +2 -0
  130. package/dist/chunks/cli-1.0.7-af1m1akw.mjs +2 -0
  131. package/dist/chunks/cli-1.0.7-akbc4ch3.mjs +2 -0
  132. package/dist/chunks/cli-1.0.7-an2jwvew.mjs +9 -0
  133. package/dist/chunks/cli-1.0.7-anrcmph3.mjs +3 -0
  134. package/dist/chunks/cli-1.0.7-av93xde0.mjs +2 -0
  135. package/dist/chunks/cli-1.0.7-b16t7f1a.mjs +2 -0
  136. package/dist/chunks/cli-1.0.7-b2pf78c9.mjs +2 -0
  137. package/dist/chunks/cli-1.0.7-b778v1dh.mjs +2 -0
  138. package/dist/chunks/cli-1.0.7-baqj15a8.mjs +2 -0
  139. package/dist/chunks/cli-1.0.7-bfe6f9c6.mjs +2 -0
  140. package/dist/chunks/cli-1.0.7-bkm2xek7.mjs +2 -0
  141. package/dist/chunks/cli-1.0.7-bn0sb2w7.mjs +2 -0
  142. package/dist/chunks/cli-1.0.7-c8kxp6h0.mjs +2 -0
  143. package/dist/chunks/cli-1.0.7-cb42m3ff.mjs +2 -0
  144. package/dist/chunks/cli-1.0.7-cf47wta1.mjs +2 -0
  145. package/dist/chunks/cli-1.0.7-cs7epg9a.mjs +2 -0
  146. package/dist/chunks/cli-1.0.7-d1zc020r.mjs +133 -0
  147. package/dist/chunks/cli-1.0.7-d3txxwh5.mjs +2 -0
  148. package/dist/chunks/cli-1.0.7-dbyr517p.mjs +4 -0
  149. package/dist/chunks/cli-1.0.7-ddhhvx60.mjs +2 -0
  150. package/dist/chunks/cli-1.0.7-df9p9tj8.mjs +24 -0
  151. package/dist/chunks/cli-1.0.7-dhdv7vtc.mjs +50 -0
  152. package/dist/chunks/cli-1.0.7-dnn18rgf.mjs +2 -0
  153. package/dist/chunks/cli-1.0.7-dr2dca7n.mjs +2 -0
  154. package/dist/chunks/cli-1.0.7-f43w1f9g.mjs +42 -0
  155. package/dist/chunks/cli-1.0.7-f6490vr3.mjs +2 -0
  156. package/dist/chunks/cli-1.0.7-fcfrsawp.mjs +2 -0
  157. package/dist/chunks/cli-1.0.7-fckzct0z.mjs +2 -0
  158. package/dist/chunks/cli-1.0.7-ff6dfmp3.mjs +2 -0
  159. package/dist/chunks/cli-1.0.7-fmdws8pg.mjs +2 -0
  160. package/dist/chunks/cli-1.0.7-fvr9xx0m.mjs +2 -0
  161. package/dist/chunks/cli-1.0.7-g1hrx2r5.mjs +18 -0
  162. package/dist/chunks/cli-1.0.7-g42rsvs5.mjs +2 -0
  163. package/dist/chunks/cli-1.0.7-g6d9snde.mjs +3 -0
  164. package/dist/chunks/cli-1.0.7-ga6hk3n2.mjs +3 -0
  165. package/dist/chunks/cli-1.0.7-ghxmw318.mjs +2 -0
  166. package/dist/chunks/cli-1.0.7-gj1806bk.mjs +2 -0
  167. package/dist/chunks/cli-1.0.7-gk53nva2.mjs +2 -0
  168. package/dist/chunks/cli-1.0.7-gnwjbdch.mjs +2 -0
  169. package/dist/chunks/cli-1.0.7-gp71tfwe.mjs +2 -0
  170. package/dist/chunks/cli-1.0.7-gq9fp39n.mjs +2 -0
  171. package/dist/chunks/cli-1.0.7-gqf40mqk.mjs +24 -0
  172. package/dist/chunks/cli-1.0.7-h1g9rk4g.mjs +4 -0
  173. package/dist/chunks/cli-1.0.7-hd6xn6rt.mjs +2 -0
  174. package/dist/chunks/cli-1.0.7-hfcehnx9.mjs +3 -0
  175. package/dist/chunks/cli-1.0.7-hw8dxgj2.mjs +2 -0
  176. package/dist/chunks/cli-1.0.7-j31m0f1y.mjs +2 -0
  177. package/dist/chunks/cli-1.0.7-j6hxvf4r.mjs +2 -0
  178. package/dist/chunks/cli-1.0.7-j6ndkfy3.mjs +2 -0
  179. package/dist/chunks/cli-1.0.7-jn7nay2r.mjs +2 -0
  180. package/dist/chunks/cli-1.0.7-jz4phmb3.mjs +3 -0
  181. package/dist/chunks/cli-1.0.7-k38j6sgc.mjs +2 -0
  182. package/dist/chunks/cli-1.0.7-k3nnbdbv.mjs +2 -0
  183. package/dist/chunks/cli-1.0.7-kegj01e5.mjs +133 -0
  184. package/dist/chunks/cli-1.0.7-kf237s65.mjs +2 -0
  185. package/dist/chunks/cli-1.0.7-kgbv7bt5.mjs +17 -0
  186. package/dist/chunks/cli-1.0.7-khd0yqhk.mjs +2 -0
  187. package/dist/chunks/cli-1.0.7-m17d94h8.mjs +2 -0
  188. package/dist/chunks/cli-1.0.7-mcmpb4cd.mjs +2 -0
  189. package/dist/chunks/cli-1.0.7-mv7ptsre.mjs +2 -0
  190. package/dist/chunks/cli-1.0.7-mwj9f8rw.mjs +59 -0
  191. package/dist/chunks/cli-1.0.7-mznh91ce.mjs +2 -0
  192. package/dist/chunks/cli-1.0.7-n5hf2vsh.mjs +2 -0
  193. package/dist/chunks/cli-1.0.7-na7ksfyj.mjs +2 -0
  194. package/dist/chunks/cli-1.0.7-nhg85avf.mjs +2 -0
  195. package/dist/chunks/cli-1.0.7-nnd4za11.mjs +3 -0
  196. package/dist/chunks/cli-1.0.7-p4p38dky.mjs +3 -0
  197. package/dist/chunks/cli-1.0.7-p5setvdk.mjs +2 -0
  198. package/dist/chunks/cli-1.0.7-ph9qjcjb.mjs +2 -0
  199. package/dist/chunks/cli-1.0.7-pxmf9kyf.mjs +2 -0
  200. package/dist/chunks/cli-1.0.7-pyacw9kn.mjs +5 -0
  201. package/dist/chunks/cli-1.0.7-q3ezj6q3.mjs +2 -0
  202. package/dist/chunks/cli-1.0.7-q7w0ex1x.mjs +2 -0
  203. package/dist/chunks/cli-1.0.7-qdtt526e.mjs +2 -0
  204. package/dist/chunks/cli-1.0.7-qjtqaam0.mjs +2 -0
  205. package/dist/chunks/cli-1.0.7-qknq8k3p.mjs +2 -0
  206. package/dist/chunks/cli-1.0.7-qmm35cv2.mjs +39 -0
  207. package/dist/chunks/cli-1.0.7-qxjpkptr.mjs +2 -0
  208. package/dist/chunks/cli-1.0.7-r4h75bn4.mjs +2 -0
  209. package/dist/chunks/cli-1.0.7-rbrr75z2.mjs +2 -0
  210. package/dist/chunks/cli-1.0.7-rz8h7nks.mjs +2 -0
  211. package/dist/chunks/cli-1.0.7-s11nkveb.mjs +24 -0
  212. package/dist/chunks/cli-1.0.7-s27f8y4p.mjs +2 -0
  213. package/dist/chunks/cli-1.0.7-s5mhxbhn.mjs +5476 -0
  214. package/dist/chunks/cli-1.0.7-s6jjnyxd.mjs +2 -0
  215. package/dist/chunks/cli-1.0.7-s8e8tq3y.mjs +2 -0
  216. package/dist/chunks/cli-1.0.7-sjpx2md1.mjs +2 -0
  217. package/dist/chunks/cli-1.0.7-skm59maw.mjs +2 -0
  218. package/dist/chunks/cli-1.0.7-sv4vj25b.mjs +2 -0
  219. package/dist/chunks/cli-1.0.7-t8m8vafg.mjs +4 -0
  220. package/dist/chunks/cli-1.0.7-tf8b1vhx.mjs +2 -0
  221. package/dist/chunks/cli-1.0.7-tvz0kwb6.mjs +25 -0
  222. package/dist/chunks/cli-1.0.7-txhggtd1.mjs +16 -0
  223. package/dist/chunks/cli-1.0.7-tz22r50p.mjs +2 -0
  224. package/dist/chunks/cli-1.0.7-vcsdnmc0.mjs +2 -0
  225. package/dist/chunks/cli-1.0.7-veqj11zy.mjs +3 -0
  226. package/dist/chunks/cli-1.0.7-vjgedfc4.mjs +2 -0
  227. package/dist/chunks/cli-1.0.7-vtd2sbnq.mjs +3 -0
  228. package/dist/chunks/cli-1.0.7-vw4n13wr.mjs +2 -0
  229. package/dist/chunks/cli-1.0.7-vx0rcgfm.mjs +2 -0
  230. package/dist/chunks/cli-1.0.7-w3g8c9m3.mjs +18 -0
  231. package/dist/chunks/cli-1.0.7-wahp9jjm.mjs +5 -0
  232. package/dist/chunks/cli-1.0.7-wc28nq81.mjs +6 -0
  233. package/dist/chunks/cli-1.0.7-wc4y0k3e.mjs +12 -0
  234. package/dist/chunks/cli-1.0.7-wgt5ay2x.mjs +6 -0
  235. package/dist/chunks/cli-1.0.7-wk9hs648.mjs +2 -0
  236. package/dist/chunks/cli-1.0.7-wmrv4paj.mjs +45 -0
  237. package/dist/chunks/cli-1.0.7-wqrgw4kw.mjs +2 -0
  238. package/dist/chunks/cli-1.0.7-ws7404wd.mjs +2 -0
  239. package/dist/chunks/cli-1.0.7-wwy64zs8.mjs +4 -0
  240. package/dist/chunks/cli-1.0.7-xdt2g9p7.mjs +2 -0
  241. package/dist/chunks/cli-1.0.7-xga48xv7.mjs +2 -0
  242. package/dist/chunks/cli-1.0.7-xh0afj9p.mjs +2 -0
  243. package/dist/chunks/cli-1.0.7-xhb3g1xh.mjs +2 -0
  244. package/dist/chunks/cli-1.0.7-xtj9j6ha.mjs +15 -0
  245. package/dist/chunks/cli-1.0.7-xvhkprcw.mjs +2 -0
  246. package/dist/chunks/cli-1.0.7-xxa9e3we.mjs +4 -0
  247. package/dist/chunks/cli-1.0.7-y8sq6jh3.mjs +4 -0
  248. package/dist/chunks/cli-1.0.7-y94dd4yd.mjs +2 -0
  249. package/dist/chunks/cli-1.0.7-yatztvfp.mjs +2 -0
  250. package/dist/chunks/cli-1.0.7-yb9sxq0k.mjs +2 -0
  251. package/dist/chunks/cli-1.0.7-ybcht1kp.mjs +2 -0
  252. package/dist/chunks/cli-1.0.7-yc90byps.mjs +34 -0
  253. package/dist/chunks/cli-1.0.7-yyqg2waz.mjs +2 -0
  254. package/dist/chunks/cli-1.0.7-z53gtmpk.mjs +6 -0
  255. package/dist/chunks/cli-1.0.7-z5vgrn57.mjs +2 -0
  256. package/dist/chunks/cli-1.0.7-z9fvy0d8.mjs +2 -0
  257. package/dist/chunks/cli-1.0.7-zjapdrt8.mjs +6 -0
  258. package/dist/chunks/cli-1.0.7-zmqm6p6t.mjs +2 -0
  259. package/dist/chunks/cli-1.0.7-zsbst1mq.mjs +1 -0
  260. package/dist/chunks/cli-1.0.7-zwr4ga8c.mjs +2 -0
  261. package/dist/chunks/client-1.0.7-n8414pey.mjs +1 -0
  262. package/dist/chunks/color-1.0.7-99fmrmyq.mjs +1 -0
  263. package/dist/chunks/compact-1.0.7-91sa41px.mjs +3 -0
  264. package/dist/chunks/config-1.0.7-bjt981nd.mjs +1 -0
  265. package/dist/chunks/config-1.0.7-vfbd76cq.mjs +1 -0
  266. package/dist/chunks/constants-1.0.7-fj97y7dq.mjs +1 -0
  267. package/dist/chunks/context-1.0.7-qmktq4pg.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.0.7-w9828p3h.mjs +1 -0
  269. package/dist/chunks/conversation-1.0.7-d5q8rrwx.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.0.7-mhsm6qwp.mjs +1 -0
  271. package/dist/chunks/copy-1.0.7-hznd9dqf.mjs +9 -0
  272. package/dist/chunks/cost-1.0.7-hbpz16jx.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.0.7-5s4sy0qv.mjs +1 -0
  274. package/dist/chunks/createSession-1.0.7-mha5sscw.mjs +1 -0
  275. package/dist/chunks/debug-1.0.7-6kcgjwgp.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.0.7-5x2a3qnr.mjs +1446 -0
  277. package/dist/chunks/desktop-1.0.7-37m19pef.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.0.7-3ffa7wfs.mjs +1 -0
  279. package/dist/chunks/detection-1.0.7-bcwz3kz9.mjs +1 -0
  280. package/dist/chunks/diff-1.0.7-60vwaapm.mjs +1 -0
  281. package/dist/chunks/doctor-1.0.7-bc3r1p04.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.0.7-qe18rzqr.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.0.7-51cxad4b.mjs +1 -0
  284. package/dist/chunks/effort-1.0.7-mckjwtdk.mjs +10 -0
  285. package/dist/chunks/engine-1.0.7-1kqhk6mc.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.0.7-hbpge4a8.mjs +1 -0
  287. package/dist/chunks/envUtils-1.0.7-m63cpkg3.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.0.7-kg2xnt7t.mjs +1 -0
  289. package/dist/chunks/environments-1.0.7-jcrcam7e.mjs +1 -0
  290. package/dist/chunks/errors-1.0.7-vhtw6kg6.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.0.7-f254y3tf.mjs +1 -0
  292. package/dist/chunks/exit-1.0.7-f5s73g22.mjs +1 -0
  293. package/dist/chunks/explorer-1.0.7-yjpphptq.mjs +1 -0
  294. package/dist/chunks/export-1.0.7-7kn40p9m.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.0.7-xwb7xfe4.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.0.7-0dpsjjh0.mjs +1 -0
  297. package/dist/chunks/fast-1.0.7-9eg9g1mf.mjs +1 -0
  298. package/dist/chunks/feedback-1.0.7-kkw4fdj8.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.0.7-yaekw6be.mjs +1 -0
  300. package/dist/chunks/git-1.0.7-t3824xkx.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.0.7-m79e1ga1.mjs +1 -0
  302. package/dist/chunks/goal-1.0.7-jkmcdmm1.mjs +4 -0
  303. package/dist/chunks/grove-1.0.7-th5kn0n5.mjs +1 -0
  304. package/dist/chunks/growthbook-1.0.7-hnr2hv9t.mjs +1 -0
  305. package/dist/chunks/headless-1.0.7-2w17kqac.mjs +2 -0
  306. package/dist/chunks/heapdump-1.0.7-1qvsds14.mjs +6 -0
  307. package/dist/chunks/help-1.0.7-33ennxwb.mjs +1 -0
  308. package/dist/chunks/hookChains-1.0.7-8gt4r1qg.mjs +3 -0
  309. package/dist/chunks/hooks-1.0.7-970fsrks.mjs +1 -0
  310. package/dist/chunks/hooks-1.0.7-xyrevnk8.mjs +79 -0
  311. package/dist/chunks/ide-1.0.7-knfed9xe.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.0.7-5c1fwxwf.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.0.7-5p98j8m2.mjs +1 -0
  314. package/dist/chunks/index-1.0.7-0ce2q3me.mjs +17 -0
  315. package/dist/chunks/index-1.0.7-3tbze0ns.mjs +1 -0
  316. package/dist/chunks/index-1.0.7-3z09rqyx.mjs +1 -0
  317. package/dist/chunks/index-1.0.7-4g6596jt.mjs +1 -0
  318. package/dist/chunks/index-1.0.7-59cvfmen.mjs +1 -0
  319. package/dist/chunks/index-1.0.7-63vq5fws.mjs +1 -0
  320. package/dist/chunks/index-1.0.7-6wcbk6ve.mjs +5 -0
  321. package/dist/chunks/index-1.0.7-84wm5p43.mjs +1 -0
  322. package/dist/chunks/index-1.0.7-c0jfw97a.mjs +9 -0
  323. package/dist/chunks/index-1.0.7-dds9fcry.mjs +1 -0
  324. package/dist/chunks/index-1.0.7-ecq1qwpq.mjs +1 -0
  325. package/dist/chunks/index-1.0.7-gm6exxqq.mjs +30 -0
  326. package/dist/chunks/index-1.0.7-jh8savg9.mjs +9 -0
  327. package/dist/chunks/index-1.0.7-k8k38nbt.mjs +1 -0
  328. package/dist/chunks/index-1.0.7-kyyfrf6j.mjs +1 -0
  329. package/dist/chunks/index-1.0.7-m23r2bmv.mjs +1 -0
  330. package/dist/chunks/index-1.0.7-mmm10tac.mjs +2 -0
  331. package/dist/chunks/index-1.0.7-p82yhqst.mjs +1 -0
  332. package/dist/chunks/index-1.0.7-vyafwe23.mjs +1 -0
  333. package/dist/chunks/index-1.0.7-wazwyjm7.mjs +1 -0
  334. package/dist/chunks/index-1.0.7-wd33rv5q.mjs +1 -0
  335. package/dist/chunks/index-1.0.7-yhxty6kz.mjs +1 -0
  336. package/dist/chunks/index-1.0.7-zp3vs07b.mjs +2 -0
  337. package/dist/chunks/init-1.0.7-y29e6mb3.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.0.7-14rmpkte.mjs +1 -0
  339. package/dist/chunks/ink-1.0.7-gf3qdamf.mjs +1 -0
  340. package/dist/chunks/insights-1.0.7-hd6460mk.mjs +870 -0
  341. package/dist/chunks/install-1.0.7-antesxaa.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.0.7-0asc4ajr.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.0.7-zwna6gq3.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.0.7-wvv85h9t.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.0.7-pkmbfs0b.mjs +1 -0
  346. package/dist/chunks/keybindings-1.0.7-emp8m2vr.mjs +2 -0
  347. package/dist/chunks/knowledge-1.0.7-6hv6538k.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.0.7-t1gtsxte.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.0.7-j5mq4f5x.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.0.7-6tbrq15z.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.0.7-k2zgqtye.mjs +1 -0
  352. package/dist/chunks/log-1.0.7-pmgzzdy7.mjs +1 -0
  353. package/dist/chunks/main-1.0.7-esamqda3.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.0.7-6mz7vwyt.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.7-d4941tnp.mjs +17 -0
  356. package/dist/chunks/mcp-1.0.7-hjjdsn53.mjs +4 -0
  357. package/dist/chunks/mcp-1.0.7-skfyfspe.mjs +1 -0
  358. package/dist/chunks/mcpb-1.0.7-twwnd1ct.mjs +1 -0
  359. package/dist/chunks/memory-1.0.7-0r8q4re7.mjs +3 -0
  360. package/dist/chunks/model-1.0.7-d82p81ne.mjs +2 -0
  361. package/dist/chunks/model-1.0.7-xt8c58fg.mjs +1 -0
  362. package/dist/chunks/node-1.0.7-5h6w60zy.mjs +12 -0
  363. package/dist/chunks/oauth-1.0.7-gveatjqe.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.0.7-q8aqfz40.mjs +14 -0
  365. package/dist/chunks/output-style-1.0.7-xnamzpre.mjs +1 -0
  366. package/dist/chunks/package-ZZWOLTXM-1.0.7-y8bvx3y5.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.0.7-we9ebc0h.mjs +1 -0
  368. package/dist/chunks/parser-1.0.7-20zgf2mq.mjs +1 -0
  369. package/dist/chunks/passes-1.0.7-gcnj20c4.mjs +1 -0
  370. package/dist/chunks/permissions-1.0.7-43y27rj9.mjs +3 -0
  371. package/dist/chunks/permissions-1.0.7-kw8fw9gd.mjs +1 -0
  372. package/dist/chunks/plan-1.0.7-z1k9hfr8.mjs +1 -0
  373. package/dist/chunks/plist-1.0.7-daxqmwqx.mjs +1 -0
  374. package/dist/chunks/plugin-1.0.7-66bqymg3.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.0.7-w5krqm0w.mjs +1 -0
  376. package/dist/chunks/plugins-1.0.7-8njx3c0z.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.0.7-a1hhphah.mjs +2 -0
  378. package/dist/chunks/print-1.0.7-xnncgmye.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.0.7-7gfaexn9.mjs +1 -0
  380. package/dist/chunks/process-1.0.7-9sx5xgpe.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.0.7-32dm20nc.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.0.7-am0rnn44.mjs +9 -0
  383. package/dist/chunks/prompt-1.0.7-0yt5k7pt.mjs +1 -0
  384. package/dist/chunks/prompt-1.0.7-hfv56awc.mjs +1 -0
  385. package/dist/chunks/prompts-1.0.7-1p5km2m0.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.0.7-geqttcpz.mjs +13 -0
  387. package/dist/chunks/provider-1.0.7-y0j7q32j.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.0.7-s0zs9q1r.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.0.7-aexhx4ft.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.0.7-r4b2s2hk.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.0.7-qmvr4jj4.mjs +34 -0
  392. package/dist/chunks/registry-1.0.7-be1gn584.mjs +1 -0
  393. package/dist/chunks/release-notes-1.0.7-tcr3xzz7.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.0.7-psfk2m91.mjs +2 -0
  395. package/dist/chunks/remote-env-1.0.7-xn5b9vx7.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.0.7-hvnh9bv2.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.0.7-870w4tbq.mjs +1 -0
  398. package/dist/chunks/rename-1.0.7-53emj8yj.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.0.7-cbrh6d8b.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.0.7-zs2c9f7n.mjs +1 -0
  401. package/dist/chunks/resume-1.0.7-b5e8840g.mjs +2 -0
  402. package/dist/chunks/rewind-1.0.7-15a43rp5.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.0.7-84t0zbkm.mjs +1 -0
  404. package/dist/chunks/sandbox-adapter-1.0.7-rs0gse4a.mjs +1 -0
  405. package/dist/chunks/sandbox-toggle-1.0.7-benxjznf.mjs +1 -0
  406. package/dist/chunks/session-1.0.7-9kyk2x4p.mjs +2 -0
  407. package/dist/chunks/sessionDiscovery-1.0.7-3z1nttw5.mjs +1 -0
  408. package/dist/chunks/sessionFileAccessHooks-1.0.7-wha0618t.mjs +1 -0
  409. package/dist/chunks/sessionStorage-1.0.7-tdsf7h6t.mjs +1 -0
  410. package/dist/chunks/settings-1.0.7-ew9b4r78.mjs +1 -0
  411. package/dist/chunks/setup-1.0.7-tnm7hbmj.mjs +5 -0
  412. package/dist/chunks/sinks-1.0.7-bw23nvqf.mjs +1 -0
  413. package/dist/chunks/skills-1.0.7-z5a8v4xg.mjs +1 -0
  414. package/dist/chunks/startupProfiler-1.0.7-fqfzm5cc.mjs +1 -0
  415. package/dist/chunks/startupUpdateCheck-1.0.7-enpb315n.mjs +1 -0
  416. package/dist/chunks/state-1.0.7-anf50tyt.mjs +1 -0
  417. package/dist/chunks/stats-1.0.7-xgb8h40k.mjs +6 -0
  418. package/dist/chunks/status-1.0.7-f7s47750.mjs +1 -0
  419. package/dist/chunks/stickers-1.0.7-z1wec6v6.mjs +1 -0
  420. package/dist/chunks/subprocessEnv-1.0.7-838hrdpy.mjs +1 -0
  421. package/dist/chunks/tasks-1.0.7-gnsbny7t.mjs +1 -0
  422. package/dist/chunks/teamHelpers-1.0.7-b952rdkv.mjs +1 -0
  423. package/dist/chunks/teammateModeSnapshot-1.0.7-kp8hzkhr.mjs +1 -0
  424. package/dist/chunks/teleport-1.0.7-0z0g10ms.mjs +1 -0
  425. package/dist/chunks/terminalSetup-1.0.7-fgc3myw4.mjs +1 -0
  426. package/dist/chunks/theme-1.0.7-a88j7tjj.mjs +1 -0
  427. package/dist/chunks/thinkback-1.0.7-yzkgrf3q.mjs +1 -0
  428. package/dist/chunks/thinkback-play-1.0.7-jz896tvv.mjs +1 -0
  429. package/dist/chunks/toolPool-1.0.7-zc6vp20v.mjs +1 -0
  430. package/dist/chunks/toolSearch-1.0.7-ym8fk2b2.mjs +1 -0
  431. package/dist/chunks/tools-1.0.7-612s0tqy.mjs +1 -0
  432. package/dist/chunks/trustedDevice-1.0.7-vjbr81qz.mjs +1 -0
  433. package/dist/chunks/turndown.cjs-1.0.7-gz5y243z.mjs +69 -0
  434. package/dist/chunks/types-1.0.7-16q04281.mjs +1 -0
  435. package/dist/chunks/ultrareviewCommand-1.0.7-v65pd88x.mjs +4 -0
  436. package/dist/chunks/update-1.0.7-z4et749c.mjs +88 -0
  437. package/dist/chunks/upgrade-1.0.7-hbdmpet7.mjs +1 -0
  438. package/dist/chunks/upload-1.0.7-xgyk75yh.mjs +7 -0
  439. package/dist/chunks/upstreamproxy-1.0.7-vb939aaw.mjs +14 -0
  440. package/dist/chunks/url-handler-napi-1.0.7-nfw64r47.mjs +1 -0
  441. package/dist/chunks/usage-1.0.7-kpakcv0m.mjs +1 -0
  442. package/dist/chunks/util-1.0.7-52gcb8n1.mjs +1 -0
  443. package/dist/chunks/utils-1.0.7-ckre2ymb.mjs +1 -0
  444. package/dist/chunks/vim-1.0.7-10bew4qn.mjs +1 -0
  445. package/dist/chunks/watcher-1.0.7-85c73j65.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.7-yw93y8cn.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.7-yatxf71n.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.7-dp2np4vz.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.7-m222ja7h.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.7-sqtjm0k7.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.6-y5ddd6rm.mjs +0 -1
  454. package/dist/chunks/App-1.0.6-z0cfvsx2.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.6-bp76pand.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.6-kb0x64qd.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.6-jcaqgq16.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.6-0q6kspv2.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.6-jk4g19kb.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.6-s65h1n7v.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.6-6751p16k.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.6-cc0tqw44.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.6-eebwjw79.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.6-tyg11yr0.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.6-qgb1csqa.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.6-jgmn19nt.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.6-wxwzxegj.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.6-zpt6cx2n.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.6-4008ytyb.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.6-c76hkbn2.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.6-hg7cv046.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.6-2t7j6b2h.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.6-mtnwwa4g.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.6-6k63h37y.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.6-nwebb6gp.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.6-fkq6szhk.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.6-c6m3x448.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.6-44972q2z.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.6-g641zp1y.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.6-ae177xqc.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.6-eyaavpv6.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.6-qbt1z3ca.mjs +0 -1
  483. package/dist/chunks/agents-1.0.6-sz53kang.mjs +0 -3
  484. package/dist/chunks/agents-1.0.6-takpvk31.mjs +0 -110
  485. package/dist/chunks/api-1.0.6-00s3w079.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.6-rh0sh1w1.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.6-7mq19whz.mjs +0 -1
  488. package/dist/chunks/auth-1.0.6-a3z8ybme.mjs +0 -1
  489. package/dist/chunks/auth-1.0.6-bzqx8ws6.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.6-m7pgefxn.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.6-yrfw3qnm.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.6-n12f3xrc.mjs +0 -1
  493. package/dist/chunks/branch-1.0.6-ezwk5k5a.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.6-b8v3yt2n.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.6-nj1zx2fk.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.6-qm5685ej.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.6-8sw3n3ad.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.6-2smhh25w.mjs +0 -1
  499. package/dist/chunks/btw-1.0.6-cyy1eqy9.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.6-jye799sc.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.6-x530c1sq.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.6-j9g3r3t3.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.6-wn9n7a2f.mjs +0 -4
  504. package/dist/chunks/caches-1.0.6-jb6nfzzy.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.6-nbedzb68.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.6-k0ksrf4g.mjs +0 -1
  507. package/dist/chunks/clear-1.0.6-mwca7g57.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.6-yxdbxzxq.mjs +0 -1
  509. package/dist/chunks/cli-1.0.6-0g5ayqzn.mjs +0 -2
  510. package/dist/chunks/cli-1.0.6-0htc91yb.mjs +0 -2
  511. package/dist/chunks/cli-1.0.6-0n0gtcr0.mjs +0 -2
  512. package/dist/chunks/cli-1.0.6-0ndt02kt.mjs +0 -2
  513. package/dist/chunks/cli-1.0.6-0rh0a1m1.mjs +0 -3
  514. package/dist/chunks/cli-1.0.6-0v6s0baw.mjs +0 -2
  515. package/dist/chunks/cli-1.0.6-0z6jg1dt.mjs +0 -2
  516. package/dist/chunks/cli-1.0.6-0zy5g0r0.mjs +0 -3
  517. package/dist/chunks/cli-1.0.6-1a002r86.mjs +0 -16
  518. package/dist/chunks/cli-1.0.6-1eet2296.mjs +0 -2
  519. package/dist/chunks/cli-1.0.6-1mxskrvk.mjs +0 -2
  520. package/dist/chunks/cli-1.0.6-1pmvs0sa.mjs +0 -2
  521. package/dist/chunks/cli-1.0.6-2216bkc9.mjs +0 -18
  522. package/dist/chunks/cli-1.0.6-256zr6e0.mjs +0 -2
  523. package/dist/chunks/cli-1.0.6-2kk9k86d.mjs +0 -2
  524. package/dist/chunks/cli-1.0.6-2ktan1c1.mjs +0 -6
  525. package/dist/chunks/cli-1.0.6-2q17d8ej.mjs +0 -2
  526. package/dist/chunks/cli-1.0.6-2taykcm3.mjs +0 -2
  527. package/dist/chunks/cli-1.0.6-2y4xs66t.mjs +0 -2
  528. package/dist/chunks/cli-1.0.6-34y44ns8.mjs +0 -2
  529. package/dist/chunks/cli-1.0.6-36s91tek.mjs +0 -2
  530. package/dist/chunks/cli-1.0.6-39ebgej3.mjs +0 -9
  531. package/dist/chunks/cli-1.0.6-3fqch3zx.mjs +0 -2
  532. package/dist/chunks/cli-1.0.6-3jkvpjb7.mjs +0 -2
  533. package/dist/chunks/cli-1.0.6-3rnmt44c.mjs +0 -199
  534. package/dist/chunks/cli-1.0.6-429sbhhn.mjs +0 -2
  535. package/dist/chunks/cli-1.0.6-43ajeraf.mjs +0 -2
  536. package/dist/chunks/cli-1.0.6-4jw1053r.mjs +0 -2
  537. package/dist/chunks/cli-1.0.6-4kafzdd3.mjs +0 -2
  538. package/dist/chunks/cli-1.0.6-4m8qf7d9.mjs +0 -2
  539. package/dist/chunks/cli-1.0.6-4pez6ae9.mjs +0 -2
  540. package/dist/chunks/cli-1.0.6-4pmn22p0.mjs +0 -12
  541. package/dist/chunks/cli-1.0.6-4r68vt91.mjs +0 -4
  542. package/dist/chunks/cli-1.0.6-4shdcvhj.mjs +0 -2
  543. package/dist/chunks/cli-1.0.6-4w9smp0a.mjs +0 -4
  544. package/dist/chunks/cli-1.0.6-52vkzgxe.mjs +0 -2
  545. package/dist/chunks/cli-1.0.6-53rqxxkh.mjs +0 -2
  546. package/dist/chunks/cli-1.0.6-55csqcct.mjs +0 -2
  547. package/dist/chunks/cli-1.0.6-5esxakc4.mjs +0 -2
  548. package/dist/chunks/cli-1.0.6-5fd5qjm7.mjs +0 -2
  549. package/dist/chunks/cli-1.0.6-5kmwcmd1.mjs +0 -25
  550. package/dist/chunks/cli-1.0.6-5qyfr732.mjs +0 -17
  551. package/dist/chunks/cli-1.0.6-5tx13t22.mjs +0 -2
  552. package/dist/chunks/cli-1.0.6-61qpjst5.mjs +0 -2
  553. package/dist/chunks/cli-1.0.6-620sz5j0.mjs +0 -2
  554. package/dist/chunks/cli-1.0.6-6a9gyk3y.mjs +0 -12
  555. package/dist/chunks/cli-1.0.6-6g4hkpj7.mjs +0 -4
  556. package/dist/chunks/cli-1.0.6-6h5a9gax.mjs +0 -2
  557. package/dist/chunks/cli-1.0.6-6hs6qqxv.mjs +0 -2
  558. package/dist/chunks/cli-1.0.6-6x2aqc5w.mjs +0 -3
  559. package/dist/chunks/cli-1.0.6-6zh1kz2j.mjs +0 -2
  560. package/dist/chunks/cli-1.0.6-6zqt7f43.mjs +0 -59
  561. package/dist/chunks/cli-1.0.6-74km5nc4.mjs +0 -2
  562. package/dist/chunks/cli-1.0.6-77j29wff.mjs +0 -2
  563. package/dist/chunks/cli-1.0.6-78gtt741.mjs +0 -2
  564. package/dist/chunks/cli-1.0.6-7dcdpthr.mjs +0 -2
  565. package/dist/chunks/cli-1.0.6-7ebqg37b.mjs +0 -2
  566. package/dist/chunks/cli-1.0.6-7qta6sp0.mjs +0 -12
  567. package/dist/chunks/cli-1.0.6-7rxsh83h.mjs +0 -2
  568. package/dist/chunks/cli-1.0.6-7sc6kks8.mjs +0 -2
  569. package/dist/chunks/cli-1.0.6-7wtv8nwt.mjs +0 -2
  570. package/dist/chunks/cli-1.0.6-80ts2fsy.mjs +0 -2
  571. package/dist/chunks/cli-1.0.6-831s2dg1.mjs +0 -2
  572. package/dist/chunks/cli-1.0.6-85rq113c.mjs +0 -2
  573. package/dist/chunks/cli-1.0.6-86chdw6e.mjs +0 -2
  574. package/dist/chunks/cli-1.0.6-8k0axbmg.mjs +0 -3
  575. package/dist/chunks/cli-1.0.6-8kamwh44.mjs +0 -15
  576. package/dist/chunks/cli-1.0.6-8svdc6qx.mjs +0 -2
  577. package/dist/chunks/cli-1.0.6-8tj1qeak.mjs +0 -2
  578. package/dist/chunks/cli-1.0.6-8v7ggr2e.mjs +0 -6
  579. package/dist/chunks/cli-1.0.6-8xtkd26m.mjs +0 -2
  580. package/dist/chunks/cli-1.0.6-8zcjrs1k.mjs +0 -2
  581. package/dist/chunks/cli-1.0.6-93qsrgeq.mjs +0 -2
  582. package/dist/chunks/cli-1.0.6-967pphy3.mjs +0 -3
  583. package/dist/chunks/cli-1.0.6-9be2xem8.mjs +0 -4
  584. package/dist/chunks/cli-1.0.6-9m9h23m8.mjs +0 -2
  585. package/dist/chunks/cli-1.0.6-9p90g9dg.mjs +0 -7
  586. package/dist/chunks/cli-1.0.6-9pj529zy.mjs +0 -2
  587. package/dist/chunks/cli-1.0.6-a9n4dj4c.mjs +0 -2
  588. package/dist/chunks/cli-1.0.6-a9z7f8hm.mjs +0 -2
  589. package/dist/chunks/cli-1.0.6-aasgkcf0.mjs +0 -3
  590. package/dist/chunks/cli-1.0.6-anxd75mm.mjs +0 -2
  591. package/dist/chunks/cli-1.0.6-apvttvwc.mjs +0 -3
  592. package/dist/chunks/cli-1.0.6-bghnbyek.mjs +0 -2
  593. package/dist/chunks/cli-1.0.6-bjz810zw.mjs +0 -2
  594. package/dist/chunks/cli-1.0.6-c3q3ytrc.mjs +0 -2
  595. package/dist/chunks/cli-1.0.6-cbv9sb7j.mjs +0 -4
  596. package/dist/chunks/cli-1.0.6-chfda1vf.mjs +0 -2
  597. package/dist/chunks/cli-1.0.6-ckyrvbe3.mjs +0 -2
  598. package/dist/chunks/cli-1.0.6-ct081pz5.mjs +0 -2
  599. package/dist/chunks/cli-1.0.6-d3y2kbdq.mjs +0 -2
  600. package/dist/chunks/cli-1.0.6-d4d0xfxp.mjs +0 -5
  601. package/dist/chunks/cli-1.0.6-d8gyb25m.mjs +0 -15
  602. package/dist/chunks/cli-1.0.6-d9ryhkjn.mjs +0 -2
  603. package/dist/chunks/cli-1.0.6-dk4qdtxs.mjs +0 -2
  604. package/dist/chunks/cli-1.0.6-e3cstemm.mjs +0 -67
  605. package/dist/chunks/cli-1.0.6-eqj39b7c.mjs +0 -2
  606. package/dist/chunks/cli-1.0.6-f4f6x83j.mjs +0 -24
  607. package/dist/chunks/cli-1.0.6-f80wk918.mjs +0 -2
  608. package/dist/chunks/cli-1.0.6-f82p2yzk.mjs +0 -39
  609. package/dist/chunks/cli-1.0.6-fggt191f.mjs +0 -2
  610. package/dist/chunks/cli-1.0.6-fj626dhh.mjs +0 -2
  611. package/dist/chunks/cli-1.0.6-g4v1k4vj.mjs +0 -2
  612. package/dist/chunks/cli-1.0.6-g9s2ts6j.mjs +0 -2
  613. package/dist/chunks/cli-1.0.6-gjtt9hjc.mjs +0 -5471
  614. package/dist/chunks/cli-1.0.6-hcq3hbzz.mjs +0 -3
  615. package/dist/chunks/cli-1.0.6-hjqc9sb8.mjs +0 -2
  616. package/dist/chunks/cli-1.0.6-hkaszwz8.mjs +0 -2
  617. package/dist/chunks/cli-1.0.6-hn9p22wz.mjs +0 -2
  618. package/dist/chunks/cli-1.0.6-hv2dry5y.mjs +0 -2
  619. package/dist/chunks/cli-1.0.6-j12sf764.mjs +0 -2
  620. package/dist/chunks/cli-1.0.6-j3b1c7v8.mjs +0 -2
  621. package/dist/chunks/cli-1.0.6-j5xkwr5w.mjs +0 -17
  622. package/dist/chunks/cli-1.0.6-j6sxw4gg.mjs +0 -2
  623. package/dist/chunks/cli-1.0.6-jfnnwqdv.mjs +0 -4
  624. package/dist/chunks/cli-1.0.6-jqa1byr3.mjs +0 -2
  625. package/dist/chunks/cli-1.0.6-jrrb4qbg.mjs +0 -2
  626. package/dist/chunks/cli-1.0.6-jwysg2r7.mjs +0 -2
  627. package/dist/chunks/cli-1.0.6-jyqjk8ym.mjs +0 -2
  628. package/dist/chunks/cli-1.0.6-kajb476n.mjs +0 -2
  629. package/dist/chunks/cli-1.0.6-kgver18c.mjs +0 -2
  630. package/dist/chunks/cli-1.0.6-khth3f6c.mjs +0 -1
  631. package/dist/chunks/cli-1.0.6-kx801kag.mjs +0 -4
  632. package/dist/chunks/cli-1.0.6-m747en7y.mjs +0 -50
  633. package/dist/chunks/cli-1.0.6-m96da95q.mjs +0 -2
  634. package/dist/chunks/cli-1.0.6-mapf4yym.mjs +0 -2
  635. package/dist/chunks/cli-1.0.6-mgb1vzp0.mjs +0 -6
  636. package/dist/chunks/cli-1.0.6-mgk6361j.mjs +0 -4
  637. package/dist/chunks/cli-1.0.6-mt3y4qmj.mjs +0 -18
  638. package/dist/chunks/cli-1.0.6-mwb4199d.mjs +0 -3
  639. package/dist/chunks/cli-1.0.6-mzqatpet.mjs +0 -6
  640. package/dist/chunks/cli-1.0.6-n3apbtd5.mjs +0 -2
  641. package/dist/chunks/cli-1.0.6-n6yd76q7.mjs +0 -2
  642. package/dist/chunks/cli-1.0.6-n9zhw61e.mjs +0 -2
  643. package/dist/chunks/cli-1.0.6-nb4f2zfq.mjs +0 -2
  644. package/dist/chunks/cli-1.0.6-nbxf3acf.mjs +0 -2
  645. package/dist/chunks/cli-1.0.6-njnv92az.mjs +0 -2
  646. package/dist/chunks/cli-1.0.6-nke3e3mv.mjs +0 -2
  647. package/dist/chunks/cli-1.0.6-nphrz836.mjs +0 -34
  648. package/dist/chunks/cli-1.0.6-npng9y9t.mjs +0 -2
  649. package/dist/chunks/cli-1.0.6-ntwqb73s.mjs +0 -2
  650. package/dist/chunks/cli-1.0.6-nyh2gact.mjs +0 -133
  651. package/dist/chunks/cli-1.0.6-p2syhbmk.mjs +0 -24
  652. package/dist/chunks/cli-1.0.6-pem0rvy0.mjs +0 -2
  653. package/dist/chunks/cli-1.0.6-pgc0vpjm.mjs +0 -2
  654. package/dist/chunks/cli-1.0.6-pgwdn1q5.mjs +0 -2
  655. package/dist/chunks/cli-1.0.6-px4bsvf6.mjs +0 -2
  656. package/dist/chunks/cli-1.0.6-q2yz709r.mjs +0 -2
  657. package/dist/chunks/cli-1.0.6-q79ba7ng.mjs +0 -24
  658. package/dist/chunks/cli-1.0.6-qnmkmcq4.mjs +0 -2
  659. package/dist/chunks/cli-1.0.6-qp2em1hm.mjs +0 -2
  660. package/dist/chunks/cli-1.0.6-qt11m0ak.mjs +0 -2
  661. package/dist/chunks/cli-1.0.6-r0n4r13f.mjs +0 -18
  662. package/dist/chunks/cli-1.0.6-r2508q6q.mjs +0 -2
  663. package/dist/chunks/cli-1.0.6-r6mzt599.mjs +0 -3
  664. package/dist/chunks/cli-1.0.6-rkbbyfm8.mjs +0 -21
  665. package/dist/chunks/cli-1.0.6-rm2htcb3.mjs +0 -2
  666. package/dist/chunks/cli-1.0.6-rp7q90tp.mjs +0 -42
  667. package/dist/chunks/cli-1.0.6-rsj4zt4n.mjs +0 -2
  668. package/dist/chunks/cli-1.0.6-rwke4nxh.mjs +0 -3
  669. package/dist/chunks/cli-1.0.6-rx5w7fx8.mjs +0 -2
  670. package/dist/chunks/cli-1.0.6-ry340c4k.mjs +0 -133
  671. package/dist/chunks/cli-1.0.6-s333n5zg.mjs +0 -8
  672. package/dist/chunks/cli-1.0.6-s8neseq2.mjs +0 -4
  673. package/dist/chunks/cli-1.0.6-shakqp36.mjs +0 -2
  674. package/dist/chunks/cli-1.0.6-snj1v3kf.mjs +0 -2
  675. package/dist/chunks/cli-1.0.6-sq2d4y85.mjs +0 -2
  676. package/dist/chunks/cli-1.0.6-sw7g4tgd.mjs +0 -2
  677. package/dist/chunks/cli-1.0.6-sws40pv9.mjs +0 -2
  678. package/dist/chunks/cli-1.0.6-t9r7rn29.mjs +0 -2
  679. package/dist/chunks/cli-1.0.6-tefnf8bf.mjs +0 -2
  680. package/dist/chunks/cli-1.0.6-tnt5gdq6.mjs +0 -3
  681. package/dist/chunks/cli-1.0.6-tw4tv5c3.mjs +0 -2
  682. package/dist/chunks/cli-1.0.6-v08hd9y9.mjs +0 -2
  683. package/dist/chunks/cli-1.0.6-va933r6s.mjs +0 -2
  684. package/dist/chunks/cli-1.0.6-vmwnjv3e.mjs +0 -12
  685. package/dist/chunks/cli-1.0.6-vpwqryae.mjs +0 -45
  686. package/dist/chunks/cli-1.0.6-vw4q8h8f.mjs +0 -20
  687. package/dist/chunks/cli-1.0.6-w3ewev2t.mjs +0 -2
  688. package/dist/chunks/cli-1.0.6-w3xpmc0m.mjs +0 -2
  689. package/dist/chunks/cli-1.0.6-wc676ed5.mjs +0 -2
  690. package/dist/chunks/cli-1.0.6-wgprm90p.mjs +0 -2
  691. package/dist/chunks/cli-1.0.6-wqqq5eh9.mjs +0 -2
  692. package/dist/chunks/cli-1.0.6-wvn01egx.mjs +0 -2
  693. package/dist/chunks/cli-1.0.6-x2m8wf3s.mjs +0 -15
  694. package/dist/chunks/cli-1.0.6-x6q5yg4p.mjs +0 -2
  695. package/dist/chunks/cli-1.0.6-xgntnn4t.mjs +0 -2
  696. package/dist/chunks/cli-1.0.6-xhmby05p.mjs +0 -2
  697. package/dist/chunks/cli-1.0.6-xk2ttvjs.mjs +0 -2
  698. package/dist/chunks/cli-1.0.6-xr79bf4b.mjs +0 -58
  699. package/dist/chunks/cli-1.0.6-xsbxh0be.mjs +0 -2
  700. package/dist/chunks/cli-1.0.6-xx7yggj6.mjs +0 -2
  701. package/dist/chunks/cli-1.0.6-y406hq26.mjs +0 -2
  702. package/dist/chunks/cli-1.0.6-y7y63cz5.mjs +0 -25
  703. package/dist/chunks/cli-1.0.6-y84yqp9s.mjs +0 -9
  704. package/dist/chunks/cli-1.0.6-yfs94tn1.mjs +0 -2
  705. package/dist/chunks/cli-1.0.6-ykfbjap8.mjs +0 -4
  706. package/dist/chunks/cli-1.0.6-ypbzk2re.mjs +0 -2
  707. package/dist/chunks/cli-1.0.6-ytd9vx4t.mjs +0 -5
  708. package/dist/chunks/cli-1.0.6-z06mmyvr.mjs +0 -6
  709. package/dist/chunks/cli-1.0.6-z1vvz38s.mjs +0 -2
  710. package/dist/chunks/cli-1.0.6-z6c3g4jy.mjs +0 -2
  711. package/dist/chunks/cli-1.0.6-zbbh8d20.mjs +0 -2
  712. package/dist/chunks/cli-1.0.6-zcnjjez0.mjs +0 -3
  713. package/dist/chunks/client-1.0.6-n3e1kq6z.mjs +0 -1
  714. package/dist/chunks/color-1.0.6-949mf4t9.mjs +0 -1
  715. package/dist/chunks/compact-1.0.6-pk763zz3.mjs +0 -3
  716. package/dist/chunks/config-1.0.6-bysc6622.mjs +0 -1
  717. package/dist/chunks/config-1.0.6-tgr3szh4.mjs +0 -1
  718. package/dist/chunks/constants-1.0.6-2ytt6s63.mjs +0 -1
  719. package/dist/chunks/context-1.0.6-c6a94j19.mjs +0 -1
  720. package/dist/chunks/context-noninteractive-1.0.6-rs66dgc4.mjs +0 -1
  721. package/dist/chunks/conversation-1.0.6-jg2wrz10.mjs +0 -1
  722. package/dist/chunks/copilotHeaders-1.0.6-pqtevy6f.mjs +0 -1
  723. package/dist/chunks/copy-1.0.6-8q0c5rxd.mjs +0 -9
  724. package/dist/chunks/cost-1.0.6-99qahzn2.mjs +0 -1
  725. package/dist/chunks/createSSHSession-1.0.6-d9m8hpvm.mjs +0 -1
  726. package/dist/chunks/createSession-1.0.6-bst3zcfv.mjs +0 -1
  727. package/dist/chunks/debug-1.0.6-sp18ckyq.mjs +0 -1
  728. package/dist/chunks/defaultActionDeps-1.0.6-264e52qb.mjs +0 -1446
  729. package/dist/chunks/desktop-1.0.6-8f041exs.mjs +0 -1
  730. package/dist/chunks/detectRepository-1.0.6-5xtpjm37.mjs +0 -1
  731. package/dist/chunks/detection-1.0.6-rqwbmfnt.mjs +0 -1
  732. package/dist/chunks/diff-1.0.6-2tfee48c.mjs +0 -1
  733. package/dist/chunks/doctor-1.0.6-8cd8a94q.mjs +0 -1
  734. package/dist/chunks/doctorDiagnostic-1.0.6-2waz13fa.mjs +0 -1
  735. package/dist/chunks/earlyInput-1.0.6-xz3zmash.mjs +0 -1
  736. package/dist/chunks/effort-1.0.6-sxass88w.mjs +0 -10
  737. package/dist/chunks/engine-1.0.6-m67y6tar.mjs +0 -1
  738. package/dist/chunks/envLessBridgeConfig-1.0.6-96am9ft2.mjs +0 -1
  739. package/dist/chunks/envUtils-1.0.6-rwrw23sx.mjs +0 -1
  740. package/dist/chunks/environmentSelection-1.0.6-eafb1t40.mjs +0 -1
  741. package/dist/chunks/environments-1.0.6-4rbtnxhr.mjs +0 -1
  742. package/dist/chunks/errors-1.0.6-tw2j2j5x.mjs +0 -1
  743. package/dist/chunks/exampleCommands-1.0.6-nme5mfvh.mjs +0 -1
  744. package/dist/chunks/exit-1.0.6-0nhvqr67.mjs +0 -1
  745. package/dist/chunks/explorer-1.0.6-9va9rmay.mjs +0 -1
  746. package/dist/chunks/export-1.0.6-42k6mg0d.mjs +0 -2
  747. package/dist/chunks/extra-usage-1.0.6-1ts30zcb.mjs +0 -1
  748. package/dist/chunks/extra-usage-noninteractive-1.0.6-ccj017df.mjs +0 -1
  749. package/dist/chunks/fast-1.0.6-hng6hkgq.mjs +0 -1
  750. package/dist/chunks/feedback-1.0.6-5xpevqgs.mjs +0 -14
  751. package/dist/chunks/firstPartyEventLogger-1.0.6-y50d073s.mjs +0 -1
  752. package/dist/chunks/git-1.0.6-vdebxyc7.mjs +0 -1
  753. package/dist/chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs +0 -1
  754. package/dist/chunks/goal-1.0.6-ragq8khs.mjs +0 -4
  755. package/dist/chunks/grove-1.0.6-94e2ae96.mjs +0 -1
  756. package/dist/chunks/growthbook-1.0.6-q95706fh.mjs +0 -1
  757. package/dist/chunks/headless-1.0.6-2jvpkaj6.mjs +0 -2
  758. package/dist/chunks/heapdump-1.0.6-6mqe5yjj.mjs +0 -6
  759. package/dist/chunks/help-1.0.6-3f56hs2r.mjs +0 -1
  760. package/dist/chunks/hookChains-1.0.6-bsdqvn2p.mjs +0 -3
  761. package/dist/chunks/hooks-1.0.6-2ymh39cf.mjs +0 -79
  762. package/dist/chunks/hooks-1.0.6-d56f9xmd.mjs +0 -1
  763. package/dist/chunks/ide-1.0.6-0hyhzmhe.mjs +0 -3
  764. package/dist/chunks/image-processor-napi-1.0.6-xf9rg916.mjs +0 -1
  765. package/dist/chunks/inboundAttachments-1.0.6-fz8n9ms8.mjs +0 -1
  766. package/dist/chunks/index-1.0.6-2bck3pt4.mjs +0 -30
  767. package/dist/chunks/index-1.0.6-3g0nsrkv.mjs +0 -17
  768. package/dist/chunks/index-1.0.6-3y7jxvhy.mjs +0 -1
  769. package/dist/chunks/index-1.0.6-478y2m6e.mjs +0 -2
  770. package/dist/chunks/index-1.0.6-4b1e7s1x.mjs +0 -1
  771. package/dist/chunks/index-1.0.6-58j0s67x.mjs +0 -1
  772. package/dist/chunks/index-1.0.6-5bgvzt3z.mjs +0 -1
  773. package/dist/chunks/index-1.0.6-5vphvdyy.mjs +0 -1
  774. package/dist/chunks/index-1.0.6-66q2r5rv.mjs +0 -1
  775. package/dist/chunks/index-1.0.6-7eqcsb13.mjs +0 -9
  776. package/dist/chunks/index-1.0.6-7mybgpvp.mjs +0 -9
  777. package/dist/chunks/index-1.0.6-9h6qgr9j.mjs +0 -1
  778. package/dist/chunks/index-1.0.6-a1je2hj0.mjs +0 -5
  779. package/dist/chunks/index-1.0.6-dzem1xyw.mjs +0 -1
  780. package/dist/chunks/index-1.0.6-h1kbzgbr.mjs +0 -1
  781. package/dist/chunks/index-1.0.6-jr8edr28.mjs +0 -1
  782. package/dist/chunks/index-1.0.6-kb626zfj.mjs +0 -1
  783. package/dist/chunks/index-1.0.6-scap8ztx.mjs +0 -1
  784. package/dist/chunks/index-1.0.6-sfn887je.mjs +0 -1
  785. package/dist/chunks/index-1.0.6-trrzmzqw.mjs +0 -2
  786. package/dist/chunks/index-1.0.6-vxgxky1j.mjs +0 -1
  787. package/dist/chunks/index-1.0.6-xw59t9mn.mjs +0 -1
  788. package/dist/chunks/index-1.0.6-zefh4dqr.mjs +0 -1
  789. package/dist/chunks/init-1.0.6-ceew1r40.mjs +0 -1
  790. package/dist/chunks/initReplBridge-1.0.6-q0q0cs0q.mjs +0 -1
  791. package/dist/chunks/ink-1.0.6-egfpysk6.mjs +0 -1
  792. package/dist/chunks/insights-1.0.6-2jg25rtq.mjs +0 -870
  793. package/dist/chunks/install-1.0.6-g2wbzhrp.mjs +0 -1
  794. package/dist/chunks/install-github-app-1.0.6-wkch2k0a.mjs +0 -149
  795. package/dist/chunks/install-slack-app-1.0.6-t0yx4g99.mjs +0 -1
  796. package/dist/chunks/instrumentation-1.0.6-rchtz4a0.mjs +0 -1
  797. package/dist/chunks/interactiveHelpers-1.0.6-y17rjqq1.mjs +0 -1
  798. package/dist/chunks/keybindings-1.0.6-fwfn3ph3.mjs +0 -2
  799. package/dist/chunks/knowledge-1.0.6-ec5ygwxq.mjs +0 -2
  800. package/dist/chunks/latestVersionCache-1.0.6-v868fdtg.mjs +0 -1
  801. package/dist/chunks/loadAgentsDir-1.0.6-tqjw33x8.mjs +0 -1
  802. package/dist/chunks/loadPluginHooks-1.0.6-0ep8t6k1.mjs +0 -1
  803. package/dist/chunks/loadPluginHooks-1.0.6-qnt1qmw9.mjs +0 -1
  804. package/dist/chunks/log-1.0.6-k9cgc2n4.mjs +0 -1
  805. package/dist/chunks/main-1.0.6-nqg7gj8m.mjs +0 -1
  806. package/dist/chunks/managedEnv-1.0.6-5ew1phra.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.6-3knsgg6d.mjs +0 -17
  808. package/dist/chunks/mcp-1.0.6-na22t28a.mjs +0 -1
  809. package/dist/chunks/mcp-1.0.6-zkyhgas3.mjs +0 -4
  810. package/dist/chunks/mcpb-1.0.6-g3b1zqxb.mjs +0 -1
  811. package/dist/chunks/memory-1.0.6-atzzmaad.mjs +0 -3
  812. package/dist/chunks/model-1.0.6-57z0x37s.mjs +0 -1
  813. package/dist/chunks/model-1.0.6-843dkkfz.mjs +0 -2
  814. package/dist/chunks/node-1.0.6-vxbhm4hf.mjs +0 -12
  815. package/dist/chunks/oauth-1.0.6-cfc8agdv.mjs +0 -1
  816. package/dist/chunks/openaiShim-1.0.6-zsb0hbxr.mjs +0 -14
  817. package/dist/chunks/output-style-1.0.6-qbmq3rnf.mjs +0 -1
  818. package/dist/chunks/package-ZZWOLTXM-1.0.6-tkz3dr14.mjs +0 -1
  819. package/dist/chunks/parseConnectUrl-1.0.6-j4d5nn9v.mjs +0 -1
  820. package/dist/chunks/parser-1.0.6-v2vwmn92.mjs +0 -1
  821. package/dist/chunks/passes-1.0.6-n7gy2bm9.mjs +0 -1
  822. package/dist/chunks/permissions-1.0.6-p5k4trnb.mjs +0 -3
  823. package/dist/chunks/permissions-1.0.6-sdaqy7tv.mjs +0 -1
  824. package/dist/chunks/plan-1.0.6-dsq3488z.mjs +0 -1
  825. package/dist/chunks/plist-1.0.6-gpg0h2dj.mjs +0 -1
  826. package/dist/chunks/plugin-1.0.6-kj0t0xry.mjs +0 -29
  827. package/dist/chunks/pluginStartupCheck-1.0.6-tr3d9de5.mjs +0 -1
  828. package/dist/chunks/plugins-1.0.6-7kctwa0e.mjs +0 -9
  829. package/dist/chunks/preActionHook-1.0.6-qfq4qcnx.mjs +0 -2
  830. package/dist/chunks/print-1.0.6-9k27napw.mjs +0 -57
  831. package/dist/chunks/privacy-settings-1.0.6-pmkcm2k6.mjs +0 -1
  832. package/dist/chunks/process-1.0.6-yjr9qgm0.mjs +0 -1
  833. package/dist/chunks/processBashCommand-1.0.6-hjsegdwx.mjs +0 -1
  834. package/dist/chunks/processSlashCommand-1.0.6-qtste297.mjs +0 -9
  835. package/dist/chunks/prompt-1.0.6-3pz6ez1b.mjs +0 -1
  836. package/dist/chunks/prompt-1.0.6-gz6pqd71.mjs +0 -1
  837. package/dist/chunks/prompts-1.0.6-dds21kka.mjs +0 -1
  838. package/dist/chunks/protocolHandler-1.0.6-0ks875v7.mjs +0 -13
  839. package/dist/chunks/provider-1.0.6-9a1x17c8.mjs +0 -2
  840. package/dist/chunks/providerProfiles-1.0.6-rk717k78.mjs +0 -1
  841. package/dist/chunks/providerValidation-1.0.6-e3rpsc9f.mjs +0 -6
  842. package/dist/chunks/rate-limit-options-1.0.6-90etm2re.mjs +0 -1
  843. package/dist/chunks/registerSubcommands-1.0.6-nvtknss4.mjs +0 -34
  844. package/dist/chunks/registry-1.0.6-g4g3tqbv.mjs +0 -1
  845. package/dist/chunks/release-notes-1.0.6-1s9np58q.mjs +0 -5
  846. package/dist/chunks/reload-plugins-1.0.6-3dd0aedh.mjs +0 -2
  847. package/dist/chunks/remote-env-1.0.6-gyn1ez8r.mjs +0 -1
  848. package/dist/chunks/remoteBridgeCore-1.0.6-g9538ytn.mjs +0 -1
  849. package/dist/chunks/remoteSession-1.0.6-mta0cnmb.mjs +0 -1
  850. package/dist/chunks/rename-1.0.6-q495btpz.mjs +0 -1
  851. package/dist/chunks/replBridgeHandle-1.0.6-v46krtrw.mjs +0 -1
  852. package/dist/chunks/replLauncher-1.0.6-cc276asy.mjs +0 -1
  853. package/dist/chunks/resume-1.0.6-f7sxdm3s.mjs +0 -2
  854. package/dist/chunks/rewind-1.0.6-6stqe269.mjs +0 -1
  855. package/dist/chunks/rootOptions-1.0.6-j78xfj1y.mjs +0 -1
  856. package/dist/chunks/sandbox-adapter-1.0.6-901t5paa.mjs +0 -1
  857. package/dist/chunks/sandbox-toggle-1.0.6-vc10zpq8.mjs +0 -1
  858. package/dist/chunks/session-1.0.6-gjwdmj9d.mjs +0 -2
  859. package/dist/chunks/sessionDiscovery-1.0.6-r2ydd9s8.mjs +0 -1
  860. package/dist/chunks/sessionFileAccessHooks-1.0.6-9dvjq66r.mjs +0 -1
  861. package/dist/chunks/sessionStorage-1.0.6-6xf0298f.mjs +0 -1
  862. package/dist/chunks/settings-1.0.6-369qbnap.mjs +0 -1
  863. package/dist/chunks/setup-1.0.6-n8ec75ht.mjs +0 -5
  864. package/dist/chunks/sinks-1.0.6-h7v83r07.mjs +0 -1
  865. package/dist/chunks/skills-1.0.6-srbnw6db.mjs +0 -1
  866. package/dist/chunks/startupProfiler-1.0.6-bt2rwgd4.mjs +0 -1
  867. package/dist/chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs +0 -1
  868. package/dist/chunks/state-1.0.6-3m5c8zpc.mjs +0 -1
  869. package/dist/chunks/stats-1.0.6-df87fq0j.mjs +0 -6
  870. package/dist/chunks/status-1.0.6-0wmbys8d.mjs +0 -1
  871. package/dist/chunks/stickers-1.0.6-rn50x1rq.mjs +0 -1
  872. package/dist/chunks/subprocessEnv-1.0.6-1p34363n.mjs +0 -1
  873. package/dist/chunks/tasks-1.0.6-n9dy1nvm.mjs +0 -1
  874. package/dist/chunks/teamHelpers-1.0.6-sbqr7ebq.mjs +0 -1
  875. package/dist/chunks/teammateModeSnapshot-1.0.6-shsz85kr.mjs +0 -1
  876. package/dist/chunks/teleport-1.0.6-thxx543v.mjs +0 -1
  877. package/dist/chunks/terminalSetup-1.0.6-2abyvwnm.mjs +0 -1
  878. package/dist/chunks/theme-1.0.6-3q8wm8dd.mjs +0 -1
  879. package/dist/chunks/thinkback-1.0.6-sk8ykxzt.mjs +0 -1
  880. package/dist/chunks/thinkback-play-1.0.6-6202g18m.mjs +0 -1
  881. package/dist/chunks/toolPool-1.0.6-7f9ny265.mjs +0 -1
  882. package/dist/chunks/toolSearch-1.0.6-r927q3n6.mjs +0 -1
  883. package/dist/chunks/tools-1.0.6-49vtha15.mjs +0 -1
  884. package/dist/chunks/trustedDevice-1.0.6-12zgjreg.mjs +0 -1
  885. package/dist/chunks/turndown.cjs-1.0.6-m88jykaz.mjs +0 -69
  886. package/dist/chunks/types-1.0.6-qcw5ptd7.mjs +0 -1
  887. package/dist/chunks/ultrareviewCommand-1.0.6-34s8eh57.mjs +0 -4
  888. package/dist/chunks/update-1.0.6-10vds9r4.mjs +0 -88
  889. package/dist/chunks/upgrade-1.0.6-sdwjc086.mjs +0 -1
  890. package/dist/chunks/upload-1.0.6-tk83fcy2.mjs +0 -7
  891. package/dist/chunks/upstreamproxy-1.0.6-8d54f9fn.mjs +0 -14
  892. package/dist/chunks/url-handler-napi-1.0.6-ph7g08x7.mjs +0 -1
  893. package/dist/chunks/usage-1.0.6-3m17gzhd.mjs +0 -1
  894. package/dist/chunks/util-1.0.6-wh7h4a5g.mjs +0 -1
  895. package/dist/chunks/utils-1.0.6-5e17hs3n.mjs +0 -1
  896. package/dist/chunks/vim-1.0.6-4mjggnma.mjs +0 -1
  897. package/dist/chunks/watcher-1.0.6-6p1xkebx.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.6-aysp0kpj.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.6-rnjxwhns.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.6-8nfcjmff.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.6-crv0bjsj.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.6-hg7rd6z8.mjs → cli-1.0.7-5qss5m61.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.6-m86933bc.mjs → cli-1.0.7-6rt1agkh.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.6-xbk4dr3g.mjs → cli-1.0.7-bc3sxk1j.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.6-esf6g2hg.mjs → cli-1.0.7-pscxy55m.mjs} +0 -0
@@ -1,50 +0,0 @@
1
- import{Ac as Kc,Bc as da}from"./cli-1.0.6-ct081pz5.mjs";import{Cc as An,Dc as Ht,Ec as Xt,Fc as Zc,Hc as ea}from"./cli-1.0.6-sq2d4y85.mjs";import{Ic as wt,Lc as ma}from"./cli-1.0.6-7dcdpthr.mjs";import{Cx as Jc,DH as Hn,EF as yt,EH as Au,Ex as ra,FF as Kn,GH as la,HH as oa,Kp as yc,Lp as Wu,Lw as Qc,Mp as Cc,Mw as Gc,Np as bc,Nw as Vc,OF as V,Op as wc,Ow as Yc,PF as gu,Pp as Oc,Pw as ha,QF as ia,Qp as D,Rp as mn,Sp as Uu,Tp as Lc,Vp as zc,Wp as Nc,Yp as fc,dG as nc,eG as Gu,fG as cc,gG as uc,hG as ac,iG as Vu,nq as Mc,oq as aa}from"./cli-1.0.6-gjtt9hjc.mjs";import{HX as v,JX as ca,VX as Fc,WX as ua}from"./cli-1.0.6-2kk9k86d.mjs";import{J0 as Ln,c0 as g,e0 as i}from"./cli-1.0.6-6zqt7f43.mjs";import{M1 as Nn,N1 as Mn,O1 as Qn,P1 as Gn,Q1 as Vn,R1 as su,U1 as Yn,Y1 as Jn,Z1 as $c,_1 as Zn}from"./cli-1.0.6-fj626dhh.mjs";import{p3 as dt,q3 as u,r3 as y,s3 as Qt}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as Vt}from"./cli-1.0.6-6zh1kz2j.mjs";import{Q3 as lc,R3 as Hu}from"./cli-1.0.6-aasgkcf0.mjs";import{f4 as $n,h4 as Ou}from"./cli-1.0.6-1a002r86.mjs";import{$ea as sn,A9 as Ct,B9 as vu,Dea as Rt,Eea as bn,Gea as wn,Kea as Fn,Pea as hn,Qea as xn,Rea as jn,Sea as Yt,Tea as rn,Uea as Dn,Vea as an,Wea as vn,Xea as tc,Yea as Qu,Zea as On,_ea as rc,bfa as ic,dfa as Sc,efa as gn,nea as qc,oea as bt,pea as ta,qea as Tt,rea as nt,sfa as na,tea as W,uea as Kt,wea as ft,xea as Cn,yea as ct,zea as At}from"./cli-1.0.6-3rnmt44c.mjs";import{fka as ut,nka as on}from"./cli-1.0.6-77j29wff.mjs";import{vra as Gt,wra as Du,zra as j}from"./cli-1.0.6-c3q3ytrc.mjs";function zu(t,c=tn,a){let r=nt().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(r)return At(r.id,{provider:"openai",name:r.name,baseUrl:a||r.baseUrl,model:r.model||c,apiKey:t,extras:{...r.extras,githubToken:t}}),Rt(r.id),{mode:"updated"};return ct({provider:"openai",name:"GitHub Copilot",baseUrl:a||Ru,model:c,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Tn({onDone:t,onBack:c,onChangeAPIKey:a}){let r=Yn()?.trim()?"already-authed":"menu",[m,e]=E.useState(r),[A,O]=E.useState(null),[X,w]=E.useState(""),[z,S]=E.useState(0),[L,Z]=E.useState(null),N=E.useCallback(async(Y,q=tn,tt,f)=>{let T=Jn(Y,tt,f?.enterpriseDomain);if(!T.success){O(T.warning??"Could not save token to secure storage."),e("error");return}zu(Y,q,f?.baseUrl),$n(),a?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[a,t]),C=E.useCallback(async(Y)=>{e("device-busy"),O(null),Z(null);try{let q=await Mn({domain:Y});Z({user_code:q.user_code,verification_uri:q.verification_uri}),await Gn(q.verification_uri);let tt=await Qn(q.device_code,{initialInterval:q.interval,timeoutSeconds:q.expires_in,domain:Y}),f=await Vn(tt,{domain:Y});await N(f.token,tn,tt,{baseUrl:f.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Y})}catch(q){O(q instanceof Error?q.message:String(q)),e("error")}},[N]);if(m==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot"}),u(i,{children:"You are already signed in to GitHub Copilot."}),u(i,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),u(V,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"back"}],onChange:(q)=>{if(q==="sign-in-again"){C();return}if(q==="enterprise"){e("enterprise-domain");return}if(c){c();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Enterprise sign-in"}),u(i,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:">"}),u(yt,{value:X,onChange:w,onSubmit:()=>{let q=Nn(X);if(!q){C();return}C(q)},onExit:()=>e(r),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:z,onChangeCursorOffset:S})]}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(m==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"red",children:A}),u(V,{options:[{label:c?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(q)=>{if(q==="back"){if(c){c();return}e("menu"),O(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[u(i,{children:"GitHub Copilot sign-in"}),L?y(dt,{children:[y(i,{children:["Enter code ",u(i,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),u(i,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):u(i,{dimColor:!0,children:"Requesting device code from GitHub..."}),u(Hn,{})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot setup"}),u(i,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),u(V,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Y)=>{if(Y==="cancel"){if(c){c();return}t("GitHub onboard cancelled",{display:"system"});return}if(Y==="enterprise"){e("enterprise-domain");return}C()}})]})}var E,tn="github:copilot",Ru="https://api.githubcopilot.com";var Wn=j(()=>{gu();Au();Kn();Ln();su();Zn();Ou();Fn();Qt();E=Gt(Vt(),1)});function En(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function zt(t,c){return c.some((a)=>t.includes(a))}function _u(t){return!zt(En(t),Un)}function qu(t){return t.find(_u)??null}function nn(t){let a=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(a?.[1])return Number(a[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Su(t){return(t.quantizationLevel??t.name).toLowerCase()}function Fu(t,c,a){if(t===null)return a.push("unknown size"),0;if(c==="latency"){if(t<=4)return a.push("tiny model for low latency"),32;if(t<=8)return a.push("small model for fast responses"),26;if(t<=14)return a.push("mid-sized model with acceptable latency"),16;if(t<=24)return a.push("larger model may be slower"),8;return a.push("large model likely slower locally"),t<=40?0:-8}if(c==="coding"){if(t>=7&&t<=14)return a.push("strong coding size tier"),24;if(t>14&&t<=34)return a.push("large coding-capable size tier"),28;if(t>34)return a.push("very large model with higher quality potential"),18;return a.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return a.push("great balanced size tier"),26;if(t>=3&&t<7)return a.push("compact balanced size tier"),18;if(t>14&&t<=24)return a.push("high quality balanced size tier"),20;if(t>24)return a.push("large model for quality-first usage"),10;return a.push("very small model for general usage"),8}function $u(t,c,a){let r=Su(t);if(r.includes("q4"))return a.push("efficient Q4 quantization"),c==="latency"?8:4;if(r.includes("q5"))return a.push("balanced Q5 quantization"),c==="latency"?6:5;if(r.includes("q8"))return a.push("higher quality Q8 quantization"),c==="latency"?2:5;return 0}function Lu(t,c,a){if(c.score!==t.score)return c.score-t.score;let r=nn(t)??Number.POSITIVE_INFINITY,m=nn(c)??Number.POSITIVE_INFINITY;if(a==="latency")return r-m;if(a==="coding")return m-r;let e=14;return Math.abs(r-e)-Math.abs(m-e)}function cn(t,c){return t.map((a)=>{let r=En(a),m=[],e=0;if(zt(r,Un))e-=40,m.push("not a chat-first model");if(zt(r,fu))e+=c==="coding"?24:c==="balanced"?10:4,m.push("coding-oriented model family");if(zt(r,Xu))e+=c==="latency"?4:c==="coding"?6:8,m.push("strong general-purpose model family");if(zt(r,ku))e+=c==="latency"?2:6,m.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))e-=2,m.push("vision model adds extra overhead");e+=Fu(nn(a),c,m),e+=$u(a,c,m);let A=m.slice(0,3).join(", ");return{...a,score:e,reasons:m,summary:A}}).sort((a,r)=>Lu(a,r,c))}function Pn(t,c){return qu(cn(t,c))}var fu,Xu,ku,Un;var Bn=j(()=>{fu=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Xu=["llama","qwen","mistral","gemma","phi","deepseek"],ku=["instruct","chat","assistant"],Un=["embed","embedding","rerank","bge","whisper"]});function Mu(t){let c=t.toLowerCase();return Nu.some((a)=>c.includes(a))}function un(t){try{let c=new URL(t);if(c.username)c.username="redacted";if(c.password)c.password="redacted";for(let a of c.searchParams.keys())if(Mu(a))c.searchParams.set(a,"redacted");return c.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Nu;var In=j(()=>{Nu=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Yu(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URL(`${hn}/oauth/authorize`);return a.searchParams.append("response_type","code"),a.searchParams.append("client_id",rn()),a.searchParams.append("redirect_uri",c),a.searchParams.append("scope",xn),a.searchParams.append("code_challenge",t.codeChallenge),a.searchParams.append("code_challenge_method","S256"),a.searchParams.append("id_token_add_organizations","true"),a.searchParams.append("codex_cli_simplified_flow","true"),a.searchParams.append("state",t.state),a.searchParams.append("originator",jn),a.toString()}function Ju(){return`<!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Codex Login Complete</title>
6
- <style>
7
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
- h1 { margin: 0 0 12px; font-size: 22px; }
9
- p { margin: 0 0 10px; }
10
- </style>
11
- </head>
12
- <body>
13
- <h1>Codex login complete</h1>
14
- <p>You can return to Claudin now.</p>
15
- <p>Claudin will finish activating your new Codex OAuth login.</p>
16
- </body>
17
- </html>`}function Zu(t){return`<!doctype html>
18
- <html lang="en">
19
- <head>
20
- <meta charset="utf-8" />
21
- <title>Codex Login Failed</title>
22
- <style>
23
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
- h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
- p { margin: 0 0 10px; }
26
- </style>
27
- </head>
28
- <body>
29
- <h1>Codex login failed</h1>
30
- <p>${vn(t)}</p>
31
- <p>You can close this window and try again in Claudin.</p>
32
- </body>
33
- </html>`}function pn(){return`<!doctype html>
34
- <html lang="en">
35
- <head>
36
- <meta charset="utf-8" />
37
- <title>Codex Login Cancelled</title>
38
- <style>
39
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
- h1 { margin: 0 0 12px; font-size: 22px; }
41
- p { margin: 0 0 10px; }
42
- </style>
43
- </head>
44
- <body>
45
- <h1>Codex login cancelled</h1>
46
- <p>You can close this window and retry in Claudin.</p>
47
- </body>
48
- </html>`}async function Ku(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:c,client_id:rn(),code_verifier:t.codeVerifier}),r=await fetch(`${hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let w=await r.text().catch(()=>"");throw Error(w.trim()?`Codex OAuth token exchange failed (${r.status}): ${w.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let m=await r.json(),e=Yt(m.access_token),A=Yt(m.refresh_token);if(!e||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=Yt(m.id_token);return{apiKey:O?await tc(O).catch(()=>{return}):void 0,accessToken:e,refreshToken:A,idToken:O,accountId:an(O)??an(e)}}class ln{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let c=cc(),a=Dn(),r=new nc("/auth/callback");this.authCodeListener=r,this.port=null;try{let m=await r.start(a);this.port=m;let e=ac(),A=await uc(c),O=Yu({port:m,codeChallenge:A,state:e});try{let X=await r.waitForAuthorization(e,async()=>{await t(O)}),w=new AbortController;this.tokenExchangeAbortController=w;let z;try{z=await Ku({authorizationCode:X,codeVerifier:c,port:m,signal:w.signal})}finally{if(this.tokenExchangeAbortController===w)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(S)=>{S.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),S.end(Ju())}),z}catch(X){let w=this.authCodeListener===r?X:this.buildCancellationError();if(r.hasPendingResponse()){let z=w instanceof Error&&w.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((S)=>{S.writeHead(z?200:400,{"Content-Type":"text/html; charset=utf-8"}),S.end(z?pn():Zu(w instanceof Error?w.message:String(w)))})}throw w}finally{this.cleanup()}}catch(m){let e=m instanceof Error?m.message:String(m);if(e.includes("EADDRINUSE")||e.includes(String(a)))throw Error(`Codex OAuth needs localhost:${a} for its callback. Close any app already using that port and try again.`);throw m}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((c)=>{c.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),c.end(pn())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var hc=j(()=>{Gu();Vu();Qu()});function Tu(){return new ln}function oc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??Tu,r=t.deps?.openBrowser??lc,m=t.deps?.saveCodexCredentials??rc,e=t.deps?.isBareMode??ut,[A,O]=Jt.useState({state:"starting"});return Jt.useEffect(()=>{if(e()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let X=!1,w=a();return w.startOAuthFlow(async(z)=>{if(X)return;O({state:"waiting",authUrl:z,browserOpened:null});let S=await r(z);if(X)return;O({state:"waiting",authUrl:z,browserOpened:S})}).then(async(z)=>{if(X)return;await c(z,(L)=>{let Z=m({apiKey:z.apiKey,accessToken:z.accessToken,refreshToken:z.refreshToken,idToken:z.idToken,accountId:z.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((z)=>{if(X)return;O({state:"error",message:z instanceof Error?z.message:String(z)})}),()=>{X=!0,w.cleanup()}},[a,e,c,r,m]),A}var Jt;var mc=j(()=>{hc();Hu();ic();on();Jt=Gt(Vt(),1)});function Ac(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":yc()}}function dc(t,c){let a=Number(t);return Number.isFinite(a)&&a>0?a*1000:c}function Iu(t,c){if(c?.aborted)return Promise.resolve();return new Promise((a)=>{let r=setTimeout(()=>{c?.removeEventListener("abort",m),a()},t),m=()=>{clearTimeout(r),a()};c?.addEventListener("abort",m,{once:!0})})}async function pu(t){let c=t?.fetchImpl??fetch,a=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),r=await c(bc,{method:"POST",headers:Ac(),body:new URLSearchParams({client_id:mn(),scope:Oc}).toString(),signal:a});if(!r.ok){let X=await r.text().catch(()=>"");throw Error(`xAI device code request failed (${r.status})${X?`: ${X.trim()}`:""}`)}let m=await r.json(),e=D(m.device_code),A=D(m.user_code),O=D(m.verification_uri);if(!e||!A||!O)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:e,user_code:A,verification_uri:O,verification_uri_complete:D(m.verification_uri_complete),expires_in:typeof m.expires_in==="number"&&m.expires_in>0?m.expires_in:gc/1000,interval:typeof m.interval==="number"&&m.interval>0?m.interval:sc/1000}}async function xu(t,c){let a=c?.fetchImpl??fetch,r=c?.sleep??Iu,m=c?.now??(()=>Date.now()),e=dc(t.expires_in,gc),A=m()+e,O=Math.max(dc(t.interval,sc),Eu);while(m()<A){if(c?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let X=await a(Cc,{method:"POST",headers:Ac(),body:new URLSearchParams({grant_type:wc,client_id:mn(),device_code:t.device_code}).toString(),signal:c?.signal});if(X.ok){let L=await X.json(),Z=D(L.access_token),N=D(L.refresh_token);if(!Z||!N)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:N,idToken:D(L.id_token),expiresAt:m()+C*1000}}let w=await X.json().catch(()=>({})),z=Math.max(0,A-m());if(w.error==="authorization_pending"){await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="slow_down"){O=Math.min(O+Pu,Bu),await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="access_denied"||w.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(w.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let S=w.error_description??w.error??"";throw Error(`xAI device token exchange failed (${X.status})${S?`: ${S}`:""}`)}throw Error("xAI device authorization timed out.")}class en{abortController=null;async startDeviceFlow(t){let c=new AbortController;this.abortController=c;try{let a=await pu({signal:c.signal});return await t(a),await xu(a,{signal:c.signal})}finally{if(this.abortController===c)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var sc=5000,Eu=1000,Pu=5000,Bu=60000,gc=300000,ec=3000;var Rc=j(()=>{Wu();Uu()});function ju(){return new en}function Xc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??ju,r=t.deps?.saveXaiCredentials??zc,m=t.deps?.isBareMode??ut,[e,A]=Zt.useState({state:"starting"});return Zt.useEffect(()=>{if(m()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let O=!1,X=a();return X.startDeviceFlow(async(w)=>{if(O)return;A({state:"waiting",userCode:w.user_code,verificationUri:w.verification_uri,verificationUriComplete:w.verification_uri_complete})}).then(async(w)=>{if(O)return;await c(w,(S)=>{let L=r({accessToken:w.accessToken,refreshToken:w.refreshToken,idToken:w.idToken,expiresAt:w.expiresAt,profileId:S?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((w)=>{if(O)return;A({state:"error",message:w instanceof Error?w.message:String(w)})}),()=>{O=!0,X.cleanup()}},[a,m,c,r]),e}var Zt;var kc=j(()=>{Rc();on();fc();Zt=Gt(Vt(),1)});function sa(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function ga(t){let c=Tt(t);return{name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey??""}}function Aa(t){let c={};for(let a of t.split(/\r?\n/)){let r=a.trim();if(!r)continue;let m=r.indexOf(":");if(m<=0)continue;let e=r.slice(0,m).trim(),A=r.slice(m+1).trim();if(e&&A)c[e]=A}return c}function Ra(t){if(!t)return"";return Object.entries(t).map(([c,a])=>`${c}: ${a}`).join(`
49
- `)}function za(t,c){let a={},r=t.awsRegion?.trim();if(r)a.awsRegion=r;let m=t.gcpProject?.trim();if(m)a.gcpProject=m;let e=t.gcpRegion?.trim();if(e)a.gcpRegion=e;let A=t.azureResource?.trim();if(A)a.azureResource=A;let O=Aa(c);if(Object.keys(O).length>0)a.customHeaders=O;return Object.keys(a).length>0?a:void 0}function Xa(t,c){let a=c?" (active)":"",r=t.apiKey?"key set":"no key",m=t.provider==="anthropic"?"anthropic":"openai-compatible",e=qc(t.model),A=e.length<=3?e.join(", "):`${e[0]}, ${e[1]} + ${e.length-2} more`;return`${m} · ${t.baseUrl} · ${A} · ${r}${a}`}function ka(t,c){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${un(c)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function _a(t,c){if(t.state==="unreachable")return`Could not reach Ollama at ${un(c)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let a=t.probeModel??"the selected model",r=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${a}.${r} Run "ollama run ${a}" once and retry, or enter details manually.`}return""}function yn(t,c){if(!c)return;return t.find((a)=>a.id===c)}function _c(t,c){return Boolean(t&&c&&t.id===c)}function qa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=oc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"Codex OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Codex OAuth"}),u(i,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?u(i,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?y(dt,{children:[u(i,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),u(i,{children:r.authUrl})]}):r.browserOpened===!0?y(dt,{children:[u(i,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),u(i,{children:r.authUrl})]}):u(i,{dimColor:!0,children:"Opening your browser..."}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=Xc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"xAI OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),r.state==="starting"?u(i,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(dt,{children:[y(i,{children:["Open this URL on any device:"," ",u(i,{bold:!0,children:r.verificationUri})]}),y(i,{children:["Enter code ",u(i,{bold:!0,children:r.userCode})]}),r.verificationUriComplete&&r.verificationUriComplete!==r.verificationUri?y(i,{dimColor:!0,children:["Or open this prefilled URL: ",r.verificationUriComplete]}):null,u(i,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sh({mode:t,onDone:c}){let a=Jc(),[r,m]=b.useState([]),[e,A]=b.useState(),[O,X]=b.useState(),[w,z]=b.useState(!1),[S,L]=b.useState(),Z=b.useRef(0),[N,C]=b.useState(t==="first-run"?"select-preset":"menu"),[ht,Y]=b.useState(null),[q,tt]=b.useState("openai"),[f,T]=b.useState(()=>ga("ollama")),[Wt,kt]=b.useState({}),[Rn,Ut]=b.useState(""),[Hc,Tc]=b.useState(0),[Wc,Uc]=b.useState(0),[Et,zn]=b.useState(null),[rt,Ot]=b.useState(0),[it,P]=b.useState(0),[Ec,B]=b.useState(0),[fn,M]=b.useState(),[lt,R]=b.useState(),[Pc,Bc]=b.useState(),[Xn,_t]=b.useState(!1),[st,gt]=b.useState(),[I,qt]=b.useState({state:"idle"}),[p,St]=b.useState({state:"idle"}),[x,Pt]=b.useState({state:"idle"}),[Ic,pc]=b.useState(!0),[xc,H]=b.useState(!1),Bt=b.useRef(!1),[It,pt]=b.useState(()=>Xt()),[kn,jc]=b.useState(()=>Zc());b.useEffect(()=>{queueMicrotask(()=>{let n=nt(),h=W()?.id;m(n),A(h),X(Kt()),L(Cn()),z(ft()),pc(!1)})},[]);let ot=at[it]??at[0],Ft=ot.key,Dc=f[Ft],xt=r.length>0,$t=xt,_n=b.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:S?`Currently: ${r.find((n)=>n.id===S)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!$t},{value:"activate-project",label:"Set active provider (Project)",description:O?`Currently: ${r.find((n)=>n.id===O)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!$t},...w?[{value:"clear-project-override",label:"Clear project provider override",description:O?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!xt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!$t},...Xn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[$t,xt,Xn,It,S,O,r]),jt=b.useCallback(()=>{if(ut()){Z.current+=1,_t(!1),gt(void 0);return}let n=++Z.current;(async()=>{let h=await On();if(n!==Z.current)return;_t(Boolean(h?.apiKey||h?.accessToken||h?.refreshToken||h?.idToken)),gt(h?.profileId)})()},[]);b.useEffect(()=>{return jt(),()=>{Z.current+=1}},[jt]),b.useEffect(()=>{if(N!=="select-ollama-model")return;let n=!1;return qt({state:"loading"}),(async()=>{let h=await Yc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)qt({state:"unavailable",message:_a(h,f.baseUrl)});return}let o=cn(h.models,"balanced"),l=Pn(h.models,"balanced");if(!n)qt({state:"ready",defaultValue:l?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-atomic-chat-model")return;let n=!1;return St({state:"loading"}),(async()=>{let h=await Vc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)St({state:"unavailable",message:ka(h,f.baseUrl)});return}if(!n)St({state:"ready",defaultValue:h.models[0],options:h.models.map((o)=>({label:o,value:o}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-openai-model")return;let n=!1;return Pt({state:"loading"}),(async()=>{let h=await Qc({baseUrl:f.baseUrl,apiKey:f.apiKey||void 0});if(n)return;if(!h||h.length===0){Pt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:o,defaultValue:l}=Gc(h,f.model);Pt({state:"ready",options:o,defaultValue:l})})(),()=>{n=!0}},[f.baseUrl,f.apiKey,N]);function Q(){if(Bt.current)return;Bt.current=!0,queueMicrotask(()=>{let n=nt();m(n),A(W()?.id),X(Kt()),L(Cn()),z(ft()),jt(),Bt.current=!1})}function mt(){return null}function Dt(n){if(n.activationWarning)return`${n.prefix}. Saved for next startup. Warning: ${n.warnings.join("; ")}.`;if(n.warnings.length>0)return`${n.prefix}. Claudin switched to it for this session with warnings: ${n.warnings.join("; ")}.`;return`${n.prefix}. Claudin switched to it for this session.`}async function vt(n){if(n?.accessToken&&n.accountId)return null;let h=await On();if(!h)return"stored Codex OAuth credentials could not be loaded";if(!h.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function qn(){Mc()}async function vc(n){let h="provider";H(!0),M("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),l=Rt(n);if(!l){R("Could not change active provider."),H(!1),k();return}let d=o?W()??l:l,s=bt(d.model);if(!o)a((U)=>({...U,mainLoopModel:s,mainLoopModelForSession:null}));h=l.name;let _=mt(),J=_c(l,st),$=J?await vt():null;Q();let K=o&&d.id!==l.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?Dt({prefix:`Active provider: ${l.name}${K}`,activationWarning:$,warnings:[$,_?`could not clear startup provider override (${_})`:null].filter((U)=>Boolean(U))}):_?`Active provider: ${l.name}${K}. Warning: could not clear startup provider override (${_}).`:`Active provider: ${l.name}${K}`;M(F),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:s,message:`Provider switched to ${l.name} (${s})`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish activating ${h}: ${l}`),k()}}async function tu(){H(!0),M("Clearing project provider override...");try{await new Promise((h)=>queueMicrotask(h)),bn(null),Q();let n=W();if(n){let h=bt(n.model);wt(),a((o)=>({...o,mainLoopModel:h,mainLoopModelForSession:null})),M(`Project override cleared. Using global default: ${n.name}.`),H(!1),c({action:"activated",activeProfileId:n.id,activeProviderName:n.name,activeProviderModel:h,message:`Project override cleared — using ${n.name} (${h})`}),k()}else M("Project provider override cleared. No global default set."),H(!1),c({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(n){Q(),M(void 0),H(!1);let h=n instanceof Error?n.message:String(n);R(`Could not clear project provider override: ${h}`),k()}}async function nu(n){let h="provider";H(!0),M("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Kt(),l=bn(n);if(!l){R("Could not set project provider override."),H(!1),k();return}let d=bt(l.model);if(o===l.id)wt();a((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),h=l.name;let s=mt(),_=_c(l,st),J=_?await vt():null;Q();let $=`Active provider for this project: ${l.name}. Other projects keep the global default.`,K=_?Dt({prefix:$,activationWarning:J,warnings:[J,s?`could not clear startup provider override (${s})`:null].filter((F)=>Boolean(F))}):s?`${$} Warning: could not clear startup provider override (${s}).`:$;M(K),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:d,message:`Provider switched to ${l.name} (${d}) for this project`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish setting ${h} for this project: ${l}`),k()}}function k(){Bc("done"),C("menu")}function Lt(n){c({action:"cancelled",message:n})}function cu(n){let h=Tt(n),o={name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""};if(Y(null),tt(h.provider??"openai"),T(o),kt({}),Ut(""),zn(n),P(0),Ot(0),B(o.name.length),R(void 0),n==="ollama"){qt({state:"loading"}),C("select-ollama-model");return}if(n==="atomic-chat"){St({state:"loading"}),C("select-atomic-chat-model");return}if(n==="anthropic"){C("anthropic-auth-choice");return}if(n==="bedrock"||n==="vertex"||n==="foundry"){C("cloud-extras");return}C("form")}function uu(n){let h=r.find((l)=>l.id===n);if(!h)return;let o=sa(h);Y(n),tt(h.provider??"openai"),T(o),kt({awsRegion:h.extras?.awsRegion,gcpProject:h.extras?.gcpProject,gcpRegion:h.extras?.gcpRegion,azureResource:h.extras?.azureResource}),Ut(Ra(h.extras?.customHeaders)),zn(null),P(0),Ot(0),B(o.name.length),R(void 0),C("form")}function Nt(n=f){let h=za(Wt,Rn),o={provider:q,name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey,extras:h},l=ht?At(ht,o):ct(o,{makeActive:!0});if(!l){R("Could not save provider. Fill all required fields.");return}let d=W()?.id===l.id;if(d)wt(),a((K)=>({...K,mainLoopModel:bt(l.model),mainLoopModelForSession:null}));let s=d?mt():null;Q();let _=!ht&&ft()&&!d,J=_?W()?.name??"override target":null,$=ht?`Updated provider: ${l.name}`:_?`Added provider: ${l.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${l.name} (now active)`;if(M(s?`${$}. Warning: could not clear startup provider override (${s}).`:$),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:`Provider configured: ${l.name}`});return}Y(null),P(0),R(void 0),k()}function au(){if(p.state==="loading"||p.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),u(i,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(p.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Atomic Chat setup"}),u(i,{dimColor:!0,children:p.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),u(i,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),u(V,{options:p.options,defaultValue:p.defaultValue,defaultFocusValue:p.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,p.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function hu(){if(I.state==="loading"||I.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Ollama"}),u(i,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(I.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Ollama setup"}),u(i,{dimColor:!0,children:I.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Ollama model"}),u(i,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),u(V,{options:I.options,defaultValue:I.defaultValue,defaultFocusValue:I.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,I.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function et(n){let h=at.findIndex((o)=>o.key===n);P(h<0?0:h),B(f[n].length),R(void 0),C("form")}function ru(){if(x.state==="loading"||x.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Fetching models"}),u(i,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),u(i,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(x.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:x.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(o)=>{if(o==="manual"){et("model");return}et("apiKey")},onCancel:()=>et("apiKey"),visibleOptionCount:2})]});let n=[...x.options,{value:dn,label:"Enter a model id manually",description:"Type an id the provider did not list"}],h=x.defaultValue??dn;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),u(V,{options:n,defaultValue:h,defaultFocusValue:h,inlineDescriptions:!0,visibleOptionCount:Math.min(8,n.length),onChange:(o)=>{if(o===dn){et("model");return}let l={...f,model:o};T(l),Sn(l)},onCancel:()=>et("apiKey")}),u(i,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Sn(n){if(Et==="anthropic"||Et==="custom"){T(n),C("custom-headers");return}Nt(n)}function iu(n){let h=n.trim();if(!ot.optional&&h.length===0){R(`${ot.label} is required.`);return}let o={...f,[Ft]:h};if(T(o),R(void 0),it<at.length-1){let l=it+1,d=at[l]?.key??"name";if(d==="model"&&!ya.has(q)&&o.baseUrl.trim().length>0){C("select-openai-model");return}P(l),B(o[d].length);return}Sn(o)}function lu(){if(R(void 0),it>0){let n=it-1,h=at[n]?.key??"name";P(n),B(f[h].length);return}if(t==="first-run"){C("select-preset");return}k()}v("confirm:no",lu,{context:"Settings",isActive:N==="form"}),v("confirm:no",()=>et("model"),{context:"Settings",isActive:N==="select-openai-model"&&(x.state==="loading"||x.state==="idle")});function ou(){if(R(void 0),rt>0){Ot(rt-1);return}C("select-preset")}v("confirm:no",ou,{context:"Settings",isActive:N==="cloud-extras"}),v("confirm:no",()=>C("form"),{context:"Settings",isActive:N==="custom-headers"}),v("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:N==="anthropic-auth-choice"||N==="anthropic-oauth"});function mu(){let n=!ut(),h=[...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...n?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),u(i,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),u(V,{options:h,onChange:(o)=>{if(o==="skip"){Lt("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let l=await An({force:!0});pt(Xt()),Q();let d=Ht(l);if(l.errors.length>0){R(d);return}let s=W();if(t==="first-run"&&s){c({action:"saved",activeProfileId:s.id,activeProviderName:s.name,activeProviderModel:s.model,message:d});return}if(M(d),R(void 0),t==="manage")k()})();return}cu(o)},onCancel:()=>{if(t==="first-run"){Lt("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,h.length)})]})}function eu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),u(i,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),u(V,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(n)=>{if(n==="oauth"){C("anthropic-oauth");return}if(n==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function du(){let n=(oa(),Du(la)).ConsoleOAuthFlow;return u(g,{flexDirection:"column",gap:1,children:u(n,{mode:"login",onDone:()=>{let h=Tt("anthropic"),o={provider:"anthropic",name:h.name,baseUrl:h.baseUrl,model:h.model},l=ct(o,{makeActive:!0});if(!l){R("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${l.name}`;if(Q(),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}})})}function yu(){let n=Et;if(n!=="bedrock"&&n!=="vertex"&&n!=="foundry")return null;let h=fa[n],o=h[rt]??h[0],l=Wt[o.key]??"";function d(s){let _=s.trim();if(_.length===0){R(`${o.label} is required.`);return}let J={...Wt,[o.key]:_};if(kt(J),R(void 0),rt<h.length-1){Ot(rt+1);return}Ot(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:`${n==="bedrock"?"AWS Bedrock":n==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),u(i,{dimColor:!0,children:o.helpText}),y(i,{dimColor:!0,children:["Step ",rt+1," of ",h.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:l,onChange:(s)=>kt((_)=>({..._,[o.key]:s})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${Ct.ellipsis}`,columns:80,cursorOffset:Hc,onChangeCursorOffset:Tc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Cu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(i,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",u(i,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Rn,onChange:Ut,onSubmit:()=>Nt(f),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Wc,onChangeCursorOffset:Uc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function bu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:ht?"Edit provider profile":"Create provider profile"}),u(i,{dimColor:!0,children:ot.helpText}),y(i,{dimColor:!0,children:["Provider type:"," ",q==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(i,{dimColor:!0,children:["Step ",it+1," of ",at.length,": ",ot.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Dc,onChange:(n)=>T((h)=>({...h,[Ft]:n})),onSubmit:iu,focus:!0,showCursor:!0,placeholder:`${ot.placeholder}${Ct.ellipsis}`,mask:Ft==="apiKey"?"*":void 0,columns:80,cursorOffset:Ec,onChangeCursorOffset:B})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function wu(){let n=r.length>0,h=n;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Provider manager"}),u(i,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),fn&&u(i,{children:fn}),u(g,{flexDirection:"column",children:r.length===0?u(i,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((o)=>y(i,{dimColor:!0,children:["- ",o.name,": ",Xa(o,o.id===e)]},o.id))}),u(V,{options:_n,onChange:(o)=>{switch(R(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let l=await An({force:!0});if(pt(Xt()),Q(),l.errors.length>0)R(Ht(l));else M(Ht(l))})();break}case"activate":if(h)C("select-active");break;case"activate-project":if(h)C("select-active-project");break;case"clear-project-override":tu();break;case"edit":if(n)C("select-edit");break;case"delete":if(h)C("select-delete");break;case"logout-codex-oauth":{let l=sn();if(!l.success){R(l.warning??"Could not clear Codex OAuth credentials.");break}_t(!1),gt(void 0);let d=yn(nt(),st),s=null;if(d){let _=wn(d.id);if(!_.removed){R("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),Q();break}qn(),s=_.activeProfileId?mt():null}Q(),M(s?`Codex OAuth logged out. Warning: could not clear startup provider override (${s}).`:"Codex OAuth logged out.");break}default:Lt("Provider manager closed");break}},onCancel:()=>Lt("Provider manager closed"),defaultFocusValue:Pc,visibleOptionCount:_n.length})]})}function Mt(n,h,o){let l=r.map((d)=>{let s=[];if(d.id===e)s.push("active");if(O&&d.id===O)s.push("this project");if(S&&d.id===S)s.push("global default");let _=s.length>0?` (${s.join(", ")})`:"";return{value:d.id,label:`${d.name}${_}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(l.length===0)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(i,{dimColor:!0,children:h}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(V,{options:l,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,l.length))})]})}let G;switch(N){case"select-preset":G=mu();break;case"select-ollama-model":G=hu();break;case"select-openai-model":G=ru();break;case"select-atomic-chat-model":G=au();break;case"codex-oauth":G=u(qa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let o={provider:"openai",name:Ca,baseUrl:Sc,model:ba,apiKey:""},l=yn(nt(),st),d=l?At(l.id,o):ct(o,{makeActive:!0});if(!d){R("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let s=l&&e!==d.id?Rt(d.id):d;if(!s){R("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}h({profileId:d.id});let _=mt(),J=await vt(n);_t(!0),gt(d.id),Q();let $=[J,_?`could not clear startup provider override (${_})`:null].filter((F)=>Boolean(F)),K=Dt({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){c({action:"saved",activeProfileId:s.id,message:K});return}M(K),R(void 0),k()}});break;case"xai-oauth":G=u(Sa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let l=ct({provider:"openai",name:wa,baseUrl:gn,model:Oa,apiKey:""},{makeActive:!0});if(!l){R("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{h({profileId:l.id})}catch(s){R(s instanceof Error?s.message:String(s)),k();return}Q();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}});break;case"github-onboard":G=u(Tn,{onDone:(n)=>{if(n)M(n),R(void 0);Q(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:Q});break;case"anthropic-auth-choice":G=eu();break;case"anthropic-oauth":G=du();break;case"cloud-extras":G=yu();break;case"custom-headers":G=Cu();break;case"form":G=bu();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(n)=>{vc(n)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(n)=>{nu(n)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(n)=>{uu(n)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(n)=>{let h=r.find(($)=>$.id===n),o=h?.provider==="openai"&&h?.extras?.githubToken!==void 0,l=yn(r,st)?.id===n,d=Lc()?.profileId,s=h?.provider==="openai"&&h.baseUrl===gn&&!h.apiKey&&d===n,_=W()?.id===n,J=wn(n);if(!J.removed)R("Could not delete provider.");else{let $=[];if(l){let F=sn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else gt(void 0);qn()}if(o){let F=$c();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(s){let F=Nc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?mt():null;if(K)$.push(`could not clear startup provider override (${K})`);if(Q(),_){let F=W();if(F)wt(),a((U)=>({...U,mainLoopModel:bt(F.model),mainLoopModelForSession:null}));else wt(),a((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}M($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=wu();break}return y(Fc,{color:"permission",children:[u(Kc,{enabled:kn,onDismiss:(n)=>{pt(Xt()),jc(!1),Q();let h=W();if(n==="migrated"&&t==="first-run"&&h)c({action:"saved",activeProfileId:h.id,activeProviderName:h.name,activeProviderModel:h.model})}}),kn?null:Ic?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Loading providers..."}),u(i,{dimColor:!0,children:"Reading provider profiles from disk."})]}):xc?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Activating provider..."}),u(i,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var b,at,dn="\x00__manual__",ya,Ca="Codex OAuth",ba="codexplan",wa="xAI / Grok (OAuth)",Oa="grok-4",fa;var Fa=j(()=>{vu();Wn();na();Ln();ca();ra();ma();ic();on();ta();aa();Fn();Zn();ha();Bn();In();ia();ua();da();Kn();mc();kc();fc();ea();Qt();b=Gt(Vt(),1),at=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],ya=new Set(["anthropic","bedrock","vertex","foundry"]);fa={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
- export{un as vc,In as wc,Aa as xc,Sh as yc,Fa as zc};
@@ -1,2 +0,0 @@
1
- import{lra as p,mra as a}from"./cli-1.0.6-39ebgej3.mjs";import{xra as i}from"./cli-1.0.6-c3q3ytrc.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
- export{u as I8};
@@ -1,2 +0,0 @@
1
- import{OF as h,QF as I,Yn as g,Zn as k}from"./cli-1.0.6-gjtt9hjc.mjs";import{J0 as _,JY as S,e0 as s}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as c,r3 as m,s3 as T}from"./cli-1.0.6-w3xpmc0m.mjs";import{Qda as b,mea as P}from"./cli-1.0.6-3rnmt44c.mjs";import{vra as D}from"./cli-1.0.6-c3q3ytrc.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
- export{E as u};
@@ -1,6 +0,0 @@
1
- import{zra as j}from"./cli-1.0.6-c3q3ytrc.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
- `:`
3
- `)+z,H=D+1,D=q.indexOf(`
4
- `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
- `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
- export{o as s8,O1 as t8,e as u8};
@@ -1,4 +0,0 @@
1
- import{Sd as j,Td as w,Ud as _,Vd as D,Wd as L,Xd as A,Yd as O}from"./cli-1.0.6-ykfbjap8.mjs";import{CA as V,EA as C,GL as X,HL as I,mp as R,nR as h,pR as y,pp as b,zA as W}from"./cli-1.0.6-gjtt9hjc.mjs";import{A9 as Q,B9 as N,Kfa as U,Sfa as S}from"./cli-1.0.6-3rnmt44c.mjs";import{pia as K,sia as v}from"./cli-1.0.6-xx7yggj6.mjs";import{Bja as M,xja as x}from"./cli-1.0.6-d9ryhkjn.mjs";import{Sja as B,Zja as F}from"./cli-1.0.6-4r68vt91.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
2
- `);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
3
- `),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
4
- export{g as a,a as b,i as c,u as d,n as e,r as f};
@@ -1,18 +0,0 @@
1
- import{Ye as kZ,cf as XX}from"./cli-1.0.6-x6q5yg4p.mjs";import{gf as YZ,hf as gQ}from"./cli-1.0.6-jyqjk8ym.mjs";import{$H as ZZ,AD as FQ,AH as i0,Ak as dZ,An as HJ,BD as vX,Bk as tQ,Bn as DQ,Bs as VQ,Bx as zJ,CQ as iZ,Cx as RQ,Es as KX,Ex as AX,Ey as NZ,Fy as rQ,GA as IX,Gk as r0,HA as DX,IF as OQ,IQ as LZ,Ik as GZ,Iy as a0,Jk as UJ,Jy as CZ,LF as gX,Nr as aZ,OF as j0,On as GQ,PF as QX,Pn as EX,Qn as l,Qr as FX,Rn as A0,Rr as cJ,Sr as LQ,UH as pZ,Un as Z0,Vn as B0,XH as kJ,YH as JZ,Yn as n,ZH as OJ,Zn as I0,Zr as U0,_H as WJ,_J as $0,_j as VZ,aA as fJ,aI as QZ,bA as BX,bI as XZ,bK as FZ,dI as p0,dy as yZ,eI as _0,ey as iQ,fI as PJ,fw as NQ,hs as vQ,iA as mZ,jA as ZX,jr as MZ,lw as CX,mr as lQ,ms as d0,pE as HQ,ps as hQ,rk as u0,sE as hX,sk as pJ,uH as WZ,ux as WQ,vH as RZ,vx as bX,wH as s0,wl as qQ,xQ as lZ,yH as MJ,yl as MX,zH as F0}from"./cli-1.0.6-gjtt9hjc.mjs";import{IX as q0,JX as g0,tX as QJ,uX as nZ}from"./cli-1.0.6-2kk9k86d.mjs";import{J0 as f0,JY as R0,SY as l0,c0 as C,e0 as V,i0 as JJ,s0 as wZ}from"./cli-1.0.6-6zqt7f43.mjs";import{F2 as hJ,M2 as yX}from"./cli-1.0.6-4kafzdd3.mjs";import{p3 as o,q3 as f,r3 as W,s3 as $}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as o0}from"./cli-1.0.6-6zh1kz2j.mjs";import{E3 as mJ,O3 as MQ}from"./cli-1.0.6-n9zhw61e.mjs";import{Q3 as DJ,R3 as JX}from"./cli-1.0.6-aasgkcf0.mjs";import{T6 as NJ,U6 as wQ,d4 as tJ,e4 as IQ}from"./cli-1.0.6-1a002r86.mjs";import{A9 as t0,B9 as cZ,Kfa as eJ,Sfa as BQ,Taa as z0,Uaa as w0,Uba as TZ,Vba as uZ,Xba as eQ,_aa as m0,ica as Q0,qca as IJ,t$ as fQ,u$ as M0,w$ as CJ}from"./cli-1.0.6-3rnmt44c.mjs";import{_fa as y0,bga as b0,dga as oZ,fga as e0,gga as x0,nga as h0}from"./cli-1.0.6-9be2xem8.mjs";import{Sga as sJ,cha as AQ}from"./cli-1.0.6-61qpjst5.mjs";import{pia as t,sia as _J}from"./cli-1.0.6-xx7yggj6.mjs";import{gja as $Z,ija as RX,sja as D0,vja as dJ}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as v0,Zja as aJ}from"./cli-1.0.6-4r68vt91.mjs";import{vra as J0,wra as FJ,yra as $J,zra as a}from"./cli-1.0.6-c3q3ytrc.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
2
- `,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
3
- `,`## Approved Plan:
4
- `];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
5
- `;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
6
- `)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
7
- `),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
11
- You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
14
- `);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
15
- `);U0({value:`ultraplan: cannot launch remote session —
16
- ${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
17
- `,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=RQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await NQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=WQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();bX();nZ();AX();TJ();vX();CX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
18
- export{GJ as Pe,VJ as Qe,xX as Re,TJ as Se,LJ as Te,pQ as Ue,qZ as Ve,Sf as We,dX as Xe};
@@ -1,3 +0,0 @@
1
- import{ora as x,qra as y,ura as C}from"./cli-1.0.6-j5xkwr5w.mjs";import{xra as k}from"./cli-1.0.6-c3q3ytrc.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
- `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
- export{MF as j9};