@claudiolabs/claudin 0.6.1 → 0.6.2

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 (851) hide show
  1. package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +1 -0
  2. package/dist/chunks/App-0.6.2-81hq55t1.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +3 -0
  10. package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +1 -0
  11. package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +1 -0
  18. package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +1 -0
  28. package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +1 -0
  29. package/dist/chunks/agents-0.6.2-pwkawpda.mjs +110 -0
  30. package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +3 -0
  31. package/dist/chunks/api-0.6.2-r9z30232.mjs +1 -0
  32. package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +1 -0
  33. package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +1 -0
  34. package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +1 -0
  35. package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +1 -0
  36. package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +1 -0
  39. package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +1 -0
  41. package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +1 -0
  42. package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +3 -0
  43. package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +4 -0
  46. package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +1 -0
  49. package/dist/chunks/clear-0.6.2-301n503a.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +1 -0
  51. package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +42 -0
  52. package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +4 -0
  53. package/dist/chunks/cli-0.6.2-0p39svq8.mjs +2 -0
  54. package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +2 -0
  55. package/dist/chunks/cli-0.6.2-1ahapm20.mjs +2 -0
  56. package/dist/chunks/cli-0.6.2-1b9hx344.mjs +2 -0
  57. package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +2 -0
  58. package/dist/chunks/cli-0.6.2-1hrabb68.mjs +3 -0
  59. package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +9 -0
  60. package/dist/chunks/cli-0.6.2-1y907j57.mjs +2 -0
  61. package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +2 -0
  62. package/dist/chunks/cli-0.6.2-26qywcgz.mjs +2 -0
  63. package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +2 -0
  64. package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +3 -0
  65. package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +2 -0
  66. package/dist/chunks/cli-0.6.2-2z19ppek.mjs +15 -0
  67. package/dist/chunks/cli-0.6.2-334vw6ys.mjs +2 -0
  68. package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +2 -0
  69. package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +2 -0
  70. package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +2 -0
  71. package/dist/chunks/cli-0.6.2-42d88f3r.mjs +2 -0
  72. package/dist/chunks/cli-0.6.2-43f0sknv.mjs +2 -0
  73. package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +2 -0
  74. package/dist/chunks/cli-0.6.2-4a5t390f.mjs +2 -0
  75. package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +15 -0
  76. package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +2 -0
  77. package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +39 -0
  78. package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +5323 -0
  79. package/dist/chunks/cli-0.6.2-4py7r63v.mjs +2 -0
  80. package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +59 -0
  81. package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +2 -0
  82. package/dist/chunks/cli-0.6.2-5jempndm.mjs +133 -0
  83. package/dist/chunks/cli-0.6.2-657fbmws.mjs +2 -0
  84. package/dist/chunks/cli-0.6.2-6bacgc39.mjs +3 -0
  85. package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +5 -0
  86. package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +2 -0
  87. package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +3 -0
  88. package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +3 -0
  89. package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +4 -0
  90. package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +2 -0
  91. package/dist/chunks/cli-0.6.2-7egesyh9.mjs +4 -0
  92. package/dist/chunks/cli-0.6.2-7rmm482v.mjs +12 -0
  93. package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +2 -0
  94. package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +25 -0
  95. package/dist/chunks/cli-0.6.2-83ennmm8.mjs +21 -0
  96. package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +2 -0
  97. package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +5 -0
  98. package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +10 -0
  99. package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +2 -0
  100. package/dist/chunks/cli-0.6.2-974c5e67.mjs +9 -0
  101. package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +2 -0
  102. package/dist/chunks/cli-0.6.2-9mwrq250.mjs +3 -0
  103. package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +2 -0
  104. package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +2 -0
  105. package/dist/chunks/cli-0.6.2-9qtj477e.mjs +2 -0
  106. package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +2 -0
  107. package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +4 -0
  108. package/dist/chunks/cli-0.6.2-a8atyp18.mjs +2 -0
  109. package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +2 -0
  110. package/dist/chunks/cli-0.6.2-aq30pg47.mjs +2 -0
  111. package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +6 -0
  112. package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +2 -0
  113. package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +2 -0
  114. package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +2 -0
  115. package/dist/chunks/cli-0.6.2-bkff60ff.mjs +2 -0
  116. package/dist/chunks/cli-0.6.2-br678d1b.mjs +8 -0
  117. package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +2 -0
  118. package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +2 -0
  119. package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +2 -0
  120. package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +4 -0
  121. package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +2 -0
  122. package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +2 -0
  123. package/dist/chunks/cli-0.6.2-d3evezft.mjs +1 -0
  124. package/dist/chunks/cli-0.6.2-d3y2w089.mjs +2 -0
  125. package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +2 -0
  126. package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +12 -0
  127. package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +2 -0
  128. package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +2 -0
  129. package/dist/chunks/cli-0.6.2-dv8abe56.mjs +7 -0
  130. package/dist/chunks/cli-0.6.2-dx6qfese.mjs +2 -0
  131. package/dist/chunks/cli-0.6.2-dy4zwces.mjs +2 -0
  132. package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +2 -0
  133. package/dist/chunks/cli-0.6.2-e26khw0m.mjs +6 -0
  134. package/dist/chunks/cli-0.6.2-e66qz53g.mjs +2 -0
  135. package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +16 -0
  136. package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +45 -0
  137. package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +5 -0
  138. package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +2 -0
  139. package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +2 -0
  140. package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +2 -0
  141. package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +2 -0
  142. package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +2 -0
  143. package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +6 -0
  144. package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +2 -0
  145. package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +2 -0
  146. package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +2 -0
  147. package/dist/chunks/cli-0.6.2-grf75vb7.mjs +2 -0
  148. package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +2 -0
  149. package/dist/chunks/cli-0.6.2-h72p44ws.mjs +24 -0
  150. package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +2 -0
  151. package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +193 -0
  152. package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +2 -0
  153. package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +2 -0
  154. package/dist/chunks/cli-0.6.2-hqmcear6.mjs +2 -0
  155. package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +34 -0
  156. package/dist/chunks/cli-0.6.2-j05kmd43.mjs +2 -0
  157. package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +2 -0
  158. package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +2 -0
  159. package/dist/chunks/cli-0.6.2-jrb4f391.mjs +15 -0
  160. package/dist/chunks/cli-0.6.2-jrpted0b.mjs +2 -0
  161. package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +2 -0
  162. package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +2 -0
  163. package/dist/chunks/cli-0.6.2-k9v931hm.mjs +2 -0
  164. package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +2 -0
  165. package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +2 -0
  166. package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +4 -0
  167. package/dist/chunks/cli-0.6.2-ky1drj50.mjs +2 -0
  168. package/dist/chunks/cli-0.6.2-mabejxsw.mjs +4 -0
  169. package/dist/chunks/cli-0.6.2-majp93c4.mjs +2 -0
  170. package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +2 -0
  171. package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +3 -0
  172. package/dist/chunks/cli-0.6.2-n9610c8k.mjs +2 -0
  173. package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +2 -0
  174. package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +2 -0
  175. package/dist/chunks/cli-0.6.2-nwzye174.mjs +2 -0
  176. package/dist/chunks/cli-0.6.2-p0jszyht.mjs +3 -0
  177. package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +58 -0
  178. package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +2 -0
  179. package/dist/chunks/cli-0.6.2-q45wdma3.mjs +3 -0
  180. package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +2 -0
  181. package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +2 -0
  182. package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +2 -0
  183. package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +2 -0
  184. package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +2 -0
  185. package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +2 -0
  186. package/dist/chunks/cli-0.6.2-r4p904h3.mjs +67 -0
  187. package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +2 -0
  188. package/dist/chunks/cli-0.6.2-rde30n8x.mjs +2 -0
  189. package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +2 -0
  190. package/dist/chunks/cli-0.6.2-red287ya.mjs +2 -0
  191. package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +2 -0
  192. package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +2 -0
  193. package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +17 -0
  194. package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +24 -0
  195. package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +2 -0
  196. package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +2 -0
  197. package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +2 -0
  198. package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +2 -0
  199. package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +2 -0
  200. package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +133 -0
  201. package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +2 -0
  202. package/dist/chunks/cli-0.6.2-t038jmme.mjs +3 -0
  203. package/dist/chunks/cli-0.6.2-t3e59m32.mjs +2 -0
  204. package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +2 -0
  205. package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +2 -0
  206. package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +2 -0
  207. package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +2 -0
  208. package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +50 -0
  209. package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +20 -0
  210. package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +2 -0
  211. package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +2 -0
  212. package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +2 -0
  213. package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +2 -0
  214. package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +2 -0
  215. package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +18 -0
  216. package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +2 -0
  217. package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +3 -0
  218. package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +2 -0
  219. package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +2 -0
  220. package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +12 -0
  221. package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +2 -0
  222. package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +2 -0
  223. package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +18 -0
  224. package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +2 -0
  225. package/dist/chunks/cli-0.6.2-yep449sd.mjs +17 -0
  226. package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +2 -0
  227. package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +2 -0
  228. package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +4 -0
  229. package/dist/chunks/cli-0.6.2-yysvdabq.mjs +2 -0
  230. package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +4 -0
  231. package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +3 -0
  232. package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +4 -0
  233. package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +2 -0
  234. package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +18 -0
  235. package/dist/chunks/cli-0.6.2-zaahyems.mjs +2 -0
  236. package/dist/chunks/cli-0.6.2-zftyh47j.mjs +2 -0
  237. package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +2 -0
  238. package/dist/chunks/cli-0.6.2-zs4qp487.mjs +2 -0
  239. package/dist/chunks/client-0.6.2-8b0s065m.mjs +1 -0
  240. package/dist/chunks/color-0.6.2-jza3jez4.mjs +1 -0
  241. package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +3 -0
  242. package/dist/chunks/config-0.6.2-qjwjrd75.mjs +1 -0
  243. package/dist/chunks/config-0.6.2-xac3sjb7.mjs +1 -0
  244. package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +1 -0
  245. package/dist/chunks/context-0.6.2-w965073f.mjs +1 -0
  246. package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +1 -0
  247. package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +1 -0
  248. package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +1 -0
  249. package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +9 -0
  250. package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +1 -0
  252. package/dist/chunks/createSession-0.6.2-axgp009k.mjs +1 -0
  253. package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +1365 -0
  255. package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +1 -0
  257. package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +1 -0
  258. package/dist/chunks/diff-0.6.2-md180qh9.mjs +1 -0
  259. package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +1 -0
  262. package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +10 -0
  263. package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +1 -0
  265. package/dist/chunks/environments-0.6.2-fe197syt.mjs +1 -0
  266. package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +1 -0
  268. package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +1 -0
  269. package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +1 -0
  272. package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +1 -0
  273. package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +1 -0
  275. package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +1 -0
  277. package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +4 -0
  278. package/dist/chunks/grove-0.6.2-a2wgccag.mjs +1 -0
  279. package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +1 -0
  280. package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +2 -0
  281. package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +6 -0
  282. package/dist/chunks/help-0.6.2-c49svpae.mjs +1 -0
  283. package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +3 -0
  284. package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +1 -0
  285. package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +79 -0
  286. package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +3 -0
  287. package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +1 -0
  288. package/dist/chunks/index-0.6.2-1kk3erm5.mjs +9 -0
  289. package/dist/chunks/index-0.6.2-21nak3ad.mjs +1 -0
  290. package/dist/chunks/index-0.6.2-2vns8v9p.mjs +1 -0
  291. package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +1 -0
  292. package/dist/chunks/index-0.6.2-3g92ew8z.mjs +1 -0
  293. package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +1 -0
  294. package/dist/chunks/index-0.6.2-88m8k4cp.mjs +1 -0
  295. package/dist/chunks/index-0.6.2-93bh3w93.mjs +1 -0
  296. package/dist/chunks/index-0.6.2-9e0qz384.mjs +1 -0
  297. package/dist/chunks/index-0.6.2-emm65q8h.mjs +17 -0
  298. package/dist/chunks/index-0.6.2-ff57yvh3.mjs +1 -0
  299. package/dist/chunks/index-0.6.2-g6xy97jv.mjs +1 -0
  300. package/dist/chunks/index-0.6.2-h37g7n0s.mjs +9 -0
  301. package/dist/chunks/index-0.6.2-h8jkf613.mjs +5 -0
  302. package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +1 -0
  303. package/dist/chunks/index-0.6.2-jw83xhc8.mjs +2 -0
  304. package/dist/chunks/index-0.6.2-mehn31e3.mjs +30 -0
  305. package/dist/chunks/index-0.6.2-naw1d8mg.mjs +2 -0
  306. package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +1 -0
  307. package/dist/chunks/index-0.6.2-qn0re7sj.mjs +1 -0
  308. package/dist/chunks/index-0.6.2-tftj6wdh.mjs +1 -0
  309. package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +1 -0
  310. package/dist/chunks/init-0.6.2-47k2caay.mjs +1 -0
  311. package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +1 -0
  312. package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +1 -0
  313. package/dist/chunks/insights-0.6.2-st861yg4.mjs +870 -0
  314. package/dist/chunks/install-0.6.2-webkhwz9.mjs +1 -0
  315. package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +149 -0
  316. package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +1 -0
  317. package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +1 -0
  318. package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +1 -0
  319. package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +2 -0
  320. package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +2 -0
  321. package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +1 -0
  322. package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +1 -0
  325. package/dist/chunks/log-0.6.2-h02k5q0p.mjs +1 -0
  326. package/dist/chunks/main-0.6.2-51xvrsbq.mjs +1 -0
  327. package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +1 -0
  328. package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +17 -0
  329. package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +4 -0
  330. package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +1 -0
  331. package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +1 -0
  332. package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +3 -0
  333. package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +2 -0
  334. package/dist/chunks/model-0.6.2-49f9g2vz.mjs +2 -0
  335. package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +1 -0
  336. package/dist/chunks/node-0.6.2-40bknjza.mjs +12 -0
  337. package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +14 -0
  339. package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +1 -0
  340. package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +1 -0
  342. package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +1 -0
  343. package/dist/chunks/passes-0.6.2-kadygcw6.mjs +1 -0
  344. package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +3 -0
  345. package/dist/chunks/plan-0.6.2-hzbsezab.mjs +1 -0
  346. package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +1 -0
  347. package/dist/chunks/plugin-0.6.2-pr48413e.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +1 -0
  349. package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +2 -0
  351. package/dist/chunks/print-0.6.2-ng7p0m66.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +1 -0
  353. package/dist/chunks/process-0.6.2-7k26fk4b.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +9 -0
  356. package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +1 -0
  357. package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +1 -0
  358. package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +13 -0
  360. package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +34 -0
  365. package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +1 -0
  366. package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +2 -0
  368. package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +1 -0
  371. package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +1 -0
  374. package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +2 -0
  375. package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +1 -0
  379. package/dist/chunks/session-0.6.2-k41jbqwf.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +1 -0
  383. package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +1 -0
  384. package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +5 -0
  385. package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +1 -0
  386. package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +1 -0
  389. package/dist/chunks/state-0.6.2-nymhw7ey.mjs +1 -0
  390. package/dist/chunks/stats-0.6.2-skm9nakv.mjs +6 -0
  391. package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +1 -0
  392. package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +1 -0
  394. package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +1 -0
  397. package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +1 -0
  399. package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +1 -0
  400. package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +1 -0
  402. package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +1 -0
  404. package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +4 -0
  408. package/dist/chunks/update-0.6.2-p8edrwg4.mjs +86 -0
  409. package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +1 -0
  412. package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +1 -0
  413. package/dist/chunks/util-0.6.2-yet75ms4.mjs +1 -0
  414. package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +1 -0
  415. package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +1 -0
  416. package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +1 -0
  417. package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +132 -0
  418. package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +1 -0
  420. package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -2
  423. package/package.json +1 -1
  424. package/dist/chunks/AgentTool-0.6.1-2b9yaj35.mjs +0 -1
  425. package/dist/chunks/App-0.6.1-sqd9wgy4.mjs +0 -1
  426. package/dist/chunks/ApproveApiKey-0.6.1-baj4maw0.mjs +0 -1
  427. package/dist/chunks/AssistantSessionChooser-0.6.1-77f308qc.mjs +0 -1
  428. package/dist/chunks/AutoModeOptInDialog-0.6.1-q2fa8wy9.mjs +0 -1
  429. package/dist/chunks/BypassPermissionsModeDialog-0.6.1-vj7zarcr.mjs +0 -1
  430. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.1-ywjkq6yd.mjs +0 -1
  431. package/dist/chunks/ConsoleOAuthFlow-0.6.1-7092d0jn.mjs +0 -1
  432. package/dist/chunks/DiffDialog-0.6.1-43pkwyjr.mjs +0 -3
  433. package/dist/chunks/Doctor-0.6.1-cptm2pha.mjs +0 -1
  434. package/dist/chunks/Grove-0.6.1-ty02ny05.mjs +0 -1
  435. package/dist/chunks/ITermBackend-0.6.1-hhbm7qhe.mjs +0 -1
  436. package/dist/chunks/InvalidConfigDialog-0.6.1-2r03697h.mjs +0 -1
  437. package/dist/chunks/InvalidSettingsDialog-0.6.1-fz8qbmrm.mjs +0 -1
  438. package/dist/chunks/MigrationDialog-0.6.1-f184vmmc.mjs +0 -1
  439. package/dist/chunks/Onboarding-0.6.1-k9r90dkb.mjs +0 -1
  440. package/dist/chunks/ProviderManager-0.6.1-k9cepg1h.mjs +0 -1
  441. package/dist/chunks/REPL-0.6.1-v3fvm99r.mjs +0 -1
  442. package/dist/chunks/ResumeConversation-0.6.1-4rzcxbm0.mjs +0 -1
  443. package/dist/chunks/SnapshotUpdateDialog-0.6.1-3tfkf2r1.mjs +0 -1
  444. package/dist/chunks/TeleportProgress-0.6.1-6sxb0xve.mjs +0 -1
  445. package/dist/chunks/TeleportRepoMismatchDialog-0.6.1-ct0aebdh.mjs +0 -1
  446. package/dist/chunks/TeleportResumeWrapper-0.6.1-rby53r9t.mjs +0 -1
  447. package/dist/chunks/TmuxBackend-0.6.1-aha1d4jg.mjs +0 -9
  448. package/dist/chunks/ToolSearchTool-0.6.1-wyvd75qb.mjs +0 -1
  449. package/dist/chunks/TrustDialog-0.6.1-0dxgmy9j.mjs +0 -1
  450. package/dist/chunks/activeProvider-0.6.1-edcjn35d.mjs +0 -1
  451. package/dist/chunks/add-dir-0.6.1-vbry4cq5.mjs +0 -1
  452. package/dist/chunks/agents-0.6.1-6g7eqc6g.mjs +0 -3
  453. package/dist/chunks/agents-0.6.1-bmw6yemz.mjs +0 -110
  454. package/dist/chunks/api-0.6.1-p90y28ss.mjs +0 -1
  455. package/dist/chunks/asciicast-0.6.1-dvny24yw.mjs +0 -1
  456. package/dist/chunks/assistant-0.6.1-c7xjeve6.mjs +0 -1
  457. package/dist/chunks/auth-0.6.1-qmmqr4a0.mjs +0 -1
  458. package/dist/chunks/auth-0.6.1-zmzs34rx.mjs +0 -1
  459. package/dist/chunks/autoMode-0.6.1-bcye95b8.mjs +0 -48
  460. package/dist/chunks/autoUpdater-0.6.1-477zfmqr.mjs +0 -1
  461. package/dist/chunks/backgroundHousekeeping-0.6.1-6c0npbxs.mjs +0 -1
  462. package/dist/chunks/branch-0.6.1-x2xgjxty.mjs +0 -4
  463. package/dist/chunks/bridgePointer-0.6.1-6mp5c94p.mjs +0 -1
  464. package/dist/chunks/btw-0.6.1-0vee5vec.mjs +0 -1
  465. package/dist/chunks/buddy-0.6.1-10x5b5m0.mjs +0 -3
  466. package/dist/chunks/cacache-0.6.1-t6wndp6s.mjs +0 -1
  467. package/dist/chunks/cache-probe-0.6.1-kb2vnp2j.mjs +0 -21
  468. package/dist/chunks/cacheStats-0.6.1-wa9ng3pv.mjs +0 -4
  469. package/dist/chunks/caches-0.6.1-h39v3a02.mjs +0 -1
  470. package/dist/chunks/claudeDesktop-0.6.1-gsfj6bp7.mjs +0 -1
  471. package/dist/chunks/claudemd-0.6.1-bp7xc2mx.mjs +0 -1
  472. package/dist/chunks/clear-0.6.1-ct2r7t9t.mjs +0 -1
  473. package/dist/chunks/clearTerminal-0.6.1-6gr2k1tw.mjs +0 -1
  474. package/dist/chunks/cli-0.6.1-0agnsggr.mjs +0 -2
  475. package/dist/chunks/cli-0.6.1-0bqe4byy.mjs +0 -2
  476. package/dist/chunks/cli-0.6.1-0f7jh20f.mjs +0 -2
  477. package/dist/chunks/cli-0.6.1-0jy2jkq4.mjs +0 -15
  478. package/dist/chunks/cli-0.6.1-0pwatab1.mjs +0 -2
  479. package/dist/chunks/cli-0.6.1-0r6z6t9d.mjs +0 -2
  480. package/dist/chunks/cli-0.6.1-0z6pdqg3.mjs +0 -2
  481. package/dist/chunks/cli-0.6.1-1a523nkb.mjs +0 -2
  482. package/dist/chunks/cli-0.6.1-1k359w9m.mjs +0 -2
  483. package/dist/chunks/cli-0.6.1-1n5ek5r5.mjs +0 -2
  484. package/dist/chunks/cli-0.6.1-22ayz1qb.mjs +0 -133
  485. package/dist/chunks/cli-0.6.1-24tz9gwy.mjs +0 -2
  486. package/dist/chunks/cli-0.6.1-263k8zfv.mjs +0 -24
  487. package/dist/chunks/cli-0.6.1-2avp7x48.mjs +0 -2
  488. package/dist/chunks/cli-0.6.1-2sc0f0mb.mjs +0 -2
  489. package/dist/chunks/cli-0.6.1-2wfbdh6y.mjs +0 -6
  490. package/dist/chunks/cli-0.6.1-2wy35yyy.mjs +0 -20
  491. package/dist/chunks/cli-0.6.1-2zh54t3f.mjs +0 -2
  492. package/dist/chunks/cli-0.6.1-39s97gy4.mjs +0 -2
  493. package/dist/chunks/cli-0.6.1-39t9nckk.mjs +0 -2
  494. package/dist/chunks/cli-0.6.1-3c4bskq1.mjs +0 -2
  495. package/dist/chunks/cli-0.6.1-3jfbggrv.mjs +0 -18
  496. package/dist/chunks/cli-0.6.1-3nvnx582.mjs +0 -2
  497. package/dist/chunks/cli-0.6.1-3r1egjh5.mjs +0 -3
  498. package/dist/chunks/cli-0.6.1-3x2x8nsx.mjs +0 -2
  499. package/dist/chunks/cli-0.6.1-3xsbth8a.mjs +0 -2
  500. package/dist/chunks/cli-0.6.1-481efx1c.mjs +0 -3
  501. package/dist/chunks/cli-0.6.1-481k0n0b.mjs +0 -2
  502. package/dist/chunks/cli-0.6.1-4argxq2y.mjs +0 -2
  503. package/dist/chunks/cli-0.6.1-4fjwfatp.mjs +0 -2
  504. package/dist/chunks/cli-0.6.1-4r2x7kmj.mjs +0 -12
  505. package/dist/chunks/cli-0.6.1-51sp0g9f.mjs +0 -25
  506. package/dist/chunks/cli-0.6.1-57gxa3fn.mjs +0 -2
  507. package/dist/chunks/cli-0.6.1-59957axm.mjs +0 -2
  508. package/dist/chunks/cli-0.6.1-5gcjed1z.mjs +0 -2
  509. package/dist/chunks/cli-0.6.1-5m3ph8yr.mjs +0 -2
  510. package/dist/chunks/cli-0.6.1-5pwj3d7r.mjs +0 -6
  511. package/dist/chunks/cli-0.6.1-5qttbnpm.mjs +0 -2
  512. package/dist/chunks/cli-0.6.1-5qyw0ayj.mjs +0 -24
  513. package/dist/chunks/cli-0.6.1-5rb1fsaa.mjs +0 -2
  514. package/dist/chunks/cli-0.6.1-5sj9ea9y.mjs +0 -4
  515. package/dist/chunks/cli-0.6.1-60wfpc5c.mjs +0 -2
  516. package/dist/chunks/cli-0.6.1-6erz0ahq.mjs +0 -18
  517. package/dist/chunks/cli-0.6.1-6rspq12f.mjs +0 -2
  518. package/dist/chunks/cli-0.6.1-6xr6nx71.mjs +0 -2
  519. package/dist/chunks/cli-0.6.1-7b4bmf31.mjs +0 -2
  520. package/dist/chunks/cli-0.6.1-7hcdhx2y.mjs +0 -2
  521. package/dist/chunks/cli-0.6.1-7mnw60rd.mjs +0 -2
  522. package/dist/chunks/cli-0.6.1-7rde0hat.mjs +0 -1
  523. package/dist/chunks/cli-0.6.1-85mcqw66.mjs +0 -2
  524. package/dist/chunks/cli-0.6.1-8djfzern.mjs +0 -2
  525. package/dist/chunks/cli-0.6.1-8fpj913g.mjs +0 -2
  526. package/dist/chunks/cli-0.6.1-8x7dm6mk.mjs +0 -3
  527. package/dist/chunks/cli-0.6.1-8y4y6nv3.mjs +0 -2
  528. package/dist/chunks/cli-0.6.1-94k5k8gj.mjs +0 -2
  529. package/dist/chunks/cli-0.6.1-9j0tzj57.mjs +0 -3
  530. package/dist/chunks/cli-0.6.1-9kse9m13.mjs +0 -12
  531. package/dist/chunks/cli-0.6.1-9m3tqqvw.mjs +0 -2
  532. package/dist/chunks/cli-0.6.1-9te6kt3m.mjs +0 -2
  533. package/dist/chunks/cli-0.6.1-a2tyzbp4.mjs +0 -9
  534. package/dist/chunks/cli-0.6.1-a7130ntd.mjs +0 -2
  535. package/dist/chunks/cli-0.6.1-agqm0wsp.mjs +0 -2
  536. package/dist/chunks/cli-0.6.1-amg1caaz.mjs +0 -2
  537. package/dist/chunks/cli-0.6.1-as4q7dcy.mjs +0 -2
  538. package/dist/chunks/cli-0.6.1-aw7t5zg2.mjs +0 -5322
  539. package/dist/chunks/cli-0.6.1-ay9b7nme.mjs +0 -2
  540. package/dist/chunks/cli-0.6.1-b0cyn50w.mjs +0 -45
  541. package/dist/chunks/cli-0.6.1-bak7jvd3.mjs +0 -2
  542. package/dist/chunks/cli-0.6.1-bk01taq5.mjs +0 -2
  543. package/dist/chunks/cli-0.6.1-bn89zt4s.mjs +0 -2
  544. package/dist/chunks/cli-0.6.1-bp0mdayc.mjs +0 -2
  545. package/dist/chunks/cli-0.6.1-bx5g1s5d.mjs +0 -21
  546. package/dist/chunks/cli-0.6.1-bygvqehn.mjs +0 -2
  547. package/dist/chunks/cli-0.6.1-c10fzbkx.mjs +0 -4
  548. package/dist/chunks/cli-0.6.1-c2scacda.mjs +0 -10
  549. package/dist/chunks/cli-0.6.1-c494rthj.mjs +0 -2
  550. package/dist/chunks/cli-0.6.1-cb15wwgj.mjs +0 -2
  551. package/dist/chunks/cli-0.6.1-cntxcs18.mjs +0 -2
  552. package/dist/chunks/cli-0.6.1-cyesbyzb.mjs +0 -2
  553. package/dist/chunks/cli-0.6.1-dbk7et0y.mjs +0 -3
  554. package/dist/chunks/cli-0.6.1-dq9trhqw.mjs +0 -2
  555. package/dist/chunks/cli-0.6.1-dsry83zd.mjs +0 -2
  556. package/dist/chunks/cli-0.6.1-e895xgfg.mjs +0 -2
  557. package/dist/chunks/cli-0.6.1-eaf4rwyc.mjs +0 -4
  558. package/dist/chunks/cli-0.6.1-egwp1swr.mjs +0 -3
  559. package/dist/chunks/cli-0.6.1-ehdz64pd.mjs +0 -15
  560. package/dist/chunks/cli-0.6.1-ersr5ygq.mjs +0 -2
  561. package/dist/chunks/cli-0.6.1-ewkq3bnm.mjs +0 -2
  562. package/dist/chunks/cli-0.6.1-f7gt1c0a.mjs +0 -2
  563. package/dist/chunks/cli-0.6.1-fc2ewzw4.mjs +0 -2
  564. package/dist/chunks/cli-0.6.1-fc3sjkr8.mjs +0 -2
  565. package/dist/chunks/cli-0.6.1-fez41x44.mjs +0 -2
  566. package/dist/chunks/cli-0.6.1-fgnbf5bf.mjs +0 -2
  567. package/dist/chunks/cli-0.6.1-fpj8wpjs.mjs +0 -39
  568. package/dist/chunks/cli-0.6.1-fq7f4jb5.mjs +0 -2
  569. package/dist/chunks/cli-0.6.1-fzkdgcv3.mjs +0 -3
  570. package/dist/chunks/cli-0.6.1-gctajvvw.mjs +0 -4
  571. package/dist/chunks/cli-0.6.1-gdpgyrvw.mjs +0 -2
  572. package/dist/chunks/cli-0.6.1-gqhwqmhd.mjs +0 -12
  573. package/dist/chunks/cli-0.6.1-h0rn9sr9.mjs +0 -2
  574. package/dist/chunks/cli-0.6.1-h379gj9d.mjs +0 -2
  575. package/dist/chunks/cli-0.6.1-h757m4m8.mjs +0 -2
  576. package/dist/chunks/cli-0.6.1-hgctsdgg.mjs +0 -2
  577. package/dist/chunks/cli-0.6.1-hgz08acq.mjs +0 -16
  578. package/dist/chunks/cli-0.6.1-hj8ew2yx.mjs +0 -2
  579. package/dist/chunks/cli-0.6.1-hrnyr65b.mjs +0 -5
  580. package/dist/chunks/cli-0.6.1-j4akqyey.mjs +0 -2
  581. package/dist/chunks/cli-0.6.1-j8nqjtw2.mjs +0 -59
  582. package/dist/chunks/cli-0.6.1-jb3djqjh.mjs +0 -2
  583. package/dist/chunks/cli-0.6.1-jca1jhwf.mjs +0 -2
  584. package/dist/chunks/cli-0.6.1-je6nv7n6.mjs +0 -67
  585. package/dist/chunks/cli-0.6.1-jy43zg5q.mjs +0 -2
  586. package/dist/chunks/cli-0.6.1-jyw27bnr.mjs +0 -2
  587. package/dist/chunks/cli-0.6.1-k0sj08eq.mjs +0 -2
  588. package/dist/chunks/cli-0.6.1-katpz9mk.mjs +0 -2
  589. package/dist/chunks/cli-0.6.1-kfy009df.mjs +0 -2
  590. package/dist/chunks/cli-0.6.1-krcqab65.mjs +0 -18
  591. package/dist/chunks/cli-0.6.1-ksvftj0q.mjs +0 -2
  592. package/dist/chunks/cli-0.6.1-n7yfhpx0.mjs +0 -34
  593. package/dist/chunks/cli-0.6.1-n93sg062.mjs +0 -3
  594. package/dist/chunks/cli-0.6.1-ne71q1ht.mjs +0 -2
  595. package/dist/chunks/cli-0.6.1-nen4rh8r.mjs +0 -2
  596. package/dist/chunks/cli-0.6.1-nj1fz1ee.mjs +0 -2
  597. package/dist/chunks/cli-0.6.1-nk615t5t.mjs +0 -2
  598. package/dist/chunks/cli-0.6.1-np8mapek.mjs +0 -2
  599. package/dist/chunks/cli-0.6.1-nx5jm8nf.mjs +0 -3
  600. package/dist/chunks/cli-0.6.1-p94mckzz.mjs +0 -2
  601. package/dist/chunks/cli-0.6.1-pkqzm2ty.mjs +0 -5
  602. package/dist/chunks/cli-0.6.1-qdytg688.mjs +0 -2
  603. package/dist/chunks/cli-0.6.1-qftnyx2b.mjs +0 -2
  604. package/dist/chunks/cli-0.6.1-qk3v8fwe.mjs +0 -4
  605. package/dist/chunks/cli-0.6.1-qqtj12xs.mjs +0 -9
  606. package/dist/chunks/cli-0.6.1-qre0g1ag.mjs +0 -2
  607. package/dist/chunks/cli-0.6.1-qsq2xg3g.mjs +0 -4
  608. package/dist/chunks/cli-0.6.1-rjp543r8.mjs +0 -42
  609. package/dist/chunks/cli-0.6.1-rsa7f7a3.mjs +0 -2
  610. package/dist/chunks/cli-0.6.1-s13hz2xf.mjs +0 -2
  611. package/dist/chunks/cli-0.6.1-s1snv8wb.mjs +0 -2
  612. package/dist/chunks/cli-0.6.1-sbqpxvzz.mjs +0 -2
  613. package/dist/chunks/cli-0.6.1-sgm15vmv.mjs +0 -2
  614. package/dist/chunks/cli-0.6.1-sq2cnxjs.mjs +0 -2
  615. package/dist/chunks/cli-0.6.1-sq5qhzhn.mjs +0 -8
  616. package/dist/chunks/cli-0.6.1-srah4vag.mjs +0 -2
  617. package/dist/chunks/cli-0.6.1-svkrdf57.mjs +0 -2
  618. package/dist/chunks/cli-0.6.1-syhvjk64.mjs +0 -2
  619. package/dist/chunks/cli-0.6.1-t35v9gfs.mjs +0 -2
  620. package/dist/chunks/cli-0.6.1-taw5rdf2.mjs +0 -50
  621. package/dist/chunks/cli-0.6.1-tkjavmyv.mjs +0 -5
  622. package/dist/chunks/cli-0.6.1-trn8t31z.mjs +0 -2
  623. package/dist/chunks/cli-0.6.1-ttxz68nf.mjs +0 -58
  624. package/dist/chunks/cli-0.6.1-tx5cxejc.mjs +0 -3
  625. package/dist/chunks/cli-0.6.1-v15rcvwv.mjs +0 -2
  626. package/dist/chunks/cli-0.6.1-v39bx87n.mjs +0 -2
  627. package/dist/chunks/cli-0.6.1-v7m7rsb0.mjs +0 -2
  628. package/dist/chunks/cli-0.6.1-v95z8p88.mjs +0 -2
  629. package/dist/chunks/cli-0.6.1-vcgwtxe8.mjs +0 -133
  630. package/dist/chunks/cli-0.6.1-vep0hgj0.mjs +0 -2
  631. package/dist/chunks/cli-0.6.1-vgj2ekm4.mjs +0 -2
  632. package/dist/chunks/cli-0.6.1-vgznt46g.mjs +0 -2
  633. package/dist/chunks/cli-0.6.1-vkd5hcb8.mjs +0 -2
  634. package/dist/chunks/cli-0.6.1-vr6dwhw0.mjs +0 -17
  635. package/dist/chunks/cli-0.6.1-vvycdrz3.mjs +0 -2
  636. package/dist/chunks/cli-0.6.1-vz6zhwrs.mjs +0 -2
  637. package/dist/chunks/cli-0.6.1-w9afetc8.mjs +0 -2
  638. package/dist/chunks/cli-0.6.1-wz2nkwz1.mjs +0 -4
  639. package/dist/chunks/cli-0.6.1-x25mwydc.mjs +0 -2
  640. package/dist/chunks/cli-0.6.1-x3sm4qwg.mjs +0 -2
  641. package/dist/chunks/cli-0.6.1-x4kttrew.mjs +0 -2
  642. package/dist/chunks/cli-0.6.1-x5fsjhh0.mjs +0 -3
  643. package/dist/chunks/cli-0.6.1-xcamy4zk.mjs +0 -2
  644. package/dist/chunks/cli-0.6.1-xhm4pfg5.mjs +0 -2
  645. package/dist/chunks/cli-0.6.1-xk82vgbd.mjs +0 -2
  646. package/dist/chunks/cli-0.6.1-xn6xkj8r.mjs +0 -17
  647. package/dist/chunks/cli-0.6.1-xpqybxb3.mjs +0 -6
  648. package/dist/chunks/cli-0.6.1-y15p20f4.mjs +0 -7
  649. package/dist/chunks/cli-0.6.1-yafngt11.mjs +0 -4
  650. package/dist/chunks/cli-0.6.1-ybch0rz5.mjs +0 -193
  651. package/dist/chunks/cli-0.6.1-yjn2sk7y.mjs +0 -2
  652. package/dist/chunks/cli-0.6.1-ysqzwf65.mjs +0 -2
  653. package/dist/chunks/cli-0.6.1-yxv8jw6e.mjs +0 -3
  654. package/dist/chunks/cli-0.6.1-z11x4s9s.mjs +0 -4
  655. package/dist/chunks/cli-0.6.1-zac9yqwp.mjs +0 -2
  656. package/dist/chunks/cli-0.6.1-zdetqpgd.mjs +0 -2
  657. package/dist/chunks/cli-0.6.1-zerz57mn.mjs +0 -4
  658. package/dist/chunks/cli-0.6.1-zkz3hp6v.mjs +0 -2
  659. package/dist/chunks/cli-0.6.1-zp8yt3me.mjs +0 -2
  660. package/dist/chunks/cli-0.6.1-zscfe2d6.mjs +0 -2
  661. package/dist/chunks/cli-0.6.1-zznedec0.mjs +0 -15
  662. package/dist/chunks/client-0.6.1-f1wz818f.mjs +0 -1
  663. package/dist/chunks/color-0.6.1-39x5mjrw.mjs +0 -1
  664. package/dist/chunks/compact-0.6.1-qmw1c0k5.mjs +0 -3
  665. package/dist/chunks/config-0.6.1-0sgd8g9c.mjs +0 -1
  666. package/dist/chunks/config-0.6.1-jtzeeq94.mjs +0 -1
  667. package/dist/chunks/constants-0.6.1-x7zzrahn.mjs +0 -1
  668. package/dist/chunks/context-0.6.1-91fk726f.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.6.1-w6v2qm5p.mjs +0 -1
  670. package/dist/chunks/conversation-0.6.1-s8pkny9g.mjs +0 -1
  671. package/dist/chunks/copilotHeaders-0.6.1-5qr59e2q.mjs +0 -1
  672. package/dist/chunks/copy-0.6.1-hj7kkkb0.mjs +0 -9
  673. package/dist/chunks/cost-0.6.1-qfwk0ft6.mjs +0 -1
  674. package/dist/chunks/createSSHSession-0.6.1-8pxajawh.mjs +0 -1
  675. package/dist/chunks/createSession-0.6.1-23bnms7y.mjs +0 -1
  676. package/dist/chunks/debug-0.6.1-r42ensd9.mjs +0 -1
  677. package/dist/chunks/defaultActionDeps-0.6.1-hsssc0vk.mjs +0 -1365
  678. package/dist/chunks/desktop-0.6.1-7bxmq0nj.mjs +0 -1
  679. package/dist/chunks/detectRepository-0.6.1-e5c2p61b.mjs +0 -1
  680. package/dist/chunks/detection-0.6.1-htd79a96.mjs +0 -1
  681. package/dist/chunks/diff-0.6.1-vk9z6wqg.mjs +0 -1
  682. package/dist/chunks/doctor-0.6.1-0vcg8q42.mjs +0 -1
  683. package/dist/chunks/doctorDiagnostic-0.6.1-5ag5mgxk.mjs +0 -1
  684. package/dist/chunks/earlyInput-0.6.1-ackq9kf1.mjs +0 -1
  685. package/dist/chunks/effort-0.6.1-j6f1gp2z.mjs +0 -10
  686. package/dist/chunks/envUtils-0.6.1-9m48026q.mjs +0 -1
  687. package/dist/chunks/environmentSelection-0.6.1-vg5vgac7.mjs +0 -1
  688. package/dist/chunks/environments-0.6.1-pdexpf06.mjs +0 -1
  689. package/dist/chunks/errors-0.6.1-4v305q50.mjs +0 -1
  690. package/dist/chunks/exampleCommands-0.6.1-38stg387.mjs +0 -1
  691. package/dist/chunks/exit-0.6.1-mktwwvyj.mjs +0 -1
  692. package/dist/chunks/export-0.6.1-zc1hfk24.mjs +0 -2
  693. package/dist/chunks/extra-usage-0.6.1-wd89f315.mjs +0 -1
  694. package/dist/chunks/extra-usage-noninteractive-0.6.1-t7dbhvyj.mjs +0 -1
  695. package/dist/chunks/fast-0.6.1-r6b8a0jx.mjs +0 -1
  696. package/dist/chunks/feedback-0.6.1-318aqn49.mjs +0 -14
  697. package/dist/chunks/firstPartyEventLogger-0.6.1-fd6ha0k4.mjs +0 -1
  698. package/dist/chunks/git-0.6.1-7ttpbhwc.mjs +0 -1
  699. package/dist/chunks/githubModelsCredentials-0.6.1-9ds8a7fr.mjs +0 -1
  700. package/dist/chunks/goal-0.6.1-qh393evm.mjs +0 -4
  701. package/dist/chunks/grove-0.6.1-r5vxxzjz.mjs +0 -1
  702. package/dist/chunks/growthbook-0.6.1-md0gf7ks.mjs +0 -1
  703. package/dist/chunks/headless-0.6.1-h7011eeb.mjs +0 -2
  704. package/dist/chunks/heapdump-0.6.1-jx537rkx.mjs +0 -6
  705. package/dist/chunks/help-0.6.1-fw6h8sky.mjs +0 -1
  706. package/dist/chunks/hookChains-0.6.1-rkbx2t08.mjs +0 -3
  707. package/dist/chunks/hooks-0.6.1-91f4dj33.mjs +0 -1
  708. package/dist/chunks/hooks-0.6.1-dnspnhgd.mjs +0 -79
  709. package/dist/chunks/ide-0.6.1-hh533s3f.mjs +0 -3
  710. package/dist/chunks/image-processor-napi-0.6.1-3xp446fk.mjs +0 -1
  711. package/dist/chunks/index-0.6.1-09g2rewq.mjs +0 -1
  712. package/dist/chunks/index-0.6.1-0c57bpxq.mjs +0 -5
  713. package/dist/chunks/index-0.6.1-0grk74h7.mjs +0 -1
  714. package/dist/chunks/index-0.6.1-0vyqysww.mjs +0 -1
  715. package/dist/chunks/index-0.6.1-14xdd101.mjs +0 -1
  716. package/dist/chunks/index-0.6.1-3y22dzck.mjs +0 -1
  717. package/dist/chunks/index-0.6.1-5hede59y.mjs +0 -1
  718. package/dist/chunks/index-0.6.1-6vg6rzs0.mjs +0 -1
  719. package/dist/chunks/index-0.6.1-93zddsg2.mjs +0 -1
  720. package/dist/chunks/index-0.6.1-9w2d7p1e.mjs +0 -1
  721. package/dist/chunks/index-0.6.1-b8yv5gy2.mjs +0 -9
  722. package/dist/chunks/index-0.6.1-d7vyz56s.mjs +0 -17
  723. package/dist/chunks/index-0.6.1-dx12abyz.mjs +0 -1
  724. package/dist/chunks/index-0.6.1-f8srt3s7.mjs +0 -1
  725. package/dist/chunks/index-0.6.1-fd7pn0sn.mjs +0 -1
  726. package/dist/chunks/index-0.6.1-h8zv2k0g.mjs +0 -30
  727. package/dist/chunks/index-0.6.1-hfzesfbt.mjs +0 -1
  728. package/dist/chunks/index-0.6.1-r75bspk7.mjs +0 -2
  729. package/dist/chunks/index-0.6.1-t8sgq6bc.mjs +0 -1
  730. package/dist/chunks/index-0.6.1-vqtjqmqh.mjs +0 -9
  731. package/dist/chunks/index-0.6.1-wpz2sj28.mjs +0 -2
  732. package/dist/chunks/index-0.6.1-y6b4meqt.mjs +0 -1
  733. package/dist/chunks/init-0.6.1-0d45p8bb.mjs +0 -1
  734. package/dist/chunks/initReplBridge-0.6.1-x10y77yb.mjs +0 -1
  735. package/dist/chunks/ink-0.6.1-frjecwrb.mjs +0 -1
  736. package/dist/chunks/insights-0.6.1-jfq7b6tw.mjs +0 -870
  737. package/dist/chunks/install-0.6.1-egwy09ax.mjs +0 -1
  738. package/dist/chunks/install-github-app-0.6.1-0weabx7j.mjs +0 -149
  739. package/dist/chunks/install-slack-app-0.6.1-1y33208g.mjs +0 -1
  740. package/dist/chunks/instrumentation-0.6.1-q16b8vzj.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-0.6.1-vadchdt4.mjs +0 -1
  742. package/dist/chunks/keybindings-0.6.1-mxntktr5.mjs +0 -2
  743. package/dist/chunks/knowledge-0.6.1-3xqwg7qm.mjs +0 -2
  744. package/dist/chunks/latestVersionCache-0.6.1-900swz28.mjs +0 -1
  745. package/dist/chunks/loadAgentsDir-0.6.1-4kmt7rg0.mjs +0 -1
  746. package/dist/chunks/loadPluginHooks-0.6.1-q16r2b1a.mjs +0 -1
  747. package/dist/chunks/loadPluginHooks-0.6.1-smdakskd.mjs +0 -1
  748. package/dist/chunks/log-0.6.1-k5w8v9b7.mjs +0 -1
  749. package/dist/chunks/main-0.6.1-v5q5kdjt.mjs +0 -1
  750. package/dist/chunks/managedEnv-0.6.1-x9wyzt74.mjs +0 -1
  751. package/dist/chunks/mcp-0.6.1-06zc97m0.mjs +0 -4
  752. package/dist/chunks/mcp-0.6.1-sp1gzne1.mjs +0 -1
  753. package/dist/chunks/mcp-0.6.1-yfzfbpgf.mjs +0 -17
  754. package/dist/chunks/mcpb-0.6.1-e6wqpjjr.mjs +0 -1
  755. package/dist/chunks/memory-0.6.1-197wbyh9.mjs +0 -3
  756. package/dist/chunks/mobile-0.6.1-p623pybm.mjs +0 -2
  757. package/dist/chunks/model-0.6.1-fzqfznkt.mjs +0 -2
  758. package/dist/chunks/model-0.6.1-hkw4jq8s.mjs +0 -1
  759. package/dist/chunks/node-0.6.1-1zzbgn75.mjs +0 -12
  760. package/dist/chunks/oauth-0.6.1-j5fet3d4.mjs +0 -1
  761. package/dist/chunks/openaiShim-0.6.1-hcjz6jw0.mjs +0 -14
  762. package/dist/chunks/output-style-0.6.1-nd3zbark.mjs +0 -1
  763. package/dist/chunks/package-D6422PQU-0.6.1-v7kakn1v.mjs +0 -1
  764. package/dist/chunks/parseConnectUrl-0.6.1-ejn7xha9.mjs +0 -1
  765. package/dist/chunks/parser-0.6.1-fp8tsr8z.mjs +0 -1
  766. package/dist/chunks/passes-0.6.1-mdsmrywr.mjs +0 -1
  767. package/dist/chunks/permissions-0.6.1-b7hww4nq.mjs +0 -3
  768. package/dist/chunks/plan-0.6.1-r0w4htej.mjs +0 -1
  769. package/dist/chunks/plist-0.6.1-xe8jtnxk.mjs +0 -1
  770. package/dist/chunks/plugin-0.6.1-4p7wpc14.mjs +0 -29
  771. package/dist/chunks/pluginStartupCheck-0.6.1-gt4eypw9.mjs +0 -1
  772. package/dist/chunks/plugins-0.6.1-3zsktaas.mjs +0 -9
  773. package/dist/chunks/preActionHook-0.6.1-78da30nj.mjs +0 -2
  774. package/dist/chunks/print-0.6.1-xbgj0g80.mjs +0 -57
  775. package/dist/chunks/privacy-settings-0.6.1-nnhvq7b2.mjs +0 -1
  776. package/dist/chunks/process-0.6.1-fx7x9r07.mjs +0 -1
  777. package/dist/chunks/processBashCommand-0.6.1-bdscj4y4.mjs +0 -1
  778. package/dist/chunks/processSlashCommand-0.6.1-tf3bkmyy.mjs +0 -9
  779. package/dist/chunks/prompt-0.6.1-3dnt3zey.mjs +0 -1
  780. package/dist/chunks/prompt-0.6.1-e3bbvmwk.mjs +0 -1
  781. package/dist/chunks/prompts-0.6.1-xf5gjw54.mjs +0 -1
  782. package/dist/chunks/protocolHandler-0.6.1-3x1y3rds.mjs +0 -13
  783. package/dist/chunks/provider-0.6.1-9645a8j1.mjs +0 -2
  784. package/dist/chunks/providerProfiles-0.6.1-rvwkz6ak.mjs +0 -1
  785. package/dist/chunks/providerValidation-0.6.1-vj6yhn15.mjs +0 -6
  786. package/dist/chunks/rate-limit-options-0.6.1-zedhbgar.mjs +0 -1
  787. package/dist/chunks/registerSubcommands-0.6.1-07hhytjp.mjs +0 -34
  788. package/dist/chunks/registry-0.6.1-j5gr410a.mjs +0 -1
  789. package/dist/chunks/release-notes-0.6.1-g9gvekqx.mjs +0 -5
  790. package/dist/chunks/reload-plugins-0.6.1-h895km4v.mjs +0 -2
  791. package/dist/chunks/remote-env-0.6.1-prvyvph7.mjs +0 -1
  792. package/dist/chunks/remoteBridgeCore-0.6.1-repc3wzt.mjs +0 -1
  793. package/dist/chunks/remoteSession-0.6.1-sy45mthq.mjs +0 -1
  794. package/dist/chunks/rename-0.6.1-mbf64z4s.mjs +0 -1
  795. package/dist/chunks/replBridgeHandle-0.6.1-vh85gp20.mjs +0 -1
  796. package/dist/chunks/replLauncher-0.6.1-4h94vpmh.mjs +0 -1
  797. package/dist/chunks/resume-0.6.1-c4m2tsz1.mjs +0 -2
  798. package/dist/chunks/rewind-0.6.1-rwc9yc72.mjs +0 -1
  799. package/dist/chunks/rootOptions-0.6.1-qrzakwkb.mjs +0 -1
  800. package/dist/chunks/sandbox-adapter-0.6.1-g2cqqkbq.mjs +0 -1
  801. package/dist/chunks/sandbox-toggle-0.6.1-h0t8vrsp.mjs +0 -1
  802. package/dist/chunks/session-0.6.1-z2z0v2b2.mjs +0 -2
  803. package/dist/chunks/sessionDiscovery-0.6.1-zwyhdetk.mjs +0 -1
  804. package/dist/chunks/sessionFileAccessHooks-0.6.1-sa1zcdy1.mjs +0 -1
  805. package/dist/chunks/sessionStorage-0.6.1-3kwfwm9f.mjs +0 -1
  806. package/dist/chunks/settings-0.6.1-nkp3cfkx.mjs +0 -1
  807. package/dist/chunks/setup-0.6.1-ye3h2662.mjs +0 -5
  808. package/dist/chunks/sinks-0.6.1-aj971rff.mjs +0 -1
  809. package/dist/chunks/skills-0.6.1-rg44nb1f.mjs +0 -1
  810. package/dist/chunks/startupProfiler-0.6.1-wmynctg8.mjs +0 -1
  811. package/dist/chunks/startupUpdateCheck-0.6.1-w1296eb6.mjs +0 -1
  812. package/dist/chunks/state-0.6.1-xeb3g7ee.mjs +0 -1
  813. package/dist/chunks/stats-0.6.1-b809msg3.mjs +0 -6
  814. package/dist/chunks/status-0.6.1-qgzafsnk.mjs +0 -1
  815. package/dist/chunks/stickers-0.6.1-mvc1yhza.mjs +0 -1
  816. package/dist/chunks/subprocessEnv-0.6.1-p24f3mb2.mjs +0 -1
  817. package/dist/chunks/tasks-0.6.1-6mkyp39c.mjs +0 -1
  818. package/dist/chunks/teamHelpers-0.6.1-5y5q1d5a.mjs +0 -1
  819. package/dist/chunks/teammateModeSnapshot-0.6.1-ctbnrn7g.mjs +0 -1
  820. package/dist/chunks/teleport-0.6.1-snck0mt3.mjs +0 -1
  821. package/dist/chunks/terminalSetup-0.6.1-grwmkggx.mjs +0 -1
  822. package/dist/chunks/theme-0.6.1-nkn391vp.mjs +0 -1
  823. package/dist/chunks/thinkback-0.6.1-w3e30qga.mjs +0 -1
  824. package/dist/chunks/thinkback-play-0.6.1-xtt1h9bj.mjs +0 -1
  825. package/dist/chunks/toolPool-0.6.1-k6p9m933.mjs +0 -1
  826. package/dist/chunks/toolSearch-0.6.1-hf1m96t5.mjs +0 -1
  827. package/dist/chunks/tools-0.6.1-k1he8tf4.mjs +0 -1
  828. package/dist/chunks/trustedDevice-0.6.1-jp75s058.mjs +0 -1
  829. package/dist/chunks/turndown.cjs-0.6.1-nbyhbfxh.mjs +0 -69
  830. package/dist/chunks/ultrareviewCommand-0.6.1-wt29n8f8.mjs +0 -4
  831. package/dist/chunks/update-0.6.1-nhyb2p18.mjs +0 -86
  832. package/dist/chunks/upgrade-0.6.1-bsgbm532.mjs +0 -1
  833. package/dist/chunks/upstreamproxy-0.6.1-tv3yt8kf.mjs +0 -14
  834. package/dist/chunks/url-handler-napi-0.6.1-17xw9yz6.mjs +0 -1
  835. package/dist/chunks/usage-0.6.1-kc6f3g70.mjs +0 -1
  836. package/dist/chunks/util-0.6.1-4tchwwds.mjs +0 -1
  837. package/dist/chunks/utils-0.6.1-b58yrh2f.mjs +0 -1
  838. package/dist/chunks/vim-0.6.1-0epxft4g.mjs +0 -1
  839. package/dist/chunks/watcher-0.6.1-g05xbezn.mjs +0 -1
  840. package/dist/chunks/wiki-0.6.1-d931wde5.mjs +0 -132
  841. package/dist/chunks/worktree-0.6.1-8ebt180m.mjs +0 -1
  842. package/dist/chunks/worktreeModeEnabled-0.6.1-av5mja7y.mjs +0 -1
  843. package/dist/chunks/wrapper-0.6.1-yv9p7ayq.mjs +0 -7
  844. /package/dist/chunks/{cli-0.6.1-ygrfhgb0.mjs → cli-0.6.2-1e5p6hw6.mjs} +0 -0
  845. /package/dist/chunks/{cli-0.6.1-5aftf3q9.mjs → cli-0.6.2-3eaaj6e5.mjs} +0 -0
  846. /package/dist/chunks/{cli-0.6.1-9pfc6b63.mjs → cli-0.6.2-3rgtxc9f.mjs} +0 -0
  847. /package/dist/chunks/{cli-0.6.1-jkwrn2xm.mjs → cli-0.6.2-7p1ykg1m.mjs} +0 -0
  848. /package/dist/chunks/{cli-0.6.1-xz21g65j.mjs → cli-0.6.2-adegz2m3.mjs} +0 -0
  849. /package/dist/chunks/{cli-0.6.1-xv8wfg40.mjs → cli-0.6.2-hb4fz4pd.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.6.1-naw66kt5.mjs → cli-0.6.2-hkgnx8g7.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.6.1-j1raybvn.mjs → cli-0.6.2-qk6j042k.mjs} +0 -0
