gong-code 0.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 (374) hide show
  1. package/README.md +38 -0
  2. package/dist/SKILL-22jccbka.md +1 -0
  3. package/dist/chunk-01wdn84e.js +8 -0
  4. package/dist/chunk-04bc74vz.js +243 -0
  5. package/dist/chunk-05t2vqsb.js +490 -0
  6. package/dist/chunk-0727wret.js +159 -0
  7. package/dist/chunk-07rervty.js +200 -0
  8. package/dist/chunk-0b9nxvyg.js +478 -0
  9. package/dist/chunk-0e428b73.js +600 -0
  10. package/dist/chunk-0hqfheht.js +3439 -0
  11. package/dist/chunk-0pnk52c2.js +116 -0
  12. package/dist/chunk-0sbddf6m.js +68 -0
  13. package/dist/chunk-0vf7xb84.js +176 -0
  14. package/dist/chunk-0yz17yjy.js +1061 -0
  15. package/dist/chunk-0zscb6c7.js +10 -0
  16. package/dist/chunk-10p21kq6.js +378 -0
  17. package/dist/chunk-17k78pmz.js +120 -0
  18. package/dist/chunk-19jvvqzp.js +1390 -0
  19. package/dist/chunk-1d5czqnr.js +173 -0
  20. package/dist/chunk-1gjysfnf.js +13876 -0
  21. package/dist/chunk-1jjfv0wd.js +467 -0
  22. package/dist/chunk-1jjzp2pa.js +617 -0
  23. package/dist/chunk-1m38dj2k.js +155 -0
  24. package/dist/chunk-1pgttway.js +211 -0
  25. package/dist/chunk-1vvnx0gb.js +8035 -0
  26. package/dist/chunk-1ztm9yps.js +49145 -0
  27. package/dist/chunk-208x1t0m.js +88 -0
  28. package/dist/chunk-20xqs3yk.js +843 -0
  29. package/dist/chunk-2b2c0wnn.js +584 -0
  30. package/dist/chunk-2g07117j.js +541 -0
  31. package/dist/chunk-2g6p2t3w.js +780 -0
  32. package/dist/chunk-2kjeaeg7.js +28 -0
  33. package/dist/chunk-2n0s2dhc.js +12 -0
  34. package/dist/chunk-2p0hvt8k.js +785 -0
  35. package/dist/chunk-2qmxg9y7.js +40174 -0
  36. package/dist/chunk-2qpy8kne.js +28 -0
  37. package/dist/chunk-2rgbf62a.js +40 -0
  38. package/dist/chunk-2tx0s41y.js +150 -0
  39. package/dist/chunk-2x8zk5cz.js +101 -0
  40. package/dist/chunk-2yqy25z4.js +48 -0
  41. package/dist/chunk-318g78ty.js +552 -0
  42. package/dist/chunk-31gfg8tz.js +290 -0
  43. package/dist/chunk-32n0s532.js +1317 -0
  44. package/dist/chunk-35dw2r9g.js +137 -0
  45. package/dist/chunk-36b5zqvn.js +1865 -0
  46. package/dist/chunk-38kpx69j.js +97 -0
  47. package/dist/chunk-3b01vp8p.js +815 -0
  48. package/dist/chunk-3f76a1ek.js +317 -0
  49. package/dist/chunk-3fd1hkhh.js +4254 -0
  50. package/dist/chunk-3ffxa7zj.js +8 -0
  51. package/dist/chunk-3gcj7w95.js +8 -0
  52. package/dist/chunk-3jf3k40v.js +970 -0
  53. package/dist/chunk-3k51qfp9.js +9301 -0
  54. package/dist/chunk-3mhygd2v.js +1180 -0
  55. package/dist/chunk-3p6y0gvb.js +117 -0
  56. package/dist/chunk-3r60xdt5.js +93 -0
  57. package/dist/chunk-43agf6xv.js +8 -0
  58. package/dist/chunk-46zr418r.js +15 -0
  59. package/dist/chunk-48k2bs4w.js +118 -0
  60. package/dist/chunk-4p987a4z.js +84 -0
  61. package/dist/chunk-4px25pe0.js +776 -0
  62. package/dist/chunk-4s93jyky.js +113 -0
  63. package/dist/chunk-4xv8bedf.js +58 -0
  64. package/dist/chunk-4y382mzd.js +346 -0
  65. package/dist/chunk-52dzw4bc.js +246 -0
  66. package/dist/chunk-52qqmh5g.js +110 -0
  67. package/dist/chunk-53grnhp7.js +8 -0
  68. package/dist/chunk-59craaxx.js +4249 -0
  69. package/dist/chunk-5b833jqs.js +96 -0
  70. package/dist/chunk-5cp2q9sh.js +58 -0
  71. package/dist/chunk-5dbaxmts.js +87 -0
  72. package/dist/chunk-5f5sxgp0.js +96 -0
  73. package/dist/chunk-5mkfderj.js +195 -0
  74. package/dist/chunk-5qw0mpvq.js +389 -0
  75. package/dist/chunk-5rxmszm8.js +48 -0
  76. package/dist/chunk-5ygxa3hr.js +65 -0
  77. package/dist/chunk-61d5dqq2.js +71 -0
  78. package/dist/chunk-6350958y.js +272 -0
  79. package/dist/chunk-65z8hg8j.js +1337 -0
  80. package/dist/chunk-6aq85gdq.js +8 -0
  81. package/dist/chunk-6cjh9exg.js +40751 -0
  82. package/dist/chunk-6e41p5m6.js +187 -0
  83. package/dist/chunk-6jb6xcnq.js +10511 -0
  84. package/dist/chunk-6jta29r1.js +20 -0
  85. package/dist/chunk-6q7f2rrv.js +4757 -0
  86. package/dist/chunk-6sg0ec6v.js +41 -0
  87. package/dist/chunk-6v0rhx4e.js +328 -0
  88. package/dist/chunk-6x5mz95v.js +751 -0
  89. package/dist/chunk-6xqp51qr.js +87 -0
  90. package/dist/chunk-6xvyx1s9.js +6957 -0
  91. package/dist/chunk-6ywh7wgp.js +468 -0
  92. package/dist/chunk-75ne77gm.js +1920 -0
  93. package/dist/chunk-77cb06js.js +602 -0
  94. package/dist/chunk-78n9kfp8.js +1645 -0
  95. package/dist/chunk-7be87rww.js +277 -0
  96. package/dist/chunk-7e1qjk3s.js +125 -0
  97. package/dist/chunk-7e7nxnss.js +360 -0
  98. package/dist/chunk-7g8156qp.js +55 -0
  99. package/dist/chunk-7nz71s42.js +3353 -0
  100. package/dist/chunk-7r078t2x.js +113 -0
  101. package/dist/chunk-7shx41hj.js +3094 -0
  102. package/dist/chunk-7yexhdjs.js +216 -0
  103. package/dist/chunk-83kmfcjv.js +256 -0
  104. package/dist/chunk-846rr9n1.js +107 -0
  105. package/dist/chunk-84ncsm1r.js +183 -0
  106. package/dist/chunk-867x8aq0.js +8936 -0
  107. package/dist/chunk-8byh30kb.js +1947 -0
  108. package/dist/chunk-8c8f6gnt.js +432 -0
  109. package/dist/chunk-8gtdseev.js +454 -0
  110. package/dist/chunk-8jfh9rq6.js +642 -0
  111. package/dist/chunk-8n4n4m67.js +800 -0
  112. package/dist/chunk-8za61tze.js +847 -0
  113. package/dist/chunk-9029sbq1.js +57 -0
  114. package/dist/chunk-94dm5rrm.js +673 -0
  115. package/dist/chunk-9bs8n985.js +329 -0
  116. package/dist/chunk-9c23776j.js +763 -0
  117. package/dist/chunk-9e93g81n.js +298 -0
  118. package/dist/chunk-9f3d61y7.js +548 -0
  119. package/dist/chunk-9gc3andd.js +422 -0
  120. package/dist/chunk-9kn3tgpb.js +130 -0
  121. package/dist/chunk-9m5rn7hk.js +61 -0
  122. package/dist/chunk-9p4hsd6a.js +50 -0
  123. package/dist/chunk-9qasfk8n.js +758 -0
  124. package/dist/chunk-9snp5mn2.js +533 -0
  125. package/dist/chunk-9tcvras3.js +2331 -0
  126. package/dist/chunk-a0186ngk.js +57 -0
  127. package/dist/chunk-a2m8f0aj.js +268 -0
  128. package/dist/chunk-a2rcafav.js +716 -0
  129. package/dist/chunk-a9hjdzar.js +160 -0
  130. package/dist/chunk-aak6ts5n.js +526 -0
  131. package/dist/chunk-aca3w84n.js +267 -0
  132. package/dist/chunk-ae76ded0.js +30 -0
  133. package/dist/chunk-afnjhn3j.js +21933 -0
  134. package/dist/chunk-ahj70tf0.js +880 -0
  135. package/dist/chunk-apjsxssq.js +169 -0
  136. package/dist/chunk-av49wjj1.js +43 -0
  137. package/dist/chunk-axggebfy.js +206 -0
  138. package/dist/chunk-az7jpbv8.js +16 -0
  139. package/dist/chunk-azz7sep6.js +328 -0
  140. package/dist/chunk-b4tpz2g1.js +93 -0
  141. package/dist/chunk-bczf2eyq.js +115 -0
  142. package/dist/chunk-bd95f637.js +208 -0
  143. package/dist/chunk-bdhdmkya.js +10 -0
  144. package/dist/chunk-bp0ynk17.js +32 -0
  145. package/dist/chunk-bq75gxjs.js +90 -0
  146. package/dist/chunk-btk5jaq6.js +10464 -0
  147. package/dist/chunk-bv4c48a5.js +120 -0
  148. package/dist/chunk-byfb105n.js +341 -0
  149. package/dist/chunk-c0bdmy7w.js +4223 -0
  150. package/dist/chunk-c20aqkz8.js +641 -0
  151. package/dist/chunk-c4jg3s2c.js +163 -0
  152. package/dist/chunk-c61q5cer.js +258 -0
  153. package/dist/chunk-c9f761sy.js +386 -0
  154. package/dist/chunk-ca6jkz06.js +157 -0
  155. package/dist/chunk-ccyg9ap9.js +171374 -0
  156. package/dist/chunk-cfej8cc7.js +371 -0
  157. package/dist/chunk-cjqxdnf9.js +23 -0
  158. package/dist/chunk-ckrs789w.js +8 -0
  159. package/dist/chunk-cqeq13wg.js +48 -0
  160. package/dist/chunk-crfj3w5e.js +22821 -0
  161. package/dist/chunk-ct5x6z7g.js +8066 -0
  162. package/dist/chunk-cv5h8n8c.js +101 -0
  163. package/dist/chunk-cwe8h159.js +1563 -0
  164. package/dist/chunk-cwm234zz.js +908 -0
  165. package/dist/chunk-d1jkfp45.js +1580 -0
  166. package/dist/chunk-d3hb1qdr.js +126 -0
  167. package/dist/chunk-d70d0zer.js +713 -0
  168. package/dist/chunk-d91tx29f.js +105 -0
  169. package/dist/chunk-d952pymh.js +20 -0
  170. package/dist/chunk-d9af3z8k.js +720 -0
  171. package/dist/chunk-da1n53c2.js +47 -0
  172. package/dist/chunk-df5c1x8m.js +732 -0
  173. package/dist/chunk-dkv64xys.js +71 -0
  174. package/dist/chunk-dm7166v6.js +251 -0
  175. package/dist/chunk-dr0y5a61.js +258 -0
  176. package/dist/chunk-drzb0rrd.js +306 -0
  177. package/dist/chunk-dw1v1q7w.js +37 -0
  178. package/dist/chunk-e224qet4.js +348 -0
  179. package/dist/chunk-e50ckbv0.js +1099 -0
  180. package/dist/chunk-e5gn6by6.js +1165 -0
  181. package/dist/chunk-e7m3f74m.js +37 -0
  182. package/dist/chunk-e8ghgwaj.js +295 -0
  183. package/dist/chunk-ed8k4ya2.js +41 -0
  184. package/dist/chunk-eh0vnqdz.js +76 -0
  185. package/dist/chunk-epwrzr35.js +4301 -0
  186. package/dist/chunk-er9h6sw5.js +5379 -0
  187. package/dist/chunk-eta5aekm.js +79 -0
  188. package/dist/chunk-ev5gxscq.js +63 -0
  189. package/dist/chunk-evp72hv5.js +212 -0
  190. package/dist/chunk-ex41stfq.js +127 -0
  191. package/dist/chunk-ezpa510h.js +62 -0
  192. package/dist/chunk-f0fm6dey.js +477 -0
  193. package/dist/chunk-f239sbhc.js +152 -0
  194. package/dist/chunk-f2bj47xf.js +109 -0
  195. package/dist/chunk-f4t24rq4.js +258 -0
  196. package/dist/chunk-f9ghvzy8.js +106 -0
  197. package/dist/chunk-f9rahzgr.js +99 -0
  198. package/dist/chunk-ff75qzty.js +521 -0
  199. package/dist/chunk-fj0ctt6q.js +264 -0
  200. package/dist/chunk-fj7wxdt3.js +221 -0
  201. package/dist/chunk-fnnpqv92.js +714 -0
  202. package/dist/chunk-fpd3zzx1.js +26696 -0
  203. package/dist/chunk-fqv2cn76.js +227 -0
  204. package/dist/chunk-fqw9j3bj.js +439 -0
  205. package/dist/chunk-frbcqhz0.js +4984 -0
  206. package/dist/chunk-fzkj59sg.js +174 -0
  207. package/dist/chunk-fzpzbpbw.js +248 -0
  208. package/dist/chunk-g52cpmd1.js +686 -0
  209. package/dist/chunk-g98m2qe6.js +31 -0
  210. package/dist/chunk-g9zgq4vy.js +715 -0
  211. package/dist/chunk-gbpt7tm8.js +687 -0
  212. package/dist/chunk-gg52jka8.js +373 -0
  213. package/dist/chunk-gjttphax.js +5793 -0
  214. package/dist/chunk-gs7vjaas.js +65 -0
  215. package/dist/chunk-gv8n85j2.js +8 -0
  216. package/dist/chunk-gxdwm6pt.js +650 -0
  217. package/dist/chunk-gy8wajg2.js +1014 -0
  218. package/dist/chunk-gz3647m0.js +200 -0
  219. package/dist/chunk-gzg07mqh.js +16 -0
  220. package/dist/chunk-h3zc60tq.js +44 -0
  221. package/dist/chunk-h4p1qt16.js +74 -0
  222. package/dist/chunk-h8219f18.js +282 -0
  223. package/dist/chunk-h9agq92v.js +331 -0
  224. package/dist/chunk-hhjtpwbj.js +16 -0
  225. package/dist/chunk-hpgpwzra.js +548 -0
  226. package/dist/chunk-hsnjvn19.js +80 -0
  227. package/dist/chunk-hsp9qrry.js +417 -0
  228. package/dist/chunk-hwz6aq2m.js +3939 -0
  229. package/dist/chunk-hzph0hbh.js +272 -0
  230. package/dist/chunk-hzqkss6v.js +153 -0
  231. package/dist/chunk-j0t31f39.js +1149 -0
  232. package/dist/chunk-j1qm6n1v.js +30 -0
  233. package/dist/chunk-j6e4b522.js +81 -0
  234. package/dist/chunk-j7qfbvxk.js +84 -0
  235. package/dist/chunk-j7qv3hvm.js +1635 -0
  236. package/dist/chunk-j8mxc6k6.js +213 -0
  237. package/dist/chunk-jevj87jn.js +224 -0
  238. package/dist/chunk-jk2ps88q.js +815 -0
  239. package/dist/chunk-jz7tbdyv.js +1599 -0
  240. package/dist/chunk-k36jpjvh.js +300 -0
  241. package/dist/chunk-k4nmrt3w.js +61 -0
  242. package/dist/chunk-kavn03r9.js +16606 -0
  243. package/dist/chunk-kkgav8dm.js +54 -0
  244. package/dist/chunk-kkq26g5c.js +33 -0
  245. package/dist/chunk-kp6nepx4.js +106 -0
  246. package/dist/chunk-ksefybc8.js +1551 -0
  247. package/dist/chunk-kv147680.js +3436 -0
  248. package/dist/chunk-kya46axt.js +833 -0
  249. package/dist/chunk-kyz233ny.js +227 -0
  250. package/dist/chunk-kzs75xmj.js +143 -0
  251. package/dist/chunk-m0vrez9w.js +266 -0
  252. package/dist/chunk-m1wadav3.js +118 -0
  253. package/dist/chunk-m4rfx3cj.js +221 -0
  254. package/dist/chunk-mc9zaggs.js +6374 -0
  255. package/dist/chunk-mcg5ttj4.js +105 -0
  256. package/dist/chunk-mf4r7918.js +63 -0
  257. package/dist/chunk-mh9khrt4.js +286 -0
  258. package/dist/chunk-mhc4szw7.js +22 -0
  259. package/dist/chunk-mkq0yzp0.js +38 -0
  260. package/dist/chunk-mr58jv4w.js +256 -0
  261. package/dist/chunk-mrrx3bmt.js +168 -0
  262. package/dist/chunk-mtyk3zz6.js +87 -0
  263. package/dist/chunk-mvgxntv6.js +62 -0
  264. package/dist/chunk-mwnjydcm.js +102 -0
  265. package/dist/chunk-mwxt0m3f.js +862 -0
  266. package/dist/chunk-mz1pxck8.js +998 -0
  267. package/dist/chunk-n3agghys.js +214 -0
  268. package/dist/chunk-n6q02ya9.js +442 -0
  269. package/dist/chunk-nt3y91vh.js +443 -0
  270. package/dist/chunk-nt837qt9.js +21 -0
  271. package/dist/chunk-ntgmegfs.js +39 -0
  272. package/dist/chunk-nwk16bbd.js +30 -0
  273. package/dist/chunk-p367ay90.js +672 -0
  274. package/dist/chunk-p7m3x9qk.js +48 -0
  275. package/dist/chunk-pagmjwp5.js +132 -0
  276. package/dist/chunk-pbd4r8ek.js +161 -0
  277. package/dist/chunk-pdkpssgv.js +2422 -0
  278. package/dist/chunk-pf6z1e35.js +32 -0
  279. package/dist/chunk-pfzejvpt.js +213 -0
  280. package/dist/chunk-pktxyhvk.js +400 -0
  281. package/dist/chunk-pp5xhveq.js +124 -0
  282. package/dist/chunk-ppnd7a8x.js +38 -0
  283. package/dist/chunk-pqh2w7dr.js +2202 -0
  284. package/dist/chunk-pr878d0z.js +240 -0
  285. package/dist/chunk-psf0y7hy.js +140 -0
  286. package/dist/chunk-pz2zz2f7.js +1586 -0
  287. package/dist/chunk-q0xkrxy8.js +890 -0
  288. package/dist/chunk-q5b0kpr3.js +14369 -0
  289. package/dist/chunk-q7z3t531.js +334 -0
  290. package/dist/chunk-qdjjtgwt.js +3183 -0
  291. package/dist/chunk-qezv7msv.js +26 -0
  292. package/dist/chunk-qmxn7f86.js +2643 -0
  293. package/dist/chunk-qqc3b97c.js +15 -0
  294. package/dist/chunk-qwrp63wh.js +145 -0
  295. package/dist/chunk-qyvqbst3.js +537 -0
  296. package/dist/chunk-qztvd4hd.js +465 -0
  297. package/dist/chunk-r0bvez4y.js +235 -0
  298. package/dist/chunk-r3z0896k.js +2831 -0
  299. package/dist/chunk-r4cxb6t7.js +32 -0
  300. package/dist/chunk-rb8k68m7.js +118 -0
  301. package/dist/chunk-rdprgm4t.js +42 -0
  302. package/dist/chunk-rex82hys.js +1710 -0
  303. package/dist/chunk-rjjakkw2.js +2560 -0
  304. package/dist/chunk-rka6gcv3.js +304 -0
  305. package/dist/chunk-rkz12ghm.js +144 -0
  306. package/dist/chunk-rnc7m1qs.js +436 -0
  307. package/dist/chunk-rx6z23h0.js +165 -0
  308. package/dist/chunk-s76582j1.js +28 -0
  309. package/dist/chunk-sez03qd9.js +7140 -0
  310. package/dist/chunk-sjvdn2ep.js +130 -0
  311. package/dist/chunk-smwhyy8p.js +115 -0
  312. package/dist/chunk-snw7nh0d.js +695 -0
  313. package/dist/chunk-sqx9c057.js +193 -0
  314. package/dist/chunk-sscms68s.js +16 -0
  315. package/dist/chunk-stknnmsb.js +272 -0
  316. package/dist/chunk-sywdxbs6.js +853 -0
  317. package/dist/chunk-syxy4pf2.js +782 -0
  318. package/dist/chunk-t0hpqsqn.js +6157 -0
  319. package/dist/chunk-tjm70vnw.js +123 -0
  320. package/dist/chunk-trzh0msn.js +154 -0
  321. package/dist/chunk-v1z17cpg.js +723 -0
  322. package/dist/chunk-vsfj449x.js +333 -0
  323. package/dist/chunk-vvkq20tt.js +287 -0
  324. package/dist/chunk-vxgdzx6p.js +338 -0
  325. package/dist/chunk-vxqhjyfz.js +15 -0
  326. package/dist/chunk-vzsstfmb.js +80 -0
  327. package/dist/chunk-w1jew5sn.js +69 -0
  328. package/dist/chunk-w3kwr76v.js +789 -0
  329. package/dist/chunk-w40netr9.js +59 -0
  330. package/dist/chunk-w99cpfdg.js +559 -0
  331. package/dist/chunk-wacn14d2.js +271 -0
  332. package/dist/chunk-wbhrqrq3.js +3033 -0
  333. package/dist/chunk-wfg9g0p7.js +17612 -0
  334. package/dist/chunk-wj3vjsbx.js +93 -0
  335. package/dist/chunk-wjhq855a.js +372 -0
  336. package/dist/chunk-wr06gqxh.js +114 -0
  337. package/dist/chunk-ws0z2y1g.js +195 -0
  338. package/dist/chunk-wt62wqcj.js +98 -0
  339. package/dist/chunk-wx4v7ddx.js +42 -0
  340. package/dist/chunk-wy0t3vb2.js +6101 -0
  341. package/dist/chunk-wysz7qk4.js +280 -0
  342. package/dist/chunk-x63fx1vd.js +192 -0
  343. package/dist/chunk-x8b7vft8.js +132 -0
  344. package/dist/chunk-x8jhkgxb.js +346 -0
  345. package/dist/chunk-x9z4q5k5.js +275 -0
  346. package/dist/chunk-xjd7e9jq.js +126 -0
  347. package/dist/chunk-xjr0n27e.js +42 -0
  348. package/dist/chunk-xpwyw7cd.js +24 -0
  349. package/dist/chunk-xw4ycnyz.js +37 -0
  350. package/dist/chunk-y66bqywr.js +17303 -0
  351. package/dist/chunk-ycarry7d.js +157 -0
  352. package/dist/chunk-ycr0hp6v.js +1486 -0
  353. package/dist/chunk-yqmaw6hf.js +496 -0
  354. package/dist/chunk-yrtm7d23.js +602 -0
  355. package/dist/chunk-yts879rw.js +48 -0
  356. package/dist/chunk-yvmhx96e.js +347 -0
  357. package/dist/chunk-ywq00rg4.js +246 -0
  358. package/dist/chunk-yygeg5mj.js +752 -0
  359. package/dist/chunk-z0exw850.js +726 -0
  360. package/dist/chunk-z2dp53wn.js +17 -0
  361. package/dist/chunk-z4rzc9nd.js +103 -0
  362. package/dist/chunk-zb0akt77.js +684 -0
  363. package/dist/chunk-zb2xrj5t.js +1789 -0
  364. package/dist/chunk-zbptn0ky.js +423 -0
  365. package/dist/chunk-zd45wbmf.js +1090 -0
  366. package/dist/chunk-zjkvspz9.js +2050 -0
  367. package/dist/chunk-zke1sp3x.js +1524 -0
  368. package/dist/chunk-zv2cvfsv.js +58 -0
  369. package/dist/chunk-zy4tmqst.js +644 -0
  370. package/dist/chunk-zygzzzvk.js +192 -0
  371. package/dist/cli-21v3v6ny.md +1 -0
  372. package/dist/cli.js +246 -0
  373. package/dist/server-n5f2q89z.md +1 -0
  374. package/package.json +161 -0
