@stevenzxs/ccharness 1.0.0

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 (459) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +406 -0
  3. package/dist/chunk-01jednzd.js +120 -0
  4. package/dist/chunk-03cv5q8d.js +10 -0
  5. package/dist/chunk-03eejbgx.js +32 -0
  6. package/dist/chunk-042vrke6.js +4261 -0
  7. package/dist/chunk-0fnzcgq4.js +1299 -0
  8. package/dist/chunk-0mhg1dcb.js +84 -0
  9. package/dist/chunk-0ngh0jb0.js +2336 -0
  10. package/dist/chunk-0npp1cpj.js +908 -0
  11. package/dist/chunk-0p7xnx81.js +534 -0
  12. package/dist/chunk-0qj905nt.js +18 -0
  13. package/dist/chunk-0r9kq1re.js +566 -0
  14. package/dist/chunk-0s832ncn.js +713 -0
  15. package/dist/chunk-0wb0snn7.js +17 -0
  16. package/dist/chunk-0xm6pgm7.js +376 -0
  17. package/dist/chunk-11q9h2zt.js +2343 -0
  18. package/dist/chunk-13qesvnw.js +17 -0
  19. package/dist/chunk-194x9yzh.js +8960 -0
  20. package/dist/chunk-1aa9c3d5.js +862 -0
  21. package/dist/chunk-1c1ddsyx.js +6108 -0
  22. package/dist/chunk-1cjgpxgb.js +39 -0
  23. package/dist/chunk-1cn5msrh.js +20 -0
  24. package/dist/chunk-1enn4hgk.js +257 -0
  25. package/dist/chunk-1j7ycg2n.js +195 -0
  26. package/dist/chunk-1jmyrzma.js +299 -0
  27. package/dist/chunk-1mx08tbr.js +40 -0
  28. package/dist/chunk-1q66qfgx.js +202 -0
  29. package/dist/chunk-1syefx6d.js +20 -0
  30. package/dist/chunk-1wwv77m7.js +849 -0
  31. package/dist/chunk-1z29we12.js +122 -0
  32. package/dist/chunk-1zbwhcbt.js +1124 -0
  33. package/dist/chunk-1zktckzd.js +85 -0
  34. package/dist/chunk-209sxdcw.js +822 -0
  35. package/dist/chunk-234ed7mp.js +56 -0
  36. package/dist/chunk-26rd7jy7.js +48 -0
  37. package/dist/chunk-282tvg56.js +140 -0
  38. package/dist/chunk-2cbewcew.js +61 -0
  39. package/dist/chunk-2fyw5sbr.js +48 -0
  40. package/dist/chunk-2jxsyb98.js +70 -0
  41. package/dist/chunk-2mknyk0c.js +27 -0
  42. package/dist/chunk-2mwnwp0n.js +17 -0
  43. package/dist/chunk-2whhcyfm.js +10510 -0
  44. package/dist/chunk-2xgpm00c.js +4521 -0
  45. package/dist/chunk-2z444jcw.js +15 -0
  46. package/dist/chunk-2zvkzqg5.js +128 -0
  47. package/dist/chunk-306bhqkx.js +145 -0
  48. package/dist/chunk-32thc3se.js +10 -0
  49. package/dist/chunk-347yx4gw.js +113 -0
  50. package/dist/chunk-34q7gfz5.js +192 -0
  51. package/dist/chunk-374tvt0h.js +338 -0
  52. package/dist/chunk-375qesdp.js +8 -0
  53. package/dist/chunk-39se7s7y.js +220 -0
  54. package/dist/chunk-3abaq08g.js +34 -0
  55. package/dist/chunk-3e1qyt7r.js +19 -0
  56. package/dist/chunk-3j4m1cvv.js +105 -0
  57. package/dist/chunk-3kxndhf2.js +157 -0
  58. package/dist/chunk-3njc6nav.js +186 -0
  59. package/dist/chunk-3pvn6ah4.js +1170 -0
  60. package/dist/chunk-3sk5rm8d.js +95 -0
  61. package/dist/chunk-3t6vgvxc.js +48 -0
  62. package/dist/chunk-3vfxjn7g.js +19 -0
  63. package/dist/chunk-3vsvh26y.js +6373 -0
  64. package/dist/chunk-3yx3n6jw.js +58 -0
  65. package/dist/chunk-48dm35w8.js +83 -0
  66. package/dist/chunk-4a189mn2.js +103 -0
  67. package/dist/chunk-4a1qse8t.js +227 -0
  68. package/dist/chunk-4a4fx0xe.js +44 -0
  69. package/dist/chunk-4av0ctrw.js +802 -0
  70. package/dist/chunk-4dv3xe3v.js +374 -0
  71. package/dist/chunk-4em69zqw.js +111 -0
  72. package/dist/chunk-4gqqcvtg.js +216 -0
  73. package/dist/chunk-4jzrntm7.js +49145 -0
  74. package/dist/chunk-4qvwjbrw.js +80 -0
  75. package/dist/chunk-4sp6y0dv.js +253 -0
  76. package/dist/chunk-4spgkgr3.js +43 -0
  77. package/dist/chunk-4zp30qkp.js +117 -0
  78. package/dist/chunk-51ys6evg.js +165 -0
  79. package/dist/chunk-55qmd5p0.js +438 -0
  80. package/dist/chunk-573t7mpp.js +107 -0
  81. package/dist/chunk-57ed32yz.js +8066 -0
  82. package/dist/chunk-5g5bryqc.js +38 -0
  83. package/dist/chunk-5k0tng2r.js +10 -0
  84. package/dist/chunk-5kxbf62g.js +3094 -0
  85. package/dist/chunk-5wz280hj.js +266 -0
  86. package/dist/chunk-5x8hzf5m.js +268 -0
  87. package/dist/chunk-5xhv7689.js +722 -0
  88. package/dist/chunk-5yc6h8kt.js +110 -0
  89. package/dist/chunk-5ygzvfm4.js +3038 -0
  90. package/dist/chunk-63tc1z9e.js +336 -0
  91. package/dist/chunk-66e8xb1w.js +164 -0
  92. package/dist/chunk-67c4kyv7.js +90 -0
  93. package/dist/chunk-69ps473h.js +44 -0
  94. package/dist/chunk-6d97n5jn.js +107 -0
  95. package/dist/chunk-6dm2bx09.js +155 -0
  96. package/dist/chunk-6fzm4ea8.js +5018 -0
  97. package/dist/chunk-6jbf0ekc.js +265 -0
  98. package/dist/chunk-6kyxcqx3.js +229 -0
  99. package/dist/chunk-6q4fnetz.js +62 -0
  100. package/dist/chunk-6sehqbsm.js +726 -0
  101. package/dist/chunk-6x35ffpx.js +690 -0
  102. package/dist/chunk-6yfg5pfx.js +2644 -0
  103. package/dist/chunk-6zwjwn6w.js +87 -0
  104. package/dist/chunk-70hm8n53.js +17 -0
  105. package/dist/chunk-71sdcaq6.js +15 -0
  106. package/dist/chunk-74pb40hq.js +276 -0
  107. package/dist/chunk-7626fyn7.js +378 -0
  108. package/dist/chunk-777cd44d.js +8 -0
  109. package/dist/chunk-77pdadam.js +22 -0
  110. package/dist/chunk-78vwdsak.js +74 -0
  111. package/dist/chunk-7bjf740p.js +114 -0
  112. package/dist/chunk-7bz577cx.js +88 -0
  113. package/dist/chunk-7ch74x91.js +55 -0
  114. package/dist/chunk-7ffm3cf1.js +15 -0
  115. package/dist/chunk-7fxg2tat.js +1525 -0
  116. package/dist/chunk-7gqmtz5b.js +67 -0
  117. package/dist/chunk-7gyv4cj4.js +8 -0
  118. package/dist/chunk-7j06h9fj.js +469 -0
  119. package/dist/chunk-7jf6txsy.js +339 -0
  120. package/dist/chunk-7kvwe19b.js +301 -0
  121. package/dist/chunk-7kzd2ds8.js +23 -0
  122. package/dist/chunk-7sgrwcng.js +42 -0
  123. package/dist/chunk-7vvp1p25.js +27 -0
  124. package/dist/chunk-87dph3k3.js +28 -0
  125. package/dist/chunk-88espsab.js +6956 -0
  126. package/dist/chunk-8ex99hk1.js +48 -0
  127. package/dist/chunk-8j4s2p99.js +154 -0
  128. package/dist/chunk-8pfg3tcr.js +432 -0
  129. package/dist/chunk-8rxpkg7r.js +349 -0
  130. package/dist/chunk-8sdgr592.js +101 -0
  131. package/dist/chunk-8sw7n98r.js +25 -0
  132. package/dist/chunk-8z0at2dq.js +97 -0
  133. package/dist/chunk-8z3rehw2.js +496 -0
  134. package/dist/chunk-8zpesm58.js +90 -0
  135. package/dist/chunk-903585x0.js +604 -0
  136. package/dist/chunk-90b9rgkz.js +38 -0
  137. package/dist/chunk-91ttqm6v.js +213 -0
  138. package/dist/chunk-935nrvdb.js +13 -0
  139. package/dist/chunk-93a5my23.js +8 -0
  140. package/dist/chunk-95nc5pzz.js +7 -0
  141. package/dist/chunk-96p9781m.js +123 -0
  142. package/dist/chunk-9756beve.js +641 -0
  143. package/dist/chunk-98xvtxww.js +654 -0
  144. package/dist/chunk-9a9g5hbj.js +205 -0
  145. package/dist/chunk-9djtdqy5.js +90 -0
  146. package/dist/chunk-9evz90jf.js +327 -0
  147. package/dist/chunk-9exe1kte.js +40763 -0
  148. package/dist/chunk-9g236dqe.js +100 -0
  149. package/dist/chunk-9hn8e6h1.js +12 -0
  150. package/dist/chunk-9tct10v3.js +342 -0
  151. package/dist/chunk-9trmzwqe.js +41 -0
  152. package/dist/chunk-9w6ckyk4.js +49 -0
  153. package/dist/chunk-9z4fsn6r.js +69 -0
  154. package/dist/chunk-a07hgnvm.js +16357 -0
  155. package/dist/chunk-a194z3ja.js +71 -0
  156. package/dist/chunk-a2qdxwan.js +133 -0
  157. package/dist/chunk-a6vvs35f.js +2058 -0
  158. package/dist/chunk-a7ad1tv5.js +5395 -0
  159. package/dist/chunk-aafrwrz7.js +92 -0
  160. package/dist/chunk-acpsvrmw.js +347 -0
  161. package/dist/chunk-adbw7d8r.js +73 -0
  162. package/dist/chunk-ae76ded0.js +30 -0
  163. package/dist/chunk-aedvgdnm.js +678 -0
  164. package/dist/chunk-aeysytks.js +216 -0
  165. package/dist/chunk-af9fsv4c.js +1581 -0
  166. package/dist/chunk-aheacmqy.js +552 -0
  167. package/dist/chunk-ahwfkdn9.js +212 -0
  168. package/dist/chunk-aj2wnn6h.js +94 -0
  169. package/dist/chunk-akjwkykc.js +726 -0
  170. package/dist/chunk-atk19d20.js +92 -0
  171. package/dist/chunk-awd0z66z.js +42 -0
  172. package/dist/chunk-az8c3v5c.js +283 -0
  173. package/dist/chunk-b3xqe5a1.js +387 -0
  174. package/dist/chunk-b912ty5v.js +1154 -0
  175. package/dist/chunk-b95s01h5.js +1059 -0
  176. package/dist/chunk-b9tfy4p2.js +812 -0
  177. package/dist/chunk-bax3zk4f.js +173 -0
  178. package/dist/chunk-bb6c9wwg.js +26 -0
  179. package/dist/chunk-bbg5s7cx.js +16 -0
  180. package/dist/chunk-bf8qbbrt.js +50 -0
  181. package/dist/chunk-bg4wwahn.js +130 -0
  182. package/dist/chunk-bj37yvxb.js +159 -0
  183. package/dist/chunk-bjrpafj5.js +412 -0
  184. package/dist/chunk-bjs56wah.js +71 -0
  185. package/dist/chunk-bpw95je2.js +36 -0
  186. package/dist/chunk-bq1dmt8g.js +105 -0
  187. package/dist/chunk-bs5mxhj4.js +328 -0
  188. package/dist/chunk-bs65rf69.js +825 -0
  189. package/dist/chunk-bvzcxq58.js +176 -0
  190. package/dist/chunk-bw1n8g13.js +880 -0
  191. package/dist/chunk-c13w1efw.js +1636 -0
  192. package/dist/chunk-cajgkary.js +30 -0
  193. package/dist/chunk-cbaqat9y.js +28 -0
  194. package/dist/chunk-cca2tn5v.js +275 -0
  195. package/dist/chunk-cgqmdweq.js +104 -0
  196. package/dist/chunk-cnkn7z01.js +527 -0
  197. package/dist/chunk-ctaj9d7k.js +75 -0
  198. package/dist/chunk-cxnskapn.js +94 -0
  199. package/dist/chunk-d82xy2py.js +26 -0
  200. package/dist/chunk-d8n53hz3.js +269 -0
  201. package/dist/chunk-d975tm51.js +39 -0
  202. package/dist/chunk-de6jnc66.js +117 -0
  203. package/dist/chunk-dgfqf6b3.js +41 -0
  204. package/dist/chunk-dnrj70b6.js +773 -0
  205. package/dist/chunk-dvkm4w3r.js +21933 -0
  206. package/dist/chunk-dwgqen1c.js +71 -0
  207. package/dist/chunk-dyb75cc3.js +250 -0
  208. package/dist/chunk-e3abfxpy.js +1486 -0
  209. package/dist/chunk-e4hf72fj.js +106 -0
  210. package/dist/chunk-ebd8xb7s.js +14358 -0
  211. package/dist/chunk-ebethay6.js +843 -0
  212. package/dist/chunk-egjbbxef.js +208 -0
  213. package/dist/chunk-ekqd8w68.js +229 -0
  214. package/dist/chunk-epy4wgm3.js +40174 -0
  215. package/dist/chunk-eq8qc7yv.js +173 -0
  216. package/dist/chunk-ewsf9n03.js +8035 -0
  217. package/dist/chunk-f1h81jgx.js +522 -0
  218. package/dist/chunk-f2baxyqh.js +15 -0
  219. package/dist/chunk-f3w8qrje.js +65 -0
  220. package/dist/chunk-f5ycj085.js +1529 -0
  221. package/dist/chunk-f77gmxaj.js +59 -0
  222. package/dist/chunk-fagt9n9h.js +224 -0
  223. package/dist/chunk-fejeqe61.js +785 -0
  224. package/dist/chunk-fkjcetzx.js +5289 -0
  225. package/dist/chunk-fqc61q2v.js +8 -0
  226. package/dist/chunk-fr10aqsa.js +120 -0
  227. package/dist/chunk-frhq1hpt.js +10476 -0
  228. package/dist/chunk-fv4mncer.js +37 -0
  229. package/dist/chunk-fvm3y2aw.js +24 -0
  230. package/dist/chunk-fyrdmq8b.js +172276 -0
  231. package/dist/chunk-g5d5aes1.js +244 -0
  232. package/dist/chunk-g5mk5cv9.js +699 -0
  233. package/dist/chunk-g68eqwpv.js +105 -0
  234. package/dist/chunk-g6egfc9x.js +90 -0
  235. package/dist/chunk-g6z0dtk4.js +87 -0
  236. package/dist/chunk-gbyt0sqy.js +87 -0
  237. package/dist/chunk-gf6vfkbx.js +145 -0
  238. package/dist/chunk-gffdheq0.js +469 -0
  239. package/dist/chunk-gftcezc3.js +28 -0
  240. package/dist/chunk-gjrcmf0a.js +752 -0
  241. package/dist/chunk-gr42wyg2.js +55 -0
  242. package/dist/chunk-grkjqdgn.js +16 -0
  243. package/dist/chunk-gshmd2yw.js +168 -0
  244. package/dist/chunk-gxa68634.js +144 -0
  245. package/dist/chunk-h12a4f4x.js +11 -0
  246. package/dist/chunk-h2bk9s70.js +584 -0
  247. package/dist/chunk-h2w85tq6.js +40 -0
  248. package/dist/chunk-h3my9t3s.js +3939 -0
  249. package/dist/chunk-h4przbpd.js +8 -0
  250. package/dist/chunk-h54bdww0.js +89 -0
  251. package/dist/chunk-h6b3xpyx.js +116 -0
  252. package/dist/chunk-h6mv3z3q.js +440 -0
  253. package/dist/chunk-h6zpcn90.js +306 -0
  254. package/dist/chunk-h8srsydp.js +131 -0
  255. package/dist/chunk-h94w1azy.js +655 -0
  256. package/dist/chunk-hac6gy6c.js +222 -0
  257. package/dist/chunk-hea15j0r.js +780 -0
  258. package/dist/chunk-hesm4r1j.js +97 -0
  259. package/dist/chunk-hg3f9p2g.js +90 -0
  260. package/dist/chunk-hhsxm2yr.js +67 -0
  261. package/dist/chunk-hrva39w4.js +644 -0
  262. package/dist/chunk-hx9yevdz.js +160 -0
  263. package/dist/chunk-hzrhynf9.js +93 -0
  264. package/dist/chunk-j1mep9ck.js +62 -0
  265. package/dist/chunk-j5dz6w3t.js +1095 -0
  266. package/dist/chunk-j9prrfnt.js +15 -0
  267. package/dist/chunk-jadwrr96.js +43 -0
  268. package/dist/chunk-jb95wx8d.js +17655 -0
  269. package/dist/chunk-jfxtms0h.js +1188 -0
  270. package/dist/chunk-jvjwkb33.js +91 -0
  271. package/dist/chunk-jxnyhchc.js +63 -0
  272. package/dist/chunk-k0zp1g16.js +81 -0
  273. package/dist/chunk-k293me7m.js +15 -0
  274. package/dist/chunk-kat2kq08.js +22 -0
  275. package/dist/chunk-kb3758f7.js +51 -0
  276. package/dist/chunk-kcn5ht05.js +119 -0
  277. package/dist/chunk-kf8wprgm.js +66 -0
  278. package/dist/chunk-kjfayq0m.js +20 -0
  279. package/dist/chunk-kt44dr06.js +8 -0
  280. package/dist/chunk-kv4bdhp2.js +23 -0
  281. package/dist/chunk-m28vg9w4.js +31 -0
  282. package/dist/chunk-m4p5x59f.js +198 -0
  283. package/dist/chunk-m6p9zbd3.js +3353 -0
  284. package/dist/chunk-ma3964ww.js +34 -0
  285. package/dist/chunk-ma7acpng.js +13877 -0
  286. package/dist/chunk-mdgtpe1j.js +152 -0
  287. package/dist/chunk-mexn06rd.js +32 -0
  288. package/dist/chunk-mezfesfw.js +184 -0
  289. package/dist/chunk-mjma578h.js +691 -0
  290. package/dist/chunk-mp683873.js +3445 -0
  291. package/dist/chunk-mss2zjet.js +336 -0
  292. package/dist/chunk-n6e5bfdv.js +115 -0
  293. package/dist/chunk-n7mjxcc9.js +125 -0
  294. package/dist/chunk-nbrtjcbx.js +22 -0
  295. package/dist/chunk-ncah28ha.js +1493 -0
  296. package/dist/chunk-nex0wzgy.js +57 -0
  297. package/dist/chunk-nf6abwpa.js +259 -0
  298. package/dist/chunk-ngmaba1s.js +998 -0
  299. package/dist/chunk-njsqzxq6.js +476 -0
  300. package/dist/chunk-nmc7ccvf.js +472 -0
  301. package/dist/chunk-nmctj9fp.js +169 -0
  302. package/dist/chunk-nmfb6gta.js +93 -0
  303. package/dist/chunk-npybxacd.js +12 -0
  304. package/dist/chunk-nt837qt9.js +21 -0
  305. package/dist/chunk-nx2b166v.js +307 -0
  306. package/dist/chunk-nyenvnv5.js +61 -0
  307. package/dist/chunk-nyygtkaf.js +16 -0
  308. package/dist/chunk-p5qfkg1n.js +88 -0
  309. package/dist/chunk-p8pe44w0.js +162 -0
  310. package/dist/chunk-p9kmn90n.js +123 -0
  311. package/dist/chunk-p9x9xxk0.js +22820 -0
  312. package/dist/chunk-pfxrg89f.js +547 -0
  313. package/dist/chunk-pjbtdqvd.js +542 -0
  314. package/dist/chunk-pqn009h9.js +524 -0
  315. package/dist/chunk-psrphhk1.js +110 -0
  316. package/dist/chunk-ptg4pxq2.js +17 -0
  317. package/dist/chunk-ptxteaeh.js +1591 -0
  318. package/dist/chunk-pvjx56m7.js +7 -0
  319. package/dist/chunk-pwtwa4tb.js +1866 -0
  320. package/dist/chunk-pxea1859.js +20 -0
  321. package/dist/chunk-pzc7b1as.js +281 -0
  322. package/dist/chunk-q2th5rh1.js +102 -0
  323. package/dist/chunk-q44zc68f.js +4301 -0
  324. package/dist/chunk-qbg3frga.js +617 -0
  325. package/dist/chunk-qcfh5q3c.js +500 -0
  326. package/dist/chunk-qdfny957.js +71 -0
  327. package/dist/chunk-qf7ay5nh.js +167 -0
  328. package/dist/chunk-qkfm4tcm.js +969 -0
  329. package/dist/chunk-qpdqga6e.js +4389 -0
  330. package/dist/chunk-qt41ewab.js +11 -0
  331. package/dist/chunk-qxjs7qz1.js +765 -0
  332. package/dist/chunk-qxqe7keq.js +434 -0
  333. package/dist/chunk-qy8abnde.js +246 -0
  334. package/dist/chunk-r0sxnp5m.js +1921 -0
  335. package/dist/chunk-r6gf53pt.js +55 -0
  336. package/dist/chunk-r7g10qt9.js +50 -0
  337. package/dist/chunk-r8sct2ra.js +372 -0
  338. package/dist/chunk-rab2bvaj.js +94 -0
  339. package/dist/chunk-rdh1tg36.js +348 -0
  340. package/dist/chunk-rey3eqc4.js +125 -0
  341. package/dist/chunk-rgp8gbze.js +22 -0
  342. package/dist/chunk-rk7zgj8p.js +110 -0
  343. package/dist/chunk-rrgnm3c8.js +444 -0
  344. package/dist/chunk-rtz05esa.js +420 -0
  345. package/dist/chunk-rv6qkhq1.js +106 -0
  346. package/dist/chunk-rvd9z5a6.js +401 -0
  347. package/dist/chunk-rvq18zge.js +89 -0
  348. package/dist/chunk-rwnrwswe.js +157 -0
  349. package/dist/chunk-rx8t9d35.js +1947 -0
  350. package/dist/chunk-rxjk5rqh.js +9300 -0
  351. package/dist/chunk-s15dnbca.js +1391 -0
  352. package/dist/chunk-s6jphnxf.js +890 -0
  353. package/dist/chunk-s84xxjq6.js +477 -0
  354. package/dist/chunk-sbe835v8.js +7180 -0
  355. package/dist/chunk-scpenbb1.js +101 -0
  356. package/dist/chunk-sdg602z1.js +107 -0
  357. package/dist/chunk-shfd6pyj.js +105 -0
  358. package/dist/chunk-sjwwzx4w.js +196 -0
  359. package/dist/chunk-smc5y1fg.js +116 -0
  360. package/dist/chunk-snazkzxc.js +208 -0
  361. package/dist/chunk-sqgq3m1k.js +674 -0
  362. package/dist/chunk-sws43beh.js +604 -0
  363. package/dist/chunk-sz6s8vez.js +61 -0
  364. package/dist/chunk-t311zhe1.js +650 -0
  365. package/dist/chunk-t3t3m6ct.js +248 -0
  366. package/dist/chunk-t4sd1deb.js +2833 -0
  367. package/dist/chunk-t50j5994.js +151 -0
  368. package/dist/chunk-t5ddzq5y.js +103 -0
  369. package/dist/chunk-t7fp7m5t.js +102 -0
  370. package/dist/chunk-t8t3heze.js +121 -0
  371. package/dist/chunk-ta4rpce6.js +6157 -0
  372. package/dist/chunk-tb0e2hbp.js +65 -0
  373. package/dist/chunk-tcqq8ke5.js +1090 -0
  374. package/dist/chunk-te02vrjm.js +37 -0
  375. package/dist/chunk-tejyzthb.js +57 -0
  376. package/dist/chunk-tfhj2mgk.js +84 -0
  377. package/dist/chunk-tny4dm1h.js +490 -0
  378. package/dist/chunk-tpw8vdr3.js +258 -0
  379. package/dist/chunk-txcw19t4.js +224 -0
  380. package/dist/chunk-v06cz9jg.js +3436 -0
  381. package/dist/chunk-v14184xm.js +15 -0
  382. package/dist/chunk-v3az1vfa.js +91 -0
  383. package/dist/chunk-v5a9q6rx.js +60 -0
  384. package/dist/chunk-v6nc1t8w.js +716 -0
  385. package/dist/chunk-v751e540.js +91 -0
  386. package/dist/chunk-v7wbqcx9.js +63 -0
  387. package/dist/chunk-vcws3xay.js +538 -0
  388. package/dist/chunk-vcxsx08f.js +692 -0
  389. package/dist/chunk-vgjkarkg.js +273 -0
  390. package/dist/chunk-vmm6xa3g.js +98 -0
  391. package/dist/chunk-vsaf1n7a.js +118 -0
  392. package/dist/chunk-vtrs0tbg.js +155 -0
  393. package/dist/chunk-vwenx8ke.js +17 -0
  394. package/dist/chunk-vynvgtv9.js +99 -0
  395. package/dist/chunk-w130c7py.js +8 -0
  396. package/dist/chunk-wbbc168v.js +86 -0
  397. package/dist/chunk-wcrynjb3.js +1318 -0
  398. package/dist/chunk-wcykd9dz.js +606 -0
  399. package/dist/chunk-wg49dzzw.js +70 -0
  400. package/dist/chunk-wvnevrpz.js +756 -0
  401. package/dist/chunk-wyhayzse.js +37 -0
  402. package/dist/chunk-wzfrqg89.js +154 -0
  403. package/dist/chunk-x0rdr3hk.js +46 -0
  404. package/dist/chunk-x29x93ew.js +276 -0
  405. package/dist/chunk-x4sn8s76.js +16606 -0
  406. package/dist/chunk-x5c1thpp.js +55 -0
  407. package/dist/chunk-x5rvjm61.js +790 -0
  408. package/dist/chunk-x6nfqy22.js +287 -0
  409. package/dist/chunk-x74zz3vk.js +1015 -0
  410. package/dist/chunk-x7qhxrp7.js +225 -0
  411. package/dist/chunk-x8b7vft8.js +132 -0
  412. package/dist/chunk-x97w78sk.js +184 -0
  413. package/dist/chunk-xbawq95y.js +54 -0
  414. package/dist/chunk-xbsrmmgy.js +182 -0
  415. package/dist/chunk-xbt0fq2z.js +5802 -0
  416. package/dist/chunk-xdh96gk4.js +277 -0
  417. package/dist/chunk-xdxh3hfr.js +48 -0
  418. package/dist/chunk-xfqm4h2q.js +93 -0
  419. package/dist/chunk-xhj7g13b.js +2149 -0
  420. package/dist/chunk-xnrrczn1.js +128 -0
  421. package/dist/chunk-xqh2hx7b.js +63 -0
  422. package/dist/chunk-xr6j6937.js +62 -0
  423. package/dist/chunk-xrw80zgd.js +4249 -0
  424. package/dist/chunk-xt0q34wh.js +42 -0
  425. package/dist/chunk-xxtjc1kg.js +287 -0
  426. package/dist/chunk-xzc41mwf.js +642 -0
  427. package/dist/chunk-y0gs0crz.js +96 -0
  428. package/dist/chunk-y1qx0711.js +463 -0
  429. package/dist/chunk-y405893n.js +38 -0
  430. package/dist/chunk-y4hbgvjh.js +281 -0
  431. package/dist/chunk-y53pnr6r.js +687 -0
  432. package/dist/chunk-y5patg9p.js +26839 -0
  433. package/dist/chunk-y652k86h.js +110 -0
  434. package/dist/chunk-y76wecg0.js +256 -0
  435. package/dist/chunk-y7qhj88c.js +752 -0
  436. package/dist/chunk-y8jghf88.js +782 -0
  437. package/dist/chunk-yax37pn8.js +154 -0
  438. package/dist/chunk-yd5jyegd.js +458 -0
  439. package/dist/chunk-yh10eg1t.js +130 -0
  440. package/dist/chunk-yjcwkfkw.js +714 -0
  441. package/dist/chunk-yprqkkn0.js +1551 -0
  442. package/dist/chunk-yrrqkx5b.js +100 -0
  443. package/dist/chunk-ytzryynn.js +8 -0
  444. package/dist/chunk-yw6zrcf0.js +444 -0
  445. package/dist/chunk-yyk23d9b.js +17 -0
  446. package/dist/chunk-z2dp53wn.js +17 -0
  447. package/dist/chunk-z3ypmw55.js +99 -0
  448. package/dist/chunk-z76974hz.js +2431 -0
  449. package/dist/chunk-zh6k7qjn.js +643 -0
  450. package/dist/chunk-zmg3j7cj.js +3198 -0
  451. package/dist/chunk-znjb1drt.js +424 -0
  452. package/dist/chunk-zpja93tc.js +1585 -0
  453. package/dist/chunk-zqr80ypg.js +318 -0
  454. package/dist/chunk-ztyr7rbj.js +29 -0
  455. package/dist/chunk-zv1z2sdj.js +32 -0
  456. package/dist/chunk-zv8tag16.js +177 -0
  457. package/dist/chunk-zvsevk48.js +391 -0
  458. package/dist/cli.js +194 -0
  459. package/package.json +165 -0
