jialing-code 1.1.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 (460) hide show
  1. package/README.md +97 -0
  2. package/dist/chunk-065m026w.js +97 -0
  3. package/dist/chunk-06saje2v.js +39 -0
  4. package/dist/chunk-0731m51q.js +8 -0
  5. package/dist/chunk-0975ccyw.js +265 -0
  6. package/dist/chunk-09n3fjx5.js +67 -0
  7. package/dist/chunk-0bdjdzew.js +41 -0
  8. package/dist/chunk-0ce6kd7y.js +212 -0
  9. package/dist/chunk-0e1xsncc.js +969 -0
  10. package/dist/chunk-0m2861gw.js +154 -0
  11. package/dist/chunk-0paqc2yw.js +15 -0
  12. package/dist/chunk-0rg6yrhy.js +99 -0
  13. package/dist/chunk-0sakxrcf.js +643 -0
  14. package/dist/chunk-0v9hwxvz.js +105 -0
  15. package/dist/chunk-0vkfrmqm.js +690 -0
  16. package/dist/chunk-0vvfnhhv.js +248 -0
  17. package/dist/chunk-0w4rsycj.js +145 -0
  18. package/dist/chunk-0x9b2nmd.js +63 -0
  19. package/dist/chunk-0xjaqda8.js +1124 -0
  20. package/dist/chunk-1141xmr4.js +8 -0
  21. package/dist/chunk-13d1842d.js +154 -0
  22. package/dist/chunk-1921a6yb.js +32 -0
  23. package/dist/chunk-1ad8mk9g.js +527 -0
  24. package/dist/chunk-1ax41pws.js +28 -0
  25. package/dist/chunk-1c8z1b5v.js +16 -0
  26. package/dist/chunk-1cbn5kxf.js +7 -0
  27. package/dist/chunk-1eapde8a.js +726 -0
  28. package/dist/chunk-1h2famwb.js +49 -0
  29. package/dist/chunk-1jggnf7z.js +85 -0
  30. package/dist/chunk-1k92pn9c.js +32 -0
  31. package/dist/chunk-1qakq4sn.js +802 -0
  32. package/dist/chunk-1rvz0433.js +722 -0
  33. package/dist/chunk-1xkekb9y.js +19 -0
  34. package/dist/chunk-238g70xa.js +36 -0
  35. package/dist/chunk-24ge0eqa.js +106 -0
  36. package/dist/chunk-278vghwm.js +5395 -0
  37. package/dist/chunk-27xc1csx.js +104 -0
  38. package/dist/chunk-2a42s11t.js +412 -0
  39. package/dist/chunk-2aa02aw6.js +438 -0
  40. package/dist/chunk-2eykm0j0.js +20 -0
  41. package/dist/chunk-2gzv8nrw.js +205 -0
  42. package/dist/chunk-2k995y2x.js +880 -0
  43. package/dist/chunk-2nayx6q1.js +63 -0
  44. package/dist/chunk-2sd2w2h4.js +44 -0
  45. package/dist/chunk-2tw2ve8h.js +145 -0
  46. package/dist/chunk-30rst83v.js +168 -0
  47. package/dist/chunk-3aavh06g.js +1581 -0
  48. package/dist/chunk-3b0yvt2h.js +469 -0
  49. package/dist/chunk-3be7ka25.js +56 -0
  50. package/dist/chunk-3c25bcsw.js +17 -0
  51. package/dist/chunk-3dyxka97.js +584 -0
  52. package/dist/chunk-3f7rypmf.js +16544 -0
  53. package/dist/chunk-3fsd7f51.js +93 -0
  54. package/dist/chunk-3gqdqmzb.js +75 -0
  55. package/dist/chunk-3h8a89gy.js +46 -0
  56. package/dist/chunk-3m84sret.js +71 -0
  57. package/dist/chunk-3nb7j3js.js +96 -0
  58. package/dist/chunk-3p08nvn2.js +98 -0
  59. package/dist/chunk-3r09htpc.js +318 -0
  60. package/dist/chunk-3r24h7t6.js +113 -0
  61. package/dist/chunk-3rkfxjtq.js +80 -0
  62. package/dist/chunk-3tmk7dc2.js +604 -0
  63. package/dist/chunk-3w6s9m5w.js +16 -0
  64. package/dist/chunk-43qjymy5.js +92 -0
  65. package/dist/chunk-44fpr6jq.js +434 -0
  66. package/dist/chunk-45kxdsp8.js +444 -0
  67. package/dist/chunk-495d85x1.js +8066 -0
  68. package/dist/chunk-4ba796se.js +1095 -0
  69. package/dist/chunk-4g3v8y12.js +23 -0
  70. package/dist/chunk-4h53xj8n.js +3445 -0
  71. package/dist/chunk-4jm600zv.js +13 -0
  72. package/dist/chunk-4jy9dtwk.js +116 -0
  73. package/dist/chunk-4p60dd45.js +55 -0
  74. package/dist/chunk-4z0jsrqg.js +81 -0
  75. package/dist/chunk-4zfkzkt6.js +37 -0
  76. package/dist/chunk-55wgxwa9.js +13877 -0
  77. package/dist/chunk-5dbk24zg.js +890 -0
  78. package/dist/chunk-5hzvp4va.js +115 -0
  79. package/dist/chunk-5kbt1mbt.js +500 -0
  80. package/dist/chunk-5pen7vr8.js +176 -0
  81. package/dist/chunk-5r280eng.js +198 -0
  82. package/dist/chunk-5srym52s.js +88 -0
  83. package/dist/chunk-600kg7k6.js +41 -0
  84. package/dist/chunk-616w0qj3.js +160 -0
  85. package/dist/chunk-62jw1t8c.js +94 -0
  86. package/dist/chunk-62xmt9mk.js +372 -0
  87. package/dist/chunk-64bvg7c3.js +229 -0
  88. package/dist/chunk-65yhe4s0.js +281 -0
  89. package/dist/chunk-6aewh27m.js +102 -0
  90. package/dist/chunk-6bd8brc4.js +48 -0
  91. package/dist/chunk-6dj5t602.js +341 -0
  92. package/dist/chunk-6exxdk1p.js +6956 -0
  93. package/dist/chunk-6f5j8fs0.js +752 -0
  94. package/dist/chunk-6g62sjpf.js +328 -0
  95. package/dist/chunk-6gecq2ta.js +1493 -0
  96. package/dist/chunk-6gr3c3w9.js +378 -0
  97. package/dist/chunk-6kpbgc5w.js +23 -0
  98. package/dist/chunk-6kseqw79.js +154 -0
  99. package/dist/chunk-6mxm1qd0.js +40764 -0
  100. package/dist/chunk-6n2qgm9v.js +8 -0
  101. package/dist/chunk-6tq2v3rk.js +186 -0
  102. package/dist/chunk-6wsdhj3v.js +93 -0
  103. package/dist/chunk-6zw9fhgb.js +4389 -0
  104. package/dist/chunk-71grc1mw.js +111 -0
  105. package/dist/chunk-73rpbt04.js +1947 -0
  106. package/dist/chunk-748feghg.js +604 -0
  107. package/dist/chunk-75e8gtg9.js +84 -0
  108. package/dist/chunk-75th4717.js +780 -0
  109. package/dist/chunk-760252na.js +101 -0
  110. package/dist/chunk-7739pg2c.js +4261 -0
  111. package/dist/chunk-778fnx46.js +472 -0
  112. package/dist/chunk-77g09znh.js +391 -0
  113. package/dist/chunk-7aw745vx.js +40175 -0
  114. package/dist/chunk-7m2nd8da.js +110 -0
  115. package/dist/chunk-7n35vjtw.js +444 -0
  116. package/dist/chunk-7n5ss4sh.js +144 -0
  117. package/dist/chunk-7rjnxcfe.js +107 -0
  118. package/dist/chunk-7sb5axvf.js +122 -0
  119. package/dist/chunk-7wm5s02e.js +216 -0
  120. package/dist/chunk-7ymfj7m3.js +151 -0
  121. package/dist/chunk-7z8j9qfn.js +121 -0
  122. package/dist/chunk-7zsapntc.js +216 -0
  123. package/dist/chunk-805fhkfh.js +908 -0
  124. package/dist/chunk-80k1nj24.js +253 -0
  125. package/dist/chunk-83hfzbx3.js +10 -0
  126. package/dist/chunk-85cypsdd.js +92 -0
  127. package/dist/chunk-8760caxf.js +2644 -0
  128. package/dist/chunk-88f6egg6.js +387 -0
  129. package/dist/chunk-88r7kwgj.js +22 -0
  130. package/dist/chunk-89e1v45e.js +463 -0
  131. package/dist/chunk-8bedvdm1.js +32 -0
  132. package/dist/chunk-8c4x4vdz.js +177 -0
  133. package/dist/chunk-8hq5kk3y.js +44 -0
  134. package/dist/chunk-8ngxagxq.js +18 -0
  135. package/dist/chunk-8tnsngw2.js +31 -0
  136. package/dist/chunk-8wjnca8h.js +307 -0
  137. package/dist/chunk-8y12jxg8.js +10 -0
  138. package/dist/chunk-8ymf4e6z.js +48 -0
  139. package/dist/chunk-90wp6wez.js +10510 -0
  140. package/dist/chunk-92bp5bnf.js +650 -0
  141. package/dist/chunk-92q8sx5z.js +90 -0
  142. package/dist/chunk-958rtmtx.js +10476 -0
  143. package/dist/chunk-9e2kqv5g.js +125 -0
  144. package/dist/chunk-9f4f1hy5.js +281 -0
  145. package/dist/chunk-9gbamk79.js +93 -0
  146. package/dist/chunk-9k5s3ryh.js +167 -0
  147. package/dist/chunk-9xzfqm15.js +97 -0
  148. package/dist/chunk-9zgdvbm6.js +110 -0
  149. package/dist/chunk-a0p3q8jw.js +24 -0
  150. package/dist/chunk-a22sayzp.js +220 -0
  151. package/dist/chunk-a8ejc632.js +3094 -0
  152. package/dist/chunk-a8gj9d9z.js +120 -0
  153. package/dist/chunk-a9vdeb6y.js +258 -0
  154. package/dist/chunk-a9yev47v.js +674 -0
  155. package/dist/chunk-a9zh40sj.js +48 -0
  156. package/dist/chunk-ack5mfba.js +105 -0
  157. package/dist/chunk-ae76ded0.js +30 -0
  158. package/dist/chunk-akjw4dh6.js +538 -0
  159. package/dist/chunk-asc6wz4q.js +1188 -0
  160. package/dist/chunk-atqejh3p.js +273 -0
  161. package/dist/chunk-atv2e6b7.js +61 -0
  162. package/dist/chunk-axvvkwz8.js +1551 -0
  163. package/dist/chunk-azgz7kj9.js +38 -0
  164. package/dist/chunk-b3zave8q.js +275 -0
  165. package/dist/chunk-b4wg70y1.js +54 -0
  166. package/dist/chunk-b8b13qn2.js +100 -0
  167. package/dist/chunk-bg3mt9bm.js +28 -0
  168. package/dist/chunk-bh4jvcjn.js +91 -0
  169. package/dist/chunk-bhdt6k7w.js +15 -0
  170. package/dist/chunk-bm1qb16p.js +17 -0
  171. package/dist/chunk-bpvsd1j1.js +266 -0
  172. package/dist/chunk-bqfnp99q.js +477 -0
  173. package/dist/chunk-bsbmmfyt.js +17 -0
  174. package/dist/chunk-bsbt34jm.js +42 -0
  175. package/dist/chunk-c78akdhr.js +458 -0
  176. package/dist/chunk-cdz5yb0r.js +57 -0
  177. package/dist/chunk-cfv996bs.js +22 -0
  178. package/dist/chunk-cgfdkzhb.js +12 -0
  179. package/dist/chunk-ckh4r5er.js +257 -0
  180. package/dist/chunk-cmgjnvn9.js +89 -0
  181. package/dist/chunk-cpjgvay8.js +687 -0
  182. package/dist/chunk-crfryjx9.js +276 -0
  183. package/dist/chunk-ctw5jwcd.js +213 -0
  184. package/dist/chunk-cvy3vntc.js +65 -0
  185. package/dist/chunk-cwbzz504.js +94 -0
  186. package/dist/chunk-cy2hswr1.js +15 -0
  187. package/dist/chunk-cyejkay3.js +222 -0
  188. package/dist/chunk-d18z9pna.js +106 -0
  189. package/dist/chunk-d5cq0n0v.js +162 -0
  190. package/dist/chunk-db45aryp.js +50 -0
  191. package/dist/chunk-de8nqh0z.js +790 -0
  192. package/dist/chunk-dfw6h350.js +2336 -0
  193. package/dist/chunk-dgqrcy74.js +48 -0
  194. package/dist/chunk-dn75ptgd.js +184 -0
  195. package/dist/chunk-dnh7jtpb.js +37 -0
  196. package/dist/chunk-dpshyv9m.js +90 -0
  197. package/dist/chunk-dt8cdvnm.js +642 -0
  198. package/dist/chunk-dtxby6fr.js +306 -0
  199. package/dist/chunk-dv1wfr85.js +6373 -0
  200. package/dist/chunk-dw363edx.js +1154 -0
  201. package/dist/chunk-dwrdacck.js +62 -0
  202. package/dist/chunk-dxnnv5e3.js +276 -0
  203. package/dist/chunk-e3g8q4cn.js +1646 -0
  204. package/dist/chunk-e3m9k9s2.js +542 -0
  205. package/dist/chunk-e4q49asn.js +155 -0
  206. package/dist/chunk-e5pntxye.js +37 -0
  207. package/dist/chunk-e7393td6.js +42 -0
  208. package/dist/chunk-ead42yrh.js +87 -0
  209. package/dist/chunk-eb90vwvr.js +152 -0
  210. package/dist/chunk-ecvwk9hg.js +250 -0
  211. package/dist/chunk-edjd6aay.js +173 -0
  212. package/dist/chunk-eg0h8mtm.js +130 -0
  213. package/dist/chunk-ehtwnxpg.js +1591 -0
  214. package/dist/chunk-ek686gx1.js +94 -0
  215. package/dist/chunk-eqp1rfft.js +17 -0
  216. package/dist/chunk-evhwt0ar.js +1015 -0
  217. package/dist/chunk-ewadzrm8.js +103 -0
  218. package/dist/chunk-ewsgsw9h.js +172291 -0
  219. package/dist/chunk-f0pa0r7e.js +3198 -0
  220. package/dist/chunk-f2mhrmww.js +62 -0
  221. package/dist/chunk-f39zxvwn.js +401 -0
  222. package/dist/chunk-f46z54tq.js +374 -0
  223. package/dist/chunk-f5ma3nh5.js +3436 -0
  224. package/dist/chunk-f60q23az.js +3038 -0
  225. package/dist/chunk-f6v2nz57.js +107 -0
  226. package/dist/chunk-f6yjan38.js +38 -0
  227. package/dist/chunk-fbv4apne.js +51 -0
  228. package/dist/chunk-fem4s778.js +70 -0
  229. package/dist/chunk-fezm1kn8.js +376 -0
  230. package/dist/chunk-fm1n3ysp.js +6108 -0
  231. package/dist/chunk-frg83bfw.js +225 -0
  232. package/dist/chunk-fscm8db0.js +692 -0
  233. package/dist/chunk-fyc5fepv.js +10 -0
  234. package/dist/chunk-g0j0t6qk.js +26 -0
  235. package/dist/chunk-g0nc1ftf.js +849 -0
  236. package/dist/chunk-g338npwr.js +1061 -0
  237. package/dist/chunk-g3t0act8.js +8 -0
  238. package/dist/chunk-g75w4hw3.js +26 -0
  239. package/dist/chunk-g8vp82en.js +1866 -0
  240. package/dist/chunk-gax0fcbx.js +182 -0
  241. package/dist/chunk-gsz4dh3y.js +606 -0
  242. package/dist/chunk-gtfffm7h.js +440 -0
  243. package/dist/chunk-gver9zb9.js +420 -0
  244. package/dist/chunk-gyj242zr.js +20 -0
  245. package/dist/chunk-h0qngp9w.js +157 -0
  246. package/dist/chunk-h14kemnk.js +123 -0
  247. package/dist/chunk-h8wj1a74.js +8960 -0
  248. package/dist/chunk-h9mcb2eg.js +87 -0
  249. package/dist/chunk-h9nh2980.js +91 -0
  250. package/dist/chunk-hakdhagh.js +16606 -0
  251. package/dist/chunk-hbc6ymdv.js +55 -0
  252. package/dist/chunk-hh7cmy4k.js +20 -0
  253. package/dist/chunk-hjhc4cpt.js +69 -0
  254. package/dist/chunk-hjwez8qc.js +5018 -0
  255. package/dist/chunk-hk9xz7gk.js +118 -0
  256. package/dist/chunk-hqmz36b3.js +552 -0
  257. package/dist/chunk-hrzerbfw.js +1299 -0
  258. package/dist/chunk-hs8ph4p8.js +8 -0
  259. package/dist/chunk-ht1xwrnd.js +716 -0
  260. package/dist/chunk-hvmfg2dc.js +338 -0
  261. package/dist/chunk-hx2tr4ep.js +7189 -0
  262. package/dist/chunk-hzhe8ygc.js +547 -0
  263. package/dist/chunk-j2k4p94p.js +55 -0
  264. package/dist/chunk-j3a4p81y.js +184 -0
  265. package/dist/chunk-j49g6g3s.js +57 -0
  266. package/dist/chunk-j5d5hp9h.js +71 -0
  267. package/dist/chunk-j64ga6ta.js +8035 -0
  268. package/dist/chunk-j7tyxan1.js +116 -0
  269. package/dist/chunk-j8v4774z.js +424 -0
  270. package/dist/chunk-jafes477.js +29 -0
  271. package/dist/chunk-jd32zbps.js +15 -0
  272. package/dist/chunk-jdgeec04.js +4249 -0
  273. package/dist/chunk-jftd4jq5.js +4521 -0
  274. package/dist/chunk-jkxqhv6y.js +812 -0
  275. package/dist/chunk-jmfr6h0n.js +120 -0
  276. package/dist/chunk-jn4aabmx.js +40 -0
  277. package/dist/chunk-jnhkref0.js +30 -0
  278. package/dist/chunk-jsbpm1gz.js +27 -0
  279. package/dist/chunk-jtcyjc3k.js +5802 -0
  280. package/dist/chunk-jx817w05.js +11 -0
  281. package/dist/chunk-jzmz18nn.js +65 -0
  282. package/dist/chunk-k0p9w03v.js +4957 -0
  283. package/dist/chunk-k3dcdnck.js +89 -0
  284. package/dist/chunk-k3wadzcd.js +88 -0
  285. package/dist/chunk-kaeshsk1.js +713 -0
  286. package/dist/chunk-kbkey9ed.js +522 -0
  287. package/dist/chunk-kcwfhqbb.js +196 -0
  288. package/dist/chunk-key6jr7p.js +224 -0
  289. package/dist/chunk-knay8cy9.js +173 -0
  290. package/dist/chunk-kr3rg2y1.js +95 -0
  291. package/dist/chunk-kwekc97v.js +18 -0
  292. package/dist/chunk-m06q12hg.js +61 -0
  293. package/dist/chunk-m2mcpbhk.js +43 -0
  294. package/dist/chunk-m8v220gz.js +71 -0
  295. package/dist/chunk-mgpqy78h.js +208 -0
  296. package/dist/chunk-mkejwh4t.js +16 -0
  297. package/dist/chunk-mptyw5n1.js +107 -0
  298. package/dist/chunk-mqajm0dp.js +66 -0
  299. package/dist/chunk-mrksbgxj.js +490 -0
  300. package/dist/chunk-msjfc5ba.js +246 -0
  301. package/dist/chunk-mt25echc.js +6157 -0
  302. package/dist/chunk-mt3jfnr8.js +277 -0
  303. package/dist/chunk-mtn242d4.js +9300 -0
  304. package/dist/chunk-mzfkvave.js +169 -0
  305. package/dist/chunk-n0qaeaa5.js +256 -0
  306. package/dist/chunk-n1erf6kh.js +22820 -0
  307. package/dist/chunk-n2avk1r2.js +61 -0
  308. package/dist/chunk-n6atnpcq.js +765 -0
  309. package/dist/chunk-n7ttdtk0.js +641 -0
  310. package/dist/chunk-ncnfzby5.js +822 -0
  311. package/dist/chunk-ncnr1jtf.js +2058 -0
  312. package/dist/chunk-nerv0jvx.js +74 -0
  313. package/dist/chunk-ngd2abep.js +90 -0
  314. package/dist/chunk-nka1g8f4.js +773 -0
  315. package/dist/chunk-nnaxkc2z.js +128 -0
  316. package/dist/chunk-npyrtj8j.js +691 -0
  317. package/dist/chunk-nq0fxyxh.js +752 -0
  318. package/dist/chunk-nrmffak7.js +114 -0
  319. package/dist/chunk-nsz546wq.js +1170 -0
  320. package/dist/chunk-nt837qt9.js +21 -0
  321. package/dist/chunk-nv64x1z5.js +86 -0
  322. package/dist/chunk-nxsh6de2.js +1711 -0
  323. package/dist/chunk-nz4getcr.js +40 -0
  324. package/dist/chunk-p1f607pa.js +83 -0
  325. package/dist/chunk-p2816w9z.js +1486 -0
  326. package/dist/chunk-p2d5nh3g.js +342 -0
  327. package/dist/chunk-p4r5y02t.js +90 -0
  328. package/dist/chunk-p7g7pf3f.js +336 -0
  329. package/dist/chunk-pb4ad8r2.js +110 -0
  330. package/dist/chunk-pbrhz0zr.js +716 -0
  331. package/dist/chunk-ps49ymvj.js +43 -0
  332. package/dist/chunk-pwnt3veb.js +103 -0
  333. package/dist/chunk-pwwa7s62.js +11 -0
  334. package/dist/chunk-px3w0kde.js +299 -0
  335. package/dist/chunk-pzn777jb.js +756 -0
  336. package/dist/chunk-q25bjaev.js +15 -0
  337. package/dist/chunk-q5by3da6.js +8 -0
  338. package/dist/chunk-q6av622g.js +38 -0
  339. package/dist/chunk-q6xkvtf2.js +1318 -0
  340. package/dist/chunk-q81jx1tq.js +476 -0
  341. package/dist/chunk-qehb6fk5.js +339 -0
  342. package/dist/chunk-qj1avx1q.js +87 -0
  343. package/dist/chunk-qn2dxr66.js +105 -0
  344. package/dist/chunk-qnfx3qtx.js +617 -0
  345. package/dist/chunk-qp18kd4h.js +48 -0
  346. package/dist/chunk-qp2qdcda.js +100 -0
  347. package/dist/chunk-qpjy9tcf.js +133 -0
  348. package/dist/chunk-qqfa0dqg.js +2343 -0
  349. package/dist/chunk-qwh3htcz.js +202 -0
  350. package/dist/chunk-qz2x630m.js +49145 -0
  351. package/dist/chunk-r3vakcs1.js +496 -0
  352. package/dist/chunk-r66hz8j6.js +34 -0
  353. package/dist/chunk-r6b58y3x.js +17 -0
  354. package/dist/chunk-rekp48rk.js +62 -0
  355. package/dist/chunk-rn0v1hk8.js +34 -0
  356. package/dist/chunk-rs1xrs6m.js +534 -0
  357. package/dist/chunk-rs45skes.js +123 -0
  358. package/dist/chunk-rzszqp82.js +524 -0
  359. package/dist/chunk-s274nv8k.js +8 -0
  360. package/dist/chunk-s3pzvdss.js +50 -0
  361. package/dist/chunk-s9mesaw0.js +26840 -0
  362. package/dist/chunk-sd36yzx8.js +954 -0
  363. package/dist/chunk-sdj9b9wh.js +782 -0
  364. package/dist/chunk-sdw2q69p.js +227 -0
  365. package/dist/chunk-sfgp9cc0.js +130 -0
  366. package/dist/chunk-spqaamnc.js +63 -0
  367. package/dist/chunk-spzrs4df.js +73 -0
  368. package/dist/chunk-sxkr7k43.js +55 -0
  369. package/dist/chunk-szj5wvdy.js +28 -0
  370. package/dist/chunk-t0rgmccj.js +39 -0
  371. package/dist/chunk-t1nnzjgg.js +17 -0
  372. package/dist/chunk-t94fcnt8.js +566 -0
  373. package/dist/chunk-tjaqa99q.js +125 -0
  374. package/dist/chunk-tjq2evtw.js +328 -0
  375. package/dist/chunk-ts2p6bv1.js +224 -0
  376. package/dist/chunk-ttk5dzz8.js +25 -0
  377. package/dist/chunk-tw0q7ynt.js +59 -0
  378. package/dist/chunk-v02jkvgy.js +131 -0
  379. package/dist/chunk-v084bqt3.js +1529 -0
  380. package/dist/chunk-v0amythm.js +164 -0
  381. package/dist/chunk-v1kzp02e.js +785 -0
  382. package/dist/chunk-v1mgv1et.js +15 -0
  383. package/dist/chunk-v399mzxk.js +58 -0
  384. package/dist/chunk-v3gm2day.js +8 -0
  385. package/dist/chunk-v43hrrxp.js +71 -0
  386. package/dist/chunk-v6aqb2aj.js +102 -0
  387. package/dist/chunk-v78fj8by.js +145 -0
  388. package/dist/chunk-v7qmhjdn.js +1921 -0
  389. package/dist/chunk-v9smspw2.js +4301 -0
  390. package/dist/chunk-vdw93s4h.js +2431 -0
  391. package/dist/chunk-vest0y6x.js +3830 -0
  392. package/dist/chunk-vf5sd1nq.js +12 -0
  393. package/dist/chunk-vratq94g.js +349 -0
  394. package/dist/chunk-vrz7t3m3.js +20 -0
  395. package/dist/chunk-vtb185z9.js +70 -0
  396. package/dist/chunk-vx01rvg8.js +654 -0
  397. package/dist/chunk-vyc0rjyx.js +31 -0
  398. package/dist/chunk-vyjeh50y.js +2149 -0
  399. package/dist/chunk-vzpffsza.js +269 -0
  400. package/dist/chunk-w2ef3kxk.js +3353 -0
  401. package/dist/chunk-w2z5pqd3.js +336 -0
  402. package/dist/chunk-w3whm4mn.js +432 -0
  403. package/dist/chunk-w7wgpqcp.js +157 -0
  404. package/dist/chunk-waa00cvb.js +301 -0
  405. package/dist/chunk-wb0qm4es.js +155 -0
  406. package/dist/chunk-wbkahkdc.js +27 -0
  407. package/dist/chunk-wfz0qffj.js +3939 -0
  408. package/dist/chunk-wn0cx0pt.js +283 -0
  409. package/dist/chunk-wv6gzt9c.js +726 -0
  410. package/dist/chunk-wx42ycm4.js +998 -0
  411. package/dist/chunk-wxkpgy05.js +268 -0
  412. package/dist/chunk-wzpdet3m.js +843 -0
  413. package/dist/chunk-x0mwzt38.js +714 -0
  414. package/dist/chunk-x592wbfh.js +244 -0
  415. package/dist/chunk-x5pqsp9r.js +100 -0
  416. package/dist/chunk-x679thag.js +825 -0
  417. package/dist/chunk-x8b7vft8.js +132 -0
  418. package/dist/chunk-x8cftch7.js +119 -0
  419. package/dist/chunk-x9q7r885.js +348 -0
  420. package/dist/chunk-xawkt0vb.js +1585 -0
  421. package/dist/chunk-xdw5dv00.js +8 -0
  422. package/dist/chunk-xe9cc860.js +287 -0
  423. package/dist/chunk-xjr9c3vt.js +101 -0
  424. package/dist/chunk-xk7zaqta.js +21933 -0
  425. package/dist/chunk-xktbmawc.js +678 -0
  426. package/dist/chunk-xn6yw46v.js +140 -0
  427. package/dist/chunk-xsq9ae7x.js +90 -0
  428. package/dist/chunk-xszk7n10.js +14358 -0
  429. package/dist/chunk-xt8a5r1t.js +84 -0
  430. package/dist/chunk-xydyndkv.js +195 -0
  431. package/dist/chunk-xzt10yc5.js +60 -0
  432. package/dist/chunk-y04y95dr.js +91 -0
  433. package/dist/chunk-y1784krc.js +19 -0
  434. package/dist/chunk-y1x32h3x.js +128 -0
  435. package/dist/chunk-y3s7aww5.js +99 -0
  436. package/dist/chunk-y47cg3kz.js +42 -0
  437. package/dist/chunk-y7kzvepn.js +469 -0
  438. package/dist/chunk-y89kbsyc.js +287 -0
  439. package/dist/chunk-yd87p1c3.js +159 -0
  440. package/dist/chunk-yf3yw8fw.js +105 -0
  441. package/dist/chunk-ygbf0ezx.js +1391 -0
  442. package/dist/chunk-yjbxnshv.js +208 -0
  443. package/dist/chunk-ynednmqd.js +192 -0
  444. package/dist/chunk-yvhez44y.js +259 -0
  445. package/dist/chunk-ywxd4qw4.js +22 -0
  446. package/dist/chunk-yzrmgpy4.js +117 -0
  447. package/dist/chunk-z0b2vb24.js +862 -0
  448. package/dist/chunk-z1zj044v.js +655 -0
  449. package/dist/chunk-z2dp53wn.js +17 -0
  450. package/dist/chunk-z3w0xasa.js +165 -0
  451. package/dist/chunk-z7ycmrb3.js +644 -0
  452. package/dist/chunk-zh11tdkb.js +347 -0
  453. package/dist/chunk-zk2wsm7d.js +15 -0
  454. package/dist/chunk-zqfqcf22.js +229 -0
  455. package/dist/chunk-zqk2j8px.js +699 -0
  456. package/dist/chunk-zqvsc10j.js +2833 -0
  457. package/dist/chunk-zsfxha74.js +17655 -0
  458. package/dist/chunk-zvc4snyb.js +117 -0
  459. package/dist/cli.js +194 -0
  460. package/package.json +173 -0
