@zyycn/claudex 1.0.3-fork.3767904
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/LICENSE.md +5 -0
- package/README.md +468 -0
- package/bin/claudex.js +40 -0
- package/dist/chunk-028383m5.js +654 -0
- package/dist/chunk-03metnxx.js +83 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0b8kwsg7.js +1322 -0
- package/dist/chunk-0ef5aqfn.js +266 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0q2xkmse.js +58 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-0xkvxzm1.js +788 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-16egjxjg.js +606 -0
- package/dist/chunk-197ypc6t.js +281 -0
- package/dist/chunk-1bznajh9.js +87 -0
- package/dist/chunk-1c04yf47.js +98 -0
- package/dist/chunk-1cbn5kxf.js +7 -0
- package/dist/chunk-1ed0q5rg.js +825 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1pq0cspt.js +5393 -0
- package/dist/chunk-1vsjpj70.js +584 -0
- package/dist/chunk-1xkekb9y.js +19 -0
- package/dist/chunk-1zmd9pc1.js +98 -0
- package/dist/chunk-21tvhhzh.js +470 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-27xc1csx.js +104 -0
- package/dist/chunk-28eznw6x.js +266 -0
- package/dist/chunk-29pq2e6e.js +162 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2degyn49.js +696 -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-2nhwtayn.js +285 -0
- package/dist/chunk-2pfz17d6.js +89 -0
- package/dist/chunk-2q98zgr7.js +120 -0
- package/dist/chunk-2r6p51j7.js +40 -0
- package/dist/chunk-2t3vw4tx.js +22820 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-34c7ey17.js +155 -0
- package/dist/chunk-34sv2j2s.js +690 -0
- package/dist/chunk-37jrk2jd.js +117 -0
- package/dist/chunk-38700exh.js +42 -0
- package/dist/chunk-38qkmq6a.js +274 -0
- package/dist/chunk-3b00105q.js +17 -0
- package/dist/chunk-3b6pmmxx.js +195 -0
- package/dist/chunk-3bbk64vc.js +8966 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3cdajpj8.js +90 -0
- package/dist/chunk-3cr1nha2.js +198 -0
- package/dist/chunk-3d9rvrf3.js +103 -0
- package/dist/chunk-3dzknnm6.js +38 -0
- package/dist/chunk-3es29zn5.js +105 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3pfbtkm1.js +105 -0
- package/dist/chunk-3pka9vsd.js +129 -0
- package/dist/chunk-3raf9w1p.js +115 -0
- package/dist/chunk-3vs3nm7w.js +31 -0
- package/dist/chunk-3w31rhxj.js +98 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-3ze6jmfd.js +74 -0
- package/dist/chunk-40er4qb4.js +202 -0
- package/dist/chunk-40nmwkst.js +2838 -0
- package/dist/chunk-42ytstxy.js +109 -0
- package/dist/chunk-44fpr6jq.js +434 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-49eehs1a.js +165 -0
- package/dist/chunk-4bfhat6k.js +89 -0
- package/dist/chunk-4cfef3e8.js +602 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4n6x67m0.js +88 -0
- package/dist/chunk-4qz9vbs1.js +349 -0
- package/dist/chunk-4r4hb7td.js +564 -0
- package/dist/chunk-4tabtkpc.js +496 -0
- package/dist/chunk-4yd15ach.js +84 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-50kxdgx6.js +255 -0
- package/dist/chunk-55wgxwa9.js +13877 -0
- package/dist/chunk-56jgazae.js +28 -0
- package/dist/chunk-56xwtm1c.js +229 -0
- package/dist/chunk-5nvye4tw.js +69 -0
- package/dist/chunk-5qe9gb40.js +99 -0
- package/dist/chunk-5vx14htd.js +87 -0
- package/dist/chunk-5y1tah98.js +756 -0
- package/dist/chunk-64wxa5zw.js +810 -0
- package/dist/chunk-65s8h28p.js +123 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6dec7yq0.js +79 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6ghjp8m8.js +87 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6n2qgm9v.js +8 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-6v4a0yqc.js +299 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-7956bsy7.js +85 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7e6ahfxz.js +61 -0
- package/dist/chunk-7en5fc51.js +263 -0
- package/dist/chunk-7gf30dzb.js +184 -0
- package/dist/chunk-7kpp8d5g.js +644 -0
- package/dist/chunk-7m2nd8da.js +110 -0
- package/dist/chunk-7wb627p2.js +418 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7x9kyp5a.js +780 -0
- package/dist/chunk-7zaxrfnt.js +42 -0
- package/dist/chunk-808756xy.js +348 -0
- package/dist/chunk-819jqhcr.js +192 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-83myqqga.js +642 -0
- package/dist/chunk-84xggq3w.js +713 -0
- package/dist/chunk-85n4mydq.js +100 -0
- package/dist/chunk-86czeeyf.js +38 -0
- package/dist/chunk-8aww16wk.js +26840 -0
- package/dist/chunk-8bedvdm1.js +32 -0
- package/dist/chunk-8hq5kk3y.js +44 -0
- package/dist/chunk-8jmc7234.js +3198 -0
- package/dist/chunk-8jq1r68j.js +5946 -0
- package/dist/chunk-8mtb0zzs.js +40 -0
- package/dist/chunk-8qm7hxn7.js +27 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8y0qvap3.js +333 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90c8d4yc.js +1549 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-97q4f0d5.js +160 -0
- package/dist/chunk-9gbamk79.js +93 -0
- package/dist/chunk-9k2drwej.js +106 -0
- package/dist/chunk-9nta4x35.js +726 -0
- package/dist/chunk-9v90tzwk.js +175 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a8fvd2bk.js +224 -0
- package/dist/chunk-a8pyxxmz.js +374 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-abmaztjr.js +157 -0
- package/dist/chunk-actwcnvp.js +69 -0
- package/dist/chunk-acy41n63.js +339 -0
- package/dist/chunk-ah8ppcb2.js +176 -0
- package/dist/chunk-aj276jn4.js +95 -0
- package/dist/chunk-ajs4f0bc.js +4521 -0
- package/dist/chunk-as7vh4kb.js +140 -0
- package/dist/chunk-atjpyqps.js +250 -0
- package/dist/chunk-azzv8k3w.js +724 -0
- package/dist/chunk-b2k6rctr.js +225 -0
- package/dist/chunk-b3e5kx55.js +602 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b5x836wt.js +114 -0
- package/dist/chunk-b75fzr8e.js +969 -0
- package/dist/chunk-b8m6vy4x.js +86 -0
- package/dist/chunk-b8x1gk3y.js +1299 -0
- package/dist/chunk-bjqw6798.js +328 -0
- package/dist/chunk-bm1qb16p.js +17 -0
- package/dist/chunk-bpkdecb4.js +267 -0
- package/dist/chunk-bqfnp99q.js +477 -0
- package/dist/chunk-bvp4dgm4.js +182 -0
- package/dist/chunk-bwwtzjsw.js +28 -0
- package/dist/chunk-by7f0myv.js +91 -0
- package/dist/chunk-by9nr4w6.js +442 -0
- package/dist/chunk-c2nsc73g.js +1579 -0
- package/dist/chunk-c5dc5tw8.js +275 -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-cjxa22k7.js +438 -0
- package/dist/chunk-crkef7n3.js +10476 -0
- package/dist/chunk-cssdmv6r.js +127 -0
- package/dist/chunk-d69y9a95.js +1316 -0
- package/dist/chunk-d6qpsqd1.js +91 -0
- package/dist/chunk-d6rxfmhy.js +4389 -0
- package/dist/chunk-d88jf4t3.js +525 -0
- package/dist/chunk-d8ksq0y0.js +26 -0
- package/dist/chunk-d9kz373t.js +122 -0
- package/dist/chunk-ddk0ak7r.js +63 -0
- package/dist/chunk-ddqs9xnj.js +173 -0
- package/dist/chunk-detc4mva.js +99 -0
- package/dist/chunk-dfg36kvt.js +691 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dhd6zm3z.js +1095 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dq9afpqh.js +432 -0
- package/dist/chunk-dqqfd54g.js +672 -0
- package/dist/chunk-dstxhxsx.js +121 -0
- package/dist/chunk-dv1wfr85.js +6373 -0
- package/dist/chunk-dw5yr66c.js +109 -0
- package/dist/chunk-dx6pnab5.js +56 -0
- package/dist/chunk-dz5j8gp2.js +66 -0
- package/dist/chunk-e5pntxye.js +37 -0
- package/dist/chunk-ec2tspnc.js +253 -0
- package/dist/chunk-eebcvtbb.js +1646 -0
- package/dist/chunk-egentr97.js +328 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-en4dwrtx.js +674 -0
- package/dist/chunk-enjbm16s.js +212 -0
- package/dist/chunk-epf7hfx9.js +130 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-er596fa7.js +246 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-ey1kf1m1.js +96 -0
- package/dist/chunk-f2xj33w0.js +59 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-f8vjkfqy.js +169 -0
- package/dist/chunk-fbpftpf0.js +69 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fka484jr.js +142 -0
- package/dist/chunk-fmkhaba7.js +1585 -0
- package/dist/chunk-fny8kwbq.js +88 -0
- package/dist/chunk-fvjqz54k.js +297 -0
- package/dist/chunk-fxdk70se.js +457 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-fytfjpnf.js +400 -0
- package/dist/chunk-fz99t69n.js +152 -0
- package/dist/chunk-g0j0t6qk.js +26 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g3t0act8.js +8 -0
- package/dist/chunk-g5xn13xx.js +143 -0
- package/dist/chunk-gc1s3jhh.js +40767 -0
- package/dist/chunk-gd397pcz.js +54 -0
- package/dist/chunk-gee88a3c.js +2642 -0
- package/dist/chunk-gmwkf29y.js +372 -0
- package/dist/chunk-gsxnne70.js +6106 -0
- package/dist/chunk-gv0tqhg0.js +118 -0
- package/dist/chunk-gx25wmv5.js +71 -0
- package/dist/chunk-gyj242zr.js +20 -0
- package/dist/chunk-gzzfhtdv.js +7189 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h0rbjg6x.js +55 -0
- package/dist/chunk-h0xeqdrp.js +258 -0
- package/dist/chunk-h5f90qy3.js +220 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hamj71dy.js +40 -0
- package/dist/chunk-hbrqcjwt.js +2334 -0
- package/dist/chunk-heg1nmw6.js +16 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hhxj3n5k.js +153 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hmxkx429.js +108 -0
- package/dist/chunk-hq6y1jbc.js +89 -0
- package/dist/chunk-hqmz36b3.js +552 -0
- package/dist/chunk-hrqdc2z6.js +208 -0
- package/dist/chunk-hzhe8ygc.js +547 -0
- package/dist/chunk-j0xd989k.js +655 -0
- package/dist/chunk-j2k4p94p.js +55 -0
- package/dist/chunk-j3a4p81y.js +184 -0
- package/dist/chunk-j5hc27hv.js +444 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-janw82mh.js +1864 -0
- package/dist/chunk-jce5r25x.js +18 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jgpqexxb.js +83 -0
- package/dist/chunk-jja22ke5.js +81 -0
- package/dist/chunk-jm91zc2r.js +102 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jrhwm6kh.js +1556 -0
- package/dist/chunk-jttemgp6.js +532 -0
- package/dist/chunk-jtx453jx.js +281 -0
- package/dist/chunk-jwft70vy.js +476 -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-k0ymf9zj.js +113 -0
- package/dist/chunk-k1tve81h.js +345 -0
- package/dist/chunk-k2bkmhp4.js +385 -0
- package/dist/chunk-k2qkkhf9.js +463 -0
- package/dist/chunk-k542zrk6.js +88 -0
- package/dist/chunk-kez03ppq.js +490 -0
- package/dist/chunk-kgmzdyrz.js +242 -0
- package/dist/chunk-khs0jvy0.js +216 -0
- package/dist/chunk-kr244txf.js +306 -0
- package/dist/chunk-ksawj46w.js +536 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-kz6f106c.js +6956 -0
- package/dist/chunk-kzmfv2aw.js +745 -0
- package/dist/chunk-m26pp852.js +87 -0
- package/dist/chunk-m4pma84k.js +2057 -0
- package/dist/chunk-mfp30vsr.js +458 -0
- package/dist/chunk-mjn6p2km.js +92 -0
- package/dist/chunk-mk6tjz0j.js +469 -0
- package/dist/chunk-mqcwefg3.js +105 -0
- package/dist/chunk-mqm3kg01.js +61 -0
- package/dist/chunk-mt25echc.js +6157 -0
- package/dist/chunk-mw9ve19d.js +277 -0
- package/dist/chunk-mxt2wn9a.js +131 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n154ybpk.js +1919 -0
- package/dist/chunk-n2ktrmm8.js +62 -0
- package/dist/chunk-n59gj2nk.js +438 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-nb9z2xs5.js +128 -0
- package/dist/chunk-nh8ssb02.js +88 -0
- package/dist/chunk-nj17bhkh.js +125 -0
- package/dist/chunk-njmw3yt4.js +173564 -0
- package/dist/chunk-njwzgb7j.js +61 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nwsmn6zm.js +15 -0
- package/dist/chunk-nx4e896a.js +208 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p331ghzg.js +391 -0
- package/dist/chunk-p4qrpz5a.js +99 -0
- package/dist/chunk-p8syd69s.js +47 -0
- package/dist/chunk-pdyq9kvn.js +83 -0
- package/dist/chunk-pkb4qnmq.js +1391 -0
- package/dist/chunk-pkcx8qa3.js +154 -0
- package/dist/chunk-pmsp9ed2.js +34 -0
- package/dist/chunk-pnmh6v4t.js +373 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-pxy618ae.js +714 -0
- package/dist/chunk-py5y9jh1.js +38 -0
- package/dist/chunk-pzz93fck.js +173 -0
- package/dist/chunk-q25bjaev.js +15 -0
- package/dist/chunk-q756tpn6.js +765 -0
- package/dist/chunk-qbt1tq74.js +145 -0
- package/dist/chunk-qkkj0em0.js +104 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qpkxg63w.js +160 -0
- package/dist/chunk-qqfa0dqg.js +2343 -0
- package/dist/chunk-qsd1r4pm.js +9300 -0
- package/dist/chunk-qseetcxd.js +908 -0
- package/dist/chunk-qvt2hjv0.js +849 -0
- package/dist/chunk-qxdv72g8.js +93 -0
- package/dist/chunk-qy0vwqgp.js +194 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-qzqagb7y.js +87 -0
- package/dist/chunk-r14xvkat.js +641 -0
- package/dist/chunk-r6b58y3x.js +17 -0
- package/dist/chunk-r6z6t5wr.js +97 -0
- package/dist/chunk-r855fz3z.js +41 -0
- package/dist/chunk-raqgs410.js +116 -0
- package/dist/chunk-rd5rdsdz.js +95 -0
- package/dist/chunk-renve22b.js +524 -0
- package/dist/chunk-res7qrc9.js +820 -0
- package/dist/chunk-rk7ns7gp.js +220 -0
- package/dist/chunk-rm0q8bwx.js +271 -0
- package/dist/chunk-rm56f6q8.js +41 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rrxeqt07.js +73 -0
- package/dist/chunk-rvgeep5b.js +117 -0
- package/dist/chunk-rx4c84ah.js +86 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s5vqcxp0.js +54 -0
- package/dist/chunk-s88vzmek.js +542 -0
- package/dist/chunk-sazb7y67.js +279 -0
- package/dist/chunk-sbbj6ta3.js +1711 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-sdj9b9wh.js +782 -0
- package/dist/chunk-shb6nvk6.js +27 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0rgmccj.js +39 -0
- package/dist/chunk-t1jh3jk8.js +3036 -0
- package/dist/chunk-t3360k46.js +75 -0
- package/dist/chunk-t3h6pwp3.js +112 -0
- package/dist/chunk-t5ymtx9c.js +1493 -0
- package/dist/chunk-t6p76a55.js +120 -0
- package/dist/chunk-t7fdh24y.js +648 -0
- package/dist/chunk-texzbcna.js +716 -0
- package/dist/chunk-tjw7n4me.js +21933 -0
- package/dist/chunk-tjyhp966.js +24 -0
- package/dist/chunk-tnd5xbeh.js +802 -0
- package/dist/chunk-trfa7dbr.js +998 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-tssr3fyd.js +287 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tvhjre1h.js +316 -0
- package/dist/chunk-txndc2j2.js +70 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v2pc6h28.js +32 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v90xv5n9.js +157 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vhjx5fag.js +56 -0
- package/dist/chunk-vjtbtamj.js +165 -0
- package/dist/chunk-vkkay00s.js +229 -0
- package/dist/chunk-vqc05a0b.js +121 -0
- package/dist/chunk-vqk1n5qr.js +63 -0
- package/dist/chunk-vqvd3qz0.js +151 -0
- package/dist/chunk-vtp96y1a.js +90 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vz6s9tzt.js +43 -0
- package/dist/chunk-w3agqtpz.js +42 -0
- package/dist/chunk-w3dz905t.js +22 -0
- package/dist/chunk-w8yw30sd.js +15 -0
- package/dist/chunk-wa6b7bv9.js +467 -0
- package/dist/chunk-wb36q47x.js +128 -0
- package/dist/chunk-wbnv75aa.js +114 -0
- package/dist/chunk-wcepsp07.js +1013 -0
- package/dist/chunk-wecrhvf7.js +247 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wgcssf6v.js +722 -0
- package/dist/chunk-wn2268qd.js +335 -0
- package/dist/chunk-wtr5hjf7.js +3443 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x0328bb5.js +305 -0
- package/dist/chunk-x5psxyg8.js +20 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8n22y7f.js +5017 -0
- package/dist/chunk-xq4cfvpn.js +213 -0
- package/dist/chunk-xqdvndvx.js +3394 -0
- package/dist/chunk-xrv9qadt.js +44 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xszk7n10.js +14358 -0
- package/dist/chunk-xx6h50zt.js +338 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-yfcsc3s4.js +153 -0
- package/dist/chunk-yngvgvqm.js +103 -0
- package/dist/chunk-yntm0ebf.js +500 -0
- package/dist/chunk-yw9xqzna.js +71 -0
- package/dist/chunk-ywxd4qw4.js +22 -0
- package/dist/chunk-yysj6sxt.js +336 -0
- package/dist/chunk-yzhxz894.js +32 -0
- package/dist/chunk-yztq1rhb.js +60 -0
- package/dist/chunk-z06751ss.js +16386 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z5cvbngc.js +520 -0
- package/dist/chunk-z6vf0bdm.js +101 -0
- package/dist/chunk-zbqfbyfb.js +247 -0
- package/dist/chunk-zc6g0qqe.js +29 -0
- package/dist/chunk-zj863fgn.js +92 -0
- package/dist/chunk-zjd1m23p.js +1152 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-zmwhk0zy.js +750 -0
- package/dist/chunk-zpywc76a.js +862 -0
- package/dist/chunk-zqm995gk.js +71 -0
- package/dist/chunk-zsfxha74.js +17655 -0
- package/dist/cli.js +89 -0
- package/package.json +36 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
normalizeControlMessageKeys
|
|
4
|
+
} from "./chunk-nt837qt9.js";
|
|
5
|
+
import {
|
|
6
|
+
EMPTY_USAGE,
|
|
7
|
+
init_emptyUsage
|
|
8
|
+
} from "./chunk-a8fvd2bk.js";
|
|
9
|
+
import {
|
|
10
|
+
init_analytics,
|
|
11
|
+
logEvent
|
|
12
|
+
} from "./chunk-h0rbjg6x.js";
|
|
13
|
+
import {
|
|
14
|
+
init_displayTags,
|
|
15
|
+
stripDisplayTagsAllowEmpty
|
|
16
|
+
} from "./chunk-yysj6sxt.js";
|
|
17
|
+
import {
|
|
18
|
+
errorMessage,
|
|
19
|
+
init_debug,
|
|
20
|
+
init_errors,
|
|
21
|
+
init_slowOperations,
|
|
22
|
+
jsonParse,
|
|
23
|
+
logForDebugging
|
|
24
|
+
} from "./chunk-sbbj6ta3.js";
|
|
25
|
+
|
|
26
|
+
// src/bridge/bridgeMessaging.ts
|
|
27
|
+
init_analytics();
|
|
28
|
+
init_emptyUsage();
|
|
29
|
+
import { randomUUID } from "crypto";
|
|
30
|
+
init_debug();
|
|
31
|
+
init_displayTags();
|
|
32
|
+
init_errors();
|
|
33
|
+
init_slowOperations();
|
|
34
|
+
function isSDKMessage(value) {
|
|
35
|
+
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
36
|
+
}
|
|
37
|
+
function isSDKControlResponse(value) {
|
|
38
|
+
return value !== null && typeof value === "object" && "type" in value && value.type === "control_response" && "response" in value;
|
|
39
|
+
}
|
|
40
|
+
function isSDKControlRequest(value) {
|
|
41
|
+
return value !== null && typeof value === "object" && "type" in value && value.type === "control_request" && "request_id" in value && "request" in value;
|
|
42
|
+
}
|
|
43
|
+
function isEligibleBridgeMessage(m) {
|
|
44
|
+
if ((m.type === "user" || m.type === "assistant") && m.isVirtual) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return m.type === "user" || m.type === "assistant" || m.type === "system" && m.subtype === "local_command";
|
|
48
|
+
}
|
|
49
|
+
function extractTitleText(m) {
|
|
50
|
+
if (m.type !== "user" || m.isMeta || m.toolUseResult || m.isCompactSummary)
|
|
51
|
+
return;
|
|
52
|
+
if (m.origin && m.origin.kind !== "human")
|
|
53
|
+
return;
|
|
54
|
+
const content = m.message.content;
|
|
55
|
+
let raw;
|
|
56
|
+
if (typeof content === "string") {
|
|
57
|
+
raw = content;
|
|
58
|
+
} else {
|
|
59
|
+
for (const block of content) {
|
|
60
|
+
if (block.type === "text") {
|
|
61
|
+
raw = block.text;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (!raw)
|
|
67
|
+
return;
|
|
68
|
+
const clean = stripDisplayTagsAllowEmpty(raw);
|
|
69
|
+
return clean || undefined;
|
|
70
|
+
}
|
|
71
|
+
function handleIngressMessage(data, recentPostedUUIDs, recentInboundUUIDs, onInboundMessage, onPermissionResponse, onControlRequest) {
|
|
72
|
+
try {
|
|
73
|
+
const parsed = normalizeControlMessageKeys(jsonParse(data));
|
|
74
|
+
if (isSDKControlResponse(parsed)) {
|
|
75
|
+
logForDebugging("[bridge:repl] Ingress message type=control_response");
|
|
76
|
+
onPermissionResponse?.(parsed);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (isSDKControlRequest(parsed)) {
|
|
80
|
+
logForDebugging(`[bridge:repl] Inbound control_request subtype=${parsed.request.subtype}`);
|
|
81
|
+
onControlRequest?.(parsed);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (!isSDKMessage(parsed))
|
|
85
|
+
return;
|
|
86
|
+
const uuid = "uuid" in parsed && typeof parsed.uuid === "string" ? parsed.uuid : undefined;
|
|
87
|
+
if (uuid && recentPostedUUIDs.has(uuid)) {
|
|
88
|
+
logForDebugging(`[bridge:repl] Ignoring echo: type=${parsed.type} uuid=${uuid}`);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (uuid && recentInboundUUIDs.has(uuid)) {
|
|
92
|
+
logForDebugging(`[bridge:repl] Ignoring re-delivered inbound: type=${parsed.type} uuid=${uuid}`);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
logForDebugging(`[bridge:repl] Ingress message type=${parsed.type}${uuid ? ` uuid=${uuid}` : ""}`);
|
|
96
|
+
if (parsed.type === "user") {
|
|
97
|
+
if (uuid)
|
|
98
|
+
recentInboundUUIDs.add(uuid);
|
|
99
|
+
logEvent("tengu_bridge_message_received", {
|
|
100
|
+
is_repl: true
|
|
101
|
+
});
|
|
102
|
+
onInboundMessage?.(parsed);
|
|
103
|
+
} else {
|
|
104
|
+
logForDebugging(`[bridge:repl] Ignoring non-user inbound message: type=${parsed.type}`);
|
|
105
|
+
}
|
|
106
|
+
} catch (err) {
|
|
107
|
+
logForDebugging(`[bridge:repl] Failed to parse ingress message: ${errorMessage(err)}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
var OUTBOUND_ONLY_ERROR = "This session is outbound-only. Enable Remote Control locally to allow inbound control.";
|
|
111
|
+
function handleServerControlRequest(request, handlers) {
|
|
112
|
+
const {
|
|
113
|
+
transport,
|
|
114
|
+
sessionId,
|
|
115
|
+
outboundOnly,
|
|
116
|
+
onInterrupt,
|
|
117
|
+
onSetModel,
|
|
118
|
+
onSetMaxThinkingTokens,
|
|
119
|
+
onSetPermissionMode
|
|
120
|
+
} = handlers;
|
|
121
|
+
if (!transport) {
|
|
122
|
+
logForDebugging("[bridge:repl] Cannot respond to control_request: transport not configured");
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
let response;
|
|
126
|
+
const req = request.request;
|
|
127
|
+
if (outboundOnly && req.subtype !== "initialize") {
|
|
128
|
+
response = {
|
|
129
|
+
type: "control_response",
|
|
130
|
+
response: {
|
|
131
|
+
subtype: "error",
|
|
132
|
+
request_id: request.request_id,
|
|
133
|
+
error: OUTBOUND_ONLY_ERROR
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const event2 = { ...response, session_id: sessionId };
|
|
137
|
+
transport.write(event2);
|
|
138
|
+
logForDebugging(`[bridge:repl] Rejected ${req.subtype} (outbound-only) request_id=${request.request_id}`);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
switch (req.subtype) {
|
|
142
|
+
case "initialize":
|
|
143
|
+
response = {
|
|
144
|
+
type: "control_response",
|
|
145
|
+
response: {
|
|
146
|
+
subtype: "success",
|
|
147
|
+
request_id: request.request_id,
|
|
148
|
+
response: {
|
|
149
|
+
commands: [],
|
|
150
|
+
output_style: "normal",
|
|
151
|
+
available_output_styles: ["normal"],
|
|
152
|
+
models: [],
|
|
153
|
+
account: {},
|
|
154
|
+
pid: process.pid
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
break;
|
|
159
|
+
case "set_model":
|
|
160
|
+
onSetModel?.(req.model);
|
|
161
|
+
response = {
|
|
162
|
+
type: "control_response",
|
|
163
|
+
response: {
|
|
164
|
+
subtype: "success",
|
|
165
|
+
request_id: request.request_id
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
break;
|
|
169
|
+
case "set_max_thinking_tokens":
|
|
170
|
+
onSetMaxThinkingTokens?.(req.max_thinking_tokens ?? null);
|
|
171
|
+
response = {
|
|
172
|
+
type: "control_response",
|
|
173
|
+
response: {
|
|
174
|
+
subtype: "success",
|
|
175
|
+
request_id: request.request_id
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
break;
|
|
179
|
+
case "set_permission_mode": {
|
|
180
|
+
const verdict = onSetPermissionMode?.(req.mode) ?? {
|
|
181
|
+
ok: false,
|
|
182
|
+
error: "set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"
|
|
183
|
+
};
|
|
184
|
+
if (verdict.ok) {
|
|
185
|
+
response = {
|
|
186
|
+
type: "control_response",
|
|
187
|
+
response: {
|
|
188
|
+
subtype: "success",
|
|
189
|
+
request_id: request.request_id
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
} else {
|
|
193
|
+
response = {
|
|
194
|
+
type: "control_response",
|
|
195
|
+
response: {
|
|
196
|
+
subtype: "error",
|
|
197
|
+
request_id: request.request_id,
|
|
198
|
+
error: verdict.error
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
case "interrupt":
|
|
205
|
+
onInterrupt?.();
|
|
206
|
+
response = {
|
|
207
|
+
type: "control_response",
|
|
208
|
+
response: {
|
|
209
|
+
subtype: "success",
|
|
210
|
+
request_id: request.request_id
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
break;
|
|
214
|
+
default:
|
|
215
|
+
response = {
|
|
216
|
+
type: "control_response",
|
|
217
|
+
response: {
|
|
218
|
+
subtype: "error",
|
|
219
|
+
request_id: request.request_id,
|
|
220
|
+
error: `REPL bridge does not handle control_request subtype: ${req.subtype}`
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
const event = { ...response, session_id: sessionId };
|
|
225
|
+
transport.write(event);
|
|
226
|
+
logForDebugging(`[bridge:repl] Sent control_response for ${req.subtype} request_id=${request.request_id} result=${response.response.subtype}`);
|
|
227
|
+
}
|
|
228
|
+
function makeResultMessage(sessionId) {
|
|
229
|
+
return {
|
|
230
|
+
type: "result_success",
|
|
231
|
+
subtype: "success",
|
|
232
|
+
duration_ms: 0,
|
|
233
|
+
duration_api_ms: 0,
|
|
234
|
+
is_error: false,
|
|
235
|
+
num_turns: 0,
|
|
236
|
+
result: "",
|
|
237
|
+
stop_reason: null,
|
|
238
|
+
total_cost_usd: 0,
|
|
239
|
+
usage: { ...EMPTY_USAGE },
|
|
240
|
+
modelUsage: {},
|
|
241
|
+
permission_denials: [],
|
|
242
|
+
session_id: sessionId,
|
|
243
|
+
uuid: randomUUID()
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
class BoundedUUIDSet {
|
|
248
|
+
capacity;
|
|
249
|
+
ring;
|
|
250
|
+
set = new Set;
|
|
251
|
+
writeIdx = 0;
|
|
252
|
+
constructor(capacity) {
|
|
253
|
+
this.capacity = capacity;
|
|
254
|
+
this.ring = new Array(capacity);
|
|
255
|
+
}
|
|
256
|
+
add(uuid) {
|
|
257
|
+
if (this.set.has(uuid))
|
|
258
|
+
return;
|
|
259
|
+
const evicted = this.ring[this.writeIdx];
|
|
260
|
+
if (evicted !== undefined) {
|
|
261
|
+
this.set.delete(evicted);
|
|
262
|
+
}
|
|
263
|
+
this.ring[this.writeIdx] = uuid;
|
|
264
|
+
this.set.add(uuid);
|
|
265
|
+
this.writeIdx = (this.writeIdx + 1) % this.capacity;
|
|
266
|
+
}
|
|
267
|
+
has(uuid) {
|
|
268
|
+
return this.set.has(uuid);
|
|
269
|
+
}
|
|
270
|
+
clear() {
|
|
271
|
+
this.set.clear();
|
|
272
|
+
this.ring.fill(undefined);
|
|
273
|
+
this.writeIdx = 0;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export { isEligibleBridgeMessage, extractTitleText, handleIngressMessage, handleServerControlRequest, makeResultMessage, BoundedUUIDSet };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_settingsSync
|
|
4
|
+
} from "./chunk-rx4c84ah.js";
|
|
5
|
+
import {
|
|
6
|
+
init_refresh,
|
|
7
|
+
refreshActivePlugins
|
|
8
|
+
} from "./chunk-as7vh4kb.js";
|
|
9
|
+
import {
|
|
10
|
+
init_changeDetector
|
|
11
|
+
} from "./chunk-njmw3yt4.js";
|
|
12
|
+
import"./chunk-j0xd989k.js";
|
|
13
|
+
import"./chunk-t0rgmccj.js";
|
|
14
|
+
import"./chunk-a8fvd2bk.js";
|
|
15
|
+
import"./chunk-pkcx8qa3.js";
|
|
16
|
+
import"./chunk-er596fa7.js";
|
|
17
|
+
import"./chunk-ddk0ak7r.js";
|
|
18
|
+
import"./chunk-k2qkkhf9.js";
|
|
19
|
+
import"./chunk-ehtwnxpg.js";
|
|
20
|
+
import"./chunk-vhjx5fag.js";
|
|
21
|
+
import"./chunk-1ed0q5rg.js";
|
|
22
|
+
import"./chunk-2gzv8nrw.js";
|
|
23
|
+
import"./chunk-j5hc27hv.js";
|
|
24
|
+
import"./chunk-cgfdkzhb.js";
|
|
25
|
+
import"./chunk-khs0jvy0.js";
|
|
26
|
+
import"./chunk-p4qrpz5a.js";
|
|
27
|
+
import"./chunk-9gbamk79.js";
|
|
28
|
+
import"./chunk-pxy618ae.js";
|
|
29
|
+
import"./chunk-gv0tqhg0.js";
|
|
30
|
+
import"./chunk-tnd5xbeh.js";
|
|
31
|
+
import"./chunk-8aww16wk.js";
|
|
32
|
+
import"./chunk-7m2nd8da.js";
|
|
33
|
+
import"./chunk-ps49ymvj.js";
|
|
34
|
+
import"./chunk-g338npwr.js";
|
|
35
|
+
import"./chunk-f2xj33w0.js";
|
|
36
|
+
import"./chunk-zk2wsm7d.js";
|
|
37
|
+
import"./chunk-tssr3fyd.js";
|
|
38
|
+
import"./chunk-7e6ahfxz.js";
|
|
39
|
+
import"./chunk-pkb4qnmq.js";
|
|
40
|
+
import {
|
|
41
|
+
init_stringUtils,
|
|
42
|
+
plural
|
|
43
|
+
} from "./chunk-z06751ss.js";
|
|
44
|
+
import"./chunk-eebcvtbb.js";
|
|
45
|
+
import"./chunk-xq4cfvpn.js";
|
|
46
|
+
import"./chunk-4qz9vbs1.js";
|
|
47
|
+
import"./chunk-9nta4x35.js";
|
|
48
|
+
import"./chunk-b75fzr8e.js";
|
|
49
|
+
import"./chunk-g0j0t6qk.js";
|
|
50
|
+
import"./chunk-3c25bcsw.js";
|
|
51
|
+
import"./chunk-nj17bhkh.js";
|
|
52
|
+
import"./chunk-55wgxwa9.js";
|
|
53
|
+
import"./chunk-vqk1n5qr.js";
|
|
54
|
+
import"./chunk-4jm600zv.js";
|
|
55
|
+
import"./chunk-wn2268qd.js";
|
|
56
|
+
import"./chunk-vqvd3qz0.js";
|
|
57
|
+
import"./chunk-f5ma3nh5.js";
|
|
58
|
+
import"./chunk-qz2x630m.js";
|
|
59
|
+
import"./chunk-d9kz373t.js";
|
|
60
|
+
import"./chunk-p2816w9z.js";
|
|
61
|
+
import"./chunk-v9smspw2.js";
|
|
62
|
+
import"./chunk-v1kzp02e.js";
|
|
63
|
+
import"./chunk-0vkfrmqm.js";
|
|
64
|
+
import"./chunk-0xjaqda8.js";
|
|
65
|
+
import"./chunk-w8yw30sd.js";
|
|
66
|
+
import"./chunk-wgcssf6v.js";
|
|
67
|
+
import"./chunk-cdz5yb0r.js";
|
|
68
|
+
import"./chunk-h0rbjg6x.js";
|
|
69
|
+
import"./chunk-dstxhxsx.js";
|
|
70
|
+
import"./chunk-b8x1gk3y.js";
|
|
71
|
+
import"./chunk-9k2drwej.js";
|
|
72
|
+
import"./chunk-qnfx3qtx.js";
|
|
73
|
+
import"./chunk-fbpftpf0.js";
|
|
74
|
+
import"./chunk-3vs3nm7w.js";
|
|
75
|
+
import"./chunk-gzzfhtdv.js";
|
|
76
|
+
import"./chunk-yysj6sxt.js";
|
|
77
|
+
import"./chunk-8tnsngw2.js";
|
|
78
|
+
import"./chunk-8bedvdm1.js";
|
|
79
|
+
import"./chunk-7wm5s02e.js";
|
|
80
|
+
import"./chunk-sbbj6ta3.js";
|
|
81
|
+
import"./chunk-fbv4apne.js";
|
|
82
|
+
import {
|
|
83
|
+
init_envUtils
|
|
84
|
+
} from "./chunk-raqgs410.js";
|
|
85
|
+
import {
|
|
86
|
+
init_state
|
|
87
|
+
} from "./chunk-qqfa0dqg.js";
|
|
88
|
+
import"./chunk-hqmz36b3.js";
|
|
89
|
+
import"./chunk-4g3v8y12.js";
|
|
90
|
+
import"./chunk-7739pg2c.js";
|
|
91
|
+
import"./chunk-xszk7n10.js";
|
|
92
|
+
import"./chunk-sdj9b9wh.js";
|
|
93
|
+
import {
|
|
94
|
+
__esm
|
|
95
|
+
} from "./chunk-qp2qdcda.js";
|
|
96
|
+
|
|
97
|
+
// src/commands/reload-plugins/reload-plugins.ts
|
|
98
|
+
function n(count, noun) {
|
|
99
|
+
return `${count} ${plural(count, noun)}`;
|
|
100
|
+
}
|
|
101
|
+
var call = async (_args, context) => {
|
|
102
|
+
if (false) {}
|
|
103
|
+
const r = await refreshActivePlugins(context.setAppState);
|
|
104
|
+
const parts = [
|
|
105
|
+
n(r.enabled_count, "plugin"),
|
|
106
|
+
n(r.command_count, "skill"),
|
|
107
|
+
n(r.agent_count, "agent"),
|
|
108
|
+
n(r.hook_count, "hook"),
|
|
109
|
+
n(r.mcp_count, "plugin MCP server"),
|
|
110
|
+
n(r.lsp_count, "plugin LSP server")
|
|
111
|
+
];
|
|
112
|
+
let msg = `Reloaded: ${parts.join(" \xB7 ")}`;
|
|
113
|
+
if (r.error_count > 0) {
|
|
114
|
+
msg += `
|
|
115
|
+
${n(r.error_count, "error")} during load. Run /doctor for details.`;
|
|
116
|
+
}
|
|
117
|
+
return { type: "text", value: msg };
|
|
118
|
+
};
|
|
119
|
+
var init_reload_plugins = __esm(() => {
|
|
120
|
+
init_state();
|
|
121
|
+
init_settingsSync();
|
|
122
|
+
init_envUtils();
|
|
123
|
+
init_refresh();
|
|
124
|
+
init_changeDetector();
|
|
125
|
+
init_stringUtils();
|
|
126
|
+
});
|
|
127
|
+
init_reload_plugins();
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
call
|
|
131
|
+
};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
require_dist_cjs
|
|
4
|
+
} from "./chunk-xsq9ae7x.js";
|
|
5
|
+
import {
|
|
6
|
+
__commonJS,
|
|
7
|
+
__require
|
|
8
|
+
} from "./chunk-qp2qdcda.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.bun/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js
|
|
11
|
+
var require_getHomeDir = __commonJS((exports) => {
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.getHomeDir = undefined;
|
|
14
|
+
var os_1 = __require("os");
|
|
15
|
+
var path_1 = __require("path");
|
|
16
|
+
var homeDirCache = {};
|
|
17
|
+
var getHomeDirCacheKey = () => {
|
|
18
|
+
if (process && process.geteuid) {
|
|
19
|
+
return `${process.geteuid()}`;
|
|
20
|
+
}
|
|
21
|
+
return "DEFAULT";
|
|
22
|
+
};
|
|
23
|
+
var getHomeDir = () => {
|
|
24
|
+
const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env;
|
|
25
|
+
if (HOME)
|
|
26
|
+
return HOME;
|
|
27
|
+
if (USERPROFILE)
|
|
28
|
+
return USERPROFILE;
|
|
29
|
+
if (HOMEPATH)
|
|
30
|
+
return `${HOMEDRIVE}${HOMEPATH}`;
|
|
31
|
+
const homeDirCacheKey = getHomeDirCacheKey();
|
|
32
|
+
if (!homeDirCache[homeDirCacheKey])
|
|
33
|
+
homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();
|
|
34
|
+
return homeDirCache[homeDirCacheKey];
|
|
35
|
+
};
|
|
36
|
+
exports.getHomeDir = getHomeDir;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// node_modules/.bun/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
|
|
40
|
+
var require_getSSOTokenFilepath = __commonJS((exports) => {
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.getSSOTokenFilepath = undefined;
|
|
43
|
+
var crypto_1 = __require("crypto");
|
|
44
|
+
var path_1 = __require("path");
|
|
45
|
+
var getHomeDir_1 = require_getHomeDir();
|
|
46
|
+
var getSSOTokenFilepath = (id) => {
|
|
47
|
+
const hasher = (0, crypto_1.createHash)("sha1");
|
|
48
|
+
const cacheName = hasher.update(id).digest("hex");
|
|
49
|
+
return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
50
|
+
};
|
|
51
|
+
exports.getSSOTokenFilepath = getSSOTokenFilepath;
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// node_modules/.bun/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
|
|
55
|
+
var require_getSSOTokenFromFile = __commonJS((exports) => {
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.getSSOTokenFromFile = exports.tokenIntercept = undefined;
|
|
58
|
+
var promises_1 = __require("fs/promises");
|
|
59
|
+
var getSSOTokenFilepath_1 = require_getSSOTokenFilepath();
|
|
60
|
+
exports.tokenIntercept = {};
|
|
61
|
+
var getSSOTokenFromFile = async (id) => {
|
|
62
|
+
if (exports.tokenIntercept[id]) {
|
|
63
|
+
return exports.tokenIntercept[id];
|
|
64
|
+
}
|
|
65
|
+
const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
|
|
66
|
+
const ssoTokenText = await (0, promises_1.readFile)(ssoTokenFilepath, "utf8");
|
|
67
|
+
return JSON.parse(ssoTokenText);
|
|
68
|
+
};
|
|
69
|
+
exports.getSSOTokenFromFile = getSSOTokenFromFile;
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// node_modules/.bun/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js
|
|
73
|
+
var require_readFile = __commonJS((exports) => {
|
|
74
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
+
exports.readFile = exports.fileIntercept = exports.filePromises = undefined;
|
|
76
|
+
var promises_1 = __require("fs/promises");
|
|
77
|
+
exports.filePromises = {};
|
|
78
|
+
exports.fileIntercept = {};
|
|
79
|
+
var readFile = (path, options) => {
|
|
80
|
+
if (exports.fileIntercept[path] !== undefined) {
|
|
81
|
+
return exports.fileIntercept[path];
|
|
82
|
+
}
|
|
83
|
+
if (!exports.filePromises[path] || options?.ignoreCache) {
|
|
84
|
+
exports.filePromises[path] = (0, promises_1.readFile)(path, "utf8");
|
|
85
|
+
}
|
|
86
|
+
return exports.filePromises[path];
|
|
87
|
+
};
|
|
88
|
+
exports.readFile = readFile;
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// node_modules/.bun/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js
|
|
92
|
+
var require_dist_cjs2 = __commonJS((exports) => {
|
|
93
|
+
var getHomeDir = require_getHomeDir();
|
|
94
|
+
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
95
|
+
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
96
|
+
var path = __require("path");
|
|
97
|
+
var types = require_dist_cjs();
|
|
98
|
+
var readFile = require_readFile();
|
|
99
|
+
var ENV_PROFILE = "AWS_PROFILE";
|
|
100
|
+
var DEFAULT_PROFILE = "default";
|
|
101
|
+
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
102
|
+
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
103
|
+
var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
104
|
+
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
105
|
+
if (indexOfSeparator === -1) {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));
|
|
109
|
+
}).reduce((acc, [key, value]) => {
|
|
110
|
+
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
111
|
+
const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
|
|
112
|
+
acc[updatedKey] = value;
|
|
113
|
+
return acc;
|
|
114
|
+
}, {
|
|
115
|
+
...data.default && { default: data.default }
|
|
116
|
+
});
|
|
117
|
+
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
118
|
+
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path.join(getHomeDir.getHomeDir(), ".aws", "config");
|
|
119
|
+
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
120
|
+
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path.join(getHomeDir.getHomeDir(), ".aws", "credentials");
|
|
121
|
+
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
122
|
+
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
123
|
+
var parseIni = (iniData) => {
|
|
124
|
+
const map = {};
|
|
125
|
+
let currentSection;
|
|
126
|
+
let currentSubSection;
|
|
127
|
+
for (const iniLine of iniData.split(/\r?\n/)) {
|
|
128
|
+
const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
|
|
129
|
+
const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
|
|
130
|
+
if (isSection) {
|
|
131
|
+
currentSection = undefined;
|
|
132
|
+
currentSubSection = undefined;
|
|
133
|
+
const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
|
|
134
|
+
const matches = prefixKeyRegex.exec(sectionName);
|
|
135
|
+
if (matches) {
|
|
136
|
+
const [, prefix, , name] = matches;
|
|
137
|
+
if (Object.values(types.IniSectionType).includes(prefix)) {
|
|
138
|
+
currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
|
|
139
|
+
}
|
|
140
|
+
} else {
|
|
141
|
+
currentSection = sectionName;
|
|
142
|
+
}
|
|
143
|
+
if (profileNameBlockList.includes(sectionName)) {
|
|
144
|
+
throw new Error(`Found invalid profile name "${sectionName}"`);
|
|
145
|
+
}
|
|
146
|
+
} else if (currentSection) {
|
|
147
|
+
const indexOfEqualsSign = trimmedLine.indexOf("=");
|
|
148
|
+
if (![0, -1].includes(indexOfEqualsSign)) {
|
|
149
|
+
const [name, value] = [
|
|
150
|
+
trimmedLine.substring(0, indexOfEqualsSign).trim(),
|
|
151
|
+
trimmedLine.substring(indexOfEqualsSign + 1).trim()
|
|
152
|
+
];
|
|
153
|
+
if (value === "") {
|
|
154
|
+
currentSubSection = name;
|
|
155
|
+
} else {
|
|
156
|
+
if (currentSubSection && iniLine.trimStart() === iniLine) {
|
|
157
|
+
currentSubSection = undefined;
|
|
158
|
+
}
|
|
159
|
+
map[currentSection] = map[currentSection] || {};
|
|
160
|
+
const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
|
|
161
|
+
map[currentSection][key] = value;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return map;
|
|
167
|
+
};
|
|
168
|
+
var swallowError$1 = () => ({});
|
|
169
|
+
var loadSharedConfigFiles = async (init = {}) => {
|
|
170
|
+
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
171
|
+
const homeDir = getHomeDir.getHomeDir();
|
|
172
|
+
const relativeHomeDirPrefix = "~/";
|
|
173
|
+
let resolvedFilepath = filepath;
|
|
174
|
+
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
175
|
+
resolvedFilepath = path.join(homeDir, filepath.slice(2));
|
|
176
|
+
}
|
|
177
|
+
let resolvedConfigFilepath = configFilepath;
|
|
178
|
+
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
179
|
+
resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));
|
|
180
|
+
}
|
|
181
|
+
const parsedFiles = await Promise.all([
|
|
182
|
+
readFile.readFile(resolvedConfigFilepath, {
|
|
183
|
+
ignoreCache: init.ignoreCache
|
|
184
|
+
}).then(parseIni).then(getConfigData).catch(swallowError$1),
|
|
185
|
+
readFile.readFile(resolvedFilepath, {
|
|
186
|
+
ignoreCache: init.ignoreCache
|
|
187
|
+
}).then(parseIni).catch(swallowError$1)
|
|
188
|
+
]);
|
|
189
|
+
return {
|
|
190
|
+
configFile: parsedFiles[0],
|
|
191
|
+
credentialsFile: parsedFiles[1]
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
|
|
195
|
+
var swallowError = () => ({});
|
|
196
|
+
var loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);
|
|
197
|
+
var mergeConfigFiles = (...files) => {
|
|
198
|
+
const merged = {};
|
|
199
|
+
for (const file of files) {
|
|
200
|
+
for (const [key, values] of Object.entries(file)) {
|
|
201
|
+
if (merged[key] !== undefined) {
|
|
202
|
+
Object.assign(merged[key], values);
|
|
203
|
+
} else {
|
|
204
|
+
merged[key] = values;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return merged;
|
|
209
|
+
};
|
|
210
|
+
var parseKnownFiles = async (init) => {
|
|
211
|
+
const parsedFiles = await loadSharedConfigFiles(init);
|
|
212
|
+
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
213
|
+
};
|
|
214
|
+
var externalDataInterceptor = {
|
|
215
|
+
getFileRecord() {
|
|
216
|
+
return readFile.fileIntercept;
|
|
217
|
+
},
|
|
218
|
+
interceptFile(path2, contents) {
|
|
219
|
+
readFile.fileIntercept[path2] = Promise.resolve(contents);
|
|
220
|
+
},
|
|
221
|
+
getTokenRecord() {
|
|
222
|
+
return getSSOTokenFromFile.tokenIntercept;
|
|
223
|
+
},
|
|
224
|
+
interceptToken(id, contents) {
|
|
225
|
+
getSSOTokenFromFile.tokenIntercept[id] = contents;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
exports.getSSOTokenFromFile = getSSOTokenFromFile.getSSOTokenFromFile;
|
|
229
|
+
exports.readFile = readFile.readFile;
|
|
230
|
+
exports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;
|
|
231
|
+
exports.DEFAULT_PROFILE = DEFAULT_PROFILE;
|
|
232
|
+
exports.ENV_PROFILE = ENV_PROFILE;
|
|
233
|
+
exports.externalDataInterceptor = externalDataInterceptor;
|
|
234
|
+
exports.getProfileName = getProfileName;
|
|
235
|
+
exports.loadSharedConfigFiles = loadSharedConfigFiles;
|
|
236
|
+
exports.loadSsoSessionData = loadSsoSessionData;
|
|
237
|
+
exports.parseKnownFiles = parseKnownFiles;
|
|
238
|
+
Object.prototype.hasOwnProperty.call(getHomeDir, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
value: getHomeDir["__proto__"]
|
|
241
|
+
});
|
|
242
|
+
Object.keys(getHomeDir).forEach(function(k) {
|
|
243
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
244
|
+
exports[k] = getHomeDir[k];
|
|
245
|
+
});
|
|
246
|
+
Object.prototype.hasOwnProperty.call(getSSOTokenFilepath, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
value: getSSOTokenFilepath["__proto__"]
|
|
249
|
+
});
|
|
250
|
+
Object.keys(getSSOTokenFilepath).forEach(function(k) {
|
|
251
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
252
|
+
exports[k] = getSSOTokenFilepath[k];
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
export { require_dist_cjs2 as require_dist_cjs };
|