@claudiolabs/claudin 0.5.13 → 0.5.14

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/bin/claudin +26 -0
  2. package/dist/chunks/AgentTool-0.5.14-ka5wbadf.mjs +1 -0
  3. package/dist/chunks/App-0.5.14-x714qge6.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.5.14-6nm0jbxj.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.5.14-7hhwh7yd.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.5.14-pb4xjhhm.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.5.14-8a3gxq1p.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.14-jsf36abf.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.5.14-gb4tkybg.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.5.14-mzjz3dmq.mjs +3 -0
  11. package/dist/chunks/Doctor-0.5.14-deqdqs2y.mjs +1 -0
  12. package/dist/chunks/Grove-0.5.14-zj5vsq17.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.5.14-vc2v0d30.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.5.14-99drb087.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.5.14-cx07mwzh.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.5.14-2n9dg022.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.5.14-peymefv5.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.5.14-00vppy63.mjs +1 -0
  19. package/dist/chunks/REPL-0.5.14-bewb9pnz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.5.14-j7hzavxp.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.5.14-bz9qwn3m.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.5.14-5k9g7jnn.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.5.14-v04nvw78.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.5.14-91kfwccd.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.5.14-egq2w642.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.5.14-nt5waewd.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.5.14-x3ns8q41.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.5.14-zmyztc9d.mjs +1 -0
  29. package/dist/chunks/add-dir-0.5.14-m1bgsa5k.mjs +1 -0
  30. package/dist/chunks/agents-0.5.14-7493pd9j.mjs +3 -0
  31. package/dist/chunks/agents-0.5.14-g33swkvh.mjs +110 -0
  32. package/dist/chunks/api-0.5.14-n9d664hq.mjs +1 -0
  33. package/dist/chunks/asciicast-0.5.14-cdw29gxq.mjs +1 -0
  34. package/dist/chunks/assistant-0.5.14-5ttn63vc.mjs +1 -0
  35. package/dist/chunks/auth-0.5.14-cn5sbpmt.mjs +1 -0
  36. package/dist/chunks/auth-0.5.14-daysvmja.mjs +1 -0
  37. package/dist/chunks/autoMode-0.5.14-6w3n0461.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.5.14-w6ksev5d.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.5.14-v09b9v3d.mjs +1 -0
  40. package/dist/chunks/branch-0.5.14-mk8vbtcd.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.5.14-qm9kdp95.mjs +1 -0
  42. package/dist/chunks/btw-0.5.14-fnbs5xz3.mjs +1 -0
  43. package/dist/chunks/buddy-0.5.14-m0fpeg6d.mjs +3 -0
  44. package/dist/chunks/cacache-0.5.14-sxk12nzn.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.5.14-wnnzjne3.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.5.14-w0h102n4.mjs +4 -0
  47. package/dist/chunks/caches-0.5.14-37cvhfpr.mjs +1 -0
  48. package/dist/chunks/claudeDesktop-0.5.14-vsxz691t.mjs +1 -0
  49. package/dist/chunks/claudemd-0.5.14-tp1vgk3z.mjs +1 -0
  50. package/dist/chunks/clear-0.5.14-y27axrbf.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.5.14-5x5qjbpr.mjs +1 -0
  52. package/dist/chunks/cli-0.5.14-091bzaxj.mjs +2 -0
  53. package/dist/chunks/cli-0.5.14-0q3cgg09.mjs +2 -0
  54. package/dist/chunks/cli-0.5.14-0xpjxnvf.mjs +3 -0
  55. package/dist/chunks/cli-0.5.14-0yttjd5j.mjs +2 -0
  56. package/dist/chunks/cli-0.5.14-143vggzh.mjs +45 -0
  57. package/dist/chunks/cli-0.5.14-16ak6yfx.mjs +1 -0
  58. package/dist/chunks/cli-0.5.14-1d34ehpy.mjs +16 -0
  59. package/dist/chunks/cli-0.5.14-1dm5x2bp.mjs +2 -0
  60. package/dist/chunks/cli-0.5.14-1gr6bex0.mjs +2 -0
  61. package/dist/chunks/cli-0.5.14-1hazt8y4.mjs +50 -0
  62. package/dist/chunks/cli-0.5.14-1n5t7fhh.mjs +6 -0
  63. package/dist/chunks/cli-0.5.14-1ttqdawg.mjs +2 -0
  64. package/dist/chunks/cli-0.5.14-1ysbyz3f.mjs +21 -0
  65. package/dist/chunks/cli-0.5.14-20jyzpyr.mjs +2 -0
  66. package/dist/chunks/cli-0.5.14-20vxp61q.mjs +2 -0
  67. package/dist/chunks/cli-0.5.14-21qmk948.mjs +3 -0
  68. package/dist/chunks/cli-0.5.14-26qxsgry.mjs +2 -0
  69. package/dist/chunks/cli-0.5.14-2get61vb.mjs +15 -0
  70. package/dist/chunks/cli-0.5.14-2m40h4kp.mjs +5 -0
  71. package/dist/chunks/cli-0.5.14-2nfr4a2g.mjs +2 -0
  72. package/dist/chunks/cli-0.5.14-2pafgvs4.mjs +2 -0
  73. package/dist/chunks/cli-0.5.14-3f5mbe3a.mjs +2 -0
  74. package/dist/chunks/cli-0.5.14-3pq7th32.mjs +2 -0
  75. package/dist/chunks/cli-0.5.14-3rsvr6t8.mjs +2 -0
  76. package/dist/chunks/cli-0.5.14-41jtw8ac.mjs +2 -0
  77. package/dist/chunks/cli-0.5.14-4367p06d.mjs +9 -0
  78. package/dist/chunks/cli-0.5.14-45c9ydpj.mjs +2 -0
  79. package/dist/chunks/cli-0.5.14-493n054v.mjs +3 -0
  80. package/dist/chunks/cli-0.5.14-4d1vgx1q.mjs +2 -0
  81. package/dist/chunks/cli-0.5.14-4h0hxm6g.mjs +2 -0
  82. package/dist/chunks/cli-0.5.14-4khekra9.mjs +2 -0
  83. package/dist/chunks/cli-0.5.14-4swh9njd.mjs +2 -0
  84. package/dist/chunks/cli-0.5.14-5008zpga.mjs +2 -0
  85. package/dist/chunks/cli-0.5.14-50yq8sa4.mjs +2 -0
  86. package/dist/chunks/cli-0.5.14-5gkrj1ak.mjs +2 -0
  87. package/dist/chunks/cli-0.5.14-5tjkdtp9.mjs +2 -0
  88. package/dist/chunks/cli-0.5.14-60yczvwy.mjs +133 -0
  89. package/dist/chunks/cli-0.5.14-63x4db8w.mjs +133 -0
  90. package/dist/chunks/cli-0.5.14-64rpppf8.mjs +18 -0
  91. package/dist/chunks/cli-0.5.14-685647jf.mjs +7 -0
  92. package/dist/chunks/cli-0.5.14-6937x3w3.mjs +2 -0
  93. package/dist/chunks/cli-0.5.14-6eea9ezs.mjs +4 -0
  94. package/dist/chunks/cli-0.5.14-6fk534v0.mjs +17 -0
  95. package/dist/chunks/cli-0.5.14-6kksfjy8.mjs +2 -0
  96. package/dist/chunks/cli-0.5.14-6raawc34.mjs +6 -0
  97. package/dist/chunks/cli-0.5.14-6yty6gqs.mjs +20 -0
  98. package/dist/chunks/cli-0.5.14-73ackmw7.mjs +2 -0
  99. package/dist/chunks/cli-0.5.14-7m77sfxk.mjs +58 -0
  100. package/dist/chunks/cli-0.5.14-7pgk96hh.mjs +2 -0
  101. package/dist/chunks/cli-0.5.14-7rnbh7ne.mjs +2 -0
  102. package/dist/chunks/cli-0.5.14-8azez85y.mjs +2 -0
  103. package/dist/chunks/cli-0.5.14-8f89rfzv.mjs +2 -0
  104. package/dist/chunks/cli-0.5.14-8kb1432a.mjs +2 -0
  105. package/dist/chunks/cli-0.5.14-8qymm509.mjs +2 -0
  106. package/dist/chunks/cli-0.5.14-9d7p6385.mjs +2 -0
  107. package/dist/chunks/cli-0.5.14-9h71xtmr.mjs +2 -0
  108. package/dist/chunks/cli-0.5.14-9j1dsrh1.mjs +2 -0
  109. package/dist/chunks/cli-0.5.14-9wya0d3v.mjs +2 -0
  110. package/dist/chunks/cli-0.5.14-9xvhzhkm.mjs +3 -0
  111. package/dist/chunks/cli-0.5.14-ahpdwf0v.mjs +2 -0
  112. package/dist/chunks/cli-0.5.14-an5qgv3a.mjs +2 -0
  113. package/dist/chunks/cli-0.5.14-anv6260e.mjs +2 -0
  114. package/dist/chunks/cli-0.5.14-aqeeb0f5.mjs +2 -0
  115. package/dist/chunks/cli-0.5.14-avm7rqss.mjs +3 -0
  116. package/dist/chunks/cli-0.5.14-aw48m66c.mjs +2 -0
  117. package/dist/chunks/cli-0.5.14-axshc74p.mjs +2 -0
  118. package/dist/chunks/cli-0.5.14-b0d1cwrx.mjs +2 -0
  119. package/dist/chunks/cli-0.5.14-b2pmvy9z.mjs +2 -0
  120. package/dist/chunks/cli-0.5.14-b2y4c4qz.mjs +2 -0
  121. package/dist/chunks/cli-0.5.14-bfcf75rz.mjs +2 -0
  122. package/dist/chunks/cli-0.5.14-bwk8tz6z.mjs +2 -0
  123. package/dist/chunks/cli-0.5.14-c4t8gdgj.mjs +2 -0
  124. package/dist/chunks/cli-0.5.14-c5w3y4bc.mjs +2 -0
  125. package/dist/chunks/cli-0.5.14-c9j9jsmz.mjs +3 -0
  126. package/dist/chunks/cli-0.5.14-cegh4n4e.mjs +2 -0
  127. package/dist/chunks/cli-0.5.14-ckv99ms5.mjs +2 -0
  128. package/dist/chunks/cli-0.5.14-cw6v5vt0.mjs +18 -0
  129. package/dist/chunks/cli-0.5.14-d1dqcsvv.mjs +18 -0
  130. package/dist/chunks/cli-0.5.14-d26aykc0.mjs +2 -0
  131. package/dist/chunks/cli-0.5.14-d46mhdrz.mjs +2 -0
  132. package/dist/chunks/cli-0.5.14-d4frp6k6.mjs +2 -0
  133. package/dist/chunks/cli-0.5.14-d5t0sr9t.mjs +2 -0
  134. package/dist/chunks/cli-0.5.14-dmbyd0sa.mjs +2 -0
  135. package/dist/chunks/cli-0.5.14-dpcawxem.mjs +2 -0
  136. package/dist/chunks/cli-0.5.14-dpys58zb.mjs +12 -0
  137. package/dist/chunks/cli-0.5.14-dqhxbxb7.mjs +2 -0
  138. package/dist/chunks/cli-0.5.14-e0f671ax.mjs +2 -0
  139. package/dist/chunks/cli-0.5.14-e3gxn67m.mjs +4 -0
  140. package/dist/chunks/cli-0.5.14-e9wbczy7.mjs +2 -0
  141. package/dist/chunks/cli-0.5.14-easqaf33.mjs +2 -0
  142. package/dist/chunks/cli-0.5.14-ef8ctc2m.mjs +4 -0
  143. package/dist/chunks/cli-0.5.14-efp8wjg1.mjs +2 -0
  144. package/dist/chunks/cli-0.5.14-en3hbpe6.mjs +2 -0
  145. package/dist/chunks/cli-0.5.14-fbvy5zb9.mjs +2 -0
  146. package/dist/chunks/cli-0.5.14-g3h8xpqj.mjs +2 -0
  147. package/dist/chunks/cli-0.5.14-g91kxyj3.mjs +17 -0
  148. package/dist/chunks/cli-0.5.14-gdb0dvne.mjs +2 -0
  149. package/dist/chunks/cli-0.5.14-gjegk0er.mjs +2 -0
  150. package/dist/chunks/cli-0.5.14-gm5kmg2w.mjs +2 -0
  151. package/dist/chunks/cli-0.5.14-gscd2x4f.mjs +4 -0
  152. package/dist/chunks/cli-0.5.14-gxtw8dhr.mjs +15 -0
  153. package/dist/chunks/cli-0.5.14-h5pkzt2b.mjs +2 -0
  154. package/dist/chunks/cli-0.5.14-h61trenx.mjs +2 -0
  155. package/dist/chunks/cli-0.5.14-h72zd06s.mjs +2 -0
  156. package/dist/chunks/cli-0.5.14-hanfd2pz.mjs +2 -0
  157. package/dist/chunks/cli-0.5.14-jad7e0eg.mjs +2 -0
  158. package/dist/chunks/cli-0.5.14-jdvea9zv.mjs +10 -0
  159. package/dist/chunks/cli-0.5.14-jf3et57a.mjs +5316 -0
  160. package/dist/chunks/cli-0.5.14-jff31gdc.mjs +2 -0
  161. package/dist/chunks/cli-0.5.14-jm5cqnt7.mjs +2 -0
  162. package/dist/chunks/cli-0.5.14-jrcr7y5a.mjs +2 -0
  163. package/dist/chunks/cli-0.5.14-k4pqcfd4.mjs +2 -0
  164. package/dist/chunks/cli-0.5.14-k8g7xd1q.mjs +2 -0
  165. package/dist/chunks/cli-0.5.14-k9xvwt73.mjs +2 -0
  166. package/dist/chunks/cli-0.5.14-kbqdxnzh.mjs +2 -0
  167. package/dist/chunks/cli-0.5.14-kt358a3h.mjs +2 -0
  168. package/dist/chunks/cli-0.5.14-m7skqd4q.mjs +2 -0
  169. package/dist/chunks/cli-0.5.14-m9p42h1g.mjs +2 -0
  170. package/dist/chunks/cli-0.5.14-mdmz1bw1.mjs +2 -0
  171. package/dist/chunks/cli-0.5.14-mkr2nerd.mjs +2 -0
  172. package/dist/chunks/cli-0.5.14-mqepr6k4.mjs +2 -0
  173. package/dist/chunks/cli-0.5.14-mqp3fc5k.mjs +2 -0
  174. package/dist/chunks/cli-0.5.14-mt7egvs8.mjs +2 -0
  175. package/dist/chunks/cli-0.5.14-mys2py3s.mjs +2 -0
  176. package/dist/chunks/cli-0.5.14-n1wzvy0k.mjs +2 -0
  177. package/dist/chunks/cli-0.5.14-n5069ej6.mjs +2 -0
  178. package/dist/chunks/cli-0.5.14-nd1cyqtv.mjs +2 -0
  179. package/dist/chunks/cli-0.5.14-ndq9rhn7.mjs +193 -0
  180. package/dist/chunks/cli-0.5.14-nef9j9x3.mjs +67 -0
  181. package/dist/chunks/cli-0.5.14-nhz1s6yj.mjs +24 -0
  182. package/dist/chunks/cli-0.5.14-nkmxan04.mjs +2 -0
  183. package/dist/chunks/cli-0.5.14-np80e4h0.mjs +2 -0
  184. package/dist/chunks/cli-0.5.14-nx2k2fc6.mjs +2 -0
  185. package/dist/chunks/cli-0.5.14-p8gq7nq3.mjs +2 -0
  186. package/dist/chunks/cli-0.5.14-pd7b7t5h.mjs +3 -0
  187. package/dist/chunks/cli-0.5.14-pdz4gbap.mjs +2 -0
  188. package/dist/chunks/cli-0.5.14-pftvwkk8.mjs +4 -0
  189. package/dist/chunks/cli-0.5.14-pr6tse5d.mjs +2 -0
  190. package/dist/chunks/cli-0.5.14-pvx7sqsj.mjs +2 -0
  191. package/dist/chunks/cli-0.5.14-q8y3c8ja.mjs +3 -0
  192. package/dist/chunks/cli-0.5.14-qa02d35p.mjs +3 -0
  193. package/dist/chunks/cli-0.5.14-qb0wcr18.mjs +24 -0
  194. package/dist/chunks/cli-0.5.14-qc6a2vcb.mjs +2 -0
  195. package/dist/chunks/cli-0.5.14-qcmh02jt.mjs +4 -0
  196. package/dist/chunks/cli-0.5.14-qcrttwqb.mjs +2 -0
  197. package/dist/chunks/cli-0.5.14-qhgp0jp4.mjs +4 -0
  198. package/dist/chunks/cli-0.5.14-qwa1c8w2.mjs +34 -0
  199. package/dist/chunks/cli-0.5.14-r38faawy.mjs +2 -0
  200. package/dist/chunks/cli-0.5.14-r61p0n6x.mjs +2 -0
  201. package/dist/chunks/cli-0.5.14-r66bevxp.mjs +2 -0
  202. package/dist/chunks/cli-0.5.14-r8f2hssc.mjs +59 -0
  203. package/dist/chunks/cli-0.5.14-rfbqq3z1.mjs +2 -0
  204. package/dist/chunks/cli-0.5.14-rj1nh8jm.mjs +2 -0
  205. package/dist/chunks/cli-0.5.14-s5wgj31r.mjs +15 -0
  206. package/dist/chunks/cli-0.5.14-s6vd2h5w.mjs +2 -0
  207. package/dist/chunks/cli-0.5.14-sg9wjwba.mjs +5 -0
  208. package/dist/chunks/cli-0.5.14-svdmqpzs.mjs +12 -0
  209. package/dist/chunks/cli-0.5.14-sx666s0x.mjs +2 -0
  210. package/dist/chunks/cli-0.5.14-t32fswzp.mjs +2 -0
  211. package/dist/chunks/cli-0.5.14-t3d6ycsp.mjs +2 -0
  212. package/dist/chunks/cli-0.5.14-t72p44x7.mjs +2 -0
  213. package/dist/chunks/cli-0.5.14-tdaq69ga.mjs +4 -0
  214. package/dist/chunks/cli-0.5.14-tgeskqzs.mjs +2 -0
  215. package/dist/chunks/cli-0.5.14-tmc3jcgf.mjs +5 -0
  216. package/dist/chunks/cli-0.5.14-tqnsct7g.mjs +39 -0
  217. package/dist/chunks/cli-0.5.14-v6kjcfbm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.14-vbnr7r6e.mjs +2 -0
  219. package/dist/chunks/cli-0.5.14-vf6t34v8.mjs +2 -0
  220. package/dist/chunks/cli-0.5.14-vhj1gfhf.mjs +2 -0
  221. package/dist/chunks/cli-0.5.14-vq78tz92.mjs +2 -0
  222. package/dist/chunks/cli-0.5.14-vqk0h33w.mjs +4 -0
  223. package/dist/chunks/cli-0.5.14-wbj99kyq.mjs +2 -0
  224. package/dist/chunks/cli-0.5.14-wnmt9qkk.mjs +2 -0
  225. package/dist/chunks/cli-0.5.14-wq0qfb4r.mjs +2 -0
  226. package/dist/chunks/cli-0.5.14-xad83fbb.mjs +2 -0
  227. package/dist/chunks/cli-0.5.14-xc847091.mjs +2 -0
  228. package/dist/chunks/cli-0.5.14-xeawxepw.mjs +2 -0
  229. package/dist/chunks/cli-0.5.14-xevr51kc.mjs +3 -0
  230. package/dist/chunks/cli-0.5.14-xjdw6amg.mjs +9 -0
  231. package/dist/chunks/cli-0.5.14-y22mbspw.mjs +3 -0
  232. package/dist/chunks/cli-0.5.14-y3kkm5vp.mjs +2 -0
  233. package/dist/chunks/cli-0.5.14-ya2ykcd6.mjs +2 -0
  234. package/dist/chunks/cli-0.5.14-yafpkp67.mjs +3 -0
  235. package/dist/chunks/cli-0.5.14-yfh9te0f.mjs +2 -0
  236. package/dist/chunks/cli-0.5.14-yms71vy8.mjs +4 -0
  237. package/dist/chunks/cli-0.5.14-ytt72j1r.mjs +2 -0
  238. package/dist/chunks/cli-0.5.14-z1wt52vd.mjs +2 -0
  239. package/dist/chunks/cli-0.5.14-z1zfnf2j.mjs +25 -0
  240. package/dist/chunks/cli-0.5.14-z2kvxbjn.mjs +8 -0
  241. package/dist/chunks/cli-0.5.14-z55jz0h2.mjs +12 -0
  242. package/dist/chunks/cli-0.5.14-ze38m3e0.mjs +42 -0
  243. package/dist/chunks/cli-0.5.14-zm1c93pa.mjs +6 -0
  244. package/dist/chunks/cli-0.5.14-zpggrnj1.mjs +2 -0
  245. package/dist/chunks/client-0.5.14-7m64ax0b.mjs +1 -0
  246. package/dist/chunks/color-0.5.14-gsm9gxpa.mjs +1 -0
  247. package/dist/chunks/compact-0.5.14-pqfy772p.mjs +3 -0
  248. package/dist/chunks/config-0.5.14-hdw0yb76.mjs +1 -0
  249. package/dist/chunks/config-0.5.14-k01b10a5.mjs +1 -0
  250. package/dist/chunks/constants-0.5.14-g7s59vvv.mjs +1 -0
  251. package/dist/chunks/context-0.5.14-0y16jvz3.mjs +1 -0
  252. package/dist/chunks/context-noninteractive-0.5.14-bsa0wjaf.mjs +1 -0
  253. package/dist/chunks/conversation-0.5.14-sm5xssg2.mjs +1 -0
  254. package/dist/chunks/copilotHeaders-0.5.14-s8z7mree.mjs +1 -0
  255. package/dist/chunks/copy-0.5.14-sxqyn9qc.mjs +9 -0
  256. package/dist/chunks/cost-0.5.14-p252pkws.mjs +1 -0
  257. package/dist/chunks/createSSHSession-0.5.14-kvm8kq1c.mjs +1 -0
  258. package/dist/chunks/createSession-0.5.14-h945q3v2.mjs +1 -0
  259. package/dist/chunks/debug-0.5.14-6s6x2x5y.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-0.5.14-pm2kkmmd.mjs +1169 -0
  261. package/dist/chunks/desktop-0.5.14-b0c0mf4t.mjs +1 -0
  262. package/dist/chunks/detectRepository-0.5.14-v7wq8791.mjs +1 -0
  263. package/dist/chunks/detection-0.5.14-y386aphh.mjs +1 -0
  264. package/dist/chunks/diff-0.5.14-hyggfx76.mjs +1 -0
  265. package/dist/chunks/doctor-0.5.14-q3fn5hpz.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-0.5.14-tq9nej4a.mjs +1 -0
  267. package/dist/chunks/earlyInput-0.5.14-f9vhdypy.mjs +1 -0
  268. package/dist/chunks/effort-0.5.14-2smy583n.mjs +10 -0
  269. package/dist/chunks/envUtils-0.5.14-xbzyg758.mjs +1 -0
  270. package/dist/chunks/environmentSelection-0.5.14-emmy6rr3.mjs +1 -0
  271. package/dist/chunks/environments-0.5.14-ecp8qdny.mjs +1 -0
  272. package/dist/chunks/errors-0.5.14-8y2a0e4y.mjs +1 -0
  273. package/dist/chunks/exampleCommands-0.5.14-kngvnqsk.mjs +1 -0
  274. package/dist/chunks/exit-0.5.14-5kstn07d.mjs +1 -0
  275. package/dist/chunks/export-0.5.14-4xtsrx1s.mjs +2 -0
  276. package/dist/chunks/extra-usage-0.5.14-c359cbqm.mjs +1 -0
  277. package/dist/chunks/extra-usage-noninteractive-0.5.14-nd846d7b.mjs +1 -0
  278. package/dist/chunks/fast-0.5.14-ph4h5w66.mjs +1 -0
  279. package/dist/chunks/feedback-0.5.14-4s0gwfzz.mjs +14 -0
  280. package/dist/chunks/firstPartyEventLogger-0.5.14-c9xcj3z5.mjs +1 -0
  281. package/dist/chunks/git-0.5.14-5evnfaj9.mjs +1 -0
  282. package/dist/chunks/githubModelsCredentials-0.5.14-fkz7b722.mjs +1 -0
  283. package/dist/chunks/goal-0.5.14-ey3n29t8.mjs +4 -0
  284. package/dist/chunks/grove-0.5.14-dtm2qt3a.mjs +1 -0
  285. package/dist/chunks/growthbook-0.5.14-p52b1fpn.mjs +1 -0
  286. package/dist/chunks/headless-0.5.14-szhcws9m.mjs +2 -0
  287. package/dist/chunks/heapdump-0.5.14-eb1hjsjx.mjs +6 -0
  288. package/dist/chunks/help-0.5.14-mzc8t22x.mjs +1 -0
  289. package/dist/chunks/hookChains-0.5.14-g97q30xx.mjs +3 -0
  290. package/dist/chunks/hooks-0.5.14-88bm5h5k.mjs +1 -0
  291. package/dist/chunks/hooks-0.5.14-ys5d015m.mjs +79 -0
  292. package/dist/chunks/ide-0.5.14-2krrg1a9.mjs +3 -0
  293. package/dist/chunks/image-processor-napi-0.5.14-xkhg31fm.mjs +1 -0
  294. package/dist/chunks/index-0.5.14-0vbethc3.mjs +9 -0
  295. package/dist/chunks/index-0.5.14-0xy3pmj6.mjs +1 -0
  296. package/dist/chunks/index-0.5.14-2xwm9tzw.mjs +1 -0
  297. package/dist/chunks/index-0.5.14-4f2sts9v.mjs +1 -0
  298. package/dist/chunks/index-0.5.14-6abmnxq5.mjs +1 -0
  299. package/dist/chunks/index-0.5.14-7f15ecf5.mjs +1 -0
  300. package/dist/chunks/index-0.5.14-9xk2eb5e.mjs +2 -0
  301. package/dist/chunks/index-0.5.14-ac62kk33.mjs +1 -0
  302. package/dist/chunks/index-0.5.14-b22bcys9.mjs +1 -0
  303. package/dist/chunks/index-0.5.14-cpq99fc2.mjs +1 -0
  304. package/dist/chunks/index-0.5.14-f0fcdhmh.mjs +1 -0
  305. package/dist/chunks/index-0.5.14-h1dnxskr.mjs +9 -0
  306. package/dist/chunks/index-0.5.14-hnv3hqb4.mjs +2 -0
  307. package/dist/chunks/index-0.5.14-hx6n2t98.mjs +17 -0
  308. package/dist/chunks/index-0.5.14-j5gnx1h5.mjs +1 -0
  309. package/dist/chunks/index-0.5.14-jedeztfh.mjs +1 -0
  310. package/dist/chunks/index-0.5.14-n4ak9ayt.mjs +5 -0
  311. package/dist/chunks/index-0.5.14-pnvmm51v.mjs +1 -0
  312. package/dist/chunks/index-0.5.14-qt3rsghk.mjs +30 -0
  313. package/dist/chunks/index-0.5.14-w09z3j2p.mjs +1 -0
  314. package/dist/chunks/index-0.5.14-wegrd5ws.mjs +1 -0
  315. package/dist/chunks/index-0.5.14-y52vxjk8.mjs +1 -0
  316. package/dist/chunks/init-0.5.14-r84vn66h.mjs +1 -0
  317. package/dist/chunks/initReplBridge-0.5.14-93w4t2bk.mjs +1 -0
  318. package/dist/chunks/ink-0.5.14-dtjvx2bw.mjs +1 -0
  319. package/dist/chunks/insights-0.5.14-ee7wh6rp.mjs +870 -0
  320. package/dist/chunks/install-0.5.14-0pkv3rx9.mjs +1 -0
  321. package/dist/chunks/install-github-app-0.5.14-jwgnppse.mjs +149 -0
  322. package/dist/chunks/install-slack-app-0.5.14-xg6pdyqv.mjs +1 -0
  323. package/dist/chunks/instrumentation-0.5.14-40pdqy02.mjs +1 -0
  324. package/dist/chunks/interactiveHelpers-0.5.14-0vxxrbcv.mjs +1 -0
  325. package/dist/chunks/keybindings-0.5.14-yrj9hktn.mjs +2 -0
  326. package/dist/chunks/knowledge-0.5.14-wmfeb8sj.mjs +2 -0
  327. package/dist/chunks/latestVersionCache-0.5.14-btshynjc.mjs +1 -0
  328. package/dist/chunks/loadAgentsDir-0.5.14-bgwtbfkw.mjs +1 -0
  329. package/dist/chunks/loadPluginHooks-0.5.14-7arkwrx5.mjs +1 -0
  330. package/dist/chunks/loadPluginHooks-0.5.14-ft2aw53h.mjs +1 -0
  331. package/dist/chunks/log-0.5.14-zc88rz5g.mjs +1 -0
  332. package/dist/chunks/main-0.5.14-dtm7rx0y.mjs +1 -0
  333. package/dist/chunks/managedEnv-0.5.14-t0mfftrg.mjs +1 -0
  334. package/dist/chunks/mcp-0.5.14-afsrv7xy.mjs +4 -0
  335. package/dist/chunks/mcp-0.5.14-m5xjst8y.mjs +17 -0
  336. package/dist/chunks/mcp-0.5.14-qs8y9tyg.mjs +1 -0
  337. package/dist/chunks/mcpb-0.5.14-hqf00wdg.mjs +1 -0
  338. package/dist/chunks/memory-0.5.14-deqz5wf4.mjs +3 -0
  339. package/dist/chunks/mobile-0.5.14-nav99g5f.mjs +2 -0
  340. package/dist/chunks/model-0.5.14-4m2ak31n.mjs +1 -0
  341. package/dist/chunks/model-0.5.14-8908s4h1.mjs +2 -0
  342. package/dist/chunks/node-0.5.14-y28vz58a.mjs +12 -0
  343. package/dist/chunks/oauth-0.5.14-cqg2kcsy.mjs +1 -0
  344. package/dist/chunks/openaiShim-0.5.14-zqbrf5p3.mjs +14 -0
  345. package/dist/chunks/output-style-0.5.14-rhdxpb2v.mjs +1 -0
  346. package/dist/chunks/package-D6422PQU-0.5.14-rcttc4yp.mjs +1 -0
  347. package/dist/chunks/parseConnectUrl-0.5.14-wj5c5dp3.mjs +1 -0
  348. package/dist/chunks/parser-0.5.14-thy6xbb8.mjs +1 -0
  349. package/dist/chunks/passes-0.5.14-vta3tpqh.mjs +1 -0
  350. package/dist/chunks/permissions-0.5.14-668n4zqr.mjs +3 -0
  351. package/dist/chunks/plan-0.5.14-fd25354c.mjs +1 -0
  352. package/dist/chunks/plist-0.5.14-3dqnn8w2.mjs +1 -0
  353. package/dist/chunks/plugin-0.5.14-tzhch29w.mjs +29 -0
  354. package/dist/chunks/pluginStartupCheck-0.5.14-yp54tttb.mjs +1 -0
  355. package/dist/chunks/plugins-0.5.14-4n79y0tg.mjs +9 -0
  356. package/dist/chunks/preActionHook-0.5.14-7xyg62a5.mjs +2 -0
  357. package/dist/chunks/print-0.5.14-jkb0vbrw.mjs +57 -0
  358. package/dist/chunks/privacy-settings-0.5.14-5gz91bcv.mjs +1 -0
  359. package/dist/chunks/process-0.5.14-5ven8sh9.mjs +1 -0
  360. package/dist/chunks/processBashCommand-0.5.14-w72vmsa3.mjs +1 -0
  361. package/dist/chunks/processSlashCommand-0.5.14-1pq0axg8.mjs +9 -0
  362. package/dist/chunks/prompt-0.5.14-e3te1m4f.mjs +1 -0
  363. package/dist/chunks/prompt-0.5.14-prgmwqyn.mjs +1 -0
  364. package/dist/chunks/prompts-0.5.14-cdwagfnj.mjs +1 -0
  365. package/dist/chunks/protocolHandler-0.5.14-s73ezrw9.mjs +13 -0
  366. package/dist/chunks/provider-0.5.14-v7s7j76x.mjs +2 -0
  367. package/dist/chunks/providerProfiles-0.5.14-5n5txt96.mjs +1 -0
  368. package/dist/chunks/providerValidation-0.5.14-b6jb7n1p.mjs +6 -0
  369. package/dist/chunks/rate-limit-options-0.5.14-r9005cw2.mjs +1 -0
  370. package/dist/chunks/registerSubcommands-0.5.14-n1ax913t.mjs +34 -0
  371. package/dist/chunks/registry-0.5.14-fh1m7gth.mjs +1 -0
  372. package/dist/chunks/release-notes-0.5.14-n6nnpd4k.mjs +5 -0
  373. package/dist/chunks/reload-plugins-0.5.14-1askmda7.mjs +2 -0
  374. package/dist/chunks/remote-env-0.5.14-zp4b9t21.mjs +1 -0
  375. package/dist/chunks/remoteBridgeCore-0.5.14-vwrkzyqk.mjs +1 -0
  376. package/dist/chunks/remoteSession-0.5.14-95tfvwa6.mjs +1 -0
  377. package/dist/chunks/rename-0.5.14-nejym9bj.mjs +1 -0
  378. package/dist/chunks/replBridgeHandle-0.5.14-qqvggm22.mjs +1 -0
  379. package/dist/chunks/replLauncher-0.5.14-fefkewc5.mjs +1 -0
  380. package/dist/chunks/resume-0.5.14-4m6xat30.mjs +2 -0
  381. package/dist/chunks/rewind-0.5.14-r58b720w.mjs +1 -0
  382. package/dist/chunks/rootOptions-0.5.14-a5vv29e3.mjs +1 -0
  383. package/dist/chunks/sandbox-adapter-0.5.14-zb3t1137.mjs +1 -0
  384. package/dist/chunks/sandbox-toggle-0.5.14-xsv41nq3.mjs +1 -0
  385. package/dist/chunks/session-0.5.14-wyrxa25a.mjs +2 -0
  386. package/dist/chunks/sessionDiscovery-0.5.14-28vpj06b.mjs +1 -0
  387. package/dist/chunks/sessionFileAccessHooks-0.5.14-z2qpn0tn.mjs +1 -0
  388. package/dist/chunks/sessionStorage-0.5.14-kwv9d6vs.mjs +1 -0
  389. package/dist/chunks/settings-0.5.14-p0zs5fdt.mjs +1 -0
  390. package/dist/chunks/setup-0.5.14-qg611r9j.mjs +5 -0
  391. package/dist/chunks/sinks-0.5.14-kk1z8jn1.mjs +1 -0
  392. package/dist/chunks/skills-0.5.14-jks9y478.mjs +1 -0
  393. package/dist/chunks/startupProfiler-0.5.14-jaxmn568.mjs +1 -0
  394. package/dist/chunks/startupUpdateCheck-0.5.14-1yfdaz7t.mjs +1 -0
  395. package/dist/chunks/state-0.5.14-kf06ggyz.mjs +1 -0
  396. package/dist/chunks/stats-0.5.14-8f11qq7g.mjs +6 -0
  397. package/dist/chunks/status-0.5.14-yx768tmg.mjs +1 -0
  398. package/dist/chunks/stickers-0.5.14-8nb2bx0d.mjs +1 -0
  399. package/dist/chunks/subprocessEnv-0.5.14-hhz4z80t.mjs +1 -0
  400. package/dist/chunks/tasks-0.5.14-mgjvgj3q.mjs +1 -0
  401. package/dist/chunks/teamHelpers-0.5.14-zn6sdp9e.mjs +1 -0
  402. package/dist/chunks/teammateModeSnapshot-0.5.14-mr3qdh44.mjs +1 -0
  403. package/dist/chunks/teleport-0.5.14-jg3r903g.mjs +1 -0
  404. package/dist/chunks/terminalSetup-0.5.14-ys9stqfy.mjs +1 -0
  405. package/dist/chunks/theme-0.5.14-vwqjdywj.mjs +1 -0
  406. package/dist/chunks/thinkback-0.5.14-rnqvt431.mjs +1 -0
  407. package/dist/chunks/thinkback-play-0.5.14-gh24t0mc.mjs +1 -0
  408. package/dist/chunks/toolPool-0.5.14-6bzfbnf4.mjs +1 -0
  409. package/dist/chunks/toolSearch-0.5.14-6em6kvm8.mjs +1 -0
  410. package/dist/chunks/tools-0.5.14-3zfad976.mjs +1 -0
  411. package/dist/chunks/trustedDevice-0.5.14-csn78406.mjs +1 -0
  412. package/dist/chunks/turndown.cjs-0.5.14-fg9tbzhn.mjs +69 -0
  413. package/dist/chunks/ultrareviewCommand-0.5.14-d4hjcjxs.mjs +4 -0
  414. package/dist/chunks/update-0.5.14-c55smch2.mjs +86 -0
  415. package/dist/chunks/upgrade-0.5.14-hgzg25f4.mjs +1 -0
  416. package/dist/chunks/upstreamproxy-0.5.14-ss7ej555.mjs +14 -0
  417. package/dist/chunks/url-handler-napi-0.5.14-qbb087da.mjs +1 -0
  418. package/dist/chunks/usage-0.5.14-pghv9g49.mjs +1 -0
  419. package/dist/chunks/util-0.5.14-z79t0g8n.mjs +1 -0
  420. package/dist/chunks/utils-0.5.14-rc3e5m8r.mjs +1 -0
  421. package/dist/chunks/vim-0.5.14-hfvzh87q.mjs +1 -0
  422. package/dist/chunks/watcher-0.5.14-eh1f1h28.mjs +1 -0
  423. package/dist/chunks/wiki-0.5.14-kpp6v5tp.mjs +132 -0
  424. package/dist/chunks/worktree-0.5.14-czpr7pcg.mjs +1 -0
  425. package/dist/chunks/worktreeModeEnabled-0.5.14-07wp1qe2.mjs +1 -0
  426. package/dist/chunks/wrapper-0.5.14-9z68ky7a.mjs +7 -0
  427. package/dist/claudin-vscode.vsix +0 -0
  428. package/dist/cli.mjs +2 -2
  429. package/package.json +1 -1
  430. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +0 -1
  431. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +0 -1
  432. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +0 -1
  433. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +0 -1
  434. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +0 -1
  435. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +0 -1
  436. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +0 -1
  437. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +0 -1
  438. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +0 -3
  439. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +0 -1
  440. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +0 -1
  441. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +0 -1
  442. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +0 -1
  443. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +0 -1
  444. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +0 -1
  445. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +0 -1
  446. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +0 -1
  447. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +0 -1
  448. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +0 -1
  449. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +0 -1
  450. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +0 -1
  451. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +0 -1
  452. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +0 -1
  453. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +0 -9
  454. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +0 -1
  455. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +0 -1
  456. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +0 -1
  457. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +0 -1
  458. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +0 -3
  459. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +0 -110
  460. package/dist/chunks/api-0.5.13-q2anppzf.mjs +0 -1
  461. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +0 -1
  462. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +0 -1
  463. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +0 -1
  464. package/dist/chunks/auth-0.5.13-jn53extx.mjs +0 -1
  465. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +0 -48
  466. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +0 -1
  467. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +0 -1
  468. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +0 -4
  469. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +0 -1
  470. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +0 -1
  471. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +0 -3
  472. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +0 -1
  473. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +0 -21
  474. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +0 -4
  475. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +0 -1
  476. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +0 -1
  477. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +0 -1
  478. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +0 -1
  479. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +0 -1
  480. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +0 -2
  481. package/dist/chunks/cli-0.5.13-055v20cs.mjs +0 -2
  482. package/dist/chunks/cli-0.5.13-061m60f2.mjs +0 -2
  483. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +0 -3
  484. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +0 -2
  485. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +0 -2
  486. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +0 -3
  487. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +0 -2
  488. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +0 -2
  489. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +0 -45
  490. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +0 -2
  491. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +0 -2
  492. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +0 -5276
  493. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +0 -2
  494. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +0 -2
  495. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +0 -2
  496. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +0 -2
  497. package/dist/chunks/cli-0.5.13-426cpksk.mjs +0 -4
  498. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +0 -2
  499. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +0 -2
  500. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +0 -2
  501. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +0 -2
  502. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +0 -2
  503. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +0 -6
  504. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +0 -2
  505. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +0 -2
  506. package/dist/chunks/cli-0.5.13-62qasgve.mjs +0 -2
  507. package/dist/chunks/cli-0.5.13-667jxcab.mjs +0 -18
  508. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +0 -2
  509. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +0 -2
  510. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +0 -2
  511. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +0 -2
  512. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +0 -2
  513. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +0 -4
  514. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +0 -2
  515. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +0 -2
  516. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +0 -2
  517. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +0 -2
  518. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +0 -2
  519. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +0 -2
  520. package/dist/chunks/cli-0.5.13-7je48sax.mjs +0 -15
  521. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +0 -2
  522. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +0 -2
  523. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +0 -2
  524. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +0 -2
  525. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +0 -8
  526. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +0 -2
  527. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +0 -3
  528. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +0 -6
  529. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +0 -2
  530. package/dist/chunks/cli-0.5.13-adphma77.mjs +0 -2
  531. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +0 -2
  532. package/dist/chunks/cli-0.5.13-athb0q85.mjs +0 -2
  533. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +0 -4
  534. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +0 -2
  535. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +0 -1
  536. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +0 -2
  537. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +0 -2
  538. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +0 -3
  539. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +0 -2
  540. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +0 -4
  541. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +0 -2
  542. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +0 -4
  543. package/dist/chunks/cli-0.5.13-cnzars85.mjs +0 -5
  544. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +0 -2
  545. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +0 -39
  546. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +0 -2
  547. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +0 -24
  548. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +0 -2
  549. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +0 -2
  550. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +0 -2
  551. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +0 -15
  552. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +0 -2
  553. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +0 -24
  554. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +0 -2
  555. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +0 -2
  556. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +0 -34
  557. package/dist/chunks/cli-0.5.13-epjykaww.mjs +0 -17
  558. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +0 -10
  559. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +0 -2
  560. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +0 -2
  561. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +0 -4
  562. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +0 -3
  563. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +0 -2
  564. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +0 -2
  565. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +0 -2
  566. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +0 -2
  567. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +0 -2
  568. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +0 -2
  569. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +0 -2
  570. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +0 -15
  571. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +0 -12
  572. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +0 -12
  573. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +0 -9
  574. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +0 -17
  575. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +0 -2
  576. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +0 -25
  577. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +0 -4
  578. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +0 -2
  579. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +0 -2
  580. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +0 -2
  581. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +0 -2
  582. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +0 -2
  583. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +0 -3
  584. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +0 -2
  585. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +0 -2
  586. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +0 -2
  587. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +0 -2
  588. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +0 -9
  589. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +0 -2
  590. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +0 -2
  591. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +0 -2
  592. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +0 -6
  593. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +0 -2
  594. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +0 -2
  595. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +0 -2
  596. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +0 -2
  597. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +0 -2
  598. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +0 -2
  599. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +0 -2
  600. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +0 -133
  601. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +0 -16
  602. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +0 -2
  603. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +0 -193
  604. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +0 -2
  605. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +0 -2
  606. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +0 -2
  607. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +0 -2
  608. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +0 -18
  609. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +0 -2
  610. package/dist/chunks/cli-0.5.13-qrn019we.mjs +0 -2
  611. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +0 -2
  612. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +0 -3
  613. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +0 -2
  614. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +0 -2
  615. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +0 -2
  616. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +0 -2
  617. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +0 -2
  618. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +0 -2
  619. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +0 -58
  620. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +0 -2
  621. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +0 -2
  622. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +0 -2
  623. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +0 -2
  624. package/dist/chunks/cli-0.5.13-s719y89z.mjs +0 -2
  625. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +0 -4
  626. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +0 -42
  627. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +0 -3
  628. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +0 -2
  629. package/dist/chunks/cli-0.5.13-teedketa.mjs +0 -2
  630. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +0 -3
  631. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +0 -21
  632. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +0 -2
  633. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +0 -59
  634. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +0 -2
  635. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +0 -2
  636. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +0 -2
  637. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +0 -2
  638. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +0 -3
  639. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +0 -2
  640. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +0 -2
  641. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +0 -3
  642. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +0 -2
  643. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +0 -5
  644. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +0 -2
  645. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +0 -2
  646. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +0 -2
  647. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +0 -2
  648. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +0 -2
  649. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +0 -2
  650. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +0 -2
  651. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +0 -5
  652. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +0 -7
  653. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +0 -2
  654. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +0 -2
  655. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +0 -2
  656. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +0 -2
  657. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +0 -2
  658. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +0 -67
  659. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +0 -20
  660. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +0 -2
  661. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +0 -12
  662. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +0 -2
  663. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +0 -4
  664. package/dist/chunks/cli-0.5.13-z0f17269.mjs +0 -2
  665. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +0 -2
  666. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +0 -3
  667. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +0 -4
  668. package/dist/chunks/cli-0.5.13-zms1a287.mjs +0 -50
  669. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +0 -133
  670. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +0 -1
  671. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +0 -1
  672. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +0 -3
  673. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +0 -1
  674. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +0 -1
  675. package/dist/chunks/context-0.5.13-zffaf66t.mjs +0 -1
  676. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +0 -1
  677. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +0 -1
  678. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +0 -9
  679. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +0 -1
  680. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +0 -1
  681. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +0 -1
  682. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +0 -1
  683. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +0 -1177
  684. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +0 -1
  685. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +0 -1
  686. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +0 -1
  687. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +0 -1
  688. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +0 -1
  689. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +0 -1
  690. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +0 -1
  691. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +0 -10
  692. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +0 -1
  693. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +0 -1
  694. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +0 -1
  695. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +0 -1
  696. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +0 -1
  697. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +0 -1
  698. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +0 -2
  699. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +0 -1
  700. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +0 -1
  701. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +0 -1
  702. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +0 -14
  703. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +0 -1
  704. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +0 -1
  705. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +0 -1
  706. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +0 -1
  707. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +0 -1
  708. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +0 -2
  709. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +0 -6
  710. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +0 -1
  711. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +0 -3
  712. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +0 -1
  713. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +0 -79
  714. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +0 -3
  715. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +0 -1
  716. package/dist/chunks/index-0.5.13-06mj6naw.mjs +0 -1
  717. package/dist/chunks/index-0.5.13-12hemzfc.mjs +0 -1
  718. package/dist/chunks/index-0.5.13-4559xg8z.mjs +0 -17
  719. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +0 -9
  720. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +0 -1
  721. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +0 -1
  722. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +0 -1
  723. package/dist/chunks/index-0.5.13-9zz559q7.mjs +0 -1
  724. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +0 -1
  725. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +0 -2
  726. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +0 -1
  727. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +0 -30
  728. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +0 -1
  729. package/dist/chunks/index-0.5.13-fertw6vb.mjs +0 -1
  730. package/dist/chunks/index-0.5.13-jwf634zt.mjs +0 -1
  731. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +0 -5
  732. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +0 -1
  733. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +0 -9
  734. package/dist/chunks/index-0.5.13-qq60ettc.mjs +0 -1
  735. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +0 -2
  736. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +0 -1
  737. package/dist/chunks/index-0.5.13-zhze2z09.mjs +0 -1
  738. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +0 -1
  739. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +0 -1
  740. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +0 -1
  741. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +0 -870
  742. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +0 -1
  743. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +0 -149
  744. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +0 -1
  745. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +0 -1
  746. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +0 -1
  747. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +0 -2
  748. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +0 -2
  749. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +0 -1
  750. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +0 -1
  751. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +0 -1
  752. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +0 -1
  753. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +0 -1
  754. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +0 -1
  755. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +0 -1
  756. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +0 -4
  757. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +0 -17
  758. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +0 -1
  759. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +0 -1
  760. package/dist/chunks/memory-0.5.13-exfd915f.mjs +0 -3
  761. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +0 -2
  762. package/dist/chunks/model-0.5.13-02rcx381.mjs +0 -1
  763. package/dist/chunks/model-0.5.13-nn224m13.mjs +0 -2
  764. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +0 -12
  765. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +0 -1
  766. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +0 -14
  767. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +0 -1
  768. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +0 -1
  769. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +0 -1
  770. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +0 -1
  771. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +0 -1
  772. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +0 -3
  773. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +0 -1
  774. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +0 -1
  775. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +0 -29
  776. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +0 -1
  777. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +0 -9
  778. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +0 -2
  779. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +0 -57
  780. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +0 -1
  781. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +0 -1
  782. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +0 -1
  783. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +0 -9
  784. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +0 -1
  785. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +0 -1
  786. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +0 -1
  787. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +0 -13
  788. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +0 -2
  789. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +0 -1
  790. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +0 -6
  791. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +0 -1
  792. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +0 -34
  793. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +0 -1
  794. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +0 -5
  795. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +0 -2
  796. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +0 -1
  797. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +0 -1
  798. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +0 -1
  799. package/dist/chunks/rename-0.5.13-c388bb34.mjs +0 -1
  800. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +0 -1
  801. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +0 -1
  802. package/dist/chunks/resume-0.5.13-zwms595g.mjs +0 -2
  803. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +0 -1
  804. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +0 -1
  805. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +0 -1
  806. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +0 -1
  807. package/dist/chunks/session-0.5.13-ef059m1s.mjs +0 -2
  808. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +0 -1
  809. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +0 -1
  810. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +0 -1
  811. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +0 -1
  812. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +0 -5
  813. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +0 -1
  814. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +0 -1
  815. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +0 -1
  816. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +0 -1
  817. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +0 -1
  818. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +0 -6
  819. package/dist/chunks/status-0.5.13-043z2z1k.mjs +0 -1
  820. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +0 -1
  821. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +0 -1
  822. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +0 -1
  823. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +0 -1
  824. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +0 -1
  825. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +0 -1
  826. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +0 -1
  827. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +0 -1
  828. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +0 -1
  829. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +0 -1
  830. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +0 -1
  831. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +0 -1
  832. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +0 -1
  833. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +0 -1
  834. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +0 -69
  835. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +0 -4
  836. package/dist/chunks/update-0.5.13-r5daertf.mjs +0 -86
  837. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +0 -1
  838. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +0 -14
  839. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +0 -1
  840. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +0 -1
  841. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +0 -1
  842. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +0 -1
  843. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +0 -1
  844. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +0 -1
  845. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +0 -132
  846. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +0 -1
  847. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +0 -1
  848. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +0 -7
  849. /package/dist/chunks/{cli-0.5.13-c4q1pthh.mjs → cli-0.5.14-0603yw8e.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.5.13-07hv5jdz.mjs → cli-0.5.14-erhk4f70.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.5.13-epw9z05w.mjs → cli-0.5.14-jayg77dr.mjs} +0 -0
