@claudiolabs/claudin 1.0.4 → 1.0.6

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 (904) hide show
  1. package/dist/chunks/AgentTool-1.0.6-y5ddd6rm.mjs +1 -0
  2. package/dist/chunks/App-1.0.6-z0cfvsx2.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.6-bp76pand.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.6-kb0x64qd.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.6-jcaqgq16.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.6-0q6kspv2.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.6-jk4g19kb.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.6-s65h1n7v.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.6-6751p16k.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.6-cc0tqw44.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.6-eebwjw79.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.6-tyg11yr0.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.6-qgb1csqa.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.6-jgmn19nt.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.6-wxwzxegj.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.6-zpt6cx2n.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.6-4008ytyb.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.6-c76hkbn2.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.6-hg7cv046.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.6-2t7j6b2h.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.6-mtnwwa4g.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.6-6k63h37y.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.6-nwebb6gp.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.6-fkq6szhk.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.6-c6m3x448.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.6-44972q2z.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.6-g641zp1y.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.6-ae177xqc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.6-eyaavpv6.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.6-qbt1z3ca.mjs +1 -0
  31. package/dist/chunks/agents-1.0.6-sz53kang.mjs +3 -0
  32. package/dist/chunks/agents-1.0.6-takpvk31.mjs +110 -0
  33. package/dist/chunks/api-1.0.6-00s3w079.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.6-rh0sh1w1.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.6-7mq19whz.mjs +1 -0
  36. package/dist/chunks/auth-1.0.6-a3z8ybme.mjs +1 -0
  37. package/dist/chunks/auth-1.0.6-bzqx8ws6.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.6-m7pgefxn.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.6-yrfw3qnm.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.6-n12f3xrc.mjs +1 -0
  41. package/dist/chunks/branch-1.0.6-ezwk5k5a.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.6-b8v3yt2n.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.6-nj1zx2fk.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.6-qm5685ej.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.6-8sw3n3ad.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.6-2smhh25w.mjs +1 -0
  47. package/dist/chunks/btw-1.0.6-cyy1eqy9.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.6-jye799sc.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.6-x530c1sq.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.6-j9g3r3t3.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.6-wn9n7a2f.mjs +4 -0
  52. package/dist/chunks/caches-1.0.6-jb6nfzzy.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.6-nbedzb68.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.6-k0ksrf4g.mjs +1 -0
  55. package/dist/chunks/clear-1.0.6-mwca7g57.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.6-yxdbxzxq.mjs +1 -0
  57. package/dist/chunks/cli-1.0.6-0g5ayqzn.mjs +2 -0
  58. package/dist/chunks/cli-1.0.6-0htc91yb.mjs +2 -0
  59. package/dist/chunks/cli-1.0.6-0n0gtcr0.mjs +2 -0
  60. package/dist/chunks/cli-1.0.6-0ndt02kt.mjs +2 -0
  61. package/dist/chunks/cli-1.0.6-0rh0a1m1.mjs +3 -0
  62. package/dist/chunks/cli-1.0.6-0v6s0baw.mjs +2 -0
  63. package/dist/chunks/cli-1.0.6-0z6jg1dt.mjs +2 -0
  64. package/dist/chunks/cli-1.0.6-0zy5g0r0.mjs +3 -0
  65. package/dist/chunks/cli-1.0.6-1a002r86.mjs +16 -0
  66. package/dist/chunks/cli-1.0.6-1eet2296.mjs +2 -0
  67. package/dist/chunks/cli-1.0.6-1mxskrvk.mjs +2 -0
  68. package/dist/chunks/cli-1.0.6-1pmvs0sa.mjs +2 -0
  69. package/dist/chunks/cli-1.0.6-2216bkc9.mjs +18 -0
  70. package/dist/chunks/cli-1.0.6-256zr6e0.mjs +2 -0
  71. package/dist/chunks/cli-1.0.6-2kk9k86d.mjs +2 -0
  72. package/dist/chunks/cli-1.0.6-2ktan1c1.mjs +6 -0
  73. package/dist/chunks/cli-1.0.6-2q17d8ej.mjs +2 -0
  74. package/dist/chunks/cli-1.0.6-2taykcm3.mjs +2 -0
  75. package/dist/chunks/cli-1.0.6-2y4xs66t.mjs +2 -0
  76. package/dist/chunks/cli-1.0.6-34y44ns8.mjs +2 -0
  77. package/dist/chunks/cli-1.0.6-36s91tek.mjs +2 -0
  78. package/dist/chunks/cli-1.0.6-39ebgej3.mjs +9 -0
  79. package/dist/chunks/cli-1.0.6-3fqch3zx.mjs +2 -0
  80. package/dist/chunks/cli-1.0.6-3jkvpjb7.mjs +2 -0
  81. package/dist/chunks/cli-1.0.6-3rnmt44c.mjs +199 -0
  82. package/dist/chunks/cli-1.0.6-429sbhhn.mjs +2 -0
  83. package/dist/chunks/cli-1.0.6-43ajeraf.mjs +2 -0
  84. package/dist/chunks/cli-1.0.6-4jw1053r.mjs +2 -0
  85. package/dist/chunks/cli-1.0.6-4kafzdd3.mjs +2 -0
  86. package/dist/chunks/cli-1.0.6-4m8qf7d9.mjs +2 -0
  87. package/dist/chunks/cli-1.0.6-4pez6ae9.mjs +2 -0
  88. package/dist/chunks/cli-1.0.6-4pmn22p0.mjs +12 -0
  89. package/dist/chunks/cli-1.0.6-4r68vt91.mjs +4 -0
  90. package/dist/chunks/cli-1.0.6-4shdcvhj.mjs +2 -0
  91. package/dist/chunks/cli-1.0.6-4w9smp0a.mjs +4 -0
  92. package/dist/chunks/cli-1.0.6-52vkzgxe.mjs +2 -0
  93. package/dist/chunks/cli-1.0.6-53rqxxkh.mjs +2 -0
  94. package/dist/chunks/cli-1.0.6-55csqcct.mjs +2 -0
  95. package/dist/chunks/cli-1.0.6-5esxakc4.mjs +2 -0
  96. package/dist/chunks/cli-1.0.6-5fd5qjm7.mjs +2 -0
  97. package/dist/chunks/cli-1.0.6-5kmwcmd1.mjs +25 -0
  98. package/dist/chunks/cli-1.0.6-5qyfr732.mjs +17 -0
  99. package/dist/chunks/cli-1.0.6-5tx13t22.mjs +2 -0
  100. package/dist/chunks/cli-1.0.6-61qpjst5.mjs +2 -0
  101. package/dist/chunks/cli-1.0.6-620sz5j0.mjs +2 -0
  102. package/dist/chunks/cli-1.0.6-6a9gyk3y.mjs +12 -0
  103. package/dist/chunks/cli-1.0.6-6g4hkpj7.mjs +4 -0
  104. package/dist/chunks/cli-1.0.6-6h5a9gax.mjs +2 -0
  105. package/dist/chunks/cli-1.0.6-6hs6qqxv.mjs +2 -0
  106. package/dist/chunks/cli-1.0.6-6x2aqc5w.mjs +3 -0
  107. package/dist/chunks/cli-1.0.6-6zh1kz2j.mjs +2 -0
  108. package/dist/chunks/cli-1.0.6-6zqt7f43.mjs +59 -0
  109. package/dist/chunks/cli-1.0.6-74km5nc4.mjs +2 -0
  110. package/dist/chunks/cli-1.0.6-77j29wff.mjs +2 -0
  111. package/dist/chunks/cli-1.0.6-78gtt741.mjs +2 -0
  112. package/dist/chunks/cli-1.0.6-7dcdpthr.mjs +2 -0
  113. package/dist/chunks/cli-1.0.6-7ebqg37b.mjs +2 -0
  114. package/dist/chunks/cli-1.0.6-7qta6sp0.mjs +12 -0
  115. package/dist/chunks/cli-1.0.6-7rxsh83h.mjs +2 -0
  116. package/dist/chunks/cli-1.0.6-7sc6kks8.mjs +2 -0
  117. package/dist/chunks/cli-1.0.6-7wtv8nwt.mjs +2 -0
  118. package/dist/chunks/cli-1.0.6-80ts2fsy.mjs +2 -0
  119. package/dist/chunks/cli-1.0.6-831s2dg1.mjs +2 -0
  120. package/dist/chunks/cli-1.0.6-85rq113c.mjs +2 -0
  121. package/dist/chunks/cli-1.0.6-86chdw6e.mjs +2 -0
  122. package/dist/chunks/cli-1.0.6-8k0axbmg.mjs +3 -0
  123. package/dist/chunks/cli-1.0.6-8kamwh44.mjs +15 -0
  124. package/dist/chunks/cli-1.0.6-8svdc6qx.mjs +2 -0
  125. package/dist/chunks/cli-1.0.6-8tj1qeak.mjs +2 -0
  126. package/dist/chunks/cli-1.0.6-8v7ggr2e.mjs +6 -0
  127. package/dist/chunks/cli-1.0.6-8xtkd26m.mjs +2 -0
  128. package/dist/chunks/cli-1.0.6-8zcjrs1k.mjs +2 -0
  129. package/dist/chunks/cli-1.0.6-93qsrgeq.mjs +2 -0
  130. package/dist/chunks/cli-1.0.6-967pphy3.mjs +3 -0
  131. package/dist/chunks/cli-1.0.6-9be2xem8.mjs +4 -0
  132. package/dist/chunks/cli-1.0.6-9m9h23m8.mjs +2 -0
  133. package/dist/chunks/cli-1.0.6-9p90g9dg.mjs +7 -0
  134. package/dist/chunks/cli-1.0.6-9pj529zy.mjs +2 -0
  135. package/dist/chunks/cli-1.0.6-a9n4dj4c.mjs +2 -0
  136. package/dist/chunks/cli-1.0.6-a9z7f8hm.mjs +2 -0
  137. package/dist/chunks/cli-1.0.6-aasgkcf0.mjs +3 -0
  138. package/dist/chunks/cli-1.0.6-anxd75mm.mjs +2 -0
  139. package/dist/chunks/cli-1.0.6-apvttvwc.mjs +3 -0
  140. package/dist/chunks/cli-1.0.6-bghnbyek.mjs +2 -0
  141. package/dist/chunks/cli-1.0.6-bjz810zw.mjs +2 -0
  142. package/dist/chunks/cli-1.0.6-c3q3ytrc.mjs +2 -0
  143. package/dist/chunks/cli-1.0.6-cbv9sb7j.mjs +4 -0
  144. package/dist/chunks/cli-1.0.6-chfda1vf.mjs +2 -0
  145. package/dist/chunks/cli-1.0.6-ckyrvbe3.mjs +2 -0
  146. package/dist/chunks/cli-1.0.6-ct081pz5.mjs +2 -0
  147. package/dist/chunks/cli-1.0.6-d3y2kbdq.mjs +2 -0
  148. package/dist/chunks/cli-1.0.6-d4d0xfxp.mjs +5 -0
  149. package/dist/chunks/cli-1.0.6-d8gyb25m.mjs +15 -0
  150. package/dist/chunks/cli-1.0.6-d9ryhkjn.mjs +2 -0
  151. package/dist/chunks/cli-1.0.6-dk4qdtxs.mjs +2 -0
  152. package/dist/chunks/cli-1.0.6-e3cstemm.mjs +67 -0
  153. package/dist/chunks/cli-1.0.6-f4f6x83j.mjs +24 -0
  154. package/dist/chunks/cli-1.0.6-f80wk918.mjs +2 -0
  155. package/dist/chunks/cli-1.0.6-f82p2yzk.mjs +39 -0
  156. package/dist/chunks/cli-1.0.6-fggt191f.mjs +2 -0
  157. package/dist/chunks/cli-1.0.6-fj626dhh.mjs +2 -0
  158. package/dist/chunks/cli-1.0.6-g4v1k4vj.mjs +2 -0
  159. package/dist/chunks/cli-1.0.6-g9s2ts6j.mjs +2 -0
  160. package/dist/chunks/cli-1.0.6-gjtt9hjc.mjs +5471 -0
  161. package/dist/chunks/cli-1.0.6-hcq3hbzz.mjs +3 -0
  162. package/dist/chunks/cli-1.0.6-hjqc9sb8.mjs +2 -0
  163. package/dist/chunks/cli-1.0.6-hkaszwz8.mjs +2 -0
  164. package/dist/chunks/cli-1.0.6-hn9p22wz.mjs +2 -0
  165. package/dist/chunks/cli-1.0.6-hv2dry5y.mjs +2 -0
  166. package/dist/chunks/cli-1.0.6-j12sf764.mjs +2 -0
  167. package/dist/chunks/cli-1.0.6-j3b1c7v8.mjs +2 -0
  168. package/dist/chunks/cli-1.0.6-j5xkwr5w.mjs +17 -0
  169. package/dist/chunks/cli-1.0.6-j6sxw4gg.mjs +2 -0
  170. package/dist/chunks/cli-1.0.6-jfnnwqdv.mjs +4 -0
  171. package/dist/chunks/cli-1.0.6-jqa1byr3.mjs +2 -0
  172. package/dist/chunks/cli-1.0.6-jrrb4qbg.mjs +2 -0
  173. package/dist/chunks/cli-1.0.6-jwysg2r7.mjs +2 -0
  174. package/dist/chunks/cli-1.0.6-jyqjk8ym.mjs +2 -0
  175. package/dist/chunks/cli-1.0.6-kajb476n.mjs +2 -0
  176. package/dist/chunks/cli-1.0.6-kgver18c.mjs +2 -0
  177. package/dist/chunks/cli-1.0.6-khth3f6c.mjs +1 -0
  178. package/dist/chunks/cli-1.0.6-kx801kag.mjs +4 -0
  179. package/dist/chunks/cli-1.0.6-m747en7y.mjs +50 -0
  180. package/dist/chunks/cli-1.0.6-m96da95q.mjs +2 -0
  181. package/dist/chunks/cli-1.0.6-mapf4yym.mjs +2 -0
  182. package/dist/chunks/cli-1.0.6-mgb1vzp0.mjs +6 -0
  183. package/dist/chunks/cli-1.0.6-mgk6361j.mjs +4 -0
  184. package/dist/chunks/cli-1.0.6-mt3y4qmj.mjs +18 -0
  185. package/dist/chunks/cli-1.0.6-mwb4199d.mjs +3 -0
  186. package/dist/chunks/cli-1.0.6-mzqatpet.mjs +6 -0
  187. package/dist/chunks/cli-1.0.6-n3apbtd5.mjs +2 -0
  188. package/dist/chunks/cli-1.0.6-n6yd76q7.mjs +2 -0
  189. package/dist/chunks/cli-1.0.6-n9zhw61e.mjs +2 -0
  190. package/dist/chunks/cli-1.0.6-nb4f2zfq.mjs +2 -0
  191. package/dist/chunks/cli-1.0.6-nbxf3acf.mjs +2 -0
  192. package/dist/chunks/cli-1.0.6-njnv92az.mjs +2 -0
  193. package/dist/chunks/cli-1.0.6-nke3e3mv.mjs +2 -0
  194. package/dist/chunks/cli-1.0.6-nphrz836.mjs +34 -0
  195. package/dist/chunks/cli-1.0.6-npng9y9t.mjs +2 -0
  196. package/dist/chunks/cli-1.0.6-nyh2gact.mjs +133 -0
  197. package/dist/chunks/cli-1.0.6-p2syhbmk.mjs +24 -0
  198. package/dist/chunks/cli-1.0.6-pem0rvy0.mjs +2 -0
  199. package/dist/chunks/cli-1.0.6-pgc0vpjm.mjs +2 -0
  200. package/dist/chunks/cli-1.0.6-pgwdn1q5.mjs +2 -0
  201. package/dist/chunks/cli-1.0.6-px4bsvf6.mjs +2 -0
  202. package/dist/chunks/cli-1.0.6-q2yz709r.mjs +2 -0
  203. package/dist/chunks/cli-1.0.6-q79ba7ng.mjs +24 -0
  204. package/dist/chunks/cli-1.0.6-qnmkmcq4.mjs +2 -0
  205. package/dist/chunks/cli-1.0.6-qp2em1hm.mjs +2 -0
  206. package/dist/chunks/cli-1.0.6-qt11m0ak.mjs +2 -0
  207. package/dist/chunks/cli-1.0.6-r0n4r13f.mjs +18 -0
  208. package/dist/chunks/cli-1.0.6-r2508q6q.mjs +2 -0
  209. package/dist/chunks/cli-1.0.6-r6mzt599.mjs +3 -0
  210. package/dist/chunks/cli-1.0.6-rkbbyfm8.mjs +21 -0
  211. package/dist/chunks/cli-1.0.6-rm2htcb3.mjs +2 -0
  212. package/dist/chunks/cli-1.0.6-rp7q90tp.mjs +42 -0
  213. package/dist/chunks/cli-1.0.6-rsj4zt4n.mjs +2 -0
  214. package/dist/chunks/cli-1.0.6-rwke4nxh.mjs +3 -0
  215. package/dist/chunks/cli-1.0.6-rx5w7fx8.mjs +2 -0
  216. package/dist/chunks/cli-1.0.6-ry340c4k.mjs +133 -0
  217. package/dist/chunks/cli-1.0.6-s333n5zg.mjs +8 -0
  218. package/dist/chunks/cli-1.0.6-s8neseq2.mjs +4 -0
  219. package/dist/chunks/cli-1.0.6-shakqp36.mjs +2 -0
  220. package/dist/chunks/cli-1.0.6-snj1v3kf.mjs +2 -0
  221. package/dist/chunks/cli-1.0.6-sq2d4y85.mjs +2 -0
  222. package/dist/chunks/cli-1.0.6-sw7g4tgd.mjs +2 -0
  223. package/dist/chunks/cli-1.0.6-sws40pv9.mjs +2 -0
  224. package/dist/chunks/cli-1.0.6-t9r7rn29.mjs +2 -0
  225. package/dist/chunks/cli-1.0.6-tnt5gdq6.mjs +3 -0
  226. package/dist/chunks/cli-1.0.6-tw4tv5c3.mjs +2 -0
  227. package/dist/chunks/cli-1.0.6-v08hd9y9.mjs +2 -0
  228. package/dist/chunks/cli-1.0.6-va933r6s.mjs +2 -0
  229. package/dist/chunks/cli-1.0.6-vmwnjv3e.mjs +12 -0
  230. package/dist/chunks/cli-1.0.6-vpwqryae.mjs +45 -0
  231. package/dist/chunks/cli-1.0.6-vw4q8h8f.mjs +20 -0
  232. package/dist/chunks/cli-1.0.6-w3ewev2t.mjs +2 -0
  233. package/dist/chunks/cli-1.0.6-w3xpmc0m.mjs +2 -0
  234. package/dist/chunks/cli-1.0.6-wc676ed5.mjs +2 -0
  235. package/dist/chunks/cli-1.0.6-wgprm90p.mjs +2 -0
  236. package/dist/chunks/cli-1.0.6-wqqq5eh9.mjs +2 -0
  237. package/dist/chunks/cli-1.0.6-wvn01egx.mjs +2 -0
  238. package/dist/chunks/cli-1.0.6-x2m8wf3s.mjs +15 -0
  239. package/dist/chunks/cli-1.0.6-x6q5yg4p.mjs +2 -0
  240. package/dist/chunks/cli-1.0.6-xgntnn4t.mjs +2 -0
  241. package/dist/chunks/cli-1.0.6-xhmby05p.mjs +2 -0
  242. package/dist/chunks/cli-1.0.6-xk2ttvjs.mjs +2 -0
  243. package/dist/chunks/cli-1.0.6-xr79bf4b.mjs +58 -0
  244. package/dist/chunks/cli-1.0.6-xsbxh0be.mjs +2 -0
  245. package/dist/chunks/cli-1.0.6-xx7yggj6.mjs +2 -0
  246. package/dist/chunks/cli-1.0.6-y406hq26.mjs +2 -0
  247. package/dist/chunks/cli-1.0.6-y7y63cz5.mjs +25 -0
  248. package/dist/chunks/cli-1.0.6-y84yqp9s.mjs +9 -0
  249. package/dist/chunks/cli-1.0.6-yfs94tn1.mjs +2 -0
  250. package/dist/chunks/cli-1.0.6-ykfbjap8.mjs +4 -0
  251. package/dist/chunks/cli-1.0.6-ypbzk2re.mjs +2 -0
  252. package/dist/chunks/cli-1.0.6-ytd9vx4t.mjs +5 -0
  253. package/dist/chunks/cli-1.0.6-z06mmyvr.mjs +6 -0
  254. package/dist/chunks/cli-1.0.6-z1vvz38s.mjs +2 -0
  255. package/dist/chunks/cli-1.0.6-z6c3g4jy.mjs +2 -0
  256. package/dist/chunks/cli-1.0.6-zbbh8d20.mjs +2 -0
  257. package/dist/chunks/cli-1.0.6-zcnjjez0.mjs +3 -0
  258. package/dist/chunks/client-1.0.6-n3e1kq6z.mjs +1 -0
  259. package/dist/chunks/color-1.0.6-949mf4t9.mjs +1 -0
  260. package/dist/chunks/compact-1.0.6-pk763zz3.mjs +3 -0
  261. package/dist/chunks/config-1.0.6-bysc6622.mjs +1 -0
  262. package/dist/chunks/config-1.0.6-tgr3szh4.mjs +1 -0
  263. package/dist/chunks/constants-1.0.6-2ytt6s63.mjs +1 -0
  264. package/dist/chunks/context-1.0.6-c6a94j19.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.6-rs66dgc4.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.6-jg2wrz10.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.6-pqtevy6f.mjs +1 -0
  268. package/dist/chunks/copy-1.0.6-8q0c5rxd.mjs +9 -0
  269. package/dist/chunks/cost-1.0.6-99qahzn2.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.6-d9m8hpvm.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.6-bst3zcfv.mjs +1 -0
  272. package/dist/chunks/debug-1.0.6-sp18ckyq.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.6-264e52qb.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.6-8f041exs.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.6-5xtpjm37.mjs +1 -0
  276. package/dist/chunks/detection-1.0.6-rqwbmfnt.mjs +1 -0
  277. package/dist/chunks/diff-1.0.6-2tfee48c.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.6-8cd8a94q.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.6-2waz13fa.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.6-xz3zmash.mjs +1 -0
  281. package/dist/chunks/effort-1.0.6-sxass88w.mjs +10 -0
  282. package/dist/chunks/engine-1.0.6-m67y6tar.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.6-96am9ft2.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.6-rwrw23sx.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.6-eafb1t40.mjs +1 -0
  286. package/dist/chunks/environments-1.0.6-4rbtnxhr.mjs +1 -0
  287. package/dist/chunks/errors-1.0.6-tw2j2j5x.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.6-nme5mfvh.mjs +1 -0
  289. package/dist/chunks/exit-1.0.6-0nhvqr67.mjs +1 -0
  290. package/dist/chunks/explorer-1.0.6-9va9rmay.mjs +1 -0
  291. package/dist/chunks/export-1.0.6-42k6mg0d.mjs +2 -0
  292. package/dist/chunks/extra-usage-1.0.6-1ts30zcb.mjs +1 -0
  293. package/dist/chunks/extra-usage-noninteractive-1.0.6-ccj017df.mjs +1 -0
  294. package/dist/chunks/fast-1.0.6-hng6hkgq.mjs +1 -0
  295. package/dist/chunks/feedback-1.0.6-5xpevqgs.mjs +14 -0
  296. package/dist/chunks/firstPartyEventLogger-1.0.6-y50d073s.mjs +1 -0
  297. package/dist/chunks/git-1.0.6-vdebxyc7.mjs +1 -0
  298. package/dist/chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs +1 -0
  299. package/dist/chunks/goal-1.0.6-ragq8khs.mjs +4 -0
  300. package/dist/chunks/grove-1.0.6-94e2ae96.mjs +1 -0
  301. package/dist/chunks/growthbook-1.0.6-q95706fh.mjs +1 -0
  302. package/dist/chunks/headless-1.0.6-2jvpkaj6.mjs +2 -0
  303. package/dist/chunks/heapdump-1.0.6-6mqe5yjj.mjs +6 -0
  304. package/dist/chunks/help-1.0.6-3f56hs2r.mjs +1 -0
  305. package/dist/chunks/hookChains-1.0.6-bsdqvn2p.mjs +3 -0
  306. package/dist/chunks/hooks-1.0.6-2ymh39cf.mjs +79 -0
  307. package/dist/chunks/hooks-1.0.6-d56f9xmd.mjs +1 -0
  308. package/dist/chunks/ide-1.0.6-0hyhzmhe.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.0.6-xf9rg916.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.0.6-fz8n9ms8.mjs +1 -0
  311. package/dist/chunks/index-1.0.6-2bck3pt4.mjs +30 -0
  312. package/dist/chunks/index-1.0.6-3g0nsrkv.mjs +17 -0
  313. package/dist/chunks/index-1.0.6-3y7jxvhy.mjs +1 -0
  314. package/dist/chunks/index-1.0.6-478y2m6e.mjs +2 -0
  315. package/dist/chunks/index-1.0.6-4b1e7s1x.mjs +1 -0
  316. package/dist/chunks/index-1.0.6-58j0s67x.mjs +1 -0
  317. package/dist/chunks/index-1.0.6-5bgvzt3z.mjs +1 -0
  318. package/dist/chunks/index-1.0.6-5vphvdyy.mjs +1 -0
  319. package/dist/chunks/index-1.0.6-66q2r5rv.mjs +1 -0
  320. package/dist/chunks/index-1.0.6-7eqcsb13.mjs +9 -0
  321. package/dist/chunks/index-1.0.6-7mybgpvp.mjs +9 -0
  322. package/dist/chunks/index-1.0.6-9h6qgr9j.mjs +1 -0
  323. package/dist/chunks/index-1.0.6-a1je2hj0.mjs +5 -0
  324. package/dist/chunks/index-1.0.6-dzem1xyw.mjs +1 -0
  325. package/dist/chunks/index-1.0.6-h1kbzgbr.mjs +1 -0
  326. package/dist/chunks/index-1.0.6-jr8edr28.mjs +1 -0
  327. package/dist/chunks/index-1.0.6-kb626zfj.mjs +1 -0
  328. package/dist/chunks/index-1.0.6-scap8ztx.mjs +1 -0
  329. package/dist/chunks/index-1.0.6-sfn887je.mjs +1 -0
  330. package/dist/chunks/index-1.0.6-trrzmzqw.mjs +2 -0
  331. package/dist/chunks/index-1.0.6-vxgxky1j.mjs +1 -0
  332. package/dist/chunks/index-1.0.6-xw59t9mn.mjs +1 -0
  333. package/dist/chunks/index-1.0.6-zefh4dqr.mjs +1 -0
  334. package/dist/chunks/init-1.0.6-ceew1r40.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.0.6-q0q0cs0q.mjs +1 -0
  336. package/dist/chunks/ink-1.0.6-egfpysk6.mjs +1 -0
  337. package/dist/chunks/insights-1.0.6-2jg25rtq.mjs +870 -0
  338. package/dist/chunks/install-1.0.6-g2wbzhrp.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.0.6-wkch2k0a.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.0.6-t0yx4g99.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.0.6-rchtz4a0.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.0.6-y17rjqq1.mjs +1 -0
  343. package/dist/chunks/keybindings-1.0.6-fwfn3ph3.mjs +2 -0
  344. package/dist/chunks/knowledge-1.0.6-ec5ygwxq.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.0.6-v868fdtg.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.0.6-tqjw33x8.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.0.6-0ep8t6k1.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.6-qnt1qmw9.mjs +1 -0
  349. package/dist/chunks/log-1.0.6-k9cgc2n4.mjs +1 -0
  350. package/dist/chunks/main-1.0.6-nqg7gj8m.mjs +1 -0
  351. package/dist/chunks/managedEnv-1.0.6-5ew1phra.mjs +1 -0
  352. package/dist/chunks/mcp-1.0.6-3knsgg6d.mjs +17 -0
  353. package/dist/chunks/mcp-1.0.6-na22t28a.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.6-zkyhgas3.mjs +4 -0
  355. package/dist/chunks/mcpb-1.0.6-g3b1zqxb.mjs +1 -0
  356. package/dist/chunks/memory-1.0.6-atzzmaad.mjs +3 -0
  357. package/dist/chunks/model-1.0.6-57z0x37s.mjs +1 -0
  358. package/dist/chunks/model-1.0.6-843dkkfz.mjs +2 -0
  359. package/dist/chunks/node-1.0.6-vxbhm4hf.mjs +12 -0
  360. package/dist/chunks/oauth-1.0.6-cfc8agdv.mjs +1 -0
  361. package/dist/chunks/openaiShim-1.0.6-zsb0hbxr.mjs +14 -0
  362. package/dist/chunks/output-style-1.0.6-qbmq3rnf.mjs +1 -0
  363. package/dist/chunks/package-ZZWOLTXM-1.0.6-tkz3dr14.mjs +1 -0
  364. package/dist/chunks/parseConnectUrl-1.0.6-j4d5nn9v.mjs +1 -0
  365. package/dist/chunks/parser-1.0.6-v2vwmn92.mjs +1 -0
  366. package/dist/chunks/passes-1.0.6-n7gy2bm9.mjs +1 -0
  367. package/dist/chunks/permissions-1.0.6-p5k4trnb.mjs +3 -0
  368. package/dist/chunks/permissions-1.0.6-sdaqy7tv.mjs +1 -0
  369. package/dist/chunks/plan-1.0.6-dsq3488z.mjs +1 -0
  370. package/dist/chunks/plist-1.0.6-gpg0h2dj.mjs +1 -0
  371. package/dist/chunks/plugin-1.0.6-kj0t0xry.mjs +29 -0
  372. package/dist/chunks/pluginStartupCheck-1.0.6-tr3d9de5.mjs +1 -0
  373. package/dist/chunks/plugins-1.0.6-7kctwa0e.mjs +9 -0
  374. package/dist/chunks/preActionHook-1.0.6-qfq4qcnx.mjs +2 -0
  375. package/dist/chunks/print-1.0.6-9k27napw.mjs +57 -0
  376. package/dist/chunks/privacy-settings-1.0.6-pmkcm2k6.mjs +1 -0
  377. package/dist/chunks/process-1.0.6-yjr9qgm0.mjs +1 -0
  378. package/dist/chunks/processBashCommand-1.0.6-hjsegdwx.mjs +1 -0
  379. package/dist/chunks/processSlashCommand-1.0.6-qtste297.mjs +9 -0
  380. package/dist/chunks/prompt-1.0.6-3pz6ez1b.mjs +1 -0
  381. package/dist/chunks/prompt-1.0.6-gz6pqd71.mjs +1 -0
  382. package/dist/chunks/prompts-1.0.6-dds21kka.mjs +1 -0
  383. package/dist/chunks/protocolHandler-1.0.6-0ks875v7.mjs +13 -0
  384. package/dist/chunks/provider-1.0.6-9a1x17c8.mjs +2 -0
  385. package/dist/chunks/providerProfiles-1.0.6-rk717k78.mjs +1 -0
  386. package/dist/chunks/providerValidation-1.0.6-e3rpsc9f.mjs +6 -0
  387. package/dist/chunks/rate-limit-options-1.0.6-90etm2re.mjs +1 -0
  388. package/dist/chunks/registerSubcommands-1.0.6-nvtknss4.mjs +34 -0
  389. package/dist/chunks/registry-1.0.6-g4g3tqbv.mjs +1 -0
  390. package/dist/chunks/release-notes-1.0.6-1s9np58q.mjs +5 -0
  391. package/dist/chunks/reload-plugins-1.0.6-3dd0aedh.mjs +2 -0
  392. package/dist/chunks/remote-env-1.0.6-gyn1ez8r.mjs +1 -0
  393. package/dist/chunks/remoteBridgeCore-1.0.6-g9538ytn.mjs +1 -0
  394. package/dist/chunks/remoteSession-1.0.6-mta0cnmb.mjs +1 -0
  395. package/dist/chunks/rename-1.0.6-q495btpz.mjs +1 -0
  396. package/dist/chunks/replBridgeHandle-1.0.6-v46krtrw.mjs +1 -0
  397. package/dist/chunks/replLauncher-1.0.6-cc276asy.mjs +1 -0
  398. package/dist/chunks/resume-1.0.6-f7sxdm3s.mjs +2 -0
  399. package/dist/chunks/rewind-1.0.6-6stqe269.mjs +1 -0
  400. package/dist/chunks/rootOptions-1.0.6-j78xfj1y.mjs +1 -0
  401. package/dist/chunks/sandbox-adapter-1.0.6-901t5paa.mjs +1 -0
  402. package/dist/chunks/sandbox-toggle-1.0.6-vc10zpq8.mjs +1 -0
  403. package/dist/chunks/session-1.0.6-gjwdmj9d.mjs +2 -0
  404. package/dist/chunks/sessionDiscovery-1.0.6-r2ydd9s8.mjs +1 -0
  405. package/dist/chunks/sessionFileAccessHooks-1.0.6-9dvjq66r.mjs +1 -0
  406. package/dist/chunks/sessionStorage-1.0.6-6xf0298f.mjs +1 -0
  407. package/dist/chunks/settings-1.0.6-369qbnap.mjs +1 -0
  408. package/dist/chunks/setup-1.0.6-n8ec75ht.mjs +5 -0
  409. package/dist/chunks/sinks-1.0.6-h7v83r07.mjs +1 -0
  410. package/dist/chunks/skills-1.0.6-srbnw6db.mjs +1 -0
  411. package/dist/chunks/startupProfiler-1.0.6-bt2rwgd4.mjs +1 -0
  412. package/dist/chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs +1 -0
  413. package/dist/chunks/state-1.0.6-3m5c8zpc.mjs +1 -0
  414. package/dist/chunks/stats-1.0.6-df87fq0j.mjs +6 -0
  415. package/dist/chunks/status-1.0.6-0wmbys8d.mjs +1 -0
  416. package/dist/chunks/stickers-1.0.6-rn50x1rq.mjs +1 -0
  417. package/dist/chunks/subprocessEnv-1.0.6-1p34363n.mjs +1 -0
  418. package/dist/chunks/tasks-1.0.6-n9dy1nvm.mjs +1 -0
  419. package/dist/chunks/teamHelpers-1.0.6-sbqr7ebq.mjs +1 -0
  420. package/dist/chunks/teammateModeSnapshot-1.0.6-shsz85kr.mjs +1 -0
  421. package/dist/chunks/teleport-1.0.6-thxx543v.mjs +1 -0
  422. package/dist/chunks/terminalSetup-1.0.6-2abyvwnm.mjs +1 -0
  423. package/dist/chunks/theme-1.0.6-3q8wm8dd.mjs +1 -0
  424. package/dist/chunks/thinkback-1.0.6-sk8ykxzt.mjs +1 -0
  425. package/dist/chunks/thinkback-play-1.0.6-6202g18m.mjs +1 -0
  426. package/dist/chunks/toolPool-1.0.6-7f9ny265.mjs +1 -0
  427. package/dist/chunks/toolSearch-1.0.6-r927q3n6.mjs +1 -0
  428. package/dist/chunks/tools-1.0.6-49vtha15.mjs +1 -0
  429. package/dist/chunks/trustedDevice-1.0.6-12zgjreg.mjs +1 -0
  430. package/dist/chunks/turndown.cjs-1.0.6-m88jykaz.mjs +69 -0
  431. package/dist/chunks/types-1.0.6-qcw5ptd7.mjs +1 -0
  432. package/dist/chunks/ultrareviewCommand-1.0.6-34s8eh57.mjs +4 -0
  433. package/dist/chunks/update-1.0.6-10vds9r4.mjs +88 -0
  434. package/dist/chunks/upgrade-1.0.6-sdwjc086.mjs +1 -0
  435. package/dist/chunks/upload-1.0.6-tk83fcy2.mjs +7 -0
  436. package/dist/chunks/upstreamproxy-1.0.6-8d54f9fn.mjs +14 -0
  437. package/dist/chunks/url-handler-napi-1.0.6-ph7g08x7.mjs +1 -0
  438. package/dist/chunks/usage-1.0.6-3m17gzhd.mjs +1 -0
  439. package/dist/chunks/util-1.0.6-wh7h4a5g.mjs +1 -0
  440. package/dist/chunks/utils-1.0.6-5e17hs3n.mjs +1 -0
  441. package/dist/chunks/vim-1.0.6-4mjggnma.mjs +1 -0
  442. package/dist/chunks/watcher-1.0.6-6p1xkebx.mjs +1 -0
  443. package/dist/chunks/wiki-1.0.6-aysp0kpj.mjs +132 -0
  444. package/dist/chunks/workflows-1.0.6-rnjxwhns.mjs +1 -0
  445. package/dist/chunks/worktree-1.0.6-8nfcjmff.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs +1 -0
  447. package/dist/chunks/wrapper-1.0.6-crv0bjsj.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/install.cjs +6 -2
  450. package/package.json +10 -10
  451. package/dist/chunks/AgentTool-1.0.4-hb5yf83k.mjs +0 -1
  452. package/dist/chunks/App-1.0.4-ee5phav9.mjs +0 -1
  453. package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +0 -1
  454. package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +0 -1
  455. package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +0 -1
  456. package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +0 -1
  457. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +0 -1
  458. package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +0 -1
  459. package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +0 -7
  460. package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +0 -1
  461. package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +0 -6
  462. package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +0 -1
  463. package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +0 -1
  464. package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +0 -1
  465. package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +0 -1
  466. package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +0 -1
  467. package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +0 -1
  468. package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +0 -1
  469. package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +0 -1
  470. package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +0 -1
  471. package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +0 -1
  472. package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +0 -1
  473. package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +0 -1
  474. package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +0 -1
  475. package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +0 -9
  476. package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +0 -1
  477. package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +0 -1
  478. package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +0 -1
  479. package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +0 -1
  480. package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +0 -1
  481. package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +0 -110
  482. package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +0 -3
  483. package/dist/chunks/api-1.0.4-h4pnj11w.mjs +0 -1
  484. package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +0 -1
  485. package/dist/chunks/assistant-1.0.4-cezj138d.mjs +0 -1
  486. package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +0 -1
  487. package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +0 -1
  488. package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +0 -48
  489. package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +0 -1
  490. package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +0 -1
  491. package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +0 -4
  492. package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +0 -2
  493. package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +0 -1
  494. package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +0 -1
  495. package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +0 -88
  496. package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +0 -1
  497. package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +0 -1
  498. package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +0 -3
  499. package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +0 -1
  500. package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +0 -21
  501. package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +0 -4
  502. package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +0 -1
  503. package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +0 -1
  504. package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +0 -1
  505. package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +0 -1
  506. package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +0 -1
  507. package/dist/chunks/cli-1.0.4-08e3sn18.mjs +0 -2
  508. package/dist/chunks/cli-1.0.4-092qjm5g.mjs +0 -25
  509. package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +0 -2
  510. package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +0 -2
  511. package/dist/chunks/cli-1.0.4-0pqf799x.mjs +0 -2
  512. package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +0 -16
  513. package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +0 -67
  514. package/dist/chunks/cli-1.0.4-1bg07n68.mjs +0 -4
  515. package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +0 -2
  516. package/dist/chunks/cli-1.0.4-1j122zyj.mjs +0 -2
  517. package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +0 -20
  518. package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +0 -2
  519. package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +0 -2
  520. package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +0 -2
  521. package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +0 -50
  522. package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +0 -2
  523. package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +0 -2
  524. package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +0 -2
  525. package/dist/chunks/cli-1.0.4-2vrfse65.mjs +0 -2
  526. package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +0 -24
  527. package/dist/chunks/cli-1.0.4-3289hbrr.mjs +0 -6
  528. package/dist/chunks/cli-1.0.4-34jdejmp.mjs +0 -2
  529. package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +0 -2
  530. package/dist/chunks/cli-1.0.4-3b0061a4.mjs +0 -2
  531. package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +0 -3
  532. package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +0 -3
  533. package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +0 -2
  534. package/dist/chunks/cli-1.0.4-4sfp975c.mjs +0 -2
  535. package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +0 -24
  536. package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +0 -2
  537. package/dist/chunks/cli-1.0.4-5663sqrh.mjs +0 -2
  538. package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +0 -2
  539. package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +0 -2
  540. package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +0 -2
  541. package/dist/chunks/cli-1.0.4-618n4yb3.mjs +0 -2
  542. package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +0 -2
  543. package/dist/chunks/cli-1.0.4-75pszwff.mjs +0 -12
  544. package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +0 -2
  545. package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +0 -39
  546. package/dist/chunks/cli-1.0.4-7jd24agk.mjs +0 -2
  547. package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +0 -4
  548. package/dist/chunks/cli-1.0.4-80hrkybp.mjs +0 -2
  549. package/dist/chunks/cli-1.0.4-85cb91sn.mjs +0 -4
  550. package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +0 -2
  551. package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +0 -3
  552. package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +0 -8
  553. package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +0 -2
  554. package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +0 -2
  555. package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +0 -2
  556. package/dist/chunks/cli-1.0.4-95nw81kz.mjs +0 -2
  557. package/dist/chunks/cli-1.0.4-982xabhy.mjs +0 -2
  558. package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +0 -2
  559. package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +0 -59
  560. package/dist/chunks/cli-1.0.4-9re52te8.mjs +0 -2
  561. package/dist/chunks/cli-1.0.4-9w88pg39.mjs +0 -12
  562. package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +0 -2
  563. package/dist/chunks/cli-1.0.4-a14svdr8.mjs +0 -1
  564. package/dist/chunks/cli-1.0.4-avmcefxg.mjs +0 -10
  565. package/dist/chunks/cli-1.0.4-azntz5z2.mjs +0 -2
  566. package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +0 -133
  567. package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +0 -2
  568. package/dist/chunks/cli-1.0.4-bneycyws.mjs +0 -2
  569. package/dist/chunks/cli-1.0.4-bnsdazas.mjs +0 -3
  570. package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +0 -2
  571. package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +0 -2
  572. package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +0 -58
  573. package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +0 -2
  574. package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +0 -2
  575. package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +0 -2
  576. package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +0 -2
  577. package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +0 -2
  578. package/dist/chunks/cli-1.0.4-e26gm32b.mjs +0 -2
  579. package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +0 -2
  580. package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +0 -2
  581. package/dist/chunks/cli-1.0.4-e86sgy00.mjs +0 -3
  582. package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +0 -2
  583. package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +0 -5
  584. package/dist/chunks/cli-1.0.4-ef5asahs.mjs +0 -4
  585. package/dist/chunks/cli-1.0.4-emp66cxw.mjs +0 -2
  586. package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +0 -6
  587. package/dist/chunks/cli-1.0.4-ex22h376.mjs +0 -2
  588. package/dist/chunks/cli-1.0.4-f0t68sye.mjs +0 -2
  589. package/dist/chunks/cli-1.0.4-f20q38cw.mjs +0 -2
  590. package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +0 -15
  591. package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +0 -2
  592. package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +0 -2
  593. package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +0 -2
  594. package/dist/chunks/cli-1.0.4-f965h6gd.mjs +0 -7
  595. package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +0 -2
  596. package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +0 -3
  597. package/dist/chunks/cli-1.0.4-fcswm1md.mjs +0 -2
  598. package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +0 -2
  599. package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +0 -2
  600. package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +0 -2
  601. package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +0 -2
  602. package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +0 -2
  603. package/dist/chunks/cli-1.0.4-genhzh1b.mjs +0 -2
  604. package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +0 -5
  605. package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +0 -2
  606. package/dist/chunks/cli-1.0.4-ghzbww61.mjs +0 -34
  607. package/dist/chunks/cli-1.0.4-gqc15qng.mjs +0 -6
  608. package/dist/chunks/cli-1.0.4-gssg75hx.mjs +0 -2
  609. package/dist/chunks/cli-1.0.4-gyjecspm.mjs +0 -2
  610. package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +0 -2
  611. package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +0 -2
  612. package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +0 -2
  613. package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +0 -2
  614. package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +0 -2
  615. package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +0 -3
  616. package/dist/chunks/cli-1.0.4-hwje79ka.mjs +0 -2
  617. package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +0 -3
  618. package/dist/chunks/cli-1.0.4-j17mhs88.mjs +0 -18
  619. package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +0 -5471
  620. package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +0 -2
  621. package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +0 -2
  622. package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +0 -2
  623. package/dist/chunks/cli-1.0.4-k20sr786.mjs +0 -3
  624. package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +0 -2
  625. package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +0 -3
  626. package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +0 -2
  627. package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +0 -2
  628. package/dist/chunks/cli-1.0.4-m240wvtt.mjs +0 -9
  629. package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +0 -2
  630. package/dist/chunks/cli-1.0.4-ndy339bx.mjs +0 -2
  631. package/dist/chunks/cli-1.0.4-nfpfve45.mjs +0 -2
  632. package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +0 -2
  633. package/dist/chunks/cli-1.0.4-nws4fp34.mjs +0 -2
  634. package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +0 -18
  635. package/dist/chunks/cli-1.0.4-p618f4eb.mjs +0 -2
  636. package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +0 -18
  637. package/dist/chunks/cli-1.0.4-pxqvx117.mjs +0 -3
  638. package/dist/chunks/cli-1.0.4-q00a51mt.mjs +0 -4
  639. package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +0 -199
  640. package/dist/chunks/cli-1.0.4-q97cke3f.mjs +0 -2
  641. package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +0 -5
  642. package/dist/chunks/cli-1.0.4-qka1j546.mjs +0 -4
  643. package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +0 -2
  644. package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +0 -25
  645. package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +0 -17
  646. package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +0 -42
  647. package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +0 -2
  648. package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +0 -2
  649. package/dist/chunks/cli-1.0.4-rhq4w2pj.mjs +0 -2
  650. package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +0 -12
  651. package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +0 -2
  652. package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +0 -12
  653. package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +0 -2
  654. package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +0 -24
  655. package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +0 -2
  656. package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +0 -4
  657. package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +0 -2
  658. package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +0 -2
  659. package/dist/chunks/cli-1.0.4-s6m720bj.mjs +0 -2
  660. package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +0 -2
  661. package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +0 -2
  662. package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +0 -2
  663. package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +0 -2
  664. package/dist/chunks/cli-1.0.4-t915kvpv.mjs +0 -2
  665. package/dist/chunks/cli-1.0.4-th3f10e2.mjs +0 -2
  666. package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +0 -2
  667. package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +0 -3
  668. package/dist/chunks/cli-1.0.4-v2973j5k.mjs +0 -15
  669. package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +0 -2
  670. package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +0 -4
  671. package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +0 -2
  672. package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +0 -3
  673. package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +0 -6
  674. package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +0 -15
  675. package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +0 -2
  676. package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +0 -4
  677. package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +0 -2
  678. package/dist/chunks/cli-1.0.4-wb91dheq.mjs +0 -2
  679. package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +0 -2
  680. package/dist/chunks/cli-1.0.4-wryebn9y.mjs +0 -2
  681. package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +0 -2
  682. package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +0 -2
  683. package/dist/chunks/cli-1.0.4-xcegbj23.mjs +0 -21
  684. package/dist/chunks/cli-1.0.4-xjef6vra.mjs +0 -2
  685. package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +0 -45
  686. package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +0 -2
  687. package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +0 -2
  688. package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +0 -2
  689. package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +0 -2
  690. package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +0 -2
  691. package/dist/chunks/cli-1.0.4-ya22eazw.mjs +0 -2
  692. package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +0 -2
  693. package/dist/chunks/cli-1.0.4-ygedgw05.mjs +0 -2
  694. package/dist/chunks/cli-1.0.4-yp6300fv.mjs +0 -2
  695. package/dist/chunks/cli-1.0.4-yq119gwk.mjs +0 -2
  696. package/dist/chunks/cli-1.0.4-yq19e16e.mjs +0 -4
  697. package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +0 -2
  698. package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +0 -17
  699. package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +0 -2
  700. package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +0 -133
  701. package/dist/chunks/cli-1.0.4-z5zmw573.mjs +0 -2
  702. package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +0 -2
  703. package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +0 -2
  704. package/dist/chunks/cli-1.0.4-znj63zs7.mjs +0 -2
  705. package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +0 -2
  706. package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +0 -2
  707. package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +0 -2
  708. package/dist/chunks/client-1.0.4-tejrj09r.mjs +0 -1
  709. package/dist/chunks/color-1.0.4-148b97be.mjs +0 -1
  710. package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +0 -3
  711. package/dist/chunks/config-1.0.4-a5enjc0b.mjs +0 -1
  712. package/dist/chunks/config-1.0.4-q23nqw9d.mjs +0 -1
  713. package/dist/chunks/constants-1.0.4-635bzfez.mjs +0 -1
  714. package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +0 -1
  715. package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +0 -1
  716. package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +0 -1
  717. package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +0 -1
  718. package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +0 -9
  719. package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +0 -1
  720. package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +0 -1
  721. package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +0 -1
  722. package/dist/chunks/debug-1.0.4-dym46dbc.mjs +0 -1
  723. package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +0 -1446
  724. package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +0 -1
  725. package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +0 -1
  726. package/dist/chunks/detection-1.0.4-02gwawhp.mjs +0 -1
  727. package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +0 -1
  728. package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +0 -1
  729. package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +0 -1
  730. package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +0 -1
  731. package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +0 -10
  732. package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +0 -1
  733. package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +0 -1
  734. package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +0 -1
  735. package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +0 -1
  736. package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +0 -1
  737. package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +0 -1
  738. package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +0 -1
  739. package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +0 -1
  740. package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +0 -1
  741. package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +0 -2
  742. package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +0 -1
  743. package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +0 -1
  744. package/dist/chunks/fast-1.0.4-qb539j3d.mjs +0 -1
  745. package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +0 -14
  746. package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +0 -1
  747. package/dist/chunks/git-1.0.4-ag4cdf47.mjs +0 -1
  748. package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +0 -1
  749. package/dist/chunks/goal-1.0.4-w76hde3j.mjs +0 -4
  750. package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +0 -1
  751. package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +0 -1
  752. package/dist/chunks/headless-1.0.4-4htsajcx.mjs +0 -2
  753. package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +0 -6
  754. package/dist/chunks/help-1.0.4-mb80yzdd.mjs +0 -1
  755. package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +0 -3
  756. package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +0 -1
  757. package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +0 -79
  758. package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +0 -3
  759. package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +0 -1
  760. package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +0 -1
  761. package/dist/chunks/index-1.0.4-0ds0yar8.mjs +0 -2
  762. package/dist/chunks/index-1.0.4-0swpjsxv.mjs +0 -1
  763. package/dist/chunks/index-1.0.4-1adr1cev.mjs +0 -1
  764. package/dist/chunks/index-1.0.4-2cqwak8f.mjs +0 -1
  765. package/dist/chunks/index-1.0.4-45r2p2fr.mjs +0 -1
  766. package/dist/chunks/index-1.0.4-578fqjbt.mjs +0 -5
  767. package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +0 -1
  768. package/dist/chunks/index-1.0.4-bq00jtej.mjs +0 -1
  769. package/dist/chunks/index-1.0.4-d3963jrf.mjs +0 -1
  770. package/dist/chunks/index-1.0.4-db6y9w6p.mjs +0 -9
  771. package/dist/chunks/index-1.0.4-eqa6324a.mjs +0 -30
  772. package/dist/chunks/index-1.0.4-fgtct7wa.mjs +0 -1
  773. package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +0 -1
  774. package/dist/chunks/index-1.0.4-kkxqenx5.mjs +0 -17
  775. package/dist/chunks/index-1.0.4-m48vcxbj.mjs +0 -2
  776. package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +0 -9
  777. package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +0 -1
  778. package/dist/chunks/index-1.0.4-qj0raz1t.mjs +0 -1
  779. package/dist/chunks/index-1.0.4-rb8h15jh.mjs +0 -1
  780. package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +0 -1
  781. package/dist/chunks/index-1.0.4-xadhy3m9.mjs +0 -1
  782. package/dist/chunks/index-1.0.4-ynqjejnh.mjs +0 -1
  783. package/dist/chunks/index-1.0.4-zw32d5rq.mjs +0 -1
  784. package/dist/chunks/init-1.0.4-tdv5z99g.mjs +0 -1
  785. package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +0 -1
  786. package/dist/chunks/ink-1.0.4-w371tr8m.mjs +0 -1
  787. package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +0 -870
  788. package/dist/chunks/install-1.0.4-k86wrfgy.mjs +0 -1
  789. package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +0 -149
  790. package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +0 -1
  791. package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +0 -1
  792. package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +0 -1
  793. package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +0 -2
  794. package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +0 -2
  795. package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +0 -1
  796. package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +0 -1
  797. package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +0 -1
  798. package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +0 -1
  799. package/dist/chunks/log-1.0.4-q4mkknks.mjs +0 -1
  800. package/dist/chunks/main-1.0.4-fpq69x53.mjs +0 -1
  801. package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +0 -1
  802. package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +0 -1
  803. package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +0 -17
  804. package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +0 -4
  805. package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +0 -1
  806. package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +0 -3
  807. package/dist/chunks/model-1.0.4-7q33dte0.mjs +0 -2
  808. package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +0 -1
  809. package/dist/chunks/node-1.0.4-t61fwtvv.mjs +0 -12
  810. package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +0 -1
  811. package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +0 -14
  812. package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +0 -1
  813. package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +0 -1
  814. package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +0 -1
  815. package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +0 -1
  816. package/dist/chunks/passes-1.0.4-kvwashgz.mjs +0 -1
  817. package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +0 -3
  818. package/dist/chunks/permissions-1.0.4-pmabr578.mjs +0 -1
  819. package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +0 -1
  820. package/dist/chunks/plist-1.0.4-de9w52d2.mjs +0 -1
  821. package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +0 -29
  822. package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +0 -1
  823. package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +0 -9
  824. package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +0 -2
  825. package/dist/chunks/print-1.0.4-zg0pxx71.mjs +0 -57
  826. package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +0 -1
  827. package/dist/chunks/process-1.0.4-trh5g80m.mjs +0 -1
  828. package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +0 -1
  829. package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +0 -9
  830. package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +0 -1
  831. package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +0 -1
  832. package/dist/chunks/prompts-1.0.4-an41ccab.mjs +0 -1
  833. package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +0 -13
  834. package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +0 -2
  835. package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +0 -1
  836. package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +0 -6
  837. package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +0 -1
  838. package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +0 -34
  839. package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +0 -1
  840. package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +0 -5
  841. package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +0 -2
  842. package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +0 -1
  843. package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +0 -1
  844. package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +0 -1
  845. package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +0 -1
  846. package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +0 -1
  847. package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +0 -1
  848. package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +0 -2
  849. package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +0 -1
  850. package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +0 -1
  851. package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +0 -1
  852. package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +0 -1
  853. package/dist/chunks/session-1.0.4-4fb52nd1.mjs +0 -2
  854. package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +0 -1
  855. package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +0 -1
  856. package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +0 -1
  857. package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +0 -1
  858. package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +0 -5
  859. package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +0 -1
  860. package/dist/chunks/skills-1.0.4-www28gn6.mjs +0 -1
  861. package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +0 -1
  862. package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +0 -1
  863. package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +0 -1
  864. package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +0 -6
  865. package/dist/chunks/status-1.0.4-zymfx8mp.mjs +0 -1
  866. package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +0 -1
  867. package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +0 -1
  868. package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +0 -1
  869. package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +0 -1
  870. package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +0 -1
  871. package/dist/chunks/teleport-1.0.4-x93h61td.mjs +0 -1
  872. package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +0 -1
  873. package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +0 -1
  874. package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +0 -1
  875. package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +0 -1
  876. package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +0 -1
  877. package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +0 -1
  878. package/dist/chunks/tools-1.0.4-606qnn5t.mjs +0 -1
  879. package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +0 -1
  880. package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +0 -69
  881. package/dist/chunks/types-1.0.4-1kpkjthf.mjs +0 -1
  882. package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +0 -4
  883. package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +0 -86
  884. package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +0 -1
  885. package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +0 -7
  886. package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +0 -14
  887. package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +0 -1
  888. package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +0 -1
  889. package/dist/chunks/util-1.0.4-3cjy2f82.mjs +0 -1
  890. package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +0 -1
  891. package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +0 -1
  892. package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +0 -1
  893. package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +0 -132
  894. package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +0 -1
  895. package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +0 -1
  896. package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +0 -1
  897. package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +0 -7
  898. /package/dist/chunks/{cli-1.0.4-sx5bf3zy.mjs → cli-1.0.6-eqj39b7c.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.0.4-a2brsa8c.mjs → cli-1.0.6-esf6g2hg.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.0.4-1eb2472e.mjs → cli-1.0.6-hg7rd6z8.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.0.4-jrvveh6t.mjs → cli-1.0.6-m86933bc.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.0.4-rh4j3s0t.mjs → cli-1.0.6-ntwqb73s.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.0.4-zjh4h68p.mjs → cli-1.0.6-tefnf8bf.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.4-fyekx70j.mjs → cli-1.0.6-xbk4dr3g.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{E as D}from"./cli-1.0.4-jrvveh6t.mjs";import{O as x}from"./cli-1.0.4-8gkb1zg5.mjs";import{$a as A}from"./cli-1.0.4-ef5asahs.mjs";import{ab as L}from"./cli-1.0.4-09fgpcwb.mjs";import{Ho as k,Io as U,Lo as F,Mo as p,tT as b,uT as u}from"./cli-1.0.4-jvp0mp87.mjs";import{eU as O,hU as c}from"./cli-1.0.4-4m4pwdge.mjs";import{G3 as Y,L3 as I,P5 as w,Q5 as M,Q6 as E,R6 as G,v7 as m}from"./cli-1.0.4-0vwtrvvh.mjs";import{Kca as X,Lca as B,Tea as $,Wea as z}from"./cli-1.0.4-q0rnwhn4.mjs";import{$ga as y,_ga as _}from"./cli-1.0.4-8x3m3esm.mjs";import{Qia as K,Tia as T}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as V,vja as S}from"./cli-1.0.4-7pxrd0w5.mjs";import{Bja as J,Dja as N,Lja as v}from"./cli-1.0.4-ex22h376.mjs";import{gqa as W,yqa as j}from"./cli-1.0.4-j17mhs88.mjs";v();c();u();z();m();p();y();j();T();S();I();B();var C=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let R of P.server.remotes??[]){let Q=h(R.url);if(Q)H.add(Q)}C=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}M();U();function Xq(){if(J(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||N())return;O(),b(),x(),A();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))G();if(q==="vertex"&&!J(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))E();if(F(_(),AbortSignal.timeout(3000),[]),D(),Z(),w(),k.initialize(),!N())L.initialize()}
