@claudiolabs/claudin 0.7.6 → 1.0.3

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 (911) hide show
  1. package/README.md +15 -1
  2. package/bin/claudin.exe +12 -0
  3. package/cli-wrapper.cjs +132 -0
  4. package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +1 -0
  5. package/dist/chunks/App-1.0.3-rd1a3qee.mjs +1 -0
  6. package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +1 -0
  7. package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +1 -0
  8. package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +1 -0
  9. package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +1 -0
  12. package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +7 -0
  13. package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +1 -0
  14. package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +6 -0
  15. package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +1 -0
  16. package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +1 -0
  17. package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +1 -0
  18. package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +1 -0
  19. package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +1 -0
  20. package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +1 -0
  21. package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +1 -0
  22. package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +1 -0
  23. package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +1 -0
  24. package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +1 -0
  25. package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +1 -0
  26. package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +1 -0
  27. package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +1 -0
  28. package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +9 -0
  29. package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +1 -0
  30. package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +1 -0
  31. package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +1 -0
  32. package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +1 -0
  33. package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +1 -0
  34. package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +110 -0
  35. package/dist/chunks/agents-1.0.3-0qny02r7.mjs +3 -0
  36. package/dist/chunks/api-1.0.3-j9q39zt3.mjs +1 -0
  37. package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +1 -0
  38. package/dist/chunks/assistant-1.0.3-8swg0237.mjs +1 -0
  39. package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +1 -0
  40. package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +1 -0
  41. package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +48 -0
  42. package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +1 -0
  43. package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +1 -0
  44. package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +4 -0
  45. package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +2 -0
  46. package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +1 -0
  47. package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +1 -0
  48. package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +88 -0
  49. package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +1 -0
  50. package/dist/chunks/btw-1.0.3-7vqng7en.mjs +1 -0
  51. package/dist/chunks/buddy-1.0.3-k48yw852.mjs +3 -0
  52. package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +1 -0
  53. package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +21 -0
  54. package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +4 -0
  55. package/dist/chunks/caches-1.0.3-syrefgh1.mjs +1 -0
  56. package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +1 -0
  57. package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +1 -0
  58. package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +1 -0
  59. package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +1 -0
  60. package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +2 -0
  61. package/dist/chunks/cli-1.0.3-087x46pf.mjs +2 -0
  62. package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +2 -0
  63. package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +2 -0
  64. package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +1 -0
  65. package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +2 -0
  66. package/dist/chunks/cli-1.0.3-10cqqc79.mjs +2 -0
  67. package/dist/chunks/cli-1.0.3-13m8868e.mjs +2 -0
  68. package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +2 -0
  69. package/dist/chunks/cli-1.0.3-1462khnb.mjs +3 -0
  70. package/dist/chunks/cli-1.0.3-17cer107.mjs +2 -0
  71. package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +4 -0
  72. package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +2 -0
  73. package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +4 -0
  74. package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +2 -0
  75. package/dist/chunks/cli-1.0.3-1m413b59.mjs +2 -0
  76. package/dist/chunks/cli-1.0.3-1psnx21q.mjs +2 -0
  77. package/dist/chunks/cli-1.0.3-1v65dc93.mjs +2 -0
  78. package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +2 -0
  79. package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +2 -0
  80. package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +2 -0
  81. package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +2 -0
  82. package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +5471 -0
  83. package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +2 -0
  84. package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +2 -0
  85. package/dist/chunks/cli-1.0.3-3gtteknj.mjs +2 -0
  86. package/dist/chunks/cli-1.0.3-3j050hfw.mjs +3 -0
  87. package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +2 -0
  88. package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +2 -0
  89. package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +3 -0
  90. package/dist/chunks/cli-1.0.3-3y945bqk.mjs +2 -0
  91. package/dist/chunks/cli-1.0.3-4eym93f1.mjs +2 -0
  92. package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +199 -0
  93. package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +2 -0
  94. package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +12 -0
  95. package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +2 -0
  96. package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +4 -0
  97. package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +2 -0
  98. package/dist/chunks/cli-1.0.3-5kneybr4.mjs +2 -0
  99. package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +16 -0
  100. package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +6 -0
  101. package/dist/chunks/cli-1.0.3-5w74xeth.mjs +3 -0
  102. package/dist/chunks/cli-1.0.3-607t5t97.mjs +2 -0
  103. package/dist/chunks/cli-1.0.3-627y4tma.mjs +2 -0
  104. package/dist/chunks/cli-1.0.3-63tn3q21.mjs +2 -0
  105. package/dist/chunks/cli-1.0.3-63xjee3t.mjs +3 -0
  106. package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +4 -0
  107. package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +21 -0
  108. package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +2 -0
  109. package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +2 -0
  110. package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +2 -0
  111. package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +3 -0
  112. package/dist/chunks/cli-1.0.3-82ky54w7.mjs +15 -0
  113. package/dist/chunks/cli-1.0.3-87me6r9c.mjs +2 -0
  114. package/dist/chunks/cli-1.0.3-8a694ts0.mjs +6 -0
  115. package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +2 -0
  116. package/dist/chunks/cli-1.0.3-8hw15ers.mjs +2 -0
  117. package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +2 -0
  118. package/dist/chunks/cli-1.0.3-960aw98y.mjs +2 -0
  119. package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +2 -0
  120. package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +3 -0
  121. package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +2 -0
  122. package/dist/chunks/cli-1.0.3-a630qcdb.mjs +2 -0
  123. package/dist/chunks/cli-1.0.3-ancybhm3.mjs +2 -0
  124. package/dist/chunks/cli-1.0.3-apbdyngz.mjs +2 -0
  125. package/dist/chunks/cli-1.0.3-ar488ss1.mjs +2 -0
  126. package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +4 -0
  127. package/dist/chunks/cli-1.0.3-ax2geagm.mjs +18 -0
  128. package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +2 -0
  129. package/dist/chunks/cli-1.0.3-ay89chqh.mjs +2 -0
  130. package/dist/chunks/cli-1.0.3-b14b158b.mjs +2 -0
  131. package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +2 -0
  132. package/dist/chunks/cli-1.0.3-b72086ew.mjs +2 -0
  133. package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +24 -0
  134. package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +25 -0
  135. package/dist/chunks/cli-1.0.3-bg3frggm.mjs +5 -0
  136. package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +2 -0
  137. package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +2 -0
  138. package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +2 -0
  139. package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +3 -0
  140. package/dist/chunks/cli-1.0.3-c38hr99q.mjs +2 -0
  141. package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +2 -0
  142. package/dist/chunks/cli-1.0.3-c570dde7.mjs +24 -0
  143. package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +2 -0
  144. package/dist/chunks/cli-1.0.3-cnb1yved.mjs +2 -0
  145. package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +2 -0
  146. package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +2 -0
  147. package/dist/chunks/cli-1.0.3-d7597p9k.mjs +133 -0
  148. package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +2 -0
  149. package/dist/chunks/cli-1.0.3-djd4asp9.mjs +25 -0
  150. package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +2 -0
  151. package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +20 -0
  152. package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +2 -0
  153. package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +2 -0
  154. package/dist/chunks/cli-1.0.3-e315jy0y.mjs +2 -0
  155. package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +2 -0
  156. package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +2 -0
  157. package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +2 -0
  158. package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +2 -0
  159. package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +45 -0
  160. package/dist/chunks/cli-1.0.3-eta6q17m.mjs +2 -0
  161. package/dist/chunks/cli-1.0.3-exj8yag8.mjs +2 -0
  162. package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +2 -0
  163. package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +2 -0
  164. package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +2 -0
  165. package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +2 -0
  166. package/dist/chunks/cli-1.0.3-g5w729g4.mjs +2 -0
  167. package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +2 -0
  168. package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +2 -0
  169. package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +12 -0
  170. package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +2 -0
  171. package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +2 -0
  172. package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +4 -0
  173. package/dist/chunks/cli-1.0.3-hg04k516.mjs +3 -0
  174. package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +2 -0
  175. package/dist/chunks/cli-1.0.3-htx4273d.mjs +39 -0
  176. package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +2 -0
  177. package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +2 -0
  178. package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +2 -0
  179. package/dist/chunks/cli-1.0.3-j72ztden.mjs +2 -0
  180. package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +2 -0
  181. package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +6 -0
  182. package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +2 -0
  183. package/dist/chunks/cli-1.0.3-k99msp02.mjs +17 -0
  184. package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +59 -0
  185. package/dist/chunks/cli-1.0.3-khw95075.mjs +2 -0
  186. package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +2 -0
  187. package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +2 -0
  188. package/dist/chunks/cli-1.0.3-m45p13pd.mjs +2 -0
  189. package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +3 -0
  190. package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +12 -0
  191. package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +4 -0
  192. package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +2 -0
  193. package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +2 -0
  194. package/dist/chunks/cli-1.0.3-n99q1npz.mjs +2 -0
  195. package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +2 -0
  196. package/dist/chunks/cli-1.0.3-nama3pwj.mjs +7 -0
  197. package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +2 -0
  198. package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +2 -0
  199. package/dist/chunks/cli-1.0.3-ntywpqre.mjs +2 -0
  200. package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +2 -0
  201. package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +24 -0
  202. package/dist/chunks/cli-1.0.3-pc93arct.mjs +10 -0
  203. package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +67 -0
  204. package/dist/chunks/cli-1.0.3-phh30dq0.mjs +4 -0
  205. package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +5 -0
  206. package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +3 -0
  207. package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +2 -0
  208. package/dist/chunks/cli-1.0.3-q9hw6148.mjs +2 -0
  209. package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +34 -0
  210. package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +2 -0
  211. package/dist/chunks/cli-1.0.3-r274tqxg.mjs +2 -0
  212. package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +3 -0
  213. package/dist/chunks/cli-1.0.3-ra9brq66.mjs +2 -0
  214. package/dist/chunks/cli-1.0.3-rapppvd0.mjs +2 -0
  215. package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +15 -0
  216. package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +58 -0
  217. package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +2 -0
  218. package/dist/chunks/cli-1.0.3-rpry44n3.mjs +2 -0
  219. package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +2 -0
  220. package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +2 -0
  221. package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +5 -0
  222. package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +6 -0
  223. package/dist/chunks/cli-1.0.3-sz2d376e.mjs +2 -0
  224. package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +2 -0
  225. package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +133 -0
  226. package/dist/chunks/cli-1.0.3-t7p3714v.mjs +2 -0
  227. package/dist/chunks/cli-1.0.3-tjewxa84.mjs +2 -0
  228. package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +9 -0
  229. package/dist/chunks/cli-1.0.3-v658mswv.mjs +12 -0
  230. package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +2 -0
  231. package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +2 -0
  232. package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +2 -0
  233. package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +3 -0
  234. package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +2 -0
  235. package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +2 -0
  236. package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +2 -0
  237. package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +15 -0
  238. package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +2 -0
  239. package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +50 -0
  240. package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +2 -0
  241. package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +42 -0
  242. package/dist/chunks/cli-1.0.3-xarnzm58.mjs +2 -0
  243. package/dist/chunks/cli-1.0.3-xf2r8496.mjs +2 -0
  244. package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +4 -0
  245. package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +17 -0
  246. package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +2 -0
  247. package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +4 -0
  248. package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +2 -0
  249. package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +2 -0
  250. package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +2 -0
  251. package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +2 -0
  252. package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +2 -0
  253. package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +2 -0
  254. package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +18 -0
  255. package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +2 -0
  256. package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +2 -0
  257. package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +18 -0
  258. package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +8 -0
  259. package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +2 -0
  260. package/dist/chunks/client-1.0.3-qkqk8q23.mjs +1 -0
  261. package/dist/chunks/color-1.0.3-x0qygswm.mjs +1 -0
  262. package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +3 -0
  263. package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +1 -0
  264. package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +1 -0
  265. package/dist/chunks/constants-1.0.3-wk9v349h.mjs +1 -0
  266. package/dist/chunks/context-1.0.3-6sarjqp3.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +1 -0
  268. package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +1 -0
  270. package/dist/chunks/copy-1.0.3-575pc6gc.mjs +9 -0
  271. package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +1 -0
  273. package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +1 -0
  274. package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +1446 -0
  276. package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +1 -0
  278. package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +1 -0
  279. package/dist/chunks/diff-1.0.3-43a1txqm.mjs +1 -0
  280. package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +1 -0
  283. package/dist/chunks/effort-1.0.3-28cxc122.mjs +10 -0
  284. package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +1 -0
  286. package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +1 -0
  288. package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +1 -0
  289. package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +1 -0
  291. package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +1 -0
  292. package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +1 -0
  293. package/dist/chunks/export-1.0.3-4r98t7vv.mjs +2 -0
  294. package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +1 -0
  295. package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +1 -0
  296. package/dist/chunks/fast-1.0.3-4atx5cja.mjs +1 -0
  297. package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +14 -0
  298. package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +1 -0
  299. package/dist/chunks/git-1.0.3-tpyzsser.mjs +1 -0
  300. package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +1 -0
  301. package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +4 -0
  302. package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +1 -0
  303. package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +1 -0
  304. package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +2 -0
  305. package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +6 -0
  306. package/dist/chunks/help-1.0.3-e1qcej38.mjs +1 -0
  307. package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +3 -0
  308. package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +79 -0
  309. package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +1 -0
  310. package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +3 -0
  311. package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +1 -0
  312. package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +1 -0
  313. package/dist/chunks/index-1.0.3-15ym353c.mjs +1 -0
  314. package/dist/chunks/index-1.0.3-1tyen96a.mjs +1 -0
  315. package/dist/chunks/index-1.0.3-22c46a9g.mjs +1 -0
  316. package/dist/chunks/index-1.0.3-293khy5y.mjs +1 -0
  317. package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +1 -0
  318. package/dist/chunks/index-1.0.3-4g5be32x.mjs +5 -0
  319. package/dist/chunks/index-1.0.3-5h227bav.mjs +17 -0
  320. package/dist/chunks/index-1.0.3-83nb50h7.mjs +1 -0
  321. package/dist/chunks/index-1.0.3-f3xy16k0.mjs +1 -0
  322. package/dist/chunks/index-1.0.3-fp6xhcab.mjs +2 -0
  323. package/dist/chunks/index-1.0.3-gecs01pd.mjs +1 -0
  324. package/dist/chunks/index-1.0.3-gwt3epj3.mjs +30 -0
  325. package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +9 -0
  326. package/dist/chunks/index-1.0.3-j1rfqkax.mjs +1 -0
  327. package/dist/chunks/index-1.0.3-k6ze856z.mjs +1 -0
  328. package/dist/chunks/index-1.0.3-n8qxa0er.mjs +1 -0
  329. package/dist/chunks/index-1.0.3-pa0eqyya.mjs +1 -0
  330. package/dist/chunks/index-1.0.3-qacj9f9z.mjs +1 -0
  331. package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +1 -0
  332. package/dist/chunks/index-1.0.3-w0d2skgw.mjs +2 -0
  333. package/dist/chunks/index-1.0.3-w6sndqyw.mjs +9 -0
  334. package/dist/chunks/index-1.0.3-z42381sj.mjs +1 -0
  335. package/dist/chunks/index-1.0.3-zfk75xdr.mjs +1 -0
  336. package/dist/chunks/init-1.0.3-1756vwh2.mjs +1 -0
  337. package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +1 -0
  338. package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +1 -0
  339. package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +870 -0
  340. package/dist/chunks/install-1.0.3-zttqn1ez.mjs +1 -0
  341. package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +149 -0
  342. package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +1 -0
  343. package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +1 -0
  344. package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +1 -0
  345. package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +2 -0
  346. package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +2 -0
  347. package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +1 -0
  348. package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +1 -0
  351. package/dist/chunks/log-1.0.3-wzytzthn.mjs +1 -0
  352. package/dist/chunks/main-1.0.3-jzwehebm.mjs +1 -0
  353. package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +4 -0
  356. package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +17 -0
  357. package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +1 -0
  358. package/dist/chunks/memory-1.0.3-esv79kf8.mjs +3 -0
  359. package/dist/chunks/model-1.0.3-9b4d36sd.mjs +1 -0
  360. package/dist/chunks/model-1.0.3-bh1t2s45.mjs +2 -0
  361. package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +12 -0
  362. package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +1 -0
  363. package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +14 -0
  364. package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +1 -0
  365. package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +1 -0
  366. package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +1 -0
  367. package/dist/chunks/parser-1.0.3-avw926ew.mjs +1 -0
  368. package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +3 -0
  370. package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +1 -0
  371. package/dist/chunks/plan-1.0.3-emxq5t72.mjs +1 -0
  372. package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +1 -0
  373. package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +29 -0
  374. package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +1 -0
  375. package/dist/chunks/plugins-1.0.3-x021vefh.mjs +9 -0
  376. package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +2 -0
  377. package/dist/chunks/print-1.0.3-w721s1pr.mjs +57 -0
  378. package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +1 -0
  379. package/dist/chunks/process-1.0.3-xedhq816.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +9 -0
  382. package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +1 -0
  383. package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +1 -0
  384. package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +13 -0
  386. package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +34 -0
  391. package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +1 -0
  392. package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +2 -0
  394. package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +1 -0
  397. package/dist/chunks/rename-1.0.3-090y3y3t.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +1 -0
  400. package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +2 -0
  401. package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +1 -0
  403. package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +1 -0
  405. package/dist/chunks/session-1.0.3-26qz9f9c.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +1 -0
  409. package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +1 -0
  410. package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +1 -0
  412. package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +1 -0
  415. package/dist/chunks/state-1.0.3-7hxpebf0.mjs +1 -0
  416. package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +6 -0
  417. package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +1 -0
  425. package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +1 -0
  430. package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +69 -0
  433. package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +4 -0
  435. package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +86 -0
  436. package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +1 -0
  437. package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +1 -0
  440. package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +1 -0
  441. package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +1 -0
  442. package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +1 -0
  443. package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +1 -0
  444. package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +1 -0
  445. package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +132 -0
  446. package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +1 -0
  447. package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +1 -0
  448. package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +1 -0
  449. package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +7 -0
  450. package/dist/cli.mjs +2 -2
  451. package/install.cjs +208 -0
  452. package/package.json +29 -132
  453. package/LICENSE +0 -30
  454. package/bin/claudin +0 -272
  455. package/dist/chunks/AgentTool-0.7.6-02vh9vk8.mjs +0 -1
  456. package/dist/chunks/App-0.7.6-6rm9fw7h.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-0.7.6-3ds3vmhq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-0.7.6-tdwszj02.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-0.7.6-5axvmtp3.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-0.7.6-014qynp3.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.6-z3wrhmsy.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-0.7.6-92nz3x2x.mjs +0 -1
  463. package/dist/chunks/DiffDialog-0.7.6-4303tcnm.mjs +0 -7
  464. package/dist/chunks/Doctor-0.7.6-084ce5s2.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-0.7.6-vp1m6ffx.mjs +0 -6
  466. package/dist/chunks/Grove-0.7.6-1d3f84xj.mjs +0 -1
  467. package/dist/chunks/ITermBackend-0.7.6-wdyeyjcs.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-0.7.6-j0gs8ee7.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-0.7.6-5gtntvxr.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-0.7.6-jqrhx95e.mjs +0 -1
  471. package/dist/chunks/Onboarding-0.7.6-18f6pde2.mjs +0 -1
  472. package/dist/chunks/ProviderManager-0.7.6-2q5s7q6j.mjs +0 -1
  473. package/dist/chunks/REPL-0.7.6-ayp94stx.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-0.7.6-zgn8p1b4.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-0.7.6-apn9hx86.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-0.7.6-1mvkc8e6.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-0.7.6-74t499kc.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-0.7.6-aj7acqex.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-0.7.6-werejha1.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-0.7.6-n01pcadg.mjs +0 -1
  481. package/dist/chunks/TrustDialog-0.7.6-bsjh0666.mjs +0 -1
  482. package/dist/chunks/activeProvider-0.7.6-eqwet2j4.mjs +0 -1
  483. package/dist/chunks/add-dir-0.7.6-8rvjxj57.mjs +0 -1
  484. package/dist/chunks/agentTypes-0.7.6-49zjnpvv.mjs +0 -1
  485. package/dist/chunks/agents-0.7.6-f2wq0zdm.mjs +0 -3
  486. package/dist/chunks/agents-0.7.6-n608c3qr.mjs +0 -110
  487. package/dist/chunks/api-0.7.6-f2fsvxyj.mjs +0 -1
  488. package/dist/chunks/asciicast-0.7.6-fv6ypvrh.mjs +0 -1
  489. package/dist/chunks/assistant-0.7.6-3d939v1n.mjs +0 -1
  490. package/dist/chunks/auth-0.7.6-e9ggcrw2.mjs +0 -1
  491. package/dist/chunks/auth-0.7.6-vprbhg4e.mjs +0 -1
  492. package/dist/chunks/autoMode-0.7.6-p12j05a6.mjs +0 -48
  493. package/dist/chunks/autoUpdater-0.7.6-nrc4g1jz.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-0.7.6-rb8ftxsa.mjs +0 -1
  495. package/dist/chunks/branch-0.7.6-05rh36he.mjs +0 -4
  496. package/dist/chunks/bridge-0.7.6-wddny37r.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-0.7.6-b5h1a634.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-0.7.6-0fhtxtzs.mjs +0 -1
  499. package/dist/chunks/bridgeMain-0.7.6-nj17223b.mjs +0 -88
  500. package/dist/chunks/bridgePointer-0.7.6-f0qs1e6e.mjs +0 -1
  501. package/dist/chunks/btw-0.7.6-cjm6v0b9.mjs +0 -1
  502. package/dist/chunks/buddy-0.7.6-1j68vknm.mjs +0 -3
  503. package/dist/chunks/cacache-0.7.6-3mr30mas.mjs +0 -1
  504. package/dist/chunks/cache-probe-0.7.6-e8g8d94t.mjs +0 -21
  505. package/dist/chunks/cacheStats-0.7.6-4x5zqxyf.mjs +0 -4
  506. package/dist/chunks/caches-0.7.6-fpr85z6h.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-0.7.6-hh4vstgr.mjs +0 -1
  508. package/dist/chunks/claudemd-0.7.6-fqehvs8g.mjs +0 -1
  509. package/dist/chunks/clear-0.7.6-h2vf452p.mjs +0 -1
  510. package/dist/chunks/clearTerminal-0.7.6-qscrqy5p.mjs +0 -1
  511. package/dist/chunks/cli-0.7.6-010st6wr.mjs +0 -2
  512. package/dist/chunks/cli-0.7.6-07eesex8.mjs +0 -2
  513. package/dist/chunks/cli-0.7.6-09hcxer2.mjs +0 -2
  514. package/dist/chunks/cli-0.7.6-0b47jy2g.mjs +0 -2
  515. package/dist/chunks/cli-0.7.6-0ekx5n2q.mjs +0 -4
  516. package/dist/chunks/cli-0.7.6-0gzsv22g.mjs +0 -2
  517. package/dist/chunks/cli-0.7.6-0h46deez.mjs +0 -2
  518. package/dist/chunks/cli-0.7.6-0mgbtp8x.mjs +0 -6
  519. package/dist/chunks/cli-0.7.6-0n7tfcxz.mjs +0 -4
  520. package/dist/chunks/cli-0.7.6-0tt8ccr8.mjs +0 -2
  521. package/dist/chunks/cli-0.7.6-0wr25ecz.mjs +0 -2
  522. package/dist/chunks/cli-0.7.6-1bfz5qa5.mjs +0 -2
  523. package/dist/chunks/cli-0.7.6-1bvzdjfc.mjs +0 -2
  524. package/dist/chunks/cli-0.7.6-1dqh462b.mjs +0 -2
  525. package/dist/chunks/cli-0.7.6-1j4p4cz3.mjs +0 -2
  526. package/dist/chunks/cli-0.7.6-1s1nbm58.mjs +0 -2
  527. package/dist/chunks/cli-0.7.6-1v73pjt7.mjs +0 -2
  528. package/dist/chunks/cli-0.7.6-1yn63f2j.mjs +0 -2
  529. package/dist/chunks/cli-0.7.6-29snre4z.mjs +0 -2
  530. package/dist/chunks/cli-0.7.6-2ff9pq9s.mjs +0 -3
  531. package/dist/chunks/cli-0.7.6-2kjdfns9.mjs +0 -6
  532. package/dist/chunks/cli-0.7.6-2qwpkx4w.mjs +0 -12
  533. package/dist/chunks/cli-0.7.6-2rwpq77s.mjs +0 -2
  534. package/dist/chunks/cli-0.7.6-310844c3.mjs +0 -4
  535. package/dist/chunks/cli-0.7.6-39q0e172.mjs +0 -2
  536. package/dist/chunks/cli-0.7.6-3vqf88sk.mjs +0 -2
  537. package/dist/chunks/cli-0.7.6-43kp2p25.mjs +0 -2
  538. package/dist/chunks/cli-0.7.6-471rvdw2.mjs +0 -2
  539. package/dist/chunks/cli-0.7.6-4e2e6mkj.mjs +0 -3
  540. package/dist/chunks/cli-0.7.6-4eaywsgw.mjs +0 -2
  541. package/dist/chunks/cli-0.7.6-4q91n1nr.mjs +0 -2
  542. package/dist/chunks/cli-0.7.6-4v3f036y.mjs +0 -2
  543. package/dist/chunks/cli-0.7.6-4ybzx76m.mjs +0 -2
  544. package/dist/chunks/cli-0.7.6-4z1q2wge.mjs +0 -2
  545. package/dist/chunks/cli-0.7.6-517m3gcx.mjs +0 -2
  546. package/dist/chunks/cli-0.7.6-56h0kfkw.mjs +0 -59
  547. package/dist/chunks/cli-0.7.6-5dk57g7k.mjs +0 -2
  548. package/dist/chunks/cli-0.7.6-5ktehyvf.mjs +0 -2
  549. package/dist/chunks/cli-0.7.6-5qabm4xe.mjs +0 -2
  550. package/dist/chunks/cli-0.7.6-5vj0s5hg.mjs +0 -5
  551. package/dist/chunks/cli-0.7.6-5wj27v22.mjs +0 -18
  552. package/dist/chunks/cli-0.7.6-5ynmp8av.mjs +0 -2
  553. package/dist/chunks/cli-0.7.6-62ea895q.mjs +0 -2
  554. package/dist/chunks/cli-0.7.6-67tqckbs.mjs +0 -133
  555. package/dist/chunks/cli-0.7.6-69b0cq0a.mjs +0 -4
  556. package/dist/chunks/cli-0.7.6-69hzrwk9.mjs +0 -2
  557. package/dist/chunks/cli-0.7.6-73gkdy2f.mjs +0 -2
  558. package/dist/chunks/cli-0.7.6-73h798cq.mjs +0 -2
  559. package/dist/chunks/cli-0.7.6-7g2b4q32.mjs +0 -2
  560. package/dist/chunks/cli-0.7.6-7ktebmzc.mjs +0 -2
  561. package/dist/chunks/cli-0.7.6-7mzraehr.mjs +0 -16
  562. package/dist/chunks/cli-0.7.6-7szsqp12.mjs +0 -2
  563. package/dist/chunks/cli-0.7.6-7ybdp9j0.mjs +0 -3
  564. package/dist/chunks/cli-0.7.6-7yce2cw8.mjs +0 -2
  565. package/dist/chunks/cli-0.7.6-8g9rtj1f.mjs +0 -2
  566. package/dist/chunks/cli-0.7.6-8h5rwm21.mjs +0 -2
  567. package/dist/chunks/cli-0.7.6-8k508w7p.mjs +0 -2
  568. package/dist/chunks/cli-0.7.6-8srvcg12.mjs +0 -2
  569. package/dist/chunks/cli-0.7.6-8vdxmbjt.mjs +0 -2
  570. package/dist/chunks/cli-0.7.6-8vftkjgf.mjs +0 -2
  571. package/dist/chunks/cli-0.7.6-8wv8rjqd.mjs +0 -2
  572. package/dist/chunks/cli-0.7.6-9508tj8e.mjs +0 -17
  573. package/dist/chunks/cli-0.7.6-96qqpq0c.mjs +0 -2
  574. package/dist/chunks/cli-0.7.6-9a706kh3.mjs +0 -2
  575. package/dist/chunks/cli-0.7.6-9w6egknj.mjs +0 -8
  576. package/dist/chunks/cli-0.7.6-ajv6cevv.mjs +0 -4
  577. package/dist/chunks/cli-0.7.6-am0sf3er.mjs +0 -2
  578. package/dist/chunks/cli-0.7.6-ama4wyv2.mjs +0 -12
  579. package/dist/chunks/cli-0.7.6-ayd8297m.mjs +0 -3
  580. package/dist/chunks/cli-0.7.6-bbmxy27v.mjs +0 -2
  581. package/dist/chunks/cli-0.7.6-berqrfpz.mjs +0 -2
  582. package/dist/chunks/cli-0.7.6-bese1aqp.mjs +0 -2
  583. package/dist/chunks/cli-0.7.6-bfwq4dm5.mjs +0 -2
  584. package/dist/chunks/cli-0.7.6-c3npkenn.mjs +0 -1
  585. package/dist/chunks/cli-0.7.6-ccbtfaqn.mjs +0 -2
  586. package/dist/chunks/cli-0.7.6-ccy8mp4f.mjs +0 -2
  587. package/dist/chunks/cli-0.7.6-cedrx1f7.mjs +0 -2
  588. package/dist/chunks/cli-0.7.6-chcjfb2p.mjs +0 -2
  589. package/dist/chunks/cli-0.7.6-cmxr1gyd.mjs +0 -3
  590. package/dist/chunks/cli-0.7.6-cq95q0m7.mjs +0 -2
  591. package/dist/chunks/cli-0.7.6-cxchkx7a.mjs +0 -18
  592. package/dist/chunks/cli-0.7.6-d4rmetja.mjs +0 -2
  593. package/dist/chunks/cli-0.7.6-d5nss1kz.mjs +0 -2
  594. package/dist/chunks/cli-0.7.6-d8hz302t.mjs +0 -2
  595. package/dist/chunks/cli-0.7.6-dd5tgszn.mjs +0 -4
  596. package/dist/chunks/cli-0.7.6-dfkaq7z7.mjs +0 -2
  597. package/dist/chunks/cli-0.7.6-dhp0vn09.mjs +0 -4
  598. package/dist/chunks/cli-0.7.6-dpfh7ypk.mjs +0 -2
  599. package/dist/chunks/cli-0.7.6-dq87daze.mjs +0 -2
  600. package/dist/chunks/cli-0.7.6-dynrpsf9.mjs +0 -10
  601. package/dist/chunks/cli-0.7.6-e01s0kjn.mjs +0 -2
  602. package/dist/chunks/cli-0.7.6-e3dwvde8.mjs +0 -58
  603. package/dist/chunks/cli-0.7.6-edjsszs3.mjs +0 -12
  604. package/dist/chunks/cli-0.7.6-ehkh8f7m.mjs +0 -2
  605. package/dist/chunks/cli-0.7.6-ejjekwys.mjs +0 -2
  606. package/dist/chunks/cli-0.7.6-ejk8n0sg.mjs +0 -2
  607. package/dist/chunks/cli-0.7.6-ek2a439r.mjs +0 -2
  608. package/dist/chunks/cli-0.7.6-ex7sezdt.mjs +0 -2
  609. package/dist/chunks/cli-0.7.6-f4nmb6r2.mjs +0 -3
  610. package/dist/chunks/cli-0.7.6-f9mzvngv.mjs +0 -2
  611. package/dist/chunks/cli-0.7.6-ffk5hz3x.mjs +0 -2
  612. package/dist/chunks/cli-0.7.6-fkshg1fg.mjs +0 -2
  613. package/dist/chunks/cli-0.7.6-fmmr53nv.mjs +0 -2
  614. package/dist/chunks/cli-0.7.6-fn56g2cc.mjs +0 -199
  615. package/dist/chunks/cli-0.7.6-frf6ynaj.mjs +0 -2
  616. package/dist/chunks/cli-0.7.6-ftdrd7jk.mjs +0 -17
  617. package/dist/chunks/cli-0.7.6-fvydk0w1.mjs +0 -2
  618. package/dist/chunks/cli-0.7.6-g1gd1372.mjs +0 -5
  619. package/dist/chunks/cli-0.7.6-g2437s1w.mjs +0 -2
  620. package/dist/chunks/cli-0.7.6-g44g34fb.mjs +0 -2
  621. package/dist/chunks/cli-0.7.6-g5cva69z.mjs +0 -2
  622. package/dist/chunks/cli-0.7.6-g736y207.mjs +0 -39
  623. package/dist/chunks/cli-0.7.6-g802sp0p.mjs +0 -2
  624. package/dist/chunks/cli-0.7.6-gkd2v7ek.mjs +0 -45
  625. package/dist/chunks/cli-0.7.6-gxbeg3ny.mjs +0 -3
  626. package/dist/chunks/cli-0.7.6-hrw7nyyq.mjs +0 -2
  627. package/dist/chunks/cli-0.7.6-hsa9j8sb.mjs +0 -2
  628. package/dist/chunks/cli-0.7.6-hsm2w1qr.mjs +0 -2
  629. package/dist/chunks/cli-0.7.6-hw3n6j75.mjs +0 -9
  630. package/dist/chunks/cli-0.7.6-j59ty8yt.mjs +0 -15
  631. package/dist/chunks/cli-0.7.6-j63vtmfa.mjs +0 -2
  632. package/dist/chunks/cli-0.7.6-j9p952mf.mjs +0 -2
  633. package/dist/chunks/cli-0.7.6-jjmm4f40.mjs +0 -2
  634. package/dist/chunks/cli-0.7.6-jmpc9xmj.mjs +0 -6
  635. package/dist/chunks/cli-0.7.6-jtdgswpn.mjs +0 -2
  636. package/dist/chunks/cli-0.7.6-jwqgj667.mjs +0 -2
  637. package/dist/chunks/cli-0.7.6-jzk3fxqa.mjs +0 -3
  638. package/dist/chunks/cli-0.7.6-k1tjb02q.mjs +0 -4
  639. package/dist/chunks/cli-0.7.6-k5r0yz41.mjs +0 -67
  640. package/dist/chunks/cli-0.7.6-k7fsgwdr.mjs +0 -2
  641. package/dist/chunks/cli-0.7.6-m51wgngt.mjs +0 -2
  642. package/dist/chunks/cli-0.7.6-md1ramb7.mjs +0 -2
  643. package/dist/chunks/cli-0.7.6-md31wz8f.mjs +0 -2
  644. package/dist/chunks/cli-0.7.6-md4x57wd.mjs +0 -2
  645. package/dist/chunks/cli-0.7.6-n6qsqdjv.mjs +0 -2
  646. package/dist/chunks/cli-0.7.6-ngmxmw82.mjs +0 -2
  647. package/dist/chunks/cli-0.7.6-ngsbbrk7.mjs +0 -3
  648. package/dist/chunks/cli-0.7.6-nxxj5qzs.mjs +0 -2
  649. package/dist/chunks/cli-0.7.6-p2268sge.mjs +0 -2
  650. package/dist/chunks/cli-0.7.6-pasrzvza.mjs +0 -2
  651. package/dist/chunks/cli-0.7.6-pbzty9n9.mjs +0 -2
  652. package/dist/chunks/cli-0.7.6-pwvs4p1w.mjs +0 -3
  653. package/dist/chunks/cli-0.7.6-pzk668w8.mjs +0 -2
  654. package/dist/chunks/cli-0.7.6-qan5xxdc.mjs +0 -5471
  655. package/dist/chunks/cli-0.7.6-qeq5tx23.mjs +0 -6
  656. package/dist/chunks/cli-0.7.6-qkcrt37c.mjs +0 -2
  657. package/dist/chunks/cli-0.7.6-qyk1jtmh.mjs +0 -2
  658. package/dist/chunks/cli-0.7.6-r6nhsg12.mjs +0 -2
  659. package/dist/chunks/cli-0.7.6-r78s2g03.mjs +0 -18
  660. package/dist/chunks/cli-0.7.6-r9dxvg8q.mjs +0 -5
  661. package/dist/chunks/cli-0.7.6-rp0xgr6t.mjs +0 -2
  662. package/dist/chunks/cli-0.7.6-rs07s8yh.mjs +0 -2
  663. package/dist/chunks/cli-0.7.6-rzhf46t3.mjs +0 -2
  664. package/dist/chunks/cli-0.7.6-s0jpd03j.mjs +0 -2
  665. package/dist/chunks/cli-0.7.6-s3kvpq11.mjs +0 -24
  666. package/dist/chunks/cli-0.7.6-se7x2a1f.mjs +0 -7
  667. package/dist/chunks/cli-0.7.6-sjbap7zg.mjs +0 -2
  668. package/dist/chunks/cli-0.7.6-svqwyxab.mjs +0 -42
  669. package/dist/chunks/cli-0.7.6-t224fm0b.mjs +0 -2
  670. package/dist/chunks/cli-0.7.6-t3wkyhpb.mjs +0 -2
  671. package/dist/chunks/cli-0.7.6-tnxct9wp.mjs +0 -2
  672. package/dist/chunks/cli-0.7.6-tp1mp7kg.mjs +0 -2
  673. package/dist/chunks/cli-0.7.6-tp4xkdj6.mjs +0 -2
  674. package/dist/chunks/cli-0.7.6-v3rjsfcr.mjs +0 -2
  675. package/dist/chunks/cli-0.7.6-vhan81qg.mjs +0 -2
  676. package/dist/chunks/cli-0.7.6-vhn7sz5q.mjs +0 -2
  677. package/dist/chunks/cli-0.7.6-vrcja2t1.mjs +0 -2
  678. package/dist/chunks/cli-0.7.6-w4bq1f08.mjs +0 -4
  679. package/dist/chunks/cli-0.7.6-w5smxper.mjs +0 -2
  680. package/dist/chunks/cli-0.7.6-w65xvz9z.mjs +0 -2
  681. package/dist/chunks/cli-0.7.6-w66170ej.mjs +0 -2
  682. package/dist/chunks/cli-0.7.6-w7k9x0kq.mjs +0 -3
  683. package/dist/chunks/cli-0.7.6-wch5kwc6.mjs +0 -3
  684. package/dist/chunks/cli-0.7.6-wepz3cym.mjs +0 -4
  685. package/dist/chunks/cli-0.7.6-wthbw2r0.mjs +0 -2
  686. package/dist/chunks/cli-0.7.6-wz34s2yk.mjs +0 -2
  687. package/dist/chunks/cli-0.7.6-wz5w8hmh.mjs +0 -2
  688. package/dist/chunks/cli-0.7.6-xczzrd9d.mjs +0 -34
  689. package/dist/chunks/cli-0.7.6-xfap6qa6.mjs +0 -20
  690. package/dist/chunks/cli-0.7.6-xg6ka3pp.mjs +0 -2
  691. package/dist/chunks/cli-0.7.6-xjemjs4e.mjs +0 -25
  692. package/dist/chunks/cli-0.7.6-xkmg4sc9.mjs +0 -2
  693. package/dist/chunks/cli-0.7.6-xky4ty14.mjs +0 -2
  694. package/dist/chunks/cli-0.7.6-xtjps7gq.mjs +0 -2
  695. package/dist/chunks/cli-0.7.6-xyx40s83.mjs +0 -21
  696. package/dist/chunks/cli-0.7.6-y36b0e0y.mjs +0 -24
  697. package/dist/chunks/cli-0.7.6-y3a6zp1r.mjs +0 -2
  698. package/dist/chunks/cli-0.7.6-y7bdxnmf.mjs +0 -133
  699. package/dist/chunks/cli-0.7.6-y8ga5pny.mjs +0 -15
  700. package/dist/chunks/cli-0.7.6-ye7kz4cr.mjs +0 -24
  701. package/dist/chunks/cli-0.7.6-ymhtbnyk.mjs +0 -2
  702. package/dist/chunks/cli-0.7.6-yv3stfxm.mjs +0 -12
  703. package/dist/chunks/cli-0.7.6-ywg6e349.mjs +0 -25
  704. package/dist/chunks/cli-0.7.6-z13va0jc.mjs +0 -2
  705. package/dist/chunks/cli-0.7.6-z4k83sx6.mjs +0 -2
  706. package/dist/chunks/cli-0.7.6-z5zw7sdz.mjs +0 -3
  707. package/dist/chunks/cli-0.7.6-zepjez10.mjs +0 -50
  708. package/dist/chunks/cli-0.7.6-zmkr521v.mjs +0 -15
  709. package/dist/chunks/cli-0.7.6-zrjrmccd.mjs +0 -2
  710. package/dist/chunks/cli-0.7.6-zrwpmp3s.mjs +0 -2
  711. package/dist/chunks/client-0.7.6-s5r00qzn.mjs +0 -1
  712. package/dist/chunks/color-0.7.6-c5m7hk8y.mjs +0 -1
  713. package/dist/chunks/compact-0.7.6-dx4c91sb.mjs +0 -3
  714. package/dist/chunks/config-0.7.6-0wrs7d25.mjs +0 -1
  715. package/dist/chunks/config-0.7.6-28k8xgy7.mjs +0 -1
  716. package/dist/chunks/constants-0.7.6-yxc2ccra.mjs +0 -1
  717. package/dist/chunks/context-0.7.6-efvp1txb.mjs +0 -1
  718. package/dist/chunks/context-noninteractive-0.7.6-8bp73hyq.mjs +0 -1
  719. package/dist/chunks/conversation-0.7.6-cqwzbr0d.mjs +0 -1
  720. package/dist/chunks/copilotHeaders-0.7.6-qm7k7b4w.mjs +0 -1
  721. package/dist/chunks/copy-0.7.6-tb3stmba.mjs +0 -9
  722. package/dist/chunks/cost-0.7.6-t2pss4xp.mjs +0 -1
  723. package/dist/chunks/createSSHSession-0.7.6-gxjfefp4.mjs +0 -1
  724. package/dist/chunks/createSession-0.7.6-s5cd1p2c.mjs +0 -1
  725. package/dist/chunks/debug-0.7.6-29wym0xr.mjs +0 -1
  726. package/dist/chunks/defaultActionDeps-0.7.6-1thsnj41.mjs +0 -1446
  727. package/dist/chunks/desktop-0.7.6-jb15m9tp.mjs +0 -1
  728. package/dist/chunks/detectRepository-0.7.6-0cp7fygx.mjs +0 -1
  729. package/dist/chunks/detection-0.7.6-rg544p2p.mjs +0 -1
  730. package/dist/chunks/diff-0.7.6-53gzzxnd.mjs +0 -1
  731. package/dist/chunks/doctor-0.7.6-95kk3h2p.mjs +0 -1
  732. package/dist/chunks/doctorDiagnostic-0.7.6-ybe5naeq.mjs +0 -1
  733. package/dist/chunks/earlyInput-0.7.6-2frqt87k.mjs +0 -1
  734. package/dist/chunks/effort-0.7.6-3hhjz5rt.mjs +0 -10
  735. package/dist/chunks/engine-0.7.6-r4hy6gpj.mjs +0 -1
  736. package/dist/chunks/envLessBridgeConfig-0.7.6-6gxkp63s.mjs +0 -1
  737. package/dist/chunks/envUtils-0.7.6-70jnybbw.mjs +0 -1
  738. package/dist/chunks/environmentSelection-0.7.6-mtg8g15a.mjs +0 -1
  739. package/dist/chunks/environments-0.7.6-4vj956d6.mjs +0 -1
  740. package/dist/chunks/errors-0.7.6-3rfme91e.mjs +0 -1
  741. package/dist/chunks/exampleCommands-0.7.6-3rwnb01j.mjs +0 -1
  742. package/dist/chunks/exit-0.7.6-1zq90j34.mjs +0 -1
  743. package/dist/chunks/explorer-0.7.6-7yxdvz4c.mjs +0 -1
  744. package/dist/chunks/export-0.7.6-6annregx.mjs +0 -2
  745. package/dist/chunks/extra-usage-0.7.6-1d8afeer.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-0.7.6-yv74b9va.mjs +0 -1
  747. package/dist/chunks/fast-0.7.6-83xw5a4z.mjs +0 -1
  748. package/dist/chunks/feedback-0.7.6-r3gmhtzb.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-0.7.6-sxwwnk4h.mjs +0 -1
  750. package/dist/chunks/git-0.7.6-z2fwspdf.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-0.7.6-fe39tsv6.mjs +0 -1
  752. package/dist/chunks/goal-0.7.6-ejhqdg3h.mjs +0 -4
  753. package/dist/chunks/grove-0.7.6-wq7pmtc4.mjs +0 -1
  754. package/dist/chunks/growthbook-0.7.6-268c3zv1.mjs +0 -1
  755. package/dist/chunks/headless-0.7.6-0624t1g9.mjs +0 -2
  756. package/dist/chunks/heapdump-0.7.6-0h7m92s6.mjs +0 -6
  757. package/dist/chunks/help-0.7.6-cgg68b97.mjs +0 -1
  758. package/dist/chunks/hookChains-0.7.6-r667d77r.mjs +0 -3
  759. package/dist/chunks/hooks-0.7.6-7tnwk63p.mjs +0 -79
  760. package/dist/chunks/hooks-0.7.6-btfaw4b9.mjs +0 -1
  761. package/dist/chunks/ide-0.7.6-fq0f5srk.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-0.7.6-2ks1h23p.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-0.7.6-femb5yew.mjs +0 -1
  764. package/dist/chunks/index-0.7.6-2rpgkwj4.mjs +0 -9
  765. package/dist/chunks/index-0.7.6-2zatk70c.mjs +0 -1
  766. package/dist/chunks/index-0.7.6-415hw608.mjs +0 -1
  767. package/dist/chunks/index-0.7.6-7wrzedvg.mjs +0 -1
  768. package/dist/chunks/index-0.7.6-98ws3n8p.mjs +0 -1
  769. package/dist/chunks/index-0.7.6-9k6nvjv8.mjs +0 -1
  770. package/dist/chunks/index-0.7.6-bbdqqv1x.mjs +0 -1
  771. package/dist/chunks/index-0.7.6-djapsy32.mjs +0 -1
  772. package/dist/chunks/index-0.7.6-efatyc79.mjs +0 -17
  773. package/dist/chunks/index-0.7.6-egyaf79a.mjs +0 -5
  774. package/dist/chunks/index-0.7.6-ew2v6b0x.mjs +0 -1
  775. package/dist/chunks/index-0.7.6-h2kqerxv.mjs +0 -1
  776. package/dist/chunks/index-0.7.6-h5xh1kf2.mjs +0 -1
  777. package/dist/chunks/index-0.7.6-jk32t8wg.mjs +0 -1
  778. package/dist/chunks/index-0.7.6-k60v4n8g.mjs +0 -9
  779. package/dist/chunks/index-0.7.6-kb22mqnf.mjs +0 -2
  780. package/dist/chunks/index-0.7.6-mj4y74z8.mjs +0 -1
  781. package/dist/chunks/index-0.7.6-pkyqwagx.mjs +0 -1
  782. package/dist/chunks/index-0.7.6-sdw9kjcj.mjs +0 -1
  783. package/dist/chunks/index-0.7.6-tc2zr05j.mjs +0 -2
  784. package/dist/chunks/index-0.7.6-tk8kmvah.mjs +0 -1
  785. package/dist/chunks/index-0.7.6-vhgb870z.mjs +0 -1
  786. package/dist/chunks/index-0.7.6-yndsc291.mjs +0 -30
  787. package/dist/chunks/init-0.7.6-w0mqjmeg.mjs +0 -1
  788. package/dist/chunks/initReplBridge-0.7.6-rf60qv0p.mjs +0 -1
  789. package/dist/chunks/ink-0.7.6-3eyfg9zt.mjs +0 -1
  790. package/dist/chunks/insights-0.7.6-7btcyfzb.mjs +0 -870
  791. package/dist/chunks/install-0.7.6-mdtm3sg3.mjs +0 -1
  792. package/dist/chunks/install-github-app-0.7.6-jvncztq4.mjs +0 -149
  793. package/dist/chunks/install-slack-app-0.7.6-yqkgptfz.mjs +0 -1
  794. package/dist/chunks/instrumentation-0.7.6-1ctp56r7.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-0.7.6-hnfccr2a.mjs +0 -1
  796. package/dist/chunks/keybindings-0.7.6-cm2a4esz.mjs +0 -2
  797. package/dist/chunks/knowledge-0.7.6-2m4hj4wv.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-0.7.6-3p0jwsk1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-0.7.6-7n8wpd6m.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-0.7.6-668vved3.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-0.7.6-fvexrndy.mjs +0 -1
  802. package/dist/chunks/log-0.7.6-n1gwe75k.mjs +0 -1
  803. package/dist/chunks/main-0.7.6-787at8bh.mjs +0 -1
  804. package/dist/chunks/managedEnv-0.7.6-b17rcr8m.mjs +0 -1
  805. package/dist/chunks/mcp-0.7.6-a2gt46m1.mjs +0 -4
  806. package/dist/chunks/mcp-0.7.6-ehgr4hy2.mjs +0 -1
  807. package/dist/chunks/mcp-0.7.6-z5yz782z.mjs +0 -17
  808. package/dist/chunks/mcpb-0.7.6-x3w00evk.mjs +0 -1
  809. package/dist/chunks/memory-0.7.6-ce56tv6x.mjs +0 -3
  810. package/dist/chunks/model-0.7.6-10bxpdy1.mjs +0 -2
  811. package/dist/chunks/model-0.7.6-463cgk44.mjs +0 -1
  812. package/dist/chunks/node-0.7.6-yq8nb00v.mjs +0 -12
  813. package/dist/chunks/oauth-0.7.6-bbgjzwfb.mjs +0 -1
  814. package/dist/chunks/openaiShim-0.7.6-kwwv7ntf.mjs +0 -14
  815. package/dist/chunks/output-style-0.7.6-cs808te7.mjs +0 -1
  816. package/dist/chunks/package-ZZWOLTXM-0.7.6-kjjaeshn.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-0.7.6-k3n1pn17.mjs +0 -1
  818. package/dist/chunks/parser-0.7.6-eae6w23n.mjs +0 -1
  819. package/dist/chunks/passes-0.7.6-k46cf658.mjs +0 -1
  820. package/dist/chunks/permissions-0.7.6-1nws00wm.mjs +0 -1
  821. package/dist/chunks/permissions-0.7.6-jq6ebtnw.mjs +0 -3
  822. package/dist/chunks/plan-0.7.6-ry44stze.mjs +0 -1
  823. package/dist/chunks/plist-0.7.6-0vee72zr.mjs +0 -1
  824. package/dist/chunks/plugin-0.7.6-vwa3avby.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-0.7.6-wvmq9d6r.mjs +0 -1
  826. package/dist/chunks/plugins-0.7.6-sksmmrbb.mjs +0 -9
  827. package/dist/chunks/preActionHook-0.7.6-qtz2v7cq.mjs +0 -2
  828. package/dist/chunks/print-0.7.6-qddcs91f.mjs +0 -57
  829. package/dist/chunks/privacy-settings-0.7.6-5gzw6mn1.mjs +0 -1
  830. package/dist/chunks/process-0.7.6-6b1s37w1.mjs +0 -1
  831. package/dist/chunks/processBashCommand-0.7.6-yb92143k.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-0.7.6-bc9jxvge.mjs +0 -9
  833. package/dist/chunks/prompt-0.7.6-sps6z4za.mjs +0 -1
  834. package/dist/chunks/prompt-0.7.6-t8yabss3.mjs +0 -1
  835. package/dist/chunks/prompts-0.7.6-x3ndp7gh.mjs +0 -1
  836. package/dist/chunks/protocolHandler-0.7.6-m1pgssvd.mjs +0 -13
  837. package/dist/chunks/provider-0.7.6-yxmt6yve.mjs +0 -2
  838. package/dist/chunks/providerProfiles-0.7.6-3027t9pt.mjs +0 -1
  839. package/dist/chunks/providerValidation-0.7.6-vpv75gd1.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-0.7.6-6w5cdwx1.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-0.7.6-vz4yvks2.mjs +0 -34
  842. package/dist/chunks/registry-0.7.6-gat54dy3.mjs +0 -1
  843. package/dist/chunks/release-notes-0.7.6-myz4h7d7.mjs +0 -5
  844. package/dist/chunks/reload-plugins-0.7.6-64w73d8b.mjs +0 -2
  845. package/dist/chunks/remote-env-0.7.6-zz9a22zn.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-0.7.6-9mnzebzz.mjs +0 -1
  847. package/dist/chunks/remoteSession-0.7.6-0geea7cr.mjs +0 -1
  848. package/dist/chunks/rename-0.7.6-y40kz5p4.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-0.7.6-9q86nfkb.mjs +0 -1
  850. package/dist/chunks/replLauncher-0.7.6-appht20k.mjs +0 -1
  851. package/dist/chunks/resume-0.7.6-za9pttkz.mjs +0 -2
  852. package/dist/chunks/rewind-0.7.6-23eb1s5k.mjs +0 -1
  853. package/dist/chunks/rootOptions-0.7.6-89a7srwx.mjs +0 -1
  854. package/dist/chunks/sandbox-adapter-0.7.6-zxpg8tbn.mjs +0 -1
  855. package/dist/chunks/sandbox-toggle-0.7.6-12ddnvsb.mjs +0 -1
  856. package/dist/chunks/session-0.7.6-qtvc9q8w.mjs +0 -2
  857. package/dist/chunks/sessionDiscovery-0.7.6-d2h1v026.mjs +0 -1
  858. package/dist/chunks/sessionFileAccessHooks-0.7.6-j8rejm9s.mjs +0 -1
  859. package/dist/chunks/sessionStorage-0.7.6-whqhsy0v.mjs +0 -1
  860. package/dist/chunks/settings-0.7.6-d1x6h71y.mjs +0 -1
  861. package/dist/chunks/setup-0.7.6-f52y5q94.mjs +0 -5
  862. package/dist/chunks/sinks-0.7.6-p38qk6rn.mjs +0 -1
  863. package/dist/chunks/skills-0.7.6-4x49mjqs.mjs +0 -1
  864. package/dist/chunks/startupProfiler-0.7.6-kehr3zds.mjs +0 -1
  865. package/dist/chunks/startupUpdateCheck-0.7.6-m95yf5v2.mjs +0 -1
  866. package/dist/chunks/state-0.7.6-exkbe4vf.mjs +0 -1
  867. package/dist/chunks/stats-0.7.6-y4qxdfqk.mjs +0 -6
  868. package/dist/chunks/status-0.7.6-etkntf2w.mjs +0 -1
  869. package/dist/chunks/stickers-0.7.6-jfaby3j3.mjs +0 -1
  870. package/dist/chunks/subprocessEnv-0.7.6-2bme852w.mjs +0 -1
  871. package/dist/chunks/tasks-0.7.6-vc8j66yr.mjs +0 -1
  872. package/dist/chunks/teamHelpers-0.7.6-ax1nev6h.mjs +0 -1
  873. package/dist/chunks/teammateModeSnapshot-0.7.6-9tjnw4x3.mjs +0 -1
  874. package/dist/chunks/teleport-0.7.6-xjeqw992.mjs +0 -1
  875. package/dist/chunks/terminalSetup-0.7.6-cx56kmpg.mjs +0 -1
  876. package/dist/chunks/theme-0.7.6-artxd1km.mjs +0 -1
  877. package/dist/chunks/thinkback-0.7.6-ar7ssxsq.mjs +0 -1
  878. package/dist/chunks/thinkback-play-0.7.6-7d5g791f.mjs +0 -1
  879. package/dist/chunks/toolPool-0.7.6-58r85xft.mjs +0 -1
  880. package/dist/chunks/toolSearch-0.7.6-29hekpkv.mjs +0 -1
  881. package/dist/chunks/tools-0.7.6-6bhsctcm.mjs +0 -1
  882. package/dist/chunks/trustedDevice-0.7.6-aay0bw3y.mjs +0 -1
  883. package/dist/chunks/turndown.cjs-0.7.6-cfbcqt7b.mjs +0 -69
  884. package/dist/chunks/types-0.7.6-z2j2wxhd.mjs +0 -1
  885. package/dist/chunks/ultrareviewCommand-0.7.6-7w7yx7mv.mjs +0 -4
  886. package/dist/chunks/update-0.7.6-6s5hvmvc.mjs +0 -86
  887. package/dist/chunks/upgrade-0.7.6-nrvaa7qs.mjs +0 -1
  888. package/dist/chunks/upload-0.7.6-6880h5gd.mjs +0 -7
  889. package/dist/chunks/upstreamproxy-0.7.6-d4xfvwf7.mjs +0 -14
  890. package/dist/chunks/url-handler-napi-0.7.6-hcyxzqg6.mjs +0 -1
  891. package/dist/chunks/usage-0.7.6-vbbt70v9.mjs +0 -1
  892. package/dist/chunks/util-0.7.6-0cm7xj78.mjs +0 -1
  893. package/dist/chunks/utils-0.7.6-h3fwyhxw.mjs +0 -1
  894. package/dist/chunks/vim-0.7.6-k6evwpd5.mjs +0 -1
  895. package/dist/chunks/watcher-0.7.6-gc6rbcvg.mjs +0 -1
  896. package/dist/chunks/wiki-0.7.6-3sjbdwmf.mjs +0 -132
  897. package/dist/chunks/workflows-0.7.6-rg3kvwhe.mjs +0 -1
  898. package/dist/chunks/worktree-0.7.6-hhewj19d.mjs +0 -1
  899. package/dist/chunks/worktreeModeEnabled-0.7.6-a27ekdvp.mjs +0 -1
  900. package/dist/chunks/wrapper-0.7.6-01s6r78y.mjs +0 -7
  901. package/dist/claudin-vscode.vsix +0 -0
  902. package/scripts/postinstall-warmup.mjs +0 -70
  903. package/scripts/v8cache-gc.mjs +0 -84
  904. /package/dist/chunks/{cli-0.7.6-sznceb3v.mjs → cli-1.0.3-25zd2770.mjs} +0 -0
  905. /package/dist/chunks/{cli-0.7.6-wmhr2zkd.mjs → cli-1.0.3-43683395.mjs} +0 -0
  906. /package/dist/chunks/{cli-0.7.6-azjnjp5p.mjs → cli-1.0.3-77dec30x.mjs} +0 -0
  907. /package/dist/chunks/{cli-0.7.6-2nmq534s.mjs → cli-1.0.3-adgwsvq3.mjs} +0 -0
  908. /package/dist/chunks/{cli-0.7.6-wmk10em6.mjs → cli-1.0.3-cf280jvq.mjs} +0 -0
  909. /package/dist/chunks/{cli-0.7.6-b39v6rz1.mjs → cli-1.0.3-hn2qw1pk.mjs} +0 -0
  910. /package/dist/chunks/{cli-0.7.6-pef1cr89.mjs → cli-1.0.3-qf5pjy0v.mjs} +0 -0
  911. /package/dist/chunks/{cli-0.7.6-jpjn976y.mjs → cli-1.0.3-vzm5gxzn.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{Mqa as x,Oqa as y,Sqa as C}from"./cli-0.7.6-ftdrd7jk.mjs";import{Vqa as k}from"./cli-0.7.6-jpjn976y.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
- `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
- export{MF as H8};
@@ -1,2 +0,0 @@
1
- import{se as V,ue as B}from"./cli-0.7.6-zmkr521v.mjs";import{IQ as F,MN as U,ON as w,Zw as Q,_w as q,fk as L}from"./cli-0.7.6-qan5xxdc.mjs";import{B$ as k,w$ as K}from"./cli-0.7.6-fn56g2cc.mjs";import{Qia as I,Tia as $}from"./cli-0.7.6-jmpc9xmj.mjs";import{oja as G,vja as _}from"./cli-0.7.6-310844c3.mjs";import{Xqa as Z}from"./cli-0.7.6-jpjn976y.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 qe,D as re};
@@ -1,2 +0,0 @@
1
- import{hd as K,id as Y}from"./cli-0.7.6-md1ramb7.mjs";import{Dp as H,Ep as W,GM as X,sl as G,tl as B,xl as U,yM as J,yl as V}from"./cli-0.7.6-qan5xxdc.mjs";import{Uqa as q,Xqa as v}from"./cli-0.7.6-jpjn976y.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
- export{P as dd,C as ed,A as fd,D as gd};
@@ -1,2 +0,0 @@
1
- import{I0 as e2,IY as u2,RY as Z,b0 as Y,d0 as u}from"./cli-0.7.6-56h0kfkw.mjs";import{O2 as t,P2 as o,Q2 as U}from"./cli-0.7.6-8k508w7p.mjs";import{$$ as j,Z$ as X}from"./cli-0.7.6-fn56g2cc.mjs";import{Tqa as s}from"./cli-0.7.6-jpjn976y.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.7.6"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.7.6"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.7.6"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.7.6"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as W};
@@ -1,2 +0,0 @@
1
- import{Apa as e8,Bpa as R5,Cpa as _8,Dpa as E,Epa as h8,Fpa as P,Gpa as x1,Hpa as d,Ipa as xQ,Jpa as r,Kpa as UQ,Lpa as T5,Mpa as UY,npa as _Q,opa as YJ,ppa as v,qpa as P1,rpa as Y5,spa as w8,tpa as q,upa as y,vpa as S,wpa as kQ,xpa as L,ypa as a,zpa as n5}from"./cli-0.7.6-xg6ka3pp.mjs";import{Wqa as aQ,Xqa as X}from"./cli-0.7.6-jpjn976y.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();DQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=q.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=S?S.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function qJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=qJ});var DJ,w;var M=X(()=>{DJ=Array.isArray,w=DJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{mQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();m();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();m();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,SJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?q.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,SJ=yJ||cQ,A=SJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?mJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var mJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();m();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||D8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var q8,D8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();q8=Object.prototype,D8=q8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{_8();J1();q5=k8});function E8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var S1=X(()=>{x5();F5();D5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var m1;var O5=X(()=>{yQ();bQ();S1();m1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=m1(Q),B=U.length,K=m1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var S8,U1;var L5=X(()=>{x1();y();S8=P(q,"DataView"),U1=S8});var m8,K1;var f5=X(()=>{x1();y();m8=P(q,"Promise"),K1=m8});var A8,G1;var P5=X(()=>{x1();y();A8=P(q,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(q,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,S5;var m5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();S1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();m();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var q1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function qY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var D1;var b1=X(()=>{M();q1();s5();X$();D1=qY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();q1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as SY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=SY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,S$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,S$(Q)}function S$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function q9(){return $.directConnectServerUrl}function D9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){return Date.now()-$.startTime}function I9(){return $.totalAPIDurationWithoutRetries}function C9(){return $.totalToolDuration}function _9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function k9(){return $.turnHookDurationMs}function E9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function v9(){$.turnHookDurationMs=0,$.turnHookCount=0}function d9(){return $.turnHookCount}function g9(){return $.turnToolDurationMs}function p9(){$.turnToolDurationMs=0,$.turnToolCount=0}function y9(){return $.turnToolCount}function S9(){return $.turnClassifierDurationMs}function m9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function A9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function j9(){return $.turnClassifierCount}function h9(){return $.statsStore}function n9(Q){$.statsStore=Q}function b9(Q){if(Q)m$();else s1=!0}function i9(){if(s1)m$()}function m$(){$.lastInteractionTime=Date.now(),s1=!1}function u9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function l9(){return $.totalLinesAdded}function T9(){return $.totalLinesRemoved}function c9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function r9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function o9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function s9(){return b(Object.values($.modelUsage),"webSearchRequests")}function a9(){return A$()-a1}function t9(){return t1}function e9(Q){a1=A$(),t1=Q,f1=0}function QH(){return f1}function $H(){f1++}function JH(){$.hasUnknownModelCost=!0}function YH(){return $.hasUnknownModelCost}function ZH(){return $.lastMainRequestId}function XH(Q){$.lastMainRequestId=Q}function HH(){return $.lastApiCompletionTimestamp}function WH(Q){$.lastApiCompletionTimestamp=Q}function xH(){$.pendingPostCompaction=!0}function UH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function KH(){return $.lastInteractionTime}function GH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function BH(){return M1}async function NH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function wH(){return $.modelUsage}function zH(Q){return $.modelUsage[Q]}function FH(){return $.mainLoopModelOverride}function RH(){return $.initialMainLoopModel}function qH(Q){$.mainLoopModelOverride=Q}function DH(Q){$.initialMainLoopModel=Q}function OH(){return $.sdkBetas}function VH(Q){$.sdkBetas=Q}function MH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function LH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function fH(){throw Error("resetStateForTests can only be called in tests")}function PH(){return $.modelStrings}function IH(Q){$.modelStrings=Q}function CH(){$.modelStrings=null}function _H(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function kH(){return $.meter}function EH(){return $.sessionCounter}function vH(){return $.locCounter}function dH(){return $.prCounter}function gH(){return $.commitCounter}function pH(){return $.costCounter}function yH(){return $.tokenCounter}function SH(){return $.codeEditToolDecisionCounter}function mH(){return $.activeTimeCounter}function AH(){return $.loggerProvider}function jH(Q){$.loggerProvider=Q}function hH(){return $.eventLogger}function nH(Q){$.eventLogger=Q}function bH(){return $.meterProvider}function iH(Q){$.meterProvider=Q}function uH(){return $.tracerProvider}function lH(Q){$.tracerProvider=Q}function mY(){return!$.isInteractive}function TH(){return $.isInteractive}function cH(Q){$.isInteractive=Q}function rH(){return $.clientType}function oH(Q){$.clientType=Q}function sH(){return $.sdkAgentProgressSummariesEnabled}function aH(Q){$.sdkAgentProgressSummariesEnabled=Q}function tH(){return $.kairosActive}function eH(Q){$.kairosActive=Q,L1()}function Q4(){return $.strictToolResultPairing}function $4(Q){$.strictToolResultPairing=Q}function J4(){return $.userMsgOptIn}function Y4(Q){$.userMsgOptIn=Q,L1()}function Z4(){return $.sessionSource}function X4(Q){$.sessionSource=Q}function H4(){return $.questionPreviewFormat}function W4(Q){$.questionPreviewFormat=Q}function x4(){return $.agentColorMap}function U4(){return $.flagSettingsPath}function K4(Q){$.flagSettingsPath=Q}function G4(){return $.flagSettingsInline}function B4(Q){$.flagSettingsInline=Q}function N4(){return $.sessionIngressToken}function w4(Q){$.sessionIngressToken=Q}function z4(){return $.oauthTokenFromFd}function F4(Q){$.oauthTokenFromFd=Q}function R4(){return $.apiKeyFromFd}function q4(Q){$.apiKeyFromFd=Q}function D4(Q){$.lastAPIRequest=Q}function O4(){return $.lastAPIRequest}function V4(Q){$.lastAPIRequestMessages=Q}function M4(){return $.lastAPIRequestMessages}function L4(Q){$.lastClassifierRequests=Q}function f4(){return $.lastClassifierRequests}function P4(Q){$.cachedClaudeMdContent=Q}function I4(){return $.cachedClaudeMdContent}function C4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function _4(){return $.allowedSettingSources}function k4(Q){$.allowedSettingSources=Q}function E4(){return mY()&&$.clientType!=="claude-vscode"}function v4(Q){$.inlinePlugins=Q}function d4(){return $.inlinePlugins}function g4(Q){$.useCoworkPlugins=Q,E$()}function p4(){return $.useCoworkPlugins}function y4(Q){$.sessionBypassPermissionsMode=Q}function S4(){return $.sessionBypassPermissionsMode}function m4(Q){$.scheduledTasksEnabled=Q}function A4(){return $.scheduledTasksEnabled}function j4(){return $.sessionCronTasks}function h4(Q){$.sessionCronTasks.push(Q)}function n4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function b4(){return $.pendingSessionWakeup}function i4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function u4(){$.pendingSessionWakeup=null}function l4(Q){$.sessionTrustAccepted=Q}function T4(){return $.sessionTrustAccepted}function c4(Q){$.sessionPersistenceDisabled=Q}function r4(){return $.sessionPersistenceDisabled}function o4(){return $.hasExitedPlanMode}function s4(Q){$.hasExitedPlanMode=Q}function a4(){return $.needsPlanModeExitAttachment}function t4(Q){$.needsPlanModeExitAttachment=Q}function e4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function Q3(){return $.needsAutoModeExitAttachment}function $3(Q){$.needsAutoModeExitAttachment=Q}function J3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function Y3(Q){$.initJsonSchema=Q}function Z3(){return $.initJsonSchema}function X3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function H3(){return $.registeredHooks}function W3(){$.registeredHooks=null}function x3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function U3(){$.initJsonSchema=null,$.registeredHooks=null}function K3(){return $.planSlugCache}function G3(){return $.sessionCreatedTeams}function B3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function N3(){return $.teleportedSessionInfo}function w3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function z3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function F3(){return $.invokedSkills}function R3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function q3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function D3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function O3(Q,J){}function V3(){return AY}function M3(){return $.mainThreadAgentType}function L3(Q){$.mainThreadAgentType=Q}function f3(){return $.isRemoteMode}function P3(Q){$.isRemoteMode=Q}function I3(){return $.systemPromptSectionCache}function C3(Q,J){$.systemPromptSectionCache.set(Q,J)}function _3(){$.systemPromptSectionCache.clear()}function k3(){return $.lastEmittedDate}function E3(Q){$.lastEmittedDate=Q}function v3(){return $.additionalDirectoriesForClaudeMd}function d3(Q){$.additionalDirectoriesForClaudeMd=Q}function g3(){return $.allowedChannels}function p3(Q){$.allowedChannels=Q,L1()}function y3(){return $.hasDevChannels}function S3(Q){$.hasDevChannels=Q}function m3(){return $.largeSystemPromptDetected}function A3(Q){$.largeSystemPromptDetected=Q}function j3(){return $.afkModeHeaderLatched}function h3(Q){$.afkModeHeaderLatched=Q}function n3(){return $.fastModeHeaderLatched}function b3(Q){$.fastModeHeaderLatched=Q}function i3(){return $.thinkingClearLatched}function u3(Q){$.thinkingClearLatched=Q}function l3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function T3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function c3(){return $.deferredDeltaLegacySession}function r3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function o3(){return $.sessionEpochMs}function s3(){return $.promptId}function a3(Q){$.promptId=Q}function t3(){return!1}function e3(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
- export{p as Mja,I1 as Nja,FQ as Oja,RQ as Pja,OQ as Qja,VQ as Rja,_1 as Sja,MQ as Tja,PQ as Uja,IQ as Vja,dQ as Wja,gQ as Xja,w as Yja,M as Zja,pQ as _ja,yQ as $ja,SQ as aka,mQ as bka,AQ as cka,jQ as dka,nQ as eka,bQ as fka,O as gka,m as hka,t as ika,v1 as jka,A as kka,d1 as lka,$1 as mka,g1 as nka,$5 as oka,J5 as pka,X1 as qka,X5 as rka,H1 as ska,y1 as tka,W5 as uka,x5 as vka,U5 as wka,K5 as xka,G5 as yka,B5 as zka,q5 as Aka,D5 as Bka,W1 as Cka,S1 as Dka,m1 as Eka,O5 as Fka,G1 as Gka,P5 as Hka,A1 as Ika,d5 as Jka,w1 as Kka,j1 as Lka,h as Mka,R1 as Nka,a5 as Oka,t5 as Pka,Z$ as Qka,X$ as Rka,D1 as Ska,b1 as Tka,I as Uka,u as Vka,O1 as Wka,i1 as Xka,F$ as Yka,R$ as Zka,f$ as _ka,P$ as $ka,nX as ala,bX as bla,iX as cla,uX as dla,lX as ela,TX as fla,E$ as gla,cX as hla,rX as ila,oX as jla,v$ as kla,d$ as lla,g$ as mla,Z9 as nla,X9 as ola,H9 as pla,W9 as qla,x9 as rla,U9 as sla,K9 as tla,G9 as ula,B9 as vla,N9 as wla,w9 as xla,z9 as yla,F9 as zla,R9 as Ala,q9 as Bla,D9 as Cla,O9 as Dla,V9 as Ela,M9 as Fla,L9 as Gla,f9 as Hla,P9 as Ila,I9 as Jla,C9 as Kla,_9 as Lla,k9 as Mla,E9 as Nla,v9 as Ola,d9 as Pla,g9 as Qla,p9 as Rla,y9 as Sla,S9 as Tla,m9 as Ula,A9 as Vla,j9 as Wla,h9 as Xla,n9 as Yla,b9 as Zla,i9 as _la,u9 as $la,l9 as ama,T9 as bma,c9 as cma,A$ as dma,r9 as ema,o9 as fma,s9 as gma,a9 as hma,t9 as ima,e9 as jma,QH as kma,$H as lma,JH as mma,YH as nma,ZH as oma,XH as pma,HH as qma,WH as rma,xH as sma,UH as tma,KH as uma,GH as vma,BH as wma,NH as xma,wH as yma,zH as zma,FH as Ama,RH as Bma,qH as Cma,DH as Dma,OH as Ema,VH as Fma,MH as Gma,LH as Hma,fH as Ima,PH as Jma,IH as Kma,CH as Lma,_H as Mma,kH as Nma,EH as Oma,vH as Pma,dH as Qma,gH as Rma,pH as Sma,yH as Tma,SH as Uma,mH as Vma,AH as Wma,jH as Xma,hH as Yma,nH as Zma,bH as _ma,iH as $ma,uH as ana,lH as bna,mY as cna,TH as dna,cH as ena,rH as fna,oH as gna,sH as hna,aH as ina,tH as jna,eH as kna,Q4 as lna,$4 as mna,J4 as nna,Y4 as ona,Z4 as pna,X4 as qna,H4 as rna,W4 as sna,x4 as tna,U4 as una,K4 as vna,G4 as wna,B4 as xna,N4 as yna,w4 as zna,z4 as Ana,F4 as Bna,R4 as Cna,q4 as Dna,D4 as Ena,O4 as Fna,V4 as Gna,M4 as Hna,L4 as Ina,f4 as Jna,P4 as Kna,I4 as Lna,C4 as Mna,_4 as Nna,k4 as Ona,E4 as Pna,v4 as Qna,d4 as Rna,g4 as Sna,p4 as Tna,y4 as Una,S4 as Vna,m4 as Wna,A4 as Xna,j4 as Yna,h4 as Zna,n4 as _na,b4 as $na,i4 as aoa,u4 as boa,l4 as coa,T4 as doa,c4 as eoa,r4 as foa,o4 as goa,s4 as hoa,a4 as ioa,t4 as joa,e4 as koa,Q3 as loa,$3 as moa,J3 as noa,Y3 as ooa,Z3 as poa,X3 as qoa,H3 as roa,W3 as soa,x3 as toa,U3 as uoa,K3 as voa,G3 as woa,B3 as xoa,N3 as yoa,w3 as zoa,z3 as Aoa,F3 as Boa,R3 as Coa,q3 as Doa,D3 as Eoa,O3 as Foa,V3 as Goa,M3 as Hoa,L3 as Ioa,f3 as Joa,P3 as Koa,I3 as Loa,C3 as Moa,_3 as Noa,k3 as Ooa,E3 as Poa,v3 as Qoa,d3 as Roa,g3 as Soa,p3 as Toa,y3 as Uoa,S3 as Voa,m3 as Woa,A3 as Xoa,j3 as Yoa,h3 as Zoa,n3 as _oa,b3 as $oa,i3 as apa,u3 as bpa,l3 as cpa,T3 as dpa,c3 as epa,r3 as fpa,jY as gpa,o3 as hpa,s3 as ipa,a3 as jpa,t3 as kpa,e3 as lpa,hY as mpa};
@@ -1 +0,0 @@
1
- import{Tga as q,Vga as A,Wga as x,Xga as B}from"./cli-0.7.6-k5r0yz41.mjs";import{yia as J}from"./cli-0.7.6-jmpc9xmj.mjs";import{vja as G}from"./cli-0.7.6-310844c3.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -1,2 +0,0 @@
1
- import{Jda as G,Kda as h,Oda as v,Pda as P,Wda as k,gea as f,mda as M,pda as L}from"./cli-0.7.6-fn56g2cc.mjs";import{Dha as E,Mha as x}from"./cli-0.7.6-5qabm4xe.mjs";import{Lja as u,yja as T}from"./cli-0.7.6-0wr25ecz.mjs";import{Xqa as C}from"./cli-0.7.6-jpjn976y.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
- export{Vj as Cc,Wj as Dc,e as Ec,Xj as Fc,Yj as Gc,jj as Hc};
@@ -1,2 +0,0 @@
1
- import{vd as XJ,wd as mJ}from"./cli-0.7.6-zrwpmp3s.mjs";import{$h as dJ,_h as JJ}from"./cli-0.7.6-e3dwvde8.mjs";import{$E as vJ,Aj as g,CD as e,Cm as OJ,DD as pJ,DG as o,EG as s,FG as FJ,IQ as P,Jk as BJ,Jn as h,ON as I,Qy as i,Ry as TJ,VS as bJ,Wl as c,Zl as HJ,_E as n,_w as x,gD as LJ,km as a,pm as RJ,wD as yJ,wm as l,xD as DJ,zG as T}from"./cli-0.7.6-qan5xxdc.mjs";import{O5 as WJ}from"./cli-0.7.6-7mzraehr.mjs";import{Jca as MJ,U_ as VJ,Zea as O,_ea as AJ,gfa as B,ofa as H,pca as f,xca as u,yca as _J}from"./cli-0.7.6-fn56g2cc.mjs";import{Aga as YJ}from"./cli-0.7.6-ek2a439r.mjs";import{$ga as zJ}from"./cli-0.7.6-8h5rwm21.mjs";import{Nha as R,Qha as y}from"./cli-0.7.6-z4k83sx6.mjs";import{Cia as V,Gia as UJ,Qia as m,Tia as NJ,yia as QJ}from"./cli-0.7.6-jmpc9xmj.mjs";import{vja as C}from"./cli-0.7.6-310844c3.mjs";import{Lja as wJ,yja as U}from"./cli-0.7.6-0wr25ecz.mjs";import{dna as b,mpa as j,uma as F}from"./cli-0.7.6-bfwq4dm5.mjs";import{Uqa as jJ}from"./cli-0.7.6-jpjn976y.mjs";pJ();dJ();j();YJ();y();I();BJ();h();VJ();zJ();C();H();P();WJ();QJ();x();I();h();H();C();P();x();LJ();function D(){}j();y();AJ();NJ();wJ();UJ();TJ();MJ();H();o();vJ();RJ();bJ();FJ();_J();OJ();HJ();import{join as Q}from"path";var SJ=30;function L(){let K=((f()||{}).cleanupPeriodDays??SJ)*24*60*60*1000;return new Date(Date.now()-K)}function r(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function kJ(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,K){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let Z of G)try{if(kJ(Z.name)<J)if(await V().unlink(Q(X,Z.name)),K)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function EJ(){let X=V(),J=L(),K=O.errors(),$=O.baseLogs(),G=await p(K,J,!1);try{let Z;try{Z=await X.readdir($)}catch{return G}let Y=Z.filter((q)=>q.isDirectory()&&q.name.startsWith("mcp-logs-")).map((q)=>Q($,q.name));for(let q of Y)G=r(G,await p(q,J,!0)),await z(q,X)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")B(Z)}return G}async function w(X,J,K){if((await K.stat(X)).mtime<J)return await K.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function CJ(){let X=L(),J={messages:0,errors:0},K=g(),$=V(),G;try{G=await $.readdir(K)}catch{return J}for(let Z of G){if(!Z.isDirectory())continue;let Y=Q(K,Z.name),q;try{q=await $.readdir(Y)}catch{J.errors++;continue}for(let W of q)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,l),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 d(X,J,K=!0){let $=L(),G={messages:0,errors:0},Z=V(),Y;try{Y=await Z.readdir(X)}catch{return G}for(let q of Y){if(!q.isFile()||!q.name.endsWith(J))continue;try{if(await w(Q(X,q.name),$,Z))G.messages++}catch{G.errors++}}if(K)await z(X,Z);return G}async function hJ(){let X=a(),J=await d(X,".md"),K=Q(U(),"plans");if(K!==X){let $=await d(K,".md");return r(J,$)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},K=V();try{let $=U(),G=Q($,"file-history"),Z;try{Z=await K.readdir(G)}catch{return J}let Y=Z.filter((q)=>q.isDirectory()).map((q)=>Q(G,q.name));await Promise.all(Y.map(async(q)=>{try{if((await K.stat(q)).mtime<X)await K.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,K)}catch($){B($)}return J}async function IJ(){let X=L(),J={messages:0,errors:0},K=V();try{let $=U(),G=Q($,"session-env"),Z;try{Z=await K.readdir(G)}catch{return J}let Y=Z.filter((q)=>q.isDirectory()).map((q)=>Q(G,q.name));for(let q of Y)try{if((await K.stat(q)).mtime<X)await K.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,K)}catch($){B($)}return J}async function PJ(){let X=L(),J={messages:0,errors:0},K=V(),$=Q(U(),"debug"),G;try{G=await K.readdir($)}catch{return J}for(let Z of G){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await w(Q($,Z.name),X,K))J.messages++}catch{J.errors++}}return J}async function t(){let{errors:X}=s();if(X.length>0&&u("cleanupPeriodDays")){m("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await EJ(),await CJ(),await hJ(),await xJ(),await IJ(),await PJ(),await i(),await n(L());let J=await c(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}o();mJ();var fJ=(DJ(),jJ(yJ));var v=600000;function sX(){JJ(),D(),fJ.initExtractMemories(),e(),XJ();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await t();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
2
- export{sX as La};
@@ -1,2 +0,0 @@
1
- import{j4 as H,k4 as _,l4 as Y,m4 as y}from"./cli-0.7.6-7mzraehr.mjs";import{j9 as M,l9 as f}from"./cli-0.7.6-fn56g2cc.mjs";import{Cia as P,Gia as p,Qia as x,Tha as F,Tia as S,Vha as b}from"./cli-0.7.6-jmpc9xmj.mjs";import{oja as V,vja as R}from"./cli-0.7.6-310844c3.mjs";import{Bja as U,Lja as g}from"./cli-0.7.6-0wr25ecz.mjs";import{mpa as A,yna as D,zna as W}from"./cli-0.7.6-bfwq4dm5.mjs";import{Xqa as L}from"./cli-0.7.6-jpjn976y.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 NV,s as OV,o as PV,u as QV,e as RV,qq as SV,Gq as TV,Jq as UV,Kq as VV,Qq as WV,h as XV,$q as YV,m as ZV};
@@ -1,2 +0,0 @@
1
- import{I0 as a,IY as u,QZ as QQ,RZ as uQ,b0 as g,d0 as h,j0 as RQ,s0 as jQ,t0 as aQ,x0 as d}from"./cli-0.7.6-56h0kfkw.mjs";import{O2 as S,P2 as k,Q2 as f}from"./cli-0.7.6-8k508w7p.mjs";import{R2 as v}from"./cli-0.7.6-471rvdw2.mjs";import{d3 as n,f3 as t,k3 as YV}from"./cli-0.7.6-vhan81qg.mjs";import{a7 as $Q,d7 as P,g7 as bQ,v7 as XV}from"./cli-0.7.6-7mzraehr.mjs";import{Kca as fQ,Kda as QV,Lca as eQ,gfa as CQ,mda as mQ,ofa as VV,pda as x}from"./cli-0.7.6-fn56g2cc.mjs";import{tfa as AQ,ufa as sQ}from"./cli-0.7.6-0ekx5n2q.mjs";import{Lha as r,Mha as nQ}from"./cli-0.7.6-5qabm4xe.mjs";import{Qia as D,Tia as iQ}from"./cli-0.7.6-jmpc9xmj.mjs";import{gqa as i,yqa as tQ}from"./cli-0.7.6-r78s2g03.mjs";import{Tqa as M,Xqa as F}from"./cli-0.7.6-jpjn976y.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{XQ as sX,YQ as tX,GQ as uX,yQ as vX,l as wX,BV as xX,qQ as yX,LQ as zX,zQ as AX,BQ as BX,MV as CX,y as DX,SV as EX,UQ as FX,TV as GX,OQ as HX,_Q as IX,o as JX,WQ as KX,$V as LX,oQ as MX,s as NX,IQ as OX,pV as PX,xV as QX,KQ as RX,EQ as SX,DQ as TX,oV as UX,rQ as VX,ZX as WX,JX as XX,GX as YX,qX as ZX,LX as _X,GV as $X,HX as aY,qV as bY};
@@ -1,3 +0,0 @@
1
- import{$B as qf,DH as v,EH as Bf,Ek as m,El as c,Fk as pf,OF as S,PF as zf,Pl as N,Sl as d,Tl as M,US as Hf,VS as If,Yn as l,Zl as Of,Zn as $f,_B as X,km as V,nR as r,pR as Zf,pm as Yf}from"./cli-0.7.6-qan5xxdc.mjs";import{cU as u,dU as Kf}from"./cli-0.7.6-md31wz8f.mjs";import{I0 as Af,IY as Jf,b0 as D,d0 as T}from"./cli-0.7.6-56h0kfkw.mjs";import{O2 as A,P2 as R,Q2 as L}from"./cli-0.7.6-8k508w7p.mjs";import{R2 as _f}from"./cli-0.7.6-471rvdw2.mjs";import{n9 as W,p9 as yf}from"./cli-0.7.6-fn56g2cc.mjs";import{Nha as F,Qha as ff}from"./cli-0.7.6-z4k83sx6.mjs";import{Qia as b,Tia as Gf}from"./cli-0.7.6-jmpc9xmj.mjs";import{Tqa as g,Uqa as e,Xqa as k}from"./cli-0.7.6-jpjn976y.mjs";function E(){(If(),e(Hf)).saveWorktreeState(null),m()}function a({onDone:J,onCancel:O}){let[Y,y]=$.useState("loading"),[p,H]=$.useState([]),[G,q]=$.useState(0),[Z,_]=$.useState(),f=c();if($.useEffect(()=>{async function z(){let I=[],B=await W("git",["status","--porcelain"]);if(B.stdout)I=B.stdout.split(`
2
- `).filter((Q)=>Q.trim()!==""),H(I);if(f){let{stdout:Q}=await W("git",["rev-list","--count",`${f.originalHeadCommit}..HEAD`]),w=parseInt(Q.trim())||0;if(q(w),I.length===0&&w===0){y("removing"),M().then(()=>{process.chdir(f.originalCwd),X(f.originalCwd),V.cache.clear?.(),_("Worktree removed (no changes)")}).catch((s)=>{b(`Failed to clean up worktree: ${s}`,{level:"error"}),_("Worktree cleanup failed, exiting anyway")}).finally(()=>{E()}).then(()=>{y("done")});return}else y("asking")}}z()},[f]),$.useEffect(()=>{if(Y==="done")J(Z)},[Y,J,Z]),!f)return J("No active worktree session found",{display:"system"}),null;if(Y==="loading"||Y==="done")return null;async function j(z){if(!f)return;let I=Boolean(f.tmuxSessionName);if(z==="keep"||z==="keep-with-tmux"){y("keeping"),F("tengu_worktree_kept",{commits:G,changed_files:p.length}),await d();try{process.chdir(f.originalCwd),X(f.originalCwd)}finally{E()}if(V.cache.clear?.(),I)_(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${f.tmuxSessionName}`);else _(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}`);y("done")}else if(z==="keep-kill-tmux"){if(y("keeping"),F("tengu_worktree_kept",{commits:G,changed_files:p.length}),f.tmuxSessionName)await N(f.tmuxSessionName);await d();try{process.chdir(f.originalCwd),X(f.originalCwd)}finally{E()}V.cache.clear?.(),_(`Worktree kept at ${f.worktreePath} on branch ${f.worktreeBranch}. Tmux session terminated.`),y("done")}else if(z==="remove"||z==="remove-with-tmux"){if(y("removing"),F("tengu_worktree_removed",{commits:G,changed_files:p.length}),f.tmuxSessionName)await N(f.tmuxSessionName);try{await M(),process.chdir(f.originalCwd),X(f.originalCwd),V.cache.clear?.()}catch(Q){b(`Failed to clean up worktree: ${Q}`,{level:"error"}),_("Worktree cleanup failed, exiting anyway"),y("done");return}finally{E()}let B=I?" Tmux session terminated.":"";if(G>0&&p.length>0)_(`Worktree removed. ${G} ${G===1?"commit":"commits"} and uncommitted changes were discarded.${B}`);else if(G>0)_(`Worktree removed. ${G} ${G===1?"commit":"commits"} on ${f.worktreeBranch} ${G===1?"was":"were"} discarded.${B}`);else if(p.length>0)_(`Worktree removed. Uncommitted changes were discarded.${B}`);else _(`Worktree removed.${B}`);y("done")}}if(Y==="keeping")return R(D,{flexDirection:"row",marginY:1,children:[A(v,{}),A(T,{children:"Keeping worktree…"})]});if(Y==="removing")return R(D,{flexDirection:"row",marginY:1,children:[A(v,{}),A(T,{children:"Removing worktree…"})]});let x=f.worktreeBranch,P=p.length>0,U=G>0,K="";if(P&&U)K=`You have ${p.length} uncommitted ${p.length===1?"file":"files"} and ${G} ${G===1?"commit":"commits"} on ${x}. All will be lost if you remove.`;else if(P)K=`You have ${p.length} uncommitted ${p.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if(U)K=`You have ${G} ${G===1?"commit":"commits"} on ${x}. The branch will be deleted if you remove the worktree.`;else K="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function o(){if(O){O();return}j("keep")}let h=P||U?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(f.tmuxSessionName),t=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 A(l,{title:"Exiting worktree session",subtitle:K,onCancel:o,children:A(S,{defaultFocusValue:C?"keep-with-tmux":"keep",options:t,onChange:j})})}var $;var i=k(()=>{ff();Gf();Af();yf();Yf();pf();qf();Of();zf();$f();Bf();L();$=g(_f(),1)});function Vf(){return u(Qf)??"Goodbye!"}function wf(J){let O=n.c(5),{showWorktree:Y,onDone:y,onCancel:p}=J,H;if(O[0]!==y)H=async function(Z){y(Z??Vf()),await r(0,"prompt_input_exit")},O[0]=y,O[1]=H;else H=O[1];let G=H;if(Y){let q;if(O[2]!==p||O[3]!==G)q=A(a,{onDone:G,onCancel:p}),O[2]=p,O[3]=G,O[4]=q;else q=O[4];return q}return null}var n,Qf;var Xf=k(()=>{Kf();Zf();i();L();n=g(Jf(),1),Qf=["Goodbye!","See ya!","Bye!","Catch you later!"]});
3
- export{wf as mc,Xf as nc};
@@ -1,2 +0,0 @@
1
- import{ef as H,hf as A}from"./cli-0.7.6-fmmr53nv.mjs";import{Af as _,vf as L,yf as P}from"./cli-0.7.6-m51wgngt.mjs";import{gqa as U,yqa as F}from"./cli-0.7.6-r78s2g03.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
2
- export{j as xb,C as yb,y as zb,S as Ab,h as Bb,f as Cb};
@@ -1,18 +0,0 @@
1
- import{Ye as kZ,cf as XX}from"./cli-0.7.6-hrw7nyyq.mjs";import{gf as YZ,hf as gQ}from"./cli-0.7.6-fmmr53nv.mjs";import{$H as ZZ,AD as FQ,AH as i0,Ak as dZ,An as HJ,BD as vX,Bk as tQ,Bn as DQ,Bs as VQ,Bx as zJ,CQ as iZ,Cx as RQ,Es as KX,Ex as AX,Ey as NZ,Fy as rQ,GA as IX,Gk as r0,HA as DX,IF as OQ,IQ as LZ,Ik as GZ,Iy as a0,Jk as UJ,Jy as CZ,LF as gX,Nr as aZ,OF as j0,On as GQ,PF as QX,Pn as EX,Qn as l,Qr as FX,Rn as A0,Rr as cJ,Sr as LQ,UH as pZ,Un as Z0,Vn as B0,XH as kJ,YH as JZ,Yn as n,ZH as OJ,Zn as I0,Zr as U0,_H as WJ,_J as $0,_j as VZ,aA as fJ,aI as QZ,bA as BX,bI as XZ,bK as FZ,dI as p0,dy as yZ,eI as _0,ey as iQ,fI as PJ,fw as NQ,hs as vQ,iA as mZ,jA as ZX,jr as MZ,lw as CX,mr as lQ,ms as d0,pE as HQ,ps as hQ,rk as u0,sE as hX,sk as pJ,uH as WZ,ux as WQ,vH as RZ,vx as bX,wH as s0,wl as qQ,xQ as lZ,yH as MJ,yl as MX,zH as F0}from"./cli-0.7.6-qan5xxdc.mjs";import{HX as q0,IX as g0,sX as QJ,tX as nZ}from"./cli-0.7.6-chcjfb2p.mjs";import{I0 as f0,IY as R0,RY as l0,b0 as C,d0 as V,h0 as JJ,r0 as wZ}from"./cli-0.7.6-56h0kfkw.mjs";import{E2 as hJ,L2 as yX}from"./cli-0.7.6-wthbw2r0.mjs";import{N2 as o,O2 as f,P2 as W,Q2 as $}from"./cli-0.7.6-8k508w7p.mjs";import{R2 as o0}from"./cli-0.7.6-471rvdw2.mjs";import{a3 as mJ,k3 as MQ}from"./cli-0.7.6-vhan81qg.mjs";import{m3 as DJ,n3 as JX}from"./cli-0.7.6-wch5kwc6.mjs";import{B3 as tJ,C3 as IQ,p6 as NJ,q6 as wQ}from"./cli-0.7.6-7mzraehr.mjs";import{Gba as Q0,Oba as IJ,R_ as fQ,S_ as M0,U_ as CJ,Y8 as t0,Z8 as cZ,gfa as eJ,ofa as BQ,paa as z0,qaa as w0,qba as TZ,rba as uZ,tba as eQ,waa as m0}from"./cli-0.7.6-fn56g2cc.mjs";import{Bfa as oZ,Dfa as e0,Efa as x0,Lfa as h0,wfa as y0,zfa as b0}from"./cli-0.7.6-0ekx5n2q.mjs";import{Aga as AQ,oga as sJ}from"./cli-0.7.6-ek2a439r.mjs";import{Nha as t,Qha as _J}from"./cli-0.7.6-z4k83sx6.mjs";import{Eia as $Z,Gia as RX,Qia as D0,Tia as dJ}from"./cli-0.7.6-jmpc9xmj.mjs";import{oja as v0,vja as aJ}from"./cli-0.7.6-310844c3.mjs";import{Tqa as J0,Uqa as FJ,Wqa as $J,Xqa as a}from"./cli-0.7.6-jpjn976y.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
2
- `,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
3
- `,`## Approved Plan:
4
- `];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
5
- `;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
6
- `)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
7
- `),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
11
- You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
14
- `);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
15
- `);U0({value:`ultraplan: cannot launch remote session —
16
- ${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
17
- `,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=RQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await NQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=WQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();bX();nZ();AX();TJ();vX();CX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
18
- export{GJ as Pe,VJ as Qe,xX as Re,TJ as Se,LJ as Te,pQ as Ue,qZ as Ve,Sf as We,dX as Xe};
@@ -1,2 +0,0 @@
1
- import{Xqa as r}from"./cli-0.7.6-jpjn976y.mjs";var i,a=(s,e)=>function(){try{return e||(0,s[i(s)[0]])((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},c;var p=r(()=>{i=Object.getOwnPropertyNames,c=a({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.30.0",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.6","js-yaml@>=3.0.0 <3.15.0":"3.15.0","axios@>=1.0.0 <1.16.0":"1.16.1","follow-redirects@<1.16.0":">=1.16.0 <2.0.0","form-data@>=4.0.0 <4.0.6":"4.0.6","@babel/core@>=7.0.0 <7.29.6":"7.29.7","esbuild@>=0.17.0 <0.28.1":"0.28.1"}}}}})});
2
- export{c as ki,p as li};
@@ -1,2 +0,0 @@
1
- import{$h as l,Zh as j}from"./cli-0.7.6-e3dwvde8.mjs";import{di as W,ji as i}from"./cli-0.7.6-w4bq1f08.mjs";import{AB as d,EB as E,FB as C,Ju as _,Py as V,QN as M,Qj as Z,Rj as P,Ry as S,SN as n,Ui as Y,Vi as A,cP as x,cT as G,cx as U,dx as m,mP as s,ow as B,pO as b,pT as r,qO as o,qT as R,rT as f,sT as F,tT as u,tv as $,tw as p,uT as t,uv as D,vC as L,wC as h,ww as N,xw as g}from"./cli-0.7.6-qan5xxdc.mjs";import{J8 as Q,P8 as k}from"./cli-0.7.6-hsa9j8sb.mjs";import{V_ as X,W_ as v,s9 as O,z9 as I}from"./cli-0.7.6-fn56g2cc.mjs";import{Doa as J,Poa as K,mpa as T}from"./cli-0.7.6-bfwq4dm5.mjs";import{Xqa as y,Yqa as w}from"./cli-0.7.6-jpjn976y.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-0.7.6-h3fwyhxw.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-0.7.6-n01pcadg.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-0.7.6-7n8wpd6m.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-0.7.6-t8yabss3.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
2
- export{Mq as Rh,c as Sh};
@@ -1,2 +0,0 @@
1
- import{tia as E,uia as F,yia as M}from"./cli-0.7.6-jmpc9xmj.mjs";import{gqa as H,yqa as N}from"./cli-0.7.6-r78s2g03.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
2
- export{V as Mb,W as Nb,X as Ob,Y as Pb,Z as Qb};
@@ -1,4 +0,0 @@
1
- import{mg as LJ,ng as WQ}from"./cli-0.7.6-7ybdp9j0.mjs";import{og as hJ,pg as RQ}from"./cli-0.7.6-4ybzx76m.mjs";import{qg as PJ,rg as hQ}from"./cli-0.7.6-hsm2w1qr.mjs";import{sg as aq,tg as lJ}from"./cli-0.7.6-y3a6zp1r.mjs";import{ug as Fq,vg as iq,wg as $J}from"./cli-0.7.6-wz5w8hmh.mjs";import{xg as WJ,yg as HQ}from"./cli-0.7.6-wz34s2yk.mjs";import{Bx as g,EP as eq,Ex as yQ,GP as iJ,Mx as uq,Nx as mq,PI as HJ,Px as pq,QI as RJ,Qx as fJ,RI as wQ,So as P,To as Tq,UP as Aq,XP as oJ,YS as wq,aT as sq,bt as KJ,ct as VQ,dT as tq,dt as VJ,et as XJ,ft as XQ,pT as nJ,qG as vq,rG as BQ,sG as UJ,tG as FJ,uG as wJ,vG as FQ,vo as GJ,wo as KQ}from"./cli-0.7.6-qan5xxdc.mjs";import{YT as yJ,_T as NJ,bU as NQ}from"./cli-0.7.6-y8ga5pny.mjs";import{FV as BJ,JV as UQ}from"./cli-0.7.6-tp4xkdj6.mjs";import{HX as zJ,IX as zQ,LX as YJ,MX as YQ,UX as Mq,VX as GQ}from"./cli-0.7.6-chcjfb2p.mjs";import{I0 as Oq,IY as Pq,b0 as y,d0 as Q}from"./cli-0.7.6-56h0kfkw.mjs";import{N2 as h,O2 as Y,P2 as Z,Q2 as c}from"./cli-0.7.6-8k508w7p.mjs";import{R2 as ZQ}from"./cli-0.7.6-471rvdw2.mjs";import{O5 as cJ,a6 as ZJ,b6 as QQ,p5 as rq}from"./cli-0.7.6-7mzraehr.mjs";import{Cba as gq,Dba as dJ,Gba as xq,Oba as TJ,X_ as Iq,Y8 as $,Z8 as tJ,oca as QJ,s$ as qQ,yca as JQ}from"./cli-0.7.6-fn56g2cc.mjs";import{Lja as sJ,yja as JJ}from"./cli-0.7.6-0wr25ecz.mjs";import{mpa as eJ,vla as qJ}from"./cli-0.7.6-bfwq4dm5.mjs";import{Tqa as Bq,Xqa as Uq}from"./cli-0.7.6-jpjn976y.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function gJ(){let J=tq(await sq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function xJ(J){if(!J)return null;let q=iq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function rJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await eq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function aJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=aq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function oq(J,q,V){let[G,K,X,B]=await Promise.all([gJ(),xJ(q),rJ(J,V,q),aJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var nq=Uq(()=>{oJ();iJ();nJ();cJ();dJ();lJ();Tq();$J();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);YJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:XJ,upperLimit:VJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-8")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudin","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await oq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),UJ()){let Lq=bq(BJ(),"claude","locks"),DJ=wJ(Lq),SJ=FJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
- `)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
3
- `)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",GJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=KJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?NJ:yJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();GQ();RQ();$q();WQ();hQ();YQ();Oq();zQ();yQ();KQ();NQ();nq();BQ();VQ();qQ();FQ();JQ();XQ();wQ();UQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
4
- export{pZ as kg,cQ as lg};
@@ -1,2 +0,0 @@
1
- import{Xqa as e}from"./cli-0.7.6-jpjn976y.mjs";function o(){return!0}var t=()=>{};
2
- export{o as vT,t as wT};
@@ -1,4 +0,0 @@
1
- import{Sqa as Z}from"./cli-0.7.6-ftdrd7jk.mjs";import{Vqa as Y,Yqa as O}from"./cli-0.7.6-jpjn976y.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
- export{ye as Lqa};