@@ -0,0 +1,18 @@
1
+ import{qoa as A2,roa as l5,soa as b$,toa as e4,uoa as v$}from"./cli-0.5.14-z55jz0h2.mjs";import{Koa as y4,Moa as a0,Noa as f2,Ooa as C,Poa as s0}from"./cli-0.5.14-hanfd2pz.mjs";function f0($,Y){return function(){return $.apply(Y,arguments)}}var j4=()=>{};function E0($){return $!==null&&!H0($)&&$.constructor!==null&&!H0($.constructor)&&t($.constructor.isBuffer)&&$.constructor.isBuffer($)}function A6($){let Y;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Y=ArrayBuffer.isView($);else Y=$&&$.buffer&&R1($.buffer);return Y}function u6(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function g0($,Y,{allOwnKeys:Q=!1}={}){if($===null||typeof $>"u")return;let G,W;if(typeof $!=="object")$=[$];if(w0($))for(G=0,W=$.length;G<W;G++)Y.call(null,$[G],G,$);else{if(E0($))return;let Z=Q?Object.getOwnPropertyNames($):Object.keys($),X=Z.length,K;for(G=0;G<X;G++)K=Z[G],Y.call(null,$[K],K,$)}}function O1($,Y){if(E0($))return null;Y=Y.toLowerCase();let Q=Object.keys($),G=Q.length,W;while(G-- >0)if(W=Q[G],Y===W.toLowerCase())return W;return null}function k4(...$){let{caseless:Y,skipUndefined:Q}=H1(this)&&this||{},G={},W=(Z,X)=>{if(X==="__proto__"||X==="constructor"||X==="prototype")return;let K=Y&&typeof X==="string"&&O1(G,X)||X,M=x4(G,K)?G[K]:void 0;if(M4(M)&&M4(Z))G[K]=k4(M,Z);else if(M4(Z))G[K]=k4({},Z);else if(w0(Z))G[K]=Z.slice();else if(!Q||!H0(Z))G[K]=Z};for(let Z=0,X=$.length;Z<X;Z++){let K=$[Z];if(!K||E0(K))continue;if(g0(K,W),typeof K!=="object"||w0(K))continue;let M=Object.getOwnPropertySymbols(K);for(let z=0;z<M.length;z++){let N=M[z];if(X2.call(K,N))W(K[N],N)}}return G}function B2($){return!!($&&t($.append)&&$[C1]==="FormData"&&$[z4])}var E6,N4,z4,C1,B4,Q0=($)=>{return $=$.toLowerCase(),(Y)=>B4(Y)===$},V4=($)=>(Y)=>typeof Y===$,w0,H0,R1,j6,t,T1,h0=($)=>$!==null&&typeof $==="object",k6=($)=>$===!0||$===!1,M4=($)=>{if(B4($)!=="object")return!1;let Y=N4($);return(Y===null||Y===Object.prototype||Object.getPrototypeOf(Y)===null)&&!(C1 in $)&&!(z4 in $)},x6=($)=>{if(!h0($)||E0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(Y){return!1}},b6,v6,y6=($)=>{return!!($&&typeof $.uri<"u")},m6=($)=>$&&typeof $.getParts<"u",f6,h6,g6=($)=>h0($)&&t($.pipe),_1,q1,d6=($)=>{if(!$)return!1;if(q1&&$ instanceof q1)return!0;let Y=N4($);if(!Y||Y===Object.prototype)return!1;if(!t($.append))return!1;let Q=B4($);return Q==="formdata"||Q==="object"&&t($.toString)&&$.toString()==="[object FormData]"},c6,p6,l6,i6,n6,a6=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},U0,H1=($)=>!H0($)&&$!==U0,t6=($,Y,Q,{allOwnKeys:G}={})=>{return g0(Y,(W,Z)=>{if(Q&&t(W))Object.defineProperty($,Z,{__proto__:null,value:f0(W,Q),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,Z,{__proto__:null,value:W,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:G}),$},s6=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},r6=($,Y,Q,G)=>{$.prototype=Object.create(Y.prototype,G),Object.defineProperty($.prototype,"constructor",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{__proto__:null,value:Y.prototype}),Q&&Object.assign($.prototype,Q)},o6=($,Y,Q,G)=>{let W,Z,X,K={};if(Y=Y||{},$==null)return Y;do{W=Object.getOwnPropertyNames($),Z=W.length;while(Z-- >0)if(X=W[Z],(!G||G(X,$,Y))&&!K[X])Y[X]=$[X],K[X]=!0;$=Q!==!1&&N4($)}while($&&(!Q||Q($,Y))&&$!==Object.prototype);return Y},e6=($,Y,Q)=>{if($=String($),Q===void 0||Q>$.length)Q=$.length;Q-=Y.length;let G=$.indexOf(Y,Q);return G!==-1&&G===Q},$2=($)=>{if(!$)return null;if(w0($))return $;let Y=$.length;if(!T1(Y))return null;let Q=Array(Y);while(Y-- >0)Q[Y]=$[Y];return Q},Y2,Q2=($,Y)=>{let G=($&&$[z4]).call($),W;while((W=G.next())&&!W.done){let Z=W.value;Y.call($,Z[0],Z[1])}},G2=($,Y)=>{let Q,G=[];while((Q=$.exec(Y))!==null)G.push(Q);return G},W2,Z2=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Q,G,W){return G.toUpperCase()+W})},x4,X2,J2,E1=($,Y)=>{let Q=Object.getOwnPropertyDescriptors($),G={};g0(Q,(W,Z)=>{let X;if((X=Y(W,Z,$))!==!1)G[Z]=X||W}),Object.defineProperties($,G)},K2=($)=>{E1($,(Y,Q)=>{if(t($)&&["arguments","caller","callee"].includes(Q))return!1;let G=$[Q];if(!t(G))return;if(Y.enumerable=!1,"writable"in Y){Y.writable=!1;return}if(!Y.set)Y.set=()=>{throw Error("Can not rewrite read-only method '"+Q+"'")}})},M2=($,Y)=>{let Q={},G=(W)=>{W.forEach((Z)=>{Q[Z]=!0})};return w0($)?G($):G(String($).split(Y)),Q},N2=()=>{},z2=($,Y)=>{return $!=null&&Number.isFinite($=+$)?$:Y},V2=($)=>{let Y=new WeakSet,Q=(G)=>{if(h0(G)){if(Y.has(G))return;if(E0(G))return G;if(!("toJSON"in G)){Y.add(G);let W=w0(G)?[]:{};return g0(G,(Z,X)=>{let K=Q(Z);!H0(K)&&(W[X]=K)}),Y.delete(G),W}}return G};return Q($)},I2,F2=($)=>$&&(h0($)||t($))&&t($.then)&&t($.catch),A1,L2,U2=($)=>$!=null&&t($[z4]),J;var j=C(()=>{j4();({toString:E6}=Object.prototype),{getPrototypeOf:N4}=Object,{iterator:z4,toStringTag:C1}=Symbol,B4=(($)=>(Y)=>{let Q=E6.call(Y);return $[Q]||($[Q]=Q.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:w0}=Array,H0=V4("undefined");R1=Q0("ArrayBuffer");j6=V4("string"),t=V4("function"),T1=V4("number"),b6=Q0("Date"),v6=Q0("File"),f6=Q0("Blob"),h6=Q0("FileList");_1=u6(),q1=typeof _1.FormData<"u"?_1.FormData:void 0,c6=Q0("URLSearchParams"),[p6,l6,i6,n6]=["ReadableStream","Request","Response","Headers"].map(Q0);U0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();Y2=(($)=>{return(Y)=>{return $&&Y instanceof $}})(typeof Uint8Array<"u"&&N4(Uint8Array)),W2=Q0("HTMLFormElement"),x4=(({hasOwnProperty:$})=>(Y,Q)=>$.call(Y,Q))(Object.prototype),{propertyIsEnumerable:X2}=Object.prototype,J2=Q0("RegExp");I2=Q0("AsyncFunction"),A1=(($,Y)=>{if($)return setImmediate;return Y?((Q,G)=>{return U0.addEventListener("message",({source:W,data:Z})=>{if(W===U0&&Z===Q)G.length&&G.shift()()},!1),(W)=>{G.push(W),U0.postMessage(Q,"*")}})(`axios@${Math.random()}`,[]):(Q)=>setTimeout(Q)})(typeof setImmediate==="function",t(U0.postMessage)),L2=typeof queueMicrotask<"u"?queueMicrotask.bind(U0):typeof process<"u"&&process.nextTick||A1,J={isArray:w0,isArrayBuffer:R1,isBuffer:E0,isFormData:d6,isArrayBufferView:A6,isString:j6,isNumber:T1,isBoolean:k6,isObject:h0,isPlainObject:M4,isEmptyObject:x6,isReadableStream:p6,isRequest:l6,isResponse:i6,isHeaders:n6,isUndefined:H0,isDate:b6,isFile:v6,isReactNativeBlob:y6,isReactNative:m6,isBlob:f6,isRegExp:J2,isFunction:t,isStream:g6,isURLSearchParams:c6,isTypedArray:Y2,isFileList:h6,forEach:g0,merge:k4,extend:t6,trim:a6,stripBOM:s6,inherits:r6,toFlatObject:o6,kindOf:B4,kindOfTest:Q0,endsWith:e6,toArray:$2,forEachEntry:Q2,matchAll:G2,isHTMLForm:W2,hasOwnProperty:x4,hasOwnProp:x4,reduceDescriptors:E1,freezeMethods:K2,toObjectSet:M2,toCamelCase:Z2,noop:N2,toFiniteNumber:z2,findKey:O1,global:U0,isContextDefined:H1,isSpecCompliantForm:B2,toJSONObject:V2,isAsyncFn:I2,isThenable:F2,setImmediate:A1,asap:L2,isIterable:U2}});var w2,j1=($)=>{let Y={},Q,G,W;return $&&$.split(`
2
+ `).forEach(function(X){if(W=X.indexOf(":"),Q=X.substring(0,W).trim().toLowerCase(),G=X.substring(W+1).trim(),!Q||Y[Q]&&w2[Q])return;if(Q==="set-cookie")if(Y[Q])Y[Q].push(G);else Y[Q]=[G];else Y[Q]=Y[Q]?Y[Q]+", "+G:G}),Y};var k1=C(()=>{j();w2=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"])});function S2($){let Y=0,Q=$.length;while(Y<Q){let G=$.charCodeAt(Y);if(G!==9&&G!==32)break;Y+=1}while(Q>Y){let G=$.charCodeAt(Q-1);if(G!==9&&G!==32)break;Q-=1}return Y===0&&Q===$.length?$:$.slice(Y,Q)}function b4($,Y){if(J.isArray($))return $.map((Q)=>b4(Q,Y));return S2(String($).replace(Y,""))}function A0($){let Y=Object.create(null);return J.forEach($.toJSON(),(Q,G)=>{Y[G]=_2(Q)}),Y}var D2,P2,x1=($)=>b4($,D2),_2=($)=>b4($,P2);var u0=C(()=>{j();D2=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),P2=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g")});function d0($){return $&&String($).trim().toLowerCase()}function I4($){if($===!1||$==null)return $;return J.isArray($)?$.map(I4):x1(String($))}function q2($){let Y=Object.create(null),Q=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,G;while(G=Q.exec($))Y[G[1]]=G[2];return Y}function v4($,Y,Q,G,W){if(J.isFunction(G))return G.call(this,Y,Q);if(W)Y=Q;if(!J.isString(Y))return;if(J.isString(G))return Y.indexOf(G)!==-1;if(J.isRegExp(G))return G.test(Y)}function R2($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Y,Q,G)=>{return Q.toUpperCase()+G})}function T2($,Y){let Q=J.toCamelCase(" "+Y);["get","set","has"].forEach((G)=>{Object.defineProperty($,G+Q,{__proto__:null,value:function(W,Z,X){return this[G].call(this,Y,W,Z,X)},configurable:!0})})}var b1,C2=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim()),c0,x;var G0=C(()=>{j();k1();u0();b1=Symbol("internals");c0=class c0{constructor($){$&&this.set($)}set($,Y,Q){let G=this;function W(X,K,M){let z=d0(K);if(!z)return;let N=J.findKey(G,z);if(!N||G[N]===void 0||M===!0||M===void 0&&G[N]!==!1)G[N||K]=I4(X)}let Z=(X,K)=>J.forEach(X,(M,z)=>W(M,z,K));if(J.isPlainObject($)||$ instanceof this.constructor)Z($,Y);else if(J.isString($)&&($=$.trim())&&!C2($))Z(j1($),Y);else if(J.isObject($)&&J.isIterable($)){let X={},K,M;for(let z of $){if(!J.isArray(z))throw TypeError("Object iterator must return a key-value pair");X[M=z[0]]=(K=X[M])?J.isArray(K)?[...K,z[1]]:[K,z[1]]:z[1]}Z(X,Y)}else $!=null&&W(Y,$,Q);return this}get($,Y){if($=d0($),$){let Q=J.findKey(this,$);if(Q){let G=this[Q];if(!Y)return G;if(Y===!0)return q2(G);if(J.isFunction(Y))return Y.call(this,G,Q);if(J.isRegExp(Y))return Y.exec(G);throw TypeError("parser must be boolean|regexp|function")}}}has($,Y){if($=d0($),$){let Q=J.findKey(this,$);return!!(Q&&this[Q]!==void 0&&(!Y||v4(this,this[Q],Q,Y)))}return!1}delete($,Y){let Q=this,G=!1;function W(Z){if(Z=d0(Z),Z){let X=J.findKey(Q,Z);if(X&&(!Y||v4(Q,Q[X],X,Y)))delete Q[X],G=!0}}if(J.isArray($))$.forEach(W);else W($);return G}clear($){let Y=Object.keys(this),Q=Y.length,G=!1;while(Q--){let W=Y[Q];if(!$||v4(this,this[W],W,$,!0))delete this[W],G=!0}return G}normalize($){let Y=this,Q={};return J.forEach(this,(G,W)=>{let Z=J.findKey(Q,W);if(Z){Y[Z]=I4(G),delete Y[W];return}let X=$?R2(W):String(W).trim();if(X!==W)delete Y[W];Y[X]=I4(G),Q[X]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let Y=Object.create(null);return J.forEach(this,(Q,G)=>{Q!=null&&Q!==!1&&(Y[G]=$&&J.isArray(Q)?Q.join(", "):Q)}),Y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,Y])=>$+": "+Y).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...Y){let Q=new this($);return Y.forEach((G)=>Q.set(G)),Q}static accessor($){let Q=(this[b1]=this[b1]={accessors:{}}).accessors,G=this.prototype;function W(Z){let X=d0(Z);if(!Q[X])T2(G,Z),Q[X]=!0}return J.isArray($)?$.forEach(W):W($),this}};c0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(c0.prototype,({value:$},Y)=>{let Q=Y[0].toUpperCase()+Y.slice(1);return{get:()=>$,set(G){this[Q]=G}}});J.freezeMethods(c0);x=c0});function H2($){if(J.hasOwnProp($,"toJSON"))return!0;let Y=Object.getPrototypeOf($);while(Y&&Y!==Object.prototype){if(J.hasOwnProp(Y,"toJSON"))return!0;Y=Object.getPrototypeOf(Y)}return!1}function E2($,Y){let Q=new Set(Y.map((Z)=>String(Z).toLowerCase())),G=[],W=(Z)=>{if(Z===null||typeof Z!=="object")return Z;if(J.isBuffer(Z))return Z;if(G.indexOf(Z)!==-1)return;if(Z instanceof x)Z=Z.toJSON();G.push(Z);let X;if(J.isArray(Z))X=[],Z.forEach((K,M)=>{let z=W(K);if(!J.isUndefined(z))X[M]=z});else{if(!J.isPlainObject(Z)&&H2(Z))return G.pop(),Z;X=Object.create(null);for(let[K,M]of Object.entries(Z)){let z=Q.has(K.toLowerCase())?O2:W(M);if(!J.isUndefined(z))X[K]=z}}return G.pop(),X};return W($)}var O2="[REDACTED ****]",u,V;var r=C(()=>{j();G0();u=class u extends Error{static from($,Y,Q,G,W,Z){let X=new u($.message,Y||$.code,Q,G,W);if(X.cause=$,X.name=$.name,$.status!=null&&X.status==null)X.status=$.status;return Z&&Object.assign(X,Z),X}constructor($,Y,Q,G,W){super($);if(Object.defineProperty(this,"message",{__proto__:null,value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Y&&(this.code=Y),Q&&(this.config=Q),G&&(this.request=G),W)this.response=W,this.status=W.status}toJSON(){let $=this.config,Y=$&&J.hasOwnProp($,"redact")?$.redact:void 0,Q=J.isArray(Y)&&Y.length>0?E2($,Y):J.toJSONObject($);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q,code:this.code,status:this.status}}};u.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";u.ERR_BAD_OPTION="ERR_BAD_OPTION";u.ECONNABORTED="ECONNABORTED";u.ETIMEDOUT="ETIMEDOUT";u.ECONNREFUSED="ECONNREFUSED";u.ERR_NETWORK="ERR_NETWORK";u.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";u.ERR_DEPRECATED="ERR_DEPRECATED";u.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";u.ERR_BAD_REQUEST="ERR_BAD_REQUEST";u.ERR_CANCELED="ERR_CANCELED";u.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";u.ERR_INVALID_URL="ERR_INVALID_URL";u.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";V=u});var v1,F4;var m4=C(()=>{v1=y4(A2(),1),F4=v1.default});function h4($){return J.isPlainObject($)||J.isArray($)}function y1($){return J.endsWith($,"[]")?$.slice(0,-2):$}function f4($,Y,Q){if(!$)return Y;return $.concat(Y).map(function(W,Z){return W=y1(W),!Q&&Z?"["+W+"]":W}).join(Q?".":"")}function j2($){return J.isArray($)&&!$.some(h4)}function x2($,Y,Q){if(!J.isObject($))throw TypeError("target must be an object");Y=Y||new(F4||FormData),Q=J.toFlatObject(Q,{metaTokens:!0,dots:!1,indexes:!1},!1,function(L,w){return!J.isUndefined(w[L])});let G=Q.metaTokens,W=Q.visitor||I,Z=Q.dots,X=Q.indexes,K=Q.Blob||typeof Blob<"u"&&Blob,M=Q.maxDepth===void 0?100:Q.maxDepth,z=K&&J.isSpecCompliantForm(Y);if(!J.isFunction(W))throw TypeError("visitor must be a function");function N(U){if(U===null)return"";if(J.isDate(U))return U.toISOString();if(J.isBoolean(U))return U.toString();if(!z&&J.isBlob(U))throw new V("Blob is not supported. Use a Buffer instead.");if(J.isArrayBuffer(U)||J.isTypedArray(U))return z&&typeof Blob==="function"?new Blob([U]):Buffer.from(U);return U}function I(U,L,w){let _=U;if(J.isReactNative(Y)&&J.isReactNativeBlob(U))return Y.append(f4(w,L,Z),N(U)),!1;if(U&&!w&&typeof U==="object"){if(J.endsWith(L,"{}"))L=G?L:L.slice(0,-2),U=JSON.stringify(U);else if(J.isArray(U)&&j2(U)||(J.isFileList(U)||J.endsWith(L,"[]"))&&(_=J.toArray(U)))return L=y1(L),_.forEach(function(O,f){!(J.isUndefined(O)||O===null)&&Y.append(X===!0?f4([L],f,Z):X===null?L:L+"[]",N(O))}),!1}if(h4(U))return!0;return Y.append(f4(w,L,Z),N(U)),!1}let B=[],F=Object.assign(k2,{defaultVisitor:I,convertValue:N,isVisitable:h4});function D(U,L,w=0){if(J.isUndefined(U))return;if(w>M)throw new V("Object is too deeply nested ("+w+" levels). Max depth: "+M,V.ERR_FORM_DATA_DEPTH_EXCEEDED);if(B.indexOf(U)!==-1)throw Error("Circular reference detected in "+L.join("."));B.push(U),J.forEach(U,function(R,O){if((!(J.isUndefined(R)||R===null)&&W.call(Y,R,J.isString(O)?O.trim():O,L,F))===!0)D(R,L?L.concat(O):[O],w+1)}),B.pop()}if(!J.isObject($))throw TypeError("data must be an object");return D($),Y}var k2,I0;var p0=C(()=>{j();r();m4();k2=J.toFlatObject(J,{},null,function(Y){return/^is[A-Z]/.test(Y)});I0=x2});function m1($){let Y={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent($).replace(/[!'()~]|%20/g,function(G){return Y[G]})}function f1($,Y){this._pairs=[],$&&I0($,this,Y)}var h1,g1;var u1=C(()=>{p0();h1=f1.prototype;h1.append=function(Y,Q){this._pairs.push([Y,Q])};h1.toString=function(Y){let Q=Y?function(G){return Y.call(this,G,m1)}:m1;return this._pairs.map(function(W){return Q(W[0])+"="+Q(W[1])},"").join("&")};g1=f1});function b2($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function S0($,Y,Q){if(!Y)return $;let G=Q&&Q.encode||b2,W=J.isFunction(Q)?{serialize:Q}:Q,Z=W&&W.serialize,X;if(Z)X=Z(Y,W);else X=J.isURLSearchParams(Y)?Y.toString():new g1(Y,W).toString(G);if(X){let K=$.indexOf("#");if(K!==-1)$=$.slice(0,K);$+=($.indexOf("?")===-1?"?":"&")+X}return $}var L4=C(()=>{j();u1()});class d1{constructor(){this.handlers=[]}use($,Y,Q){return this.handlers.push({fulfilled:$,rejected:Y,synchronous:Q?Q.synchronous:!1,runWhen:Q?Q.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){J.forEach(this.handlers,function(Q){if(Q!==null)$(Q)})}}var g4;var c1=C(()=>{j();g4=d1});var F0;var l0=C(()=>{F0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1}});import v2 from"url";var p1;var l1=C(()=>{p1=v2.URLSearchParams});import y2 from"crypto";var u4="abcdefghijklmnopqrstuvwxyz",i1="0123456789",n1,m2=($=16,Y=n1.ALPHA_DIGIT)=>{let Q="",{length:G}=Y,W=new Uint32Array($);y2.randomFillSync(W);for(let Z=0;Z<$;Z++)Q+=Y[W[Z]%G];return Q},a1;var t1=C(()=>{l1();m4();n1={DIGIT:i1,ALPHA:u4,ALPHA_DIGIT:u4+u4.toUpperCase()+i1},a1={isNode:!0,classes:{URLSearchParams:p1,FormData:F4,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:n1,generateString:m2,protocols:["http","https","file","data"]}});var p4={};f2(p4,{origin:()=>u2,navigator:()=>d4,hasStandardBrowserWebWorkerEnv:()=>g2,hasStandardBrowserEnv:()=>h2,hasBrowserEnv:()=>c4});var c4,d4,h2,g2,u2;var s1=C(()=>{c4=typeof window<"u"&&typeof document<"u",d4=typeof navigator==="object"&&navigator||void 0,h2=c4&&(!d4||["ReactNative","NativeScript","NS"].indexOf(d4.product)<0),g2=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),u2=c4&&window.location.href||"http://localhost"});var H;var W0=C(()=>{t1();s1();H={...p4,...a1}});function l4($,Y){return I0($,new H.classes.URLSearchParams,{visitor:function(Q,G,W,Z){if(H.isNode&&J.isBuffer(Q))return this.append(G,Q.toString("base64")),!1;return Z.defaultVisitor.apply(this,arguments)},...Y})}var r1=C(()=>{j();p0();W0()});function d2($){return J.matchAll(/\w+|\[(\w*)]/g,$).map((Y)=>{return Y[0]==="[]"?"":Y[1]||Y[0]})}function c2($){let Y={},Q=Object.keys($),G,W=Q.length,Z;for(G=0;G<W;G++)Z=Q[G],Y[Z]=$[Z];return Y}function p2($){function Y(Q,G,W,Z){let X=Q[Z++];if(X==="__proto__")return!0;let K=Number.isFinite(+X),M=Z>=Q.length;if(X=!X&&J.isArray(W)?W.length:X,M){if(J.hasOwnProp(W,X))W[X]=J.isArray(W[X])?W[X].concat(G):[W[X],G];else W[X]=G;return!K}if(!J.hasOwnProp(W,X)||!J.isObject(W[X]))W[X]=[];if(Y(Q,G,W[X],Z)&&J.isArray(W[X]))W[X]=c2(W[X]);return!K}if(J.isFormData($)&&J.isFunction($.entries)){let Q={};return J.forEachEntry($,(G,W)=>{Y(d2(G),W,Q,0)}),Q}return null}var U4;var i4=C(()=>{j();U4=p2});function l2($,Y,Q){if(J.isString($))try{return(Y||JSON.parse)($),J.trim($)}catch(G){if(G.name!=="SyntaxError")throw G}return(Q||JSON.stringify)($)}var j0=($,Y)=>$!=null&&J.hasOwnProp($,Y)?$[Y]:void 0,n4,k0;var w4=C(()=>{j();r();l0();p0();r1();W0();i4();n4={transitional:F0,adapter:["xhr","http","fetch"],transformRequest:[function(Y,Q){let G=Q.getContentType()||"",W=G.indexOf("application/json")>-1,Z=J.isObject(Y);if(Z&&J.isHTMLForm(Y))Y=new FormData(Y);if(J.isFormData(Y))return W?JSON.stringify(U4(Y)):Y;if(J.isArrayBuffer(Y)||J.isBuffer(Y)||J.isStream(Y)||J.isFile(Y)||J.isBlob(Y)||J.isReadableStream(Y))return Y;if(J.isArrayBufferView(Y))return Y.buffer;if(J.isURLSearchParams(Y))return Q.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Y.toString();let K;if(Z){let M=j0(this,"formSerializer");if(G.indexOf("application/x-www-form-urlencoded")>-1)return l4(Y,M).toString();if((K=J.isFileList(Y))||G.indexOf("multipart/form-data")>-1){let z=j0(this,"env"),N=z&&z.FormData;return I0(K?{"files[]":Y}:Y,N&&new N,M)}}if(Z||W)return Q.setContentType("application/json",!1),l2(Y);return Y}],transformResponse:[function(Y){let Q=j0(this,"transitional")||n4.transitional,G=Q&&Q.forcedJSONParsing,W=j0(this,"responseType"),Z=W==="json";if(J.isResponse(Y)||J.isReadableStream(Y))return Y;if(Y&&J.isString(Y)&&(G&&!W||Z)){let K=!(Q&&Q.silentJSONParsing)&&Z;try{return JSON.parse(Y,j0(this,"parseReviver"))}catch(M){if(K){if(M.name==="SyntaxError")throw V.from(M,V.ERR_BAD_RESPONSE,this,null,j0(this,"response"));throw M}}}return Y}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:H.classes.FormData,Blob:H.classes.Blob},validateStatus:function(Y){return Y>=200&&Y<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch","query"],($)=>{n4.headers[$]={}});k0=n4});function i0($,Y){let Q=this||k0,G=Y||Q,W=x.from(G.headers),Z=G.data;return J.forEach($,function(K){Z=K.call(Q,Z,W.normalize(),Y?Y.status:void 0)}),W.normalize(),Z}var o1=C(()=>{j();w4();G0()});function n0($){return!!($&&$.__CANCEL__)}var a4=()=>{};var e1,o;var D0=C(()=>{r();e1=class e1 extends V{constructor($,Y,Q){super($==null?"canceled":$,V.ERR_CANCELED,Y,Q);this.name="CanceledError",this.__CANCEL__=!0}};o=e1});function z0($,Y,Q){let G=Q.config.validateStatus;if(!Q.status||!G||G(Q.status))$(Q);else Y(new V("Request failed with status code "+Q.status,Q.status>=400&&Q.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,Q.config,Q.request,Q))}var S4=C(()=>{r()});function t4($){if(typeof $!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}var $5=()=>{};function s4($,Y){return Y?$.replace(/\/?\/$/,"")+"/"+Y.replace(/^\/+/,""):$}var Y5=()=>{};function P0($,Y,Q){let G=!t4(Y);if($&&(G||Q===!1))return s4($,Y);return Y}var D4=C(()=>{$5();Y5()});var G5=a0((Q5)=>{Object.defineProperty(Q5,"__esModule",{value:!0});function i2($){return function(Y,Q){return new Promise((G,W)=>{$.call(this,Y,Q,(Z,X)=>{if(Z)W(Z);else G(X)})})}}Q5.default=i2});var X5=a0((o4,Z5)=>{var W5=o4&&o4.__importDefault||function($){return $&&$.__esModule?$:{default:$}},a2=s0("events"),t2=W5(e4()),s2=W5(G5()),t0=t2.default("agent-base");function r2($){return Boolean($)&&typeof $.addRequest==="function"}function r4(){let{stack:$}=Error();if(typeof $!=="string")return!1;return $.split(`
4
+ `).some((Y)=>Y.indexOf("(https.js:")!==-1||Y.indexOf("node:https:")!==-1)}function P4($,Y){return new P4.Agent($,Y)}(function($){class Y extends a2.EventEmitter{constructor(Q,G){super();let W=G;if(typeof Q==="function")this.callback=Q;else if(Q)W=Q;if(this.timeout=null,W&&typeof W.timeout==="number")this.timeout=W.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return r4()?443:80}set defaultPort(Q){this.explicitDefaultPort=Q}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return r4()?"https:":"http:"}set protocol(Q){this.explicitProtocol=Q}callback(Q,G,W){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(Q,G){let W=Object.assign({},G);if(typeof W.secureEndpoint!=="boolean")W.secureEndpoint=r4();if(W.host==null)W.host="localhost";if(W.port==null)W.port=W.secureEndpoint?443:80;if(W.protocol==null)W.protocol=W.secureEndpoint?"https:":"http:";if(W.host&&W.path)delete W.path;delete W.agent,delete W.hostname,delete W._defaultAgent,delete W.defaultPort,delete W.createConnection,Q._last=!0,Q.shouldKeepAlive=!1;let Z=!1,X=null,K=W.timeout||this.timeout,M=(B)=>{if(Q._hadError)return;Q.emit("error",B),Q._hadError=!0},z=()=>{X=null,Z=!0;let B=Error(`A "socket" was not created for HTTP request before ${K}ms`);B.code="ETIMEOUT",M(B)},N=(B)=>{if(Z)return;if(X!==null)clearTimeout(X),X=null;M(B)},I=(B)=>{if(Z)return;if(X!=null)clearTimeout(X),X=null;if(r2(B)){t0("Callback returned another Agent instance %o",B.constructor.name),B.addRequest(Q,W);return}if(B){B.once("free",()=>{this.freeSocket(B,W)}),Q.onSocket(B);return}let F=Error(`no Duplex stream was returned to agent-base for \`${Q.method} ${Q.path}\``);M(F)};if(typeof this.callback!=="function"){M(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)t0("Converting legacy callback function to promise"),this.promisifiedCallback=s2.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof K==="number"&&K>0)X=setTimeout(z,K);if("port"in W&&typeof W.port!=="number")W.port=Number(W.port);try{t0("Resolving socket for %o request: %o",W.protocol,`${Q.method} ${Q.path}`),Promise.resolve(this.promisifiedCallback(Q,W)).then(I,N)}catch(B){Promise.reject(B).catch(N)}}freeSocket(Q,G){t0("Freeing socket %o %o",Q.constructor.name,G),Q.destroy()}destroy(){t0("Destroying agent %o",this.constructor.name)}}$.Agent=Y,$.prototype=$.Agent.prototype})(P4||(P4={}));Z5.exports=P4});var J5=a0((o0)=>{var o2=o0&&o0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o0,"__esModule",{value:!0});var e2=o2(e4()),r0=e2.default("https-proxy-agent:parse-proxy-response");function $$($){return new Promise((Y,Q)=>{let G=0,W=[];function Z(){let I=$.read();if(I)N(I);else $.once("readable",Z)}function X(){$.removeListener("end",M),$.removeListener("error",z),$.removeListener("close",K),$.removeListener("readable",Z)}function K(I){r0("onclose had error %o",I)}function M(){r0("onend")}function z(I){X(),r0("onerror %o",I),Q(I)}function N(I){W.push(I),G+=I.length;let B=Buffer.concat(W,G);if(B.indexOf(`\r
5
+ \r
6
+ `)===-1){r0("have not received end of HTTP headers yet..."),Z();return}let D=B.toString("ascii",0,B.indexOf(`\r
7
+ `)),U=+D.split(" ")[1];r0("got proxy server response: %o",D),Y({statusCode:U,buffered:B})}$.on("error",z),$.on("close",K),$.on("end",M),Z()})}o0.default=$$});var z5=a0((_0)=>{var Y$=_0&&_0.__awaiter||function($,Y,Q,G){function W(Z){return Z instanceof Q?Z:new Q(function(X){X(Z)})}return new(Q||(Q=Promise))(function(Z,X){function K(N){try{z(G.next(N))}catch(I){X(I)}}function M(N){try{z(G.throw(N))}catch(I){X(I)}}function z(N){N.done?Z(N.value):W(N.value).then(K,M)}z((G=G.apply($,Y||[])).next())})},x0=_0&&_0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(_0,"__esModule",{value:!0});var K5=x0(s0("net")),M5=x0(s0("tls")),Q$=x0(s0("url")),G$=x0(s0("assert")),W$=x0(e4()),Z$=X5(),X$=x0(J5()),e0=W$.default("https-proxy-agent:agent");class N5 extends Z$.Agent{constructor($){let Y;if(typeof $==="string")Y=Q$.default.parse($);else Y=$;if(!Y)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");e0("creating new HttpsProxyAgent instance: %o",Y);super(Y);let Q=Object.assign({},Y);if(this.secureProxy=Y.secureProxy||M$(Q.protocol),Q.host=Q.hostname||Q.host,typeof Q.port==="string")Q.port=parseInt(Q.port,10);if(!Q.port&&Q.host)Q.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in Q))Q.ALPNProtocols=["http 1.1"];if(Q.host&&Q.path)delete Q.path,delete Q.pathname;this.proxy=Q}callback($,Y){return Y$(this,void 0,void 0,function*(){let{proxy:Q,secureProxy:G}=this,W;if(G)e0("Creating `tls.Socket`: %o",Q),W=M5.default.connect(Q);else e0("Creating `net.Socket`: %o",Q),W=K5.default.connect(Q);let Z=Object.assign({},Q.headers),K=`CONNECT ${`${Y.host}:${Y.port}`} HTTP/1.1\r
8
+ `;if(Q.auth)Z["Proxy-Authorization"]=`Basic ${Buffer.from(Q.auth).toString("base64")}`;let{host:M,port:z,secureEndpoint:N}=Y;if(!K$(z,N))M+=`:${z}`;Z.Host=M,Z.Connection="close";for(let U of Object.keys(Z))K+=`${U}: ${Z[U]}\r
9
+ `;let I=X$.default(W);W.write(`${K}\r
10
+ `);let{statusCode:B,buffered:F}=yield I;if(B===200){if($.once("socket",J$),Y.secureEndpoint){e0("Upgrading socket connection to TLS");let U=Y.servername||Y.host;return M5.default.connect(Object.assign(Object.assign({},N$(Y,"host","hostname","path","port")),{socket:W,servername:U}))}return W}W.destroy();let D=new K5.default.Socket({writable:!1});return D.readable=!0,$.once("socket",(U)=>{e0("replaying proxy buffer for failed request"),G$.default(U.listenerCount("data")>0),U.push(F),U.push(null)}),D})}}_0.default=N5;function J$($){$.resume()}function K$($,Y){return Boolean(!Y&&$===80||Y&&$===443)}function M$($){return typeof $==="string"?/^https:?$/i.test($):!1}function N$($,...Y){let Q={},G;for(G in $)if(!Y.includes(G))Q[G]=$[G];return Q}});var V5=a0((Q1,B5)=>{var z$=Q1&&Q1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},$1=z$(z5());function Y1($){return new $1.default($)}(function($){$.HttpsProxyAgent=$1.default,$.prototype=$1.default.prototype})(Y1||(Y1={}));B5.exports=Y1});var B0="1.17.0";var $4=()=>{};function Y4($){let Y=/^([-+\w]{1,25}):(?:\/\/)?/.exec($);return Y&&Y[1]||""}var G1=()=>{};function W1($,Y,Q){let G=Q&&Q.Blob||H.classes.Blob,W=Y4($);if(Y===void 0&&G)Y=!0;if(W==="data"){$=W.length?$.slice(W.length+1):$;let Z=B$.exec($);if(!Z)throw new V("Invalid URL",V.ERR_INVALID_URL);let X=Z[1],K=Z[2],M=Z[3]?"base64":"utf8",z=Z[4],N;if(X)N=K?X+K:X;else if(K)N="text/plain"+K;let I=Buffer.from(decodeURIComponent(z),M);if(Y){if(!G)throw new V("Blob is not supported",V.ERR_NOT_SUPPORT);return new G([I],{type:N})}return I}throw new V("Unsupported protocol "+W,V.ERR_NOT_SUPPORT)}var B$;var I5=C(()=>{r();G1();W0();B$=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/});import V$ from"stream";var Z1,F5,X1;var L5=C(()=>{j();Z1=Symbol("internals");F5=class F5 extends V$.Transform{constructor($){$=J.toFlatObject($,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(Q,G)=>{return!J.isUndefined(G[Q])});super({readableHighWaterMark:$.chunkSize});let Y=this[Z1]={timeWindow:$.timeWindow,chunkSize:$.chunkSize,maxRate:$.maxRate,minChunkSize:$.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(Q)=>{if(Q==="progress"){if(!Y.isCaptured)Y.isCaptured=!0}})}_read($){let Y=this[Z1];if(Y.onReadCallback)Y.onReadCallback();return super._read($)}_transform($,Y,Q){let G=this[Z1],W=G.maxRate,Z=this.readableHighWaterMark,X=G.timeWindow,K=1000/X,M=W/K,z=G.minChunkSize!==!1?Math.max(G.minChunkSize,M*0.01):0,N=(B,F)=>{let D=Buffer.byteLength(B);if(G.bytesSeen+=D,G.bytes+=D,G.isCaptured&&this.emit("progress",G.bytesSeen),this.push(B))process.nextTick(F);else G.onReadCallback=()=>{G.onReadCallback=null,process.nextTick(F)}},I=(B,F)=>{let D=Buffer.byteLength(B),U=null,L=Z,w,_=0;if(W){let R=Date.now();if(!G.ts||(_=R-G.ts)>=X)G.ts=R,w=M-G.bytes,G.bytes=w<0?-w:0,_=0;w=M-G.bytes}if(W){if(w<=0)return setTimeout(()=>{F(null,B)},X-_);if(w<L)L=w}if(L&&D>L&&D-L>z)U=B.subarray(L),B=B.subarray(0,L);N(B,U?()=>{process.nextTick(F,null,U)}:F)};I($,function B(F,D){if(F)return Q(F);if(D)I(D,B);else Q(null)})}};X1=F5});var U5,I$=async function*($){if($.stream)yield*$.stream();else if($.arrayBuffer)yield await $.arrayBuffer();else if($[U5])yield*$[U5]();else yield $},_4;var J1=C(()=>{({asyncIterator:U5}=Symbol),_4=I$});import F$ from"util";import{Readable as L$}from"stream";class w5{constructor($,Y){let{escapeName:Q}=this.constructor,G=J.isString(Y),W=`Content-Disposition: form-data; name="${Q($)}"${!G&&Y.name?`; filename="${Q(Y.name)}"`:""}${q0}`;if(G)Y=Q4.encode(String(Y).replace(/\r?\n|\r\n?/g,q0));else{let Z=String(Y.type||"application/octet-stream").replace(/[\r\n]/g,"");W+=`Content-Type: ${Z}${q0}`}this.headers=Q4.encode(W+q0),this.contentLength=G?Y.byteLength:Y.size,this.size=this.headers.byteLength+this.contentLength+S$,this.name=$,this.value=Y}async*encode(){yield this.headers;let{value:$}=this;if(J.isTypedArray($))yield $;else yield*_4($);yield w$}static escapeName($){return String($).replace(/[\r\n"]/g,(Y)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Y])}}var U$,Q4,q0=`\r
11
+ `,w$,S$=2,D$=($,Y,Q)=>{let{tag:G="form-data-boundary",size:W=25,boundary:Z=G+"-"+H.generateString(W,U$)}=Q||{};if(!J.isFormData($))throw TypeError("FormData instance required");if(Z.length<1||Z.length>70)throw Error("boundary must be 1-70 characters long");let X=Q4.encode("--"+Z+q0),K=Q4.encode("--"+Z+"--"+q0),M=K.byteLength,z=Array.from($.entries()).map(([I,B])=>{let F=new w5(I,B);return M+=F.size,F});M+=X.byteLength*z.length,M=J.toFiniteNumber(M);let N={"Content-Type":`multipart/form-data; boundary=${Z}`};if(Number.isFinite(M))N["Content-Length"]=M;return Y&&Y(N),L$.from(async function*(){for(let I of z)yield X,yield*I.encode();yield K}())},S5;var D5=C(()=>{j();J1();W0();U$=H.ALPHABET.ALPHA_DIGIT+"-_",Q4=typeof TextEncoder==="function"?new TextEncoder:new F$.TextEncoder,w$=Q4.encode(q0);S5=D$});import P$ from"stream";var P5,_5;var q5=C(()=>{P5=class P5 extends P$.Transform{__transform($,Y,Q){this.push($),Q()}_transform($,Y,Q){if($.length!==0){if(this._transform=this.__transform,$[0]!==120){let G=Buffer.alloc(2);G[0]=120,G[1]=156,this.push(G,Y)}}this.__transform($,Y,Q)}};_5=P5});import _$ from"http2";import q$ from"util";class C5{constructor(){this.sessions=Object.create(null)}getSession($,Y){Y=Object.assign({sessionTimeout:1000},Y);let Q=this.sessions[$];if(Q){let N=Q.length;for(let I=0;I<N;I++){let[B,F]=Q[I];if(!B.destroyed&&!B.closed&&q$.isDeepStrictEqual(F,Y))return B}}let G=_$.connect($,Y),W,Z,X=()=>{if(W)return;if(W=!0,Z)clearTimeout(Z),Z=null;let N=Q,I=N.length,B=I;while(B--)if(N[B][0]===G){if(I===1)delete this.sessions[$];else N.splice(B,1);if(!G.closed)G.close();return}},K=G.request,{sessionTimeout:M}=Y;if(M!=null){let N=0;G.request=function(){let I=K.apply(this,arguments);if(N++,Z)clearTimeout(Z),Z=null;return I.once("close",()=>{if(!--N)Z=setTimeout(()=>{Z=null,X()},M)}),I}}G.once("close",X);let z=[G,Y];return Q?Q.push(z):Q=this.sessions[$]=[z],G}}var R5;var T5=C(()=>{R5=C5});var C$=($,Y)=>{return J.isAsyncFn($)?function(...Q){let G=Q.pop();$.apply(this,Q).then((W)=>{try{Y?G(null,...Y(W)):G(null,W)}catch(Z){G(Z)}},G)}:$},O5;var H5=C(()=>{j();O5=C$});function K1($){let Y;try{Y=new URL($)}catch(Z){return!1}let Q=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!Q)return!1;if(Q==="*")return!0;let G=Number.parseInt(Y.port,10)||O$[Y.protocol.split(":",1)[0]]||0,W=A5(Y.hostname.toLowerCase());return Q.split(/[\s,]+/).some((Z)=>{if(!Z)return!1;let[X,K]=H$(Z);if(X=A5(X),!X)return!1;if(K&&K!==G)return!1;if(X.charAt(0)==="*")X=X.slice(1);if(X.charAt(0)===".")return W.endsWith(X);return W===X||E5(W)&&E5(X)})}var R$,j5=($)=>{let Y=$.split(".");if(Y.length!==4)return!1;if(Y[0]!=="127")return!1;return Y.every((Q)=>/^\d+$/.test(Q)&&Number(Q)>=0&&Number(Q)<=255)},T$=($)=>{if($==="::1")return!0;let Y=$.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Y)return j5(Y[1]);let Q=$.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(Q){let W=parseInt(Q[1],16);return W>=32512&&W<=32767}let G=$.split(":");if(G.length===8){for(let W=0;W<7;W++)if(!/^0+$/.test(G[W]))return!1;return/^0*1$/.test(G[7])}return!1},E5=($)=>{if(!$)return!1;if(R$.has($))return!0;if(j5($))return!0;return T$($)},O$,H$=($)=>{let Y=$,Q=0;if(Y.charAt(0)==="["){let Z=Y.indexOf("]");if(Z!==-1){let X=Y.slice(1,Z),K=Y.slice(Z+1);if(K.charAt(0)===":"&&/^\d+$/.test(K.slice(1)))Q=Number.parseInt(K.slice(1),10);return[X,Q]}}let G=Y.indexOf(":"),W=Y.lastIndexOf(":");if(G!==-1&&G===W&&/^\d+$/.test(Y.slice(W+1)))Q=Number.parseInt(Y.slice(W+1),10),Y=Y.slice(0,W);return[Y,Q]},E$,A$,j$=($)=>{if(typeof $!=="string"||$.indexOf(":")===-1)return $;let Y=$.match(E$);if(Y)return Y[1];let Q=$.match(A$);if(Q){let G=parseInt(Q[1],16),W=parseInt(Q[2],16);return`${G>>8}.${G&255}.${W>>8}.${W&255}`}return $},A5=($)=>{if(!$)return $;if($.charAt(0)==="["&&$.charAt($.length-1)==="]")$=$.slice(1,-1);return j$($.replace(/\.+$/,""))};var k5=C(()=>{R$=new Set(["localhost"]),O$={http:80,https:443,ws:80,wss:443,ftp:21},E$=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,A$=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i});function k$($,Y){$=$||10;let Q=Array($),G=Array($),W=0,Z=0,X;return Y=Y!==void 0?Y:1000,function(M){let z=Date.now(),N=G[Z];if(!X)X=z;Q[W]=M,G[W]=z;let I=Z,B=0;while(I!==W)B+=Q[I++],I=I%$;if(W=(W+1)%$,W===Z)Z=(Z+1)%$;if(z-X<Y)return;let F=N&&z-N;return F?Math.round(B*1000/F):void 0}}var x5;var b5=C(()=>{x5=k$});function x$($,Y){let Q=0,G=1000/Y,W,Z,X=(z,N=Date.now())=>{if(Q=N,W=null,Z)clearTimeout(Z),Z=null;$(...z)};return[(...z)=>{let N=Date.now(),I=N-Q;if(I>=G)X(z,N);else if(W=z,!Z)Z=setTimeout(()=>{Z=null,X(W)},G-I)},()=>W&&X(W)]}var v5;var y5=C(()=>{v5=x$});var V0=($,Y,Q=3)=>{let G=0,W=x5(50,250);return v5((Z)=>{if(!Z||typeof Z.loaded!=="number")return;let X=Z.loaded,K=Z.lengthComputable?Z.total:void 0,M=K!=null?Math.min(X,K):X,z=Math.max(0,M-G),N=W(z);G=Math.max(G,M);let I={loaded:M,total:K,progress:K?M/K:void 0,bytes:z,rate:N?N:void 0,estimated:N&&K?(K-M)/N:void 0,event:Z,lengthComputable:K!=null,[Y?"download":"upload"]:!0};$(I)},Q)},b0=($,Y)=>{let Q=$!=null;return[(G)=>Y[0]({lengthComputable:Q,total:$,loaded:G}),Y[1]]},v0=($)=>(...Y)=>J.asap(()=>$(...Y));var q4=C(()=>{b5();y5();j()});function G4($){if(!$||typeof $!=="string")return 0;if(!$.startsWith("data:"))return 0;let Y=$.indexOf(",");if(Y<0)return 0;let Q=$.slice(5,Y),G=$.slice(Y+1);if(/;base64/i.test(Q)){let{length:X,length:K}=G;for(let F=0;F<K;F++)if(G.charCodeAt(F)===37&&F+2<K){let D=G.charCodeAt(F+1),U=G.charCodeAt(F+2);if((D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102)&&(U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102))X-=2,F+=2}let M=0,z=K-1,N=(F)=>F>=2&&G.charCodeAt(F-2)===37&&G.charCodeAt(F-1)===51&&(G.charCodeAt(F)===68||G.charCodeAt(F)===100);if(z>=0){if(G.charCodeAt(z)===61)M++,z--;else if(N(z))M++,z-=3}if(M===1&&z>=0){if(G.charCodeAt(z)===61)M++;else if(N(z))M++}let B=Math.floor(X/4)*3-(M||0);return B>0?B:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength==="function")return Buffer.byteLength(G,"utf8");let Z=0;for(let X=0,K=G.length;X<K;X++){let M=G.charCodeAt(X);if(M<128)Z+=1;else if(M<2048)Z+=2;else if(M>=55296&&M<=56319&&X+1<K){let z=G.charCodeAt(X+1);if(z>=56320&&z<=57343)Z+=4,X++;else Z+=3}else Z+=3}return Z}var M1=()=>{};import y$ from"http";import m$ from"https";import f$ from"http2";import h$ from"util";import{resolve as m5}from"path";import $0 from"zlib";import Z0 from"stream";import{EventEmitter as g$}from"events";function n$($,Y,Q){if(Q!=="content-only"){$.set(Y);return}Object.entries(Y).forEach(([G,W])=>{if(i$.includes(G.toLowerCase()))$.set(G,W)})}function t$($,Y){let Q=$.protocol+"//"+$.hostname+":"+($.port||"")+"#"+($.auth||""),G=Y?g5.get(Y)||g5.set(Y,new Map).get(Y):a$,W=G.get(Q);if(W)return W;let Z=Y&&Y.options?{...Y.options,...$}:$;if(W=new N1.default(Z),Y&&Y.options){let X={...Y.options},K=W.callback;W.callback=function(z,N){return K.call(this,z,{...X,...N})}}return W[r5]=!0,G.set(Q,W),W}function r$($,Y,Q){if($.beforeRedirects.proxy)$.beforeRedirects.proxy($);if($.beforeRedirects.auth)$.beforeRedirects.auth($);if($.beforeRedirects.config)$.beforeRedirects.config($,Y,Q)}function o5($,Y,Q,G,W){let Z=Y;if(!Z&&Z!==!1){let X=l5(Q);if(X){if(!K1(Q))Z=new URL(X)}}if(G&&$.headers){for(let X of Object.keys($.headers))if(X.toLowerCase()==="proxy-authorization")delete $.headers[X]}if(G&&$.agent&&$.agent[r5])$.agent=void 0;if(Z){let X=Z instanceof URL,K=(B)=>X||J.hasOwnProp(Z,B)?Z[B]:void 0,M=K("username"),z=K("password"),N=J.hasOwnProp(Z,"auth")?Z.auth:void 0;if(M)N=(M||"")+":"+(z||"");if(N){let B=typeof N==="object",F=B&&J.hasOwnProp(N,"username")?N.username:void 0,D=B&&J.hasOwnProp(N,"password")?N.password:void 0;if(Boolean(F||D))N=(F||"")+":"+(D||"");else if(B)throw new V("Invalid proxy authorization",V.ERR_BAD_OPTION,{proxy:Z})}if(s5.test($.protocol)){if(!(W instanceof N1.default)){let B=K("hostname")||K("host"),F=K("port"),D=K("protocol"),U=D?D.includes(":")?D:`${D}:`:"http:",L=B&&B.includes(":")&&!B.startsWith("[")?`[${B}]`:B,w=new URL(`${U}//${L}${F?":"+F:""}`),_={protocol:w.protocol,hostname:w.hostname.replace(/^\[|\]$/g,""),port:w.port,auth:N&&typeof N==="string"?N:void 0};if(w.protocol==="https:")_.ALPNProtocols=["http/1.1"];let R=t$(_,W);if($.agent=R,$.agents)$.agents.https=R}}else{if(N){let U=Buffer.from(N,"utf8").toString("base64");$.headers["Proxy-Authorization"]="Basic "+U}let B=!1;for(let U of Object.keys($.headers))if(U.toLowerCase()==="host"){B=!0;break}if(!B)$.headers.host=$.hostname+($.port?":"+$.port:"");let F=K("hostname")||K("host");$.hostname=F,$.host=F,$.port=K("port"),$.path=Q;let D=K("protocol");if(D)$.protocol=D.includes(":")?D:`${D}:`}}$.beforeRedirects.proxy=function(K){o5(K,Y,K.href,!0,W)}}var N1,i5,f5,u$,d$,n5,a5,t5,c$,p$,l$,s5,i$,h5,C4,r5,a$,g5,u5,d5=($)=>{if(!J.isString($))return $;try{return decodeURIComponent($)}catch(Y){return $}},c5=($,[Y,Q])=>{return $.on("end",Q).on("error",Q),Y},s$,o$,e$=($)=>{return new Promise((Y,Q)=>{let G,W,Z=(M,z)=>{if(W)return;W=!0,G&&G(M,z)},X=(M)=>{Z(M),Y(M)},K=(M)=>{Z(M,!0),Q(M)};$(X,K,(M)=>G=M).catch(K)})},$7=({address:$,family:Y})=>{if(!J.isString($))throw TypeError("address must be a string");return{address:$,family:Y||($.indexOf(".")<0?6:4)}},p5=($,Y)=>$7(J.isObject($)?$:{address:$,family:Y}),Y7,e5;var $6=C(()=>{j();S4();D4();L4();b$();$4();l0();r();D0();W0();I5();G0();L5();D5();J1();q5();T5();H5();k5();u0();q4();M1();N1=y4(V5(),1),i5=y4(v$(),1),f5={flush:$0.constants.Z_SYNC_FLUSH,finishFlush:$0.constants.Z_SYNC_FLUSH},u$={flush:$0.constants.BROTLI_OPERATION_FLUSH,finishFlush:$0.constants.BROTLI_OPERATION_FLUSH},d$={flush:$0.constants.ZSTD_e_flush,finishFlush:$0.constants.ZSTD_e_flush},n5=J.isFunction($0.createBrotliDecompress),a5=J.isFunction($0.createZstdDecompress),t5="gzip, compress, deflate"+(n5?", br":""),c$=t5+(a5?", zstd":""),{http:p$,https:l$}=i5.default,s5=/https:?/,i$=["content-type","content-length"];h5=Symbol("axios.http.socketListener"),C4=Symbol("axios.http.currentReq"),r5=Symbol("axios.http.installedTunnel"),a$=new Map,g5=new WeakMap;u5=H.protocols.map(($)=>{return $+":"}),s$=new R5;o$=typeof process<"u"&&J.kindOf(process)==="process",Y7={request($,Y){let Q=$.protocol+"//"+$.hostname+":"+($.port||($.protocol==="https:"?443:80)),{http2Options:G,headers:W}=$,Z=s$.getSession(Q,G),{HTTP2_HEADER_SCHEME:X,HTTP2_HEADER_METHOD:K,HTTP2_HEADER_PATH:M,HTTP2_HEADER_STATUS:z}=f$.constants,N={[X]:$.protocol.replace(":",""),[K]:$.method,[M]:$.path};J.forEach(W,(B,F)=>{F.charAt(0)!==":"&&(N[F]=B)});let I=Z.request(N);return I.once("response",(B)=>{let F=I;B=Object.assign({},B);let D=B[z];delete B[z],F.headers=B,F.statusCode=+D,Y(F)}),I}},e5=o$&&function(Y){return e$(async function(G,W,Z){let X=(q)=>J.hasOwnProp(Y,q)?Y[q]:void 0,K=X("transitional")||F0,M=X("data"),z=X("lookup"),N=X("family"),I=X("httpVersion");if(I===void 0)I=1;let B=X("http2Options"),F=X("responseType"),D=X("responseEncoding"),U=Y.method.toUpperCase(),L,w=!1,_,R;if(I=+I,Number.isNaN(I))throw TypeError(`Invalid protocol version: '${Y.httpVersion}' is not a number`);if(I!==1&&I!==2)throw TypeError(`Unsupported protocol version '${I}'`);let O=I===2;if(z){let q=O5(z,(S)=>J.isArray(S)?S:[S]);z=(S,P,A)=>{q(S,P,(T,b,i)=>{if(T)return A(T);let v=J.isArray(b)?b.map((e)=>p5(e)):[p5(b,i)];P.all?A(T,v):A(T,v[0].address,v[0].family)})}}let f=new g$;function g(q){try{f.emit("abort",!q||q.type?new o(null,Y,_):q)}catch(S){}}function J0(){if(R)clearTimeout(R),R=null}function y0(){let q=Y.timeout?"timeout of "+Y.timeout+"ms exceeded":"timeout exceeded";if(Y.timeoutErrorMessage)q=Y.timeoutErrorMessage;return new V(q,K.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,Y,_)}f.once("abort",W);let C0=()=>{if(J0(),Y.cancelToken)Y.cancelToken.unsubscribe(g);if(Y.signal)Y.signal.removeEventListener("abort",g);f.removeAllListeners()};if(Y.cancelToken||Y.signal){if(Y.cancelToken&&Y.cancelToken.subscribe(g),Y.signal)Y.signal.aborted?g():Y.signal.addEventListener("abort",g)}Z((q,S)=>{if(L=!0,J0(),S){w=!0,C0();return}let{data:P}=q;if(P instanceof Z0.Readable||P instanceof Z0.Duplex){let A=Z0.finished(P,()=>{A(),C0()})}else C0()});let Y0=P0(Y.baseURL,Y.url,Y.allowAbsoluteUrls),k=new URL(Y0,H.hasBrowserEnv?H.origin:void 0),K0=k.protocol||u5[0];if(K0==="data:"){if(Y.maxContentLength>-1){let S=String(Y.url||Y0||"");if(G4(S)>Y.maxContentLength)return W(new V("maxContentLength size of "+Y.maxContentLength+" exceeded",V.ERR_BAD_RESPONSE,Y))}let q;if(U!=="GET")return z0(G,W,{status:405,statusText:"method not allowed",headers:{},config:Y});try{q=W1(Y.url,F==="blob",{Blob:Y.env&&Y.env.Blob})}catch(S){throw V.from(S,V.ERR_BAD_REQUEST,Y)}if(F==="text"){if(q=q.toString(D),!D||D==="utf8")q=J.stripBOM(q)}else if(F==="stream")q=Z0.Readable.from(q);return z0(G,W,{data:q,status:200,statusText:"OK",headers:new x,config:Y})}if(u5.indexOf(K0)===-1)return W(new V("Unsupported protocol "+K0,V.ERR_BAD_REQUEST,Y));let d=x.from(Y.headers).normalize();d.set("User-Agent","axios/"+B0,!1);let{onUploadProgress:n,onDownloadProgress:L0}=Y,M0=Y.maxRate,R0=void 0,T0=void 0;if(J.isSpecCompliantForm(M)){let q=d.getContentType(/boundary=([-_\w\d]{10,70})/i);M=S5(M,(S)=>{d.set(S)},{tag:`axios-${B0}-boundary`,boundary:q&&q[1]||void 0})}else if(J.isFormData(M)&&J.isFunction(M.getHeaders)&&M.getHeaders!==Object.prototype.getHeaders){if(n$(d,M.getHeaders(),X("formDataHeaderPolicy")),!d.hasContentLength())try{let q=await h$.promisify(M.getLength).call(M);Number.isFinite(q)&&q>=0&&d.setContentLength(q)}catch(q){}}else if(J.isBlob(M)||J.isFile(M))M.size&&d.setContentType(M.type||"application/octet-stream"),d.setContentLength(M.size||0),M=Z0.Readable.from(_4(M));else if(M&&!J.isStream(M)){if(Buffer.isBuffer(M));else if(J.isArrayBuffer(M))M=Buffer.from(new Uint8Array(M));else if(J.isString(M))M=Buffer.from(M,"utf-8");else return W(new V("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",V.ERR_BAD_REQUEST,Y));if(d.setContentLength(M.length,!1),Y.maxBodyLength>-1&&M.length>Y.maxBodyLength)return W(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,Y))}let J4=J.toFiniteNumber(d.getContentLength());if(J.isArray(M0))R0=M0[0],T0=M0[1];else R0=T0=M0;if(M&&(n||R0)){if(!J.isStream(M))M=Z0.Readable.from(M,{objectMode:!1});M=Z0.pipeline([M,new X1({maxRate:J.toFiniteNumber(R0)})],J.noop),n&&M.on("progress",c5(M,b0(J4,V0(v0(n),!1,3))))}let c=void 0,p=X("auth");if(p){let q=p.username||"",S=p.password||"";c=q+":"+S}if(!c&&(k.username||k.password)){let q=d5(k.username),S=d5(k.password);c=q+":"+S}c&&d.delete("authorization");let N0;try{N0=S0(k.pathname+k.search,Y.params,Y.paramsSerializer).replace(/^\?/,"")}catch(q){let S=Error(q.message);return S.config=Y,S.url=Y.url,S.exists=!0,W(S)}d.set("Accept-Encoding",J.hasOwnProp(K,"advertiseZstdAcceptEncoding")&&K.advertiseZstdAcceptEncoding===!0?c$:t5,!1);let m=Object.assign(Object.create(null),{path:N0,method:U,headers:A0(d),agents:{http:Y.httpAgent,https:Y.httpsAgent},auth:c,protocol:K0,family:N,beforeRedirect:r$,beforeRedirects:Object.create(null),http2Options:B});!J.isUndefined(z)&&(m.lookup=z);let E=X("socketPath");if(E){if(typeof E!=="string")return W(new V("socketPath must be a string",V.ERR_BAD_OPTION_VALUE,Y));let q=X("allowedSocketPaths");if(q!=null){let S=Array.isArray(q)?q:[q],P=m5(E);if(!S.some((T)=>typeof T==="string"&&m5(T)===P))return W(new V(`socketPath "${E}" is not permitted by allowedSocketPaths`,V.ERR_BAD_OPTION_VALUE,Y))}m.socketPath=E}else m.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,m.port=k.port,o5(m,Y.proxy,K0+"//"+k.hostname+(k.port?":"+k.port:"")+m.path,!1,Y.httpsAgent);let l,K4=!1,O0=s5.test(m.protocol);if(m.agent==null)m.agent=O0?Y.httpsAgent:Y.httpAgent;if(O)l=Y7;else{let q=X("transport");if(q)l=q;else if(Y.maxRedirects===0)l=O0?m$:y$,K4=!0;else{if(Y.maxRedirects)m.maxRedirects=Y.maxRedirects;let S=X("beforeRedirect");if(S)m.beforeRedirects.config=S;if(c){let P=k.origin,A=c;m.beforeRedirects.auth=function(b){try{if(new URL(b.href).origin===P)b.auth=A}catch(i){}}}l=O0?l$:p$}}if(Y.maxBodyLength>-1)m.maxBodyLength=Y.maxBodyLength;else m.maxBodyLength=1/0;m.insecureHTTPParser=Boolean(X("insecureHTTPParser")),_=l.request(m,function(S){if(J0(),_.destroyed)return;let P=[S],A=J.toFiniteNumber(S.headers["content-length"]);if(L0||T0){let v=new X1({maxRate:J.toFiniteNumber(T0)});L0&&v.on("progress",c5(v,b0(A,V0(v0(L0),!0,3)))),P.push(v)}let T=S,b=S.req||_;if(Y.decompress!==!1&&S.headers["content-encoding"]){if(U==="HEAD"||S.statusCode===204)delete S.headers["content-encoding"];switch((S.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":P.push($0.createUnzip(f5)),delete S.headers["content-encoding"];break;case"deflate":P.push(new _5),P.push($0.createUnzip(f5)),delete S.headers["content-encoding"];break;case"br":if(n5)P.push($0.createBrotliDecompress(u$)),delete S.headers["content-encoding"];break;case"zstd":if(a5)P.push($0.createZstdDecompress(d$)),delete S.headers["content-encoding"];break}}T=P.length>1?Z0.pipeline(P,J.noop):P[0];let i={status:S.statusCode,statusText:S.statusMessage,headers:new x(S.headers),config:Y,request:b};if(F==="stream"){if(Y.maxContentLength>-1){let v=Y.maxContentLength,e=T;async function*m0(){let h=0;for await(let P1 of e){if(h+=P1.length,h>v)throw new V("maxContentLength size of "+v+" exceeded",V.ERR_BAD_RESPONSE,Y,b);yield P1}}T=Z0.Readable.from(m0(),{objectMode:!1})}i.data=T,z0(G,W,i)}else{let v=[],e=0;T.on("data",function(h){if(v.push(h),e+=h.length,Y.maxContentLength>-1&&e>Y.maxContentLength)w=!0,T.destroy(),g(new V("maxContentLength size of "+Y.maxContentLength+" exceeded",V.ERR_BAD_RESPONSE,Y,b))}),T.on("aborted",function(){if(w)return;let h=new V("stream has been aborted",V.ERR_BAD_RESPONSE,Y,b,i);T.destroy(h),W(h)}),T.on("error",function(h){if(w)return;W(V.from(h,null,Y,b,i))}),T.on("end",function(){try{let h=v.length===1?v[0]:Buffer.concat(v);if(F!=="arraybuffer"){if(h=h.toString(D),!D||D==="utf8")h=J.stripBOM(h)}i.data=h}catch(h){return W(V.from(h,null,Y,i.request,i))}z0(G,W,i)})}f.once("abort",(v)=>{if(!T.destroyed)T.emit("error",v),T.destroy()})}),f.once("abort",(q)=>{if(_.close)_.close();else _.destroy(q)}),_.on("error",function(S){W(V.from(S,null,Y,_))});let a=new Set;if(_.on("socket",function(S){if(S.setKeepAlive(!0,60000),!S[h5])S.on("error",function(A){let T=S[C4];if(T&&!T.destroyed)T.destroy(A)}),S[h5]=!0;S[C4]=_,a.add(S)}),_.once("close",function(){J0();for(let S of a)if(S[C4]===_)S[C4]=null;a.clear()}),Y.timeout){let q=parseInt(Y.timeout,10);if(Number.isNaN(q)){g(new V("error trying to parse `config.timeout` to int",V.ERR_BAD_OPTION_VALUE,Y,_));return}let S=function(){if(L)return;g(y0())};if(K4&&q>0)R=setTimeout(S,q);_.setTimeout(q,S)}else _.setTimeout(0);if(J.isStream(M)){let q=!1,S=!1;M.on("end",()=>{q=!0}),M.once("error",(A)=>{S=!0,_.destroy(A)}),M.on("close",()=>{if(!q&&!S)g(new o("Request stream has been aborted",Y,_))});let P=M;if(Y.maxBodyLength>-1&&Y.maxRedirects===0){let A=Y.maxBodyLength,T=0;P=Z0.pipeline([M,new Z0.Transform({transform(b,i,v){if(T+=b.length,T>A)return v(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,Y,_));v(null,b)}})],J.noop),P.on("error",(b)=>{if(!_.destroyed)_.destroy(b)})}P.pipe(_)}else M&&_.write(M),_.end()})}});var Y6;var Q6=C(()=>{W0();Y6=H.hasStandardBrowserEnv?(($,Y)=>(Q)=>{return Q=new URL(Q,H.origin),$.protocol===Q.protocol&&$.host===Q.host&&(Y||$.port===Q.port)})(new URL(H.origin),H.navigator&&/(msie|trident)/i.test(H.navigator.userAgent)):()=>!0});var G6;var W6=C(()=>{j();W0();G6=H.hasStandardBrowserEnv?{write($,Y,Q,G,W,Z,X){if(typeof document>"u")return;let K=[`${$}=${encodeURIComponent(Y)}`];if(J.isNumber(Q))K.push(`expires=${new Date(Q).toUTCString()}`);if(J.isString(G))K.push(`path=${G}`);if(J.isString(W))K.push(`domain=${W}`);if(Z===!0)K.push("secure");if(J.isString(X))K.push(`SameSite=${X}`);document.cookie=K.join("; ")},read($){if(typeof document>"u")return null;let Y=document.cookie.split(";");for(let Q=0;Q<Y.length;Q++){let G=Y[Q].replace(/^\s+/,""),W=G.indexOf("=");if(W!==-1&&G.slice(0,W)===$)return decodeURIComponent(G.slice(W+1))}return null},remove($){this.write($,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}}});function X0($,Y){Y=Y||{};let Q=Object.create(null);Object.defineProperty(Q,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function G(z,N,I,B){if(J.isPlainObject(z)&&J.isPlainObject(N))return J.merge.call({caseless:B},z,N);else if(J.isPlainObject(N))return J.merge({},N);else if(J.isArray(N))return N.slice();return N}function W(z,N,I,B){if(!J.isUndefined(N))return G(z,N,I,B);else if(!J.isUndefined(z))return G(void 0,z,I,B)}function Z(z,N){if(!J.isUndefined(N))return G(void 0,N)}function X(z,N){if(!J.isUndefined(N))return G(void 0,N);else if(!J.isUndefined(z))return G(void 0,z)}function K(z,N,I){if(J.hasOwnProp(Y,I))return G(z,N);else if(J.hasOwnProp($,I))return G(void 0,z)}let M={url:Z,method:Z,data:Z,baseURL:X,transformRequest:X,transformResponse:X,paramsSerializer:X,timeout:X,timeoutMessage:X,withCredentials:X,withXSRFToken:X,adapter:X,responseType:X,xsrfCookieName:X,xsrfHeaderName:X,onUploadProgress:X,onDownloadProgress:X,decompress:X,maxContentLength:X,maxBodyLength:X,beforeRedirect:X,transport:X,httpAgent:X,httpsAgent:X,cancelToken:X,socketPath:X,allowedSocketPaths:X,responseEncoding:X,validateStatus:K,headers:(z,N,I)=>W(Z6(z),Z6(N),I,!0)};return J.forEach(Object.keys({...$,...Y}),function(N){if(N==="__proto__"||N==="constructor"||N==="prototype")return;let I=J.hasOwnProp(M,N)?M[N]:W,B=J.hasOwnProp($,N)?$[N]:void 0,F=J.hasOwnProp(Y,N)?Y[N]:void 0,D=I(B,F,N);J.isUndefined(D)&&I!==K||(Q[N]=D)}),Q}var Z6=($)=>$ instanceof x?{...$}:$;var R4=C(()=>{j();G0()});function G7($,Y,Q){if(Q!=="content-only"){$.set(Y);return}Object.entries(Y).forEach(([G,W])=>{if(Q7.includes(G.toLowerCase()))$.set(G,W)})}function Z7($){let Y=X0({},$),Q=(B)=>J.hasOwnProp(Y,B)?Y[B]:void 0,G=Q("data"),W=Q("withXSRFToken"),Z=Q("xsrfHeaderName"),X=Q("xsrfCookieName"),K=Q("headers"),M=Q("auth"),z=Q("baseURL"),N=Q("allowAbsoluteUrls"),I=Q("url");if(Y.headers=K=x.from(K),Y.url=S0(P0(z,I,N),Q("params"),Q("paramsSerializer")),M)K.set("Authorization","Basic "+btoa((M.username||"")+":"+(M.password?W7(M.password):"")));if(J.isFormData(G)){if(H.hasStandardBrowserEnv||H.hasStandardBrowserWebWorkerEnv||J.isReactNative(G))K.setContentType(void 0);else if(J.isFunction(G.getHeaders))G7(K,G.getHeaders(),Q("formDataHeaderPolicy"))}if(H.hasStandardBrowserEnv){if(J.isFunction(W))W=W(Y);if(W===!0||W==null&&Y6(Y.url)){let F=Z&&X&&G6.read(X);if(F)K.set(Z,F)}}return Y}var Q7,W7=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Y,Q)=>String.fromCharCode(parseInt(Q,16))),T4;var z1=C(()=>{W0();j();Q6();W6();D4();R4();G0();L4();Q7=["content-type","content-length"];T4=Z7});var X7,X6;var J6=C(()=>{j();S4();l0();r();D0();G1();W0();G0();q4();z1();u0();X7=typeof XMLHttpRequest<"u",X6=X7&&function($){return new Promise(function(Q,G){let W=T4($),Z=W.data,X=x.from(W.headers).normalize(),{responseType:K,onUploadProgress:M,onDownloadProgress:z}=W,N,I,B,F,D;function U(){F&&F(),D&&D(),W.cancelToken&&W.cancelToken.unsubscribe(N),W.signal&&W.signal.removeEventListener("abort",N)}let L=new XMLHttpRequest;L.open(W.method.toUpperCase(),W.url,!0),L.timeout=W.timeout;function w(){if(!L)return;let R=x.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),f={data:!K||K==="text"||K==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:R,config:$,request:L};z0(function(J0){Q(J0),U()},function(J0){G(J0),U()},f),L=null}if("onloadend"in L)L.onloadend=w;else L.onreadystatechange=function(){if(!L||L.readyState!==4)return;if(L.status===0&&!(L.responseURL&&L.responseURL.startsWith("file:")))return;setTimeout(w)};if(L.onabort=function(){if(!L)return;G(new V("Request aborted",V.ECONNABORTED,$,L)),U(),L=null},L.onerror=function(O){let f=O&&O.message?O.message:"Network Error",g=new V(f,V.ERR_NETWORK,$,L);g.event=O||null,G(g),U(),L=null},L.ontimeout=function(){let O=W.timeout?"timeout of "+W.timeout+"ms exceeded":"timeout exceeded",f=W.transitional||F0;if(W.timeoutErrorMessage)O=W.timeoutErrorMessage;G(new V(O,f.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,$,L)),U(),L=null},Z===void 0&&X.setContentType(null),"setRequestHeader"in L)J.forEach(A0(X),function(O,f){L.setRequestHeader(f,O)});if(!J.isUndefined(W.withCredentials))L.withCredentials=!!W.withCredentials;if(K&&K!=="json")L.responseType=W.responseType;if(z)[B,D]=V0(z,!0),L.addEventListener("progress",B);if(M&&L.upload)[I,F]=V0(M),L.upload.addEventListener("progress",I),L.upload.addEventListener("loadend",F);if(W.cancelToken||W.signal){if(N=(R)=>{if(!L)return;G(!R||R.type?new o(null,$,L):R),L.abort(),U(),L=null},W.cancelToken&&W.cancelToken.subscribe(N),W.signal)W.signal.aborted?N():W.signal.addEventListener("abort",N)}let _=Y4(W.url);if(_&&!H.protocols.includes(_)){G(new V("Unsupported protocol "+_+":",V.ERR_BAD_REQUEST,$));return}L.send(Z||null)})}});var J7=($,Y)=>{if($=$?$.filter(Boolean):[],!Y&&!$.length)return;let Q=new AbortController,G=!1,W=function(M){if(!G){G=!0,X();let z=M instanceof Error?M:this.reason;Q.abort(z instanceof V?z:new o(z instanceof Error?z.message:z))}},Z=Y&&setTimeout(()=>{Z=null,W(new V(`timeout of ${Y}ms exceeded`,V.ETIMEDOUT))},Y),X=()=>{if(!$)return;Z&&clearTimeout(Z),Z=null,$.forEach((M)=>{M.unsubscribe?M.unsubscribe(W):M.removeEventListener("abort",W)}),$=null};$.forEach((M)=>M.addEventListener("abort",W));let{signal:K}=Q;return K.unsubscribe=()=>J.asap(X),K},K6;var M6=C(()=>{D0();r();j();K6=J7});var K7=function*($,Y){let Q=$.byteLength;if(!Y||Q<Y){yield $;return}let G=0,W;while(G<Q)W=G+Y,yield $.slice(G,W),G=W},M7=async function*($,Y){for await(let Q of N7($))yield*K7(Q,Y)},N7=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let Y=$.getReader();try{for(;;){let{done:Q,value:G}=await Y.read();if(Q)break;yield G}}finally{await Y.cancel()}},B1=($,Y,Q,G)=>{let W=M7($,Y),Z=0,X,K=(M)=>{if(!X)X=!0,G&&G(M)};return new ReadableStream({async pull(M){try{let{done:z,value:N}=await W.next();if(z){K(),M.close();return}let I=N.byteLength;if(Q){let B=Z+=I;Q(B)}M.enqueue(new Uint8Array(N))}catch(z){throw K(z),z}},cancel(M){return K(M),W.return()}},{highWaterMark:2})};var N6=()=>{};var z6=65536,O4,z7=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Y,Q)=>String.fromCharCode(parseInt(Q,16))),B6=($)=>{if(!J.isString($))return $;try{return decodeURIComponent($)}catch(Y){return $}},V6=($,...Y)=>{try{return!!$(...Y)}catch(Q){return!1}},B7=($)=>{let Y=$.indexOf("://"),Q=$;if(Y!==-1)Q=Q.slice(Y+3);return Q.includes("@")||Q.includes(":")},V7=($)=>{let Y=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:Q,TextEncoder:G}=Y;$=J.merge.call({skipUndefined:!0},{Request:Y.Request,Response:Y.Response},$);let{fetch:W,Request:Z,Response:X}=$,K=W?O4(W):typeof fetch==="function",M=O4(Z),z=O4(X);if(!K)return!1;let N=K&&O4(Q),I=K&&(typeof G==="function"?((w)=>(_)=>w.encode(_))(new G):async(w)=>new Uint8Array(await new Z(w).arrayBuffer())),B=M&&N&&V6(()=>{let w=!1,_=new Z(H.origin,{body:new Q,method:"POST",get duplex(){return w=!0,"half"}}),R=_.headers.has("Content-Type");if(_.body!=null)_.body.cancel();return w&&!R}),F=z&&N&&V6(()=>J.isReadableStream(new X("").body)),D={stream:F&&((w)=>w.body)};K&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((w)=>{!D[w]&&(D[w]=(_,R)=>{let O=_&&_[w];if(O)return O.call(_);throw new V(`Response type '${w}' is not supported`,V.ERR_NOT_SUPPORT,R)})})})();let U=async(w)=>{if(w==null)return 0;if(J.isBlob(w))return w.size;if(J.isSpecCompliantForm(w))return(await new Z(H.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(J.isArrayBufferView(w)||J.isArrayBuffer(w))return w.byteLength;if(J.isURLSearchParams(w))w=w+"";if(J.isString(w))return(await I(w)).byteLength},L=async(w,_)=>{let R=J.toFiniteNumber(w.getContentLength());return R==null?U(_):R};return async(w)=>{let{url:_,method:R,data:O,signal:f,cancelToken:g,timeout:J0,onDownloadProgress:y0,onUploadProgress:C0,responseType:Y0,headers:k,withCredentials:K0="same-origin",fetchOptions:d,maxContentLength:n,maxBodyLength:L0}=T4(w),M0=J.isNumber(n)&&n>-1,R0=J.isNumber(L0)&&L0>-1,T0=(E)=>J.hasOwnProp(w,E)?w[E]:void 0,J4=W||fetch;Y0=Y0?(Y0+"").toLowerCase():"text";let c=K6([f,g&&g.toAbortSignal()],J0),p=null,N0=c&&c.unsubscribe&&(()=>{c.unsubscribe()}),m;try{let E=void 0,l=T0("auth");if(l){let P=l.username||"",A=l.password||"";E={username:P,password:A}}if(B7(_)){let P=new URL(_,H.origin);if(!E&&(P.username||P.password)){let A=B6(P.username),T=B6(P.password);E={username:A,password:T}}if(P.username||P.password)P.username="",P.password="",_=P.href}if(E)k.delete("authorization"),k.set("Authorization","Basic "+btoa(z7((E.username||"")+":"+(E.password||""))));if(M0&&typeof _==="string"&&_.startsWith("data:")){if(G4(_)>n)throw new V("maxContentLength size of "+n+" exceeded",V.ERR_BAD_RESPONSE,w,p)}if(R0&&R!=="get"&&R!=="head"){let P=await L(k,O);if(typeof P==="number"&&isFinite(P)&&P>L0)throw new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,w,p)}if(C0&&B&&R!=="get"&&R!=="head"&&(m=await L(k,O))!==0){let P=new Z(_,{method:"POST",body:O,duplex:"half"}),A;if(J.isFormData(O)&&(A=P.headers.get("content-type")))k.setContentType(A);if(P.body){let[T,b]=b0(m,V0(v0(C0)));O=B1(P.body,z6,T,b)}}if(!J.isString(K0))K0=K0?"include":"omit";let K4=M&&"credentials"in Z.prototype;if(J.isFormData(O)){let P=k.getContentType();if(P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P))k.delete("content-type")}k.set("User-Agent","axios/"+B0,!1);let O0={...d,signal:c,method:R.toUpperCase(),headers:A0(k.normalize()),body:O,duplex:"half",credentials:K4?K0:void 0};p=M&&new Z(_,O0);let a=await(M?J4(p,d):J4(_,O0));if(M0){let P=J.toFiniteNumber(a.headers.get("content-length"));if(P!=null&&P>n)throw new V("maxContentLength size of "+n+" exceeded",V.ERR_BAD_RESPONSE,w,p)}let q=F&&(Y0==="stream"||Y0==="response");if(F&&a.body&&(y0||M0||q&&N0)){let P={};["status","statusText","headers"].forEach((e)=>{P[e]=a[e]});let A=J.toFiniteNumber(a.headers.get("content-length")),[T,b]=y0&&b0(A,V0(v0(y0),!0))||[],i=0,v=(e)=>{if(M0){if(i=e,i>n)throw new V("maxContentLength size of "+n+" exceeded",V.ERR_BAD_RESPONSE,w,p)}T&&T(e)};a=new X(B1(a.body,z6,v,()=>{b&&b(),N0&&N0()}),P)}Y0=Y0||"text";let S=await D[J.findKey(D,Y0)||"text"](a,w);if(M0&&!F&&!q){let P;if(S!=null){if(typeof S.byteLength==="number")P=S.byteLength;else if(typeof S.size==="number")P=S.size;else if(typeof S==="string")P=typeof G==="function"?new G().encode(S).byteLength:S.length}if(typeof P==="number"&&P>n)throw new V("maxContentLength size of "+n+" exceeded",V.ERR_BAD_RESPONSE,w,p)}return!q&&N0&&N0(),await new Promise((P,A)=>{z0(P,A,{data:S,headers:x.from(a.headers),status:a.status,statusText:a.statusText,config:w,request:p})})}catch(E){if(N0&&N0(),c&&c.aborted&&c.reason instanceof V){let l=c.reason;throw l.config=w,p&&(l.request=p),E!==l&&(l.cause=E),l}if(E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message))throw Object.assign(new V("Network Error",V.ERR_NETWORK,w,p,E&&E.response),{cause:E.cause||E});throw V.from(E,E&&E.code,w,p,E&&E.response)}}},I7,V1=($)=>{let Y=$&&$.env||{},{fetch:Q,Request:G,Response:W}=Y,Z=[G,W,Q],X=Z.length,K=X,M,z,N=I7;while(K--)M=Z[K],z=N.get(M),z===void 0&&N.set(M,z=K?new Map:V7(Y)),N=z;return z},kQ;var I6=C(()=>{W0();j();r();M6();N6();G0();q4();z1();S4();M1();$4();u0();({isFunction:O4}=J),I7=new Map,kQ=V1()});function U7($,Y){$=J.isArray($)?$:[$];let{length:Q}=$,G,W,Z={};for(let X=0;X<Q;X++){G=$[X];let K;if(W=G,!L7(G)){if(W=I1[(K=String(G)).toLowerCase()],W===void 0)throw new V(`Unknown adapter '${K}'`)}if(W&&(J.isFunction(W)||(W=W.get(Y))))break;Z[K||"#"+X]=W}if(!W){let X=Object.entries(Z).map(([M,z])=>`adapter ${M} `+(z===!1?"is not supported by the environment":"is not available in the build")),K=Q?X.length>1?`since :
12
+ `+X.map(F6).join(`
13
+ `):" "+F6(X[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+K,"ERR_NOT_SUPPORT")}return W}var I1,F6=($)=>`- ${$}`,L7=($)=>J.isFunction($)||$===null||$===!1,H4;var F1=C(()=>{j();$6();J6();I6();r();I1={http:e5,xhr:X6,fetch:{get:V1}};J.forEach(I1,($,Y)=>{if($){try{Object.defineProperty($,"name",{__proto__:null,value:Y})}catch(Q){}Object.defineProperty($,"adapterName",{__proto__:null,value:Y})}});H4={getAdapter:U7,adapters:I1}});function L1($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new o(null,$)}function E4($){if(L1($),$.headers=x.from($.headers),$.data=i0.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return H4.getAdapter($.adapter||k0.adapter,$)($).then(function(G){L1($),$.response=G;try{G.data=i0.call($,$.transformResponse,G)}finally{delete $.response}return G.headers=x.from(G.headers),G},function(G){if(!n0(G)){if(L1($),G&&G.response){$.response=G.response;try{G.response.data=i0.call($,$.transformResponse,G.response)}finally{delete $.response}G.response.headers=x.from(G.response.headers)}}return Promise.reject(G)})}var L6=C(()=>{o1();a4();w4();D0();G0();F1()});function w7($,Y,Q){if(typeof $!=="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);let G=Object.keys($),W=G.length;while(W-- >0){let Z=G[W],X=Object.prototype.hasOwnProperty.call(Y,Z)?Y[Z]:void 0;if(X){let K=$[Z],M=K===void 0||X(K,Z,$);if(M!==!0)throw new V("option "+Z+" must be "+M,V.ERR_BAD_OPTION_VALUE);continue}if(Q!==!0)throw new V("Unknown option "+Z,V.ERR_BAD_OPTION)}}var A4,U6,W4;var w6=C(()=>{$4();r();A4={};["object","boolean","number","function","string","symbol"].forEach(($,Y)=>{A4[$]=function(G){return typeof G===$||"a"+(Y<1?"n ":" ")+$}});U6={};A4.transitional=function(Y,Q,G){function W(Z,X){return"[Axios v"+B0+"] Transitional option '"+Z+"'"+X+(G?". "+G:"")}return(Z,X,K)=>{if(Y===!1)throw new V(W(X," has been removed"+(Q?" in "+Q:"")),V.ERR_DEPRECATED);if(Q&&!U6[X])U6[X]=!0,console.warn(W(X," has been deprecated since v"+Q+" and will be removed in the near future"));return Y?Y(Z,X,K):!0}};A4.spelling=function(Y){return(Q,G)=>{return console.warn(`${G} is likely a misspelling of ${Y}`),!0}};W4={assertOptions:w7,validators:A4}});class Z4{constructor($){this.defaults=$||{},this.interceptors={request:new g4,response:new g4}}async request($,Y){try{return await this._request($,Y)}catch(Q){if(Q instanceof Error){let G={};Error.captureStackTrace?Error.captureStackTrace(G):G=Error();let W=(()=>{if(!G.stack)return"";let Z=G.stack.indexOf(`
14
+ `);return Z===-1?"":G.stack.slice(Z+1)})();try{if(!Q.stack)Q.stack=W;else if(W){let Z=W.indexOf(`
15
+ `),X=Z===-1?-1:W.indexOf(`
16
+ `,Z+1),K=X===-1?"":W.slice(X+1);if(!String(Q.stack).endsWith(K))Q.stack+=`
17
+ `+W}}catch(Z){}}throw Q}}_request($,Y){if(typeof $==="string")Y=Y||{},Y.url=$;else Y=$||{};Y=X0(this.defaults,Y);let{transitional:Q,paramsSerializer:G,headers:W}=Y;if(Q!==void 0)W4.assertOptions(Q,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean),legacyInterceptorReqResOrdering:s.transitional(s.boolean),advertiseZstdAcceptEncoding:s.transitional(s.boolean)},!1);if(G!=null)if(J.isFunction(G))Y.paramsSerializer={serialize:G};else W4.assertOptions(G,{encode:s.function,serialize:s.function},!0);if(Y.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Y.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Y.allowAbsoluteUrls=!0;W4.assertOptions(Y,{baseUrl:s.spelling("baseURL"),withXsrfToken:s.spelling("withXSRFToken")},!0),Y.method=(Y.method||this.defaults.method||"get").toLowerCase();let Z=W&&J.merge(W.common,W[Y.method]);W&&J.forEach(["delete","get","head","post","put","patch","query","common"],(F)=>{delete W[F]}),Y.headers=x.concat(Z,W);let X=[],K=!0;this.interceptors.request.forEach(function(D){if(typeof D.runWhen==="function"&&D.runWhen(Y)===!1)return;K=K&&D.synchronous;let U=Y.transitional||F0;if(U&&U.legacyInterceptorReqResOrdering)X.unshift(D.fulfilled,D.rejected);else X.push(D.fulfilled,D.rejected)});let M=[];this.interceptors.response.forEach(function(D){M.push(D.fulfilled,D.rejected)});let z,N=0,I;if(!K){let F=[E4.bind(this),void 0];F.unshift(...X),F.push(...M),I=F.length,z=Promise.resolve(Y);while(N<I)z=z.then(F[N++],F[N++]);return z}I=X.length;let B=Y;while(N<I){let F=X[N++],D=X[N++];try{B=F(B)}catch(U){D.call(this,U);break}}try{z=E4.call(this,B)}catch(F){return Promise.reject(F)}N=0,I=M.length;while(N<I)z=z.then(M[N++],M[N++]);return z}getUri($){$=X0(this.defaults,$);let Y=P0($.baseURL,$.url,$.allowAbsoluteUrls);return S0(Y,$.params,$.paramsSerializer)}}var s,X4;var S6=C(()=>{j();L4();c1();L6();R4();D4();w6();G0();l0();s=W4.validators;J.forEach(["delete","get","head","options"],function(Y){Z4.prototype[Y]=function(Q,G){return this.request(X0(G||{},{method:Y,url:Q,data:(G||{}).data}))}});J.forEach(["post","put","patch","query"],function(Y){function Q(G){return function(Z,X,K){return this.request(X0(K||{},{method:Y,headers:G?{"Content-Type":"multipart/form-data"}:{},url:Z,data:X}))}}if(Z4.prototype[Y]=Q(),Y!=="query")Z4.prototype[Y+"Form"]=Q(!0)});X4=Z4});class U1{constructor($){if(typeof $!=="function")throw TypeError("executor must be a function.");let Y;this.promise=new Promise(function(W){Y=W});let Q=this;this.promise.then((G)=>{if(!Q._listeners)return;let W=Q._listeners.length;while(W-- >0)Q._listeners[W](G);Q._listeners=null}),this.promise.then=(G)=>{let W,Z=new Promise((X)=>{Q.subscribe(X),W=X}).then(G);return Z.cancel=function(){Q.unsubscribe(W)},Z},$(function(W,Z,X){if(Q.reason)return;Q.reason=new o(W,Z,X),Y(Q.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;let Y=this._listeners.indexOf($);if(Y!==-1)this._listeners.splice(Y,1)}toAbortSignal(){let $=new AbortController,Y=(Q)=>{$.abort(Q)};return this.subscribe(Y),$.signal.unsubscribe=()=>this.unsubscribe(Y),$.signal}static source(){let $;return{token:new U1(function(G){$=G}),cancel:$}}}var D6;var P6=C(()=>{D0();D6=U1});function w1($){return function(Q){return $.apply(null,Q)}}var _6=()=>{};function S1($){return J.isObject($)&&$.isAxiosError===!0}var q6=C(()=>{j()});var D1,C6;var R6=C(()=>{D1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(D1).forEach(([$,Y])=>{D1[Y]=$});C6=D1});function T6($){let Y=new X4($),Q=f0(X4.prototype.request,Y);return J.extend(Q,X4.prototype,Y,{allOwnKeys:!0}),J.extend(Q,Y,null,{allOwnKeys:!0}),Q.create=function(W){return T6(X0($,W))},Q}var y,O6;var H6=C(()=>{j();j4();S6();R4();w4();i4();D0();P6();a4();$4();p0();r();_6();q6();G0();F1();R6();y=T6(k0);y.Axios=X4;y.CanceledError=o;y.CancelToken=D6;y.isCancel=n0;y.VERSION=B0;y.toFormData=I0;y.AxiosError=V;y.Cancel=y.CanceledError;y.all=function(Y){return Promise.all(Y)};y.spread=w1;y.isAxiosError=S1;y.mergeConfig=X0;y.AxiosHeaders=x;y.formToJSON=($)=>U4(J.isHTMLForm($)?new FormData($):$);y.getAdapter=H4.getAdapter;y.HttpStatusCode=C6;y.default=y;O6=y});var EG,AG,jG,kG,xG,bG,vG,yG,mG,fG,hG,gG,uG,dG,cG,pG,lG;var S7=C(()=>{H6();({Axios:EG,AxiosError:AG,CanceledError:jG,isCancel:kG,CancelToken:xG,VERSION:bG,all:vG,Cancel:yG,isAxiosError:mG,spread:fG,toFormData:hG,AxiosHeaders:gG,HttpStatusCode:uG,formToJSON:dG,getAdapter:cG,mergeConfig:pG,create:lG}=O6)});
18
+ export{O6 as Zna,EG as _na,AG as $na,jG as aoa,kG as boa,xG as coa,bG as doa,vG as eoa,yG as foa,mG as goa,fG as hoa,hG as ioa,gG as joa,uG as koa,dG as loa,cG as moa,pG as noa,lG as ooa,S7 as poa};
@@ -0,0 +1,18 @@
1
+ import{Zd as YZ,_d as gQ}from"./cli-0.5.14-9d7p6385.mjs";import{$d as kZ,fe as XX}from"./cli-0.5.14-en3hbpe6.mjs";import{$F as kJ,AF as s0,BC as HQ,CF as MJ,DF as F0,Di as VZ,Dq as vQ,EC as hX,EF as i0,Hp as MZ,Iq as d0,Kp as lQ,Lq as hQ,OB as FQ,PB as vX,QD as OQ,Qx as NZ,Rx as rQ,TD as gX,Ut as NQ,Ux as a0,Uy as IX,Vt as CX,Vx as CZ,Vy as DX,WD as j0,Wi as u0,Wl as HJ,Wq as VQ,XD as QX,Xi as pJ,Xl as DQ,YF as pZ,YN as lZ,Yj as qQ,Zq as KX,_j as MX,aG as JZ,bG as OJ,bO as iZ,bj as dZ,bu as zJ,cG as WJ,cj as tQ,cu as WQ,dG as ZZ,eG as QZ,eu as bX,fG as XZ,fj as r0,fu as yZ,gu as iQ,hG as p0,hO as LZ,hj as GZ,hq as aZ,iG as _0,ij as UJ,im as GQ,jG as PJ,jm as EX,km as l,kq as FX,lm as A0,lq as cJ,mq as LQ,nw as RQ,oH as $0,om as Z0,oy as fJ,pm as B0,py as BX,rH as FZ,sm as n,tm as I0,tq as U0,tw as AX,wy as mZ,xy as ZX,yF as WZ,zF as RZ}from"./cli-0.5.14-jf3et57a.mjs";import{NV as QJ,OV as nZ,aW as q0,bW as g0}from"./cli-0.5.14-ya2ykcd6.mjs";import{DY as f0,FW as R0,OW as l0,YX as C,_X as V,cY as JJ,mY as wZ}from"./cli-0.5.14-r8f2hssc.mjs";import{TZ as hJ,_Z as yX}from"./cli-0.5.14-2pafgvs4.mjs";import{a0 as o,b0 as f,c0 as W,d0 as $}from"./cli-0.5.14-tgeskqzs.mjs";import{e0 as o0}from"./cli-0.5.14-anv6260e.mjs";import{p0 as mJ,z0 as MQ}from"./cli-0.5.14-5008zpga.mjs";import{B0 as DJ,C0 as JX}from"./cli-0.5.14-avm7rqss.mjs";import{E3 as NJ,F3 as wQ,Q0 as tJ,R0 as IQ}from"./cli-0.5.14-1d34ehpy.mjs";import{$8 as M0,A$ as eQ,B_ as m0,N$ as Q0,V$ as IJ,_8 as fQ,b9 as CJ,i7 as t0,j7 as cZ,kda as eJ,sda as BQ,v_ as z0,w_ as w0,x$ as TZ,y$ as uZ}from"./cli-0.5.14-ndq9rhn7.mjs";import{Ada as y0,Dda as b0,Fda as oZ,Hda as e0,Ida as x0,Pda as h0}from"./cli-0.5.14-yms71vy8.mjs";import{Lea as sJ,Xea as AQ}from"./cli-0.5.14-pvx7sqsj.mjs";import{Ofa as t,Qfa as _J}from"./cli-0.5.14-easqaf33.mjs";import{Ega as $Z,Gga as RX,Qga as D0,Tga as dJ}from"./cli-0.5.14-6raawc34.mjs";import{iha as v0,pha as aJ}from"./cli-0.5.14-ef8ctc2m.mjs";import{Koa as J0,Loa as FJ,Noa as $J,Ooa as a}from"./cli-0.5.14-hanfd2pz.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};
@@ -0,0 +1,2 @@
1
+ import{Ooa as P}from"./cli-0.5.14-hanfd2pz.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
2
+ export{k as wT,w as xT,H as yT,g as zT,V as AT,W as BT,L as CT,Y as DT};
@@ -0,0 +1,2 @@
1
+ import{Ow as I,Pw as P,Sn as W,Sw as t,Tn as n}from"./cli-0.5.14-jf3et57a.mjs";import{j0 as H,k0 as p}from"./cli-0.5.14-d4frp6k6.mjs";import{l0 as C,n0 as i}from"./cli-0.5.14-r61p0n6x.mjs";import{K4 as l,L3 as v,V0 as S,_0 as c,k4 as R,q4 as V}from"./cli-0.5.14-1d34ehpy.mjs";import{Nca as T,Oca as Y,Pba as O,Raa as q,Saa as u,Uca as y,Xca as k,_ca as g,kda as D,sba as E,sda as m,vba as X}from"./cli-0.5.14-ndq9rhn7.mjs";import{Aea as $,Bea as h,xea as G,zea as f}from"./cli-0.5.14-nef9j9x3.mjs";import{Hfa as Z,Mfa as _,Nfa as M}from"./cli-0.5.14-xad83fbb.mjs";import{Qga as x,Tga as b}from"./cli-0.5.14-6raawc34.mjs";import{Zna as Q,poa as A}from"./cli-0.5.14-cw6v5vt0.mjs";import{Ooa as U}from"./cli-0.5.14-hanfd2pz.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
+ export{Yj as Nb,r as Ob};
@@ -0,0 +1,2 @@
1
+ import{l0 as N,m0 as V,n0 as D}from"./cli-0.5.14-r61p0n6x.mjs";import{K4 as x,L3 as Z,V0 as Y,_0 as _,k4 as J,m4 as $,p4 as B}from"./cli-0.5.14-1d34ehpy.mjs";import{Hfa as Q,Nfa as P}from"./cli-0.5.14-xad83fbb.mjs";import{Zna as X,poa as R}from"./cli-0.5.14-cw6v5vt0.mjs";import{Ooa as W}from"./cli-0.5.14-hanfd2pz.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 f0,I as g0,w as h0,C as i0,O as j0,H as k0};
@@ -0,0 +1,2 @@
1
+ import{bu as C,eu as X}from"./cli-0.5.14-jf3et57a.mjs";import{e0 as W}from"./cli-0.5.14-anv6260e.mjs";import{K2 as I,W2 as J,b3 as V}from"./cli-0.5.14-1d34ehpy.mjs";import{Cea as H,Xea as T}from"./cli-0.5.14-pvx7sqsj.mjs";import{Koa as P,Ooa as Q}from"./cli-0.5.14-hanfd2pz.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};
@@ -0,0 +1,2 @@
1
+ import{u0 as N,z0 as $}from"./cli-0.5.14-5008zpga.mjs";import{K4 as Z,k4 as M,u1 as L,x1 as Y}from"./cli-0.5.14-1d34ehpy.mjs";import{kda as Q,sda as X}from"./cli-0.5.14-ndq9rhn7.mjs";import{Mfa as J,Nfa as V}from"./cli-0.5.14-xad83fbb.mjs";import{hha as P,pha as S}from"./cli-0.5.14-ef8ctc2m.mjs";import{Zna as K,poa as W}from"./cli-0.5.14-cw6v5vt0.mjs";import{Ooa as R}from"./cli-0.5.14-hanfd2pz.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
+ export{C as jU,j as kU,b as lU};
@@ -0,0 +1,2 @@
1
+ import{cd as x,dd as o}from"./cli-0.5.14-3rsvr6t8.mjs";import{Bn as g,Cu as K,Eu as m,Qs as Z,SA as M,TH as O,UH as a,Ws as v,YA as l,bt as $,ct as d,dI as R,gI as i,it as y,jJ as W,kt as u,mJ as t,zn as Y}from"./cli-0.5.14-jf3et57a.mjs";import{kda as X,sda as h}from"./cli-0.5.14-ndq9rhn7.mjs";import{Qga as I,Tga as c}from"./cli-0.5.14-6raawc34.mjs";import{iha as V,pha as f}from"./cli-0.5.14-ef8ctc2m.mjs";import{dna as _,pja as U}from"./cli-0.5.14-gm5kmg2w.mjs";import{Ooa as C}from"./cli-0.5.14-hanfd2pz.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
2
+ export{Lj as _c,p as $c};
@@ -0,0 +1,12 @@
1
+ import{Cf as _Z,Df as SZ,Ef as vz}from"./cli-0.5.14-fbvy5zb9.mjs";import{Ig as JJ,Jg as tQ}from"./cli-0.5.14-4h0hxm6g.mjs";import{lh as ZJ,mh as oQ}from"./cli-0.5.14-s6vd2h5w.mjs";import{$N as d0,AN as hQ,Am as yZ,BQ as XQ,Di as UZ,EQ as kZ,Ei as MQ,Fx as kQ,Gx as VX,Jt as GQ,Km as aJ,Kt as LQ,Lt as vQ,Mi as UJ,Mt as yQ,Ni as jJ,Om as Cz,QQ as eJ,Qt as FQ,RN as RQ,Rt as KQ,Ui as SJ,VN as xQ,Vq as qJ,WN as $Q,YN as $Z,ZN as fQ,Zq as Bz,aO as uQ,am as lJ,bm as bz,bu as _Q,cO as gJ,dO as mJ,eO as pQ,eu as qX,fO as dQ,hO as FZ,hj as xZ,ij as JX,im as bQ,iy as EZ,jm as zX,jy as CZ,ky as bZ,ly as kJ,my as IQ,ny as IJ,ty as o0,uy as TJ,vy as hJ,wy as RJ,xQ as sJ,xx as SQ,xy as wz,ym as rJ,yx as YX}from"./cli-0.5.14-jf3et57a.mjs";import{gS as CQ,pS as WX}from"./cli-0.5.14-6fk534v0.mjs";import{NV as BZ,OV as oZ,cW as tZ,gW as rQ,hW as OZ,iW as XX}from"./cli-0.5.14-ya2ykcd6.mjs";import{$W as p0,$X as gz,DY as f0,FW as x0,RX as EQ,SX as QX,YX as C,ZX as HQ,_X as g,dX as PZ,vW as aZ,wW as lQ}from"./cli-0.5.14-r8f2hssc.mjs";import{a0 as $0,b0 as B,c0 as $,d0 as L0}from"./cli-0.5.14-tgeskqzs.mjs";import{e0 as R0}from"./cli-0.5.14-anv6260e.mjs";import{A0 as sZ,B0 as eZ,C0 as aQ}from"./cli-0.5.14-avm7rqss.mjs";import{E3 as BQ,F3 as cz,K3 as s0,K4 as Ez,N3 as e0,f4 as nJ,p4 as iJ}from"./cli-0.5.14-1d34ehpy.mjs";import{e5 as RZ,f5 as ez}from"./cli-0.5.14-1n5t7fhh.mjs";import{B_ as ZX,N$ as VZ,Pba as ZQ,V$ as rZ,h_ as jQ,i7 as v0,j7 as lZ,vba as wZ}from"./cli-0.5.14-ndq9rhn7.mjs";import{Ida as t0,Pda as jz,xda as NZ,yda as MJ}from"./cli-0.5.14-yms71vy8.mjs";import{$ea as Mz,Dfa as Vz,_ea as vZ,lfa as HZ,qfa as GZ,rfa as LZ}from"./cli-0.5.14-rj1nh8jm.mjs";import{Qga as c0,Tga as dz}from"./cli-0.5.14-6raawc34.mjs";import{Fha as sz,vha as UQ}from"./cli-0.5.14-p8gq7nq3.mjs";import{Fma as DQ,dna as tz}from"./cli-0.5.14-gm5kmg2w.mjs";import{Koa as A0,Ooa as N0}from"./cli-0.5.14-hanfd2pz.mjs";function cZ(J){let Z=qZ.c(6),{children:Q}=J,[z,X]=F0.useState(null),[W,q]=F0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(pZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(uZ.Provider,{value:X,children:B(dZ.Provider,{value:q,children:B(fZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function gZ(){return F0.useContext(fZ)}function mZ(){return F0.useContext(pZ)}function DX(J){let Z=qZ.c(8),Q=F0.useContext(uZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}function UX(J){let Z=qZ.c(8),Q=F0.useContext(dZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}var qZ,F0,fZ,uZ,pZ,dZ;var nZ=N0(()=>{L0();qZ=A0(x0(),1),F0=A0(R0(),1),fZ=F0.createContext(null),uZ=F0.createContext(null),pZ=F0.createContext(null),dZ=F0.createContext(null)});function YZ(J){return J.type==="attachment"&&iQ.has(J.attachment.type)}var nQ,iQ;var AZ=N0(()=>{nQ=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],iQ=new Set(nQ)});import{fileURLToPath as sQ}from"url";function pX(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function eQ(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Zz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Zz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function dX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||YZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=eQ(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function cX(J){let Z=i0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:b}=BZ(),[_,N]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:N},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??zz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,S;if(Z[3]!==K||Z[4]!==Y)S=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=S;else S=Z[5];let H0=q0.useSyncExternalStore(E,S),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Jz,Y0),p0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Wz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let w0=Q0?0:1,T;if(Z[9]!==Q)T=B(DZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==w0)i=$(JJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:w0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=w0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Xz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(C,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let k;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)k=$(C,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=k;else k=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(qz,{}),w=B(Yz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=$(C,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(C,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==b||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(tZ,{value:{rows:O-iZ-1,columns:b-4,scrollRef:V??null},children:$(C,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-iZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(C,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(b)})}),B(C,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=b,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==k||Z[39]!==U||Z[40]!==R)s=$(cZ,{children:[k,U,R]}),Z[38]=k,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$($0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Jz(){if(!p0())return;let J=aZ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Qz,()=>{J.onHyperlinkClick=void 0}}function Qz(J){if(J.startsWith("file:"))try{sZ(sQ(J))}catch{}else eZ(J)}function zz(){}function Xz(J){let Z=i0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${VZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(C,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(C,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Wz(J){let Z=i0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(C,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function qz(){let J=i0.c(4),Z=gZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(ZJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Yz(){let J=i0.c(2),Z=mZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var i0,q0,iZ=2,DZ;var QJ=N0(()=>{lZ();rQ();nZ();oZ();tQ();lQ();f0();aQ();PZ();rZ();AZ();oQ();L0();i0=A0(x0(),1),q0=A0(R0(),1),DZ=q0.createContext({setStickyPrompt:()=>{}})});function zJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var XJ=()=>{};function WJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${HZ}`))return!1;if(UZ(Z.text,GZ)!=="completed")return!1;return UZ(Z.text,LZ)?.startsWith(qJ)??!1}function YJ(J,Z){if(!p0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(WJ(X)){let W=0;while(z<J.length&&WJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${HZ}><${GZ}>completed</${GZ}><${LZ}>${W} background commands completed</${LZ}></${HZ}>`}]}})}else Q.push(X),z++}return Q}var VJ=N0(()=>{Vz();Bz();PZ();FZ()});function BJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function HJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(BJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!BJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var GJ=()=>{};function LJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function FJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(LJ(z)){let X=0;while(Q<J.length&&LJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var KJ=()=>{};function Hz(J){let Z=NJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),NJ.set(J,Z);return Z}function jZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function wJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Hz(Z),X=new Map;for(let F of J){let P=jZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=jZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=jZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let b=O.message.content[0].id,_=V.get(b);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var NJ;var OJ=N0(()=>{NJ=new WeakMap});function KZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Gz(J).toLowerCase();return DJ.set(J,Q),Q}function Gz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=PJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!PJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Fz(J.toolUseResult));Z=W.join(`
2
+ `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Lz(W.input)];return[]}).join(`
3
+ `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
+ `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
+ `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
+ `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(AJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+AJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Lz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
+ `)}function Fz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
+ `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
+ `))}return Q.join(`
10
+ `)}var AJ="</system-reminder>",PJ,DJ;var MZ=N0(()=>{FZ();PJ=new Set([UJ,jJ]),DJ=new WeakMap});function bJ(J){let Z=EJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Kz)))return null;let W=NZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(C,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Kz(J){return J.type==="text"}var EJ;var CJ=N0(()=>{MJ();f0();L0();EJ=A0(x0(),1)});function yJ(J){let Z=vJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(Nz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=C,V=NZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function Nz(J){return J.type==="text"}var vJ;var _J=N0(()=>{MJ();f0();L0();vJ=A0(x0(),1)});function fJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(EZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(EZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function Oz(J){let Z=xJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,b=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)D=N&&(bZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?kJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,S;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)S=_||N?[]:mJ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=S;else S=Z[14];let H0=S,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let k=_||N?SJ:gJ(Q,O);Y0=dJ(Q,K,Y,k,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let k;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let U=w.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];k=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=k}else k=Z[25];h=k}else if(N){let k;if(Z[28]!==Y||Z[29]!==Q)k=bZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=k;else k=Z[30];h=k}else{let k;if(Z[31]!==Y||Z[32]!==Q){let W0=d0(Q);k=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=k}else k=Z[33];h=k}let z0;if(Z[34]!==E||Z[35]!==b)z0=b&&E.type==="assistant"&&E.message.content.some(Az)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=b,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,w0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==b||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==w0||Z[52]!==W||Z[53]!==V)T=B(RJ,{message:Q,lookups:O,addMargin:X0,containerWidth:w0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:b,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=b,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=w0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let k;if(Z[55]!==i)k=B(o0,{children:i}),Z[55]=i,Z[56]=k;else k=Z[56];return k}let o;if(Z[57]!==E||Z[58]!==b)o=$(C,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(yJ,{message:E,isTranscriptMode:b}),B(bJ,{message:E,isTranscriptMode:b})]}),Z[57]=E,Z[58]=b,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(o0,{children:$(C,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function Az(J){return J.type==="text"}function Pz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).some((X)=>Z.has(X));let Q=d0(J);return!!Q&&Z.has(Q)}function Dz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=d0(J);return!Q||Z.has(Q)}function Uz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&hJ(Z.message))return!1;let X=Pz(J.message,J.streamingToolUseIDs),W=Dz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var xJ,$J,uJ;var pJ=N0(()=>{f0();IJ();FZ();wz();CJ();cJ();_J();TJ();L0();xJ=A0(x0(),1),$J=A0(R0(),1);uJ=$J.memo(Oz,Uz)});import{relative as yz}from"path";function oJ(J){return Rz.filter((Z)=>Z.isActive(J))}var _z,Sz,kz,Iz,Tz,hz,Rz;var tJ=N0(()=>{f0();eJ();lZ();Mz();jz();Ez();vz();Cz();bz();L0();_z={id:"large-memory-files",type:"warning",isActive:(J)=>kZ(J.memoryFiles).length>0,render:(J)=>{let Z=kZ(J.memoryFiles);return B($0,{children:Z.map((Q)=>{let z=Q.path.startsWith(vZ())?yz(vZ(),Q.path):Q.path;return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",t0(Q.content.length)," chars >"," ",t0(sJ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},Sz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=s0();return iJ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=s0();return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},kz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return!!nJ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},Iz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return $(C,{flexDirection:"column",marginTop:1,children:[$(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(C,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},Tz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return SZ(J.agentDefinitions)>_Z},render:(J)=>{let Z=SZ(J.agentDefinitions);return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",t0(Z)," tokens >"," ",t0(_Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},hz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!rJ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=yZ();return Q!==null&&!lJ(Q)},render:()=>{let J=yZ(),Z=aJ(J);return $(C,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},Rz=[_z,Tz,Sz,kz,Iz,hz]});async function xz(){if(ZZ)return ZZ;return ZZ=XQ().then((J)=>{JZ=J}).finally(()=>{ZZ=null}),ZZ}function QQ(J){let Z=JQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=l0.useState(JZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(JZ.length>0){X(JZ);return}xz().then(()=>{X(JZ)})},Z[0]=W;else W=Z[0];l0.useEffect(W,[W]);let V={config:wZ(),agentDefinitions:Q,memoryFiles:z},Y=oJ(V);if(Y.length===0)return null;let K=C,F="column",P=1,v=Y.map((I)=>B(l0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var JQ,l0,JZ,ZZ=null;var zQ=N0(()=>{f0();eJ();ZQ();tJ();L0();JQ=A0(x0(),1),l0=A0(R0(),1),JZ=[]});function WQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??pz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let U=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(U/uz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,b=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),U=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let w=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);w[0]=0;for(let U=0;U<D;U++)w[U+1]=w[U]+(z.current.get(Z[U])??$z);q.current={arr:w,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,S;if(M)[E,S]=M,E=Math.min(E,D),S=Math.min(S,D);else if(_===0||O<0)E=Math.max(0,D-fz),S=D;else{if(N){let V0=_+r0;E=D;while(E>0&&J0-p[E-1]<V0)E--;S=D}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+b),g0=Math.max(O,O+b),y0=g0-M0,D0=y0>G0?b<0?g0-G0:M0:M0,I0=D0+Math.min(y0,G0),m0=Math.max(0,D0-V0),T0=I0-V0,b0=m0-r0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let n0=_+2*r0,a0=Math.min(D,E+QZ),_0=0;S=E;while(S<a0&&(_0<n0||p[S]<T0+_+r0))_0+=z.current.get(Z[S])??IZ,S++}let w=_+2*r0,U=Math.max(0,S-QZ),R=0;for(let V0=E;V0<S;V0++)R+=z.current.get(Z[V0])??IZ;while(E>U&&R<w)E--,R+=z.current.get(Z[E])??IZ;let s=P.current,O0=Math.abs(O-W.current)+Math.abs(b);if(s&&O0>_*2){let[V0,G0]=s;if(E<V0-zZ)E=V0-zZ;if(S>G0+zZ)S=G0+zZ;if(E>S)S=Math.min(E+zZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,S];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(S),l=E<H0?H0:E,h=S>Y0?Y0:S;if(l>h||N)l=E,h=S;if(b>0)h=S;if(h-l>QZ){let w=(p[l]+p[h])/2;if(O-I.current<w)h=l+QZ;else l=h-QZ}let z0=I.current,Q0=p[l],X0=l===0?0:Q0+z0,w0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,w0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let O0=s.yogaNode;if(!O0)continue;let V0=O0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(O0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((w)=>{let U=Y.current.get(w);if(!U)U=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let O0=s.getComputedHeight();if((O0>0||s.getComputedWidth()>0)&&z.current.get(w)!==O0)z.current.set(w,O0),X.current++}V.current.delete(w)}},Y.current.set(w,U);return U},[]),i=m.useCallback((w)=>{let U=V.current.get(Z[w])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),k=m.useCallback((w)=>{let U=q.current;if(w<0||w>=U.n)return;J.current?.scrollTo(U.arr[w]+I.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:k}}var m,$z=3,r0=80,fz=30,uz,IZ=1,QZ=300,zZ=25,pz=()=>{};var qQ=N0(()=>{m=A0(R0(),1),uz=r0>>1});function mz(J){let Z=YQ.get(J);if(Z!==void 0)return Z;let Q=KZ(J);return YQ.set(J,Q),Q}function iz(J){let Z=VQ.get(J);if(Z!==void 0)return Z;let Q=lz(J);return VQ.set(J,Q),Q}function lz(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
+ `)}if(Z===null)return null;let Q=FQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function rz(J){let Z=NQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let b;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)b=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=b;else b=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let D;if(Z[19]!==_||Z[20]!==N)D=B(HQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==b||Z[28]!==D)p=B(C,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:b,children:D}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=b,Z[28]=D,Z[29]=p;else p=Z[29];return p}function wQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=mz,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),b=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==b.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));b.current=J,_.current=z;let N=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:S,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=WQ(Z,N,Q),[Q0,X0]=D,w0=y.useCallback((H)=>{if(h(H)===0)return!1;return GQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(f)=>v?.({uuid:f.uuid,msgType:f.type,expanded:!1,toolName:LQ(f)?.name}),L=F??-1,A=(f,n,a=w0)=>{for(let c=f;c>=0&&c<J.length;c+=n)if(a(c))return H(J[c]),!0;return!1},x=(f)=>w0(f)&&J[f].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,w0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),k=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),O0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-TZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let f=Math.max(0,Math.min(H,x.length-1)),n=x[f],a=T.current.getItemTop(A),c=L.getViewportTop(),e=a-L.getScrollTop(),h0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+h0)L.scrollTo(Math.max(0,a+n.row-TZ)),e=a-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:f});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+f+1;I?.(U0,j0),c0(`highlight(i=${A}, ord=${f}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,g0]=y.useState(0),y0=y.useCallback(()=>g0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,f=Z.current;if(!f)return;let{getItemElement:n,getItemTop:a,scrollToIndex:c}=T.current,e=n(L),h0=e?.yogaNode?.getComputedHeight()??0;if(!e||h0===0){if(x>1){i.current=null,c0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,f.scrollTo(Math.max(0,a(L)-TZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},c0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++k.current>20){k.current=0;return}w.current(A?-1:1);return}k.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,w.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:f,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let a=f(H),c=a?.yogaNode?.getComputedHeight()??0;if(a&&c>0)A.scrollTo(V0(H));else n(H);y0()}function I0(H){let L=R.current,{matches:A,prefixSum:x}=L,f=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,a=L.screenOrd+H;if(a>=0&&a<n.length){L.screenOrd=a,G0(a),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,c0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??f:x[c]+1;I?.(f,e)}w.current=I0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let S0=Y(U0[j0]),G=S0.indexOf(L),j=0;while(G>=0)j++,G=S0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let f=x.at(-1),n=0,a=Z.current,{offsets:c,start:e,getItemTop:h0}=T.current,P0=h0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&a){let U0=s.current>=0?s.current:a.getScrollTop(),j0=1/0;for(let S0=0;S0<A.length;S0++){let G=Math.abs(E0+c[A[S0]]-U0);if(G<=j0)j0=G,n=S0}c0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&a)a.scrollTo(s.current);I?.(f,A.length>0?x[n+1]??f:0)},nextMatch:()=>I0(1),prevMatch:()=>I0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(O0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await BQ(0);let a=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-a}let f=Math.round(performance.now()-x);return c0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${f}ms chunks=${Math.ceil(H.length/L)}`),O0.current=!0,Math.round(A)}}),[Z]);let[m0,T0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:T0});b0.current={onItemClick:W,setHoveredKey:T0};let n0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),a0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $($0,{children:[B(C,{ref:S,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],f=!!W&&(q?.(H)??!0),n=f&&m0===x,a=V?.(H);return B(rz,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:a,hovered:n,clickable:f,onClickK:n0,onEnterK:a0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(C,{height:J0,flexShrink:0}),K&&B(oz,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function oz({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(DZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??az,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let D=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let N=Q-1;N>=Z;N--){let D=X(N);if(D>=0){if(D<F)break;v=D}P=N}let M=-1,I=null;if(P>0&&!K)for(let N=P-1;N>=0;N--){let D=iz(J[N]);if(D===null)continue;let p=X(N);if(p>=0&&p+1>=F)continue;M=N,I=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),b=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(b.current==="armed"){b.current="force";return}let N=b.current==="force";if(b.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let D=I.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,nz).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,S=d;V({text:J0,scrollTo:()=>{V("clicked"),b.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(S),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var NQ,y,TZ=3,YQ,nz=500,VQ,az=()=>{};var OQ=N0(()=>{qQ();f0();gz();QJ();dz();cz();MZ();KQ();L0();NQ=A0(x0(),1),y=A0(R0(),1),YQ=new WeakMap;VQ=new WeakMap});function LX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function FX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function wX(J,Z,Q=KX,z=NX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function PQ(J){return(J.type==="assistant"||J.type==="user"?d0(J):null)??J.uuid}function AX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function dJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=d0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(pQ(q,"PostToolUse",W))return!1;return zJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var TQ,XZ,u,BX,HX=null,AQ=null,GX=null,hZ=30,KX=200,NX=50,OX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,streamingText:b,isBriefOnly:_=!1,unseenDivider:N,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=BZ(),w0=bQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=u.useMemo(()=>$Z(J).filter(RQ),[J]),i=u.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=u.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let r=B0.length-1;r>=0;r--)if(B0[r]?.type==="thinking")return`${j.uuid}:${r}`}else if(j?.type==="user"){if(!j.message.content.some((r)=>r.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=u.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let r of B0)if(r.type==="text"){let K0=r.text;if(K0.startsWith("<bash-stdout")||K0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),k=u.useMemo(()=>dQ(T),[T]),W0=u.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!k.has(G.contentBlock.id)),[F,q,k]),w=u.useMemo(()=>W0.flatMap((G)=>{let j=hQ({content:[G.contentBlock]});return j.uuid=MQ(G.contentBlock.id,0),$Z([j])}),[W0]),U=K==="transcript",R=u.useMemo(()=>UQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,O0=U&&!P&&!s,V0=u.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:g0,hiddenMessageCount:y0}=u.useMemo(()=>{let G=z||p0()?T:xQ(T,{includeSnipped:!0}),j=fQ(G.filter((k0)=>k0.type!=="progress").filter((k0)=>!YZ(k0)).filter((k0)=>$Q(k0,U)),w),B0=[AQ,GX].filter((k0)=>k0!==null),r=[AQ].filter((k0)=>k0!==null),K0=B0.length>0&&!U?_?LX(j,B0):r.length>0?FX(j,r):j:j,C0=O0?K0.slice(-hZ):K0,WZ=O0&&K0.length>hZ,{messages:u0}=wJ(C0,Z,z),cQ=YJ(HJ(FJ(IQ(u0,Z))),z),gQ=uQ(T,C0),mQ=j.length-hZ;return{collapsed:cQ,lookups:gQ,hasTruncatedMessages:WZ,hiddenMessageCount:mQ}},[z,T,U,w,O0,Z,_]),D0=u.useMemo(()=>{let j=!s&&!Y0?wX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),I0=u.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),m0=_Q((G)=>G.tasks),T0=M0.asyncLaunchedToolUseIDs,b0=u.useMemo(()=>{if(T0.size===0)return null;let G=new Set;for(let[j,B0]of T0){let r=m0?.[B0]?.status;if(r==="running"||r==="requested"||r==="queued")G.add(j)}return G.size>0?G:null},[m0,T0]),n0=u.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),a0=u.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[N,D0]),_0=u.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=u.useState(()=>new Set),A=u.useCallback((G)=>{let j=PQ(G);L((B0)=>{let r=new Set(B0);if(r.has(j))r.delete(j);else r.add(j);return r})},[]),x=u.useCallback((G)=>H.size>0&&H.has(PQ(G)),[H]),f=u.useRef(M0);f.current=M0;let n=u.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let K0=G.message.content[0];return K0!=null&&CQ(K0)&&K0.type==="advisor_tool_result"&&K0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=f.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?xZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),a=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=n0.size>0,{progress:e}=EQ(),h0=u.useRef(null),P0=wZ().terminalProgressBarEnabled&&!DQ()&&!(HX?.isProactiveActive()??!1);u.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(h0.current===G)return;h0.current=G,e(G)},[e,P0,c]),u.useEffect(()=>{return()=>e(null)},[e]);let E0=u.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,r=G.type==="user"&&B0==="user",K0=G.type==="collapsed_read_search"&&(!!b||fJ(D0,j,Z,I0)),C0=E0(G),WZ=B(uJ,{message:G,isUserContinuation:r,hasContentAfter:K0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:n0,streamingToolUseIDs:I0,screen:K,canAnimate:a,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),u0=B(vQ.Provider,{value:j===_0,children:WZ},C0);if(N&&j===a0)return[B(C,{marginTop:1,children:B(OZ,{title:`${N.count} new ${VZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),u0];return u0},j0=u.useRef(new WeakMap),S0=u.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=KZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let K0=G.message.content.find((C0)=>C0.type==="tool_result");if(K0&&"tool_use_id"in K0){let C0=M0.toolUseByToolUseID.get(K0.tool_use_id),u0=(C0&&xZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(u0!==void 0)B0=u0}}let r=B0.toLowerCase();return j0.current.set(G,r),r},[Z,M0]);return $($0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(BX,{agentDefinitions:v}),g0&&B(OZ,{title:`${w0} to show ${RZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(OZ,{title:`${w0} to hide ${RZ.bold(y0)} previous messages`,width:X0}),s?B(yQ.Provider,{value:!0,children:B(wQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,extractSearchText:S0})}):D0.flatMap(U0),b&&!_&&B(C,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(C,{flexDirection:"row",children:[B(C,{minWidth:2,children:B(g,{color:"text",children:jQ})}),B(C,{flexDirection:"column",children:B(SQ,{children:b})})]})}),i&&O&&!_&&B(C,{marginTop:1,children:B(kQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},C8;var cJ=N0(()=>{ez();XJ();tz();ZX();oZ();QX();f0();zX();qX();JX();WX();VJ();GJ();IJ();KJ();ZQ();sz();PZ();OJ();FZ();rZ();MZ();XX();YX();pJ();KQ();VX();AZ();TJ();zQ();OQ();L0();TQ=A0(x0(),1),XZ=A0(R0(),1),u=A0(R0(),1),BX=XZ.memo(function(Z){let Q=TQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(o0,{children:$(C,{flexDirection:"column",gap:1,children:[X,B(XZ.Suspense,{fallback:null,children:B(QQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});C8=XZ.memo(OX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(AX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
+ export{DX as He,UX as Ie,nZ as Je,pX as Ke,dX as Le,cX as Me,QJ as Ne,C8 as Oe,cJ as Pe};