jialing-code 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -0
- package/dist/chunk-065m026w.js +97 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0975ccyw.js +265 -0
- package/dist/chunk-09n3fjx5.js +67 -0
- package/dist/chunk-0bdjdzew.js +41 -0
- package/dist/chunk-0ce6kd7y.js +212 -0
- package/dist/chunk-0e1xsncc.js +969 -0
- package/dist/chunk-0m2861gw.js +154 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0rg6yrhy.js +99 -0
- package/dist/chunk-0sakxrcf.js +643 -0
- package/dist/chunk-0v9hwxvz.js +105 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0vvfnhhv.js +248 -0
- package/dist/chunk-0w4rsycj.js +145 -0
- package/dist/chunk-0x9b2nmd.js +63 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-13d1842d.js +154 -0
- package/dist/chunk-1921a6yb.js +32 -0
- package/dist/chunk-1ad8mk9g.js +527 -0
- package/dist/chunk-1ax41pws.js +28 -0
- package/dist/chunk-1c8z1b5v.js +16 -0
- package/dist/chunk-1cbn5kxf.js +7 -0
- package/dist/chunk-1eapde8a.js +726 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1jggnf7z.js +85 -0
- package/dist/chunk-1k92pn9c.js +32 -0
- package/dist/chunk-1qakq4sn.js +802 -0
- package/dist/chunk-1rvz0433.js +722 -0
- package/dist/chunk-1xkekb9y.js +19 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-24ge0eqa.js +106 -0
- package/dist/chunk-278vghwm.js +5395 -0
- package/dist/chunk-27xc1csx.js +104 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2aa02aw6.js +438 -0
- package/dist/chunk-2eykm0j0.js +20 -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-2sd2w2h4.js +44 -0
- package/dist/chunk-2tw2ve8h.js +145 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-3aavh06g.js +1581 -0
- package/dist/chunk-3b0yvt2h.js +469 -0
- package/dist/chunk-3be7ka25.js +56 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3dyxka97.js +584 -0
- package/dist/chunk-3f7rypmf.js +16544 -0
- package/dist/chunk-3fsd7f51.js +93 -0
- package/dist/chunk-3gqdqmzb.js +75 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3m84sret.js +71 -0
- package/dist/chunk-3nb7j3js.js +96 -0
- package/dist/chunk-3p08nvn2.js +98 -0
- package/dist/chunk-3r09htpc.js +318 -0
- package/dist/chunk-3r24h7t6.js +113 -0
- package/dist/chunk-3rkfxjtq.js +80 -0
- package/dist/chunk-3tmk7dc2.js +604 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-43qjymy5.js +92 -0
- package/dist/chunk-44fpr6jq.js +434 -0
- package/dist/chunk-45kxdsp8.js +444 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-4ba796se.js +1095 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4h53xj8n.js +3445 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4jy9dtwk.js +116 -0
- package/dist/chunk-4p60dd45.js +55 -0
- package/dist/chunk-4z0jsrqg.js +81 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-55wgxwa9.js +13877 -0
- package/dist/chunk-5dbk24zg.js +890 -0
- package/dist/chunk-5hzvp4va.js +115 -0
- package/dist/chunk-5kbt1mbt.js +500 -0
- package/dist/chunk-5pen7vr8.js +176 -0
- package/dist/chunk-5r280eng.js +198 -0
- package/dist/chunk-5srym52s.js +88 -0
- package/dist/chunk-600kg7k6.js +41 -0
- package/dist/chunk-616w0qj3.js +160 -0
- package/dist/chunk-62jw1t8c.js +94 -0
- package/dist/chunk-62xmt9mk.js +372 -0
- package/dist/chunk-64bvg7c3.js +229 -0
- package/dist/chunk-65yhe4s0.js +281 -0
- package/dist/chunk-6aewh27m.js +102 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6exxdk1p.js +6956 -0
- package/dist/chunk-6f5j8fs0.js +752 -0
- package/dist/chunk-6g62sjpf.js +328 -0
- package/dist/chunk-6gecq2ta.js +1493 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6kpbgc5w.js +23 -0
- package/dist/chunk-6kseqw79.js +154 -0
- package/dist/chunk-6mxm1qd0.js +40764 -0
- package/dist/chunk-6n2qgm9v.js +8 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-6wsdhj3v.js +93 -0
- package/dist/chunk-6zw9fhgb.js +4389 -0
- package/dist/chunk-71grc1mw.js +111 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-748feghg.js +604 -0
- package/dist/chunk-75e8gtg9.js +84 -0
- package/dist/chunk-75th4717.js +780 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-778fnx46.js +472 -0
- package/dist/chunk-77g09znh.js +391 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7m2nd8da.js +110 -0
- package/dist/chunk-7n35vjtw.js +444 -0
- package/dist/chunk-7n5ss4sh.js +144 -0
- package/dist/chunk-7rjnxcfe.js +107 -0
- package/dist/chunk-7sb5axvf.js +122 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7ymfj7m3.js +151 -0
- package/dist/chunk-7z8j9qfn.js +121 -0
- package/dist/chunk-7zsapntc.js +216 -0
- package/dist/chunk-805fhkfh.js +908 -0
- package/dist/chunk-80k1nj24.js +253 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-85cypsdd.js +92 -0
- package/dist/chunk-8760caxf.js +2644 -0
- package/dist/chunk-88f6egg6.js +387 -0
- package/dist/chunk-88r7kwgj.js +22 -0
- package/dist/chunk-89e1v45e.js +463 -0
- package/dist/chunk-8bedvdm1.js +32 -0
- package/dist/chunk-8c4x4vdz.js +177 -0
- package/dist/chunk-8hq5kk3y.js +44 -0
- package/dist/chunk-8ngxagxq.js +18 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8wjnca8h.js +307 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-92bp5bnf.js +650 -0
- package/dist/chunk-92q8sx5z.js +90 -0
- package/dist/chunk-958rtmtx.js +10476 -0
- package/dist/chunk-9e2kqv5g.js +125 -0
- package/dist/chunk-9f4f1hy5.js +281 -0
- package/dist/chunk-9gbamk79.js +93 -0
- package/dist/chunk-9k5s3ryh.js +167 -0
- package/dist/chunk-9xzfqm15.js +97 -0
- package/dist/chunk-9zgdvbm6.js +110 -0
- package/dist/chunk-a0p3q8jw.js +24 -0
- package/dist/chunk-a22sayzp.js +220 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a8gj9d9z.js +120 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9yev47v.js +674 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-ack5mfba.js +105 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-akjw4dh6.js +538 -0
- package/dist/chunk-asc6wz4q.js +1188 -0
- package/dist/chunk-atqejh3p.js +273 -0
- package/dist/chunk-atv2e6b7.js +61 -0
- package/dist/chunk-axvvkwz8.js +1551 -0
- package/dist/chunk-azgz7kj9.js +38 -0
- package/dist/chunk-b3zave8q.js +275 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b8b13qn2.js +100 -0
- package/dist/chunk-bg3mt9bm.js +28 -0
- package/dist/chunk-bh4jvcjn.js +91 -0
- package/dist/chunk-bhdt6k7w.js +15 -0
- package/dist/chunk-bm1qb16p.js +17 -0
- package/dist/chunk-bpvsd1j1.js +266 -0
- package/dist/chunk-bqfnp99q.js +477 -0
- package/dist/chunk-bsbmmfyt.js +17 -0
- package/dist/chunk-bsbt34jm.js +42 -0
- package/dist/chunk-c78akdhr.js +458 -0
- package/dist/chunk-cdz5yb0r.js +57 -0
- package/dist/chunk-cfv996bs.js +22 -0
- package/dist/chunk-cgfdkzhb.js +12 -0
- package/dist/chunk-ckh4r5er.js +257 -0
- package/dist/chunk-cmgjnvn9.js +89 -0
- package/dist/chunk-cpjgvay8.js +687 -0
- package/dist/chunk-crfryjx9.js +276 -0
- package/dist/chunk-ctw5jwcd.js +213 -0
- package/dist/chunk-cvy3vntc.js +65 -0
- package/dist/chunk-cwbzz504.js +94 -0
- package/dist/chunk-cy2hswr1.js +15 -0
- package/dist/chunk-cyejkay3.js +222 -0
- package/dist/chunk-d18z9pna.js +106 -0
- package/dist/chunk-d5cq0n0v.js +162 -0
- package/dist/chunk-db45aryp.js +50 -0
- package/dist/chunk-de8nqh0z.js +790 -0
- package/dist/chunk-dfw6h350.js +2336 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dn75ptgd.js +184 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dpshyv9m.js +90 -0
- package/dist/chunk-dt8cdvnm.js +642 -0
- package/dist/chunk-dtxby6fr.js +306 -0
- package/dist/chunk-dv1wfr85.js +6373 -0
- package/dist/chunk-dw363edx.js +1154 -0
- package/dist/chunk-dwrdacck.js +62 -0
- package/dist/chunk-dxnnv5e3.js +276 -0
- package/dist/chunk-e3g8q4cn.js +1646 -0
- package/dist/chunk-e3m9k9s2.js +542 -0
- package/dist/chunk-e4q49asn.js +155 -0
- package/dist/chunk-e5pntxye.js +37 -0
- package/dist/chunk-e7393td6.js +42 -0
- package/dist/chunk-ead42yrh.js +87 -0
- package/dist/chunk-eb90vwvr.js +152 -0
- package/dist/chunk-ecvwk9hg.js +250 -0
- package/dist/chunk-edjd6aay.js +173 -0
- package/dist/chunk-eg0h8mtm.js +130 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-ek686gx1.js +94 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-evhwt0ar.js +1015 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-ewsgsw9h.js +172291 -0
- package/dist/chunk-f0pa0r7e.js +3198 -0
- package/dist/chunk-f2mhrmww.js +62 -0
- package/dist/chunk-f39zxvwn.js +401 -0
- package/dist/chunk-f46z54tq.js +374 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-f60q23az.js +3038 -0
- package/dist/chunk-f6v2nz57.js +107 -0
- package/dist/chunk-f6yjan38.js +38 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fem4s778.js +70 -0
- package/dist/chunk-fezm1kn8.js +376 -0
- package/dist/chunk-fm1n3ysp.js +6108 -0
- package/dist/chunk-frg83bfw.js +225 -0
- package/dist/chunk-fscm8db0.js +692 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-g0j0t6qk.js +26 -0
- package/dist/chunk-g0nc1ftf.js +849 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g3t0act8.js +8 -0
- package/dist/chunk-g75w4hw3.js +26 -0
- package/dist/chunk-g8vp82en.js +1866 -0
- package/dist/chunk-gax0fcbx.js +182 -0
- package/dist/chunk-gsz4dh3y.js +606 -0
- package/dist/chunk-gtfffm7h.js +440 -0
- package/dist/chunk-gver9zb9.js +420 -0
- package/dist/chunk-gyj242zr.js +20 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h14kemnk.js +123 -0
- package/dist/chunk-h8wj1a74.js +8960 -0
- package/dist/chunk-h9mcb2eg.js +87 -0
- package/dist/chunk-h9nh2980.js +91 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hbc6ymdv.js +55 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hjhc4cpt.js +69 -0
- package/dist/chunk-hjwez8qc.js +5018 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hqmz36b3.js +552 -0
- package/dist/chunk-hrzerbfw.js +1299 -0
- package/dist/chunk-hs8ph4p8.js +8 -0
- package/dist/chunk-ht1xwrnd.js +716 -0
- package/dist/chunk-hvmfg2dc.js +338 -0
- package/dist/chunk-hx2tr4ep.js +7189 -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-j49g6g3s.js +57 -0
- package/dist/chunk-j5d5hp9h.js +71 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-j7tyxan1.js +116 -0
- package/dist/chunk-j8v4774z.js +424 -0
- package/dist/chunk-jafes477.js +29 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jftd4jq5.js +4521 -0
- package/dist/chunk-jkxqhv6y.js +812 -0
- package/dist/chunk-jmfr6h0n.js +120 -0
- package/dist/chunk-jn4aabmx.js +40 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jsbpm1gz.js +27 -0
- package/dist/chunk-jtcyjc3k.js +5802 -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-k3dcdnck.js +89 -0
- package/dist/chunk-k3wadzcd.js +88 -0
- package/dist/chunk-kaeshsk1.js +713 -0
- package/dist/chunk-kbkey9ed.js +522 -0
- package/dist/chunk-kcwfhqbb.js +196 -0
- package/dist/chunk-key6jr7p.js +224 -0
- package/dist/chunk-knay8cy9.js +173 -0
- package/dist/chunk-kr3rg2y1.js +95 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-m06q12hg.js +61 -0
- package/dist/chunk-m2mcpbhk.js +43 -0
- package/dist/chunk-m8v220gz.js +71 -0
- package/dist/chunk-mgpqy78h.js +208 -0
- package/dist/chunk-mkejwh4t.js +16 -0
- package/dist/chunk-mptyw5n1.js +107 -0
- package/dist/chunk-mqajm0dp.js +66 -0
- package/dist/chunk-mrksbgxj.js +490 -0
- package/dist/chunk-msjfc5ba.js +246 -0
- package/dist/chunk-mt25echc.js +6157 -0
- package/dist/chunk-mt3jfnr8.js +277 -0
- package/dist/chunk-mtn242d4.js +9300 -0
- package/dist/chunk-mzfkvave.js +169 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n1erf6kh.js +22820 -0
- package/dist/chunk-n2avk1r2.js +61 -0
- package/dist/chunk-n6atnpcq.js +765 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-ncnfzby5.js +822 -0
- package/dist/chunk-ncnr1jtf.js +2058 -0
- package/dist/chunk-nerv0jvx.js +74 -0
- package/dist/chunk-ngd2abep.js +90 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nnaxkc2z.js +128 -0
- package/dist/chunk-npyrtj8j.js +691 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nrmffak7.js +114 -0
- package/dist/chunk-nsz546wq.js +1170 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nv64x1z5.js +86 -0
- package/dist/chunk-nxsh6de2.js +1711 -0
- package/dist/chunk-nz4getcr.js +40 -0
- package/dist/chunk-p1f607pa.js +83 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p4r5y02t.js +90 -0
- package/dist/chunk-p7g7pf3f.js +336 -0
- package/dist/chunk-pb4ad8r2.js +110 -0
- package/dist/chunk-pbrhz0zr.js +716 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pwnt3veb.js +103 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-px3w0kde.js +299 -0
- package/dist/chunk-pzn777jb.js +756 -0
- package/dist/chunk-q25bjaev.js +15 -0
- package/dist/chunk-q5by3da6.js +8 -0
- package/dist/chunk-q6av622g.js +38 -0
- package/dist/chunk-q6xkvtf2.js +1318 -0
- package/dist/chunk-q81jx1tq.js +476 -0
- package/dist/chunk-qehb6fk5.js +339 -0
- package/dist/chunk-qj1avx1q.js +87 -0
- package/dist/chunk-qn2dxr66.js +105 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp18kd4h.js +48 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qpjy9tcf.js +133 -0
- package/dist/chunk-qqfa0dqg.js +2343 -0
- package/dist/chunk-qwh3htcz.js +202 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-r3vakcs1.js +496 -0
- package/dist/chunk-r66hz8j6.js +34 -0
- package/dist/chunk-r6b58y3x.js +17 -0
- package/dist/chunk-rekp48rk.js +62 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rs1xrs6m.js +534 -0
- package/dist/chunk-rs45skes.js +123 -0
- package/dist/chunk-rzszqp82.js +524 -0
- package/dist/chunk-s274nv8k.js +8 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s9mesaw0.js +26840 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-sdj9b9wh.js +782 -0
- package/dist/chunk-sdw2q69p.js +227 -0
- package/dist/chunk-sfgp9cc0.js +130 -0
- package/dist/chunk-spqaamnc.js +63 -0
- package/dist/chunk-spzrs4df.js +73 -0
- package/dist/chunk-sxkr7k43.js +55 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0rgmccj.js +39 -0
- package/dist/chunk-t1nnzjgg.js +17 -0
- package/dist/chunk-t94fcnt8.js +566 -0
- package/dist/chunk-tjaqa99q.js +125 -0
- package/dist/chunk-tjq2evtw.js +328 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tw0q7ynt.js +59 -0
- package/dist/chunk-v02jkvgy.js +131 -0
- package/dist/chunk-v084bqt3.js +1529 -0
- package/dist/chunk-v0amythm.js +164 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v1mgv1et.js +15 -0
- package/dist/chunk-v399mzxk.js +58 -0
- package/dist/chunk-v3gm2day.js +8 -0
- package/dist/chunk-v43hrrxp.js +71 -0
- package/dist/chunk-v6aqb2aj.js +102 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v7qmhjdn.js +1921 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-vdw93s4h.js +2431 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vratq94g.js +349 -0
- package/dist/chunk-vrz7t3m3.js +20 -0
- package/dist/chunk-vtb185z9.js +70 -0
- package/dist/chunk-vx01rvg8.js +654 -0
- package/dist/chunk-vyc0rjyx.js +31 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vzpffsza.js +269 -0
- package/dist/chunk-w2ef3kxk.js +3353 -0
- package/dist/chunk-w2z5pqd3.js +336 -0
- package/dist/chunk-w3whm4mn.js +432 -0
- package/dist/chunk-w7wgpqcp.js +157 -0
- package/dist/chunk-waa00cvb.js +301 -0
- package/dist/chunk-wb0qm4es.js +155 -0
- package/dist/chunk-wbkahkdc.js +27 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wn0cx0pt.js +283 -0
- package/dist/chunk-wv6gzt9c.js +726 -0
- package/dist/chunk-wx42ycm4.js +998 -0
- package/dist/chunk-wxkpgy05.js +268 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x0mwzt38.js +714 -0
- package/dist/chunk-x592wbfh.js +244 -0
- package/dist/chunk-x5pqsp9r.js +100 -0
- package/dist/chunk-x679thag.js +825 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8cftch7.js +119 -0
- package/dist/chunk-x9q7r885.js +348 -0
- package/dist/chunk-xawkt0vb.js +1585 -0
- package/dist/chunk-xdw5dv00.js +8 -0
- package/dist/chunk-xe9cc860.js +287 -0
- package/dist/chunk-xjr9c3vt.js +101 -0
- package/dist/chunk-xk7zaqta.js +21933 -0
- package/dist/chunk-xktbmawc.js +678 -0
- package/dist/chunk-xn6yw46v.js +140 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xszk7n10.js +14358 -0
- package/dist/chunk-xt8a5r1t.js +84 -0
- package/dist/chunk-xydyndkv.js +195 -0
- package/dist/chunk-xzt10yc5.js +60 -0
- package/dist/chunk-y04y95dr.js +91 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-y1x32h3x.js +128 -0
- package/dist/chunk-y3s7aww5.js +99 -0
- package/dist/chunk-y47cg3kz.js +42 -0
- package/dist/chunk-y7kzvepn.js +469 -0
- package/dist/chunk-y89kbsyc.js +287 -0
- package/dist/chunk-yd87p1c3.js +159 -0
- package/dist/chunk-yf3yw8fw.js +105 -0
- package/dist/chunk-ygbf0ezx.js +1391 -0
- package/dist/chunk-yjbxnshv.js +208 -0
- package/dist/chunk-ynednmqd.js +192 -0
- package/dist/chunk-yvhez44y.js +259 -0
- package/dist/chunk-ywxd4qw4.js +22 -0
- package/dist/chunk-yzrmgpy4.js +117 -0
- package/dist/chunk-z0b2vb24.js +862 -0
- package/dist/chunk-z1zj044v.js +655 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z3w0xasa.js +165 -0
- package/dist/chunk-z7ycmrb3.js +644 -0
- package/dist/chunk-zh11tdkb.js +347 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-zqfqcf22.js +229 -0
- package/dist/chunk-zqk2j8px.js +699 -0
- package/dist/chunk-zqvsc10j.js +2833 -0
- package/dist/chunk-zsfxha74.js +17655 -0
- package/dist/chunk-zvc4snyb.js +117 -0
- package/dist/cli.js +194 -0
- package/package.json +173 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
disableAllPlugins,
|
|
4
|
+
disablePlugin,
|
|
5
|
+
enablePlugin,
|
|
6
|
+
installPlugin,
|
|
7
|
+
uninstallPlugin,
|
|
8
|
+
updatePluginCli
|
|
9
|
+
} from "./chunk-qwh3htcz.js";
|
|
10
|
+
import {
|
|
11
|
+
cliError,
|
|
12
|
+
cliOk
|
|
13
|
+
} from "./chunk-z2dp53wn.js";
|
|
14
|
+
import {
|
|
15
|
+
getInstallCounts,
|
|
16
|
+
init_installCounts,
|
|
17
|
+
init_parseMarketplaceInput,
|
|
18
|
+
init_validatePlugin,
|
|
19
|
+
parseMarketplaceInput,
|
|
20
|
+
validateManifest,
|
|
21
|
+
validatePluginContents
|
|
22
|
+
} from "./chunk-g0nc1ftf.js";
|
|
23
|
+
import {
|
|
24
|
+
VALID_INSTALLABLE_SCOPES,
|
|
25
|
+
VALID_UPDATE_SCOPES
|
|
26
|
+
} from "./chunk-z7ycmrb3.js";
|
|
27
|
+
import"./chunk-mgpqy78h.js";
|
|
28
|
+
import {
|
|
29
|
+
addMarketplaceSource,
|
|
30
|
+
clearAllCaches,
|
|
31
|
+
createPluginId,
|
|
32
|
+
getPluginErrorMessage,
|
|
33
|
+
init_cacheUtils,
|
|
34
|
+
init_installedPluginsManager,
|
|
35
|
+
init_marketplaceHelpers,
|
|
36
|
+
init_marketplaceManager,
|
|
37
|
+
init_mcpPluginIntegration,
|
|
38
|
+
init_plugin,
|
|
39
|
+
init_pluginIdentifier,
|
|
40
|
+
init_pluginLoader,
|
|
41
|
+
isPluginInstalled,
|
|
42
|
+
loadAllPlugins,
|
|
43
|
+
loadInstalledPluginsV2,
|
|
44
|
+
loadKnownMarketplacesConfig,
|
|
45
|
+
loadMarketplacesWithGracefulDegradation,
|
|
46
|
+
loadPluginMcpServers,
|
|
47
|
+
parsePluginIdentifier,
|
|
48
|
+
refreshAllMarketplaces,
|
|
49
|
+
refreshMarketplace,
|
|
50
|
+
removeMarketplaceSource,
|
|
51
|
+
saveMarketplaceToSettings,
|
|
52
|
+
scopeToSettingSource
|
|
53
|
+
} from "./chunk-ewsgsw9h.js";
|
|
54
|
+
import"./chunk-z1zj044v.js";
|
|
55
|
+
import"./chunk-t0rgmccj.js";
|
|
56
|
+
import"./chunk-key6jr7p.js";
|
|
57
|
+
import"./chunk-0m2861gw.js";
|
|
58
|
+
import"./chunk-0x9b2nmd.js";
|
|
59
|
+
import"./chunk-89e1v45e.js";
|
|
60
|
+
import"./chunk-2gzv8nrw.js";
|
|
61
|
+
import"./chunk-ehtwnxpg.js";
|
|
62
|
+
import"./chunk-3be7ka25.js";
|
|
63
|
+
import"./chunk-x679thag.js";
|
|
64
|
+
import"./chunk-cgfdkzhb.js";
|
|
65
|
+
import"./chunk-bhdt6k7w.js";
|
|
66
|
+
import"./chunk-45kxdsp8.js";
|
|
67
|
+
import"./chunk-5dbk24zg.js";
|
|
68
|
+
import"./chunk-msjfc5ba.js";
|
|
69
|
+
import"./chunk-7zsapntc.js";
|
|
70
|
+
import"./chunk-0rg6yrhy.js";
|
|
71
|
+
import"./chunk-9gbamk79.js";
|
|
72
|
+
import"./chunk-x0mwzt38.js";
|
|
73
|
+
import"./chunk-9e2kqv5g.js";
|
|
74
|
+
import"./chunk-1qakq4sn.js";
|
|
75
|
+
import"./chunk-s9mesaw0.js";
|
|
76
|
+
import"./chunk-7m2nd8da.js";
|
|
77
|
+
import"./chunk-ps49ymvj.js";
|
|
78
|
+
import"./chunk-g338npwr.js";
|
|
79
|
+
import"./chunk-zk2wsm7d.js";
|
|
80
|
+
import"./chunk-tw0q7ynt.js";
|
|
81
|
+
import"./chunk-xe9cc860.js";
|
|
82
|
+
import"./chunk-m06q12hg.js";
|
|
83
|
+
import"./chunk-ygbf0ezx.js";
|
|
84
|
+
import"./chunk-spqaamnc.js";
|
|
85
|
+
import"./chunk-4jm600zv.js";
|
|
86
|
+
import"./chunk-qz2x630m.js";
|
|
87
|
+
import"./chunk-7sb5axvf.js";
|
|
88
|
+
import"./chunk-v9smspw2.js";
|
|
89
|
+
import {
|
|
90
|
+
init_stringUtils,
|
|
91
|
+
plural
|
|
92
|
+
} from "./chunk-3f7rypmf.js";
|
|
93
|
+
import"./chunk-e3g8q4cn.js";
|
|
94
|
+
import"./chunk-ctw5jwcd.js";
|
|
95
|
+
import"./chunk-0e1xsncc.js";
|
|
96
|
+
import"./chunk-vratq94g.js";
|
|
97
|
+
import"./chunk-g0j0t6qk.js";
|
|
98
|
+
import"./chunk-6kpbgc5w.js";
|
|
99
|
+
import"./chunk-3c25bcsw.js";
|
|
100
|
+
import"./chunk-tjaqa99q.js";
|
|
101
|
+
import"./chunk-55wgxwa9.js";
|
|
102
|
+
import"./chunk-w2z5pqd3.js";
|
|
103
|
+
import"./chunk-7ymfj7m3.js";
|
|
104
|
+
import"./chunk-f5ma3nh5.js";
|
|
105
|
+
import"./chunk-v1kzp02e.js";
|
|
106
|
+
import"./chunk-1eapde8a.js";
|
|
107
|
+
import"./chunk-p2816w9z.js";
|
|
108
|
+
import"./chunk-0vkfrmqm.js";
|
|
109
|
+
import"./chunk-0xjaqda8.js";
|
|
110
|
+
import"./chunk-1rvz0433.js";
|
|
111
|
+
import"./chunk-cdz5yb0r.js";
|
|
112
|
+
import {
|
|
113
|
+
init_analytics,
|
|
114
|
+
logEvent
|
|
115
|
+
} from "./chunk-f2mhrmww.js";
|
|
116
|
+
import"./chunk-7z8j9qfn.js";
|
|
117
|
+
import"./chunk-hrzerbfw.js";
|
|
118
|
+
import"./chunk-d18z9pna.js";
|
|
119
|
+
import"./chunk-qnfx3qtx.js";
|
|
120
|
+
import"./chunk-hjhc4cpt.js";
|
|
121
|
+
import"./chunk-vyc0rjyx.js";
|
|
122
|
+
import {
|
|
123
|
+
figures_default,
|
|
124
|
+
init_figures
|
|
125
|
+
} from "./chunk-hx2tr4ep.js";
|
|
126
|
+
import {
|
|
127
|
+
init_log,
|
|
128
|
+
logError
|
|
129
|
+
} from "./chunk-p7g7pf3f.js";
|
|
130
|
+
import"./chunk-8tnsngw2.js";
|
|
131
|
+
import"./chunk-8bedvdm1.js";
|
|
132
|
+
import"./chunk-7wm5s02e.js";
|
|
133
|
+
import {
|
|
134
|
+
errorMessage,
|
|
135
|
+
init_errors,
|
|
136
|
+
init_slowOperations,
|
|
137
|
+
jsonStringify
|
|
138
|
+
} from "./chunk-nxsh6de2.js";
|
|
139
|
+
import"./chunk-fbv4apne.js";
|
|
140
|
+
import"./chunk-3r24h7t6.js";
|
|
141
|
+
import {
|
|
142
|
+
init_state,
|
|
143
|
+
setUseCoworkPlugins
|
|
144
|
+
} from "./chunk-qqfa0dqg.js";
|
|
145
|
+
import"./chunk-hqmz36b3.js";
|
|
146
|
+
import"./chunk-4g3v8y12.js";
|
|
147
|
+
import"./chunk-7739pg2c.js";
|
|
148
|
+
import"./chunk-xszk7n10.js";
|
|
149
|
+
import"./chunk-sdj9b9wh.js";
|
|
150
|
+
import {
|
|
151
|
+
__require
|
|
152
|
+
} from "./chunk-qp2qdcda.js";
|
|
153
|
+
|
|
154
|
+
// src/cli/handlers/plugins.ts
|
|
155
|
+
init_figures();
|
|
156
|
+
init_state();
|
|
157
|
+
init_analytics();
|
|
158
|
+
import { basename, dirname } from "path";
|
|
159
|
+
init_plugin();
|
|
160
|
+
init_errors();
|
|
161
|
+
init_log();
|
|
162
|
+
init_cacheUtils();
|
|
163
|
+
init_installCounts();
|
|
164
|
+
init_installedPluginsManager();
|
|
165
|
+
init_marketplaceHelpers();
|
|
166
|
+
init_marketplaceManager();
|
|
167
|
+
init_mcpPluginIntegration();
|
|
168
|
+
init_parseMarketplaceInput();
|
|
169
|
+
init_pluginIdentifier();
|
|
170
|
+
init_pluginLoader();
|
|
171
|
+
init_validatePlugin();
|
|
172
|
+
init_slowOperations();
|
|
173
|
+
init_stringUtils();
|
|
174
|
+
function handleMarketplaceError(error, action) {
|
|
175
|
+
logError(error);
|
|
176
|
+
cliError(`${figures_default.cross} Failed to ${action}: ${errorMessage(error)}`);
|
|
177
|
+
}
|
|
178
|
+
function printValidationResult(result) {
|
|
179
|
+
if (result.errors.length > 0) {
|
|
180
|
+
console.log(`${figures_default.cross} Found ${result.errors.length} ${plural(result.errors.length, "error")}:
|
|
181
|
+
`);
|
|
182
|
+
result.errors.forEach((error) => {
|
|
183
|
+
console.log(` ${figures_default.pointer} ${error.path}: ${error.message}`);
|
|
184
|
+
});
|
|
185
|
+
console.log("");
|
|
186
|
+
}
|
|
187
|
+
if (result.warnings.length > 0) {
|
|
188
|
+
console.log(`${figures_default.warning} Found ${result.warnings.length} ${plural(result.warnings.length, "warning")}:
|
|
189
|
+
`);
|
|
190
|
+
result.warnings.forEach((warning) => {
|
|
191
|
+
console.log(` ${figures_default.pointer} ${warning.path}: ${warning.message}`);
|
|
192
|
+
});
|
|
193
|
+
console.log("");
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
async function pluginValidateHandler(manifestPath, options) {
|
|
197
|
+
if (options.cowork)
|
|
198
|
+
setUseCoworkPlugins(true);
|
|
199
|
+
try {
|
|
200
|
+
const result = await validateManifest(manifestPath);
|
|
201
|
+
console.log(`Validating ${result.fileType} manifest: ${result.filePath}
|
|
202
|
+
`);
|
|
203
|
+
printValidationResult(result);
|
|
204
|
+
let contentResults = [];
|
|
205
|
+
if (result.fileType === "plugin") {
|
|
206
|
+
const manifestDir = dirname(result.filePath);
|
|
207
|
+
if (basename(manifestDir) === ".claude-plugin") {
|
|
208
|
+
contentResults = await validatePluginContents(dirname(manifestDir));
|
|
209
|
+
for (const r of contentResults) {
|
|
210
|
+
console.log(`Validating ${r.fileType}: ${r.filePath}
|
|
211
|
+
`);
|
|
212
|
+
printValidationResult(r);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const allSuccess = result.success && contentResults.every((r) => r.success);
|
|
217
|
+
const hasWarnings = result.warnings.length > 0 || contentResults.some((r) => r.warnings.length > 0);
|
|
218
|
+
if (allSuccess) {
|
|
219
|
+
cliOk(hasWarnings ? `${figures_default.tick} Validation passed with warnings` : `${figures_default.tick} Validation passed`);
|
|
220
|
+
} else {
|
|
221
|
+
console.log(`${figures_default.cross} Validation failed`);
|
|
222
|
+
process.exit(1);
|
|
223
|
+
}
|
|
224
|
+
} catch (error) {
|
|
225
|
+
logError(error);
|
|
226
|
+
console.error(`${figures_default.cross} Unexpected error during validation: ${errorMessage(error)}`);
|
|
227
|
+
process.exit(2);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
async function pluginListHandler(options) {
|
|
231
|
+
if (options.cowork)
|
|
232
|
+
setUseCoworkPlugins(true);
|
|
233
|
+
logEvent("tengu_plugin_list_command", {});
|
|
234
|
+
const installedData = loadInstalledPluginsV2();
|
|
235
|
+
const { getPluginEditableScopes } = await import("./chunk-x5pqsp9r.js");
|
|
236
|
+
const enabledPlugins = getPluginEditableScopes();
|
|
237
|
+
const pluginIds = Object.keys(installedData.plugins);
|
|
238
|
+
const {
|
|
239
|
+
enabled: loadedEnabled,
|
|
240
|
+
disabled: loadedDisabled,
|
|
241
|
+
errors: loadErrors
|
|
242
|
+
} = await loadAllPlugins();
|
|
243
|
+
const allLoadedPlugins = [...loadedEnabled, ...loadedDisabled];
|
|
244
|
+
const inlinePlugins = allLoadedPlugins.filter((p) => p.source.endsWith("@inline"));
|
|
245
|
+
const inlineLoadErrors = loadErrors.filter((e) => e.source.endsWith("@inline") || e.source.startsWith("inline["));
|
|
246
|
+
if (options.json) {
|
|
247
|
+
const loadedPluginMap = new Map(allLoadedPlugins.map((p) => [p.source, p]));
|
|
248
|
+
const plugins = [];
|
|
249
|
+
for (const pluginId of pluginIds.sort()) {
|
|
250
|
+
const installations = installedData.plugins[pluginId];
|
|
251
|
+
if (!installations || installations.length === 0)
|
|
252
|
+
continue;
|
|
253
|
+
const pluginName = parsePluginIdentifier(pluginId).name;
|
|
254
|
+
const pluginErrors = loadErrors.filter((e) => e.source === pluginId || ("plugin" in e) && e.plugin === pluginName).map(getPluginErrorMessage);
|
|
255
|
+
for (const installation of installations) {
|
|
256
|
+
const loadedPlugin = loadedPluginMap.get(pluginId);
|
|
257
|
+
let mcpServers;
|
|
258
|
+
if (loadedPlugin) {
|
|
259
|
+
const servers = loadedPlugin.mcpServers || await loadPluginMcpServers(loadedPlugin);
|
|
260
|
+
if (servers && Object.keys(servers).length > 0) {
|
|
261
|
+
mcpServers = servers;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
plugins.push({
|
|
265
|
+
id: pluginId,
|
|
266
|
+
version: installation.version || "unknown",
|
|
267
|
+
scope: installation.scope,
|
|
268
|
+
enabled: enabledPlugins.has(pluginId),
|
|
269
|
+
installPath: installation.installPath,
|
|
270
|
+
installedAt: installation.installedAt,
|
|
271
|
+
lastUpdated: installation.lastUpdated,
|
|
272
|
+
projectPath: installation.projectPath,
|
|
273
|
+
mcpServers,
|
|
274
|
+
errors: pluginErrors.length > 0 ? pluginErrors : undefined
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
for (const p of inlinePlugins) {
|
|
279
|
+
const servers = p.mcpServers || await loadPluginMcpServers(p);
|
|
280
|
+
const pErrors = inlineLoadErrors.filter((e) => e.source === p.source || ("plugin" in e) && e.plugin === p.name).map(getPluginErrorMessage);
|
|
281
|
+
plugins.push({
|
|
282
|
+
id: p.source,
|
|
283
|
+
version: p.manifest.version ?? "unknown",
|
|
284
|
+
scope: "session",
|
|
285
|
+
enabled: p.enabled !== false,
|
|
286
|
+
installPath: p.path,
|
|
287
|
+
mcpServers: servers && Object.keys(servers).length > 0 ? servers : undefined,
|
|
288
|
+
errors: pErrors.length > 0 ? pErrors : undefined
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
for (const e of inlineLoadErrors.filter((e2) => e2.source.startsWith("inline["))) {
|
|
292
|
+
plugins.push({
|
|
293
|
+
id: e.source,
|
|
294
|
+
version: "unknown",
|
|
295
|
+
scope: "session",
|
|
296
|
+
enabled: false,
|
|
297
|
+
installPath: "path" in e ? e.path : "",
|
|
298
|
+
errors: [getPluginErrorMessage(e)]
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
if (options.available) {
|
|
302
|
+
const available = [];
|
|
303
|
+
try {
|
|
304
|
+
const [config, installCounts] = await Promise.all([
|
|
305
|
+
loadKnownMarketplacesConfig(),
|
|
306
|
+
getInstallCounts()
|
|
307
|
+
]);
|
|
308
|
+
const { marketplaces } = await loadMarketplacesWithGracefulDegradation(config);
|
|
309
|
+
for (const {
|
|
310
|
+
name: marketplaceName,
|
|
311
|
+
data: marketplace
|
|
312
|
+
} of marketplaces) {
|
|
313
|
+
if (marketplace) {
|
|
314
|
+
for (const entry of marketplace.plugins) {
|
|
315
|
+
const pluginId = createPluginId(entry.name, marketplaceName);
|
|
316
|
+
if (!isPluginInstalled(pluginId)) {
|
|
317
|
+
available.push({
|
|
318
|
+
pluginId,
|
|
319
|
+
name: entry.name,
|
|
320
|
+
description: entry.description,
|
|
321
|
+
marketplaceName,
|
|
322
|
+
version: entry.version,
|
|
323
|
+
source: entry.source,
|
|
324
|
+
installCount: installCounts?.get(pluginId)
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
} catch {}
|
|
331
|
+
cliOk(jsonStringify({ installed: plugins, available }, null, 2));
|
|
332
|
+
} else {
|
|
333
|
+
cliOk(jsonStringify(plugins, null, 2));
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (pluginIds.length === 0 && inlinePlugins.length === 0) {
|
|
337
|
+
if (inlineLoadErrors.length === 0) {
|
|
338
|
+
cliOk("No plugins installed. Use `claude plugin install` to install a plugin.");
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (pluginIds.length > 0) {
|
|
342
|
+
console.log(`Installed plugins:
|
|
343
|
+
`);
|
|
344
|
+
}
|
|
345
|
+
for (const pluginId of pluginIds.sort()) {
|
|
346
|
+
const installations = installedData.plugins[pluginId];
|
|
347
|
+
if (!installations || installations.length === 0)
|
|
348
|
+
continue;
|
|
349
|
+
const pluginName = parsePluginIdentifier(pluginId).name;
|
|
350
|
+
const pluginErrors = loadErrors.filter((e) => e.source === pluginId || ("plugin" in e) && e.plugin === pluginName);
|
|
351
|
+
for (const installation of installations) {
|
|
352
|
+
const isEnabled = enabledPlugins.has(pluginId);
|
|
353
|
+
const status = pluginErrors.length > 0 ? `${figures_default.cross} failed to load` : isEnabled ? `${figures_default.tick} enabled` : `${figures_default.cross} disabled`;
|
|
354
|
+
const version = installation.version || "unknown";
|
|
355
|
+
const scope = installation.scope;
|
|
356
|
+
console.log(` ${figures_default.pointer} ${pluginId}`);
|
|
357
|
+
console.log(` Version: ${version}`);
|
|
358
|
+
console.log(` Scope: ${scope}`);
|
|
359
|
+
console.log(` Status: ${status}`);
|
|
360
|
+
for (const error of pluginErrors) {
|
|
361
|
+
console.log(` Error: ${getPluginErrorMessage(error)}`);
|
|
362
|
+
}
|
|
363
|
+
console.log("");
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (inlinePlugins.length > 0 || inlineLoadErrors.length > 0) {
|
|
367
|
+
console.log(`Session-only plugins (--plugin-dir):
|
|
368
|
+
`);
|
|
369
|
+
for (const p of inlinePlugins) {
|
|
370
|
+
const pErrors = inlineLoadErrors.filter((e) => e.source === p.source || ("plugin" in e) && e.plugin === p.name);
|
|
371
|
+
const status = pErrors.length > 0 ? `${figures_default.cross} loaded with errors` : `${figures_default.tick} loaded`;
|
|
372
|
+
console.log(` ${figures_default.pointer} ${p.source}`);
|
|
373
|
+
console.log(` Version: ${p.manifest.version ?? "unknown"}`);
|
|
374
|
+
console.log(` Path: ${p.path}`);
|
|
375
|
+
console.log(` Status: ${status}`);
|
|
376
|
+
for (const e of pErrors) {
|
|
377
|
+
console.log(` Error: ${getPluginErrorMessage(e)}`);
|
|
378
|
+
}
|
|
379
|
+
console.log("");
|
|
380
|
+
}
|
|
381
|
+
for (const e of inlineLoadErrors.filter((e2) => e2.source.startsWith("inline["))) {
|
|
382
|
+
console.log(` ${figures_default.pointer} ${e.source}: ${figures_default.cross} ${getPluginErrorMessage(e)}
|
|
383
|
+
`);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
cliOk();
|
|
387
|
+
}
|
|
388
|
+
async function marketplaceAddHandler(source, options) {
|
|
389
|
+
if (options.cowork)
|
|
390
|
+
setUseCoworkPlugins(true);
|
|
391
|
+
try {
|
|
392
|
+
const parsed = await parseMarketplaceInput(source);
|
|
393
|
+
if (!parsed) {
|
|
394
|
+
cliError(`${figures_default.cross} Invalid marketplace source format. Try: owner/repo, https://..., or ./path`);
|
|
395
|
+
}
|
|
396
|
+
if ("error" in parsed) {
|
|
397
|
+
cliError(`${figures_default.cross} ${parsed.error}`);
|
|
398
|
+
}
|
|
399
|
+
const scope = options.scope ?? "user";
|
|
400
|
+
if (scope !== "user" && scope !== "project" && scope !== "local") {
|
|
401
|
+
cliError(`${figures_default.cross} Invalid scope '${scope}'. Use: user, project, or local`);
|
|
402
|
+
}
|
|
403
|
+
const settingSource = scopeToSettingSource(scope);
|
|
404
|
+
let marketplaceSource = parsed;
|
|
405
|
+
if (options.sparse && options.sparse.length > 0) {
|
|
406
|
+
if (marketplaceSource.source === "github" || marketplaceSource.source === "git") {
|
|
407
|
+
marketplaceSource = {
|
|
408
|
+
...marketplaceSource,
|
|
409
|
+
sparsePaths: options.sparse
|
|
410
|
+
};
|
|
411
|
+
} else {
|
|
412
|
+
cliError(`${figures_default.cross} --sparse is only supported for github and git marketplace sources (got: ${marketplaceSource.source})`);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
console.log("Adding marketplace...");
|
|
416
|
+
const { name, alreadyMaterialized, resolvedSource } = await addMarketplaceSource(marketplaceSource, (message) => {
|
|
417
|
+
console.log(message);
|
|
418
|
+
});
|
|
419
|
+
saveMarketplaceToSettings(name, { source: resolvedSource }, settingSource);
|
|
420
|
+
clearAllCaches();
|
|
421
|
+
let sourceType = marketplaceSource.source;
|
|
422
|
+
if (marketplaceSource.source === "github") {
|
|
423
|
+
sourceType = marketplaceSource.repo;
|
|
424
|
+
}
|
|
425
|
+
logEvent("tengu_marketplace_added", {
|
|
426
|
+
source_type: sourceType
|
|
427
|
+
});
|
|
428
|
+
cliOk(alreadyMaterialized ? `${figures_default.tick} Marketplace '${name}' already on disk \u2014 declared in ${scope} settings` : `${figures_default.tick} Successfully added marketplace: ${name} (declared in ${scope} settings)`);
|
|
429
|
+
} catch (error) {
|
|
430
|
+
handleMarketplaceError(error, "add marketplace");
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
async function marketplaceListHandler(options) {
|
|
434
|
+
if (options.cowork)
|
|
435
|
+
setUseCoworkPlugins(true);
|
|
436
|
+
try {
|
|
437
|
+
const config = await loadKnownMarketplacesConfig();
|
|
438
|
+
const names = Object.keys(config);
|
|
439
|
+
if (options.json) {
|
|
440
|
+
const marketplaces = names.sort().map((name) => {
|
|
441
|
+
const marketplace = config[name];
|
|
442
|
+
const source = marketplace?.source;
|
|
443
|
+
return {
|
|
444
|
+
name,
|
|
445
|
+
source: source?.source,
|
|
446
|
+
...source?.source === "github" && { repo: source.repo },
|
|
447
|
+
...source?.source === "git" && { url: source.url },
|
|
448
|
+
...source?.source === "url" && { url: source.url },
|
|
449
|
+
...source?.source === "directory" && { path: source.path },
|
|
450
|
+
...source?.source === "file" && { path: source.path },
|
|
451
|
+
installLocation: marketplace?.installLocation
|
|
452
|
+
};
|
|
453
|
+
});
|
|
454
|
+
cliOk(jsonStringify(marketplaces, null, 2));
|
|
455
|
+
}
|
|
456
|
+
if (names.length === 0) {
|
|
457
|
+
cliOk("No marketplaces configured");
|
|
458
|
+
}
|
|
459
|
+
console.log(`Configured marketplaces:
|
|
460
|
+
`);
|
|
461
|
+
names.forEach((name) => {
|
|
462
|
+
const marketplace = config[name];
|
|
463
|
+
console.log(` ${figures_default.pointer} ${name}`);
|
|
464
|
+
if (marketplace?.source) {
|
|
465
|
+
const src = marketplace.source;
|
|
466
|
+
if (src.source === "github") {
|
|
467
|
+
console.log(` Source: GitHub (${src.repo})`);
|
|
468
|
+
} else if (src.source === "git") {
|
|
469
|
+
console.log(` Source: Git (${src.url})`);
|
|
470
|
+
} else if (src.source === "url") {
|
|
471
|
+
console.log(` Source: URL (${src.url})`);
|
|
472
|
+
} else if (src.source === "directory") {
|
|
473
|
+
console.log(` Source: Directory (${src.path})`);
|
|
474
|
+
} else if (src.source === "file") {
|
|
475
|
+
console.log(` Source: File (${src.path})`);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
console.log("");
|
|
479
|
+
});
|
|
480
|
+
cliOk();
|
|
481
|
+
} catch (error) {
|
|
482
|
+
handleMarketplaceError(error, "list marketplaces");
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
async function marketplaceRemoveHandler(name, options) {
|
|
486
|
+
if (options.cowork)
|
|
487
|
+
setUseCoworkPlugins(true);
|
|
488
|
+
try {
|
|
489
|
+
await removeMarketplaceSource(name);
|
|
490
|
+
clearAllCaches();
|
|
491
|
+
logEvent("tengu_marketplace_removed", {
|
|
492
|
+
marketplace_name: name
|
|
493
|
+
});
|
|
494
|
+
cliOk(`${figures_default.tick} Successfully removed marketplace: ${name}`);
|
|
495
|
+
} catch (error) {
|
|
496
|
+
handleMarketplaceError(error, "remove marketplace");
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
async function marketplaceUpdateHandler(name, options) {
|
|
500
|
+
if (options.cowork)
|
|
501
|
+
setUseCoworkPlugins(true);
|
|
502
|
+
try {
|
|
503
|
+
if (name) {
|
|
504
|
+
console.log(`Updating marketplace: ${name}...`);
|
|
505
|
+
await refreshMarketplace(name, (message) => {
|
|
506
|
+
console.log(message);
|
|
507
|
+
});
|
|
508
|
+
clearAllCaches();
|
|
509
|
+
logEvent("tengu_marketplace_updated", {
|
|
510
|
+
marketplace_name: name
|
|
511
|
+
});
|
|
512
|
+
cliOk(`${figures_default.tick} Successfully updated marketplace: ${name}`);
|
|
513
|
+
} else {
|
|
514
|
+
const config = await loadKnownMarketplacesConfig();
|
|
515
|
+
const marketplaceNames = Object.keys(config);
|
|
516
|
+
if (marketplaceNames.length === 0) {
|
|
517
|
+
cliOk("No marketplaces configured");
|
|
518
|
+
}
|
|
519
|
+
console.log(`Updating ${marketplaceNames.length} marketplace(s)...`);
|
|
520
|
+
await refreshAllMarketplaces();
|
|
521
|
+
clearAllCaches();
|
|
522
|
+
logEvent("tengu_marketplace_updated_all", {
|
|
523
|
+
count: marketplaceNames.length
|
|
524
|
+
});
|
|
525
|
+
cliOk(`${figures_default.tick} Successfully updated ${marketplaceNames.length} marketplace(s)`);
|
|
526
|
+
}
|
|
527
|
+
} catch (error) {
|
|
528
|
+
handleMarketplaceError(error, "update marketplace(s)");
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
async function pluginInstallHandler(plugin, options) {
|
|
532
|
+
if (options.cowork)
|
|
533
|
+
setUseCoworkPlugins(true);
|
|
534
|
+
const scope = options.scope || "user";
|
|
535
|
+
if (options.cowork && scope !== "user") {
|
|
536
|
+
cliError("--cowork can only be used with user scope");
|
|
537
|
+
}
|
|
538
|
+
if (!VALID_INSTALLABLE_SCOPES.includes(scope)) {
|
|
539
|
+
cliError(`Invalid scope: ${scope}. Must be one of: ${VALID_INSTALLABLE_SCOPES.join(", ")}.`);
|
|
540
|
+
}
|
|
541
|
+
const { name, marketplace } = parsePluginIdentifier(plugin);
|
|
542
|
+
logEvent("tengu_plugin_install_command", {
|
|
543
|
+
_PROTO_plugin_name: name,
|
|
544
|
+
...marketplace && {
|
|
545
|
+
_PROTO_marketplace_name: marketplace
|
|
546
|
+
},
|
|
547
|
+
scope
|
|
548
|
+
});
|
|
549
|
+
await installPlugin(plugin, scope);
|
|
550
|
+
}
|
|
551
|
+
async function pluginUninstallHandler(plugin, options) {
|
|
552
|
+
if (options.cowork)
|
|
553
|
+
setUseCoworkPlugins(true);
|
|
554
|
+
const scope = options.scope || "user";
|
|
555
|
+
if (options.cowork && scope !== "user") {
|
|
556
|
+
cliError("--cowork can only be used with user scope");
|
|
557
|
+
}
|
|
558
|
+
if (!VALID_INSTALLABLE_SCOPES.includes(scope)) {
|
|
559
|
+
cliError(`Invalid scope: ${scope}. Must be one of: ${VALID_INSTALLABLE_SCOPES.join(", ")}.`);
|
|
560
|
+
}
|
|
561
|
+
const { name, marketplace } = parsePluginIdentifier(plugin);
|
|
562
|
+
logEvent("tengu_plugin_uninstall_command", {
|
|
563
|
+
_PROTO_plugin_name: name,
|
|
564
|
+
...marketplace && {
|
|
565
|
+
_PROTO_marketplace_name: marketplace
|
|
566
|
+
},
|
|
567
|
+
scope
|
|
568
|
+
});
|
|
569
|
+
await uninstallPlugin(plugin, scope, options.keepData);
|
|
570
|
+
}
|
|
571
|
+
async function pluginEnableHandler(plugin, options) {
|
|
572
|
+
if (options.cowork)
|
|
573
|
+
setUseCoworkPlugins(true);
|
|
574
|
+
let scope;
|
|
575
|
+
if (options.scope) {
|
|
576
|
+
if (!VALID_INSTALLABLE_SCOPES.includes(options.scope)) {
|
|
577
|
+
cliError(`Invalid scope "${options.scope}". Valid scopes: ${VALID_INSTALLABLE_SCOPES.join(", ")}`);
|
|
578
|
+
}
|
|
579
|
+
scope = options.scope;
|
|
580
|
+
}
|
|
581
|
+
if (options.cowork && scope !== undefined && scope !== "user") {
|
|
582
|
+
cliError("--cowork can only be used with user scope");
|
|
583
|
+
}
|
|
584
|
+
if (options.cowork && scope === undefined) {
|
|
585
|
+
scope = "user";
|
|
586
|
+
}
|
|
587
|
+
const { name, marketplace } = parsePluginIdentifier(plugin);
|
|
588
|
+
logEvent("tengu_plugin_enable_command", {
|
|
589
|
+
_PROTO_plugin_name: name,
|
|
590
|
+
...marketplace && {
|
|
591
|
+
_PROTO_marketplace_name: marketplace
|
|
592
|
+
},
|
|
593
|
+
scope: scope ?? "auto"
|
|
594
|
+
});
|
|
595
|
+
await enablePlugin(plugin, scope);
|
|
596
|
+
}
|
|
597
|
+
async function pluginDisableHandler(plugin, options) {
|
|
598
|
+
if (options.all && plugin) {
|
|
599
|
+
cliError("Cannot use --all with a specific plugin");
|
|
600
|
+
}
|
|
601
|
+
if (!options.all && !plugin) {
|
|
602
|
+
cliError("Please specify a plugin name or use --all to disable all plugins");
|
|
603
|
+
}
|
|
604
|
+
if (options.cowork)
|
|
605
|
+
setUseCoworkPlugins(true);
|
|
606
|
+
if (options.all) {
|
|
607
|
+
if (options.scope) {
|
|
608
|
+
cliError("Cannot use --scope with --all");
|
|
609
|
+
}
|
|
610
|
+
logEvent("tengu_plugin_disable_command", {});
|
|
611
|
+
await disableAllPlugins();
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
let scope;
|
|
615
|
+
if (options.scope) {
|
|
616
|
+
if (!VALID_INSTALLABLE_SCOPES.includes(options.scope)) {
|
|
617
|
+
cliError(`Invalid scope "${options.scope}". Valid scopes: ${VALID_INSTALLABLE_SCOPES.join(", ")}`);
|
|
618
|
+
}
|
|
619
|
+
scope = options.scope;
|
|
620
|
+
}
|
|
621
|
+
if (options.cowork && scope !== undefined && scope !== "user") {
|
|
622
|
+
cliError("--cowork can only be used with user scope");
|
|
623
|
+
}
|
|
624
|
+
if (options.cowork && scope === undefined) {
|
|
625
|
+
scope = "user";
|
|
626
|
+
}
|
|
627
|
+
const { name, marketplace } = parsePluginIdentifier(plugin);
|
|
628
|
+
logEvent("tengu_plugin_disable_command", {
|
|
629
|
+
_PROTO_plugin_name: name,
|
|
630
|
+
...marketplace && {
|
|
631
|
+
_PROTO_marketplace_name: marketplace
|
|
632
|
+
},
|
|
633
|
+
scope: scope ?? "auto"
|
|
634
|
+
});
|
|
635
|
+
await disablePlugin(plugin, scope);
|
|
636
|
+
}
|
|
637
|
+
async function pluginUpdateHandler(plugin, options) {
|
|
638
|
+
if (options.cowork)
|
|
639
|
+
setUseCoworkPlugins(true);
|
|
640
|
+
const { name, marketplace } = parsePluginIdentifier(plugin);
|
|
641
|
+
logEvent("tengu_plugin_update_command", {
|
|
642
|
+
_PROTO_plugin_name: name,
|
|
643
|
+
...marketplace && {
|
|
644
|
+
_PROTO_marketplace_name: marketplace
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
let scope = "user";
|
|
648
|
+
if (options.scope) {
|
|
649
|
+
if (!VALID_UPDATE_SCOPES.includes(options.scope)) {
|
|
650
|
+
cliError(`Invalid scope "${options.scope}". Valid scopes: ${VALID_UPDATE_SCOPES.join(", ")}`);
|
|
651
|
+
}
|
|
652
|
+
scope = options.scope;
|
|
653
|
+
}
|
|
654
|
+
if (options.cowork && scope !== "user") {
|
|
655
|
+
cliError("--cowork can only be used with user scope");
|
|
656
|
+
}
|
|
657
|
+
await updatePluginCli(plugin, scope);
|
|
658
|
+
}
|
|
659
|
+
export {
|
|
660
|
+
pluginValidateHandler,
|
|
661
|
+
pluginUpdateHandler,
|
|
662
|
+
pluginUninstallHandler,
|
|
663
|
+
pluginListHandler,
|
|
664
|
+
pluginInstallHandler,
|
|
665
|
+
pluginEnableHandler,
|
|
666
|
+
pluginDisableHandler,
|
|
667
|
+
marketplaceUpdateHandler,
|
|
668
|
+
marketplaceRemoveHandler,
|
|
669
|
+
marketplaceListHandler,
|
|
670
|
+
marketplaceAddHandler,
|
|
671
|
+
handleMarketplaceError,
|
|
672
|
+
VALID_UPDATE_SCOPES,
|
|
673
|
+
VALID_INSTALLABLE_SCOPES
|
|
674
|
+
};
|