@claudiolabs/claudin 0.6.8 → 0.6.9

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 (890) hide show
  1. package/dist/chunks/AgentTool-0.6.9-9rxkpd2w.mjs +1 -0
  2. package/dist/chunks/App-0.6.9-2sr69sb6.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.9-qhjbrc90.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.9-btaax7hk.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.9-4a8grmg8.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.9-jxa6nz5k.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.9-nn288md6.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.9-vbwtn6dq.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.9-hpv62yd3.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.9-tjmn7d05.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.9-xm77z99k.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.9-avg93sya.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.9-pk67e59n.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.9-hjj8wzba.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.9-pp8agzjc.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.9-gqa8pkn6.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.9-192qpt8b.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.9-ba2cfwrw.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.9-gzw0s80y.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.9-s38qycda.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.9-kxmns9zh.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.9-kr1yf6k8.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.9-zmv3c62q.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.9-m4jf5dr0.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.9-b9ax9m6j.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.9-kjse2jv1.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.9-dahc1ev9.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.9-5jwr5wg3.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.9-yfzy34qb.mjs +1 -0
  30. package/dist/chunks/agents-0.6.9-0n6mcvce.mjs +110 -0
  31. package/dist/chunks/agents-0.6.9-b31sawy3.mjs +3 -0
  32. package/dist/chunks/api-0.6.9-zdddwgzx.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.9-bzqqwjta.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.9-7g8mz1p5.mjs +1 -0
  35. package/dist/chunks/auth-0.6.9-hjd8znw9.mjs +1 -0
  36. package/dist/chunks/auth-0.6.9-y5g1mgmg.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.9-rxq8ymw3.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.9-bpak4p67.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.9-asafysjv.mjs +1 -0
  40. package/dist/chunks/branch-0.6.9-7nbx2ywt.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.9-1yc7bj8p.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.9-m23yzban.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.9-7njgh7m2.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.9-8py5synr.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.9-j9cxeww1.mjs +1 -0
  46. package/dist/chunks/btw-0.6.9-ma7pmkk5.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.9-1mkd3gdj.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.9-24ya96gj.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.9-gsvngvjh.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.9-mafdpb09.mjs +4 -0
  51. package/dist/chunks/caches-0.6.9-6j6tyf4b.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.9-h7d8r8vt.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.9-51rn86v1.mjs +1 -0
  54. package/dist/chunks/clear-0.6.9-6tv28ch2.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.9-0gh4v4ga.mjs +1 -0
  56. package/dist/chunks/cli-0.6.9-05w6ne3v.mjs +4 -0
  57. package/dist/chunks/cli-0.6.9-0f11memf.mjs +59 -0
  58. package/dist/chunks/cli-0.6.9-0j0w045z.mjs +2 -0
  59. package/dist/chunks/cli-0.6.9-0pfvh3w1.mjs +2 -0
  60. package/dist/chunks/cli-0.6.9-0qtkkmfq.mjs +2 -0
  61. package/dist/chunks/cli-0.6.9-0s223s8s.mjs +18 -0
  62. package/dist/chunks/cli-0.6.9-0t9pwgch.mjs +2 -0
  63. package/dist/chunks/cli-0.6.9-0wmp1q7a.mjs +2 -0
  64. package/dist/chunks/cli-0.6.9-0zey0wyh.mjs +2 -0
  65. package/dist/chunks/cli-0.6.9-143kz7xy.mjs +2 -0
  66. package/dist/chunks/cli-0.6.9-177spsqy.mjs +2 -0
  67. package/dist/chunks/cli-0.6.9-1a1q6vnc.mjs +9 -0
  68. package/dist/chunks/cli-0.6.9-1g9smwnt.mjs +2 -0
  69. package/dist/chunks/cli-0.6.9-268fcggy.mjs +3 -0
  70. package/dist/chunks/cli-0.6.9-2fe32k5y.mjs +2 -0
  71. package/dist/chunks/cli-0.6.9-2ffve69q.mjs +2 -0
  72. package/dist/chunks/cli-0.6.9-2nc79qh3.mjs +2 -0
  73. package/dist/chunks/cli-0.6.9-2zwgc8vn.mjs +2 -0
  74. package/dist/chunks/cli-0.6.9-30djh7wy.mjs +2 -0
  75. package/dist/chunks/cli-0.6.9-31dtrem4.mjs +2 -0
  76. package/dist/chunks/cli-0.6.9-31vx6nd6.mjs +2 -0
  77. package/dist/chunks/cli-0.6.9-35z6rask.mjs +2 -0
  78. package/dist/chunks/cli-0.6.9-3c6mqdk0.mjs +3 -0
  79. package/dist/chunks/cli-0.6.9-47kxmw0y.mjs +3 -0
  80. package/dist/chunks/cli-0.6.9-4e82zcfv.mjs +3 -0
  81. package/dist/chunks/cli-0.6.9-4hmydq2g.mjs +2 -0
  82. package/dist/chunks/cli-0.6.9-4mt6vz89.mjs +2 -0
  83. package/dist/chunks/cli-0.6.9-4nh8xyg8.mjs +3 -0
  84. package/dist/chunks/cli-0.6.9-4tdxta31.mjs +2 -0
  85. package/dist/chunks/cli-0.6.9-4vf40ybe.mjs +2 -0
  86. package/dist/chunks/cli-0.6.9-53jmw39d.mjs +2 -0
  87. package/dist/chunks/cli-0.6.9-5bs313jv.mjs +2 -0
  88. package/dist/chunks/cli-0.6.9-5ssjdjpx.mjs +2 -0
  89. package/dist/chunks/cli-0.6.9-5tam8r4f.mjs +2 -0
  90. package/dist/chunks/cli-0.6.9-618nhe26.mjs +2 -0
  91. package/dist/chunks/cli-0.6.9-64syz6hg.mjs +25 -0
  92. package/dist/chunks/cli-0.6.9-67m8zq43.mjs +2 -0
  93. package/dist/chunks/cli-0.6.9-67ms6qe8.mjs +2 -0
  94. package/dist/chunks/cli-0.6.9-6baq8t33.mjs +6 -0
  95. package/dist/chunks/cli-0.6.9-6c09kxnr.mjs +6 -0
  96. package/dist/chunks/cli-0.6.9-6czn2nk0.mjs +2 -0
  97. package/dist/chunks/cli-0.6.9-6vtgxtwc.mjs +2 -0
  98. package/dist/chunks/cli-0.6.9-703ts6mp.mjs +2 -0
  99. package/dist/chunks/cli-0.6.9-72pqdgfp.mjs +2 -0
  100. package/dist/chunks/cli-0.6.9-72xw2978.mjs +17 -0
  101. package/dist/chunks/cli-0.6.9-75m2z0pe.mjs +2 -0
  102. package/dist/chunks/cli-0.6.9-7c5zf7vm.mjs +2 -0
  103. package/dist/chunks/cli-0.6.9-7cm1vhs1.mjs +2 -0
  104. package/dist/chunks/cli-0.6.9-7e7zn9nj.mjs +42 -0
  105. package/dist/chunks/cli-0.6.9-7jptdarn.mjs +2 -0
  106. package/dist/chunks/cli-0.6.9-7ke3x92f.mjs +2 -0
  107. package/dist/chunks/cli-0.6.9-7p077nar.mjs +2 -0
  108. package/dist/chunks/cli-0.6.9-7s8ys0y7.mjs +2 -0
  109. package/dist/chunks/cli-0.6.9-7zyvegv3.mjs +2 -0
  110. package/dist/chunks/cli-0.6.9-83gnr7zb.mjs +3 -0
  111. package/dist/chunks/cli-0.6.9-8709kpq4.mjs +2 -0
  112. package/dist/chunks/cli-0.6.9-88y94bf5.mjs +2 -0
  113. package/dist/chunks/cli-0.6.9-8984d2qb.mjs +133 -0
  114. package/dist/chunks/cli-0.6.9-8amemx3r.mjs +2 -0
  115. package/dist/chunks/cli-0.6.9-8c45ksaw.mjs +2 -0
  116. package/dist/chunks/cli-0.6.9-8hye8y46.mjs +2 -0
  117. package/dist/chunks/cli-0.6.9-8v4sw3p1.mjs +2 -0
  118. package/dist/chunks/cli-0.6.9-8xxpa4ep.mjs +2 -0
  119. package/dist/chunks/cli-0.6.9-8ymt6nd1.mjs +2 -0
  120. package/dist/chunks/cli-0.6.9-8zqra5w7.mjs +18 -0
  121. package/dist/chunks/cli-0.6.9-97n772v9.mjs +3 -0
  122. package/dist/chunks/cli-0.6.9-9eyrhanm.mjs +3 -0
  123. package/dist/chunks/cli-0.6.9-9tvvnszt.mjs +15 -0
  124. package/dist/chunks/cli-0.6.9-9wvb59y3.mjs +8 -0
  125. package/dist/chunks/cli-0.6.9-9x9r4f8d.mjs +2 -0
  126. package/dist/chunks/cli-0.6.9-9zz415nm.mjs +2 -0
  127. package/dist/chunks/cli-0.6.9-a5zs8qb2.mjs +2 -0
  128. package/dist/chunks/cli-0.6.9-a91pdpbf.mjs +2 -0
  129. package/dist/chunks/cli-0.6.9-acekzr9a.mjs +15 -0
  130. package/dist/chunks/cli-0.6.9-aenf6vb7.mjs +2 -0
  131. package/dist/chunks/cli-0.6.9-ahdefj2b.mjs +2 -0
  132. package/dist/chunks/cli-0.6.9-aqma59cn.mjs +2 -0
  133. package/dist/chunks/cli-0.6.9-az6jyck0.mjs +24 -0
  134. package/dist/chunks/cli-0.6.9-b0y0kf38.mjs +2 -0
  135. package/dist/chunks/cli-0.6.9-bk34v13s.mjs +2 -0
  136. package/dist/chunks/cli-0.6.9-bkvwt4w3.mjs +12 -0
  137. package/dist/chunks/cli-0.6.9-bn2xtan6.mjs +2 -0
  138. package/dist/chunks/cli-0.6.9-cky5efqh.mjs +4 -0
  139. package/dist/chunks/cli-0.6.9-cp5fabjc.mjs +28 -0
  140. package/dist/chunks/cli-0.6.9-csbrfz7b.mjs +2 -0
  141. package/dist/chunks/cli-0.6.9-da750ce8.mjs +2 -0
  142. package/dist/chunks/cli-0.6.9-dhg2zjfr.mjs +2 -0
  143. package/dist/chunks/cli-0.6.9-dvd8t953.mjs +4 -0
  144. package/dist/chunks/cli-0.6.9-ejvhaena.mjs +2 -0
  145. package/dist/chunks/cli-0.6.9-ex3m411t.mjs +2 -0
  146. package/dist/chunks/cli-0.6.9-ey0mcqwk.mjs +2 -0
  147. package/dist/chunks/cli-0.6.9-f8vcjjc6.mjs +2 -0
  148. package/dist/chunks/cli-0.6.9-fc9vqmnf.mjs +2 -0
  149. package/dist/chunks/cli-0.6.9-fd6q2n8f.mjs +5 -0
  150. package/dist/chunks/cli-0.6.9-fepacdf9.mjs +2 -0
  151. package/dist/chunks/cli-0.6.9-fgkzcrmd.mjs +2 -0
  152. package/dist/chunks/cli-0.6.9-fqh9t0h9.mjs +58 -0
  153. package/dist/chunks/cli-0.6.9-fr4y4c0h.mjs +2 -0
  154. package/dist/chunks/cli-0.6.9-frq5etv7.mjs +4 -0
  155. package/dist/chunks/cli-0.6.9-g8vpamhp.mjs +2 -0
  156. package/dist/chunks/cli-0.6.9-gercjmay.mjs +5350 -0
  157. package/dist/chunks/cli-0.6.9-gfqjq2qe.mjs +2 -0
  158. package/dist/chunks/cli-0.6.9-ghdrkvmy.mjs +2 -0
  159. package/dist/chunks/cli-0.6.9-gvkq5xs9.mjs +2 -0
  160. package/dist/chunks/cli-0.6.9-h66ktwkz.mjs +2 -0
  161. package/dist/chunks/cli-0.6.9-h9kchbsc.mjs +6 -0
  162. package/dist/chunks/cli-0.6.9-hk5yv924.mjs +3 -0
  163. package/dist/chunks/cli-0.6.9-hx2vghp7.mjs +50 -0
  164. package/dist/chunks/cli-0.6.9-j94027pe.mjs +2 -0
  165. package/dist/chunks/cli-0.6.9-jfyk8906.mjs +6 -0
  166. package/dist/chunks/cli-0.6.9-jm1v5d99.mjs +2 -0
  167. package/dist/chunks/cli-0.6.9-jvqzvbrh.mjs +2 -0
  168. package/dist/chunks/cli-0.6.9-k0gktpk5.mjs +15 -0
  169. package/dist/chunks/cli-0.6.9-k14bgd9g.mjs +2 -0
  170. package/dist/chunks/cli-0.6.9-k9v9gdzp.mjs +2 -0
  171. package/dist/chunks/cli-0.6.9-kanmrra0.mjs +2 -0
  172. package/dist/chunks/cli-0.6.9-khjkzjgr.mjs +2 -0
  173. package/dist/chunks/cli-0.6.9-knasgz9g.mjs +2 -0
  174. package/dist/chunks/cli-0.6.9-kv2gx7he.mjs +2 -0
  175. package/dist/chunks/cli-0.6.9-kxe1p7p9.mjs +2 -0
  176. package/dist/chunks/cli-0.6.9-m0fs2cnk.mjs +2 -0
  177. package/dist/chunks/cli-0.6.9-m9n8nvmz.mjs +7 -0
  178. package/dist/chunks/cli-0.6.9-mb7kx11j.mjs +2 -0
  179. package/dist/chunks/cli-0.6.9-me596055.mjs +5 -0
  180. package/dist/chunks/cli-0.6.9-mhcym441.mjs +2 -0
  181. package/dist/chunks/cli-0.6.9-mjx2tx8w.mjs +2 -0
  182. package/dist/chunks/cli-0.6.9-mn3sjrek.mjs +2 -0
  183. package/dist/chunks/cli-0.6.9-mn808zcz.mjs +2 -0
  184. package/dist/chunks/cli-0.6.9-n52xxa1k.mjs +3 -0
  185. package/dist/chunks/cli-0.6.9-nahjphjz.mjs +2 -0
  186. package/dist/chunks/cli-0.6.9-njaeg8jw.mjs +4 -0
  187. package/dist/chunks/cli-0.6.9-nm598kmg.mjs +2 -0
  188. package/dist/chunks/cli-0.6.9-ns77j0rb.mjs +2 -0
  189. package/dist/chunks/cli-0.6.9-nyn27tc4.mjs +2 -0
  190. package/dist/chunks/cli-0.6.9-p05qz9pw.mjs +2 -0
  191. package/dist/chunks/cli-0.6.9-p61nt01z.mjs +4 -0
  192. package/dist/chunks/cli-0.6.9-p9sazvks.mjs +2 -0
  193. package/dist/chunks/cli-0.6.9-pc08dfva.mjs +2 -0
  194. package/dist/chunks/cli-0.6.9-pgqqhqcb.mjs +2 -0
  195. package/dist/chunks/cli-0.6.9-prq3ecgt.mjs +2 -0
  196. package/dist/chunks/cli-0.6.9-psmra04s.mjs +2 -0
  197. package/dist/chunks/cli-0.6.9-pxnbcvjk.mjs +2 -0
  198. package/dist/chunks/cli-0.6.9-pyzfty1h.mjs +1 -0
  199. package/dist/chunks/cli-0.6.9-pzdzwxv3.mjs +2 -0
  200. package/dist/chunks/cli-0.6.9-q1k864q5.mjs +24 -0
  201. package/dist/chunks/cli-0.6.9-q1sngnn9.mjs +2 -0
  202. package/dist/chunks/cli-0.6.9-q95j0sxq.mjs +2 -0
  203. package/dist/chunks/cli-0.6.9-qef0vmv4.mjs +2 -0
  204. package/dist/chunks/cli-0.6.9-qfk8bh8k.mjs +20 -0
  205. package/dist/chunks/cli-0.6.9-qq2p34an.mjs +2 -0
  206. package/dist/chunks/cli-0.6.9-qwk9n0r3.mjs +4 -0
  207. package/dist/chunks/cli-0.6.9-r3p8fksb.mjs +2 -0
  208. package/dist/chunks/cli-0.6.9-r46qknk7.mjs +2 -0
  209. package/dist/chunks/cli-0.6.9-r81h8n5p.mjs +2 -0
  210. package/dist/chunks/cli-0.6.9-rcmd16qm.mjs +2 -0
  211. package/dist/chunks/cli-0.6.9-rmmwn2p7.mjs +2 -0
  212. package/dist/chunks/cli-0.6.9-s03y3b3q.mjs +2 -0
  213. package/dist/chunks/cli-0.6.9-s1r1tza8.mjs +133 -0
  214. package/dist/chunks/cli-0.6.9-s2pyty79.mjs +2 -0
  215. package/dist/chunks/cli-0.6.9-s4cwpcyg.mjs +2 -0
  216. package/dist/chunks/cli-0.6.9-sa2fxctp.mjs +2 -0
  217. package/dist/chunks/cli-0.6.9-sd2hp4aq.mjs +2 -0
  218. package/dist/chunks/cli-0.6.9-sg9116zb.mjs +17 -0
  219. package/dist/chunks/cli-0.6.9-sr9jy37c.mjs +3 -0
  220. package/dist/chunks/cli-0.6.9-sx115432.mjs +12 -0
  221. package/dist/chunks/cli-0.6.9-t2yrab6t.mjs +2 -0
  222. package/dist/chunks/cli-0.6.9-tae7g2d9.mjs +2 -0
  223. package/dist/chunks/cli-0.6.9-td7kr6wd.mjs +2 -0
  224. package/dist/chunks/cli-0.6.9-tenfy5s3.mjs +21 -0
  225. package/dist/chunks/cli-0.6.9-tkvj57rn.mjs +2 -0
  226. package/dist/chunks/cli-0.6.9-tn4basxv.mjs +2 -0
  227. package/dist/chunks/cli-0.6.9-tnf75x7v.mjs +2 -0
  228. package/dist/chunks/cli-0.6.9-tt8mt40f.mjs +2 -0
  229. package/dist/chunks/cli-0.6.9-tya05wpq.mjs +2 -0
  230. package/dist/chunks/cli-0.6.9-v3a8d4n8.mjs +12 -0
  231. package/dist/chunks/cli-0.6.9-v3yecwhs.mjs +34 -0
  232. package/dist/chunks/cli-0.6.9-vbzp917y.mjs +3 -0
  233. package/dist/chunks/cli-0.6.9-w56gxnbb.mjs +67 -0
  234. package/dist/chunks/cli-0.6.9-w6ee6p28.mjs +4 -0
  235. package/dist/chunks/cli-0.6.9-wr8a7whz.mjs +2 -0
  236. package/dist/chunks/cli-0.6.9-wrs935pe.mjs +3 -0
  237. package/dist/chunks/cli-0.6.9-x4xhf8vr.mjs +2 -0
  238. package/dist/chunks/cli-0.6.9-x9vbsw98.mjs +2 -0
  239. package/dist/chunks/cli-0.6.9-xd2h9tsn.mjs +2 -0
  240. package/dist/chunks/cli-0.6.9-xdzfwf1n.mjs +2 -0
  241. package/dist/chunks/cli-0.6.9-xpvddrex.mjs +4 -0
  242. package/dist/chunks/cli-0.6.9-y0wg39nk.mjs +2 -0
  243. package/dist/chunks/cli-0.6.9-yh3sfvca.mjs +2 -0
  244. package/dist/chunks/cli-0.6.9-yhp352r8.mjs +193 -0
  245. package/dist/chunks/cli-0.6.9-ymxkw0j9.mjs +5 -0
  246. package/dist/chunks/cli-0.6.9-ynh6kjv5.mjs +2 -0
  247. package/dist/chunks/cli-0.6.9-ytpaqmsk.mjs +45 -0
  248. package/dist/chunks/cli-0.6.9-z2400j8e.mjs +2 -0
  249. package/dist/chunks/cli-0.6.9-z3wh6pmj.mjs +4 -0
  250. package/dist/chunks/cli-0.6.9-z6aaad8t.mjs +10 -0
  251. package/dist/chunks/cli-0.6.9-zsnw0941.mjs +39 -0
  252. package/dist/chunks/cli-0.6.9-zzzn3e8b.mjs +16 -0
  253. package/dist/chunks/client-0.6.9-cz438b8v.mjs +1 -0
  254. package/dist/chunks/color-0.6.9-vdsgnwjj.mjs +1 -0
  255. package/dist/chunks/compact-0.6.9-gp0w7v9s.mjs +3 -0
  256. package/dist/chunks/config-0.6.9-f50cq2by.mjs +1 -0
  257. package/dist/chunks/config-0.6.9-zezbmxp9.mjs +1 -0
  258. package/dist/chunks/constants-0.6.9-d7fjn6ym.mjs +1 -0
  259. package/dist/chunks/context-0.6.9-vs4wf3qj.mjs +1 -0
  260. package/dist/chunks/context-noninteractive-0.6.9-3v8697je.mjs +1 -0
  261. package/dist/chunks/conversation-0.6.9-sq5hwdze.mjs +1 -0
  262. package/dist/chunks/copilotHeaders-0.6.9-kf7a254d.mjs +1 -0
  263. package/dist/chunks/copy-0.6.9-qfs2e58z.mjs +9 -0
  264. package/dist/chunks/cost-0.6.9-w97qsa6d.mjs +1 -0
  265. package/dist/chunks/createSSHSession-0.6.9-9r9vyh4c.mjs +1 -0
  266. package/dist/chunks/createSession-0.6.9-w8bj9hkr.mjs +1 -0
  267. package/dist/chunks/debug-0.6.9-p5c3pfsj.mjs +1 -0
  268. package/dist/chunks/defaultActionDeps-0.6.9-g6wka3f7.mjs +1367 -0
  269. package/dist/chunks/desktop-0.6.9-szcfghe5.mjs +1 -0
  270. package/dist/chunks/detectRepository-0.6.9-sv4rn6e9.mjs +1 -0
  271. package/dist/chunks/detection-0.6.9-avkk26gv.mjs +1 -0
  272. package/dist/chunks/diff-0.6.9-6qtw4swj.mjs +1 -0
  273. package/dist/chunks/doctor-0.6.9-wemp2503.mjs +1 -0
  274. package/dist/chunks/doctorDiagnostic-0.6.9-n4wcbma8.mjs +1 -0
  275. package/dist/chunks/earlyInput-0.6.9-7t2yxx2k.mjs +1 -0
  276. package/dist/chunks/effort-0.6.9-ad6129tk.mjs +10 -0
  277. package/dist/chunks/envLessBridgeConfig-0.6.9-9276szv2.mjs +1 -0
  278. package/dist/chunks/envUtils-0.6.9-ynm3aqgf.mjs +1 -0
  279. package/dist/chunks/environmentSelection-0.6.9-cjwzdh51.mjs +1 -0
  280. package/dist/chunks/environments-0.6.9-s5d4xqep.mjs +1 -0
  281. package/dist/chunks/errors-0.6.9-w9kte9cs.mjs +1 -0
  282. package/dist/chunks/exampleCommands-0.6.9-4056c0dz.mjs +1 -0
  283. package/dist/chunks/exit-0.6.9-j72je7w6.mjs +1 -0
  284. package/dist/chunks/explorer-0.6.9-98k1atn1.mjs +1 -0
  285. package/dist/chunks/export-0.6.9-s9zpgv4f.mjs +2 -0
  286. package/dist/chunks/extra-usage-0.6.9-6nj4st4n.mjs +1 -0
  287. package/dist/chunks/extra-usage-noninteractive-0.6.9-nwh6dbn1.mjs +1 -0
  288. package/dist/chunks/fast-0.6.9-r5349jvd.mjs +1 -0
  289. package/dist/chunks/feedback-0.6.9-ssn1fmcb.mjs +14 -0
  290. package/dist/chunks/firstPartyEventLogger-0.6.9-pm4x6st7.mjs +1 -0
  291. package/dist/chunks/git-0.6.9-y91x52y1.mjs +1 -0
  292. package/dist/chunks/githubModelsCredentials-0.6.9-kfr0nk73.mjs +1 -0
  293. package/dist/chunks/goal-0.6.9-3gwvk3bv.mjs +4 -0
  294. package/dist/chunks/grove-0.6.9-wmv3gysg.mjs +1 -0
  295. package/dist/chunks/growthbook-0.6.9-7ajmx6eh.mjs +1 -0
  296. package/dist/chunks/headless-0.6.9-6ab7stx4.mjs +2 -0
  297. package/dist/chunks/heapdump-0.6.9-1kx1h3ba.mjs +6 -0
  298. package/dist/chunks/help-0.6.9-rf486d17.mjs +1 -0
  299. package/dist/chunks/hookChains-0.6.9-pxna9psh.mjs +3 -0
  300. package/dist/chunks/hooks-0.6.9-wav1pakb.mjs +1 -0
  301. package/dist/chunks/hooks-0.6.9-zc69g73d.mjs +79 -0
  302. package/dist/chunks/ide-0.6.9-kgqwyzh1.mjs +3 -0
  303. package/dist/chunks/image-processor-napi-0.6.9-pa1ny79r.mjs +1 -0
  304. package/dist/chunks/inboundAttachments-0.6.9-jjfdegyr.mjs +1 -0
  305. package/dist/chunks/index-0.6.9-0nqhy7sy.mjs +1 -0
  306. package/dist/chunks/index-0.6.9-1bq0hpw2.mjs +1 -0
  307. package/dist/chunks/index-0.6.9-2snpdxy3.mjs +1 -0
  308. package/dist/chunks/index-0.6.9-5k23gfe9.mjs +1 -0
  309. package/dist/chunks/index-0.6.9-619t4kvv.mjs +9 -0
  310. package/dist/chunks/index-0.6.9-8kfhzkpy.mjs +1 -0
  311. package/dist/chunks/index-0.6.9-902sjqyc.mjs +9 -0
  312. package/dist/chunks/index-0.6.9-a2ssd4wq.mjs +30 -0
  313. package/dist/chunks/index-0.6.9-aqfgsev2.mjs +1 -0
  314. package/dist/chunks/index-0.6.9-arpthr5q.mjs +2 -0
  315. package/dist/chunks/index-0.6.9-bngr20xg.mjs +2 -0
  316. package/dist/chunks/index-0.6.9-ck4qgvty.mjs +1 -0
  317. package/dist/chunks/index-0.6.9-d2vjtgqs.mjs +1 -0
  318. package/dist/chunks/index-0.6.9-e3szhjja.mjs +1 -0
  319. package/dist/chunks/index-0.6.9-efqgg2fb.mjs +1 -0
  320. package/dist/chunks/index-0.6.9-ewht5a34.mjs +5 -0
  321. package/dist/chunks/index-0.6.9-g43bx48w.mjs +1 -0
  322. package/dist/chunks/index-0.6.9-jq16aq9c.mjs +1 -0
  323. package/dist/chunks/index-0.6.9-n4d1shjt.mjs +1 -0
  324. package/dist/chunks/index-0.6.9-r63gj39n.mjs +1 -0
  325. package/dist/chunks/index-0.6.9-rry8n9vj.mjs +1 -0
  326. package/dist/chunks/index-0.6.9-v2xp35sf.mjs +1 -0
  327. package/dist/chunks/index-0.6.9-vev4s22g.mjs +1 -0
  328. package/dist/chunks/init-0.6.9-h8jwxt6h.mjs +1 -0
  329. package/dist/chunks/initReplBridge-0.6.9-c10qt3gn.mjs +1 -0
  330. package/dist/chunks/ink-0.6.9-49s4s9jc.mjs +1 -0
  331. package/dist/chunks/insights-0.6.9-sag6cjh3.mjs +870 -0
  332. package/dist/chunks/install-0.6.9-s1h2dkak.mjs +1 -0
  333. package/dist/chunks/install-github-app-0.6.9-rgv15r8t.mjs +149 -0
  334. package/dist/chunks/install-slack-app-0.6.9-cpn9fgkg.mjs +1 -0
  335. package/dist/chunks/instrumentation-0.6.9-265vgh29.mjs +1 -0
  336. package/dist/chunks/interactiveHelpers-0.6.9-5p2xm7b4.mjs +1 -0
  337. package/dist/chunks/keybindings-0.6.9-8755gwzd.mjs +2 -0
  338. package/dist/chunks/knowledge-0.6.9-vv9d2yhp.mjs +2 -0
  339. package/dist/chunks/latestVersionCache-0.6.9-acef14hs.mjs +1 -0
  340. package/dist/chunks/loadAgentsDir-0.6.9-s5zmmsmj.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.9-e65pc8g0.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.6.9-k2ddma7b.mjs +1 -0
  343. package/dist/chunks/log-0.6.9-bb1wwfr9.mjs +1 -0
  344. package/dist/chunks/main-0.6.9-xp3yb12z.mjs +1 -0
  345. package/dist/chunks/managedEnv-0.6.9-9vjjgckq.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.9-3k9qwk6b.mjs +17 -0
  347. package/dist/chunks/mcp-0.6.9-74q0zmbx.mjs +1 -0
  348. package/dist/chunks/mcp-0.6.9-hnmfw09m.mjs +4 -0
  349. package/dist/chunks/mcpb-0.6.9-npmecrdw.mjs +1 -0
  350. package/dist/chunks/memory-0.6.9-r9amy13p.mjs +3 -0
  351. package/dist/chunks/model-0.6.9-j7qkjsh4.mjs +1 -0
  352. package/dist/chunks/model-0.6.9-qvbhjt5a.mjs +2 -0
  353. package/dist/chunks/node-0.6.9-7618k0cs.mjs +12 -0
  354. package/dist/chunks/oauth-0.6.9-10e6vje5.mjs +1 -0
  355. package/dist/chunks/openaiShim-0.6.9-pke3rkx3.mjs +14 -0
  356. package/dist/chunks/output-style-0.6.9-5dww84zv.mjs +1 -0
  357. package/dist/chunks/package-FMOR3ELU-0.6.9-tqcy00ry.mjs +1 -0
  358. package/dist/chunks/parseConnectUrl-0.6.9-rzx7fgrs.mjs +1 -0
  359. package/dist/chunks/parser-0.6.9-r5r8db6m.mjs +1 -0
  360. package/dist/chunks/passes-0.6.9-9ntxdmjs.mjs +1 -0
  361. package/dist/chunks/permissions-0.6.9-06k3424m.mjs +1 -0
  362. package/dist/chunks/permissions-0.6.9-qg4repwk.mjs +3 -0
  363. package/dist/chunks/plan-0.6.9-2bgtj9s7.mjs +1 -0
  364. package/dist/chunks/plist-0.6.9-qwz1tx1x.mjs +1 -0
  365. package/dist/chunks/plugin-0.6.9-tptgr2qf.mjs +29 -0
  366. package/dist/chunks/pluginStartupCheck-0.6.9-9dfate68.mjs +1 -0
  367. package/dist/chunks/plugins-0.6.9-qmzrjgkm.mjs +9 -0
  368. package/dist/chunks/preActionHook-0.6.9-kcp5zkcc.mjs +2 -0
  369. package/dist/chunks/print-0.6.9-m3fbd53e.mjs +57 -0
  370. package/dist/chunks/privacy-settings-0.6.9-16gpzrax.mjs +1 -0
  371. package/dist/chunks/process-0.6.9-3e3f5r17.mjs +1 -0
  372. package/dist/chunks/processBashCommand-0.6.9-542d591h.mjs +1 -0
  373. package/dist/chunks/processSlashCommand-0.6.9-esx1dxzr.mjs +9 -0
  374. package/dist/chunks/prompt-0.6.9-r0j2sxeh.mjs +1 -0
  375. package/dist/chunks/prompt-0.6.9-yqs9hbe5.mjs +1 -0
  376. package/dist/chunks/prompts-0.6.9-aejx76by.mjs +1 -0
  377. package/dist/chunks/protocolHandler-0.6.9-6f15y1bc.mjs +13 -0
  378. package/dist/chunks/provider-0.6.9-cq128p4x.mjs +2 -0
  379. package/dist/chunks/providerProfiles-0.6.9-angsmcpe.mjs +1 -0
  380. package/dist/chunks/providerValidation-0.6.9-jvq9j27j.mjs +6 -0
  381. package/dist/chunks/rate-limit-options-0.6.9-bb7szjxd.mjs +1 -0
  382. package/dist/chunks/registerSubcommands-0.6.9-ntgxbjdf.mjs +34 -0
  383. package/dist/chunks/registry-0.6.9-g3jk5jc0.mjs +1 -0
  384. package/dist/chunks/release-notes-0.6.9-za6qss4x.mjs +5 -0
  385. package/dist/chunks/reload-plugins-0.6.9-4kq8n1bm.mjs +2 -0
  386. package/dist/chunks/remote-env-0.6.9-zf6vx3hg.mjs +1 -0
  387. package/dist/chunks/remoteBridgeCore-0.6.9-pz9x9kkp.mjs +1 -0
  388. package/dist/chunks/remoteSession-0.6.9-b0yejcdh.mjs +1 -0
  389. package/dist/chunks/rename-0.6.9-v12x6k3n.mjs +1 -0
  390. package/dist/chunks/replBridgeHandle-0.6.9-5dnpvxp7.mjs +1 -0
  391. package/dist/chunks/replLauncher-0.6.9-b9vwe3a0.mjs +1 -0
  392. package/dist/chunks/resume-0.6.9-bd2pqpzx.mjs +2 -0
  393. package/dist/chunks/rewind-0.6.9-mtghn6v6.mjs +1 -0
  394. package/dist/chunks/rootOptions-0.6.9-kthybc4f.mjs +1 -0
  395. package/dist/chunks/sandbox-adapter-0.6.9-xy35en8q.mjs +1 -0
  396. package/dist/chunks/sandbox-toggle-0.6.9-5xezm83a.mjs +1 -0
  397. package/dist/chunks/session-0.6.9-m7jcvyhf.mjs +2 -0
  398. package/dist/chunks/sessionDiscovery-0.6.9-xtq2azg8.mjs +1 -0
  399. package/dist/chunks/sessionFileAccessHooks-0.6.9-cw7p2vz4.mjs +1 -0
  400. package/dist/chunks/sessionStorage-0.6.9-cf9hvj5p.mjs +1 -0
  401. package/dist/chunks/settings-0.6.9-3yt2knq2.mjs +1 -0
  402. package/dist/chunks/setup-0.6.9-zyhhsegx.mjs +5 -0
  403. package/dist/chunks/sinks-0.6.9-37az99sx.mjs +1 -0
  404. package/dist/chunks/skills-0.6.9-pmayt9xm.mjs +1 -0
  405. package/dist/chunks/startupProfiler-0.6.9-rqf2vjrq.mjs +1 -0
  406. package/dist/chunks/startupUpdateCheck-0.6.9-2n5g00f9.mjs +1 -0
  407. package/dist/chunks/state-0.6.9-6bv4xar6.mjs +1 -0
  408. package/dist/chunks/stats-0.6.9-vm6c7j7g.mjs +6 -0
  409. package/dist/chunks/status-0.6.9-fm5f7dvn.mjs +1 -0
  410. package/dist/chunks/stickers-0.6.9-wqd21rwz.mjs +1 -0
  411. package/dist/chunks/subprocessEnv-0.6.9-42b0wsjg.mjs +1 -0
  412. package/dist/chunks/tasks-0.6.9-f6fah65x.mjs +1 -0
  413. package/dist/chunks/teamHelpers-0.6.9-0azp8kbe.mjs +1 -0
  414. package/dist/chunks/teammateModeSnapshot-0.6.9-1b3b44py.mjs +1 -0
  415. package/dist/chunks/teleport-0.6.9-y0314abd.mjs +1 -0
  416. package/dist/chunks/terminalSetup-0.6.9-wp4j4emr.mjs +1 -0
  417. package/dist/chunks/theme-0.6.9-wd132tma.mjs +1 -0
  418. package/dist/chunks/thinkback-0.6.9-s2hgsb3p.mjs +1 -0
  419. package/dist/chunks/thinkback-play-0.6.9-n9nbpvnr.mjs +1 -0
  420. package/dist/chunks/toolPool-0.6.9-q3tw4r65.mjs +1 -0
  421. package/dist/chunks/toolSearch-0.6.9-d6we1981.mjs +1 -0
  422. package/dist/chunks/tools-0.6.9-a8ce0ts5.mjs +1 -0
  423. package/dist/chunks/trustedDevice-0.6.9-5mvbmmaw.mjs +1 -0
  424. package/dist/chunks/turndown.cjs-0.6.9-spamn9kh.mjs +69 -0
  425. package/dist/chunks/types-0.6.9-9jzm5cwt.mjs +1 -0
  426. package/dist/chunks/ultrareviewCommand-0.6.9-bpefwyej.mjs +4 -0
  427. package/dist/chunks/update-0.6.9-pxbtnmt1.mjs +86 -0
  428. package/dist/chunks/upgrade-0.6.9-1yghety6.mjs +1 -0
  429. package/dist/chunks/upload-0.6.9-g09ng6tg.mjs +7 -0
  430. package/dist/chunks/upstreamproxy-0.6.9-dk2q7qk2.mjs +14 -0
  431. package/dist/chunks/url-handler-napi-0.6.9-rh07p4qq.mjs +1 -0
  432. package/dist/chunks/usage-0.6.9-z5y3f792.mjs +1 -0
  433. package/dist/chunks/util-0.6.9-fzw6284w.mjs +1 -0
  434. package/dist/chunks/utils-0.6.9-0rg7h5a5.mjs +1 -0
  435. package/dist/chunks/vim-0.6.9-pjkbr7kq.mjs +1 -0
  436. package/dist/chunks/watcher-0.6.9-0r6bzvm6.mjs +1 -0
  437. package/dist/chunks/wiki-0.6.9-v7kdrm8t.mjs +132 -0
  438. package/dist/chunks/worktree-0.6.9-ef4xspe2.mjs +1 -0
  439. package/dist/chunks/worktreeModeEnabled-0.6.9-kvm9x26k.mjs +1 -0
  440. package/dist/chunks/wrapper-0.6.9-b63s2yhh.mjs +7 -0
  441. package/dist/claudin-vscode.vsix +0 -0
  442. package/dist/cli.mjs +2 -2
  443. package/package.json +1 -1
  444. package/dist/chunks/AgentTool-0.6.8-1h6eg55x.mjs +0 -1
  445. package/dist/chunks/App-0.6.8-gf7z37d0.mjs +0 -1
  446. package/dist/chunks/ApproveApiKey-0.6.8-z559z4n4.mjs +0 -1
  447. package/dist/chunks/AssistantSessionChooser-0.6.8-a964szce.mjs +0 -1
  448. package/dist/chunks/AutoModeOptInDialog-0.6.8-hmgphwsn.mjs +0 -1
  449. package/dist/chunks/BypassPermissionsModeDialog-0.6.8-9vwjqk2g.mjs +0 -1
  450. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.8-bmx62ftg.mjs +0 -1
  451. package/dist/chunks/ConsoleOAuthFlow-0.6.8-6xg5m0rs.mjs +0 -1
  452. package/dist/chunks/DiffDialog-0.6.8-m77gpjht.mjs +0 -7
  453. package/dist/chunks/Doctor-0.6.8-h33wtqvb.mjs +0 -1
  454. package/dist/chunks/ExplorerDialog-0.6.8-g4rjbnb6.mjs +0 -6
  455. package/dist/chunks/Grove-0.6.8-c6v8rps5.mjs +0 -1
  456. package/dist/chunks/ITermBackend-0.6.8-c6rr3der.mjs +0 -1
  457. package/dist/chunks/InvalidConfigDialog-0.6.8-rq8061vm.mjs +0 -1
  458. package/dist/chunks/InvalidSettingsDialog-0.6.8-k3gjdk9q.mjs +0 -1
  459. package/dist/chunks/MigrationDialog-0.6.8-fndbdavr.mjs +0 -1
  460. package/dist/chunks/Onboarding-0.6.8-p9c1cvpj.mjs +0 -1
  461. package/dist/chunks/ProviderManager-0.6.8-rgwzy8mv.mjs +0 -1
  462. package/dist/chunks/REPL-0.6.8-wz4ky583.mjs +0 -1
  463. package/dist/chunks/ResumeConversation-0.6.8-0vytwym2.mjs +0 -1
  464. package/dist/chunks/SnapshotUpdateDialog-0.6.8-j49mg943.mjs +0 -1
  465. package/dist/chunks/TeleportProgress-0.6.8-1w0czdzd.mjs +0 -1
  466. package/dist/chunks/TeleportRepoMismatchDialog-0.6.8-3tb748qg.mjs +0 -1
  467. package/dist/chunks/TeleportResumeWrapper-0.6.8-cchdkcj0.mjs +0 -1
  468. package/dist/chunks/TmuxBackend-0.6.8-83basabp.mjs +0 -9
  469. package/dist/chunks/ToolSearchTool-0.6.8-vz9cakde.mjs +0 -1
  470. package/dist/chunks/TrustDialog-0.6.8-9xfzmsa4.mjs +0 -1
  471. package/dist/chunks/activeProvider-0.6.8-z6bqkc89.mjs +0 -1
  472. package/dist/chunks/add-dir-0.6.8-maggp9sq.mjs +0 -1
  473. package/dist/chunks/agents-0.6.8-b17xcjhg.mjs +0 -3
  474. package/dist/chunks/agents-0.6.8-n3vcbv4n.mjs +0 -110
  475. package/dist/chunks/api-0.6.8-dx65vfgr.mjs +0 -1
  476. package/dist/chunks/asciicast-0.6.8-xdty46r6.mjs +0 -1
  477. package/dist/chunks/assistant-0.6.8-48pyb11z.mjs +0 -1
  478. package/dist/chunks/auth-0.6.8-jzmpk916.mjs +0 -1
  479. package/dist/chunks/auth-0.6.8-v4ggd1x2.mjs +0 -1
  480. package/dist/chunks/autoMode-0.6.8-e3tpbf8n.mjs +0 -48
  481. package/dist/chunks/autoUpdater-0.6.8-kjwba4kd.mjs +0 -1
  482. package/dist/chunks/backgroundHousekeeping-0.6.8-ahc5b93c.mjs +0 -1
  483. package/dist/chunks/branch-0.6.8-bht94rzm.mjs +0 -4
  484. package/dist/chunks/bridge-0.6.8-w3a5wvz5.mjs +0 -2
  485. package/dist/chunks/bridgeConfig-0.6.8-tcqxv3wr.mjs +0 -1
  486. package/dist/chunks/bridgeEnabled-0.6.8-bbk61bwx.mjs +0 -1
  487. package/dist/chunks/bridgeMain-0.6.8-4gdvjwd9.mjs +0 -88
  488. package/dist/chunks/bridgePointer-0.6.8-y9zbj5sw.mjs +0 -1
  489. package/dist/chunks/btw-0.6.8-p8v9ccqj.mjs +0 -1
  490. package/dist/chunks/buddy-0.6.8-cc9dgg1j.mjs +0 -3
  491. package/dist/chunks/cacache-0.6.8-sa10tzqt.mjs +0 -1
  492. package/dist/chunks/cache-probe-0.6.8-rb3gqp6p.mjs +0 -21
  493. package/dist/chunks/cacheStats-0.6.8-ayfpcw3z.mjs +0 -4
  494. package/dist/chunks/caches-0.6.8-z51zt2q7.mjs +0 -1
  495. package/dist/chunks/claudeDesktop-0.6.8-f2s8faxb.mjs +0 -1
  496. package/dist/chunks/claudemd-0.6.8-b32hs73z.mjs +0 -1
  497. package/dist/chunks/clear-0.6.8-wr581077.mjs +0 -1
  498. package/dist/chunks/clearTerminal-0.6.8-n1mdykjw.mjs +0 -1
  499. package/dist/chunks/cli-0.6.8-00w6vgmt.mjs +0 -4
  500. package/dist/chunks/cli-0.6.8-026meybw.mjs +0 -2
  501. package/dist/chunks/cli-0.6.8-070cxjdc.mjs +0 -2
  502. package/dist/chunks/cli-0.6.8-097dncsw.mjs +0 -2
  503. package/dist/chunks/cli-0.6.8-0dtwbbq2.mjs +0 -10
  504. package/dist/chunks/cli-0.6.8-0gpdjv55.mjs +0 -34
  505. package/dist/chunks/cli-0.6.8-0hn9sy42.mjs +0 -2
  506. package/dist/chunks/cli-0.6.8-0mb0d7wn.mjs +0 -3
  507. package/dist/chunks/cli-0.6.8-0mnxmayn.mjs +0 -2
  508. package/dist/chunks/cli-0.6.8-0rt710pa.mjs +0 -2
  509. package/dist/chunks/cli-0.6.8-0s41dm0j.mjs +0 -2
  510. package/dist/chunks/cli-0.6.8-0yz4b8v5.mjs +0 -2
  511. package/dist/chunks/cli-0.6.8-0zdwjw7h.mjs +0 -17
  512. package/dist/chunks/cli-0.6.8-1bmxpdky.mjs +0 -2
  513. package/dist/chunks/cli-0.6.8-1g5hjvgr.mjs +0 -3
  514. package/dist/chunks/cli-0.6.8-1k0se62h.mjs +0 -2
  515. package/dist/chunks/cli-0.6.8-1mnssvmz.mjs +0 -8
  516. package/dist/chunks/cli-0.6.8-1yx8jjck.mjs +0 -2
  517. package/dist/chunks/cli-0.6.8-21y1120z.mjs +0 -2
  518. package/dist/chunks/cli-0.6.8-239wrpj3.mjs +0 -2
  519. package/dist/chunks/cli-0.6.8-259kprym.mjs +0 -2
  520. package/dist/chunks/cli-0.6.8-25he0rqv.mjs +0 -2
  521. package/dist/chunks/cli-0.6.8-2e9hw0b1.mjs +0 -4
  522. package/dist/chunks/cli-0.6.8-2f4081dz.mjs +0 -2
  523. package/dist/chunks/cli-0.6.8-2h6sve00.mjs +0 -12
  524. package/dist/chunks/cli-0.6.8-2nda5zxh.mjs +0 -67
  525. package/dist/chunks/cli-0.6.8-2p06hgb1.mjs +0 -2
  526. package/dist/chunks/cli-0.6.8-2pj7sdxd.mjs +0 -2
  527. package/dist/chunks/cli-0.6.8-2qb9g75m.mjs +0 -2
  528. package/dist/chunks/cli-0.6.8-34gwg749.mjs +0 -2
  529. package/dist/chunks/cli-0.6.8-3a510y9k.mjs +0 -2
  530. package/dist/chunks/cli-0.6.8-3ewbgezt.mjs +0 -2
  531. package/dist/chunks/cli-0.6.8-3phwrcqa.mjs +0 -3
  532. package/dist/chunks/cli-0.6.8-3z78waf8.mjs +0 -4
  533. package/dist/chunks/cli-0.6.8-416cqzak.mjs +0 -2
  534. package/dist/chunks/cli-0.6.8-4a0ebxtv.mjs +0 -2
  535. package/dist/chunks/cli-0.6.8-4avmxq80.mjs +0 -6
  536. package/dist/chunks/cli-0.6.8-4d57xs6b.mjs +0 -2
  537. package/dist/chunks/cli-0.6.8-4jh3r7br.mjs +0 -2
  538. package/dist/chunks/cli-0.6.8-4zdzrvfa.mjs +0 -2
  539. package/dist/chunks/cli-0.6.8-5enet6dq.mjs +0 -2
  540. package/dist/chunks/cli-0.6.8-5gstf2n7.mjs +0 -2
  541. package/dist/chunks/cli-0.6.8-5n9bwjf9.mjs +0 -2
  542. package/dist/chunks/cli-0.6.8-5sexbrs8.mjs +0 -3
  543. package/dist/chunks/cli-0.6.8-5y8n5kpk.mjs +0 -2
  544. package/dist/chunks/cli-0.6.8-6050y1gw.mjs +0 -2
  545. package/dist/chunks/cli-0.6.8-61qkxc3j.mjs +0 -2
  546. package/dist/chunks/cli-0.6.8-6495m72a.mjs +0 -2
  547. package/dist/chunks/cli-0.6.8-6ccg5qmp.mjs +0 -2
  548. package/dist/chunks/cli-0.6.8-6nasamhy.mjs +0 -2
  549. package/dist/chunks/cli-0.6.8-6pf3s7fk.mjs +0 -6
  550. package/dist/chunks/cli-0.6.8-6tgf3xa0.mjs +0 -133
  551. package/dist/chunks/cli-0.6.8-6v315rd0.mjs +0 -2
  552. package/dist/chunks/cli-0.6.8-6wdxaa6q.mjs +0 -3
  553. package/dist/chunks/cli-0.6.8-6z1655sa.mjs +0 -2
  554. package/dist/chunks/cli-0.6.8-72sec87k.mjs +0 -3
  555. package/dist/chunks/cli-0.6.8-77sjcesf.mjs +0 -2
  556. package/dist/chunks/cli-0.6.8-7g7k6yt9.mjs +0 -2
  557. package/dist/chunks/cli-0.6.8-7nqm28z4.mjs +0 -2
  558. package/dist/chunks/cli-0.6.8-7rznct58.mjs +0 -2
  559. package/dist/chunks/cli-0.6.8-7t0cwmv0.mjs +0 -2
  560. package/dist/chunks/cli-0.6.8-7t8gpbd2.mjs +0 -6
  561. package/dist/chunks/cli-0.6.8-82xanm26.mjs +0 -3
  562. package/dist/chunks/cli-0.6.8-883y3p0j.mjs +0 -5348
  563. package/dist/chunks/cli-0.6.8-8cptc9vb.mjs +0 -4
  564. package/dist/chunks/cli-0.6.8-8ezmkwsw.mjs +0 -2
  565. package/dist/chunks/cli-0.6.8-8h913n7t.mjs +0 -2
  566. package/dist/chunks/cli-0.6.8-8jkm4bym.mjs +0 -2
  567. package/dist/chunks/cli-0.6.8-8zc9gtx8.mjs +0 -2
  568. package/dist/chunks/cli-0.6.8-93hp2f5g.mjs +0 -2
  569. package/dist/chunks/cli-0.6.8-9cxxg2ax.mjs +0 -2
  570. package/dist/chunks/cli-0.6.8-9f5w9wre.mjs +0 -2
  571. package/dist/chunks/cli-0.6.8-9m65pb3r.mjs +0 -18
  572. package/dist/chunks/cli-0.6.8-9pkhxd6z.mjs +0 -2
  573. package/dist/chunks/cli-0.6.8-9xem54f8.mjs +0 -2
  574. package/dist/chunks/cli-0.6.8-a7nmnbm4.mjs +0 -2
  575. package/dist/chunks/cli-0.6.8-a8zm3cbn.mjs +0 -5
  576. package/dist/chunks/cli-0.6.8-abapkbf0.mjs +0 -15
  577. package/dist/chunks/cli-0.6.8-ag8hcaw0.mjs +0 -2
  578. package/dist/chunks/cli-0.6.8-atjt49c4.mjs +0 -2
  579. package/dist/chunks/cli-0.6.8-b280gnkv.mjs +0 -1
  580. package/dist/chunks/cli-0.6.8-b2zms4ec.mjs +0 -2
  581. package/dist/chunks/cli-0.6.8-b3v9vbq6.mjs +0 -2
  582. package/dist/chunks/cli-0.6.8-b6c3tmkx.mjs +0 -2
  583. package/dist/chunks/cli-0.6.8-b6f3e10d.mjs +0 -2
  584. package/dist/chunks/cli-0.6.8-bdhpc7zj.mjs +0 -17
  585. package/dist/chunks/cli-0.6.8-bh09cgap.mjs +0 -6
  586. package/dist/chunks/cli-0.6.8-bp3vvgaw.mjs +0 -2
  587. package/dist/chunks/cli-0.6.8-bsqfs15y.mjs +0 -58
  588. package/dist/chunks/cli-0.6.8-bxcjrmby.mjs +0 -2
  589. package/dist/chunks/cli-0.6.8-c838p5hk.mjs +0 -3
  590. package/dist/chunks/cli-0.6.8-cbvnsxaa.mjs +0 -12
  591. package/dist/chunks/cli-0.6.8-cctyv31j.mjs +0 -4
  592. package/dist/chunks/cli-0.6.8-cthp7gx1.mjs +0 -2
  593. package/dist/chunks/cli-0.6.8-cv73s4x5.mjs +0 -4
  594. package/dist/chunks/cli-0.6.8-dk4bw9mq.mjs +0 -3
  595. package/dist/chunks/cli-0.6.8-dpz3wm8v.mjs +0 -2
  596. package/dist/chunks/cli-0.6.8-dvkyrzw7.mjs +0 -5
  597. package/dist/chunks/cli-0.6.8-dwwx58n6.mjs +0 -2
  598. package/dist/chunks/cli-0.6.8-dxtyt1wg.mjs +0 -2
  599. package/dist/chunks/cli-0.6.8-ee7wzgsq.mjs +0 -5
  600. package/dist/chunks/cli-0.6.8-ee9mr0z2.mjs +0 -2
  601. package/dist/chunks/cli-0.6.8-efkksxch.mjs +0 -2
  602. package/dist/chunks/cli-0.6.8-efve08ng.mjs +0 -2
  603. package/dist/chunks/cli-0.6.8-ekkrzmjw.mjs +0 -2
  604. package/dist/chunks/cli-0.6.8-eyg1sq7b.mjs +0 -2
  605. package/dist/chunks/cli-0.6.8-eypwe6gz.mjs +0 -15
  606. package/dist/chunks/cli-0.6.8-fhedvbz1.mjs +0 -15
  607. package/dist/chunks/cli-0.6.8-fnet85r6.mjs +0 -2
  608. package/dist/chunks/cli-0.6.8-g3yp49rz.mjs +0 -2
  609. package/dist/chunks/cli-0.6.8-gcnabbk4.mjs +0 -3
  610. package/dist/chunks/cli-0.6.8-gfsf3tvy.mjs +0 -2
  611. package/dist/chunks/cli-0.6.8-gmzxyn2t.mjs +0 -2
  612. package/dist/chunks/cli-0.6.8-grdpt7ss.mjs +0 -2
  613. package/dist/chunks/cli-0.6.8-gscmwgeh.mjs +0 -4
  614. package/dist/chunks/cli-0.6.8-gtwt16bp.mjs +0 -2
  615. package/dist/chunks/cli-0.6.8-hj3j54vb.mjs +0 -2
  616. package/dist/chunks/cli-0.6.8-hvckc721.mjs +0 -2
  617. package/dist/chunks/cli-0.6.8-j22112y9.mjs +0 -2
  618. package/dist/chunks/cli-0.6.8-j5wfgenk.mjs +0 -2
  619. package/dist/chunks/cli-0.6.8-j81d3bq4.mjs +0 -2
  620. package/dist/chunks/cli-0.6.8-j8mdppyz.mjs +0 -2
  621. package/dist/chunks/cli-0.6.8-janhze0q.mjs +0 -39
  622. package/dist/chunks/cli-0.6.8-jea2s05x.mjs +0 -2
  623. package/dist/chunks/cli-0.6.8-jf4zbgy5.mjs +0 -2
  624. package/dist/chunks/cli-0.6.8-jp8gk6z3.mjs +0 -2
  625. package/dist/chunks/cli-0.6.8-jp9zzk35.mjs +0 -2
  626. package/dist/chunks/cli-0.6.8-jx1wvs6x.mjs +0 -2
  627. package/dist/chunks/cli-0.6.8-k533p6s5.mjs +0 -2
  628. package/dist/chunks/cli-0.6.8-kjfxmp31.mjs +0 -2
  629. package/dist/chunks/cli-0.6.8-kkh9paa3.mjs +0 -2
  630. package/dist/chunks/cli-0.6.8-kv1xtman.mjs +0 -2
  631. package/dist/chunks/cli-0.6.8-kxp0gfzq.mjs +0 -4
  632. package/dist/chunks/cli-0.6.8-m1r6z413.mjs +0 -2
  633. package/dist/chunks/cli-0.6.8-m2hw29ah.mjs +0 -2
  634. package/dist/chunks/cli-0.6.8-m2yf7dzs.mjs +0 -2
  635. package/dist/chunks/cli-0.6.8-ma2wastm.mjs +0 -50
  636. package/dist/chunks/cli-0.6.8-mecr32eb.mjs +0 -24
  637. package/dist/chunks/cli-0.6.8-mkfx6c2h.mjs +0 -7
  638. package/dist/chunks/cli-0.6.8-n3rhca7k.mjs +0 -2
  639. package/dist/chunks/cli-0.6.8-n4ecq63e.mjs +0 -2
  640. package/dist/chunks/cli-0.6.8-nmdsnavk.mjs +0 -2
  641. package/dist/chunks/cli-0.6.8-nwtmpseh.mjs +0 -2
  642. package/dist/chunks/cli-0.6.8-nz7pwsys.mjs +0 -2
  643. package/dist/chunks/cli-0.6.8-p6rhsdxf.mjs +0 -2
  644. package/dist/chunks/cli-0.6.8-pgcmgfht.mjs +0 -2
  645. package/dist/chunks/cli-0.6.8-pmpv80vx.mjs +0 -2
  646. package/dist/chunks/cli-0.6.8-pz3sbced.mjs +0 -25
  647. package/dist/chunks/cli-0.6.8-pzbspy3n.mjs +0 -2
  648. package/dist/chunks/cli-0.6.8-q027tb7b.mjs +0 -2
  649. package/dist/chunks/cli-0.6.8-q3txjpb9.mjs +0 -2
  650. package/dist/chunks/cli-0.6.8-qg557m5n.mjs +0 -2
  651. package/dist/chunks/cli-0.6.8-r1yjkwda.mjs +0 -2
  652. package/dist/chunks/cli-0.6.8-r42pr0w8.mjs +0 -2
  653. package/dist/chunks/cli-0.6.8-r9jgzx43.mjs +0 -2
  654. package/dist/chunks/cli-0.6.8-rewjhmpq.mjs +0 -133
  655. package/dist/chunks/cli-0.6.8-reyv7f1y.mjs +0 -9
  656. package/dist/chunks/cli-0.6.8-rftvcrp4.mjs +0 -2
  657. package/dist/chunks/cli-0.6.8-rw4y8s92.mjs +0 -2
  658. package/dist/chunks/cli-0.6.8-s0geqcvz.mjs +0 -2
  659. package/dist/chunks/cli-0.6.8-s0s7zs2a.mjs +0 -24
  660. package/dist/chunks/cli-0.6.8-s6yd5ybz.mjs +0 -2
  661. package/dist/chunks/cli-0.6.8-s98bd3q2.mjs +0 -2
  662. package/dist/chunks/cli-0.6.8-sn09eprm.mjs +0 -2
  663. package/dist/chunks/cli-0.6.8-sz1r1tvd.mjs +0 -2
  664. package/dist/chunks/cli-0.6.8-sznj03wy.mjs +0 -3
  665. package/dist/chunks/cli-0.6.8-t1kd2tg3.mjs +0 -2
  666. package/dist/chunks/cli-0.6.8-t3th9jjg.mjs +0 -2
  667. package/dist/chunks/cli-0.6.8-ta6qf4we.mjs +0 -20
  668. package/dist/chunks/cli-0.6.8-tb4rrntr.mjs +0 -16
  669. package/dist/chunks/cli-0.6.8-tewmm6rt.mjs +0 -2
  670. package/dist/chunks/cli-0.6.8-tnqnaqpx.mjs +0 -3
  671. package/dist/chunks/cli-0.6.8-tzmx6gz0.mjs +0 -12
  672. package/dist/chunks/cli-0.6.8-tztjt9fh.mjs +0 -4
  673. package/dist/chunks/cli-0.6.8-v582jfcn.mjs +0 -4
  674. package/dist/chunks/cli-0.6.8-v9wg3pvs.mjs +0 -2
  675. package/dist/chunks/cli-0.6.8-vcpys5fx.mjs +0 -2
  676. package/dist/chunks/cli-0.6.8-vf9cagcj.mjs +0 -59
  677. package/dist/chunks/cli-0.6.8-vpaw67v2.mjs +0 -193
  678. package/dist/chunks/cli-0.6.8-vqhtd9ay.mjs +0 -2
  679. package/dist/chunks/cli-0.6.8-vseqtday.mjs +0 -21
  680. package/dist/chunks/cli-0.6.8-vwhx9xjq.mjs +0 -2
  681. package/dist/chunks/cli-0.6.8-wdjsawer.mjs +0 -3
  682. package/dist/chunks/cli-0.6.8-wdq4r1nd.mjs +0 -2
  683. package/dist/chunks/cli-0.6.8-wfy4hqb2.mjs +0 -2
  684. package/dist/chunks/cli-0.6.8-wh069qak.mjs +0 -2
  685. package/dist/chunks/cli-0.6.8-wj4r5nwg.mjs +0 -2
  686. package/dist/chunks/cli-0.6.8-wnjmpcsm.mjs +0 -2
  687. package/dist/chunks/cli-0.6.8-x87v5pq1.mjs +0 -45
  688. package/dist/chunks/cli-0.6.8-xj1ptmgh.mjs +0 -2
  689. package/dist/chunks/cli-0.6.8-y0p6bqj6.mjs +0 -2
  690. package/dist/chunks/cli-0.6.8-y2c1w6bt.mjs +0 -42
  691. package/dist/chunks/cli-0.6.8-y3hnde8e.mjs +0 -2
  692. package/dist/chunks/cli-0.6.8-yvfgg1kg.mjs +0 -2
  693. package/dist/chunks/cli-0.6.8-yvt0y45m.mjs +0 -28
  694. package/dist/chunks/cli-0.6.8-yztx4k12.mjs +0 -18
  695. package/dist/chunks/cli-0.6.8-z4wpf0ah.mjs +0 -2
  696. package/dist/chunks/client-0.6.8-8kz2zw01.mjs +0 -1
  697. package/dist/chunks/color-0.6.8-jhpvc051.mjs +0 -1
  698. package/dist/chunks/compact-0.6.8-0gcf2ncc.mjs +0 -3
  699. package/dist/chunks/config-0.6.8-dxk5q3qr.mjs +0 -1
  700. package/dist/chunks/config-0.6.8-xdt0r55h.mjs +0 -1
  701. package/dist/chunks/constants-0.6.8-49aaqy22.mjs +0 -1
  702. package/dist/chunks/context-0.6.8-tavd1s8s.mjs +0 -1
  703. package/dist/chunks/context-noninteractive-0.6.8-6vagjsgf.mjs +0 -1
  704. package/dist/chunks/conversation-0.6.8-10fvebzj.mjs +0 -1
  705. package/dist/chunks/copilotHeaders-0.6.8-fqca0jf7.mjs +0 -1
  706. package/dist/chunks/copy-0.6.8-rhzw5vyv.mjs +0 -9
  707. package/dist/chunks/cost-0.6.8-w3qf0kpn.mjs +0 -1
  708. package/dist/chunks/createSSHSession-0.6.8-r7cw30nn.mjs +0 -1
  709. package/dist/chunks/createSession-0.6.8-vwbe80jv.mjs +0 -1
  710. package/dist/chunks/debug-0.6.8-pzm167m4.mjs +0 -1
  711. package/dist/chunks/defaultActionDeps-0.6.8-nnx5s7ws.mjs +0 -1367
  712. package/dist/chunks/desktop-0.6.8-ef8y3qjr.mjs +0 -1
  713. package/dist/chunks/detectRepository-0.6.8-3ayp37pd.mjs +0 -1
  714. package/dist/chunks/detection-0.6.8-pdrw5y2x.mjs +0 -1
  715. package/dist/chunks/diff-0.6.8-fxk9tzbd.mjs +0 -1
  716. package/dist/chunks/doctor-0.6.8-ajzrj1jx.mjs +0 -1
  717. package/dist/chunks/doctorDiagnostic-0.6.8-w72jdksp.mjs +0 -1
  718. package/dist/chunks/earlyInput-0.6.8-ca9mzfzf.mjs +0 -1
  719. package/dist/chunks/effort-0.6.8-e6xp1ycv.mjs +0 -10
  720. package/dist/chunks/envLessBridgeConfig-0.6.8-9vz6evg2.mjs +0 -1
  721. package/dist/chunks/envUtils-0.6.8-vq8np9fm.mjs +0 -1
  722. package/dist/chunks/environmentSelection-0.6.8-mf3acav0.mjs +0 -1
  723. package/dist/chunks/environments-0.6.8-k7rgvnpj.mjs +0 -1
  724. package/dist/chunks/errors-0.6.8-svsjkqng.mjs +0 -1
  725. package/dist/chunks/exampleCommands-0.6.8-7qjc7y64.mjs +0 -1
  726. package/dist/chunks/exit-0.6.8-507vwyf9.mjs +0 -1
  727. package/dist/chunks/explorer-0.6.8-25m08xd0.mjs +0 -1
  728. package/dist/chunks/export-0.6.8-w1yn5sa3.mjs +0 -2
  729. package/dist/chunks/extra-usage-0.6.8-sahj9pr6.mjs +0 -1
  730. package/dist/chunks/extra-usage-noninteractive-0.6.8-3r3nczjf.mjs +0 -1
  731. package/dist/chunks/fast-0.6.8-jpkz65vs.mjs +0 -1
  732. package/dist/chunks/feedback-0.6.8-5w9gvrc0.mjs +0 -14
  733. package/dist/chunks/firstPartyEventLogger-0.6.8-b2w3hkeb.mjs +0 -1
  734. package/dist/chunks/git-0.6.8-drry71tr.mjs +0 -1
  735. package/dist/chunks/githubModelsCredentials-0.6.8-4phd2tn9.mjs +0 -1
  736. package/dist/chunks/goal-0.6.8-vp972bd7.mjs +0 -4
  737. package/dist/chunks/grove-0.6.8-9dr81tf3.mjs +0 -1
  738. package/dist/chunks/growthbook-0.6.8-fcwcztdp.mjs +0 -1
  739. package/dist/chunks/headless-0.6.8-m2jzbvg9.mjs +0 -2
  740. package/dist/chunks/heapdump-0.6.8-awp81a34.mjs +0 -6
  741. package/dist/chunks/help-0.6.8-hbsb7av5.mjs +0 -1
  742. package/dist/chunks/hookChains-0.6.8-04mbkzxt.mjs +0 -3
  743. package/dist/chunks/hooks-0.6.8-6x1xc1rx.mjs +0 -1
  744. package/dist/chunks/hooks-0.6.8-80h8h076.mjs +0 -79
  745. package/dist/chunks/ide-0.6.8-7vbxnmby.mjs +0 -3
  746. package/dist/chunks/image-processor-napi-0.6.8-8m23kpm0.mjs +0 -1
  747. package/dist/chunks/inboundAttachments-0.6.8-wcyd47px.mjs +0 -1
  748. package/dist/chunks/index-0.6.8-1q3w68f1.mjs +0 -1
  749. package/dist/chunks/index-0.6.8-1w8hv7a8.mjs +0 -1
  750. package/dist/chunks/index-0.6.8-2sp7v8r9.mjs +0 -2
  751. package/dist/chunks/index-0.6.8-3782mjyy.mjs +0 -1
  752. package/dist/chunks/index-0.6.8-6eeqw069.mjs +0 -1
  753. package/dist/chunks/index-0.6.8-7dmsg46k.mjs +0 -5
  754. package/dist/chunks/index-0.6.8-7prxs8kr.mjs +0 -1
  755. package/dist/chunks/index-0.6.8-azcjsyp8.mjs +0 -1
  756. package/dist/chunks/index-0.6.8-ccq5xheq.mjs +0 -2
  757. package/dist/chunks/index-0.6.8-dkdk0g9j.mjs +0 -1
  758. package/dist/chunks/index-0.6.8-dv8qe20v.mjs +0 -1
  759. package/dist/chunks/index-0.6.8-fsfq8ekm.mjs +0 -1
  760. package/dist/chunks/index-0.6.8-k3r9pz8v.mjs +0 -1
  761. package/dist/chunks/index-0.6.8-ke45hjqk.mjs +0 -1
  762. package/dist/chunks/index-0.6.8-kvjzqm75.mjs +0 -9
  763. package/dist/chunks/index-0.6.8-m9y8nqmz.mjs +0 -30
  764. package/dist/chunks/index-0.6.8-mc1wvtc8.mjs +0 -1
  765. package/dist/chunks/index-0.6.8-svxnm6ph.mjs +0 -1
  766. package/dist/chunks/index-0.6.8-vvg8dg6z.mjs +0 -9
  767. package/dist/chunks/index-0.6.8-wec8yb9e.mjs +0 -1
  768. package/dist/chunks/index-0.6.8-y535r49s.mjs +0 -1
  769. package/dist/chunks/index-0.6.8-yf6035wh.mjs +0 -1
  770. package/dist/chunks/index-0.6.8-zcf4qg35.mjs +0 -1
  771. package/dist/chunks/init-0.6.8-brwjmnyg.mjs +0 -1
  772. package/dist/chunks/initReplBridge-0.6.8-5jcj5ax3.mjs +0 -1
  773. package/dist/chunks/ink-0.6.8-cts7p4b7.mjs +0 -1
  774. package/dist/chunks/insights-0.6.8-h5b5ve9h.mjs +0 -870
  775. package/dist/chunks/install-0.6.8-e3gdw6r9.mjs +0 -1
  776. package/dist/chunks/install-github-app-0.6.8-hh3mzyfs.mjs +0 -149
  777. package/dist/chunks/install-slack-app-0.6.8-n4pb88x6.mjs +0 -1
  778. package/dist/chunks/instrumentation-0.6.8-67ewcnwm.mjs +0 -1
  779. package/dist/chunks/interactiveHelpers-0.6.8-ryjx3tbw.mjs +0 -1
  780. package/dist/chunks/keybindings-0.6.8-8v6q91kq.mjs +0 -2
  781. package/dist/chunks/knowledge-0.6.8-dn40ytkg.mjs +0 -2
  782. package/dist/chunks/latestVersionCache-0.6.8-xx081act.mjs +0 -1
  783. package/dist/chunks/loadAgentsDir-0.6.8-vhh6hfk9.mjs +0 -1
  784. package/dist/chunks/loadPluginHooks-0.6.8-p15wjdk7.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.8-tjd9ekbf.mjs +0 -1
  786. package/dist/chunks/log-0.6.8-srvm2n7a.mjs +0 -1
  787. package/dist/chunks/main-0.6.8-5mcvdtte.mjs +0 -1
  788. package/dist/chunks/managedEnv-0.6.8-3m2x6zgp.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.8-3dztd40j.mjs +0 -17
  790. package/dist/chunks/mcp-0.6.8-5msk2pvy.mjs +0 -4
  791. package/dist/chunks/mcp-0.6.8-nxyt74pa.mjs +0 -1
  792. package/dist/chunks/mcpb-0.6.8-v8q530w6.mjs +0 -1
  793. package/dist/chunks/memory-0.6.8-1pkjxmpb.mjs +0 -3
  794. package/dist/chunks/model-0.6.8-00wgempd.mjs +0 -2
  795. package/dist/chunks/model-0.6.8-99m80ayt.mjs +0 -1
  796. package/dist/chunks/node-0.6.8-b8rvxhkh.mjs +0 -12
  797. package/dist/chunks/oauth-0.6.8-c2r6j7j0.mjs +0 -1
  798. package/dist/chunks/openaiShim-0.6.8-z736wyft.mjs +0 -14
  799. package/dist/chunks/output-style-0.6.8-586m3zta.mjs +0 -1
  800. package/dist/chunks/package-FMOR3ELU-0.6.8-xe49mr3f.mjs +0 -1
  801. package/dist/chunks/parseConnectUrl-0.6.8-wawy5rxc.mjs +0 -1
  802. package/dist/chunks/parser-0.6.8-zjc9fwme.mjs +0 -1
  803. package/dist/chunks/passes-0.6.8-mn4rnfm9.mjs +0 -1
  804. package/dist/chunks/permissions-0.6.8-jdgt2sv8.mjs +0 -1
  805. package/dist/chunks/permissions-0.6.8-z6ybrhdp.mjs +0 -3
  806. package/dist/chunks/plan-0.6.8-9h16p6t0.mjs +0 -1
  807. package/dist/chunks/plist-0.6.8-ras7a7wc.mjs +0 -1
  808. package/dist/chunks/plugin-0.6.8-0p0a1k4b.mjs +0 -29
  809. package/dist/chunks/pluginStartupCheck-0.6.8-ff7hmaes.mjs +0 -1
  810. package/dist/chunks/plugins-0.6.8-fbp29vr3.mjs +0 -9
  811. package/dist/chunks/preActionHook-0.6.8-1qt932q1.mjs +0 -2
  812. package/dist/chunks/print-0.6.8-tm9918yr.mjs +0 -57
  813. package/dist/chunks/privacy-settings-0.6.8-5e2yd64z.mjs +0 -1
  814. package/dist/chunks/process-0.6.8-mqtgb3cx.mjs +0 -1
  815. package/dist/chunks/processBashCommand-0.6.8-xtx2v6da.mjs +0 -1
  816. package/dist/chunks/processSlashCommand-0.6.8-xgvzddwk.mjs +0 -9
  817. package/dist/chunks/prompt-0.6.8-57r1r589.mjs +0 -1
  818. package/dist/chunks/prompt-0.6.8-npwq825f.mjs +0 -1
  819. package/dist/chunks/prompts-0.6.8-ta5q8t8a.mjs +0 -1
  820. package/dist/chunks/protocolHandler-0.6.8-mf45pq35.mjs +0 -13
  821. package/dist/chunks/provider-0.6.8-pemvh2k5.mjs +0 -2
  822. package/dist/chunks/providerProfiles-0.6.8-t4rbsxrj.mjs +0 -1
  823. package/dist/chunks/providerValidation-0.6.8-jvfz53fe.mjs +0 -6
  824. package/dist/chunks/rate-limit-options-0.6.8-egm6fsa2.mjs +0 -1
  825. package/dist/chunks/registerSubcommands-0.6.8-c33k54ns.mjs +0 -34
  826. package/dist/chunks/registry-0.6.8-v7m02nk2.mjs +0 -1
  827. package/dist/chunks/release-notes-0.6.8-wwv5r86y.mjs +0 -5
  828. package/dist/chunks/reload-plugins-0.6.8-72v51g0k.mjs +0 -2
  829. package/dist/chunks/remote-env-0.6.8-gn37jake.mjs +0 -1
  830. package/dist/chunks/remoteBridgeCore-0.6.8-7cd0x0sw.mjs +0 -1
  831. package/dist/chunks/remoteSession-0.6.8-tr5ph176.mjs +0 -1
  832. package/dist/chunks/rename-0.6.8-8jb90c48.mjs +0 -1
  833. package/dist/chunks/replBridgeHandle-0.6.8-znyhk31n.mjs +0 -1
  834. package/dist/chunks/replLauncher-0.6.8-we5yqk5n.mjs +0 -1
  835. package/dist/chunks/resume-0.6.8-x8vd5cdx.mjs +0 -2
  836. package/dist/chunks/rewind-0.6.8-dg7aawme.mjs +0 -1
  837. package/dist/chunks/rootOptions-0.6.8-ezrfenmz.mjs +0 -1
  838. package/dist/chunks/sandbox-adapter-0.6.8-cfj9xd48.mjs +0 -1
  839. package/dist/chunks/sandbox-toggle-0.6.8-mffa8yr5.mjs +0 -1
  840. package/dist/chunks/session-0.6.8-6pyjb4jn.mjs +0 -2
  841. package/dist/chunks/sessionDiscovery-0.6.8-e3h9zvrp.mjs +0 -1
  842. package/dist/chunks/sessionFileAccessHooks-0.6.8-5q6x4jx9.mjs +0 -1
  843. package/dist/chunks/sessionStorage-0.6.8-3tvaj86g.mjs +0 -1
  844. package/dist/chunks/settings-0.6.8-m72ttv29.mjs +0 -1
  845. package/dist/chunks/setup-0.6.8-f3y64bte.mjs +0 -5
  846. package/dist/chunks/sinks-0.6.8-t8e55v3b.mjs +0 -1
  847. package/dist/chunks/skills-0.6.8-17ktqb7y.mjs +0 -1
  848. package/dist/chunks/startupProfiler-0.6.8-qj52vcw4.mjs +0 -1
  849. package/dist/chunks/startupUpdateCheck-0.6.8-51vrdbj6.mjs +0 -1
  850. package/dist/chunks/state-0.6.8-pwxe3dfk.mjs +0 -1
  851. package/dist/chunks/stats-0.6.8-fc152nhd.mjs +0 -6
  852. package/dist/chunks/status-0.6.8-bjgdnsz8.mjs +0 -1
  853. package/dist/chunks/stickers-0.6.8-dndn2kp3.mjs +0 -1
  854. package/dist/chunks/subprocessEnv-0.6.8-zzdkzkpq.mjs +0 -1
  855. package/dist/chunks/tasks-0.6.8-zjm7dnep.mjs +0 -1
  856. package/dist/chunks/teamHelpers-0.6.8-prrabxj1.mjs +0 -1
  857. package/dist/chunks/teammateModeSnapshot-0.6.8-21bj5sj0.mjs +0 -1
  858. package/dist/chunks/teleport-0.6.8-jvcjg7d7.mjs +0 -1
  859. package/dist/chunks/terminalSetup-0.6.8-9y4235w1.mjs +0 -1
  860. package/dist/chunks/theme-0.6.8-wvdhk95e.mjs +0 -1
  861. package/dist/chunks/thinkback-0.6.8-8dn71z5r.mjs +0 -1
  862. package/dist/chunks/thinkback-play-0.6.8-agrskwfn.mjs +0 -1
  863. package/dist/chunks/toolPool-0.6.8-90318hbv.mjs +0 -1
  864. package/dist/chunks/toolSearch-0.6.8-eyr73a52.mjs +0 -1
  865. package/dist/chunks/tools-0.6.8-mdjqydpm.mjs +0 -1
  866. package/dist/chunks/trustedDevice-0.6.8-b7fae7s5.mjs +0 -1
  867. package/dist/chunks/turndown.cjs-0.6.8-sgzhfavm.mjs +0 -69
  868. package/dist/chunks/types-0.6.8-4gf5x9jb.mjs +0 -1
  869. package/dist/chunks/ultrareviewCommand-0.6.8-5cdef89y.mjs +0 -4
  870. package/dist/chunks/update-0.6.8-hv3gahmz.mjs +0 -86
  871. package/dist/chunks/upgrade-0.6.8-w044cw9y.mjs +0 -1
  872. package/dist/chunks/upload-0.6.8-er3nq389.mjs +0 -7
  873. package/dist/chunks/upstreamproxy-0.6.8-zfg8pv8q.mjs +0 -14
  874. package/dist/chunks/url-handler-napi-0.6.8-1q2hrhb3.mjs +0 -1
  875. package/dist/chunks/usage-0.6.8-pc8gdf6b.mjs +0 -1
  876. package/dist/chunks/util-0.6.8-rt8y16fm.mjs +0 -1
  877. package/dist/chunks/utils-0.6.8-8nsbk9w4.mjs +0 -1
  878. package/dist/chunks/vim-0.6.8-y1wq10k6.mjs +0 -1
  879. package/dist/chunks/watcher-0.6.8-hq0y1y68.mjs +0 -1
  880. package/dist/chunks/wiki-0.6.8-jqbmvz1r.mjs +0 -132
  881. package/dist/chunks/worktree-0.6.8-hn8ac7q6.mjs +0 -1
  882. package/dist/chunks/worktreeModeEnabled-0.6.8-k0yys6b0.mjs +0 -1
  883. package/dist/chunks/wrapper-0.6.8-r1wx821t.mjs +0 -7
  884. /package/dist/chunks/{cli-0.6.8-0s2z302k.mjs → cli-0.6.9-2kd0dsnv.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.8-0fra5z78.mjs → cli-0.6.9-bvsdx3f8.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.8-akzaeas1.mjs → cli-0.6.9-jj198dy3.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.8-7cychtp8.mjs → cli-0.6.9-kf28v99d.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.8-aasxytdk.mjs → cli-0.6.9-r1m7xdaq.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.8-9bt8c69s.mjs → cli-0.6.9-r7fnwtpb.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.8-fe86xfp4.mjs → cli-0.6.9-yt963aje.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Mpa as g}from"./cli-0.6.9-8ymt6nd1.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
