@opencode-ai/core 0.0.0-dev-18438 → 0.0.0-dev-18455
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/{file-mutation-017jr2na.js → skill-017jr2na.js} +2 -2
- package/dist/chunks/{file-mutation-02dbfq60.js → skill-02dbfq60.js} +1 -1
- package/dist/chunks/{file-mutation-w9vbgtj2.js → skill-06ba5p2k.js} +7 -7
- package/dist/chunks/{file-mutation-nvfhn312.js → skill-0d4gr9t3.js} +3 -3
- package/dist/chunks/{file-mutation-0kvmztkf.js → skill-0kvmztkf.js} +1 -1
- package/dist/chunks/{file-mutation-vkcwcpfd.js → skill-0xamqvzp.js} +26 -26
- package/dist/chunks/{file-mutation-999qd968.js → skill-15hpbjb6.js} +4 -4
- package/dist/chunks/{file-mutation-18pv8fg3.js → skill-18pv8fg3.js} +2 -2
- package/dist/chunks/{file-mutation-k1156jr7.js → skill-1g9b0ja7.js} +5 -5
- package/dist/chunks/{file-mutation-1wr8td20.js → skill-1wr8td20.js} +4 -4
- package/dist/chunks/{file-mutation-9mhfpn53.js → skill-24e4r0ve.js} +3 -3
- package/dist/chunks/{file-mutation-5km91v77.js → skill-26gzzcn7.js} +11 -12
- package/dist/chunks/{file-mutation-8s6nt4jj.js → skill-27c9hvhy.js} +9 -9
- package/dist/chunks/{file-mutation-nf8692e3.js → skill-2bvcgznj.js} +3 -3
- package/dist/chunks/{file-mutation-w4p1pazm.js → skill-2hsgyk00.js} +7 -7
- package/dist/chunks/{file-mutation-2m0hgr65.js → skill-2m0hgr65.js} +1 -1
- package/dist/chunks/{file-mutation-2nmyybe0.js → skill-2nmyybe0.js} +1 -1
- package/dist/chunks/{file-mutation-2wds5nk3.js → skill-2wds5nk3.js} +1 -1
- package/dist/chunks/{file-mutation-fr0j8daw.js → skill-2xp3p2tx.js} +4 -4
- package/dist/chunks/{file-mutation-8n4nwbw9.js → skill-369vw9wt.js} +6 -6
- package/dist/chunks/{file-mutation-393a352g.js → skill-393a352g.js} +2 -2
- package/dist/chunks/{file-mutation-vkjqdj3q.js → skill-3ccqhm7e.js} +7 -7
- package/dist/chunks/{file-mutation-3g8vftxb.js → skill-3g8vftxb.js} +2 -2
- package/dist/chunks/{file-mutation-qpy46a54.js → skill-3h8f3e59.js} +2 -2
- package/dist/chunks/{file-mutation-ts0cr912.js → skill-3ns0qskk.js} +2 -2
- package/dist/chunks/{file-mutation-1phdbsby.js → skill-3qsxbp0r.js} +2 -2
- package/dist/chunks/{file-mutation-3qv8nf0b.js → skill-3qv8nf0b.js} +1 -1
- package/dist/chunks/{file-mutation-3thh6229.js → skill-3thh6229.js} +2 -2
- package/dist/chunks/{file-mutation-q5bkzh0b.js → skill-3vrbhh9k.js} +6 -6
- package/dist/chunks/{file-mutation-3sjs7eem.js → skill-3wj3ebwz.js} +7 -7
- package/dist/chunks/{file-mutation-cbw911a1.js → skill-3x2g2rsq.js} +6 -6
- package/dist/chunks/{file-mutation-2y6z2qam.js → skill-4a2q4hjc.js} +4 -4
- package/dist/chunks/{file-mutation-nqehr99m.js → skill-4b80kxyb.js} +10 -10
- package/dist/chunks/{file-mutation-62jjj101.js → skill-4khgxeps.js} +5 -5
- package/dist/chunks/{file-mutation-28e56re8.js → skill-4qpc3jvb.js} +4 -4
- package/dist/chunks/{file-mutation-4s2xwh5d.js → skill-4s2xwh5d.js} +3 -3
- package/dist/chunks/skill-4wg9vnss.js +126 -0
- package/dist/chunks/{file-mutation-mt6k97g9.js → skill-4xyjv63r.js} +7 -7
- package/dist/chunks/{file-mutation-4zzdwbaz.js → skill-4zzdwbaz.js} +2 -2
- package/dist/chunks/{file-mutation-50jxp3hw.js → skill-50jxp3hw.js} +1 -1
- package/dist/chunks/{file-mutation-57tzwnz4.js → skill-57tzwnz4.js} +1 -1
- package/dist/chunks/{file-mutation-58xdvehb.js → skill-58xdvehb.js} +1 -1
- package/dist/chunks/{file-mutation-5cdnkd94.js → skill-5cdnkd94.js} +3 -3
- package/dist/chunks/{file-mutation-5fe026tx.js → skill-5fe026tx.js} +3 -3
- package/dist/chunks/{file-mutation-5rs65q6p.js → skill-5rs65q6p.js} +1 -1
- package/dist/chunks/{file-mutation-d997h916.js → skill-5sk1pwx7.js} +10 -10
- package/dist/chunks/{file-mutation-q92rh3ys.js → skill-5t1q4mxr.js} +3 -3
- package/dist/chunks/{file-mutation-v3b76af4.js → skill-5t81mw0k.js} +9 -9
- package/dist/chunks/{file-mutation-5vcssjzn.js → skill-5vcssjzn.js} +1 -1
- package/dist/chunks/{file-mutation-dchkjjs1.js → skill-5y7h4bj8.js} +8 -8
- package/dist/chunks/{file-mutation-5z4zwtb4.js → skill-5z4zwtb4.js} +2 -2
- package/dist/chunks/{file-mutation-qcp608me.js → skill-60psewf4.js} +10 -10
- package/dist/chunks/{file-mutation-6272rtjg.js → skill-6272rtjg.js} +1 -1
- package/dist/chunks/{file-mutation-8ps8nyk2.js → skill-6f3s1jm0.js} +5 -5
- package/dist/chunks/{file-mutation-6ky7rqk7.js → skill-6ky7rqk7.js} +1 -1
- package/dist/chunks/{file-mutation-c1y2esry.js → skill-6sr61mxd.js} +149 -149
- package/dist/chunks/{file-mutation-6wkzvma0.js → skill-6wkzvma0.js} +2 -2
- package/dist/chunks/{file-mutation-dr11zgb7.js → skill-6zn876y6.js} +9 -9
- package/dist/chunks/{file-mutation-75h1hfe2.js → skill-75h1hfe2.js} +2 -2
- package/dist/chunks/{file-mutation-fpe6pj15.js → skill-7f1dmhs4.js} +3 -3
- package/dist/chunks/{file-mutation-na71a1q6.js → skill-7gnzsc2d.js} +9 -9
- package/dist/chunks/{file-mutation-7gqqz1s8.js → skill-7gqqz1s8.js} +1 -1
- package/dist/chunks/{file-mutation-7khw64yh.js → skill-7khw64yh.js} +1 -1
- package/dist/chunks/{file-mutation-7mrpdsq5.js → skill-7mrpdsq5.js} +1 -1
- package/dist/chunks/{file-mutation-3y332zs6.js → skill-7pwq7rg4.js} +34 -34
- package/dist/chunks/{file-mutation-7thnevmq.js → skill-7thnevmq.js} +2 -2
- package/dist/chunks/{file-mutation-7wcmqxrc.js → skill-7wcmqxrc.js} +1 -1
- package/dist/chunks/{file-mutation-hy5h57sv.js → skill-7xt49kp9.js} +6 -6
- package/dist/chunks/{file-mutation-yj6ryhp6.js → skill-866dyh7d.js} +3 -3
- package/dist/chunks/{file-mutation-8pngjawd.js → skill-8pngjawd.js} +2 -2
- package/dist/chunks/{file-mutation-8tv6syt7.js → skill-8tv6syt7.js} +1 -1
- package/dist/chunks/{file-mutation-fnqwrs5x.js → skill-8zn8jepd.js} +3 -3
- package/dist/chunks/{file-mutation-r7bf5zhc.js → skill-93vp3cy0.js} +9 -9
- package/dist/chunks/{file-mutation-9f0rnpkn.js → skill-9f0rnpkn.js} +1 -1
- package/dist/chunks/{file-mutation-jrnfrgqm.js → skill-acf0hg23.js} +5 -5
- package/dist/chunks/{file-mutation-fs74gpzf.js → skill-acpmxn1t.js} +6 -6
- package/dist/chunks/{file-mutation-ndbn72gb.js → skill-aem4bdcd.js} +7 -7
- package/dist/chunks/{file-mutation-dzxn1adt.js → skill-ah5zdbgd.js} +11 -11
- package/dist/chunks/{file-mutation-awg5d31a.js → skill-awg5d31a.js} +1 -1
- package/dist/chunks/{file-mutation-fmz75d00.js → skill-ay0xzms9.js} +17 -19
- package/dist/chunks/{file-mutation-ayrkq19e.js → skill-ayrkq19e.js} +6 -6
- package/dist/chunks/{file-mutation-y0vy7rg4.js → skill-bb1wj4fe.js} +3 -3
- package/dist/chunks/{file-mutation-bbhffenw.js → skill-bbhffenw.js} +3 -3
- package/dist/chunks/{file-mutation-bh1wr8rq.js → skill-bh1wr8rq.js} +2 -2
- package/dist/chunks/{file-mutation-bmknfyv0.js → skill-bmknfyv0.js} +2 -2
- package/dist/chunks/{file-mutation-vzsccv6j.js → skill-bqvndmyx.js} +2 -2
- package/dist/chunks/{file-mutation-fae4zhmz.js → skill-bw3h73zx.js} +4 -4
- package/dist/chunks/{file-mutation-y4b012z0.js → skill-bw5ex78b.js} +4 -4
- package/dist/chunks/{file-mutation-byab506k.js → skill-byab506k.js} +1 -1
- package/dist/chunks/{file-mutation-c4wcb9vc.js → skill-c4wcb9vc.js} +2 -2
- package/dist/chunks/{file-mutation-c8ya26sa.js → skill-c8ya26sa.js} +2 -2
- package/dist/chunks/{file-mutation-1tprw40j.js → skill-cfzjc750.js} +4 -4
- package/dist/chunks/{file-mutation-a962rfpq.js → skill-cksgnh6r.js} +12 -12
- package/dist/chunks/{file-mutation-ybfmqx7z.js → skill-csb2w1d4.js} +3 -3
- package/dist/chunks/{file-mutation-emk3tpt3.js → skill-ctvxjjkr.js} +3 -3
- package/dist/chunks/{file-mutation-d2gk9vpf.js → skill-d2gk9vpf.js} +2 -2
- package/dist/chunks/{file-mutation-d4h7vwhh.js → skill-d4h7vwhh.js} +2 -2
- package/dist/chunks/{file-mutation-qtyf6sz1.js → skill-d5b5ew2c.js} +15 -15
- package/dist/chunks/{file-mutation-hxnj4axv.js → skill-deygn3qk.js} +35 -35
- package/dist/chunks/{file-mutation-dhphtf1x.js → skill-dhphtf1x.js} +1 -1
- package/dist/chunks/{file-mutation-0mmm358z.js → skill-dsr1v7ft.js} +13 -13
- package/dist/chunks/{file-mutation-vbw95css.js → skill-dypysg9g.js} +7 -7
- package/dist/chunks/{file-mutation-e1z9a0ts.js → skill-e1z9a0ts.js} +2 -2
- package/dist/chunks/{file-mutation-qtwrjqjk.js → skill-e6t8h8b7.js} +5 -5
- package/dist/chunks/{file-mutation-xb9membg.js → skill-e992rssj.js} +7 -7
- package/dist/chunks/{file-mutation-rpcd1dj6.js → skill-e9b8n8y5.js} +3 -3
- package/dist/chunks/{file-mutation-wp0wtv0a.js → skill-ec365ta6.js} +89 -89
- package/dist/chunks/{file-mutation-ec8vrfw5.js → skill-ec8vrfw5.js} +1 -1
- package/dist/chunks/{file-mutation-eeta29b7.js → skill-eeta29b7.js} +4 -4
- package/dist/chunks/{file-mutation-n7zej1db.js → skill-eevw197a.js} +3 -3
- package/dist/chunks/{file-mutation-enpg66yn.js → skill-enpg66yn.js} +1 -1
- package/dist/chunks/{file-mutation-6y04s0qc.js → skill-ep9wy9fa.js} +3 -3
- package/dist/chunks/{file-mutation-g1q9rh0w.js → skill-ev9x6xck.js} +9 -9
- package/dist/chunks/{file-mutation-f7q7a28y.js → skill-f7q7a28y.js} +4 -4
- package/dist/chunks/{file-mutation-f9wt0tjw.js → skill-f9wt0tjw.js} +2 -2
- package/dist/chunks/{file-mutation-fb7nfzf2.js → skill-fb7nfzf2.js} +3 -3
- package/dist/chunks/{file-mutation-fgyjabww.js → skill-fgyjabww.js} +2 -2
- package/dist/chunks/{file-mutation-pw8xzpq8.js → skill-fjceq48r.js} +4 -4
- package/dist/chunks/{file-mutation-ecdw1ng1.js → skill-fm8j5g0a.js} +5 -5
- package/dist/chunks/{file-mutation-2epfqrkr.js → skill-frtcx1k5.js} +16 -16
- package/dist/chunks/{file-mutation-0w66x2pr.js → skill-g3esnz8m.js} +6 -6
- package/dist/chunks/{file-mutation-fk5wrjkd.js → skill-g7ja8fcb.js} +3 -3
- package/dist/chunks/{file-mutation-156jjxc3.js → skill-g8gc98mn.js} +6 -6
- package/dist/chunks/{file-mutation-gb1z7yet.js → skill-gb1z7yet.js} +2 -2
- package/dist/chunks/{file-mutation-b2hmh910.js → skill-gbv4g3za.js} +7 -7
- package/dist/chunks/{file-mutation-gcay93cp.js → skill-gcay93cp.js} +1 -1
- package/dist/chunks/{file-mutation-gd2xppx8.js → skill-gd2xppx8.js} +1 -1
- package/dist/chunks/{file-mutation-sedqejwk.js → skill-gd5z395z.js} +3 -3
- package/dist/chunks/{file-mutation-gpybhmhb.js → skill-gpybhmhb.js} +3 -3
- package/dist/chunks/{file-mutation-p3jjhmtc.js → skill-gscbzec0.js} +4 -4
- package/dist/chunks/{file-mutation-ydrpswz2.js → skill-h045h85n.js} +9 -9
- package/dist/chunks/{file-mutation-h12kt9pa.js → skill-h12kt9pa.js} +2 -2
- package/dist/chunks/{file-mutation-h94zdhz8.js → skill-h94zdhz8.js} +2 -2
- package/dist/chunks/{file-mutation-kecn0jfq.js → skill-h965tgtm.js} +1 -1
- package/dist/chunks/{file-mutation-hajywex7.js → skill-hajywex7.js} +2 -2
- package/dist/chunks/{file-mutation-e9b7sbbq.js → skill-hb98yta2.js} +4 -4
- package/dist/chunks/{file-mutation-gryr1xfa.js → skill-heyhsb0q.js} +12 -12
- package/dist/chunks/{file-mutation-320rr9jk.js → skill-hfxkeppd.js} +39 -39
- package/dist/chunks/{file-mutation-hp6rpdnc.js → skill-hp6rpdnc.js} +1 -1
- package/dist/chunks/{file-mutation-fxkp2x6m.js → skill-hrbt5jhh.js} +5 -5
- package/dist/chunks/{file-mutation-epmxm0vs.js → skill-hrnnqy62.js} +7 -7
- package/dist/chunks/{file-mutation-x5x42txz.js → skill-hthcf3e1.js} +11 -11
- package/dist/chunks/{file-mutation-vbrg02nx.js → skill-jt6pwd29.js} +2 -2
- package/dist/chunks/{file-mutation-h8mp0ahj.js → skill-jtqdds8b.js} +6 -6
- package/dist/chunks/{file-mutation-ywj8fmhk.js → skill-jwcbpdmq.js} +10 -10
- package/dist/chunks/{file-mutation-2977se6x.js → skill-k8fycgyp.js} +4 -4
- package/dist/chunks/{file-mutation-n55etntp.js → skill-kctv5aze.js} +9 -9
- package/dist/chunks/{file-mutation-kg1345f7.js → skill-kg1345f7.js} +1 -1
- package/dist/chunks/{file-mutation-kgkfyy1j.js → skill-kgkfyy1j.js} +2 -2
- package/dist/chunks/{file-mutation-kp1t5rcy.js → skill-kp1t5rcy.js} +1 -1
- package/dist/chunks/{file-mutation-933gms1r.js → skill-kr83v2sa.js} +5 -5
- package/dist/chunks/{file-mutation-krsqcmnj.js → skill-krsqcmnj.js} +1 -1
- package/dist/chunks/{file-mutation-kt491qp2.js → skill-kt491qp2.js} +3 -3
- package/dist/chunks/{file-mutation-8mb7bvkv.js → skill-kybdknhd.js} +2 -2
- package/dist/chunks/{file-mutation-yvbm9v24.js → skill-kzmbzkk9.js} +3 -3
- package/dist/chunks/{file-mutation-m55whf0h.js → skill-m55whf0h.js} +2 -2
- package/dist/chunks/{file-mutation-0dcvhkeb.js → skill-m8p4szt5.js} +31 -31
- package/dist/chunks/{file-mutation-edjvqbc5.js → skill-mecv3ep2.js} +6 -6
- package/dist/chunks/{file-mutation-mf0hyk7z.js → skill-mf0hyk7z.js} +1 -1
- package/dist/chunks/{file-mutation-mnb85w6b.js → skill-mnb85w6b.js} +2 -2
- package/dist/chunks/{file-mutation-skhctpwn.js → skill-mt1vcn2d.js} +4 -4
- package/dist/chunks/{file-mutation-m302a8yn.js → skill-mt233r3r.js} +12 -12
- package/dist/chunks/{file-mutation-6v0h0dpt.js → skill-mvm5h53m.js} +10 -10
- package/dist/chunks/{file-mutation-mxvw03gv.js → skill-mxvw03gv.js} +1 -1
- package/dist/chunks/{file-mutation-zbke8ppn.js → skill-mzxwmkac.js} +4 -4
- package/dist/chunks/{file-mutation-0j2z98y7.js → skill-n08zxyh4.js} +3 -3
- package/dist/chunks/{file-mutation-hb7m0w5b.js → skill-n426y8kb.js} +3 -3
- package/dist/chunks/{file-mutation-pywjbvew.js → skill-n7dzgwv7.js} +3 -3
- package/dist/chunks/{file-mutation-nr76rjj3.js → skill-nr76rjj3.js} +2 -2
- package/dist/chunks/{file-mutation-4ynsjs69.js → skill-nt1p2z46.js} +5 -5
- package/dist/chunks/{file-mutation-9knr9j12.js → skill-nwcv53ay.js} +10 -10
- package/dist/chunks/{file-mutation-nzrjycs5.js → skill-nzrjycs5.js} +1 -1
- package/dist/chunks/{file-mutation-pmz66sdp.js → skill-p407a01t.js} +4 -4
- package/dist/chunks/{file-mutation-pg55ndhs.js → skill-p5m4sa0v.js} +3 -3
- package/dist/chunks/{file-mutation-qy8q2e5d.js → skill-pmwgx2c5.js} +6 -6
- package/dist/chunks/{file-mutation-pq4b4pqk.js → skill-pq4b4pqk.js} +2 -2
- package/dist/chunks/{file-mutation-vzs25rsx.js → skill-ptgntdbm.js} +3 -3
- package/dist/chunks/{file-mutation-1xx6wjvg.js → skill-pw0zjx2a.js} +90 -88
- package/dist/chunks/{file-mutation-q606pcse.js → skill-q606pcse.js} +3 -3
- package/dist/chunks/{file-mutation-3y9k666x.js → skill-q62t408h.js} +13 -13
- package/dist/chunks/{file-mutation-q9b4qnv8.js → skill-q9b4qnv8.js} +2 -2
- package/dist/chunks/{file-mutation-g6r7a5pf.js → skill-qbc0wnpj.js} +13 -15
- package/dist/chunks/{file-mutation-qe0d689s.js → skill-qe0d689s.js} +2 -2
- package/dist/chunks/{file-mutation-wp6p1x2x.js → skill-qpgkfkrc.js} +8 -8
- package/dist/chunks/{file-mutation-8a2jghw2.js → skill-qssqfzx3.js} +9 -9
- package/dist/chunks/{file-mutation-r13w8t0w.js → skill-r13w8t0w.js} +2 -2
- package/dist/chunks/{file-mutation-r3k9abhd.js → skill-r3k9abhd.js} +2 -2
- package/dist/chunks/{file-mutation-r9d3d23r.js → skill-r9d3d23r.js} +1 -1
- package/dist/chunks/{file-mutation-apgn0w8k.js → skill-raat94bn.js} +9 -9
- package/dist/chunks/{file-mutation-rahat93a.js → skill-rahat93a.js} +1 -1
- package/dist/chunks/{file-mutation-rameyvmv.js → skill-rameyvmv.js} +1 -1
- package/dist/chunks/{file-mutation-rbnp2c85.js → skill-rbnp2c85.js} +3 -3
- package/dist/chunks/{file-mutation-cw0h10g5.js → skill-rdn0z3sn.js} +57 -57
- package/dist/chunks/{file-mutation-fec5tnc5.js → skill-rrj0rvqx.js} +3 -3
- package/dist/chunks/{file-mutation-y3p7g9ss.js → skill-rz1r17et.js} +4 -4
- package/dist/chunks/{file-mutation-s33fw6zm.js → skill-s33fw6zm.js} +1 -1
- package/dist/chunks/{file-mutation-zsh26239.js → skill-s3am766e.js} +4 -4
- package/dist/chunks/{file-mutation-2xhgwg78.js → skill-s95x2gra.js} +5 -5
- package/dist/chunks/{file-mutation-mf76sw1g.js → skill-sa6264fx.js} +12 -12
- package/dist/chunks/{file-mutation-55wtr2v6.js → skill-santbwcf.js} +10 -10
- package/dist/chunks/{file-mutation-smpeg8c9.js → skill-smpeg8c9.js} +2 -2
- package/dist/chunks/{file-mutation-fjyymxsg.js → skill-smxr45bh.js} +4 -4
- package/dist/chunks/{file-mutation-sw84ckhj.js → skill-sw84ckhj.js} +1 -1
- package/dist/chunks/{file-mutation-t0msbthe.js → skill-t0msbthe.js} +3 -3
- package/dist/chunks/{file-mutation-t14kykx1.js → skill-t14kykx1.js} +1 -1
- package/dist/chunks/{file-mutation-tcptxgyq.js → skill-tcptxgyq.js} +1 -1
- package/dist/chunks/{file-mutation-tgbb2ckq.js → skill-tgbb2ckq.js} +2 -2
- package/dist/chunks/{file-mutation-ngdp107e.js → skill-thp06bg4.js} +11 -11
- package/dist/chunks/{file-mutation-thstd87d.js → skill-thstd87d.js} +1 -1
- package/dist/chunks/skill-tv7n9mqj.js +187 -0
- package/dist/chunks/{file-mutation-hzjcndyp.js → skill-tx15xqcc.js} +11 -11
- package/dist/chunks/{file-mutation-txw0c3p3.js → skill-txw0c3p3.js} +2 -2
- package/dist/chunks/{file-mutation-xpszh06g.js → skill-v1hn1rwv.js} +59 -59
- package/dist/chunks/{file-mutation-v2wshkax.js → skill-v2wshkax.js} +1 -1
- package/dist/chunks/{file-mutation-v80zsxnb.js → skill-v80zsxnb.js} +1 -1
- package/dist/chunks/{file-mutation-v972xay6.js → skill-v972xay6.js} +1 -1
- package/dist/chunks/{file-mutation-v9bfv94f.js → skill-v9bfv94f.js} +1 -1
- package/dist/chunks/{file-mutation-vcwr2vpf.js → skill-vcwr2vpf.js} +1 -1
- package/dist/chunks/{file-mutation-vqbmgfq1.js → skill-vqbmgfq1.js} +3 -3
- package/dist/chunks/{file-mutation-9rzbak49.js → skill-vrmxkzbz.js} +6 -6
- package/dist/chunks/{file-mutation-8vntt78h.js → skill-vwejb97m.js} +3 -3
- package/dist/chunks/{file-mutation-vz89hfgr.js → skill-vz89hfgr.js} +1 -1
- package/dist/chunks/{file-mutation-f3sbe139.js → skill-w5gakb0r.js} +16 -16
- package/dist/chunks/{file-mutation-wbkt8qpj.js → skill-wbkt8qpj.js} +1 -1
- package/dist/chunks/{file-mutation-wd268jeg.js → skill-wd268jeg.js} +1 -1
- package/dist/chunks/{file-mutation-whk0g8cz.js → skill-whk0g8cz.js} +4 -4
- package/dist/chunks/{file-mutation-wmxdh12w.js → skill-wmxdh12w.js} +1 -1
- package/dist/chunks/{file-mutation-wps8gh8n.js → skill-wps8gh8n.js} +2 -2
- package/dist/chunks/{file-mutation-ah3hxxft.js → skill-wq6rgm3y.js} +22 -22
- package/dist/chunks/{file-mutation-t0eazc1k.js → skill-wwsvxtn9.js} +5 -5
- package/dist/chunks/{file-mutation-8xgmhtj7.js → skill-wxj62nw9.js} +3 -3
- package/dist/chunks/{file-mutation-kdsa96kh.js → skill-wz2yg4e5.js} +9 -9
- package/dist/chunks/{file-mutation-esdyhmcq.js → skill-x0t72v8n.js} +7 -7
- package/dist/chunks/{file-mutation-x89rah0x.js → skill-x89rah0x.js} +1 -1
- package/dist/chunks/{file-mutation-m0qpddxq.js → skill-xbbzabvr.js} +5 -5
- package/dist/chunks/{file-mutation-xczfw7dq.js → skill-xczfw7dq.js} +1 -1
- package/dist/chunks/{file-mutation-xgv25zxy.js → skill-xgv25zxy.js} +1 -1
- package/dist/chunks/{file-mutation-xj0xhwdw.js → skill-xj0xhwdw.js} +1 -1
- package/dist/chunks/{file-mutation-amkvt4zt.js → skill-xrnyb0xj.js} +3 -3
- package/dist/chunks/{file-mutation-xwftk1fd.js → skill-xwftk1fd.js} +2 -2
- package/dist/chunks/{file-mutation-xxpvz42q.js → skill-xxpvz42q.js} +3 -3
- package/dist/chunks/{file-mutation-y0x38cee.js → skill-y0x38cee.js} +1 -1
- package/dist/chunks/{file-mutation-y198y2ra.js → skill-y198y2ra.js} +1 -1
- package/dist/chunks/{file-mutation-y67x6rf6.js → skill-y67x6rf6.js} +1 -1
- package/dist/chunks/{file-mutation-n5sect2z.js → skill-y6nfh4xz.js} +5 -5
- package/dist/chunks/{file-mutation-y980s7ka.js → skill-y980s7ka.js} +3 -3
- package/dist/chunks/{file-mutation-ybhfpy64.js → skill-ybhfpy64.js} +2 -2
- package/dist/chunks/{file-mutation-yf0knd5z.js → skill-yf0knd5z.js} +2 -2
- package/dist/chunks/{file-mutation-pnn5yqq5.js → skill-yn5nwb4a.js} +2 -2
- package/dist/chunks/{file-mutation-mqhx7xvh.js → skill-ysk2z4pw.js} +11 -11
- package/dist/chunks/{file-mutation-w1nv5kdb.js → skill-yy2bx6h0.js} +6 -6
- package/dist/chunks/{file-mutation-j1gp6r12.js → skill-z31da2gp.js} +4 -4
- package/dist/chunks/{file-mutation-zbqqnp0n.js → skill-zbqqnp0n.js} +1 -1
- package/dist/chunks/{file-mutation-zdkg1k91.js → skill-zdkg1k91.js} +1 -1
- package/dist/chunks/{file-mutation-pccbk3ch.js → skill-zpwgfhtm.js} +3 -3
- package/dist/chunks/{file-mutation-g2wg3422.js → skill-zsnvaegx.js} +4 -4
- package/dist/chunks/{file-mutation-tdhr0vn5.js → skill-zv7nmfn4.js} +2 -2
- package/dist/chunks/{file-mutation-zxcy6vhn.js → skill-zxcy6vhn.js} +1 -1
- package/dist/chunks/{file-mutation-zxe9jjhn.js → skill-zxe9jjhn.js} +2 -2
- package/dist/chunks/{file-mutation-940z4vj6.js → skill-zxhm0kac.js} +8 -8
- 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 +136 -136
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +150 -150
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +131 -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 +109 -109
- package/dist/config/plugin/skill.js +139 -139
- 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 +17 -17
- 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 +93 -93
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +329 -328
- 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 +305 -304
- 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 +99 -98
- 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 +18 -18
- 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 +99 -98
- package/dist/image.js +99 -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 +329 -328
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +130 -129
- 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 +106 -106
- 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 +73 -73
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +107 -107
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +172 -171
- package/dist/plugin/internal.js +299 -298
- 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 +107 -107
- 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 +160 -159
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +137 -137
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +304 -303
- 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 +173 -172
- 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 +122 -122
- package/dist/session/context.js +314 -313
- 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 +158 -157
- package/dist/session/execution.js +126 -126
- package/dist/session/generate-node.js +315 -314
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +94 -94
- package/dist/session/inbox.js +91 -91
- package/dist/session/info.js +92 -92
- package/dist/session/instruction-entry.js +90 -90
- package/dist/session/instruction-state.js +91 -91
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +140 -139
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +101 -101
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +94 -94
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +321 -320
- 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 +149 -148
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +87 -87
- package/dist/session/stats.js +87 -87
- package/dist/session/store.js +101 -101
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +315 -314
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +160 -159
- package/dist/session/usage.js +2 -2
- package/dist/session.js +158 -157
- package/dist/shell/parse.js +6 -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 +1 -1
- 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 +108 -108
- package/dist/skill.js +107 -107
- 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 +129 -128
- package/dist/tool/plugin/edit.js +116 -116
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +119 -118
- package/dist/tool/plugin/grep.js +119 -118
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +122 -121
- package/dist/tool/plugin/shell.js +188 -187
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +185 -184
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +99 -98
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +122 -121
- package/dist/types/filesystem/search.d.ts +1 -1
- package/dist/types/github-copilot/responses/openai-error.d.ts +1 -1
- 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 +2 -2
- 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 +7 -7
- package/dist/chunks/file-mutation-wyy5sr7h.js +0 -300
- /package/dist/chunks/{file-mutation-0cgt0xh2.js → skill-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{file-mutation-0f48qthw.js → skill-0f48qthw.js} +0 -0
- /package/dist/chunks/{file-mutation-0zz82cjq.js → skill-0zz82cjq.js} +0 -0
- /package/dist/chunks/{file-mutation-1fb7bmpf.js → skill-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{file-mutation-1wcz8fvj.js → skill-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{file-mutation-29n7vfk2.js → skill-29n7vfk2.js} +0 -0
- /package/dist/chunks/{file-mutation-2qdx6zz3.js → skill-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{file-mutation-2xb0r1c6.js → skill-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{file-mutation-39ktntah.js → skill-39ktntah.js} +0 -0
- /package/dist/chunks/{file-mutation-3g3rpp2x.js → skill-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{file-mutation-3p1bsa7m.js → skill-3p1bsa7m.js} +0 -0
- /package/dist/chunks/{file-mutation-3q6gbwmd.js → skill-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{file-mutation-3w3ybtfd.js → skill-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{file-mutation-47ty4mvs.js → skill-47ty4mvs.js} +0 -0
- /package/dist/chunks/{file-mutation-4b2tz2m9.js → skill-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{file-mutation-5a5ch9ts.js → skill-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{file-mutation-5va1yh78.js → skill-5va1yh78.js} +0 -0
- /package/dist/chunks/{file-mutation-61ek4hj9.js → skill-61ek4hj9.js} +0 -0
- /package/dist/chunks/{file-mutation-69qrqpw0.js → skill-69qrqpw0.js} +0 -0
- /package/dist/chunks/{file-mutation-6zqxzw0a.js → skill-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{file-mutation-7n9qwqk4.js → skill-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{file-mutation-8nn8kqcn.js → skill-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{file-mutation-8rpfd2h6.js → skill-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{file-mutation-8sj3ajy5.js → skill-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{file-mutation-8w9tzfz1.js → skill-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{file-mutation-906y0b6d.js → skill-906y0b6d.js} +0 -0
- /package/dist/chunks/{file-mutation-9dct5xhx.js → skill-9dct5xhx.js} +0 -0
- /package/dist/chunks/{file-mutation-9sdtsapf.js → skill-9sdtsapf.js} +0 -0
- /package/dist/chunks/{file-mutation-a02svayp.js → skill-a02svayp.js} +0 -0
- /package/dist/chunks/{file-mutation-a83yvq99.js → skill-a83yvq99.js} +0 -0
- /package/dist/chunks/{file-mutation-a9vdgkgd.js → skill-a9vdgkgd.js} +0 -0
- /package/dist/chunks/{file-mutation-ayevdmef.js → skill-ayevdmef.js} +0 -0
- /package/dist/chunks/{file-mutation-b02txbh8.js → skill-b02txbh8.js} +0 -0
- /package/dist/chunks/{file-mutation-bbqs2y60.js → skill-bbqs2y60.js} +0 -0
- /package/dist/chunks/{file-mutation-bjwj8hwv.js → skill-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{file-mutation-brsh5f65.js → skill-brsh5f65.js} +0 -0
- /package/dist/chunks/{file-mutation-bxdhjb3y.js → skill-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{file-mutation-c77ad0vh.js → skill-c77ad0vh.js} +0 -0
- /package/dist/chunks/{file-mutation-cm67rqy2.js → skill-cm67rqy2.js} +0 -0
- /package/dist/chunks/{file-mutation-df3v2q6j.js → skill-df3v2q6j.js} +0 -0
- /package/dist/chunks/{file-mutation-dhcq6c44.js → skill-dhcq6c44.js} +0 -0
- /package/dist/chunks/{file-mutation-dht5baf0.js → skill-dht5baf0.js} +0 -0
- /package/dist/chunks/{file-mutation-dkmkay92.js → skill-dkmkay92.js} +0 -0
- /package/dist/chunks/{file-mutation-drean1vx.js → skill-drean1vx.js} +0 -0
- /package/dist/chunks/{file-mutation-ehj9csmv.js → skill-ehj9csmv.js} +0 -0
- /package/dist/chunks/{file-mutation-em6xpscd.js → skill-em6xpscd.js} +0 -0
- /package/dist/chunks/{file-mutation-emmqknsm.js → skill-emmqknsm.js} +0 -0
- /package/dist/chunks/{file-mutation-ezs3tagn.js → skill-ezs3tagn.js} +0 -0
- /package/dist/chunks/{file-mutation-f14r7hfz.js → skill-f14r7hfz.js} +0 -0
- /package/dist/chunks/{file-mutation-f4cp4g4a.js → skill-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{file-mutation-faypg4r1.js → skill-faypg4r1.js} +0 -0
- /package/dist/chunks/{file-mutation-fgbfdq62.js → skill-fgbfdq62.js} +0 -0
- /package/dist/chunks/{file-mutation-gd5xeqc2.js → skill-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{file-mutation-ghm4673n.js → skill-ghm4673n.js} +0 -0
- /package/dist/chunks/{file-mutation-ghwjy7my.js → skill-ghwjy7my.js} +0 -0
- /package/dist/chunks/{file-mutation-gy500k2r.js → skill-gy500k2r.js} +0 -0
- /package/dist/chunks/{file-mutation-hzeg9cfr.js → skill-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{file-mutation-j07kk359.js → skill-j07kk359.js} +0 -0
- /package/dist/chunks/{file-mutation-jqms80b0.js → skill-jqms80b0.js} +0 -0
- /package/dist/chunks/{file-mutation-jve7t217.js → skill-jve7t217.js} +0 -0
- /package/dist/chunks/{file-mutation-k3e42drn.js → skill-k3e42drn.js} +0 -0
- /package/dist/chunks/{file-mutation-k8b45nas.js → skill-k8b45nas.js} +0 -0
- /package/dist/chunks/{file-mutation-kcacmy5c.js → skill-kcacmy5c.js} +0 -0
- /package/dist/chunks/{file-mutation-kpdbz7gn.js → skill-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{file-mutation-kxy11nzk.js → skill-kxy11nzk.js} +0 -0
- /package/dist/chunks/{file-mutation-kyyqvx4s.js → skill-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{file-mutation-m8cbvarh.js → skill-m8cbvarh.js} +0 -0
- /package/dist/chunks/{file-mutation-ma60vzgv.js → skill-ma60vzgv.js} +0 -0
- /package/dist/chunks/{file-mutation-n3m50c2t.js → skill-n3m50c2t.js} +0 -0
- /package/dist/chunks/{file-mutation-nkm1m8dz.js → skill-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{file-mutation-nsc0c3zb.js → skill-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{file-mutation-qaarhjrp.js → skill-qaarhjrp.js} +0 -0
- /package/dist/chunks/{file-mutation-qc167nrn.js → skill-qc167nrn.js} +0 -0
- /package/dist/chunks/{file-mutation-qp95y4jb.js → skill-qp95y4jb.js} +0 -0
- /package/dist/chunks/{file-mutation-r8f4w671.js → skill-r8f4w671.js} +0 -0
- /package/dist/chunks/{file-mutation-rdfev9jy.js → skill-rdfev9jy.js} +0 -0
- /package/dist/chunks/{file-mutation-rvfvac9x.js → skill-rvfvac9x.js} +0 -0
- /package/dist/chunks/{file-mutation-s7whb9gt.js → skill-s7whb9gt.js} +0 -0
- /package/dist/chunks/{file-mutation-se76j685.js → skill-se76j685.js} +0 -0
- /package/dist/chunks/{file-mutation-sem2g21k.js → skill-sem2g21k.js} +0 -0
- /package/dist/chunks/{file-mutation-sp575ygv.js → skill-sp575ygv.js} +0 -0
- /package/dist/chunks/{file-mutation-tmb1f636.js → skill-tmb1f636.js} +0 -0
- /package/dist/chunks/{file-mutation-ttxf0gsy.js → skill-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{file-mutation-tvmhrvfj.js → skill-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{file-mutation-v2adqbbe.js → skill-v2adqbbe.js} +0 -0
- /package/dist/chunks/{file-mutation-wj4sxzqa.js → skill-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{file-mutation-wwntjmk1.js → skill-wwntjmk1.js} +0 -0
- /package/dist/chunks/{file-mutation-wyqjaaa5.js → skill-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{file-mutation-x4q807cx.js → skill-x4q807cx.js} +0 -0
- /package/dist/chunks/{file-mutation-xt0068v8.js → skill-xt0068v8.js} +0 -0
- /package/dist/chunks/{file-mutation-yrqrg4vp.js → skill-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{file-mutation-z47nswr2.js → skill-z47nswr2.js} +0 -0
- /package/dist/chunks/{file-mutation-zsf8rs93.js → skill-zsf8rs93.js} +0 -0
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_protected
|
|
3
|
-
} from "./file-mutation-kg1345f7.js";
|
|
4
|
-
import {
|
|
5
|
-
exports_ripgrep
|
|
6
|
-
} from "./file-mutation-2y6z2qam.js";
|
|
7
|
-
import {
|
|
8
|
-
exports_location
|
|
9
|
-
} from "./file-mutation-vzsccv6j.js";
|
|
10
|
-
import {
|
|
11
|
-
PositiveInt,
|
|
12
|
-
RelativePath
|
|
13
|
-
} from "./file-mutation-j07kk359.js";
|
|
14
|
-
import {
|
|
15
|
-
__export
|
|
16
|
-
} from "./file-mutation-rvfvac9x.js";
|
|
17
|
-
|
|
18
|
-
// src/filesystem/search.ts
|
|
19
|
-
var exports_search = {};
|
|
20
|
-
__export(exports_search, {
|
|
21
|
-
ripgrepLayer: () => ripgrepLayer,
|
|
22
|
-
node: () => node2,
|
|
23
|
-
layer: () => layer,
|
|
24
|
-
fffLayer: () => fffLayer,
|
|
25
|
-
configured: () => configured,
|
|
26
|
-
Service: () => Service2,
|
|
27
|
-
Options: () => Options,
|
|
28
|
-
FileSystemSearch: () => exports_search
|
|
29
|
-
});
|
|
30
|
-
import { makeLocationNode as makeLocationNode2 } from "@opencode-ai/util/effect/app-node";
|
|
31
|
-
import path2 from "path";
|
|
32
|
-
import { Clock, Context as Context2, Deferred, Duration, Effect as Effect2, Layer as Layer2, Schema as Schema2, Scope } from "effect";
|
|
33
|
-
import { Fff } from "#fff";
|
|
34
|
-
import fuzzysort from "fuzzysort";
|
|
35
|
-
|
|
36
|
-
// src/filesystem.ts
|
|
37
|
-
var exports_filesystem = {};
|
|
38
|
-
__export(exports_filesystem, {
|
|
39
|
-
node: () => node,
|
|
40
|
-
Submatch: () => Submatch,
|
|
41
|
-
Service: () => Service,
|
|
42
|
-
ReadInput: () => ReadInput,
|
|
43
|
-
Match: () => Match,
|
|
44
|
-
ListInput: () => ListInput,
|
|
45
|
-
GrepInput: () => GrepInput,
|
|
46
|
-
GlobInput: () => GlobInput,
|
|
47
|
-
FindInput: () => FindInput,
|
|
48
|
-
FileSystem: () => exports_filesystem,
|
|
49
|
-
Event: () => Event,
|
|
50
|
-
Entry: () => Entry2,
|
|
51
|
-
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS,
|
|
52
|
-
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT,
|
|
53
|
-
Content: () => Content
|
|
54
|
-
});
|
|
55
|
-
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
56
|
-
import path from "path";
|
|
57
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
58
|
-
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
59
|
-
import { Entry, FileSystem, FindInput } from "@opencode-ai/schema/filesystem";
|
|
60
|
-
import { Entry as Entry2, Match, Submatch } from "@opencode-ai/schema/filesystem";
|
|
61
|
-
var ReadInput = Schema.Struct({
|
|
62
|
-
path: RelativePath
|
|
63
|
-
});
|
|
64
|
-
var Content = Schema.Struct({
|
|
65
|
-
uri: Schema.String,
|
|
66
|
-
name: Schema.String.pipe(Schema.optional),
|
|
67
|
-
content: Schema.String,
|
|
68
|
-
encoding: Schema.Literals(["utf8", "base64"]),
|
|
69
|
-
mime: Schema.String
|
|
70
|
-
}).annotate({ identifier: "FileSystem.Content" });
|
|
71
|
-
var ListInput = Schema.Struct({
|
|
72
|
-
path: RelativePath.pipe(Schema.optional)
|
|
73
|
-
});
|
|
74
|
-
var DEFAULT_SEARCH_LIMIT = 100;
|
|
75
|
-
var DEFAULT_SEARCH_TIMEOUT_MS = 30000;
|
|
76
|
-
|
|
77
|
-
class GlobInput extends Schema.Class("FileSystem.GlobInput")({
|
|
78
|
-
pattern: Schema.String,
|
|
79
|
-
path: Schema.optionalKey(RelativePath),
|
|
80
|
-
limit: Schema.optionalKey(PositiveInt)
|
|
81
|
-
}) {
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
class GrepInput extends Schema.Class("FileSystem.GrepInput")({
|
|
85
|
-
pattern: Schema.String,
|
|
86
|
-
path: Schema.optionalKey(RelativePath),
|
|
87
|
-
include: Schema.optionalKey(Schema.String),
|
|
88
|
-
limit: Schema.optionalKey(PositiveInt)
|
|
89
|
-
}) {
|
|
90
|
-
}
|
|
91
|
-
var Event = FileSystem.Event;
|
|
92
|
-
|
|
93
|
-
class Service extends Context.Service()("@opencode/FileSystem") {
|
|
94
|
-
}
|
|
95
|
-
var baseLayer = Layer.effect(Service, Effect.gen(function* () {
|
|
96
|
-
const fs = yield* FSUtil.Service;
|
|
97
|
-
const location = yield* exports_location.Service;
|
|
98
|
-
const search = yield* exports_search.Service;
|
|
99
|
-
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
100
|
-
const resolve = Effect.fnUntraced(function* (input) {
|
|
101
|
-
const absolute = path.resolve(location.directory, input ?? ".");
|
|
102
|
-
if (!FSUtil.contains(location.directory, absolute))
|
|
103
|
-
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.orDie);
|
|
105
|
-
if (!FSUtil.contains(root, real))
|
|
106
|
-
return yield* Effect.die(new Error("Path escapes the location"));
|
|
107
|
-
return { absolute, real, directory: location.directory };
|
|
108
|
-
});
|
|
109
|
-
return Service.of({
|
|
110
|
-
find: search.find,
|
|
111
|
-
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
112
|
-
const target = yield* resolve(input.path);
|
|
113
|
-
const info = yield* fs.stat(target.real).pipe(Effect.orDie);
|
|
114
|
-
if (info.type !== "File")
|
|
115
|
-
return yield* Effect.die(new Error("Path is not a file"));
|
|
116
|
-
return {
|
|
117
|
-
content: yield* fs.readFile(target.real).pipe(Effect.orDie),
|
|
118
|
-
mime: FSUtil.mimeType(target.real)
|
|
119
|
-
};
|
|
120
|
-
}),
|
|
121
|
-
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
122
|
-
const target = yield* resolve(input.path);
|
|
123
|
-
const info = yield* fs.stat(target.real).pipe(Effect.orDie);
|
|
124
|
-
if (info.type !== "Directory")
|
|
125
|
-
return yield* Effect.die(new Error("Path is not a directory"));
|
|
126
|
-
return yield* fs.readDirectoryEntries(target.real).pipe(Effect.orDie, Effect.map((items) => items.flatMap((item) => {
|
|
127
|
-
if (item.type !== "file" && item.type !== "directory")
|
|
128
|
-
return [];
|
|
129
|
-
const absolute = path.join(target.absolute, item.name);
|
|
130
|
-
const relative = path.relative(target.directory, absolute);
|
|
131
|
-
return [
|
|
132
|
-
Entry.make({
|
|
133
|
-
path: RelativePath.make(relative + (item.type === "directory" ? path.sep : "")),
|
|
134
|
-
type: item.type
|
|
135
|
-
})
|
|
136
|
-
];
|
|
137
|
-
}).sort((a, b) => a.type === b.type ? a.path.localeCompare(b.path) : a.type === "directory" ? -1 : 1)));
|
|
138
|
-
})
|
|
139
|
-
});
|
|
140
|
-
}));
|
|
141
|
-
var node = makeLocationNode({
|
|
142
|
-
service: Service,
|
|
143
|
-
layer: baseLayer,
|
|
144
|
-
deps: [FSUtil.node, exports_location.node, exports_search.node]
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
// src/filesystem/search.ts
|
|
148
|
-
var Options = Schema2.Struct({
|
|
149
|
-
fff: Schema2.optional(Schema2.Boolean)
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
class Service2 extends Context2.Service()("@opencode/FileSystem/Search") {
|
|
153
|
-
}
|
|
154
|
-
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
155
|
-
function emptyIndex() {
|
|
156
|
-
return { files: new Map, directories: new Map };
|
|
157
|
-
}
|
|
158
|
-
function search(index, input) {
|
|
159
|
-
const items = input.type === "file" ? Array.from(index.files.values()) : input.type === "directory" ? Array.from(index.directories.values()) : [...index.files.values(), ...index.directories.values()];
|
|
160
|
-
const result = fuzzysort.go(input.query, items, { limit: input.limit ?? 50 });
|
|
161
|
-
fuzzysort.cleanup();
|
|
162
|
-
return result.map((item) => {
|
|
163
|
-
const relative = item.target;
|
|
164
|
-
const type = relative.endsWith(path2.sep) ? "directory" : "file";
|
|
165
|
-
return exports_filesystem.Entry.make({
|
|
166
|
-
path: RelativePath.make(relative),
|
|
167
|
-
type
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
var ripgrepLayer = Layer2.effect(Service2, Effect2.gen(function* () {
|
|
172
|
-
const location = yield* exports_location.Service;
|
|
173
|
-
const ripgrep = yield* exports_ripgrep.Service;
|
|
174
|
-
const scope = yield* Scope.Scope;
|
|
175
|
-
const clock = yield* Clock.Clock;
|
|
176
|
-
const home = exports_protected.isHome(location.directory);
|
|
177
|
-
let index = emptyIndex();
|
|
178
|
-
let initialized = false;
|
|
179
|
-
let settledAt = Number.NEGATIVE_INFINITY;
|
|
180
|
-
let refreshing;
|
|
181
|
-
const scan = Effect2.gen(function* () {
|
|
182
|
-
const next = emptyIndex();
|
|
183
|
-
const previous = index;
|
|
184
|
-
if (!initialized)
|
|
185
|
-
index = next;
|
|
186
|
-
yield* ripgrep.find({
|
|
187
|
-
cwd: location.directory,
|
|
188
|
-
pattern: "*",
|
|
189
|
-
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 1e5,
|
|
190
|
-
exclude: home ? [...exports_protected.names()].map((name) => `${name}/**`) : undefined,
|
|
191
|
-
onEntry: (entry) => Effect2.sync(() => {
|
|
192
|
-
next.files.set(entry.path, previous.files.get(entry.path) ?? fuzzysort.prepare(entry.path));
|
|
193
|
-
const parts = entry.path.split("/");
|
|
194
|
-
parts.slice(0, -1).forEach((_, offset) => {
|
|
195
|
-
const directory = parts.slice(0, offset + 1).join("/") + path2.sep;
|
|
196
|
-
if (!next.directories.has(directory))
|
|
197
|
-
next.directories.set(directory, previous.directories.get(directory) ?? fuzzysort.prepare(directory));
|
|
198
|
-
});
|
|
199
|
-
})
|
|
200
|
-
});
|
|
201
|
-
index = next;
|
|
202
|
-
initialized = true;
|
|
203
|
-
}).pipe(Effect2.orDie);
|
|
204
|
-
const refresh = Effect2.suspend(() => {
|
|
205
|
-
if (refreshing)
|
|
206
|
-
return initialized ? Effect2.void : Deferred.await(refreshing);
|
|
207
|
-
if (initialized && clock.currentTimeMillisUnsafe() < settledAt + REFRESH_INTERVAL)
|
|
208
|
-
return Effect2.void;
|
|
209
|
-
const attempt = Deferred.makeUnsafe();
|
|
210
|
-
refreshing = attempt;
|
|
211
|
-
return scan.pipe(Effect2.onExit((exit) => Effect2.sync(() => {
|
|
212
|
-
settledAt = clock.currentTimeMillisUnsafe();
|
|
213
|
-
if (refreshing === attempt)
|
|
214
|
-
refreshing = undefined;
|
|
215
|
-
Deferred.doneUnsafe(attempt, exit);
|
|
216
|
-
})), Effect2.forkIn(scope), Effect2.flatMap(() => initialized ? Effect2.void : Deferred.await(attempt)));
|
|
217
|
-
});
|
|
218
|
-
return Service2.of({
|
|
219
|
-
find: (input) => Effect2.gen(function* () {
|
|
220
|
-
yield* refresh;
|
|
221
|
-
return search(index, input);
|
|
222
|
-
})
|
|
223
|
-
});
|
|
224
|
-
}));
|
|
225
|
-
var fffLayer = Layer2.effect(Service2, Effect2.gen(function* () {
|
|
226
|
-
const location = yield* exports_location.Service;
|
|
227
|
-
const result = yield* Effect2.try({
|
|
228
|
-
try: () => Fff.create({
|
|
229
|
-
basePath: location.directory,
|
|
230
|
-
aiMode: true,
|
|
231
|
-
disableMmapCache: true,
|
|
232
|
-
disableContentIndexing: true
|
|
233
|
-
}),
|
|
234
|
-
catch: (cause) => cause
|
|
235
|
-
}).pipe(Effect2.catch((error) => Effect2.logWarning("failed to initialize fff", { error }).pipe(Effect2.as(undefined))));
|
|
236
|
-
if (!result?.ok) {
|
|
237
|
-
if (result)
|
|
238
|
-
yield* Effect2.logWarning("failed to initialize fff", { error: result.error });
|
|
239
|
-
return Service2.of({
|
|
240
|
-
find: () => Effect2.succeed([])
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
yield* Effect2.addFinalizer(() => Effect2.sync(() => result.value.destroy()).pipe(Effect2.ignore));
|
|
244
|
-
return Service2.of({
|
|
245
|
-
find: (input) => Effect2.sync(() => {
|
|
246
|
-
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
247
|
-
const items = (() => {
|
|
248
|
-
if (input.type === "file") {
|
|
249
|
-
const found2 = result.value.fileSearch(input.query.trim(), options);
|
|
250
|
-
if (!found2.ok)
|
|
251
|
-
throw found2.error;
|
|
252
|
-
return found2.value.items.map((item, index) => ({
|
|
253
|
-
path: item.relativePath,
|
|
254
|
-
type: "file",
|
|
255
|
-
score: found2.value.scores[index]?.total ?? 0
|
|
256
|
-
}));
|
|
257
|
-
}
|
|
258
|
-
if (input.type === "directory") {
|
|
259
|
-
const found2 = result.value.directorySearch(input.query.trim(), options);
|
|
260
|
-
if (!found2.ok)
|
|
261
|
-
throw found2.error;
|
|
262
|
-
return found2.value.items.map((item, index) => ({
|
|
263
|
-
path: item.relativePath,
|
|
264
|
-
type: "directory",
|
|
265
|
-
score: found2.value.scores[index]?.total ?? 0
|
|
266
|
-
}));
|
|
267
|
-
}
|
|
268
|
-
const found = result.value.mixedSearch(input.query.trim(), options);
|
|
269
|
-
if (!found.ok)
|
|
270
|
-
throw found.error;
|
|
271
|
-
return found.value.items.map((item, index) => ({
|
|
272
|
-
path: item.item.relativePath,
|
|
273
|
-
type: item.type,
|
|
274
|
-
score: found.value.scores[index]?.total ?? 0
|
|
275
|
-
}));
|
|
276
|
-
})();
|
|
277
|
-
return items.sort((a, b) => b.score - a.score || a.path.length - b.path.length).map((item) => {
|
|
278
|
-
const relative = item.path.replaceAll("\\", "/").replace(/\/$/, "");
|
|
279
|
-
return exports_filesystem.Entry.make({
|
|
280
|
-
path: RelativePath.make(relative + (item.type === "directory" ? path2.sep : "")),
|
|
281
|
-
type: item.type
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
})
|
|
285
|
-
});
|
|
286
|
-
}));
|
|
287
|
-
var layer = (options) => Layer2.unwrap(Effect2.gen(function* () {
|
|
288
|
-
const location = yield* exports_location.Service;
|
|
289
|
-
if (location.workspaceID)
|
|
290
|
-
return ripgrepLayer;
|
|
291
|
-
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
292
|
-
return ripgrepLayer;
|
|
293
|
-
return location.vcs && !exports_protected.isHome(location.directory) ? fffLayer : ripgrepLayer;
|
|
294
|
-
}));
|
|
295
|
-
function configured(options) {
|
|
296
|
-
return makeLocationNode2({ service: Service2, layer: layer(options), deps: [exports_location.node, exports_ripgrep.node] });
|
|
297
|
-
}
|
|
298
|
-
var node2 = configured();
|
|
299
|
-
|
|
300
|
-
export { Options, Service2 as Service, ripgrepLayer, fffLayer, layer, configured, node2 as node, exports_search, FindInput, ReadInput, Content, ListInput, DEFAULT_SEARCH_LIMIT, DEFAULT_SEARCH_TIMEOUT_MS, GlobInput, GrepInput, Event, Service as Service1, node as node1, exports_filesystem, Entry2 as Entry, Match, Submatch };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|