@opencode/core 0.0.0-dev-20819 → 0.0.0-dev-20821
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{provider-dn5he4af.js → instance-092frx3z.js} +36 -36
- package/dist/chunks/{provider-nmvty7z6.js → instance-0a2tmjgh.js} +18 -18
- package/dist/chunks/{provider-2k8khapm.js → instance-0jwsre1p.js} +5 -5
- package/dist/chunks/{provider-0paq2nw3.js → instance-0paq2nw3.js} +1 -1
- package/dist/chunks/{provider-zmr78fwr.js → instance-0r3c1bmw.js} +5 -5
- package/dist/chunks/{provider-emqyv9re.js → instance-0rvjb12a.js} +19 -19
- package/dist/chunks/{provider-0vbcp93d.js → instance-0vbcp93d.js} +2 -2
- package/dist/chunks/{provider-7bdn8rzq.js → instance-1031hycs.js} +32 -32
- package/dist/chunks/{provider-vesnn5tc.js → instance-1epg3585.js} +11 -11
- package/dist/chunks/{provider-wjr9rjd7.js → instance-1ffvrpkg.js} +9 -9
- package/dist/chunks/{provider-xc1zswmg.js → instance-1nkwfmby.js} +13 -13
- package/dist/chunks/{provider-dfk6kfc9.js → instance-21xt53e8.js} +2 -2
- package/dist/chunks/{provider-72k9y6x3.js → instance-27r84b2s.js} +15 -15
- package/dist/chunks/{provider-a4g7dr4s.js → instance-2hr1xsnb.js} +46 -46
- package/dist/chunks/{provider-zmwycstj.js → instance-2jtwphcz.js} +1 -1
- package/dist/chunks/{provider-hcda30yb.js → instance-2nbfb5f6.js} +11 -11
- package/dist/chunks/{provider-hj636n86.js → instance-2nd2pqnm.js} +13 -13
- package/dist/chunks/{provider-y1z3pkss.js → instance-2p966zvx.js} +6 -6
- package/dist/chunks/{provider-2vvh33eb.js → instance-2vvh33eb.js} +2 -2
- package/dist/chunks/{provider-7v81x33d.js → instance-2xx6zsf3.js} +9 -9
- package/dist/chunks/{provider-wvhvqcvd.js → instance-2z1pcrqp.js} +23 -23
- package/dist/chunks/{provider-3wpd7sdb.js → instance-318p8t3z.js} +30 -30
- package/dist/chunks/{provider-tmcj1942.js → instance-322w8pha.js} +5 -5
- package/dist/chunks/{provider-bxz08qrx.js → instance-32hd6mtm.js} +5 -5
- package/dist/chunks/{provider-td8nrxeh.js → instance-32rz0ac1.js} +86 -86
- package/dist/chunks/{provider-4zrz1dvp.js → instance-34eg7e0g.js} +4 -4
- package/dist/chunks/{provider-k0zgcj61.js → instance-36epjyth.js} +11 -11
- package/dist/chunks/{provider-d4aya8fc.js → instance-396qr75g.js} +13 -13
- package/dist/chunks/{provider-3fc6dm20.js → instance-3fc6dm20.js} +1 -1
- package/dist/chunks/{provider-3hepkmqq.js → instance-3hepkmqq.js} +1 -1
- package/dist/chunks/{provider-3hwn7j4h.js → instance-3hwn7j4h.js} +2 -2
- package/dist/chunks/{provider-kxw0d2hz.js → instance-3j6132de.js} +18 -18
- package/dist/chunks/{provider-3smtnn6g.js → instance-3smtnn6g.js} +1 -1
- package/dist/chunks/{provider-3tvqynh2.js → instance-3tvqynh2.js} +1 -1
- package/dist/chunks/{provider-mj1gw2vg.js → instance-3vv65zrx.js} +4 -4
- package/dist/chunks/{provider-3zsf4n22.js → instance-3zsf4n22.js} +1 -1
- package/dist/chunks/{provider-bxr1m0k3.js → instance-469rhn0t.js} +15 -15
- package/dist/chunks/{provider-4k52rekz.js → instance-4a31j5w7.js} +19 -19
- package/dist/chunks/{provider-jsxf1k0c.js → instance-4at6vrp5.js} +15 -15
- package/dist/chunks/{provider-36x86bch.js → instance-4hyfh2ay.js} +5 -5
- package/dist/chunks/{provider-y6ht50x5.js → instance-4qgwdbse.js} +13 -13
- package/dist/chunks/{provider-2ccvkpx1.js → instance-4ts7tf6z.js} +2 -2
- package/dist/chunks/{provider-yw8t9dwe.js → instance-4w5f3qm5.js} +4 -4
- package/dist/chunks/{provider-54ma36ye.js → instance-54ma36ye.js} +1 -1
- package/dist/chunks/{provider-ttjhmc92.js → instance-552sz0b4.js} +18 -18
- package/dist/chunks/{provider-8p5dcft8.js → instance-57ybpwjq.js} +11 -11
- package/dist/chunks/{provider-4zn70v01.js → instance-5ahzsdw2.js} +5 -5
- package/dist/chunks/{provider-t3g2kvn2.js → instance-5k53xwkx.js} +15 -15
- package/dist/chunks/{provider-5m9w47nd.js → instance-5m9w47nd.js} +1 -1
- package/dist/chunks/{provider-drnf6xwf.js → instance-5pyjqqve.js} +2 -2
- package/dist/chunks/{provider-e3qxr5gk.js → instance-5qd3pb7m.js} +2 -2
- package/dist/chunks/{provider-jvn25kqv.js → instance-6bzm7dzz.js} +7 -7
- package/dist/chunks/{provider-n5gb9kjy.js → instance-6ngydqsr.js} +11 -11
- package/dist/chunks/{provider-z6yetpqf.js → instance-6nhx3y9w.js} +8 -8
- package/dist/chunks/{provider-6xb47vfp.js → instance-6xb47vfp.js} +1 -1
- package/dist/chunks/{provider-ghmaxe42.js → instance-764ncrp7.js} +5 -5
- package/dist/chunks/{provider-7bmhse3q.js → instance-7bmhse3q.js} +1 -1
- package/dist/chunks/{provider-x2xbfqys.js → instance-7hem7jqs.js} +15 -15
- package/dist/chunks/{provider-pr23z569.js → instance-7kjn14yg.js} +18 -18
- package/dist/chunks/{provider-72sxpf59.js → instance-82v73sw7.js} +3 -3
- package/dist/chunks/{provider-84txncab.js → instance-84txncab.js} +1 -1
- package/dist/chunks/{provider-1a6g6y7p.js → instance-86fv917v.js} +24 -24
- package/dist/chunks/{provider-yfvm05yf.js → instance-874d0a13.js} +4 -4
- package/dist/chunks/{provider-0mm9aq32.js → instance-88gzfjcr.js} +15 -15
- package/dist/chunks/{provider-tcezcvh9.js → instance-89znhe33.js} +4 -4
- package/dist/chunks/{provider-pd4dtwmv.js → instance-8b956r4x.js} +19 -19
- package/dist/chunks/{provider-gcf6sfbq.js → instance-8f6a5ac8.js} +19 -19
- package/dist/chunks/{provider-8m6m0r52.js → instance-8m6m0r52.js} +1 -1
- package/dist/chunks/{provider-52fe2n6x.js → instance-8ttz65mb.js} +8 -8
- package/dist/chunks/{provider-bm107t7h.js → instance-92rf8dq8.js} +11 -11
- package/dist/chunks/{provider-cxy95pxm.js → instance-9a926zhh.js} +32 -32
- package/dist/chunks/{provider-a8nr4rbb.js → instance-9hmhxc5h.js} +32 -32
- package/dist/chunks/{provider-tjwfy1sb.js → instance-9n2tzk1n.js} +21 -21
- package/dist/chunks/{provider-y4wrpq2h.js → instance-9q67ec2j.js} +20 -20
- package/dist/chunks/{provider-sqatzsa5.js → instance-a0tncgbm.js} +32 -32
- package/dist/chunks/{provider-pgyscs0f.js → instance-a18ypfsk.js} +10 -10
- package/dist/chunks/{provider-454n8t5y.js → instance-a2r9cqcm.js} +8 -8
- package/dist/chunks/{provider-x661k3y3.js → instance-addxnjmp.js} +4 -4
- package/dist/chunks/{provider-svvynxha.js → instance-aemm1ch5.js} +15 -15
- package/dist/chunks/{provider-pkwzrfh9.js → instance-agzdqrvj.js} +3 -3
- package/dist/chunks/{provider-r8ttjkk4.js → instance-axws8t32.js} +22 -22
- package/dist/chunks/{provider-7j43bv8y.js → instance-az9ejh8m.js} +46 -46
- package/dist/chunks/{provider-977g2q7r.js → instance-b1k14wbp.js} +34 -34
- package/dist/chunks/{provider-b3f8fkhc.js → instance-b3f8fkhc.js} +2 -2
- package/dist/chunks/{provider-rcvywq7f.js → instance-bhmb9yng.js} +26 -26
- package/dist/chunks/{provider-ry082wg0.js → instance-bsprd9wx.js} +9 -9
- package/dist/chunks/{provider-3prsa1va.js → instance-bvefwfky.js} +11 -11
- package/dist/chunks/{provider-rg9sd9dt.js → instance-bvjbnw3w.js} +3 -3
- package/dist/chunks/{provider-c1fqxshp.js → instance-c1fqxshp.js} +3 -3
- package/dist/chunks/{provider-cne3g4td.js → instance-c7kyw4sw.js} +11 -11
- package/dist/chunks/{provider-7gqjj3mq.js → instance-cjrx7r7b.js} +36 -36
- package/dist/chunks/{provider-2d49scjs.js → instance-ckh4m67b.js} +27 -27
- package/dist/chunks/{provider-w8c89xkg.js → instance-ckywmst4.js} +33 -33
- package/dist/chunks/{provider-4ymg4mgw.js → instance-cxw3wg8t.js} +45 -45
- package/dist/chunks/{provider-5nv1cf15.js → instance-d33wr780.js} +12 -12
- package/dist/chunks/{provider-kmtd2a05.js → instance-d8yh87ds.js} +14 -14
- package/dist/chunks/{provider-05t0yy5n.js → instance-dd3kfcen.js} +17 -17
- package/dist/chunks/{provider-dcdhzt8b.js → instance-dkftam4e.js} +24 -24
- package/dist/chunks/{provider-wrv8n19w.js → instance-dm8bnwtv.js} +7 -7
- package/dist/chunks/{provider-y71avatq.js → instance-dpkg50ah.js} +4 -4
- package/dist/chunks/{provider-qqeeq2t9.js → instance-drwq78ky.js} +7 -7
- package/dist/chunks/{provider-kn4y5379.js → instance-dt82d7s9.js} +16 -16
- package/dist/chunks/{provider-wa9d8ess.js → instance-e63gr7h2.js} +17 -17
- package/dist/chunks/{provider-1jd8q42d.js → instance-e6ekg6mp.js} +15 -15
- package/dist/chunks/{provider-bfsn9k2g.js → instance-ea99mjkb.js} +27 -27
- package/dist/chunks/{provider-66za0ybh.js → instance-eaq9sh0m.js} +5 -5
- package/dist/chunks/{provider-eej6y6fw.js → instance-eej6y6fw.js} +2 -2
- package/dist/chunks/{provider-ef5x83kb.js → instance-ef5x83kb.js} +1 -1
- package/dist/chunks/{provider-h4w545sf.js → instance-efq0ebdb.js} +35 -35
- package/dist/chunks/{provider-5j4s1sf1.js → instance-ep8bmde4.js} +5 -5
- package/dist/chunks/{provider-j2sb7jez.js → instance-er6jah6y.js} +3 -3
- package/dist/chunks/{provider-g485rnjb.js → instance-evmwk2qf.js} +21 -21
- package/dist/chunks/{provider-zee90e5c.js → instance-f0epa603.js} +9 -9
- package/dist/chunks/{provider-gt5zqm6h.js → instance-f3knshs0.js} +16 -16
- package/dist/chunks/{provider-4rb3tf6t.js → instance-f4aapyne.js} +5 -5
- package/dist/chunks/instance-f4fmw5dk.js +513 -0
- package/dist/chunks/{provider-644xaxd1.js → instance-f6tapxe4.js} +6 -6
- package/dist/chunks/{provider-a8t9w2yw.js → instance-fa95pmpk.js} +18 -18
- package/dist/chunks/{provider-n81jbe8d.js → instance-fd5w41th.js} +8 -8
- package/dist/chunks/{provider-gebtr55s.js → instance-fegk541e.js} +5 -5
- package/dist/chunks/{provider-v0es1rhs.js → instance-fpecnkgp.js} +9 -9
- package/dist/chunks/{provider-9hn6k4tm.js → instance-g0445xdp.js} +8 -8
- package/dist/chunks/{provider-pkf2rgn3.js → instance-g47rr4nd.js} +14 -14
- package/dist/chunks/{provider-z3gh34g3.js → instance-g8ytx0e6.js} +11 -11
- package/dist/chunks/{provider-ssyy5q0h.js → instance-g9f7vqf7.js} +11 -11
- package/dist/chunks/{provider-9fbyxv7h.js → instance-gaftya75.js} +27 -27
- package/dist/chunks/{provider-gd4qta3r.js → instance-gd4qta3r.js} +1 -1
- package/dist/chunks/{provider-dyzfbb2f.js → instance-ggd2ez68.js} +4 -4
- package/dist/chunks/{provider-rj13t462.js → instance-gk5njmcq.js} +9 -9
- package/dist/chunks/{provider-gk8qb678.js → instance-gk8qb678.js} +1 -1
- package/dist/chunks/{provider-g33gt04d.js → instance-gr3gwjcf.js} +68 -68
- package/dist/chunks/{provider-x7qxpc0c.js → instance-gs1vjcf9.js} +26 -26
- package/dist/chunks/{provider-5daxzhhk.js → instance-gva0eteh.js} +29 -29
- package/dist/chunks/{provider-cacd1jm9.js → instance-gw6xptb7.js} +4 -4
- package/dist/chunks/{provider-q96p9zxz.js → instance-h2tnk3b1.js} +27 -27
- package/dist/chunks/{provider-115ch50k.js → instance-h5ck5vjk.js} +14 -14
- package/dist/chunks/{provider-h6vf3j39.js → instance-h6vf3j39.js} +1 -1
- package/dist/chunks/{provider-h7s7r6s9.js → instance-h7s7r6s9.js} +2 -2
- package/dist/chunks/{provider-ynmknp8q.js → instance-hcv80w8f.js} +11 -11
- package/dist/chunks/{provider-gd0tnyjc.js → instance-he27pt63.js} +1 -1
- package/dist/chunks/{provider-8cy6mvnv.js → instance-hfd5jd41.js} +14 -14
- package/dist/chunks/{provider-hgz4x7wa.js → instance-hgz4x7wa.js} +1 -1
- package/dist/chunks/{provider-kqx1b4hy.js → instance-hkffa77z.js} +4 -4
- package/dist/chunks/{provider-faj9nw43.js → instance-hmktdbr3.js} +11 -11
- package/dist/chunks/{provider-4pss0hxy.js → instance-hp0d23c7.js} +20 -20
- package/dist/chunks/{provider-5awagvpc.js → instance-hppaxmnb.js} +4 -4
- package/dist/chunks/{provider-fxaymqdw.js → instance-hq3c8me3.js} +4 -4
- package/dist/chunks/{provider-t4g8dwks.js → instance-hqj9debc.js} +10 -10
- package/dist/chunks/{provider-hvq8k270.js → instance-hw0swr2h.js} +11 -11
- package/dist/chunks/{provider-v31j89sj.js → instance-hwnvyahg.js} +24 -24
- package/dist/chunks/{provider-pb9sdrcc.js → instance-hx9ssah9.js} +20 -20
- package/dist/chunks/{provider-ak0hh039.js → instance-j4jvxywx.js} +9 -9
- package/dist/chunks/{provider-j56e64zr.js → instance-j56e64zr.js} +1 -1
- package/dist/chunks/{provider-gw1cnde2.js → instance-jmvxnjkh.js} +16 -16
- package/dist/chunks/{provider-vbppwtb7.js → instance-jr6pk64m.js} +15 -15
- package/dist/chunks/{provider-bgbb68bf.js → instance-js83m5s3.js} +50 -50
- package/dist/chunks/{provider-86gggjw6.js → instance-k7k0v0hy.js} +24 -24
- package/dist/chunks/{provider-1h2g9tn4.js → instance-kdprgamg.js} +32 -32
- package/dist/chunks/{provider-2tf80889.js → instance-kkbjhz3j.js} +45 -45
- package/dist/chunks/{provider-n61wzdch.js → instance-kmb3qvgg.js} +4 -4
- package/dist/chunks/{provider-jt34x9mc.js → instance-kvx9rc2y.js} +22 -22
- package/dist/chunks/{provider-m3fdjcah.js → instance-m3fdjcah.js} +1 -1
- package/dist/chunks/{provider-8tkppbx2.js → instance-m440v7tp.js} +9 -9
- package/dist/chunks/{provider-9mhtf283.js → instance-m460cfww.js} +9 -9
- package/dist/chunks/{provider-cpneeje0.js → instance-m8w6th39.js} +9 -9
- package/dist/chunks/{provider-gdawb179.js → instance-m9cxx8a5.js} +6 -6
- package/dist/chunks/{provider-m9w0rfyh.js → instance-m9w0rfyh.js} +1 -1
- package/dist/chunks/{provider-76nnfvr9.js → instance-macq394m.js} +29 -29
- package/dist/chunks/{provider-xghzwj9d.js → instance-mgd4y656.js} +17 -17
- package/dist/chunks/{provider-7m71rsm5.js → instance-mxsy50j6.js} +34 -34
- package/dist/chunks/{provider-3ytwe5rt.js → instance-n23z4p7s.js} +22 -22
- package/dist/chunks/{provider-j2mcctvz.js → instance-n9hszd3x.js} +11 -11
- package/dist/chunks/{provider-tc3pm9xh.js → instance-ne4gpsya.js} +21 -21
- package/dist/chunks/{provider-16gjtgy3.js → instance-nfabvmye.js} +53 -53
- package/dist/chunks/{provider-fas5dz2e.js → instance-nkphbxvp.js} +23 -23
- package/dist/chunks/{provider-ec88y2q0.js → instance-npazdvka.js} +180 -180
- package/dist/chunks/{provider-2vcz1va9.js → instance-nwhps941.js} +24 -24
- package/dist/chunks/{provider-k9nsg3rd.js → instance-p0ytakck.js} +8 -8
- package/dist/chunks/{provider-sq432a0a.js → instance-p2dq6b7v.js} +27 -27
- package/dist/chunks/{provider-fqnkqsp9.js → instance-p6kjvwe5.js} +26 -26
- package/dist/chunks/{provider-kavm7sty.js → instance-pa57d246.js} +29 -29
- package/dist/chunks/instance-phz3h32g.js +18 -0
- package/dist/chunks/{provider-8hxtpvs0.js → instance-phz50fbd.js} +9 -9
- package/dist/chunks/{provider-pjvnvgmy.js → instance-pjvnvgmy.js} +1 -1
- package/dist/chunks/{provider-5p8wk7br.js → instance-pke783ww.js} +3 -3
- package/dist/chunks/{provider-pknna89w.js → instance-pknna89w.js} +1 -1
- package/dist/chunks/{provider-yxhtaggr.js → instance-pnqjyv3f.js} +3 -3
- package/dist/chunks/{provider-0j77ygfz.js → instance-q0xm7vwc.js} +6 -6
- package/dist/chunks/{provider-y5f5p3p2.js → instance-q440cyy1.js} +10 -10
- package/dist/chunks/{provider-8agmnry4.js → instance-q4efcwg2.js} +11 -11
- package/dist/chunks/{provider-105dgqr7.js → instance-q84ntfk4.js} +20 -20
- package/dist/chunks/{provider-8844v94p.js → instance-qcdxy907.js} +13 -13
- package/dist/chunks/{provider-jqeyp2sv.js → instance-qm084je8.js} +4 -4
- package/dist/chunks/{provider-qnc92qwc.js → instance-qnc92qwc.js} +1 -1
- package/dist/chunks/{provider-vm8gyabs.js → instance-qpfx5yhp.js} +28 -28
- package/dist/chunks/{provider-g1qtspwg.js → instance-qreczbcj.js} +24 -24
- package/dist/chunks/{provider-qsdy395h.js → instance-qsdy395h.js} +1 -1
- package/dist/chunks/{provider-mny5akbz.js → instance-qsrzjcc1.js} +10 -10
- package/dist/chunks/{provider-7nzfcs77.js → instance-qy51s84b.js} +14 -14
- package/dist/chunks/{provider-gb0ha008.js → instance-r0y8yvsy.js} +8 -8
- package/dist/chunks/instance-r159f21t.js +253 -0
- package/dist/chunks/{provider-nma959mg.js → instance-r2z489rp.js} +3 -3
- package/dist/chunks/{provider-x2aynqqh.js → instance-r9w3djhf.js} +9 -9
- package/dist/chunks/{provider-rdw6cm16.js → instance-rdw6cm16.js} +1 -1
- package/dist/chunks/{provider-e3n34vws.js → instance-rdxkenda.js} +7 -7
- package/dist/chunks/{provider-6rd7sphc.js → instance-re2df2sb.js} +35 -35
- package/dist/chunks/{provider-rert0e01.js → instance-rert0e01.js} +2 -2
- package/dist/chunks/{provider-e3b9mkye.js → instance-rhmhk3yj.js} +26 -26
- package/dist/chunks/{provider-r8xr0va3.js → instance-rhraev7y.js} +4 -4
- package/dist/chunks/{provider-rj3eygr5.js → instance-rj3eygr5.js} +2 -2
- package/dist/chunks/{provider-7m6hak9t.js → instance-rjarnty1.js} +30 -30
- package/dist/chunks/{provider-jd9bvbdv.js → instance-rjz3833c.js} +54 -54
- package/dist/chunks/{provider-jws6fkes.js → instance-rkprpv83.js} +8 -8
- package/dist/chunks/{provider-q1kg0ya1.js → instance-rpa27tkz.js} +46 -46
- package/dist/chunks/{provider-aj3rbcf1.js → instance-rpgkwa3n.js} +5 -5
- package/dist/chunks/{provider-jwgz159j.js → instance-rqtv91c8.js} +1 -1
- package/dist/chunks/{provider-k76fn4kw.js → instance-rwm5vee1.js} +4 -4
- package/dist/chunks/{provider-xrw7w48k.js → instance-ryvxzfqv.js} +7 -7
- package/dist/chunks/{provider-22ygkatt.js → instance-s1mg2vv7.js} +43 -43
- package/dist/chunks/{provider-7b9xa5mv.js → instance-s8cnk5hs.js} +16 -16
- package/dist/chunks/{provider-rhjbct0v.js → instance-s8d7rejh.js} +4 -4
- package/dist/chunks/{provider-sa8ekw3f.js → instance-sa8ekw3f.js} +2 -2
- package/dist/chunks/{provider-1jbxkwyv.js → instance-shyg9dng.js} +28 -28
- package/dist/chunks/{provider-zhfnvrgq.js → instance-sjrbrn3d.js} +28 -28
- package/dist/chunks/{provider-85cwrbwd.js → instance-smhfsdfn.js} +3 -3
- package/dist/chunks/{provider-mxkh2d97.js → instance-sw4p4kw7.js} +49 -49
- package/dist/chunks/{provider-qa3qhgw8.js → instance-t2fc4mz5.js} +4 -4
- package/dist/chunks/{provider-tazgh4e4.js → instance-tazgh4e4.js} +1 -1
- package/dist/chunks/{provider-fwa5knzh.js → instance-tcdh3fn7.js} +10 -10
- package/dist/chunks/{provider-tdstcens.js → instance-tdstcens.js} +1 -1
- package/dist/chunks/{provider-4acvxgcp.js → instance-tk99bb9m.js} +18 -18
- package/dist/chunks/{provider-rcj3sprb.js → instance-tn4b1346.js} +25 -25
- package/dist/chunks/{provider-wpvcbchg.js → instance-ttghfjh1.js} +11 -11
- package/dist/chunks/{provider-5fec3t3w.js → instance-txm3e8qz.js} +9 -9
- package/dist/chunks/{provider-tyytaxap.js → instance-tyytaxap.js} +1 -1
- package/dist/chunks/{provider-0hf9g8pg.js → instance-v6gb7zv2.js} +6 -6
- package/dist/chunks/{provider-v7p4zvkq.js → instance-v7p4zvkq.js} +2 -2
- package/dist/chunks/{provider-4m8r9fg4.js → instance-v8envbs0.js} +13 -13
- package/dist/chunks/{provider-aayt0g8p.js → instance-v9a9k07c.js} +16 -16
- package/dist/chunks/{provider-s34st4hq.js → instance-v9sqw8ra.js} +42 -42
- package/dist/chunks/{provider-veqvce7d.js → instance-veqvce7d.js} +1 -1
- package/dist/chunks/{provider-2r93mh4x.js → instance-vmvedq7t.js} +12 -12
- package/dist/chunks/{provider-4axe861p.js → instance-vv3g5bch.js} +13 -13
- package/dist/chunks/{provider-my4zabxr.js → instance-vx3jgdek.js} +3 -3
- package/dist/chunks/{provider-vzs5sf6e.js → instance-vzs5sf6e.js} +1 -1
- package/dist/chunks/{provider-y45m9c12.js → instance-w00n33vw.js} +4 -4
- package/dist/chunks/{provider-w2h15q85.js → instance-w39jehkq.js} +5 -5
- package/dist/chunks/{provider-w3wsvvr9.js → instance-w3wsvvr9.js} +1 -1
- package/dist/chunks/{provider-r61qxybf.js → instance-w3x9v1nk.js} +8 -8
- package/dist/chunks/{provider-wd87259q.js → instance-wd87259q.js} +1 -1
- package/dist/chunks/{provider-95cj991r.js → instance-wdvj77v4.js} +9 -9
- package/dist/chunks/{provider-hwpthwr2.js → instance-x5xbc85a.js} +24 -24
- package/dist/chunks/{provider-had4kgfk.js → instance-x8cycxf4.js} +6 -6
- package/dist/chunks/{provider-z2db9r7p.js → instance-x8f99bzd.js} +18 -18
- package/dist/chunks/{provider-dpdm64ty.js → instance-xatk29w2.js} +21 -21
- package/dist/chunks/{provider-kcrgwk81.js → instance-xch165me.js} +18 -18
- package/dist/chunks/{provider-t6g828f5.js → instance-xd0by9zm.js} +26 -26
- package/dist/chunks/{provider-c9kjtmah.js → instance-xfh9hrb2.js} +12 -12
- package/dist/chunks/{provider-3nh64zp6.js → instance-xh033hfk.js} +9 -9
- package/dist/chunks/{provider-q43hxpb2.js → instance-xkk9x1fr.js} +17 -17
- package/dist/chunks/{provider-bcnceejz.js → instance-xqemcx5b.js} +6 -6
- package/dist/chunks/{provider-7rt165ap.js → instance-y0rwabvg.js} +10 -10
- package/dist/chunks/{provider-y1fvbwt7.js → instance-y1fvbwt7.js} +1 -1
- package/dist/chunks/{provider-gvx2zve9.js → instance-y1yw7vbf.js} +36 -36
- package/dist/chunks/{provider-am909pk9.js → instance-y6f3s68n.js} +15 -15
- package/dist/chunks/instance-ydaezv05.js +26 -0
- package/dist/chunks/{provider-r93ryff9.js → instance-ydx5mz7g.js} +45 -45
- package/dist/chunks/{provider-wbnqszjr.js → instance-yhnbkze6.js} +14 -14
- package/dist/chunks/{provider-5fvj6kea.js → instance-yn6v8rwa.js} +9 -9
- package/dist/chunks/{provider-ermxvwhp.js → instance-z0aj456m.js} +4 -4
- package/dist/chunks/{provider-z0bkrqjs.js → instance-z0bkrqjs.js} +1 -1
- package/dist/chunks/{provider-kwx5dvww.js → instance-zb1thr0h.js} +14 -14
- package/dist/chunks/{provider-4maxka28.js → instance-zpar6w8a.js} +86 -86
- package/dist/chunks/{provider-tht59k2r.js → instance-zpdqxjtk.js} +10 -10
- package/dist/chunks/{provider-zr2ceqn5.js → instance-zr2ceqn5.js} +1 -1
- package/dist/chunks/{provider-4z58m4b4.js → instance-zsr4wwhv.js} +4 -4
- package/dist/chunks/{provider-rtkmq48h.js → instance-zxdf4s62.js} +11 -11
- package/dist/chunks/{provider-zxq2ej10.js → instance-zxq2ej10.js} +1 -1
- package/dist/chunks/{provider-btbmdjwj.js → instance-zy43x3f1.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- 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/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- 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 +93 -93
- 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 +359 -359
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +100 -100
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +119 -119
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +96 -96
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +97 -97
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +92 -92
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- 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 +6 -6
- 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 +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +89 -89
- 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 +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- 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 +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/provider-6h37vygj.js +0 -18
- package/dist/chunks/provider-8a4d0rff.js +0 -26
- package/dist/chunks/provider-91b5zmzs.js +0 -513
- package/dist/chunks/provider-xqes56mz.js +0 -253
- /package/dist/chunks/{provider-0qkdqm5v.js → instance-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{provider-0zkw76rk.js → instance-0zkw76rk.js} +0 -0
- /package/dist/chunks/{provider-17cy0kzp.js → instance-17cy0kzp.js} +0 -0
- /package/dist/chunks/{provider-1cnp2v09.js → instance-1cnp2v09.js} +0 -0
- /package/dist/chunks/{provider-1kg9ymc8.js → instance-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{provider-24dcb14g.js → instance-24dcb14g.js} +0 -0
- /package/dist/chunks/{provider-2710q6r3.js → instance-2710q6r3.js} +0 -0
- /package/dist/chunks/{provider-2axfhc9x.js → instance-2axfhc9x.js} +0 -0
- /package/dist/chunks/{provider-2bv980vf.js → instance-2bv980vf.js} +0 -0
- /package/dist/chunks/{provider-2c3vjs8z.js → instance-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{provider-359p4xyc.js → instance-359p4xyc.js} +0 -0
- /package/dist/chunks/{provider-3asan66x.js → instance-3asan66x.js} +0 -0
- /package/dist/chunks/{provider-3t0ybcrp.js → instance-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{provider-3v8g72cx.js → instance-3v8g72cx.js} +0 -0
- /package/dist/chunks/{provider-3wcehsnq.js → instance-3wcehsnq.js} +0 -0
- /package/dist/chunks/{provider-43n2bw4t.js → instance-43n2bw4t.js} +0 -0
- /package/dist/chunks/{provider-4knz6hnm.js → instance-4knz6hnm.js} +0 -0
- /package/dist/chunks/{provider-4vcrnpx2.js → instance-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{provider-4y7fprxs.js → instance-4y7fprxs.js} +0 -0
- /package/dist/chunks/{provider-53557ph1.js → instance-53557ph1.js} +0 -0
- /package/dist/chunks/{provider-550bvhaj.js → instance-550bvhaj.js} +0 -0
- /package/dist/chunks/{provider-6prwharc.js → instance-6prwharc.js} +0 -0
- /package/dist/chunks/{provider-6q2bdcd1.js → instance-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{provider-7akdwqpd.js → instance-7akdwqpd.js} +0 -0
- /package/dist/chunks/{provider-7m9af43g.js → instance-7m9af43g.js} +0 -0
- /package/dist/chunks/{provider-822emrt2.js → instance-822emrt2.js} +0 -0
- /package/dist/chunks/{provider-84wd9syh.js → instance-84wd9syh.js} +0 -0
- /package/dist/chunks/{provider-88xbtdfr.js → instance-88xbtdfr.js} +0 -0
- /package/dist/chunks/{provider-8n3pysct.js → instance-8n3pysct.js} +0 -0
- /package/dist/chunks/{provider-8wj87zfr.js → instance-8wj87zfr.js} +0 -0
- /package/dist/chunks/{provider-9a4afbnw.js → instance-9a4afbnw.js} +0 -0
- /package/dist/chunks/{provider-9rqn6x4v.js → instance-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{provider-a6k6eb26.js → instance-a6k6eb26.js} +0 -0
- /package/dist/chunks/{provider-af5trqkr.js → instance-af5trqkr.js} +0 -0
- /package/dist/chunks/{provider-afrmfg78.js → instance-afrmfg78.js} +0 -0
- /package/dist/chunks/{provider-aqzs7mqg.js → instance-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{provider-atq7p7m5.js → instance-atq7p7m5.js} +0 -0
- /package/dist/chunks/{provider-bkyjaxrp.js → instance-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{provider-bmr6ed5q.js → instance-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{provider-bw78ga2c.js → instance-bw78ga2c.js} +0 -0
- /package/dist/chunks/{provider-cf4snx6d.js → instance-cf4snx6d.js} +0 -0
- /package/dist/chunks/{provider-cvy3z8tj.js → instance-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{provider-d9fn303g.js → instance-d9fn303g.js} +0 -0
- /package/dist/chunks/{provider-d9jj8t3e.js → instance-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{provider-dajrwvna.js → instance-dajrwvna.js} +0 -0
- /package/dist/chunks/{provider-dap0rakb.js → instance-dap0rakb.js} +0 -0
- /package/dist/chunks/{provider-df08tz66.js → instance-df08tz66.js} +0 -0
- /package/dist/chunks/{provider-dy18nga0.js → instance-dy18nga0.js} +0 -0
- /package/dist/chunks/{provider-e5kj55wp.js → instance-e5kj55wp.js} +0 -0
- /package/dist/chunks/{provider-e73j6tqm.js → instance-e73j6tqm.js} +0 -0
- /package/dist/chunks/{provider-ec1grn59.js → instance-ec1grn59.js} +0 -0
- /package/dist/chunks/{provider-eh3zwz77.js → instance-eh3zwz77.js} +0 -0
- /package/dist/chunks/{provider-emrn6kk6.js → instance-emrn6kk6.js} +0 -0
- /package/dist/chunks/{provider-f0mxakyp.js → instance-f0mxakyp.js} +0 -0
- /package/dist/chunks/{provider-f6n9ztr4.js → instance-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{provider-faypxj3z.js → instance-faypxj3z.js} +0 -0
- /package/dist/chunks/{provider-fd410y7t.js → instance-fd410y7t.js} +0 -0
- /package/dist/chunks/{provider-g4wezp1m.js → instance-g4wezp1m.js} +0 -0
- /package/dist/chunks/{provider-g86h250q.js → instance-g86h250q.js} +0 -0
- /package/dist/chunks/{provider-gebd4c9n.js → instance-gebd4c9n.js} +0 -0
- /package/dist/chunks/{provider-gftt206x.js → instance-gftt206x.js} +0 -0
- /package/dist/chunks/{provider-hk9envan.js → instance-hk9envan.js} +0 -0
- /package/dist/chunks/{provider-j2ntwpah.js → instance-j2ntwpah.js} +0 -0
- /package/dist/chunks/{provider-j5zkgpj8.js → instance-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{provider-jjkms2e6.js → instance-jjkms2e6.js} +0 -0
- /package/dist/chunks/{provider-jr7sbwjy.js → instance-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{provider-jwfs4k6c.js → instance-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{provider-jze0r7bz.js → instance-jze0r7bz.js} +0 -0
- /package/dist/chunks/{provider-jzg6c2d5.js → instance-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{provider-m18g726c.js → instance-m18g726c.js} +0 -0
- /package/dist/chunks/{provider-mp448xyj.js → instance-mp448xyj.js} +0 -0
- /package/dist/chunks/{provider-msx8hqn2.js → instance-msx8hqn2.js} +0 -0
- /package/dist/chunks/{provider-n05xt0ee.js → instance-n05xt0ee.js} +0 -0
- /package/dist/chunks/{provider-n3j8tn72.js → instance-n3j8tn72.js} +0 -0
- /package/dist/chunks/{provider-njntx4h6.js → instance-njntx4h6.js} +0 -0
- /package/dist/chunks/{provider-pkyv6v7h.js → instance-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{provider-pyv0edze.js → instance-pyv0edze.js} +0 -0
- /package/dist/chunks/{provider-q3sfg36h.js → instance-q3sfg36h.js} +0 -0
- /package/dist/chunks/{provider-q74kybfr.js → instance-q74kybfr.js} +0 -0
- /package/dist/chunks/{provider-qaymkmh1.js → instance-qaymkmh1.js} +0 -0
- /package/dist/chunks/{provider-qb87gjwd.js → instance-qb87gjwd.js} +0 -0
- /package/dist/chunks/{provider-qfa1cgps.js → instance-qfa1cgps.js} +0 -0
- /package/dist/chunks/{provider-qg3g05ea.js → instance-qg3g05ea.js} +0 -0
- /package/dist/chunks/{provider-qrg20bc0.js → instance-qrg20bc0.js} +0 -0
- /package/dist/chunks/{provider-rcb2kzg1.js → instance-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{provider-sdp7kfr6.js → instance-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{provider-ssg3fenm.js → instance-ssg3fenm.js} +0 -0
- /package/dist/chunks/{provider-ve7vex1e.js → instance-ve7vex1e.js} +0 -0
- /package/dist/chunks/{provider-w803qqfp.js → instance-w803qqfp.js} +0 -0
- /package/dist/chunks/{provider-wc3fc9cn.js → instance-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{provider-wer8tq1h.js → instance-wer8tq1h.js} +0 -0
- /package/dist/chunks/{provider-wtztk69x.js → instance-wtztk69x.js} +0 -0
- /package/dist/chunks/{provider-x0ckcb58.js → instance-x0ckcb58.js} +0 -0
- /package/dist/chunks/{provider-x61499pn.js → instance-x61499pn.js} +0 -0
- /package/dist/chunks/{provider-y44na4kk.js → instance-y44na4kk.js} +0 -0
- /package/dist/chunks/{provider-y8f7s663.js → instance-y8f7s663.js} +0 -0
- /package/dist/chunks/{provider-ygaqb7jw.js → instance-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{provider-ym463w8f.js → instance-ym463w8f.js} +0 -0
- /package/dist/chunks/{provider-z5v4ffb3.js → instance-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{provider-z9919s4g.js → instance-z9919s4g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID14,
|
|
3
|
+
Service78,
|
|
4
|
+
node82
|
|
5
|
+
} from "./instance-dkftam4e.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID13,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
timeouts2,
|
|
15
15
|
mergeOverlay2,
|
|
16
16
|
mergeHeaders2,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service77,
|
|
18
|
+
node81
|
|
19
|
+
} from "./instance-xd0by9zm.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service75,
|
|
22
|
+
node79
|
|
23
|
+
} from "./instance-zxdf4s62.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID12,
|
|
26
26
|
VariantID2,
|
|
27
27
|
Ref2,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
Service76,
|
|
29
|
+
node80,
|
|
30
30
|
supportsText2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./instance-rhmhk3yj.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./instance-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/model-resolver.ts
|
|
37
37
|
var exports_model_resolver = {};
|
|
@@ -40,15 +40,15 @@ __export(exports_model_resolver, {
|
|
|
40
40
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
41
41
|
ModelInitializationError: () => ModelInitializationError2,
|
|
42
42
|
ModelResolver: () => exports_model_resolver,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service74,
|
|
44
44
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
45
45
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
46
46
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
47
47
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
48
48
|
fromCatalogModel: () => fromCatalogModel2,
|
|
49
49
|
hasPackage: () => hasPackage2,
|
|
50
|
-
layer: () =>
|
|
51
|
-
node: () =>
|
|
50
|
+
layer: () => layer26,
|
|
51
|
+
node: () => node78,
|
|
52
52
|
resolveModel: () => resolveModel2,
|
|
53
53
|
withVariant: () => withVariant2
|
|
54
54
|
});
|
|
@@ -58,8 +58,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
58
58
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
59
59
|
import { Npm } from "@opencode/util/npm";
|
|
60
60
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
61
|
-
providerID:
|
|
62
|
-
modelID:
|
|
61
|
+
providerID: ID13,
|
|
62
|
+
modelID: ID12,
|
|
63
63
|
variant: VariantID2
|
|
64
64
|
}) {
|
|
65
65
|
get message() {
|
|
@@ -68,8 +68,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
71
|
-
providerID:
|
|
72
|
-
modelID:
|
|
71
|
+
providerID: ID13,
|
|
72
|
+
modelID: ID12,
|
|
73
73
|
package: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
get message() {
|
|
@@ -79,8 +79,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
79
79
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
80
80
|
|
|
81
81
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
82
|
-
providerID:
|
|
83
|
-
modelID:
|
|
82
|
+
providerID: ID13,
|
|
83
|
+
modelID: ID12,
|
|
84
84
|
package: Schema.String,
|
|
85
85
|
detail: Schema.String
|
|
86
86
|
}) {
|
|
@@ -90,8 +90,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
93
|
-
providerID:
|
|
94
|
-
modelID:
|
|
93
|
+
providerID: ID13,
|
|
94
|
+
modelID: ID12,
|
|
95
95
|
package: Schema.String,
|
|
96
96
|
phase: InitializationPhase2,
|
|
97
97
|
detail: Schema.String
|
|
@@ -102,8 +102,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
105
|
-
providerID:
|
|
106
|
-
modelID:
|
|
105
|
+
providerID: ID13,
|
|
106
|
+
modelID: ID12,
|
|
107
107
|
variables: Schema.Array(Schema.String)
|
|
108
108
|
}) {
|
|
109
109
|
get message() {
|
|
@@ -112,8 +112,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
115
|
-
providerID:
|
|
116
|
-
modelID:
|
|
115
|
+
providerID: ID13,
|
|
116
|
+
modelID: ID12,
|
|
117
117
|
route: Schema.String
|
|
118
118
|
}) {
|
|
119
119
|
get message() {
|
|
@@ -121,7 +121,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class Service74 extends Context.Service()("@opencode/ModelResolver") {
|
|
125
125
|
}
|
|
126
126
|
var withVariant2 = (model, variantID) => {
|
|
127
127
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -235,7 +235,7 @@ var nativeCredentialSettings = (model, specifier, credential) => {
|
|
|
235
235
|
return tokenSettings(specifier, credential.access);
|
|
236
236
|
if (specifier.startsWith("@opencode/ai/providers/amazon-bedrock"))
|
|
237
237
|
return { auth: "sigv4" };
|
|
238
|
-
if (model.providerID ===
|
|
238
|
+
if (model.providerID === ID13.azure)
|
|
239
239
|
return tokenSettings(specifier, "azure-cli");
|
|
240
240
|
return {};
|
|
241
241
|
};
|
|
@@ -270,15 +270,15 @@ var causeMessage = (cause) => {
|
|
|
270
270
|
};
|
|
271
271
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
272
272
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
273
|
-
var
|
|
274
|
-
const providers = yield*
|
|
275
|
-
const models = yield*
|
|
276
|
-
const integrations = yield*
|
|
273
|
+
var layer26 = Layer.effect(Service74, Effect.gen(function* () {
|
|
274
|
+
const providers = yield* Service77;
|
|
275
|
+
const models = yield* Service76;
|
|
276
|
+
const integrations = yield* Service78;
|
|
277
277
|
const npm = yield* Npm.Service;
|
|
278
|
-
const aisdk = yield*
|
|
278
|
+
const aisdk = yield* Service75;
|
|
279
279
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
280
280
|
const provider = yield* providers.get(selected.providerID);
|
|
281
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
281
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
282
282
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
283
283
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
284
284
|
const runtimeInfo = {
|
|
@@ -305,7 +305,7 @@ var layer23 = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
305
305
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
306
306
|
};
|
|
307
307
|
});
|
|
308
|
-
return
|
|
308
|
+
return Service74.of({
|
|
309
309
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
310
310
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
311
311
|
if (!selected)
|
|
@@ -322,10 +322,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
322
322
|
const name = packageName2(packageName);
|
|
323
323
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
service:
|
|
327
|
-
layer:
|
|
328
|
-
deps: [
|
|
325
|
+
var node78 = makeLocationNode({
|
|
326
|
+
service: Service74,
|
|
327
|
+
layer: layer26,
|
|
328
|
+
deps: [node81, node80, node82, Npm.node, node79]
|
|
329
329
|
});
|
|
330
330
|
|
|
331
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
331
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service74, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer26, node78, exports_model_resolver };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instance-agzdqrvj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service63
|
|
6
|
+
} from "./instance-v6gb7zv2.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instance-phz3h32g.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instance-zsr4wwhv.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instance-bvefwfky.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instance-ea99mjkb.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service20
|
|
21
|
+
} from "./instance-32rz0ac1.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instance-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
35
|
+
const instances = yield* Service63;
|
|
36
36
|
const database = yield* Service85;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service20;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instance-agzdqrvj.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instance-c1fqxshp.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
load5
|
|
12
|
+
} from "./instance-bvefwfky.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instance-5pyjqqve.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instance-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
23
|
ListInput: () => ListInput5,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service68,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node72
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
|
|
|
52
52
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
53
53
|
var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service68 extends Context.Service()("@opencode/SessionStore") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
58
58
|
const { db } = yield* Service85;
|
|
59
|
-
return
|
|
59
|
+
return Service68.of({
|
|
60
60
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
61
61
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
62
62
|
return row ? fromRow2(row) : undefined;
|
|
@@ -98,7 +98,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
98
98
|
const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
|
|
99
99
|
return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
|
|
100
100
|
}),
|
|
101
|
-
context: Effect.fn("SessionStore.context")((sessionID) =>
|
|
101
|
+
context: Effect.fn("SessionStore.context")((sessionID) => load5(db, sessionID, "latest")),
|
|
102
102
|
message: Effect.fn("SessionStore.message")(function* (messageID) {
|
|
103
103
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
|
|
104
104
|
return row ? {
|
|
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node72 = makeGlobalNode({ service: Service68, layer, deps: [node89] });
|
|
129
129
|
|
|
130
|
-
export { ListInput5,
|
|
130
|
+
export { ListInput5, Service68, node72, exports_store };
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instance-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service58,
|
|
8
|
+
node62
|
|
9
|
+
} from "./instance-x5xbc85a.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Content3
|
|
12
|
+
} from "./instance-9hmhxc5h.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instance-3smtnn6g.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instance-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/read-filesystem.ts
|
|
21
21
|
var exports_read_filesystem = {};
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service2,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node3,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -89,7 +89,7 @@ var PageInput2 = Schema.Struct({
|
|
|
89
89
|
});
|
|
90
90
|
var FileContent2 = Schema.Struct({
|
|
91
91
|
type: Schema.Literal("file"),
|
|
92
|
-
...
|
|
92
|
+
...Content3.fields
|
|
93
93
|
}).annotate({ identifier: "ReadTool.FileContent" });
|
|
94
94
|
|
|
95
95
|
class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service2 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -330,13 +330,13 @@ var nthNewline = (bytes, count) => {
|
|
|
330
330
|
return index + 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var layer = Layer.effect(
|
|
334
|
-
const environment = yield*
|
|
335
|
-
return
|
|
333
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
334
|
+
const environment = yield* Service58;
|
|
335
|
+
return Service2.of({
|
|
336
336
|
list: environment.files.list,
|
|
337
337
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
338
338
|
});
|
|
339
339
|
}));
|
|
340
|
-
var
|
|
340
|
+
var node3 = makeLocationNode({ service: Service2, layer, deps: [node62] });
|
|
341
341
|
|
|
342
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2,
|
|
342
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service2, read2, node3, exports_read_filesystem };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instance-kmb3qvgg.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
7
|
External2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service83,
|
|
9
|
+
node87
|
|
10
|
+
} from "./instance-qpfx5yhp.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instance-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
15
|
key2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./instance-addxnjmp.js";
|
|
17
17
|
import {
|
|
18
18
|
validateAnswer2,
|
|
19
19
|
validateFields2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instance-q4efcwg2.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./instance-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/integration.ts
|
|
26
26
|
var exports_integration = {};
|
|
@@ -37,16 +37,16 @@ __export(exports_integration, {
|
|
|
37
37
|
EnvMethod: () => EnvMethod2,
|
|
38
38
|
Event: () => Event18,
|
|
39
39
|
ExternalMethod: () => ExternalMethod2,
|
|
40
|
-
ID: () =>
|
|
41
|
-
Info: () =>
|
|
40
|
+
ID: () => ID14,
|
|
41
|
+
Info: () => Info23,
|
|
42
42
|
Integration: () => exports_integration,
|
|
43
43
|
KeyMethod: () => KeyMethod2,
|
|
44
44
|
Method: () => Method2,
|
|
45
45
|
MethodID: () => MethodID2,
|
|
46
46
|
OAuthMethod: () => OAuthMethod2,
|
|
47
47
|
Ref: () => Ref3,
|
|
48
|
-
Service: () =>
|
|
49
|
-
node: () =>
|
|
48
|
+
Service: () => Service78,
|
|
49
|
+
node: () => node82
|
|
50
50
|
});
|
|
51
51
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
52
52
|
import {
|
|
@@ -69,7 +69,7 @@ import { Integration } from "@opencode/schema/integration";
|
|
|
69
69
|
import { AppProcess } from "@opencode/util/process";
|
|
70
70
|
import { ChildProcess } from "effect/process";
|
|
71
71
|
import { Event as Event18 } from "@opencode/schema/integration";
|
|
72
|
-
var
|
|
72
|
+
var ID14 = Integration.ID;
|
|
73
73
|
var MethodID2 = Integration.MethodID;
|
|
74
74
|
var AttemptID2 = Integration.AttemptID;
|
|
75
75
|
var OAuthMethod2 = Integration.OAuthMethod;
|
|
@@ -78,7 +78,7 @@ var KeyMethod2 = Integration.KeyMethod;
|
|
|
78
78
|
var ExternalMethod2 = Integration.ExternalMethod;
|
|
79
79
|
var EnvMethod2 = Integration.EnvMethod;
|
|
80
80
|
var Method2 = Integration.Method;
|
|
81
|
-
var
|
|
81
|
+
var Info23 = Integration.Info;
|
|
82
82
|
var Attempt2 = Integration.Attempt;
|
|
83
83
|
var AttemptStatus2 = Integration.AttemptStatus;
|
|
84
84
|
var CommandAttempt2 = Integration.CommandAttempt;
|
|
@@ -101,19 +101,19 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
|
|
104
|
-
integrationID:
|
|
104
|
+
integrationID: ID14,
|
|
105
105
|
attemptID: AttemptID2
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
108
|
var Ref3 = Integration.Ref;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service78 extends Context.Service()("@opencode/Integration") {
|
|
111
111
|
}
|
|
112
112
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
113
113
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
114
114
|
var scrubInterval = Duration.seconds(30);
|
|
115
|
-
var layer = Layer.effect(
|
|
116
|
-
const credentials = yield*
|
|
115
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
116
|
+
const credentials = yield* Service83;
|
|
117
117
|
const bus = yield* Service84;
|
|
118
118
|
const processes = yield* AppProcess.Service;
|
|
119
119
|
const scope = yield* Scope.Scope;
|
|
@@ -214,7 +214,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
214
214
|
const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
|
|
215
215
|
return [...credentials, ...env];
|
|
216
216
|
};
|
|
217
|
-
const project = (entry, connections) =>
|
|
217
|
+
const project = (entry, connections) => Info23.make({
|
|
218
218
|
id: entry.ref.id,
|
|
219
219
|
name: entry.ref.name,
|
|
220
220
|
...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
|
|
@@ -447,7 +447,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
447
447
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
448
448
|
return CommandAttempt2.make({ attemptID, time });
|
|
449
449
|
});
|
|
450
|
-
return
|
|
450
|
+
return Service78.of({
|
|
451
451
|
transform: state.transform,
|
|
452
452
|
reload: state.reload,
|
|
453
453
|
revision: state.revision,
|
|
@@ -629,10 +629,10 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
}));
|
|
632
|
-
var
|
|
633
|
-
service:
|
|
632
|
+
var node82 = makeLocationNode({
|
|
633
|
+
service: Service78,
|
|
634
634
|
layer,
|
|
635
|
-
deps: [
|
|
635
|
+
deps: [node87, node88, AppProcess.node]
|
|
636
636
|
});
|
|
637
637
|
|
|
638
|
-
export {
|
|
638
|
+
export { ID14, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, ExternalMethod2, EnvMethod2, Method2, Info23, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service78, node82, exports_integration, Event18 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instance-kmb3qvgg.js";
|
|
4
4
|
import {
|
|
5
5
|
supportsText2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instance-rhmhk3yj.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service16,
|
|
9
|
+
Event2
|
|
10
|
+
} from "./instance-efq0ebdb.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/models-dev.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -32,7 +32,7 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
32
32
|
var ModelsDevPlugin2 = define({
|
|
33
33
|
id: "opencode.models.dev",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
|
-
const modelsDev = yield*
|
|
35
|
+
const modelsDev = yield* Service16;
|
|
36
36
|
const bus = yield* Service84;
|
|
37
37
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
38
38
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -66,7 +66,7 @@ var ModelsDevPlugin2 = define({
|
|
|
66
66
|
loaded.data = snapshots(data);
|
|
67
67
|
return ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload()));
|
|
68
68
|
};
|
|
69
|
-
yield* bus.subscribe(
|
|
69
|
+
yield* bus.subscribe(Event2.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
|
|
70
70
|
const latest = yield* modelsDev.get();
|
|
71
71
|
if (snapshots(latest) !== loaded.data)
|
|
72
72
|
yield* apply(latest);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instance-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: () => make23,
|
|
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 make23 = () => Effect.sync(makeUnsafe2);
|
|
30
30
|
|
|
31
|
-
export { makeUnsafe2,
|
|
31
|
+
export { makeUnsafe2, make23, exports_keyed_mutex };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instance-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
10
|
-
render: () =>
|
|
9
|
+
make: () => make14,
|
|
10
|
+
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
// src/session/runner/prompt/system.txt
|
|
@@ -29,10 +29,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function make14(tools) {
|
|
33
|
+
return render3(system_default, tools);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function render3(prompt, tools) {
|
|
36
36
|
const instructions = [];
|
|
37
37
|
if (tools.includes("shell")) {
|
|
38
38
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -47,4 +47,4 @@ function render2(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { make14, render3, exports_system_prompt };
|