+ export{Bq as mU,d as nU,$J as oU,DJ as pU,GJ as qU};
@@ -0,0 +1,2 @@
1
+ import{Mpa as s}from"./cli-0.6.9-8ymt6nd1.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/0.6.9 (${e}${n}${t})`}var r=()=>{};
2
+ export{c as T1,i as U1,r as V1};
@@ -0,0 +1,2 @@
1
+ import{Cb as Y}from"./cli-0.6.9-r1m7xdaq.mjs";import{LU as N,MU as C}from"./cli-0.6.9-177spsqy.mjs";import{_da as A,aea as w}from"./cli-0.6.9-yhp352r8.mjs";import{Mga as B,Pga as k}from"./cli-0.6.9-prq3ecgt.mjs";import{Pha as W,Sha as j,tha as L,xha as E}from"./cli-0.6.9-jfyk8906.mjs";import{hia as G,oia as K}from"./cli-0.6.9-cky5efqh.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as wb,q as xb,p as yb,g as zb,d as Ab,R as Bb};
@@ -0,0 +1,18 @@
1
+ import{Oe as kZ,Ue as XX}from"./cli-0.6.9-tt8mt40f.mjs";import{Ye as YZ,Ze as gQ}from"./cli-0.6.9-30djh7wy.mjs";import{$C as FQ,$j as pJ,AH as XZ,Bz as fJ,CH as p0,Cz as BX,DH as _0,DP as LZ,EH as PJ,Ex as AX,Gr as vQ,HI as $0,Hj as VZ,Iq as MZ,Jz as mZ,KI as FZ,Kz as ZX,Lq as lQ,Lr as d0,OD as HQ,Or as hQ,RD as hX,TG as WZ,UG as RZ,VG as s0,XG as MJ,YG as F0,ZG as i0,Zr as VQ,_j as u0,aD as vX,al as qQ,an as HJ,as as KX,bn as DQ,bv as NQ,bz as NZ,cl as MX,cv as CX,cz as rQ,fA as IX,fF as OQ,fz as a0,gA as DX,gz as CZ,hk as dZ,iF as gX,ik as tQ,kr as aZ,kv as zJ,lF as j0,lk as r0,lv as WQ,mF as QX,nk as GZ,nr as FX,nv as bX,ok as UJ,on as GQ,or as cJ,ov as yZ,pn as EX,pr as LQ,pv as iQ,qn as l,rH as pZ,rn as A0,sP as lZ,uH as kJ,un as Z0,vH as JZ,vn as B0,wH as OJ,wr as U0,xH as WJ,xP as iZ,yH as ZZ,yn as n,yx as RQ,zH as QZ,zn as I0}from"./cli-0.6.9-gercjmay.mjs";import{CW as q0,DW as g0,nW as QJ,oW as nZ}from"./cli-0.6.9-aqma59cn.mjs";import{DX as R0,DZ as f0,MX as l0,YY as C,_Y as V,cZ as JJ,mZ as wZ}from"./cli-0.6.9-0f11memf.mjs";import{G1 as yX,z1 as hJ}from"./cli-0.6.9-31dtrem4.mjs";import{I1 as o,J1 as f,K1 as W,L1 as $}from"./cli-0.6.9-fepacdf9.mjs";import{M1 as o0}from"./cli-0.6.9-mb7kx11j.mjs";import{X1 as mJ,f2 as MQ}from"./cli-0.6.9-8v4sw3p1.mjs";import{h2 as DJ,i2 as JX}from"./cli-0.6.9-9eyrhanm.mjs";import{k5 as NJ,l5 as wQ,w2 as tJ,x2 as IQ}from"./cli-0.6.9-zzzn3e8b.mjs";import{Faa as Q0,Naa as IJ,R9 as fQ,S9 as M0,U9 as CJ,Y7 as t0,Z7 as cZ,eea as eJ,mea as BQ,o$ as z0,p$ as w0,paa as TZ,qaa as uZ,saa as eQ,v$ as m0}from"./cli-0.6.9-yhp352r8.mjs";import{Bea as e0,Cea as x0,Jea as h0,uea as y0,xea as b0,zea as oZ}from"./cli-0.6.9-xpvddrex.mjs";import{mfa as sJ,yfa as AQ}from"./cli-0.6.9-6vtgxtwc.mjs";import{Mga as t,Pga as _J}from"./cli-0.6.9-prq3ecgt.mjs";import{Dha as $Z,Fha as RX,Pha as D0,Sha as dJ}from"./cli-0.6.9-jfyk8906.mjs";import{hia as v0,oia as aJ}from"./cli-0.6.9-cky5efqh.mjs";import{Ipa as J0,Jpa as FJ,Lpa as $J,Mpa as a}from"./cli-0.6.9-8ymt6nd1.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=WQ(),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 RQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=NQ(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();CX();nZ();bX();TJ();vX();AX();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 Fe,VJ as Ge,xX as He,TJ as Ie,LJ as Je,pQ as Ke,qZ as Le,Sf as Me,dX as Ne};
@@ -0,0 +1,2 @@
1
+ import{Xc as z,Yc as K}from"./cli-0.6.9-mjx2tx8w.mjs";import{II as w,KI as J}from"./cli-0.6.9-gercjmay.mjs";import{M1 as H}from"./cli-0.6.9-mb7kx11j.mjs";import{Ipa as E,Mpa as G}from"./cli-0.6.9-8ymt6nd1.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 Tc,N as Uc};
@@ -0,0 +1,2 @@
1
+ import{ie as V,ke as B}from"./cli-0.6.9-k0gktpk5.mjs";import{DP as F,Oj as L,ny as Q,oy as q,vM as U,xM as w}from"./cli-0.6.9-gercjmay.mjs";import{A_ as k,v_ as K}from"./cli-0.6.9-yhp352r8.mjs";import{Pha as I,Sha as $}from"./cli-0.6.9-jfyk8906.mjs";import{hia as G,oia as _}from"./cli-0.6.9-cky5efqh.mjs";import{Mpa as Z}from"./cli-0.6.9-8ymt6nd1.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
+ export{h as ge,D as he};
@@ -0,0 +1,2 @@
1
+ import{kv as C,nv as X}from"./cli-0.6.9-gercjmay.mjs";import{M1 as W}from"./cli-0.6.9-mb7kx11j.mjs";import{C4 as J,J4 as V,q4 as I}from"./cli-0.6.9-zzzn3e8b.mjs";import{dfa as H,yfa as T}from"./cli-0.6.9-6vtgxtwc.mjs";import{Ipa as P,Mpa as Q}from"./cli-0.6.9-8ymt6nd1.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
+ export{v as $c,Y as ad};
@@ -0,0 +1,2 @@
1
+ import{Mpa as V}from"./cli-0.6.9-8ymt6nd1.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
+ export{U0 as goa,E0 as hoa,I0 as ioa,D0 as joa,b as koa,T as loa,K as moa,z as noa,B as ooa,x as poa,k as qoa,m as roa,G as soa,O as toa,y as uoa,l as voa,o as woa,i as xoa,D as yoa,R as zoa,x0 as Aoa,O0 as Boa,M as Coa,p0 as Doa,j6 as Eoa,nq as Foa};
@@ -0,0 +1,2 @@
1
+ import{e3 as H,f3 as _,g3 as Y,h3 as y}from"./cli-0.6.9-zzzn3e8b.mjs";import{j8 as M,l8 as f}from"./cli-0.6.9-yhp352r8.mjs";import{Bha as P,Fha as p,Pha as x,Sga as F,Sha as S,Uga as b}from"./cli-0.6.9-jfyk8906.mjs";import{hia as V,oia as R}from"./cli-0.6.9-cky5efqh.mjs";import{Eia as g,uia as U}from"./cli-0.6.9-2zwgc8vn.mjs";import{foa as A,rma as D,sma as W}from"./cli-0.6.9-88y94bf5.mjs";import{Mpa as L}from"./cli-0.6.9-8ymt6nd1.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function s(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function o(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var h=L(()=>{b();f();g();Z=new Map});var $q;var m=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
2
+ export{k as AU,s as BU,o as CU,u as DU,e as EU,qq as FU,Gq as GU,Jq as HU,Kq as IU,Qq as JU,h as KU,$q as LU,m as MU};
@@ -0,0 +1,9 @@
1
+ import{Dpa as V_,Epa as su,Gpa as K_,Hpa as f_}from"./cli-0.6.9-72xw2978.mjs";import{Kpa as H,Npa as $_}from"./cli-0.6.9-8ymt6nd1.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 wpa,D_ as xpa,yu as ypa,ou as zpa};
@@ -0,0 +1,2 @@
1
+ import{ld as t,md as pJ}from"./cli-0.6.9-tya05wpq.mjs";import{Qh as r,Rh as DJ}from"./cli-0.6.9-fqh9t0h9.mjs";import{Al as g,DP as P,Dl as _J,HC as VJ,QR as OJ,XC as PJ,YC as jJ,YF as T,Yl as c,aG as i,bD as o,bG as n,cD as yJ,cG as RJ,cm as MJ,hj as u,jn as h,nz as a,ok as zJ,oy as x,oz as AJ,xE as l,xM as I,yE as HJ}from"./cli-0.6.9-gercjmay.mjs";import{J4 as YJ}from"./cli-0.6.9-zzzn3e8b.mjs";import{Iba as UJ,U9 as QJ,Xda as O,Yda as NJ,eea as B,mea as H,oba as m,wba as f,xba as wJ}from"./cli-0.6.9-yhp352r8.mjs";import{yfa as ZJ}from"./cli-0.6.9-6vtgxtwc.mjs";import{Zfa as qJ}from"./cli-0.6.9-j94027pe.mjs";import{Mga as R,Pga as y}from"./cli-0.6.9-prq3ecgt.mjs";import{Bha as V,Fha as BJ,Pha as d,Sha as LJ,xha as KJ}from"./cli-0.6.9-jfyk8906.mjs";import{oia as C}from"./cli-0.6.9-cky5efqh.mjs";import{Eia as WJ,ria as U}from"./cli-0.6.9-2zwgc8vn.mjs";import{Yla as b,foa as j,nla as F}from"./cli-0.6.9-88y94bf5.mjs";import{Jpa as IJ}from"./cli-0.6.9-8ymt6nd1.mjs";yJ();DJ();j();ZJ();y();I();zJ();h();QJ();qJ();C();H();P();YJ();KJ();x();I();h();H();C();P();x();VJ();function D(){}j();y();NJ();LJ();WJ();BJ();AJ();UJ();H();i();HJ();OJ();RJ();wJ();MJ();_J();import{join as Q}from"path";var TJ=30;function L(){let q=((m()||{}).cleanupPeriodDays??TJ)*24*60*60*1000;return new Date(Date.now()-q)}function vJ(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,q){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await V().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function bJ(){let X=V(),J=L(),q=O.errors(),$=O.baseLogs(),G=await p(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Z)=>Z.isDirectory()&&Z.name.startsWith("mcp-logs-")).map((Z)=>Q($,Z.name));for(let Z of Y)G=vJ(G,await p(Z,J,!0)),await z(Z,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")B(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function SJ(){let X=L(),J={messages:0,errors:0},q=u(),$=V(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Q(q,K.name),Z;try{Z=await $.readdir(Y)}catch{J.errors++;continue}for(let W of Z)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await w(Q(Y,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Q(Y,W.name),N=Q(M,c),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await w(Q(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Q(N,_.name),k;try{k=await $.readdir(A)}catch{continue}for(let E of k){if(!E.isFile())continue;try{if(await w(Q(A,E.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Y,$)}return J}async function kJ(X,J,q=!0){let $=L(),G={messages:0,errors:0},K=V(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Z of Y){if(!Z.isFile()||!Z.name.endsWith(J))continue;try{if(await w(Q(X,Z.name),$,K))G.messages++}catch{G.errors++}}if(q)await z(X,K);return G}function EJ(){let X=Q(U(),"plans");return kJ(X,".md")}async function CJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));await Promise.all(Y.map(async(Z)=>{try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,q)}catch($){B($)}return J}async function hJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));for(let Z of Y)try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,q)}catch($){B($)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},q=V(),$=Q(U(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function s(){let{errors:X}=n();if(X.length>0&&f("cleanupPeriodDays")){d("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await bJ(),await SJ(),await EJ(),await CJ(),await hJ(),await xJ(),await a(),await l(L());let J=await g(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}i();pJ();var dJ=(jJ(),IJ(PJ));var v=600000;function iX(){r(),D(),dJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await s();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
2
+ export{iX as Y};
@@ -0,0 +1,3 @@
1
+ import{Cc as m,Dc as v,Ec as wk}from"./cli-0.6.9-rmmwn2p7.mjs";import{BF as Tk,PM as o,RM as t,TD as g,UD as a,UM as Dk,Vz as s,Wz as Gk,YM as e,ZM as Uk,aE as Lk,bu as l,cu as Vk,fQ as r,gQ as kk,kQ as jk,kn as p,ln as zk,wF as n,xF as V,yF as i}from"./cli-0.6.9-gercjmay.mjs";import{B2 as T,G2 as Jk,b3 as d,d3 as Ok}from"./cli-0.6.9-zzzn3e8b.mjs";import{H6 as c,K6 as Mk,w6 as f,x6 as Ik}from"./cli-0.6.9-sx115432.mjs";import{K7 as S,P7 as _k}from"./cli-0.6.9-8c45ksaw.mjs";import{Aca as u,Ica as $,Rda as _,Uda as Hk,iba as j,j8 as K,l8 as Zk,nca as x,p9 as P,rca as b,t9 as $k,xba as Kk}from"./cli-0.6.9-yhp352r8.mjs";import{Oea as J,Tea as Yk}from"./cli-0.6.9-xpvddrex.mjs";import{Kga as L,Lga as Bk}from"./cli-0.6.9-5tam8r4f.mjs";import{Pha as B,Sga as O,Sha as U,Uga as Rk}from"./cli-0.6.9-jfyk8906.mjs";import{bia as h,hia as Y,oia as Xk}from"./cli-0.6.9-cky5efqh.mjs";import{Eia as Wk,uia as E}from"./cli-0.6.9-2zwgc8vn.mjs";import{Fla as F,Hla as y,Xla as w,foa as z}from"./cli-0.6.9-88y94bf5.mjs";import{Eoa as A,Foa as Qk}from"./cli-0.6.9-143kz7xy.mjs";import{Npa as W}from"./cli-0.6.9-8ymt6nd1.mjs";Yk();z();$();Qk();z();z();Vk();Ok();Lk();Tk();Bk();Hk();Jk();var G=!1;function D(){if(G)return;if(G=!0,T()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||L().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();U();Kk();function C(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=x()?.env,Q=j("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();U();_k();Zk();zk();Wk();Xk();jk();wk();Ik();Dk();Mk();Uk();Gk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(m(),C(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-0.6.9-pm4x6st7.mjs"),import("./growthbook-0.6.9-7ajmx6eh.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),d(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),V())n();if(a())g();J("init_after_remote_settings_check"),u();let Q=Date.now();B("[init] configureGlobalMTLS starting"),f(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),c(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),D(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-0.6.9-dk2q7qk2.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-0.6.9-42b0wsjg.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-0.6.9-0azp8kbe.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(w()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
2
+ `),kk(1);return}return import("./InvalidConfigDialog-0.6.9-hjj8wzba.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(V()){if(w()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),v(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await xk()}catch(k){throw I=!1,k}}async function xk(){let{initializeTelemetry:k}=await import("./instrumentation-0.6.9-265vgh29.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
3
+ export{Yq as L,Zq as M};
@@ -0,0 +1,2 @@
1
+ import{Ff as N0,Gf as U0,If as VP}from"./cli-0.6.9-nahjphjz.mjs";import{KL as ZP,LL as m0,NL as qP,QK as WP,SL as CP,ZK as cP,_K as fP,aH as G0,aL as M0,bF as XP,bH as YP,bL as h0,cF as mP,cL as T0,dL as d0,gL as R0,hM as C0,kv as J0,lF as L0,lM as pP,lv as QP,nF as i0,nL as u0,nv as j0,qn as h,rn as c0,sn as p,tn as w0,un as r,vn as W0,yn as O0,zn as EP}from"./cli-0.6.9-gercjmay.mjs";import{BW as z0,DW as TP,GW as D0,HW as LP,nW as JP,oW as hP}from"./cli-0.6.9-aqma59cn.mjs";import{CX as AP,DX as I0,DZ as q0,MX as k0,WY as C,YY as X,_Y as L,cZ as F0,sZ as GP,xX as PP}from"./cli-0.6.9-0f11memf.mjs";import{I1 as n,J1 as J,K1 as Q,L1 as a}from"./cli-0.6.9-fepacdf9.mjs";import{M1 as $0}from"./cli-0.6.9-mb7kx11j.mjs";import{h2 as A0,i2 as dP}from"./cli-0.6.9-9eyrhanm.mjs";import{_5 as e0,q6 as gP}from"./cli-0.6.9-zzzn3e8b.mjs";import{Eaa as H0,Faa as zP,Naa as p0,Y7 as _,Z7 as r0,jea as s0,maa as y0,mea as SP,naa as B0,oaa as KP}from"./cli-0.6.9-yhp352r8.mjs";import{Kga as g0,Lga as _P}from"./cli-0.6.9-5tam8r4f.mjs";import{Mga as m,Pga as IP}from"./cli-0.6.9-prq3ecgt.mjs";import{hia as f0,oia as t0}from"./cli-0.6.9-cky5efqh.mjs";import{Ipa as e,Mpa as P0}from"./cli-0.6.9-8ymt6nd1.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
2
+ export{bG as wf,$P as xf,uG as yf,jP as zf,tG as Af,uP as Bf,VJ as Cf,aP as Df};
@@ -0,0 +1,2 @@
1
+ import{Hr as I,Kr as X}from"./cli-0.6.9-gercjmay.mjs";import{Eia as W,uia as H}from"./cli-0.6.9-2zwgc8vn.mjs";import{Mpa as V}from"./cli-0.6.9-8ymt6nd1.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
+ export{q as Fc,F as Gc,K as Hc,Q as Ic,R as Jc,_ as Kc,j as Lc,Y as Mc};
@@ -0,0 +1,2 @@
1
+ import{Ai as C,yi as H}from"./cli-0.6.9-8hye8y46.mjs";import{Bi as k,Ci as y}from"./cli-0.6.9-fgkzcrmd.mjs";import{_1 as X,a2 as Y,f2 as R}from"./cli-0.6.9-8v4sw3p1.mjs";import{h2 as G,i2 as m}from"./cli-0.6.9-9eyrhanm.mjs";import{L2 as w,M2 as E,b6 as B,q6 as f}from"./cli-0.6.9-zzzn3e8b.mjs";import{Ica as x,eea as Q,kca as S,mea as D,nca as j}from"./cli-0.6.9-yhp352r8.mjs";import{Kga as V,Lga as b}from"./cli-0.6.9-5tam8r4f.mjs";import{apa as W,spa as I}from"./cli-0.6.9-cp5fabjc.mjs";import{Mpa as Z}from"./cli-0.6.9-8ymt6nd1.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 vi,A as wi};
@@ -0,0 +1,2 @@
1
+ import{Eoa as M,Foa as Y}from"./cli-0.6.9-143kz7xy.mjs";import{Mpa as W}from"./cli-0.6.9-8ymt6nd1.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
+ export{$ as pia,N as qia,X as ria,_ as sia,j as tia,U as uia,I as via,S as wia,T as xia,c as yia,L as zia,w as Aia,z as Bia,O as Cia,x as Dia,k as Eia};
@@ -0,0 +1,2 @@
1
+ import{Mpa as b}from"./cli-0.6.9-8ymt6nd1.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as Ve,k as We,q as Xe,w as Ye,g as Ze};
@@ -0,0 +1,2 @@
1
+ import{Mpa as j}from"./cli-0.6.9-8ymt6nd1.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{x as z1,y as A1,z as B1,A as C1,B as D1,C as E1,D as F1,k as G1};
@@ -0,0 +1,2 @@
1
+ import{Mga as X,Pga as z}from"./cli-0.6.9-prq3ecgt.mjs";import{Pha as $,Sha as P,sha as Z,xha as O}from"./cli-0.6.9-jfyk8906.mjs";import{hia as Y,oia as H}from"./cli-0.6.9-cky5efqh.mjs";import{Mpa as x}from"./cli-0.6.9-8ymt6nd1.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{N as kf,R as lf,U as mf,j as nf,D as of,L as pf,m as qf};
@@ -0,0 +1,2 @@
1
+ import{$A as P,MN as f,NN as L,SB as K,UB as I,VB as _,XB as p,XN as r,eQ as i,fB as b,lB as j,uw as T}from"./cli-0.6.9-gercjmay.mjs";import{pU as A,qU as n}from"./cli-0.6.9-0j0w045z.mjs";import{Mga as E,Pga as C}from"./cli-0.6.9-prq3ecgt.mjs";import{Bha as M,Fha as m,Pha as Z,Sga as F,Sha as u,Uga as S}from"./cli-0.6.9-jfyk8906.mjs";import{Jna as v,eka as Y,fka as k,foa as c}from"./cli-0.6.9-88y94bf5.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
+ export{Zq as Qa};
@@ -0,0 +1,3 @@
1
+ import{t as G0}from"./cli-0.6.9-ejvhaena.mjs";import{M as p0}from"./cli-0.6.9-268fcggy.mjs";import{Jb as E0}from"./cli-0.6.9-618nhe26.mjs";import{Ob as k0}from"./cli-0.6.9-7zyvegv3.mjs";import{vc as P0,xc as Fc}from"./cli-0.6.9-tn4basxv.mjs";import{Ac as N,Bc as uc}from"./cli-0.6.9-dhg2zjfr.mjs";import{Dc as Q0,Ec as hc}from"./cli-0.6.9-rmmwn2p7.mjs";import{Zc as n0,_c as x0}from"./cli-0.6.9-b0y0kf38.mjs";import{PK as _0,XR as O0,ZK as j0,bG as y0,cG as _c,fS as b0,gE as Y0,gQ as d,hS as B0,iQ as W0,jF as m0,jv as X,kE as lc,kF as g0,kQ as Ic,kS as ac,lF as r,lL as u0,nF as A0,nL as r0,nS as D0,nv as l0,pS as Tc,qn as p,rn as K0,sF as Y,sn as f0,tF as M0,tn as N0,uF as Z0,un as i0,vF as Mc,vn as d0,yn as W,zn as j}from"./cli-0.6.9-gercjmay.mjs";import{DX as G,DZ as x,UX as X0,YX as oc,YY as c0,_Y as y,cZ as g}from"./cli-0.6.9-0f11memf.mjs";import{I1 as e,J1 as m,K1 as U,L1 as C}from"./cli-0.6.9-fepacdf9.mjs";import{C2 as H0,G2 as mc,i3 as J0,j3 as nc}from"./cli-0.6.9-zzzn3e8b.mjs";import{Ica as I0,Rda as z0,Uda as ic,eca as V0,kba as V,kca as s,nca as t,oba as J,pca as q0,rba as w0,tba as U0,xba as k}from"./cli-0.6.9-yhp352r8.mjs";import{Oea as R,Tea as cc}from"./cli-0.6.9-xpvddrex.mjs";import{kfa as C0,sfa as L0,yfa as fc}from"./cli-0.6.9-6vtgxtwc.mjs";import{Mga as q,Pga as E}from"./cli-0.6.9-prq3ecgt.mjs";import{Sha as $0}from"./cli-0.6.9-jfyk8906.mjs";import{Bia as R0,Eia as e0,uia as K}from"./cli-0.6.9-2zwgc8vn.mjs";import{Rka as a0,Xma as T0,foa as v0}from"./cli-0.6.9-88y94bf5.mjs";import{Ipa as D,Npa as L}from"./cli-0.6.9-8ymt6nd1.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-0.6.9-49s4s9jc.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-0.6.9-gqa8pkn6.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-0.6.9-192qpt8b.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-0.6.9-dahc1ev9.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-0.6.9-nn288md6.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-0.6.9-avg93sya.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-0.6.9-qhjbrc90.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-0.6.9-jxa6nz5k.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-0.6.9-4a8grmg8.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 l,Lc as m,Gf as n,wc as o,z as p,Ef as q,kf as r,pf as s};
@@ -0,0 +1,3 @@
1
+ import{A0 as N,v0 as d,w0 as X}from"./cli-0.6.9-a5zs8qb2.mjs";import{Ica as p,Jba as O,Kba as f,eea as B,kca as U,mea as y,nca as G}from"./cli-0.6.9-yhp352r8.mjs";import{gia as x,oia as b}from"./cli-0.6.9-cky5efqh.mjs";import{Eia as E,ria as H}from"./cli-0.6.9-2zwgc8vn.mjs";import{Xla as w,foa as P}from"./cli-0.6.9-88y94bf5.mjs";import{apa as k,spa as S}from"./cli-0.6.9-cp5fabjc.mjs";import{Ipa as M,Mpa as R}from"./cli-0.6.9-8ymt6nd1.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
+ export{zq as _e,Jq as $e,C as af,h as bf,Kq as cf,Qq as df,g as ef};
@@ -0,0 +1,3 @@
1
+ import{AB as $f,Dl as yf,PR as Bf,QR as Hf,Ql as X,Vl as Af,aH as v,bH as zf,iQ as n,il as m,kQ as Xf,lF as S,mF as qf,tl as R,wl as N,xl as M,yn as c,zB as Z,zn as Yf}from"./cli-0.6.9-gercjmay.mjs";import{ZS as a,_S as Jf}from"./cli-0.6.9-khjkzjgr.mjs";import{DX as If,DZ as _f,YY as T,_Y as d}from"./cli-0.6.9-0f11memf.mjs";import{J1 as Y,K1 as D,L1 as P}from"./cli-0.6.9-fepacdf9.mjs";import{M1 as Of}from"./cli-0.6.9-mb7kx11j.mjs";import{n8 as b,p8 as Gf}from"./cli-0.6.9-yhp352r8.mjs";import{Mga as L,Pga as e}from"./cli-0.6.9-prq3ecgt.mjs";import{Pha as W,Sha as ff}from"./cli-0.6.9-jfyk8906.mjs";import{Ipa as g,Jpa as s,Mpa as k}from"./cli-0.6.9-8ymt6nd1.mjs";function E(){(Hf(),s(Bf)).saveWorktreeState(null)}function l({onDone:K,onCancel:_}){let[$,y]=q.useState("loading"),[O,I]=q.useState([]),[G,z]=q.useState(0),[p,A]=q.useState(),f=m();if(q.useEffect(()=>{async function B(){let J=[],H=await b("git",["status","--porcelain"]);if(H.stdout)J=H.stdout.split(`
2
+ `).filter((V)=>V.trim()!==""),I(J);if(f){let{stdout:V}=await b("git",["rev-list","--count",`${f.originalHeadCommit}..HEAD`]),w=parseInt(V.trim())||0;if(z(w),J.length===0&&w===0){y("removing"),M().then(()=>{process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A("Worktree removed (no changes)")}).catch((t)=>{W(`Failed to clean up worktree: ${t}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway")}).then(()=>{y("done")});return}else y("asking")}}B()},[f]),q.useEffect(()=>{if($==="done")K(p)},[$,K,p]),!f)return K("No active worktree session found",{display:"system"}),null;if($==="loading"||$==="done")return null;async function j(B){if(!f)return;let J=Boolean(f.tmuxSessionName);if(B==="keep"||B==="keep-with-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),J)A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${f.tmuxSessionName}`);else A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}`);y("done")}else if(B==="keep-kill-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A(`Worktree kept at ${f.worktreePath} on branch ${f.worktreeBranch}. Tmux session terminated.`),y("done")}else if(B==="remove"||B==="remove-with-tmux"){if(y("removing"),L("tengu_worktree_removed",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);try{await M(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.()}catch(V){W(`Failed to clean up worktree: ${V}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway"),y("done");return}let H=J?" Tmux session terminated.":"";if(G>0&&O.length>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} and uncommitted changes were discarded.${H}`);else if(G>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} on ${f.worktreeBranch} ${G===1?"was":"were"} discarded.${H}`);else if(O.length>0)A(`Worktree removed. Uncommitted changes were discarded.${H}`);else A(`Worktree removed.${H}`);y("done")}}if($==="keeping")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Keeping worktree…"})]});if($==="removing")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Removing worktree…"})]});let x=f.worktreeBranch,U=O.length>0,F=G>0,Q="";if(U&&F)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"} and ${G} ${G===1?"commit":"commits"} on ${x}. All will be lost if you remove.`;else if(U)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if(F)Q=`You have ${G} ${G===1?"commit":"commits"} on ${x}. The branch will be deleted if you remove the worktree.`;else Q="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function r(){if(_){_();return}j("keep")}let h=U||F?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(f.tmuxSessionName),o=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${f.worktreePath}. Reattach with: tmux attach -t ${f.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${f.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:h}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${f.worktreePath}`},{label:"Remove worktree",value:"remove",description:h}];return Y(c,{title:"Exiting worktree session",subtitle:Q,onCancel:r,children:Y(S,{defaultFocusValue:C?"keep-with-tmux":"keep",options:o,onChange:j})})}var q;var u=k(()=>{e();ff();_f();Gf();Af();$f();yf();qf();Yf();zf();P();q=g(Of(),1)});function Qf(){return a(Kf)??"Goodbye!"}function xf(K){let _=i.c(5),{showWorktree:$,onDone:y,onCancel:O}=K,I;if(_[0]!==y)I=async function(p){y(p??Qf()),await n(0,"prompt_input_exit")},_[0]=y,_[1]=I;else I=_[1];let G=I;if($){let z;if(_[2]!==O||_[3]!==G)z=Y(l,{onDone:G,onCancel:O}),_[2]=O,_[3]=G,_[4]=z;else z=_[4];return z}return null}var i,Kf;var Vf=k(()=>{Jf();Xf();u();P();i=g(If(),1),Kf=["Goodbye!","See ya!","Bye!","Catch you later!"]});
3
+ export{xf as cc,Vf as dc};