@opencode/core 0.0.0-dev-20757 → 0.0.0-dev-20760
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 +1 -1
- package/dist/agent.js +82 -82
- package/dist/aisdk-native.js +90 -90
- package/dist/aisdk.js +95 -95
- package/dist/app.js +9 -9
- package/dist/bus.js +70 -70
- package/dist/chunks/{persistent-pty-pa5kmbm8.js → skill-04mbc03a.js} +20 -20
- package/dist/chunks/{persistent-pty-52aykxm2.js → skill-0902bvg8.js} +9 -9
- package/dist/chunks/{persistent-pty-5ns9c0w0.js → skill-0eqx75h4.js} +10 -10
- package/dist/chunks/{persistent-pty-zgtbcyex.js → skill-0hffe5rb.js} +4 -4
- package/dist/chunks/{persistent-pty-0paq2nw3.js → skill-0paq2nw3.js} +1 -1
- package/dist/chunks/{persistent-pty-bdz6xynk.js → skill-0rtws61d.js} +11 -11
- package/dist/chunks/{persistent-pty-0vbcp93d.js → skill-0vbcp93d.js} +2 -2
- package/dist/chunks/{persistent-pty-094m2jc0.js → skill-0wdexvxm.js} +7 -7
- package/dist/chunks/{persistent-pty-qnpg3zjj.js → skill-0y5zvsv8.js} +16 -16
- package/dist/chunks/{persistent-pty-eavrwy4k.js → skill-1154za8m.js} +25 -25
- package/dist/chunks/{persistent-pty-0qd1w1j5.js → skill-12x48tfh.js} +9 -9
- package/dist/chunks/{persistent-pty-1dazxqgg.js → skill-1dazxqgg.js} +2 -2
- package/dist/chunks/{persistent-pty-1h6cxm7v.js → skill-1dy6vzzp.js} +20 -20
- package/dist/chunks/{persistent-pty-bgs46qwx.js → skill-1fmrbde1.js} +8 -8
- package/dist/chunks/{persistent-pty-xn95c7ne.js → skill-1khdm3wj.js} +20 -20
- package/dist/chunks/{persistent-pty-a5r4xth4.js → skill-1r53ywk9.js} +13 -13
- package/dist/chunks/{persistent-pty-9pkkzrmj.js → skill-207ajt2h.js} +5 -5
- package/dist/chunks/{persistent-pty-smespjaf.js → skill-21fz40hq.js} +8 -8
- package/dist/chunks/{persistent-pty-fswapqhq.js → skill-265w8d3s.js} +13 -13
- package/dist/chunks/{persistent-pty-8ehqpd8r.js → skill-2833za8j.js} +32 -32
- package/dist/chunks/{persistent-pty-2a5m3afh.js → skill-2a5m3afh.js} +1 -1
- package/dist/chunks/{persistent-pty-8kkb60sm.js → skill-2f42t4e4.js} +2 -2
- package/dist/chunks/{persistent-pty-qgn6gcr1.js → skill-2k8khapm.js} +5 -5
- package/dist/chunks/{persistent-pty-y8swg4d6.js → skill-2mfvpe9w.js} +41 -41
- package/dist/chunks/{persistent-pty-38aq64y5.js → skill-2p92bsdk.js} +20 -20
- package/dist/chunks/{persistent-pty-wxagtd6d.js → skill-2sd1nppe.js} +46 -46
- package/dist/chunks/{persistent-pty-q76v78a4.js → skill-2wh5fw73.js} +20 -20
- package/dist/chunks/{persistent-pty-5kbfdsfa.js → skill-2xrg438h.js} +8 -8
- package/dist/chunks/{persistent-pty-h2saytx3.js → skill-30m2v4sk.js} +15 -15
- package/dist/chunks/{persistent-pty-ysge6ncn.js → skill-380qvp89.js} +49 -45
- package/dist/chunks/{persistent-pty-abkq1pjw.js → skill-3a45ycq8.js} +16 -16
- package/dist/chunks/{persistent-pty-h2b79v29.js → skill-3cegwx68.js} +2 -2
- package/dist/chunks/{persistent-pty-3fc6dm20.js → skill-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → skill-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-kxrxvkx4.js → skill-3pc526mj.js} +41 -41
- package/dist/chunks/{persistent-pty-3smtnn6g.js → skill-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → skill-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-3zsf4n22.js → skill-3zsf4n22.js} +1 -1
- package/dist/chunks/{persistent-pty-0r3c1bmw.js → skill-47jkzegy.js} +5 -5
- package/dist/chunks/{persistent-pty-prq7hedt.js → skill-4jyvzrab.js} +9 -9
- package/dist/chunks/{persistent-pty-j3yw4q5j.js → skill-4psgr168.js} +8 -8
- package/dist/chunks/{persistent-pty-4ts7tf6z.js → skill-4ts7tf6z.js} +2 -2
- package/dist/chunks/skill-4v7qdvcn.js +18 -0
- package/dist/chunks/{persistent-pty-ch4t865s.js → skill-4xhhjths.js} +8 -8
- package/dist/chunks/{persistent-pty-g6yfr6ja.js → skill-4xpgt2w9.js} +5 -5
- package/dist/chunks/{persistent-pty-map7adnp.js → skill-52yrtfe6.js} +40 -40
- package/dist/chunks/{persistent-pty-54ma36ye.js → skill-54ma36ye.js} +1 -1
- package/dist/chunks/{persistent-pty-6kgg59pf.js → skill-5ahstw8v.js} +5 -5
- package/dist/chunks/{persistent-pty-zx4j0b0b.js → skill-5dwqhvmm.js} +14 -14
- package/dist/chunks/{persistent-pty-g7tbsqx0.js → skill-5jpmtgs8.js} +18 -18
- package/dist/chunks/{persistent-pty-5m9w47nd.js → skill-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-5t3nmthw.js → skill-5t3nmthw.js} +2 -2
- package/dist/chunks/{persistent-pty-32c2s8c6.js → skill-5xaj4ggx.js} +11 -11
- package/dist/chunks/{persistent-pty-drnf6xwf.js → skill-63db42yp.js} +2 -2
- package/dist/chunks/{persistent-pty-1d4qa1yv.js → skill-68abg5kb.js} +20 -20
- package/dist/chunks/{persistent-pty-d3t94897.js → skill-6a89nmhr.js} +14 -14
- package/dist/chunks/{persistent-pty-kwdk7p8f.js → skill-6b6zkn31.js} +26 -26
- package/dist/chunks/{persistent-pty-snd67510.js → skill-6c1xbava.js} +30 -30
- package/dist/chunks/{persistent-pty-40mpssyg.js → skill-6das53tm.js} +30 -30
- package/dist/chunks/{persistent-pty-7n4w6ry8.js → skill-6jd7hqhx.js} +15 -15
- package/dist/chunks/{persistent-pty-fjedc0n6.js → skill-6mdae8er.js} +17 -17
- package/dist/chunks/{persistent-pty-6t4hr8r6.js → skill-6t4hr8r6.js} +1 -1
- package/dist/chunks/{persistent-pty-mw3kjfgh.js → skill-6xb3g4e9.js} +16 -16
- package/dist/chunks/{persistent-pty-6xb47vfp.js → skill-6xb47vfp.js} +1 -1
- package/dist/chunks/{persistent-pty-3md3hry7.js → skill-6znh0kbk.js} +24 -24
- package/dist/chunks/{persistent-pty-2h6g5cw7.js → skill-70kp3xh7.js} +39 -39
- package/dist/chunks/{persistent-pty-ea8jtqgg.js → skill-7333qy8y.js} +9 -9
- package/dist/chunks/{persistent-pty-ygny92wv.js → skill-74ye0k76.js} +6 -6
- package/dist/chunks/{persistent-pty-7bmhse3q.js → skill-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-r21y2bjh.js → skill-7rspqtd7.js} +86 -86
- package/dist/chunks/{persistent-pty-eq1pz5kg.js → skill-7yh4e7ss.js} +3 -3
- package/dist/chunks/{persistent-pty-pnzf6mjf.js → skill-7zt5x37y.js} +1 -1
- package/dist/chunks/{persistent-pty-hekf1c5w.js → skill-80z4mvhs.js} +5 -5
- package/dist/chunks/{persistent-pty-yq6mmt2t.js → skill-83q2r6tn.js} +4 -4
- package/dist/chunks/{persistent-pty-1dvck2a7.js → skill-84h8c373.js} +2 -2
- package/dist/chunks/{persistent-pty-84txncab.js → skill-84txncab.js} +1 -1
- package/dist/chunks/{persistent-pty-49exe669.js → skill-84zcxbc9.js} +5 -5
- package/dist/chunks/{persistent-pty-tcezcvh9.js → skill-89znhe33.js} +4 -4
- package/dist/chunks/{persistent-pty-77zs8g8n.js → skill-8axdpjc9.js} +14 -14
- package/dist/chunks/{persistent-pty-1t9yseh2.js → skill-8bqkepy5.js} +1 -1
- package/dist/chunks/{persistent-pty-8d7r5vzw.js → skill-8d7r5vzw.js} +1 -1
- package/dist/chunks/{persistent-pty-frm38rby.js → skill-8hj8r0wk.js} +24 -24
- package/dist/chunks/{persistent-pty-8m6m0r52.js → skill-8m6m0r52.js} +1 -1
- package/dist/chunks/{persistent-pty-bkkeq90m.js → skill-8t1p2d4f.js} +33 -33
- package/dist/chunks/{persistent-pty-tjwtrm03.js → skill-8zf35w4m.js} +5 -5
- package/dist/chunks/{persistent-pty-3j0nkq0d.js → skill-93tfm6kk.js} +21 -21
- package/dist/chunks/{persistent-pty-tmrd8qpe.js → skill-9wf975y4.js} +9 -9
- package/dist/chunks/{persistent-pty-e4bp7q5e.js → skill-a1fvq3z4.js} +11 -11
- package/dist/chunks/{persistent-pty-t1dawjzh.js → skill-a2qe2ev9.js} +8 -8
- package/dist/chunks/{persistent-pty-ybpy5619.js → skill-a5qvk4tq.js} +36 -36
- package/dist/chunks/{persistent-pty-50mzsvk4.js → skill-a8bn8zg0.js} +4 -4
- package/dist/chunks/{persistent-pty-aaet6srn.js → skill-aaet6srn.js} +2 -2
- package/dist/chunks/{persistent-pty-nam5nxhh.js → skill-agd1asbq.js} +4 -4
- package/dist/chunks/{persistent-pty-vws08ngw.js → skill-arjx5va6.js} +27 -27
- package/dist/chunks/{persistent-pty-yhf6nfj4.js → skill-av9mcy8y.js} +24 -24
- package/dist/chunks/{persistent-pty-4ngp4gmj.js → skill-ayepesx3.js} +13 -13
- package/dist/chunks/{persistent-pty-2vh07w6d.js → skill-b3xqyrms.js} +24 -24
- package/dist/chunks/{persistent-pty-b6gygkdw.js → skill-b6gygkdw.js} +2 -2
- package/dist/chunks/{persistent-pty-6j10w38a.js → skill-bg9jftvn.js} +17 -17
- package/dist/chunks/{persistent-pty-xf92ehtp.js → skill-bkw14apt.js} +5 -5
- package/dist/chunks/skill-bw78ga2c.js +13 -0
- package/dist/chunks/{persistent-pty-pcdbh0j4.js → skill-c3nqfkhw.js} +40 -40
- package/dist/chunks/{persistent-pty-8rdqkcsb.js → skill-c5qe4erg.js} +8 -8
- package/dist/chunks/{persistent-pty-p2r9c57w.js → skill-c9rrg4sq.js} +33 -33
- package/dist/chunks/{persistent-pty-g0445xdp.js → skill-cmwkp3r5.js} +4 -4
- package/dist/chunks/{persistent-pty-sq20rjr1.js → skill-cqekztpy.js} +9 -5
- package/dist/chunks/{persistent-pty-qvb3nf84.js → skill-ctz7jbry.js} +8 -8
- package/dist/chunks/skill-czp4hz1t.js +26 -0
- package/dist/chunks/{persistent-pty-504xcjap.js → skill-d9aav9jb.js} +3 -3
- package/dist/chunks/{persistent-pty-rgpk8c3t.js → skill-da0e8ynk.js} +170 -170
- package/dist/chunks/{persistent-pty-x661k3y3.js → skill-db2wf4at.js} +4 -4
- package/dist/chunks/{persistent-pty-vbv96av7.js → skill-dcbwehgs.js} +9 -9
- package/dist/chunks/{persistent-pty-z1fz22vh.js → skill-dj8ntj6r.js} +9 -9
- package/dist/chunks/{persistent-pty-cwa6csj7.js → skill-djszqvmq.js} +9 -9
- package/dist/chunks/{persistent-pty-xkntkrq7.js → skill-dmqcgk4z.js} +5 -5
- package/dist/chunks/{persistent-pty-m3frg8rt.js → skill-dnywem4c.js} +10 -10
- package/dist/chunks/{persistent-pty-t0cpmee7.js → skill-drrd09b1.js} +11 -11
- package/dist/chunks/{persistent-pty-ymjtnym2.js → skill-e12ezkd1.js} +5 -5
- package/dist/chunks/{persistent-pty-7dy85ahw.js → skill-e8vwfchq.js} +6 -6
- package/dist/chunks/{persistent-pty-wksxstam.js → skill-e9f0cxdm.js} +23 -23
- package/dist/chunks/{persistent-pty-61mpxj7t.js → skill-e9p0h47t.js} +20 -20
- package/dist/chunks/{persistent-pty-4f0xd74p.js → skill-eaapcx4q.js} +32 -32
- package/dist/chunks/{persistent-pty-y54kce5q.js → skill-eb7s4h44.js} +13 -13
- package/dist/chunks/{persistent-pty-ef5x83kb.js → skill-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-dddzyqpc.js → skill-ekzt55v3.js} +10 -10
- package/dist/chunks/{persistent-pty-27v5mrzz.js → skill-erpxhmj9.js} +3 -3
- package/dist/chunks/{persistent-pty-5sjzzvdy.js → skill-erqn936q.js} +17 -17
- package/dist/chunks/{persistent-pty-etq0c3wd.js → skill-etq0c3wd.js} +1 -1
- package/dist/chunks/{persistent-pty-mhnyy3p3.js → skill-f59ep6tb.js} +11 -11
- package/dist/chunks/{persistent-pty-71az546q.js → skill-f75zav2x.js} +2 -2
- package/dist/chunks/{persistent-pty-8nmyydee.js → skill-fgber3cj.js} +12 -12
- package/dist/chunks/{persistent-pty-d2m6d01v.js → skill-fkfgeacz.js} +20 -20
- package/dist/chunks/{persistent-pty-9dztgy31.js → skill-fwtyrwy7.js} +4 -4
- package/dist/chunks/{persistent-pty-cywnvfy5.js → skill-g55y0fm8.js} +11 -11
- package/dist/chunks/{persistent-pty-yp3cv92q.js → skill-g7b3b0xt.js} +13 -13
- package/dist/chunks/{persistent-pty-gd4qta3r.js → skill-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-yrcj3v3g.js → skill-gw7cjrad.js} +4 -4
- package/dist/chunks/{persistent-pty-v6ry9q01.js → skill-gz1mej8d.js} +24 -24
- package/dist/chunks/{persistent-pty-9x9fdyge.js → skill-h4ckqw4f.js} +8 -8
- package/dist/chunks/{persistent-pty-sgqg2f8q.js → skill-h6n6d8sv.js} +4 -4
- package/dist/chunks/{persistent-pty-h6vf3j39.js → skill-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-ptvvbxck.js → skill-ha20kep4.js} +6 -6
- package/dist/chunks/{persistent-pty-9mbx3c6g.js → skill-hd2p1ez5.js} +32 -32
- package/dist/chunks/{persistent-pty-9yj6y0aa.js → skill-hgh7nzp1.js} +11 -11
- package/dist/chunks/{persistent-pty-j65xwarf.js → skill-hk2agn7d.js} +5 -5
- package/dist/chunks/{persistent-pty-ja6fbgv5.js → skill-hrvhj6xt.js} +15 -15
- package/dist/chunks/{persistent-pty-rn484enx.js → skill-hwmwb64m.js} +13 -13
- package/dist/chunks/{persistent-pty-1276degm.js → skill-hyeaefyw.js} +21 -21
- package/dist/chunks/{persistent-pty-j56e64zr.js → skill-j56e64zr.js} +1 -1
- package/dist/chunks/{persistent-pty-yb9kj8pc.js → skill-j6d2rgta.js} +25 -25
- package/dist/chunks/{persistent-pty-dysmr7k2.js → skill-j9rkfp81.js} +29 -29
- package/dist/chunks/{persistent-pty-8q9myf25.js → skill-jhf3jymm.js} +6 -6
- package/dist/chunks/{persistent-pty-8tb93y3v.js → skill-jjt8f5e2.js} +6 -6
- package/dist/chunks/{persistent-pty-4hc31b97.js → skill-jx1rpkq3.js} +23 -23
- package/dist/chunks/skill-jx90kh1x.js +170 -0
- package/dist/chunks/{persistent-pty-qy7fdy02.js → skill-jxf73drv.js} +23 -23
- package/dist/chunks/{persistent-pty-k1dde556.js → skill-k4sc78tn.js} +11 -11
- package/dist/chunks/{persistent-pty-qwfjbs6q.js → skill-k6963dvz.js} +13 -13
- package/dist/chunks/{persistent-pty-7kyfdp6z.js → skill-kb3wdknj.js} +6 -6
- package/dist/chunks/{persistent-pty-9e5bzkjp.js → skill-kb9j3d72.js} +3 -3
- package/dist/chunks/{persistent-pty-9g5ba4sr.js → skill-ksaabt2j.js} +7 -7
- package/dist/chunks/{persistent-pty-cbmf5txa.js → skill-kva4bpmc.js} +6 -6
- package/dist/chunks/{persistent-pty-xvedb59m.js → skill-kw9xdzv2.js} +9 -9
- package/dist/chunks/{persistent-pty-tfzngn12.js → skill-m0r31qfn.js} +4 -4
- package/dist/chunks/{persistent-pty-m3fdjcah.js → skill-m3fdjcah.js} +1 -1
- package/dist/chunks/{persistent-pty-s87ygg5r.js → skill-m55qy151.js} +10 -10
- package/dist/chunks/{persistent-pty-ckf8nxjz.js → skill-m70sbz6t.js} +4 -4
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → skill-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-mfqp6xfm.js → skill-mfqp6xfm.js} +2 -2
- package/dist/chunks/{persistent-pty-96thbmfj.js → skill-mhaxke0e.js} +11 -11
- package/dist/chunks/{persistent-pty-9jzr21ep.js → skill-mjkbcby4.js} +8 -8
- package/dist/chunks/{persistent-pty-37sfe3bm.js → skill-mkpw75cb.js} +14 -14
- package/dist/chunks/{persistent-pty-h1yqkxn4.js → skill-mkynkq7z.js} +27 -27
- package/dist/chunks/{persistent-pty-9dp025y5.js → skill-mqgk8n7h.js} +8 -17
- package/dist/chunks/{persistent-pty-1gg3s3st.js → skill-mzxeka0h.js} +8 -8
- package/dist/chunks/{persistent-pty-xcwya4hk.js → skill-n2tcwf5b.js} +9 -9
- package/dist/chunks/{persistent-pty-qm2kbj48.js → skill-n5ae90wp.js} +44 -44
- package/dist/chunks/{persistent-pty-n4wpfnv1.js → skill-n954ms1x.js} +30 -30
- package/dist/chunks/{persistent-pty-ws2vmpjm.js → skill-ncbd9k1n.js} +26 -26
- package/dist/chunks/{persistent-pty-ge24w6v9.js → skill-npdfa7bp.js} +4 -4
- package/dist/chunks/{persistent-pty-yqntd9h0.js → skill-nr63hy47.js} +20 -20
- package/dist/chunks/{persistent-pty-82vtwhxh.js → skill-nt83ta39.js} +2 -2
- package/dist/chunks/{persistent-pty-scvmve7w.js → skill-nv0bg10t.js} +7 -7
- package/dist/chunks/{persistent-pty-6m05awva.js → skill-nv3pc6qf.js} +52 -52
- package/dist/chunks/{persistent-pty-dpkg50ah.js → skill-nxm207yx.js} +4 -4
- package/dist/chunks/{persistent-pty-3q5w9v8n.js → skill-p8ws4y22.js} +3 -3
- package/dist/chunks/{persistent-pty-zhaqhg6g.js → skill-pbd1thjg.js} +16 -16
- package/dist/chunks/{persistent-pty-fw6qy902.js → skill-pepm8dby.js} +21 -21
- package/dist/chunks/{persistent-pty-rh75w547.js → skill-pf3eytb1.js} +16 -16
- package/dist/chunks/{persistent-pty-0tncg1vv.js → skill-phamkerz.js} +20 -20
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → skill-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → skill-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-42sykk0b.js → skill-pp9929yk.js} +3 -3
- package/dist/chunks/{persistent-pty-py3kkmfq.js → skill-py3kkmfq.js} +2 -2
- package/dist/chunks/{persistent-pty-q0xm7vwc.js → skill-q0xm7vwc.js} +2 -2
- package/dist/chunks/{persistent-pty-2fd2am7y.js → skill-q3vqk3xr.js} +17 -17
- package/dist/chunks/{persistent-pty-eh16wa7e.js → skill-q5960j2k.js} +11 -11
- package/dist/chunks/{persistent-pty-0rgtz50w.js → skill-qgh7kmwr.js} +34 -34
- package/dist/chunks/{persistent-pty-d2gszh5q.js → skill-qj9j2a2q.js} +49 -49
- package/dist/chunks/{persistent-pty-b7j3e6pa.js → skill-qjpmqgzf.js} +7 -7
- package/dist/chunks/{persistent-pty-ejr9s24d.js → skill-qknacate.js} +5 -5
- package/dist/chunks/{persistent-pty-qnc92qwc.js → skill-qnc92qwc.js} +1 -1
- package/dist/chunks/{persistent-pty-5ttg62tg.js → skill-qpn1zdvw.js} +17 -17
- package/dist/chunks/{persistent-pty-qsdy395h.js → skill-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-xyafkbt0.js → skill-qxjc9qry.js} +3 -3
- package/dist/chunks/{persistent-pty-9dfpqakj.js → skill-r1nb17gn.js} +81 -81
- package/dist/chunks/{persistent-pty-1wrsvdt8.js → skill-r70ycx4n.js} +25 -25
- package/dist/chunks/{persistent-pty-ghr1eecf.js → skill-r8nd9bcd.js} +10 -10
- package/dist/chunks/{persistent-pty-v5dkyp31.js → skill-ratrq7cm.js} +4 -4
- package/dist/chunks/{persistent-pty-rdw6cm16.js → skill-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-sjraay0z.js → skill-rzgqzdfw.js} +24 -24
- package/dist/chunks/{persistent-pty-x8nragah.js → skill-s0gnmrjq.js} +45 -45
- package/dist/chunks/{persistent-pty-msptq8w2.js → skill-sgfsa1gf.js} +27 -27
- package/dist/chunks/{persistent-pty-1a2vdc32.js → skill-sjd79hyp.js} +11 -11
- package/dist/chunks/{persistent-pty-bp6a26mh.js → skill-spc3bnnm.js} +11 -11
- package/dist/chunks/{persistent-pty-as7cf5zz.js → skill-sqvzcy4n.js} +4 -4
- package/dist/chunks/{persistent-pty-5tcm9639.js → skill-srq8z0b0.js} +9 -9
- package/dist/chunks/{persistent-pty-my4zabxr.js → skill-ss358qx3.js} +3 -3
- package/dist/chunks/{persistent-pty-tazgh4e4.js → skill-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-tdstcens.js → skill-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-6pb6sdx8.js → skill-tejbjf59.js} +4 -4
- package/dist/chunks/{persistent-pty-2bz9k98p.js → skill-tg5df4wz.js} +7 -7
- package/dist/chunks/{persistent-pty-0n1wmc6t.js → skill-tj46nj0w.js} +18 -18
- package/dist/chunks/{persistent-pty-20ykreb2.js → skill-tnsxnedn.js} +11 -11
- package/dist/chunks/{persistent-pty-hqhz58vx.js → skill-tqk69v2v.js} +4 -4
- package/dist/chunks/{persistent-pty-mx64x80q.js → skill-tsvyk731.js} +9 -9
- package/dist/chunks/{persistent-pty-mvf6nh1j.js → skill-ty91ypxj.js} +8 -8
- package/dist/chunks/{persistent-pty-emyk28wm.js → skill-tzmf1m41.js} +12 -12
- package/dist/chunks/{persistent-pty-v0es1rhs.js → skill-v0es1rhs.js} +2 -2
- package/dist/chunks/{persistent-pty-6zxqk44r.js → skill-vcvsrew2.js} +6 -6
- package/dist/chunks/{persistent-pty-c957ak9e.js → skill-vdt2qea3.js} +11 -11
- package/dist/chunks/skill-ve7vex1e.js +13 -0
- package/dist/chunks/{persistent-pty-veqvce7d.js → skill-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-6zwqfqhk.js → skill-vf0qy17w.js} +14 -14
- package/dist/chunks/{persistent-pty-fc43n6xf.js → skill-vm2jbb5h.js} +8 -8
- package/dist/chunks/{persistent-pty-ppjqgbs9.js → skill-vnyzbnjy.js} +30 -30
- package/dist/chunks/{persistent-pty-vxzn4mjm.js → skill-vv4myjfv.js} +4 -4
- package/dist/chunks/{persistent-pty-mjr85pze.js → skill-vwy9zyw6.js} +11 -11
- package/dist/chunks/{persistent-pty-vzs5sf6e.js → skill-vzs5sf6e.js} +1 -1
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → skill-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-d0gvmkv5.js → skill-w5yatvn3.js} +71 -71
- package/dist/chunks/{persistent-pty-9rghtk6e.js → skill-w9famnvv.js} +17 -17
- package/dist/chunks/{persistent-pty-0asdx158.js → skill-wd57n0dr.js} +1 -1
- package/dist/chunks/{persistent-pty-wd87259q.js → skill-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-nmdtbfzh.js → skill-wnjvpe9v.js} +50 -50
- package/dist/chunks/{persistent-pty-gye40d0j.js → skill-wqe2r5bg.js} +18 -18
- package/dist/chunks/{persistent-pty-yb0yv9hj.js → skill-wrey65kc.js} +13 -13
- package/dist/chunks/{persistent-pty-rhjbct0v.js → skill-wv396vej.js} +8 -8
- package/dist/chunks/{persistent-pty-ff4e8v5q.js → skill-wv3agxff.js} +31 -31
- package/dist/chunks/{persistent-pty-hwg9mkt4.js → skill-xdn82s8w.js} +5 -5
- package/dist/chunks/{persistent-pty-qnn75meq.js → skill-xfd536vj.js} +10 -10
- package/dist/chunks/{persistent-pty-xfkkasph.js → skill-xfkkasph.js} +1 -1
- package/dist/chunks/{persistent-pty-9dvjqq84.js → skill-xmctppxr.js} +38 -30
- package/dist/chunks/{persistent-pty-52w7dg7x.js → skill-xs5h1qdz.js} +23 -23
- package/dist/chunks/{persistent-pty-e173yrwe.js → skill-xxaqsrmm.js} +16 -16
- package/dist/chunks/{persistent-pty-vxzh5eqq.js → skill-xxndcd6m.js} +4 -4
- package/dist/chunks/{persistent-pty-xv04d7wa.js → skill-y0q8w9kt.js} +17 -17
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → skill-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-ked9vqb3.js → skill-y5djr555.js} +17 -17
- package/dist/chunks/{persistent-pty-g0gfcgav.js → skill-y961xtxg.js} +22 -22
- package/dist/chunks/{persistent-pty-xn1vbmeg.js → skill-yc5pcqk4.js} +13 -13
- package/dist/chunks/skill-ycmvxzz8.js +253 -0
- package/dist/chunks/{persistent-pty-dh6ejakv.js → skill-ygawr200.js} +11 -11
- package/dist/chunks/{persistent-pty-2des930g.js → skill-yh7qhpc0.js} +30 -30
- package/dist/chunks/{persistent-pty-y5kja2xp.js → skill-ynqckmcw.js} +3 -3
- package/dist/chunks/skill-ynypt0bw.js +507 -0
- package/dist/chunks/{persistent-pty-rhraev7y.js → skill-yp2x3t23.js} +4 -4
- package/dist/chunks/{persistent-pty-zsg7tck2.js → skill-ysg08fks.js} +27 -27
- package/dist/chunks/{persistent-pty-gep6bbz4.js → skill-yv0br436.js} +34 -34
- package/dist/chunks/{persistent-pty-ketf4sa0.js → skill-yw3hddg9.js} +11 -11
- package/dist/chunks/{persistent-pty-t845f9hx.js → skill-yykvp7t2.js} +17 -17
- package/dist/chunks/{persistent-pty-bdremd90.js → skill-yz5wyvkn.js} +19 -19
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → skill-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-v06x2rvj.js → skill-zcc6ndmc.js} +3 -3
- package/dist/chunks/{persistent-pty-ccdvrwrq.js → skill-zkdhenw2.js} +8 -8
- package/dist/chunks/{persistent-pty-peecsdy0.js → skill-zp0bj7j8.js} +18 -18
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → skill-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-zxq2ej10.js → skill-zxq2ej10.js} +1 -1
- package/dist/chunks/{persistent-pty-qygbw77c.js → skill-zyk1yjk8.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +85 -85
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +100 -100
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +116 -116
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +116 -116
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +120 -120
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +86 -86
- package/dist/database/database.js +67 -67
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration.gen.js +50 -50
- package/dist/database/migration.js +52 -52
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +77 -77
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +94 -94
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +96 -96
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +71 -71
- package/dist/file-access.js +105 -105
- package/dist/file-mutation.js +95 -95
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +104 -104
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +92 -92
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +357 -355
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +88 -88
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +70 -70
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +108 -108
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +354 -352
- package/dist/location.js +82 -82
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +79 -79
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +92 -92
- package/dist/model-resolver.js +99 -99
- package/dist/model.js +101 -101
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +114 -114
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +89 -89
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +75 -75
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +329 -327
- package/dist/plugin/mcp-codemode-defaults.js +1 -1
- package/dist/plugin/models-dev.js +97 -97
- package/dist/plugin/module.js +118 -118
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +103 -103
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +91 -91
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +95 -95
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/databricks.js +6 -0
- package/dist/plugin/provider/digitalocean.js +94 -94
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +96 -96
- package/dist/plugin/provider/gitlab.js +94 -94
- package/dist/plugin/provider/google-vertex.js +114 -91
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/local.js +114 -114
- package/dist/plugin/provider/modal.js +93 -93
- package/dist/plugin/provider/neon.js +6 -0
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +98 -98
- package/dist/plugin/provider/openrouter.js +92 -92
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +80 -80
- package/dist/plugin/provider/prompt-cache-key.js +91 -91
- package/dist/plugin/provider/sap-ai-core.js +92 -92
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +91 -91
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +92 -92
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +159 -157
- package/dist/plugin/sdk.js +77 -77
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +87 -87
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/verbosity.js +94 -94
- package/dist/plugin/warming.js +115 -115
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +219 -219
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +102 -102
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +86 -86
- package/dist/reference/instructions.js +90 -90
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +82 -82
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +98 -98
- package/dist/rpc.js +87 -87
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +75 -75
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +154 -154
- package/dist/session/diff.js +89 -89
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +80 -80
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +121 -121
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +87 -87
- package/dist/session/prompt.js +106 -106
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +91 -91
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -99
- package/dist/session/runner/publish-llm-event.js +114 -114
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +104 -104
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +88 -88
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -204
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +158 -158
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +208 -208
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +131 -131
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +113 -113
- package/dist/snapshot.js +92 -92
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +125 -125
- package/dist/tool/plugin/edit.js +121 -121
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +125 -125
- package/dist/tool/plugin/grep.js +125 -125
- package/dist/tool/plugin/mcp-resource.js +118 -118
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +126 -126
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +123 -123
- package/dist/tool/read-filesystem.js +101 -101
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/plugin/provider/databricks.d.ts +1 -0
- package/dist/types/plugin/provider/google-vertex.d.ts +5 -1
- package/dist/types/plugin/provider/neon.d.ts +1 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +93 -93
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -94
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -90
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +77 -77
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +81 -81
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +90 -90
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-67c7by3v.js +0 -26
- package/dist/chunks/persistent-pty-er5qhcv3.js +0 -253
- package/dist/chunks/persistent-pty-phz3h32g.js +0 -18
- package/dist/chunks/persistent-pty-qfqfjc74.js +0 -69
- package/dist/chunks/persistent-pty-vk7m4zfp.js +0 -507
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → skill-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → skill-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → skill-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → skill-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → skill-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → skill-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → skill-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → skill-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → skill-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-34c7v6d4.js → skill-34c7v6d4.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → skill-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → skill-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3t0ybcrp.js → skill-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → skill-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w5fmr99.js → skill-3w5fmr99.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → skill-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → skill-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → skill-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → skill-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → skill-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → skill-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → skill-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5qd3pb7m.js → skill-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → skill-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → skill-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → skill-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → skill-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → skill-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-84wd9syh.js → skill-84wd9syh.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → skill-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → skill-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → skill-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → skill-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → skill-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → skill-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → skill-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → skill-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → skill-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → skill-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → skill-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → skill-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → skill-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → skill-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → skill-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → skill-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → skill-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → skill-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → skill-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → skill-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → skill-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → skill-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → skill-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → skill-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → skill-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → skill-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → skill-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → skill-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → skill-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-fxgpk5d8.js → skill-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → skill-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → skill-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → skill-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → skill-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → skill-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → skill-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → skill-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → skill-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → skill-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → skill-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → skill-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → skill-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → skill-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → skill-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → skill-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → skill-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → skill-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → skill-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → skill-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → skill-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → skill-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → skill-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → skill-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → skill-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → skill-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → skill-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → skill-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → skill-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → skill-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → skill-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → skill-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → skill-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → skill-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8cydn3q.js → skill-y8cydn3q.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → skill-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → skill-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → skill-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → skill-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → skill-z9919s4g.js} +0 -0
|
@@ -2,42 +2,42 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./skill-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
7
|
Service80,
|
|
8
8
|
node84
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./skill-2f42t4e4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service64,
|
|
12
|
+
node66
|
|
13
|
+
} from "./skill-sgfsa1gf.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./skill-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content3,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event12,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
|
-
ListInput: () =>
|
|
32
|
+
ListInput: () => ListInput3,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError7,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service63,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node65
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError7 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -75,14 +75,14 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
75
75
|
return `Access denied to directory: ${this.directory}`;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Content3 = Schema.Struct({
|
|
79
79
|
uri: Schema.String,
|
|
80
80
|
name: Schema.String.pipe(Schema.optional),
|
|
81
81
|
content: Schema.String,
|
|
82
82
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
83
83
|
mime: Schema.String
|
|
84
84
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
85
|
-
var
|
|
85
|
+
var ListInput3 = Schema.Struct({
|
|
86
86
|
path: Schema.String.pipe(Schema.optional)
|
|
87
87
|
});
|
|
88
88
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
105
105
|
limit: Schema.optionalKey(PositiveInt2)
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Event12 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service63 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service63, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
114
|
const location = yield* Service80;
|
|
115
|
-
const search = yield*
|
|
115
|
+
const search = yield* Service64;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
124
124
|
if (input.includes("\x00"))
|
|
125
|
-
return yield* Effect.fail(new
|
|
125
|
+
return yield* Effect.fail(new NotFoundError7({ path: input }));
|
|
126
126
|
const absolute = path.resolve(location.directory, input);
|
|
127
127
|
if (!FSUtil.contains(location.directory, absolute))
|
|
128
|
-
return yield* Effect.fail(new
|
|
129
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
128
|
+
return yield* Effect.fail(new NotFoundError7({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError7({ path: input })), (_, error) => Effect.die(error)));
|
|
130
130
|
if (!FSUtil.contains(root, real))
|
|
131
|
-
return yield* Effect.fail(new
|
|
131
|
+
return yield* Effect.fail(new NotFoundError7({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service63.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
138
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
138
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError7({ path: input.path })), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "File")
|
|
140
|
-
return yield* Effect.fail(new
|
|
140
|
+
return yield* Effect.fail(new NotFoundError7({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -170,10 +170,10 @@ var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
170
170
|
})
|
|
171
171
|
});
|
|
172
172
|
}));
|
|
173
|
-
var
|
|
174
|
-
service:
|
|
173
|
+
var node65 = makeLocationNode({
|
|
174
|
+
service: Service63,
|
|
175
175
|
layer: baseLayer,
|
|
176
|
-
deps: [FSUtil.node, node84,
|
|
176
|
+
deps: [FSUtil.node, node84, node66]
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
179
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError7, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, ListInput3, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event12, Service63, node65, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./skill-pp9929yk.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
7
|
Service83,
|
|
8
8
|
node87
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./skill-83q2r6tn.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./skill-5t3nmthw.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./skill-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./skill-vm2jbb5h.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service77,
|
|
21
|
+
node81
|
|
22
|
+
} from "./skill-8axdpjc9.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service21,
|
|
25
|
+
node24
|
|
26
|
+
} from "./skill-r1nb17gn.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./skill-tdstcens.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./skill-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
37
37
|
__export(exports_title, {
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service3,
|
|
39
39
|
SessionTitle: () => exports_title,
|
|
40
40
|
isUntitled: () => isUntitled2,
|
|
41
|
-
layer: () =>
|
|
42
|
-
node: () =>
|
|
41
|
+
layer: () => layer3,
|
|
42
|
+
node: () => node4
|
|
43
43
|
});
|
|
44
44
|
import { isDeepStrictEqual } from "node:util";
|
|
45
45
|
import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
|
|
@@ -51,18 +51,18 @@ var MAX_CONTEXT_LENGTH = 8000;
|
|
|
51
51
|
var MAX_FIRST_MESSAGE_LENGTH = 2000;
|
|
52
52
|
var titleChanged = Symbol("Session title changed");
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service3 extends Context.Service()("@opencode/SessionTitle") {
|
|
55
55
|
}
|
|
56
56
|
var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
|
|
57
57
|
var isUntitled2 = (session) => isExactRootFallback({
|
|
58
58
|
title: session.title,
|
|
59
59
|
time: { created: DateTime.toEpochMillis(session.time.created) }
|
|
60
60
|
});
|
|
61
|
-
var
|
|
61
|
+
var layer3 = Layer.effect(Service3, Effect.gen(function* () {
|
|
62
62
|
const bus = yield* Service83;
|
|
63
63
|
const llm = yield* LLMClient.Service;
|
|
64
|
-
const context = yield*
|
|
65
|
-
const store = yield*
|
|
64
|
+
const context = yield* Service21;
|
|
65
|
+
const store = yield* Service77;
|
|
66
66
|
const db = (yield* Service84).db;
|
|
67
67
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
68
68
|
const chunks = [];
|
|
@@ -145,12 +145,12 @@ Recent conversation:
|
|
|
145
145
|
title: truncate(title)
|
|
146
146
|
}, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
|
|
147
147
|
});
|
|
148
|
-
return
|
|
148
|
+
return Service3.of({ generate });
|
|
149
149
|
}));
|
|
150
|
-
var
|
|
151
|
-
service:
|
|
152
|
-
layer:
|
|
153
|
-
deps: [node87, llmClient2,
|
|
150
|
+
var node4 = makeLocationNode({
|
|
151
|
+
service: Service3,
|
|
152
|
+
layer: layer3,
|
|
153
|
+
deps: [node87, llmClient2, node24, node81, node88]
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
export {
|
|
156
|
+
export { Service3, isUntitled2, layer3, node4, exports_title };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-tg5df4wz.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/lmstudio.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -19,7 +19,7 @@ var RemoteModel = Schema.Struct({
|
|
|
19
19
|
}).pipe(Schema.optional)
|
|
20
20
|
});
|
|
21
21
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
22
|
-
var
|
|
22
|
+
var make10 = createLocalProviderPlugin2({
|
|
23
23
|
id: "opencode.provider.lmstudio",
|
|
24
24
|
providerID: "lmstudio",
|
|
25
25
|
name: "LM Studio",
|
|
@@ -38,6 +38,6 @@ var make6 = createLocalProviderPlugin2({
|
|
|
38
38
|
context: item.loaded_instances.length === 0 ? item.max_context_length : Math.min(...item.loaded_instances.map((instance) => instance.config.context_length))
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
var LMStudioPlugin2 =
|
|
41
|
+
var LMStudioPlugin2 = make10();
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { make10, LMStudioPlugin2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load4
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./skill-5qd3pb7m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./skill-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
14
|
Event: () => Event10,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options7,
|
|
17
|
+
Service: () => Service60,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured7,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer22,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node62,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options7 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service60 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer22 = (options) => Layer.effect(Service60, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service60.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer19 = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service60.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer22().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service60).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service60, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured7(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service60, layer: layer22(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node62 = configured7();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export { Event10, hasNativeBinding2, Native3,
|
|
190
|
+
export { Event10, hasNativeBinding2, Native3, Options7, Service60, Test3, layer22, testLayer3, nativeLayer2, nativeNode2, configured7, node62, exports_watcher };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveNullableObjectPaths2,
|
|
3
3
|
mapResultRow2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./skill-emrn6kk6.js";
|
|
5
5
|
import {
|
|
6
6
|
SQLiteEffectDatabase2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./skill-qjpmqgzf.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service74
|
|
3
|
+
} from "./skill-e9f0cxdm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service75
|
|
6
|
+
} from "./skill-nv3pc6qf.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./skill-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin50 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service74;
|
|
57
|
+
const permission = yield* Service75;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./skill-83q2r6tn.js";
|
|
5
5
|
import {
|
|
6
6
|
Service80,
|
|
7
7
|
node84
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./skill-2f42t4e4.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID15,
|
|
11
|
+
Service78,
|
|
12
|
+
node82
|
|
13
|
+
} from "./skill-93tfm6kk.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError10
|
|
16
|
+
} from "./skill-e8vwfchq.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service77,
|
|
19
|
+
node81
|
|
20
|
+
} from "./skill-8axdpjc9.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./skill-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service76,
|
|
26
|
+
node80
|
|
27
|
+
} from "./skill-qpn1zdvw.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service79,
|
|
30
|
+
node83
|
|
31
|
+
} from "./skill-a2qe2ev9.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./skill-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
37
|
var exports_permission2 = {};
|
|
@@ -42,29 +42,29 @@ __export(exports_permission2, {
|
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
45
|
+
Event: () => Event19,
|
|
46
|
+
ID: () => ID13,
|
|
47
|
+
NotFoundError: () => NotFoundError9,
|
|
48
48
|
Permission: () => exports_permission2,
|
|
49
|
-
Reply: () =>
|
|
49
|
+
Reply: () => Reply3,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
|
-
Request: () =>
|
|
51
|
+
Request: () => Request3,
|
|
52
52
|
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service75,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node79
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
63
|
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
-
import { Event as
|
|
64
|
+
import { Event as Event19 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID13 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -74,20 +74,20 @@ var RequestFields = {
|
|
|
74
74
|
metadata: Permission.Request.fields.metadata,
|
|
75
75
|
source: Permission.Request.fields.source
|
|
76
76
|
};
|
|
77
|
-
var
|
|
78
|
-
var
|
|
77
|
+
var Request3 = Permission.Request;
|
|
78
|
+
var Reply3 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID13.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID15.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
86
|
-
reply:
|
|
85
|
+
requestID: ID13,
|
|
86
|
+
reply: Reply3,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID13,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError9 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID13
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service75 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service83;
|
|
132
132
|
const location = yield* Service80;
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
133
|
+
const agents = yield* Service78;
|
|
134
|
+
const sessions = yield* Service77;
|
|
135
|
+
const saved = yield* Service76;
|
|
136
|
+
const hooks = yield* Service79;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError10({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID13.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
211
211
|
}));
|
|
212
212
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
213
213
|
if (closed)
|
|
214
|
-
return { id: input.id ??
|
|
214
|
+
return { id: input.id ?? ID13.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError9({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service75.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node79 = makeLocationNode({
|
|
303
|
+
service: Service75,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [node87, node84,
|
|
305
|
+
deps: [node87, node84, node82, node81, node80, node83]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID13, Source5, Request3, Reply3, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError9, evaluate2, merge2, Service75, node79, exports_permission2, Rule3, Ruleset2, Event19 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/effect/keyed-mutex.ts
|
|
6
6
|
var exports_keyed_mutex = {};
|
|
7
7
|
__export(exports_keyed_mutex, {
|
|
8
8
|
KeyedMutex: () => exports_keyed_mutex,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make24,
|
|
10
10
|
makeUnsafe: () => makeUnsafe2
|
|
11
11
|
});
|
|
12
12
|
import { Effect, Semaphore } from "effect";
|
|
@@ -26,6 +26,6 @@ var makeUnsafe2 = () => {
|
|
|
26
26
|
});
|
|
27
27
|
return { size: Effect.sync(() => locks.size), withLock };
|
|
28
28
|
};
|
|
29
|
-
var
|
|
29
|
+
var make24 = () => Effect.sync(makeUnsafe2);
|
|
30
30
|
|
|
31
|
-
export { makeUnsafe2,
|
|
31
|
+
export { makeUnsafe2, make24, exports_keyed_mutex };
|