@opencode-ai/core 0.0.0-dev-18334 → 0.0.0-dev-18339
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/dist/account/sql.js +2 -2
- package/dist/agent.js +70 -70
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +68 -68
- package/dist/catalog.js +78 -78
- package/dist/chunks/{pty-02dbfq60.js → kv-02dbfq60.js} +1 -1
- package/dist/chunks/{pty-k60er779.js → kv-0ex5w6gb.js} +10 -10
- package/dist/chunks/{pty-bycv9049.js → kv-0gjxv4zg.js} +89 -89
- package/dist/chunks/{pty-0kvmztkf.js → kv-0kvmztkf.js} +1 -1
- package/dist/chunks/{pty-wxw93tt2.js → kv-0nsjmygq.js} +4 -4
- package/dist/chunks/{pty-n57pjc8k.js → kv-0pn12ky9.js} +3 -3
- package/dist/chunks/{pty-q3856v5v.js → kv-0rpfwhsw.js} +3 -3
- package/dist/chunks/{pty-hey25ktd.js → kv-0y655g3j.js} +2 -2
- package/dist/chunks/{pty-yhqh92qf.js → kv-10ymxce0.js} +15 -15
- package/dist/chunks/{pty-sst1754h.js → kv-14d5gv1g.js} +5 -5
- package/dist/chunks/{pty-18pv8fg3.js → kv-18pv8fg3.js} +2 -2
- package/dist/chunks/{pty-ctzszweb.js → kv-1e7b7hnt.js} +8 -8
- package/dist/chunks/{pty-gjy076rh.js → kv-1fq4p3a0.js} +8 -8
- package/dist/chunks/{pty-v5r4ssgv.js → kv-1z2djtdb.js} +155 -155
- package/dist/chunks/{pty-csrx180a.js → kv-1znkpcva.js} +5 -5
- package/dist/chunks/{pty-y0k2k5v2.js → kv-2472bxjq.js} +8 -8
- package/dist/chunks/{pty-0e43scmx.js → kv-26hyr64a.js} +8 -8
- package/dist/chunks/{pty-2m0hgr65.js → kv-2m0hgr65.js} +1 -1
- package/dist/chunks/{pty-xc25jqxj.js → kv-2nmh62e0.js} +5 -5
- package/dist/chunks/{pty-2nmyybe0.js → kv-2nmyybe0.js} +1 -1
- package/dist/chunks/{pty-k4h7rtgr.js → kv-2r4w0tef.js} +7 -7
- package/dist/chunks/{pty-hchrdr4t.js → kv-2te4qfmf.js} +4 -4
- package/dist/chunks/{pty-2wds5nk3.js → kv-2wds5nk3.js} +1 -1
- package/dist/chunks/{pty-aj9m13cz.js → kv-2zvg8b5x.js} +4 -4
- package/dist/chunks/{pty-qy7mm8w3.js → kv-3144vz00.js} +9 -9
- package/dist/chunks/{pty-9yrp1ad7.js → kv-3cv4p330.js} +3 -3
- package/dist/chunks/{pty-3g8vftxb.js → kv-3g8vftxb.js} +2 -2
- package/dist/chunks/{pty-3qv8nf0b.js → kv-3qv8nf0b.js} +1 -1
- package/dist/chunks/{pty-b7z6w66n.js → kv-3rayhmv3.js} +3 -3
- package/dist/chunks/{pty-tm1k0b1t.js → kv-3t17rrv4.js} +10 -10
- package/dist/chunks/{pty-3thh6229.js → kv-3thh6229.js} +2 -2
- package/dist/chunks/{pty-k3z8bqpp.js → kv-3vpyzwc4.js} +3 -3
- package/dist/chunks/{pty-dapbg9ce.js → kv-3w5aym19.js} +9 -9
- package/dist/chunks/{pty-mzj6ydvj.js → kv-46tke73x.js} +6 -6
- package/dist/chunks/{pty-yqza15cy.js → kv-4ahj0kbj.js} +38 -38
- package/dist/chunks/{pty-8vd6pef0.js → kv-4dsn0b5s.js} +4 -4
- package/dist/chunks/{pty-5vbqbv2r.js → kv-4gj3z125.js} +61 -61
- package/dist/chunks/{pty-9bzgvrrs.js → kv-4j3sy62h.js} +6 -6
- package/dist/chunks/{pty-4s2xwh5d.js → kv-4s2xwh5d.js} +3 -3
- package/dist/chunks/{pty-09vaeaer.js → kv-4v8j4d8q.js} +5 -5
- package/dist/chunks/{pty-4zzdwbaz.js → kv-4zzdwbaz.js} +2 -2
- package/dist/chunks/{pty-50jxp3hw.js → kv-50jxp3hw.js} +1 -1
- package/dist/chunks/{pty-57tzwnz4.js → kv-57tzwnz4.js} +1 -1
- package/dist/chunks/{pty-58xdvehb.js → kv-58xdvehb.js} +1 -1
- package/dist/chunks/{pty-5cdnkd94.js → kv-5cdnkd94.js} +3 -3
- package/dist/chunks/{pty-5fe026tx.js → kv-5fe026tx.js} +3 -3
- package/dist/chunks/{pty-90ajpsyk.js → kv-5hsxrzr9.js} +2 -2
- package/dist/chunks/{pty-cbp4tzfr.js → kv-5ncymr0a.js} +4 -4
- package/dist/chunks/{pty-5rs65q6p.js → kv-5rs65q6p.js} +1 -1
- package/dist/chunks/{pty-5vcssjzn.js → kv-5vcssjzn.js} +1 -1
- package/dist/chunks/{pty-5z4zwtb4.js → kv-5z4zwtb4.js} +2 -2
- package/dist/chunks/{pty-6272rtjg.js → kv-6272rtjg.js} +1 -1
- package/dist/chunks/{pty-j0a8c2ah.js → kv-66r1q76g.js} +3 -3
- package/dist/chunks/{pty-mzcgyw1d.js → kv-671n4ec0.js} +7 -7
- package/dist/chunks/{pty-6ky7rqk7.js → kv-6ky7rqk7.js} +1 -1
- package/dist/chunks/{pty-g8qafzk6.js → kv-6m9fss13.js} +7 -7
- package/dist/chunks/{pty-0kx9g65f.js → kv-6q644z5w.js} +3 -3
- package/dist/chunks/{pty-6wkzvma0.js → kv-6wkzvma0.js} +2 -2
- package/dist/chunks/{pty-75h1hfe2.js → kv-75h1hfe2.js} +2 -2
- package/dist/chunks/{pty-gvb5fjaj.js → kv-7d1grz3f.js} +4 -4
- package/dist/chunks/{pty-7gqqz1s8.js → kv-7gqqz1s8.js} +1 -1
- package/dist/chunks/{pty-7khw64yh.js → kv-7khw64yh.js} +1 -1
- package/dist/chunks/{pty-7mrpdsq5.js → kv-7mrpdsq5.js} +1 -1
- package/dist/chunks/{pty-hhx769z4.js → kv-7pb1ad45.js} +4 -4
- package/dist/chunks/{pty-7thnevmq.js → kv-7thnevmq.js} +2 -2
- package/dist/chunks/{pty-7wcmqxrc.js → kv-7wcmqxrc.js} +1 -1
- package/dist/chunks/{pty-88jbfw8z.js → kv-88jbfw8z.js} +2 -2
- package/dist/chunks/{pty-4rqp4j7m.js → kv-88kss8rc.js} +5 -5
- package/dist/chunks/{pty-scwsmnvy.js → kv-8kkwgkw2.js} +15 -15
- package/dist/chunks/{pty-8pngjawd.js → kv-8pngjawd.js} +2 -2
- package/dist/chunks/{pty-83e2qdb8.js → kv-8swew0x2.js} +6 -6
- package/dist/chunks/{pty-3eyrwrpy.js → kv-90qyxad2.js} +4 -4
- package/dist/chunks/{pty-jkx2v3a9.js → kv-93tefsha.js} +3 -3
- package/dist/chunks/{pty-81mz04qm.js → kv-968cth0m.js} +3 -3
- package/dist/chunks/{pty-fqex1cwa.js → kv-98hbc7y3.js} +12 -12
- package/dist/chunks/{pty-999qd968.js → kv-999qd968.js} +1 -1
- package/dist/chunks/{pty-sxp8nh0s.js → kv-9avjhcy3.js} +3 -3
- package/dist/chunks/{pty-4v3afprt.js → kv-9b76fep3.js} +8 -8
- package/dist/chunks/{pty-9f0rnpkn.js → kv-9f0rnpkn.js} +1 -1
- package/dist/chunks/{pty-zrn8d1yv.js → kv-9hh2h6b5.js} +15 -15
- package/dist/chunks/{pty-kwaxwgcd.js → kv-9rba19kc.js} +7 -7
- package/dist/chunks/{pty-f5p36mn1.js → kv-9sr1rygm.js} +3 -3
- package/dist/chunks/{pty-a09abg6q.js → kv-a09abg6q.js} +2 -2
- package/dist/chunks/{pty-34f5fj0z.js → kv-a46p3x3f.js} +9 -9
- package/dist/chunks/{pty-4tc9kn3c.js → kv-a63dcx9e.js} +21 -21
- package/dist/chunks/{pty-qgedfe15.js → kv-ahhpd2qe.js} +3 -3
- package/dist/chunks/{pty-heeswwmn.js → kv-ar229a3r.js} +8 -8
- package/dist/chunks/{pty-awg5d31a.js → kv-awg5d31a.js} +1 -1
- package/dist/chunks/{pty-bh1wr8rq.js → kv-bh1wr8rq.js} +2 -2
- package/dist/chunks/{pty-bmknfyv0.js → kv-bmknfyv0.js} +2 -2
- package/dist/chunks/{pty-hh9129p6.js → kv-br3vd8kh.js} +2 -2
- package/dist/chunks/{pty-j0z5ak8k.js → kv-by0e6x5c.js} +45 -45
- package/dist/chunks/{pty-byab506k.js → kv-byab506k.js} +1 -1
- package/dist/chunks/{pty-c4wcb9vc.js → kv-c4wcb9vc.js} +2 -2
- package/dist/chunks/{pty-frysc0nn.js → kv-c6ct36ty.js} +9 -9
- package/dist/chunks/{pty-z42p5vhz.js → kv-chcr0fra.js} +5 -5
- package/dist/chunks/{pty-m62ssds6.js → kv-cj3mznze.js} +2 -2
- package/dist/chunks/{pty-5nnwbsha.js → kv-ck6a95w5.js} +3 -3
- package/dist/chunks/{pty-p2559na6.js → kv-ck8sth2t.js} +3 -3
- package/dist/chunks/{pty-4jcspr7g.js → kv-ckv7kep5.js} +5 -5
- package/dist/chunks/{pty-0s07mtq1.js → kv-d18w9et2.js} +5 -5
- package/dist/chunks/{pty-d2gk9vpf.js → kv-d2gk9vpf.js} +2 -2
- package/dist/chunks/{pty-d4ax61k3.js → kv-d4ax61k3.js} +2 -2
- package/dist/chunks/{pty-8t2hdhmm.js → kv-ddex5nyn.js} +3 -3
- package/dist/chunks/{pty-k8fd3zhv.js → kv-dgqp5nda.js} +3 -3
- package/dist/chunks/{pty-dhphtf1x.js → kv-dhphtf1x.js} +1 -1
- package/dist/chunks/{pty-e1z9a0ts.js → kv-e1z9a0ts.js} +2 -2
- package/dist/chunks/{pty-ec8vrfw5.js → kv-ec8vrfw5.js} +1 -1
- package/dist/chunks/{pty-enpg66yn.js → kv-enpg66yn.js} +1 -1
- package/dist/chunks/{pty-bv58wyct.js → kv-ert2ba1d.js} +7 -7
- package/dist/chunks/{pty-9gthvhr1.js → kv-etsaqhqn.js} +8 -8
- package/dist/chunks/{pty-f7q7a28y.js → kv-f7q7a28y.js} +4 -4
- package/dist/chunks/kv-f9n5fyhn.js +341 -0
- package/dist/chunks/{pty-f9wt0tjw.js → kv-f9wt0tjw.js} +2 -2
- package/dist/chunks/{pty-fb7nfzf2.js → kv-fb7nfzf2.js} +3 -3
- package/dist/chunks/{pty-vq4bsz4p.js → kv-ferj8240.js} +91 -91
- package/dist/chunks/{pty-fgyjabww.js → kv-fgyjabww.js} +2 -2
- package/dist/chunks/{pty-59sg178t.js → kv-fwsezdbd.js} +4 -4
- package/dist/chunks/{pty-njwvsg8m.js → kv-g1db1nf1.js} +14 -14
- package/dist/chunks/{pty-shs983jy.js → kv-g7tgpc26.js} +12 -12
- package/dist/chunks/{pty-gcay93cp.js → kv-gcay93cp.js} +1 -1
- package/dist/chunks/{pty-gd2xppx8.js → kv-gd2xppx8.js} +1 -1
- package/dist/chunks/{pty-gpybhmhb.js → kv-gpybhmhb.js} +3 -3
- package/dist/chunks/{pty-f6c1t9rd.js → kv-gsdtpdj5.js} +4 -4
- package/dist/chunks/{pty-h12kt9pa.js → kv-h12kt9pa.js} +2 -2
- package/dist/chunks/{pty-7ev5chdf.js → kv-h4sj9tha.js} +14 -14
- package/dist/chunks/{pty-vfaqc6pt.js → kv-h7wwd8cj.js} +8 -8
- package/dist/chunks/{pty-h94zdhz8.js → kv-h94zdhz8.js} +2 -2
- package/dist/chunks/{pty-hp6rpdnc.js → kv-hp6rpdnc.js} +1 -1
- package/dist/chunks/{pty-hqh8yks9.js → kv-hqh8yks9.js} +3 -3
- package/dist/chunks/{pty-b2ykb7j7.js → kv-j0mc065y.js} +3 -3
- package/dist/chunks/{pty-j2rwtkhe.js → kv-j2rwtkhe.js} +4 -4
- package/dist/chunks/{pty-fxq037mg.js → kv-j37e0edx.js} +11 -11
- package/dist/chunks/{pty-w7xyqxnp.js → kv-j7s8djnk.js} +5 -5
- package/dist/chunks/{pty-h1kxvktj.js → kv-jc29bebd.js} +12 -12
- package/dist/chunks/{pty-p26n68ww.js → kv-jm0q6ezy.js} +13 -13
- package/dist/chunks/{pty-5n0e25rx.js → kv-jmnt8swh.js} +8 -8
- package/dist/chunks/{pty-21d46bda.js → kv-jn2zfzya.js} +3 -3
- package/dist/chunks/{pty-051n8qej.js → kv-jvh2qagg.js} +14 -14
- package/dist/chunks/{pty-k42t1tha.js → kv-k42t1tha.js} +2 -2
- package/dist/chunks/{pty-kpag6kfh.js → kv-k9na051a.js} +6 -6
- package/dist/chunks/{pty-p97a0mey.js → kv-kf17v4zs.js} +6 -6
- package/dist/chunks/{pty-kg1345f7.js → kv-kg1345f7.js} +1 -1
- package/dist/chunks/{pty-kp1t5rcy.js → kv-kp1t5rcy.js} +1 -1
- package/dist/chunks/{pty-krsqcmnj.js → kv-krsqcmnj.js} +1 -1
- package/dist/chunks/{pty-36b64kw5.js → kv-kxdfg7qh.js} +9 -9
- package/dist/chunks/{pty-5y71y6aq.js → kv-m1padgrh.js} +4 -4
- package/dist/chunks/{pty-m55whf0h.js → kv-m55whf0h.js} +2 -2
- package/dist/chunks/{pty-qf57kmn8.js → kv-mbv1w93f.js} +4 -4
- package/dist/chunks/{pty-c9ts76et.js → kv-mej0nrq3.js} +3 -3
- package/dist/chunks/{pty-mf0hyk7z.js → kv-mf0hyk7z.js} +1 -1
- package/dist/chunks/{pty-mh28new4.js → kv-mh28new4.js} +2 -2
- package/dist/chunks/{pty-mkaeg0rc.js → kv-mkaeg0rc.js} +6 -6
- package/dist/chunks/{pty-yd4t93pc.js → kv-mm1csdks.js} +4 -4
- package/dist/chunks/{pty-mnb85w6b.js → kv-mnb85w6b.js} +2 -2
- package/dist/chunks/{pty-5ev5dm41.js → kv-mnzk1cqa.js} +10 -10
- package/dist/chunks/{pty-mxvw03gv.js → kv-mxvw03gv.js} +1 -1
- package/dist/chunks/{pty-02jh672z.js → kv-n67f1qxt.js} +29 -29
- package/dist/chunks/{pty-mr7hz5nx.js → kv-nbawqw93.js} +8 -8
- package/dist/chunks/{pty-nesb2rcz.js → kv-nesb2rcz.js} +2 -2
- package/dist/chunks/{pty-ve0df51m.js → kv-njt4z54v.js} +6 -6
- package/dist/chunks/{pty-5t6ev4f9.js → kv-nkaqy11c.js} +59 -59
- package/dist/chunks/{pty-61y22362.js → kv-np30ra1e.js} +9 -9
- package/dist/chunks/{pty-nr76rjj3.js → kv-nr76rjj3.js} +2 -2
- package/dist/chunks/{pty-y369bt6x.js → kv-nv3q1d9w.js} +5 -5
- package/dist/chunks/{pty-4pb49s5g.js → kv-nxat12yk.js} +4 -4
- package/dist/chunks/{pty-nzrjycs5.js → kv-nzrjycs5.js} +1 -1
- package/dist/chunks/{pty-ezzbbpt3.js → kv-p7ceka9t.js} +14 -14
- package/dist/chunks/{pty-6q0m15b3.js → kv-p8fr6x1v.js} +2 -2
- package/dist/chunks/{pty-8s0m95jw.js → kv-p99drwz0.js} +5 -5
- package/dist/chunks/{pty-zgsy1s8j.js → kv-pc68jvdy.js} +4 -4
- package/dist/chunks/{pty-3c3xz5w2.js → kv-ppx35r9t.js} +4 -4
- package/dist/chunks/{pty-pq4b4pqk.js → kv-pq4b4pqk.js} +2 -2
- package/dist/chunks/{pty-ggww5s4h.js → kv-pqn75jxa.js} +13 -13
- package/dist/chunks/{pty-th5k7hy4.js → kv-pydw6mfr.js} +3 -3
- package/dist/chunks/{pty-bc1jme2z.js → kv-q0pv8ccx.js} +2 -2
- package/dist/chunks/{pty-q9b4qnv8.js → kv-q9b4qnv8.js} +2 -2
- package/dist/chunks/{pty-9dnj3g8a.js → kv-qbhcf2ms.js} +10 -10
- package/dist/chunks/{pty-qe0d689s.js → kv-qe0d689s.js} +2 -2
- package/dist/chunks/{pty-63k0vevy.js → kv-qrvmr4r5.js} +12 -12
- package/dist/chunks/{pty-tepwy0cv.js → kv-qt2qv4ez.js} +3 -3
- package/dist/chunks/{pty-vsp0ywmz.js → kv-qzt690fz.js} +2 -2
- package/dist/chunks/{pty-r13w8t0w.js → kv-r13w8t0w.js} +2 -2
- package/dist/chunks/{pty-r3k9abhd.js → kv-r3k9abhd.js} +2 -2
- package/dist/chunks/{pty-75bh2x5p.js → kv-r5svksvn.js} +13 -13
- package/dist/chunks/{pty-1rwfe3w7.js → kv-r97ytgf1.js} +6 -6
- package/dist/chunks/{pty-rahat93a.js → kv-rahat93a.js} +1 -1
- package/dist/chunks/{pty-rameyvmv.js → kv-rameyvmv.js} +1 -1
- package/dist/chunks/{pty-rbnp2c85.js → kv-rbnp2c85.js} +3 -3
- package/dist/chunks/{pty-rfbm65k8.js → kv-rfbm65k8.js} +1 -1
- package/dist/chunks/{pty-wpb53h8k.js → kv-rm7md962.js} +10 -10
- package/dist/chunks/{pty-gzya93qj.js → kv-rv0cjn1z.js} +3 -3
- package/dist/chunks/{pty-s33fw6zm.js → kv-s33fw6zm.js} +1 -1
- package/dist/chunks/{pty-jpw0c2hb.js → kv-sas94s9a.js} +2 -2
- package/dist/chunks/{pty-se1aqaya.js → kv-se1aqaya.js} +3 -3
- package/dist/chunks/{pty-smpeg8c9.js → kv-smpeg8c9.js} +2 -2
- package/dist/chunks/{pty-sw84ckhj.js → kv-sw84ckhj.js} +1 -1
- package/dist/chunks/{pty-9xz132x0.js → kv-t0h4pkp4.js} +28 -28
- package/dist/chunks/{pty-t14kykx1.js → kv-t14kykx1.js} +1 -1
- package/dist/chunks/{pty-x31hnj33.js → kv-ta3fzjwk.js} +3 -3
- package/dist/chunks/{pty-tcptxgyq.js → kv-tcptxgyq.js} +1 -1
- package/dist/chunks/{pty-8hx58cse.js → kv-td0yzbe3.js} +7 -7
- package/dist/chunks/{pty-wsb1nxx2.js → kv-te3xfmcs.js} +22 -22
- package/dist/chunks/{pty-tgbb2ckq.js → kv-tgbb2ckq.js} +2 -2
- package/dist/chunks/{pty-thstd87d.js → kv-thstd87d.js} +1 -1
- package/dist/chunks/{pty-x5g53fnr.js → kv-txmc67eg.js} +8 -8
- package/dist/chunks/{pty-k3ng8j0p.js → kv-txnnyt3a.js} +3 -3
- package/dist/chunks/{pty-aa3706nc.js → kv-tyymnqm2.js} +12 -12
- package/dist/chunks/{pty-v2wshkax.js → kv-v2wshkax.js} +1 -1
- package/dist/chunks/{pty-f0mp5ybc.js → kv-v7q0vmsp.js} +7 -7
- package/dist/chunks/{pty-v80zsxnb.js → kv-v80zsxnb.js} +1 -1
- package/dist/chunks/{pty-v972xay6.js → kv-v972xay6.js} +1 -1
- package/dist/chunks/{pty-v9bfv94f.js → kv-v9bfv94f.js} +1 -1
- package/dist/chunks/{pty-vcwr2vpf.js → kv-vcwr2vpf.js} +1 -1
- package/dist/chunks/{pty-vqbmgfq1.js → kv-vqbmgfq1.js} +3 -3
- package/dist/chunks/{pty-vycjsnjm.js → kv-vycjsnjm.js} +2 -2
- package/dist/chunks/{pty-vz89hfgr.js → kv-vz89hfgr.js} +1 -1
- package/dist/chunks/{pty-3e611gqc.js → kv-w2dqsb3p.js} +7 -7
- package/dist/chunks/{pty-wbkt8qpj.js → kv-wbkt8qpj.js} +1 -1
- package/dist/chunks/{pty-njhebxnk.js → kv-wc64byt1.js} +1 -1
- package/dist/chunks/{pty-wd268jeg.js → kv-wd268jeg.js} +1 -1
- package/dist/chunks/{pty-whk0g8cz.js → kv-whk0g8cz.js} +4 -4
- package/dist/chunks/{pty-c0wpjb9x.js → kv-whqpbpex.js} +3 -3
- package/dist/chunks/{pty-wmxdh12w.js → kv-wmxdh12w.js} +1 -1
- package/dist/chunks/{pty-wps8gh8n.js → kv-wps8gh8n.js} +2 -2
- package/dist/chunks/{pty-72qw6s34.js → kv-x6t3f0mt.js} +7 -7
- package/dist/chunks/{pty-x89rah0x.js → kv-x89rah0x.js} +1 -1
- package/dist/chunks/{pty-vvw8wy47.js → kv-xaamjw0t.js} +4 -4
- package/dist/chunks/{pty-xczfw7dq.js → kv-xczfw7dq.js} +1 -1
- package/dist/chunks/{pty-xgv25zxy.js → kv-xgv25zxy.js} +1 -1
- package/dist/chunks/{pty-gb6y46qa.js → kv-xk62382b.js} +7 -7
- package/dist/chunks/{pty-2bh65m2v.js → kv-xv3kk1c8.js} +4 -4
- package/dist/chunks/{pty-xwftk1fd.js → kv-xwftk1fd.js} +2 -2
- package/dist/chunks/{pty-xxpvz42q.js → kv-xxpvz42q.js} +3 -3
- package/dist/chunks/{pty-8v9vyqap.js → kv-xyd30y3n.js} +7 -7
- package/dist/chunks/{pty-y0x38cee.js → kv-y0x38cee.js} +1 -1
- package/dist/chunks/{pty-y198y2ra.js → kv-y198y2ra.js} +1 -1
- package/dist/chunks/{pty-gry11svd.js → kv-y4zy7z84.js} +7 -7
- package/dist/chunks/{pty-y67x6rf6.js → kv-y67x6rf6.js} +1 -1
- package/dist/chunks/{pty-d5c7vh5e.js → kv-y8bhddg5.js} +5 -5
- package/dist/chunks/{pty-y980s7ka.js → kv-y980s7ka.js} +3 -3
- package/dist/chunks/{pty-ybhfpy64.js → kv-ybhfpy64.js} +2 -2
- package/dist/chunks/{pty-yc2vxtaa.js → kv-yc2vxtaa.js} +2 -2
- package/dist/chunks/{pty-3tmjw1xx.js → kv-ydp36znb.js} +2 -2
- package/dist/chunks/{pty-yf0knd5z.js → kv-yf0knd5z.js} +2 -2
- package/dist/chunks/{pty-ygy0xbqa.js → kv-ygy0xbqa.js} +3 -3
- package/dist/chunks/{pty-0b0bqs4b.js → kv-yj6j21rs.js} +4 -4
- package/dist/chunks/{pty-fd9akh10.js → kv-yk8p9vz7.js} +14 -14
- package/dist/chunks/{pty-mzh6z5a7.js → kv-z0cdzwb8.js} +5 -5
- package/dist/chunks/{pty-cb10vk7s.js → kv-z0nqfmpz.js} +11 -11
- package/dist/chunks/{pty-zbqqnp0n.js → kv-zbqqnp0n.js} +1 -1
- package/dist/chunks/{pty-zdkg1k91.js → kv-zdkg1k91.js} +1 -1
- package/dist/chunks/{pty-41e94bne.js → kv-znpzapdm.js} +17 -17
- package/dist/chunks/{pty-ztjk4rav.js → kv-ztjk4rav.js} +4 -4
- package/dist/chunks/{pty-0jpabrph.js → kv-ztxrn9cn.js} +11 -11
- package/dist/chunks/{pty-agqwgkz2.js → kv-ztz12k4m.js} +8 -8
- package/dist/chunks/{pty-zxcy6vhn.js → kv-zxcy6vhn.js} +1 -1
- package/dist/chunks/{pty-zxe9jjhn.js → kv-zxe9jjhn.js} +2 -2
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +3 -3
- package/dist/command.js +70 -70
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +135 -135
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +170 -170
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +108 -108
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/variable.js +4 -4
- package/dist/config.js +113 -113
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -71
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
- package/dist/database/drizzle/effect-sqlite/index.js +13 -13
- package/dist/database/drizzle/effect-sqlite/session.js +12 -12
- package/dist/database/drizzle/index.js +14 -14
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +20 -20
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle.js +15 -15
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +77 -77
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +327 -327
- package/dist/effect/app-node-platform.js +3 -3
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +91 -91
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +93 -93
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +68 -68
- package/dist/file-mutation.js +92 -92
- package/dist/file-retention.js +2 -2
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +306 -306
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +96 -96
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +85 -85
- package/dist/generate.js +84 -84
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +20 -20
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +98 -98
- package/dist/image.js +98 -98
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +75 -75
- package/dist/job.js +72 -72
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +87 -87
- package/dist/location-mutation.js +84 -84
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +327 -327
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +96 -93
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +3 -3
- package/dist/models-dev.js +75 -75
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +105 -105
- package/dist/persistent-pty/binary.bun.js +2 -2
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/binary.workerd.js +1 -1
- package/dist/persistent-pty/daemon.js +2 -2
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +70 -70
- package/dist/plugin/agent.js +106 -106
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +170 -170
- package/dist/plugin/internal.js +300 -300
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +106 -106
- package/dist/plugin/promise.js +2 -2
- package/dist/plugin/provider/alibaba.js +3 -3
- package/dist/plugin/provider/amazon-bedrock.js +3 -3
- package/dist/plugin/provider/anthropic.js +3 -3
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +82 -82
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +114 -114
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +114 -114
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +93 -93
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +114 -114
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/runtime.js +158 -158
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +305 -305
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +115 -115
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +3 -3
- package/dist/plugin.js +171 -171
- package/dist/project/markers.js +74 -74
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +82 -82
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +1 -1
- package/dist/pty/pty.node.js +1 -1
- package/dist/pty/pty.workerd.js +1 -1
- package/dist/pty/schema.js +2 -2
- package/dist/pty/ticket.js +70 -70
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +77 -77
- package/dist/reference.js +75 -75
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +94 -94
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +142 -142
- package/dist/session/context.js +312 -312
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +156 -156
- package/dist/session/execution.js +125 -125
- package/dist/session/generate-node.js +313 -313
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +77 -77
- package/dist/session/info.js +92 -92
- package/dist/session/instruction-entry.js +73 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +101 -101
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +138 -138
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +90 -90
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +319 -319
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +83 -83
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +72 -72
- package/dist/session/runner/step.js +147 -147
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +100 -100
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +140 -140
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +158 -158
- package/dist/session/usage.js +2 -2
- package/dist/session.js +156 -156
- package/dist/shell/parse.js +9 -6
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/scan.js +1084 -365
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +106 -106
- package/dist/snapshot.js +85 -85
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +127 -127
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +117 -117
- package/dist/tool/plugin/grep.js +117 -117
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +120 -120
- package/dist/tool/plugin/shell.js +186 -186
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +183 -183
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +120 -120
- package/dist/types/shell/parse.d.ts +8 -6
- package/dist/types/shell/scan.d.ts +6 -3
- package/dist/util/array.js +1 -1
- package/dist/util/error.js +2 -2
- package/dist/util/identifier.js +1 -1
- package/dist/util/iife.js +2 -2
- package/dist/util/lazy.js +2 -2
- package/dist/util/process-lock-ffi.bun.js +1 -1
- package/dist/util/process-lock-ffi.node.js +1 -1
- package/dist/util/process-lock-ffi.workerd.js +1 -1
- package/dist/util/process-lock.js +1 -1
- package/dist/util/slug.js +2 -2
- package/dist/util/token.js +2 -2
- package/dist/util/which.js +2 -2
- package/dist/util/wildcard.js +2 -2
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +2 -2
- package/dist/v1/config/config.js +15 -15
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +2 -2
- package/dist/v1/config/layout.js +2 -2
- package/dist/v1/config/lsp.js +2 -2
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +19 -19
- package/dist/v1/config/permission.js +2 -2
- package/dist/v1/config/plugin.js +2 -2
- package/dist/v1/config/provider-options.js +2 -2
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +3 -3
- package/dist/v1/config/skills.js +2 -2
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +72 -72
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +69 -69
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +6 -6
- package/dist/worktree.js +87 -87
- package/package.json +8 -8
- package/dist/chunks/pty-nv9gjhyw.js +0 -712
- /package/dist/chunks/{pty-0cgt0xh2.js → kv-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{pty-0f48qthw.js → kv-0f48qthw.js} +0 -0
- /package/dist/chunks/{pty-0zz82cjq.js → kv-0zz82cjq.js} +0 -0
- /package/dist/chunks/{pty-1fb7bmpf.js → kv-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{pty-1wcz8fvj.js → kv-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{pty-29n7vfk2.js → kv-29n7vfk2.js} +0 -0
- /package/dist/chunks/{pty-2qdx6zz3.js → kv-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{pty-2xb0r1c6.js → kv-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{pty-39ktntah.js → kv-39ktntah.js} +0 -0
- /package/dist/chunks/{pty-3g3rpp2x.js → kv-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{pty-3q6gbwmd.js → kv-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{pty-3w3ybtfd.js → kv-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{pty-47ty4mvs.js → kv-47ty4mvs.js} +0 -0
- /package/dist/chunks/{pty-4b2tz2m9.js → kv-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{pty-5a5ch9ts.js → kv-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{pty-5va1yh78.js → kv-5va1yh78.js} +0 -0
- /package/dist/chunks/{pty-61ek4hj9.js → kv-61ek4hj9.js} +0 -0
- /package/dist/chunks/{pty-69qrqpw0.js → kv-69qrqpw0.js} +0 -0
- /package/dist/chunks/{pty-6zqxzw0a.js → kv-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{pty-7n9qwqk4.js → kv-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{pty-8nn8kqcn.js → kv-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{pty-8rpfd2h6.js → kv-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{pty-8sj3ajy5.js → kv-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{pty-8w9tzfz1.js → kv-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{pty-906y0b6d.js → kv-906y0b6d.js} +0 -0
- /package/dist/chunks/{pty-9dct5xhx.js → kv-9dct5xhx.js} +0 -0
- /package/dist/chunks/{pty-9sdtsapf.js → kv-9sdtsapf.js} +0 -0
- /package/dist/chunks/{pty-a02svayp.js → kv-a02svayp.js} +0 -0
- /package/dist/chunks/{pty-a83yvq99.js → kv-a83yvq99.js} +0 -0
- /package/dist/chunks/{pty-ayevdmef.js → kv-ayevdmef.js} +0 -0
- /package/dist/chunks/{pty-b02txbh8.js → kv-b02txbh8.js} +0 -0
- /package/dist/chunks/{pty-bbqs2y60.js → kv-bbqs2y60.js} +0 -0
- /package/dist/chunks/{pty-bjwj8hwv.js → kv-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{pty-brsh5f65.js → kv-brsh5f65.js} +0 -0
- /package/dist/chunks/{pty-bxdhjb3y.js → kv-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{pty-c77ad0vh.js → kv-c77ad0vh.js} +0 -0
- /package/dist/chunks/{pty-ck5pgha0.js → kv-ck5pgha0.js} +0 -0
- /package/dist/chunks/{pty-cm67rqy2.js → kv-cm67rqy2.js} +0 -0
- /package/dist/chunks/{pty-df3v2q6j.js → kv-df3v2q6j.js} +0 -0
- /package/dist/chunks/{pty-dhcq6c44.js → kv-dhcq6c44.js} +0 -0
- /package/dist/chunks/{pty-dht5baf0.js → kv-dht5baf0.js} +0 -0
- /package/dist/chunks/{pty-dkmkay92.js → kv-dkmkay92.js} +0 -0
- /package/dist/chunks/{pty-drean1vx.js → kv-drean1vx.js} +0 -0
- /package/dist/chunks/{pty-ehj9csmv.js → kv-ehj9csmv.js} +0 -0
- /package/dist/chunks/{pty-em6xpscd.js → kv-em6xpscd.js} +0 -0
- /package/dist/chunks/{pty-emmqknsm.js → kv-emmqknsm.js} +0 -0
- /package/dist/chunks/{pty-ezs3tagn.js → kv-ezs3tagn.js} +0 -0
- /package/dist/chunks/{pty-f14r7hfz.js → kv-f14r7hfz.js} +0 -0
- /package/dist/chunks/{pty-f4cp4g4a.js → kv-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{pty-faypg4r1.js → kv-faypg4r1.js} +0 -0
- /package/dist/chunks/{pty-fgbfdq62.js → kv-fgbfdq62.js} +0 -0
- /package/dist/chunks/{pty-gd5xeqc2.js → kv-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{pty-ghm4673n.js → kv-ghm4673n.js} +0 -0
- /package/dist/chunks/{pty-ghwjy7my.js → kv-ghwjy7my.js} +0 -0
- /package/dist/chunks/{pty-gqn2zsfg.js → kv-gqn2zsfg.js} +0 -0
- /package/dist/chunks/{pty-gy500k2r.js → kv-gy500k2r.js} +0 -0
- /package/dist/chunks/{pty-h846wrk2.js → kv-h846wrk2.js} +0 -0
- /package/dist/chunks/{pty-hzeg9cfr.js → kv-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{pty-j07kk359.js → kv-j07kk359.js} +0 -0
- /package/dist/chunks/{pty-jve7t217.js → kv-jve7t217.js} +0 -0
- /package/dist/chunks/{pty-k3e42drn.js → kv-k3e42drn.js} +0 -0
- /package/dist/chunks/{pty-k8b45nas.js → kv-k8b45nas.js} +0 -0
- /package/dist/chunks/{pty-kcacmy5c.js → kv-kcacmy5c.js} +0 -0
- /package/dist/chunks/{pty-kpdbz7gn.js → kv-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{pty-kxy11nzk.js → kv-kxy11nzk.js} +0 -0
- /package/dist/chunks/{pty-kyyqvx4s.js → kv-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{pty-m8cbvarh.js → kv-m8cbvarh.js} +0 -0
- /package/dist/chunks/{pty-ma60vzgv.js → kv-ma60vzgv.js} +0 -0
- /package/dist/chunks/{pty-n3m50c2t.js → kv-n3m50c2t.js} +0 -0
- /package/dist/chunks/{pty-nkm1m8dz.js → kv-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{pty-nsc0c3zb.js → kv-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{pty-qaarhjrp.js → kv-qaarhjrp.js} +0 -0
- /package/dist/chunks/{pty-qc167nrn.js → kv-qc167nrn.js} +0 -0
- /package/dist/chunks/{pty-qp95y4jb.js → kv-qp95y4jb.js} +0 -0
- /package/dist/chunks/{pty-r8f4w671.js → kv-r8f4w671.js} +0 -0
- /package/dist/chunks/{pty-rdfev9jy.js → kv-rdfev9jy.js} +0 -0
- /package/dist/chunks/{pty-rvfvac9x.js → kv-rvfvac9x.js} +0 -0
- /package/dist/chunks/{pty-s7whb9gt.js → kv-s7whb9gt.js} +0 -0
- /package/dist/chunks/{pty-se76j685.js → kv-se76j685.js} +0 -0
- /package/dist/chunks/{pty-sem2g21k.js → kv-sem2g21k.js} +0 -0
- /package/dist/chunks/{pty-sp575ygv.js → kv-sp575ygv.js} +0 -0
- /package/dist/chunks/{pty-tmb1f636.js → kv-tmb1f636.js} +0 -0
- /package/dist/chunks/{pty-ttxf0gsy.js → kv-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{pty-tvmhrvfj.js → kv-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{pty-v2adqbbe.js → kv-v2adqbbe.js} +0 -0
- /package/dist/chunks/{pty-wj4sxzqa.js → kv-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{pty-wwntjmk1.js → kv-wwntjmk1.js} +0 -0
- /package/dist/chunks/{pty-wyqjaaa5.js → kv-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{pty-x4q807cx.js → kv-x4q807cx.js} +0 -0
- /package/dist/chunks/{pty-xt0068v8.js → kv-xt0068v8.js} +0 -0
- /package/dist/chunks/{pty-yrqrg4vp.js → kv-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{pty-z47nswr2.js → kv-z47nswr2.js} +0 -0
- /package/dist/chunks/{pty-zsf8rs93.js → kv-zsf8rs93.js} +0 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_wildcard
|
|
3
|
+
} from "./kv-y67x6rf6.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_select
|
|
6
|
+
} from "./kv-1znkpcva.js";
|
|
7
|
+
import {
|
|
8
|
+
__export,
|
|
9
|
+
__require
|
|
10
|
+
} from "./kv-rvfvac9x.js";
|
|
11
|
+
|
|
12
|
+
// src/shell/parse.ts
|
|
13
|
+
var exports_parse = {};
|
|
14
|
+
__export(exports_parse, {
|
|
15
|
+
scanPortable: () => scanPortable,
|
|
16
|
+
scan: () => scan,
|
|
17
|
+
ShellParse: () => exports_parse
|
|
18
|
+
});
|
|
19
|
+
import { Effect } from "effect";
|
|
20
|
+
import { fileURLToPath } from "url";
|
|
21
|
+
import os from "os";
|
|
22
|
+
import path from "path";
|
|
23
|
+
import { shellParserWasm } from "#shell-parser-wasm";
|
|
24
|
+
var CWD = new Set(["cd", "chdir", "popd", "pushd", "push-location", "set-location"]);
|
|
25
|
+
var POWERSHELL_PATH_FLAGS = new Set(["-literalpath", "-path"]);
|
|
26
|
+
var ARITY = {
|
|
27
|
+
cat: 1,
|
|
28
|
+
cd: 1,
|
|
29
|
+
chmod: 1,
|
|
30
|
+
chown: 1,
|
|
31
|
+
cp: 1,
|
|
32
|
+
echo: 1,
|
|
33
|
+
env: 1,
|
|
34
|
+
export: 1,
|
|
35
|
+
grep: 1,
|
|
36
|
+
kill: 1,
|
|
37
|
+
killall: 1,
|
|
38
|
+
ln: 1,
|
|
39
|
+
ls: 1,
|
|
40
|
+
mkdir: 1,
|
|
41
|
+
mv: 1,
|
|
42
|
+
ps: 1,
|
|
43
|
+
pwd: 1,
|
|
44
|
+
rm: 1,
|
|
45
|
+
rmdir: 1,
|
|
46
|
+
sleep: 1,
|
|
47
|
+
source: 1,
|
|
48
|
+
tail: 1,
|
|
49
|
+
touch: 1,
|
|
50
|
+
unset: 1,
|
|
51
|
+
which: 1,
|
|
52
|
+
aws: 3,
|
|
53
|
+
az: 3,
|
|
54
|
+
bazel: 2,
|
|
55
|
+
brew: 2,
|
|
56
|
+
bun: 2,
|
|
57
|
+
"bun run": 3,
|
|
58
|
+
"bun x": 3,
|
|
59
|
+
cargo: 2,
|
|
60
|
+
"cargo add": 3,
|
|
61
|
+
"cargo run": 3,
|
|
62
|
+
cdk: 2,
|
|
63
|
+
cf: 2,
|
|
64
|
+
cmake: 2,
|
|
65
|
+
composer: 2,
|
|
66
|
+
consul: 2,
|
|
67
|
+
"consul kv": 3,
|
|
68
|
+
crictl: 2,
|
|
69
|
+
deno: 2,
|
|
70
|
+
"deno task": 3,
|
|
71
|
+
doctl: 3,
|
|
72
|
+
docker: 2,
|
|
73
|
+
"docker builder": 3,
|
|
74
|
+
"docker compose": 3,
|
|
75
|
+
"docker container": 3,
|
|
76
|
+
"docker image": 3,
|
|
77
|
+
"docker network": 3,
|
|
78
|
+
"docker volume": 3,
|
|
79
|
+
eksctl: 2,
|
|
80
|
+
"eksctl create": 3,
|
|
81
|
+
firebase: 2,
|
|
82
|
+
flyctl: 2,
|
|
83
|
+
gcloud: 3,
|
|
84
|
+
gh: 3,
|
|
85
|
+
git: 2,
|
|
86
|
+
"git config": 3,
|
|
87
|
+
"git remote": 3,
|
|
88
|
+
"git stash": 3,
|
|
89
|
+
go: 2,
|
|
90
|
+
gradle: 2,
|
|
91
|
+
helm: 2,
|
|
92
|
+
heroku: 2,
|
|
93
|
+
hugo: 2,
|
|
94
|
+
ip: 2,
|
|
95
|
+
"ip addr": 3,
|
|
96
|
+
"ip link": 3,
|
|
97
|
+
"ip netns": 3,
|
|
98
|
+
"ip route": 3,
|
|
99
|
+
kind: 2,
|
|
100
|
+
"kind create": 3,
|
|
101
|
+
kubectl: 2,
|
|
102
|
+
"kubectl kustomize": 3,
|
|
103
|
+
"kubectl rollout": 3,
|
|
104
|
+
kustomize: 2,
|
|
105
|
+
make: 2,
|
|
106
|
+
mc: 2,
|
|
107
|
+
"mc admin": 3,
|
|
108
|
+
minikube: 2,
|
|
109
|
+
mongosh: 2,
|
|
110
|
+
mysql: 2,
|
|
111
|
+
mvn: 2,
|
|
112
|
+
ng: 2,
|
|
113
|
+
npm: 2,
|
|
114
|
+
"npm exec": 3,
|
|
115
|
+
"npm init": 3,
|
|
116
|
+
"npm run": 3,
|
|
117
|
+
"npm view": 3,
|
|
118
|
+
npx: 2,
|
|
119
|
+
nvm: 2,
|
|
120
|
+
nx: 2,
|
|
121
|
+
openssl: 2,
|
|
122
|
+
"openssl req": 3,
|
|
123
|
+
"openssl x509": 3,
|
|
124
|
+
pip: 2,
|
|
125
|
+
pipenv: 2,
|
|
126
|
+
pnpm: 2,
|
|
127
|
+
"pnpm dlx": 3,
|
|
128
|
+
"pnpm exec": 3,
|
|
129
|
+
"pnpm run": 3,
|
|
130
|
+
poetry: 2,
|
|
131
|
+
podman: 2,
|
|
132
|
+
"podman container": 3,
|
|
133
|
+
"podman image": 3,
|
|
134
|
+
psql: 2,
|
|
135
|
+
pulumi: 2,
|
|
136
|
+
"pulumi stack": 3,
|
|
137
|
+
python: 2,
|
|
138
|
+
pyenv: 2,
|
|
139
|
+
rake: 2,
|
|
140
|
+
rbenv: 2,
|
|
141
|
+
"redis-cli": 2,
|
|
142
|
+
rustup: 2,
|
|
143
|
+
serverless: 2,
|
|
144
|
+
sfdx: 3,
|
|
145
|
+
skaffold: 2,
|
|
146
|
+
sls: 2,
|
|
147
|
+
sst: 2,
|
|
148
|
+
swift: 2,
|
|
149
|
+
systemctl: 2,
|
|
150
|
+
terraform: 2,
|
|
151
|
+
"terraform workspace": 3,
|
|
152
|
+
tmux: 2,
|
|
153
|
+
turbo: 2,
|
|
154
|
+
ufw: 2,
|
|
155
|
+
vault: 2,
|
|
156
|
+
"vault auth": 3,
|
|
157
|
+
"vault kv": 3,
|
|
158
|
+
vercel: 2,
|
|
159
|
+
volta: 2,
|
|
160
|
+
wp: 2,
|
|
161
|
+
yarn: 2,
|
|
162
|
+
"yarn dlx": 3,
|
|
163
|
+
"yarn run": 3
|
|
164
|
+
};
|
|
165
|
+
var PREFIX_LENGTH = Math.max(...Object.values(ARITY));
|
|
166
|
+
var scan = Effect.fnUntraced(function* (command, shell, cwd, options) {
|
|
167
|
+
if (options?.portable)
|
|
168
|
+
return yield* scanPortable(command, shell, cwd);
|
|
169
|
+
return yield* scanLegacy(command, shell, cwd);
|
|
170
|
+
});
|
|
171
|
+
var scanLegacy = Effect.fnUntraced(function* (command, shell, cwd) {
|
|
172
|
+
const parsers = yield* Effect.promise(load);
|
|
173
|
+
const powershell = exports_select.ps(shell);
|
|
174
|
+
const tree = (powershell ? parsers.ps : parsers.bash).parse(command);
|
|
175
|
+
if (!tree)
|
|
176
|
+
return yield* Effect.fail(new Error("Failed to parse shell command"));
|
|
177
|
+
return yield* Effect.acquireUseRelease(Effect.succeed(tree), (tree2) => Effect.sync(() => tree2.rootNode.descendantsOfType("command").reduce((result, node) => {
|
|
178
|
+
if (!node)
|
|
179
|
+
return result;
|
|
180
|
+
const command2 = parts(node);
|
|
181
|
+
const tokens = command2.map((part) => part.text);
|
|
182
|
+
if (tokens.length === 0)
|
|
183
|
+
return result;
|
|
184
|
+
const name = powershell ? tokens[0].toLowerCase() : tokens[0];
|
|
185
|
+
if (CWD.has(name)) {
|
|
186
|
+
result.directories.push(...directoryArgs(command2, powershell, cwd, shell));
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
189
|
+
result.commands.push({
|
|
190
|
+
resource: (node.parent?.type === "redirected_statement" ? node.parent.text : node.text).trim(),
|
|
191
|
+
save: `${prefix(tokens).join(" ")} *`
|
|
192
|
+
});
|
|
193
|
+
return result;
|
|
194
|
+
}, { commands: [], directories: [] })), (tree2) => Effect.sync(() => tree2.delete()));
|
|
195
|
+
});
|
|
196
|
+
var scanPortable = Effect.fnUntraced(function* (command, shell, cwd) {
|
|
197
|
+
const { ShellScan } = yield* Effect.tryPromise({
|
|
198
|
+
try: () => import("../shell/scan.js"),
|
|
199
|
+
catch: (cause) => new Error(`Portable shell scanner failed to load: ${cause}`, { cause })
|
|
200
|
+
});
|
|
201
|
+
const powershell = exports_select.ps(shell);
|
|
202
|
+
const result = powershell ? ShellScan.scanPowerShell(command) : ShellScan.scan(command);
|
|
203
|
+
if (result.kind === "opaque")
|
|
204
|
+
return yield* Effect.fail(new Error(`Portable shell scanner cannot analyze command: ${result.reason}`));
|
|
205
|
+
const output = { commands: [], directories: [] };
|
|
206
|
+
for (const item of result.commands) {
|
|
207
|
+
if (item.declaration)
|
|
208
|
+
continue;
|
|
209
|
+
const words = item.redirectWordCount === undefined ? item.rawWords : item.rawWords.slice(0, item.redirectWordCount);
|
|
210
|
+
if (powershell && item.statementHead && /^foreach(?:-|$)/i.test(words[0] ?? ""))
|
|
211
|
+
continue;
|
|
212
|
+
const name = powershell ? words[0]?.toLowerCase() : words[0];
|
|
213
|
+
if (CWD.has(name)) {
|
|
214
|
+
output.directories.push(...directoryArgs(words.flatMap((text) => {
|
|
215
|
+
const parameter = powershell ? /^(-(?:literalpath|path)):(.*)$/i.exec(text) : undefined;
|
|
216
|
+
if (parameter)
|
|
217
|
+
return [
|
|
218
|
+
{ type: "command_parameter", text: parameter[1] },
|
|
219
|
+
{ type: "word", text: parameter[2] }
|
|
220
|
+
];
|
|
221
|
+
return [{ type: powershell && text.startsWith("-") ? "command_parameter" : "word", text }];
|
|
222
|
+
}), powershell, cwd, shell));
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
const selected = prefix(words.slice(0, PREFIX_LENGTH));
|
|
226
|
+
const conventional = `${selected.join(" ")} *`;
|
|
227
|
+
const end = item.wordEnds?.[selected.length - 1];
|
|
228
|
+
const save = !powershell || end === undefined || exports_wildcard.match(item.resource, conventional) ? conventional : (() => {
|
|
229
|
+
const boundary = item.wordEnds?.find((value) => value >= end && (value >= item.resource.length || /\s/.test(item.resource[value]))) ?? end;
|
|
230
|
+
const separator = /^\s+(?:`(?:\r\n|\r|\n)\s*)?/.exec(item.resource.slice(boundary))?.[0];
|
|
231
|
+
return `${item.resource.slice(0, boundary)}${separator ?? " "}*`;
|
|
232
|
+
})();
|
|
233
|
+
output.commands.push({
|
|
234
|
+
resource: item.resource,
|
|
235
|
+
save
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
return output;
|
|
239
|
+
});
|
|
240
|
+
function parts(node) {
|
|
241
|
+
return Array.from({ length: node.childCount }).flatMap((_, index) => {
|
|
242
|
+
const child = node.child(index);
|
|
243
|
+
if (!child)
|
|
244
|
+
return [];
|
|
245
|
+
if (child.type === "command_elements")
|
|
246
|
+
return Array.from({ length: child.childCount }).flatMap((_2, itemIndex) => {
|
|
247
|
+
const item = child.child(itemIndex);
|
|
248
|
+
if (!item || item.type === "command_argument_sep" || item.type === "redirection")
|
|
249
|
+
return [];
|
|
250
|
+
return [{ type: item.type, text: item.text }];
|
|
251
|
+
});
|
|
252
|
+
if (!["command_name", "command_name_expr", "word", "string", "raw_string", "concatenation"].includes(child.type))
|
|
253
|
+
return [];
|
|
254
|
+
return [{ type: child.type, text: child.text }];
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
function directoryArgs(command, powershell, cwd, shell) {
|
|
258
|
+
if (!powershell)
|
|
259
|
+
return command.slice(1).filter((part) => !part.text.startsWith("-")).map((part) => directoryArgument(part.text, powershell, cwd, shell)).filter((part) => part !== undefined);
|
|
260
|
+
const directories = [];
|
|
261
|
+
let path2 = false;
|
|
262
|
+
for (const part of command.slice(1)) {
|
|
263
|
+
if (path2) {
|
|
264
|
+
const value2 = directoryArgument(part.text, powershell, cwd, shell);
|
|
265
|
+
if (value2)
|
|
266
|
+
directories.push(value2);
|
|
267
|
+
path2 = false;
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
if (part.type === "command_parameter") {
|
|
271
|
+
path2 = POWERSHELL_PATH_FLAGS.has(part.text.toLowerCase());
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
const value = directoryArgument(part.text, powershell, cwd, shell);
|
|
275
|
+
if (value)
|
|
276
|
+
directories.push(value);
|
|
277
|
+
}
|
|
278
|
+
return directories;
|
|
279
|
+
}
|
|
280
|
+
function directoryArgument(value, powershell, cwd, shell) {
|
|
281
|
+
const quote = value[0];
|
|
282
|
+
const text = (quote === '"' || quote === "'") && value.at(-1) === quote ? value.slice(1, -1) : value;
|
|
283
|
+
if (!powershell)
|
|
284
|
+
return expandKnownDirectory(text);
|
|
285
|
+
return expandKnownDirectory(text.replace(/\$\{env:([^}]+)\}/gi, (_, key) => environment(key) ?? "").replace(/\$env:([A-Za-z_][A-Za-z0-9_]*)/gi, (_, key) => environment(key) ?? "").replace(/\$(HOME|PWD|PSHOME)(?=$|[\\/])/gi, (_, key) => {
|
|
286
|
+
if (key.toUpperCase() === "HOME")
|
|
287
|
+
return os.homedir();
|
|
288
|
+
if (key.toUpperCase() === "PWD")
|
|
289
|
+
return cwd;
|
|
290
|
+
return path.dirname(shell);
|
|
291
|
+
}));
|
|
292
|
+
}
|
|
293
|
+
function expandKnownDirectory(value) {
|
|
294
|
+
if (value.includes("$") || value.includes("`") || value.startsWith("("))
|
|
295
|
+
return;
|
|
296
|
+
if (value === "~")
|
|
297
|
+
return os.homedir();
|
|
298
|
+
if (value.startsWith("~/") || value.startsWith("~\\"))
|
|
299
|
+
return path.join(os.homedir(), value.slice(2));
|
|
300
|
+
return value;
|
|
301
|
+
}
|
|
302
|
+
function environment(key) {
|
|
303
|
+
if (process.platform !== "win32")
|
|
304
|
+
return process.env[key];
|
|
305
|
+
const name = Object.keys(process.env).find((item) => item.toLowerCase() === key.toLowerCase());
|
|
306
|
+
return name ? process.env[name] : undefined;
|
|
307
|
+
}
|
|
308
|
+
function prefix(tokens) {
|
|
309
|
+
for (let length = tokens.length;length > 0; length--) {
|
|
310
|
+
const arity = ARITY[tokens.slice(0, length).join(" ")];
|
|
311
|
+
if (arity !== undefined)
|
|
312
|
+
return tokens.slice(0, arity);
|
|
313
|
+
}
|
|
314
|
+
return tokens.slice(0, 1);
|
|
315
|
+
}
|
|
316
|
+
function resolve(asset) {
|
|
317
|
+
if (asset.startsWith("file://"))
|
|
318
|
+
return fileURLToPath(asset);
|
|
319
|
+
if (path.isAbsolute(asset))
|
|
320
|
+
return asset;
|
|
321
|
+
return fileURLToPath(new URL(asset, import.meta.url));
|
|
322
|
+
}
|
|
323
|
+
var load = (() => {
|
|
324
|
+
let loading;
|
|
325
|
+
return () => loading ??= initialize();
|
|
326
|
+
})();
|
|
327
|
+
async function initialize() {
|
|
328
|
+
const { Parser, Language } = await import("web-tree-sitter");
|
|
329
|
+
await Parser.init({ locateFile: () => resolve(shellParserWasm.runtime) });
|
|
330
|
+
const [bashLanguage, psLanguage] = await Promise.all([
|
|
331
|
+
Language.load(resolve(shellParserWasm.bash)),
|
|
332
|
+
Language.load(resolve(shellParserWasm.powershell))
|
|
333
|
+
]);
|
|
334
|
+
const bash = new Parser;
|
|
335
|
+
bash.setLanguage(bashLanguage);
|
|
336
|
+
const ps = new Parser;
|
|
337
|
+
ps.setLanguage(psLanguage);
|
|
338
|
+
return { bash, ps };
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export { scan, scanPortable, exports_parse };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-8rpfd2h6.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-bjwj8hwv.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./kv-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -1,141 +1,141 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
_20260507164347_add_workspace_time_default
|
|
3
|
+
} from "./kv-se76j685.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
_20260501142318_next_venus_default
|
|
6
|
+
} from "./kv-nsc0c3zb.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
_20260819222447_session_viewed_state_default
|
|
9
|
+
} from "./kv-6zqxzw0a.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
_20260603160727_jittery_ezekiel_stane_default
|
|
12
|
+
} from "./kv-2qdx6zz3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
_20260227213759_add_session_workspace_id_default
|
|
15
|
+
} from "./kv-dhcq6c44.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
_20260622142730_simplify_session_context_epoch_default
|
|
18
|
+
} from "./kv-69qrqpw0.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
_20260811161259_execution_claim_attempts_default
|
|
21
|
+
} from "./kv-kyyqvx4s.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
_20260603001617_session_message_projection_indexes_default
|
|
24
|
+
} from "./kv-wyqjaaa5.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
_20260812213948_worktree_default
|
|
27
|
+
} from "./kv-em6xpscd.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
_20260611035744_credential_default
|
|
30
|
+
} from "./kv-ayevdmef.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
_20260413175956_chief_energizer_default
|
|
33
|
+
} from "./kv-x4q807cx.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
35
|
+
_20260511173437_session_metadata_default
|
|
36
|
+
} from "./kv-1fb7bmpf.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
_20260602002951_lowly_union_jack_default
|
|
39
|
+
} from "./kv-kxy11nzk.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
} from "./
|
|
41
|
+
_20260605003541_add_session_context_snapshot_default
|
|
42
|
+
} from "./kv-5va1yh78.js";
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
} from "./
|
|
44
|
+
_20260423070820_add_icon_url_override_default
|
|
45
|
+
} from "./kv-kpdbz7gn.js";
|
|
46
46
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./
|
|
47
|
+
_20260228203230_blue_harpoon_default
|
|
48
|
+
} from "./kv-gd5xeqc2.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./
|
|
50
|
+
_20260303231226_add_workspace_fields_default
|
|
51
|
+
} from "./kv-3g3rpp2x.js";
|
|
52
52
|
import {
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
53
|
+
_20260427172553_slow_nightmare_default
|
|
54
|
+
} from "./kv-9sdtsapf.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./
|
|
56
|
+
_20260812181746_session_inbox_default
|
|
57
|
+
} from "./kv-emmqknsm.js";
|
|
58
58
|
import {
|
|
59
|
-
|
|
60
|
-
} from "./
|
|
59
|
+
_20260804233008_loose_psylocke_default
|
|
60
|
+
} from "./kv-f14r7hfz.js";
|
|
61
61
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./
|
|
62
|
+
_20260805200742_import_legacy_credentials_default
|
|
63
|
+
} from "./kv-29n7vfk2.js";
|
|
64
64
|
import {
|
|
65
|
-
|
|
66
|
-
} from "./
|
|
65
|
+
_20260603141458_session_input_inbox_default
|
|
66
|
+
} from "./kv-8nn8kqcn.js";
|
|
67
67
|
import {
|
|
68
|
-
|
|
69
|
-
} from "./
|
|
68
|
+
_20260510033149_session_usage_default
|
|
69
|
+
} from "./kv-8sj3ajy5.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
72
|
-
} from "./
|
|
71
|
+
_20260601010001_normalize_storage_paths_default
|
|
72
|
+
} from "./kv-dht5baf0.js";
|
|
73
73
|
import {
|
|
74
|
-
|
|
75
|
-
} from "./
|
|
74
|
+
_20260211171708_add_project_commands_default
|
|
75
|
+
} from "./kv-wwntjmk1.js";
|
|
76
76
|
import {
|
|
77
|
-
|
|
78
|
-
} from "./
|
|
77
|
+
_20260309230000_move_org_to_state_default
|
|
78
|
+
} from "./kv-n3m50c2t.js";
|
|
79
79
|
import {
|
|
80
|
-
|
|
81
|
-
} from "./
|
|
80
|
+
_20260225215848_workspace_default
|
|
81
|
+
} from "./kv-9dct5xhx.js";
|
|
82
82
|
import {
|
|
83
|
-
|
|
84
|
-
} from "./
|
|
83
|
+
_20260622202450_simplify_session_input_default
|
|
84
|
+
} from "./kv-v2adqbbe.js";
|
|
85
85
|
import {
|
|
86
|
-
|
|
87
|
-
} from "./
|
|
86
|
+
_20260611192811_lush_chimera_default
|
|
87
|
+
} from "./kv-ghm4673n.js";
|
|
88
88
|
import {
|
|
89
|
-
|
|
90
|
-
} from "./
|
|
89
|
+
_20260504145000_add_sync_owner_default
|
|
90
|
+
} from "./kv-ma60vzgv.js";
|
|
91
91
|
import {
|
|
92
|
-
|
|
93
|
-
} from "./
|
|
92
|
+
_20260213144116_wakeful_the_professor_default
|
|
93
|
+
} from "./kv-nkm1m8dz.js";
|
|
94
94
|
import {
|
|
95
|
-
|
|
96
|
-
} from "./
|
|
95
|
+
_20260323234822_events_default
|
|
96
|
+
} from "./kv-tmb1f636.js";
|
|
97
97
|
import {
|
|
98
|
-
|
|
99
|
-
} from "./
|
|
98
|
+
_20260602182828_add_project_directories_default
|
|
99
|
+
} from "./kv-b02txbh8.js";
|
|
100
|
+
import {
|
|
101
|
+
_20260603040000_session_message_projection_order_default
|
|
102
|
+
} from "./kv-yrqrg4vp.js";
|
|
100
103
|
import {
|
|
101
104
|
_20260312043431_session_message_cursor_default
|
|
102
|
-
} from "./
|
|
105
|
+
} from "./kv-z47nswr2.js";
|
|
103
106
|
import {
|
|
104
|
-
|
|
105
|
-
} from "./
|
|
107
|
+
_20260622170816_reset_v2_session_state_default
|
|
108
|
+
} from "./kv-f4cp4g4a.js";
|
|
106
109
|
import {
|
|
107
|
-
|
|
108
|
-
} from "./
|
|
110
|
+
_20260604172448_event_sourced_session_input_default
|
|
111
|
+
} from "./kv-ghwjy7my.js";
|
|
109
112
|
import {
|
|
110
113
|
_20260808023530_workspace_domain_default
|
|
111
|
-
} from "./
|
|
112
|
-
import {
|
|
113
|
-
_20260225215848_workspace_default
|
|
114
|
-
} from "./pty-9dct5xhx.js";
|
|
115
|
-
import {
|
|
116
|
-
_20260601202201_amazing_prowler_default
|
|
117
|
-
} from "./pty-906y0b6d.js";
|
|
114
|
+
} from "./kv-cm67rqy2.js";
|
|
118
115
|
import {
|
|
119
116
|
_20260410174513_workspace_name_default
|
|
120
|
-
} from "./
|
|
117
|
+
} from "./kv-2xb0r1c6.js";
|
|
121
118
|
import {
|
|
122
|
-
|
|
123
|
-
} from "./
|
|
119
|
+
_20260823191254_nullable_workspace_binding_default
|
|
120
|
+
} from "./kv-fgbfdq62.js";
|
|
124
121
|
import {
|
|
125
|
-
|
|
126
|
-
} from "./
|
|
122
|
+
_20260605042240_add_context_epoch_agent_default
|
|
123
|
+
} from "./kv-qp95y4jb.js";
|
|
127
124
|
import {
|
|
128
|
-
|
|
129
|
-
} from "./
|
|
125
|
+
_20260127222353_familiar_lady_ursula_default
|
|
126
|
+
} from "./kv-3w3ybtfd.js";
|
|
130
127
|
import {
|
|
131
|
-
|
|
132
|
-
} from "./
|
|
128
|
+
_20260428004200_add_session_path_default
|
|
129
|
+
} from "./kv-faypg4r1.js";
|
|
133
130
|
import {
|
|
134
|
-
|
|
135
|
-
} from "./
|
|
131
|
+
_20260601202201_amazing_prowler_default
|
|
132
|
+
} from "./kv-906y0b6d.js";
|
|
136
133
|
import {
|
|
137
|
-
|
|
138
|
-
} from "./
|
|
134
|
+
_20260612174303_project_dir_strategy_default
|
|
135
|
+
} from "./kv-qc167nrn.js";
|
|
136
|
+
import {
|
|
137
|
+
_20260511000411_data_migration_state_default
|
|
138
|
+
} from "./kv-47ty4mvs.js";
|
|
139
139
|
|
|
140
140
|
// src/database/migration.gen.ts
|
|
141
141
|
var migrations = [
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PermissionTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-nesb2rcz.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_project
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-g7tgpc26.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_database
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./kv-2nmh62e0.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./kv-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/permission/saved.ts
|
|
15
15
|
var exports_saved = {};
|