2
- export{Xq as D};
@@ -1,2 +0,0 @@
1
- import{Ah as fq,xh as e}from"./cli-1.0.4-fbhgecgx.mjs";import{Bh as t,Dh as Hq}from"./cli-1.0.4-hrw2yb74.mjs";import{EF as r,FF as kq,OF as n,PF as Mq,Qn as S,Rn as Nq,Sn as g,Tn as Vq,Un as $,Vn as Wq,Yn as i,Zn as Yq,kO as o,lO as s,mO as Oq}from"./cli-1.0.4-jvp0mp87.mjs";import{GX as u,IX as Zq}from"./cli-1.0.4-c9sh44ne.mjs";import{I0 as Xq,IY as Qq,b0 as M,d0 as F,v0 as c,w0 as Uq}from"./cli-1.0.4-9ra8j4rt.mjs";import{O2 as L,P2 as R,Q2 as l}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as Lq}from"./cli-1.0.4-5e2v63sy.mjs";import{Y8 as d,Z8 as Jq}from"./cli-1.0.4-q0rnwhn4.mjs";import{Tqa as a,Xqa as Gq}from"./cli-1.0.4-rhq4w2pj.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${d.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let m;if(q[6]===Symbol.for("react.memo_cache_sentinel"))m=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=m;else m=q[6];let zq=m,_;if(q[7]!==X||q[8]!==N)_=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=_;else _=q[9];let K=_,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=a(Qq(),1),H=a(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
2
- export{lq as vh,Fq as wh};
@@ -1,2 +0,0 @@
1
- import{Ji as H,Li as C}from"./cli-1.0.4-e26gm32b.mjs";import{Mi as k,Ni as y}from"./cli-1.0.4-xwwr77p3.mjs";import{d3 as X,f3 as Y,k3 as R}from"./cli-1.0.4-f8dd3sqs.mjs";import{m3 as G,n3 as m}from"./cli-1.0.4-vnf5ysx9.mjs";import{Q3 as w,R3 as E,g7 as B,v7 as f}from"./cli-1.0.4-0vwtrvvh.mjs";import{Kda as x,gfa as Q,mda as S,ofa as D,pda as j}from"./cli-1.0.4-q0rnwhn4.mjs";import{Lha as V,Mha as b}from"./cli-1.0.4-hfn9tnb6.mjs";import{gqa as W,yqa as I}from"./cli-1.0.4-j17mhs88.mjs";import{Xqa as Z}from"./cli-1.0.4-rhq4w2pj.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
2
- export{i as Gi,A as Hi};
@@ -1,3 +0,0 @@
1
- import{Yfa as L,aga as O}from"./cli-1.0.4-zcjfmcay.mjs";import{Xqa as N}from"./cli-1.0.4-rhq4w2pj.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
2
- `,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
3
- export{S as J0,J as K0,T as L0,U as M0,V as N0,W as O0,Q as P0};
@@ -1,2 +0,0 @@
1
- import{fd as z,gd as K}from"./cli-1.0.4-80hrkybp.mjs";import{$J as w,bK as J}from"./cli-1.0.4-jvp0mp87.mjs";import{R2 as H}from"./cli-1.0.4-5e2v63sy.mjs";import{Tqa as E,Xqa as G}from"./cli-1.0.4-rhq4w2pj.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
- export{V as bd,N as cd};
@@ -1,3 +0,0 @@
1
- import{Hg as d,Ig as Vq}from"./cli-1.0.4-61v9tj7g.mjs";import{VS as Oq,nR as a,pR as yq,tS as l}from"./cli-1.0.4-jvp0mp87.mjs";import{I0 as Gq,IY as Zq,b0 as T,d0 as R,x0 as $}from"./cli-1.0.4-9ra8j4rt.mjs";import{A1 as t,C1 as v,F1 as e}from"./cli-1.0.4-vckzcaj2.mjs";import{O2 as P,P2 as N,Q2 as S}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as Yq}from"./cli-1.0.4-5e2v63sy.mjs";import{m3 as u,n3 as Aq}from"./cli-1.0.4-vnf5ysx9.mjs";import{X_ as j,n9 as G,p9 as o,s$ as s}from"./cli-1.0.4-q0rnwhn4.mjs";import{$ga as r,_ga as w}from"./cli-1.0.4-8x3m3esm.mjs";import{Qia as L,Tia as n}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as c,vja as Xq}from"./cli-1.0.4-7pxrd0w5.mjs";import{mpa as i,pla as f}from"./cli-1.0.4-n5mydt2f.mjs";import{Tqa as I,Xqa as h}from"./cli-1.0.4-rhq4w2pj.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
- Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
3
- export{mq as Fg,Bq as Gg};
@@ -1,2 +0,0 @@
1
- import{Qia as Q,Tia as $}from"./cli-1.0.4-vpcfce7x.mjs";import{qja as K,vja as Z}from"./cli-1.0.4-7pxrd0w5.mjs";import{Lja as Y,yja as J}from"./cli-1.0.4-ex22h376.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as aa,w as ba,y as ca};
@@ -1,2 +0,0 @@
1
- import{Ei as a,Fi as l}from"./cli-1.0.4-znj63zs7.mjs";import{Gi as m,Hi as c}from"./cli-1.0.4-k16cwcs0.mjs";import{O2 as e,Q2 as n}from"./cli-1.0.4-x8jnn75c.mjs";import{Xqa as s}from"./cli-1.0.4-rhq4w2pj.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
2
- export{f as Ci,g as Di};
@@ -1,9 +0,0 @@
1
- import{Oqa as V_,Pqa as su,Rqa as K_,Sqa as f_}from"./cli-1.0.4-r4h3tk3k.mjs";import{Vqa as H,Yqa as $_}from"./cli-1.0.4-rhq4w2pj.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
- versions published after the first week of January 2027
3
- will require node >=${E}. You are running node ${_}.
4
-
5
- To continue receiving updates to AWS services, bug fixes,
6
- and security updates please upgrade to node >=${E}.
7
-
8
- More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
9
- export{W_ as Hqa,D_ as Iqa,yu as Jqa,ou as Kqa};
@@ -1,2 +0,0 @@
1
- import{Apa as e8,Bpa as R5,Cpa as _8,Dpa as E,Epa as h8,Fpa as P,Gpa as x1,Hpa as d,Ipa as xQ,Jpa as r,Kpa as UQ,Lpa as T5,Mpa as UY,npa as _Q,opa as YJ,ppa as v,qpa as P1,rpa as Y5,spa as w8,tpa as q,upa as y,vpa as S,wpa as kQ,xpa as L,ypa as a,zpa as n5}from"./cli-1.0.4-z5zmw573.mjs";import{Wqa as aQ,Xqa as X}from"./cli-1.0.4-rhq4w2pj.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();DQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=q.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=S?S.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function qJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=qJ});var DJ,w;var M=X(()=>{DJ=Array.isArray,w=DJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{mQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();m();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();m();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,SJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?q.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,SJ=yJ||cQ,A=SJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?mJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var mJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();m();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||D8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var q8,D8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();q8=Object.prototype,D8=q8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{_8();J1();q5=k8});function E8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var S1=X(()=>{x5();F5();D5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var m1;var O5=X(()=>{yQ();bQ();S1();m1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=m1(Q),B=U.length,K=m1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var S8,U1;var L5=X(()=>{x1();y();S8=P(q,"DataView"),U1=S8});var m8,K1;var f5=X(()=>{x1();y();m8=P(q,"Promise"),K1=m8});var A8,G1;var P5=X(()=>{x1();y();A8=P(q,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(q,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,S5;var m5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();S1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();m();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var q1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function qY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var D1;var b1=X(()=>{M();q1();s5();X$();D1=qY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();q1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as SY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=SY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,S$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,S$(Q)}function S$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function q9(){return $.directConnectServerUrl}function D9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){return Date.now()-$.startTime}function I9(){return $.totalAPIDurationWithoutRetries}function C9(){return $.totalToolDuration}function _9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function k9(){return $.turnHookDurationMs}function E9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function v9(){$.turnHookDurationMs=0,$.turnHookCount=0}function d9(){return $.turnHookCount}function g9(){return $.turnToolDurationMs}function p9(){$.turnToolDurationMs=0,$.turnToolCount=0}function y9(){return $.turnToolCount}function S9(){return $.turnClassifierDurationMs}function m9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function A9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function j9(){return $.turnClassifierCount}function h9(){return $.statsStore}function n9(Q){$.statsStore=Q}function b9(Q){if(Q)m$();else s1=!0}function i9(){if(s1)m$()}function m$(){$.lastInteractionTime=Date.now(),s1=!1}function u9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function l9(){return $.totalLinesAdded}function T9(){return $.totalLinesRemoved}function c9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function r9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function o9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function s9(){return b(Object.values($.modelUsage),"webSearchRequests")}function a9(){return A$()-a1}function t9(){return t1}function e9(Q){a1=A$(),t1=Q,f1=0}function QH(){return f1}function $H(){f1++}function JH(){$.hasUnknownModelCost=!0}function YH(){return $.hasUnknownModelCost}function ZH(){return $.lastMainRequestId}function XH(Q){$.lastMainRequestId=Q}function HH(){return $.lastApiCompletionTimestamp}function WH(Q){$.lastApiCompletionTimestamp=Q}function xH(){$.pendingPostCompaction=!0}function UH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function KH(){return $.lastInteractionTime}function GH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function BH(){return M1}async function NH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function wH(){return $.modelUsage}function zH(Q){return $.modelUsage[Q]}function FH(){return $.mainLoopModelOverride}function RH(){return $.initialMainLoopModel}function qH(Q){$.mainLoopModelOverride=Q}function DH(Q){$.initialMainLoopModel=Q}function OH(){return $.sdkBetas}function VH(Q){$.sdkBetas=Q}function MH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function LH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function fH(){throw Error("resetStateForTests can only be called in tests")}function PH(){return $.modelStrings}function IH(Q){$.modelStrings=Q}function CH(){$.modelStrings=null}function _H(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function kH(){return $.meter}function EH(){return $.sessionCounter}function vH(){return $.locCounter}function dH(){return $.prCounter}function gH(){return $.commitCounter}function pH(){return $.costCounter}function yH(){return $.tokenCounter}function SH(){return $.codeEditToolDecisionCounter}function mH(){return $.activeTimeCounter}function AH(){return $.loggerProvider}function jH(Q){$.loggerProvider=Q}function hH(){return $.eventLogger}function nH(Q){$.eventLogger=Q}function bH(){return $.meterProvider}function iH(Q){$.meterProvider=Q}function uH(){return $.tracerProvider}function lH(Q){$.tracerProvider=Q}function mY(){return!$.isInteractive}function TH(){return $.isInteractive}function cH(Q){$.isInteractive=Q}function rH(){return $.clientType}function oH(Q){$.clientType=Q}function sH(){return $.sdkAgentProgressSummariesEnabled}function aH(Q){$.sdkAgentProgressSummariesEnabled=Q}function tH(){return $.kairosActive}function eH(Q){$.kairosActive=Q,L1()}function Q4(){return $.strictToolResultPairing}function $4(Q){$.strictToolResultPairing=Q}function J4(){return $.userMsgOptIn}function Y4(Q){$.userMsgOptIn=Q,L1()}function Z4(){return $.sessionSource}function X4(Q){$.sessionSource=Q}function H4(){return $.questionPreviewFormat}function W4(Q){$.questionPreviewFormat=Q}function x4(){return $.agentColorMap}function U4(){return $.flagSettingsPath}function K4(Q){$.flagSettingsPath=Q}function G4(){return $.flagSettingsInline}function B4(Q){$.flagSettingsInline=Q}function N4(){return $.sessionIngressToken}function w4(Q){$.sessionIngressToken=Q}function z4(){return $.oauthTokenFromFd}function F4(Q){$.oauthTokenFromFd=Q}function R4(){return $.apiKeyFromFd}function q4(Q){$.apiKeyFromFd=Q}function D4(Q){$.lastAPIRequest=Q}function O4(){return $.lastAPIRequest}function V4(Q){$.lastAPIRequestMessages=Q}function M4(){return $.lastAPIRequestMessages}function L4(Q){$.lastClassifierRequests=Q}function f4(){return $.lastClassifierRequests}function P4(Q){$.cachedClaudeMdContent=Q}function I4(){return $.cachedClaudeMdContent}function C4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function _4(){return $.allowedSettingSources}function k4(Q){$.allowedSettingSources=Q}function E4(){return mY()&&$.clientType!=="claude-vscode"}function v4(Q){$.inlinePlugins=Q}function d4(){return $.inlinePlugins}function g4(Q){$.useCoworkPlugins=Q,E$()}function p4(){return $.useCoworkPlugins}function y4(Q){$.sessionBypassPermissionsMode=Q}function S4(){return $.sessionBypassPermissionsMode}function m4(Q){$.scheduledTasksEnabled=Q}function A4(){return $.scheduledTasksEnabled}function j4(){return $.sessionCronTasks}function h4(Q){$.sessionCronTasks.push(Q)}function n4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function b4(){return $.pendingSessionWakeup}function i4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function u4(){$.pendingSessionWakeup=null}function l4(Q){$.sessionTrustAccepted=Q}function T4(){return $.sessionTrustAccepted}function c4(Q){$.sessionPersistenceDisabled=Q}function r4(){return $.sessionPersistenceDisabled}function o4(){return $.hasExitedPlanMode}function s4(Q){$.hasExitedPlanMode=Q}function a4(){return $.needsPlanModeExitAttachment}function t4(Q){$.needsPlanModeExitAttachment=Q}function e4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function Q3(){return $.needsAutoModeExitAttachment}function $3(Q){$.needsAutoModeExitAttachment=Q}function J3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function Y3(Q){$.initJsonSchema=Q}function Z3(){return $.initJsonSchema}function X3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function H3(){return $.registeredHooks}function W3(){$.registeredHooks=null}function x3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function U3(){$.initJsonSchema=null,$.registeredHooks=null}function K3(){return $.planSlugCache}function G3(){return $.sessionCreatedTeams}function B3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function N3(){return $.teleportedSessionInfo}function w3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function z3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function F3(){return $.invokedSkills}function R3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function q3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function D3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function O3(Q,J){}function V3(){return AY}function M3(){return $.mainThreadAgentType}function L3(Q){$.mainThreadAgentType=Q}function f3(){return $.isRemoteMode}function P3(Q){$.isRemoteMode=Q}function I3(){return $.systemPromptSectionCache}function C3(Q,J){$.systemPromptSectionCache.set(Q,J)}function _3(){$.systemPromptSectionCache.clear()}function k3(){return $.lastEmittedDate}function E3(Q){$.lastEmittedDate=Q}function v3(){return $.additionalDirectoriesForClaudeMd}function d3(Q){$.additionalDirectoriesForClaudeMd=Q}function g3(){return $.allowedChannels}function p3(Q){$.allowedChannels=Q,L1()}function y3(){return $.hasDevChannels}function S3(Q){$.hasDevChannels=Q}function m3(){return $.largeSystemPromptDetected}function A3(Q){$.largeSystemPromptDetected=Q}function j3(){return $.afkModeHeaderLatched}function h3(Q){$.afkModeHeaderLatched=Q}function n3(){return $.fastModeHeaderLatched}function b3(Q){$.fastModeHeaderLatched=Q}function i3(){return $.thinkingClearLatched}function u3(Q){$.thinkingClearLatched=Q}function l3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function T3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function c3(){return $.deferredDeltaLegacySession}function r3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function o3(){return $.sessionEpochMs}function s3(){return $.promptId}function a3(Q){$.promptId=Q}function t3(){return!1}function e3(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
- export{p as Mja,I1 as Nja,FQ as Oja,RQ as Pja,OQ as Qja,VQ as Rja,_1 as Sja,MQ as Tja,PQ as Uja,IQ as Vja,dQ as Wja,gQ as Xja,w as Yja,M as Zja,pQ as _ja,yQ as $ja,SQ as aka,mQ as bka,AQ as cka,jQ as dka,nQ as eka,bQ as fka,O as gka,m as hka,t as ika,v1 as jka,A as kka,d1 as lka,$1 as mka,g1 as nka,$5 as oka,J5 as pka,X1 as qka,X5 as rka,H1 as ska,y1 as tka,W5 as uka,x5 as vka,U5 as wka,K5 as xka,G5 as yka,B5 as zka,q5 as Aka,D5 as Bka,W1 as Cka,S1 as Dka,m1 as Eka,O5 as Fka,G1 as Gka,P5 as Hka,A1 as Ika,d5 as Jka,w1 as Kka,j1 as Lka,h as Mka,R1 as Nka,a5 as Oka,t5 as Pka,Z$ as Qka,X$ as Rka,D1 as Ska,b1 as Tka,I as Uka,u as Vka,O1 as Wka,i1 as Xka,F$ as Yka,R$ as Zka,f$ as _ka,P$ as $ka,nX as ala,bX as bla,iX as cla,uX as dla,lX as ela,TX as fla,E$ as gla,cX as hla,rX as ila,oX as jla,v$ as kla,d$ as lla,g$ as mla,Z9 as nla,X9 as ola,H9 as pla,W9 as qla,x9 as rla,U9 as sla,K9 as tla,G9 as ula,B9 as vla,N9 as wla,w9 as xla,z9 as yla,F9 as zla,R9 as Ala,q9 as Bla,D9 as Cla,O9 as Dla,V9 as Ela,M9 as Fla,L9 as Gla,f9 as Hla,P9 as Ila,I9 as Jla,C9 as Kla,_9 as Lla,k9 as Mla,E9 as Nla,v9 as Ola,d9 as Pla,g9 as Qla,p9 as Rla,y9 as Sla,S9 as Tla,m9 as Ula,A9 as Vla,j9 as Wla,h9 as Xla,n9 as Yla,b9 as Zla,i9 as _la,u9 as $la,l9 as ama,T9 as bma,c9 as cma,A$ as dma,r9 as ema,o9 as fma,s9 as gma,a9 as hma,t9 as ima,e9 as jma,QH as kma,$H as lma,JH as mma,YH as nma,ZH as oma,XH as pma,HH as qma,WH as rma,xH as sma,UH as tma,KH as uma,GH as vma,BH as wma,NH as xma,wH as yma,zH as zma,FH as Ama,RH as Bma,qH as Cma,DH as Dma,OH as Ema,VH as Fma,MH as Gma,LH as Hma,fH as Ima,PH as Jma,IH as Kma,CH as Lma,_H as Mma,kH as Nma,EH as Oma,vH as Pma,dH as Qma,gH as Rma,pH as Sma,yH as Tma,SH as Uma,mH as Vma,AH as Wma,jH as Xma,hH as Yma,nH as Zma,bH as _ma,iH as $ma,uH as ana,lH as bna,mY as cna,TH as dna,cH as ena,rH as fna,oH as gna,sH as hna,aH as ina,tH as jna,eH as kna,Q4 as lna,$4 as mna,J4 as nna,Y4 as ona,Z4 as pna,X4 as qna,H4 as rna,W4 as sna,x4 as tna,U4 as una,K4 as vna,G4 as wna,B4 as xna,N4 as yna,w4 as zna,z4 as Ana,F4 as Bna,R4 as Cna,q4 as Dna,D4 as Ena,O4 as Fna,V4 as Gna,M4 as Hna,L4 as Ina,f4 as Jna,P4 as Kna,I4 as Lna,C4 as Mna,_4 as Nna,k4 as Ona,E4 as Pna,v4 as Qna,d4 as Rna,g4 as Sna,p4 as Tna,y4 as Una,S4 as Vna,m4 as Wna,A4 as Xna,j4 as Yna,h4 as Zna,n4 as _na,b4 as $na,i4 as aoa,u4 as boa,l4 as coa,T4 as doa,c4 as eoa,r4 as foa,o4 as goa,s4 as hoa,a4 as ioa,t4 as joa,e4 as koa,Q3 as loa,$3 as moa,J3 as noa,Y3 as ooa,Z3 as poa,X3 as qoa,H3 as roa,W3 as soa,x3 as toa,U3 as uoa,K3 as voa,G3 as woa,B3 as xoa,N3 as yoa,w3 as zoa,z3 as Aoa,F3 as Boa,R3 as Coa,q3 as Doa,D3 as Eoa,O3 as Foa,V3 as Goa,M3 as Hoa,L3 as Ioa,f3 as Joa,P3 as Koa,I3 as Loa,C3 as Moa,_3 as Noa,k3 as Ooa,E3 as Poa,v3 as Qoa,d3 as Roa,g3 as Soa,p3 as Toa,y3 as Uoa,S3 as Voa,m3 as Woa,A3 as Xoa,j3 as Yoa,h3 as Zoa,n3 as _oa,b3 as $oa,i3 as apa,u3 as bpa,l3 as cpa,T3 as dpa,c3 as epa,r3 as fpa,jY as gpa,o3 as hpa,s3 as ipa,a3 as jpa,t3 as kpa,e3 as lpa,hY as mpa};
@@ -1,2 +0,0 @@
1
- import{sb as d}from"./cli-1.0.4-rh4j3s0t.mjs";import{$B as Hj,$R as A,Dm as E,Ek as $,El as P,Em as e,Fk as n,Fl as R,IQ as Qj,MJ as f,Mk as v,Nk as r,Sj as O,Ss as h,Tu as C,Uj as o,Us as qj,Uu as D,VS as Vj,YD as Jj,ZR as m,Zl as s,Zu as Gj,_B as I,_R as S,bT as F,ju as k,kS as c,km as y,mu as V,pT as Xj,pm as t,rS as p,sS as X,su as zj,tu as w,uu as Bj}from"./cli-1.0.4-jvp0mp87.mjs";import{GU as W,UU as jj}from"./cli-1.0.4-hwje79ka.mjs";import{TW as x,WW as Kj}from"./cli-1.0.4-rmrpsgq6.mjs";import{H5 as T,O5 as u}from"./cli-1.0.4-0vwtrvvh.mjs";import{$ga as i,_ga as Z}from"./cli-1.0.4-8x3m3esm.mjs";import{Qia as b,Tia as l}from"./cli-1.0.4-vpcfce7x.mjs";import{Ama as M,Cma as N,Ioa as K,mpa as g,pla as U,sla as _,xla as Y}from"./cli-1.0.4-n5mydt2f.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
2
- export{aj as Fa,Pj as Ga,Rj as Ha,Ej as Ia,gj as Ja,lj as Ka};
@@ -1,2 +0,0 @@
1
- import{Qha as f}from"./cli-1.0.4-34jdejmp.mjs";import{Tia as h}from"./cli-1.0.4-vpcfce7x.mjs";import{Xqa as Z}from"./cli-1.0.4-rhq4w2pj.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var w=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(){}async function oz(z){if(!z||z.length>D)return null;return null}async function dz(z){if(!z||z.length>D)return null;return null}function nz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(l(J.text));else if(m.has(J.type))break}return X}function l(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,m,pz;var L=Z(()=>{f();h();w();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),m=new Set(["command_substitution","process_substitution"]);pz=Symbol("parse-aborted")});
2
- export{K as n2,w as o2,kz as p2,oz as q2,pz as r2,dz as s2,nz as t2,L as u2};
@@ -1,2 +0,0 @@
1
- import{X9 as Q,l_ as _}from"./cli-1.0.4-q0rnwhn4.mjs";import{$ga as X,_ga as I}from"./cli-1.0.4-8x3m3esm.mjs";import{Qia as B,Tia as V}from"./cli-1.0.4-vpcfce7x.mjs";import{Xqa as T}from"./cli-1.0.4-rhq4w2pj.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
2
- export{j as J8,P as K8,Y as L8,S as M8,O as N8,D as O8,Z as P8};
@@ -1,2 +0,0 @@
1
- import{Ih as B,Jh as CJ}from"./cli-1.0.4-rkw1vtxv.mjs";import{Bx as Cq,Cx as FJ,Dr as JJ,En as AJ,Er as uq,Ex as QQ,Fn as rJ,Hr as MJ,Ir as QJ,OF as BJ,QF as ZQ,Qn as DJ,Rn as lJ,Sn as PJ,Sw as wJ,Tn as tJ,Tw as JQ,Un as VJ,Vn as eJ,ay as Bq,by as kq,cy as yJ,or as vq,pr as n,qr as NJ,xr as TJ,zr as OJ}from"./cli-1.0.4-jvp0mp87.mjs";import{HX as LJ,IX as oJ,LX as RJ,MX as aJ,UX as jJ,VX as qQ}from"./cli-1.0.4-c9sh44ne.mjs";import{I0 as hJ,IY as sJ,b0 as O,d0 as D,f0 as nq,g0 as EJ}from"./cli-1.0.4-9ra8j4rt.mjs";import{N2 as IJ,O2 as H,P2 as j,Q2 as zJ}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as nJ}from"./cli-1.0.4-5e2v63sy.mjs";import{G4 as bq,H4 as GJ,H5 as i,J4 as Eq,K5 as yq,O5 as dJ,V4 as HJ,Y5 as kJ,_4 as pJ,a7 as _J,b6 as GQ,v7 as HQ,w5 as mq,y5 as s}from"./cli-1.0.4-0vwtrvvh.mjs";import{R7 as K,S7 as xJ}from"./cli-1.0.4-3289hbrr.mjs";import{gaa as aq,haa as lq,iaa as _q,jaa as tq,jca as UJ,kaa as eq,laa as qJ,lca as WJ,waa as $J,yca as iJ}from"./cli-1.0.4-q0rnwhn4.mjs";import{Nha as KJ,Qha as cJ}from"./cli-1.0.4-34jdejmp.mjs";import{Tqa as XJ,Xqa as Rq}from"./cli-1.0.4-rhq4w2pj.mjs";function hq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function z(J,q,Q){if(q.startsWith("ansi:")){let Y=q.slice(5);if(Q==="fg")return J[Y]??J;let X=`bg${Y[0].toUpperCase()}${Y.slice(1)}`;return J[X]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let Y=parseInt(q.slice(8));return Q==="fg"?J.ansi256(Y):J.bgAnsi256(Y)}let Z=bJ.exec(q);if(Z){let[Y,X,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(Y,X,U):J.bgRgb(Y,X,U)}return J}function PQ(J,q,Q,Z,Y){if(!B())return uJ(J,q,Q,Z,Y);let{suggestion:X,messageActionsBackground:U}=Y,G=U==="ansi:white"||U==="ansi:whiteBright"?Y.inactive:U,R=Y.inverseText,I=Y.suggestion,F=z(z(K,X,"bg"),R,"fg").bold,L=z(z(K,X,"fg"),G,"bg"),A=z(z(K,G,"bg"),I,"fg"),T=z(K,G,"fg"),Pq=z(K,X,"fg"),P=F(` ${J} `);if(q){if(P+=L(w),P+=A(` ${sq} ${q}`),Q>0||Z>0){if(P+=A(" ("),Q>0)P+=z(z(K,G,"bg"),Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)P+=A(" ");if(Z>0)P+=z(z(K,G,"bg"),Y.warning,"fg")(`↓${Z}`);P+=A(")")}P+=A(" "),P+=T(w)}else P+=Pq(w);return P}function VQ(J,q,Q){if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J)} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J} `)+U(w)}function jQ(J,q,Q){if(!J)return"";if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J.trim())} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function NQ(J,q,Q){if(!J)return"";if(!B())return`[ ${z(K,q.suggestion,"fg")(J.trim())} ]`;let Z=hq(q),Y=q.suggestion,X=z(z(K,Z,"bg"),Y,"fg"),U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function rq(J,q,Q){if(!J)return"";if(!B())return`[ ${J} ]`;let Z=z(z(K,q,"bg"),Q.inverseText,"fg").bold,Y=z(K,q,"fg");return Z(` ${J} `)+Y(w)}function TQ(J,q,Q,Z,Y){if(!J)return"";if(!B()){let L=z(K,Z.suggestion,"fg")(J);if(q>0||Q>0){if(L+=" (",q>0)L+=z(K,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)L+=" ";if(Q>0)L+=z(K,Z.warning,"fg")(`↓${Q}`);L+=")"}return`[ ${L} ]`}let X=hq(Z),U=Z.suggestion,G=z(z(K,X,"bg"),U,"fg"),R=Y?z(z(K,Y,"bg"),X,"fg"):z(K,X,"fg"),I=G(` ${sq} ${J}`);if(q>0||Q>0){if(I+=G(" ("),q>0)I+=z(z(K,X,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=G(" ");if(Q>0)I+=z(z(K,X,"bg"),Z.warning,"fg")(`↓${Q}`);I+=G(")")}return I+=G(" "),I+=R(w),I}function dq(J,q){if(!q||!nq())return J;return`${Bq}${q}${kq}${J}${Bq}${kq}`}function OQ(J,q,Q,Z="PR",Y){if(!B()){let F=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,L=dq(z(K,F,"fg")(`#${J}`),Y);return`[ ${z(K,Q.inactive,"fg")(Z)} ${L} ]`}let X=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,G=z(z(K,X,"bg"),Q.inactive,"fg"),R=z(z(K,X,"bg"),U,"fg"),I=z(K,X,"fg");return G(` ${gJ} `)+dq(R(`#${J}`),Y)+G(" ")+I(w)}function uJ(J,q,Q,Z,Y){let X=z(K,Y.suggestion,"fg").bold,U=`[ ${X(J)} ]`;if(q){let R=z(K,Y.suggestion,"fg")(q);if(Q>0||Z>0){if(R+=" (",Q>0)R+=z(K,Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)R+=" ";if(Z>0)R+=z(K,Y.warning,"fg")(`↓${Z}`);R+=")"}U+=` [ ${R} ]`}return U}var w="",sq="",gJ="",bJ;var oq=Rq(()=>{xJ();EJ();yJ();CJ();bJ=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function fJ(J,q){if(vq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function kQ(J,q,Q){if(!n(q))return;let Z=JJ(q,J),Y=fJ(Z,Q);return{pill:rq(`${Sq(Z)} ${Z}`,Y,Q),bg:Y}}function Sq(J){if(vq(J))return qJ;switch(J){case"low":return aq;case"medium":return lq;case"high":return _q;case"xhigh":return tq;case"max":return eq;default:return _q}}var ZJ=Rq(()=>{$J();QJ();oq()});function rQ(J){let q=$q.c(82),{initial:Q,sessionModel:Z,onSelect:Y,onCancel:X,isStandaloneCommand:U,showFastModeNotice:G,headerText:R,skipSettingsWrite:I}=J,F=FJ(),L=RJ(),A=Q===null?h:Q,[T,Pq]=Dq.useState(A),P=Cq(KQ),[k,vJ]=Dq.useState(!1),_=Cq(XQ),r;if(q[0]!==_)r=_!==void 0?uq(_):void 0,q[0]=_,q[1]=r;else r=q[1];let[v,fq]=Dq.useState(r),Vq=P??!1,o;if(q[2]!==Vq)o=wJ(Vq),q[2]=Vq,q[3]=o;else o=q[3];let p=o,jq;q:{if(Q!==null&&!p.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return s(i(String(W.value)))===s(i(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=yq(Q),q[4]=Q,q[5]=W;else W=q[5];let V;if(q[6]!==Q||q[7]!==W)V={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=V;else V=q[8];let S;if(q[9]!==p||q[10]!==V)S=[...p,V],q[9]=p,q[10]=V,q[11]=S;else S=q[11];jq=S;break q}jq=p}let Nq=jq,a;if(q[12]!==Nq)a=Nq.map(YQ),q[12]=Nq,q[13]=a;else a=q[13];let N=a,l;if(q[14]!==A||q[15]!==N)l=N.find((W)=>{if(W.value===A)return!0;if(A===h||W.value===null)return!1;try{return s(i(String(W.value)))===s(i(String(A)))}catch{return!1}})?.value??N[0]?.value??void 0,q[14]=A,q[15]=N,q[16]=l;else l=q[16];let Tq=l,t=Math.min(10,N.length),e=Math.max(0,N.length-t),qq;if(q[17]!==T||q[18]!==N)qq=N.find((W)=>W.value===T)?.label,q[17]=T,q[18]=N,q[19]=qq;else qq=q[19];let Jq=qq,M,Qq;if(q[20]!==T){let W=gq(T);M=W?n(W):!1,Qq=W?NJ(W):!1,q[20]=T,q[21]=M,q[22]=Qq}else M=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==T)zq=xq(T),q[23]=T,q[24]=zq;else zq=q[24];let x=zq,d=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==_||q[26]!==k)Yq=(W)=>{if(Pq(W),!k&&_===void 0)fq(xq(W))},q[25]=_,q[26]=k,q[27]=Yq;else Yq=q[27];let Oq=Yq,Xq;if(q[28]!==x||q[29]!==M||q[30]!==Zq)Xq=(W)=>{if(!M)return;fq((V)=>UQ(V??x,W,Zq)),vJ(!0)},q[28]=x,q[29]=M,q[30]=Zq,q[31]=Xq;else Xq=q[31];let Kq=Xq,Uq;if(q[32]!==Kq)Uq={"modelPicker:decreaseEffort":()=>Kq("left"),"modelPicker:increaseEffort":()=>Kq("right")},q[32]=Kq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];LJ(Uq,Wq);let Gq;if(q[35]!==v||q[36]!==k||q[37]!==Y||q[38]!==F||q[39]!==I)Gq=function(V){if(KJ("tengu_model_command_menu_effort",{effort:v}),!I){let iq=OJ(v,xq(V),UJ("userSettings")?.effortLevel,k),pq=TJ(iq);if(pq!==void 0)WJ("userSettings",{effortLevel:pq});F((SJ)=>({...SJ,effortValue:iq}))}let S=gq(V),cq=k&&S&&n(S)?v:void 0;if(V===h){Y(null,cq);return}Y(V,cq)},q[35]=v,q[36]=k,q[37]=Y,q[38]=F,q[39]=I,q[40]=Gq;else Gq=q[40];let Mq=Gq,Hq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Hq=H(D,{color:"remember",bold:!0,children:"Select model"}),q[41]=Hq;else Hq=q[41];let wq=R??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=H(D,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let y;if(q[44]!==Z)y=Z&&j(D,{dimColor:!0,children:["Currently using ",yq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=y;else y=q[45];let C;if(q[46]!==E||q[47]!==y)C=j(O,{marginBottom:1,flexDirection:"column",children:[Hq,E,y]}),q[46]=E,q[47]=y,q[48]=C;else C=q[48];let Fq=X??zQ,g;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Tq||q[52]!==A||q[53]!==N||q[54]!==Fq||q[55]!==t)g=H(O,{flexDirection:"column",children:H(BJ,{defaultValue:A,defaultFocusValue:Tq,options:N,onChange:Mq,onFocus:Oq,onCancel:Fq,visibleOptionCount:t})}),q[49]=Oq,q[50]=Mq,q[51]=Tq,q[52]=A,q[53]=N,q[54]=Fq,q[55]=t,q[56]=g;else g=q[56];let b;if(q[57]!==e)b=e>0&&H(O,{paddingLeft:3,children:j(D,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=b;else b=q[58];let m;if(q[59]!==g||q[60]!==b)m=j(O,{flexDirection:"column",marginBottom:1,children:[g,b]}),q[59]=g,q[60]=b,q[61]=m;else m=q[61];let u;if(q[62]!==d||q[63]!==x||q[64]!==Jq||q[65]!==M)u=H(O,{marginBottom:1,flexDirection:"column",children:M?j(D,{dimColor:!0,children:[H(YJ,{effort:d})," ",AJ(d)," effort",d===x?" (default)":""," ",H(D,{color:"subtle",children:"← → to adjust"})]}):j(D,{color:"subtle",children:[H(YJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=d,q[63]=x,q[64]=Jq,q[65]=M,q[66]=u;else u=q[66];let $;if(q[67]!==G)$=bq()?G?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Fast mode is ",H(D,{bold:!0,children:"ON"})," and available with"," ",Eq," only (/fast). Switching to other models turn off fast mode."]})}):GJ()&&!HJ()?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Use ",H(D,{bold:!0,children:"/fast"})," to turn on Fast mode (",Eq," only)."]})}):null:null,q[67]=G,q[68]=$;else $=q[68];let f;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==$)f=j(O,{flexDirection:"column",children:[C,m,u,$]}),q[69]=C,q[70]=m,q[71]=u,q[72]=$,q[73]=f;else f=q[73];let c;if(q[74]!==L||q[75]!==U)c=U&&H(D,{dimColor:!0,italic:!0,children:L.pending?j(IJ,{children:["Press ",L.keyName," again to exit"]}):j(VJ,{children:[H(DJ,{shortcut:"Enter",action:"confirm"}),H(PJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=L,q[75]=U,q[76]=c;else c=q[76];let Iq;if(q[77]!==f||q[78]!==c)Iq=j(O,{flexDirection:"column",children:[f,c]}),q[77]=f,q[78]=c,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Lq;if(q[80]!==Aq)Lq=H(jJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Lq;else Lq=q[81];return Lq}function zQ(){}function YQ(J){return{...J,value:J.value===null?h:J.value}}function XQ(J){return J.effortValue}function KQ(J){return bq()?J.fastMode:!1}function gq(J){if(!J)return;return J===h?mq():i(J)}function YJ(J){let q=$q.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",Y=Q??"low",X;if(q[0]!==Y)X=Sq(Y),q[0]=Y,q[1]=X;else X=q[1];let U;if(q[2]!==Z||q[3]!==X)U=H(D,{color:Z,children:X}),q[2]=Z,q[3]=X,q[4]=U;else U=q[4];return U}function UQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],Y=Z.indexOf(J),X=Y!==-1?Y:Z.indexOf("high");if(q==="right")return Z[(X+1)%Z.length];else return Z[(X-1+Z.length)%Z.length]}function xq(J){let q=gq(J)??mq(),Q=MJ(q);return Q!==void 0?uq(Q):"high"}var $q,Dq,h="__NO_PREFERENCE__";var WQ=Rq(()=>{rJ();aJ();cJ();pJ();hJ();oJ();QQ();QJ();dJ();JQ();iJ();tJ();ZQ();eJ();lJ();qQ();ZJ();zJ();$q=XJ(sJ(),1),Dq=XJ(nJ(),1)});function eQ(J,q,Q){if(!_J())return!1;if(q)return!0;if(J===null||!kJ(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),Y=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),X=Z==="sonnet"||Z.includes("sonnet-4-6");if(Y&&Q)return!1;return Y||X}var IQ=Rq(()=>{HQ();GQ()});
2
- export{hq as Rg,mJ as Sg,PQ as Tg,VQ as Ug,jQ as Vg,NQ as Wg,TQ as Xg,OQ as Yg,oq as Zg,kQ as _g,Sq as $g,ZJ as ah,rQ as bh,WQ as ch,eQ as dh,IQ as eh};
@@ -1,18 +0,0 @@
1
- import{Ye as kZ,cf as XX}from"./cli-1.0.4-1j122zyj.mjs";import{gf as YZ,hf as gQ}from"./cli-1.0.4-vwwq0bh3.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.4-jvp0mp87.mjs";import{HX as q0,IX as g0,sX as QJ,tX as nZ}from"./cli-1.0.4-c9sh44ne.mjs";import{I0 as f0,IY as R0,RY as l0,b0 as C,d0 as V,h0 as JJ,r0 as wZ}from"./cli-1.0.4-9ra8j4rt.mjs";import{E2 as hJ,L2 as yX}from"./cli-1.0.4-5663sqrh.mjs";import{N2 as o,O2 as f,P2 as W,Q2 as $}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as o0}from"./cli-1.0.4-5e2v63sy.mjs";import{a3 as mJ,k3 as MQ}from"./cli-1.0.4-f8dd3sqs.mjs";import{m3 as DJ,n3 as JX}from"./cli-1.0.4-vnf5ysx9.mjs";import{B3 as tJ,C3 as IQ,p6 as NJ,q6 as wQ}from"./cli-1.0.4-0vwtrvvh.mjs";import{Gba as Q0,Oba as IJ,R_ as fQ,S_ as M0,U_ as CJ,Y8 as t0,Z8 as cZ,gfa as eJ,ofa as BQ,paa as z0,qaa as w0,qba as TZ,rba as uZ,tba as eQ,waa as m0}from"./cli-1.0.4-q0rnwhn4.mjs";import{Bfa as oZ,Dfa as e0,Efa as x0,Lfa as h0,wfa as y0,zfa as b0}from"./cli-1.0.4-1bg07n68.mjs";import{Aga as AQ,oga as sJ}from"./cli-1.0.4-d8bjdz7n.mjs";import{Nha as t,Qha as _J}from"./cli-1.0.4-34jdejmp.mjs";import{Eia as $Z,Gia as RX,Qia as D0,Tia as dJ}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as v0,vja as aJ}from"./cli-1.0.4-7pxrd0w5.mjs";import{Tqa as J0,Uqa as FJ,Wqa as $J,Xqa as a}from"./cli-1.0.4-rhq4w2pj.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,2 +0,0 @@
1
- import{X6 as q,v7 as D}from"./cli-1.0.4-0vwtrvvh.mjs";import{Lha as m,Mha as z}from"./cli-1.0.4-hfn9tnb6.mjs";import{Xqa as x}from"./cli-1.0.4-rhq4w2pj.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
2
- export{E as mi,F as ni,K as oi,M as pi,G as qi};
@@ -1,18 +0,0 @@
1
- import{JI as Q,MI as F}from"./cli-1.0.4-jvp0mp87.mjs";import{Qia as b,Tia as y}from"./cli-1.0.4-vpcfce7x.mjs";import{qja as x,vja as f}from"./cli-1.0.4-7pxrd0w5.mjs";import{Lja as R,yja as w}from"./cli-1.0.4-ex22h376.mjs";import{mpa as K,tla as $,wla as j}from"./cli-1.0.4-n5mydt2f.mjs";import{Xqa as v}from"./cli-1.0.4-rhq4w2pj.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
2
-
3
- `:"",B=k===G?`
4
-
5
- ${c}`:"";return`Scheduled loop tick.
6
-
7
- ${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
8
-
9
- If .claudin/loop.md exists, read it and follow it.
10
- Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
11
- Otherwise:
12
- - continue any unfinished work from the conversation
13
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
14
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
15
-
16
- Do not start new initiatives outside that scope.
17
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
18
- export{Y as Th,G as Uh,D as Vh,g as Wh,M as Xh,U as Yh};
@@ -1,3 +0,0 @@
1
- import{D as G0}from"./cli-1.0.4-jxsb0m86.mjs";import{V as p0}from"./cli-1.0.4-8ed4gxkm.mjs";import{gb as E0}from"./cli-1.0.4-ztznpg9h.mjs";import{lb as k0}from"./cli-1.0.4-g3vvvtwh.mjs";import{Fc as P0,Hc as Fc}from"./cli-1.0.4-rkb3rkfa.mjs";import{Kc as N,Lc as uc}from"./cli-1.0.4-t0zs4sf6.mjs";import{Nc as Q0,Oc as hc}from"./cli-1.0.4-emp66cxw.mjs";import{hd as n0,id as x0}from"./cli-1.0.4-f20q38cw.mjs";import{Ax as X,EG as y0,EM as u0,Ex as l0,FG as _c,GM as r0,JE as Y0,MF as m0,NE as lc,NF as g0,OF as r,QF as A0,Qn as p,Rn as K0,Sn as f0,Tn as N0,Un as i0,VF as Y,Vn as d0,WF as M0,XF as Z0,YF as Mc,Yn as W,Zn as j,aT as O0,gM as _0,kT as b0,lR as d,mT as B0,nR as W0,pR as Ic,pT as ac,qM as j0,sT as D0,uT as Tc}from"./cli-1.0.4-jvp0mp87.mjs";import{I0 as x,IY as G,ZY as X0,b0 as c0,bZ as oc,d0 as y,h0 as g}from"./cli-1.0.4-9ra8j4rt.mjs";import{N2 as e,O2 as m,P2 as U,Q2 as C}from"./cli-1.0.4-x8jnn75c.mjs";import{H3 as H0,L3 as mc,n4 as J0,o4 as nc}from"./cli-1.0.4-0vwtrvvh.mjs";import{Kda as I0,Tea as z0,Wea as ic,gda as V0,lca as V,mda as s,pca as J,pda as t,rda as q0,sca as w0,uca as U0,yca as k}from"./cli-1.0.4-q0rnwhn4.mjs";import{Qfa as R,Vfa as cc}from"./cli-1.0.4-1bg07n68.mjs";import{Aga as fc,mga as C0,uga as L0}from"./cli-1.0.4-d8bjdz7n.mjs";import{Nha as q,Qha as E}from"./cli-1.0.4-34jdejmp.mjs";import{Tia as $0}from"./cli-1.0.4-vpcfce7x.mjs";import{Bja as K,Ija as R0,Lja as e0}from"./cli-1.0.4-ex22h376.mjs";import{Yla as a0,coa as T0,mpa as v0}from"./cli-1.0.4-n5mydt2f.mjs";import{Tqa as D,Yqa as L}from"./cli-1.0.4-rhq4w2pj.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-1.0.4-w371tr8m.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-1.0.4-ed1k11kd.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-1.0.4-nq3j2bap.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-1.0.4-xce6cp69.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-1.0.4-7b2m2711.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-1.0.4-cc8qfn6m.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-1.0.4-jhajeb8a.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
2
- `;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
3
- export{Cc as v,Lc as w,Gf as x,wc as y,z,Ef as A,kf as B,pf as C};
@@ -1,4 +0,0 @@
1
- import{_d as c,ee as Eq}from"./cli-1.0.4-rf2k7z5d.mjs";import{FL as Cq,IL as b,JL as Lq,ML as Hq,NL as Jq,PK as v,PL as vq,QK as m,QL as y,RL as Qq,SK as Oq,SL as Xq,TL as Yq,UL as $q,VL as d,Vs as l,Ws as wq,YL as Dq,Yo as s,Zo as Tq,ap as t,cp as Mq,gp as i,ip as Rq,jL as n,mp as A,op as D,pL as e,pp as Aq,qL as P,qp as h,rp as S,sp as Fq,uL as jq,vL as O,wL as qq,yL as I,zL as Gq}from"./cli-1.0.4-jvp0mp87.mjs";import{Gba as V,Oba as Kq,gfa as a,jca as F,lca as L,ofa as Bq,yca as _q}from"./cli-1.0.4-q0rnwhn4.mjs";import{Cia as p,Gia as Wq}from"./cli-1.0.4-vpcfce7x.mjs";import{nja as o,qja as N,vja as Uq}from"./cli-1.0.4-7pxrd0w5.mjs";import{mpa as xq,vla as f}from"./cli-1.0.4-n5mydt2f.mjs";import{Xqa as Zq}from"./cli-1.0.4-rhq4w2pj.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as Nd,HG as Od,JG as Pd,QG as Qd,kq as Rd,XG as Sd,YG as Td,$G as Ud,zG as Vd,ZG as Wd,xG as Xd,hq as Yd};