@rainhole/rain-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.
- package/README.md +172 -0
- package/dist/chunk-06b2745w.js +3583 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-07069jq1.js +30 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0bs2528v.js +192 -0
- package/dist/chunk-0fj1d707.js +313 -0
- package/dist/chunk-0gdkvtx4.js +117 -0
- package/dist/chunk-0jd8rpt4.js +34257 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0pk0w4j1.js +332 -0
- package/dist/chunk-0rpb2bdp.js +8 -0
- package/dist/chunk-0rvwew67.js +9300 -0
- package/dist/chunk-0sa1g8jf.js +318 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0xgxxqhr.js +708 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-0zep39v0.js +81 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-12hn2mhy.js +17 -0
- package/dist/chunk-12rjry89.js +81 -0
- package/dist/chunk-168xb8v1.js +436 -0
- package/dist/chunk-1cwdhk7a.js +969 -0
- package/dist/chunk-1cx0fd76.js +132 -0
- package/dist/chunk-1erfksyp.js +107 -0
- package/dist/chunk-1h1tc4mw.js +126 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1jnbys9f.js +1811 -0
- package/dist/chunk-1k4fp6ft.js +389 -0
- package/dist/chunk-1mjn8xxc.js +22 -0
- package/dist/chunk-1mn6r4y2.js +747 -0
- package/dist/chunk-1p8myfza.js +1568 -0
- package/dist/chunk-1vthytca.js +79 -0
- package/dist/chunk-1y32rx73.js +145 -0
- package/dist/chunk-200781fd.js +64 -0
- package/dist/chunk-205mmm67.js +100 -0
- package/dist/chunk-209eh6ak.js +9381 -0
- package/dist/chunk-21mfpnva.js +85 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-24k6t9fa.js +151 -0
- package/dist/chunk-29gg6hx0.js +2992 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2ekjxh7d.js +289 -0
- package/dist/chunk-2eykm0j0.js +20 -0
- package/dist/chunk-2fwze72g.js +24 -0
- package/dist/chunk-2gzv8nrw.js +205 -0
- package/dist/chunk-2k995y2x.js +880 -0
- package/dist/chunk-2nayx6q1.js +63 -0
- package/dist/chunk-2pg9pmvc.js +182 -0
- package/dist/chunk-2qp2hc02.js +36 -0
- package/dist/chunk-2rj0dnps.js +436 -0
- package/dist/chunk-2t0xa4dt.js +145 -0
- package/dist/chunk-2ym6tnww.js +216 -0
- package/dist/chunk-30bpz5m2.js +34 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-36b2q5fg.js +1299 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3ewzhjyb.js +207 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3nk79af8.js +8 -0
- package/dist/chunk-3sfr7j85.js +884 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-3x52v1wb.js +660 -0
- package/dist/chunk-404qm8xt.js +1715 -0
- package/dist/chunk-42fjay4q.js +141 -0
- package/dist/chunk-48649h96.js +8590 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-4anj5saq.js +111 -0
- package/dist/chunk-4asynmj4.js +259 -0
- package/dist/chunk-4ck9wve9.js +225 -0
- package/dist/chunk-4cp6193g.js +9076 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4geyher8.js +244 -0
- package/dist/chunk-4hv90qcz.js +8 -0
- package/dist/chunk-4jhr03e7.js +61 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4nspekjp.js +69 -0
- package/dist/chunk-4ptqcw4p.js +16 -0
- package/dist/chunk-4qj8cqbh.js +173 -0
- package/dist/chunk-4wxsg6a0.js +122 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-54dckh8a.js +1169 -0
- package/dist/chunk-54y13759.js +650 -0
- package/dist/chunk-54yf6e8d.js +91 -0
- package/dist/chunk-57qz90z8.js +154 -0
- package/dist/chunk-59k0mjnc.js +120 -0
- package/dist/chunk-59p9jye4.js +104 -0
- package/dist/chunk-5c753bd4.js +64 -0
- package/dist/chunk-5cw6zwep.js +106 -0
- package/dist/chunk-5eaf3j24.js +133 -0
- package/dist/chunk-5me7398b.js +81 -0
- package/dist/chunk-5pevjsyw.js +118 -0
- package/dist/chunk-5q3c2rf4.js +107 -0
- package/dist/chunk-5xwtnq4g.js +146 -0
- package/dist/chunk-5z28bqne.js +6748 -0
- package/dist/chunk-613f6fbv.js +63 -0
- package/dist/chunk-641hawvm.js +95 -0
- package/dist/chunk-64c1avct.js +13 -0
- package/dist/chunk-64hks9ax.js +456 -0
- package/dist/chunk-677as3nh.js +15 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6cs6mmez.js +112 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6e8vht4y.js +780 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6hkd32eh.js +83 -0
- package/dist/chunk-6jqxvef0.js +198 -0
- package/dist/chunk-6mh3vfa4.js +115 -0
- package/dist/chunk-6mpw9h55.js +1071 -0
- package/dist/chunk-6p4cyhb3.js +16 -0
- package/dist/chunk-6qvgnepd.js +26 -0
- package/dist/chunk-6r2bhsvt.js +6956 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-7316m01k.js +125 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-75zk7zr1.js +309 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-764ec4ja.js +173 -0
- package/dist/chunk-76vgnv24.js +108 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-7a7hxy3d.js +167 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7b6bg1r4.js +16128 -0
- package/dist/chunk-7ca4qskp.js +99 -0
- package/dist/chunk-7deph26x.js +311 -0
- package/dist/chunk-7ds8zqar.js +108 -0
- package/dist/chunk-7fqxw3d2.js +479 -0
- package/dist/chunk-7nysf9yd.js +266 -0
- package/dist/chunk-7tascxe2.js +90 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7xmw2tcz.js +277 -0
- package/dist/chunk-7xyswgjh.js +8 -0
- package/dist/chunk-7zkhadkb.js +220 -0
- package/dist/chunk-8225arm6.js +6374 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-85tag8nv.js +1391 -0
- package/dist/chunk-8bd8q5xw.js +359 -0
- package/dist/chunk-8bwqtasa.js +213 -0
- package/dist/chunk-8g5pe1gr.js +37 -0
- package/dist/chunk-8g747a8x.js +26 -0
- package/dist/chunk-8h6sdj66.js +447 -0
- package/dist/chunk-8mm8b6dd.js +19 -0
- package/dist/chunk-8ndwn6st.js +120 -0
- package/dist/chunk-8pn8tvgg.js +637 -0
- package/dist/chunk-8tnn9kcb.js +131 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8x5w267y.js +112 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90mt0m1w.js +102 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-91ew1d6f.js +2689 -0
- package/dist/chunk-97jsc1kn.js +231 -0
- package/dist/chunk-993pnm45.js +4521 -0
- package/dist/chunk-9a0rsdre.js +46 -0
- package/dist/chunk-9d7fmqkw.js +41 -0
- package/dist/chunk-9dgaq0g4.js +667 -0
- package/dist/chunk-9f52phb8.js +138 -0
- package/dist/chunk-9fbpqghc.js +105 -0
- package/dist/chunk-9hzxd5q3.js +122 -0
- package/dist/chunk-9kyrssch.js +28 -0
- package/dist/chunk-9q93n4w6.js +308 -0
- package/dist/chunk-9s0xs06y.js +581 -0
- package/dist/chunk-9x5zgy22.js +12 -0
- package/dist/chunk-9zdcb9jy.js +105 -0
- package/dist/chunk-a136cvvz.js +27 -0
- package/dist/chunk-a4psxnr1.js +224 -0
- package/dist/chunk-a4twdmhf.js +45 -0
- package/dist/chunk-a7rhvq9b.js +106 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-aawg48hh.js +4102 -0
- package/dist/chunk-ad2f3890.js +65 -0
- package/dist/chunk-ae7ar1jk.js +105 -0
- package/dist/chunk-ak3hdbe4.js +234 -0
- package/dist/chunk-as4e9g8f.js +298 -0
- package/dist/chunk-ase86y73.js +15 -0
- package/dist/chunk-awb4vc41.js +69 -0
- package/dist/chunk-b4bep0aq.js +5041 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b81hd3m6.js +32 -0
- package/dist/chunk-b9knmzt0.js +106 -0
- package/dist/chunk-besmz4ym.js +32 -0
- package/dist/chunk-bgpkemkg.js +65 -0
- package/dist/chunk-bj8x29tz.js +54 -0
- package/dist/chunk-bkqsnwrq.js +239 -0
- package/dist/chunk-bnf662he.js +359 -0
- package/dist/chunk-bq00fcsd.js +165 -0
- package/dist/chunk-brz2c4cq.js +275 -0
- package/dist/chunk-bsa118r4.js +502 -0
- package/dist/chunk-bsengrbt.js +2737 -0
- package/dist/chunk-bt64sq5y.js +19 -0
- package/dist/chunk-bxcfz5gy.js +56 -0
- package/dist/chunk-bxs2a71m.js +213 -0
- package/dist/chunk-byv2p9hn.js +397 -0
- package/dist/chunk-c03am3es.js +29 -0
- package/dist/chunk-c2ahb7yg.js +105 -0
- package/dist/chunk-c2qm0t6p.js +111 -0
- package/dist/chunk-c42h9gzx.js +71 -0
- package/dist/chunk-c47xbxqw.js +38 -0
- package/dist/chunk-c5vkve4j.js +68 -0
- package/dist/chunk-c6sjhj89.js +1284 -0
- package/dist/chunk-ca147npg.js +27 -0
- package/dist/chunk-caxx597g.js +71 -0
- package/dist/chunk-cbrt5vsb.js +31 -0
- package/dist/chunk-ce0z23ct.js +443 -0
- package/dist/chunk-cefsp8h1.js +155 -0
- package/dist/chunk-cfv996bs.js +22 -0
- package/dist/chunk-cgfdkzhb.js +12 -0
- package/dist/chunk-chsyvavm.js +3435 -0
- package/dist/chunk-cmsknj6n.js +28228 -0
- package/dist/chunk-cn8bkmvj.js +264 -0
- package/dist/chunk-crmjpsqe.js +68 -0
- package/dist/chunk-cthpw4pj.js +849 -0
- package/dist/chunk-cwy9nj4y.js +134 -0
- package/dist/chunk-cyagce56.js +155 -0
- package/dist/chunk-cynewytp.js +227 -0
- package/dist/chunk-cznf6k4g.js +46 -0
- package/dist/chunk-d0954t9j.js +267 -0
- package/dist/chunk-d1qhftze.js +118 -0
- package/dist/chunk-d4mdda98.js +94 -0
- package/dist/chunk-d4rnqevg.js +41 -0
- package/dist/chunk-d7886r6a.js +13870 -0
- package/dist/chunk-dd1qvamk.js +678 -0
- package/dist/chunk-dg4je8qj.js +183 -0
- package/dist/chunk-dggvswz1.js +104 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dm3n2qgd.js +24 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dsenyfax.js +105 -0
- package/dist/chunk-dtf0a7rr.js +655 -0
- package/dist/chunk-dxdb7bs1.js +60 -0
- package/dist/chunk-e0pth8g7.js +79 -0
- package/dist/chunk-e36y0q82.js +109 -0
- package/dist/chunk-ef55cwrv.js +267 -0
- package/dist/chunk-efh644hv.js +915 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-ejahyhd8.js +120 -0
- package/dist/chunk-ejk1bpzz.js +472 -0
- package/dist/chunk-emef71ea.js +202 -0
- package/dist/chunk-en7v028t.js +333 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-exh7z6tv.js +132 -0
- package/dist/chunk-f0npbgyf.js +340 -0
- package/dist/chunk-f2qkc8ce.js +229 -0
- package/dist/chunk-f49sb3q7.js +40 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fday7sfg.js +269 -0
- package/dist/chunk-feyzykye.js +10 -0
- package/dist/chunk-fgqwr70t.js +241 -0
- package/dist/chunk-fhy7zs1w.js +943 -0
- package/dist/chunk-fmw3f68k.js +432 -0
- package/dist/chunk-fmwqvpqm.js +506 -0
- package/dist/chunk-fn1apgre.js +66 -0
- package/dist/chunk-fpy4nam9.js +21933 -0
- package/dist/chunk-fqy0erkw.js +908 -0
- package/dist/chunk-ftqwza3a.js +43 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-fz0ch109.js +329 -0
- package/dist/chunk-fzhn8z8j.js +253 -0
- package/dist/chunk-g12brv6y.js +321 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g5tpks28.js +795 -0
- package/dist/chunk-g63tgj4f.js +58 -0
- package/dist/chunk-g827r0mk.js +266 -0
- package/dist/chunk-g8wzsxgc.js +2534 -0
- package/dist/chunk-gey7mwcw.js +36 -0
- package/dist/chunk-gghb9pks.js +120 -0
- package/dist/chunk-grdpaf1p.js +606 -0
- package/dist/chunk-gx8016vp.js +125 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h0rbjg6x.js +55 -0
- package/dist/chunk-h1mr3371.js +121 -0
- package/dist/chunk-h3xwdgpd.js +68 -0
- package/dist/chunk-h4b85amj.js +2331 -0
- package/dist/chunk-h6d137aa.js +20 -0
- package/dist/chunk-h9n7z00d.js +95 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hd8531ec.js +685 -0
- package/dist/chunk-heq3rn8t.js +33068 -0
- package/dist/chunk-hfvxc9fd.js +542 -0
- package/dist/chunk-hgpd0qmm.js +371 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hhjs87wh.js +1407 -0
- package/dist/chunk-hjtvdvgj.js +208 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hknbjky3.js +160798 -0
- package/dist/chunk-htsbqyf9.js +338 -0
- package/dist/chunk-htx7jmxk.js +78 -0
- package/dist/chunk-hzhe8ygc.js +547 -0
- package/dist/chunk-j2k4p94p.js +55 -0
- package/dist/chunk-j3a4p81y.js +184 -0
- package/dist/chunk-j46rb9m9.js +544 -0
- package/dist/chunk-j5bth84e.js +97 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-j6jh72hw.js +140 -0
- package/dist/chunk-j9gxwbe3.js +349 -0
- package/dist/chunk-jaaxk89e.js +113 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jk826edv.js +174 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jsx72hep.js +208 -0
- package/dist/chunk-jx817w05.js +11 -0
- package/dist/chunk-jzmz18nn.js +65 -0
- package/dist/chunk-k0p9w03v.js +4957 -0
- package/dist/chunk-k3s4yk22.js +477 -0
- package/dist/chunk-kfd89dsd.js +21 -0
- package/dist/chunk-kgfz4522.js +126 -0
- package/dist/chunk-kn6zg6bd.js +524 -0
- package/dist/chunk-kp9vkzj6.js +120 -0
- package/dist/chunk-kraf793v.js +118 -0
- package/dist/chunk-kw0r30h3.js +208 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-m2bcpk8j.js +30 -0
- package/dist/chunk-m2kp5f7p.js +4389 -0
- package/dist/chunk-m74w3187.js +164 -0
- package/dist/chunk-m88q4jmb.js +61 -0
- package/dist/chunk-man6wb4n.js +1456 -0
- package/dist/chunk-mdk3xgya.js +42 -0
- package/dist/chunk-mf4g439x.js +82 -0
- package/dist/chunk-mg8g0xqs.js +71 -0
- package/dist/chunk-mkwzrqvf.js +38 -0
- package/dist/chunk-mn61mk4v.js +351 -0
- package/dist/chunk-ms09sxcj.js +908 -0
- package/dist/chunk-mtn1anwe.js +2351 -0
- package/dist/chunk-mv0zm0qj.js +65 -0
- package/dist/chunk-mx28h61f.js +1147 -0
- package/dist/chunk-mxbf8ajn.js +1067 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n34z5cw8.js +74 -0
- package/dist/chunk-n55ehz77.js +120 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-n9ktjngj.js +336 -0
- package/dist/chunk-nb2ntesh.js +149 -0
- package/dist/chunk-netzwgv1.js +154 -0
- package/dist/chunk-nh3cd07f.js +14358 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nm97cw83.js +458 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nx87c0vw.js +250 -0
- package/dist/chunk-nxw6y6xm.js +862 -0
- package/dist/chunk-nzt717xg.js +32 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p9cdykwf.js +72 -0
- package/dist/chunk-paxw1ryd.js +227 -0
- package/dist/chunk-ph5g4d1j.js +109 -0
- package/dist/chunk-pp42p8y3.js +574 -0
- package/dist/chunk-ppdn71n4.js +400 -0
- package/dist/chunk-ppwjyveh.js +8 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pshjyzq4.js +17656 -0
- package/dist/chunk-pw8nf9rt.js +126 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-py3zxq5j.js +129 -0
- package/dist/chunk-pyz1qswz.js +300 -0
- package/dist/chunk-q50q8mc5.js +157 -0
- package/dist/chunk-q7tpyeb3.js +39 -0
- package/dist/chunk-q82r31er.js +151 -0
- package/dist/chunk-qajrkk97.js +298 -0
- package/dist/chunk-qcpxnyeh.js +110 -0
- package/dist/chunk-qeabchwr.js +132 -0
- package/dist/chunk-qm7nbd10.js +755 -0
- package/dist/chunk-qm8j7kxr.js +280 -0
- package/dist/chunk-qmwgg5zy.js +136 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qphaajd7.js +305 -0
- package/dist/chunk-qt21xxgm.js +419 -0
- package/dist/chunk-qy2z2p0b.js +122 -0
- package/dist/chunk-qyz8q0dj.js +689 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-qzq5n1yn.js +76 -0
- package/dist/chunk-r0ya57xw.js +170 -0
- package/dist/chunk-r7j395t6.js +122 -0
- package/dist/chunk-r7trcrs7.js +62 -0
- package/dist/chunk-re4yh70t.js +1095 -0
- package/dist/chunk-rhte1r8g.js +272 -0
- package/dist/chunk-rhw4ayb1.js +6851 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rphakhme.js +281 -0
- package/dist/chunk-rrtzz2pv.js +32 -0
- package/dist/chunk-rtnjk8ge.js +726 -0
- package/dist/chunk-rwhswkma.js +87 -0
- package/dist/chunk-rxd4kn2g.js +308 -0
- package/dist/chunk-s083x8ry.js +2840 -0
- package/dist/chunk-s16sn02n.js +365 -0
- package/dist/chunk-s1s8qfdh.js +182 -0
- package/dist/chunk-s2bwz69v.js +473 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s9y6t0mt.js +291 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-se8xzw8h.js +87 -0
- package/dist/chunk-sg66v252.js +1648 -0
- package/dist/chunk-sg7gf3hj.js +1585 -0
- package/dist/chunk-spx24x6j.js +98 -0
- package/dist/chunk-sybxpy18.js +73 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0gb304x.js +182 -0
- package/dist/chunk-t3fr4skc.js +165 -0
- package/dist/chunk-t58wfamm.js +5368 -0
- package/dist/chunk-t6s2kkm3.js +104 -0
- package/dist/chunk-t8hv0x81.js +116 -0
- package/dist/chunk-tezak8rx.js +6157 -0
- package/dist/chunk-th5y3hj5.js +189 -0
- package/dist/chunk-tj0d3870.js +180 -0
- package/dist/chunk-tjgsawpx.js +40 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tv9pcdnz.js +51 -0
- package/dist/chunk-ty99rgvw.js +122 -0
- package/dist/chunk-tzgp8av2.js +61 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v2c9dq7t.js +275 -0
- package/dist/chunk-v3aq3heg.js +620 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-var1et7e.js +66 -0
- package/dist/chunk-vchrkvet.js +120 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vf612n57.js +472 -0
- package/dist/chunk-vgpy9md6.js +339 -0
- package/dist/chunk-vkzt82ry.js +644 -0
- package/dist/chunk-vsh80y0c.js +100 -0
- package/dist/chunk-vxkdxhyk.js +103 -0
- package/dist/chunk-vxt6ywm9.js +485 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vytdzvqs.js +1181 -0
- package/dist/chunk-w0qks2ja.js +1030 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wp1568nt.js +828 -0
- package/dist/chunk-wpckhx7b.js +66 -0
- package/dist/chunk-wpvkvwvc.js +41 -0
- package/dist/chunk-ws5d6qs4.js +655 -0
- package/dist/chunk-wsnxrrb5.js +986 -0
- package/dist/chunk-wyavftcj.js +103 -0
- package/dist/chunk-wybh0bvv.js +121 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x2dp18yj.js +74 -0
- package/dist/chunk-x6r4v44b.js +8 -0
- package/dist/chunk-x7r5k0hf.js +423 -0
- package/dist/chunk-xahk20z8.js +877 -0
- package/dist/chunk-xajwdaxm.js +295 -0
- package/dist/chunk-xkt36p6r.js +61 -0
- package/dist/chunk-xnav6j8h.js +490 -0
- package/dist/chunk-xrj294jg.js +440 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xt9z9t7b.js +40 -0
- package/dist/chunk-xv3era3s.js +8 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-y289fz8y.js +116 -0
- package/dist/chunk-y3r7v9pq.js +336 -0
- package/dist/chunk-y98z50mm.js +158 -0
- package/dist/chunk-yhce3x0q.js +64 -0
- package/dist/chunk-yhhf6n9p.js +338 -0
- package/dist/chunk-ykr34msh.js +411 -0
- package/dist/chunk-yks9ggzn.js +103 -0
- package/dist/chunk-ym5r3jnk.js +2007 -0
- package/dist/chunk-ypa349qq.js +148 -0
- package/dist/chunk-yzx3mhfd.js +110 -0
- package/dist/chunk-z1bs6d7k.js +24 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z3k0k30d.js +882 -0
- package/dist/chunk-z42cqdtf.js +107 -0
- package/dist/chunk-z7asrz6j.js +259 -0
- package/dist/chunk-za09fhhh.js +716 -0
- package/dist/chunk-zae0t3p4.js +252 -0
- package/dist/chunk-zbsw794g.js +259 -0
- package/dist/chunk-ze6zvkg6.js +22820 -0
- package/dist/chunk-zejm280k.js +39 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-znf2b75k.js +113 -0
- package/dist/chunk-zqpnvsdz.js +24 -0
- package/dist/chunk-zs2gdkj5.js +433 -0
- package/dist/chunk-zseb1639.js +37 -0
- package/dist/chunk-zsgha506.js +63 -0
- package/dist/chunk-zvsfgmq8.js +146 -0
- package/dist/chunk-zw5xd7m9.js +160 -0
- package/dist/chunk-zzm33q8x.js +8 -0
- package/dist/cli.js +97 -0
- package/dist/download-ripgrep.js +24821 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/package.json +178 -0
- package/scripts/download-ripgrep.ts +335 -0
- package/scripts/postinstall.cjs +319 -0
|
@@ -0,0 +1,1067 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_staticRender,
|
|
4
|
+
renderToAnsiString
|
|
5
|
+
} from "./chunk-x2dp18yj.js";
|
|
6
|
+
import {
|
|
7
|
+
BASH_TOOL_NAME,
|
|
8
|
+
FILE_READ_TOOL_NAME,
|
|
9
|
+
GREP_TOOL_NAME,
|
|
10
|
+
WEB_FETCH_TOOL_NAME,
|
|
11
|
+
analyzeContextUsage,
|
|
12
|
+
getMessagesAfterCompactBoundary,
|
|
13
|
+
init_analyzeContext,
|
|
14
|
+
init_messages1 as init_messages,
|
|
15
|
+
init_microCompact,
|
|
16
|
+
init_prompt,
|
|
17
|
+
init_prompt1 as init_prompt2,
|
|
18
|
+
init_prompt4 as init_prompt3,
|
|
19
|
+
init_toolName,
|
|
20
|
+
microcompactMessages
|
|
21
|
+
} from "./chunk-hknbjky3.js";
|
|
22
|
+
import"./chunk-a4psxnr1.js";
|
|
23
|
+
import"./chunk-613f6fbv.js";
|
|
24
|
+
import"./chunk-zejm280k.js";
|
|
25
|
+
import"./chunk-57qz90z8.js";
|
|
26
|
+
import"./chunk-4nspekjp.js";
|
|
27
|
+
import"./chunk-heq3rn8t.js";
|
|
28
|
+
import"./chunk-var1et7e.js";
|
|
29
|
+
import"./chunk-e0pth8g7.js";
|
|
30
|
+
import"./chunk-ws5d6qs4.js";
|
|
31
|
+
import"./chunk-bxcfz5gy.js";
|
|
32
|
+
import"./chunk-wp1568nt.js";
|
|
33
|
+
import"./chunk-2gzv8nrw.js";
|
|
34
|
+
import"./chunk-ehtwnxpg.js";
|
|
35
|
+
import"./chunk-cgfdkzhb.js";
|
|
36
|
+
import"./chunk-8h6sdj66.js";
|
|
37
|
+
import"./chunk-75zk7zr1.js";
|
|
38
|
+
import"./chunk-j5bth84e.js";
|
|
39
|
+
import"./chunk-qm7nbd10.js";
|
|
40
|
+
import"./chunk-5pevjsyw.js";
|
|
41
|
+
import"./chunk-xnav6j8h.js";
|
|
42
|
+
import"./chunk-ps49ymvj.js";
|
|
43
|
+
import"./chunk-zk2wsm7d.js";
|
|
44
|
+
import"./chunk-2t0xa4dt.js";
|
|
45
|
+
import"./chunk-bgpkemkg.js";
|
|
46
|
+
import"./chunk-rrtzz2pv.js";
|
|
47
|
+
import"./chunk-zsgha506.js";
|
|
48
|
+
import"./chunk-4jm600zv.js";
|
|
49
|
+
import"./chunk-xkt36p6r.js";
|
|
50
|
+
import"./chunk-2ekjxh7d.js";
|
|
51
|
+
import"./chunk-85tag8nv.js";
|
|
52
|
+
import"./chunk-mx28h61f.js";
|
|
53
|
+
import"./chunk-kraf793v.js";
|
|
54
|
+
import"./chunk-bj8x29tz.js";
|
|
55
|
+
import"./chunk-zae0t3p4.js";
|
|
56
|
+
import"./chunk-t58wfamm.js";
|
|
57
|
+
import"./chunk-chsyvavm.js";
|
|
58
|
+
import"./chunk-6mpw9h55.js";
|
|
59
|
+
import {
|
|
60
|
+
getDisplayPath,
|
|
61
|
+
getSourceDisplayName,
|
|
62
|
+
init_constants,
|
|
63
|
+
init_file,
|
|
64
|
+
init_stringUtils
|
|
65
|
+
} from "./chunk-7b6bg1r4.js";
|
|
66
|
+
import"./chunk-sg66v252.js";
|
|
67
|
+
import"./chunk-8bwqtasa.js";
|
|
68
|
+
import"./chunk-j9gxwbe3.js";
|
|
69
|
+
import"./chunk-1cwdhk7a.js";
|
|
70
|
+
import"./chunk-rtnjk8ge.js";
|
|
71
|
+
import"./chunk-64c1avct.js";
|
|
72
|
+
import"./chunk-8g5pe1gr.js";
|
|
73
|
+
import"./chunk-gx8016vp.js";
|
|
74
|
+
import"./chunk-4cp6193g.js";
|
|
75
|
+
import"./chunk-8g747a8x.js";
|
|
76
|
+
import"./chunk-d7886r6a.js";
|
|
77
|
+
import"./chunk-f5ma3nh5.js";
|
|
78
|
+
import"./chunk-qz2x630m.js";
|
|
79
|
+
import"./chunk-r7j395t6.js";
|
|
80
|
+
import"./chunk-tv9pcdnz.js";
|
|
81
|
+
import"./chunk-3c25bcsw.js";
|
|
82
|
+
import"./chunk-n9ktjngj.js";
|
|
83
|
+
import"./chunk-q82r31er.js";
|
|
84
|
+
import"./chunk-p2816w9z.js";
|
|
85
|
+
import"./chunk-v9smspw2.js";
|
|
86
|
+
import"./chunk-v1kzp02e.js";
|
|
87
|
+
import {
|
|
88
|
+
formatTokens,
|
|
89
|
+
init_format
|
|
90
|
+
} from "./chunk-64hks9ax.js";
|
|
91
|
+
import"./chunk-crmjpsqe.js";
|
|
92
|
+
import {
|
|
93
|
+
StatusIcon,
|
|
94
|
+
ThemedBox_default,
|
|
95
|
+
ThemedText,
|
|
96
|
+
init_src
|
|
97
|
+
} from "./chunk-cmsknj6n.js";
|
|
98
|
+
import {
|
|
99
|
+
require_jsx_dev_runtime
|
|
100
|
+
} from "./chunk-g338npwr.js";
|
|
101
|
+
import"./chunk-h0rbjg6x.js";
|
|
102
|
+
import"./chunk-0vkfrmqm.js";
|
|
103
|
+
import"./chunk-0xjaqda8.js";
|
|
104
|
+
import"./chunk-h1mr3371.js";
|
|
105
|
+
import"./chunk-36b2q5fg.js";
|
|
106
|
+
import"./chunk-a7rhvq9b.js";
|
|
107
|
+
import"./chunk-qnfx3qtx.js";
|
|
108
|
+
import"./chunk-m74w3187.js";
|
|
109
|
+
import"./chunk-b81hd3m6.js";
|
|
110
|
+
import"./chunk-y3r7v9pq.js";
|
|
111
|
+
import"./chunk-8tnsngw2.js";
|
|
112
|
+
import"./chunk-awb4vc41.js";
|
|
113
|
+
import"./chunk-cbrt5vsb.js";
|
|
114
|
+
import"./chunk-5z28bqne.js";
|
|
115
|
+
import {
|
|
116
|
+
figures_default,
|
|
117
|
+
init_figures
|
|
118
|
+
} from "./chunk-qajrkk97.js";
|
|
119
|
+
import"./chunk-404qm8xt.js";
|
|
120
|
+
import"./chunk-fbv4apne.js";
|
|
121
|
+
import"./chunk-jaaxk89e.js";
|
|
122
|
+
import"./chunk-h4b85amj.js";
|
|
123
|
+
import"./chunk-07069jq1.js";
|
|
124
|
+
import"./chunk-vf612n57.js";
|
|
125
|
+
import"./chunk-d4mdda98.js";
|
|
126
|
+
import"./chunk-7wm5s02e.js";
|
|
127
|
+
import"./chunk-4g3v8y12.js";
|
|
128
|
+
import"./chunk-7739pg2c.js";
|
|
129
|
+
import"./chunk-nh3cd07f.js";
|
|
130
|
+
import"./chunk-8pn8tvgg.js";
|
|
131
|
+
import"./chunk-netzwgv1.js";
|
|
132
|
+
import {
|
|
133
|
+
__esm,
|
|
134
|
+
__toESM
|
|
135
|
+
} from "./chunk-qp2qdcda.js";
|
|
136
|
+
|
|
137
|
+
// src/utils/contextSuggestions.ts
|
|
138
|
+
function generateContextSuggestions(data) {
|
|
139
|
+
const suggestions = [];
|
|
140
|
+
checkNearCapacity(data, suggestions);
|
|
141
|
+
checkLargeToolResults(data, suggestions);
|
|
142
|
+
checkReadResultBloat(data, suggestions);
|
|
143
|
+
checkMemoryBloat(data, suggestions);
|
|
144
|
+
checkAutoCompactDisabled(data, suggestions);
|
|
145
|
+
suggestions.sort((a, b) => {
|
|
146
|
+
if (a.severity !== b.severity) {
|
|
147
|
+
return a.severity === "warning" ? -1 : 1;
|
|
148
|
+
}
|
|
149
|
+
return (b.savingsTokens ?? 0) - (a.savingsTokens ?? 0);
|
|
150
|
+
});
|
|
151
|
+
return suggestions;
|
|
152
|
+
}
|
|
153
|
+
function checkNearCapacity(data, suggestions) {
|
|
154
|
+
if (data.percentage >= NEAR_CAPACITY_PERCENT) {
|
|
155
|
+
suggestions.push({
|
|
156
|
+
severity: "warning",
|
|
157
|
+
title: `Context is ${data.percentage}% full`,
|
|
158
|
+
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."
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function checkLargeToolResults(data, suggestions) {
|
|
163
|
+
if (!data.messageBreakdown)
|
|
164
|
+
return;
|
|
165
|
+
for (const tool of data.messageBreakdown.toolCallsByType) {
|
|
166
|
+
const totalToolTokens = tool.callTokens + tool.resultTokens;
|
|
167
|
+
const percent = totalToolTokens / data.rawMaxTokens * 100;
|
|
168
|
+
if (percent < LARGE_TOOL_RESULT_PERCENT || totalToolTokens < LARGE_TOOL_RESULT_TOKENS) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const suggestion = getLargeToolSuggestion(tool.name, totalToolTokens, percent);
|
|
172
|
+
if (suggestion) {
|
|
173
|
+
suggestions.push(suggestion);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function getLargeToolSuggestion(toolName, tokens, percent) {
|
|
178
|
+
const tokenStr = formatTokens(tokens);
|
|
179
|
+
switch (toolName) {
|
|
180
|
+
case BASH_TOOL_NAME:
|
|
181
|
+
return {
|
|
182
|
+
severity: "warning",
|
|
183
|
+
title: `Bash results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
|
|
184
|
+
detail: "Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files \u2014 use Read with offset/limit instead.",
|
|
185
|
+
savingsTokens: Math.floor(tokens * 0.5)
|
|
186
|
+
};
|
|
187
|
+
case FILE_READ_TOOL_NAME:
|
|
188
|
+
return {
|
|
189
|
+
severity: "info",
|
|
190
|
+
title: `Read results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
|
|
191
|
+
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.",
|
|
192
|
+
savingsTokens: Math.floor(tokens * 0.3)
|
|
193
|
+
};
|
|
194
|
+
case GREP_TOOL_NAME:
|
|
195
|
+
return {
|
|
196
|
+
severity: "info",
|
|
197
|
+
title: `Grep results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
|
|
198
|
+
detail: "Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",
|
|
199
|
+
savingsTokens: Math.floor(tokens * 0.3)
|
|
200
|
+
};
|
|
201
|
+
case WEB_FETCH_TOOL_NAME:
|
|
202
|
+
return {
|
|
203
|
+
severity: "info",
|
|
204
|
+
title: `WebFetch results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
|
|
205
|
+
detail: "Web page content can be very large. Consider extracting only the specific information needed.",
|
|
206
|
+
savingsTokens: Math.floor(tokens * 0.4)
|
|
207
|
+
};
|
|
208
|
+
default:
|
|
209
|
+
if (percent >= 20) {
|
|
210
|
+
return {
|
|
211
|
+
severity: "info",
|
|
212
|
+
title: `${toolName} using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
|
|
213
|
+
detail: `This tool is consuming a significant portion of context.`,
|
|
214
|
+
savingsTokens: Math.floor(tokens * 0.2)
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function checkReadResultBloat(data, suggestions) {
|
|
221
|
+
if (!data.messageBreakdown)
|
|
222
|
+
return;
|
|
223
|
+
const callsByType = data.messageBreakdown.toolCallsByType;
|
|
224
|
+
const readTool = callsByType.find((t) => t.name === FILE_READ_TOOL_NAME);
|
|
225
|
+
if (!readTool)
|
|
226
|
+
return;
|
|
227
|
+
const totalReadTokens = readTool.callTokens + readTool.resultTokens;
|
|
228
|
+
const totalReadPercent = totalReadTokens / data.rawMaxTokens * 100;
|
|
229
|
+
const readPercent = readTool.resultTokens / data.rawMaxTokens * 100;
|
|
230
|
+
if (totalReadPercent >= LARGE_TOOL_RESULT_PERCENT && totalReadTokens >= LARGE_TOOL_RESULT_TOKENS) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (readPercent >= READ_BLOAT_PERCENT && readTool.resultTokens >= LARGE_TOOL_RESULT_TOKENS) {
|
|
234
|
+
suggestions.push({
|
|
235
|
+
severity: "info",
|
|
236
|
+
title: `File reads using ${formatTokens(readTool.resultTokens)} tokens (${readPercent.toFixed(0)}%)`,
|
|
237
|
+
detail: "If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",
|
|
238
|
+
savingsTokens: Math.floor(readTool.resultTokens * 0.3)
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function checkMemoryBloat(data, suggestions) {
|
|
243
|
+
const totalMemoryTokens = data.memoryFiles.reduce((sum, f) => sum + f.tokens, 0);
|
|
244
|
+
const memoryPercent = totalMemoryTokens / data.rawMaxTokens * 100;
|
|
245
|
+
if (memoryPercent >= MEMORY_HIGH_PERCENT && totalMemoryTokens >= MEMORY_HIGH_TOKENS) {
|
|
246
|
+
const largestFiles = [...data.memoryFiles].sort((a, b) => b.tokens - a.tokens).slice(0, 3).map((f) => {
|
|
247
|
+
const name = getDisplayPath(f.path);
|
|
248
|
+
return `${name} (${formatTokens(f.tokens)})`;
|
|
249
|
+
}).join(", ");
|
|
250
|
+
suggestions.push({
|
|
251
|
+
severity: "info",
|
|
252
|
+
title: `Memory files using ${formatTokens(totalMemoryTokens)} tokens (${memoryPercent.toFixed(0)}%)`,
|
|
253
|
+
detail: `Largest: ${largestFiles}. Use /memory to review and prune stale entries.`,
|
|
254
|
+
savingsTokens: Math.floor(totalMemoryTokens * 0.3)
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
function checkAutoCompactDisabled(data, suggestions) {
|
|
259
|
+
if (!data.isAutoCompactEnabled && data.percentage >= 50 && data.percentage < NEAR_CAPACITY_PERCENT) {
|
|
260
|
+
suggestions.push({
|
|
261
|
+
severity: "info",
|
|
262
|
+
title: "Autocompact is disabled",
|
|
263
|
+
detail: "Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
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;
|
|
268
|
+
var init_contextSuggestions = __esm(() => {
|
|
269
|
+
init_toolName();
|
|
270
|
+
init_prompt2();
|
|
271
|
+
init_prompt();
|
|
272
|
+
init_prompt3();
|
|
273
|
+
init_file();
|
|
274
|
+
init_format();
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
// src/components/ContextSuggestions.tsx
|
|
278
|
+
function ContextSuggestions({ suggestions }) {
|
|
279
|
+
if (suggestions.length === 0)
|
|
280
|
+
return null;
|
|
281
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
282
|
+
flexDirection: "column",
|
|
283
|
+
marginTop: 1,
|
|
284
|
+
children: [
|
|
285
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
286
|
+
bold: true,
|
|
287
|
+
children: "Suggestions"
|
|
288
|
+
}, undefined, false, undefined, this),
|
|
289
|
+
suggestions.map((suggestion, i) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
290
|
+
flexDirection: "column",
|
|
291
|
+
marginTop: i === 0 ? 0 : 1,
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
294
|
+
children: [
|
|
295
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(StatusIcon, {
|
|
296
|
+
status: suggestion.severity,
|
|
297
|
+
withSpace: true
|
|
298
|
+
}, undefined, false, undefined, this),
|
|
299
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
300
|
+
bold: true,
|
|
301
|
+
children: suggestion.title
|
|
302
|
+
}, undefined, false, undefined, this),
|
|
303
|
+
suggestion.savingsTokens ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
304
|
+
dimColor: true,
|
|
305
|
+
children: [
|
|
306
|
+
" ",
|
|
307
|
+
figures_default.arrowRight,
|
|
308
|
+
" save ~",
|
|
309
|
+
formatTokens(suggestion.savingsTokens)
|
|
310
|
+
]
|
|
311
|
+
}, undefined, true, undefined, this) : null
|
|
312
|
+
]
|
|
313
|
+
}, undefined, true, undefined, this),
|
|
314
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
315
|
+
marginLeft: 2,
|
|
316
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
317
|
+
dimColor: true,
|
|
318
|
+
children: suggestion.detail
|
|
319
|
+
}, undefined, false, undefined, this)
|
|
320
|
+
}, undefined, false, undefined, this)
|
|
321
|
+
]
|
|
322
|
+
}, i, true, undefined, this))
|
|
323
|
+
]
|
|
324
|
+
}, undefined, true, undefined, this);
|
|
325
|
+
}
|
|
326
|
+
var jsx_dev_runtime;
|
|
327
|
+
var init_ContextSuggestions = __esm(() => {
|
|
328
|
+
init_figures();
|
|
329
|
+
init_src();
|
|
330
|
+
init_format();
|
|
331
|
+
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
// src/components/ContextVisualization.tsx
|
|
335
|
+
function CollapseStatus() {
|
|
336
|
+
if (false) {}
|
|
337
|
+
return null;
|
|
338
|
+
}
|
|
339
|
+
function groupBySource(items) {
|
|
340
|
+
const groups = new Map;
|
|
341
|
+
for (const item of items) {
|
|
342
|
+
const key = getSourceDisplayName(item.source);
|
|
343
|
+
const existing = groups.get(key) || [];
|
|
344
|
+
existing.push(item);
|
|
345
|
+
groups.set(key, existing);
|
|
346
|
+
}
|
|
347
|
+
for (const [key, group] of groups.entries()) {
|
|
348
|
+
groups.set(key, group.sort((a, b) => b.tokens - a.tokens));
|
|
349
|
+
}
|
|
350
|
+
const orderedGroups = new Map;
|
|
351
|
+
for (const source of SOURCE_DISPLAY_ORDER) {
|
|
352
|
+
const group = groups.get(source);
|
|
353
|
+
if (group) {
|
|
354
|
+
orderedGroups.set(source, group);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return orderedGroups;
|
|
358
|
+
}
|
|
359
|
+
function ContextVisualization({ data }) {
|
|
360
|
+
const {
|
|
361
|
+
categories,
|
|
362
|
+
totalTokens,
|
|
363
|
+
rawMaxTokens,
|
|
364
|
+
percentage,
|
|
365
|
+
gridRows,
|
|
366
|
+
model,
|
|
367
|
+
memoryFiles,
|
|
368
|
+
mcpTools,
|
|
369
|
+
deferredBuiltinTools = [],
|
|
370
|
+
systemTools,
|
|
371
|
+
systemPromptSections,
|
|
372
|
+
agents,
|
|
373
|
+
skills,
|
|
374
|
+
messageBreakdown
|
|
375
|
+
} = data;
|
|
376
|
+
const visibleCategories = categories.filter((cat) => cat.tokens > 0 && cat.name !== "Free space" && cat.name !== RESERVED_CATEGORY_NAME && !cat.isDeferred);
|
|
377
|
+
const hasDeferredMcpTools = categories.some((cat) => cat.isDeferred && cat.name.includes("MCP"));
|
|
378
|
+
const hasDeferredBuiltinTools = deferredBuiltinTools.length > 0;
|
|
379
|
+
const autocompactCategory = categories.find((cat) => cat.name === RESERVED_CATEGORY_NAME);
|
|
380
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
381
|
+
flexDirection: "column",
|
|
382
|
+
paddingLeft: 1,
|
|
383
|
+
children: [
|
|
384
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
385
|
+
bold: true,
|
|
386
|
+
children: "Context Usage"
|
|
387
|
+
}, undefined, false, undefined, this),
|
|
388
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
389
|
+
flexDirection: "row",
|
|
390
|
+
gap: 2,
|
|
391
|
+
children: [
|
|
392
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
393
|
+
flexDirection: "column",
|
|
394
|
+
flexShrink: 0,
|
|
395
|
+
children: gridRows.map((row, rowIndex) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
396
|
+
flexDirection: "row",
|
|
397
|
+
marginLeft: -1,
|
|
398
|
+
children: row.map((square, colIndex) => {
|
|
399
|
+
if (square.categoryName === "Free space") {
|
|
400
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
401
|
+
dimColor: true,
|
|
402
|
+
children: "\u26F6 "
|
|
403
|
+
}, colIndex, false, undefined, this);
|
|
404
|
+
}
|
|
405
|
+
if (square.categoryName === RESERVED_CATEGORY_NAME) {
|
|
406
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
407
|
+
color: square.color,
|
|
408
|
+
children: "\u26DD "
|
|
409
|
+
}, colIndex, false, undefined, this);
|
|
410
|
+
}
|
|
411
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
412
|
+
color: square.color,
|
|
413
|
+
children: square.squareFullness >= 0.7 ? "\u26C1 " : "\u26C0 "
|
|
414
|
+
}, colIndex, false, undefined, this);
|
|
415
|
+
})
|
|
416
|
+
}, rowIndex, false, undefined, this))
|
|
417
|
+
}, undefined, false, undefined, this),
|
|
418
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
419
|
+
flexDirection: "column",
|
|
420
|
+
gap: 0,
|
|
421
|
+
flexShrink: 0,
|
|
422
|
+
children: [
|
|
423
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
424
|
+
dimColor: true,
|
|
425
|
+
children: [
|
|
426
|
+
model,
|
|
427
|
+
" \xB7 ",
|
|
428
|
+
formatTokens(totalTokens),
|
|
429
|
+
"/",
|
|
430
|
+
formatTokens(rawMaxTokens),
|
|
431
|
+
" ",
|
|
432
|
+
"tokens (",
|
|
433
|
+
percentage,
|
|
434
|
+
"%)"
|
|
435
|
+
]
|
|
436
|
+
}, undefined, true, undefined, this),
|
|
437
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(CollapseStatus, {}, undefined, false, undefined, this),
|
|
438
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
439
|
+
children: " "
|
|
440
|
+
}, undefined, false, undefined, this),
|
|
441
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
442
|
+
dimColor: true,
|
|
443
|
+
italic: true,
|
|
444
|
+
children: "Estimated usage by category"
|
|
445
|
+
}, undefined, false, undefined, this),
|
|
446
|
+
visibleCategories.map((cat, index) => {
|
|
447
|
+
const tokenDisplay = formatTokens(cat.tokens);
|
|
448
|
+
const percentDisplay = cat.isDeferred ? "N/A" : `${(cat.tokens / rawMaxTokens * 100).toFixed(1)}%`;
|
|
449
|
+
const isReserved = cat.name === RESERVED_CATEGORY_NAME;
|
|
450
|
+
const displayName = cat.name;
|
|
451
|
+
const symbol = cat.isDeferred ? " " : isReserved ? "\u26DD" : "\u26C1";
|
|
452
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
453
|
+
children: [
|
|
454
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
455
|
+
color: cat.color,
|
|
456
|
+
children: symbol
|
|
457
|
+
}, undefined, false, undefined, this),
|
|
458
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
459
|
+
children: [
|
|
460
|
+
" ",
|
|
461
|
+
displayName,
|
|
462
|
+
": "
|
|
463
|
+
]
|
|
464
|
+
}, undefined, true, undefined, this),
|
|
465
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
466
|
+
dimColor: true,
|
|
467
|
+
children: [
|
|
468
|
+
tokenDisplay,
|
|
469
|
+
" tokens (",
|
|
470
|
+
percentDisplay,
|
|
471
|
+
")"
|
|
472
|
+
]
|
|
473
|
+
}, undefined, true, undefined, this)
|
|
474
|
+
]
|
|
475
|
+
}, index, true, undefined, this);
|
|
476
|
+
}),
|
|
477
|
+
(categories.find((c) => c.name === "Free space")?.tokens ?? 0) > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
478
|
+
children: [
|
|
479
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
480
|
+
dimColor: true,
|
|
481
|
+
children: "\u26F6"
|
|
482
|
+
}, undefined, false, undefined, this),
|
|
483
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
484
|
+
children: " Free space: "
|
|
485
|
+
}, undefined, false, undefined, this),
|
|
486
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
487
|
+
dimColor: true,
|
|
488
|
+
children: [
|
|
489
|
+
formatTokens(categories.find((c) => c.name === "Free space")?.tokens || 0),
|
|
490
|
+
" ",
|
|
491
|
+
"(",
|
|
492
|
+
((categories.find((c) => c.name === "Free space")?.tokens || 0) / rawMaxTokens * 100).toFixed(1),
|
|
493
|
+
"%)"
|
|
494
|
+
]
|
|
495
|
+
}, undefined, true, undefined, this)
|
|
496
|
+
]
|
|
497
|
+
}, undefined, true, undefined, this),
|
|
498
|
+
autocompactCategory && autocompactCategory.tokens > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
499
|
+
children: [
|
|
500
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
501
|
+
color: autocompactCategory.color,
|
|
502
|
+
children: "\u26DD"
|
|
503
|
+
}, undefined, false, undefined, this),
|
|
504
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
505
|
+
dimColor: true,
|
|
506
|
+
children: [
|
|
507
|
+
" ",
|
|
508
|
+
autocompactCategory.name,
|
|
509
|
+
": "
|
|
510
|
+
]
|
|
511
|
+
}, undefined, true, undefined, this),
|
|
512
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
513
|
+
dimColor: true,
|
|
514
|
+
children: [
|
|
515
|
+
formatTokens(autocompactCategory.tokens),
|
|
516
|
+
" tokens (",
|
|
517
|
+
(autocompactCategory.tokens / rawMaxTokens * 100).toFixed(1),
|
|
518
|
+
"%)"
|
|
519
|
+
]
|
|
520
|
+
}, undefined, true, undefined, this)
|
|
521
|
+
]
|
|
522
|
+
}, undefined, true, undefined, this)
|
|
523
|
+
]
|
|
524
|
+
}, undefined, true, undefined, this)
|
|
525
|
+
]
|
|
526
|
+
}, undefined, true, undefined, this),
|
|
527
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
528
|
+
flexDirection: "column",
|
|
529
|
+
marginLeft: -1,
|
|
530
|
+
children: [
|
|
531
|
+
mcpTools.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
532
|
+
flexDirection: "column",
|
|
533
|
+
marginTop: 1,
|
|
534
|
+
children: [
|
|
535
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
536
|
+
children: [
|
|
537
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
538
|
+
bold: true,
|
|
539
|
+
children: "MCP tools"
|
|
540
|
+
}, undefined, false, undefined, this),
|
|
541
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
542
|
+
dimColor: true,
|
|
543
|
+
children: [
|
|
544
|
+
" ",
|
|
545
|
+
"\xB7 /mcp",
|
|
546
|
+
hasDeferredMcpTools ? " (loaded on-demand)" : ""
|
|
547
|
+
]
|
|
548
|
+
}, undefined, true, undefined, this)
|
|
549
|
+
]
|
|
550
|
+
}, undefined, true, undefined, this),
|
|
551
|
+
mcpTools.some((t) => t.isLoaded) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
552
|
+
flexDirection: "column",
|
|
553
|
+
marginTop: 1,
|
|
554
|
+
children: [
|
|
555
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
556
|
+
dimColor: true,
|
|
557
|
+
children: "Loaded"
|
|
558
|
+
}, undefined, false, undefined, this),
|
|
559
|
+
mcpTools.filter((t) => t.isLoaded).map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
560
|
+
children: [
|
|
561
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
562
|
+
children: [
|
|
563
|
+
"\u2514 ",
|
|
564
|
+
tool.name,
|
|
565
|
+
": "
|
|
566
|
+
]
|
|
567
|
+
}, undefined, true, undefined, this),
|
|
568
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
569
|
+
dimColor: true,
|
|
570
|
+
children: [
|
|
571
|
+
formatTokens(tool.tokens),
|
|
572
|
+
" tokens"
|
|
573
|
+
]
|
|
574
|
+
}, undefined, true, undefined, this)
|
|
575
|
+
]
|
|
576
|
+
}, i, true, undefined, this))
|
|
577
|
+
]
|
|
578
|
+
}, undefined, true, undefined, this),
|
|
579
|
+
hasDeferredMcpTools && mcpTools.some((t) => !t.isLoaded) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
580
|
+
flexDirection: "column",
|
|
581
|
+
marginTop: 1,
|
|
582
|
+
children: [
|
|
583
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
584
|
+
dimColor: true,
|
|
585
|
+
children: "Available"
|
|
586
|
+
}, undefined, false, undefined, this),
|
|
587
|
+
mcpTools.filter((t) => !t.isLoaded).map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
588
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
589
|
+
dimColor: true,
|
|
590
|
+
children: [
|
|
591
|
+
"\u2514 ",
|
|
592
|
+
tool.name
|
|
593
|
+
]
|
|
594
|
+
}, undefined, true, undefined, this)
|
|
595
|
+
}, i, false, undefined, this))
|
|
596
|
+
]
|
|
597
|
+
}, undefined, true, undefined, this),
|
|
598
|
+
!hasDeferredMcpTools && mcpTools.map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
599
|
+
children: [
|
|
600
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
601
|
+
children: [
|
|
602
|
+
"\u2514 ",
|
|
603
|
+
tool.name,
|
|
604
|
+
": "
|
|
605
|
+
]
|
|
606
|
+
}, undefined, true, undefined, this),
|
|
607
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
608
|
+
dimColor: true,
|
|
609
|
+
children: [
|
|
610
|
+
formatTokens(tool.tokens),
|
|
611
|
+
" tokens"
|
|
612
|
+
]
|
|
613
|
+
}, undefined, true, undefined, this)
|
|
614
|
+
]
|
|
615
|
+
}, i, true, undefined, this))
|
|
616
|
+
]
|
|
617
|
+
}, undefined, true, undefined, this),
|
|
618
|
+
(systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && process.env.USER_TYPE === "ant" && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
619
|
+
flexDirection: "column",
|
|
620
|
+
marginTop: 1,
|
|
621
|
+
children: [
|
|
622
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
625
|
+
bold: true,
|
|
626
|
+
children: "[ANT-ONLY] System tools"
|
|
627
|
+
}, undefined, false, undefined, this),
|
|
628
|
+
hasDeferredBuiltinTools && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
629
|
+
dimColor: true,
|
|
630
|
+
children: " (some loaded on-demand)"
|
|
631
|
+
}, undefined, false, undefined, this)
|
|
632
|
+
]
|
|
633
|
+
}, undefined, true, undefined, this),
|
|
634
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
635
|
+
flexDirection: "column",
|
|
636
|
+
marginTop: 1,
|
|
637
|
+
children: [
|
|
638
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
639
|
+
dimColor: true,
|
|
640
|
+
children: "Loaded"
|
|
641
|
+
}, undefined, false, undefined, this),
|
|
642
|
+
systemTools?.map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
643
|
+
children: [
|
|
644
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
645
|
+
children: [
|
|
646
|
+
"\u2514 ",
|
|
647
|
+
tool.name,
|
|
648
|
+
": "
|
|
649
|
+
]
|
|
650
|
+
}, undefined, true, undefined, this),
|
|
651
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
652
|
+
dimColor: true,
|
|
653
|
+
children: [
|
|
654
|
+
formatTokens(tool.tokens),
|
|
655
|
+
" tokens"
|
|
656
|
+
]
|
|
657
|
+
}, undefined, true, undefined, this)
|
|
658
|
+
]
|
|
659
|
+
}, `sys-${i}`, true, undefined, this)),
|
|
660
|
+
deferredBuiltinTools.filter((t) => t.isLoaded).map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
661
|
+
children: [
|
|
662
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
663
|
+
children: [
|
|
664
|
+
"\u2514 ",
|
|
665
|
+
tool.name,
|
|
666
|
+
": "
|
|
667
|
+
]
|
|
668
|
+
}, undefined, true, undefined, this),
|
|
669
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
670
|
+
dimColor: true,
|
|
671
|
+
children: [
|
|
672
|
+
formatTokens(tool.tokens),
|
|
673
|
+
" tokens"
|
|
674
|
+
]
|
|
675
|
+
}, undefined, true, undefined, this)
|
|
676
|
+
]
|
|
677
|
+
}, `def-${i}`, true, undefined, this))
|
|
678
|
+
]
|
|
679
|
+
}, undefined, true, undefined, this),
|
|
680
|
+
hasDeferredBuiltinTools && deferredBuiltinTools.some((t) => !t.isLoaded) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
681
|
+
flexDirection: "column",
|
|
682
|
+
marginTop: 1,
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
685
|
+
dimColor: true,
|
|
686
|
+
children: "Available"
|
|
687
|
+
}, undefined, false, undefined, this),
|
|
688
|
+
deferredBuiltinTools.filter((t) => !t.isLoaded).map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
689
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
690
|
+
dimColor: true,
|
|
691
|
+
children: [
|
|
692
|
+
"\u2514 ",
|
|
693
|
+
tool.name
|
|
694
|
+
]
|
|
695
|
+
}, undefined, true, undefined, this)
|
|
696
|
+
}, i, false, undefined, this))
|
|
697
|
+
]
|
|
698
|
+
}, undefined, true, undefined, this)
|
|
699
|
+
]
|
|
700
|
+
}, undefined, true, undefined, this),
|
|
701
|
+
systemPromptSections && systemPromptSections.length > 0 && process.env.USER_TYPE === "ant" && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
702
|
+
flexDirection: "column",
|
|
703
|
+
marginTop: 1,
|
|
704
|
+
children: [
|
|
705
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
706
|
+
bold: true,
|
|
707
|
+
children: "[ANT-ONLY] System prompt sections"
|
|
708
|
+
}, undefined, false, undefined, this),
|
|
709
|
+
systemPromptSections.map((section, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
710
|
+
children: [
|
|
711
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
712
|
+
children: [
|
|
713
|
+
"\u2514 ",
|
|
714
|
+
section.name,
|
|
715
|
+
": "
|
|
716
|
+
]
|
|
717
|
+
}, undefined, true, undefined, this),
|
|
718
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
719
|
+
dimColor: true,
|
|
720
|
+
children: [
|
|
721
|
+
formatTokens(section.tokens),
|
|
722
|
+
" tokens"
|
|
723
|
+
]
|
|
724
|
+
}, undefined, true, undefined, this)
|
|
725
|
+
]
|
|
726
|
+
}, i, true, undefined, this))
|
|
727
|
+
]
|
|
728
|
+
}, undefined, true, undefined, this),
|
|
729
|
+
agents.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
730
|
+
flexDirection: "column",
|
|
731
|
+
marginTop: 1,
|
|
732
|
+
children: [
|
|
733
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
734
|
+
children: [
|
|
735
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
736
|
+
bold: true,
|
|
737
|
+
children: "Custom agents"
|
|
738
|
+
}, undefined, false, undefined, this),
|
|
739
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
740
|
+
dimColor: true,
|
|
741
|
+
children: " \xB7 /agents"
|
|
742
|
+
}, undefined, false, undefined, this)
|
|
743
|
+
]
|
|
744
|
+
}, undefined, true, undefined, this),
|
|
745
|
+
Array.from(groupBySource(agents).entries()).map(([sourceDisplay, sourceAgents]) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
746
|
+
flexDirection: "column",
|
|
747
|
+
marginTop: 1,
|
|
748
|
+
children: [
|
|
749
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
750
|
+
dimColor: true,
|
|
751
|
+
children: sourceDisplay
|
|
752
|
+
}, undefined, false, undefined, this),
|
|
753
|
+
sourceAgents.map((agent, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
754
|
+
children: [
|
|
755
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
756
|
+
children: [
|
|
757
|
+
"\u2514 ",
|
|
758
|
+
agent.agentType,
|
|
759
|
+
": "
|
|
760
|
+
]
|
|
761
|
+
}, undefined, true, undefined, this),
|
|
762
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
763
|
+
dimColor: true,
|
|
764
|
+
children: [
|
|
765
|
+
formatTokens(agent.tokens),
|
|
766
|
+
" tokens"
|
|
767
|
+
]
|
|
768
|
+
}, undefined, true, undefined, this)
|
|
769
|
+
]
|
|
770
|
+
}, i, true, undefined, this))
|
|
771
|
+
]
|
|
772
|
+
}, sourceDisplay, true, undefined, this))
|
|
773
|
+
]
|
|
774
|
+
}, undefined, true, undefined, this),
|
|
775
|
+
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((file, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
792
|
+
children: [
|
|
793
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
794
|
+
children: [
|
|
795
|
+
"\u2514 ",
|
|
796
|
+
getDisplayPath(file.path),
|
|
797
|
+
": "
|
|
798
|
+
]
|
|
799
|
+
}, undefined, true, undefined, this),
|
|
800
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
801
|
+
dimColor: true,
|
|
802
|
+
children: [
|
|
803
|
+
formatTokens(file.tokens),
|
|
804
|
+
" tokens"
|
|
805
|
+
]
|
|
806
|
+
}, undefined, true, undefined, this)
|
|
807
|
+
]
|
|
808
|
+
}, i, true, undefined, this))
|
|
809
|
+
]
|
|
810
|
+
}, undefined, true, undefined, this),
|
|
811
|
+
skills && skills.tokens > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
812
|
+
flexDirection: "column",
|
|
813
|
+
marginTop: 1,
|
|
814
|
+
children: [
|
|
815
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
816
|
+
children: [
|
|
817
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
818
|
+
bold: true,
|
|
819
|
+
children: "Skills"
|
|
820
|
+
}, undefined, false, undefined, this),
|
|
821
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
822
|
+
dimColor: true,
|
|
823
|
+
children: " \xB7 /skills"
|
|
824
|
+
}, undefined, false, undefined, this)
|
|
825
|
+
]
|
|
826
|
+
}, undefined, true, undefined, this),
|
|
827
|
+
Array.from(groupBySource(skills.skillFrontmatter).entries()).map(([sourceDisplay, sourceSkills]) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
828
|
+
flexDirection: "column",
|
|
829
|
+
marginTop: 1,
|
|
830
|
+
children: [
|
|
831
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
832
|
+
dimColor: true,
|
|
833
|
+
children: sourceDisplay
|
|
834
|
+
}, undefined, false, undefined, this),
|
|
835
|
+
sourceSkills.map((skill, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
836
|
+
children: [
|
|
837
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
838
|
+
children: [
|
|
839
|
+
"\u2514 ",
|
|
840
|
+
skill.name,
|
|
841
|
+
": "
|
|
842
|
+
]
|
|
843
|
+
}, undefined, true, undefined, this),
|
|
844
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
845
|
+
dimColor: true,
|
|
846
|
+
children: [
|
|
847
|
+
formatTokens(skill.tokens),
|
|
848
|
+
" tokens"
|
|
849
|
+
]
|
|
850
|
+
}, undefined, true, undefined, this)
|
|
851
|
+
]
|
|
852
|
+
}, i, true, undefined, this))
|
|
853
|
+
]
|
|
854
|
+
}, sourceDisplay, true, undefined, this))
|
|
855
|
+
]
|
|
856
|
+
}, undefined, true, undefined, this),
|
|
857
|
+
messageBreakdown && process.env.USER_TYPE === "ant" && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
858
|
+
flexDirection: "column",
|
|
859
|
+
marginTop: 1,
|
|
860
|
+
children: [
|
|
861
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
862
|
+
bold: true,
|
|
863
|
+
children: "[ANT-ONLY] Message breakdown"
|
|
864
|
+
}, undefined, false, undefined, this),
|
|
865
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
866
|
+
flexDirection: "column",
|
|
867
|
+
marginLeft: 1,
|
|
868
|
+
children: [
|
|
869
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
870
|
+
children: [
|
|
871
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
872
|
+
children: "Tool calls: "
|
|
873
|
+
}, undefined, false, undefined, this),
|
|
874
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
875
|
+
dimColor: true,
|
|
876
|
+
children: [
|
|
877
|
+
formatTokens(messageBreakdown.toolCallTokens),
|
|
878
|
+
" tokens"
|
|
879
|
+
]
|
|
880
|
+
}, undefined, true, undefined, this)
|
|
881
|
+
]
|
|
882
|
+
}, undefined, true, undefined, this),
|
|
883
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
884
|
+
children: [
|
|
885
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
886
|
+
children: "Tool results: "
|
|
887
|
+
}, undefined, false, undefined, this),
|
|
888
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
889
|
+
dimColor: true,
|
|
890
|
+
children: [
|
|
891
|
+
formatTokens(messageBreakdown.toolResultTokens),
|
|
892
|
+
" tokens"
|
|
893
|
+
]
|
|
894
|
+
}, undefined, true, undefined, this)
|
|
895
|
+
]
|
|
896
|
+
}, undefined, true, undefined, this),
|
|
897
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
898
|
+
children: [
|
|
899
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
900
|
+
children: "Attachments: "
|
|
901
|
+
}, undefined, false, undefined, this),
|
|
902
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
903
|
+
dimColor: true,
|
|
904
|
+
children: [
|
|
905
|
+
formatTokens(messageBreakdown.attachmentTokens),
|
|
906
|
+
" tokens"
|
|
907
|
+
]
|
|
908
|
+
}, undefined, true, undefined, this)
|
|
909
|
+
]
|
|
910
|
+
}, undefined, true, undefined, this),
|
|
911
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
912
|
+
children: [
|
|
913
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
914
|
+
children: "Assistant messages (non-tool): "
|
|
915
|
+
}, undefined, false, undefined, this),
|
|
916
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
917
|
+
dimColor: true,
|
|
918
|
+
children: [
|
|
919
|
+
formatTokens(messageBreakdown.assistantMessageTokens),
|
|
920
|
+
" tokens"
|
|
921
|
+
]
|
|
922
|
+
}, undefined, true, undefined, this)
|
|
923
|
+
]
|
|
924
|
+
}, undefined, true, undefined, this),
|
|
925
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
926
|
+
children: [
|
|
927
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
928
|
+
children: "User messages (non-tool-result): "
|
|
929
|
+
}, undefined, false, undefined, this),
|
|
930
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
931
|
+
dimColor: true,
|
|
932
|
+
children: [
|
|
933
|
+
formatTokens(messageBreakdown.userMessageTokens),
|
|
934
|
+
" tokens"
|
|
935
|
+
]
|
|
936
|
+
}, undefined, true, undefined, this)
|
|
937
|
+
]
|
|
938
|
+
}, undefined, true, undefined, this)
|
|
939
|
+
]
|
|
940
|
+
}, undefined, true, undefined, this),
|
|
941
|
+
messageBreakdown.toolCallsByType.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
942
|
+
flexDirection: "column",
|
|
943
|
+
marginTop: 1,
|
|
944
|
+
children: [
|
|
945
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
946
|
+
bold: true,
|
|
947
|
+
children: "[ANT-ONLY] Top tools"
|
|
948
|
+
}, undefined, false, undefined, this),
|
|
949
|
+
messageBreakdown.toolCallsByType.slice(0, 5).map((tool, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
950
|
+
marginLeft: 1,
|
|
951
|
+
children: [
|
|
952
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
953
|
+
children: [
|
|
954
|
+
"\u2514 ",
|
|
955
|
+
tool.name,
|
|
956
|
+
": "
|
|
957
|
+
]
|
|
958
|
+
}, undefined, true, undefined, this),
|
|
959
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
960
|
+
dimColor: true,
|
|
961
|
+
children: [
|
|
962
|
+
"calls ",
|
|
963
|
+
formatTokens(tool.callTokens),
|
|
964
|
+
", results",
|
|
965
|
+
" ",
|
|
966
|
+
formatTokens(tool.resultTokens)
|
|
967
|
+
]
|
|
968
|
+
}, undefined, true, undefined, this)
|
|
969
|
+
]
|
|
970
|
+
}, i, true, undefined, this))
|
|
971
|
+
]
|
|
972
|
+
}, undefined, true, undefined, this),
|
|
973
|
+
messageBreakdown.attachmentsByType.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
974
|
+
flexDirection: "column",
|
|
975
|
+
marginTop: 1,
|
|
976
|
+
children: [
|
|
977
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
978
|
+
bold: true,
|
|
979
|
+
children: "[ANT-ONLY] Top attachments"
|
|
980
|
+
}, undefined, false, undefined, this),
|
|
981
|
+
messageBreakdown.attachmentsByType.slice(0, 5).map((attachment, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
982
|
+
marginLeft: 1,
|
|
983
|
+
children: [
|
|
984
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
985
|
+
children: [
|
|
986
|
+
"\u2514 ",
|
|
987
|
+
attachment.name,
|
|
988
|
+
": "
|
|
989
|
+
]
|
|
990
|
+
}, undefined, true, undefined, this),
|
|
991
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
992
|
+
dimColor: true,
|
|
993
|
+
children: [
|
|
994
|
+
formatTokens(attachment.tokens),
|
|
995
|
+
" tokens"
|
|
996
|
+
]
|
|
997
|
+
}, undefined, true, undefined, this)
|
|
998
|
+
]
|
|
999
|
+
}, i, true, undefined, this))
|
|
1000
|
+
]
|
|
1001
|
+
}, undefined, true, undefined, this)
|
|
1002
|
+
]
|
|
1003
|
+
}, undefined, true, undefined, this)
|
|
1004
|
+
]
|
|
1005
|
+
}, undefined, true, undefined, this),
|
|
1006
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ContextSuggestions, {
|
|
1007
|
+
suggestions: generateContextSuggestions(data)
|
|
1008
|
+
}, undefined, false, undefined, this)
|
|
1009
|
+
]
|
|
1010
|
+
}, undefined, true, undefined, this);
|
|
1011
|
+
}
|
|
1012
|
+
var jsx_dev_runtime2, RESERVED_CATEGORY_NAME = "Autocompact buffer", SOURCE_DISPLAY_ORDER;
|
|
1013
|
+
var init_ContextVisualization = __esm(() => {
|
|
1014
|
+
init_src();
|
|
1015
|
+
init_contextSuggestions();
|
|
1016
|
+
init_file();
|
|
1017
|
+
init_format();
|
|
1018
|
+
init_constants();
|
|
1019
|
+
init_stringUtils();
|
|
1020
|
+
init_ContextSuggestions();
|
|
1021
|
+
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1022
|
+
SOURCE_DISPLAY_ORDER = [
|
|
1023
|
+
"Project",
|
|
1024
|
+
"User",
|
|
1025
|
+
"Managed",
|
|
1026
|
+
"Plugin",
|
|
1027
|
+
"Built-in"
|
|
1028
|
+
];
|
|
1029
|
+
});
|
|
1030
|
+
|
|
1031
|
+
// src/commands/context/context.tsx
|
|
1032
|
+
function toApiView(messages) {
|
|
1033
|
+
let view = getMessagesAfterCompactBoundary(messages);
|
|
1034
|
+
if (false) {}
|
|
1035
|
+
return view;
|
|
1036
|
+
}
|
|
1037
|
+
async function call(onDone, context) {
|
|
1038
|
+
const {
|
|
1039
|
+
messages,
|
|
1040
|
+
getAppState,
|
|
1041
|
+
options: { mainLoopModel, tools }
|
|
1042
|
+
} = context;
|
|
1043
|
+
const apiView = toApiView(messages);
|
|
1044
|
+
const { messages: compactedMessages } = await microcompactMessages(apiView);
|
|
1045
|
+
const terminalWidth = process.stdout.columns || 80;
|
|
1046
|
+
const appState = getAppState();
|
|
1047
|
+
const data = await analyzeContextUsage(compactedMessages, mainLoopModel, async () => appState.toolPermissionContext, tools, appState.agentDefinitions, terminalWidth, context, undefined, apiView);
|
|
1048
|
+
const output = await renderToAnsiString(/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ContextVisualization, {
|
|
1049
|
+
data
|
|
1050
|
+
}, undefined, false, undefined, this));
|
|
1051
|
+
onDone(output);
|
|
1052
|
+
return null;
|
|
1053
|
+
}
|
|
1054
|
+
var jsx_dev_runtime3;
|
|
1055
|
+
var init_context = __esm(() => {
|
|
1056
|
+
init_ContextVisualization();
|
|
1057
|
+
init_microCompact();
|
|
1058
|
+
init_analyzeContext();
|
|
1059
|
+
init_messages();
|
|
1060
|
+
init_staticRender();
|
|
1061
|
+
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1062
|
+
});
|
|
1063
|
+
init_context();
|
|
1064
|
+
|
|
1065
|
+
export {
|
|
1066
|
+
call
|
|
1067
|
+
};
|