@@ -0,0 +1,1154 @@
1
+ // @bun
2
+ import {
3
+ init_staticRender,
4
+ renderToAnsiString
5
+ } from "./chunk-t7fp7m5t.js";
6
+ import {
7
+ StatusIcon,
8
+ init_StatusIcon
9
+ } from "./chunk-0mhg1dcb.js";
10
+ import {
11
+ BASH_TOOL_NAME,
12
+ FILE_READ_TOOL_NAME,
13
+ GREP_TOOL_NAME,
14
+ WEB_FETCH_TOOL_NAME,
15
+ analyzeContextUsage,
16
+ getMessagesAfterCompactBoundary,
17
+ init_analyzeContext,
18
+ init_messages1 as init_messages,
19
+ init_microCompact,
20
+ init_prompt,
21
+ init_prompt1 as init_prompt2,
22
+ init_prompt4 as init_prompt3,
23
+ init_toolName,
24
+ microcompactMessages
25
+ } from "./chunk-fyrdmq8b.js";
26
+ import"./chunk-1cjgpxgb.js";
27
+ import"./chunk-txcw19t4.js";
28
+ import"./chunk-yax37pn8.js";
29
+ import"./chunk-jxnyhchc.js";
30
+ import"./chunk-h94w1azy.js";
31
+ import"./chunk-y1qx0711.js";
32
+ import"./chunk-ptxteaeh.js";
33
+ import"./chunk-234ed7mp.js";
34
+ import"./chunk-bs65rf69.js";
35
+ import"./chunk-9a9g5hbj.js";
36
+ import"./chunk-9hn8e6h1.js";
37
+ import"./chunk-71sdcaq6.js";
38
+ import"./chunk-rrgnm3c8.js";
39
+ import"./chunk-s6jphnxf.js";
40
+ import"./chunk-qy8abnde.js";
41
+ import"./chunk-4gqqcvtg.js";
42
+ import"./chunk-z3ypmw55.js";
43
+ import"./chunk-hzrhynf9.js";
44
+ import"./chunk-yjcwkfkw.js";
45
+ import"./chunk-n7mjxcc9.js";
46
+ import"./chunk-4av0ctrw.js";
47
+ import {
48
+ ThemedBox_default,
49
+ ThemedText,
50
+ init_ink,
51
+ require_compiler_runtime
52
+ } from "./chunk-y5patg9p.js";
53
+ import"./chunk-psrphhk1.js";
54
+ import"./chunk-4spgkgr3.js";
55
+ import {
56
+ require_jsx_dev_runtime
57
+ } from "./chunk-b95s01h5.js";
58
+ import"./chunk-k293me7m.js";
59
+ import"./chunk-f77gmxaj.js";
60
+ import"./chunk-2cbewcew.js";
61
+ import"./chunk-x6nfqy22.js";
62
+ import"./chunk-s15dnbca.js";
63
+ import"./chunk-xqh2hx7b.js";
64
+ import"./chunk-935nrvdb.js";
65
+ import"./chunk-1z29we12.js";
66
+ import"./chunk-q44zc68f.js";
67
+ import"./chunk-4jzrntm7.js";
68
+ import {
69
+ getDisplayPath,
70
+ getSourceDisplayName,
71
+ init_constants,
72
+ init_file,
73
+ init_stringUtils
74
+ } from "./chunk-a07hgnvm.js";
75
+ import"./chunk-c13w1efw.js";
76
+ import"./chunk-91ttqm6v.js";
77
+ import"./chunk-6sehqbsm.js";
78
+ import"./chunk-qkfm4tcm.js";
79
+ import"./chunk-8rxpkg7r.js";
80
+ import"./chunk-d82xy2py.js";
81
+ import"./chunk-7kzd2ds8.js";
82
+ import"./chunk-vwenx8ke.js";
83
+ import"./chunk-rey3eqc4.js";
84
+ import"./chunk-ma7acpng.js";
85
+ import"./chunk-63tc1z9e.js";
86
+ import"./chunk-t50j5994.js";
87
+ import"./chunk-v06cz9jg.js";
88
+ import"./chunk-fejeqe61.js";
89
+ import"./chunk-e3abfxpy.js";
90
+ import"./chunk-6x35ffpx.js";
91
+ import"./chunk-1zbwhcbt.js";
92
+ import {
93
+ formatTokens,
94
+ init_format
95
+ } from "./chunk-5xhv7689.js";
96
+ import"./chunk-tejyzthb.js";
97
+ import"./chunk-j1mep9ck.js";
98
+ import"./chunk-t8t3heze.js";
99
+ import"./chunk-0fnzcgq4.js";
100
+ import"./chunk-rv6qkhq1.js";
101
+ import"./chunk-qbg3frga.js";
102
+ import"./chunk-9z4fsn6r.js";
103
+ import"./chunk-rgp8gbze.js";
104
+ import {
105
+ figures_default,
106
+ init_figures
107
+ } from "./chunk-sbe835v8.js";
108
+ import"./chunk-mss2zjet.js";
109
+ import"./chunk-m28vg9w4.js";
110
+ import"./chunk-03eejbgx.js";
111
+ import"./chunk-aeysytks.js";
112
+ import"./chunk-7fxg2tat.js";
113
+ import"./chunk-kb3758f7.js";
114
+ import"./chunk-347yx4gw.js";
115
+ import"./chunk-11q9h2zt.js";
116
+ import"./chunk-aheacmqy.js";
117
+ import"./chunk-kv4bdhp2.js";
118
+ import"./chunk-042vrke6.js";
119
+ import"./chunk-ebd8xb7s.js";
120
+ import"./chunk-y8jghf88.js";
121
+ import {
122
+ __esm,
123
+ __toESM
124
+ } from "./chunk-hhsxm2yr.js";
125
+
126
+ // src/utils/contextSuggestions.ts
127
+ function generateContextSuggestions(data) {
128
+ const suggestions = [];
129
+ checkNearCapacity(data, suggestions);
130
+ checkLargeToolResults(data, suggestions);
131
+ checkReadResultBloat(data, suggestions);
132
+ checkMemoryBloat(data, suggestions);
133
+ checkAutoCompactDisabled(data, suggestions);
134
+ suggestions.sort((a, b) => {
135
+ if (a.severity !== b.severity) {
136
+ return a.severity === "warning" ? -1 : 1;
137
+ }
138
+ return (b.savingsTokens ?? 0) - (a.savingsTokens ?? 0);
139
+ });
140
+ return suggestions;
141
+ }
142
+ function checkNearCapacity(data, suggestions) {
143
+ if (data.percentage >= NEAR_CAPACITY_PERCENT) {
144
+ suggestions.push({
145
+ severity: "warning",
146
+ title: `Context is ${data.percentage}% full`,
147
+ detail: data.isAutoCompactEnabled ? "Autocompact will trigger soon, which discards older messages. Use /compact now to control what gets kept." : "Autocompact is disabled. Use /compact to free space, or enable autocompact in /config."
148
+ });
149
+ }
150
+ }
151
+ function checkLargeToolResults(data, suggestions) {
152
+ if (!data.messageBreakdown)
153
+ return;
154
+ for (const tool of data.messageBreakdown.toolCallsByType) {
155
+ const totalToolTokens = tool.callTokens + tool.resultTokens;
156
+ const percent = totalToolTokens / data.rawMaxTokens * 100;
157
+ if (percent < LARGE_TOOL_RESULT_PERCENT || totalToolTokens < LARGE_TOOL_RESULT_TOKENS) {
158
+ continue;
159
+ }
160
+ const suggestion = getLargeToolSuggestion(tool.name, totalToolTokens, percent);
161
+ if (suggestion) {
162
+ suggestions.push(suggestion);
163
+ }
164
+ }
165
+ }
166
+ function getLargeToolSuggestion(toolName, tokens, percent) {
167
+ const tokenStr = formatTokens(tokens);
168
+ switch (toolName) {
169
+ case BASH_TOOL_NAME:
170
+ return {
171
+ severity: "warning",
172
+ title: `Bash results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
173
+ detail: "Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files \u2014 use Read with offset/limit instead.",
174
+ savingsTokens: Math.floor(tokens * 0.5)
175
+ };
176
+ case FILE_READ_TOOL_NAME:
177
+ return {
178
+ severity: "info",
179
+ title: `Read results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
180
+ detail: "Use offset and limit parameters to read only the sections you need. Avoid re-reading entire files when you only need a few lines.",
181
+ savingsTokens: Math.floor(tokens * 0.3)
182
+ };
183
+ case GREP_TOOL_NAME:
184
+ return {
185
+ severity: "info",
186
+ title: `Grep results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
187
+ detail: "Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",
188
+ savingsTokens: Math.floor(tokens * 0.3)
189
+ };
190
+ case WEB_FETCH_TOOL_NAME:
191
+ return {
192
+ severity: "info",
193
+ title: `WebFetch results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
194
+ detail: "Web page content can be very large. Consider extracting only the specific information needed.",
195
+ savingsTokens: Math.floor(tokens * 0.4)
196
+ };
197
+ default:
198
+ if (percent >= 20) {
199
+ return {
200
+ severity: "info",
201
+ title: `${toolName} using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
202
+ detail: `This tool is consuming a significant portion of context.`,
203
+ savingsTokens: Math.floor(tokens * 0.2)
204
+ };
205
+ }
206
+ return null;
207
+ }
208
+ }
209
+ function checkReadResultBloat(data, suggestions) {
210
+ if (!data.messageBreakdown)
211
+ return;
212
+ const callsByType = data.messageBreakdown.toolCallsByType;
213
+ const readTool = callsByType.find((t) => t.name === FILE_READ_TOOL_NAME);
214
+ if (!readTool)
215
+ return;
216
+ const totalReadTokens = readTool.callTokens + readTool.resultTokens;
217
+ const totalReadPercent = totalReadTokens / data.rawMaxTokens * 100;
218
+ const readPercent = readTool.resultTokens / data.rawMaxTokens * 100;
219
+ if (totalReadPercent >= LARGE_TOOL_RESULT_PERCENT && totalReadTokens >= LARGE_TOOL_RESULT_TOKENS) {
220
+ return;
221
+ }
222
+ if (readPercent >= READ_BLOAT_PERCENT && readTool.resultTokens >= LARGE_TOOL_RESULT_TOKENS) {
223
+ suggestions.push({
224
+ severity: "info",
225
+ title: `File reads using ${formatTokens(readTool.resultTokens)} tokens (${readPercent.toFixed(0)}%)`,
226
+ detail: "If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",
227
+ savingsTokens: Math.floor(readTool.resultTokens * 0.3)
228
+ });
229
+ }
230
+ }
231
+ function checkMemoryBloat(data, suggestions) {
232
+ const totalMemoryTokens = data.memoryFiles.reduce((sum, f) => sum + f.tokens, 0);
233
+ const memoryPercent = totalMemoryTokens / data.rawMaxTokens * 100;
234
+ if (memoryPercent >= MEMORY_HIGH_PERCENT && totalMemoryTokens >= MEMORY_HIGH_TOKENS) {
235
+ const largestFiles = [...data.memoryFiles].sort((a, b) => b.tokens - a.tokens).slice(0, 3).map((f) => {
236
+ const name = getDisplayPath(f.path);
237
+ return `${name} (${formatTokens(f.tokens)})`;
238
+ }).join(", ");
239
+ suggestions.push({
240
+ severity: "info",
241
+ title: `Memory files using ${formatTokens(totalMemoryTokens)} tokens (${memoryPercent.toFixed(0)}%)`,
242
+ detail: `Largest: ${largestFiles}. Use /memory to review and prune stale entries.`,
243
+ savingsTokens: Math.floor(totalMemoryTokens * 0.3)
244
+ });
245
+ }
246
+ }
247
+ function checkAutoCompactDisabled(data, suggestions) {
248
+ if (!data.isAutoCompactEnabled && data.percentage >= 50 && data.percentage < NEAR_CAPACITY_PERCENT) {
249
+ suggestions.push({
250
+ severity: "info",
251
+ title: "Autocompact is disabled",
252
+ detail: "Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."
253
+ });
254
+ }
255
+ }
256
+ var LARGE_TOOL_RESULT_PERCENT = 15, LARGE_TOOL_RESULT_TOKENS = 1e4, READ_BLOAT_PERCENT = 5, NEAR_CAPACITY_PERCENT = 80, MEMORY_HIGH_PERCENT = 5, MEMORY_HIGH_TOKENS = 5000;
257
+ var init_contextSuggestions = __esm(() => {
258
+ init_toolName();
259
+ init_prompt2();
260
+ init_prompt();
261
+ init_prompt3();
262
+ init_file();
263
+ init_format();
264
+ });
265
+
266
+ // src/components/ContextSuggestions.tsx
267
+ function ContextSuggestions(t0) {
268
+ const $ = import_compiler_runtime.c(5);
269
+ const {
270
+ suggestions
271
+ } = t0;
272
+ if (suggestions.length === 0) {
273
+ return null;
274
+ }
275
+ let t1;
276
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
277
+ t1 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
278
+ bold: true,
279
+ children: "Suggestions"
280
+ }, undefined, false, undefined, this);
281
+ $[0] = t1;
282
+ } else {
283
+ t1 = $[0];
284
+ }
285
+ let t2;
286
+ if ($[1] !== suggestions) {
287
+ t2 = suggestions.map(_temp);
288
+ $[1] = suggestions;
289
+ $[2] = t2;
290
+ } else {
291
+ t2 = $[2];
292
+ }
293
+ let t3;
294
+ if ($[3] !== t2) {
295
+ t3 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
296
+ flexDirection: "column",
297
+ marginTop: 1,
298
+ children: [
299
+ t1,
300
+ t2
301
+ ]
302
+ }, undefined, true, undefined, this);
303
+ $[3] = t2;
304
+ $[4] = t3;
305
+ } else {
306
+ t3 = $[4];
307
+ }
308
+ return t3;
309
+ }
310
+ function _temp(suggestion, i) {
311
+ return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
312
+ flexDirection: "column",
313
+ marginTop: i === 0 ? 0 : 1,
314
+ children: [
315
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
316
+ children: [
317
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(StatusIcon, {
318
+ status: suggestion.severity,
319
+ withSpace: true
320
+ }, undefined, false, undefined, this),
321
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
322
+ bold: true,
323
+ children: suggestion.title
324
+ }, undefined, false, undefined, this),
325
+ suggestion.savingsTokens ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
326
+ dimColor: true,
327
+ children: [
328
+ " ",
329
+ figures_default.arrowRight,
330
+ " save ~",
331
+ formatTokens(suggestion.savingsTokens)
332
+ ]
333
+ }, undefined, true, undefined, this) : null
334
+ ]
335
+ }, undefined, true, undefined, this),
336
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
337
+ marginLeft: 2,
338
+ children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
339
+ dimColor: true,
340
+ children: suggestion.detail
341
+ }, undefined, false, undefined, this)
342
+ }, undefined, false, undefined, this)
343
+ ]
344
+ }, i, true, undefined, this);
345
+ }
346
+ var import_compiler_runtime, jsx_dev_runtime;
347
+ var init_ContextSuggestions = __esm(() => {
348
+ init_figures();
349
+ init_ink();
350
+ init_format();
351
+ init_StatusIcon();
352
+ import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
353
+ jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
354
+ });
355
+
356
+ // src/components/ContextVisualization.tsx
357
+ function CollapseStatus() {
358
+ const $ = import_compiler_runtime2.c(2);
359
+ if (false) {}
360
+ return null;
361
+ }
362
+ function groupBySource(items) {
363
+ const groups = new Map;
364
+ for (const item of items) {
365
+ const key = getSourceDisplayName(item.source);
366
+ const existing = groups.get(key) || [];
367
+ existing.push(item);
368
+ groups.set(key, existing);
369
+ }
370
+ for (const [key, group] of groups.entries()) {
371
+ groups.set(key, group.sort((a, b) => b.tokens - a.tokens));
372
+ }
373
+ const orderedGroups = new Map;
374
+ for (const source of SOURCE_DISPLAY_ORDER) {
375
+ const group = groups.get(source);
376
+ if (group) {
377
+ orderedGroups.set(source, group);
378
+ }
379
+ }
380
+ return orderedGroups;
381
+ }
382
+ function ContextVisualization(t0) {
383
+ const $ = import_compiler_runtime2.c(87);
384
+ const {
385
+ data
386
+ } = t0;
387
+ const {
388
+ categories,
389
+ totalTokens,
390
+ rawMaxTokens,
391
+ percentage,
392
+ gridRows,
393
+ model,
394
+ memoryFiles,
395
+ mcpTools,
396
+ deferredBuiltinTools: t1,
397
+ systemTools,
398
+ systemPromptSections,
399
+ agents,
400
+ skills,
401
+ messageBreakdown
402
+ } = data;
403
+ let T0;
404
+ let T1;
405
+ let t2;
406
+ let t3;
407
+ let t4;
408
+ let t5;
409
+ let t6;
410
+ let t7;
411
+ let t8;
412
+ let t9;
413
+ if ($[0] !== categories || $[1] !== gridRows || $[2] !== mcpTools || $[3] !== model || $[4] !== percentage || $[5] !== rawMaxTokens || $[6] !== systemTools || $[7] !== t1 || $[8] !== totalTokens) {
414
+ const deferredBuiltinTools = t1 === undefined ? [] : t1;
415
+ const visibleCategories = categories.filter(_temp14);
416
+ let t102;
417
+ if ($[19] !== categories) {
418
+ t102 = categories.some(_temp2);
419
+ $[19] = categories;
420
+ $[20] = t102;
421
+ } else {
422
+ t102 = $[20];
423
+ }
424
+ const hasDeferredMcpTools = t102;
425
+ const hasDeferredBuiltinTools = deferredBuiltinTools.length > 0;
426
+ const autocompactCategory = categories.find(_temp3);
427
+ T1 = ThemedBox_default;
428
+ t6 = "column";
429
+ t7 = 1;
430
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
431
+ t8 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
432
+ bold: true,
433
+ children: "Context Usage"
434
+ }, undefined, false, undefined, this);
435
+ $[21] = t8;
436
+ } else {
437
+ t8 = $[21];
438
+ }
439
+ let t112;
440
+ if ($[22] !== gridRows) {
441
+ t112 = gridRows.map(_temp5);
442
+ $[22] = gridRows;
443
+ $[23] = t112;
444
+ } else {
445
+ t112 = $[23];
446
+ }
447
+ let t122;
448
+ if ($[24] !== t112) {
449
+ t122 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
450
+ flexDirection: "column",
451
+ flexShrink: 0,
452
+ children: t112
453
+ }, undefined, false, undefined, this);
454
+ $[24] = t112;
455
+ $[25] = t122;
456
+ } else {
457
+ t122 = $[25];
458
+ }
459
+ let t132;
460
+ if ($[26] !== totalTokens) {
461
+ t132 = formatTokens(totalTokens);
462
+ $[26] = totalTokens;
463
+ $[27] = t132;
464
+ } else {
465
+ t132 = $[27];
466
+ }
467
+ let t142;
468
+ if ($[28] !== rawMaxTokens) {
469
+ t142 = formatTokens(rawMaxTokens);
470
+ $[28] = rawMaxTokens;
471
+ $[29] = t142;
472
+ } else {
473
+ t142 = $[29];
474
+ }
475
+ let t152;
476
+ if ($[30] !== model || $[31] !== percentage || $[32] !== t132 || $[33] !== t142) {
477
+ t152 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
478
+ dimColor: true,
479
+ children: [
480
+ model,
481
+ " \xB7 ",
482
+ t132,
483
+ "/",
484
+ t142,
485
+ " ",
486
+ "tokens (",
487
+ percentage,
488
+ "%)"
489
+ ]
490
+ }, undefined, true, undefined, this);
491
+ $[30] = model;
492
+ $[31] = percentage;
493
+ $[32] = t132;
494
+ $[33] = t142;
495
+ $[34] = t152;
496
+ } else {
497
+ t152 = $[34];
498
+ }
499
+ let t162;
500
+ let t172;
501
+ let t182;
502
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
503
+ t162 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(CollapseStatus, {}, undefined, false, undefined, this);
504
+ t172 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
505
+ children: " "
506
+ }, undefined, false, undefined, this);
507
+ t182 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
508
+ dimColor: true,
509
+ italic: true,
510
+ children: "Estimated usage by category"
511
+ }, undefined, false, undefined, this);
512
+ $[35] = t162;
513
+ $[36] = t172;
514
+ $[37] = t182;
515
+ } else {
516
+ t162 = $[35];
517
+ t172 = $[36];
518
+ t182 = $[37];
519
+ }
520
+ let t19;
521
+ if ($[38] !== rawMaxTokens) {
522
+ t19 = (cat_2, index) => {
523
+ const tokenDisplay = formatTokens(cat_2.tokens);
524
+ const percentDisplay = cat_2.isDeferred ? "N/A" : `${(cat_2.tokens / rawMaxTokens * 100).toFixed(1)}%`;
525
+ const isReserved = cat_2.name === RESERVED_CATEGORY_NAME;
526
+ const displayName = cat_2.name;
527
+ const symbol = cat_2.isDeferred ? " " : isReserved ? "\u26DD" : "\u26C1";
528
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
529
+ children: [
530
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
531
+ color: cat_2.color,
532
+ children: symbol
533
+ }, undefined, false, undefined, this),
534
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
535
+ children: [
536
+ " ",
537
+ displayName,
538
+ ": "
539
+ ]
540
+ }, undefined, true, undefined, this),
541
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
542
+ dimColor: true,
543
+ children: [
544
+ tokenDisplay,
545
+ " tokens (",
546
+ percentDisplay,
547
+ ")"
548
+ ]
549
+ }, undefined, true, undefined, this)
550
+ ]
551
+ }, index, true, undefined, this);
552
+ };
553
+ $[38] = rawMaxTokens;
554
+ $[39] = t19;
555
+ } else {
556
+ t19 = $[39];
557
+ }
558
+ const t20 = visibleCategories.map(t19);
559
+ let t21;
560
+ if ($[40] !== categories || $[41] !== rawMaxTokens) {
561
+ t21 = (categories.find(_temp6)?.tokens ?? 0) > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
562
+ children: [
563
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
564
+ dimColor: true,
565
+ children: "\u26F6"
566
+ }, undefined, false, undefined, this),
567
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
568
+ children: " Free space: "
569
+ }, undefined, false, undefined, this),
570
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
571
+ dimColor: true,
572
+ children: [
573
+ formatTokens(categories.find(_temp7)?.tokens || 0),
574
+ " ",
575
+ "(",
576
+ ((categories.find(_temp8)?.tokens || 0) / rawMaxTokens * 100).toFixed(1),
577
+ "%)"
578
+ ]
579
+ }, undefined, true, undefined, this)
580
+ ]
581
+ }, undefined, true, undefined, this);
582
+ $[40] = categories;
583
+ $[41] = rawMaxTokens;
584
+ $[42] = t21;
585
+ } else {
586
+ t21 = $[42];
587
+ }
588
+ const t22 = autocompactCategory && autocompactCategory.tokens > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
589
+ children: [
590
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
591
+ color: autocompactCategory.color,
592
+ children: "\u26DD"
593
+ }, undefined, false, undefined, this),
594
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
595
+ dimColor: true,
596
+ children: [
597
+ " ",
598
+ autocompactCategory.name,
599
+ ": "
600
+ ]
601
+ }, undefined, true, undefined, this),
602
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
603
+ dimColor: true,
604
+ children: [
605
+ formatTokens(autocompactCategory.tokens),
606
+ " tokens (",
607
+ (autocompactCategory.tokens / rawMaxTokens * 100).toFixed(1),
608
+ "%)"
609
+ ]
610
+ }, undefined, true, undefined, this)
611
+ ]
612
+ }, undefined, true, undefined, this);
613
+ let t23;
614
+ if ($[43] !== t152 || $[44] !== t20 || $[45] !== t21 || $[46] !== t22) {
615
+ t23 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
616
+ flexDirection: "column",
617
+ gap: 0,
618
+ flexShrink: 0,
619
+ children: [
620
+ t152,
621
+ t162,
622
+ t172,
623
+ t182,
624
+ t20,
625
+ t21,
626
+ t22
627
+ ]
628
+ }, undefined, true, undefined, this);
629
+ $[43] = t152;
630
+ $[44] = t20;
631
+ $[45] = t21;
632
+ $[46] = t22;
633
+ $[47] = t23;
634
+ } else {
635
+ t23 = $[47];
636
+ }
637
+ if ($[48] !== t122 || $[49] !== t23) {
638
+ t9 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
639
+ flexDirection: "row",
640
+ gap: 2,
641
+ children: [
642
+ t122,
643
+ t23
644
+ ]
645
+ }, undefined, true, undefined, this);
646
+ $[48] = t122;
647
+ $[49] = t23;
648
+ $[50] = t9;
649
+ } else {
650
+ t9 = $[50];
651
+ }
652
+ T0 = ThemedBox_default;
653
+ t2 = "column";
654
+ t3 = -1;
655
+ if ($[51] !== hasDeferredMcpTools || $[52] !== mcpTools) {
656
+ t4 = mcpTools.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
657
+ flexDirection: "column",
658
+ marginTop: 1,
659
+ children: [
660
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
661
+ children: [
662
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
663
+ bold: true,
664
+ children: "MCP tools"
665
+ }, undefined, false, undefined, this),
666
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
667
+ dimColor: true,
668
+ children: [
669
+ " ",
670
+ "\xB7 /mcp",
671
+ hasDeferredMcpTools ? " (loaded on-demand)" : ""
672
+ ]
673
+ }, undefined, true, undefined, this)
674
+ ]
675
+ }, undefined, true, undefined, this),
676
+ mcpTools.some(_temp9) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
677
+ flexDirection: "column",
678
+ marginTop: 1,
679
+ children: [
680
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
681
+ dimColor: true,
682
+ children: "Loaded"
683
+ }, undefined, false, undefined, this),
684
+ mcpTools.filter(_temp0).map(_temp1)
685
+ ]
686
+ }, undefined, true, undefined, this),
687
+ hasDeferredMcpTools && mcpTools.some(_temp10) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
688
+ flexDirection: "column",
689
+ marginTop: 1,
690
+ children: [
691
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
692
+ dimColor: true,
693
+ children: "Available"
694
+ }, undefined, false, undefined, this),
695
+ mcpTools.filter(_temp11).map(_temp12)
696
+ ]
697
+ }, undefined, true, undefined, this),
698
+ !hasDeferredMcpTools && mcpTools.map(_temp13)
699
+ ]
700
+ }, undefined, true, undefined, this);
701
+ $[51] = hasDeferredMcpTools;
702
+ $[52] = mcpTools;
703
+ $[53] = t4;
704
+ } else {
705
+ t4 = $[53];
706
+ }
707
+ t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false;
708
+ $[0] = categories;
709
+ $[1] = gridRows;
710
+ $[2] = mcpTools;
711
+ $[3] = model;
712
+ $[4] = percentage;
713
+ $[5] = rawMaxTokens;
714
+ $[6] = systemTools;
715
+ $[7] = t1;
716
+ $[8] = totalTokens;
717
+ $[9] = T0;
718
+ $[10] = T1;
719
+ $[11] = t2;
720
+ $[12] = t3;
721
+ $[13] = t4;
722
+ $[14] = t5;
723
+ $[15] = t6;
724
+ $[16] = t7;
725
+ $[17] = t8;
726
+ $[18] = t9;
727
+ } else {
728
+ T0 = $[9];
729
+ T1 = $[10];
730
+ t2 = $[11];
731
+ t3 = $[12];
732
+ t4 = $[13];
733
+ t5 = $[14];
734
+ t6 = $[15];
735
+ t7 = $[16];
736
+ t8 = $[17];
737
+ t9 = $[18];
738
+ }
739
+ let t10;
740
+ if ($[54] !== systemPromptSections) {
741
+ t10 = systemPromptSections && systemPromptSections.length > 0 && false;
742
+ $[54] = systemPromptSections;
743
+ $[55] = t10;
744
+ } else {
745
+ t10 = $[55];
746
+ }
747
+ let t11;
748
+ if ($[56] !== agents) {
749
+ t11 = agents.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
750
+ flexDirection: "column",
751
+ marginTop: 1,
752
+ children: [
753
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
754
+ children: [
755
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
756
+ bold: true,
757
+ children: "Custom agents"
758
+ }, undefined, false, undefined, this),
759
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
760
+ dimColor: true,
761
+ children: " \xB7 /agents"
762
+ }, undefined, false, undefined, this)
763
+ ]
764
+ }, undefined, true, undefined, this),
765
+ Array.from(groupBySource(agents).entries()).map(_temp22)
766
+ ]
767
+ }, undefined, true, undefined, this);
768
+ $[56] = agents;
769
+ $[57] = t11;
770
+ } else {
771
+ t11 = $[57];
772
+ }
773
+ let t12;
774
+ if ($[58] !== memoryFiles) {
775
+ t12 = memoryFiles.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
776
+ flexDirection: "column",
777
+ marginTop: 1,
778
+ children: [
779
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
780
+ children: [
781
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
782
+ bold: true,
783
+ children: "Memory files"
784
+ }, undefined, false, undefined, this),
785
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
786
+ dimColor: true,
787
+ children: " \xB7 /memory"
788
+ }, undefined, false, undefined, this)
789
+ ]
790
+ }, undefined, true, undefined, this),
791
+ memoryFiles.map(_temp23)
792
+ ]
793
+ }, undefined, true, undefined, this);
794
+ $[58] = memoryFiles;
795
+ $[59] = t12;
796
+ } else {
797
+ t12 = $[59];
798
+ }
799
+ let t13;
800
+ if ($[60] !== skills) {
801
+ t13 = skills && skills.tokens > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
802
+ flexDirection: "column",
803
+ marginTop: 1,
804
+ children: [
805
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
806
+ children: [
807
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
808
+ bold: true,
809
+ children: "Skills"
810
+ }, undefined, false, undefined, this),
811
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
812
+ dimColor: true,
813
+ children: " \xB7 /skills"
814
+ }, undefined, false, undefined, this)
815
+ ]
816
+ }, undefined, true, undefined, this),
817
+ Array.from(groupBySource(skills.skillFrontmatter).entries()).map(_temp25)
818
+ ]
819
+ }, undefined, true, undefined, this);
820
+ $[60] = skills;
821
+ $[61] = t13;
822
+ } else {
823
+ t13 = $[61];
824
+ }
825
+ let t14;
826
+ if ($[62] !== messageBreakdown) {
827
+ t14 = messageBreakdown && false;
828
+ $[62] = messageBreakdown;
829
+ $[63] = t14;
830
+ } else {
831
+ t14 = $[63];
832
+ }
833
+ let t15;
834
+ if ($[64] !== T0 || $[65] !== t10 || $[66] !== t11 || $[67] !== t12 || $[68] !== t13 || $[69] !== t14 || $[70] !== t2 || $[71] !== t3 || $[72] !== t4 || $[73] !== t5) {
835
+ t15 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(T0, {
836
+ flexDirection: t2,
837
+ marginLeft: t3,
838
+ children: [
839
+ t4,
840
+ t5,
841
+ t10,
842
+ t11,
843
+ t12,
844
+ t13,
845
+ t14
846
+ ]
847
+ }, undefined, true, undefined, this);
848
+ $[64] = T0;
849
+ $[65] = t10;
850
+ $[66] = t11;
851
+ $[67] = t12;
852
+ $[68] = t13;
853
+ $[69] = t14;
854
+ $[70] = t2;
855
+ $[71] = t3;
856
+ $[72] = t4;
857
+ $[73] = t5;
858
+ $[74] = t15;
859
+ } else {
860
+ t15 = $[74];
861
+ }
862
+ let t16;
863
+ if ($[75] !== data) {
864
+ t16 = generateContextSuggestions(data);
865
+ $[75] = data;
866
+ $[76] = t16;
867
+ } else {
868
+ t16 = $[76];
869
+ }
870
+ let t17;
871
+ if ($[77] !== t16) {
872
+ t17 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ContextSuggestions, {
873
+ suggestions: t16
874
+ }, undefined, false, undefined, this);
875
+ $[77] = t16;
876
+ $[78] = t17;
877
+ } else {
878
+ t17 = $[78];
879
+ }
880
+ let t18;
881
+ if ($[79] !== T1 || $[80] !== t15 || $[81] !== t17 || $[82] !== t6 || $[83] !== t7 || $[84] !== t8 || $[85] !== t9) {
882
+ t18 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(T1, {
883
+ flexDirection: t6,
884
+ paddingLeft: t7,
885
+ children: [
886
+ t8,
887
+ t9,
888
+ t15,
889
+ t17
890
+ ]
891
+ }, undefined, true, undefined, this);
892
+ $[79] = T1;
893
+ $[80] = t15;
894
+ $[81] = t17;
895
+ $[82] = t6;
896
+ $[83] = t7;
897
+ $[84] = t8;
898
+ $[85] = t9;
899
+ $[86] = t18;
900
+ } else {
901
+ t18 = $[86];
902
+ }
903
+ return t18;
904
+ }
905
+ function _temp25(t0) {
906
+ const [sourceDisplay_0, sourceSkills] = t0;
907
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
908
+ flexDirection: "column",
909
+ marginTop: 1,
910
+ children: [
911
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
912
+ dimColor: true,
913
+ children: sourceDisplay_0
914
+ }, undefined, false, undefined, this),
915
+ sourceSkills.map(_temp24)
916
+ ]
917
+ }, sourceDisplay_0, true, undefined, this);
918
+ }
919
+ function _temp24(skill, i_8) {
920
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
921
+ children: [
922
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
923
+ children: [
924
+ "\u2514 ",
925
+ skill.name,
926
+ ": "
927
+ ]
928
+ }, undefined, true, undefined, this),
929
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
930
+ dimColor: true,
931
+ children: [
932
+ formatTokens(skill.tokens),
933
+ " tokens"
934
+ ]
935
+ }, undefined, true, undefined, this)
936
+ ]
937
+ }, i_8, true, undefined, this);
938
+ }
939
+ function _temp23(file, i_7) {
940
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
941
+ children: [
942
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
943
+ children: [
944
+ "\u2514 ",
945
+ getDisplayPath(file.path),
946
+ ": "
947
+ ]
948
+ }, undefined, true, undefined, this),
949
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
950
+ dimColor: true,
951
+ children: [
952
+ formatTokens(file.tokens),
953
+ " tokens"
954
+ ]
955
+ }, undefined, true, undefined, this)
956
+ ]
957
+ }, i_7, true, undefined, this);
958
+ }
959
+ function _temp22(t0) {
960
+ const [sourceDisplay, sourceAgents] = t0;
961
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
962
+ flexDirection: "column",
963
+ marginTop: 1,
964
+ children: [
965
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
966
+ dimColor: true,
967
+ children: sourceDisplay
968
+ }, undefined, false, undefined, this),
969
+ sourceAgents.map(_temp21)
970
+ ]
971
+ }, sourceDisplay, true, undefined, this);
972
+ }
973
+ function _temp21(agent, i_6) {
974
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
975
+ children: [
976
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
977
+ children: [
978
+ "\u2514 ",
979
+ agent.agentType,
980
+ ": "
981
+ ]
982
+ }, undefined, true, undefined, this),
983
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
984
+ dimColor: true,
985
+ children: [
986
+ formatTokens(agent.tokens),
987
+ " tokens"
988
+ ]
989
+ }, undefined, true, undefined, this)
990
+ ]
991
+ }, i_6, true, undefined, this);
992
+ }
993
+ function _temp13(tool_1, i_1) {
994
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
995
+ children: [
996
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
997
+ children: [
998
+ "\u2514 ",
999
+ tool_1.name,
1000
+ ": "
1001
+ ]
1002
+ }, undefined, true, undefined, this),
1003
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1004
+ dimColor: true,
1005
+ children: [
1006
+ formatTokens(tool_1.tokens),
1007
+ " tokens"
1008
+ ]
1009
+ }, undefined, true, undefined, this)
1010
+ ]
1011
+ }, i_1, true, undefined, this);
1012
+ }
1013
+ function _temp12(tool_0, i_0) {
1014
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1015
+ children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1016
+ dimColor: true,
1017
+ children: [
1018
+ "\u2514 ",
1019
+ tool_0.name
1020
+ ]
1021
+ }, undefined, true, undefined, this)
1022
+ }, i_0, false, undefined, this);
1023
+ }
1024
+ function _temp11(t_1) {
1025
+ return !t_1.isLoaded;
1026
+ }
1027
+ function _temp10(t_2) {
1028
+ return !t_2.isLoaded;
1029
+ }
1030
+ function _temp1(tool, i) {
1031
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1032
+ children: [
1033
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1034
+ children: [
1035
+ "\u2514 ",
1036
+ tool.name,
1037
+ ": "
1038
+ ]
1039
+ }, undefined, true, undefined, this),
1040
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1041
+ dimColor: true,
1042
+ children: [
1043
+ formatTokens(tool.tokens),
1044
+ " tokens"
1045
+ ]
1046
+ }, undefined, true, undefined, this)
1047
+ ]
1048
+ }, i, true, undefined, this);
1049
+ }
1050
+ function _temp0(t) {
1051
+ return t.isLoaded;
1052
+ }
1053
+ function _temp9(t_0) {
1054
+ return t_0.isLoaded;
1055
+ }
1056
+ function _temp8(c_0) {
1057
+ return c_0.name === "Free space";
1058
+ }
1059
+ function _temp7(c) {
1060
+ return c.name === "Free space";
1061
+ }
1062
+ function _temp6(c_1) {
1063
+ return c_1.name === "Free space";
1064
+ }
1065
+ function _temp5(row, rowIndex) {
1066
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1067
+ flexDirection: "row",
1068
+ marginLeft: -1,
1069
+ children: row.map(_temp4)
1070
+ }, rowIndex, false, undefined, this);
1071
+ }
1072
+ function _temp4(square, colIndex) {
1073
+ if (square.categoryName === "Free space") {
1074
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1075
+ dimColor: true,
1076
+ children: "\u26F6 "
1077
+ }, colIndex, false, undefined, this);
1078
+ }
1079
+ if (square.categoryName === RESERVED_CATEGORY_NAME) {
1080
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1081
+ color: square.color,
1082
+ children: "\u26DD "
1083
+ }, colIndex, false, undefined, this);
1084
+ }
1085
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1086
+ color: square.color,
1087
+ children: square.squareFullness >= 0.7 ? "\u26C1 " : "\u26C0 "
1088
+ }, colIndex, false, undefined, this);
1089
+ }
1090
+ function _temp3(cat_1) {
1091
+ return cat_1.name === RESERVED_CATEGORY_NAME;
1092
+ }
1093
+ function _temp2(cat_0) {
1094
+ return cat_0.isDeferred && cat_0.name.includes("MCP");
1095
+ }
1096
+ function _temp14(cat) {
1097
+ return cat.tokens > 0 && cat.name !== "Free space" && cat.name !== RESERVED_CATEGORY_NAME && !cat.isDeferred;
1098
+ }
1099
+ var import_compiler_runtime2, jsx_dev_runtime2, RESERVED_CATEGORY_NAME = "Autocompact buffer", SOURCE_DISPLAY_ORDER;
1100
+ var init_ContextVisualization = __esm(() => {
1101
+ init_ink();
1102
+ init_contextSuggestions();
1103
+ init_file();
1104
+ init_format();
1105
+ init_constants();
1106
+ init_stringUtils();
1107
+ init_ContextSuggestions();
1108
+ import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
1109
+ jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
1110
+ SOURCE_DISPLAY_ORDER = ["Project", "User", "Managed", "Plugin", "Built-in"];
1111
+ });
1112
+
1113
+ // src/commands/context/context.tsx
1114
+ function toApiView(messages) {
1115
+ let view = getMessagesAfterCompactBoundary(messages);
1116
+ if (false) {}
1117
+ return view;
1118
+ }
1119
+ async function call(onDone, context) {
1120
+ const {
1121
+ messages,
1122
+ getAppState,
1123
+ options: {
1124
+ mainLoopModel,
1125
+ tools
1126
+ }
1127
+ } = context;
1128
+ const apiView = toApiView(messages);
1129
+ const {
1130
+ messages: compactedMessages
1131
+ } = await microcompactMessages(apiView);
1132
+ const terminalWidth = process.stdout.columns || 80;
1133
+ const appState = getAppState();
1134
+ const data = await analyzeContextUsage(compactedMessages, mainLoopModel, async () => appState.toolPermissionContext, tools, appState.agentDefinitions, terminalWidth, context, undefined, apiView);
1135
+ const output = await renderToAnsiString(/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ContextVisualization, {
1136
+ data
1137
+ }, undefined, false, undefined, this));
1138
+ onDone(output);
1139
+ return null;
1140
+ }
1141
+ var jsx_dev_runtime3;
1142
+ var init_context = __esm(() => {
1143
+ init_ContextVisualization();
1144
+ init_microCompact();
1145
+ init_analyzeContext();
1146
+ init_messages();
1147
+ init_staticRender();
1148
+ jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
1149
+ });
1150
+ init_context();
1151
+
1152
+ export {
1153
+ call
1154
+ };