@@ -0,0 +1,1154 @@
1
+ // @bun
2
+ import {
3
+ StatusIcon,
4
+ init_StatusIcon
5
+ } from "./chunk-75e8gtg9.js";
6
+ import {
7
+ init_staticRender,
8
+ renderToAnsiString
9
+ } from "./chunk-6aewh27m.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-ewsgsw9h.js";
26
+ import"./chunk-z1zj044v.js";
27
+ import"./chunk-t0rgmccj.js";
28
+ import"./chunk-key6jr7p.js";
29
+ import"./chunk-0m2861gw.js";
30
+ import"./chunk-0x9b2nmd.js";
31
+ import"./chunk-89e1v45e.js";
32
+ import"./chunk-2gzv8nrw.js";
33
+ import"./chunk-ehtwnxpg.js";
34
+ import"./chunk-3be7ka25.js";
35
+ import"./chunk-x679thag.js";
36
+ import"./chunk-cgfdkzhb.js";
37
+ import"./chunk-bhdt6k7w.js";
38
+ import"./chunk-45kxdsp8.js";
39
+ import"./chunk-5dbk24zg.js";
40
+ import"./chunk-msjfc5ba.js";
41
+ import"./chunk-7zsapntc.js";
42
+ import"./chunk-0rg6yrhy.js";
43
+ import"./chunk-9gbamk79.js";
44
+ import"./chunk-x0mwzt38.js";
45
+ import"./chunk-9e2kqv5g.js";
46
+ import"./chunk-1qakq4sn.js";
47
+ import {
48
+ ThemedBox_default,
49
+ ThemedText,
50
+ init_ink,
51
+ require_compiler_runtime
52
+ } from "./chunk-s9mesaw0.js";
53
+ import"./chunk-7m2nd8da.js";
54
+ import"./chunk-ps49ymvj.js";
55
+ import {
56
+ require_jsx_dev_runtime
57
+ } from "./chunk-g338npwr.js";
58
+ import"./chunk-zk2wsm7d.js";
59
+ import"./chunk-tw0q7ynt.js";
60
+ import"./chunk-xe9cc860.js";
61
+ import"./chunk-m06q12hg.js";
62
+ import"./chunk-ygbf0ezx.js";
63
+ import"./chunk-spqaamnc.js";
64
+ import"./chunk-4jm600zv.js";
65
+ import"./chunk-qz2x630m.js";
66
+ import"./chunk-7sb5axvf.js";
67
+ import"./chunk-v9smspw2.js";
68
+ import {
69
+ getDisplayPath,
70
+ getSourceDisplayName,
71
+ init_constants,
72
+ init_file,
73
+ init_stringUtils
74
+ } from "./chunk-3f7rypmf.js";
75
+ import"./chunk-e3g8q4cn.js";
76
+ import"./chunk-ctw5jwcd.js";
77
+ import"./chunk-0e1xsncc.js";
78
+ import"./chunk-vratq94g.js";
79
+ import"./chunk-g0j0t6qk.js";
80
+ import"./chunk-6kpbgc5w.js";
81
+ import"./chunk-3c25bcsw.js";
82
+ import"./chunk-tjaqa99q.js";
83
+ import"./chunk-55wgxwa9.js";
84
+ import"./chunk-w2z5pqd3.js";
85
+ import"./chunk-7ymfj7m3.js";
86
+ import"./chunk-f5ma3nh5.js";
87
+ import"./chunk-v1kzp02e.js";
88
+ import"./chunk-1eapde8a.js";
89
+ import"./chunk-p2816w9z.js";
90
+ import"./chunk-0vkfrmqm.js";
91
+ import"./chunk-0xjaqda8.js";
92
+ import {
93
+ formatTokens,
94
+ init_format
95
+ } from "./chunk-1rvz0433.js";
96
+ import"./chunk-cdz5yb0r.js";
97
+ import"./chunk-f2mhrmww.js";
98
+ import"./chunk-7z8j9qfn.js";
99
+ import"./chunk-hrzerbfw.js";
100
+ import"./chunk-d18z9pna.js";
101
+ import"./chunk-qnfx3qtx.js";
102
+ import"./chunk-hjhc4cpt.js";
103
+ import"./chunk-vyc0rjyx.js";
104
+ import {
105
+ figures_default,
106
+ init_figures
107
+ } from "./chunk-hx2tr4ep.js";
108
+ import"./chunk-p7g7pf3f.js";
109
+ import"./chunk-8tnsngw2.js";
110
+ import"./chunk-8bedvdm1.js";
111
+ import"./chunk-7wm5s02e.js";
112
+ import"./chunk-nxsh6de2.js";
113
+ import"./chunk-fbv4apne.js";
114
+ import"./chunk-3r24h7t6.js";
115
+ import"./chunk-qqfa0dqg.js";
116
+ import"./chunk-hqmz36b3.js";
117
+ import"./chunk-4g3v8y12.js";
118
+ import"./chunk-7739pg2c.js";
119
+ import"./chunk-xszk7n10.js";
120
+ import"./chunk-sdj9b9wh.js";
121
+ import {
122
+ __esm,
123
+ __toESM
124
+ } from "./chunk-qp2qdcda.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
+ };