@@ -1,18 +0,0 @@
1
- import{Zd as YZ,_d as gQ}from"./cli-0.6.1-0pwatab1.mjs";import{$d as kZ,fe as XX}from"./cli-0.6.1-57gxa3fn.mjs";import{$B as vX,$j as qQ,$l as HJ,Ay as fJ,BH as FZ,By as BX,Dq as U0,Dw as AX,Gi as VZ,Iy as mZ,Jy as ZX,KF as WZ,LF as RZ,MF as s0,NC as HQ,Nq as vQ,OF as MJ,PF as F0,Pp as MZ,QC as hX,QF as i0,Sp as lQ,Sq as d0,Vq as hQ,Zi as u0,_B as FQ,_i as pJ,aE as OQ,am as DQ,ay as NZ,bk as MX,by as rQ,cu as NQ,dE as gX,du as CX,er as VQ,ey as a0,ez as IX,fy as CZ,fz as DX,gE as j0,gj as dZ,hE as QX,hj as tQ,hr as KX,iG as pZ,iO as lZ,kj as r0,lG as kJ,lu as zJ,mG as JZ,mj as GZ,mu as WQ,nG as OJ,nO as iZ,nj as UJ,nm as GQ,oG as WJ,om as EX,ou as bX,pG as ZZ,pm as l,pu as yZ,qG as QZ,qm as A0,qu as iQ,rG as XZ,rq as aZ,tG as p0,tO as LZ,tm as Z0,uG as _0,um as B0,uq as FX,vG as PJ,vq as cJ,wq as LQ,xm as n,xw as RQ,yH as $0,ym as I0}from"./cli-0.6.1-aw7t5zg2.mjs";import{ZV as QJ,_V as nZ,mW as q0,nW as g0}from"./cli-0.6.1-x25mwydc.mjs";import{AY as wZ,RW as R0,RY as f0,_W as l0,kY as C,mY as V,qY as JJ}from"./cli-0.6.1-j8nqjtw2.mjs";import{f0 as hJ,m0 as yX}from"./cli-0.6.1-p94mckzz.mjs";import{o0 as o,p0 as f,q0 as W,r0 as $}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as o0}from"./cli-0.6.1-yjn2sk7y.mjs";import{D0 as mJ,N0 as MQ}from"./cli-0.6.1-sbqpxvzz.mjs";import{P0 as DJ,Q0 as JX}from"./cli-0.6.1-8x7dm6mk.mjs";import{S3 as NJ,T3 as wQ,c1 as tJ,d1 as IQ}from"./cli-0.6.1-hgz08acq.mjs";import{$$ as Q0,Ada as eJ,Ida as BQ,J_ as z0,K_ as w0,L$ as TZ,M$ as uZ,O$ as eQ,P_ as m0,haa as IJ,m9 as fQ,n9 as M0,p9 as CJ,w7 as t0,x7 as cZ}from"./cli-0.6.1-ybch0rz5.mjs";import{Qda as y0,Tda as b0,Vda as oZ,Xda as e0,Yda as x0,dea as h0}from"./cli-0.6.1-zerz57mn.mjs";import{$ea as sJ,lfa as AQ}from"./cli-0.6.1-v15rcvwv.mjs";import{cga as t,ega as _J}from"./cli-0.6.1-vz6zhwrs.mjs";import{Uga as $Z,Wga as RX,eha as D0,hha as dJ}from"./cli-0.6.1-2wfbdh6y.mjs";import{Fha as aJ,yha as v0}from"./cli-0.6.1-qsq2xg3g.mjs";import{dpa as J0,epa as FJ,gpa as $J,hpa as a}from"./cli-0.6.1-9pfc6b63.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
2
- `,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
3
- `,`## Approved Plan:
4
- `];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
5
- `;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
6
- `)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
7
- `),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
11
- You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
14
- `);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
15
- `);U0({value:`ultraplan: cannot launch remote session —
16
- ${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
17
- `,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=WQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await RQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=NQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();CX();nZ();bX();TJ();vX();AX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
18
- export{GJ as Pd,VJ as Qd,xX as Rd,TJ as Sd,LJ as Td,pQ as Ud,qZ as Vd,Sf as Wd,dX as Xd};
@@ -1,2 +0,0 @@
1
- import{od as Jq,sd as Tq}from"./cli-0.6.1-wz2nkwz1.mjs";import{Ad as bq,zd as zq}from"./cli-0.6.1-ysqzwf65.mjs";import{$I as qq,BI as s,CI as _q,GI as a,JI as l,NI as t,SI as e,TF as u,UF as fq,UI as Rq,dJ as Fq,gE as r,hE as Gq,nI as S,qI as Nq,tJ as D,wJ as Cq,xm as n,ym as yq}from"./cli-0.6.1-aw7t5zg2.mjs";import{HW as i,IW as Kq,RW as Bq,RY as Oq,kY as F,mY as C}from"./cli-0.6.1-j8nqjtw2.mjs";import{p0 as v,q0 as R,r0 as p}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as Lq}from"./cli-0.6.1-yjn2sk7y.mjs";import{Ada as m,B7 as g,C7 as Zq,Ida as wq,K8 as o,L8 as Hq,N7 as $,O9 as vq,P7 as Xq,s9 as x}from"./cli-0.6.1-ybch0rz5.mjs";import{eha as B,hha as Yq}from"./cli-0.6.1-2wfbdh6y.mjs";import{Aha as h,Fha as Wq,xha as P}from"./cli-0.6.1-qsq2xg3g.mjs";import{dpa as d,hpa as Vq}from"./cli-0.6.1-9pfc6b63.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
- export{Iq as ed,Yz as fd,Dq as gd};
@@ -1,2 +0,0 @@
1
- import{lu as C,ou as X}from"./cli-0.6.1-aw7t5zg2.mjs";import{s0 as W}from"./cli-0.6.1-yjn2sk7y.mjs";import{Y2 as I,i3 as J,p3 as V}from"./cli-0.6.1-hgz08acq.mjs";import{Sea as H,lfa as T}from"./cli-0.6.1-v15rcvwv.mjs";import{dpa as P,hpa as Q}from"./cli-0.6.1-9pfc6b63.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as Fc,Y as Gc};
@@ -1,2 +0,0 @@
1
- import{M1 as H,N1 as _,O1 as Y,P1 as y}from"./cli-0.6.1-hgz08acq.mjs";import{J7 as M,L7 as f}from"./cli-0.6.1-ybch0rz5.mjs";import{Sga as P,Wga as p,eha as x,hga as F,hha as S,jga as b}from"./cli-0.6.1-2wfbdh6y.mjs";import{Fha as R,yha as V}from"./cli-0.6.1-qsq2xg3g.mjs";import{Lha as U,Vha as g}from"./cli-0.6.1-qdytg688.mjs";import{Ila as D,Jla as W,yna as A}from"./cli-0.6.1-xk82vgbd.mjs";import{hpa as L}from"./cli-0.6.1-9pfc6b63.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 IR,s as JR,o as KR,u as LR,e as MR,qq as NR,Gq as OR,Jq as PR,Kq as QR,Qq as RR,h as SR,$q as TR,m as UR};
@@ -1,2 +0,0 @@
1
- import{hpa as M}from"./cli-0.6.1-9pfc6b63.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
2
- export{V as z6,W as A6,X as B6,Z as C6,Y as D6};
@@ -1,2 +0,0 @@
1
- import{hpa as l}from"./cli-0.6.1-9pfc6b63.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
- export{u as o0,E as p0,a as q0,c as r0};
@@ -1 +0,0 @@
1
- import{Nea as q,Pea as A,Qea as x,Rea as B}from"./cli-0.6.1-je6nv7n6.mjs";import{Oga as J}from"./cli-0.6.1-2wfbdh6y.mjs";import{Fha as G}from"./cli-0.6.1-qsq2xg3g.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{A0 as V,B0 as D,z0 as N}from"./cli-0.6.1-a7130ntd.mjs";import{A4 as $,D4 as B,Y4 as x,Z3 as Z,h1 as Y,m1 as _,y4 as J}from"./cli-0.6.1-hgz08acq.mjs";import{Xfa as Q,bga as P}from"./cli-0.6.1-8fpj913g.mjs";import{Koa as R,soa as X}from"./cli-0.6.1-krcqab65.mjs";import{hpa as W}from"./cli-0.6.1-9pfc6b63.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudin-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
2
- export{E as t0,I as u0,w as v0,C as w0,O as x0,H as y0};
@@ -1,2 +0,0 @@
1
- import{$R as A,WR as N,XR as p,YR as F,_R as U}from"./cli-0.6.1-s13hz2xf.mjs";import{Z4 as L,_4 as P,b5 as O,d5 as V,n5 as x,p5 as H,q5 as k}from"./cli-0.6.1-a2tyzbp4.mjs";import{Eaa as X,Jba as Z,Kaa as Y,Taa as K,c_ as I,cca as M,e_ as D}from"./cli-0.6.1-ybch0rz5.mjs";import{Lha as $,Vha as b}from"./cli-0.6.1-qdytg688.mjs";import{hpa as G}from"./cli-0.6.1-9pfc6b63.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
2
- export{r as gc,g as hc,j as ic};
@@ -1,2 +0,0 @@
1
- import{hpa as M}from"./cli-0.6.1-9pfc6b63.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
- export{W as Ufa,Q as Vfa,K as Wfa,X as Xfa,Y as Yfa,Z as Zfa,y as _fa,G as $fa,h as aga,w as bga};
@@ -1,3 +0,0 @@
1
- import{Jba as P,N7 as Q,P7 as M,cca as R}from"./cli-0.6.1-ybch0rz5.mjs";import{eha as G,hha as C}from"./cli-0.6.1-2wfbdh6y.mjs";import{hpa as j}from"./cli-0.6.1-9pfc6b63.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
2
- `),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
3
- export{g as O0,w as P0,f as Q0};
@@ -1,2 +0,0 @@
1
- import{hpa as B}from"./cli-0.6.1-9pfc6b63.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
- export{F as uh,C as vh};
@@ -1,2 +0,0 @@
1
- import{CX as T,DX as X,EX as I,GX as Y,HX as p,UX as v,VX as Z,WX as D}from"./cli-0.6.1-j8nqjtw2.mjs";import{p0 as P,r0 as V}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as H}from"./cli-0.6.1-yjn2sk7y.mjs";import{Fka as W,yna as F}from"./cli-0.6.1-xk82vgbd.mjs";import{dpa as A,hpa as C}from"./cli-0.6.1-9pfc6b63.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
- export{u as Lg,M as Mg};
@@ -1,3 +0,0 @@
1
- import{I as G0}from"./cli-0.6.1-ne71q1ht.mjs";import{ca as p0}from"./cli-0.6.1-nx5jm8nf.mjs";import{sb as E0}from"./cli-0.6.1-60wfpc5c.mjs";import{xb as k0}from"./cli-0.6.1-bak7jvd3.mjs";import{$b as P0,bc as Fc}from"./cli-0.6.1-3xsbth8a.mjs";import{ec as N,fc as uc}from"./cli-0.6.1-v95z8p88.mjs";import{hc as Q0,ic as hc}from"./cli-0.6.1-8djfzern.mjs";import{Dc as n0,Ec as x0}from"./cli-0.6.1-nj1fz1ee.mjs";import{GJ as _0,NQ as O0,QJ as j0,XQ as b0,YE as y0,YO as d,ZE as _c,ZQ as B0,_O as W0,aP as Ic,aR as ac,bD as Y0,cK as u0,dR as D0,eE as m0,eK as r0,fD as lc,fE as g0,fR as Tc,gE as r,iE as A0,ku as X,nE as Y,oE as M0,ou as l0,pE as Z0,pm as p,qE as Mc,qm as K0,rm as f0,sm as N0,tm as i0,um as d0,xm as W,ym as j}from"./cli-0.6.1-aw7t5zg2.mjs";import{RW as G,RY as x,gX as X0,kX as oc,kY as c0,mY as y,qY as g}from"./cli-0.6.1-j8nqjtw2.mjs";import{o0 as e,p0 as m,q0 as U,r0 as C}from"./cli-0.6.1-7mnw60rd.mjs";import{Q1 as J0,R1 as nc,i1 as H0,m1 as mc}from"./cli-0.6.1-hgz08acq.mjs";import{Aba as V0,Gaa as V,Gba as s,Jba as t,Kaa as J,Lba as q0,Naa as w0,Paa as U0,Taa as k,cca as I0,lda as z0,oda as ic}from"./cli-0.6.1-ybch0rz5.mjs";import{iea as R,nea as cc}from"./cli-0.6.1-zerz57mn.mjs";import{Zea as C0,ffa as L0,lfa as fc}from"./cli-0.6.1-v15rcvwv.mjs";import{cga as q,ega as E}from"./cli-0.6.1-vz6zhwrs.mjs";import{hha as $0}from"./cli-0.6.1-2wfbdh6y.mjs";import{Lha as K,Sha as R0,Vha as e0}from"./cli-0.6.1-qdytg688.mjs";import{gka as a0,mma as T0,yna as v0}from"./cli-0.6.1-xk82vgbd.mjs";import{dpa as D,ipa as L}from"./cli-0.6.1-9pfc6b63.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-0.6.1-frjecwrb.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-0.6.1-f184vmmc.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-0.6.1-k9r90dkb.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-0.6.1-0dxgmy9j.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-0.6.1-ywjkq6yd.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-0.6.1-ty02ny05.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-0.6.1-baj4maw0.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-0.6.1-vj7zarcr.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-0.6.1-q2fa8wy9.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
2
- `;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
3
- export{Cc as A,Lc as B,Gf as C,wc as D,z as E,Ef as F,kf as G,pf as H};
@@ -1,12 +0,0 @@
1
- import{$C as s,_C as x,aD as C,cD as n,dD as $,fD as Zq,gE as o,iE as Mq,pm as E,qm as Uq,tm as r,um as Xq,xm as d,ym as Yq}from"./cli-0.6.1-aw7t5zg2.mjs";import{GY as a,RW as Jq,RY as Qq,kY as N,mY as U,qY as V}from"./cli-0.6.1-j8nqjtw2.mjs";import{o0 as u,p0 as J,q0 as X,r0 as g}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as zq}from"./cli-0.6.1-yjn2sk7y.mjs";import{cga as w,ega as qq}from"./cli-0.6.1-vz6zhwrs.mjs";import{dpa as i,hpa as t}from"./cli-0.6.1-9pfc6b63.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
2
- | \\ \\
3
- | NEW TERMS \\__\\
4
- | |
5
- | ---------- |
6
- | ---------- |
7
- | ---------- |
8
- | ---------- |
9
- | ---------- |
10
- | |
11
- |______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
12
- export{kq as Md,_q as Nd,Aq as Od};
@@ -1,2 +0,0 @@
1
- import{cb as S}from"./cli-0.6.1-xz21g65j.mjs";import{eb as c}from"./cli-0.6.1-9te6kt3m.mjs";import{Uc as P,Yc as Vq}from"./cli-0.6.1-5qttbnpm.mjs";import{ad as I,bd as v,cd as $,dd as Wq}from"./cli-0.6.1-2sc0f0mb.mjs";import{En as C,Fs as N,Gn as r,Gs as e,bI as E,cI as Qq,kD as M,lD as Jq,lt as L,lu as A,mt as qq,mu as _,ou as Gq,st as h,tJ as f,ut as Bq,wJ as Tq}from"./cli-0.6.1-aw7t5zg2.mjs";import{s0 as s}from"./cli-0.6.1-yjn2sk7y.mjs";import{Ada as F,Ida as a,J7 as D,L7 as n,n9 as w,p9 as t}from"./cli-0.6.1-ybch0rz5.mjs";import{cga as x,ega as d}from"./cli-0.6.1-vz6zhwrs.mjs";import{eha as j,hha as o}from"./cli-0.6.1-2wfbdh6y.mjs";import{Fha as l,xha as y}from"./cli-0.6.1-qsq2xg3g.mjs";import{dpa as p}from"./cli-0.6.1-9pfc6b63.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{Lq as bb};
@@ -1,2 +0,0 @@
1
- import{Tc as Z,Uc as _,Vc as $,Yc as O}from"./cli-0.6.1-5qttbnpm.mjs";import{nd as Y,sd as x}from"./cli-0.6.1-wz2nkwz1.mjs";import{KI as U,PI as W,UI as S,VI as X,dJ as V}from"./cli-0.6.1-aw7t5zg2.mjs";import{eha as R,hha as K}from"./cli-0.6.1-2wfbdh6y.mjs";import{Fha as C,yha as Q}from"./cli-0.6.1-qsq2xg3g.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as eb};
@@ -1,9 +0,0 @@
1
- import{u5 as S}from"./cli-0.6.1-22ayz1qb.mjs";import{Sga as E,Wga as o,eha as $,hha as d}from"./cli-0.6.1-2wfbdh6y.mjs";import{Kha as u,Lha as BG,Vha as r}from"./cli-0.6.1-qdytg688.mjs";import{Xna as q,Yna as f}from"./cli-0.6.1-0bqe4byy.mjs";import{Koa as LG,soa as B}from"./cli-0.6.1-krcqab65.mjs";import{Ooa as YG}from"./cli-0.6.1-gqhwqmhd.mjs";import{dpa as QG,hpa as F,ipa as FG}from"./cli-0.6.1-9pfc6b63.mjs";function CG(){H.cache.clear?.(),$("Cleared CA certificates cache")}var H;var l=F(()=>{f();d();r();o();H=q(()=>{let G=u("--use-system-ca")||u("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let K=FG("tls"),Q=[];if(G){let Y=K.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)Q.push(...Z),$(`CA certs: Loaded ${Q.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else Q.push(...K.rootCertificates),$(`CA certs: Loaded ${Q.length} bundled root certificates as base (--use-system-ca fallback)`)}else Q.push(...K.rootCertificates),$(`CA certs: Loaded ${Q.length} bundled root certificates as base`);if(J)try{let Y=E().readFileSync(J,{encoding:"utf8"});Q.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return Q.length>0?Q:void 0})});import{Agent as NG}from"https";function lG(){let G=j(),J=H();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function O(){let G=j(),J=H();if(!G&&!J)return{};let K={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:K};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(S()).Agent({connect:{cert:K.cert,key:K.key,passphrase:K.passphrase,...K.ca&&{ca:K.ca}},pipelining:1})}}function cG(){j.cache.clear?.(),D.cache.clear?.(),$("Cleared mTLS configuration cache")}function gG(){if(!j())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var j,D;var t=F(()=>{f();l();d();o();j=q(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=E().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=E().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),D=q(()=>{let G=j(),J=H();if(!G&&!J)return;let K={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new NG(K)})});var e=()=>{};import*as GG from"net";import*as JG from"http";import{Agent as TG}from"https";var V,c;var KG=F(()=>{e();V=Symbol("AgentBaseInternalState");c=class c extends JG.Agent{constructor(G){super(G);this[V]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((K)=>K.indexOf("(https.js:")!==-1||K.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new GG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let K=this.sockets[G],Q=K.indexOf(J);if(Q!==-1){if(K.splice(Q,1),this.totalSocketCount--,K.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return TG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,K){let Q={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(Q),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,Q)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,Q)}catch(W){return K(W)}this[V].currentSocket=w,super.createSocket(G,J,K)},(w)=>{this.decrementSockets(Y,Z),K(w)})}createConnection(){let G=this[V].currentSocket;if(this[V].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[V].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[V])this[V].defaultPort=G}get protocol(){return this[V].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[V])this[V].protocol=G}}});function $G(G){return new Promise((J,K)=>{let Q=0,Y=[];function Z(){let z=G.read();if(z)h(z);else G.once("readable",Z)}function w(){G.removeListener("end",W),G.removeListener("error",M),G.removeListener("readable",Z)}function W(){w(),b("onend"),K(Error("Proxy connection ended before receiving CONNECT response"))}function M(z){w(),b("onerror %o",z),K(z)}function h(z){Y.push(z),Q+=z.length;let X=Buffer.concat(Y,Q),i=X.indexOf(`\r
3
- \r
4
- `);if(i===-1){b("have not received end of HTTP headers yet..."),Z();return}let n=X.slice(0,i).toString("ascii").split(`\r
5
- `),C=n.shift();if(!C)return G.destroy(),K(Error("No header received from proxy CONNECT response"));let s=C.split(" "),UG=+s[1],_G=s.slice(2).join(" "),T={};for(let I of n){if(!I)continue;let x=I.indexOf(":");if(x===-1)return G.destroy(),K(Error(`Invalid header from proxy CONNECT response: "${I}"`));let m=I.slice(0,x).toLowerCase(),y=I.slice(x+1).trimStart(),R=T[m];if(typeof R==="string")T[m]=[R,y];else if(Array.isArray(R))R.push(y);else T[m]=y}b("got proxy server response: %o %o",C,T),w(),J({connect:{statusCode:UG,statusText:_G,headers:T},buffered:X})}G.on("error",M),G.on("end",W),Z()})}var ZG,b;var WG=F(()=>{ZG=QG(YG(),1),b=ZG.default("https-proxy-agent:parse-proxy-response")});import*as U from"net";import*as g from"tls";import IG from"assert";import{URL as EG}from"url";function SG(G){G.resume()}function XG(G,...J){let K={},Q;for(Q in G)if(!J.includes(Q))K[Q]=G[Q];return K}var zG,L,wG=(G)=>{if(G.servername===void 0&&G.host&&!U.isIP(G.host))return{...G,servername:G.host};return G},A;var VG=F(()=>{KG();WG();zG=QG(YG(),1),L=zG.default("https-proxy-agent");A=class A extends c{constructor(G,J){super(J);this.options={path:void 0},this.proxy=typeof G==="string"?new EG(G):G,this.proxyHeaders=J?.headers??{},L("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let K=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),Q=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?XG(J,"headers"):null,host:K,port:Q}}async connect(G,J){let{proxy:K}=this;if(!J.host)throw TypeError('No "host" provided');let Q;if(K.protocol==="https:")L("Creating `tls.Socket`: %o",this.connectOpts),Q=g.connect(wG(this.connectOpts));else L("Creating `net.Socket`: %o",this.connectOpts),Q=U.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=U.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Y))w+=`${X}: ${Y[X]}\r
7
- `;let W=$G(Q);Q.write(`${w}\r
8
- `);let{connect:M,buffered:h}=await W;if(G.emit("proxyConnect",M),this.emit("proxyConnect",M,G),M.statusCode===200){if(G.once("socket",SG),J.secureEndpoint)return L("Upgrading socket connection to TLS"),g.connect({...XG(wG(J),"host","path","port"),socket:Q});return Q}Q.destroy();let z=new U.Socket({writable:!1});return z.readable=!0,G.once("socket",(X)=>{L("Replaying proxy buffer for failed request"),IG(X.listenerCount("data")>0),X.push(h),X.push(null)}),z}};A.protocols=["http","https"]});function XJ(G){a.set(G,!0),MG(G)}function MG(G){jG.cache.delete?.(G)}function zJ(G){qG.set(G,!0),MG(G)}function RG(G){return qG.get(G)===!0}function DG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function N(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function OG(G=process.env){return G.no_proxy||G.NO_PROXY}function P(G,J=OG()){if(!J)return!1;if(J==="*")return!0;try{let K=new URL(G),Q=K.hostname.toLowerCase(),Y=K.port||(K.protocol==="https:"||K.protocol==="wss:"?"443":"80"),Z=`${Q}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let M=W;return Q===W.substring(1)||Q.endsWith(M)}return Q===W})}catch{return!1}}function v(G,J={}){let K=j(),Q=H(),Y={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};if(BG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,W)=>{W(null,Z,DG(w))};return new A(G,{...Y,...J})}function VJ(G={}){let J=N(),K=D(),Q=B.create({proxy:!1});if(!J){if(K)Q.defaults.httpsAgent=K;return Q}let Y=v(J,G);return Q.interceptors.request.use((Z)=>{if(Z.url&&P(Z.url))Z.httpsAgent=K,Z.httpAgent=K;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),Q}function BJ(G){let J=N();if(!J)return;if(P(G))return;return v(J)}function MJ(G){let J=N();if(!J)return;if(P(G))return;return J}function qJ(G){let J=G?.provider&&a.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let K=N();if(K){if(typeof Bun<"u")return{...J,proxy:K,...O()};return{...J,dispatcher:p(K)}}let Q=O();if(G?.provider&&!Q.dispatcher)return{...J,...Q,dispatcher:jG(G.provider)};return{...J,...Q}}function HJ(){let G=N(),J=D();if(k!==void 0)B.interceptors.request.eject(k),k=void 0;if(B.defaults.proxy=void 0,B.defaults.httpAgent=void 0,B.defaults.httpsAgent=void 0,G){B.defaults.proxy=!1;let K=v(G);k=B.interceptors.request.use((Q)=>{if(Q.url&&P(Q.url))if(J)Q.httpsAgent=J,Q.httpAgent=J;else delete Q.httpsAgent,delete Q.httpAgent;else Q.httpsAgent=K,Q.httpAgent=K;return Q}),S().setGlobalDispatcher(p(G))}else if(J){B.defaults.httpsAgent=J;let K=O();if(K.dispatcher)S().setGlobalDispatcher(K.dispatcher)}}async function jJ(){let G=N();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:K}]=await Promise.all([import("./index-0.6.1-t8sgq6bc.mjs"),import("./index-0.6.1-b8yv5gy2.mjs")]),Q=v(G),Y=new J({httpAgent:Q,httpsAgent:Q});return{requestHandler:Y,credentials:K({clientConfig:{requestHandler:Y}})}}function UJ(){p.cache.clear?.(),$("Cleared proxy agent cache")}var a,qG,p,_,HG,bG,jG,k;var AG=F(()=>{LG();VG();f();l();d();r();t();a=new Map;qG=new Map;p=q((G)=>{let J=S(),K=j(),Q=H(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(K||Q){let Z={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),_={connections:12,keepAliveTimeout:30000,pipelining:1},HG={firstParty:{..._,allowH2:!0},openai:{..._,allowH2:!0},gemini:{..._,allowH2:!0},mistral:{..._,allowH2:!0},github:{..._,allowH2:!0},codex:{..._,allowH2:!0},"nvidia-nim":{..._,allowH2:!0},minimax:{..._,allowH2:!0}},bG=HG.openai,jG=q((G)=>{let J=S(),K=HG[G]??bG,Q={...K,allowH2:K.allowH2&&!RG(G),keepAliveTimeout:a.get(G)?100:K.keepAliveTimeout};return new J.Agent(Q)})});
9
- export{CG as Z4,l as _4,j as $4,lG as a5,cG as b5,gG as c5,t as d5,XJ as e5,zJ as f5,RG as g5,N as h5,P as i5,VJ as j5,BJ as k5,MJ as l5,qJ as m5,HJ as n5,jJ as o5,UJ as p5,AG as q5};
@@ -1,2 +0,0 @@
1
- import{hpa as s}from"./cli-0.6.1-9pfc6b63.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/0.6.1 (${e}${n}${t})`}var r=()=>{};
2
- export{c as z0,i as A0,r as B0};
@@ -1,2 +0,0 @@
1
- import{$7 as E,Ada as U,Ida as m,R8 as F,V8 as f,_7 as K}from"./cli-0.6.1-ybch0rz5.mjs";import{ofa as v,pfa as x}from"./cli-0.6.1-syhvjk64.mjs";import{Sga as D,Wga as g}from"./cli-0.6.1-2wfbdh6y.mjs";import{hpa as S}from"./cli-0.6.1-9pfc6b63.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
2
- export{P as jh,o as kh,h as lh,C as mh};
@@ -1,2 +0,0 @@
1
- import{gpa as Q,hpa as U}from"./cli-0.6.1-9pfc6b63.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
- export{K as Qoa,w as Roa,L as Soa};
@@ -1,2 +0,0 @@
1
- import{hpa as g}from"./cli-0.6.1-9pfc6b63.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
- export{Bq as rT,d as sT,$J as tT,DJ as uT,GJ as vT};