@@ -0,0 +1,1149 @@
1
+ // @bun
2
+ import {
3
+ StatusIcon,
4
+ init_StatusIcon
5
+ } from "./chunk-4p987a4z.js";
6
+ import {
7
+ init_staticRender,
8
+ renderToAnsiString
9
+ } from "./chunk-mwnjydcm.js";
10
+ import"./chunk-jevj87jn.js";
11
+ import"./chunk-qztvd4hd.js";
12
+ import"./chunk-q0xkrxy8.js";
13
+ import"./chunk-52dzw4bc.js";
14
+ import"./chunk-n6q02ya9.js";
15
+ import"./chunk-b4tpz2g1.js";
16
+ import"./chunk-n3agghys.js";
17
+ import"./chunk-f9rahzgr.js";
18
+ import"./chunk-ex41stfq.js";
19
+ import"./chunk-8n4n4m67.js";
20
+ import"./chunk-xjr0n27e.js";
21
+ import {
22
+ require_jsx_dev_runtime
23
+ } from "./chunk-0yz17yjy.js";
24
+ import"./chunk-9m5rn7hk.js";
25
+ import"./chunk-19jvvqzp.js";
26
+ import"./chunk-2n0s2dhc.js";
27
+ import"./chunk-epwrzr35.js";
28
+ import"./chunk-1ztm9yps.js";
29
+ import"./chunk-78n9kfp8.js";
30
+ import"./chunk-j8mxc6k6.js";
31
+ import"./chunk-z0exw850.js";
32
+ import"./chunk-3jf3k40v.js";
33
+ import"./chunk-yvmhx96e.js";
34
+ import"./chunk-qezv7msv.js";
35
+ import"./chunk-sscms68s.js";
36
+ import"./chunk-7e1qjk3s.js";
37
+ import"./chunk-1gjysfnf.js";
38
+ import"./chunk-vxgdzx6p.js";
39
+ import"./chunk-kv147680.js";
40
+ import"./chunk-2p0hvt8k.js";
41
+ import"./chunk-ycr0hp6v.js";
42
+ import"./chunk-zb2xrj5t.js";
43
+ import"./chunk-9029sbq1.js";
44
+ import"./chunk-ezpa510h.js";
45
+ import"./chunk-kp6nepx4.js";
46
+ import"./chunk-1jjzp2pa.js";
47
+ import"./chunk-w1jew5sn.js";
48
+ import"./chunk-g98m2qe6.js";
49
+ import {
50
+ figures_default,
51
+ init_figures
52
+ } from "./chunk-sez03qd9.js";
53
+ import"./chunk-vsfj449x.js";
54
+ import"./chunk-r4cxb6t7.js";
55
+ import"./chunk-bp0ynk17.js";
56
+ import"./chunk-7yexhdjs.js";
57
+ import"./chunk-rex82hys.js";
58
+ import"./chunk-4s93jyky.js";
59
+ import"./chunk-318g78ty.js";
60
+ import"./chunk-c0bdmy7w.js";
61
+ import"./chunk-syxy4pf2.js";
62
+ import {
63
+ __esm,
64
+ __toESM
65
+ } from "./chunk-eta5aekm.js";
66
+ import {
67
+ BASH_TOOL_NAME,
68
+ FILE_READ_TOOL_NAME,
69
+ GREP_TOOL_NAME,
70
+ WEB_FETCH_TOOL_NAME,
71
+ analyzeContextUsage,
72
+ getMessagesAfterCompactBoundary,
73
+ init_analyzeContext,
74
+ init_messages,
75
+ init_microCompact,
76
+ init_prompt,
77
+ init_prompt1 as init_prompt2,
78
+ microcompactMessages
79
+ } from "./chunk-ccyg9ap9.js";
80
+ import"./chunk-846rr9n1.js";
81
+ import"./chunk-fnnpqv92.js";
82
+ import"./chunk-2yqy25z4.js";
83
+ import"./chunk-zygzzzvk.js";
84
+ import"./chunk-evp72hv5.js";
85
+ import"./chunk-jz7tbdyv.js";
86
+ import"./chunk-vxqhjyfz.js";
87
+ import"./chunk-mf4r7918.js";
88
+ import"./chunk-sywdxbs6.js";
89
+ import"./chunk-cjqxdnf9.js";
90
+ import"./chunk-9qasfk8n.js";
91
+ import {
92
+ ThemedBox_default,
93
+ ThemedText,
94
+ init_ink,
95
+ require_compiler_runtime
96
+ } from "./chunk-fpd3zzx1.js";
97
+ import"./chunk-bv4c48a5.js";
98
+ import"./chunk-6jta29r1.js";
99
+ import"./chunk-z4rzc9nd.js";
100
+ import"./chunk-9bs8n985.js";
101
+ import"./chunk-6xqp51qr.js";
102
+ import"./chunk-35dw2r9g.js";
103
+ import {
104
+ getDisplayPath,
105
+ getSourceDisplayName,
106
+ init_constants,
107
+ init_file,
108
+ init_stringUtils
109
+ } from "./chunk-y66bqywr.js";
110
+ import"./chunk-nwk16bbd.js";
111
+ import"./chunk-rx6z23h0.js";
112
+ import {
113
+ formatTokens,
114
+ init_format
115
+ } from "./chunk-df5c1x8m.js";
116
+ import"./chunk-qwrp63wh.js";
117
+ import"./chunk-65z8hg8j.js";
118
+ import"./chunk-5cp2q9sh.js";
119
+ import"./chunk-rjjakkw2.js";
120
+ import"./chunk-0sbddf6m.js";
121
+ import"./chunk-q5b0kpr3.js";
122
+
123
+ // src/utils/contextSuggestions.ts
124
+ function generateContextSuggestions(data) {
125
+ const suggestions = [];
126
+ checkNearCapacity(data, suggestions);
127
+ checkLargeToolResults(data, suggestions);
128
+ checkReadResultBloat(data, suggestions);
129
+ checkMemoryBloat(data, suggestions);
130
+ checkAutoCompactDisabled(data, suggestions);
131
+ suggestions.sort((a, b) => {
132
+ if (a.severity !== b.severity) {
133
+ return a.severity === "warning" ? -1 : 1;
134
+ }
135
+ return (b.savingsTokens ?? 0) - (a.savingsTokens ?? 0);
136
+ });
137
+ return suggestions;
138
+ }
139
+ function checkNearCapacity(data, suggestions) {
140
+ if (data.percentage >= NEAR_CAPACITY_PERCENT) {
141
+ suggestions.push({
142
+ severity: "warning",
143
+ title: `Context is ${data.percentage}% full`,
144
+ 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."
145
+ });
146
+ }
147
+ }
148
+ function checkLargeToolResults(data, suggestions) {
149
+ if (!data.messageBreakdown)
150
+ return;
151
+ for (const tool of data.messageBreakdown.toolCallsByType) {
152
+ const totalToolTokens = tool.callTokens + tool.resultTokens;
153
+ const percent = totalToolTokens / data.rawMaxTokens * 100;
154
+ if (percent < LARGE_TOOL_RESULT_PERCENT || totalToolTokens < LARGE_TOOL_RESULT_TOKENS) {
155
+ continue;
156
+ }
157
+ const suggestion = getLargeToolSuggestion(tool.name, totalToolTokens, percent);
158
+ if (suggestion) {
159
+ suggestions.push(suggestion);
160
+ }
161
+ }
162
+ }
163
+ function getLargeToolSuggestion(toolName, tokens, percent) {
164
+ const tokenStr = formatTokens(tokens);
165
+ switch (toolName) {
166
+ case BASH_TOOL_NAME:
167
+ return {
168
+ severity: "warning",
169
+ title: `Bash results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
170
+ detail: "Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files \u2014 use Read with offset/limit instead.",
171
+ savingsTokens: Math.floor(tokens * 0.5)
172
+ };
173
+ case FILE_READ_TOOL_NAME:
174
+ return {
175
+ severity: "info",
176
+ title: `Read results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
177
+ 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.",
178
+ savingsTokens: Math.floor(tokens * 0.3)
179
+ };
180
+ case GREP_TOOL_NAME:
181
+ return {
182
+ severity: "info",
183
+ title: `Grep results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
184
+ detail: "Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",
185
+ savingsTokens: Math.floor(tokens * 0.3)
186
+ };
187
+ case WEB_FETCH_TOOL_NAME:
188
+ return {
189
+ severity: "info",
190
+ title: `WebFetch results using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
191
+ detail: "Web page content can be very large. Consider extracting only the specific information needed.",
192
+ savingsTokens: Math.floor(tokens * 0.4)
193
+ };
194
+ default:
195
+ if (percent >= 20) {
196
+ return {
197
+ severity: "info",
198
+ title: `${toolName} using ${tokenStr} tokens (${percent.toFixed(0)}%)`,
199
+ detail: `This tool is consuming a significant portion of context.`,
200
+ savingsTokens: Math.floor(tokens * 0.2)
201
+ };
202
+ }
203
+ return null;
204
+ }
205
+ }
206
+ function checkReadResultBloat(data, suggestions) {
207
+ if (!data.messageBreakdown)
208
+ return;
209
+ const callsByType = data.messageBreakdown.toolCallsByType;
210
+ const readTool = callsByType.find((t) => t.name === FILE_READ_TOOL_NAME);
211
+ if (!readTool)
212
+ return;
213
+ const totalReadTokens = readTool.callTokens + readTool.resultTokens;
214
+ const totalReadPercent = totalReadTokens / data.rawMaxTokens * 100;
215
+ const readPercent = readTool.resultTokens / data.rawMaxTokens * 100;
216
+ if (totalReadPercent >= LARGE_TOOL_RESULT_PERCENT && totalReadTokens >= LARGE_TOOL_RESULT_TOKENS) {
217
+ return;
218
+ }
219
+ if (readPercent >= READ_BLOAT_PERCENT && readTool.resultTokens >= LARGE_TOOL_RESULT_TOKENS) {
220
+ suggestions.push({
221
+ severity: "info",
222
+ title: `File reads using ${formatTokens(readTool.resultTokens)} tokens (${readPercent.toFixed(0)}%)`,
223
+ detail: "If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",
224
+ savingsTokens: Math.floor(readTool.resultTokens * 0.3)
225
+ });
226
+ }
227
+ }
228
+ function checkMemoryBloat(data, suggestions) {
229
+ const totalMemoryTokens = data.memoryFiles.reduce((sum, f) => sum + f.tokens, 0);
230
+ const memoryPercent = totalMemoryTokens / data.rawMaxTokens * 100;
231
+ if (memoryPercent >= MEMORY_HIGH_PERCENT && totalMemoryTokens >= MEMORY_HIGH_TOKENS) {
232
+ const largestFiles = [...data.memoryFiles].sort((a, b) => b.tokens - a.tokens).slice(0, 3).map((f) => {
233
+ const name = getDisplayPath(f.path);
234
+ return `${name} (${formatTokens(f.tokens)})`;
235
+ }).join(", ");
236
+ suggestions.push({
237
+ severity: "info",
238
+ title: `Memory files using ${formatTokens(totalMemoryTokens)} tokens (${memoryPercent.toFixed(0)}%)`,
239
+ detail: `Largest: ${largestFiles}. Use /memory to review and prune stale entries.`,
240
+ savingsTokens: Math.floor(totalMemoryTokens * 0.3)
241
+ });
242
+ }
243
+ }
244
+ function checkAutoCompactDisabled(data, suggestions) {
245
+ if (!data.isAutoCompactEnabled && data.percentage >= 50 && data.percentage < NEAR_CAPACITY_PERCENT) {
246
+ suggestions.push({
247
+ severity: "info",
248
+ title: "Autocompact is disabled",
249
+ detail: "Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."
250
+ });
251
+ }
252
+ }
253
+ 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;
254
+ var init_contextSuggestions = __esm(() => {
255
+ init_prompt2();
256
+ init_prompt();
257
+ init_file();
258
+ init_format();
259
+ });
260
+
261
+ // src/components/ContextSuggestions.tsx
262
+ function ContextSuggestions(t0) {
263
+ const $ = import_compiler_runtime.c(5);
264
+ const {
265
+ suggestions
266
+ } = t0;
267
+ if (suggestions.length === 0) {
268
+ return null;
269
+ }
270
+ let t1;
271
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
272
+ t1 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
273
+ bold: true,
274
+ children: "Suggestions"
275
+ }, undefined, false, undefined, this);
276
+ $[0] = t1;
277
+ } else {
278
+ t1 = $[0];
279
+ }
280
+ let t2;
281
+ if ($[1] !== suggestions) {
282
+ t2 = suggestions.map(_temp);
283
+ $[1] = suggestions;
284
+ $[2] = t2;
285
+ } else {
286
+ t2 = $[2];
287
+ }
288
+ let t3;
289
+ if ($[3] !== t2) {
290
+ t3 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
291
+ flexDirection: "column",
292
+ marginTop: 1,
293
+ children: [
294
+ t1,
295
+ t2
296
+ ]
297
+ }, undefined, true, undefined, this);
298
+ $[3] = t2;
299
+ $[4] = t3;
300
+ } else {
301
+ t3 = $[4];
302
+ }
303
+ return t3;
304
+ }
305
+ function _temp(suggestion, i) {
306
+ return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
307
+ flexDirection: "column",
308
+ marginTop: i === 0 ? 0 : 1,
309
+ children: [
310
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
311
+ children: [
312
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(StatusIcon, {
313
+ status: suggestion.severity,
314
+ withSpace: true
315
+ }, undefined, false, undefined, this),
316
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
317
+ bold: true,
318
+ children: suggestion.title
319
+ }, undefined, false, undefined, this),
320
+ suggestion.savingsTokens ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
321
+ dimColor: true,
322
+ children: [
323
+ " ",
324
+ figures_default.arrowRight,
325
+ " save ~",
326
+ formatTokens(suggestion.savingsTokens)
327
+ ]
328
+ }, undefined, true, undefined, this) : null
329
+ ]
330
+ }, undefined, true, undefined, this),
331
+ /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
332
+ marginLeft: 2,
333
+ children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
334
+ dimColor: true,
335
+ children: suggestion.detail
336
+ }, undefined, false, undefined, this)
337
+ }, undefined, false, undefined, this)
338
+ ]
339
+ }, i, true, undefined, this);
340
+ }
341
+ var import_compiler_runtime, jsx_dev_runtime;
342
+ var init_ContextSuggestions = __esm(() => {
343
+ init_figures();
344
+ init_ink();
345
+ init_format();
346
+ init_StatusIcon();
347
+ import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
348
+ jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
349
+ });
350
+
351
+ // src/components/ContextVisualization.tsx
352
+ function CollapseStatus() {
353
+ const $ = import_compiler_runtime2.c(2);
354
+ if (false) {}
355
+ return null;
356
+ }
357
+ function groupBySource(items) {
358
+ const groups = new Map;
359
+ for (const item of items) {
360
+ const key = getSourceDisplayName(item.source);
361
+ const existing = groups.get(key) || [];
362
+ existing.push(item);
363
+ groups.set(key, existing);
364
+ }
365
+ for (const [key, group] of groups.entries()) {
366
+ groups.set(key, group.sort((a, b) => b.tokens - a.tokens));
367
+ }
368
+ const orderedGroups = new Map;
369
+ for (const source of SOURCE_DISPLAY_ORDER) {
370
+ const group = groups.get(source);
371
+ if (group) {
372
+ orderedGroups.set(source, group);
373
+ }
374
+ }
375
+ return orderedGroups;
376
+ }
377
+ function ContextVisualization(t0) {
378
+ const $ = import_compiler_runtime2.c(87);
379
+ const {
380
+ data
381
+ } = t0;
382
+ const {
383
+ categories,
384
+ totalTokens,
385
+ rawMaxTokens,
386
+ percentage,
387
+ gridRows,
388
+ model,
389
+ memoryFiles,
390
+ mcpTools,
391
+ deferredBuiltinTools: t1,
392
+ systemTools,
393
+ systemPromptSections,
394
+ agents,
395
+ skills,
396
+ messageBreakdown
397
+ } = data;
398
+ let T0;
399
+ let T1;
400
+ let t2;
401
+ let t3;
402
+ let t4;
403
+ let t5;
404
+ let t6;
405
+ let t7;
406
+ let t8;
407
+ let t9;
408
+ if ($[0] !== categories || $[1] !== gridRows || $[2] !== mcpTools || $[3] !== model || $[4] !== percentage || $[5] !== rawMaxTokens || $[6] !== systemTools || $[7] !== t1 || $[8] !== totalTokens) {
409
+ const deferredBuiltinTools = t1 === undefined ? [] : t1;
410
+ const visibleCategories = categories.filter(_temp14);
411
+ let t102;
412
+ if ($[19] !== categories) {
413
+ t102 = categories.some(_temp2);
414
+ $[19] = categories;
415
+ $[20] = t102;
416
+ } else {
417
+ t102 = $[20];
418
+ }
419
+ const hasDeferredMcpTools = t102;
420
+ const hasDeferredBuiltinTools = deferredBuiltinTools.length > 0;
421
+ const autocompactCategory = categories.find(_temp3);
422
+ T1 = ThemedBox_default;
423
+ t6 = "column";
424
+ t7 = 1;
425
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
426
+ t8 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
427
+ bold: true,
428
+ children: "Context Usage"
429
+ }, undefined, false, undefined, this);
430
+ $[21] = t8;
431
+ } else {
432
+ t8 = $[21];
433
+ }
434
+ let t112;
435
+ if ($[22] !== gridRows) {
436
+ t112 = gridRows.map(_temp5);
437
+ $[22] = gridRows;
438
+ $[23] = t112;
439
+ } else {
440
+ t112 = $[23];
441
+ }
442
+ let t122;
443
+ if ($[24] !== t112) {
444
+ t122 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
445
+ flexDirection: "column",
446
+ flexShrink: 0,
447
+ children: t112
448
+ }, undefined, false, undefined, this);
449
+ $[24] = t112;
450
+ $[25] = t122;
451
+ } else {
452
+ t122 = $[25];
453
+ }
454
+ let t132;
455
+ if ($[26] !== totalTokens) {
456
+ t132 = formatTokens(totalTokens);
457
+ $[26] = totalTokens;
458
+ $[27] = t132;
459
+ } else {
460
+ t132 = $[27];
461
+ }
462
+ let t142;
463
+ if ($[28] !== rawMaxTokens) {
464
+ t142 = formatTokens(rawMaxTokens);
465
+ $[28] = rawMaxTokens;
466
+ $[29] = t142;
467
+ } else {
468
+ t142 = $[29];
469
+ }
470
+ let t152;
471
+ if ($[30] !== model || $[31] !== percentage || $[32] !== t132 || $[33] !== t142) {
472
+ t152 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
473
+ dimColor: true,
474
+ children: [
475
+ model,
476
+ " \xB7 ",
477
+ t132,
478
+ "/",
479
+ t142,
480
+ " ",
481
+ "tokens (",
482
+ percentage,
483
+ "%)"
484
+ ]
485
+ }, undefined, true, undefined, this);
486
+ $[30] = model;
487
+ $[31] = percentage;
488
+ $[32] = t132;
489
+ $[33] = t142;
490
+ $[34] = t152;
491
+ } else {
492
+ t152 = $[34];
493
+ }
494
+ let t162;
495
+ let t172;
496
+ let t182;
497
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
498
+ t162 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(CollapseStatus, {}, undefined, false, undefined, this);
499
+ t172 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
500
+ children: " "
501
+ }, undefined, false, undefined, this);
502
+ t182 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
503
+ dimColor: true,
504
+ italic: true,
505
+ children: "Estimated usage by category"
506
+ }, undefined, false, undefined, this);
507
+ $[35] = t162;
508
+ $[36] = t172;
509
+ $[37] = t182;
510
+ } else {
511
+ t162 = $[35];
512
+ t172 = $[36];
513
+ t182 = $[37];
514
+ }
515
+ let t19;
516
+ if ($[38] !== rawMaxTokens) {
517
+ t19 = (cat_2, index) => {
518
+ const tokenDisplay = formatTokens(cat_2.tokens);
519
+ const percentDisplay = cat_2.isDeferred ? "N/A" : `${(cat_2.tokens / rawMaxTokens * 100).toFixed(1)}%`;
520
+ const isReserved = cat_2.name === RESERVED_CATEGORY_NAME;
521
+ const displayName = cat_2.name;
522
+ const symbol = cat_2.isDeferred ? " " : isReserved ? "\u26DD" : "\u26C1";
523
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
524
+ children: [
525
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
526
+ color: cat_2.color,
527
+ children: symbol
528
+ }, undefined, false, undefined, this),
529
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
530
+ children: [
531
+ " ",
532
+ displayName,
533
+ ": "
534
+ ]
535
+ }, undefined, true, undefined, this),
536
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
537
+ dimColor: true,
538
+ children: [
539
+ tokenDisplay,
540
+ " tokens (",
541
+ percentDisplay,
542
+ ")"
543
+ ]
544
+ }, undefined, true, undefined, this)
545
+ ]
546
+ }, index, true, undefined, this);
547
+ };
548
+ $[38] = rawMaxTokens;
549
+ $[39] = t19;
550
+ } else {
551
+ t19 = $[39];
552
+ }
553
+ const t20 = visibleCategories.map(t19);
554
+ let t21;
555
+ if ($[40] !== categories || $[41] !== rawMaxTokens) {
556
+ t21 = (categories.find(_temp6)?.tokens ?? 0) > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
557
+ children: [
558
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
559
+ dimColor: true,
560
+ children: "\u26F6"
561
+ }, undefined, false, undefined, this),
562
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
563
+ children: " Free space: "
564
+ }, undefined, false, undefined, this),
565
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
566
+ dimColor: true,
567
+ children: [
568
+ formatTokens(categories.find(_temp7)?.tokens || 0),
569
+ " ",
570
+ "(",
571
+ ((categories.find(_temp8)?.tokens || 0) / rawMaxTokens * 100).toFixed(1),
572
+ "%)"
573
+ ]
574
+ }, undefined, true, undefined, this)
575
+ ]
576
+ }, undefined, true, undefined, this);
577
+ $[40] = categories;
578
+ $[41] = rawMaxTokens;
579
+ $[42] = t21;
580
+ } else {
581
+ t21 = $[42];
582
+ }
583
+ const t22 = autocompactCategory && autocompactCategory.tokens > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
584
+ children: [
585
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
586
+ color: autocompactCategory.color,
587
+ children: "\u26DD"
588
+ }, undefined, false, undefined, this),
589
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
590
+ dimColor: true,
591
+ children: [
592
+ " ",
593
+ autocompactCategory.name,
594
+ ": "
595
+ ]
596
+ }, undefined, true, undefined, this),
597
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
598
+ dimColor: true,
599
+ children: [
600
+ formatTokens(autocompactCategory.tokens),
601
+ " tokens (",
602
+ (autocompactCategory.tokens / rawMaxTokens * 100).toFixed(1),
603
+ "%)"
604
+ ]
605
+ }, undefined, true, undefined, this)
606
+ ]
607
+ }, undefined, true, undefined, this);
608
+ let t23;
609
+ if ($[43] !== t152 || $[44] !== t20 || $[45] !== t21 || $[46] !== t22) {
610
+ t23 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
611
+ flexDirection: "column",
612
+ gap: 0,
613
+ flexShrink: 0,
614
+ children: [
615
+ t152,
616
+ t162,
617
+ t172,
618
+ t182,
619
+ t20,
620
+ t21,
621
+ t22
622
+ ]
623
+ }, undefined, true, undefined, this);
624
+ $[43] = t152;
625
+ $[44] = t20;
626
+ $[45] = t21;
627
+ $[46] = t22;
628
+ $[47] = t23;
629
+ } else {
630
+ t23 = $[47];
631
+ }
632
+ if ($[48] !== t122 || $[49] !== t23) {
633
+ t9 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
634
+ flexDirection: "row",
635
+ gap: 2,
636
+ children: [
637
+ t122,
638
+ t23
639
+ ]
640
+ }, undefined, true, undefined, this);
641
+ $[48] = t122;
642
+ $[49] = t23;
643
+ $[50] = t9;
644
+ } else {
645
+ t9 = $[50];
646
+ }
647
+ T0 = ThemedBox_default;
648
+ t2 = "column";
649
+ t3 = -1;
650
+ if ($[51] !== hasDeferredMcpTools || $[52] !== mcpTools) {
651
+ t4 = mcpTools.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
652
+ flexDirection: "column",
653
+ marginTop: 1,
654
+ children: [
655
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
656
+ children: [
657
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
658
+ bold: true,
659
+ children: "MCP tools"
660
+ }, undefined, false, undefined, this),
661
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
662
+ dimColor: true,
663
+ children: [
664
+ " ",
665
+ "\xB7 /mcp",
666
+ hasDeferredMcpTools ? " (loaded on-demand)" : ""
667
+ ]
668
+ }, undefined, true, undefined, this)
669
+ ]
670
+ }, undefined, true, undefined, this),
671
+ mcpTools.some(_temp9) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
672
+ flexDirection: "column",
673
+ marginTop: 1,
674
+ children: [
675
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
676
+ dimColor: true,
677
+ children: "Loaded"
678
+ }, undefined, false, undefined, this),
679
+ mcpTools.filter(_temp0).map(_temp1)
680
+ ]
681
+ }, undefined, true, undefined, this),
682
+ hasDeferredMcpTools && mcpTools.some(_temp10) && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
683
+ flexDirection: "column",
684
+ marginTop: 1,
685
+ children: [
686
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
687
+ dimColor: true,
688
+ children: "Available"
689
+ }, undefined, false, undefined, this),
690
+ mcpTools.filter(_temp11).map(_temp12)
691
+ ]
692
+ }, undefined, true, undefined, this),
693
+ !hasDeferredMcpTools && mcpTools.map(_temp13)
694
+ ]
695
+ }, undefined, true, undefined, this);
696
+ $[51] = hasDeferredMcpTools;
697
+ $[52] = mcpTools;
698
+ $[53] = t4;
699
+ } else {
700
+ t4 = $[53];
701
+ }
702
+ t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false;
703
+ $[0] = categories;
704
+ $[1] = gridRows;
705
+ $[2] = mcpTools;
706
+ $[3] = model;
707
+ $[4] = percentage;
708
+ $[5] = rawMaxTokens;
709
+ $[6] = systemTools;
710
+ $[7] = t1;
711
+ $[8] = totalTokens;
712
+ $[9] = T0;
713
+ $[10] = T1;
714
+ $[11] = t2;
715
+ $[12] = t3;
716
+ $[13] = t4;
717
+ $[14] = t5;
718
+ $[15] = t6;
719
+ $[16] = t7;
720
+ $[17] = t8;
721
+ $[18] = t9;
722
+ } else {
723
+ T0 = $[9];
724
+ T1 = $[10];
725
+ t2 = $[11];
726
+ t3 = $[12];
727
+ t4 = $[13];
728
+ t5 = $[14];
729
+ t6 = $[15];
730
+ t7 = $[16];
731
+ t8 = $[17];
732
+ t9 = $[18];
733
+ }
734
+ let t10;
735
+ if ($[54] !== systemPromptSections) {
736
+ t10 = systemPromptSections && systemPromptSections.length > 0 && false;
737
+ $[54] = systemPromptSections;
738
+ $[55] = t10;
739
+ } else {
740
+ t10 = $[55];
741
+ }
742
+ let t11;
743
+ if ($[56] !== agents) {
744
+ t11 = agents.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
745
+ flexDirection: "column",
746
+ marginTop: 1,
747
+ children: [
748
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
749
+ children: [
750
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
751
+ bold: true,
752
+ children: "Custom agents"
753
+ }, undefined, false, undefined, this),
754
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
755
+ dimColor: true,
756
+ children: " \xB7 /agents"
757
+ }, undefined, false, undefined, this)
758
+ ]
759
+ }, undefined, true, undefined, this),
760
+ Array.from(groupBySource(agents).entries()).map(_temp22)
761
+ ]
762
+ }, undefined, true, undefined, this);
763
+ $[56] = agents;
764
+ $[57] = t11;
765
+ } else {
766
+ t11 = $[57];
767
+ }
768
+ let t12;
769
+ if ($[58] !== memoryFiles) {
770
+ t12 = memoryFiles.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
771
+ flexDirection: "column",
772
+ marginTop: 1,
773
+ children: [
774
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
775
+ children: [
776
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
777
+ bold: true,
778
+ children: "Memory files"
779
+ }, undefined, false, undefined, this),
780
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
781
+ dimColor: true,
782
+ children: " \xB7 /memory"
783
+ }, undefined, false, undefined, this)
784
+ ]
785
+ }, undefined, true, undefined, this),
786
+ memoryFiles.map(_temp23)
787
+ ]
788
+ }, undefined, true, undefined, this);
789
+ $[58] = memoryFiles;
790
+ $[59] = t12;
791
+ } else {
792
+ t12 = $[59];
793
+ }
794
+ let t13;
795
+ if ($[60] !== skills) {
796
+ t13 = skills && skills.tokens > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
797
+ flexDirection: "column",
798
+ marginTop: 1,
799
+ children: [
800
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
801
+ children: [
802
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
803
+ bold: true,
804
+ children: "Skills"
805
+ }, undefined, false, undefined, this),
806
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
807
+ dimColor: true,
808
+ children: " \xB7 /skills"
809
+ }, undefined, false, undefined, this)
810
+ ]
811
+ }, undefined, true, undefined, this),
812
+ Array.from(groupBySource(skills.skillFrontmatter).entries()).map(_temp25)
813
+ ]
814
+ }, undefined, true, undefined, this);
815
+ $[60] = skills;
816
+ $[61] = t13;
817
+ } else {
818
+ t13 = $[61];
819
+ }
820
+ let t14;
821
+ if ($[62] !== messageBreakdown) {
822
+ t14 = messageBreakdown && false;
823
+ $[62] = messageBreakdown;
824
+ $[63] = t14;
825
+ } else {
826
+ t14 = $[63];
827
+ }
828
+ let t15;
829
+ if ($[64] !== T0 || $[65] !== t10 || $[66] !== t11 || $[67] !== t12 || $[68] !== t13 || $[69] !== t14 || $[70] !== t2 || $[71] !== t3 || $[72] !== t4 || $[73] !== t5) {
830
+ t15 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(T0, {
831
+ flexDirection: t2,
832
+ marginLeft: t3,
833
+ children: [
834
+ t4,
835
+ t5,
836
+ t10,
837
+ t11,
838
+ t12,
839
+ t13,
840
+ t14
841
+ ]
842
+ }, undefined, true, undefined, this);
843
+ $[64] = T0;
844
+ $[65] = t10;
845
+ $[66] = t11;
846
+ $[67] = t12;
847
+ $[68] = t13;
848
+ $[69] = t14;
849
+ $[70] = t2;
850
+ $[71] = t3;
851
+ $[72] = t4;
852
+ $[73] = t5;
853
+ $[74] = t15;
854
+ } else {
855
+ t15 = $[74];
856
+ }
857
+ let t16;
858
+ if ($[75] !== data) {
859
+ t16 = generateContextSuggestions(data);
860
+ $[75] = data;
861
+ $[76] = t16;
862
+ } else {
863
+ t16 = $[76];
864
+ }
865
+ let t17;
866
+ if ($[77] !== t16) {
867
+ t17 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ContextSuggestions, {
868
+ suggestions: t16
869
+ }, undefined, false, undefined, this);
870
+ $[77] = t16;
871
+ $[78] = t17;
872
+ } else {
873
+ t17 = $[78];
874
+ }
875
+ let t18;
876
+ if ($[79] !== T1 || $[80] !== t15 || $[81] !== t17 || $[82] !== t6 || $[83] !== t7 || $[84] !== t8 || $[85] !== t9) {
877
+ t18 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(T1, {
878
+ flexDirection: t6,
879
+ paddingLeft: t7,
880
+ children: [
881
+ t8,
882
+ t9,
883
+ t15,
884
+ t17
885
+ ]
886
+ }, undefined, true, undefined, this);
887
+ $[79] = T1;
888
+ $[80] = t15;
889
+ $[81] = t17;
890
+ $[82] = t6;
891
+ $[83] = t7;
892
+ $[84] = t8;
893
+ $[85] = t9;
894
+ $[86] = t18;
895
+ } else {
896
+ t18 = $[86];
897
+ }
898
+ return t18;
899
+ }
900
+ function _temp25(t0) {
901
+ const [sourceDisplay_0, sourceSkills] = t0;
902
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
903
+ flexDirection: "column",
904
+ marginTop: 1,
905
+ children: [
906
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
907
+ dimColor: true,
908
+ children: sourceDisplay_0
909
+ }, undefined, false, undefined, this),
910
+ sourceSkills.map(_temp24)
911
+ ]
912
+ }, sourceDisplay_0, true, undefined, this);
913
+ }
914
+ function _temp24(skill, i_8) {
915
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
916
+ children: [
917
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
918
+ children: [
919
+ "\u2514 ",
920
+ skill.name,
921
+ ": "
922
+ ]
923
+ }, undefined, true, undefined, this),
924
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
925
+ dimColor: true,
926
+ children: [
927
+ formatTokens(skill.tokens),
928
+ " tokens"
929
+ ]
930
+ }, undefined, true, undefined, this)
931
+ ]
932
+ }, i_8, true, undefined, this);
933
+ }
934
+ function _temp23(file, i_7) {
935
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
936
+ children: [
937
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
938
+ children: [
939
+ "\u2514 ",
940
+ getDisplayPath(file.path),
941
+ ": "
942
+ ]
943
+ }, undefined, true, undefined, this),
944
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
945
+ dimColor: true,
946
+ children: [
947
+ formatTokens(file.tokens),
948
+ " tokens"
949
+ ]
950
+ }, undefined, true, undefined, this)
951
+ ]
952
+ }, i_7, true, undefined, this);
953
+ }
954
+ function _temp22(t0) {
955
+ const [sourceDisplay, sourceAgents] = t0;
956
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
957
+ flexDirection: "column",
958
+ marginTop: 1,
959
+ children: [
960
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
961
+ dimColor: true,
962
+ children: sourceDisplay
963
+ }, undefined, false, undefined, this),
964
+ sourceAgents.map(_temp21)
965
+ ]
966
+ }, sourceDisplay, true, undefined, this);
967
+ }
968
+ function _temp21(agent, i_6) {
969
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
970
+ children: [
971
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
972
+ children: [
973
+ "\u2514 ",
974
+ agent.agentType,
975
+ ": "
976
+ ]
977
+ }, undefined, true, undefined, this),
978
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
979
+ dimColor: true,
980
+ children: [
981
+ formatTokens(agent.tokens),
982
+ " tokens"
983
+ ]
984
+ }, undefined, true, undefined, this)
985
+ ]
986
+ }, i_6, true, undefined, this);
987
+ }
988
+ function _temp13(tool_1, i_1) {
989
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
990
+ children: [
991
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
992
+ children: [
993
+ "\u2514 ",
994
+ tool_1.name,
995
+ ": "
996
+ ]
997
+ }, undefined, true, undefined, this),
998
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
999
+ dimColor: true,
1000
+ children: [
1001
+ formatTokens(tool_1.tokens),
1002
+ " tokens"
1003
+ ]
1004
+ }, undefined, true, undefined, this)
1005
+ ]
1006
+ }, i_1, true, undefined, this);
1007
+ }
1008
+ function _temp12(tool_0, i_0) {
1009
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1010
+ children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1011
+ dimColor: true,
1012
+ children: [
1013
+ "\u2514 ",
1014
+ tool_0.name
1015
+ ]
1016
+ }, undefined, true, undefined, this)
1017
+ }, i_0, false, undefined, this);
1018
+ }
1019
+ function _temp11(t_1) {
1020
+ return !t_1.isLoaded;
1021
+ }
1022
+ function _temp10(t_2) {
1023
+ return !t_2.isLoaded;
1024
+ }
1025
+ function _temp1(tool, i) {
1026
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1027
+ children: [
1028
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1029
+ children: [
1030
+ "\u2514 ",
1031
+ tool.name,
1032
+ ": "
1033
+ ]
1034
+ }, undefined, true, undefined, this),
1035
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1036
+ dimColor: true,
1037
+ children: [
1038
+ formatTokens(tool.tokens),
1039
+ " tokens"
1040
+ ]
1041
+ }, undefined, true, undefined, this)
1042
+ ]
1043
+ }, i, true, undefined, this);
1044
+ }
1045
+ function _temp0(t) {
1046
+ return t.isLoaded;
1047
+ }
1048
+ function _temp9(t_0) {
1049
+ return t_0.isLoaded;
1050
+ }
1051
+ function _temp8(c_0) {
1052
+ return c_0.name === "Free space";
1053
+ }
1054
+ function _temp7(c) {
1055
+ return c.name === "Free space";
1056
+ }
1057
+ function _temp6(c_1) {
1058
+ return c_1.name === "Free space";
1059
+ }
1060
+ function _temp5(row, rowIndex) {
1061
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1062
+ flexDirection: "row",
1063
+ marginLeft: -1,
1064
+ children: row.map(_temp4)
1065
+ }, rowIndex, false, undefined, this);
1066
+ }
1067
+ function _temp4(square, colIndex) {
1068
+ if (square.categoryName === "Free space") {
1069
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1070
+ dimColor: true,
1071
+ children: "\u26F6 "
1072
+ }, colIndex, false, undefined, this);
1073
+ }
1074
+ if (square.categoryName === RESERVED_CATEGORY_NAME) {
1075
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1076
+ color: square.color,
1077
+ children: "\u26DD "
1078
+ }, colIndex, false, undefined, this);
1079
+ }
1080
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1081
+ color: square.color,
1082
+ children: square.squareFullness >= 0.7 ? "\u26C1 " : "\u26C0 "
1083
+ }, colIndex, false, undefined, this);
1084
+ }
1085
+ function _temp3(cat_1) {
1086
+ return cat_1.name === RESERVED_CATEGORY_NAME;
1087
+ }
1088
+ function _temp2(cat_0) {
1089
+ return cat_0.isDeferred && cat_0.name.includes("MCP");
1090
+ }
1091
+ function _temp14(cat) {
1092
+ return cat.tokens > 0 && cat.name !== "Free space" && cat.name !== RESERVED_CATEGORY_NAME && !cat.isDeferred;
1093
+ }
1094
+ var import_compiler_runtime2, jsx_dev_runtime2, RESERVED_CATEGORY_NAME = "Autocompact buffer", SOURCE_DISPLAY_ORDER;
1095
+ var init_ContextVisualization = __esm(() => {
1096
+ init_ink();
1097
+ init_contextSuggestions();
1098
+ init_file();
1099
+ init_format();
1100
+ init_constants();
1101
+ init_stringUtils();
1102
+ init_ContextSuggestions();
1103
+ import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
1104
+ jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
1105
+ SOURCE_DISPLAY_ORDER = ["Project", "User", "Managed", "Plugin", "Built-in"];
1106
+ });
1107
+
1108
+ // src/commands/context/context.tsx
1109
+ function toApiView(messages) {
1110
+ let view = getMessagesAfterCompactBoundary(messages);
1111
+ if (false) {}
1112
+ return view;
1113
+ }
1114
+ async function call(onDone, context) {
1115
+ const {
1116
+ messages,
1117
+ getAppState,
1118
+ options: {
1119
+ mainLoopModel,
1120
+ tools
1121
+ }
1122
+ } = context;
1123
+ const apiView = toApiView(messages);
1124
+ const {
1125
+ messages: compactedMessages
1126
+ } = await microcompactMessages(apiView);
1127
+ const terminalWidth = process.stdout.columns || 80;
1128
+ const appState = getAppState();
1129
+ const data = await analyzeContextUsage(compactedMessages, mainLoopModel, async () => appState.toolPermissionContext, tools, appState.agentDefinitions, terminalWidth, context, undefined, apiView);
1130
+ const output = await renderToAnsiString(/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ContextVisualization, {
1131
+ data
1132
+ }, undefined, false, undefined, this));
1133
+ onDone(output);
1134
+ return null;
1135
+ }
1136
+ var jsx_dev_runtime3;
1137
+ var init_context = __esm(() => {
1138
+ init_ContextVisualization();
1139
+ init_microCompact();
1140
+ init_analyzeContext();
1141
+ init_messages();
1142
+ init_staticRender();
1143
+ jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
1144
+ });
1145
+ init_context();
1146
+
1147
+ export {
1148
+ call
1149
+ };